vendor: 5,865 bytes, lines 1-9
1function Bne(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in t)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var Sg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ar(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var T4={exports:{}},mp={},R4={exports:{}},Bt={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var cO;function Hne(){if(cO)return Bt;cO=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;function m(V){return V===null||typeof V!="object"?null:(V=h&&V[h]||V["@@iterator"],typeof V=="function"?V:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,y={};function v(V,U,Y){this.props=V,this.context=U,this.refs=y,this.updater=Y||g}v.prototype.isReactComponent={},v.prototype.setState=function(V,U){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,U,"setState")},v.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function N(){}N.prototype=v.prototype;function S(V,U,Y){this.props=V,this.context=U,this.refs=y,this.updater=Y||g}var j=S.prototype=new N;j.constructor=S,b(j,v.prototype),j.isPureReactComponent=!0;var $=Array.isArray,C=Object.prototype.hasOwnProperty,_={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function E(V,U,Y){var de,ge={},fe=null,Oe=null;if(U!=null)for(de in U.ref!==void 0&&(Oe=U.ref),U.key!==void 0&&(fe=""+U.key),U)C.call(U,de)&&!O.hasOwnProperty(de)&&(ge[de]=U[de]);var Ce=arguments.length-2;if(Ce===1)ge.children=Y;else if(1<Ce){for(var le=Array(Ce),we=0;we<Ce;we++)le[we]=arguments[we+2];ge.children=le}if(V&&V.defaultProps)for(de in Ce=V.defaultProps,Ce)ge[de]===void 0&&(ge[de]=Ce[de]);return{$$typeof:t,type:V,key:fe,ref:Oe,props:ge,_owner:_.current}}function P(V,U){return{$$typeof:t,type:V.type,key:U,ref:V.ref,props:V.props,_owner:V._owner}}function T(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function I(V){var U={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(Y){return U[Y]})}var R=/\/+/g;function F(V,U){return typeof V=="object"&&V!==null&&V.key!=null?I(""+V.key):U.toString(36)}function L(V,U,Y,de,ge){var fe=typeof V;(fe==="undefined"||fe==="boolean")&&(V=null);var Oe=!1;if(V===null)Oe=!0;else switch(fe){case"string":case"number":Oe=!0;break;case"object":switch(V.$$typeof){case t:case e:Oe=!0}}if(Oe)return Oe=V,ge=ge(Oe),V=de===""?"."+F(Oe,0):de,$(ge)?(Y="",V!=null&&(Y=V.replace(R,"$&/")+"/"),L(ge,U,Y,"",function(we){return we})):ge!=null&&(T(ge)&&(ge=P(ge,Y+(!ge.key||Oe&&Oe.key===ge.key?"":(""+ge.key).replace(R,"$&/")+"/")+V)),U.push(ge)),1;if(Oe=0,de=de===""?".":de+":",$(V))for(var Ce=0;Ce<V.length;Ce++){fe=V[Ce];var le=de+F(fe,Ce);Oe+=L(fe,U,Y,le,ge)}else if(le=m(V),typeof le=="function")for(V=le.call(V),Ce=0;!(fe=V.next()).done;)fe=fe.value,le=de+F(fe,Ce++),Oe+=L(fe,U,Y,le,ge);else if(fe==="object")throw U=String(V),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Oe}function q(V,U,Y){if(V==null)return V;var de=[],ge=0;return L(V,de,"","",function(fe){return U.call(Y,fe,ge++)}),de}function G(V){if(V._status===-1){var U=V._result;U=U(),U.then(function(Y){(V._status===0||V._status===-1)&&(V._status=1,V._result=Y)},function(Y){(V._status===0||V._status===-1)&&(V._status=2,V._result=Y)}),V._status===-1&&(V._status=0,V._result=U)}if(V._status===1)return V._result.default;throw V._result}var B={current:null},H={transition:null},K={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:H,ReactCurrentOwner:_};function Z(){throw Error("act(...) is not supported in production builds of React.")}return Bt.Children={map:q,forEach:function(V,U,Y){q(V,function(){U.apply(this,arguments)},Y)},count:function(V){var U=0;return q(V,function(){U++}),U},toArray:function(V){return q(V,function(U){return U})||[]},only:function(V){if(!T(V))throw Error("React.Children.only expected to receive a single React element child.");return V}},Bt.Component=v,Bt.Fragment=r,Bt.Profiler=a,Bt.PureComponent=S,Bt.StrictMode=n,Bt.Suspense=c,Bt.__SECRET_INT
vendor: 7,825 bytes, lines 9-33
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,Bt.act=Z,Bt.cloneElement=function(V,U,Y){if(V==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+V+".");var de=b({},V.props),ge=V.key,fe=V.ref,Oe=V._owner;if(U!=null){if(U.ref!==void 0&&(fe=U.ref,Oe=_.current),U.key!==void 0&&(ge=""+U.key),V.type&&V.type.defaultProps)var Ce=V.type.defaultProps;for(le in U)C.call(U,le)&&!O.hasOwnProperty(le)&&(de[le]=U[le]===void 0&&Ce!==void 0?Ce[le]:U[le])}var le=arguments.length-2;if(le===1)de.children=Y;else if(1<le){Ce=Array(le);for(var we=0;we<le;we++)Ce[we]=arguments[we+2];de.children=Ce}return{$$typeof:t,type:V.type,key:ge,ref:fe,props:de,_owner:Oe}},Bt.createContext=function(V){return V={$$typeof:o,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},V.Provider={$$typeof:i,_context:V},V.Consumer=V},Bt.createElement=E,Bt.createFactory=function(V){var U=E.bind(null,V);return U.type=V,U},Bt.createRef=function(){return{current:null}},Bt.forwardRef=function(V){return{$$typeof:l,render:V}},Bt.isValidElement=T,Bt.lazy=function(V){return{$$typeof:d,_payload:{_status:-1,_result:V},_init:G}},Bt.memo=function(V,U){return{$$typeof:u,type:V,compare:U===void 0?null:U}},Bt.startTransition=function(V){var U=H.transition;H.transition={};try{V()}finally{H.transition=U}},Bt.unstable_act=Z,Bt.useCallback=function(V,U){return B.current.useCallback(V,U)},Bt.useContext=function(V){return B.current.useContext(V)},Bt.useDebugValue=function(){},Bt.useDeferredValue=function(V){return B.current.useDeferredValue(V)},Bt.useEffect=function(V,U){return B.current.useEffect(V,U)},Bt.useId=function(){return B.current.useId()},Bt.useImperativeHandle=function(V,U,Y){return B.current.useImperativeHandle(V,U,Y)},Bt.useInsertionEffect=function(V,U){return B.current.useInsertionEffect(V,U)},Bt.useLayoutEffect=function(V,U){return B.current.useLayoutEffect(V,U)},Bt.useMemo=function(V,U){return B.current.useMemo(V,U)},Bt.useReducer=function(V,U,Y){return B.current.useReducer(V,U,Y)},Bt.useRef=function(V){return B.current.useRef(V)},Bt.useState=function(V){return B.current.useState(V)},Bt.useSyncExternalStore=function(V,U,Y){return B.current.useSyncExternalStore(V,U,Y)},Bt.useTransition=function(){return B.current.useTransition()},Bt.version="18.3.1",Bt}var uO;function qk(){return uO||(uO=1,R4.exports=Hne()),R4.exports}/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var dO;function Fne(){if(dO)return mp;dO=1;var t=qk(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(l,c,u){var d,h={},m=null,g=null;u!==void 0&&(m=""+u),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(g=c.ref);for(d in c)n.call(c,d)&&!i.hasOwnProperty(d)&&(h[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)h[d]===void 0&&(h[d]=c[d]);return{$$typeof:e,type:l,key:m,ref:g,props:h,_owner:a.current}}return mp.Fragment=r,mp.jsx=o,mp.jsxs=o,mp}var hO;function zne(){return hO||(hO=1,T4.exports=Fne()),T4.exports}var s=zne(),Cg={},I4={exports:{}},Ta={},D4={exports:{}},L4={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var fO;function Vne(){return fO||(fO=1,(function(t){function e(H,K){var Z=H.length;H.push(K);e:for(;0<Z;){var V=Z-1>>>1,U=H[V];if(0<a(U,K))H[V]=K,H[Z]=U,Z=V;else break e}}function r(H){return H.length===0?null:H[0]}function n(H){if(H.length===0)return null;var K=H[0],Z=H.pop();if(Z!==K){H[0]=Z;e:for(var V=0,U=H.length,Y=U>>>1;V<Y;){var de=2*(V+1)-1,ge=H[de],fe=de+1,Oe=H[fe];if(0>a(ge,Z))fe<U&&0>a(Oe,ge)?(H[V]=Oe,H[fe]=Z,V=fe):(H[V]=ge,H[de]=Z,V=de);else if(fe<U&&0>a(Oe,Z))H[V]=Oe,H[fe]=Z,V=fe;else break e}}return K}function a(H,K){var Z=H.sortIndex-K.sortIndex;return Z!==0?Z:H.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,m=3,g=!1,b=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(H){for(var K=r(u);K!==null;){if(K.callback===null)n(u);else if(K.startTime<=H)n(u),K.sortIndex=K.expirationTime,e(c,K);else break;K=r(u)}}function $(H){if(y=!1,j(H),!b)if(r(c)!==null)b=!0,G(C);else{var K=r(u);K!==null&&B($,K.startTime-H)}}function C(H,K){b=!1,y&&(y=!1,N(E),E=-1),g=!0;var Z=m;try{for(j(K),h=r(c);h!==null&&(!(h.expirationTime>K)||H&&!I());){var V=h.callback;if(typeof V=="function"){h.callback=null,m=h.priorityLevel;var U=V(h.expirationTime<=K);K=t.unstable_now(),typeof U=="function"?h.callback=U:h===r(c)&&n(c),j(K)}else n(c);h=r(c)}if(h!==null)var Y=!0;else{var de=r(u);de!==null&&B($,de.startTime-K),Y=!1}return Y}finally{h=null,m=Z,g=!1}}var _=!1,O=null,E=-1,P=5,T=-1;function I(){return!(t.unstable_now()-T<P)}function R(){if(O!==null){var H=t.unstable_now();T=H;var K=!0;try{K=O(!0,H)}finally{K?F():(_=!1,O=null)}}else _=!1}var F;if(typeof S=="function")F=function(){S(R)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,q=L.port2;L.port1.onmessage=R,F=function(){q.postMessage(null)}}else F=function(){v(R,0)};function G(H){O=H,_||(_=!0,F())}function B(H,K){E=v(function(){H(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_continueExecution=function(){b||g||(b=!0,G(C))},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(H){switch(m){case 1:case 2:case 3:var K=3;break;default:K=m}var Z=m;m=K;try{return H()}finally{m=Z}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(H,K){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var Z=m;m=H;try{return K()}finally{m=Z}},t.unstable_scheduleCallback=function(H,K,Z){var V=t.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?V+Z:V):Z=V,H){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=Z+U,H={id:d++,callback:K,priorityLevel:H,startTime:Z,expirationTime:U,sortIndex:-1},Z>V?(H.sortIndex=Z,e(u,H),r(c)===null&&H===r(u)&&(y?(N(E),E=-1):y=!0,B($,Z-V))):(H.sortIndex=U,e(c,H),b||g||(b=!0,G(C))),H},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(H){var K=m;return function(){var Z=m;m=K;try{return H.apply(this,arguments)}finally{m=Z}}}})(L4)),L4}var pO;function Une(){return pO||(pO=1,D4.exports=Vne()),D4.exports}/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var mO;
vendor: 50,135 bytes, lines 33-38
33function qne(){if(mO)return Ta;mO=1;var t=qk(),e=Une();function r(f){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+f,x=1;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x]);return"Minified React error #"+f+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,a={};function i(f,p){o(f,p),o(f+"Capture",p)}function o(f,p){for(a[f]=p,f=0;f<p.length;f++)n.add(p[f])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,u=/^[: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]*$/,d={},h={};function m(f){return c.call(h,f)?!0:c.call(d,f)?!1:u.test(f)?h[f]=!0:(d[f]=!0,!1)}function g(f,p,x,k){if(x!==null&&x.type===0)return!1;switch(typeof p){case"function":case"symbol":return!0;case"boolean":return k?!1:x!==null?!x.acceptsBooleans:(f=f.toLowerCase().slice(0,5),f!=="data-"&&f!=="aria-");default:return!1}}function b(f,p,x,k){if(p===null||typeof p>"u"||g(f,p,x,k))return!0;if(k)return!1;if(x!==null)switch(x.type){case 3:return!p;case 4:return p===!1;case 5:return isNaN(p);case 6:return isNaN(p)||1>p}return!1}function y(f,p,x,k,A,M,D){this.acceptsBooleans=p===2||p===3||p===4,this.attributeName=k,this.attributeNamespace=A,this.mustUseProperty=x,this.propertyName=f,this.type=p,this.sanitizeURL=M,this.removeEmptyString=D}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(f){v[f]=new y(f,0,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(f){var p=f[0];v[p]=new y(p,1,!1,f[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(f){v[f]=new y(f,2,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(f){v[f]=new y(f,2,!1,f,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(f){v[f]=new y(f,3,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(f){v[f]=new y(f,3,!0,f,null,!1,!1)}),["capture","download"].forEach(function(f){v[f]=new y(f,4,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(function(f){v[f]=new y(f,6,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(function(f){v[f]=new y(f,5,!1,f.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function S(f){return f[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(f){var p=f.replace(N,S);v[p]=new y(p,1,!1,f,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(f){var p=f.replace(N,S);v[p]=new y(p,1,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(f){var p=f.replace(N,S);v[p]=new y(p,1,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(f){v[f]=new y(f,1,!1,f.toLowerCase(),null,!1,!1)}),v.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(f){v[f]=new y(f,1,!1,f.toLowerCase(),null,!0,!0)});function j(f,p,x,k){var A=v.hasOwnProperty(p)?v[p]:null;(A!==null?A.type!==0:k||!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(b(p,x,A,k)&&(x=null),k||A===null?m(p)&&(x===null?f.removeAttribute(p):f.setAttribute(p,""+x)):A.mustUseProperty?f[A.propertyName]=x===null?A.type===3?!1:"":x:(p=A.attributeName,k=A.attributeNamespace,x===null?f.removeAttribute(p):(A=A.type,x=A===3||A===4&&x===!0?"":""+x,k?f.setAttributeNS(k,p,x):f.setAttribute(p,x))))}var $=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for("react.element"),_=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),I=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),H=Symbol.iterator;function K(f){return f===null||typeof f!="object"?null:(f=H&&f[H]||f["@@iterator"],typeof f=="function"?f:null)}var Z=Object.assign,V;function U(f){if(V===void 0)try{throw Error()}catch(x){var p=x.stack.trim().match(/\n( *(at )?)/);V=p&&p[1]||""}return` 34`+V+f}var Y=!1;function de(f,p){if(!f||Y)return"";Y=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(p)if(p=function(){throw Error()},Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(be){var k=be}Reflect.construct(f,[],p)}else{try{p.call()}catch(be){k=be}f.call(p.prototype)}else{try{throw Error()}catch(be){k=be}f()}}catch(be){if(be&&k&&typeof be.stack=="string"){for(var A=be.stack.split(` 35`),M=k.stack.split(` 36`),D=A.length-1,J=M.length-1;1<=D&&0<=J&&A[D]!==M[J];)J--;for(;1<=D&&0<=J;D--,J--)if(A[D]!==M[J]){if(D!==1||J!==1)do if(D--,J--,0>J||A[D]!==M[J]){var re=` 37`+A[D].replace(" at new "," at ");return f.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",f.displayName)),re}while(1<=D&&0<=J);break}}}finally{Y=!1,Error.prepareStackTrace=x}return(f=f?f.displayName||f.name:"")?U(f):""}function ge(f){switch(f.tag){case 5:return U(f.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return f=de(f.type,!1),f;case 11:return f=de(f.type.render,!1),f;case 1:return f=de(f.type,!0),f;default:return""}}function fe(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case O:return"Fragment";case _:return"Portal";case P:return"Profiler";case E:return"StrictMode";case F:return"Suspense";case L:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case I:return(f.displayName||"Context")+".Consumer";case T:return(f._context.displayName||"Context")+".Provider";case R:var p=f.render;return f=f.displayName,f||(f=p.displayName||p.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case q:return p=f.displayName||null,p!==null?p:fe(f.type)||"Memo";case G:p=f._payload,f=f._init;try{return fe(f(p))}catch{}}return null}function Oe(f){var p=f.type;switch(f.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return f=p.render,f=f.displayName||f.name||"",p.displayName||(f!==""?"ForwardRef("+f+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(p);case 8:return p===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function Ce(f){switch(typeof f){case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function le(f){var p=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function we(f){var p=le(f)?"checked":"value",x=Object.getOwnPropertyDescriptor(f.constructor.prototype,p),k=""+f[p];if(!f.hasOwnProperty(p)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var A=x.get,M=x.set;return Object.defineProperty(f,p,{configurable:!0,get:function(){return A.call(this)},set:function(D){k=""+D,M.call(this,D)}}),Object.defineProperty(f,p,{enumerable:x.enumerable}),{getValue:function(){return k},setValue:function(D){k=""+D},stopTracking:function(){f._valueTracker=null,delete f[p]}}}}function ke(f){f._valueTracker||(f._valueTracker=we(f))}function oe(f){if(!f)return!1;var p=f._valueTracker;if(!p)return!0;var x=p.getValue(),k="";return f&&(k=le(f)?f.checked?"true":"false":f.value),f=k,f!==x?(p.setValue(f),!0):!1}function qe(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}function Le(f,p){var x=p.checked;return Z({},p,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:x??f._wrapperState.initialChecked})}function Ke(f,p){var x=p.defaultValue==null?"":p.defaultValue,k=p.checked!=null?p.checked:p.defaultChecked;x=Ce(p.value!=null?p.value:x),f._wrapperState={initialChecked:k,initialValue:x,controlled:p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null}}function ne(f,p){p=p.checked,p!=null&&j(f,"checked",p,!1)}function Se(f,p){ne(f,p);var x=Ce(p.value),k=p.type;if(x!=null)k==="number"?(x===0&&f.value===""||f.value!=x)&&(f.value=""+x):f.value!==""+x&&(f.value=""+x);else if(k==="submit"||k==="reset"){f.removeAttribute("value");return}p.hasOwnProperty("value")?Ae(f,p.type,x):p.hasOwnProperty("defaultValue")&&Ae(f,p.type,Ce(p.defaultValue)),p.checked==null&&p.defaultChecked!=null&&(f.defaultChecked=!!p.defaultChecked)}function $e(f,p,x){if(p.hasOwnProperty("value")||p.hasOwnProperty("defaultValue")){var k=p.type;if(!(k!=="submit"&&k!=="reset"||p.value!==void 0&&p.value!==null))return;p=""+f._wrapperState.initialValue,x||p===f.value||(f.value=p),f.defaultValue=p}x=f.name,x!==""&&(f.name=""),f.defaultChecked=!!f._wrapperState.initialChecked,x!==""&&(f.name=x)}function Ae(f,p,x){(p!=="number"||qe(f.ownerDocument)!==f)&&(x==null?f.defaultValue=""+f._wrapperState.initialValue:f.defaultValue!==""+x&&(f.defaultValue=""+x))}var Ve=Array.isArray;function ae(f,p,x,k){if(f=f.options,p){p={};for(var A=0;A<x.length;A++)p["$"+x[A]]=!0;for(x=0;x<f.length;x++)A=p.hasOwnProperty("$"+f[x].value),f[x].selected!==A&&(f[x].selected=A),A&&k&&(f[x].defaultSelected=!0)}else{for(x=""+Ce(x),p=null,A=0;A<f.length;A++){if(f[A].value===x){f[A].selected=!0,k&&(f[A].defaultSelected=!0);return}p!==null||f[A].disabled||(p=f[A])}p!==null&&(p.selected=!0)}}function W(f,p){if(p.dangerouslySetInnerHTML!=null)throw Error(r(91));return Z({},p,{value:void 0,defaultValue:void 0,children:""+f._wrapperState.initialValue})}function ee(f,p){var x=p.value;if(x==null){if(x=p.children,p=p.defaultValue,x!=null){if(p!=null)throw Error(r(92));if(Ve(x)){if(1<x.length)throw Error(r(93));x=x[0]}p=x}p==null&&(p=""),x=p}f._wrapperState={initialValue:Ce(x)}}function Q(f,p){var x=Ce(p.value),k=Ce(p.defaultValue);x!=null&&(x=""+x,x!==f.value&&(f.value=x),p.defaultValue==null&&f.defaultValue!==x&&(f.defaultValue=x)),k!=null&&(f.defaultValue=""+k)}function xe(f){var p=f.textContent;p===f._wrapperState.initialValue&&p!==""&&p!==null&&(f.value=p)}function ye(f){switch(f){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function X(f,p){return f==null||f==="http://www.w3.org/1999/xhtml"?ye(p):f==="http://www.w3.org/2000/svg"&&p==="foreignObject"?"http://www.w3.org/1999/xhtml":f}var ve,He=(function(f){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(p,x,k,A){MSApp.execUnsafeLocalFunction(function(){return f(p,x,k,A)})}:f})(function(f,p){if(f.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in f)f.innerHTML=p;else{for(ve=ve||document.createElement("div"),ve.innerHTML="<svg>"+p.valueOf().toString()+"</svg>",p=ve.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;p.firstChild;)f.appendChild(p.firstChild)}});function Ie(f,p){if(p){var x=f.firstChild;if(x&&x===f.lastChild&&x.nodeType===3){x.nodeValue=p;return}}f.textContent=p}var dt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ue=["Webkit","ms","Moz","O"];Object.keys(dt).forEach(function(f){Ue.forEach(function(p){p=p+f.charAt(0).toUpperCase()+f.substring(1),dt[p]=dt[f]})});function ie(f,p,x){return p==null||typeof p=="boolean"||p===""?"":x||typeof p!="number"||p===0||dt.hasOwnProperty(f)&&dt[f]?(""+p).trim():p+"px"}function it(f,p){f=f.style;for(var x in p)if(p.hasOwnProperty(x)){var k=x.indexOf("--")===0,A=ie(x,p[x],k);x==="float"&&(x="cssFloat"),k?f.setProperty(x,A):f[x]=A}}var jr=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ir(f,p){if(p){if(jr[f]&&(p.children!=null||p.dangerouslySetInnerHTML!=null))throw Error(r(137,f));if(p.dangerouslySetInnerHTML!=null){if(p.children!=null)throw Error(r(60));if(typeof p.dangerouslySetInnerHTML!="object"||!("__html"in p.dangerouslySetInnerHTML))throw Error(r(61))}if(p.style!=null&&typeof p.style!="object")throw Error(r(62))}}function Vr(f,p){if(f.indexOf("-")===-1)return typeof p.is=="string";switch(f){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 Ot=null;function Kn(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var $a=null,hs=null,Yr=null;function Ur(f){if(f=ep(f)){if(typeof $a!="function")throw Error(r(280));var p=f.stateNode;p&&(p=H1(p),$a(f.stateNode,f.type,p))}}function mt(f){hs?Yr?Yr.push(f):Yr=[f]:hs=f}function Jt(){if(hs){var f=hs,p=Yr;if(Yr=hs=null,Ur(f),p)for(f=0;f<p.length;f++)Ur(p[f])}}function ce(f,p){return f(p)}function We(){}var xt=!1;function ht(f,p,x){if(xt)return f(p,x);xt=!0;try{return ce(f,p,x)}finally{xt=!1,(hs!==null||Yr!==null)&&(We(),Jt())}}function Yt(f,p){var x=f.stateNode;if(x===null)return null;var k=H1(x);if(k===null)return null;x=k[p];e:switch(p){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(k=!k.disabled)||(f=f.type,k=!(f==="button"||f==="input"||f==="select"||f==="textarea")),f=!k;break e;default:f=!1}if(f)return null;if(x&&typeof x!="function")throw Error(r(231,p,typeof x));return x}var _n=!1;if(l)try{var _r={};Object.defineProperty(_r,"passive",{get:function(){_n=!0}}),window.addEventListener("test",_r,_r),window.removeEventListener("test",_r,_r)}catch{_n=!1}function qr(f,p,x,k,A,M,D,J,re){var be=Array.prototype.slice.call(arguments,3);try{p.apply(x,be)}catch(Te){this.onError(Te)}}var An=!1,Xr=null,fs=!1,_a=null,oo={onError:function(f){An=!0,Xr=f}};function m1(f,p,x,k,A,M,D,J,re){An=!1,Xr=null,qr.apply(oo,arguments)}function Zv(f,p,x,k,A,M,D,J,re){if(m1.apply(this,arguments),An){if(An){var be=Xr;An=!1,Xr=null}else throw Error(r(198));fs||(fs=!0,_a=be)}}function lo(f){var p=f,x=f;if(f.alternate)for(;p.return;)p=p.return;else{f=p;do p=f,(p.flags&4098)!==0&&(x=p.return),f=p.return;while(f)}return p.tag===3?x:null}function xn(f){if(f.tag===13){var p=f.memoizedState;if(p===null&&(f=f.alternate,f!==null&&(p=f.memoizedState)),p!==null)return p.dehydrated}return null}function g1(f){if(lo(f)!==f)throw Error(r(188))}function e5(f){var p=f.alternate;if(!p){if(p=lo(f),p===null)throw Error(r(188));return p!==f?null:f}for(var x=f,k=p;;){var A=x.return;if(A===null)break;var M=A.alternate;if(M===null){if(k=A.return,k!==null){x=k;continue}break}if(A.child===M.child){for(M=A.child;M;){if(M===x)return g1(A),f;if(M===k)return g1(A),p;M=M.sibling}throw Error(r(188))}if(x.return!==k.return)x=A,k=M;else{for(var D=!1,J=A.child;J;){if(J===x){D=!0,x=A,k=M;break}if(J===k){D=!0,k=A,x=M;break}J=J.sibling}if(!D){for(J=M.child;J;){if(J===x){D=!0,x=M,k=A;break}if(J===k){D=!0,k=M,x=A;break}J=J.sibling}if(!D)throw Error(r(189))}}if(x.alternate!==k)throw Error(r(190))}if(x.tag!==3)throw Error(r(188));return x.stateNode.current===x?f:p}function b1(f){return f=e5(f),f!==null?x1(f):null}function x1(f){if(f.tag===5||f.tag===6)return f;for(f=f.child;f!==null;){var p=x1(f);if(p!==null)return p;f=f.sibling}return null}var Tf=e.unstable_scheduleCallback,Rf=e.unstable_cancelCallback,Ne=e.unstable_shouldYield,Me=e.unstable_requestPaint,Ze=e.unstable_now,Yn=e.unstable_getCurrentPriorityLevel,ps=e.unstable_ImmediatePriority,y1=e.unstable_UserBlockingPriority,v1=e.unstable_NormalPriority,Zte=e.unstable_LowPriority,B_=e.unstable_IdlePriority,w1=null,Si=null;function ere(f){if(Si&&typeof Si.onCommitFiberRoot=="function")try{Si.onCommitFiberRoot(w1,f,void 0,(f.current.flags&128)===128)}catch{}}var Us=Math.clz32?Math.clz32:nre,tre=Math.log,rre=Math.LN2;function nre(f){return f>>>=0,f===0?32:31-(tre(f)/rre|0)|0}var N1=64,j1=4194304;function If(f){switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return f&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return f}}function k1(f,p){var x=f.pendingLanes;if(x===0)return 0;var k=0,A=f.suspendedLanes,M=f.pingedLanes,D=x&268435455;if(D!==0){var J=D&~A;J!==0?k=If(J):(M&=D,M!==0&&(k=If(M)))}else D=x&~A,D!==0?k=If(D):M!==0&&(k=If(M));if(k===0)return 0;if(p!==0&&p!==k&&(p&A)===0&&(A=k&-k,M=p&-p,A>=M||A===16&&(M&4194240)!==0))return p;if((k&4)!==0&&(k|=x&16),p=f.entangledLanes,p!==0)for(f=f.entanglements,p&=k;0<p;)x=31-Us(p),A=1<<x,k|=f[x],p&=~A;return k}function are(f,p){switch(f){case 1:case 2:case 4:return p+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sre(f,p){for(var x=f.suspendedLanes,k=f.pingedLanes,A=f.expirationTimes,M=f.pendingLanes;0<M;){var D=31-Us(M),J=1<<D,re=A[D];re===-1?((J&x)===0||(J&k)!==0)&&(A[D]=are(J,p)):re<=p&&(f.expiredLanes|=J),M&=~J}}function t5(f){return f=f.pendingLanes&-1073741825,f!==0?f:f&1073741824?1073741824:0}function H_(){var f=N1;return N1<<=1,(N1&4194240)===0&&(N1=64),f}function r5(f){for(var p=[],x=0;31>x;x++)p.push(f);return p}function Df(f,p,x){f.pendingLanes|=p,p!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,p=31-Us(p),f[p]=x}function ire(f,p){var x=f.pendingLanes&~p;f.pendingLanes=p,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=p,f.mutableReadLanes&=p,f.entangledLanes&=p,p=f.entanglements;var k=f.eventTimes;for(f=f.expirationTimes;0<x;){var A=31-Us(x),M=1<<A;p[A]=0,k[A]=-1,f[A]=-1,x&=~M}}function n5(f,p){var x=f.entangledLanes|=p;for(f=f.entanglements;x;){var k=31-Us(x),A=1<<k;A&p|f[k]&p&&(f[k]|=p),x&=~A}}var nr=0;function F_(f){return f&=-f,1<f?4<f?(f&268435455)!==0?16:536870912:4:1}var z_,a5,V_,U_,q_,s5=!1,S1=[],ll=null,cl=null,ul=null,Lf=new Map,Bf=new Map,dl=[],ore="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function W_(f,p){switch(f){case"focusin":case"focusout":ll=null;break;case"dragenter":case"dragleave":cl=null;break;case"mouseover":case"mouseout":ul=null;break;case"pointerover":case"pointerout":Lf.delete(p.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bf.delete(p.pointerId)}}function Hf(f,p,x,k,A,M){return f===null||f.nativeEvent!==M?(f={blockedOn:p,domEventName:x,eventSystemFlags:k,nativeEvent:M,targetContainers:[A]},p!==null&&(p=ep(p),p!==null&&a5(p)),f):(f.eventSystemFlags|=k,p=f.targetContainers,A!==null&&p.indexOf(A)===-1&&p.push(A),f)}function lre(f,p,x,k,A){switch(p){case"focusin":return ll=Hf(ll,f,p,x,k,A),!0;case"dragenter":return cl=Hf(cl,f,p,x,k,A),!0;case"mouseover":return ul=Hf(ul,f,p,x,k,A),!0;case"pointerover":var M=A.pointerId;return Lf.set(M,Hf(Lf.get(M)||null,f,p,x,k,A)),!0;case"gotpointercapture":return M=A.pointerId,Bf.set(M,Hf(Bf.get(M)||null,f,p,x,k,A)),!0}return!1}function G_(f){var p=Nc(f.target);if(p!==null){var x=lo(p);if(x!==null){if(p=x.tag,p===13){if(p=xn(x),p!==null){f.blockedOn=p,q_(f.priority,function(){V_(x)});return}}else if(p===3&&x.stateNode.current.memoizedState.isDehydrated){f.blockedOn=x.tag===3?x.stateNode.containerInfo:null;return}}}f.blockedOn=null}function C1(f){if(f.blockedOn!==null)return!1;for(var p=f.targetContainers;0<p.length;){var x=o5(f.domEventName,f.eventSystemFlags,p[0],f.nativeEvent);if(x===null){x=f.nativeEvent;var k=new x.constructor(x.type,x);Ot=k,x.target.dispatchEvent(k),Ot=null}else return p=ep(x),p!==null&&a5(p),f.blockedOn=x,!1;p.shift()}return!0}function K_(f,p,x){C1(f)&&x.delete(p)}function cre(){s5=!1,ll!==null&&C1(ll)&&(ll=null),cl!==null&&C1(cl)&&(cl=null),ul!==null&&C1(ul)&&(ul=null),Lf.forEach(K_),Bf.forEach(K_)}function Ff(f,p){f.blockedOn===p&&(f.blockedOn=null,s5||(s5=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,cre)))}function zf(f){function p(A){return Ff(A,f)}if(0<S1.length){Ff(S1[0],f);for(var x=1;x<S1.length;x++){var k=S1[x];k.blockedOn===f&&(k.blockedOn=null)}}for(ll!==null&&Ff(ll,f),cl!==null&&Ff(cl,f),ul!==null&&Ff(ul,f),Lf.forEach(p),Bf.forEach(p),x=0;x<dl.length;x++)k=dl[x],k.blockedOn===f&&(k.blockedOn=null);for(;0<dl.length&&(x=dl[0],x.blockedOn===null);)G_(x),x.blockedOn===null&&dl.shift()}var Ju=$.ReactCurrentBatchConfig,$1=!0;function ure(f,p,x,k){var A=nr,M=Ju.transition;Ju.transition=null;try{nr=1,i5(f,p,x,k)}finally{nr=A,Ju.transition=M}}function dre(f,p,x,k){var A=nr,M=Ju.transition;Ju.transition=null;try{nr=4,i5(f,p,x,k)}finally{nr=A,Ju.transition=M}}function i5(f,p,x,k){if($1){var A=o5(f,p,x,k);if(A===null)k5(f,p,k,_1,x),W_(f,k);else if(lre(A,f,p,x,k))k.stopPropagation();else if(W_(f,k),p&4&&-1<ore.indexOf(f)){for(;A!==null;){var M=ep(A);if(M!==null&&z_(M),M=o5(f,p,x,k),M===null&&k5(f,p,k,_1,x),M===A)break;A=M}A!==null&&k.stopPropagation()}else k5(f,p,k,null,x)}}var _1=null;function o5(f,p,x,k){if(_1=null,f=Kn(k),f=Nc(f),f!==null)if(p=lo(f),p===null)f=null;else if(x=p.tag,x===13){if(f=xn(p),f!==null)return f;f=null}else if(x===3){if(p.stateNode.current.memoizedState.isDehydrated)return p.tag===3?p.stateNode.containerInfo:null;f=null}else p!==f&&(f=null);return _1=f,null}function Y_(f){switch(f){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Yn()){case ps:return 1;case y1:return 4;case v1:case Zte:return 16;case B_:return 536870912;default:return 16}default:return 16}}var hl=null,l5=null,A1=null;function X_(){if(A1)return A1;var f,p=l5,x=p.length,k,A="value"in hl?hl.value:hl.textContent,M=A.length;for(f=0;f<x&&p[f]===A[f];f++);var D=x-f;for(k=1;k<=D&&p[x-k]===A[M-k];k++);return A1=A.slice(f,1<k?1-k:void 0)}function E1(f){var p=f.keyCode;return"charCode"in f?(f=f.charCode,f===0&&p===13&&(f=13)):f=p,f===10&&(f=13),32<=f||f===13?f:0}function O1(){return!0}function J_(){return!1}function Ha(f){function p(x,k,A,M,D){this._reactName=x,this._targetInst=A,this.type=k,this.nativeEvent=M,this.target=D,this.currentTarget=null;for(var J in f)f.hasOwnProperty(J)&&(x=f[J],this[J]=x?x(M):M[J]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?O1:J_,this.isPropagationStopped=J_,this}return Z(p.prototype,{preventDefault:function(){this.defaultPrevented=!0;var x=this.nativeEvent;x&&(x.preventDefault?x.preventDefault():typeof x.returnValue!="unknown"&&(x.returnValue=!1),this.isDefaultPrevented=O1)},stopPropagation:function(){var x=this.nativeEvent;x&&(x.stopPropagation?x.stopPropagation():typeof x.cancelBubble!="unknown"&&(x.cancelBubble=!0),this.isPropagationStopped=O1)},persist:function(){},isPersistent:O1}),p}var Qu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(f){return f.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},c5=Ha(Qu),Vf=Z({},Qu,{view:0,detail:0}),hre=Ha(Vf),u5,d5,Uf,P1=Z({},Vf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:f5,button:0,buttons:0,relatedTarget:function(f){return f.relatedTarget===void 0?f.fromElement===f.srcElement?f.toElement:f.fromElement:f.relatedTarget},movementX:function(f){return"movementX"in f?f.movementX:(f!==Uf&&(Uf&&f.type==="mousemove"?(u5=f.screenX-Uf.screenX,d5=f.screenY-Uf.screenY):d5=u5=0,Uf=f),u5)},movementY:function(f){return"movementY"in f?f.movementY:d5}}),Q_=Ha(P1),fre=Z({},P1,{dataTransfer:0}),pre=Ha(fre),mre=Z({},Vf,{relatedTarget:0}),h5=Ha(mre),gre=Z({},Qu,{animationName:0,elapsedTime:0,pseudoElement:0}),bre=Ha(gre),xre=Z({},Qu,{clipboardData:function(f){return"clipboardData"in f?f.clipboardData:window.clipboardData}}),yre=Ha(xre),vre=Z({},Qu,{data:0}),Z_=Ha(vre),wre={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nre={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"},jre={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kre(f){var p=this.nativeEvent;return p.getModifierState?p.getModifierState(f):(f=jre[f])?!!p[f]:!1}function f5(){return kre}var Sre=Z({},Vf,{key:function(f){if(f.key){var p=wre[f.key]||f.key;if(p!=="Unidentified")return p}return f.type==="keypress"?(f=E1(f),f===13?"Enter":String.fromCharCode(f)):f.type==="keydown"||f.type==="keyup"?Nre[f.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:f5,charCode:function(f){return f.type==="keypress"?E1(f):0},keyCode:function(f){return f.type==="keydown"||f.type==="keyup"?f.keyCode:0},which:function(f){return f.type==="keypress"?E1(f):f.type==="keydown"||f.type==="keyup"?f.keyCode:0}}),Cre=Ha(Sre),$re=Z({},P1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eA=Ha($re),_re=Z({},Vf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:f5}),Are=Ha(_re),Ere=Z({},Qu,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ore=Ha(Ere),Pre=Z({},P1,{deltaX:function(f){return"deltaX"in f?f.deltaX:"wheelDeltaX"in f?-f.wheelDeltaX:0},deltaY:function(f){return"deltaY"in f?f.deltaY:"wheelDeltaY"in f?-f.wheelDeltaY:"wheelDelta"in f?-f.wheelDelta:0},deltaZ:0,deltaMode:0}),Mre=Ha(Pre),Tre=[9,13,27,32],p5=l&&"CompositionEvent"in window,qf=null;l&&"documentMode"in document&&(qf=document.documentMode);var Rre=l&&"TextEvent"in window&&!qf,tA=l&&(!p5||qf&&8<qf&&11>=qf),rA=" ",nA=!1;function aA(f,p){switch(f){case"keyup":return Tre.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sA(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var Zu=!1;function Ire(f,p){switch(f){case"compositionend":return sA(p);case"keypress":return p.which!==32?null:(nA=!0,rA);case"textInput":return f=p.data,f===rA&&nA?null:f;default:return null}}function Dre(f,p){if(Zu)return f==="compositionend"||!p5&&aA(f,p)?(f=X_(),A1=l5=hl=null,Zu=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1<p.char.length)return p.char;if(p.which)return String.fromCharCode(p.which)}return null;case"compositionend":return tA&&p.locale!=="ko"?null:p.data;default:return null}}var Lre={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 iA(f){var p=f&&f.nodeName&&f.nodeName.toLowerCase();return p==="input"?!!Lre[f.type]:p==="textarea"}function oA(f,p,x,k){mt(k),p=D1(p,"onChange"),0<p.length&&(x=new c5("onChange","change",null,x,k),f.push({event:x,listeners:p}))}var Wf=null,Gf=null;function Bre(f){SA(f,0)}function M1(f){var p=ad(f);if(oe(p))return f}function Hre(f,p){if(f==="change")return p}var lA=!1;if(l){var m5;if(l){var g5="oninput"in document;if(!g5){var cA=document.createElement("div");cA.setAttribute("oninput","return;"),g5=typeof cA.oninput=="function"}m5=g5}else m5=!1;lA=m5&&(!document.documentMode||9<document.documentMode)}function uA(){Wf&&(Wf.detachEvent("onpropertychange",dA),Gf=Wf=null)}function dA(f){if(f.propertyName==="value"&&M1(Gf)){var p=[];oA(p,Gf,f,Kn(f)),ht(Bre,p)}}function Fre(f,p,x){f==="focusin"?(uA(),Wf=p,Gf=x,Wf.attachEvent("onpropertychange",dA)):f==="focusout"&&uA()}function zre(f){if(f==="selectionchange"||f==="keyup"||f==="keydown")return M1(Gf)}function Vre(f,p){if(f==="click")return M1(p)}function Ure(f,p){if(f==="input"||f==="change")return M1(p)}function qre(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var qs=typeof Object.is=="function"?Object.is:qre;function Kf(f,p){if(qs(f,p))return!0;if(typeof f!="object"||f===null||typeof p!="object"||p===null)return!1;var x=Object.keys(f),k=Object.keys(p);if(x.length!==k.length)return!1;for(k=0;k<x.length;k++){var A=x[k];if(!c.call(p,A)||!qs(f[A],p[A]))return!1}return!0}function hA(f){for(;f&&f.firstChild;)f=f.firstChild;return f}function fA(f,p){var x=hA(f);f=0;for(var k;x;){if(x.nodeType===3){if(k=f+x.textContent.length,f<=p&&k>=p)return{node:x,offset:p-f};f=k}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=hA(x)}}function pA(f,p){return f&&p?f===p?!0:f&&f.nodeType===3?!1:p&&p.nodeType===3?pA(f,p.parentNode):"contains"in f?f.contains(p):f.compareDocumentPosition?!!(f.compareDocumentPosition(p)&16):!1:!1}function mA(){for(var f=window,p=qe();p instanceof f.HTMLIFrameElement;){try{var x=typeof p.contentWindow.location.href=="string"}catch{x=!1}if(x)f=p.contentWindow;else break;p=qe(f.document)}return p}function b5(f){var p=f&&f.nodeName&&f.nodeName.toLowerCase();return p&&(p==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||p==="textarea"||f.contentEditable==="true")}function Wre(f){var p=mA(),x=f.focusedElem,k=f.selectionRange;if(p!==x&&x&&x.ownerDocument&&pA(x.ownerDocument.documentElement,x)){if(k!==null&&b5(x)){if(p=k.start,f=k.end,f===void 0&&(f=p),"selectionStart"in x)x.selectionStart=p,x.selectionEnd=Math.min(f,x.value.length);else if(f=(p=x.ownerDocument||document)&&p.defaultView||window,f.getSelection){f=f.getSelection();var A=x.textContent.length,M=Math.min(k.start,A);k=k.end===void 0?M:Math.min(k.end,A),!f.extend&&M>k&&(A=k,k=M,M=A),A=fA(x,M);var D=fA(x,k);A&&D&&(f.rangeCount!==1||f.anchorNode!==A.node||f.anchorOffset!==A.offset||f.focusNode!==D.node||f.focusOffset!==D.offset)&&(p=p.createRange(),p.setStart(A.node,A.offset),f.removeAllRanges(),M>k?(f.addRange(p),f.extend(D.node,D.offset)):(p.setEnd(D.node,D.offset),f.addRange(p)))}}for(p=[],f=x;f=f.parentNode;)f.nodeType===1&&p.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<p.length;x++)f=p[x],f.element.scrollLeft=f.left,f.element.scrollTop=f.top}}var Gre=l&&"documentMode"in document&&11>=document.documentMode,ed=null,x5=null,Yf=null,y5=!1;function gA(f,p,x){var k=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;y5||ed==null||ed!==qe(k)||(k=ed,"selectionStart"in k&&b5(k)?k={start:k.selectionStart,end:k.selectionEnd}:(k=(k.ownerDocument&&k.ownerDocument.defaultView||window).getSelection(),k={anchorNode:k.anchorNode,anchorOffset:k.anchorOffset,focusNode:k.focusNode,focusOffset:k.focusOffset}),Yf&&Kf(Yf,k)||(Yf=k,k=D1(x5,"onSelect"),0<k.length&&(p=new c5("onSelect","select",null,p,x),f.push({event:p,listeners:k}),p.target=ed)))}function T1(f,p){var x={};return x[f.toLowerCase()]=p.toLowerCase(),x["Webkit"+f]="webkit"+p,x["Moz"+f]="moz"+p,x}var td={animationend:T1("Animation","AnimationEnd"),animationiteration:T1("Animation","AnimationIteration"),animationstart:T1("Animation","AnimationStart"),transitionend:T1("Transition","TransitionEnd")},v5={},bA={};l&&(bA=document.createElement("div").style,"AnimationEvent"in window||(delete td.animationend.animation,delete td.animationiteration.animation,delete td.animationstart.animation),"TransitionEvent"in window||delete td.transitionend.transition);function R1(f){if(v5[f])return v5[f];if(!td[f])return f;var p=td[f],x;for(x in p)if(p.hasOwnProperty(x)&&x in bA)return v5[f]=p[x];return f}var xA=R1("animationend"),yA=R1("animationiteration"),vA=R1("animationstart"),wA=R1("transitionend"),NA=new Map,jA="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function fl(f,p){NA.set(f,p),i(p,[f])}for(var w5=0;w5<jA.length;w5++){var N5=jA[w5],Kre=N5.toLowerCase(),Yre=N5[0].toUpperCase()+N5.slice(1);fl(Kre,"on"+Yre)}fl(xA,"onAnimationEnd"),fl(yA,"onAnimationIteration"),fl(vA,"onAnimationStart"),fl("dblclick","onDoubleClick"),fl("focusin","onFocus"),fl("focusout","onBlur"),fl(wA,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xf="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(" "),Xre=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xf));function kA(f,p,x){var k=f.type||"unknown-event";f.currentTarget=x,Zv(k,p,void 0,f),f.currentTarget=null}function SA(f,p){p=(p&4)!==0;for(var x=0;x<f.length;x++){var k=f[x],A=k.event;k=k.listeners;e:{var M=void 0;if(p)for(var D=k.length-1;0<=D;D--){var J=k[D],re=J.instance,be=J.currentTarget;if(J=J.listener,re!==M&&A.isPropagationStopped())break e;kA(A,J,be),M=re}else for(D=0;D<k.length;D++){if(J=k[D],re=J.instance,be=J.currentTarget,J=J.listener,re!==M&&A.isPropagationStopped())break e;kA(A,J,be),M=re}}}if(fs)throw f=_a,fs=!1,_a=null,f}function br(f,p){var x=p[E5];x===void 0&&(x=p[E5]=new Set);var k=f+"__bubble";x.has(k)||(CA(p,f,2,!1),x.add(k))}function j5(f,p,x){var k=0;p&&(k|=4),CA(x,f,k,p)}var I1="_reactListening"+Math.random().toString(36).slice(2);function Jf(f){if(!f[I1]){f[I1]=!0,n.forEach(function(x){x!=="selectionchange"&&(Xre.has(x)||j5(x,!1,f),j5(x,!0,f))});var p=f.nodeType===9?f:f.ownerDocument;p===null||p[I1]||(p[I1]=!0,j5("selectionchange",!1,p))}}function CA(f,p,x,k){switch(Y_(p)){case 1:var A=ure;break;case 4:A=dre;break;default:A=i5}x=A.bind(null,p,x,f),A=void 0,!_n||p!=="touchstart"&&p!=="touchmove"&&p!=="wheel"||(A=!0),k?A!==void 0?f.addEventListener(p,x,{capture:!0,passive:A}):f.addEventListener(p,x,!0):A!==void 0?f.addEventListener(p,x,{passive:A}):f.addEventListener(p,x,!1)}function k5(f,p,x,k,A){var M=k;if((p&1)===0&&(p&2)===0&&k!==null)e:for(;;){if(k===null)return;var D=k.tag;if(D===3||D===4){var J=k.stateNode.containerInfo;if(J===A||J.nodeType===8&&J.parentNode===A)break;if(D===4)for(D=k.return;D!==null;){var re=D.tag;if((re===3||re===4)&&(re=D.stateNode.containerInfo,re===A||re.nodeType===8&&re.parentNode===A))return;D=D.return}for(;J!==null;){if(D=Nc(J),D===null)return;if(re=D.tag,re===5||re===6){k=M=D;continue e}J=J.parentNode}}k=k.return}ht(function(){var be=M,Te=Kn(x),Re=[];e:{var Pe=NA.get(f);if(Pe!==void 0){var Ye=c5,et=f;switch(f){case"keypress":if(E1(x)===0)break e;case"keydown":case"keyup":Ye=Cre;break;case"focusin":et="focus",Ye=h5;break;case"focusout":et="blur",Ye=h5;break;case"beforeblur":case"afterblur":Ye=h5;break;case"click":if(x.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ye=Q_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ye=pre;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ye=Are;break;case xA:case yA:case vA:Ye=bre;break;case wA:Ye=Ore;break;case"scroll":Ye=hre;break;case"wheel":Ye=Mre;break;case"copy":case"cut":case"paste":Ye=yre;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ye=eA}var st=(p&4)!==0,Wr=!st&&f==="scroll",he=st?Pe!==null?Pe+"Capture":null:Pe;st=[];for(var se=be,pe;se!==null;){pe=se;var Be=pe.stateNode;if(pe.tag===5&&Be!==null&&(pe=Be,he!==null&&(Be=Yt(se,he),Be!=null&&st.push(Qf(se,Be,pe)))),Wr)break;se=se.return}0<st.length&&(Pe=new Ye(Pe,et,null,x,Te),Re.push({event:Pe,listeners:st}))}}if((p&7)===0){e:{if(Pe=f==="mouseover"||f==="pointerover",Ye=f==="mouseout"||f==="pointerout",Pe&&x!==Ot&&(et=x.relatedTarget||x.fromElement)&&(Nc(et)||et[co]))break e;if((Ye||Pe)&&(Pe=Te.window===Te?Te:(Pe=Te.ownerDocument)?Pe.defaultView||Pe.parentWindow:window,Ye?(et=x.relatedTarget||x.toElement,Ye=be,et=et?Nc(et):null,et!==null&&(Wr=lo(et),et!==Wr||et.tag!==5&&et.tag!==6)&&(et=null)):(Ye=null,et=be),Ye!==et)){if(st=Q_,Be="onMouseLeave",he="onMouseEnter",se="mouse",(f==="pointerout"||f==="pointerover")&&(st=eA,Be="onPointerLeave",he="onPointerEnter",se="pointer"),Wr=Ye==null?Pe:ad(Ye),pe=et==null?Pe:ad(et),Pe=new st(Be,se+"leave",Ye,x,Te),Pe.target=Wr,Pe.relatedTarget=pe,Be=null,Nc(Te)===be&&(st=new st(he,se+"enter",et,x,Te),st.target=pe,st.relatedTarget=Wr,Be=st),Wr=Be,Ye&&et)t:{for(st=Ye,he=et,se=0,pe=st;pe;pe=rd(pe))se++;for(pe=0,Be=he;Be;Be=rd(Be))pe++;for(;0<se-pe;)st=rd(st),se--;for(;0<pe-se;)he=rd(he),pe--;for(;se--;){if(st===he||he!==null&&st===he.alternate)break t;st=rd(st),he=rd(he)}st=null}else st=null;Ye!==null&&$A(Re,Pe,Ye,st,!1),et!==null&&Wr!==null&&$A(Re,Wr,et,st,!0)}}e:{if(Pe=be?ad(be):window,Ye=Pe.nodeName&&Pe.nodeName.toLowerCase(),Ye==="select"||Ye==="input"&&Pe.type==="file")var lt=Hre;else if(iA(Pe))if(lA)lt=Ure;else{lt=zre;var yt=Fre}else(Ye=Pe.nodeName)&&Ye.toLowerCase()==="input"&&(Pe.type==="checkbox"||Pe.type==="radio")&&(lt=Vre);if(lt&&(lt=lt(f,be))){oA(Re,lt,x,Te);break e}yt&&yt(f,Pe,be),f==="focusout"&&(yt=Pe._wrapperState)&&yt.controlled&&Pe.type==="number"&&Ae(Pe,"number",Pe.value)}switch(yt=be?ad(be):window,f){case"focusin":(iA(yt)||yt.contentEditable==="true")&&(ed=yt,x5=be,Yf=null);break;case"focusout":Yf=x5=ed=null;break;case"mousedown":y5=!0;break;case"contextmenu":case"mouseup":case"dragend":y5=!1,gA(Re,x,Te);break;case"selectionchange":if(Gre)break;case"keydown":case"keyup":gA(Re,x,Te)}var vt;if(p5)e:{switch(f){case"compositionstart":var $t="onCompositionStart";break e;case"compositionend":$t="onCompositionEnd";break e;case"compositionupdate":$t="onCompositionUpdate";break e}$t=void 0}else Zu?aA(f,x)&&($t="onCompositionEnd"):f==="keydown"&&x.keyCode===229&&($t="onCompositionStart");$t&&(tA&&x.locale!=="ko"&&(Zu||$t!=="onCompositionStart"?$t==="onCompositionEnd"&&Zu&&(vt=X_()):(hl=Te,l5="value"in hl?hl.value:hl.textContent,Zu=!0)),yt=D1(be,$t),0<yt.length&&($t=new Z_($t,f,null,x,Te),Re.push({event:$t,listeners:yt}),vt?$t.data=vt:(vt=sA(x),vt!==null&&($t.data=vt)))),(vt=Rre?Ire(f,x):Dre(f,x))&&(be=D1(be,"onBeforeInput"),0<be.length&&(Te=new Z_("onBeforeInput","beforeinput",null,x,Te),Re.push({event:Te,listeners:be}),Te.data=vt))}SA(Re,p)})}function Qf(f,p,x){return{instance:f,listener:p,currentTarget:x}}function D1(f,p){for(var x=p+"Capture",k=[];f!==null;){var A=f,M=A.stateNode;A.tag===5&&M!==null&&(A=M,M=Yt(f,x),M!=null&&k.unshift(Qf(f,M,A)),M=Yt(f,p),M!=null&&k.push(Qf(f,M,A))),f=f.return}return k}function rd(f){if(f===null)return null;do f=f.return;while(f&&f.tag!==5);return f||null}function $A(f,p,x,k,A){for(var M=p._reactName,D=[];x!==null&&x!==k;){var J=x,re=J.alternate,be=J.stateNode;if(re!==null&&re===k)break;J.tag===5&&be!==null&&(J=be,A?(re=Yt(x,M),re!=null&&D.unshift(Qf(x,re,J))):A||(re=Yt(x,M),re!=null&&D.push(Qf(x,re,J)))),x=x.return}D.length!==0&&f.push({event:p,listeners:D})}var Jre=/\r\n?/g,Qre=/\u0000|\uFFFD/g;function _A(f){return(typeof f=="string"?f:""+f).replace(Jre,` 38`).replace(Qre,"")}function L1(f,p,x){if(p=_A(p),_A(f)!==p&&x)throw Error(r(425))}function B1(){}var S5=null,C5=null;function $5(f,p){return f==="textarea"||f==="noscript"||typeof p.children=="string"||typeof p.children=="number"||typeof p.dangerouslySetInnerHTML=="object"&&p.dangerouslySetInnerHTML!==null&&p.dangerouslySetInnerHTML.__html!=null}var _5=typeof setTimeout=="function"?setTimeout:void 0,Zre=typeof clearTimeout=="function"?clearTimeout:void 0,AA=typeof Promise=="function"?Promise:void 0,ene=typeof queueMicrotask=="function"?queueMicrotask:typeof AA<"u"?function(f){return AA.resolve(null).then(f).catch(tne)}:_5;function tne(f){setTimeout(function(){throw f})}function A5(f,p){var x=p,k=0;do{var A=x.nextSibling;if(f.removeChild(x),A&&A.nodeType===8)if(x=A.data,x==="/$"){if(k===0){f.removeChild(A),zf(p);return}k--}else x!=="$"&&x!=="$?"&&x!=="$!"||k++;x=A}while(x);zf(p)}function pl(f){for(;f!=null;f=f.nextSibling){var p=f.nodeType;if(p===1||p===3)break;if(p===8){if(p=f.data,p==="$"||p==="$!"||p==="$?")break;if(p==="/$")return null}}return f}function EA(f){f=f.previousSibling;for(var p=0;f;){if(f.nodeType===8){var x=f.data;if(x==="$"||x==="$!"||x==="$?"){if(p===0)return f;p--}else x==="/$"&&p++}f=f.previousSibling}return null}var nd=Math.random().toString(36).slice(2),Ci="__reactFiber$"+nd,Zf="__reactProps$"+nd,co="__reactContainer$"+nd,E5="__reactEvents$"+nd,rne="__reactListeners$"+nd,nne="__reactHandles$"+nd;function Nc(f){var p=f[Ci];if(p)return p;for(var x=f.parentNode;x;){if(p=x[co]||x[Ci]){if(x=p.alternate,p.child!==null||x!==null&&x.child!==null)for(f=EA(f);f!==null;){if(x=f[Ci])return x;f=EA(f)}return p}f=x,x=f.parentNode}return null}function ep(f){return f=f[Ci]||f[co],!f||f.tag!==5&&f.tag!==6&&f.tag!==13&&f.tag!==3?null:f}function ad(f){if(f.tag===5||f.tag===6)return f.stateNode;throw Error(r(33))}function H1(f){return f[Zf]||null}var O5=[],sd=-1;function ml(f){return{current:f}}function xr(f){0>sd||(f.current=O5[sd],O5[sd]=null,sd--)}function ur(f,p){sd++,O5[sd]=f.current,f.current=p}var gl={},Xn=ml(gl),Aa=ml(!1),jc=gl;function id(f,p){var x=f.type.contextTypes;if(!x)return gl;var k=f.stateNode;if(k&&k.__reactInternalMemoizedUnmaskedChildContext===p)return k.__reactInternalMemoizedMaskedChildContext;var A={},M;for(M in x)A[M]=p[M];return k&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=p,f.__reactInternalMemoizedMaskedChildContext=A),A}function Ea(f){return f=f.childContextTypes,f!=null}function F1(){xr(Aa),xr(Xn)}function OA(f,p,x){if(Xn.current!==gl)throw Error(r(168));ur(Xn,p),ur(Aa,x)}function PA(f,p,x){var k=f.stateNode;if(p=p.childContextTypes,typeof k.getChildContext!="function")return x;k=k.getChildContext();for(var A in k)if(!(A in p))throw Error(r(108,Oe(f)||"Unknown",A));return Z({},x,k)}function z1(f){return f=(f=f.stateNode)&&f.__reactInternalMemoizedMergedChildContext||gl,jc=Xn.current,ur(Xn,f),ur(Aa,Aa.current),!0}function MA(f,p,x){var k=f.stateNode;if(!k)throw Error(r(169));x?(f=PA(f,p,jc),k.__reactInternalMemoizedMergedChildContext=f,xr(Aa),xr(Xn),ur(Xn,f)):xr(Aa),ur(Aa,x)}var uo=null,V1=!1,P5=!1;function TA(f){uo===null?uo=[f]:uo.push(f)}function ane(f){V1=!0,TA(f)}function bl(){if(!P5&&uo!==null){P5=!0;var f=0,p=nr;try{var x=uo;for(nr=1;f<x.length;f++){var k=x[f];do k=k(!0);while(k!==null)}uo=null,V1=!1}catch(A){throw uo!==null&&(uo=uo.slice(f+1)),Tf(ps,bl),A}finally{nr=p,P5=!1}}return null}var od=[],ld=0,U1=null,q1=0,ms=[],gs=0,kc=null,ho=1,fo="";function Sc(f,p){od[ld++]=q1,od[ld++]=U1,U1=f,q1=p}function RA(f,p,x){ms[gs++]=ho,ms[gs++]=fo,ms[gs++]=kc,kc=f;var k=ho;f=fo;var A=32-Us(k)-1;k&=~(1<<A),x+=1;var M=32-Us(p)+A;if(30<M){var D=A-A%5;M=(k&(1<<D)-1).toString(32),k>>=D,A-=D,ho=1<<32-Us(p)+A|x<<A|k,fo=M+f}else ho=1<<M|x<<A|k,fo=f}function M5(f){f.return!==null&&(Sc(f,1),RA(f,1,0))}function T5(f){for(;f===U1;)U1=od[--ld],od[ld]=null,q1=od[--ld],od[ld]=null;for(;f===kc;)kc=ms[--gs],ms[gs]=null,fo=ms[--gs],ms[gs]=null,ho=ms[--gs],ms[gs]=null}var Fa=null,za=null,kr=!1,Ws=null;function IA(f,p){var x=vs(5,null,null,0);x.elementType="DELETED",x.stateNode=p,x.return=f,p=f.deletions,p===null?(f.deletions=[x],f.flags|=16):p.push(x)}function DA(f,p){switch(f.tag){case 5:var x=f.type;return p=p.nodeType!==1||x.toLowerCase()!==p.nodeName.toLowerCase()?null:p,p!==null?(f.stateNode=p,Fa=f,za=pl(p.firstChild),!0):!1;case 6:return p=f.pendingProps===""||p.nodeType!==3?null:p,p!==null?(f.stateNode=p,Fa=f,za=null,!0):!1;case 13:return p=p.nodeType!==8?null:p,p!==null?(x=kc!==null?{id:ho,overflow:fo}:null,f.memoizedState={dehydrated:p,treeContext:x,retryLane:1073741824},x=vs(18,null,null,0),x.stateNode=p,x.return=f,f.child=x,Fa=f,za=null,!0):!1;default:return!1}}function R5(f){return(f.mode&1)!==0&&(f.flags&128)===0}function I5(f){if(kr){var p=za;if(p){var x=p;if(!DA(f,p)){if(R5(f))throw Error(r(418));p=pl(x.nextSibling);var k=Fa;p&&DA(f,p)?IA(k,x):(f.flags=f.flags&-4097|2,kr=!1,Fa=f)}}else{if(R5(f))throw Error(r(418));f.flags=f.flags&-4097|2,kr=!1,Fa=f}}}function LA(f){for(f=f.return;f!==null&&f.tag!==5&&f.tag!==3&&f.tag!==13;)f=f.return;Fa=f}function W1(f){if(f!==Fa)return!1;if(!kr)return LA(f),kr=!0,!1;var p;if((p=f.tag!==3)&&!(p=f.tag!==5)&&(p=f.type,p=p!=="head"&&p!=="body"&&!$5(f.type,f.memoizedProps)),p&&(p=za)){if(R5(f))throw BA(),Error(r(418));for(;p;)IA(f,p),p=pl(p.nextSibling)}if(LA(f),f.tag===13){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));e:{for(f=f.nextSibling,p=0;f;
vendor: 2,956 bytes, line 38
38){if(f.nodeType===8){var x=f.data;if(x==="/$"){if(p===0){za=pl(f.nextSibling);break e}p--}else x!=="$"&&x!=="$!"&&x!=="$?"||p++}f=f.nextSibling}za=null}}else za=Fa?pl(f.stateNode.nextSibling):null;return!0}function BA(){for(var f=za;f;)f=pl(f.nextSibling)}function cd(){za=Fa=null,kr=!1}function D5(f){Ws===null?Ws=[f]:Ws.push(f)}var sne=$.ReactCurrentBatchConfig;function tp(f,p,x){if(f=x.ref,f!==null&&typeof f!="function"&&typeof f!="object"){if(x._owner){if(x=x._owner,x){if(x.tag!==1)throw Error(r(309));var k=x.stateNode}if(!k)throw Error(r(147,f));var A=k,M=""+f;return p!==null&&p.ref!==null&&typeof p.ref=="function"&&p.ref._stringRef===M?p.ref:(p=function(D){var J=A.refs;D===null?delete J[M]:J[M]=D},p._stringRef=M,p)}if(typeof f!="string")throw Error(r(284));if(!x._owner)throw Error(r(290,f))}return f}function G1(f,p){throw f=Object.prototype.toString.call(p),Error(r(31,f==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":f))}function HA(f){var p=f._init;return p(f._payload)}function FA(f){function p(he,se){if(f){var pe=he.deletions;pe===null?(he.deletions=[se],he.flags|=16):pe.push(se)}}function x(he,se){if(!f)return null;for(;se!==null;)p(he,se),se=se.sibling;return null}function k(he,se){for(he=new Map;se!==null;)se.key!==null?he.set(se.key,se):he.set(se.index,se),se=se.sibling;return he}function A(he,se){return he=Sl(he,se),he.index=0,he.sibling=null,he}function M(he,se,pe){return he.index=pe,f?(pe=he.alternate,pe!==null?(pe=pe.index,pe<se?(he.flags|=2,se):pe):(he.flags|=2,se)):(he.flags|=1048576,se)}function D(he){return f&&he.alternate===null&&(he.flags|=2),he}function J(he,se,pe,Be){return se===null||se.tag!==6?(se=_4(pe,he.mode,Be),se.return=he,se):(se=A(se,pe),se.return=he,se)}function re(he,se,pe,Be){var lt=pe.type;return lt===O?Te(he,se,pe.props.children,Be,pe.key):se!==null&&(se.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===G&&HA(lt)===se.type)?(Be=A(se,pe.props),Be.ref=tp(he,se,pe),Be.return=he,Be):(Be=bg(pe.type,pe.key,pe.props,null,he.mode,Be),Be.ref=tp(he,se,pe),Be.return=he,Be)}function be(he,se,pe,Be){return se===null||se.tag!==4||se.stateNode.containerInfo!==pe.containerInfo||se.stateNode.implementation!==pe.implementation?(se=A4(pe,he.mode,Be),se.return=he,se):(se=A(se,pe.children||[]),se.return=he,se)}function Te(he,se,pe,Be,lt){return se===null||se.tag!==7?(se=Mc(pe,he.mode,Be,lt),se.return=he,se):(se=A(se,pe),se.return=he,se)}function Re(he,se,pe){if(typeof se=="string"&&se!==""||typeof se=="number")return se=_4(""+se,he.mode,pe),se.return=he,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case C:return pe=bg(se.type,se.key,se.props,null,he.mode,pe),pe.ref=tp(he,null,se),pe.return=he,pe;case _:return se=A4(se,he.mode,pe),se.return=he,se;case G:var Be=se._init;return Re(he,Be(se._payload),pe)}if(Ve(se)||K(se))return se=Mc(se,he.mode,pe,null),se.return=he,se;G1(he,se)}return null}function Pe(he,se,pe,Be){var lt=se!==null?se.key:null;
vendor: 3,688 bytes, line 38
38if(typeof pe=="string"&&pe!==""||typeof pe=="number")return lt!==null?null:J(he,se,""+pe,Be);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case C:return pe.key===lt?re(he,se,pe,Be):null;case _:return pe.key===lt?be(he,se,pe,Be):null;case G:return lt=pe._init,Pe(he,se,lt(pe._payload),Be)}if(Ve(pe)||K(pe))return lt!==null?null:Te(he,se,pe,Be,null);G1(he,pe)}return null}function Ye(he,se,pe,Be,lt){if(typeof Be=="string"&&Be!==""||typeof Be=="number")return he=he.get(pe)||null,J(se,he,""+Be,lt);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case C:return he=he.get(Be.key===null?pe:Be.key)||null,re(se,he,Be,lt);case _:return he=he.get(Be.key===null?pe:Be.key)||null,be(se,he,Be,lt);case G:var yt=Be._init;return Ye(he,se,pe,yt(Be._payload),lt)}if(Ve(Be)||K(Be))return he=he.get(pe)||null,Te(se,he,Be,lt,null);G1(se,Be)}return null}function et(he,se,pe,Be){for(var lt=null,yt=null,vt=se,$t=se=0,wn=null;vt!==null&&$t<pe.length;$t++){vt.index>$t?(wn=vt,vt=null):wn=vt.sibling;var Gt=Pe(he,vt,pe[$t],Be);if(Gt===null){vt===null&&(vt=wn);break}f&&vt&&Gt.alternate===null&&p(he,vt),se=M(Gt,se,$t),yt===null?lt=Gt:yt.sibling=Gt,yt=Gt,vt=wn}if($t===pe.length)return x(he,vt),kr&&Sc(he,$t),lt;if(vt===null){for(;$t<pe.length;$t++)vt=Re(he,pe[$t],Be),vt!==null&&(se=M(vt,se,$t),yt===null?lt=vt:yt.sibling=vt,yt=vt);return kr&&Sc(he,$t),lt}for(vt=k(he,vt);$t<pe.length;$t++)wn=Ye(vt,he,$t,pe[$t],Be),wn!==null&&(f&&wn.alternate!==null&&vt.delete(wn.key===null?$t:wn.key),se=M(wn,se,$t),yt===null?lt=wn:yt.sibling=wn,yt=wn);return f&&vt.forEach(function(Cl){return p(he,Cl)}),kr&&Sc(he,$t),lt}function st(he,se,pe,Be){var lt=K(pe);if(typeof lt!="function")throw Error(r(150));if(pe=lt.call(pe),pe==null)throw Error(r(151));for(var yt=lt=null,vt=se,$t=se=0,wn=null,Gt=pe.next();vt!==null&&!Gt.done;$t++,Gt=pe.next()){vt.index>$t?(wn=vt,vt=null):wn=vt.sibling;var Cl=Pe(he,vt,Gt.value,Be);if(Cl===null){vt===null&&(vt=wn);break}f&&vt&&Cl.alternate===null&&p(he,vt),se=M(Cl,se,$t),yt===null?lt=Cl:yt.sibling=Cl,yt=Cl,vt=wn}if(Gt.done)return x(he,vt),kr&&Sc(he,$t),lt;if(vt===null){for(;!Gt.done;$t++,Gt=pe.next())Gt=Re(he,Gt.value,Be),Gt!==null&&(se=M(Gt,se,$t),yt===null?lt=Gt:yt.sibling=Gt,yt=Gt);return kr&&Sc(he,$t),lt}for(vt=k(he,vt);!Gt.done;$t++,Gt=pe.next())Gt=Ye(vt,he,$t,Gt.value,Be),Gt!==null&&(f&&Gt.alternate!==null&&vt.delete(Gt.key===null?$t:Gt.key),se=M(Gt,se,$t),yt===null?lt=Gt:yt.sibling=Gt,yt=Gt);return f&&vt.forEach(function(Lne){return p(he,Lne)}),kr&&Sc(he,$t),lt}function Wr(he,se,pe,Be){if(typeof pe=="object"&&pe!==null&&pe.type===O&&pe.key===null&&(pe=pe.props.children),typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case C:e:{for(var lt=pe.key,yt=se;yt!==null;){if(yt.key===lt){if(lt=pe.type,lt===O){if(yt.tag===7){x(he,yt.sibling),se=A(yt,pe.props.children),se.return=he,he=se;break e}}else if(yt.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===G&&HA(lt)===yt.type){x(he,yt.sibling),se=A(yt,pe.props),se.ref=tp(he,yt,pe),se.return=he,he=se;break e}x(he,yt);break}else p(he,yt);yt=yt.sibling}pe.type===O?(se=Mc(pe.props.children,he.mode,Be,pe.key),se.return=he,he=se):(Be=bg(pe.type,pe.key,pe.props,null,he.mode,Be),Be.ref=tp(he,se,pe),Be.return=he,he=Be)}return D(he);case _:e:{for(yt=pe.key;se!==null;){if(se.key===yt)if(se.tag===4&&se.stateNode.containerInfo===pe.containerInfo&&se.stateNode.implementation===pe.implementation){x(he,se.sibling),se=A(se,pe.children||[]),se.return=he,he=se;break e}else{x(he,se);break}else p(he,se);se=se.sibling}se=A4(pe,he.mode,Be),se.return=he,he=se}return D(he);case G:return yt=pe._init,Wr(he,se,yt(pe._payload),Be)}if(Ve(pe))return et(he,se,pe,Be);if(K(pe))return st(he,se,pe,Be);G1(he,pe)}
vendor: 4,297 bytes, line 38
38return typeof pe=="string"&&pe!==""||typeof pe=="number"?(pe=""+pe,se!==null&&se.tag===6?(x(he,se.sibling),se=A(se,pe),se.return=he,he=se):(x(he,se),se=_4(pe,he.mode,Be),se.return=he,he=se),D(he)):x(he,se)}return Wr}var ud=FA(!0),zA=FA(!1),K1=ml(null),Y1=null,dd=null,L5=null;function B5(){L5=dd=Y1=null}function H5(f){var p=K1.current;xr(K1),f._currentValue=p}function F5(f,p,x){for(;f!==null;){var k=f.alternate;if((f.childLanes&p)!==p?(f.childLanes|=p,k!==null&&(k.childLanes|=p)):k!==null&&(k.childLanes&p)!==p&&(k.childLanes|=p),f===x)break;f=f.return}}function hd(f,p){Y1=f,L5=dd=null,f=f.dependencies,f!==null&&f.firstContext!==null&&((f.lanes&p)!==0&&(Oa=!0),f.firstContext=null)}function bs(f){var p=f._currentValue;if(L5!==f)if(f={context:f,memoizedValue:p,next:null},dd===null){if(Y1===null)throw Error(r(308));dd=f,Y1.dependencies={lanes:0,firstContext:f}}else dd=dd.next=f;return p}var Cc=null;function z5(f){Cc===null?Cc=[f]:Cc.push(f)}function VA(f,p,x,k){var A=p.interleaved;return A===null?(x.next=x,z5(p)):(x.next=A.next,A.next=x),p.interleaved=x,po(f,k)}function po(f,p){f.lanes|=p;var x=f.alternate;for(x!==null&&(x.lanes|=p),x=f,f=f.return;f!==null;)f.childLanes|=p,x=f.alternate,x!==null&&(x.childLanes|=p),x=f,f=f.return;return x.tag===3?x.stateNode:null}var xl=!1;function V5(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function UA(f,p){f=f.updateQueue,p.updateQueue===f&&(p.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects})}function mo(f,p){return{eventTime:f,lane:p,tag:0,payload:null,callback:null,next:null}}function yl(f,p,x){var k=f.updateQueue;if(k===null)return null;if(k=k.shared,(Wt&2)!==0){var A=k.pending;return A===null?p.next=p:(p.next=A.next,A.next=p),k.pending=p,po(f,x)}return A=k.interleaved,A===null?(p.next=p,z5(k)):(p.next=A.next,A.next=p),k.interleaved=p,po(f,x)}function X1(f,p,x){if(p=p.updateQueue,p!==null&&(p=p.shared,(x&4194240)!==0)){var k=p.lanes;k&=f.pendingLanes,x|=k,p.lanes=x,n5(f,x)}}function qA(f,p){var x=f.updateQueue,k=f.alternate;if(k!==null&&(k=k.updateQueue,x===k)){var A=null,M=null;if(x=x.firstBaseUpdate,x!==null){do{var D={eventTime:x.eventTime,lane:x.lane,tag:x.tag,payload:x.payload,callback:x.callback,next:null};M===null?A=M=D:M=M.next=D,x=x.next}while(x!==null);M===null?A=M=p:M=M.next=p}else A=M=p;x={baseState:k.baseState,firstBaseUpdate:A,lastBaseUpdate:M,shared:k.shared,effects:k.effects},f.updateQueue=x;return}f=x.lastBaseUpdate,f===null?x.firstBaseUpdate=p:f.next=p,x.lastBaseUpdate=p}function J1(f,p,x,k){var A=f.updateQueue;xl=!1;var M=A.firstBaseUpdate,D=A.lastBaseUpdate,J=A.shared.pending;if(J!==null){A.shared.pending=null;var re=J,be=re.next;re.next=null,D===null?M=be:D.next=be,D=re;var Te=f.alternate;Te!==null&&(Te=Te.updateQueue,J=Te.lastBaseUpdate,J!==D&&(J===null?Te.firstBaseUpdate=be:J.next=be,Te.lastBaseUpdate=re))}if(M!==null){var Re=A.baseState;D=0,Te=be=re=null,J=M;do{var Pe=J.lane,Ye=J.eventTime;if((k&Pe)===Pe){Te!==null&&(Te=Te.next={eventTime:Ye,lane:0,tag:J.tag,payload:J.payload,callback:J.callback,next:null});e:{var et=f,st=J;switch(Pe=p,Ye=x,st.tag){case 1:if(et=st.payload,typeof et=="function"){Re=et.call(Ye,Re,Pe);break e}Re=et;break e;case 3:et.flags=et.flags&-65537|128;case 0:if(et=st.payload,Pe=typeof et=="function"?et.call(Ye,Re,Pe):et,Pe==null)break e;Re=Z({},Re,Pe);break e;case 2:xl=!0}}J.callback!==null&&J.lane!==0&&(f.flags|=64,Pe=A.effects,Pe===null?A.effects=[J]:Pe.push(J))}else Ye={eventTime:Ye,lane:Pe,tag:J.tag,payload:J.payload,callback:J.callback,next:null},Te===null?(be=Te=Ye,re=Re):Te=Te.next=Ye,D|=Pe;if(J=J.next,J===null){if(J=A.shared.pending,J===null)break;Pe=J,J=Pe.next,Pe.next=null,A.lastBaseUpdate=Pe,A.shared.pending=null}}while(!0);if(Te===null&&(re=Re),A.baseState=re,A.firstBaseUpdate=be,A.lastBaseUpdate=Te,p=A.shared.interleaved,p!==null){A=p;do D|=A.lane,A=A.next;while(A!==p)}else M===null&&(A.shared.lanes=0);Ac|=D,f.lanes=D,f.memoizedState=Re}}function WA(f,p,x){if(f=p.effects,p.effects=null,f!==null)for(p=0;p<f.length;p++){var k=f[p],A=k.callback;if(A!==null){if(k.callback=null,k=x,typeof A!="function")throw Error(r(191,A));A.call(k)}}}var rp={}
vendor: 9,154 bytes, line 38
38,$i=ml(rp),np=ml(rp),ap=ml(rp);function $c(f){if(f===rp)throw Error(r(174));return f}function U5(f,p){switch(ur(ap,p),ur(np,f),ur($i,rp),f=p.nodeType,f){case 9:case 11:p=(p=p.documentElement)?p.namespaceURI:X(null,"");break;default:f=f===8?p.parentNode:p,p=f.namespaceURI||null,f=f.tagName,p=X(p,f)}xr($i),ur($i,p)}function fd(){xr($i),xr(np),xr(ap)}function GA(f){$c(ap.current);var p=$c($i.current),x=X(p,f.type);p!==x&&(ur(np,f),ur($i,x))}function q5(f){np.current===f&&(xr($i),xr(np))}var Ar=ml(0);function Q1(f){for(var p=f;p!==null;){if(p.tag===13){var x=p.memoizedState;if(x!==null&&(x=x.dehydrated,x===null||x.data==="$?"||x.data==="$!"))return p}else if(p.tag===19&&p.memoizedProps.revealOrder!==void 0){if((p.flags&128)!==0)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===f)break;for(;p.sibling===null;){if(p.return===null||p.return===f)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}var W5=[];function G5(){for(var f=0;f<W5.length;f++)W5[f]._workInProgressVersionPrimary=null;W5.length=0}var Z1=$.ReactCurrentDispatcher,K5=$.ReactCurrentBatchConfig,_c=0,Er=null,ln=null,yn=null,eg=!1,sp=!1,ip=0,ine=0;function Jn(){throw Error(r(321))}function Y5(f,p){if(p===null)return!1;for(var x=0;x<p.length&&x<f.length;x++)if(!qs(f[x],p[x]))return!1;return!0}function X5(f,p,x,k,A,M){if(_c=M,Er=p,p.memoizedState=null,p.updateQueue=null,p.lanes=0,Z1.current=f===null||f.memoizedState===null?une:dne,f=x(k,A),sp){M=0;do{if(sp=!1,ip=0,25<=M)throw Error(r(301));M+=1,yn=ln=null,p.updateQueue=null,Z1.current=hne,f=x(k,A)}while(sp)}if(Z1.current=ng,p=ln!==null&&ln.next!==null,_c=0,yn=ln=Er=null,eg=!1,p)throw Error(r(300));return f}function J5(){var f=ip!==0;return ip=0,f}function _i(){var f={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yn===null?Er.memoizedState=yn=f:yn=yn.next=f,yn}function xs(){if(ln===null){var f=Er.alternate;f=f!==null?f.memoizedState:null}else f=ln.next;var p=yn===null?Er.memoizedState:yn.next;if(p!==null)yn=p,ln=f;else{if(f===null)throw Error(r(310));ln=f,f={memoizedState:ln.memoizedState,baseState:ln.baseState,baseQueue:ln.baseQueue,queue:ln.queue,next:null},yn===null?Er.memoizedState=yn=f:yn=yn.next=f}return yn}function op(f,p){return typeof p=="function"?p(f):p}function Q5(f){var p=xs(),x=p.queue;if(x===null)throw Error(r(311));x.lastRenderedReducer=f;var k=ln,A=k.baseQueue,M=x.pending;if(M!==null){if(A!==null){var D=A.next;A.next=M.next,M.next=D}k.baseQueue=A=M,x.pending=null}if(A!==null){M=A.next,k=k.baseState;var J=D=null,re=null,be=M;do{var Te=be.lane;if((_c&Te)===Te)re!==null&&(re=re.next={lane:0,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null}),k=be.hasEagerState?be.eagerState:f(k,be.action);else{var Re={lane:Te,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null};re===null?(J=re=Re,D=k):re=re.next=Re,Er.lanes|=Te,Ac|=Te}be=be.next}while(be!==null&&be!==M);re===null?D=k:re.next=J,qs(k,p.memoizedState)||(Oa=!0),p.memoizedState=k,p.baseState=D,p.baseQueue=re,x.lastRenderedState=k}if(f=x.interleaved,f!==null){A=f;do M=A.lane,Er.lanes|=M,Ac|=M,A=A.next;while(A!==f)}else A===null&&(x.lanes=0);return[p.memoizedState,x.dispatch]}function Z5(f){var p=xs(),x=p.queue;if(x===null)throw Error(r(311));x.lastRenderedReducer=f;var k=x.dispatch,A=x.pending,M=p.memoizedState;if(A!==null){x.pending=null;var D=A=A.next;do M=f(M,D.action),D=D.next;while(D!==A);qs(M,p.memoizedState)||(Oa=!0),p.memoizedState=M,p.baseQueue===null&&(p.baseState=M),x.lastRenderedState=M}return[M,k]}function KA(){}function YA(f,p){var x=Er,k=xs(),A=p(),M=!qs(k.memoizedState,A);if(M&&(k.memoizedState=A,Oa=!0),k=k.queue,e4(QA.bind(null,x,k,f),[f]),k.getSnapshot!==p||M||yn!==null&&yn.memoizedState.tag&1){if(x.flags|=2048,lp(9,JA.bind(null,x,k,A,p),void 0,null),vn===null)throw Error(r(349));(_c&30)!==0||XA(x,p,A)}return A}function XA(f,p,x){f.flags|=16384,f={getSnapshot:p,value:x},p=Er.updateQueue,p===null?(p={lastEffect:null,stores:null},Er.updateQueue=p,p.stores=[f]):(x=p.stores,x===null?p.stores=[f]:x.push(f))}function JA(f,p,x,k){p.value=x,p.getSnapshot=k,ZA(p)&&eE(f)}function QA(f,p,x){return x(function(){ZA(p)&&eE(f)})}function ZA(f){var p=f.getSnapshot;f=f.value;try{var x=p();return!qs(f,x)}catch{return!0}}function eE(f){var p=po(f,1);p!==null&&Xs(p,f,1,-1)}function tE(f){var p=_i();return typeof f=="function"&&(f=f()),p.memoizedState=p.baseState=f,f={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:op,lastRenderedState:f},p.queue=f,f=f.dispatch=cne.bind(null,Er,f),[p.memoizedState,f]}function lp(f,p,x,k){return f={tag:f,create:p,destroy:x,deps:k,next:null},p=Er.updateQueue,p===null?(p={lastEffect:null,stores:null},Er.updateQueue=p,p.lastEffect=f.next=f):(x=p.lastEffect,x===null?p.lastEffect=f.next=f:(k=x.next,x.next=f,f.next=k,p.lastEffect=f)),f}function rE(){return xs().memoizedState}function tg(f,p,x,k){var A=_i();Er.flags|=f,A.memoizedState=lp(1|p,x,void 0,k===void 0?null:k)}function rg(f,p,x,k){var A=xs();k=k===void 0?null:k;var M=void 0;if(ln!==null){var D=ln.memoizedState;if(M=D.destroy,k!==null&&Y5(k,D.deps)){A.memoizedState=lp(p,x,M,k);return}}Er.flags|=f,A.memoizedState=lp(1|p,x,M,k)}function nE(f,p){return tg(8390656,8,f,p)}function e4(f,p){return rg(2048,8,f,p)}function aE(f,p){return rg(4,2,f,p)}function sE(f,p){return rg(4,4,f,p)}function iE(f,p){if(typeof p=="function")return f=f(),p(f),function(){p(null)};if(p!=null)return f=f(),p.current=f,function(){p.current=null}}function oE(f,p,x){return x=x!=null?x.concat([f]):null,rg(4,4,iE.bind(null,p,f),x)}function t4(){}function lE(f,p){var x=xs();p=p===void 0?null:p;var k=x.memoizedState;return k!==null&&p!==null&&Y5(p,k[1])?k[0]:(x.memoizedState=[f,p],f)}function cE(f,p){var x=xs();p=p===void 0?null:p;var k=x.memoizedState;return k!==null&&p!==null&&Y5(p,k[1])?k[0]:(f=f(),x.memoizedState=[f,p],f)}function uE(f,p,x){return(_c&21)===0?(f.baseState&&(f.baseState=!1,Oa=!0),f.memoizedState=x):(qs(x,p)||(x=H_(),Er.lanes|=x,Ac|=x,f.baseState=!0),p)}function one(f,p){var x=nr;nr=x!==0&&4>x?x:4,f(!0);var k=K5.transition;K5.transition={};try{f(!1),p()}finally{nr=x,K5.transition=k}}function dE(){return xs().memoizedState}function lne(f,p,x){var k=jl(f);if(x={lane:k,action:x,hasEagerState:!1,eagerState:null,next:null},hE(f))fE(p,x);else if(x=VA(f,p,x,k),x!==null){var A=pa();Xs(x,f,k,A),pE(x,p,k)}}function cne(f,p,x){var k=jl(f),A={lane:k,action:x,hasEagerState:!1,eagerState:null,next:null};if(hE(f))fE(p,A);else{var M=f.alternate;if(f.lanes===0&&(M===null||M.lanes===0)&&(M=p.lastRenderedReducer,M!==null))try{var D=p.lastRenderedState,J=M(D,x);if(A.hasEagerState=!0,A.eagerState=J,qs(J,D)){var re=p.interleaved;re===null?(A.next=A,z5(p)):(A.next=re.next,re.next=A),p.interleaved=A;return}}catch{}finally{}x=VA(f,p,A,k),x!==null&&(A=pa(),Xs(x,f,k,A),pE(x,p,k))}}function hE(f){var p=f.alternate;return f===Er||p!==null&&p===Er}function fE(f,p){sp=eg=!0;var x=f.pending;x===null?p.next=p:(p.next=x.next,x.next=p),f.pending=p}function pE(f,p,x){if((x&4194240)!==0){var k=p.lanes;k&=f.pendingLanes,x|=k,p.lanes=x,n5(f,x)}}var ng={readContext:bs,useCallback:Jn,useContext:Jn,useEffect:Jn,useImperativeHandle:Jn,useInsertionEffect:Jn,useLayoutEffect:Jn,useMemo:Jn,useReducer:Jn,useRef:Jn,useState:Jn,useDebugValue:Jn,useDeferredValue:Jn,useTransition:Jn,useMutableSource:Jn,useSyncExternalStore:Jn,useId:Jn,unstable_isNewReconciler:!1},une={readContext:bs,useCallback:function(f,p){return _i().memoizedState=[f,p===void 0?null:p],f},useContext:bs,useEffect:nE,useImperativeHandle:function(f,p,x){return x=x!=null?x.concat([f]):null,tg(4194308,4,iE.bind(null,p,f),x)},useLayoutEffect:function(f,p){return tg(4194308,4,f,p)},useInsertionEffect:function(f,p){return tg(4,2,f,p)},useMemo:function(f,p){var x=_i();return p=p===void 0?null:p,f=f(),x.memoizedState=[f,p],f},useReducer:function(f,p,x){var k=_i();return p=x!==void 0?x(p):p,k.memoizedState=k.baseState=p,f={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:p},k.queue=f,f=f.dispatch=lne.bind(null,Er,f),[k.memoizedState,f]},useRef:function(f){var p=_i();return f={current:f},p.memoizedState=f},useState:tE,useDebugValue:t4,useDeferredValue:function(f){return _i().memoizedState=f},useTransition:function(){var f=tE(!1),p=f[0];return f=one.bind(null,f[1]),_i().memoizedState=f,[p,f]},useMutableSource:function(){},useSyncExternalStore:function(f,p,x){var k=Er,A=_i();if(kr){if(x===void 0)throw Error(r(407));x=x()}else{if(x=p(),vn===null)throw Error(r(349));(_c&30)!==0||XA(k,p,x)}A.memoizedState=x;var M={value:x,getSnapshot:p};return A.queue=M,nE(QA.bind(null,k,M,f),[f]),k.flags|=2048,lp(9,JA.bind(null,k,M,x,p),void 0,null),x},useId:function(){var f=_i(),p=vn.identifierPrefix;if(kr){var x=fo,k=ho;x=(k&~(1<<32-Us(k)-1)).toString(32)+x,p=":"+p+"R"+x,x=ip++,0<x&&(p+="H"+x.toString(32)),p+=":"}else x=ine++,p=":"+p+"r"+x.toString(32)+":";return f.memoizedState=p},unstable_isNewReconciler:!1},dne={readContext:bs,useCallback:lE,useContext:bs,useEffect:e4,useImperativeHandle:oE,useInsertionEffect:aE,useLayoutEffect:sE,useMemo:cE,useReducer:Q5,useRef
vendor: 4,691 bytes, lines 38-40
38:rE,useState:function(){return Q5(op)},useDebugValue:t4,useDeferredValue:function(f){var p=xs();return uE(p,ln.memoizedState,f)},useTransition:function(){var f=Q5(op)[0],p=xs().memoizedState;return[f,p]},useMutableSource:KA,useSyncExternalStore:YA,useId:dE,unstable_isNewReconciler:!1},hne={readContext:bs,useCallback:lE,useContext:bs,useEffect:e4,useImperativeHandle:oE,useInsertionEffect:aE,useLayoutEffect:sE,useMemo:cE,useReducer:Z5,useRef:rE,useState:function(){return Z5(op)},useDebugValue:t4,useDeferredValue:function(f){var p=xs();return ln===null?p.memoizedState=f:uE(p,ln.memoizedState,f)},useTransition:function(){var f=Z5(op)[0],p=xs().memoizedState;return[f,p]},useMutableSource:KA,useSyncExternalStore:YA,useId:dE,unstable_isNewReconciler:!1};function Gs(f,p){if(f&&f.defaultProps){p=Z({},p),f=f.defaultProps;for(var x in f)p[x]===void 0&&(p[x]=f[x]);return p}return p}function r4(f,p,x,k){p=f.memoizedState,x=x(k,p),x=x==null?p:Z({},p,x),f.memoizedState=x,f.lanes===0&&(f.updateQueue.baseState=x)}var ag={isMounted:function(f){return(f=f._reactInternals)?lo(f)===f:!1},enqueueSetState:function(f,p,x){f=f._reactInternals;var k=pa(),A=jl(f),M=mo(k,A);M.payload=p,x!=null&&(M.callback=x),p=yl(f,M,A),p!==null&&(Xs(p,f,A,k),X1(p,f,A))},enqueueReplaceState:function(f,p,x){f=f._reactInternals;var k=pa(),A=jl(f),M=mo(k,A);M.tag=1,M.payload=p,x!=null&&(M.callback=x),p=yl(f,M,A),p!==null&&(Xs(p,f,A,k),X1(p,f,A))},enqueueForceUpdate:function(f,p){f=f._reactInternals;var x=pa(),k=jl(f),A=mo(x,k);A.tag=2,p!=null&&(A.callback=p),p=yl(f,A,k),p!==null&&(Xs(p,f,k,x),X1(p,f,k))}};function mE(f,p,x,k,A,M,D){return f=f.stateNode,typeof f.shouldComponentUpdate=="function"?f.shouldComponentUpdate(k,M,D):p.prototype&&p.prototype.isPureReactComponent?!Kf(x,k)||!Kf(A,M):!0}function gE(f,p,x){var k=!1,A=gl,M=p.contextType;return typeof M=="object"&&M!==null?M=bs(M):(A=Ea(p)?jc:Xn.current,k=p.contextTypes,M=(k=k!=null)?id(f,A):gl),p=new p(x,M),f.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=ag,f.stateNode=p,p._reactInternals=f,k&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=A,f.__reactInternalMemoizedMaskedChildContext=M),p}function bE(f,p,x,k){f=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(x,k),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(x,k),p.state!==f&&ag.enqueueReplaceState(p,p.state,null)}function n4(f,p,x,k){var A=f.stateNode;A.props=x,A.state=f.memoizedState,A.refs={},V5(f);var M=p.contextType;typeof M=="object"&&M!==null?A.context=bs(M):(M=Ea(p)?jc:Xn.current,A.context=id(f,M)),A.state=f.memoizedState,M=p.getDerivedStateFromProps,typeof M=="function"&&(r4(f,p,M,x),A.state=f.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(p=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),p!==A.state&&ag.enqueueReplaceState(A,A.state,null),J1(f,x,A,k),A.state=f.memoizedState),typeof A.componentDidMount=="function"&&(f.flags|=4194308)}function pd(f,p){try{var x="",k=p;do x+=ge(k),k=k.return;while(k);var A=x}catch(M){A=` 39Error generating stack: `+M.message+` 40`+M.stack}return{value:f,source:p,stack:A,digest:null}}function a4(f,p,x){return{value:f,source:null,stack:x??null,digest:p??null}}function s4(f,p){try{console.error(p.value)}catch(x){setTimeout(function(){throw x})}}var fne=typeof WeakMap=="function"?WeakMap:Map;function xE(f,p,x){x=mo(-1,x),x.tag=3,x.payload={element:null};var k=p.value;return x.callback=function(){dg||(dg=!0,v4=k),s4(f,p)},x}function yE(f,p,x){x=mo(-1,x),x.tag=3;var k=f.type.getDerivedStateFromError;if(typeof k=="function"){var A=p.value;x.payload=function(){return k(A)},x.callback=function(){s4(f,p)}}var M=f.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(x.callback=function(){s4(f,p),typeof k!="function"&&(wl===null?wl=new Set([this]):wl.add(this));var D=p.stack;this.componentDidCatch(p.value,{componentStack:D!==null?D:""})}),x}function vE(f,p,x){var k=f.pingCache;if(k===null){k=f.pingCache=new fne;var A=new Set;k.set(p,A)}else A=k.get(p),A===void 0&&(A=new Set,k.set(p,A));A.has(x)||(A.add(x),f=$ne.bind(null,f,p,x),p.then(f,f))}function wE(f){do{var p;if((p=f.tag===13)&&(p=f.memoizedState,p=p!==null?p.dehydrated!==null:!0),p)return f;f=f.return}while(f!==null);return null}function NE(f,p,x,k,A){return(f.mode&1)===0?(f===p?f.flags|=65536:(f.flags|=128,x.flags|=131072,x.flags&=-52805,x.tag===1&&(x.alternate===null?x.tag=17:(p=mo(-1,
vendor: 15,568 bytes, line 40
401),p.tag=2,yl(x,p,1))),x.lanes|=1),f):(f.flags|=65536,f.lanes=A,f)}var pne=$.ReactCurrentOwner,Oa=!1;function fa(f,p,x,k){p.child=f===null?zA(p,null,x,k):ud(p,f.child,x,k)}function jE(f,p,x,k,A){x=x.render;var M=p.ref;return hd(p,A),k=X5(f,p,x,k,M,A),x=J5(),f!==null&&!Oa?(p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~A,go(f,p,A)):(kr&&x&&M5(p),p.flags|=1,fa(f,p,k,A),p.child)}function kE(f,p,x,k,A){if(f===null){var M=x.type;return typeof M=="function"&&!$4(M)&&M.defaultProps===void 0&&x.compare===null&&x.defaultProps===void 0?(p.tag=15,p.type=M,SE(f,p,M,k,A)):(f=bg(x.type,null,k,p,p.mode,A),f.ref=p.ref,f.return=p,p.child=f)}if(M=f.child,(f.lanes&A)===0){var D=M.memoizedProps;if(x=x.compare,x=x!==null?x:Kf,x(D,k)&&f.ref===p.ref)return go(f,p,A)}return p.flags|=1,f=Sl(M,k),f.ref=p.ref,f.return=p,p.child=f}function SE(f,p,x,k,A){if(f!==null){var M=f.memoizedProps;if(Kf(M,k)&&f.ref===p.ref)if(Oa=!1,p.pendingProps=k=M,(f.lanes&A)!==0)(f.flags&131072)!==0&&(Oa=!0);else return p.lanes=f.lanes,go(f,p,A)}return i4(f,p,x,k,A)}function CE(f,p,x){var k=p.pendingProps,A=k.children,M=f!==null?f.memoizedState:null;if(k.mode==="hidden")if((p.mode&1)===0)p.memoizedState={baseLanes:0,cachePool:null,transitions:null},ur(gd,Va),Va|=x;else{if((x&1073741824)===0)return f=M!==null?M.baseLanes|x:x,p.lanes=p.childLanes=1073741824,p.memoizedState={baseLanes:f,cachePool:null,transitions:null},p.updateQueue=null,ur(gd,Va),Va|=f,null;p.memoizedState={baseLanes:0,cachePool:null,transitions:null},k=M!==null?M.baseLanes:x,ur(gd,Va),Va|=k}else M!==null?(k=M.baseLanes|x,p.memoizedState=null):k=x,ur(gd,Va),Va|=k;return fa(f,p,A,x),p.child}function $E(f,p){var x=p.ref;(f===null&&x!==null||f!==null&&f.ref!==x)&&(p.flags|=512,p.flags|=2097152)}function i4(f,p,x,k,A){var M=Ea(x)?jc:Xn.current;return M=id(p,M),hd(p,A),x=X5(f,p,x,k,M,A),k=J5(),f!==null&&!Oa?(p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~A,go(f,p,A)):(kr&&k&&M5(p),p.flags|=1,fa(f,p,x,A),p.child)}function _E(f,p,x,k,A){if(Ea(x)){var M=!0;z1(p)}else M=!1;if(hd(p,A),p.stateNode===null)ig(f,p),gE(p,x,k),n4(p,x,k,A),k=!0;else if(f===null){var D=p.stateNode,J=p.memoizedProps;D.props=J;var re=D.context,be=x.contextType;typeof be=="object"&&be!==null?be=bs(be):(be=Ea(x)?jc:Xn.current,be=id(p,be));var Te=x.getDerivedStateFromProps,Re=typeof Te=="function"||typeof D.getSnapshotBeforeUpdate=="function";Re||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(J!==k||re!==be)&&bE(p,D,k,be),xl=!1;var Pe=p.memoizedState;D.state=Pe,J1(p,k,D,A),re=p.memoizedState,J!==k||Pe!==re||Aa.current||xl?(typeof Te=="function"&&(r4(p,x,Te,k),re=p.memoizedState),(J=xl||mE(p,x,J,k,Pe,re,be))?(Re||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount()),typeof D.componentDidMount=="function"&&(p.flags|=4194308)):(typeof D.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=k,p.memoizedState=re),D.props=k,D.state=re,D.context=be,k=J):(typeof D.componentDidMount=="function"&&(p.flags|=4194308),k=!1)}else{D=p.stateNode,UA(f,p),J=p.memoizedProps,be=p.type===p.elementType?J:Gs(p.type,J),D.props=be,Re=p.pendingProps,Pe=D.context,re=x.contextType,typeof re=="object"&&re!==null?re=bs(re):(re=Ea(x)?jc:Xn.current,re=id(p,re));var Ye=x.getDerivedStateFromProps;(Te=typeof Ye=="function"||typeof D.getSnapshotBeforeUpdate=="function")||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(J!==Re||Pe!==re)&&bE(p,D,k,re),xl=!1,Pe=p.memoizedState,D.state=Pe,J1(p,k,D,A);var et=p.memoizedState;J!==Re||Pe!==et||Aa.current||xl?(typeof Ye=="function"&&(r4(p,x,Ye,k),et=p.memoizedState),(be=xl||mE(p,x,be,k,Pe,et,re)||!1)?(Te||typeof D.UNSAFE_componentWillUpdate!="function"&&typeof D.componentWillUpdate!="function"||(typeof D.componentWillUpdate=="function"&&D.componentWillUpdate(k,et,re),typeof D.UNSAFE_componentWillUpdate=="function"&&D.UNSAFE_componentWillUpdate(k,et,re)),typeof D.componentDidUpdate=="function"&&(p.flags|=4),typeof D.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof D.componentDidUpdate!="function"||J===f.memoizedProps&&Pe===f.memoizedState||(p.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||J===f.memoizedProps&&Pe===f.memoizedState||(p.flags|=1024),p.memoizedProps=k,p.memoizedState=et),D.props=k,D.state=et,D.context=re,k=be):(typeof D.componentDidUpdate!="function"||J===f.memoizedProps&&Pe===f.memoizedState||(p.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||J===f.memoizedProps&&Pe===f.memoizedState||(p.flags|=1024),k=!1)}return o4(f,p,x,k,M,A)}function o4(f,p,x,k,A,M){$E(f,p);var D=(p.flags&128)!==0;if(!k&&!D)return A&&MA(p,x,!1),go(f,p,M);k=p.stateNode,pne.current=p;var J=D&&typeof x.getDerivedStateFromError!="function"?null:k.render();return p.flags|=1,f!==null&&D?(p.child=ud(p,f.child,null,M),p.child=ud(p,null,J,M)):fa(f,p,J,M),p.memoizedState=k.state,A&&MA(p,x,!0),p.child}function AE(f){var p=f.stateNode;p.pendingContext?OA(f,p.pendingContext,p.pendingContext!==p.context):p.context&&OA(f,p.context,!1),U5(f,p.containerInfo)}function EE(f,p,x,k,A){return cd(),D5(A),p.flags|=256,fa(f,p,x,k),p.child}var l4={dehydrated:null,treeContext:null,retryLane:0};function c4(f){return{baseLanes:f,cachePool:null,transitions:null}}function OE(f,p,x){var k=p.pendingProps,A=Ar.current,M=!1,D=(p.flags&128)!==0,J;if((J=D)||(J=f!==null&&f.memoizedState===null?!1:(A&2)!==0),J?(M=!0,p.flags&=-129):(f===null||f.memoizedState!==null)&&(A|=1),ur(Ar,A&1),f===null)return I5(p),f=p.memoizedState,f!==null&&(f=f.dehydrated,f!==null)?((p.mode&1)===0?p.lanes=1:f.data==="$!"?p.lanes=8:p.lanes=1073741824,null):(D=k.children,f=k.fallback,M?(k=p.mode,M=p.child,D={mode:"hidden",children:D},(k&1)===0&&M!==null?(M.childLanes=0,M.pendingProps=D):M=xg(D,k,0,null),f=Mc(f,k,x,null),M.return=p,f.return=p,M.sibling=f,p.child=M,p.child.memoizedState=c4(x),p.memoizedState=l4,f):u4(p,D));if(A=f.memoizedState,A!==null&&(J=A.dehydrated,J!==null))return mne(f,p,D,k,J,A,x);if(M){M=k.fallback,D=p.mode,A=f.child,J=A.sibling;var re={mode:"hidden",children:k.children};return(D&1)===0&&p.child!==A?(k=p.child,k.childLanes=0,k.pendingProps=re,p.deletions=null):(k=Sl(A,re),k.subtreeFlags=A.subtreeFlags&14680064),J!==null?M=Sl(J,M):(M=Mc(M,D,x,null),M.flags|=2),M.return=p,k.return=p,k.sibling=M,p.child=k,k=M,M=p.child,D=f.child.memoizedState,D=D===null?c4(x):{baseLanes:D.baseLanes|x,cachePool:null,transitions:D.transitions},M.memoizedState=D,M.childLanes=f.childLanes&~x,p.memoizedState=l4,k}return M=f.child,f=M.sibling,k=Sl(M,{mode:"visible",children:k.children}),(p.mode&1)===0&&(k.lanes=x),k.return=p,k.sibling=null,f!==null&&(x=p.deletions,x===null?(p.deletions=[f],p.flags|=16):x.push(f)),p.child=k,p.memoizedState=null,k}function u4(f,p){return p=xg({mode:"visible",children:p},f.mode,0,null),p.return=f,f.child=p}function sg(f,p,x,k){return k!==null&&D5(k),ud(p,f.child,null,x),f=u4(p,p.pendingProps.children),f.flags|=2,p.memoizedState=null,f}function mne(f,p,x,k,A,M,D){if(x)return p.flags&256?(p.flags&=-257,k=a4(Error(r(422))),sg(f,p,D,k)):p.memoizedState!==null?(p.child=f.child,p.flags|=128,null):(M=k.fallback,A=p.mode,k=xg({mode:"visible",children:k.children},A,0,null),M=Mc(M,A,D,null),M.flags|=2,k.return=p,M.return=p,k.sibling=M,p.child=k,(p.mode&1)!==0&&ud(p,f.child,null,D),p.child.memoizedState=c4(D),p.memoizedState=l4,M);if((p.mode&1)===0)return sg(f,p,D,null);if(A.data==="$!"){if(k=A.nextSibling&&A.nextSibling.dataset,k)var J=k.dgst;return k=J,M=Error(r(419)),k=a4(M,k,void 0),sg(f,p,D,k)}if(J=(D&f.childLanes)!==0,Oa||J){if(k=vn,k!==null){switch(D&-D){case 4:A=2;break;case 16:A=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:A=32;break;case 536870912:A=268435456;break;default:A=0}A=(A&(k.suspendedLanes|D))!==0?0:A,A!==0&&A!==M.retryLane&&(M.retryLane=A,po(f,A),Xs(k,f,A,-1))}return C4(),k=a4(Error(r(421))),sg(f,p,D,k)}return A.data==="$?"?(p.flags|=128,p.child=f.child,p=_ne.bind(null,f),A._reactRetry=p,null):(f=M.treeContext,za=pl(A.nextSibling),Fa=p,kr=!0,Ws=null,f!==null&&(ms[gs++]=ho,ms[gs++]=fo,ms[gs++]=kc,ho=f.id,fo=f.overflow,kc=p),p=u4(p,k.children),p.flags|=4096,p)}function PE(f,p,x){f.lanes|=p;var k=f.alternate;k!==null&&(k.lanes|=p),F5(f.return,p,x)}function d4(f,p,x,k,A){var M=f.memoizedState;M===null?f.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:k,tail:x,tailMode:A}:(M.isBackwards=p,M.rendering=null,M.renderingStartTime=0,M.last=k,M.tail=x,M.tailMode=A)}function ME(f,p,x){var k=p.pendingProps,A=k.revealOrder,M=k.tail;if(fa(f,p,k.children,x),k=Ar.current,(k&2)!==0)k=k&1|2,p.flags|=128;else{if(f!==null&&(f.flags&128)!==0)e:for(f=p.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&PE(f,x,p);else if(f.tag===19)PE(f,x,p);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===p)break e;for(;f.sibling===null;){if(f.return===null||f.return===p)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}k&=1}if(ur(Ar,k),(p.mode&1)===0)p.memoizedState=null;else switch(A){case"forwards":for(x=p.child,A=null;x!==null;)f=x.alternate,f!==null&&Q1(f)===null&&(A=x),x=x.sibling;x=A,x===null?(A=p.child,p.child=null):(A=x.sibling,x.sibling=null),d4(p,!1,A,x,M);break;case"backwards":for(x=null,A=p.child,p.child=null;A!==null;){if(f=A.alternate,f!==null&&Q1(f)===null){p.child=A;break}f=A.sibling,A.sibling=x,x=A,A=f}d4(p,!0,x,null,M);break;case"together":d4(p,!1,null,null,void 0);break;default:p.memoizedState=null}return p.child}function ig(f,p){(p.mode&1)===0&&f!==null&&(f.alternate=null,p.alternate=null,p.flags|=2)}function go(f,p,x){if(f!==null&&(p.dependencies=f.dependencies),Ac|=p.lanes,(x&p.childLanes)===0)return null;if(f!==null&&p.child!==f.child)throw Error(r(153));if(p.child!==null){for(f=p.child,x=Sl(f,f.pendingProps),p.child=x,x.return=p;f.sibling!==null;)f=f.sibling,x=x.sibling=Sl(f,f.pendingProps),x.return=p;x.sibling=null}return p.child}function gne(f,p,x){switch(p.tag){case 3:AE(p),cd();break;case 5:GA(p);break;case 1:Ea(p.type)&&z1(p);break;case 4:U5(p,p.stateNode.containerInfo);break;case 10:var k=p.type._context,A=p.memoizedProps.value;ur(K1,k._currentValue),k._currentValue=A;break;case 13:if(k=p.memoizedState,k!==null)return k.dehydrated!==null?(ur(Ar,Ar.current&1),p.flags|=128,null):(x&p.child.childLanes)!==0?OE(f,p,x):(ur(Ar,Ar.current&1),f=go(f,p,x),f!==null?f.sibling:null);ur(Ar,Ar.current&1);break;case 19:if(k=(x&p.childLanes)!==0,(f.flags&128)!==0){if(k)return ME(f,p,x);p.flags|=128}if(A=p.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),ur(Ar,Ar.current),k)break;return null;case 22:case 23:return p.lanes=0,CE(f,p,x)}return go(f,p,x)}var TE,h4,RE,IE;TE=function(f,p){for(var x=p.child;x!==null;){if(x.tag===5||x.tag===6)f.appendChild(x.stateNode);else if(x.tag!==4&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===p)break;for(;x.sibling===null;){if(x.return===null||x.return===p)return;x=x.return}x.sibling.return=x.return,x=x.sibling}},h4=function(){},RE=function(f,p,x,k){var A=f.memoizedProps;if(A!==k){f=p.stateNode,$c($i.current);var M=null;switch(x){case"input":A=Le(f,A),k=Le(f,k),M=[];break;case"select":A=Z({},A,{value:void 0}),k=Z({},k,{value:void 0}),M=[];break;case"textarea":A=W(f,A),k=W(f,k),M=[];break;default:typeof A.onClick!="function"&&typeof k.onClick=="function"&&(f.onclick=B1)}ir(x,k);var D;x=null;for(be in A)if(!k.hasOwnProperty(be)&&A.hasOwnProperty(be)&&A[be]!=null)if(be==="style"){var J=A[be];for(D in J)J.hasOwnProperty(D)&&(x||(x={}),x[D]="")}else be!=="dangerouslySetInnerHTML"&&be!=="children"&&be!=="suppressContentEditableWarning"&&be!=="suppressHydrationWarning"&&be!=="autoFocus"&&(a.hasOwnProperty(be)?M||(M=[]):(M=M||[]).push(be,null));for(be in k){var re=k[be];if(J=A!=null?A[be]:void 0,k.hasOwnProperty(be)&&re!==J&&(re!=null||J!=null))if(be==="style")if(J){for(D in J)!J.hasOwnProperty(D)||re&&re.hasOwnProperty(D)||(x||(x={}),x[D]="");for(D in re)re.hasOwnProperty(D)&&J[D]!==re[D]&&(x||(x={}),x[D]=re[D])}else x||(M||(M=[]),M.push(be,x)),x=re;else be==="dangerouslySetInnerHTML"?(re=re?re.__html:void 0,J=J?J.__html:void 0,re!=null&&J!==re&&(M=M||[]).push(be,re)):be==="children"?typeof re!="string"&&typeof re!="number"||(M=M||[]).push(be,""+re):be!=="suppressContentEditableWarning"&&be!=="suppressHydrationWarning"&&(a.hasOwnProperty(be)?(re!=null&&be==="onScroll"&&br("scroll",f),M||J===re||(M=[])):(M=M||[]).push(be,re))}x&&(M=M||[]).push("style",x);var be=M;(p.updateQueue=be)&&(p.flags|=4)}},IE=function(f,p,x,k){x!==k&&(p.flags|=4)};function cp(f,p){if(!kr)switch(f.tailMode){case"hidden":p=f.tail;for(var x=null;p!==null;)p.alternate!==null&&(x=p),p=p.sibling;x===null?f.tail=null:x.sibling=null;break;case"collapsed":x=f.tail;for(var k=null;x!==null;)x.alternate!==null&&(k=x),x=x.sibling;k===null?p||f.tail===null?f.tail=null:f.tail.sibling=null:k.sibling=null}}function Qn(f){var p=f.alternate!==null&&f.alternate.child===f.child,x=0,k=0;if(p)for(var A=f.child;A!==null;)x|=A.lanes|A.childLanes,k|=A.subtreeFlags&14680064,k|=A.flags&14680064,A.return=f,A=A.sibling;else for(A=f.child;A!==null;)x|=A.lanes|A.childLanes,k|=A.subtreeFlags,k|=A.flags,A.return=f,A=A.sibling;return f.subtreeFlags|=k,f.childLanes=x,p}function bne(f,p,x){var k=p.pendingProps;switch(T5(p),p.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qn(p),null;case 1:return Ea(p.type)&&F1(),Qn(p),null;case 3:return k=p.stateNode,fd(),xr(Aa),xr(Xn),G5(),k.pendingContext&&(k.context=k.pendingContext,k.pendingContext=null),(f===null||f.child===null)&&(W1(p)?p.flags|=4:f===null||f.memoizedState.isDehydrated&&(p.flags&256)===0||(p.flags|=1024,Ws!==null&&(j4(Ws),Ws=null))),h4(f,p),Qn(p),null;case 5:q5(p);var A=$c(ap.current);if(x=p.type,f!==null&&p.stateNode!=null)RE(f,p,x,k,A),f.ref!==p.ref&&(p.flags|=512,p.flags|=2097152);else{if(!k){if(p.stateNode===null)throw Error(r(166));return Qn(p),null}if(f=$c($i.current),W1(p)){k=p.stateNode,x=p.type;var M=p.memoizedProps;switch(k[Ci]=p,k[Zf]=M,f=(p.mode&1)!==0,x){case"dialog":br("cancel",k),br("close",k);break;case"iframe":case"object":case"embed":br("load",k);break;case"video":case"audio":for(A=0;A<Xf.length;A++)br(Xf[A],k);break;case"source":br("error",k);break;case"img":case"image":case"link":br("error",k),br("load",k);break;case"details":br("toggle",k);break;case"input":Ke(k,M),br("invalid",k);break;case"select":k._wrapperState={wasMultiple:!!M.multiple},br("invalid",k);break;case"textarea":ee(k,M),br("invalid",k)}ir(x,M),A=null;for(var D in M)if(M.hasOwnProperty(D)){var J=M[D];D==="children"?typeof J=="string"?k.textContent!==J&&(M.suppressHydrationWarning!==!0&&L1(k.textContent,J,f),A=["children",J]):typeof J=="number"&&k.textContent!==""+J&&(M.suppressHydrationWarning!==!0&&L1(k.textContent,J,f),A=["children",""+J]):a.hasOwnProperty(D)&&J!=null&&D==="onScroll"&&br("scroll",k)}switch(x){case"input":ke(k),$e(k,M,!0);break;case"textarea":ke(k),xe(k);break;case"select":case"option":break;default:typeof M.onClick=="function"&&(k.onclick=B1)}k=A,p.updateQueue=k,k!==null&&(p.flags|=4)}else{D=A.nodeType===9?A:A.ownerDocument,f==="http://www.w3.org/1999/xhtml"&&(f=ye(x)),f==="http://www.w3.org/1999/xhtml"?x==="script"?(f=D.createElement("div"),f.innerHTML="<script><\/script>
40",f=f.removeChild(f.firstChild)):typeof k.is=="string"?f=D.createElement(x,{is:k.is}):(f=D.createElement(x),x==="select"&&(D=f,k.multiple?D.multiple=!0:k.size&&(D.size=k.size))):f=D.createElementNS(f,x),f[Ci]=p,f[Zf]=k,TE(f,p,!1,!1),p.stateNode=f;e:{switch(D=Vr(x,k),x){case"dialog":br("cancel",f),br("close",f),A=k;break;case"iframe":case"object":case"embed":br("load",f),A=k;break;case"video":case"audio":for(A=0;A<Xf.length;A++)br(Xf[A],f);A=k;break;case"source":br("error",f),A=k;break;case"img":case"image":case"link":br("error",f),br("load",f),A=k;break;case"details":br("toggle",f),A=k;break;case"input":Ke(f,k),A=Le(f,k),br("invalid",f);break;case"option":A=k;break;case"select":f._wrapperState={wasMultiple:!!k.multiple},A=Z({},k,{value:void 0}),br("invalid",f);break;case"textarea":ee(f,k),A=W(f,k),br("invalid",f);break;default:A=k}ir(x,A),J=A;for(M in J)if(J.hasOwnProperty(M)){var re=J[M];M==="style"?it(f,re):M==="dangerouslySetInnerHTML"?(re=re?re.__html:void 0,re!=null&&He(f,re)):M==="children"?typeof re=="string"?(x!=="textarea"||re!=="")&&Ie(f,re):typeof re=="number"&&Ie(f,""+re):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(a.hasOwnProperty(M)?re!=null&&M==="onScroll"&&br("scroll",f):re!=null&&j(f,M,re,D))}switch(x){case"input":ke(f),$e(f,k,!1);break;case"textarea":ke(f),xe(f);break;case"option":k.value!=null&&f.setAttribute("value",""+Ce(k.value));break;case"select":f.multiple=!!k.multiple,M=k.value,M!=null?ae(f,!!k.multiple,M,!1):k.defaultValue!=null&&ae(f,!!k.multiple,k.defaultValue,!0);break;default:typeof A.onClick=="function"&&(f.onclick=B1)}switch(x){case"button":case"input":case"select":case"textarea":k=!!k.autoFocus;break e;case"img":k=!0;break e;default:k=!1}}k&&(p.flags|=4)}p.ref!==null&&(p.flags|=512,p.flags|=2097152)}return Qn(p),null;case 6:if(f&&p.stateNode!=null)IE(f,p,f.memoizedProps,k);else{if(typeof k!="string"&&p.stateNode===null)throw Error(r(166));if(x=$c(ap.current),$c($i.current),W1(p)){if(k=p.stateNode,x=p.memoizedProps,k[Ci]=p,(M=k.nodeValue!==x)&&(f=Fa,f!==null))switch(f.tag){case 3:L1(k.nodeValue,x,(f.mode&1)!==0);break;case 5:f.memoizedProps.suppressHydrationWarning!==!0&&L1(k.nodeValue,x,(f.mode&1)!==0)}M&&(p.flags|=4)}else k=(x.nodeType===9?x:x.ownerDocument).createTextNode(k),k[Ci]=p,p.stateNode=k}return Qn(p),null;case 13:if(xr(Ar),k=p.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(kr&&za!==null&&(p.mode&1)!==0&&(p.flags&128)===0)BA(),cd(),p.flags|=98560,M=!1;else if(M=W1(p),k!==null&&k.dehydrated!==null){if(f===null){if(!M)throw Error(r(318));if(M=p.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(r(317));M[Ci]=p}else cd(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;Qn(p),M=!1}else Ws!==null&&(j4(Ws),Ws=null),M=!0;if(!M)return p.flags&65536?p:null}return(p.flags&128)!==0?(p.lanes=x,p):(k=k!==null,k!==(f!==null&&f.memoizedState!==null)&&k&&(p.child.flags|=8192,(p.mode&1)!==0&&(f===null||(Ar.current&1)!==0?cn===0&&(cn=3):C4())),p.updateQueue!==null&&(p.flags|=4),Qn(p),null);case 4:return fd(),h4(f,p),f===null&&Jf(p.stateNode.containerInfo),Qn(p),null;case 10:return H5(p.type._context),Qn(p),null;case 17:return Ea(p.type)&&F1(),Qn(p),null;case 19:if(xr(Ar),M=p.memoizedState,M===null)return Qn(p),null;if(k=(p.flags&128)!==0,D=M.rendering,D===null)if(k)cp(M,!1);else{if(cn!==0||f!==null&&(f.flags&128)!==0)for(f=p.child;f!==null;){if(D=Q1(f),D!==null){for(p.flags|=128,cp(M,!1),k=D.updateQueue,k!==null&&(p.updateQueue=k,p.flags|=4),p.subtreeFlags=0,k=x,x=p.child;x!==null;)M=x,f=k,M.flags&=14680066,D=M.alternate,D===null?(M.childLanes=0,M.lanes=f,M.child=null,M.subtreeFlags=0,M.memoizedProps=null,M.memoizedState=null,M.updateQueue=null,M.dependencies=null,M.stateNode=null):(M.childLanes=D.childLanes,M.lanes=D.lanes,M.child=D.child,M.subtreeFlags=0,M.deletions=null,M.memoizedProps=D.memoizedProps,M.memoizedState=D.memoizedState,M.updateQueue=D.updateQueue,M.type=D.type,f=D.dependencies,M.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),x=x.sibling;return ur(Ar,Ar.current&1|2),p.child}f=f.sibling}M.tail!==null&&Ze()>bd&&(p.flags|=128,k=!0,cp(M,!1),p.lanes=4194304)}else{if(!k)if(f=Q1(D),f!==null){if(p.flags|=128,k=!0,x=f.updateQueue,x!==null&&(p.updateQueue=x,p.flags|=4),cp(M,!0),M.tail===null&&M.tailMode==="hidden"&&!D.alternate&&!kr)return Qn(p),null}else 2*Ze()-M.renderingStartTime>bd&&x!==1073741824&&(p.flags|=128,k=!0,cp(M,!1),p.lanes=4194304);M.isBackwards?(D.sibling=p.child,p.child=D):(x=M.last,x!==null?x.sibling=D:p.child=D,M.last=D)}return M.tail!==null?(p=M.tail,M.rendering=p,M.tail=p.sibling,M.renderingStartTime=Ze(),p.sibling=null,x=Ar.current,ur(Ar,k?x&1|2:x&1),p):(Qn(p),null);case 22:case 23:return S4(),k=p.memoizedState!==null,f!==null&&f.memoizedState!==null!==k&&(p.flags|=8192),k&&(p.mode&1)!==0?(Va&1073741824)!==0&&(Qn(p),p.subtreeFlags&6&&(p.flags|=8192)):Qn(p),null;case 24:return null;case 25:return null}throw Error(r(156,p.tag))}
vendor: 20,368 bytes, line 40
40function xne(f,p){switch(T5(p),p.tag){case 1:return Ea(p.type)&&F1(),f=p.flags,f&65536?(p.flags=f&-65537|128,p):null;case 3:return fd(),xr(Aa),xr(Xn),G5(),f=p.flags,(f&65536)!==0&&(f&128)===0?(p.flags=f&-65537|128,p):null;case 5:return q5(p),null;case 13:if(xr(Ar),f=p.memoizedState,f!==null&&f.dehydrated!==null){if(p.alternate===null)throw Error(r(340));cd()}return f=p.flags,f&65536?(p.flags=f&-65537|128,p):null;case 19:return xr(Ar),null;case 4:return fd(),null;case 10:return H5(p.type._context),null;case 22:case 23:return S4(),null;case 24:return null;default:return null}}var og=!1,Zn=!1,yne=typeof WeakSet=="function"?WeakSet:Set,Je=null;function md(f,p){var x=f.ref;if(x!==null)if(typeof x=="function")try{x(null)}catch(k){Ir(f,p,k)}else x.current=null}function f4(f,p,x){try{x()}catch(k){Ir(f,p,k)}}var DE=!1;function vne(f,p){if(S5=$1,f=mA(),b5(f)){if("selectionStart"in f)var x={start:f.selectionStart,end:f.selectionEnd};else e:{x=(x=f.ownerDocument)&&x.defaultView||window;var k=x.getSelection&&x.getSelection();if(k&&k.rangeCount!==0){x=k.anchorNode;var A=k.anchorOffset,M=k.focusNode;k=k.focusOffset;try{x.nodeType,M.nodeType}catch{x=null;break e}var D=0,J=-1,re=-1,be=0,Te=0,Re=f,Pe=null;t:for(;;){for(var Ye;Re!==x||A!==0&&Re.nodeType!==3||(J=D+A),Re!==M||k!==0&&Re.nodeType!==3||(re=D+k),Re.nodeType===3&&(D+=Re.nodeValue.length),(Ye=Re.firstChild)!==null;)Pe=Re,Re=Ye;for(;;){if(Re===f)break t;if(Pe===x&&++be===A&&(J=D),Pe===M&&++Te===k&&(re=D),(Ye=Re.nextSibling)!==null)break;Re=Pe,Pe=Re.parentNode}Re=Ye}x=J===-1||re===-1?null:{start:J,end:re}}else x=null}x=x||{start:0,end:0}}else x=null;for(C5={focusedElem:f,selectionRange:x},$1=!1,Je=p;Je!==null;)if(p=Je,f=p.child,(p.subtreeFlags&1028)!==0&&f!==null)f.return=p,Je=f;else for(;Je!==null;){p=Je;try{var et=p.alternate;if((p.flags&1024)!==0)switch(p.tag){case 0:case 11:case 15:break;case 1:if(et!==null){var st=et.memoizedProps,Wr=et.memoizedState,he=p.stateNode,se=he.getSnapshotBeforeUpdate(p.elementType===p.type?st:Gs(p.type,st),Wr);he.__reactInternalSnapshotBeforeUpdate=se}break;case 3:var pe=p.stateNode.containerInfo;pe.nodeType===1?pe.textContent="":pe.nodeType===9&&pe.documentElement&&pe.removeChild(pe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Be){Ir(p,p.return,Be)}if(f=p.sibling,f!==null){f.return=p.return,Je=f;break}Je=p.return}return et=DE,DE=!1,et}function up(f,p,x){var k=p.updateQueue;if(k=k!==null?k.lastEffect:null,k!==null){var A=k=k.next;do{if((A.tag&f)===f){var M=A.destroy;A.destroy=void 0,M!==void 0&&f4(p,x,M)}A=A.next}while(A!==k)}}function lg(f,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var x=p=p.next;do{if((x.tag&f)===f){var k=x.create;x.destroy=k()}x=x.next}while(x!==p)}}function p4(f){var p=f.ref;if(p!==null){var x=f.stateNode;switch(f.tag){case 5:f=x;break;default:f=x}typeof p=="function"?p(f):p.current=f}}function LE(f){var p=f.alternate;p!==null&&(f.alternate=null,LE(p)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(p=f.stateNode,p!==null&&(delete p[Ci],delete p[Zf],delete p[E5],delete p[rne],delete p[nne])),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}function BE(f){return f.tag===5||f.tag===3||f.tag===4}function HE(f){e:for(;;){for(;f.sibling===null;){if(f.return===null||BE(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.flags&2||f.child===null||f.tag===4)continue e;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function m4(f,p,x){var k=f.tag;if(k===5||k===6)f=f.stateNode,p?x.nodeType===8?x.parentNode.insertBefore(f,p):x.insertBefore(f,p):(x.nodeType===8?(p=x.parentNode,p.insertBefore(f,x)):(p=x,p.appendChild(f)),x=x._reactRootContainer,x!=null||p.onclick!==null||(p.onclick=B1));else if(k!==4&&(f=f.child,f!==null))for(m4(f,p,x),f=f.sibling;f!==null;)m4(f,p,x),f=f.sibling}function g4(f,p,x){var k=f.tag;if(k===5||k===6)f=f.stateNode,p?x.insertBefore(f,p):x.appendChild(f);else if(k!==4&&(f=f.child,f!==null))for(g4(f,p,x),f=f.sibling;f!==null;)g4(f,p,x),f=f.sibling}var En=null,Ks=!1;function vl(f,p,x){for(x=x.child;x!==null;)FE(f,p,x),x=x.sibling}function FE(f,p,x){if(Si&&typeof Si.onCommitFiberUnmount=="function")try{Si.onCommitFiberUnmount(w1,x)}catch{}switch(x.tag){case 5:Zn||md(x,p);case 6:var k=En,A=Ks;En=null,vl(f,p,x),En=k,Ks=A,En!==null&&(Ks?(f=En,x=x.stateNode,f.nodeType===8?f.parentNode.removeChild(x):f.removeChild(x)):En.removeChild(x.stateNode));break;case 18:En!==null&&(Ks?(f=En,x=x.stateNode,f.nodeType===8?A5(f.parentNode,x):f.nodeType===1&&A5(f,x),zf(f)):A5(En,x.stateNode));break;case 4:k=En,A=Ks,En=x.stateNode.containerInfo,Ks=!0,vl(f,p,x),En=k,Ks=A;break;case 0:case 11:case 14:case 15:if(!Zn&&(k=x.updateQueue,k!==null&&(k=k.lastEffect,k!==null))){A=k=k.next;do{var M=A,D=M.destroy;M=M.tag,D!==void 0&&((M&2)!==0||(M&4)!==0)&&f4(x,p,D),A=A.next}while(A!==k)}vl(f,p,x);break;case 1:if(!Zn&&(md(x,p),k=x.stateNode,typeof k.componentWillUnmount=="function"))try{k.props=x.memoizedProps,k.state=x.memoizedState,k.componentWillUnmount()}catch(J){Ir(x,p,J)}vl(f,p,x);break;case 21:vl(f,p,x);break;case 22:x.mode&1?(Zn=(k=Zn)||x.memoizedState!==null,vl(f,p,x),Zn=k):vl(f,p,x);break;default:vl(f,p,x)}}function zE(f){var p=f.updateQueue;if(p!==null){f.updateQueue=null;var x=f.stateNode;x===null&&(x=f.stateNode=new yne),p.forEach(function(k){var A=Ane.bind(null,f,k);x.has(k)||(x.add(k),k.then(A,A))})}}function Ys(f,p){var x=p.deletions;if(x!==null)for(var k=0;k<x.length;k++){var A=x[k];try{var M=f,D=p,J=D;e:for(;J!==null;){switch(J.tag){case 5:En=J.stateNode,Ks=!1;break e;case 3:En=J.stateNode.containerInfo,Ks=!0;break e;case 4:En=J.stateNode.containerInfo,Ks=!0;break e}J=J.return}if(En===null)throw Error(r(160));FE(M,D,A),En=null,Ks=!1;var re=A.alternate;re!==null&&(re.return=null),A.return=null}catch(be){Ir(A,p,be)}}if(p.subtreeFlags&12854)for(p=p.child;p!==null;)VE(p,f),p=p.sibling}function VE(f,p){var x=f.alternate,k=f.flags;switch(f.tag){case 0:case 11:case 14:case 15:if(Ys(p,f),Ai(f),k&4){try{up(3,f,f.return),lg(3,f)}catch(st){Ir(f,f.return,st)}try{up(5,f,f.return)}catch(st){Ir(f,f.return,st)}}break;case 1:Ys(p,f),Ai(f),k&512&&x!==null&&md(x,x.return);break;case 5:if(Ys(p,f),Ai(f),k&512&&x!==null&&md(x,x.return),f.flags&32){var A=f.stateNode;try{Ie(A,"")}catch(st){Ir(f,f.return,st)}}if(k&4&&(A=f.stateNode,A!=null)){var M=f.memoizedProps,D=x!==null?x.memoizedProps:M,J=f.type,re=f.updateQueue;if(f.updateQueue=null,re!==null)try{J==="input"&&M.type==="radio"&&M.name!=null&&ne(A,M),Vr(J,D);var be=Vr(J,M);for(D=0;D<re.length;D+=2){var Te=re[D],Re=re[D+1];Te==="style"?it(A,Re):Te==="dangerouslySetInnerHTML"?He(A,Re):Te==="children"?Ie(A,Re):j(A,Te,Re,be)}switch(J){case"input":Se(A,M);break;case"textarea":Q(A,M);break;case"select":var Pe=A._wrapperState.wasMultiple;A._wrapperState.wasMultiple=!!M.multiple;var Ye=M.value;Ye!=null?ae(A,!!M.multiple,Ye,!1):Pe!==!!M.multiple&&(M.defaultValue!=null?ae(A,!!M.multiple,M.defaultValue,!0):ae(A,!!M.multiple,M.multiple?[]:"",!1))}A[Zf]=M}catch(st){Ir(f,f.return,st)}}break;case 6:if(Ys(p,f),Ai(f),k&4){if(f.stateNode===null)throw Error(r(162));A=f.stateNode,M=f.memoizedProps;try{A.nodeValue=M}catch(st){Ir(f,f.return,st)}}break;case 3:if(Ys(p,f),Ai(f),k&4&&x!==null&&x.memoizedState.isDehydrated)try{zf(p.containerInfo)}catch(st){Ir(f,f.return,st)}break;case 4:Ys(p,f),Ai(f);break;case 13:Ys(p,f),Ai(f),A=f.child,A.flags&8192&&(M=A.memoizedState!==null,A.stateNode.isHidden=M,!M||A.alternate!==null&&A.alternate.memoizedState!==null||(y4=Ze())),k&4&&zE(f);break;case 22:if(Te=x!==null&&x.memoizedState!==null,f.mode&1?(Zn=(be=Zn)||Te,Ys(p,f),Zn=be):Ys(p,f),Ai(f),k&8192){if(be=f.memoizedState!==null,(f.stateNode.isHidden=be)&&!Te&&(f.mode&1)!==0)for(Je=f,Te=f.child;Te!==null;){for(Re=Je=Te;Je!==null;){switch(Pe=Je,Ye=Pe.child,Pe.tag){case 0:case 11:case 14:case 15:up(4,Pe,Pe.return);break;case 1:md(Pe,Pe.return);var et=Pe.stateNode;if(typeof et.componentWillUnmount=="function"){k=Pe,x=Pe.return;try{p=k,et.props=p.memoizedProps,et.state=p.memoizedState,et.componentWillUnmount()}catch(st){Ir(k,x,st)}}break;case 5:md(Pe,Pe.return);break;case 22:if(Pe.memoizedState!==null){WE(Re);continue}}Ye!==null?(Ye.return=Pe,Je=Ye):WE(Re)}Te=Te.sibling}e:for(Te=null,Re=f;;){if(Re.tag===5){if(Te===null){Te=Re;try{A=Re.stateNode,be?(M=A.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none"):(J=Re.stateNode,re=Re.memoizedProps.style,D=re!=null&&re.hasOwnProperty("display")?re.display:null,J.style.display=ie("display",D))}catch(st){Ir(f,f.return,st)}}}else if(Re.tag===6){if(Te===null)try{Re.stateNode.nodeValue=be?"":Re.memoizedProps}catch(st){Ir(f,f.return,st)}}else if((Re.tag!==22&&Re.tag!==23||Re.memoizedState===null||Re===f)&&Re.child!==null){Re.child.return=Re,Re=Re.child;continue}if(Re===f)break e;for(;Re.sibling===null;){if(Re.return===null||Re.return===f)break e;Te===Re&&(Te=null),Re=Re.return}Te===Re&&(Te=null),Re.sibling.return=Re.return,Re=Re.sibling}}break;case 19:Ys(p,f),Ai(f),k&4&&zE(f);break;case 21:break;default:Ys(p,f),Ai(f)}}function Ai(f){var p=f.flags;if(p&2){try{e:{for(var x=f.return;x!==null;){if(BE(x)){var k=x;break e}x=x.return}throw Error(r(160))}switch(k.tag){case 5:var A=k.stateNode;k.flags&32&&(Ie(A,""),k.flags&=-33);var M=HE(f);g4(f,M,A);break;case 3:case 4:var D=k.stateNode.containerInfo,J=HE(f);m4(f,J,D);break;default:throw Error(r(161))}}catch(re){Ir(f,f.return,re)}f.flags&=-3}p&4096&&(f.flags&=-4097)}function wne(f,p,x){Je=f,UE(f)}function UE(f,p,x){for(var k=(f.mode&1)!==0;Je!==null;){var A=Je,M=A.child;if(A.tag===22&&k){var D=A.memoizedState!==null||og;if(!D){var J=A.alternate,re=J!==null&&J.memoizedState!==null||Zn;J=og;var be=Zn;if(og=D,(Zn=re)&&!be)for(Je=A;Je!==null;)D=Je,re=D.child,D.tag===22&&D.memoizedState!==null?GE(A):re!==null?(re.return=D,Je=re):GE(A);for(;M!==null;)Je=M,UE(M),M=M.sibling;Je=A,og=J,Zn=be}qE(f)}else(A.subtreeFlags&8772)!==0&&M!==null?(M.return=A,Je=M):qE(f)}}function qE(f){for(;Je!==null;){var p=Je;if((p.flags&8772)!==0){var x=p.alternate;try{if((p.flags&8772)!==0)switch(p.tag){case 0:case 11:case 15:Zn||lg(5,p);break;case 1:var k=p.stateNode;if(p.flags&4&&!Zn)if(x===null)k.componentDidMount();else{var A=p.elementType===p.type?x.memoizedProps:Gs(p.type,x.memoizedProps);k.componentDidUpdate(A,x.memoizedState,k.__reactInternalSnapshotBeforeUpdate)}var M=p.updateQueue;M!==null&&WA(p,M,k);break;case 3:var D=p.updateQueue;if(D!==null){if(x=null,p.child!==null)switch(p.child.tag){case 5:x=p.child.stateNode;break;case 1:x=p.child.stateNode}WA(p,D,x)}break;case 5:var J=p.stateNode;if(x===null&&p.flags&4){x=J;var re=p.memoizedProps;switch(p.type){case"button":case"input":case"select":case"textarea":re.autoFocus&&x.focus();break;case"img":re.src&&(x.src=re.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(p.memoizedState===null){var be=p.alternate;if(be!==null){var Te=be.memoizedState;if(Te!==null){var Re=Te.dehydrated;Re!==null&&zf(Re)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Zn||p.flags&512&&p4(p)}catch(Pe){Ir(p,p.return,Pe)}}if(p===f){Je=null;break}if(x=p.sibling,x!==null){x.return=p.return,Je=x;break}Je=p.return}}function WE(f){for(;Je!==null;){var p=Je;if(p===f){Je=null;break}var x=p.sibling;if(x!==null){x.return=p.return,Je=x;break}Je=p.return}}function GE(f){for(;Je!==null;){var p=Je;try{switch(p.tag){case 0:case 11:case 15:var x=p.return;try{lg(4,p)}catch(re){Ir(p,x,re)}break;case 1:var k=p.stateNode;if(typeof k.componentDidMount=="function"){var A=p.return;try{k.componentDidMount()}catch(re){Ir(p,A,re)}}var M=p.return;try{p4(p)}catch(re){Ir(p,M,re)}break;case 5:var D=p.return;try{p4(p)}catch(re){Ir(p,D,re)}}}catch(re){Ir(p,p.return,re)}if(p===f){Je=null;break}var J=p.sibling;if(J!==null){J.return=p.return,Je=J;break}Je=p.return}}var Nne=Math.ceil,cg=$.ReactCurrentDispatcher,b4=$.ReactCurrentOwner,ys=$.ReactCurrentBatchConfig,Wt=0,vn=null,Jr=null,On=0,Va=0,gd=ml(0),cn=0,dp=null,Ac=0,ug=0,x4=0,hp=null,Pa=null,y4=0,bd=1/0,bo=null,dg=!1,v4=null,wl=null,hg=!1,Nl=null,fg=0,fp=0,w4=null,pg=-1,mg=0;function pa(){return(Wt&6)!==0?Ze():pg!==-1?pg:pg=Ze()}function jl(f){return(f.mode&1)===0?1:(Wt&2)!==0&&On!==0?On&-On:sne.transition!==null?(mg===0&&(mg=H_()),mg):(f=nr,f!==0||(f=window.event,f=f===void 0?16:Y_(f.type)),f)}function Xs(f,p,x,k){if(50<fp)throw fp=0,w4=null,Error(r(185));Df(f,x,k),((Wt&2)===0||f!==vn)&&(f===vn&&((Wt&2)===0&&(ug|=x),cn===4&&kl(f,On)),Ma(f,k),x===1&&Wt===0&&(p.mode&1)===0&&(bd=Ze()+500,V1&&bl()))}function Ma(f,p){var x=f.callbackNode;sre(f,p);var k=k1(f,f===vn?On:0);if(k===0)x!==null&&Rf(x),f.callbackNode=null,f.callbackPriority=0;else if(p=k&-k,f.callbackPriority!==p){if(x!=null&&Rf(x),p===1)f.tag===0?ane(YE.bind(null,f)):TA(YE.bind(null,f)),ene(function(){(Wt&6)===0&&bl()}),x=null;else{switch(F_(k)){case 1:x=ps;break;case 4:x=y1;break;case 16:x=v1;break;case 536870912:x=B_;break;default:x=v1}x=nO(x,KE.bind(null,f))}f.callbackPriority=p,f.callbackNode=x}}function KE(f,p){if(pg=-1,mg=0,(Wt&6)!==0)throw Error(r(327));var x=f.callbackNode;if(xd()&&f.callbackNode!==x)return null;var k=k1(f,f===vn?On:0);if(k===0)return null;if((k&30)!==0||(k&f.expiredLanes)!==0||p)p=gg(f,k);else{p=k;var A=Wt;Wt|=2;var M=JE();(vn!==f||On!==p)&&(bo=null,bd=Ze()+500,Oc(f,p));do try{Sne();break}catch(J){XE(f,J)}while(!0);B5(),cg.current=M,Wt=A,Jr!==null?p=0:(vn=null,On=0,p=cn)}if(p!==0){if(p===2&&(A=t5(f),A!==0&&(k=A,p=N4(f,A))),p===1)throw x=dp,Oc(f,0),kl(f,k),Ma(f,Ze()),x;if(p===6)kl(f,k);else{if(A=f.current.alternate,(k&30)===0&&!jne(A)&&(p=gg(f,k),p===2&&(M=t5(f),M!==0&&(k=M,p=N4(f,M))),p===1))throw x=dp,Oc(f,0),kl(f,k),Ma(f,Ze()),x;switch(f.finishedWork=A,f.finishedLanes=k,p){case 0:case 1:throw Error(r(345));case 2:Pc(f,Pa,bo);break;case 3:if(kl(f,k),(k&130023424)===k&&(p=y4+500-Ze(),10<p)){if(k1(f,0)!==0)break;if(A=f.suspendedLanes,(A&k)!==k){pa(),f.pingedLanes|=f.suspendedLanes&A;break}f.timeoutHandle=_5(Pc.bind(null,f,Pa,bo),p);break}Pc(f,Pa,bo);break;case 4:if(kl(f,k),(k&4194240)===k)break;for(p=f.eventTimes,A=-1;0<k;){var D=31-Us(k);M=1<<D,D=p[D],D>A&&(A=D),k&=~M}if(k=A,k=Ze()-k,k=(120>k?120:480>k?480:1080>k?1080:1920>k?1920:3e3>k?3e3:4320>k?4320:1960*Nne(k/1960))-k,10<k){f.timeoutHandle=_5(Pc.bind(null,f,Pa,bo),k);break}Pc(f,Pa,bo);break;case 5:Pc(f,Pa,bo);break;default:throw Error(r(329))}}}return Ma(f,Ze()),f.callbackNode===x?KE.bind(null,f):null}function N4(f,p){var x=hp;return f.current.memoizedState.isDehydrated&&(Oc(f,p).flags|=256),f=gg(f,p),f!==2&&(p=Pa,Pa=x,p!==null&&j4(p)),f}function j4(f){Pa===null?Pa=f:Pa.push.apply(Pa,f)}function jne(f){for(var p=f;;){if(p.flags&16384){var x=p.updateQueue;if(x!==null&&(x=x.stores,x!==null))for(var k=0;k<x.length;k++){var A=x[k],M=A.getSnapshot;A=A.value;try{if(!qs(M(),A))return!1}catch{return!1}}}if(x=p.child,p.subtreeFlags&16384&&x!==null)x.return=p,p=x;else{if(p===f)break;for(;p.sibling===null;){if(p.return===null||p.return===f)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function kl(f,p){for(p&=~x4,p&=~ug,f.suspendedLanes|=p,f.pingedLanes&=~p,f=f.expirationTimes;0<p;){var x=31-Us(p),k=1<<x;f[x]=-1,p&=~k}}function YE(f){if((Wt&6)!==0)throw Error(r(327));xd();var p=k1(f,0);if((p&1)===0)return Ma(f,Ze()),null;var x=gg(f,p);if(f.tag!==0&&x===2){var k=t5(f);k!==0&&(p=k,x=N4(f,k))}if(x===1)throw x=dp,Oc(f,0),kl(f,p),Ma(f,Ze()),x;if(x===6)throw Error(r(345));return f.finishedWork=f.current.alternate,f.finishedLanes=p,Pc(f,Pa,bo),Ma(f,Ze()),null}function k4(f,p){var x=Wt;Wt|=1;try{return f(p)}finally{Wt=x,Wt===0&&(bd=Ze()+500,V1&&bl())}}function Ec(f){Nl!==null&&Nl.tag===0&&(Wt&6)===0&&xd();var p=Wt;Wt|=1;var x=ys.transition,k=nr;try{if(ys.transition=null,nr=1,f)return f()}finally{nr=k,ys.transition=x,Wt=p,(Wt&6)===0&&bl()}}function S4(){Va=gd.current,xr(gd)}function Oc(f,p){f.finishedWork=null,f.finishedLanes=0;var x=f.timeoutHandle;if(x!==-1&&(f.timeoutHandle=-1,Zre(x)),Jr!==null)for(x=Jr.return;x!==null;){var k=x;switch(T5(k),k.tag){case 1:k=k.type.childContextTypes,k!=null&&F1();break;case 3:fd(),xr(Aa),xr(Xn),G5();break;case 5:q5(k);break;case 4:fd();break;case 13:xr(Ar);break;case 19:xr(Ar);break;case 10:H5(k.type._context);break;case 22:case 23:S4()}x=x.return}if(vn=f,Jr=f=Sl(f.current,null),On=Va=p,cn=0,dp=null,x4=ug=Ac=0,Pa=hp=null,Cc!==null){for(p=0;p<Cc.length;p++)if(x=Cc[p],k=x.interleaved,k!==null){x.interleaved=null;var A=k.next,M=x.pending;if(M!==null){var D=M.next;M.next=A,k.next=D}x.pending=k}Cc=null}return f}function XE(f,p){do{var x=Jr;try{if(B5(),Z1.current=ng,eg){for(var k=Er.memoizedState;k!==null;){var A=k.queue;A!==null&&(A.pending=null),k=k.next}eg=!1}if(_c=0,yn=ln=Er=null,sp=!1,ip=0,b4.current=null,x===null||x.return===null){cn=1,dp=p,Jr=null;break}e:{var M=f,D=x.return,J=x,re=p;if(p=On,J.flags|=32768,re!==null&&typeof re=="object"&&typeof re.then=="function"){var be=re,Te=J,Re=Te.tag;if((Te.mode&1)===0&&(Re===0||Re===11||Re===15)){var Pe=Te.alternate;Pe?(Te.updateQueue=Pe.updateQueue,Te.memoizedState=Pe.memoizedState,Te.lanes=Pe.lanes):(Te.updateQueue=null,Te.memoizedState=null)}var Ye=wE(D);if(Ye!==null){Ye.flags&=-257,NE(Ye,D,J,M,p),Ye.mode&1&&vE(M,be,p),p=Ye,re=be;var et=p.updateQueue;if(et===null){var st=new Set;st.add(re),p.updateQueue=st}else et.add(re);break e}else{if((p&1)===0){vE(M,be,p),C4();break e}re=Error(r(426))}}else if(kr&&J.mode&1){var Wr=wE(D);if(Wr!==null){(Wr.flags&65536)===0&&(Wr.flags|=256),NE(Wr,D,J,M,p),D5(pd(re,J));break e}}M=re=pd(re,J),cn!==4&&(cn=2),hp===null?hp=[M]:hp.push(M),M=D;do{switch(M.tag){case 3:M.flags|=65536,p&=-p,M.lanes|=p;var he=xE(M,re,p);qA(M,he);break e;case 1:J=re;var se=M.type,pe=M.stateNode;if((M.flags&128)===0&&(typeof se.getDerivedStateFromError=="function"||pe!==null&&typeof pe.componentDidCatch=="function"&&(wl===null||!wl.has(pe)))){M.flags|=65536,p&=-p,M.lanes|=p;var Be=yE(M,J,p);qA(M,Be);break e}}M=M.return}while(M!==null)}ZE(x)}catch(lt){p=lt,Jr===x&&x!==null&&(Jr=x=x.return);continue}break}while(!0)}function JE(){var f=cg.current;return cg.current=ng,f===null?ng:f}function C4(){(cn===0||cn===3||cn===2)&&(cn=4),vn===null||(Ac&268435455)===0&&(ug&268435455)===0||kl(vn,On)}function gg(f,p){var x=Wt;Wt|=2;var k=JE();(vn!==f||On!==p)&&(bo=null,Oc(f,p));do try{kne();break}catch(A){XE(f,A)}while(!0);if(B5(),Wt=x,cg.current=k,Jr!==null)throw Error(r(261));return vn=null,On=0,cn}function kne(){for(;Jr!==null;)QE(Jr)}function Sne(){for(;Jr!==null&&!Ne();)QE(Jr)}function QE(f){var p=rO(f.alternate,f,Va);f.memoizedProps=f.pendingProps,p===null?ZE(f):Jr=p,b4.current=null}function ZE(f){var p=f;do{var x=p.alternate;if(f=p.return,(p.flags&32768)===0){if(x=bne(x,p,Va),x!==null){Jr=x;return}}else{if(x=xne(x,p),x!==null){x.flags&=32767,Jr=x;return}if(f!==null)f.flags|=32768,f.subtreeFlags=0,f.deletions=null;else{cn=6,Jr=null;return}}if(p=p.sibling,p!==null){Jr=p;return}Jr=p=f}while(p!==null);cn===0&&(cn=5)}function Pc(f,p,x){var k=nr,A=ys.transition;try{ys.transition=null,nr=1,Cne(f,p,x,k)}finally{ys.transition=A,nr=k}return null}function Cne(f,p,x,k){do xd();while(Nl!==null);if((Wt&6)!==0)throw Error(r(327));x=f.finishedWork;var A=f.finishedLanes;if(x===null)return null;if(f.finishedWork=null,f.finishedLanes=0,x===f.current)throw Error(r(177));f.callbackNode=null,f.callbackPriority=0;var M=x.lanes|x.childLanes;if(ire(f,M),f===vn&&(Jr=vn=null,On=0),(x.subtreeFlags&2064)===0&&(x.flags&2064)===0||hg||(hg=!0,nO(v1,function(){return xd(),null})),M=(x.flags&15990)!==0,(x.subtreeFlags&15990)!==0||M){M=ys.transition,ys.transition=null;var D=nr;nr=1;var J=Wt;Wt|=4,b4.current=null,vne(f,x),VE(x,f),Wre(C5),$1=!!S5,C5=S5=null,f.current=x,wne(x),Me(),Wt=J,nr=D,ys.transition=M}else f.current=x;if(hg&&(hg=!1,Nl=f,fg=A),M=f.pendingLanes,M===0&&(wl=null),ere(x.stateNode),Ma(f,Ze()),p!==null)for(k=f.onRecoverableError,x=0;x<p.length;x++)A=p[x],k(A.value,{componentStack:A.stack,digest:A.digest});if(dg)throw dg=!1,f=v4,v4=null,f;return(fg&1)!==0&&f.tag!==0&&xd(),M=f.pendingLanes,(M&1)!==0?f===w4?fp++:(fp=0,w4=f):fp=0,bl(),null}function xd(){if(Nl!==null){var f=F_(fg),p=ys.transition,x=nr;try{if(ys.transition=null,nr=16>f?16:f,Nl===null)var k=!1;else{if(f=Nl,Nl=null,fg=0,(Wt&6)!==0)throw Error(r(331));var A=Wt;for(Wt|=4,Je=f.current;Je!==null;){var M=Je,D=M.child;
vendor: 4,786 bytes, line 40
40if((Je.flags&16)!==0){var J=M.deletions;if(J!==null){for(var re=0;re<J.length;re++){var be=J[re];for(Je=be;Je!==null;){var Te=Je;switch(Te.tag){case 0:case 11:case 15:up(8,Te,M)}var Re=Te.child;if(Re!==null)Re.return=Te,Je=Re;else for(;Je!==null;){Te=Je;var Pe=Te.sibling,Ye=Te.return;if(LE(Te),Te===be){Je=null;break}if(Pe!==null){Pe.return=Ye,Je=Pe;break}Je=Ye}}}var et=M.alternate;if(et!==null){var st=et.child;if(st!==null){et.child=null;do{var Wr=st.sibling;st.sibling=null,st=Wr}while(st!==null)}}Je=M}}if((M.subtreeFlags&2064)!==0&&D!==null)D.return=M,Je=D;else e:for(;Je!==null;){if(M=Je,(M.flags&2048)!==0)switch(M.tag){case 0:case 11:case 15:up(9,M,M.return)}var he=M.sibling;if(he!==null){he.return=M.return,Je=he;break e}Je=M.return}}var se=f.current;for(Je=se;Je!==null;){D=Je;var pe=D.child;if((D.subtreeFlags&2064)!==0&&pe!==null)pe.return=D,Je=pe;else e:for(D=se;Je!==null;){if(J=Je,(J.flags&2048)!==0)try{switch(J.tag){case 0:case 11:case 15:lg(9,J)}}catch(lt){Ir(J,J.return,lt)}if(J===D){Je=null;break e}var Be=J.sibling;if(Be!==null){Be.return=J.return,Je=Be;break e}Je=J.return}}if(Wt=A,bl(),Si&&typeof Si.onPostCommitFiberRoot=="function")try{Si.onPostCommitFiberRoot(w1,f)}catch{}k=!0}return k}finally{nr=x,ys.transition=p}}return!1}function eO(f,p,x){p=pd(x,p),p=xE(f,p,1),f=yl(f,p,1),p=pa(),f!==null&&(Df(f,1,p),Ma(f,p))}function Ir(f,p,x){if(f.tag===3)eO(f,f,x);else for(;p!==null;){if(p.tag===3){eO(p,f,x);break}else if(p.tag===1){var k=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof k.componentDidCatch=="function"&&(wl===null||!wl.has(k))){f=pd(x,f),f=yE(p,f,1),p=yl(p,f,1),f=pa(),p!==null&&(Df(p,1,f),Ma(p,f));break}}p=p.return}}function $ne(f,p,x){var k=f.pingCache;k!==null&&k.delete(p),p=pa(),f.pingedLanes|=f.suspendedLanes&x,vn===f&&(On&x)===x&&(cn===4||cn===3&&(On&130023424)===On&&500>Ze()-y4?Oc(f,0):x4|=x),Ma(f,p)}function tO(f,p){p===0&&((f.mode&1)===0?p=1:(p=j1,j1<<=1,(j1&130023424)===0&&(j1=4194304)));var x=pa();f=po(f,p),f!==null&&(Df(f,p,x),Ma(f,x))}function _ne(f){var p=f.memoizedState,x=0;p!==null&&(x=p.retryLane),tO(f,x)}function Ane(f,p){var x=0;switch(f.tag){case 13:var k=f.stateNode,A=f.memoizedState;A!==null&&(x=A.retryLane);break;case 19:k=f.stateNode;break;default:throw Error(r(314))}k!==null&&k.delete(p),tO(f,x)}var rO;rO=function(f,p,x){if(f!==null)if(f.memoizedProps!==p.pendingProps||Aa.current)Oa=!0;else{if((f.lanes&x)===0&&(p.flags&128)===0)return Oa=!1,gne(f,p,x);Oa=(f.flags&131072)!==0}else Oa=!1,kr&&(p.flags&1048576)!==0&&RA(p,q1,p.index);switch(p.lanes=0,p.tag){case 2:var k=p.type;ig(f,p),f=p.pendingProps;var A=id(p,Xn.current);hd(p,x),A=X5(null,p,k,f,A,x);var M=J5();return p.flags|=1,typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0?(p.tag=1,p.memoizedState=null,p.updateQueue=null,Ea(k)?(M=!0,z1(p)):M=!1,p.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,V5(p),A.updater=ag,p.stateNode=A,A._reactInternals=p,n4(p,k,f,x),p=o4(null,p,k,!0,M,x)):(p.tag=0,kr&&M&&M5(p),fa(null,p,A,x),p=p.child),p;case 16:k=p.elementType;e:{switch(ig(f,p),f=p.pendingProps,A=k._init,k=A(k._payload),p.type=k,A=p.tag=One(k),f=Gs(k,f),A){case 0:p=i4(null,p,k,f,x);break e;case 1:p=_E(null,p,k,f,x);break e;case 11:p=jE(null,p,k,f,x);break e;case 14:p=kE(null,p,k,Gs(k.type,f),x);break e}throw Error(r(306,k,""))}return p;case 0:return k=p.type,A=p.pendingProps,A=p.elementType===k?A:Gs(k,A),i4(f,p,k,A,x);case 1:return k=p.type,A=p.pendingProps,A=p.elementType===k?A:Gs(k,A),_E(f,p,k,A,x);case 3:e:{if(AE(p),f===null)throw Error(r(387));k=p.pendingProps,M=p.memoizedState,A=M.element,UA(f,p),J1(p,k,null,x);var D=p.memoizedState;if(k=D.element,M.isDehydrated)if(M={element:k,isDehydrated:!1,cache:D.cache,pendingSuspenseBoundaries:D.pendingSuspenseBoundaries,transitions:D.transitions},p.updateQueue.baseState=M,p.memoizedState=M,p.flags&256){A=pd(Error(r(423)),p),p=EE(f,p,k,x,A);break e}else if(k!==A){A=pd(Error(r(424)),p),p=EE(f,p,k,x,A);break e}else for(za=pl(p.stateNode.containerInfo.firstChild),Fa=p,kr=!0,Ws=null,x=zA(p,null,k,x),p.child=x;x;)x.flags=x.flags&-3|4096,x=x.sibling;else{if(cd(),k===A){p=go(f,p,x);break e}fa(f,p,k,x)}p=p.child}return p;case 5:return GA(p),f===null&&I5(p),k=p.type,A=p.pendingProps,M=f!==null?f.memoizedProps:null,D=A.children,$5(k,A)?D=null:M!==null&&$5(k,M)&&(p.flags|=32),$E(f,p),fa(f,p,D,x),p.child;case 6:return f===null&&I5(p),null;case 13:return OE(f,p,x);case 4:return U5(p,p.stateNode.containerInfo),k=p.pendingProps,f===null?p.child=ud(p,null,k,x):fa(f,p,k,x),p.child;case 11:return k=p.type,A=p.pendingProps,A=p.elementType===k?A:Gs(k,A),jE(f,p,k,A,x);case 7:return fa(f,p,p.pendingProps,x),p.child;case 8:return fa(f,p,p.pendingProps.children,x),p.child;case 12:return fa(f,p,p.pendingProps.children,x),p.child;
vendor: 5,988 bytes, line 40
40case 10:e:{if(k=p.type._context,A=p.pendingProps,M=p.memoizedProps,D=A.value,ur(K1,k._currentValue),k._currentValue=D,M!==null)if(qs(M.value,D)){if(M.children===A.children&&!Aa.current){p=go(f,p,x);break e}}else for(M=p.child,M!==null&&(M.return=p);M!==null;){var J=M.dependencies;if(J!==null){D=M.child;for(var re=J.firstContext;re!==null;){if(re.context===k){if(M.tag===1){re=mo(-1,x&-x),re.tag=2;var be=M.updateQueue;if(be!==null){be=be.shared;var Te=be.pending;Te===null?re.next=re:(re.next=Te.next,Te.next=re),be.pending=re}}M.lanes|=x,re=M.alternate,re!==null&&(re.lanes|=x),F5(M.return,x,p),J.lanes|=x;break}re=re.next}}else if(M.tag===10)D=M.type===p.type?null:M.child;else if(M.tag===18){if(D=M.return,D===null)throw Error(r(341));D.lanes|=x,J=D.alternate,J!==null&&(J.lanes|=x),F5(D,x,p),D=M.sibling}else D=M.child;if(D!==null)D.return=M;else for(D=M;D!==null;){if(D===p){D=null;break}if(M=D.sibling,M!==null){M.return=D.return,D=M;break}D=D.return}M=D}fa(f,p,A.children,x),p=p.child}return p;case 9:return A=p.type,k=p.pendingProps.children,hd(p,x),A=bs(A),k=k(A),p.flags|=1,fa(f,p,k,x),p.child;case 14:return k=p.type,A=Gs(k,p.pendingProps),A=Gs(k.type,A),kE(f,p,k,A,x);case 15:return SE(f,p,p.type,p.pendingProps,x);case 17:return k=p.type,A=p.pendingProps,A=p.elementType===k?A:Gs(k,A),ig(f,p),p.tag=1,Ea(k)?(f=!0,z1(p)):f=!1,hd(p,x),gE(p,k,A),n4(p,k,A,x),o4(null,p,k,!0,f,x);case 19:return ME(f,p,x);case 22:return CE(f,p,x)}throw Error(r(156,p.tag))};function nO(f,p){return Tf(f,p)}function Ene(f,p,x,k){this.tag=f,this.key=x,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=k,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vs(f,p,x,k){return new Ene(f,p,x,k)}function $4(f){return f=f.prototype,!(!f||!f.isReactComponent)}function One(f){if(typeof f=="function")return $4(f)?1:0;if(f!=null){if(f=f.$$typeof,f===R)return 11;if(f===q)return 14}return 2}function Sl(f,p){var x=f.alternate;return x===null?(x=vs(f.tag,p,f.key,f.mode),x.elementType=f.elementType,x.type=f.type,x.stateNode=f.stateNode,x.alternate=f,f.alternate=x):(x.pendingProps=p,x.type=f.type,x.flags=0,x.subtreeFlags=0,x.deletions=null),x.flags=f.flags&14680064,x.childLanes=f.childLanes,x.lanes=f.lanes,x.child=f.child,x.memoizedProps=f.memoizedProps,x.memoizedState=f.memoizedState,x.updateQueue=f.updateQueue,p=f.dependencies,x.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},x.sibling=f.sibling,x.index=f.index,x.ref=f.ref,x}function bg(f,p,x,k,A,M){var D=2;if(k=f,typeof f=="function")$4(f)&&(D=1);else if(typeof f=="string")D=5;else e:switch(f){case O:return Mc(x.children,A,M,p);case E:D=8,A|=8;break;case P:return f=vs(12,x,p,A|2),f.elementType=P,f.lanes=M,f;case F:return f=vs(13,x,p,A),f.elementType=F,f.lanes=M,f;case L:return f=vs(19,x,p,A),f.elementType=L,f.lanes=M,f;case B:return xg(x,A,M,p);default:if(typeof f=="object"&&f!==null)switch(f.$$typeof){case T:D=10;break e;case I:D=9;break e;case R:D=11;break e;case q:D=14;break e;case G:D=16,k=null;break e}throw Error(r(130,f==null?f:typeof f,""))}return p=vs(D,x,p,A),p.elementType=f,p.type=k,p.lanes=M,p}function Mc(f,p,x,k){return f=vs(7,f,k,p),f.lanes=x,f}function xg(f,p,x,k){return f=vs(22,f,k,p),f.elementType=B,f.lanes=x,f.stateNode={isHidden:!1},f}function _4(f,p,x){return f=vs(6,f,null,p),f.lanes=x,f}function A4(f,p,x){return p=vs(4,f.children!==null?f.children:[],f.key,p),p.lanes=x,p.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},p}function Pne(f,p,x,k,A){this.tag=p,this.containerInfo=f,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=r5(0),this.expirationTimes=r5(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=r5(0),this.identifierPrefix=k,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null}function E4(f,p,x,k,A,M,D,J,re){return f=new Pne(f,p,x,J,re),p===1?(p=1,M===!0&&(p|=8)):p=0,M=vs(3,null,null,p),f.current=M,M.stateNode=f,M.memoizedState={element:k,isDehydrated:x,cache:null,transitions:null,pendingSuspenseBoundaries:null},V5(M),f}function Mne(f,p,x){var k=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_,key:k==null?null:""+k,children:f,containerInfo:p,implementation:x}}function aO(f){if(!f)return gl;f=f._reactInternals;e:{if(lo(f)!==f||f.tag!==1)throw Error(r(170));var p=f;do{switch(p.tag){case 3:p=p.stateNode.context;break e;case 1:if(Ea(p.type)){p=p.stateNode.__reactInternalMemoizedMergedChildContext;break e}}p=p.return}while(p!==null);throw Error(r(171))}if(f.tag===1){var x=f.type;if(Ea(x))return PA(f,x,p)}return p}function sO(f,p,x,k,A,M,D,J,re){return f=E4(x,k,!0,f,A,M,D,J,re),f.context=aO(null),x=f.current,k=pa(),A=jl(x),M=mo(k,A),M.callback=p??null,yl(x,M,A),f.current.lanes=A,Df(f,A,k),Ma(f,k),f}function yg(f,p,x,k){var A=p.current,M=pa(),D=jl(A);return x=aO(x),p.context===null?p.context=x:p.pendingContext=x,p=mo(M,D),p.payload={element:f},k=k===void 0?null:k,k!==null&&(p.callback=k),f=yl(A,p,D),f!==null&&(Xs(f,A,D,M),X1(f,A,D)),D}function vg(f){if(f=f.current,!f.child)return null;switch(f.child.tag){case 5:return f.child.stateNode;default:return f.child.stateNode}}function iO(f,p){if(f=f.memoizedState,f!==null&&f.dehydrated!==null){var x=f.retryLane;f.retryLane=x!==0&&x<p?x:p}}function O4(f,p){iO(f,p),(f=f.alternate)&&iO(f,p)}function Tne(){return null}var oO=typeof reportError=="function"?reportError:function(f){console.error(f)};function P4(f){this._internalRoot=f}wg.prototype.render=P4.prototype.render=function(f){var p=this._internalRoot;if(p===null)throw Error(r(409));
vendor: 6,216 bytes, lines 40-49
40yg(f,p,null,null)},wg.prototype.unmount=P4.prototype.unmount=function(){var f=this._internalRoot;if(f!==null){this._internalRoot=null;var p=f.containerInfo;Ec(function(){yg(null,f,null,null)}),p[co]=null}};function wg(f){this._internalRoot=f}wg.prototype.unstable_scheduleHydration=function(f){if(f){var p=U_();f={blockedOn:null,target:f,priority:p};for(var x=0;x<dl.length&&p!==0&&p<dl[x].priority;x++);dl.splice(x,0,f),x===0&&G_(f)}};function M4(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)}function Ng(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11&&(f.nodeType!==8||f.nodeValue!==" react-mount-point-unstable "))}function lO(){}function Rne(f,p,x,k,A){if(A){if(typeof k=="function"){var M=k;k=function(){var be=vg(D);M.call(be)}}var D=sO(p,k,f,0,null,!1,!1,"",lO);return f._reactRootContainer=D,f[co]=D.current,Jf(f.nodeType===8?f.parentNode:f),Ec(),D}for(;A=f.lastChild;)f.removeChild(A);if(typeof k=="function"){var J=k;k=function(){var be=vg(re);J.call(be)}}var re=E4(f,0,!1,null,null,!1,!1,"",lO);return f._reactRootContainer=re,f[co]=re.current,Jf(f.nodeType===8?f.parentNode:f),Ec(function(){yg(p,re,x,k)}),re}function jg(f,p,x,k,A){var M=x._reactRootContainer;if(M){var D=M;if(typeof A=="function"){var J=A;A=function(){var re=vg(D);J.call(re)}}yg(p,D,f,A)}else D=Rne(x,p,f,A,k);return vg(D)}z_=function(f){switch(f.tag){case 3:var p=f.stateNode;if(p.current.memoizedState.isDehydrated){var x=If(p.pendingLanes);x!==0&&(n5(p,x|1),Ma(p,Ze()),(Wt&6)===0&&(bd=Ze()+500,bl()))}break;case 13:Ec(function(){var k=po(f,1);if(k!==null){var A=pa();Xs(k,f,1,A)}}),O4(f,1)}},a5=function(f){if(f.tag===13){var p=po(f,134217728);if(p!==null){var x=pa();Xs(p,f,134217728,x)}O4(f,134217728)}},V_=function(f){if(f.tag===13){var p=jl(f),x=po(f,p);if(x!==null){var k=pa();Xs(x,f,p,k)}O4(f,p)}},U_=function(){return nr},q_=function(f,p){var x=nr;try{return nr=f,p()}finally{nr=x}},$a=function(f,p,x){switch(p){case"input":if(Se(f,x),p=x.name,x.type==="radio"&&p!=null){for(x=f;x.parentNode;)x=x.parentNode;for(x=x.querySelectorAll("input[name="+JSON.stringify(""+p)+'][type="radio"]'),p=0;p<x.length;p++){var k=x[p];if(k!==f&&k.form===f.form){var A=H1(k);if(!A)throw Error(r(90));oe(k),Se(k,A)}}}break;case"textarea":Q(f,x);break;case"select":p=x.value,p!=null&&ae(f,!!x.multiple,p,!1)}},ce=k4,We=Ec;var Ine={usingClientEntryPoint:!1,Events:[ep,ad,H1,mt,Jt,k4]},pp={findFiberByHostInstance:Nc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Dne={bundleType:pp.bundleType,version:pp.version,rendererPackageName:pp.rendererPackageName,rendererConfig:pp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(f){return f=b1(f),f===null?null:f.stateNode},findFiberByHostInstance:pp.findFiberByHostInstance||Tne,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kg.isDisabled&&kg.supportsFiber)try{w1=kg.inject(Dne),Si=kg}catch{}}return Ta.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ine,Ta.createPortal=function(f,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!M4(p))throw Error(r(200));return Mne(f,p,null,x)},Ta.createRoot=function(f,p){if(!M4(f))throw Error(r(299));var x=!1,k="",A=oO;return p!=null&&(p.unstable_strictMode===!0&&(x=!0),p.identifierPrefix!==void 0&&(k=p.identifierPrefix),p.onRecoverableError!==void 0&&(A=p.onRecoverableError)),p=E4(f,1,!1,null,null,x,!1,k,A),f[co]=p.current,Jf(f.nodeType===8?f.parentNode:f),new P4(p)},Ta.findDOMNode=function(f){if(f==null)return null;if(f.nodeType===1)return f;var p=f._reactInternals;if(p===void 0)throw typeof f.render=="function"?Error(r(188)):(f=Object.keys(f).join(","),Error(r(268,f)));return f=b1(p),f=f===null?null:f.stateNode,f},Ta.flushSync=function(f){return Ec(f)},Ta.hydrate=function(f,p,x){if(!Ng(p))throw Error(r(200));return jg(null,f,p,!0,x)},Ta.hydrateRoot=function(f,p,x){if(!M4(f))throw Error(r(405));var k=x!=null&&x.hydratedSources||null,A=!1,M="",D=oO;if(x!=null&&(x.unstable_strictMode===!0&&(A=!0),x.identifierPrefix!==void 0&&(M=x.identifierPrefix),x.onRecoverableError!==void 0&&(D=x.onRecoverableError)),p=sO(p,null,f,1,x??null,A,!1,M,D),f[co]=p.current,Jf(f),k)for(f=0;f<k.length;f++)x=k[f],A=x._getVersion,A=A(x._source),p.mutableSourceEagerHydrationData==null?p.mutableSourceEagerHydrationData=[x,A]:p.mutableSourceEagerHydrationData.push(x,A);return new wg(p)},Ta.render=function(f,p,x){if(!Ng(p))throw Error(r(200));return jg(null,f,p,!1,x)},Ta.unmountComponentAtNode=function(f){if(!Ng(f))throw Error(r(40));return f._reactRootContainer?(Ec(function(){jg(null,null,f,!1,function(){f._reactRootContainer=null,f[co]=null})}),!0):!1},Ta.unstable_batchedUpdates=k4,Ta.unstable_renderSubtreeIntoContainer=function(f,p,x,k){if(!Ng(x))throw Error(r(200));if(f==null||f._reactInternals===void 0)throw Error(r(38));return jg(f,p,x,!1,k)},Ta.version="18.3.1-next-f1338f8080-20240426",Ta}var gO;function RV(){if(gO)return I4.exports;gO=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),I4.exports=qne(),I4.exports}var bO;function Wne(){if(bO)return Cg;bO=1;var t=RV();return Cg.createRoot=t.createRoot,Cg.hydrateRoot=t.hydrateRoot,Cg}var Gne=Wne(),w=qk();const z=ar(w),Kne=Bne({__proto__:null,default:z},[w]);/** 41 * react-router v7.13.0 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */var xO="popstate";function Yne(t={}){function e(n,a){let{pathname:i,search:o,hash:l}=n.location;return E9("",{pathname:i,search:o,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}
49function r(n,a){return typeof a=="string"?a:km(a)}return Jne(e,r,null,t)}function Cr(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ds(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Xne(){return Math.random().toString(36).substring(2,10)}function yO(t,e){return{usr:t.state,key:t.key,idx:e}}function E9(t,e,r=null,n){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?of(e):e,state:r,key:e&&e.key||n||Xne()}}function km({pathname:t="/",search:e="",hash:r=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function of(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substring(r),t=t.substring(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substring(n),t=t.substring(0,n)),t&&(e.pathname=t)}return e}function Jne(t,e,r,n={}){let{window:a=document.defaultView,v5Compat:i=!1}=n,o=a.history,l="POP",c=null,u=d();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function d(){return(o.state||{idx:null}).idx}function h(){l="POP";let v=d(),N=v==null?null:v-u;u=v,c&&c({action:l,location:y.location,delta:N})}function m(v,N){l="PUSH";let S=E9(y.location,v,N);u=d()+1;let j=yO(S,u),$=y.createHref(S);try{o.pushState(j,"",$)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign($)}i&&c&&c({action:l,location:y.location,delta:1})}function g(v,N){l="REPLACE";let S=E9(y.location,v,N);u=d();let j=yO(S,u),$=y.createHref(S);o.replaceState(j,"",$),i&&c&&c({action:l,location:y.location,delta:0})}function b(v){return Qne(v)}let y={get action(){return l},get location(){return t(a,o)},listen(v){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(xO,h),c=v,()=>{a.removeEventListener(xO,h),c=null}},createHref(v){return e(a,v)},createURL:b,encodeLocation(v){let N=b(v);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:m,replace:g,go(v){return o.go(v)}};return y}function Qne(t,e=!1){let r="http://localhost";
49typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Cr(r,"No window.location.(origin|href) available to create URL");let n=typeof t=="string"?t:km(t);return n=n.replace(/ $/,"%20"),!e&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function IV(t,e,r="/"){return Zne(t,e,r,!1)}function Zne(t,e,r,n){let a=typeof e=="string"?of(e):e,i=qo(a.pathname||"/",r);if(i==null)return null;let o=DV(t);eae(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let u=dae(i);l=cae(o[c],u,n)}return l}function DV(t,e=[],r=[],n="",a=!1){let i=(o,l,c=a,u)=>{let d={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(n)&&c)return;Cr(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length)}let h=Io([n,d.relativePath]),m=r.concat(d);o.children&&o.children.length>0&&(Cr(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),DV(o.children,e,m,h,c)),!(o.path==null&&!o.index)&&e.push({path:h,score:oae(h,o.index),routesMeta:m})};return t.forEach((o,l)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))i(o,l);else for(let u of LV(o.path))i(o,l,!0,u)}),e}function LV(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let o=LV(n.join("/")),l=[];return l.push(...o.map(c=>c===""?i:[i,c].join("/"))),a&&l.push(...o),l.map(c=>t.startsWith("/")&&c===""?"/":c)}function eae(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:lae(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var tae=/^:[\w-]+$/,rae=3,nae=2,aae=1,sae=10,iae=-2,vO=t=>t==="*";function oae(t,e){let r=t.split("/"),n=r.length;return r.some(vO)&&(n+=iae),e&&(n+=nae),r.filter(a=>!vO(a)).reduce((a,i)=>a+(tae.test(i)?rae:i===""?aae:sae),n)}function lae(t,e){return t.length===e.length&&t.slice(0,-1).every((n,a)=>n===e[a])?t[t.length-1]-e[e.length-1]:0}function cae(t,e,r=!1){let{routesMeta:n}=t,a={},i="/",o=[];for(let l=0;l<n.length;++l){let c=n[l],u=l===n.length-1,d=i==="/"?e:e.slice(i.length)||"/",h=ox({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),m=c.route;if(!h&&u&&r&&!n[n.length-1].route.index&&(h=ox({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;
49Object.assign(a,h.params),o.push({params:a,pathname:Io([i,h.pathname]),pathnameBase:mae(Io([i,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(i=Io([i,h.pathnameBase]))}return o}function ox(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=uae(t.path,t.caseSensitive,t.end),a=e.match(r);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce((u,{paramName:d,isOptional:h},m)=>{if(d==="*"){let b=l[m]||"";o=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const g=l[m];return h&&!g?u[d]=void 0:u[d]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:t}}function uae(t,e=!1,r=!0){Ds(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let n=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(n.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),n]}function dae(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Ds(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function qo(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}var hae=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function fae(t,e="/"){let{pathname:r,search:n="",hash:a=""}=typeof t=="string"?of(t):t,i;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?i=wO(r.substring(1),"/"):i=wO(r,e)):i=e,{pathname:i,search:gae(n),hash:bae(a)}}function wO(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function B4(t,e,r,n){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function pae(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Wk(t){let e=pae(t);return e.map((r,n)=>n===e.length-1?r.pathname:r.pathnameBase)}function Gk(t,e,r,n=!1){let a;typeof t=="string"?a=of(t):(a={...t},Cr(!a.pathname||!a.pathname.includes("?"),B4("?","pathname","search",a)),Cr(!a.pathname||!a.pathname.includes("#"),B4("#","pathname","hash",a)),Cr(!a.search||!a.search.includes("#"),B4("#","search","hash",a)));let i=t===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=r;else{let h=e.length-1;if(!n&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),h-=1;a.pathname=m.join("/")}l=h>=0?e[h]:"/"}let c=fae(a,l),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}var Io=t=>t.join("/").replace(/\/\/+/g,"/"),mae=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),gae=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,bae=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,xae=class{constructor(t,e,r,n=!1){this.status=t,this.statusText=e||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function yae(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function vae(t){return t.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var BV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function HV(t,e){let r=t;if(typeof r!="string"||!hae.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,a=!1;if(BV)try{let i=new URL(window.location.href),o=r.startsWith("//")?new URL(i.protocol+r):new URL(r),l=qo(o.pathname,e);o.origin===i.origin&&l!=null?r=l+o.search+o.hash:a=!0}catch{Ds(!1,`<Link to="${r}">
49 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:a,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var FV=["POST","PUT","PATCH","DELETE"];new Set(FV);var wae=["GET",...FV];new Set(wae);var lf=w.createContext(null);lf.displayName="DataRouter";var vy=w.createContext(null);vy.displayName="DataRouterState";var Nae=w.createContext(!1),zV=w.createContext({isTransitioning:!1});zV.displayName="ViewTransition";var jae=w.createContext(new Map);jae.displayName="Fetchers";var kae=w.createContext(null);kae.displayName="Await";var ds=w.createContext(null);ds.displayName="Navigation";var L0=w.createContext(null);L0.displayName="Location";var yi=w.createContext({outlet:null,matches:[],isDataRoute:!1});yi.displayName="Route";var Kk=w.createContext(null);Kk.displayName="RouteError";var VV="REACT_ROUTER_ERROR",Sae="REDIRECT",Cae="ROUTE_ERROR_RESPONSE";function $ae(t){if(t.startsWith(`${VV}:${Sae}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function _ae(t){if(t.startsWith(`${VV}:${Cae}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new xae(e.status,e.statusText,e.data)}catch{}}function Aae(t,{relative:e}={}){Cr(cf(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=w.useContext(ds),{hash:a,pathname:i,search:o}=B0(t,{relative:e}),l=i;return r!=="/"&&(l=i==="/"?r:Io([r,i])),n.createHref({pathname:l,search:o,hash:a})}function cf(){return w.useContext(L0)!=null}function $r(){return Cr(cf(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(L0).location}var UV="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function qV(t){w.useContext(ds).static||w.useLayoutEffect(t)}function qn(){let{isDataRoute:t}=w.useContext(yi);return t?zae():Eae()}function Eae(){Cr(cf(),"useNavigate() may be used only in the context of a <Router> component.");let t=w.useContext(lf),{basename:e,navigator:r}=w.useContext(ds),{matches:n}=w.useContext(yi),{pathname:a}=$r(),i=JSON.stringify(Wk(n)),o=w.useRef(!1);return qV(()=>{o.current=!0}),w.useCallback((c,u={})=>{if(Ds(o.current,UV),!o.current)return;if(typeof c=="number"){r.go(c);return}let d=Gk(c,JSON.parse(i),a,u.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:Io([e,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[e,r,i,a,t])}w.createContext(null);function Hu(){let{matches:t}=w.useContext(yi),e=t[t.length-1];return e?e.params:{}}function B0(t,{relative:e}={}){let{matches:r}=w.useContext(yi),{pathname:n}=$r(),a=JSON.stringify(Wk(r));return w.useMemo(()=>Gk(t,JSON.parse(a),n,e==="path"),[t,a,n,e])}function Oae(t,e){return WV(t,e)}function WV(t,e,r,n,a){var S;Cr(cf(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=w.useContext(ds),{matches:o}=w.useContext(yi),l=o[o.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",h=l&&l.route;{let j=h&&h.path||"";KV(u,!h||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${j}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 50 51Please change the parent <Route path="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let m=$r(),g;if(e){let j=typeof e=="string"?of(e):e;Cr(d==="/"||((S=j.pathname)==null?void 0:S.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${j.pathname}" was given in the \`location\` prop.`),g=j}else g=m;let b=g.pathname||"/",y=b;if(d!=="/"){let j=d.replace(/^\//,"").split("/");y="/"+b.replace(/^\//,"").split("/").slice(j.length).join("/")}let v=IV(t,{pathname:y});Ds(h||v!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Ds(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=Iae(v&&v.map(j=>Object.assign({},j,{params:Object.assign({},c,j.params),pathname:Io([d,i.encodeLocation?i.encodeLocation(j.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?d:Io([d,i.encodeLocation?i.encodeLocation(j.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),o,r,n,a);return e&&N?w.createElement(L0.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},N):N}function Pae(){let t=Fae(),e=yae(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},o=null;return console.error("Error handled by React Router default ErrorBoundary:",t),o=w.createElement(w.Fragment,null,w.createElement("p",null,"ð¿ Hey developer ð"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:i},"ErrorBoundary")," or"," ",w.createElement("code",{style:i},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application
51Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},e),r?w.createElement("pre",{style:a},r):null,o)}var Mae=w.createElement(Pae,null),GV=class extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=_ae(t.digest);r&&(t=r)}let e=t!==void 0?w.createElement(yi.Provider,{value:this.props.routeContext},w.createElement(Kk.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?w.createElement(Tae,{error:t},e):e}};GV.contextType=Nae;var H4=new WeakMap;function Tae({children:t,error:e}){let{basename:r}=w.useContext(ds);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let n=$ae(e.digest);if(n){let a=H4.get(e);if(a)throw a;let i=HV(n.location,r);if(BV&&!H4.get(e))if(i.isExternal||n.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:n.replace}));throw H4.set(e,o),o}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return t}function Rae({routeContext:t,match:e,children:r}){let n=w.useContext(lf);return n&&n.static&&n.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=e.route.id),w.createElement(yi.Provider,{value:t},r)}function Iae(t,e=[],r=null,n=null,a=null){if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let i=t,o=r==null?void 0:r.errors;if(o!=null){let d=i.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);Cr(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(r)for(let d=0;d<i.length;d++){let h=i[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=d),h.route.id){let{loaderData:m,errors:g}=r,b=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!g||g[h.route.id]===void 0);if(h.route.lazy||b){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}let u=r&&n?(d,h)=>{var m,g;n(d,{location:r.location,params:((g=(m=r.matches)==null?void 0:m[0])==null?void 0:g.params)??{},unstable_pattern:vae(r.matches),errorInfo:h})}:void 0;return i.reduceRight((d,h,m)=>{let g,b=!1,y=null,v=null;r&&(g=o&&h.route.id?o[h.route.id]:void 0,y=h.route.errorElement||Mae,l&&(c<0&&m===0?(KV("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,v=null):c===m&&(b=!0,v=h.route.hydrateFallbackElement||null)));let N=e.concat(i.slice(0,m+1)),S=()=>{let j;return g?j=y:b?j=v:h.route.Component?j=w.createElement(h.route.Component,null):h.route.element?j=h.route.element:j=d,w.createElement(Rae,{match:h,routeContext:{outlet:d,matches:N,isDataRoute:r!=null},children:j})};return r&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?w.createElement(GV,{location:r.location,revalidation:r.revalidation,component:y,error:g,children:S(),routeC
51ontext:{outlet:null,matches:N,isDataRoute:!0},onError:u}):S()},null)}function Yk(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dae(t){let e=w.useContext(lf);return Cr(e,Yk(t)),e}function Lae(t){let e=w.useContext(vy);return Cr(e,Yk(t)),e}function Bae(t){let e=w.useContext(yi);return Cr(e,Yk(t)),e}function Xk(t){let e=Bae(t),r=e.matches[e.matches.length-1];return Cr(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function Hae(){return Xk("useRouteId")}function Fae(){var n;let t=w.useContext(Kk),e=Lae("useRouteError"),r=Xk("useRouteError");return t!==void 0?t:(n=e.errors)==null?void 0:n[r]}function zae(){let{router:t}=Dae("useNavigate"),e=Xk("useNavigate"),r=w.useRef(!1);return qV(()=>{r.current=!0}),w.useCallback(async(a,i={})=>{Ds(r.current,UV),r.current&&(typeof a=="number"?await t.navigate(a):await t.navigate(a,{fromRouteId:e,...i}))},[t,e])}var NO={};function KV(t,e,r){!e&&!NO[t]&&(NO[t]=!0,Ds(!1,r))}w.memo(Vae);function Vae({routes:t,future:e,state:r,onError:n}){return WV(t,void 0,r,n,e)}function ch({to:t,replace:e,state:r,relative:n}){Cr(cf(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=w.useContext(ds);Ds(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=w.useContext(yi),{pathname:o}=$r(),l=qn(),c=Gk(t,Wk(i),o,n==="path"),u=JSON.stringify(c);return w.useEffect(()=>{l(JSON.parse(u),{replace:e,state:r,relative:n})},[l,u,n,e,r]),null}function je(t){Cr(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Uae({basename:t="/",children:e=null,location:r,navigationType:n="POP",navigator:a,static:i=!1,unstable_useTransitions:o}){Cr(!cf(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=t.replace(/^\/*/,"/"),c=w.useMemo(()=>({basename:l,navigator:a,static:i,unstable_useTransitions:o,future:{}}),[l,a,i,o]);typeof r=="string"&&(r=of(r));let{pathname:u="/",search:d="",hash:h="",state:m=null,key:g="default"}=r,b=w.useMemo(()=>{let y=qo(u,l);return y==null?null:{location:{pathname:y,search:d,hash:h,state:m,key:g},navigationType:n}},[l,u,d,h,m,g,n]);return Ds(b!=null,`<Router basename="${l}"> is not able to match the URL "${u}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:w.createElement(ds.Provider,{value:c},w.createElement(L0.Provider,{children:e,value:b}))}function qae({children:t,location:e}){return Oae(O9(t),e)}function O9(t,e=[]){let r=[];return w.Children.forEach(t,(n,a)=>{if(!w.isValidElement(n))return;let i=[...e,a];if(n.type===w.Fragment){r.push.apply(r,O9(n.props.children,i));return}Cr(n.type===je,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Cr(!n.props.index||!n.props.children,"An index route cannot have child routes.");let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=O9(n.props.children,i)),r.push(o)}),r}var Rb="get",Ib="application/x-www-form-urlencoded";function wy(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Wae(t){return wy(t)&&t.tagName.toLowerCase()==="button"}function Gae(t){return wy(t)&&t.tagName.toLowerCase()==="form"}function Kae(t){return wy(t)&&t.tagName.toLowerCase()==="input"}function Yae(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Xae(t,e){return t.button===0&&(!e||e==="_self")&&!Yae(t)}function P9(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,r)=>{let n=t[r];return e.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function Jae(t,e){let r=P9(t);return e&&e.forEach((n,a)=>
51{r.has(a)||e.getAll(a).forEach(i=>{r.append(a,i)})}),r}var $g=null;function Qae(){if($g===null)try{new FormData(document.createElement("form"),0),$g=!1}catch{$g=!0}return $g}var Zae=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function F4(t){return t!=null&&!Zae.has(t)?(Ds(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ib}"`),null):t}function ese(t,e){let r,n,a,i,o;if(Gae(t)){let l=t.getAttribute("action");n=l?qo(l,e):null,r=t.getAttribute("method")||Rb,a=F4(t.getAttribute("enctype"))||Ib,i=new FormData(t)}else if(Wae(t)||Kae(t)&&(t.type==="submit"||t.type==="image")){let l=t.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=t.getAttribute("formaction")||l.getAttribute("action");if(n=c?qo(c,e):null,r=t.getAttribute("formmethod")||l.getAttribute("method")||Rb,a=F4(t.getAttribute("formenctype"))||F4(l.getAttribute("enctype"))||Ib,i=new FormData(l,t),!Qae()){let{name:u,type:d,value:h}=t;if(d==="image"){let m=u?`${u}.`:"";i.append(`${m}x`,"0"),i.append(`${m}y`,"0")}else u&&i.append(u,h)}}else{if(wy(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Rb,n=null,a=Ib,o=t}return i&&a==="text/plain"&&(o=i,i=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:i,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Jk(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function tse(t,e,r,n){let a=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${n}`:a.pathname=`${a.pathname}.${n}`:a.pathname==="/"?a.pathname=`_root.${n}`:e&&qo(a.pathname,e)==="/"?a.pathname=`${e.replace(/\/$/,"")}/_root.${n}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${n}`,a}async function rse(t,e){if(t.id in e)return e[t.id];try{let r=await import(t.module);return e[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function nse(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function ase(t,e,r){let n=await Promise.all(t.map(async a=>{let i=e.routes[a.route.id];if(i){let o=await rse(i,r);return o.links?o.links():[]}return[]}));return lse(n.flat(1).filter(nse).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function jO(t,e,r,n,a,i){let o=(c,u)=>r[u]?c.route.id!==r[u].route.id:!0,l=(c,u)=>{var d;return r[u].pathname!==c.pathname||((d=r[u].route.path)==null?void 0:d.endsWith("*"))&&r[u].params["*"]!==c.params["*"]};return i==="assets"?e.filter((c,u)=>o(c,u)||l(c,u)):i==="data"?e.filter((c,u)=>{var h;let d=n.routes[c.route.id];if(!d||!d.hasLoader)return!1;if(o(c,u)||l(c,u))return!0;if(c.route.shouldRevalidate){let m=c.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((h=r[0])==null?void 0:h.params)||{},nextUrl:new URL(t,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function sse(t,e,{includeHydrateFallback:r}={}){return ise(t.map(n=>{let a=e.routes[n.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),r&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function ise(t){return[...new Set(t)]}function ose(t){let e={},r=Object.keys(t).sort();for(let n of r)e[n]=t[n];return e}function lse(t,e){let r=new Set;return new Set(e),t.reduce((n,a)=>{let i=JSON.stringify(ose(a));return r.has(i)||(r.add(i),n.push({key:i,link:a})),n},[])}function YV(){let t=w.useContext(lf);return Jk(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function cse(){let t=w.useContext(vy);return Jk(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Qk=w.createContext(void 0);Qk.displayName="FrameworkContext";function XV(){let t=w.useContext(Qk);return Jk(t,"You must render this element inside a <HydratedRouter> element"),t}function use(t,e){let r=w.useContext(Qk),[n,a]=w.useState(!1),[i,o]=w.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:h}=e,m=w.useRef(null);
51w.useEffect(()=>{if(t==="render"&&o(!0),t==="viewport"){let y=N=>{N.forEach(S=>{o(S.isIntersecting)})},v=new IntersectionObserver(y,{threshold:.5});return m.current&&v.observe(m.current),()=>{v.disconnect()}}},[t]),w.useEffect(()=>{if(n){let y=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(y)}}},[n]);let g=()=>{a(!0)},b=()=>{a(!1),o(!1)};return r?t!=="intent"?[i,m,{}]:[i,m,{onFocus:gp(l,g),onBlur:gp(c,b),onMouseEnter:gp(u,g),onMouseLeave:gp(d,b),onTouchStart:gp(h,g)}]:[!1,m,{}]}function gp(t,e){return r=>{t&&t(r),r.defaultPrevented||e(r)}}function dse({page:t,...e}){let{router:r}=YV(),n=w.useMemo(()=>IV(r.routes,t,r.basename),[r.routes,t,r.basename]);return n?w.createElement(fse,{page:t,matches:n,...e}):null}function hse(t){let{manifest:e,routeModules:r}=XV(),[n,a]=w.useState([]);return w.useEffect(()=>{let i=!1;return ase(t,e,r).then(o=>{i||a(o)}),()=>{i=!0}},[t,e,r]),n}function fse({page:t,matches:e,...r}){let n=$r(),{future:a,manifest:i,routeModules:o}=XV(),{basename:l}=YV(),{loaderData:c,matches:u}=cse(),d=w.useMemo(()=>jO(t,e,u,i,n,"data"),[t,e,u,i,n]),h=w.useMemo(()=>jO(t,e,u,i,n,"assets"),[t,e,u,i,n]),m=w.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let y=new Set,v=!1;if(e.forEach(S=>{var $;let j=i.routes[S.route.id];!j||!j.hasLoader||(!d.some(C=>C.route.id===S.route.id)&&S.route.id in c&&(($=o[S.route.id])!=null&&$.shouldRevalidate)||j.hasClientLoader?v=!0:y.add(S.route.id))}),y.size===0)return[];let N=tse(t,l,a.unstable_trailingSlashAwareDataRequests,"data");return v&&y.size>0&&N.searchParams.set("_routes",e.filter(S=>y.has(S.route.id)).map(S=>S.route.id).join(",")),[N.pathname+N.search]},[l,a.unstable_trailingSlashAwareDataRequests,c,n,i,d,e,t,o]),g=w.useMemo(()=>sse(h,i),[h,i]),b=hse(h);return w.createElement(w.Fragment,null,m.map(y=>w.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...r})),g.map(y=>w.createElement("link",{key:y,rel:"modulepreload",href:y,...r})),b.map(({key:y,link:v})=>w.createElement("link",{key:y,nonce:r.nonce,...v,crossOrigin:v.crossOrigin??r.crossOrigin})))}function pse(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}var mse=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mse&&(window.__reactRouterVersion="7.13.0")}catch{}function gse({basename:t,children:e,unstable_useTransitions:r,window:n}){let a=w.useRef();a.current==null&&(a.current=Yne({window:n,v5Compat:!0}));let i=a.current,[o,l]=w.useState({action:i.action,location:i.location}),c=w.useCallback(u=>{r===!1?l(u):w.startTransition(()=>l(u))},[r]);return w.useLayoutEffect(()=>i.listen(c),[i,c]),w.createElement(Uae,{basename:t,children:e,location:o.location,navigationType:o.action,navigator:i,unstable_useTransitions:r})}var JV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ue=w.forwardRef(function({onClick:e,discover:r="render",prefetch:n="none",relative:a,reloadDocument:i,replace:o,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h,unstable_defaultShouldRevalidate:m,...g},b){let{basename:y,unstable_useTransitions:v}=w.useContext(ds),N=typeof u=="string"&&JV.test(u),S=HV(u,y);u=S.to;let j=Aae(u,{relative:a}),[$,C,_]=use(n,g),O=vse(u,{replace:o,state:l,target:c,preventScrollReset:d,relative:a,viewTransition:h,unstable_defaultShouldRevalidate:m,unstable_useTransitions:v});function E(T){e&&e(T),T.defaultPrevented||O(T)}let P=w.createElement("a",{...g,..._,href:S.absoluteURL||j,onClick:S.isExternal||i?e:E,ref:pse(b,C),target:c,"data-discover":!N&&r==="render"?"true":void 0});return $&&!N?w.createElement(w.Fragment,null,P,w.createElement(dse,{page:j})):P});ue.displayName="Link";var bse=w.forwardRef(function({"aria-current":e="page",caseSensitive:r=!1,className:n="",end:a=!1,style:i,to:o,viewTransition:l,children:c,...u},d){let h=B0(o,{relative:u.relative}),m=$r(),g=w.useContext(vy),{navigator:b,basename:y}=w.useContext(ds),v=g!=null&&Cse(h)&&l===!0,N=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,S=m.pathname,j=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(S=S.toLowerCase(),j=j?j.toLowerCase():null,N=N.toLowerCase()),j&&y&&(j=qo(j,y)||j);const $=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let C=S===N||!a&&S.startsWith(N)&&S.charAt($)==="/",_=j!=null&&(j===N||!a&&j.startsWith(N)&&j.charAt(N.length)==="/"),O={isActive:C,isPending:_,isTransitioning:v},E=C?e:void 0,P;typeof n=="function"?P=n(O):P=[n,C?"active":null,_?"pending":null,v?"transitioning":null].filter(
51Boolean).join(" ");let T=typeof i=="function"?i(O):i;return w.createElement(ue,{...u,"aria-current":E,className:P,ref:d,style:T,to:o,viewTransition:l},typeof c=="function"?c(O):c)});bse.displayName="NavLink";var xse=w.forwardRef(({discover:t="render",fetcherKey:e,navigate:r,reloadDocument:n,replace:a,state:i,method:o=Rb,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:h,unstable_defaultShouldRevalidate:m,...g},b)=>{let{unstable_useTransitions:y}=w.useContext(ds),v=kse(),N=Sse(l,{relative:u}),S=o.toLowerCase()==="get"?"get":"post",j=typeof l=="string"&&JV.test(l),$=C=>{if(c&&c(C),C.defaultPrevented)return;C.preventDefault();let _=C.nativeEvent.submitter,O=(_==null?void 0:_.getAttribute("formmethod"))||o,E=()=>v(_||C.currentTarget,{fetcherKey:e,method:O,navigate:r,replace:a,state:i,relative:u,preventScrollReset:d,viewTransition:h,unstable_defaultShouldRevalidate:m});y&&r!==!1?w.startTransition(()=>E()):E()};return w.createElement("form",{ref:b,method:S,action:N,onSubmit:n?c:$,...g,"data-discover":!j&&t==="render"?"true":void 0})});xse.displayName="Form";function yse(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function QV(t){let e=w.useContext(lf);return Cr(e,yse(t)),e}function vse(t,{target:e,replace:r,state:n,preventScrollReset:a,relative:i,viewTransition:o,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=qn(),d=$r(),h=B0(t,{relative:i});return w.useCallback(m=>{if(Xae(m,e)){m.preventDefault();let g=r!==void 0?r:km(d)===km(h),b=()=>u(t,{replace:g,state:n,preventScrollReset:a,relative:i,viewTransition:o,unstable_defaultShouldRevalidate:l});c?w.startTransition(()=>b()):b()}},[d,u,h,r,n,e,t,a,i,o,l,c])}function wse(t){Ds(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let e=w.useRef(P9(t)),r=w.useRef(!1),n=$r(),a=w.useMemo(()=>Jae(n.search,r.current?null:e.current),[n.search]),i=qn(),o=w.useCallback((l,c)=>{const u=P9(typeof l=="function"?l(new URLSearchParams(a)):l);r.current=!0,i("?"+u,c)},[i,a]);return[a,o]}var Nse=0,jse=()=>`__${String(++Nse)}__`;function kse(){let{router:t}=QV("useSubmit"),{basename:e}=w.useContext(ds),r=Hae(),n=t.fetch,a=t.navigate;return w.useCallback(async(i,o={})=>{let{action:l,method:c,encType:u,formData:d,body:h}=ese(i,e);if(o.navigate===!1){let m=o.fetcherKey||jse();await n(m,r,o.action||l,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:h,formMethod:o.method||c,formEncType:o.encType||u,flushSync:o.flushSync})}else await a(o.action||l,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:h,formMethod:o.method||c,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,a,e,r])}function Sse(t,{relative:e}={}){let{basename:r}=w.useContext(ds),n=w.useContext(yi);Cr(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),i={...B0(t||".",{relative:e})},o=$r();if(t==null){i.search=o.search;let l=new URLSearchParams(i.search),c=l.getAll("index");if(c.some(d=>d==="")){l.delete("index"),c.filter(h=>h).forEach(h=>l.append("index",h));let d=l.toString();i.search=d?`?${d}`:""}}return(!t||t===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:Io([r,i.pathname])),km(i)}function Cse(t,{relative:e}={}){let r=w.useContext(zV);Cr(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=QV("useViewTransitionState"),a=B0(t,{relative:e});if(!r.isTransitioning)return!1;let i=qo(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=qo(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ox(a.pathname,o)!=null||ox(a.pathname,i)!=null}/** 52 * @license lucide-react v0.487.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const $se=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_se=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,n)=>n?n.toUpperCase():r.toLowerCase()),kO=t=>{const e=_se(t);return e.charAt(0).toUpperCase()+e.slice(1)},ZV=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/** 57 * @license lucide-react v0.487.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */var Ase={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 62 * @license lucide-react v0.487.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const Ese=w.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:o,...l},c)=>w.createElement("svg",{ref:c,...Ase,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:ZV("lucide",a),...l},[...o.map(([u,d])=>w.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** 67 * @license lucide-react v0.487.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const me=(t,e)=>{const r=w.forwardRef(({className:n,...a},i)=>w.createElement(Ese,{ref:i,iconNode:e,className:ZV(`lucide-${$se(kO(t))}`,`lucide-${t}`,n),...a}
71));return r.displayName=kO(t),r};/** 72 * @license lucide-react v0.487.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const Ose=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],eU=me("activity",Ose);/** 77 * @license lucide-react v0.487.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const Pse=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],Mse=me("archive",Pse);/** 82 * @license lucide-react v0.487.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const Tse=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Rse=me("arrow-down",Tse);/** 87 * @license lucide-react v0.487.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const Ise=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Wo=me("arrow-left",Ise);/** 92 * @license lucide-react v0.487.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const Dse=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Xe=me("arrow-right",Dse);/** 97 * @license lucide-react v0.487.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const Lse=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],tU=me("arrow-up-right",Lse);/** 102 * @license lucide-react v0.487.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const Bse=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Hse=me("arrow-up",Bse);/** 107 * @license lucide-react v0.487.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const Fse=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],rU=me("badge-check",Fse);/** 112 * @license lucide-react v0.487.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const zse=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],Vse=me("badge-dollar-sign",zse);/** 117 * @license lucide-react v0.487.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const Use=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],qse=me("bold",Use);/** 122 * @license lucide-react v0.487.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const Wse=[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]],Gse=me("book-open-check",Wse);/** 127 * @license lucide-react v0.487.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const Kse=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Yse=me("book-open",Kse);/** 132 * @license lucide-react v0.487.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const Xse=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],uf=me("briefcase",Xse);/** 137 * @license lucide-react v0.487.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const Jse=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
141],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],el=me("building-2",Jse);/** 142 * @license lucide-react v0.487.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const Qse=[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],Zk=me("calendar-clock",Qse);/** 147 * @license lucide-react v0.487.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const Zse=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],nU=me("calendar-days",Zse);/** 152 * @license lucide-react v0.487.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const eie=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],df=me("calendar",eie);/** 157 * @license lucide-react v0.487.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const tie=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],rie=me("chart-column",tie);/** 162 * @license lucide-react v0.487.0 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const nie=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],vh=me("check",nie);/** 167 * @license lucide-react v0.487.0 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const aie=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=me("chevron-down",aie);/** 172 * @license lucide-react v0.487.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 */const sie=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Fu=me("chevron-left",sie);/** 177 * @license lucide-react v0.487.0 - ISC 178 * 179 * This source code is licensed under the ISC license. 180 * See the LICENSE file in the root directory of this source tree. 181 */const iie=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Vn=me("chevron-right",iie);/** 182 * @license lucide-react v0.487.0 - ISC 183 * 184 * This source code is licensed under the ISC license. 185 * See the LICENSE file in the root directory of this source tree. 186 */const oie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],lie=me("circle-alert",oie);/** 187 * @license lucide-react v0.487.0 - ISC 188 * 189 * This source code is licensed under the ISC license. 190 * See the LICENSE file in the root directory of this source tree. 191 */const cie=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],uie=me("circle-check-big",cie);/** 192 * @license lucide-react v0.487.0 - ISC 193 * 194 * This source code is licensed under the ISC license. 195 * See the LICENSE file in the root directory of this source tree. 196 */const die=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],er=me("circle-check",die);/** 197 * @license lucide-react v0.487.0 - ISC 198 * 199 * This source code is licensed under the ISC license. 200 * See the LICENSE file in the root directory of this source tree. 201 */const hie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aU=me("circle-help",hie);/** 202 * @license lucide-react v0.487.0 - ISC 203 * 204 * This source code is licensed under the ISC license. 205 * See the LICENSE file in the root directory of this source tree. 206 */const fie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],sU=me("circle-plus",fie);/** 207 * @license lucide-react v0.487.0 - ISC 208 * 209 * This source code is licensed under the ISC license. 210 * See the LICENSE file in the root directory of this source tree. 211 */const pie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],Db=me("circle-user",pie);/** 212 * @license lucide-react v0.487.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 */const mie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],iU=me("circle-x",mie);/** 217 * @license lucide-react v0.487.0 - ISC 218 * 219 * This source code is licensed under the ISC license. 220 * See the LICENSE file in the root directory of this source tree.
221 */const gie=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]],eS=me("clipboard-check",gie);/** 222 * @license lucide-react v0.487.0 - ISC 223 * 224 * This source code is licensed under the ISC license. 225 * See the LICENSE file in the root directory of this source tree. 226 */const bie=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],oU=me("clipboard-list",bie);/** 227 * @license lucide-react v0.487.0 - ISC 228 * 229 * This source code is licensed under the ISC license. 230 * See the LICENSE file in the root directory of this source tree. 231 */const xie=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M9 14h6",key:"159ibu"}],["path",{d:"M12 17v-6",key:"1y8rbf"}]],yie=me("clipboard-plus",xie);/** 232 * @license lucide-react v0.487.0 - ISC 233 * 234 * This source code is licensed under the ISC license. 235 * See the LICENSE file in the root directory of this source tree. 236 */const vie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]],tS=me("clock-3",vie);/** 237 * @license lucide-react v0.487.0 - ISC 238 * 239 * This source code is licensed under the ISC license. 240 * See the LICENSE file in the root directory of this source tree. 241 */const wie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Fs=me("clock",wie);/** 242 * @license lucide-react v0.487.0 - ISC 243 * 244 * This source code is licensed under the ISC license. 245 * See the LICENSE file in the root directory of this source tree. 246 */const Nie=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]],lU=me("cloud-off",Nie);/** 247 * @license lucide-react v0.487.0 - ISC 248 * 249 * This source code is licensed under the ISC license. 250 * See the LICENSE file in the root directory of this source tree. 251 */const jie=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],kie=me("columns-3",jie);/** 252 * @license lucide-react v0.487.0 - ISC 253 * 254 * This source code is licensed under the ISC license. 255 * See the LICENSE file in the root directory of this source tree. 256 */const Sie=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ny=me("copy",Sie);/** 257 * @license lucide-react v0.487.0 - ISC 258 * 259 * This source code is licensed under the ISC license. 260 * See the LICENSE file in the root directory of this source tree. 261 */const Cie=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],SO=me("database",Cie);/** 262 * @license lucide-react v0.487.0 - ISC 263 * 264 * This source code is licensed under the ISC license. 265 * See the LICENSE file in the root directory of this source tree. 266 */const $ie=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],H0=me("dollar-sign",$ie);/** 267 * @license lucide-react v0.487.0 - ISC 268 * 269 * This source code is licensed under the ISC license. 270 * See the LICENSE file in the root directory of this source tree. 271 */const _ie=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],Aie=me("download",_ie);/** 272 * @license lucide-react v0.487.0 - ISC 273 * 274 * This source code is licensed under the ISC license. 275 * See the LICENSE file in the root directory of this source tree. 276 */const Eie=[["path",{d:"M14.4 14.4 9.6 9.6",key:"ic80wn"}],["path",{d:"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z",key:"nnl7wr"}],["path",{d:"m21.5 21.5-1.4-1.4",key:"1f1ice"}],["path",{d:"M3.9 3.9 2.5 2.5",key:"1evmna"}],["path",{d:"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z",key:"yhosts"}]],rS=me("dumbbell",Eie);/** 277 * @license lucide-react v0.487.0 - ISC 278 * 279 * This source code is licensed under the ISC license. 280 * See the LICENSE file in the root directory of this source tree. 281 */const Oie=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],cU=me("earth",Oie);/** 282 * @license lucide-react v0.487.0 - ISC 283 * 284 * This source code is licensed under the ISC license. 285 * See the LICENSE file in the root directory of this source tree. 286 */const Pie=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Mie=me("ellipsis-vertical",Pie);/** 287 * @license lucide-react v0.487.0 - ISC 288 * 289 * This source code is licensed under the ISC license. 290 * See the LICENSE file in the root directory of this source tree. 291 */const Tie=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],nS=me("ellipsis",Tie);/** 292 * @license lucide-react v0.487.0 - ISC 293 * 294 * This source code is licensed under the ISC license. 295 * See the LICENSE file in the root directory of this source tree. 296 */const Rie=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Lt=me("external-link",Rie);/** 297 * @license lucide-react v0.487.0 - ISC 298 * 299 * This source code is licensed under the ISC license. 300 * See the LICENSE file in the root directory of this source tree. 301 */const Iie=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],aS=me("eye-off",Iie);/** 302 * @license lucide-react v0.487.0 - ISC 303 * 304 * This source code is licensed under the ISC license. 305 * See the LICENSE file in the root directory of this source tree. 306 */const Die=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],uc=me("eye",Die);/** 307 * @license lucide-react v0.487.0 - ISC 308 * 309 * This source code is licensed under the ISC license. 310 * See the LICENSE file in the root directory of this source tree. 311 */const Lie=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],uU=me("facebook",Lie);/** 312 * @license lucide-react v0.487.0 - ISC 313 * 314 * This source code is licensed under the ISC license. 315 * See the LICENSE file in the root directory of this source tree. 316 */const Bie=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],Hie=me("file-check",Bie);/** 317 * @license lucide-react v0.487.0 - ISC 318 * 319 * This source code is licensed under the ISC license. 320 * See the LICENSE file in the root directory of this source tree. 321 */const Fie=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],z4=me("file-spreadsheet",Fie);/** 322 * @license lucide-react v0.487.0 - ISC 323 * 324 * This source code is licensed under the ISC license. 325 * See the LICENSE file in the root directory of this source tree. 326 */const zie=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Gi=me("file-text",zie);/** 327 * @license lucide-react v0.487.0 - ISC 328 * 329 * This source code is licensed under the ISC license. 330 * See the LICENSE file in the root directory of this source tree. 331 */const Vie=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]],Uie=me("file-up",Vie);/** 332 * @license lucide-react v0.487.0 - ISC 333 * 334 * This source code is licensed under the ISC license. 335 * See the LICENSE file in the root directory of this source tree. 336 */const qie=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Wie=me("file-warning",qie);/** 337 * @license lucide-react v0.487.0 - ISC 338 * 339 * This source code is licensed under the ISC license. 340 * See the LICENSE file in the root directory of this source tree. 341 */const Gie=[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]],Kie=me("files",Gie);/** 342 * @license lucide-react v0.487.0 - ISC 343 * 344 * This source code is licensed under the ISC license. 345 * See the LICENSE file in the root directory of this source tree. 346 */const Yie=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],dU=me("flask-conical",Yie);/** 347 * @license lucide-react v0.487.0 - ISC 348 * 349 * This source code is licensed under the ISC license. 350 * See the LICENSE file in the root directory of this source tree. 351 */const Xie=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],CO=me("folder-open",Xie);/** 352 * @license lucide-react v0.487.0 - ISC 353 * 354 * This source code is licensed under the ISC license. 355 * See the LICENSE file in the root directory of this source tree. 356 */const Jie=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],M9=me("folder-tree",Jie);/** 357 * @license lucide-react v0.487.0 - ISC 358 * 359 * This source code is licensed under the ISC license. 360 * See the LICENSE file in the root directory of this source tree.
361 */const Qie=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Zie=me("funnel",Qie);/** 362 * @license lucide-react v0.487.0 - ISC 363 * 364 * This source code is licensed under the ISC license. 365 * See the LICENSE file in the root directory of this source tree. 366 */const eoe=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]],toe=me("git-compare",eoe);/** 367 * @license lucide-react v0.487.0 - ISC 368 * 369 * This source code is licensed under the ISC license. 370 * See the LICENSE file in the root directory of this source tree. 371 */const roe=[["circle",{cx:"6",cy:"15",r:"4",key:"vux9w4"}],["circle",{cx:"18",cy:"15",r:"4",key:"18o8ve"}],["path",{d:"M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2",key:"1ag4bs"}],["path",{d:"M2.5 13 5 7c.7-1.3 1.4-2 3-2",key:"1hm1gs"}],["path",{d:"M21.5 13 19 7c-.7-1.3-1.5-2-3-2",key:"1r31ai"}]],noe=me("glasses",roe);/** 372 * @license lucide-react v0.487.0 - ISC 373 * 374 * This source code is licensed under the ISC license. 375 * See the LICENSE file in the root directory of this source tree. 376 */const aoe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],sS=me("globe",aoe);/** 377 * @license lucide-react v0.487.0 - ISC 378 * 379 * This source code is licensed under the ISC license. 380 * See the LICENSE file in the root directory of this source tree. 381 */const soe=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],ioe=me("graduation-cap",soe);/** 382 * @license lucide-react v0.487.0 - ISC 383 * 384 * This source code is licensed under the ISC license. 385 * See the LICENSE file in the root directory of this source tree. 386 */const ooe=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],iS=me("grip-vertical",ooe);/** 387 * @license lucide-react v0.487.0 - ISC 388 * 389 * This source code is licensed under the ISC license. 390 * See the LICENSE file in the root directory of this source tree. 391 */const loe=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],coe=me("handshake",loe);/** 392 * @license lucide-react v0.487.0 - ISC 393 * 394 * This source code is licensed under the ISC license. 395 * See the LICENSE file in the root directory of this source tree. 396 */const uoe=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]],F0=me("heart-handshake",uoe);/** 397 * @license lucide-react v0.487.0 - ISC 398 * 399 * This source code is licensed under the ISC license. 400 * See the LICENSE file in the root directory of this source tree. 401 */const doe=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]],Ki=me("heart-pulse",doe);/** 402 * @license lucide-react v0.487.0 - ISC 403 * 404 * This source code is licensed under the ISC license. 405 * See the LICENSE file in the root directory of this source tree. 406 */const hoe=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],foe=me("heart",hoe);/** 407 * @license lucide-react v0.487.0 - ISC 408 * 409 * This source code is licensed under the ISC license. 410 * See the LICENSE file in the root directory of this source tree. 411 */const poe=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],oS=me("history",poe);/** 412 * @license lucide-react v0.487.0 - ISC 413 * 414 * This source code is licensed under the ISC license. 415 * See the LICENSE file in the root directory of this source tree. 416 */const moe=[["path",{d:"M12 6v4",key:"16clxf"}],["path",{d:"M14 14h-4",key:"esezmu"}
416],["path",{d:"M14 18h-4",key:"16mqa2"}],["path",{d:"M14 8h-4",key:"z8ypaz"}],["path",{d:"M18 12h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2",key:"b1k337"}],["path",{d:"M18 22V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v18",key:"16g51d"}]],lS=me("hospital",moe);/** 417 * @license lucide-react v0.487.0 - ISC 418 * 419 * This source code is licensed under the ISC license. 420 * See the LICENSE file in the root directory of this source tree. 421 */const goe=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],hU=me("house",goe);/** 422 * @license lucide-react v0.487.0 - ISC 423 * 424 * This source code is licensed under the ISC license. 425 * See the LICENSE file in the root directory of this source tree. 426 */const boe=[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]],xoe=me("id-card",boe);/** 427 * @license lucide-react v0.487.0 - ISC 428 * 429 * This source code is licensed under the ISC license. 430 * See the LICENSE file in the root directory of this source tree. 431 */const yoe=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],T9=me("image-plus",yoe);/** 432 * @license lucide-react v0.487.0 - ISC 433 * 434 * This source code is licensed under the ISC license. 435 * See the LICENSE file in the root directory of this source tree. 436 */const voe=[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19.5 3-3 3 3",key:"9vmjn0"}],["path",{d:"M17 22v-5.5",key:"1aa6fl"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],fU=me("image-up",voe);/** 437 * @license lucide-react v0.487.0 - ISC 438 * 439 * This source code is licensed under the ISC license. 440 * See the LICENSE file in the root directory of this source tree. 441 */const woe=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],pU=me("image",woe);/** 442 * @license lucide-react v0.487.0 - ISC 443 * 444 * This source code is licensed under the ISC license. 445 * See the LICENSE file in the root directory of this source tree. 446 */const Noe=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],z0=me("inbox",Noe);/** 447 * @license lucide-react v0.487.0 - ISC 448 * 449 * This source code is licensed under the ISC license. 450 * See the LICENSE file in the root directory of this source tree. 451 */const joe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],koe=me("info",joe);/** 452 * @license lucide-react v0.487.0 - ISC 453 * 454 * This source code is licensed under the ISC license. 455 * See the LICENSE file in the root directory of this source tree. 456 */const Soe=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],mU=me("instagram",Soe);/** 457 * @license lucide-react v0.487.0 - ISC 458 * 459 * This source code is licensed under the ISC license. 460 * See the LICENSE file in the root directory of this source tree. 461 */const Coe=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],$oe=me("italic",Coe);/** 462 * @license lucide-react v0.487.0 - ISC 463 * 464 * This source code is licensed under the ISC license. 465 * See the LICENSE file in the root directory of this source tree. 466 */const _oe=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Aoe=me("key-round",_oe);/** 467 * @license lucide-react v0.487.0 - ISC 468 * 469 * This source code is licensed under the ISC license. 470 * See the LICENSE file in the root directory of this source tree. 471 */const Eoe=[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]],Ooe=me("landmark",Eoe);/** 472 * @license lucide-react v0.487.0 - ISC 473 * 474 * This source code is licensed under the ISC license. 475 * See the LICENSE file in the root directory of this source tree. 476 */const Poe=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],jy=me("layers",Poe);/** 477 * @license lucide-react v0.487.0 - ISC 478 * 479 * This source code is licensed under the ISC license. 480 * See the LICENSE file in the root directory of this source tree. 481 */const Moe=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Toe=me("layout-grid",Moe);/** 482 * @license lucide-react v0.487.0 - ISC 483 * 484 * This source code is licensed under the ISC license. 485 * See the LICENSE file in the root directory of this source tree. 486 */const Roe=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],Ioe=me("link-2-off",Roe);/** 487 * @license lucide-react v0.487.0 - ISC 488 * 489 * This source code is licensed under the ISC license. 490 * See the LICENSE file in the root directory of this source tree.
491 */const Doe=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],gU=me("link-2",Doe);/** 492 * @license lucide-react v0.487.0 - ISC 493 * 494 * This source code is licensed under the ISC license. 495 * See the LICENSE file in the root directory of this source tree. 496 */const Loe=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],bU=me("link",Loe);/** 497 * @license lucide-react v0.487.0 - ISC 498 * 499 * This source code is licensed under the ISC license. 500 * See the LICENSE file in the root directory of this source tree. 501 */const Boe=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],cS=me("linkedin",Boe);/** 502 * @license lucide-react v0.487.0 - ISC 503 * 504 * This source code is licensed under the ISC license. 505 * See the LICENSE file in the root directory of this source tree. 506 */const Hoe=[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],Foe=me("list-checks",Hoe);/** 507 * @license lucide-react v0.487.0 - ISC 508 * 509 * This source code is licensed under the ISC license. 510 * See the LICENSE file in the root directory of this source tree. 511 */const zoe=[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]],Voe=me("list-ordered",zoe);/** 512 * @license lucide-react v0.487.0 - ISC 513 * 514 * This source code is licensed under the ISC license. 515 * See the LICENSE file in the root directory of this source tree. 516 */const Uoe=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],qoe=me("list",Uoe);/** 517 * @license lucide-react v0.487.0 - ISC 518 * 519 * This source code is licensed under the ISC license. 520 * See the LICENSE file in the root directory of this source tree. 521 */const Woe=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],pt=me("loader-circle",Woe);/** 522 * @license lucide-react v0.487.0 - ISC 523 * 524 * This source code is licensed under the ISC license. 525 * See the LICENSE file in the root directory of this source tree. 526 */const Goe=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],Koe=me("lock-keyhole",Goe);/** 527 * @license lucide-react v0.487.0 - ISC 528 * 529 * This source code is licensed under the ISC license. 530 * See the LICENSE file in the root directory of this source tree. 531 */const Yoe=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],R9=me("log-out",Yoe);/** 532 * @license lucide-react v0.487.0 - ISC 533 * 534 * This source code is licensed under the ISC license. 535 * See the LICENSE file in the root directory of this source tree. 536 */const Xoe=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Na=me("mail",Xoe);/** 537 * @license lucide-react v0.487.0 - ISC 538 * 539 * This source code is licensed under the ISC license. 540 * See the LICENSE file in the root directory of this source tree. 541 */const Joe=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],tr=me("map-pin",Joe);/** 542 * @license lucide-react v0.487.0 - ISC 543 * 544 * This source code is licensed under the ISC license. 545 * See the LICENSE file in the root directory of this source tree. 546 */const Qoe=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],Zoe=me("map-pinned",Qoe);/** 547 * @license lucide-react v0.487.0 - ISC 548 * 549 * This source code is licensed under the ISC license. 550 * See the LICENSE file in the root directory of this source tree. 551 */const ele=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],tle=me("map",ele);
551/** 552 * @license lucide-react v0.487.0 - ISC 553 * 554 * This source code is licensed under the ISC license. 555 * See the LICENSE file in the root directory of this source tree. 556 */const rle=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],xU=me("menu",rle);/** 557 * @license lucide-react v0.487.0 - ISC 558 * 559 * This source code is licensed under the ISC license. 560 * See the LICENSE file in the root directory of this source tree. 561 */const nle=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Su=me("message-square",nle);/** 562 * @license lucide-react v0.487.0 - ISC 563 * 564 * This source code is licensed under the ISC license. 565 * See the LICENSE file in the root directory of this source tree. 566 */const ale=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],sle=me("microscope",ale);/** 567 * @license lucide-react v0.487.0 - ISC 568 * 569 * This source code is licensed under the ISC license. 570 * See the LICENSE file in the root directory of this source tree. 571 */const ile=[["path",{d:"M5 12h14",key:"1ays0h"}]],ole=me("minus",ile);/** 572 * @license lucide-react v0.487.0 - ISC 573 * 574 * This source code is licensed under the ISC license. 575 * See the LICENSE file in the root directory of this source tree. 576 */const lle=[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]],cle=me("monitor-smartphone",lle);/** 577 * @license lucide-react v0.487.0 - ISC 578 * 579 * This source code is licensed under the ISC license. 580 * See the LICENSE file in the root directory of this source tree. 581 */const ule=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],dle=me("panel-left-close",ule);/** 582 * @license lucide-react v0.487.0 - ISC 583 * 584 * This source code is licensed under the ISC license. 585 * See the LICENSE file in the root directory of this source tree. 586 */const hle=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],fle=me("panel-left-open",hle);/** 587 * @license lucide-react v0.487.0 - ISC 588 * 589 * This source code is licensed under the ISC license. 590 * See the LICENSE file in the root directory of this source tree. 591 */const ple=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],mle=me("panel-right",ple);/** 592 * @license lucide-react v0.487.0 - ISC 593 * 594 * This source code is licensed under the ISC license. 595 * See the LICENSE file in the root directory of this source tree. 596 */const gle=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],ble=me("pen-line",gle);/** 597 * @license lucide-react v0.487.0 - ISC 598 * 599 * This source code is licensed under the ISC license. 600 * See the LICENSE file in the root directory of this source tree. 601 */const xle=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],yle=me("pen",xle);/** 602 * @license lucide-react v0.487.0 - ISC 603 * 604 * This source code is licensed under the ISC license. 605 * See the LICENSE file in the root directory of this source tree. 606 */const vle=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],hf=me("pencil",vle);/** 607 * @license lucide-react v0.487.0 - ISC 608 * 609 * This source code is licensed under the ISC license. 610 * See the LICENSE file in the root directory of this source tree. 611 */const wle=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],Ut=me("phone",wle);/** 612 * @license lucide-react v0.487.0 - ISC 613 * 614 * This source code is licensed under the ISC license. 615 * See the LICENSE file in the root directory of this source tree. 616 */const Nle=[["path",{d:"M19 5c-1.5 0-2.8 1.4-3 2-3.5-1.5-11-.3-11 5 0 1.8 0 3 2 4.5V20h4v-2h3v2h4v-4c1-.5 1.7-1 2-2h2v-4h-2c0-1-.5-1.5-1-2V5z",key:"1ivx2i"}],["path",{d:"M2 9v1c0 1.1.9 2 2 2h1",key:"nm575m"}],["path",{d:"M16 11h.01",key:"xkw8gn"}]],jle=me("piggy-bank",Nle);/** 617 * @license lucide-react v0.487.0 - ISC 618 * 619 * This source code is licensed under the ISC license. 620 * See the LICENSE file in the root directory of this source tree. 621 */const kle=[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z",key:"wa1lgi"}],["path",{d:"m8.5 8.5 7 7",key:"rvfmvr"}]],dc=me("pill",kle);/** 622 * @license lucide-react v0.487.0 - ISC 623 * 624 * This source code is licensed under the ISC license. 625 * See the LICENSE file in the root directory of this source tree. 626 */const Sle=[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.
6261-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]],uS=me("plane",Sle);/** 627 * @license lucide-react v0.487.0 - ISC 628 * 629 * This source code is licensed under the ISC license. 630 * See the LICENSE file in the root directory of this source tree. 631 */const Cle=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],$le=me("play",Cle);/** 632 * @license lucide-react v0.487.0 - ISC 633 * 634 * This source code is licensed under the ISC license. 635 * See the LICENSE file in the root directory of this source tree. 636 */const _le=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ss=me("plus",_le);/** 637 * @license lucide-react v0.487.0 - ISC 638 * 639 * This source code is licensed under the ISC license. 640 * See the LICENSE file in the root directory of this source tree. 641 */const Ale=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],lx=me("power",Ale);/** 642 * @license lucide-react v0.487.0 - ISC 643 * 644 * This source code is licensed under the ISC license. 645 * See the LICENSE file in the root directory of this source tree. 646 */const Ele=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],Ole=me("quote",Ele);/** 647 * @license lucide-react v0.487.0 - ISC 648 * 649 * This source code is licensed under the ISC license. 650 * See the LICENSE file in the root directory of this source tree. 651 */const Ple=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],Mle=me("redo-2",Ple);/** 652 * @license lucide-react v0.487.0 - ISC 653 * 654 * This source code is licensed under the ISC license. 655 * See the LICENSE file in the root directory of this source tree. 656 */const Tle=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ky=me("refresh-cw",Tle);/** 657 * @license lucide-react v0.487.0 - ISC 658 * 659 * This source code is licensed under the ISC license. 660 * See the LICENSE file in the root directory of this source tree. 661 */const Rle=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],yU=me("rotate-ccw",Rle);/** 662 * @license lucide-react v0.487.0 - ISC 663 * 664 * This source code is licensed under the ISC license. 665 * See the LICENSE file in the root directory of this source tree. 666 */const Ile=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],Dle=me("rows-3",Ile);/** 667 * @license lucide-react v0.487.0 - ISC 668 * 669 * This source code is licensed under the ISC license. 670 * See the LICENSE file in the root directory of this source tree. 671 */const Lle=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],vU=me("save",Lle);/** 672 * @license lucide-react v0.487.0 - ISC 673 * 674 * This source code is licensed under the ISC license. 675 * See the LICENSE file in the root directory of this source tree. 676 */const Ble=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],wU=me("scale",Ble);/** 677 * @license lucide-react v0.487.0 - ISC 678 * 679 * This source code is licensed under the ISC license. 680 * See the LICENSE file in the root directory of this source tree. 681 */const Hle=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]],Fle=me("scan",Hle);/** 682 * @license lucide-react v0.487.0 - ISC 683 * 684 * This source code is licensed under the ISC license. 685 * See the LICENSE file in the root directory of this source tree. 686 */const zle=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],Vle=me("scroll-text",zle);/** 687 * @license lucide-react v0.487.0 - ISC 688 * 689 * This source code is licensed under the ISC license. 690 * See the LICENSE file in the root directory of this source tree. 691 */const Ule=[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],qle=me("search-check",Ule);/** 692 * @license lucide-react v0.487.0 - ISC 693 * 694 * This source code is licensed under the ISC license. 695 * See the LICENSE file in the root directory of this source tree. 696 */const Wle=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Ls=me("search",Wle);/** 697 * @license lucide-react v0.487.0 - ISC 698 * 699 * This source code is licensed under the ISC license. 700 * See the LICENSE file in the root directory of this source tree. 701 */const Gle=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Kle=me("send",Gle);/** 702 * @license lucide-react v0.487.0 - ISC 703 * 704 * This source code is licensed under the ISC license. 705 * See the LICENSE file in the root directory of this source tree. 706 */const Yle=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
706y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Sy=me("shield-alert",Yle);/** 707 * @license lucide-react v0.487.0 - ISC 708 * 709 * This source code is licensed under the ISC license. 710 * See the LICENSE file in the root directory of this source tree. 711 */const Xle=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Rr=me("shield-check",Xle);/** 712 * @license lucide-react v0.487.0 - ISC 713 * 714 * This source code is licensed under the ISC license. 715 * See the LICENSE file in the root directory of this source tree. 716 */const Jle=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],is=me("shield",Jle);/** 717 * @license lucide-react v0.487.0 - ISC 718 * 719 * This source code is licensed under the ISC license. 720 * See the LICENSE file in the root directory of this source tree. 721 */const Qle=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],Zle=me("smile",Qle);/** 722 * @license lucide-react v0.487.0 - ISC 723 * 724 * This source code is licensed under the ISC license. 725 * See the LICENSE file in the root directory of this source tree. 726 */const ece=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],ls=me("sparkles",ece);/** 727 * @license lucide-react v0.487.0 - ISC 728 * 729 * This source code is licensed under the ISC license. 730 * See the LICENSE file in the root directory of this source tree. 731 */const tce=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],NU=me("square-pen",tce);/** 732 * @license lucide-react v0.487.0 - ISC 733 * 734 * This source code is licensed under the ISC license. 735 * See the LICENSE file in the root directory of this source tree. 736 */const rce=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Un=me("star",rce);/** 737 * @license lucide-react v0.487.0 - ISC 738 * 739 * This source code is licensed under the ISC license. 740 * See the LICENSE file in the root directory of this source tree. 741 */const nce=[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]],mi=me("stethoscope",nce);/** 742 * @license lucide-react v0.487.0 - ISC 743 * 744 * This source code is licensed under the ISC license. 745 * See the LICENSE file in the root directory of this source tree. 746 */const ace=[["path",{d:"m18 2 4 4",key:"22kx64"}],["path",{d:"m17 7 3-3",key:"1w1zoj"}],["path",{d:"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5",key:"1exhtz"}],["path",{d:"m9 11 4 4",key:"rovt3i"}],["path",{d:"m5 19-3 3",key:"59f2uf"}],["path",{d:"m14 4 6 6",key:"yqp9t2"}]],sce=me("syringe",ace);/** 747 * @license lucide-react v0.487.0 - ISC 748 * 749 * This source code is licensed under the ISC license. 750 * See the LICENSE file in the root directory of this source tree. 751 */const ice=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],jU=me("table",ice);/** 752 * @license lucide-react v0.487.0 - ISC 753 * 754 * This source code is licensed under the ISC license. 755 * See the LICENSE file in the root directory of this source tree. 756 */const oce=[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],lce=me("thumbs-up",oce);/** 757 * @license lucide-react v0.487.0 - ISC 758 * 759 * This source code is licensed under the ISC license. 760 * See the LICENSE file in the root directory of this source tree. 761 */const cce=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],dS=me("timer",cce);/** 762 * @license lucide-react v0.487.0 - ISC 763 * 764 * This source code is licensed under the ISC license. 765 * See the LICENSE file in the root directory of this source tree. 766 */const uce=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
766],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],zs=me("trash-2",uce);/** 767 * @license lucide-react v0.487.0 - ISC 768 * 769 * This source code is licensed under the ISC license. 770 * See the LICENSE file in the root directory of this source tree. 771 */const dce=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Go=me("triangle-alert",dce);/** 772 * @license lucide-react v0.487.0 - ISC 773 * 774 * This source code is licensed under the ISC license. 775 * See the LICENSE file in the root directory of this source tree. 776 */const hce=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],fce=me("underline",hce);/** 777 * @license lucide-react v0.487.0 - ISC 778 * 779 * This source code is licensed under the ISC license. 780 * See the LICENSE file in the root directory of this source tree. 781 */const pce=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],mce=me("undo-2",pce);/** 782 * @license lucide-react v0.487.0 - ISC 783 * 784 * This source code is licensed under the ISC license. 785 * See the LICENSE file in the root directory of this source tree. 786 */const gce=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],fi=me("upload",gce);/** 787 * @license lucide-react v0.487.0 - ISC 788 * 789 * This source code is licensed under the ISC license. 790 * See the LICENSE file in the root directory of this source tree. 791 */const bce=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]],xce=me("user-check",bce);/** 792 * @license lucide-react v0.487.0 - ISC 793 * 794 * This source code is licensed under the ISC license. 795 * See the LICENSE file in the root directory of this source tree. 796 */const yce=[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]],vce=me("user-cog",yce);/** 797 * @license lucide-react v0.487.0 - ISC 798 * 799 * This source code is licensed under the ISC license. 800 * See the LICENSE file in the root directory of this source tree. 801 */const wce=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Nce=me("user-plus",wce);/** 802 * @license lucide-react v0.487.0 - ISC 803 * 804 * This source code is licensed under the ISC license. 805 * See the LICENSE file in the root directory of this source tree. 806 */const jce=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],kce=me("user-round-check",jce);/** 807 * @license lucide-react v0.487.0 - ISC 808 * 809 * This source code is licensed under the ISC license. 810 * See the LICENSE file in the root directory of this source tree. 811 */const Sce=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]],Cce=me("user-x",Sce);/** 812 * @license lucide-react v0.487.0 - ISC 813 * 814 * This source code is licensed under the ISC license. 815 * See the LICENSE file in the root directory of this source tree. 816 */const $ce=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],hS=me("user",$ce);/** 817 * @license lucide-react v0.487.0 - ISC 818 * 819 * This source code is licensed under the ISC license. 820 * See the LICENSE file in the root directory of this source tree. 821 */const _ce=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],sn=me("users",_ce);/** 822 * @license lucide-react v0.487.0 - ISC 823 * 824 * This source code is licensed under the ISC license. 825 * See the LICENSE file in the root directory of this source tree. 826 */const Ace=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Ece=me("volume-2",Ace);/** 827 * @license lucide-react v0.487.0 - ISC 828 * 829 * This source code is licensed under the ISC license. 830 * See the LICENSE file in the root directory of this source tree. 831 */const Oce=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],Sm=me("wallet",Oce);/** 832 * @license lucide-react v0.487.0 - ISC 833 * 834 * This source code is licensed under the ISC license. 835 * See the LICENSE file in the root directory of this source tree. 836 */const Pce=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 28,139 bytes, lines 836-841
836],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],cs=me("x",Pce);/** 837 * @license lucide-react v0.487.0 - ISC 838 * 839 * This source code is licensed under the ISC license. 840 * See the LICENSE file in the root directory of this source tree. 841 */const Mce=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Cy=me("youtube",Mce),fS=w.createContext({});function pS(t){const e=w.useRef(null);return e.current===null&&(e.current=t()),e.current}const kU=typeof window<"u",SU=kU?w.useLayoutEffect:w.useEffect,$y=w.createContext(null);function mS(t,e){t.indexOf(e)===-1&&t.push(e)}function gS(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}const Yi=(t,e,r)=>r>e?e:r<t?t:r;let bS=()=>{};const Ko={},CU=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function $U(t){return typeof t=="object"&&t!==null}const _U=t=>/^0[^.\s]+$/u.test(t);function xS(t){let e;return()=>(e===void 0&&(e=t()),e)}const Os=t=>t,Tce=(t,e)=>r=>e(t(r)),V0=(...t)=>t.reduce(Tce),Cm=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n};class yS{constructor(){this.subscriptions=[]}add(e){return mS(this.subscriptions,e),()=>gS(this.subscriptions,e)}notify(e,r,n){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,r,n);else for(let i=0;i<a;i++){const o=this.subscriptions[i];o&&o(e,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Do=t=>t*1e3,As=t=>t/1e3;function AU(t,e){return e?t*(1e3/e):0}const EU=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,Rce=1e-7,Ice=12;function Dce(t,e,r,n,a){let i,o,l=0;do o=e+(r-e)/2,i=EU(o,n,a)-t,i>0?r=o:e=o;while(Math.abs(i)>Rce&&++l<Ice);return o}function U0(t,e,r,n){if(t===e&&r===n)return Os;const a=i=>Dce(i,0,1,t,r);return i=>i===0||i===1?i:EU(a(i),e,n)}const OU=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,PU=t=>e=>1-t(1-e),MU=U0(.33,1.53,.69,.99),vS=PU(MU),TU=OU(vS),RU=t=>(t*=2)<1?.5*vS(t):.5*(2-Math.pow(2,-10*(t-1))),wS=t=>1-Math.sin(Math.acos(t)),IU=PU(wS),DU=OU(wS),Lce=U0(.42,0,1,1),Bce=U0(0,0,.58,1),LU=U0(.42,0,.58,1),Hce=t=>Array.isArray(t)&&typeof t[0]!="number",BU=t=>Array.isArray(t)&&typeof t[0]=="number",Fce={linear:Os,easeIn:Lce,easeInOut:LU,easeOut:Bce,circIn:wS,circInOut:DU,circOut:IU,backIn:vS,backInOut:TU,backOut:MU,anticipate:RU},zce=t=>typeof t=="string",$O=t=>{if(BU(t)){bS(t.length===4);const[e,r,n,a]=t;return U0(e,r,n,a)}else if(zce(t))return Fce[t];return t},_g=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Vce(t,e){let r=new Set,n=new Set,a=!1,i=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){o.has(d)&&(u.schedule(d),t()),d(l)}const u={schedule:(d,h=!1,m=!1)=>{const b=m&&a?r:n;return h&&o.add(d),b.has(d)||b.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(l=d,a){i=!0;return}a=!0,[r,n]=[n,r],r.forEach(c),r.clear(),a=!1,i&&(i=!1,u.process(d))}};return u}const Uce=40;function HU(t,e){let r=!1,n=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,o=_g.reduce((j,$)=>(j[$]=Vce(i),j),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:h,preRender:m,render:g,postRender:b}=o,y=()=>{const j=Ko.useManualTiming?a.timestamp:performance.now();r=!1,Ko.useManualTiming||(a.delta=n?1e3/60:Math.max(Math.min(j-a.timestamp,Uce),1)),a.timestamp=j,a.isProcessing=!0,l.process(a),c.process(a),u.process(a),d.process(a),h.process(a),m.process(a),g.process(a),b.process(a),a.isProcessing=!1,r&&e&&(n=!1,t(y))},v=()=>{r=!0,n=!0,a.isProcessing||t(y)};return{schedule:_g.reduce((j,$)=>{const C=o[$];return j[$]=(_,O=!1,E=!1)=>(r||v(),C.schedule(_,O,E)),j},{}),cancel:j=>{for(let $=0;$<_g.length;$++)o[_g[$]].cancel(j)},state:a,steps:o}}const{schedule:pr,cancel:ac,state:Dn,steps:V4}=HU(typeof requestAnimationFrame<"u"?requestAnimationFrame:Os,!0);let Lb;function qce(){Lb=void 0}const ya={now:()=>(Lb===void 0&&ya.set(Dn.isProcessing||Ko.useManualTiming?Dn.timestamp:performance.now()),Lb),set:t=>{Lb=t,queueMicrotask(qce)}},FU=t=>e=>typeof e=="string"&&e.startsWith(t),zU=FU("--"),Wce=FU("var(--"),NS=t=>Wce(t)?Gce.test(t.split("/*")[0].trim()):!1,Gce=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function _O(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const ff={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},$m={...ff,transform:t=>Yi(0,1,t)},Ag={...ff,default:1},Zp=t=>Math.round(t*1e5)/1e5,jS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Kce(t){return t==null}const Yce=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,kS=(t,e)=>r=>!!(typeof r=="string"&&Yce.test(r)&&r.startsWith(t)||e&&!Kce(r)&&Object.prototype.hasOwnProperty.call(r,e)),VU=(t,e,r)=>n=>{if(typeof n!="string")return n;const[a,i,o,l]=n.match(jS);return{[t]:parseFloat(a),[e]:parseFloat(i),[r]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Xce=t=>Yi(0,255,t),U4={...ff,transform:t=>Math.round(Xce(t))},tu={test:kS("rgb","red"),parse:VU("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+U4.transform(t)+", "+U4.transform(e)+", "+U4.transform(r)+", "+Zp($m.transform(n))+")"};function Jce(t){let e="",r="",n="",a="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),a=t.substring(4,5),e+=e,r+=r,n+=n,a+=a),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}}const I9={test:kS("#"),parse:Jce,transform:tu.transform},q0=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),El=q0("deg"),Vi=q0("%"),nt=q0("px"),Qce=q0("vh"),Zce=q0("vw"),AO={...Vi,parse:t=>Vi.parse(t)/100,transform:t=>Vi.transform(t*100)},Jd={test:kS("hsl","hue"),parse:VU("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+Vi.transform(Zp(e))+", "+Vi.transform(Zp(r))+", "+Zp($m.transform(n))+")"},en={test:t=>tu.test(t)||I9.test(t)||Jd.test(t),parse:t=>tu.test(t)?tu.parse(t):Jd.test(t)?Jd.parse(t):I9.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?tu.transform(t):Jd.transform(t),getAnimatableNone:t=>{const e=en.parse(t);return e.alpha=0,en.transform(e)}},eue=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tue(t){var e,r;return isNaN(t)&&typeof t=="string"&&(((e=t.match(jS))==null?void 0:e.length)||0)+(((r=t.match(eue))==null?void 0:r.length)||0)>0}const UU="number",qU="color",rue="var",nue="var(",EO="${}",aue=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _m(t){const e=t.toString(),r=[],n={color:[],number:[],var:[]},a=[];let i=0;const l=e.replace(aue,c=>(en.test(c)?(n.color.push(i),a.push(qU),r.push(en.parse(c))):c.startsWith(nue)?(n.var.push(i),a.push(rue),r.push(c)):(n.number.push(i),a.push(UU),r.push(parseFloat(c))),++i,EO)).split(EO);return{values:r,split:l,indexes:n,types:a}}function WU(t){return _m(t).values}function GU(t){const{split:e,types:r}=_m(t),n=e.length;return a=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],a[o]!==void 0){const l=r[o];l===UU?i+=Zp(a[o]):l===qU?i+=en.transform(a[o]):i+=a[o]}return i}}const sue=t=>typeof t=="number"?0:en.test(t)?en.getAnimatableNone(t):t;function iue(t){const e=WU(t);return GU(t)(e.map(sue))}const sc={test:tue,parse:WU,createTransformer:GU,getAnimatableNone:iue};function q4(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function oue({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let a=0,i=0,o=0;if(!e)a=i=o=r;else{const l=r<.5?r*(1+e):r+e-r*e,c=2*r-l;a=q4(c,l,t+1/3),i=q4(c,l,t),o=q4(c,l,t-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:n}}function cx(t,e){return r=>r>0?e:t}const Pr=(t,e,r)=>t+(e-t)*r,W4=(t,e,r)=>{const n=t*t,a=r*(e*e-n)+n;return a<0?0:Math.sqrt(a)},lue=[I9,tu,Jd],cue=t=>lue.find(e=>e.test(t));function OO(t){const e=cue(t);if(!e)return!1;let r=e.parse(t);return e===Jd&&(r=oue(r)),r}const PO=(t,e)=>{const r=OO(t),n=OO(e);if(!r||!n)return cx(t,e);const a={...r};return i=>(a.red=W4(r.red,n.red,i),a.green=W4(r.green,n.green,i),a.blue=W4(r.blue,n.blue,i),a.alpha=Pr(r.alpha,n.alpha,i),tu.transform(a))},D9=new Set(["none","hidden"]);function uue(t,e){return D9.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function due(t,e){return r=>Pr(t,e,r)}function SS(t){return typeof t=="number"?due:typeof t=="string"?NS(t)?cx:en.test(t)?PO:pue:Array.isArray(t)?KU:typeof t=="object"?en.test(t)?PO:hue:cx}function KU(t,e){const r=[...t],n=r.length,a=t.map((i,o)=>SS(i)(i,e[o]));return i=>{for(let o=0;o<n;o++)r[o]=a[o](i);return r}}function hue(t,e){const r={...t,...e},n={};for(const a in r)t[a]!==void 0&&e[a]!==void 0&&(n[a]=SS(t[a])(t[a],e[a]));return a=>{for(const i in n)r[i]=n[i](a);return r}}function fue(t,e){const r=[],n={color:0,var:0,number:0};for(let a=0;a<e.values.length;a++){const i=e.types[a],o=t.indexes[i][n[i]],l=t.values[o]??0;r[a]=l,n[i]++}return r}const pue=(t,e)=>{const r=sc.createTransformer(e),n=_m(t),a=_m(e);return n.indexes.var.length===a.indexes.var.length&&n.indexes.color.length===a.indexes.color.length&&n.indexes.number.length>=a.indexes.number.length?D9.has(t)&&!a.values.length||D9.has(e)&&!n.values.length?uue(t,e):V0(KU(fue(n,a),a.values),r):cx(t,e)};function YU(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?Pr(t,e,r):SS(t)(t,e)}const mue=t=>{const e=({timestamp:r})=>t(r);return{start:(r=!0)=>pr.update(e,r),stop:()=>ac(e),now:()=>Dn.isProcessing?Dn.timestamp:ya.now()}},XU=(t,e,r=10)=>{let n="";const a=Math.max(Math.round(e/r),2);for(let i=0;i<a;i++)n+=Math.round(t(i/(a-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},ux=2e4;function CS(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e<ux;)e+=r,n=t.next(e);return e>=ux?1/0:e}function gue(t,e=100,r){const n=r({...t,keyframes:[0,e]}),a=Math.min(CS(n),ux);return{type:"keyframes",ease:i=>n.next(a*i).value/e,duration:As(a)}}const bue=5;function JU(t,e,r){const n=Math.max(e-bue,0);return AU(r-t(n),e-n)}const Br={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},G4=.001;function xue({duration:t=Br.duration,bounce:e=Br.bounce,velocity:r=Br.velocity,mass:n=Br.mass}){let a,i,o=1-e;o=Yi(Br.minDamping,Br.maxDamping,o),t=Yi(Br.minDuration,Br.maxDuration,As(t)),o<1?(a=u=>{const d=u*o,h=d*t,m=d-r,g=L9(u,o),b=Math.exp(-h);return G4-m/g*b},i=u=>{const h=u*o*t,m=h*r+r,g=Math.pow(o,2)*Math.pow(u,2)*t,b=Math.exp(-h),y=L9(Math.pow(u,2),o);return(-a(u)+G4>0?-1:1)*((m-g)*b)/y}):(a=u=>{const d=Math.exp(-u*t),h=(u-r)*t+1;return-G4+d*h},i=u=>{const d=Math.exp(-u*t),h=(r-u)*(t*t);return d*h});const l=5/t,c=vue(a,i,l);if(t=Do(t),isNaN(c))return{stiffness:Br.stiffness,damping:Br.damping,duration:t};{const u=Math.pow(c,2)*n;return{stiffness:u,damping:o*2*Math.sqrt(n*u),duration:t}}}const yue=12;function vue(t,e,r){let n=r;for(let a=1;a<yue;a++)n=n-t(n)/e(n);return n}function L9(t,e){return t*Math.sqrt(1-e*e)}const wue=["duration","bounce"],Nue=["stiffness","damping","mass"];function MO(t,e){return e.some(r=>t[r]!==void 0)}function jue(t){let e={velocity:Br.velocity,stiffness:Br.stiffness,damping:Br.damping,mass:Br.mass,isResolvedFromDuration:!1,...t};if(!MO(t,Nue)&&MO(t,wue))if(t.visualDuration){const r=t.visualDuration,n=2*Math.PI/(r*1.2),a=n*n,i=2*Yi(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:Br.mass,stiffness:a,damping:i}}else{const r=xue(t);e={...e,...r,mass:Br.mass},e.isResolvedFromDuration=!0}return e}function dx(t=Br.visualDuration,e=Br.bounce){const r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:a}=r;const i=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:h,velocity:m,isResolvedFromDuration:g}=jue({...r,velocity:-As(r.velocity||0)}),b=m||0,y=u/(2*Math.sqrt(c*d)),v=o-i,N=As(Math.sqrt(c/d)),S=Math.abs(v)<5;n||(n=S?Br.restSpeed.granular:Br.restSpeed.default),a||(a=S?Br.restDelta.granular:Br.restDelta.default);let j;if(y<1){const C=L9(N,y);j=_=>{const O=Math.exp(-y*N*_);return o-O*((b+y*N*v)/C*Math.sin(C*_)+v*Math.cos(C*_))}}else if(y===1)j=C=>o-Math.exp(-N*C)*(v+(b+N*v)*C);else{const C=N*Math.sqrt(y*y-1);j=_=>{const O=Math.exp(-y*N*_),E=Math.min(C*_,300);return o-O*((b+y*N*v)*Math.sinh(E)+C*v*Math.cosh(E))/C}}const $={calculatedDuration:g&&h||null,next:C=>{const _=j(C);if(g)l.done=C>=h;else{let O=C===0?b:0;y<1&&(O=C===0?Do(b):JU(j,C,_));const E=Math.abs(O)<=n,P=Math.abs(o-_)<=a;l.done=E&&P}return l.value=l.done?o:_,l},toString:()=>{const C=Math.min(CS($),ux),_=XU(O=>$.next(C*O).value,C,30);return C+"ms "+_},toTransition:()=>{}};return $}dx.applyToOptions=t=>{const e=gue(t,100,dx);return t.ease=e.ease,t.duration=Do(e.duration),t.type="keyframes",t};function B9({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:c,restDelta:u=.5,restSpeed:d}){const h=t[0],m={done:!1,value:h},g=E=>l!==void 0&&E<l||c!==void 0&&E>c,b=E=>l===void 0?c:c===void 0||Math.abs(l-E)<Math.abs(c-E)?l:c;let y=r*e;const v=h+y,N=o===void 0?v:o(v);N!==v&&(y=N-h);const S=E=>-y*Math.exp(-E/n),j=E=>N+S(E),$=E=>{const P=S(E),T=j(E);m.done=Math.abs(P)<=u,m.value=m.done?N:T};let C,_;const O=E=>{g(m.value)&&(C=E,_=dx({keyframes:[m.value,b(m.value)],velocity:JU(j,E,m.value),damping:a,stiffness:i,restDelta:u,restSpeed:d}))};return O(0),{calculatedDuration:null,next:E=>{let P=!1;return!_&&C===void 0&&(P=!0,$(E),O(E)),C!==void 0&&E>=C?_.next(E-C):(!P&&$(E),m)}}}function kue(t,e,r){const n=[],a=r||Ko.mix||YU,i=t.length-1;for(let o=0;o<i;o++){let l=a(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||Os:e;l=V0(c,l)}n.push(l)}return n}function Sue(t,e,{clamp:r=!0,ease:n,mixer:a}={}){const i=t.length;if(bS(i===e.length),i===1)return()=>e[0];if(i===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=kue(e,n,a),c=l.length,u=d=>{if(o&&d<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(d<t[h+1]);h++);const m=Cm(t[h],t[h+1],d);return l[h](m)};return r?d=>u(Yi(t[0],t[i-1],d)):u}function Cue(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const a=Cm(0,e,n);t.push(Pr(r,1,a))}}function $ue(t){const e=[0];return Cue(e,t.length-1),e}function _ue(t,e){return t.map(r=>r*e)}function Aue(t,e){return t.map(()=>e||LU).splice(0,t.length-1)}function em({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const a=Hce(n)?n.map($O):$O(n),i={done:!1,value:e[0]},o=_ue(r&&r.length===e.length?r:$ue(e),t),l=Sue(o,e,{ease:Array.isArray(a)?a:Aue(e,a)});return{calculatedDuration:t,next:c=>(i.value=l(c),i.done=c>=t,i)}}const Eue=t=>t!==null;function $S(t,{repeat:e,repeatType:r="loop"},n,a=1){const i=t.filter(Eue),l=a<0||e&&r!=="loop"&&e%2===1?0:i.length-1;return!l||n===void 0?i[l]:n}const Oue={decay:B9,inertia:B9,tween:em,keyframes:em,spring:dx};function QU(t){typeof t.type=="string"&&(t.type=Oue[t.type])}class _S{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,r){return this.finished.then(e,r)}}const Pue=t=>t/100;class AS extends _S{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,a;const{motionValue:r}=this.options;r&&r.updatedAt!==ya.now()&&this.tick(ya.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(n=this.options).onStop)==null||a.call(n))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;QU(e);const{type:r=em,repeat:n=0,repeatDelay:a=0,repeatType:i,velocity:o=0}=e;let{keyframes:l}=e;const c=r||em;c!==em&&typeof l[0]!="number"&&(this.mixKeyframes=V0(Pue,YU(l[0],l[1])),l=[0,100]);const u=c({...e,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...l].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=CS(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+a,this.totalDuration=this.resolvedDuration*(n+1)-a,this.generator=u}updateTime(e){const r=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(e,r=!1){const{generator:n,totalDuration:a,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:u=0,keyframes:d,repeat:h,repeatType:m,repeatDelay:g,type:b,onUpdate:y,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-a/this.speed,this.startTime)),r?this.currentTime=e:this.updateTime(e);const N=this.currentTime-u*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?N<0:N>a;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let j=this.currentTime,$=n;if(h){const E=Math.min(this.currentTime,a)/l;let P=Math.floor(E),T=E%1;!T&&E>=1&&(T=1),T===1&&P--,P=Math.min(P,h+1),!!(P%2)&&(m==="reverse"?(T=1-T,g&&(T-=g/l)):m==="mirror"&&($=o)),j=Yi(0,1,T)*l}const C=S?{done:!1,value:d[0]}:$.next(j);i&&(C.value=i(C.value));let{done:_}=C;!S&&c!==null&&(_=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return O&&b!==B9&&(C.value=$S(d,this.options,v,this.speed)),y&&y(C.value),O&&this.finish(),C}then(e,r){return this.finished.then(e,r)}get duration(){return As(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+As(e)}get time(){return As(this.currentTime)}set time(e){var r;e=Do(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(r=this.driver)==null||r.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(ya.now());const r=this.playbackSpeed!==e;this.playbackSpeed=e,r&&(this.time=As(this.currentTime))}play(){var a,i;if(this.isStopped)return;const{driver:e=mue,startTime:r}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(i=(a=this.options).onPlay)==null||i.call(a);const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ya.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(e=this.options).onComplete)==null||r.call(e)}cancel(){var e,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(e=this.options).onCancel)==null||r.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),e.observe(this)}}function Mue(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ru=t=>t*180/Math.PI,H9=t=>{const e=ru(Math.atan2(t[1],t[0]));return F9(e)},Tue={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:H9,rotateZ:H9,skewX:t=>ru(Math.atan(t[1])),skewY:t=>ru(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},F9=t=>(t=t%360,t<0&&(t+=360),t),TO=H9,RO=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),IO=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Rue={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:RO,scaleY:IO,scale:t=>(RO(t)+IO(t))/2,rotateX:t=>F9(ru(Math.atan2(t[6],t[5]))),rotateY:t=>F9(ru(Math.atan2(-t[2],t[0]))),rotateZ:TO,rotate:TO,skewX:t=>ru(Math.atan(t[4])),skewY:t=>ru(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function z9(t){return t.includes("scale")?1:0}function V9(t,e){if(!t||t==="none")return z9(e);const r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,a;if(r)n=Rue,a=r;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Tue,a=l}if(!a)return z9(e);const i=n[e],o=a[1].split(",").map(Due);return typeof i=="function"?i(o):o[i]}const Iue=(t,e)=>{const{transform:r="none"}=getComputedStyle(t);return V9(r,e)};function Due(t){return parseFloat(t.trim())}const pf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mf=new Set(pf),DO=t=>t===ff||t===nt,Lue=new Set(["x","y","z"]),Bue=pf.filter(t=>!Lue.has(t));function Hue(t){const e=[];return Bue.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e}const Wl={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>V9(e,"x"),y:(t,{transform:e})=>V9(e,"y")};Wl.translateX=Wl.x;Wl.translateY=Wl.y;const gu=new Set;let U9=!1,q9=!1,W9=!1;function ZU(){if(q9){const t=Array.from(gu).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),r=new Map;e.forEach(n=>{const a=Hue(n);a.length&&(r.set(n,a),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const a=r.get(n);a&&a.forEach(([i,o])=>{var l;(l=n.getValue(i))==null||l.set(o)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}q9=!1,U9=!1,gu.forEach(t=>t.complete(W9)),gu.clear()}function eq(){gu.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(q9=!0)})}function Fue(){W9=!0,eq(),ZU(),W9=!1}class ES{constructor(e,r,n,a,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=n,this.motionValue=a,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(gu.add(this),U9||(U9=!0,pr.read(eq),pr.resolveKeyframes(ZU))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:r,element:n,motionValue:a}=this;if(e[0]===null){const i=a==null?void 0:a.get(),o=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&r){const l=n.readValue(r,o);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=o),a&&i===void 0&&a.set(e[0])}Mue(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),gu.delete(this)}cancel(){this.state==="scheduled"&&(gu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const zue=t=>t.startsWith("--");function Vue(t,e,r){zue(e)?t.style.setProperty(e,r):t.style[e]=r}const Uue=xS(()=>window.ScrollTimeline!==void 0),que={};function Wue(t,e){const r=xS(t);return()=>que[e]??r()}const tq=Wue(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Hp=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,LO={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hp([0,.65,.55,1]),circOut:Hp([.55,0,1,.45]),backIn:Hp([.31,.01,.66,-.59]),backOut:Hp([.33,1.53,.69,.99])};function rq(t,e){if(t)return typeof t=="function"?tq()?XU(t,e):"ease-out":BU(t)?Hp(t):Array.isArray(t)?t.map(r=>rq(r,e)||LO.easeOut):LO[t]}function Gue(t,e,r,{delay:n=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[e]:r};c&&(d.offset=c);const h=rq(l,a);Array.isArray(h)&&(d.easing=h);const m={delay:n,duration:a,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return u&&(m.pseudoElement=u),t.animate(d,m)}function nq(t){return typeof t=="function"&&"applyToOptions"in t}function Kue({type:t,...e}){return nq(t)&&tq()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Yue extends _S{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:r,name:n,keyframes:a,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:l,onComplete:c}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,bS(typeof e.type!="string");const u=Kue(e);this.animation=Gue(r,n,a,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=$S(a,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):Vue(r,n,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,r;(r=(e=this.animation).finish)==null||r.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var r,n,a;const e=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((a=(n=this.animation).commitStyles)==null||a.call(n))}get duration(){var r,n;const e=((n=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:n.call(r).duration)||0;return As(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+As(e)}get time(){return As(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Do(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:r}){var n;return this.allowFlatten&&((n=this.animation.effect)==null||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Uue()?(this.animation.timeline=e,Os):r(this)}}const aq={anticipate:RU,backInOut:TU,circInOut:DU};function Xue(t){return t in aq}function Jue(t){typeof t.ease=="string"&&Xue(t.ease)&&(t.ease=aq[t.ease])}const K4=10;class Que extends Yue{constructor(e){Jue(e),QU(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:r,onUpdate:n,onComplete:a,element:i,...o}=this.options;if(!r)return;if(e!==void 0){r.set(e);return}const l=new AS({...o,autoplay:!1}),c=Math.max(K4,ya.now()-this.startTime),u=Yi(0,K4,c-K4);r.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const BO=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(sc.test(t)||t==="0")&&!t.startsWith("url("));function Zue(t){const e=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}function ede(t,e,r,n){const a=t[0];if(a===null)return!1;if(e==="display"||e==="visibility")return!0;
841const i=t[t.length-1],o=BO(a,e),l=BO(i,e);return!o||!l?!1:Zue(t)||(r==="spring"||nq(r))&&n}function G9(t){t.duration=0,t.type="keyframes"}const tde=new Set(["opacity","clipPath","filter","transform"]),rde=xS(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function nde(t){var d;const{motionValue:e,name:r,repeatDelay:n,repeatType:a,damping:i,type:o}=t;if(!(((d=e==null?void 0:e.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return rde()&&r&&tde.has(r)&&(r!=="transform"||!u)&&!c&&!n&&a!=="mirror"&&i!==0&&o!=="inertia"}const ade=40;class sde extends _S{constructor({autoplay:e=!0,delay:r=0,type:n="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:o="loop",keyframes:l,name:c,motionValue:u,element:d,...h}){var b;super(),this.stop=()=>{var y,v;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=ya.now();const m={autoplay:e,delay:r,type:n,repeat:a,repeatDelay:i,repeatType:o,name:c,motionValue:u,element:d,...h},g=(d==null?void 0:d.KeyframeResolver)||ES;this.keyframeResolver=new g(l,(y,v,N)=>this.onKeyframesResolved(y,v,m,!N),c,u,d),(b=this.keyframeResolver)==null||b.scheduleResolve()}onKeyframesResolved(e,r,n,a){var v,N;this.keyframeResolver=void 0;const{name:i,type:o,velocity:l,delay:c,isHandoff:u,onUpdate:d}=n;this.resolvedAt=ya.now(),ede(e,i,o,l)||((Ko.instantAnimations||!c)&&(d==null||d($S(e,n,r))),e[0]=e[e.length-1],G9(n),n.repeat=0);const m={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>ade?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:e},g=!u&&nde(m),b=(N=(v=m.motionValue)==null?void 0:v.owner)==null?void 0:N.current,y=g?new Que({...m,element:b}):new AS(m);y.finished.then(()=>{this.notifyFinished()}).catch(Os),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(e,r){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Fue()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function sq(t,e,r,n=0,a=1){const i=Array.from(t).sort((u,d)=>u.sortNodePosition(d)).indexOf(e),o=t.size,l=(o-1)*n;return typeof r=="function"?r(i,o):a===1?i*n:l-i*n}const ide=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ode(t){const e=ide.exec(t);if(!e)return[,];const[,r,n,a]=e;return[`--${r??n}`,a]}function iq(t,e,r=1){const[n,a]=ode(t);if(!n)return;const i=window.getComputedStyle(e).getPropertyValue(n);if(i){const o=i.trim();return CU(o)?parseFloat(o):o}return NS(a)?iq(a,e,r+1):a}const lde={type:"spring",stiffness:500,damping:25,restSpeed:10},cde=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ude={type:"keyframes",duration:.8},dde={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hde=(t,{keyframes:e})=>e.length>2?ude:mf.has(t)?t.startsWith("scale")?cde(e[1]):lde:dde,fde=t=>t!==null;function pde(t,{repeat:e,repeatType:r="loop"},n){const a=t.filter(fde),i=e&&r!=="loop"&&e%2===1?0:a.length-1;return a[i]}function OS(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}function mde({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:i,repeatType:o,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const PS=(t,e,r,n={},a,i)=>o=>{const l=OS(n,t)||{},c=l.delay||n.delay||0;let{elapsed:u=0}=n;u=u-Do(c);const d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:m=>{e.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:i?void 0:a};mde(l)||Object.assign(d,hde(t,d)),d.duration&&(d.duration=Do(d.duration)),d.repeatDelay&&(d.repeatDelay=Do(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(G9(d),d.delay===0&&(h=!0)),(Ko.instantAnimations||Ko.skipAnimations||a!=null&&a.shouldSkipAnimations)&&(h=!0,G9(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,h&&!i&&e.get()!==void 0){const m=pde(d.keyframes,l);if(m!==void 0){pr.update(()=>{d.onUpdate(m),d.onComplete()});return}}return l.isSync?new AS(d):new sde(d)};function HO(t){const e=[{},{}];
vendor: 15,311 bytes, line 841
841return t==null||t.values.forEach((r,n)=>{e[0][n]=r.get(),e[1][n]=r.getVelocity()}),e}function MS(t,e,r,n){if(typeof e=="function"){const[a,i]=HO(n);e=e(r!==void 0?r:t.custom,a,i)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[a,i]=HO(n);e=e(r!==void 0?r:t.custom,a,i)}return e}function uh(t,e,r){const n=t.getProps();return MS(n,e,r!==void 0?r:n.custom,t)}const oq=new Set(["width","height","top","left","right","bottom",...pf]),FO=30,gde=t=>!isNaN(parseFloat(t));class bde{constructor(e,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{var i;const a=ya.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=r.owner}setCurrent(e){this.current=e,this.updatedAt=ya.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=gde(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new yS);const n=this.events[e].add(r);return e==="change"?()=>{n(),pr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,r=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ya.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>FO)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,FO);return AU(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,r;(e=this.dependents)==null||e.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wh(t,e){return new bde(t,e)}const K9=t=>Array.isArray(t);function xde(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,wh(r))}function yde(t){return K9(t)?t[t.length-1]||0:t}function vde(t,e){const r=uh(t,e);let{transitionEnd:n={},transition:a={},...i}=r||{};i={...i,...n};for(const o in i){const l=yde(i[o]);xde(t,o,l)}}const ia=t=>!!(t&&t.getVelocity);function wde(t){return!!(ia(t)&&t.add)}function Y9(t,e){const r=t.getValue("willChange");if(wde(r))return r.add(e);if(!r&&Ko.WillChange){const n=new Ko.WillChange("auto");t.addValue("willChange",n),n.add(e)}}function TS(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Nde="framerAppearId",lq="data-"+TS(Nde);function cq(t){return t.props[lq]}function jde({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}function uq(t,e,{delay:r=0,transitionOverride:n,type:a}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:o,...l}=e;const c=i==null?void 0:i.reduceMotion;n&&(i=n);const u=[],d=a&&t.animationState&&t.animationState.getState()[a];for(const h in l){const m=t.getValue(h,t.latestValues[h]??null),g=l[h];if(g===void 0||d&&jde(d,h))continue;const b={delay:r,...OS(i||{},h)},y=m.get();if(y!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===y&&!b.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const j=cq(t);if(j){const $=window.MotionHandoffAnimation(j,h,pr);$!==null&&(b.startTime=$,v=!0)}}Y9(t,h);const N=c??t.shouldReduceMotion;m.start(PS(h,m,g,N&&oq.has(h)?{type:!1}:b,t,v));const S=m.animation;S&&u.push(S)}return o&&Promise.all(u).then(()=>{pr.update(()=>{o&&vde(t,o)})}),u}function X9(t,e,r={}){var c;const n=uh(t,e,r.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:a=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(a=r.transitionOverride);const i=n?()=>Promise.all(uq(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:m}=a;return kde(t,e,u,d,h,m,r)}:()=>Promise.resolve(),{when:l}=a;if(l){const[u,d]=l==="beforeChildren"?[i,o]:[o,i];return u().then(()=>d())}else return Promise.all([i(),o(r.delay)])}function kde(t,e,r=0,n=0,a=0,i=1,o){const l=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),l.push(X9(c,e,{...o,delay:r+(typeof n=="function"?0:n)+sq(t.variantChildren,c,n,a,i)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(l)}function Sde(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const a=e.map(i=>X9(t,i,r));n=Promise.all(a)}else if(typeof e=="string")n=X9(t,e,r);else{const a=typeof e=="function"?uh(t,e,r.custom):e;n=Promise.all(uq(t,a,r))}return n.then(()=>{t.notify("AnimationComplete",e)})}const Cde={test:t=>t==="auto",parse:t=>t},dq=t=>e=>e.test(t),hq=[ff,nt,Vi,El,Zce,Qce,Cde],zO=t=>hq.find(dq(t));function $de(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||_U(t):!0}const _de=new Set(["brightness","contrast","saturate","opacity"]);function Ade(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(jS)||[];if(!n)return t;const a=r.replace(n,"");let i=_de.has(e)?1:0;return n!==r&&(i*=100),e+"("+i+a+")"}const Ede=/\b([a-z-]*)\(.*?\)/gu,J9={...sc,getAnimatableNone:t=>{const e=t.match(Ede);return e?e.map(Ade).join(" "):t}},VO={...ff,transform:Math.round},Ode={rotate:El,rotateX:El,rotateY:El,rotateZ:El,scale:Ag,scaleX:Ag,scaleY:Ag,scaleZ:Ag,skew:El,skewX:El,skewY:El,distance:nt,translateX:nt,translateY:nt,translateZ:nt,x:nt,y:nt,z:nt,perspective:nt,transformPerspective:nt,opacity:$m,originX:AO,originY:AO,originZ:nt},RS={borderWidth:nt,borderTopWidth:nt,borderRightWidth:nt,borderBottomWidth:nt,borderLeftWidth:nt,borderRadius:nt,borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomRightRadius:nt,borderBottomLeftRadius:nt,width:nt,maxWidth:nt,height:nt,maxHeight:nt,top:nt,right:nt,bottom:nt,left:nt,inset:nt,insetBlock:nt,insetBlockStart:nt,insetBlockEnd:nt,insetInline:nt,insetInlineStart:nt,insetInlineEnd:nt,padding:nt,paddingTop:nt,paddingRight:nt,paddingBottom:nt,paddingLeft:nt,paddingBlock:nt,paddingBlockStart:nt,paddingBlockEnd:nt,paddingInline:nt,paddingInlineStart:nt,paddingInlineEnd:nt,margin:nt,marginTop:nt,marginRight:nt,marginBottom:nt,marginLeft:nt,marginBlock:nt,marginBlockStart:nt,marginBlockEnd:nt,marginInline:nt,marginInlineStart:nt,marginInlineEnd:nt,fontSize:nt,backgroundPositionX:nt,backgroundPositionY:nt,...Ode,zIndex:VO,fillOpacity:$m,strokeOpacity:$m,numOctaves:VO},Pde={...RS,color:en,backgroundColor:en,outlineColor:en,fill:en,stroke:en,borderColor:en,borderTopColor:en,borderRightColor:en,borderBottomColor:en,borderLeftColor:en,filter:J9,WebkitFilter:J9},fq=t=>Pde[t];function pq(t,e){let r=fq(t);return r!==J9&&(r=sc),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const Mde=new Set(["auto","none","0"]);function Tde(t,e,r){let n=0,a;for(;n<t.length&&!a;){const i=t[n];typeof i=="string"&&!Mde.has(i)&&_m(i).values.length&&(a=t[n]),n++}if(a&&r)for(const i of e)t[i]=pq(r,a)}class Rde extends ES{constructor(e,r,n,a,i){super(e,r,n,a,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let d=0;d<e.length;d++){let h=e[d];if(typeof h=="string"&&(h=h.trim(),NS(h))){const m=iq(h,r.current);m!==void 0&&(e[d]=m),d===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!oq.has(n)||e.length!==2)return;const[a,i]=e,o=zO(a),l=zO(i),c=_O(a),u=_O(i);if(c!==u&&Wl[n]){this.needsMeasurement=!0;return}if(o!==l)if(DO(o)&&DO(l))for(let d=0;d<e.length;d++){const h=e[d];typeof h=="string"&&(e[d]=parseFloat(h))}else Wl[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:r}=this,n=[];for(let a=0;a<e.length;a++)(e[a]===null||$de(e[a]))&&n.push(a);n.length&&Tde(e,n,r)}measureInitialState(){const{element:e,unresolvedKeyframes:r,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Wl[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r[0]=this.measuredOrigin;const a=r[r.length-1];a!==void 0&&e.getValue(n,a).jump(a,!1)}measureEndState(){var l;const{element:e,name:r,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const a=e.getValue(r);a&&a.jump(this.measuredOrigin,!1);const i=n.length-1,o=n[i];n[i]=Wl[r](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,u])=>{e.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function mq(t,e,r){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){const a=document.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t).filter(n=>n!=null)}const gq=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Q9(t){return $U(t)&&"offsetHeight"in t}const{schedule:IS}=HU(queueMicrotask,!1),ri={x:!1,y:!1};function bq(){return ri.x||ri.y}function Ide(t){return t==="x"||t==="y"?ri[t]?null:(ri[t]=!0,()=>{ri[t]=!1}):ri.x||ri.y?null:(ri.x=ri.y=!0,()=>{ri.x=ri.y=!1})}function xq(t,e){const r=mq(t),n=new AbortController,a={passive:!0,...e,signal:n.signal};return[r,a,()=>n.abort()]}function UO(t){return!(t.pointerType==="touch"||bq())}function Dde(t,e,r={}){const[n,a,i]=xq(t,r),o=l=>{if(!UO(l))return;const{target:c}=l,u=e(c,l);if(typeof u!="function"||!c)return;const d=h=>{UO(h)&&(u(h),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,a)};return n.forEach(l=>{l.addEventListener("pointerenter",o,a)}),i}const yq=(t,e)=>e?t===e?!0:yq(t,e.parentElement):!1,DS=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Lde=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Bde(t){return Lde.has(t.tagName)||t.isContentEditable===!0}const Hde=new Set(["INPUT","SELECT","TEXTAREA"]);function Fde(t){return Hde.has(t.tagName)||t.isContentEditable===!0}const Bb=new WeakSet;function qO(t){return e=>{e.key==="Enter"&&t(e)}}function Y4(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const zde=(t,e)=>{const r=t.currentTarget;if(!r)return;const n=qO(()=>{if(Bb.has(r))return;Y4(r,"down");const a=qO(()=>{Y4(r,"up")}),i=()=>Y4(r,"cancel");r.addEventListener("keyup",a,e),r.addEventListener("blur",i,e)});r.addEventListener("keydown",n,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),e)};function WO(t){return DS(t)&&!bq()}function Vde(t,e,r={}){const[n,a,i]=xq(t,r),o=l=>{const c=l.currentTarget;if(!WO(l))return;Bb.add(c);const u=e(c,l),d=(g,b)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),Bb.has(c)&&Bb.delete(c),WO(g)&&typeof u=="function"&&u(g,{success:b})},h=g=>{d(g,c===window||c===document||r.useGlobalTarget||yq(c,g.target))},m=g=>{d(g,!1)};window.addEventListener("pointerup",h,a),window.addEventListener("pointercancel",m,a)};return n.forEach(l=>{(r.useGlobalTarget?window:l).addEventListener("pointerdown",o,a),Q9(l)&&(l.addEventListener("focus",u=>zde(u,a)),!Bde(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function vq(t){return $U(t)&&"ownerSVGElement"in t}function Ude(t){return vq(t)&&t.tagName==="svg"}const qde=[...hq,en,sc],Wde=t=>qde.find(dq(t)),GO=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qd=()=>({x:GO(),y:GO()}),KO=()=>({min:0,max:0}),pn=()=>({x:KO(),y:KO()}),Z9={current:null},wq={current:!1},Gde=typeof window<"u";function Kde(){if(wq.current=!0,!!Gde)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Z9.current=t.matches;t.addEventListener("change",e),e()}else Z9.current=!1}const Yde=new WeakMap;function _y(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Am(t){return typeof t=="string"||Array.isArray(t)}const LS=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],BS=["initial",...LS];function Ay(t){return _y(t.animate)||BS.some(e=>Am(t[e]))}function Nq(t){return!!(Ay(t)||t.variants)}function Xde(t,e,r){for(const n in e){const a=e[n],i=r[n];if(ia(a))t.addValue(n,a);else if(ia(i))t.addValue(n,wh(a,{owner:t}));else if(i!==a)if(t.hasValue(n)){const o=t.getValue(n);o.liveStyle===!0?o.jump(a):o.hasAnimated||o.set(a)}else{const o=t.getStaticValue(n);t.addValue(n,wh(o!==void 0?o:a,{owner:t}))}}for(const n in r)e[n]===void 0&&t.removeValue(n);return e}const YO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let hx={};function jq(t){hx=t}function Jde(){return hx}class Qde{scrapeMotionValuesFromProps(e,r,n){return{}}constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:a,skipAnimations:i,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ES,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=ya.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,pr.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=d,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Ay(r),this.isVariantNode=Nq(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(r,{},this);for(const g in m){const b=m[g];u[g]!==void 0&&ia(b)&&b.set(u[g])}}mount(e){var r;this.current=e,Yde.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 5,721 bytes, line 841
841h((n,a)=>this.bindToMotionValue(a,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(wq.current||Kde(),this.shouldReduceMotion=Z9.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),ac(this.notifyUpdate),ac(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const n=this.features[r];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,r){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=mf.has(e);n&&this.onBindTransform&&this.onBindTransform();const a=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&pr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{a(),i&&i(),r.owner&&r.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in hx){const r=hx[e];if(!r)continue;const{isEnabled:n,Feature:a}=r;if(!this.features[e]&&a&&n(this.props)&&(this.features[e]=new a(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pn()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<YO.length;n++){const a=YO[n];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const i="on"+a,o=e[i];o&&(this.propEventSubscriptions[a]=this.on(a,o))}this.prevMotionValues=Xde(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){const n=this.values.get(e);r!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get())}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=wh(r===null?void 0:r,{owner:this}),this.addValue(e,n)),n}readValue(e,r){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(CU(n)||_U(n))?n=parseFloat(n):!Wde(n)&&sc.test(r)&&(n=pq(e,r)),this.setBaseTarget(e,ia(n)?n.get():n)),ia(n)?n.get():n}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var i;const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const o=MS(this.props,r,(i=this.presenceContext)==null?void 0:i.custom);o&&(n=o[e])}if(r&&n!==void 0)return n;const a=this.getBaseTargetFromProps(this.props,e);return a!==void 0&&!ia(a)?a:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new yS),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}scheduleRenderMicrotask(){IS.render(this.render)}}class kq extends Qde{constructor(){super(...arguments),this.KeyframeResolver=Rde}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){const n=e.style;return n?n[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ia(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class hc{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Sq({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function Zde({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ehe(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function X4(t){return t===void 0||t===1}function eN({scale:t,scaleX:e,scaleY:r}
vendor: 4,443 bytes, line 841
841){return!X4(t)||!X4(e)||!X4(r)}function Wc(t){return eN(t)||Cq(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Cq(t){return XO(t.x)||XO(t.y)}function XO(t){return t&&t!=="0%"}function fx(t,e,r){const n=t-r,a=e*n;return r+a}function JO(t,e,r,n,a){return a!==void 0&&(t=fx(t,a,n)),fx(t,r,n)+e}function tN(t,e=0,r=1,n,a){t.min=JO(t.min,e,r,n,a),t.max=JO(t.max,e,r,n,a)}function $q(t,{x:e,y:r}){tN(t.x,e.translate,e.scale,e.originPoint),tN(t.y,r.translate,r.scale,r.originPoint)}const QO=.999999999999,ZO=1.0000000000001;function the(t,e,r,n=!1){const a=r.length;if(!a)return;e.x=e.y=1;let i,o;for(let l=0;l<a;l++){i=r[l],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&eh(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,$q(t,o)),n&&Wc(i.latestValues)&&eh(t,i.latestValues))}e.x<ZO&&e.x>QO&&(e.x=1),e.y<ZO&&e.y>QO&&(e.y=1)}function Zd(t,e){t.min=t.min+e,t.max=t.max+e}function eP(t,e,r,n,a=.5){const i=Pr(t.min,t.max,a);tN(t,e,r,i,n)}function eh(t,e){eP(t.x,e.x,e.scaleX,e.scale,e.originX),eP(t.y,e.y,e.scaleY,e.scale,e.originY)}function _q(t,e){return Sq(ehe(t.getBoundingClientRect(),e))}function rhe(t,e,r){const n=_q(t,r),{scroll:a}=e;return a&&(Zd(n.x,a.offset.x),Zd(n.y,a.offset.y)),n}const nhe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ahe=pf.length;function she(t,e,r){let n="",a=!0;for(let i=0;i<ahe;i++){const o=pf[i],l=t[o];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(o.startsWith("scale")?1:0);else{const u=parseFloat(l);c=o.startsWith("scale")?u===1:u===0}if(!c||r){const u=gq(l,RS[o]);if(!c){a=!1;const d=nhe[o]||o;n+=`${d}(${u}) `}r&&(e[o]=u)}}return n=n.trim(),r?n=r(e,a?"":n):a&&(n="none"),n}function HS(t,e,r){const{style:n,vars:a,transformOrigin:i}=t;let o=!1,l=!1;for(const c in e){const u=e[c];if(mf.has(c)){o=!0;continue}else if(zU(c)){a[c]=u;continue}else{const d=gq(u,RS[c]);c.startsWith("origin")?(l=!0,i[c]=d):n[c]=d}}if(e.transform||(o||r?n.transform=she(e,t.transform,r):n.transform&&(n.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;n.transformOrigin=`${c} ${u} ${d}`}}function Aq(t,{style:e,vars:r},n,a){const i=t.style;let o;for(o in e)i[o]=e[o];a==null||a.applyProjectionStyles(i,n);for(o in r)i.setProperty(o,r[o])}function tP(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const bp={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(nt.test(t))t=parseFloat(t);else return t;const r=tP(t,e.target.x),n=tP(t,e.target.y);return`${r}% ${n}%`}},ihe={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,a=sc.parse(t);if(a.length>5)return n;const i=sc.createTransformer(t),o=typeof a[0]!="number"?1:0,l=r.x.scale*e.x,c=r.y.scale*e.y;a[0+o]/=l,a[1+o]/=c;const u=Pr(l,c,.5);return typeof a[2+o]=="number"&&(a[2+o]/=u),typeof a[3+o]=="number"&&(a[3+o]/=u),i(a)}},rN={borderRadius:{...bp,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bp,borderTopRightRadius:bp,borderBottomLeftRadius:bp,borderBottomRightRadius:bp,boxShadow:ihe};function Eq(t,{layout:e,layoutId:r}){return mf.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!rN[t]||t==="opacity")}function FS(t,e,r){var o;const n=t.style,a=e==null?void 0:e.style,i={};if(!n)return i;for(const l in n)(ia(n[l])||a&&ia(a[l])||Eq(l,t)||((o=r==null?void 0:r.getValue(l))==null?void 0:o.liveStyle)!==void 0)&&(i[l]=n[l]);return i}function ohe(t){return window.getComputedStyle(t)}class lhe extends kq{constructor(){super(...arguments),this.type="html",this.renderInstance=Aq}readValueFromInstance(e,r){var n;if(mf.has(r))return(n=this.projection)!=null&&n.isProjecting?z9(r):Iue(e,r);{const a=ohe(e),i=(zU(r)?a.getPropertyValue(r):a[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return _q(e,r)}build(e,r,n){HS(e,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,r,n){return FS(e,r,n)}}const che={offset:"stroke-dashoffset",array:"stroke-dasharray"},uhe={offset:"strokeDashoffset",array:"strokeDasharray"};function dhe(t,e,r=1,n=0,a=!0){t.pathLength=1;const i=a?che:uhe;t[i.offset]=`${-n}`,t[i.array]=`${e} ${r}`}const hhe=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Oq(t,{attrX:e,attrY:r,attrScale:n,pathLength:a,pathSpacing:i=1,pathOffset:o=0,...l}
vendor: 1,575 bytes, line 841
841,c,u,d){if(HS(t,l,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:m}=t;h.transform&&(m.transform=h.transform,delete h.transform),(m.transform||h.transformOrigin)&&(m.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),m.transform&&(m.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete h.transformBox);for(const g of hhe)h[g]!==void 0&&(m[g]=h[g],delete h[g]);e!==void 0&&(h.x=e),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),a!==void 0&&dhe(h,a,i,o,!1)}const Pq=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Mq=t=>typeof t=="string"&&t.toLowerCase()==="svg";function fhe(t,e,r,n){Aq(t,e,void 0,n);for(const a in e.attrs)t.setAttribute(Pq.has(a)?a:TS(a),e.attrs[a])}function Tq(t,e,r){const n=FS(t,e,r);for(const a in t)if(ia(t[a])||ia(e[a])){const i=pf.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;n[i]=t[a]}return n}class phe extends kq{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pn}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(mf.has(r)){const n=fq(r);return n&&n.default||0}return r=Pq.has(r)?r:TS(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,n){return Tq(e,r,n)}
vendor: 24,491 bytes, line 841
841build(e,r,n){Oq(e,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,r,n,a){fhe(e,r,n,a)}mount(e){this.isSVGTag=Mq(e.tagName),super.mount(e)}}const mhe=BS.length;function Rq(t){if(!t)return;if(!t.isControllingVariants){const r=t.parent?Rq(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}const e={};for(let r=0;r<mhe;r++){const n=BS[r],a=t.props[n];(Am(a)||a===!1)&&(e[n]=a)}return e}function Iq(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}const ghe=[...LS].reverse(),bhe=LS.length;function xhe(t){return e=>Promise.all(e.map(({animation:r,options:n})=>Sde(t,r,n)))}function yhe(t){let e=xhe(t),r=rP(),n=!0;const a=c=>(u,d)=>{var m;const h=uh(t,d,c==="exit"?(m=t.presenceContext)==null?void 0:m.custom:void 0);if(h){const{transition:g,transitionEnd:b,...y}=h;u={...u,...y,...b}}return u};function i(c){e=c(t)}function o(c){const{props:u}=t,d=Rq(t.parent)||{},h=[],m=new Set;let g={},b=1/0;for(let v=0;v<bhe;v++){const N=ghe[v],S=r[N],j=u[N]!==void 0?u[N]:d[N],$=Am(j),C=N===c?S.isActive:null;C===!1&&(b=v);let _=j===d[N]&&j!==u[N]&&$;if(_&&n&&t.manuallyAnimateOnMount&&(_=!1),S.protectedKeys={...g},!S.isActive&&C===null||!j&&!S.prevProp||_y(j)||typeof j=="boolean")continue;const O=vhe(S.prevProp,j);let E=O||N===c&&S.isActive&&!_&&$||v>b&&$,P=!1;const T=Array.isArray(j)?j:[j];let I=T.reduce(a(N),{});C===!1&&(I={});const{prevResolvedValues:R={}}=S,F={...R,...I},L=B=>{E=!0,m.has(B)&&(P=!0,m.delete(B)),S.needsAnimating[B]=!0;const H=t.getValue(B);H&&(H.liveStyle=!1)};for(const B in F){const H=I[B],K=R[B];if(g.hasOwnProperty(B))continue;let Z=!1;K9(H)&&K9(K)?Z=!Iq(H,K):Z=H!==K,Z?H!=null?L(B):m.add(B):H!==void 0&&m.has(B)?L(B):S.protectedKeys[B]=!0}S.prevProp=j,S.prevResolvedValues=I,S.isActive&&(g={...g,...I}),n&&t.blockInitialAnimation&&(E=!1);const q=_&&O;E&&(!q||P)&&h.push(...T.map(B=>{const H={type:N};if(typeof B=="string"&&n&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:K}=t,Z=uh(K,B);if(K.enteringChildren&&Z){const{delayChildren:V}=Z.transition||{};H.delay=sq(K.enteringChildren,t,V)}}return{animation:B,options:H}}))}if(m.size){const v={};if(typeof u.initial!="boolean"){const N=uh(t,Array.isArray(u.initial)?u.initial[0]:u.initial);N&&N.transition&&(v.transition=N.transition)}m.forEach(N=>{const S=t.getBaseTarget(N),j=t.getValue(N);j&&(j.liveStyle=!0),v[N]=S??null}),h.push({animation:v})}let y=!!h.length;return n&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),n=!1,y?e(h):Promise.resolve()}function l(c,u){var h;if(r[c].isActive===u)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(m=>{var g;return(g=m.animationState)==null?void 0:g.setActive(c,u)}),r[c].isActive=u;const d=o(c);for(const m in r)r[m].protectedKeys={};return d}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>r,reset:()=>{r=rP()}}}function vhe(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Iq(e,t):!1}function Tc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rP(){return{animate:Tc(!0),whileInView:Tc(),whileHover:Tc(),whileTap:Tc(),whileDrag:Tc(),whileFocus:Tc(),exit:Tc()}}function nP(t,e){t.min=e.min,t.max=e.max}function Js(t,e){nP(t.x,e.x),nP(t.y,e.y)}function aP(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Dq=1e-4,whe=1-Dq,Nhe=1+Dq,Lq=.01,jhe=0-Lq,khe=0+Lq;function va(t){return t.max-t.min}function She(t,e,r){return Math.abs(t-e)<=r}function sP(t,e,r,n=.5){t.origin=n,t.originPoint=Pr(e.min,e.max,t.origin),t.scale=va(r)/va(e),t.translate=Pr(r.min,r.max,t.origin)-t.originPoint,(t.scale>=whe&&t.scale<=Nhe||isNaN(t.scale))&&(t.scale=1),(t.translate>=jhe&&t.translate<=khe||isNaN(t.translate))&&(t.translate=0)}function tm(t,e,r,n){sP(t.x,e.x,r.x,n?n.originX:void 0),sP(t.y,e.y,r.y,n?n.originY:void 0)}function iP(t,e,r){t.min=r.min+e.min,t.max=t.min+va(e)}function Che(t,e,r){iP(t.x,e.x,r.x),iP(t.y,e.y,r.y)}function oP(t,e,r){t.min=e.min-r.min,t.max=t.min+va(e)}function px(t,e,r){oP(t.x,e.x,r.x),oP(t.y,e.y,r.y)}function lP(t,e,r,n,a){return t-=e,t=fx(t,1/r,n),a!==void 0&&(t=fx(t,1/a,n)),t}function $he(t,e=0,r=1,n=.5,a,i=t,o=t){if(Vi.test(e)&&(e=parseFloat(e),e=Pr(o.min,o.max,e/100)-o.min),typeof e!="number")return;let l=Pr(i.min,i.max,n);t===i&&(l-=e),t.min=lP(t.min,e,r,l,a),t.max=lP(t.max,e,r,l,a)}function cP(t,e,[r,n,a],i,o){$he(t,e[r],e[n],e[a],e.scale,i,o)}const _he=["x","scaleX","originX"],Ahe=["y","scaleY","originY"];function uP(t,e,r,n){cP(t.x,e,_he,r?r.x:void 0,n?n.x:void 0),cP(t.y,e,Ahe,r?r.y:void 0,n?n.y:void 0)}function dP(t){return t.translate===0&&t.scale===1}function Bq(t){return dP(t.x)&&dP(t.y)}function hP(t,e){return t.min===e.min&&t.max===e.max}function Ehe(t,e){return hP(t.x,e.x)&&hP(t.y,e.y)}function fP(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Hq(t,e){return fP(t.x,e.x)&&fP(t.y,e.y)}function pP(t){return va(t.x)/va(t.y)}function mP(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Ss(t){return[t("x"),t("y")]}function Ohe(t,e,r){let n="";const a=t.x.translate/e.x,i=t.y.translate/e.y,o=(r==null?void 0:r.z)||0;if((a||i||o)&&(n=`translate3d(${a}px, ${i}px, ${o}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:m,skewX:g,skewY:b}=r;u&&(n=`perspective(${u}px) ${n}`),d&&(n+=`rotate(${d}deg) `),h&&(n+=`rotateX(${h}deg) `),m&&(n+=`rotateY(${m}deg) `),g&&(n+=`skewX(${g}deg) `),b&&(n+=`skewY(${b}deg) `)}const l=t.x.scale*e.x,c=t.y.scale*e.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}const Fq=["TopLeft","TopRight","BottomLeft","BottomRight"],Phe=Fq.length,gP=t=>typeof t=="string"?parseFloat(t):t,bP=t=>typeof t=="number"||nt.test(t);function Mhe(t,e,r,n,a,i){a?(t.opacity=Pr(0,r.opacity??1,The(n)),t.opacityExit=Pr(e.opacity??1,0,Rhe(n))):i&&(t.opacity=Pr(e.opacity??1,r.opacity??1,n));for(let o=0;o<Phe;o++){const l=`border${Fq[o]}Radius`;let c=xP(e,l),u=xP(r,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||bP(c)===bP(u)?(t[l]=Math.max(Pr(gP(c),gP(u),n),0),(Vi.test(u)||Vi.test(c))&&(t[l]+="%")):t[l]=u}(e.rotate||r.rotate)&&(t.rotate=Pr(e.rotate||0,r.rotate||0,n))}function xP(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const The=zq(0,.5,IU),Rhe=zq(.5,.95,Os);function zq(t,e,r){return n=>n<t?0:n>e?1:r(Cm(t,e,n))}function Ihe(t,e,r){const n=ia(t)?t:wh(t);return n.start(PS("",n,e,r)),n.animation}function Em(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const Dhe=(t,e)=>t.depth-e.depth;class Lhe{constructor(){this.children=[],this.isDirty=!1}add(e){mS(this.children,e),this.isDirty=!0}remove(e){gS(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Dhe),this.isDirty=!1,this.children.forEach(e)}}function Bhe(t,e){const r=ya.now(),n=({timestamp:a})=>{const i=a-r;i>=e&&(ac(n),t(i-e))};return pr.setup(n,!0),()=>ac(n)}function Hb(t){return ia(t)?t.get():t}class Hhe{constructor(){this.members=[]}add(e){mS(this.members,e),e.scheduleRender()}remove(e){if(gS(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(a=>e===a);if(r===0)return!1;let n;for(let a=r;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender();const a=n.options.layoutDependency,i=e.options.layoutDependency;a!==void 0&&i!==void 0&&a===i||(e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0));const{crossfade:l}=e.options;l===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Fb={hasAnimatedSinceResize:!0,hasEverUpdated:!1},J4=["","X","Y","Z"],Fhe=1e3;let zhe=0;function Q4(t,e,r,n){const{latestValues:a}=e;a[t]&&(r[t]=a[t],e.setStaticValue(t,0),n&&(n[t]=0))}function Vq(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const r=cq(e);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:a,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",pr,!(a||i))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&Vq(n)}function Uq({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(o={},l=e==null?void 0:e()){this.id=zhe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(qhe),this.nodes.forEach(Yhe),this.nodes.forEach(Xhe),this.nodes.forEach(Whe)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Lhe)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new yS),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=vq(o)&&!Ude(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),t){let d,h=0;const m=()=>this.root.updateBlockedByResize=!1;pr.read(()=>{h=window.innerWidth}),t(o,()=>{const g=window.innerWidth;g!==h&&(h=g,this.root.updateBlockedByResize=!0,d&&d(),d=Bhe(m,250),Fb.hasAnimatedSinceResize&&(Fb.hasAnimatedSinceResize=!1,this.nodes.forEach(wP)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||u.getDefaultTransition()||tfe,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=u.getProps(),N=!this.targetLayout||!Hq(this.targetLayout,g),S=!h&&m;if(this.options.layoutRoot||this.resumeFrom||S||h&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const j={...OS(b,"layout"),onPlay:y,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j),this.setAnimationOrigin(d,S)}else h||wP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ac(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Jhe),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Vq(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(yP);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(vP);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Khe),this.nodes.forEach(Vhe),this.nodes.forEach(Uhe)):this.nodes.forEach(vP),this.clearAllSnapshots();const l=ya.now();Dn.delta=Yi(0,1e3/60,l-Dn.timestamp),Dn.timestamp=l,Dn.isProcessing=!0,V4.update.process(Dn),V4.preRender.process(Dn),V4.render.process(Dn),Dn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,IS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ghe),this.sharedNodes.forEach(Qhe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,pr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){pr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!va(this.snapshot.measuredBox.x)&&!va(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=pn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l&&this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!a)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Bq(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&this.instance&&(l||Wc(this.latestValues)||d)&&(a(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),rfe(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return pn();const l=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(nfe))){const{scroll:d}=this.root;d&&(Zd(l.x,d.offset.x),Zd(l.y,d.offset.y))}return l}removeElementScroll(o){var c;const l=pn();if(Js(l,o),(c=this.scroll)!=null&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:h,options:m}=d;d!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Js(l,o),Zd(l.x,h.offset.x),Zd(l.y,h.offset.y))}return l}applyTransform(o,l=!1){const c=pn();Js(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&eh(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Wc(d.latestValues)&&eh(c,d.latestValues)}return Wc(this.latestValues)&&eh(c,this.latestValues),c}removeTransform(o){const l=pn();Js(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Wc(u.latestValues))continue;eN(u.latestValues)&&u.updateSnapshot();const d=pn(),h=u.measurePageBox();Js(d,h),uP(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Wc(this.latestValues)&&uP(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Dn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var g;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!this.layout||!(d||h))return;this.resolvedRelativeTargetAt=Dn.timestamp;const m=this.getClosestProjectingParent();m&&this.linkedParentVersion!==m.layoutVersion&&!m.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(m&&m.layout?this.createRelativeTarget(m,this.layout.layoutBox,m.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=pn(),this.targetWithTransforms=pn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Che(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Js(this.target,this.layout.layoutBox),$q(this.target,this.targetDelta)):Js(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?this.createRelativeTarget(m,this.target,m.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||eN(this.parent.latestValues)||Cq(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,l,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pn(),this.relativeTargetOrigin=pn(),px(this.relativeTargetOrigin,l,c),Js(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var b;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Dn.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;Js(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;the(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=pn());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(aP(this.prevProjectionDelta.x,this.projectionDelta.x),aP(this.prevProjectionDelta.y,this.projectionDelta.y)),tm(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==m||!mP(this.projectionDelta.x,this.prevProjectionDelta.x)||!mP(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Qd(),this.projectionDelta=Qd(),this.projectionDeltaWithTransform=Qd()}setAnimationOrigin(o,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},h=Qd();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=pn(),g=c?c.source:void 0,b=this.layout?this.layout.source:void 0,y=g!==b,v=this.getStack(),N=!v||v.members.length<=1,S=!!(y&&!N&&this.options.crossfade===!0&&!this.path.some(efe));this.animationProgress=0;let j;this.mixTargetDelta=$=>{const C=$/1e3;NP(h.x,o.x,C),NP(h.y,o.y,C),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(px(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Zhe(this.relativeTarget,this.relativeTargetOrigin,m,C),j&&Ehe(this.relativeTarget,j)&&(this.isProjectionDirty=!1),j||(j=pn()),Js(j,this.relativeTarget)),y&&(this.animationValues=d,Mhe(d,u,this.latestValues,C,S,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(ac(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=pr.update(()=>{Fb.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=wh(0)),this.currentAnimation=Ihe(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Fhe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=o;if(!(!l||!c||!u)){if(this!==o&&this.layout&&u&&qq(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||pn();const h=va(this.layout.layoutBox.x);
vendor: 4,677 bytes, line 841
841c.x.min=o.target.x.min,c.x.max=c.x.min+h;const m=va(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+m}Js(l,c),eh(l,d),tm(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Hhe),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var l;const{layoutId:o}=this.options;return o?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:o}=this.options;return o?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Q4("z",o,u,this.animationValues);for(let d=0;d<J4.length;d++)Q4(`rotate${J4[d]}`,o,u,this.animationValues),Q4(`skew${J4[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}applyProjectionStyles(o,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Hb(l==null?void 0:l.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Hb(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Wc(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=Ohe(this.projectionDeltaWithTransform,this.treeScale,d);c&&(h=c(d,h)),o.transform=h;const{x:m,y:g}=this.projectionDelta;o.transformOrigin=`${m.origin*100}% ${g.origin*100}% 0`,u.animationValues?o.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const b in rN){if(d[b]===void 0)continue;const{correct:y,applyTo:v,isCSSVariable:N}=rN[b],S=h==="none"?d[b]:y(d[b],u);if(v){const j=v.length;for(let $=0;$<j;$++)o[v[$]]=S}else N?this.options.visualElement.renderState.vars[b]=S:o[b]=S}this.options.layoutId&&(o.pointerEvents=u===this?Hb(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(yP),this.root.sharedNodes.clear()}}}function Vhe(t){t.updateLayout()}function Uhe(t){var r;const e=((r=t.resumeFrom)==null?void 0:r.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:a}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?Ss(h=>{const m=o?e.measuredBox[h]:e.layoutBox[h],g=va(m);m.min=n[h].min,m.max=m.min+g}):qq(i,e.layoutBox,n)&&Ss(h=>{const m=o?e.measuredBox[h]:e.layoutBox[h],g=va(n[h]);m.max=m.min+g,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+g)});const l=Qd();tm(l,n,e.layoutBox);const c=Qd();o?tm(c,t.applyTransform(a,!0),e.measuredBox):tm(c,n,e.layoutBox);const u=!Bq(l);let d=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const b=pn();px(b,e.layoutBox,m.layoutBox);const y=pn();px(y,n,g.layoutBox),Hq(b,y)||(d=!0),h.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=b,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function qhe(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
vendor: 25,973 bytes, lines 841-849
841isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Whe(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ghe(t){t.clearSnapshot()}function yP(t){t.clearMeasurements()}function vP(t){t.isLayoutDirty=!1}function Khe(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function wP(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Yhe(t){t.resolveTargetDelta()}function Xhe(t){t.calcProjection()}function Jhe(t){t.resetSkewAndRotation()}function Qhe(t){t.removeLeadSnapshot()}function NP(t,e,r){t.translate=Pr(e.translate,0,r),t.scale=Pr(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function jP(t,e,r,n){t.min=Pr(e.min,r.min,n),t.max=Pr(e.max,r.max,n)}function Zhe(t,e,r,n){jP(t.x,e.x,r.x,n),jP(t.y,e.y,r.y,n)}function efe(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const tfe={duration:.45,ease:[.4,0,.1,1]},kP=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),SP=kP("applewebkit/")&&!kP("chrome/")?Math.round:Os;function CP(t){t.min=SP(t.min),t.max=SP(t.max)}function rfe(t){CP(t.x),CP(t.y)}function qq(t,e,r){return t==="position"||t==="preserve-aspect"&&!She(pP(e),pP(r),.2)}function nfe(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const afe=Uq({attachResizeListener:(t,e)=>Em(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Z4={current:void 0},Wq=Uq({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Z4.current){const t=new afe({});t.mount(window),t.setOptions({layoutScroll:!0}),Z4.current=t}return Z4.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),zS=w.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function $P(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function sfe(...t){return e=>{let r=!1;const n=t.map(a=>{const i=$P(a,e);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():$P(t[a],null)}}}}function ife(...t){return w.useCallback(sfe(...t),t)}class ofe extends w.Component{getSnapshotBeforeUpdate(e){const r=this.props.childRef.current;if(r&&e.isPresent&&!this.props.isPresent){const n=r.offsetParent,a=Q9(n)&&n.offsetWidth||0,i=Q9(n)&&n.offsetHeight||0,o=this.props.sizeRef.current;o.height=r.offsetHeight||0,o.width=r.offsetWidth||0,o.top=r.offsetTop,o.left=r.offsetLeft,o.right=a-o.width-o.left,o.bottom=i-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function lfe({children:t,isPresent:e,anchorX:r,anchorY:n,root:a}){var h;const i=w.useId(),o=w.useRef(null),l=w.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=w.useContext(zS),u=((h=t.props)==null?void 0:h.ref)??(t==null?void 0:t.ref),d=ife(o,u);return w.useInsertionEffect(()=>{const{width:m,height:g,top:b,left:y,right:v,bottom:N}=l.current;if(e||!o.current||!m||!g)return;const S=r==="left"?`left: ${y}`:`right: ${v}`,j=n==="bottom"?`bottom: ${N}`:`top: ${b}`;o.current.dataset.motionPopId=i;const $=document.createElement("style");c&&($.nonce=c);const C=a??document.head;return C.appendChild($),$.sheet&&$.sheet.insertRule(` 842 [data-motion-pop-id="${i}"] { 843 position: absolute !important; 844 width: ${m}px !important; 845 height: ${g}px !important; 846 ${S}px !important; 847 ${j}px !important; 848 } 849 `),()=>{C.contains($)&&C.removeChild($)}},[e]),s.jsx(ofe,{isPresent:e,childRef:o,sizeRef:l,children:w.cloneElement(t,{ref:d})})}const cfe=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:a,presenceAffectsLayout:i,mode:o,anchorX:l,anchorY:c,root:u})=>{const d=pS(ufe),h=w.useId();let m=!0,g=w.useMemo(()=>(m=!1,{id:h,initial:e,isPresent:r,custom:a,onExitComplete:b=>{d.set(b,!0);for(const y of d.values())if(!y)return;n&&n()},register:b=>(d.set(b,!1),()=>d.delete(b))}),[r,d,n]);return i&&m&&(g={...g}),w.useMemo(()=>{d.forEach((b,y)=>d.set(y,!1))},[r]),w.useEffect(()=>{!r&&!d.size&&n&&n()},[r]),o==="popLayout"&&(t=s.jsx(lfe,{isPresent:r,anchorX:l,anchorY:c,root:u,children:t})),s.jsx($y.Provider,{value:g,children:t})};function ufe(){return new Map}function Gq(t=!0){const e=w.useContext($y);if(e===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:a}=e,i=w.useId();w.useEffect(()=>{if(t)return a(i)},[t]);const o=w.useCallback(()=>t&&n&&n(i),[i,n,t]);return!r&&n?[!1,o]:[!0]}const Eg=t=>t.key||"";function _P(t){const e=[];return w.Children.forEach(t,r=>{w.isValidElement(r)&&e.push(r)}),e}const nN=({children:t,custom:e,initial:r=!0,onExitComplete:n,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1,anchorX:l="left",anchorY:c="top",root:u})=>{const[d,h]=Gq(o),m=w.useMemo(()=>_P(t),[t]),g=o&&!d?[]:m.map(Eg),b=w.useRef(!0),y=w.useRef(m),v=pS(()=>new Map),N=w.useRef(new Set),[S,j]=w.useState(m),[$,C]=w.useState(m);SU(()=>{b.current=!1,y.current=m;for(let E=0;E<$.length;E++){const P=Eg($[E]);g.includes(P)?(v.delete(P),N.current.delete(P)):v.get(P)!==!0&&v.set(P,!1)}},[$,g.length,g.join("-")]);const _=[];if(m!==S){let E=[...m];for(let P=0;P<$.length;P++){const T=$[P],I=Eg(T);g.includes(I)||(E.splice(P,0,T),_.push(T))}return i==="wait"&&_.length&&(E=_),C(_P(E)),j(m),null}const{forceRender:O}=w.useContext(fS);return s.jsx(s.Fragment,{children:$.map(E=>{const P=Eg(E),T=o&&!d?!1:m===$||g.includes(P),I=()=>{if(N.current.has(P))return;if(N.current.add(P),v.has(P))v.set(P,!0);else return;let R=!0;v.forEach(F=>{F||(R=!1)}),R&&(O==null||O(),C(y.current),o&&(h==null||h()),n&&n())};return s.jsx(cfe,{isPresent:T,initial:!b.current||r?void 0:!1,custom:e,presenceAffectsLayout:a,mode:i,root:u,onExitComplete:T?void 0:I,anchorX:l,anchorY:c,children:E},P)})})},Kq=w.createContext({strict:!1}),AP={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let EP=!1;function dfe(){if(EP)return;const t={};for(const e in AP)t[e]={isEnabled:r=>AP[e].some(n=>!!r[n])};jq(t),EP=!0}function Yq(){return dfe(),Jde()}function hfe(t){const e=Yq();for(const r in t)e[r]={...e[r],...t[r]};jq(e)}const ffe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function mx(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ffe.has(t)}let Xq=t=>!mx(t);function pfe(t){typeof t=="function"&&(Xq=e=>e.startsWith("on")?!mx(e):t(e))}try{pfe(require("@emotion/is-prop-valid").default)}catch{}function mfe(t,e,r){const n={};for(const a in t)a==="values"&&typeof t.values=="object"||(Xq(a)||r===!0&&mx(a)||!e&&!mx(a)||t.draggable&&a.startsWith("onDrag"))&&(n[a]=t[a]);return n}const Ey=w.createContext({});function gfe(t,e){if(Ay(t)){const{initial:r,animate:n}=t;return{initial:r===!1||Am(r)?r:void 0,animate:Am(n)?n:void 0}}return t.inherit!==!1?e:{}}function bfe(t){const{initial:e,animate:r}=gfe(t,w.useContext(Ey));return w.useMemo(()=>({initial:e,animate:r}),[OP(e),OP(r)])}function OP(t){return Array.isArray(t)?t.join(" "):t}const VS=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Jq(t,e,r){for(const n in e)!ia(e[n])&&!Eq(n,r)&&(t[n]=e[n])}function xfe({transformTemplate:t},e){return w.useMemo(()=>{const r=VS();return HS(r,e,t),Object.assign({},r.vars,r.style)},[e])}function yfe(t,e){const r=t.style||{},n={};return Jq(n,r,t),Object.assign(n,xfe(t,e)),n}function vfe(t,e){const r={},n=yfe(t,e);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r}const Qq=()=>({...VS(),attrs:{}});function wfe(t,e,r,n){const a=w.useMemo(()=>{const i=Qq();return Oq(i,e,Mq(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};Jq(i,t.style,t),a.style={...i,...a.style}}return a}const Nfe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function US(t){return typeof t!="string"||t.includes("-")?!1:!!(Nfe.indexOf(t)>-1||/[A-Z]/u.test(t))}function jfe(t,e,r,{latestValues:n},a,i=!1,o){const c=(o??US(t)?wfe:vfe)(e,n,a,t),u=mfe(e,typeof t=="string",i),d=t!==w.Fragment?{...u,...c,ref:r}:{},{children:h}=e,m=w.useMemo(()=>ia(h)?h.get():h,[h]);return w.createElement(t,{...d,children:m})}function kfe({scrapeMotionValuesFromProps:t,createRenderState:e},r,n,a){return{latestValues:Sfe(r,n,a,t),renderState:e()}}function Sfe(t,e,r,n){const a={},i=n(t,{});for(const m in i)a[m]=Hb(i[m]);let{initial:o,animate:l}=t;const c=Ay(t),u=Nq(t);e&&u&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),l===void 0&&(l=e.animate));let d=r?r.initial===!1:!1;d=d||o===!1;const h=d?l:o;if(h&&typeof h!="boolean"&&!_y(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const b=MS(t,m[g]);if(b){const{transitionEnd:y,transition:v,...N}=b;for(const S in N){let j=N[S];if(Array.isArray(j)){const $=d?j.length-1:0;j=j[$]}j!==null&&(a[S]=j)}for(const S in y)a[S]=y[S]}}}return a}const Zq=t=>(e,r)=>{const n=w.useContext(Ey),a=w.useContext($y),i=()=>kfe(t,e,n,a);return r?i():pS(i)},Cfe=Zq({scrapeMotionValuesFromProps:FS,createRenderState:VS}),$fe=Zq({scrapeMotionValuesFromProps:Tq,createRenderState:Qq}),_fe=Symbol.for("motionComponentSymbol");function Afe(t,e,r){const n=w.useRef(r);w.useInsertionEffect(()=>{n.current=r});const a=w.useRef(null);return w.useCallback(i=>{var l;i&&((l=t.onMount)==null||l.call(t,i)),e&&(i?e.mount(i):e.unmount());const o=n.current;if(typeof o=="function")if(i){const c=o(i);typeof c=="function"&&(a.current=c)}else a.current?(a.current(),a.current=null):o(i);else o&&(o.current=i)},[e])}const eW=w.createContext({});function Fp(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Efe(t,e,r,n,a,i){var j,$;const{visualElement:o}=w.useContext(Ey),l=w.useContext(Kq),c=w.useContext($y),u=w.useContext(zS),d=u.reducedMotion,h=u.skipAnimations,m=w.useRef(null),g=w.useRef(!1);n=n||l.renderer,!m.current&&n&&(m.current=n(t,{visualState:e,parent:o,props:r,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:h,isSVG:i}),g.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));const b=m.current,y=w.useContext(eW);b&&!b.projection&&a&&(b.type==="html"||b.type==="svg")&&Ofe(m.current,r,a,y);const v=w.useRef(!1);w.useInsertionEffect(()=>{b&&v.current&&b.update(r,c)});const N=r[lq],S=w.useRef(!!N&&!((j=window.MotionHandoffIsComplete)!=null&&j.call(window,N))&&(($=window.MotionHasOptimisedAnimation)==null?void 0:$.call(window,N)));return SU(()=>{g.current=!0,b&&(v.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),b.scheduleRenderMicrotask(),S.current&&b.animationState&&b.animationState.animateChanges())}),w.useEffect(()=>{b&&(!S.current&&b.animationState&&b.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,N)}),S.current=!1),b.enteringChildren=void 0)}),b}function Ofe(t,e,r,n){const{layoutId:a,layout:i,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:tW(t.parent)),t.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||l&&Fp(l),visualElement:t,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:c,layoutRoot:u})}function tW(t){if(t)return t.options.allowProjection!==!1?t.projection:tW(t.parent)}function e3(t,{forwardMotionProps:e=!1,type:r}={},n,a){n&&hfe(n);const i=r?r==="svg":US(t),o=i?$fe:Cfe;function l(u,d){let h;const m={...w.useContext(zS),...u,layoutId:Pfe(u)},{isStatic:g}=m,b=bfe(u),y=o(u,g);if(!g&&kU){Mfe();const v=Tfe(m);h=v.MeasureLayout,b.visualElement=Efe(t,y,m,a,v.ProjectionNode,i)}return s.jsxs(Ey.Provider,{value:b,children:[h&&b.visualElement?s.jsx(h,{visualElement:b.visualElement,...m}):null,jfe(t,u,Afe(y,b.visualElement,d),y,g,e,i)]})}l.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=w.forwardRef(l);return c[_fe]=t,c}function Pfe({layoutId:t}){const e=w.useContext(fS).id;return e&&t!==void 0?e+"-"+t:t}function Mfe(t,e){w.useContext(Kq).strict}function Tfe(t){const e=Yq(),{drag:r,layout:n}=e;if(!r&&!n)return{};const a={...r,...n};return{MeasureLayout:r!=null&&r.isEnabled(t)||n!=null&&n.isEnabled(t)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function Rfe(t,e){if(typeof Proxy>"u")return e3;const r=new Map,n=(i,o)=>e3(i,o,t,e),a=(i,o)=>n(i,o);return new Proxy(a,{get:(i,o)=>o==="create"?n:(r.has(o)||r.set(o,e3(o,void 0,t,e)),r.get(o))})}const Ife=(t,e)=>e.isSVG??US(t)?new phe(e):new lhe(e,{allowProjection:t!==w.Fragment});class Dfe extends hc{constructor(e){super(e),e.animationState||(e.animationState=yhe(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();_y(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Lfe=0;class Bfe extends hc{constructor(){super(...arguments),this.id=Lfe++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const a=this.node.animationState.setActive("exit",!e);r&&!e&&a.then(()=>{r(this.id)})}mount(){const{register:e,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Hfe={animation:{Feature:Dfe},exit:{Feature:Bfe}};function W0(t){return{point:{x:t.pageX,y:t.pageY}}}const Ffe=t=>e=>DS(e)&&t(e,W0(e));function rm(t,e,r,n){return Em(t,e,Ffe(r),n)}const rW=({current:t})=>t?t.ownerDocument.defaultView:null,PP=(t,e)=>Math.abs(t-e);function zfe(t,e){const r=PP(t.x,e.x),n=PP(t.y,e.y);return Math.sqrt(r**2+n**2)}const MP=new Set(["auto","scroll"]);class nW{constructor(e,r,{transformPagePoint:n,contextWindow:a=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=g=>{this.handleScroll(g.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=r3(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,y=zfe(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!y)return;const{point:v}=g,{timestamp:N}=Dn;this.history.push({...v,timestamp:N});const{onStart:S,onMove:j}=this.handlers;b||(S&&S(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=t3(b,this.transformPagePoint),pr.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:y,onSessionEnd:v,resumeAnimation:N}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=r3(g.type==="pointercancel"?this.lastMoveEventInfo:t3(b,this.transformPagePoint),this.history);this.startEvent&&y&&y(g,S),v&&v(g,S)},!DS(e))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=a||window;const c=W0(e),u=t3(c,this.transformPagePoint),{point:d}=u,{timestamp:h}=Dn;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=r;m&&m(e,r3(u,this.history)),this.removeListeners=V0(rm(this.contextWindow,"pointermove",this.handlePointerMove),rm(this.contextWindow,"pointerup",this.handlePointerUp),rm(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(e){let r=e.parentElement;for(;r;){const n=getComputedStyle(r);(MP.has(n.overflowX)||MP.has(n.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const r=this.scrollPositions.get(e);if(!r)return;const n=e===window,a=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:a.x-r.x,y:a.y-r.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,a),pr.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ac(this.updatePoint)}}function t3(t,e){return e?{point:e(t.point)}:t}function TP(t,e){return{x:t.x-e.x,y:t.y-e.y}}function r3({point:t},e){return{point:t,delta:TP(t,aW(e)),offset:TP(t,Vfe(e)),velocity:Ufe(e,.1)}}function Vfe(t){return t[0]}function aW(t){return t[t.length-1]}function Ufe(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const a=aW(t);for(;r>=0&&(n=t[r],!(a.timestamp-n.timestamp>Do(e)));)r--;if(!n)return{x:0,y:0};const i=As(a.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const o={x:(a.x-n.x)/i,y:(a.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function qfe(t,{min:e,max:r},n){return e!==void 0&&t<e?t=n?Pr(e,t,n.min):Math.max(t,e):r!==void 0&&t>r&&(t=n?Pr(r,t,n.max):Math.min(t,r)),t}function RP(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function Wfe(t,{top:e,left:r,bottom:n,right:a}){return{x:RP(t.x,r,a),y:RP(t.y,e,n)}}function IP(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,n]=[n,r]),{min:r,max:n}}function Gfe(t,e){return{x:IP(t.x,e.x),y:IP(t.y,e.y)}}function Kfe(t,e){let r=.5;const n=va(t),a=va(e);return a>n?r=Cm(e.min,e.max-n,t.min):n>a&&(r=Cm(t.min,t.max-a,e.min)),Yi(0,1,r)}function Yfe(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const aN=.35;function Xfe(t=aN){return t===!1?t=0:t===!0&&(t=aN),{x:DP(t,"left","right"),y:DP(t,"top","bottom")}}function DP(t,e,r){return{min:LP(t,e),max:LP(t,r)}}function LP(t,e){return typeof t=="number"?t:t[e]||0}const Jfe=new WeakMap;class Qfe{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const i=h=>{r?(this.stopAnimation(),this.snapToCursor(W0(h).point)):this.pauseAnimation()},o=(h,m)=>{this.stopAnimation();const{drag:g,dragPropagation:b,onDragStart:y}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ide(g),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ss(N=>{let S=this.getAxisMotionValue(N).get()||0;if(Vi.test(S)){const{projection:j}=this.visualElement;if(j&&j.layout){const $=j.layout.layoutBox[N];$&&(S=va($)*(parseFloat(S)/100))}}this.originPoint[N]=S}),y&&pr.update(()=>y(h,m),!1,!0),Y9(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},l=(h,m)=>{this.latestPointerEvent=h,this.latestPanInfo=m;const{dragPropagation:g,dragDirectionLock:b,onDirectionLock:y,onDrag:v}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:N}=m;if(b&&this.currentDirection===null){this.currentDirection=Zfe(N),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",m.point,N),this.updateAxis("y",m.point,N),this.visualElement.render(),v&&pr.update(()=>v(h,m),!1,!0)},c=(h,m)=>{this.latestPointerEvent=h,this.latestPanInfo=m,this.stop(h,m),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Ss(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)==null?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new nW(e,{onSessionStart:i,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:n,contextWindow:rW(this.visualElement),element:this.visualElement.current})}stop(e,r){const n=e||this.latestPointerEvent,a=r||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!a||!n)return;const{velocity:o}=a;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&pr.postRender(()=>l(n,a))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,r,n){const{drag:a}=this.getProps();if(!n||!Og(e,a,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=qfe(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:e,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,a=this.constraints;e&&Fp(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=Wfe(n.layoutBox,e):this.constraints=!1,this.elastic=Xfe(r),a!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ss(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Yfe(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!Fp(e))return!1;const n=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=rhe(n,a.root,this.visualElement.getTransformPagePoint());let o=Gfe(a.layout.layoutBox,i);if(r){const l=r(Zde(o));this.hasMutatedConstraints=!!l,l&&(o=Sq(l))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:a,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Ss(d=>{if(!Og(d,r,this.currentDirection))return;let h=c&&c[d]||{};o&&(h={min:0,max:0});const m=a?200:1e6,g=a?40:1e7,b={type:"inertia",velocity:n?e[d]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,b)});return Promise.all(u).then(l)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return Y9(this.visualElement,e),n.start(PS(e,n,0,r,this.visualElement,!1))}stopAnimation(){Ss(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Ss(e=>{var r;return(r=this.getAxisMotionValue(e).animation)==null?void 0:r.pause()})}getAnimationState(e){var r;return(r=this.getAxisMotionValue(e).animation)==null?void 0:r.state}getAxisMotionValue(e){const r=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),a=n[r];return a||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Ss(r=>{const{drag:n}=this.getProps();if(!Og(r,n,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(r);if(a&&a.layout){const{min:o,max:l}=a.layout.layoutBox[r],c=i.get()||0;i.set(e[r]-Pr(o,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Fp(r)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Ss(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();a[o]=Kfe({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ss(o=>
vendor: 4,537 bytes, line 849
849{if(!Og(o,e,null))return;const l=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];l.set(Pr(c,u,a[o]))})}addListeners(){if(!this.visualElement.current)return;Jfe.set(this.visualElement,this);const e=this.visualElement.current,r=rm(e,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),h=c.target,m=h!==e&&Fde(h);u&&d&&!m&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();Fp(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",n);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),pr.read(n);const o=Em(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ss(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())}));return()=>{o(),r(),i(),l&&l()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:o=aN,dragMomentum:l=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function Og(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function Zfe(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class epe extends hc{constructor(e){super(e),this.removeGroupControls=Os,this.removeListeners=Os,this.controls=new Qfe(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Os}update(){const{dragControls:e}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};e!==r&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const n3=t=>(e,r)=>{t&&pr.update(()=>t(e,r),!1,!0)};class tpe extends hc{constructor(){super(...arguments),this.removePointerDownListener=Os}onPointerDown(e){this.session=new nW(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rW(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:n3(e),onStart:n3(r),onMove:n3(n),onEnd:(i,o)=>{delete this.session,a&&pr.postRender(()=>a(i,o))}}}mount(){this.removePointerDownListener=rm(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let a3=!1;class rpe extends w.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:i}=e;i&&(r.group&&r.group.add(i),n&&n.register&&a&&n.register(i),a3&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Fb.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:a,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,e.layoutDependency!==r&&o.setOptions({...o.options,layoutDependency:r}),a3=!0,a||e.layoutDependency!==r||r===void 0||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||pr.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),IS.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:a}=e;a3=!0,a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),n&&n.deregister&&n.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function sW(t){const[e,r]=Gq(),n=w.useContext(fS);return s.jsx(rpe,{...t,layoutGroup:n,switchLayoutGroup:w.useContext(eW),isPresent:e,safeToRemove:r})}const npe={pan:{Feature:tpe},drag:{Feature:epe,ProjectionNode:Wq,MeasureLayout:sW}};function BP(t,e,r){const{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover",r==="Start");const a="onHover"+r,i=n[a];i&&pr.postRender(()=>i(e,W0(e)))}class ape extends hc{mount(){const{current:e}=this.node;
849e&&(this.unmount=Dde(e,(r,n)=>(BP(this.node,n,"Start"),a=>BP(this.node,a,"End"))))}unmount(){}}class spe extends hc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=V0(Em(this.node.current,"focus",()=>this.onFocus()),Em(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function HP(t,e,r){const{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap",r==="Start");const a="onTap"+(r==="End"?"":r),i=n[a];i&&pr.postRender(()=>i(e,W0(e)))}class ipe extends hc{mount(){const{current:e}=this.node;e&&(this.unmount=Vde(e,(r,n)=>(HP(this.node,n,"Start"),(a,{success:i})=>HP(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const sN=new WeakMap,s3=new WeakMap,ope=t=>{const e=sN.get(t.target);e&&e(t)},lpe=t=>{t.forEach(ope)};function cpe({root:t,...e}){const r=t||document;s3.has(r)||s3.set(r,{});const n=s3.get(r),a=JSON.stringify(e);return n[a]||(n[a]=new IntersectionObserver(lpe,{root:t,...e})),n[a]}function upe(t,e,r){const n=cpe(e);return sN.set(t,r),n.observe(t),()=>{sN.delete(t),n.unobserve(t)}}const dpe={some:0,all:1};class hpe extends hc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:a="some",once:i}=e,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof a=="number"?a:dpe[a]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),m=u?d:h;m&&m(c)};return upe(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(fpe(e,r))&&this.startObserver()}unmount(){}}function fpe({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const ppe={inView:{Feature:hpe},tap:{Feature:ipe},focus:{Feature:spe},hover:{Feature:ape}},mpe={layout:{ProjectionNode:Wq,MeasureLayout:sW}},gpe={...Hfe,...ppe,...npe,...mpe},Nt=Rfe(gpe,Ife),bpe={some:0,all:1};function xpe(t,e,{root:r,margin:n,amount:a="some"}={}){const i=mq(t),o=new WeakMap,l=u=>{u.forEach(d=>{const h=o.get(d.target);if(d.isIntersecting!==!!h)if(d.isIntersecting){const m=e(d.target,d);typeof m=="function"?o.set(d.target,m):c.unobserve(d.target)}else typeof h=="function"&&(h(d),o.delete(d.target))})},c=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof a=="number"?a:bpe[a]});return i.forEach(u=>c.observe(u)),()=>c.disconnect()}function tl(t,{root:e,margin:r,amount:n,once:a=!1,initial:i=!1}={}){const[o,l]=w.useState(i);return w.useEffect(()=>{if(!t.current||a&&o)return;const c=()=>(l(!0),a?void 0:()=>l(!1)),u={root:e&&e.current||void 0,margin:r,amount:n};return xpe(t.current,c,u)},[e,t,r,a,n]),o}function iW(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(r=iW(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function zt(){for(var t,e,r=0,n="",a=arguments.length;r<a;r++)(t=arguments[r])&&(e=iW(t))&&(n&&(n+=" "),n+=e);return n}const qS="-",ype=t=>{const e=wpe(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{const l=o.split(qS);return l[0]===""&&l.length!==1&&l.shift(),oW(l,e)||vpe(o)},getConflictingClassGroupIds:(o,l)=>{const c=r[o]||[];return l&&n[o]?[...c,...n[o]]:c}}},oW=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),a=n?oW(t.slice(1),n):void 0;if(a)return a;
vendor: 4,435 bytes, line 849
849if(e.validators.length===0)return;const i=t.join(qS);return(o=e.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},FP=/^\[(.+)\]$/,vpe=t=>{if(FP.test(t)){const e=FP.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},wpe=t=>{const{theme:e,classGroups:r}=t,n={nextPart:new Map,validators:[]};for(const a in r)iN(r[a],n,a,e);return n},iN=(t,e,r,n)=>{t.forEach(a=>{if(typeof a=="string"){const i=a===""?e:zP(e,a);i.classGroupId=r;return}if(typeof a=="function"){if(Npe(a)){iN(a(n),e,r,n);return}e.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,o])=>{iN(o,zP(e,i),r,n)})})},zP=(t,e)=>{let r=t;return e.split(qS).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Npe=t=>t.isThemeGetter,jpe=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const a=(i,o)=>{r.set(i,o),e++,e>t&&(e=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return a(i,o),o},set(i,o){r.has(i)?r.set(i,o):a(i,o)}}},oN="!",lN=":",kpe=lN.length,Spe=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=a=>{const i=[];let o=0,l=0,c=0,u;for(let b=0;b<a.length;b++){let y=a[b];if(o===0&&l===0){if(y===lN){i.push(a.slice(c,b)),c=b+kpe;continue}if(y==="/"){u=b;continue}}y==="["?o++:y==="]"?o--:y==="("?l++:y===")"&&l--}const d=i.length===0?a:a.substring(c),h=Cpe(d),m=h!==d,g=u&&u>c?u-c:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:g}};if(e){const a=e+lN,i=n;n=o=>o.startsWith(a)?i(o.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(r){const a=n;n=i=>r({className:i,parseClassName:a})}return n},Cpe=t=>t.endsWith(oN)?t.substring(0,t.length-1):t.startsWith(oN)?t.substring(1):t,$pe=t=>{const e=Object.fromEntries(t.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const a=[];let i=[];return n.forEach(o=>{o[0]==="["||e[o]?(a.push(...i.sort(),o),i=[]):i.push(o)}),a.push(...i.sort()),a}},_pe=t=>({cache:jpe(t.cacheSize),parseClassName:Spe(t),sortModifiers:$pe(t),...ype(t)}),Ape=/\s+/,Epe=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:i}=e,o=[],l=t.trim().split(Ape);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:h,modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:y}=r(d);if(h){c=d+(c.length>0?" "+c:c);continue}let v=!!y,N=n(v?b.substring(0,y):b);if(!N){if(!v){c=d+(c.length>0?" "+c:c);continue}if(N=n(b),!N){c=d+(c.length>0?" "+c:c);continue}v=!1}const S=i(m).join(":"),j=g?S+oN:S,$=j+N;if(o.includes($))continue;o.push($);const C=a(N,v);for(let _=0;_<C.length;++_){const O=C[_];o.push(j+O)}c=d+(c.length>0?" "+c:c)}return c};function Ope(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=lW(e))&&(n&&(n+=" "),n+=r);return n}const lW=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=lW(t[n]))&&(r&&(r+=" "),r+=e);return r};function Ppe(t,...e){let r,n,a,i=o;function o(c){const u=e.reduce((d,h)=>h(d),t());return r=_pe(u),n=r.cache.get,a=r.cache.set,i=l,l(c)}function l(c){const u=n(c);if(u)return u;const d=Epe(c,r);return a(c,d),d}return function(){return i(Ope.apply(null,arguments))}}const un=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},cW=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,uW=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Mpe=/^\d+\/\d+$/,Tpe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rpe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ipe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Dpe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lpe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yd=t=>Mpe.test(t),It=t=>!!t&&!Number.isNaN(Number(t)),$l=t=>!!t&&Number.isInteger(Number(t)),i3=t=>t.endsWith("%")&&It(t.slice(0,-1)),xo=t=>Tpe.test(t),Bpe=()=>!0,Hpe=t=>Rpe.test(t)&&!Ipe.test(t),dW=()=>!1,Fpe=t=>Dpe.test(t),zpe=t=>Lpe.test(t),Vpe=t=>!tt(t)&&!rt(t),Upe=t=>gf(t,pW,dW),tt=t=>cW.test(t),Rc=t=>gf(t,mW,Hpe),o3=t=>gf(t,Ype,It),VP=t=>gf(t,hW,dW),qpe=t=>gf(t,fW,zpe),Pg=t=>gf(t,gW,Fpe),rt=t=>uW.test(t),xp=t=>bf(t,mW),Wpe=t=>bf(t,Xpe),UP=t=>bf(t,hW),Gpe=t=>bf(t,pW),Kpe=t=>bf(t,fW),Mg=t=>bf(t,gW,!0),gf=(t,e,r)=>{const n=cW.exec(t);
vendor: 4,479 bytes, line 849
849return n?n[1]?e(n[1]):r(n[2]):!1},bf=(t,e,r=!1)=>{const n=uW.exec(t);return n?n[1]?e(n[1]):r:!1},hW=t=>t==="position"||t==="percentage",fW=t=>t==="image"||t==="url",pW=t=>t==="length"||t==="size"||t==="bg-size",mW=t=>t==="length",Ype=t=>t==="number",Xpe=t=>t==="family-name",gW=t=>t==="shadow",Jpe=()=>{const t=un("color"),e=un("font"),r=un("text"),n=un("font-weight"),a=un("tracking"),i=un("leading"),o=un("breakpoint"),l=un("container"),c=un("spacing"),u=un("radius"),d=un("shadow"),h=un("inset-shadow"),m=un("text-shadow"),g=un("drop-shadow"),b=un("blur"),y=un("perspective"),v=un("aspect"),N=un("ease"),S=un("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...$(),rt,tt],_=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],E=()=>[rt,tt,c],P=()=>[yd,"full","auto",...E()],T=()=>[$l,"none","subgrid",rt,tt],I=()=>["auto",{span:["full",$l,rt,tt]},$l,rt,tt],R=()=>[$l,"auto",rt,tt],F=()=>["auto","min","max","fr",rt,tt],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...E()],B=()=>[yd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],H=()=>[t,rt,tt],K=()=>[...$(),UP,VP,{position:[rt,tt]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",Gpe,Upe,{size:[rt,tt]}],U=()=>[i3,xp,Rc],Y=()=>["","none","full",u,rt,tt],de=()=>["",It,xp,Rc],ge=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Oe=()=>[It,i3,UP,VP],Ce=()=>["","none",b,rt,tt],le=()=>["none",It,rt,tt],we=()=>["none",It,rt,tt],ke=()=>[It,rt,tt],oe=()=>[yd,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xo],breakpoint:[xo],color:[Bpe],container:[xo],"drop-shadow":[xo],ease:["in","out","in-out"],font:[Vpe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xo],shadow:[xo],spacing:["px",It],text:[xo],"text-shadow":[xo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yd,tt,rt,v]}],container:["container"],columns:[{columns:[It,tt,rt,l]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[$l,"auto",rt,tt]}],basis:[{basis:[yd,"full","auto",l,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[It,yd,"auto","initial","none",tt]}],grow:[{grow:["",It,rt,tt]}],shrink:[{shrink:["",It,rt,tt]}],order:[{order:[$l,"first","last","none",rt,tt]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":R()}
vendor: 11,036 bytes, line 849
849],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[l,"screen",...B()]}],"min-w":[{"min-w":[l,"screen","none",...B()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...B()]}],h:[{h:["screen",...B()]}],"min-h":[{"min-h":["screen","none",...B()]}],"max-h":[{"max-h":["screen",...B()]}],"font-size":[{text:["base",r,xp,Rc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,rt,o3]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",i3,tt]}],"font-family":[{font:[Wpe,tt,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,rt,tt]}],"line-clamp":[{"line-clamp":[It,"none",rt,o3]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",rt,tt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",rt,tt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[It,"from-font","auto",rt,Rc]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[It,"auto",rt,tt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",rt,tt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",rt,tt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$l,rt,tt],radial:["",rt,tt],conic:[$l,rt,tt]},Kpe,qpe]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[It,rt,tt]}],"outline-w":[{outline:["",It,xp,Rc]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",d,Mg,Pg]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",h,Mg,Pg]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[It,Rc]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",m,Mg,Pg]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[It,rt,tt]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[It]}],"mask-image-linear-from-pos":[{"mask-linear-from":Oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":Oe()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":Oe()}],"mask-image-t-to-pos":[{"mask-t-to":Oe()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":Oe()}],"mask-image-r-to-pos":[{"mask-r-to":Oe()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":Oe()}],"mask-image-b-to-pos":[{"mask-b-to":Oe()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":Oe()}],"mask-image-l-to-pos":[{"mask-l-to":Oe()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":Oe()}],"mask-image-x-to-pos":[{"mask-x-to":Oe()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":Oe()}],"mask-image-y-to-pos":[{"mask-y-to":Oe()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[rt,tt]}],"mask-image-radial-from-pos":[{"mask-radial-from":Oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":Oe()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[It]}],"mask-image-conic-from-pos":[{"mask-conic-from":Oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":Oe()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",rt,tt]}],filter:[{filter:["","none",rt,tt]}],blur:[{blur:Ce()}],brightness:[{brightness:[It,rt,tt]}],contrast:[{contrast:[It,rt,tt]}],"drop-shadow":[{"drop-shadow":["","none",g,Mg,Pg]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",It,rt,tt]}],"hue-rotate":[{"hue-rotate":[It,rt,tt]}],invert:[{invert:["",It,rt,tt]}],saturate:[{saturate:[It,rt,tt]}],sepia:[{sepia:["",It,rt,tt]}],"backdrop-filter":[{"backdrop-filter":["","none",rt,tt]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[It,rt,tt]}],"backdrop-contrast":[{"backdrop-contrast":[It,rt,tt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",It,rt,tt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[It,rt,tt]}],"backdrop-invert":[{"backdrop-invert":["",It,rt,tt]}],"backdrop-opacity":[{"backdrop-opacity":[It,rt,tt]}],"backdrop-saturate":[{"backdrop-saturate":[It,rt,tt]}],"backdrop-sepia":[{"backdrop-sepia":["",It,rt,tt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",rt,tt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[It,"initial",rt,tt]}],ease:[{ease:["linear","initial",N,rt,tt]}],delay:[{delay:[It,rt,tt]}],animate:[{animate:["none",S,rt,tt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,rt,tt]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:we()}],"scale-x":[{"scale-x":we()}],"scale-y":[{"scale-y":we()}],"scale-z":[{"scale-z":we()}],"scale-3d":["scale-3d"],skew:[{skew:ke()}],"skew-x":[{"skew-x":ke()}],"skew-y":[{"skew-y":ke()}],transform:[{transform:[rt,tt,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}
vendor: 4,542 bytes, line 849
849],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",rt,tt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",rt,tt]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[It,xp,Rc,o3]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},WS=Ppe(Jpe),G0={hbaLogo:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/sh
849ared/hba-logo.png",alexFinal:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/shared/alex-final.webp"},mn={hero:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/locations/locations-hero.png",reno:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/homepage/location-tiles/reno/1783017137940-d4026933-2ab0-407b-beca-49fe2d537a13.jpg",sparks:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/homepage/location-tiles/sparks/1783017144733-441d634c-5f39-4626-bcb1-886844b48987.jpg",carsonCity:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/homepage/location-tiles/carson-city/1783017154735-38801fb4-f1c9-41a1-9aae-9d8be821fd0d.jpg",fernley:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/homepage/location-tiles/fernley/1783017170297-dc1864b7-6cfd-48d9-a2f5-0266355f40d8.png",henderson:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/homepage/location-tiles/henderson/1783017176093-e4587bc5-4b4f-4d60-9eb5-9fea5ddc2841.jpg",truckee:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/homepage/location-tiles/truckee/1783017180325-80a5a392-db1e-4b20-996e-eb08f8b138c1.jpg"},Ya={renoLandscape:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/home/reno-landscape.jpeg",nevadaWilderness:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/home/nevada-wilderness.jpg",heroVictorHughes:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/home/hero-victor-hughes-1.jpg",heroDanielAkre:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/home/hero-daniel-akre.jpg",heroKiraLaktionov:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/home/hero-kira-laktionov.jpg",heroBryceBoehler:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/home/hero-bryce-boehler.jpg"},GS={reno:"https://images.unsplash.com/photo-1644790674147-f50605e294cc?w=900&q=80&auto=format&fit=crop",sparks:"https://images.unsplash.com/photo-1568605114967-8130f3a36994?w=900&q=80&auto=format&fit=crop","carson-city":"https://images.unsplash.com/photo-1605542202587-5849be5054a4?w=900&q=80&auto=format&fit=crop",fernley:"https://images.unsplash.com/photo-1685502659945-721d57e46b4d?w=900&q=80&auto=format&fit=crop",henderson:"https://images.unsplash.com/photo-1580587771525-78b9dba3b914?w=900&q=80&auto=format&fit=crop",truckee:"https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=900&q=80&auto=format&fit=crop"},Gr={hometownHealth:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health.png",prominence:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/prominence.png",unitedHealthcare:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/united-healthcare.png",anthem:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem.png",aetna:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/aetna.png",sierraHealth:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/sierra-health.png",healthPlanOfNevada:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada.png",aetnaBrand:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/aetna-brand.png",kaiserPermanente:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/kaiser-permanente.png",homepageHumana:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/homepage/humana-logo.png",homepageAnthem:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/homepage/anthem-logo.jpg",homepageCigna:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/homepage/cigna-logo.png",homepageProminence:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/homepage/prominence-health-plan-logo.svg",homepageHometownHealth:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/homepage/hometown-health-logo.png",homepageKaiserPermanente:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/homepage/kaiser-permanente-logo.png",homepageRenownHealth:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/homepage/renown-health-logo.png",homepageSeniorCarePlus:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/homepage/senior-care-plus-logo.png",homepageUnitedHealthcare:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/homepage/united-healthcare-logo.webp"};function l3(...t){return WS(zt(t))}const qP=[{label:"Group Health Plans",href:"/small-business-health-coverage-2/",submenu:[{label:"Group Health Quote",href:"/group-quote-request/"},{label:"BANN Association Health Plans",href:"/bann-association-health-plan/"},{label:"Find a Doctor",href:"/find-a-doctor/"},{label:"Compliance Information",href:"/compliance-for-insurance-plans/"}]},{label:"Medicare",href:"/medicare/",submenu:[{label:"Signing Up",href:"/medicare/"},{label:"Prominence Medicare",href:"/prominence-medicare-advantage/"},{label:"Kaiser Medicare",href:"/kaiser/"},{label:"Aetna Medicare",href:"/aetna-medicare-advantage/"},{label:"Annual Enrollment Period",href:"/nevada-medicare-advantage-enrollment-period/"},{label:"Medicare Prescriptions",href:"/medicare-prescription-drug-plans/"},{label:"Part D Annual Enrollment",href:"/nevada-part-d-annual-enrollment/"},{label:"Welcome Health Quest",href:"/welcome-health-quest"}]},{label:"Individual",href:"/services/",submenu:[{label:"Individual Insurance",href:"/major-medical-insurance-plans/"},{label:"Hometown Health",href:"/hometown-health/"}
849,{label:"Open Enrollment",href:"/nevada-individual-open-enrollment-2/"},{label:"Dental Insurance",href:"/dental-insurance/"},{label:"Vision Insurance",href:"/vision-insurance-2/"},{label:"Life Insurance",href:"/life-insurance/"},{label:"Travel Insurance",href:"/travel-insurance-reno/"},{label:"Short Term Plans",href:"/short-term-health-insurance/"},{label:"Find a Doctor",href:"/find-a-doctor/"}]},{label:"Locations",href:"/locations",submenu:[{label:"Reno",href:"/renolocation/"},{label:"Las Vegas",href:"/hendersonlocation/"},{label:"Sparks",href:"/sparkslocation/"},{label:"Carson City",href:"/carsonlocation/"},{label:"Fernley",href:"/fernleylocation/"},{label:"Truckee",href:"/truckee-medicare/"}]},{label:"Contact Us",href:"/reno-health-insurance-broker/",submenu:[{label:"Our Team",href:"/our-team/"},{label:"News",href:"/blog-news/"},{label:"FAQs",href:"/faqs/"}]}],WP=[{label:"Youtube",href:"https://www.youtube.com/channel/UC_oeEEhXeo9CgSxQVkfsksg",icon:Cy},{label:"Facebook",href:"https://www.facebook.com/HealthBenefitsAssociates/",icon:uU},{label:"Instagram",href:"https://www.instagram.com/healthinsurancenv/",icon:mU},{label:"LinkedIn",href:"https://www.linkedin.com/company/health-benefits-associates-inc-/posts/",icon:cS}];function GP({item:t,className:e}){return t.external?s.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:e,children:t.label}):s.jsx(ue,{to:t.href,className:e,children:t.label})}const Qpe=()=>{const[t,e]=w.useState(!1),[r,n]=w.useState(!1),[a,i]=w.useState(null),o=$r();return w.useEffect(()=>{const l=()=>{n(window.scrollY>20)};return window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]),w.useEffect(()=>{e(!1),i(null)},[o]),s.jsxs(s.Fragment,{children:[s.jsx("div",{"data-analytics-location":"header",className:"bg-hba-blue-1 text-white py-2 px-4 hidden lg:block border-b border-white/5",children:s.jsxs("div",{className:"max-w-7xl mx-auto flex justify-between items-center text-xs font-black uppercase tracking-widest",children:[s.jsxs("div",{className:"flex items-center gap-8",children:[s.jsxs("a",{href:"tel:7758281216",className:"flex items-center gap-2 hover:text-hba-orange-1 transition-colors",children:[s.jsx(Ut,{className:"w-4 h-4 text-hba-orange-1"}),"(775) 828-1216"]}),s.jsxs(ue,{to:"/locations",className:"flex items-center gap-2 hover:text-hba-orange-1 transition-colors",children:[s.jsx(tr,{className:"w-4 h-4 text-hba-orange-1"}),"Nevada Offices"]})]}),s.jsx("div",{className:"flex items-center gap-8",children:s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"bg-hba-orange-1 hover:bg-hba-orange-2 px-4 py-1.5 rounded-lg transition-all transform hover:scale-105",children:"Get With an Expert"})})]})}),s.jsxs("header",{"data-analytics-location":"header",className:l3("sticky top-0 z-50 w-full transition-all duration-300",r?"bg-white shadow-xl py-3":"bg-white py-6"),children:[s.jsxs("div",{className:"max-w-7xl mx-auto px-4 flex justify-between items-center",children:[s.jsx(ue,{to:"/",className:"flex items-center gap-2 group",children:s.jsx("img",{src:G0.hbaLogo,alt:"Health Benefits Associates",className:"h-10 md:h-12 w-auto object-contain transition-transform group-hover:scale-105"})}),s.jsxs("nav",{className:"hidden lg:flex items-center gap-2",children:[qP.map(l=>s.jsxs("div",{className:"relative group px-1",onMouseEnter:()=>i(l.label),onMouseLeave:()=>i(null),children:[s.jsxs(ue,{to:l.href,className:l3("flex items-center gap-1 px-5 py-2 font-black text-xs uppercase tracking-widest text-hba-blue-1 hover:text-hba-orange-1 transition-all rounded-xl",o.pathname.startsWith(l.href)&&"bg-hba-blue-1/5 text-hba-orange-1"),children:[l.label,s.jsx(mu,{className:l3("w-3.5 h-3.5 transition-transform duration-300",a===l.label&&"rotate-180")})]}),s.jsx(nN,{children:a===l.label&&s.jsx(Nt.div,{initial:{opacity:0,y:15,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:15,scale:.95},transition:{duration:.2,ease:"easeOut"},className:"absolute top-[120%] left-1/2 -translate-x-1/2 w-64 bg-white shadow-[0_20px_50px_rgba(0,0,0,0.1)] border border-hba-blue-1/5 rounded-2xl overflow-hidden py-3",children:l.submenu.map(c=>s.jsx(GP,{item:c,className:"block px-8 py-3 text-xs font-black uppercase tracking-widest text-hba-grey-1 hover:bg-hba-blue-1 hover:text-white transition-all"},c.label))})})]},l.label)),s.jsx("div",{className:"ml-2 flex items-center gap-3 pl-3",children:WP.map(l=>s.jsx("a",{href:l.href,target:"_blank",rel:"noopener noreferrer","aria-label":l.label,className:"text-hba-blue-1/70 hover:text-hba-orange-1 transition-colors",children:s.jsx(l.icon,{className:"w-4 h-4"})},l.label))})]}),s.jsxs("div",{"data-analytics-location":"mobile_nav",className:"flex items-center gap-4 lg:hidden",children:[s.jsx("a",{href:"tel:7758281216",className:"w-10 h-10 bg-hba-blue-1/5 rounded-full flex items-center justify-center text-hba-blue-1",children:s.jsx(Ut,{className:"w-5 h-5 text-hba-orange-1"})}),s.jsx("button",{onClick:()=>e(!t),className:"w-10 h-10 bg-hba-blue-1/5 rounded-full flex items-center justify-center text-hba-blue-1",children:t?s.jsx(cs,{className:"w-5 h-5"}):s.jsx(xU,{className:"w-5 h-5"})})]})]}),s.jsx(nN,{children:t&&s.jsx(Nt.div,{initial:{opacity:0,x:"100%"}
849,animate:{opacity:1,x:0},exit:{opacity:0,x:"100%"},transition:{type:"spring",damping:25,stiffness:200},"data-analytics-location":"mobile_nav",className:"fixed inset-0 z-50 lg:hidden bg-white overflow-y-auto pt-24 px-6",children:s.jsxs("div",{className:"space-y-8",children:[qP.map(l=>s.jsxs("div",{className:"space-y-4",children:[s.jsx(ue,{to:l.href,className:"block font-black text-2xl text-hba-blue-1 uppercase tracking-tighter hover:text-hba-orange-1 transition-colors",children:l.label}),s.jsx("div",{className:"grid grid-cols-1 gap-3 pl-4 border-l-2 border-hba-blue-1/10",children:l.submenu.map(c=>s.jsx(GP,{item:c,className:"text-hba-grey-1 py-1 font-bold text-lg hover:text-hba-orange-1 transition-colors"},c.label))})]},l.label)),s.jsxs("div",{className:"pt-8 border-t border-hba-blue-1/10 flex flex-col gap-6 pb-12",children:[s.jsx("div",{className:"flex items-center justify-center gap-5",children:WP.map(l=>s.jsx("a",{href:l.href,target:"_blank",rel:"noopener noreferrer","aria-label":l.label,className:"text-hba-blue-1 hover:text-hba-orange-1 transition-colors",children:s.jsx(l.icon,{className:"w-5 h-5"})},l.label))}),s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"bg-hba-orange-1 text-white py-5 rounded-2xl text-center font-black text-xl shadow-2xl shadow-hba-orange-1/20",children:"Get With an Expert"})]})]})})})]})]})},Zpe=[{href:"https://www.facebook.com/HealthBenefitsAssociates/",icon:uU,label:"Facebook"},{href:"https://www.instagram.com/healthinsurancenv/",icon:mU,label:"Instagram"},{href:"https://www.linkedin.com/company/health-benefits-associates-inc-/posts/",icon:cS,label:"LinkedIn"},{href:"https://www.youtube.com/channel/UC_oeEEhXeo9CgSxQVkfsksg",icon:Cy,label:"YouTube"}],eme=()=>{const t=new Date().getFullYear();return s.jsx("footer",{"data-analytics-location":"footer",className:"bg-hba-blue-1 text-hba-grey-2",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 pt-24 pb-8",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-16 mb-20",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsx(ue,{to:"/",className:"inline-block group",children:s.jsx("img",{src:G0.hbaLogo,alt:"HBA",className:"h-10 w-auto brightness-0 invert opacity-80 group-hover:opacity-100 transition-all"})}),s.jsx("a",{href:"https://www.bbb.org/us/nv/reno/profile/health-insurance/health-benefits-associates-inc-1166-104365/",target:"_blank",rel:"noreferrer",className:"inline-flex rounded-xl border border-white/20 bg-white p-2.5 shadow-sm transition hover:shadow-md","aria-label":"Better Business Bureau profile",children:s.jsx("img",{src:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/2026/05/blue-seal-293-61-bbb-104365-1778196360301.png",alt:"BBB Accredited Business",className:"h-14 w-auto rounded-sm transition-opacity hover:opacity-100"})}),s.jsx("div",{className:"flex gap-4",children:Zpe.map(({href:e,icon:r,label:n})=>s.jsx("a",{href:e,target:"_blank",rel:"noreferrer","aria-label":n,className:"w-10 h-10 rounded-xl bg-white/5 flex items-center justify-center hover:bg-hba-orange-1 hover:text-white transition-all transform hover:-translate-y-1",children:s.jsx(r,{className:"w-5 h-5"})},n))})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-white font-black text-xs mb-8 uppercase tracking-[0.2em]",children:"Our Services"}),s.jsxs("ul",{className:"space-y-4 font-black text-[10px] uppercase tracking-widest",children:[s.jsx("li",{children:s.jsx(ue,{to:"/small-business-health-coverage-2/",className:"hover:text-hba-orange-1 transition-colors",children:"Group Health Insurance"})}),s.jsx("li",{children:s.jsx(ue,{to:"/medicare/",className:"hover:text-hba-orange-1 transition-colors",children:"Medicare Advisory"})}),s.jsx("li",{children:s.jsx(ue,{to:"/services/",className:"hover:text-hba-orange-1 transition-colors",children:"Individual & Family"})}),s.jsx("li",{children:s.jsx(ue,{to:"/dental-insurance/",className:"hover:text-hba-orange-1 transition-colors",children:"Dental & Vision"})}),s.jsx("li",{children:s.jsx(ue,{to:"/travel-insurance-reno/",className:"hover:text-hba-orange-1 transition-colors",children:"Travel Insurance"})}),s.jsx("li",{children:s.jsx(ue,{to:"/find-a-doctor/",className:"hover:text-hba-orange-1 transition-colors",children:"Provider Search"})})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-white font-black text-xs mb-8 uppercase tracking-[0.2em]",children:"Resources"}),s.jsxs("ul",{className:"space-y-4 font-black text-[10px] uppercase tracking-widest",children:[s.jsx("li",{children:s.jsx(ue,{to:"/locations",className:"hover:text-hba-orange-1 transition-colors",children:"Office Locations"})}),s.jsx("li",{children:s.jsx(ue,{to:"/our-team/",className:"hover:text-hba-orange-1 transition-colors",children:"The HBA Team"})}),s.jsx("li",{children:s.jsx("a",{href:"/blog-news/",className:"hover:text-hba-orange-1 transition-colors",children:"Insurance Insights"})}),s.jsx("li",{children:s.jsx(ue,{to:"/faqs/",className:"hover:text-hba-orange-1 transition-colors",children:"Common Questions"})}),s.jsx("li",{children:s.jsxs(ue,{to:"/login",className:"hover:text-hba-orange-1 transition-colors inline-flex items-center gap-2",children:["Login ",s.jsx(Lt,{className:"w-3 h-3"})]})})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-white font-black text-xs mb-8 uppercase tracking-[0.2em]",children:"Get In Touch"}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("a",{href:"tel:7758281216",className:"flex items-center gap-4 hover:text-white transition-colors group",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-white/5 flex items-center justify-center group-hover:bg-hba-orange-1 transition-all",children:s.jsx(Ut,{className:"w-5 h-5 text-hba-orange-1 group-hover:text-white"})}),s.jsx("span",{className:"font-black text-sm",children:"(775) 828-1216"})]}),s.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-4 hover:text-white transition-colors group",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-white/5 flex items-center justify-center group-hover:bg-hba-orange-1 transition-all",children:s.jsx(Na,{className:"w-5 h-5 text-hba-orange-1 group-hover:text-white"})}),s.jsx("span",{className:"font-black text-sm",children:"Email Us"})]}),s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-white/5 flex items-center justify-center shrink-0",children:s.jsx(tr,{className:"w-5 h-5 text-hba-orange-1"})}),s.jsxs("span",{className:"text-xs font-medium leading-relaxed",children:["Headquarters:",
849s.jsx("br",{}),"3716 Lakeside Dr, Ste 100,",s.jsx("br",{}),"Reno, Nevada 89509"]})]})]})]})]}),s.jsxs("div",{className:"pt-12 border-t border-white/5 flex flex-col md:flex-row justify-between items-center gap-8 text-[10px] font-black uppercase tracking-[0.2em]",children:[s.jsxs("p",{children:["© ",t," Health Benefits Associates."]}),s.jsxs("div",{className:"flex flex-wrap justify-center gap-8",children:[s.jsx(ue,{to:"/privacy-policy-2/",className:"hover:text-white transition-colors",children:"Privacy Policy"}),s.jsx(ue,{to:"/sms-terms-and-conditions/",className:"hover:text-white transition-colors",children:"Terms and Conditions"}),s.jsx(ue,{to:"/accessibility-statement/",className:"hover:text-white transition-colors",children:"Accessibility Statement"}),s.jsx("a",{href:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/pdfs/2026/07/compensation-disclosure-rev-040626-1785443327884.pdf",target:"_blank",rel:"noreferrer",className:"hover:text-white transition-colors",children:"Compensation Disclosure"})]})]})]})})},tme="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==";function Dt(t){const[e,r]=w.useState(!1),n=typeof t.src=="string"?t.src.trim():t.src;w.useEffect(()=>{r(!1)},[n]);const a=()=>{r(!0)},{src:i,alt:o,style:l,className:c,...u}=t;return e?s.jsx("div",{className:`inline-block bg-gray-100 text-center align-middle ${c??""}`,style:l,children:s.jsx("div",{className:"flex items-center justify-center w-full h-full",children:s.jsx("img",{src:tme,alt:"Error loading image",...u,"data-original-url":n})})}):s.jsx("img",{src:n,alt:o,className:c,style:l,...u,loading:u.loading??"lazy",decoding:u.decoding??"async",referrerPolicy:u.referrerPolicy??"no-referrer",onError:a})}function Di(...t){return WS(zt(t))}const KS=({items:t})=>{const[e,r]=w.useState(0);return s.jsx("div",{className:"space-y-4",children:t.map((n,a)=>s.jsxs("div",{className:Di("border rounded-[1.5rem] overflow-hidden transition-all duration-300 bg-white",e===a?"border-hba-blue-1 shadow-xl shadow-hba-blue-1/5":"border-gray-100 shadow-sm"),children:[s.jsxs("button",{onClick:()=>r(e===a?null:a),className:"w-full flex justify-between items-center px-8 py-6 text-left hover:bg-gray-50 transition-colors group",children:[s.jsx("span",{className:Di("font-black text-lg uppercase tracking-tight transition-colors",e===a?"text-hba-blue-1":"text-hba-grey-1 group-hover:text-hba-blue-1"),children:n.question}),s.jsx("div",{className:Di("w-8 h-8 rounded-full flex items-center justify-center transition-all",e===a?"bg-hba-blue-1 text-white rotate-180":"bg-gray-100 text-hba-grey-1 group-hover:bg-hba-orange-1 group-hover:text-white"),children:s.jsx(mu,{className:"w-5 h-5"})})]}),s.jsx(nN,{children:e===a&&s.jsx(Nt.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},children:s.jsx("div",{className:"px-8 pb-8 text-lg text-hba-grey-1 leading-relaxed prose prose-blue max-w-none whitespace-pre-line [&_a]:font-bold [&_a]:text-hba-orange-1 [&_a]:underline [&_a]:underline-offset-2",children:n.answer})})})]},a))})},K0=({title:t,subtitle:e,centered:r=!0,badge:n})=>s.jsxs("div",{className:Di("mb-16 space-y-6",r&&"text-center"),children:[n&&s.jsx("div",{className:Di("inline-flex items-center gap-2 px-3 py-1 bg-hba-blue-1/5 text-hba-orange-1 text-[10px] font-black uppercase tracking-[0.3em] rounded-full mb-2",r&&"mx-auto"),children:n}),s.jsx("h2",{className:"text-3xl md:text-6xl font-black text-hba-blue-1 uppercase tracking-tighter leading-[0.9]",children:t}),e&&s.jsx("div",{className:Di("text-xl text-hba-grey-1 max-w-2xl font-medium leading-relaxed",r&&"mx-auto"),children:e}),s.jsx("div",{className:Di("h-1.5 w-16 bg-hba-orange-1 rounded-full",r&&"mx-auto")})]}),c3=({title:t,url:e,thumbnail:r})=>s.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"group relative block bg-white rounded-[2rem] overflow-hidden border border-gray-100 shadow-sm hover:shadow-2xl transition-all duration-500",children:[s.jsxs("div",{className:"relative aspect-video overflow-hidden",children:[s.jsx(Dt,{src:r,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-700",alt:t}),s.jsx("div",{className:"absolute inset-0 bg-hba-blue-1/20 group-hover:bg-hba-blue-1/40 transition-colors flex items-center justify-center",children:s.jsx("div",{className:"w-20 h-20 bg-hba-orange-1 text-white rounded-full flex items-center justify-center shadow-2xl group-hover:scale-110 transition-transform duration-300",children:s.jsx("svg",{className:"w-10 h-10 fill-current",viewBox:"0 0 24 24",children:s.jsx("path",{d:"M8 5v14l11-7z"})})})})]}),s.jsxs("div",{className:"p-8",children:[s.jsx("h4",{className:"font-black text-xl text-hba-blue-1 group-hover:text-hba-orange-1 transition-colors uppercase tracking-tight leading-snug",children:t}),s.jsxs("div",{className:"mt-4 flex items-center gap-2 text-hba-orange-1 font-bold text-sm uppercase tracking-widest",children:["Watch Video",s.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M9 5l7 7-7 7"})})]})]})]}),KP=({title:t,children:e,icon:r,variant:n="blue"})=>s.jsxs("div",{className:Di("p-10 rounded-[2.5rem] border transition-all duration-300 hover:shadow-xl",n==="blue"?"bg-white border-hba-blue-1/10 shadow-sm hover:border-hba-blue-1":"bg-white border-hba-orange-1/10 shadow-sm hover:border-hba-orange-1"),children:[s.jsx("div",{className:Di("w-16 h-16 rounded-2xl flex items-center justify-center mb-8 shadow-lg",n==="blue"?"bg-hba-blue-1 text-white":"bg-hba-orange-1 text-white"),children:s.jsx(r,{className:"w-8 h-8"})}),s.jsx("h3",{className:Di("text-3xl font-black mb-6 uppercase tracking-tight leading-tight",n==="blue"?"text-hba-blue-1":"text-hba-orange-1"),children:t}),s.jsx("div",{className:"text-lg text-hba-grey-1 leading-relaxed space-y-6",children:e})]}),rme="https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/2026/07/reno-2-location-1783355843190.jpg",YP="linear-gradient(to bottom, #000 0%, #000 78%, rgba(0,0,0,0.55) 88%, rgba(0,0,0,0.12) 95%, transparent 100%)",nme="radial-gradient(ellipse 70% 55% at 78% 32%, rgb(40 60 68 / 0.12), rgb(236 129 76 / 0.1), transparent 62%)",ame=()=>s.jsxs("section",{className:"relative w-full bg-[#e8e4df] py-20 md:py-28 lg:py-36 overflow-hidden",children:[s.jsxs("div",{className:"absolute inset-0",children:[s.jsx("img",{src:rme,alt:"",className:"h-full w-full object-cover object-center opacity-28","aria-hidden":!0}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#e8e4df]/92 via-[#ebe7e2]/84 to-[#e5e1dc]/74"})]}),s.jsx("div",{className:"pointer-events-none absolute top-0 right-0 h-full w-1/2 blur-3xl",style:{background:nme,opacity:.4},"aria-hidden":!0}),s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:s.jsxs("div",{className:"grid lg:grid-cols-[1fr_auto] gap-4 lg:gap-6 items-start",children:[s.jsxs(Nt.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.9,ease:"easeOut"},className:"flex flex-col justify-start pt-0 lg:pt-2 max-w-2xl",children:[s.jsx("div",{className:"mb-8",children:s.jsx("svg",{width:"48",height:"40",viewBox:"0 0 48 40",fill:"none",className:"text-hba-orange-1/30",children:s.jsx("path",{d:"M0 20.48C0 9.13 6.4 2.73 14.08 0l4.48 6.4C14.08 8.85 11.52 12.16 11.52 16.32c0 1.6.64 2.88 2.24 3.84l7.04 4.8v14.72H0V20.48zm27.52 0C27.52 9.13 33.92 2.73 41.6 0l4.48 6.4c-4.48 2.45-
8497.04 5.76-7.04 9.92 0 1.6.64 2.88 2.24 3.84l7.04 4.8v14.72H27.52V20.48z",fill:"currentColor"})})}),s.jsx("blockquote",{className:"mb-10",children:s.jsx("p",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-hba-blue-1 leading-[1.4] tracking-tight",children:"As a 4th generation Nevadan, we're here for our community. Our team looks forward to helping you or your business find the right options and be a consistent resource."})}),s.jsxs("div",{className:"border-l-4 border-hba-orange-1 pl-6",children:[s.jsx("div",{className:"text-lg font-black text-hba-blue-1 uppercase tracking-wide mb-1",children:"Alex Sampson"}),s.jsx("div",{className:"text-sm font-medium text-hba-grey-1 uppercase tracking-[0.15em]",children:"CEO, Health Benefits Associates"})]})]}),s.jsxs(Nt.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:1,ease:"easeOut",delay:.3},className:"relative flex justify-end lg:-mt-12 lg:-mb-16",children:[s.jsx("div",{className:"absolute top-[15%] -right-16 -z-10 h-[min(520px,85vw)] w-[min(520px,85vw)] rounded-[40%_60%_70%_30%/60%_30%_70%_40%] bg-gradient-to-bl from-hba-orange-1/8 via-hba-blue-1/6 to-transparent blur-[100px]"}),s.jsx("div",{className:"relative h-[420px] w-[300px] overflow-hidden sm:h-[480px] sm:w-[340px] lg:h-[540px] lg:w-[400px] xl:h-[580px] xl:w-[430px]",children:s.jsx("img",{src:G0.alexFinal,alt:"Alex Sampson, CEO of Health Benefits Associates",className:"h-full w-full object-cover",style:{objectPosition:"50% 0%",transform:"translateY(-3%) scale(1.12)",transformOrigin:"center top",maskImage:YP,WebkitMaskImage:YP}})})]})]})}),s.jsx("div",{className:"absolute inset-x-0 bottom-0 h-24 bg-gradient-to-t from-white/60 to-transparent pointer-events-none"})]}),XP=[{name:"Reno",slug:"reno",image:mn.reno},{name:"Las Vegas",slug:"henderson",image:mn.henderson},{name:"Sparks",slug:"sparks",image:mn.sparks},{name:"Carson City",slug:"carson-city",image:mn.carsonCity},{name:"Fernley",slug:"fernley",image:mn.fernley},{name:"Truckee",slug:"truckee",image:mn.truckee}],sme={reno:"/renolocation/",sparks:"/sparkslocation/","carson-city":"/carsonlocation/",fernley:"/fernleylocation/",henderson:"/hendersonlocation/",truckee:"/truckee-medicare/"},ime=()=>{const t=qn(),[e,r]=w.useState(null);return w.useEffect(()=>{(async()=>{await new Promise(a=>setTimeout(a,800));for(let a=0;a<XP.length;a++)r(a),await new Promise(i=>setTimeout(i,600));r(null)})()},[]),s.jsxs("div",{className:"flex w-full h-[80vh] min-h-[600px] overflow-hidden bg-hba-blue-1 relative",children:[s.jsx("div",{className:"absolute inset-0 z-10 pointer-events-none flex items-center justify-center overflow-hidden",children:s.jsx(Nt.img,{initial:{opacity:0,scale:1.2},animate:{opacity:.1,scale:1},transition:{duration:2,ease:"easeOut"},src:G0.hbaLogo,className:"w-full max-w-4xl brightness-0 invert"})}),XP.map((n,a)=>s.jsxs(Nt.div,{className:"relative h-full cursor-pointer group border-r border-white/5 last:border-r-0",initial:{flexGrow:1},animate:{flexGrow:e===a?2:1},transition:{duration:.8,ease:[.22,1,.36,1]},onClick:()=>t(sme[n.slug]),children:[s.jsx("div",{className:"absolute inset-0 z-10 bg-black/20 group-hover:bg-black/10 transition-colors duration-500"}),s.jsx(Dt,{src:n.image,alt:n.name,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-1000 group-hover:scale-110"}),s.jsx("div",{className:"absolute inset-x-0 bottom-0 z-20 p-8 md:p-12",children:s.jsxs(Nt.div,{initial:!1,animate:{y:e===a?-10:0},children:[s.jsx("h3",{className:"text-3xl md:text-4xl font-black text-white uppercase tracking-tighter drop-shadow-2xl",children:n.name}),s.jsx("div",{className:"h-0 group-hover:h-8 transition-all duration-300 overflow-hidden",children:s.jsxs("div",{className:"flex items-center gap-2 text-hba-orange-1 font-black uppercase tracking-[0.2em] text-xs mt-4",children:["View Location",s.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M9 5l7 7-7 7"})})]})})]})})]},n.slug))]})};function JP(t){return t==="localhost"||t==="127.0.0.1"||t==="[::1]"}function ome(){const t="".trim().replace(/\/$/,""),e=typeof window<"u"&&JP(window.location.hostname);
849if(t){try{const r=new URL(t,typeof window<"u"?window.location.origin:"http://localhost");if(JP(r.hostname)&&!e)return""}catch{}return t}return""}function bW(){return ome()}function xf(){return localStorage.getItem("hba_access_token")}function mr(){const t=xf(),e={"Content-Type":"application/json"};return t&&(e.Authorization=`Bearer ${t}`),e}function ut(t){const e=bW(),r=t.startsWith("/")?t:`/${t}`;return`${e}${r}`}var u3={exports:{}},d3,QP;function lme(){if(QP)return d3;QP=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return d3=t,d3}var h3,ZP;function cme(){if(ZP)return h3;ZP=1;var t=lme();function e(){}function r(){}return r.resetWarningCache=e,h3=function(){function n(o,l,c,u,d,h){if(h!==t){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:e};return i.PropTypes=i,i},h3}var eM;function ume(){return eM||(eM=1,u3.exports=cme()()),u3.exports}var dme=ume();const Qt=ar(dme);function th(){return th=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},th.apply(this,arguments)}function hme(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,cN(t,e)}function cN(t,e){return cN=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},cN(t,e)}var YS=(function(t){hme(e,t);function e(){var n;return n=t.call(this)||this,n.state={columns:[],childRefs:[],hasDistributed:!1},n}var r=e.prototype;return r.componentDidUpdate=function(){!this.state.hasDistributed&&!this.props.sequential&&this.distributeChildren()},e.getDerivedStateFromProps=function(a,i){var o=a.children,l=a.columnsCount,c=l!==i.columns.length;return i&&o===i.children&&!c?null:th({},e.getEqualCountColumns(o,l),{children:o,hasDistributed:!1})},r.shouldComponentUpdate=function(a){return a.children!==this.state.children||a.columnsCount!==this.props.columnsCount},r.distributeChildren=function(){var a=this,i=this.props,o=i.children,l=i.columnsCount,c=Array(l).fill(0),u=this.state.childRefs.every(function(m){return m.current.getBoundingClientRect().height});if(u){var d=Array.from({length:l},function(){return[]}),h=0;z.Children.forEach(o,function(m){if(m&&z.isValidElement(m)){var g=a.state.childRefs[h].current.getBoundingClientRect().height,b=c.indexOf(Math.min.apply(Math,c));c[b]+=g,d[b].push(m),h++}}),this.setState(function(m){return th({},m,{columns:d,hasDistributed:!0})})}},e.getEqualCountColumns=function(a,i){var o=Array.from({length:i},function(){return[]}),l=0,c=[];return z.Children.forEach(a,function(u){if(u&&z.isValidElement(u)){var d=z.createRef();c.push(d),o[l%i].push(z.createElement("div",{style:{display:"flex",justifyContent:"stretch"},key:l,ref:d},u)),l++}}),{columns:o,childRefs:c}},r.renderColumns=function(){var a=this.props,i=a.gutter,o=a.itemTag,l=a.itemStyle;return this.state.columns.map(function(c,u){return z.createElement(o,{key:u,style:th({display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:i},l)},c.map(function(d){return d}))})},r.render=function(){var a=this.props,i=a.gutter,o=a.className,l=a.style,c=a.containerTag;return z.createElement(c,{style:th({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:i},l),className:o},this.renderColumns())},e})(z.Component);YS.propTypes={};YS.defaultProps={columnsCount:3,gutter:"0",className:null,style:{},containerTag:"div",itemTag:"div",itemStyle:{},sequential:!1};var fme=1,pme="10px",xW=typeof window<"u"?w.useLayoutEffect:w.useEffect,mme=function(){var e=w.useState(!1),r=e[0],n=e[1];return xW(function(){n(!0)},[]),r},gme=function(){var e=mme(),r=w.useState(typeof window<"u"?window.innerWidth:0),n=r[0],a=r[1],i=w.useCallback(function(){e&&a(window.innerWidth)},[e]);return xW(function(){if(e)return window.addEventListener("resize",i),i(),function(){return window.removeEventListener("resize",i)}},[e,i]),n},yW=function(e){var r=e.columnsCountBreakPoints,n=r===void 0?{350:1,750:2,900:3}:r,a=e.gutterBreakPoints,i=a===void 0?{}:a,o=e.children,l=e.className,c=l===void 0?null:l,u=e.style,d=u===void 0?null:u,h=gme(),m=w.useCallback(function(y,v){var N=Object.keys(y).sort(function(j,$){return j-$}),S=N.length>0?y[N[0]]:v;
849return N.forEach(function(j){j<h&&(S=y[j])}),S},[h]),g=w.useMemo(function(){return m(n,fme)},[m,n]),b=w.useMemo(function(){return m(i,pme)},[m,i]);return z.createElement("div",{className:c,style:d},z.Children.map(o,function(y,v){return z.cloneElement(y,{key:v,columnsCount:g,gutter:b})}))};yW.propTypes={};const bme=[{title:"Employer Sponsored Plans",description:"Custom group benefit packages to help your business thrive in Nevada.",icon:uf,href:"/small-business-health-coverage-2/",color:"bg-hba-blue-2",img:"https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=1080"},{title:"Medicare",description:"We help you navigate the complex world of Medicare at zero cost to you.",icon:Rr,href:"/medicare/",color:"bg-hba-blue-1",img:"https://images.unsplash.com/photo-1542332213-9b5a5a3fad35?q=80&w=1080"},{title:"Individual & Family",description:"Compare affordable health plans for you and your family.",icon:sn,href:"/services/",color:"bg-hba-orange-1",img:"https://images.unsplash.com/photo-1582142306909-195724d33ffc?q=80&w=1080"}],xme=[{label:"Years of Experience",end:30,suffix:"+",prefix:""},{label:"Clients Served",end:15e3,suffix:"+",prefix:""},{label:"5-Star Reviews",end:500,suffix:"+",prefix:""},{label:"Cost to You",end:0,suffix:"",prefix:"$"}];function yme({end:t,suffix:e,prefix:r,inView:n,duration:a=2e3,start:i=0}){const[o,l]=w.useState(i),c=w.useRef(null),u=w.useRef(0);w.useEffect(()=>{if(!n){l(i),c.current=null;return}c.current=null;const h=m=>{c.current===null&&(c.current=m);const g=m-c.current,b=Math.min(g/a,1),y=1-Math.pow(1-b,3),v=Math.round(i+(t-i)*y);l(v),b<1&&(u.current=requestAnimationFrame(h))};return u.current=requestAnimationFrame(h),()=>cancelAnimationFrame(u.current)},[n,t,a,i]);const d=t>=1e3?o.toLocaleString():String(o);return s.jsxs(s.Fragment,{children:[r,d,e]})}function vme(){const t=w.useRef(null),e=tl(t,{once:!0,amount:.3});return s.jsx("section",{ref:t,className:"bg-white border-b border-gray-100 py-12 md:py-16",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4",children:s.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8",children:xme.map((r,n)=>s.jsxs("div",{className:"text-center group",children:[s.jsx("div",{className:"text-4xl md:text-5xl font-black text-hba-blue-1 mb-2 tracking-tighter transition-transform group-hover:scale-110",children:s.jsx(yme,{end:r.end,suffix:r.suffix,prefix:r.prefix,inView:e,duration:r.end>=1e4?2200:1800,start:r.end===0?0:1})}),s.jsx("div",{className:"text-xs md:text-sm font-black text-hba-grey-1 uppercase tracking-[0.2em]",children:r.label})]},n))})})})}const wme={reno:"Reno, NV","carson-city-minden":"Carson City / Minden, NV",sparks:"Sparks, NV",fernley:"Fernley, NV",henderson:"Las Vegas, NV",truckee:"Truckee, CA"};function Nme(t,e){return wme[t]??e??t}function jme(t){const e=[...t];for(let r=e.length-1;r>0;r--){const n=Math.floor(Math.random()*(r+1));[e[r],e[n]]=[e[n],e[r]]}return e}function kme(){const[t,e]=w.useState([]),[r,n]=w.useState(!0),[a,i]=w.useState(new Set);w.useEffect(()=>{fetch(ut("/api/reviews/recent?limit=8")).then(g=>g.ok?g.json():[]).then(g=>{const b=Array.isArray(g)?g:[];console.log(b),e(jme(b))}).catch(()=>e([])).finally(()=>n(!1))},[]);const o=g=>{if(!g)return"CL";const b=g.trim().split(" ").filter(Boolean);return b.length===1?b[0].slice(0,2).toUpperCase():(b[0][0]+b[b.length-1][0]).toUpperCase()},l=g=>{const b=["bg-hba-blue-1","bg-hba-orange-1","bg-hba-blue-2","bg-amber-500","bg-emerald-600"];return b[g%b.length]},c=g=>{if(!g)return null;const b=new Date(g);return Number.isNaN(b.getTime())?null:b.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})},u=g=>{const b=(g??"").length;return b<80?"line-clamp-2":b<150?"line-clamp-4":"line-clamp-6"},d=g=>{const b=(g??"").length;return b<80?"min-h-[180px]":b<180?"min-h-[230px]":"min-h-[280px]"},h=g=>{const b=["bg-white","bg-white/95","bg-gray-50","bg-white","bg-white/98","bg-gray-50/95","bg-white","bg-white/95"];return b[g%b.length]},m=g=>{const b=["-rotate-1","rotate-0","rotate-1","-rotate-2","rotate-2"];return b[g%b.length]};return s.jsxs("section",{className:"py-24 md:py-32 bg-hba-blue-1 text-white relative overflow-hidden",children:[s.jsx("div",{className:"absolute top-0 right-0 w-1/2 h-full bg-white/5 skew-x-12 translate-x-1/2 pointer-events-none"}),s.jsxs("div",{className:"max-w-7xl mx-auto px-4 relative z-10",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-black uppercase tracking-tighter text-white mb-4",children:"What Our Clients Say"}),s.jsx("p",{className:"text-white/70 text-lg max-w-2xl mx-auto font-medium",children:"Real experiences from people we've helped across Nevada."})]}),r?s.jsx("div",{className:"h-64 flex items-center justify-center text-white/70",children:"Loading reviewsâ¦"}):t.length===0?s.jsx("div",{className:"h-64 flex items-center justify-center text-white/70",children:"No reviews yet."}):s.jsx(yW,{columnsCountBreakPoints:{400:1,600:2,900:3,1200:4},style:{marginTop:0},children:s.jsx(YS,{gutter:"1.25rem",children:t.slice(0,8).map((g,b)=>s.jsx(Nt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:b*.05},className:m(b),children:s.jsxs("div",{className:`${h(b)} p-6 md:p-8 rounded-2xl border border-white/20 shadow-lg hover:shadow-xl hover:shadow-black/10 transition-all duration-300 flex flex-col ${d(g.review_text)}`,children:[s.jsxs("div",{className:"flex items-center justify-between gap-4 mb-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[g.reviewer_profile_photo_url&&!a.has(g.id)?s.jsx("img",{src:g.reviewer_profile_photo_url,alt:g.reviewer_name??"Reviewer",className:"h-10 w-10 rounded-full object-cover shrink-0 border-2 border-white/30",onError:()=>i(y=>
849new Set(y).add(g.id))}):s.jsx("div",{className:`h-10 w-10 rounded-full flex items-center justify-center text-[11px] font-black tracking-tight text-white shrink-0 ${l(b)}`,children:o(g.reviewer_name)}),s.jsxs("div",{children:[s.jsx("div",{className:"font-black text-hba-blue-1 text-sm uppercase tracking-tight",children:g.reviewer_name??"Anonymous"}),s.jsx("div",{className:"text-[11px] text-hba-grey-1 uppercase tracking-[0.16em]",children:Nme(g.office_code,g.office_city)})]})]}),c(g.review_date)&&s.jsx("div",{className:"text-[11px] text-hba-grey-1 font-medium whitespace-nowrap",children:c(g.review_date)})]}),s.jsx("div",{className:"flex gap-1.5 mb-3",children:[...Array(5)].map((y,v)=>s.jsx(Un,{className:`w-5 h-5 ${v<g.rating?"fill-hba-orange-1 text-hba-orange-1":"fill-gray-200 text-gray-200"}`},v))}),s.jsxs("p",{className:`text-hba-grey-1 leading-relaxed italic mb-6 ${u(g.review_text)}`,children:["â",g.review_text??"Great service!","â"]})]})},g.id))})})]})]})}function vW(){return s.jsx("section",{className:"py-32 bg-white relative overflow-hidden",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 relative z-10",children:[s.jsx(K0,{badge:"Unbiased Healthcare Advice",title:"Local Expert Guidance",subtitle:"Helping you navigate the complex world of health insurance with clarity and confidence."}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:bme.map((t,e)=>s.jsx(Nt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.1},children:s.jsxs(ue,{to:t.href,className:"group bg-hba-blue-1/5 p-10 rounded-[2.5rem] border border-hba-blue-1/15 shadow-md shadow-hba-blue-1/8 hover:border-hba-orange-1 hover:bg-white hover:shadow-2xl transition-all block h-full",children:[s.jsx("div",{className:`${t.color} w-16 h-16 rounded-2xl flex items-center justify-center text-white mb-8 group-hover:scale-110 transition-transform shadow-xl`,children:s.jsx(t.icon,{className:"w-8 h-8"})}),s.jsx("h3",{className:"text-2xl font-black text-hba-blue-1 mb-4 uppercase tracking-tight",children:t.title}),s.jsx("p",{className:"text-hba-grey-1 leading-relaxed font-medium",children:t.description}),s.jsxs("div",{className:"mt-8 flex items-center gap-2 text-hba-orange-1 font-black uppercase tracking-widest text-xs",children:["Learn More",s.jsx(Xe,{className:"w-4 h-4 group-hover:translate-x-2 transition-transform"})]})]})},t.title))})]})})}const Sme=()=>s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("section",{className:"relative w-full",children:[s.jsx(ime,{}),s.jsx("div",{className:"absolute inset-0 z-30 flex items-center pointer-events-none [&_a]:pointer-events-auto",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4 w-full",children:s.jsx(Nt.div,{initial:{opacity:0,x:-30},animate:{opacity:1,x:0},transition:{delay:.8,duration:1.2,ease:"easeOut"},className:"max-w-2xl",children:s.jsxs("div",{className:"relative group",children:[s.jsx(Nt.div,{initial:{width:0},animate:{width:"60px"},transition:{delay:1.5,duration:1},className:"h-1 bg-hba-orange-1/80 mb-6 rounded-full shadow-[0_0_15px_rgba(221,90,26,0.3)]"}),s.jsxs("h1",{className:"text-3xl md:text-5xl lg:text-6xl font-black text-white/85 leading-[1.05] tracking-tighter uppercase drop-shadow-[0_4px_20px_rgba(0,0,0,0.3)]",children:["Navigating ",s.jsx("br",{}),"Health Insurance with ",s.jsx("br",{}),s.jsxs("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-hba-orange-1/85 to-[#ff8c42]/85 drop-shadow-none",children:["Zero-Cost ",s.jsx("br",{})," Expert Guidance"]})]}),s.jsxs(Nt.div,{initial:{opacity:0}
849,animate:{opacity:1},transition:{delay:2,duration:1},className:"mt-8 inline-flex items-center gap-3 px-5 py-2.5 bg-white/5 backdrop-blur-md border border-white/10 rounded-xl shadow-2xl",children:[s.jsx(Rr,{className:"w-4 h-4 text-hba-orange-1/80"}),s.jsx(ue,{to:"/locations",className:"text-white/70 font-black uppercase tracking-[0.2em] text-[9px] md:text-[10px] hover:text-white transition-colors cursor-pointer",children:"Nevada's Trusted Independent Brokerage"})]})]})})})}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/60 via-black/20 to-transparent z-20 pointer-events-none"}),s.jsx("div",{className:"absolute inset-x-0 bottom-0 h-1/3 bg-gradient-to-t from-black/40 to-transparent z-20 pointer-events-none"})]}),s.jsx(vme,{}),s.jsx(kme,{}),s.jsx(vW,{}),s.jsx(ame,{})]});function Fe(...t){return WS(zt(t))}function vi({title:t,subtitle:e,eyebrow:r,align:n="left",titleId:a,titleClassName:i,subtitleClassName:o,className:l}){return s.jsxs("header",{className:Fe("max-w-3xl",n==="center"&&"mx-auto text-center",l),children:[r?s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.2em] text-hba-orange-1 mb-3",children:r}):null,s.jsx("h2",{id:a,className:Fe("text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",i),children:t}),e?s.jsx("p",{className:Fe("mt-4 text-lg leading-relaxed text-hba-grey-1",o),children:e}):null]})}function tM({rating:t}){const e=Math.min(5,Math.max(0,Math.round(t)));return s.jsx("div",{className:"flex gap-0.5","aria-label":`${e} out of 5 stars`,children:Array.from({length:5},(r,n)=>s.jsx(Un,{className:Fe("h-4 w-4",n<e?"fill-hba-orange-1 text-hba-orange-1":"text-hba-grey-2"),"aria-hidden":!0},n))})}function Cme({title:t,subtitle:e,testimonials:r,className:n,titleClassName:a,subtitleClassName:i,loading:o=!1,layout:l="grid"}){const c=w.useRef(null),u=l==="slider",d=h=>{const m=c.current;m&&m.scrollBy({left:h==="left"?-360:360,behavior:"smooth"})};return s.jsxs("section",{className:Fe("relative overflow-hidden py-20 md:py-28","bg-gradient-to-b from-[#f8fafc] via-white to-[#f3f5f8]",n),"aria-labelledby":"testimonials-section-title",children:[s.jsx("div",{className:"pointer-events-none absolute right-0 top-1/4 h-72 w-72 translate-x-1/3 rounded-full bg-hba-orange-1/[0.06] blur-3xl","aria-hidden":!0}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4",children:[s.jsx("div",{className:"mb-14 md:mb-16",children:s.jsx(vi,{title:t,subtitle:e,align:"center",titleId:"testimonials-section-title",titleClassName:Fe("text-[1.65rem] md:text-4xl lg:text-[2.35rem]",a),subtitleClassName:Fe("max-w-2xl text-hba-blue-2",i)})}),o?s.jsx("div",{className:"flex min-h-48 items-center justify-center rounded-2xl border border-hba-blue-1/10 bg-white/80 text-hba-grey-1",children:"Loading reviews..."}):r.length===0?s.jsx("div",{className:"flex min-h-48 items-center justify-center rounded-2xl border border-hba-blue-1/10 bg-white/80 text-hba-grey-1",children:"Reviews are not available right now."}):null,!o&&r.length>0&&u?s.jsxs("div",{className:"relative",children:[s.jsxs("div",{className:"mb-5 flex justify-end gap-2",children:[s.jsx("button",{type:"button",onClick:()=>d("left"),className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-hba-blue-1/15 bg-white text-hba-blue-1 shadow-sm transition hover:border-hba-orange-1/40 hover:text-hba-orange-1","aria-label":"Previous reviews",children:s.jsx(Fu,{className:"h-5 w-5","aria-hidden":!0})}),s.jsx("button",{type:"button",onClick:()=>d("right"),className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-hba-blue-1/15 bg-white text-hba-blue-1 shadow-sm transition hover:border-hba-orange-1/40 hover:text-hba-orange-1","aria-label":"Next reviews",children:s.jsx(Vn,{className:"h-5 w-5","aria-hidden":!0})})]}),s.jsx("ul",{ref:c,className:"flex snap-x snap-mandatory gap-5 overflow-x-auto scroll-smooth py-8 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:r.map(h=>s.jsx("li",{className:"relative min-w-[82%] snap-start sm:min-w-[420px] lg:min-w-[23.5%]",children:s.jsxs("article",{tabIndex:0,className:"group/review flex h-full flex-col rounded-2xl border border-hba-blue-1/10 bg-white/90 p-8 shadow-[0_6px_28px_-12px_rgba(42,60,70,0.1)] ring-1 ring-hba-blue-1/5 transition duration-300 hover:relative hover:z-20 hover:-translate-y-3 hover:scale-[1.04] hover:border-hba-orange-1/30 hover:bg-white hover:shadow-[0_28px_70px_-24px_rgba(42,60,70,0.28)] focu
849s:relative focus:z-20 focus:-translate-y-3 focus:scale-[1.04] focus:border-hba-orange-1/30 focus:bg-white focus:shadow-[0_28px_70px_-24px_rgba(42,60,70,0.28)] focus:outline-none focus:ring-2 focus:ring-hba-orange-1/40",children:[s.jsx(tM,{rating:h.rating}),s.jsx("blockquote",{className:"mt-4 flex-1 text-hba-blue-1",children:s.jsxs("p",{className:"line-clamp-5 leading-relaxed transition-all duration-300 group-hover/review:line-clamp-none group-focus/review:line-clamp-none",children:["â",h.quote,"â"]})}),s.jsxs("footer",{className:"mt-6 border-t border-hba-blue-1/10 pt-6",children:[s.jsx("p",{className:"font-bold text-hba-blue-1",children:h.name}),h.location?s.jsx("p",{className:"mt-1 text-sm text-hba-grey-1",children:h.location}):null,h.source?s.jsx("p",{className:"mt-2 text-xs font-medium uppercase tracking-wider text-hba-grey-1",children:h.source}):null]})]})},h.id))})]}):null,!o&&r.length>0&&!u?s.jsx("ul",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:r.map(h=>s.jsx("li",{children:s.jsxs("article",{className:"flex h-full flex-col rounded-2xl border border-hba-blue-1/10 bg-white/90 p-8 shadow-[0_6px_28px_-12px_rgba(42,60,70,0.1)] ring-1 ring-hba-blue-1/5 transition duration-300 hover:-translate-y-0.5 hover:border-hba-orange-1/25 hover:shadow-[0_18px_40px_-16px_rgba(42,60,70,0.14)]",children:[s.jsx(tM,{rating:h.rating}),s.jsx("blockquote",{className:"mt-4 flex-1 text-hba-blue-1",children:s.jsxs("p",{className:"leading-relaxed",children:["â",h.quote,"â"]})}),s.jsxs("footer",{className:"mt-6 border-t border-hba-blue-1/10 pt-6",children:[s.jsx("p",{className:"font-bold text-hba-blue-1",children:h.name}),h.location?s.jsx("p",{className:"mt-1 text-sm text-hba-grey-1",children:h.location}):null,h.source?s.jsx("p",{className:"mt-2 text-xs font-medium uppercase tracking-wider text-hba-grey-1",children:h.source}):null]})]})},h.id))}):null]})]})}const $me=[{label:"Local Nevada Guidance",icon:tr},{label:"No-Cost Medicare Help",icon:Rr},{label:"Year-Round Support",icon:ls}];function _me({headingId:t="medicare-hero-title",partsSectionId:e="medicare-parts",quotePath:r="/medicare-quote-request/",contactPath:n="/reno-health-insurance-broker/",phoneHref:a="tel:7758281216",phoneDis
849play:i="(775) 828-1216",className:o}){return s.jsxs("section",{className:Fe("relative overflow-hidden border-b border-hba-blue-1/10",o),"aria-labelledby":t,children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#dce6ef] via-white to-[#ede8e0]","aria-hidden":!0}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-hba-blue-1/[0.07] via-transparent to-hba-orange-1/[0.06]","aria-hidden":!0}),s.jsxs("div",{className:"pointer-events-none absolute inset-0 opacity-90","aria-hidden":!0,children:[s.jsx("div",{className:"absolute -left-32 top-0 h-[28rem] w-[28rem] rounded-full bg-hba-blue-1/[0.07] blur-3xl"}),s.jsx("div",{className:"absolute right-0 top-1/4 h-96 w-96 translate-x-1/4 rounded-full bg-hba-orange-1/[0.12] blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 left-1/3 h-72 w-72 rounded-full bg-hba-blue-2/[0.08] blur-3xl"})]}),s.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-[0.4] [mask-image:linear-gradient(180deg,white,transparent)]",style:{backgroundImage:"linear-gradient(to right, rgba(42,60,70,0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(42,60,70,0.06) 1px, transparent 1px)",backgroundSize:"48px 48px"},"aria-hidden":!0}),s.jsx("div",{className:"relative mx-auto max-w-7xl px-4 py-16 md:py-24 lg:py-28",children:s.jsxs("div",{className:"grid items-center gap-12 lg:grid-cols-[minmax(0,1fr)_minmax(0,22rem)] lg:gap-16 xl:grid-cols-[minmax(0,1fr)_minmax(0,26rem)]",children:[s.jsxs("div",{children:[s.jsxs("p",{className:"inline-flex items-center gap-2 rounded-full border border-hba-blue-1/10 bg-white/80 px-4 py-1.5 text-xs font-black uppercase tracking-[0.18em] text-hba-blue-2 shadow-sm backdrop-blur-sm",children:[s.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-hba-orange-1","aria-hidden":!0}),"Nevada Medicare Advisory"]}),s.jsx("h1",{id:t,className:"mt-6 max-w-3xl text-4xl font-black tracking-tight text-hba-blue-1 md:text-5xl lg:text-[3.35rem] lg:leading-[1.08]",children:"Discover Your Medicare Options"}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-relaxed text-hba-blue-2 md:text-xl",children:"Nevada Medicare advertising can be relentless. With so many different options, it is easy to be confused about your choices. That's where our office comes in. We help compare each choice to find the plan that fits your needs."}),s.jsxs("div",{className:"mt-10 flex flex-col gap-4 sm:flex-row sm:flex-wrap sm:items-center",children:[s.jsx(ue,{to:r,className:"inline-flex min-h-[52px] min-w-[220px] items-center justify-center rounded-2xl bg-hba-orange-1 px-8 py-3.5 text-center text-sm font-black uppercase tracking-[0.14em] text-white shadow-[0_12px_40px_-8px_rgba(236,129,76,0.55)] transition hover:bg-hba-orange-2 hover:shadow-[0_16px_44px_-8px_rgba(236,129,76,0.5)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-blue-1",children:"Get a Quote"}),s.jsx(ue,{to:n,className:"inline-flex min-h-[52px] min-w-[200px] items-center justify-center rounded-2xl border-2 border-hba-blue-1/20 bg-white/90 px-8 py-3.5 text-center text-sm font-black uppercase tracking-[0.14em] text-hba-blue-1 shadow-sm backdrop-blur-sm transition hover:border-hba-blue-1/35 hover:bg-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-orange-1",children:"Talk to an Expert"}),s.jsxs("a",{href:a,className:"inline-flex min-h-[52px] items-center justify-center gap-2 rounded-2xl px-2 text-sm font-black uppercase tracking-[0.12em] text-hba-blue-1 underline-offset-4 transition hover:text-hba-orange-1 hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-blue-1 sm:px-4",children:[s.jsx(Ut,{className:"h-5 w-5 text-hba-orange-1","aria-hidden":!0}),"Call Now · ",i]})]}),s.jsx("ul",{className:"mt-12 flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:gap-4","aria-label":"Why clients trust us",children:$me.map(({label:l,icon:c})=>s.jsxs("li",{className:"flex items-center gap-3 rounded-2xl border border-hba-blue-1/10 bg-white/70 px-4 py-3 shadow-sm backdrop-blur-md sm:px-5",children:[s.jsx("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(c,{className:"h-5 w-5","aria-hidden":!0})}),s.jsx("span",{className:"text-sm font-bold text-hba-blue-1",children:l})]},l))}),s.jsxs("div",{className:"mt-10",children:[s.jsxs("a",{href:`#${e}`,className:"group inline-flex items-center gap-2 text-sm font-black uppercase tracking-[0.14em] text-hba-blue-1 transition hover:text-hba-orange-1 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-orange-1",children:["Medicare 101: the four parts",s.jsx(mu,{className:"h-4 w-4 transition group-hover:translate-y-0.5","aria-hidden":!0})]}),s.jsx("p",{className:"mt-2 max-w-md text-xs font-medium text-hba-grey-1",children:"Qu
849ick overview of Parts AâD â right below this section."})]})]}),s.jsxs("div",{className:"relative hidden lg:block","aria-hidden":!0,children:[s.jsx("div",{className:"absolute -inset-4 rounded-[2rem] bg-gradient-to-br from-hba-blue-1/10 to-hba-orange-1/10 blur-2xl"}),s.jsxs("div",{className:"relative space-y-4 rounded-3xl border border-white/60 bg-white/40 p-6 shadow-xl shadow-hba-blue-1/10 backdrop-blur-md",children:[s.jsxs("div",{className:"rounded-2xl border border-hba-blue-1/10 bg-gradient-to-br from-hba-blue-1 to-[#1e2b33] p-6 text-white shadow-lg",children:[s.jsx(Rr,{className:"h-10 w-10 text-hba-orange-1"}),s.jsx("p",{className:"mt-4 text-lg font-black leading-snug",children:"Independent, local guidance"}),s.jsx("p",{className:"mt-2 text-sm leading-relaxed text-white/75",children:"Compare carriers and plans with a team that knows Nevada networks."})]}),s.jsxs("div",{className:"flex items-center gap-4 rounded-2xl border border-hba-blue-1/10 bg-white/90 p-5 shadow-md",children:[s.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-2xl bg-hba-orange-1/15 text-hba-orange-1",children:s.jsx(tr,{className:"h-7 w-7"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-widest text-hba-grey-1",children:"Offices statewide"}),s.jsx("p",{className:"mt-1 font-bold text-hba-blue-1",children:"Reno · Sparks · Carson · more"})]})]})]})]})]})})]})}const Ame="https://www.medicare.gov/plan-compare/",Eme={blue:{bar:"from-hba-blue-1 via-hba-blue-2 to-hba-blue-1",iconBg:"bg-hba-blue-1/12",iconColor:"text-hba-blue-1",bullet:"bg-hba-blue-1",cardBg:"from-white to-[#eef4fa]/90",ringHover:"hover:ring-hba-blue-1/20"},teal:{bar:"from-[#2d4a55] via-[#3d5f6d] to-[#2d4a55]",iconBg:"bg-[#2d4a55]/12",iconColor:"text-[#2d4a55]",bullet:"bg-[#3d5f6d]",cardBg:"from-white to-[#ecf4f4]/90",ringHover:"hover:ring-[#3d5f6d]/25"},orange:{bar:"from-hba-orange-1 via-hba-orange-2 to-hba-orange-1",iconBg:"bg-hba-orange-1/15",iconColor:"text-hba-orange-1",bullet:"bg-hba-orange-1",cardBg:"from-white to-[#fdf6f0]/95",ringHover:"hover:ring-hba-orange-1/25"},violet:{bar:"from-[#4a5568] via-[#5c6578] to-[#4a5568]",iconBg:"bg-[#4a5568]/14",iconColor:"text-[#4a5568]",bullet:"bg-[#5c6578]",cardBg:"from-white to-[#f0f1f5]/95",ringHover:"hover:ring-[#5c6578]/30"}},Ome=[{id:"part-a",title:"Part A (Hospital Insurance)",intro:"Medicare Part A helps cover your:",icon:lS,accent:"blue",bullets:["Inpatient care in hospitals","Skilled nursing facility care","Hospice care","Home health care"]},{id:"part-b",title:"Part B (Doctor Insurance)",intro:"Medicare Part B helps cover your:",icon:mi,accent:"teal",bullets:["Services from doctors","Outpatient care","Preventative services","Medical equipment"]},{id:"part-c",title:"Part C (Medicare Advantage)",intro:"All in one alternative to Original Medicare:",icon:jy,accent:"orange",bullets:["Combines Parts A, B and D (not always)","Obtained from a private insurance carrier","Local network of doctors","Can offer additional benefits such as dental, vision, and hearing"]},{id:"part-d",title:"Part D (Prescription Drug Coverage)",intro:"Medicare Part D helps cover your:",icon:dc,accent:"violet",bullets:["Costs of prescription drugs","Also obtained from a private insurance carrier",{type:"link",label:"Part D Plan Search",href:Ame,external:!0},"You may have a penalty if you do not enroll when you are initially eligible"]}];function Pme({bullet:t}){return typeof t=="string"?s.jsx("span",{children:t}):s.jsx("a",{href:t.href,className:"font-semibold text-hba-orange-1 underline decoration-hba-orange-1/40 underline-offset-2 transition hover:text-hba-orange-2 hover:decoration-hba-orange-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-blue-1",...t.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:t.label})}function Mme({sectionId:t="medicare-parts",title:e="Medicare Has Four Main Parts:",subtitle:r,parts:n=Ome,sectionTitleId:a="medicare-four-parts-title",className:i}){return s.jsxs("section",{id:t,className:Fe("relative overflow-hidden border-b border-hba-blue-1/8 py-20 md:py-28","scroll-mt-24 bg-gradient-to-b from-[#f0f3f7] via-[#f5f7fa] to-[#eef1f5] lg:scroll-mt-32",i),"aria-labelledby":a,children:[s.jsx("div",{className:"pointer-events-none absolute right-0 top-0 h-96 w-96 translate-x-1/3 rounded-full bg-hba-blue-1/[0.04] blur-3xl","aria-hidden":!0}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4",children:[s.jsx(vi,{title:e,subt
849itle:r,titleId:a,titleClassName:"text-[1.65rem] md:text-4xl lg:text-[2.35rem] lg:leading-tight",subtitleClassName:"max-w-2xl text-hba-blue-2"}),s.jsx("div",{className:"mt-14 grid grid-cols-1 gap-7 md:mt-16 md:grid-cols-2 md:gap-8",children:n.map(o=>{const l=o.icon,c=Eme[o.accent];return s.jsxs("article",{className:Fe("group relative flex h-full flex-col overflow-hidden rounded-2xl border border-hba-blue-1/10 bg-gradient-to-br p-7 shadow-[0_6px_28px_-12px_rgba(42,60,70,0.14)] ring-1 ring-hba-blue-1/5 transition duration-300 md:p-8","hover:-translate-y-0.5 hover:shadow-[0_18px_44px_-16px_rgba(42,60,70,0.2)]",c.cardBg,c.ringHover),"aria-labelledby":`${o.id}-heading`,children:[s.jsx("div",{className:Fe("absolute inset-x-0 top-0 h-1.5 bg-gradient-to-r opacity-95",c.bar),"aria-hidden":!0}),s.jsxs("div",{className:"flex items-start gap-5 pt-1",children:[s.jsx("div",{className:Fe("flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl transition group-hover:scale-[1.03]",c.iconBg,c.iconColor),"aria-hidden":!0,children:s.jsx(l,{className:"h-7 w-7"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("h3",{id:`${o.id}-heading`,className:"text-lg font-black leading-snug text-hba-blue-1 md:text-xl",children:o.title}),s.jsx("p",{className:"mt-2 text-sm font-semibold text-hba-blue-2 md:text-base",children:o.intro})]})]}),s.jsx("ul",{className:"mt-6 space-y-2.5 border-t border-hba-blue-1/10 pt-6 text-sm leading-snug text-hba-blue-1 md:text-[0.9375rem]",children:o.bullets.map((u,d)=>s.jsxs("li",{className:"flex gap-3",children:[s.jsx("span",{className:Fe("mt-2 h-1.5 w-1.5 shrink-0 rounded-full",c.bullet),"aria-hidden":!0}),s.jsx(Pme,{bullet:u})]},d))})]},o.id)})})]})]})}const Tme=[{id:"supplement",title:"Supplement Plans (Medigap)",description:"Medicare Supplement plans work alongside Original Medicare to reduce out-of-pocket costs and give you maximum flexibility.",icon:is,tone:"supplement",bullets:["Allows you to see any doctor nationwide that accepts Medicare","Helps cover out-of-pocket costs not paid by Original Medicare","Typically higher monthly premium, but lower out-of-pocket costs","No network restrictions","No referrals required","Does NOT include prescription drug coverage (Part D needed separately)"]},{id:"advantage",title:"Medicare Advantage Plans (Part C)",description:"Medicare Advantage plans are an all-in-one alternative to Original Medicare, often with lower premiums and added benefits.",icon:Toe,tone:"advantage",bullets:["Lower monthly premiums (sometimes $0)","Includes additional benefits like dental, vision, and hearing","Uses provider networks (HMO/PPO)","Includes prescription drug coverage in many plans","Has a yearly maximum out-of-pocket limit","May require referrals depending on plan type"]}],Rme={supplement:{wrap:"border-hba-blue-1/12 bg-gradient-to-br from-white to-[#e9f1f8] ring-1 ring-hba-blue-1/10 shadow-[0_8px_32px_-16px_rgba(42,60,70,0.12)]",iconWrap:"bg-hba-blue-1/12 text-hba-blue-1",bullet:"bg-hba-blue-1"},advantage:{wrap:"border-hba-orange-1/15 bg-gradient-to-br from-white to-[#fdf5ed] ring-1 ring-hba-orange-1/12 shadow-[0_8px_32px_-16px_rgba(236,129,76,0.12)]",iconWrap:"bg-hba-orange-1/15 text-hba-orange-1",bullet:"bg-hba-orange-1"}};function Ime({sectionId:t="medicare-plan-paths",title:e="Two Main Medicare Plan Paths",subheading:r="Once you have Parts A and B, you typically choose between a Medicare Supplement plan or a Medicare Advantage plan.",intro:n="Both options have pros and cons depending on your needs, budget, and preferences. Understanding the differences is key to choosing the right coverage.",cards:a=Tme,sectionTitleId:i="medicare-plan-paths-title",ctaText:o="Not sure which option is right for you? We'll help you compare both side by side.",ctaButtonLabel:l="Talk to an Expert",ctaTo:c="/reno-health-insurance-broker/",phoneHref:u="tel:7758281216",phoneDis
849play:d="(775) 828-1216",className:h}){return s.jsxs("section",{id:t,className:Fe("relative border-b border-hba-blue-1/10 py-20 md:py-28","bg-white","scroll-mt-24 lg:scroll-mt-32",h),"aria-labelledby":i,children:[s.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-hba-blue-1/15 to-transparent","aria-hidden":!0}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4",children:[s.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[s.jsx(vi,{title:e,subtitle:r,titleId:i,align:"center",className:"mx-auto max-w-3xl",titleClassName:"text-[1.65rem] md:text-4xl lg:text-[2.35rem]",subtitleClassName:"text-hba-blue-2"}),s.jsx("p",{className:"mx-auto mt-6 max-w-2xl text-base leading-relaxed text-hba-blue-2 md:text-lg",children:n}),s.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-sm leading-relaxed text-hba-grey-1",children:"As an independent insurance brokerage, Health Benefits Associates helps you review options and choose coverage with clear guidance."})]}),s.jsx("div",{className:"mt-14 grid gap-8 md:mt-16 md:grid-cols-2 md:gap-10",children:a.map(m=>{const g=m.icon,b=Rme[m.tone];return s.jsxs("article",{className:Fe("flex flex-col rounded-3xl border p-8 md:p-10",b.wrap),children:[s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("span",{className:Fe("flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl",b.iconWrap),"aria-hidden":!0,children:s.jsx(g,{className:"h-7 w-7"})}),s.jsx("div",{className:"min-w-0",children:s.jsx("h3",{className:"text-xl font-black leading-snug text-hba-blue-1 md:text-2xl",children:m.title})})]}),s.jsx("p",{className:"mt-5 text-sm font-medium leading-relaxed text-hba-blue-2 md:text-base",children:m.description}),s.jsx("ul",{className:"mt-6 space-y-3 border-t border-hba-blue-1/10 pt-6",children:m.bullets.map(y=>s.jsxs("li",{className:"flex gap-3 text-sm leading-relaxed text-hba-blue-1 md:text-[0.9375rem]",children:[s.jsx("span",{className:Fe("mt-2 h-1.5 w-1.5 shrink-0 rounded-full",b.bullet),"aria-hidden":!0}),s.jsx("span",{children:y})]},y))})]},m.id)})}),s.jsxs("div",{className:"mx-auto mt-14 max-w-2xl rounded-2xl border border-hba-blue-1/10 bg-hba-grey-2/40 px-6 py-8 text-center md:mt-16 md:px-10",children:[s.jsx("p",{className:"text-base font-semibold leading-relaxed text-hba-blue-1 md:text-lg",children:o}),s.jsxs("div",{className:"mt-6 flex flex-col items-center justify-center gap-4 sm:flex-row sm:flex-wrap",children:[s.jsx(ue,{to:c,className:"inline-flex min-h-[48px] min-w-[200px] items-center justify-center rounded-2xl bg-hba-orange-1 px-8 py-3.5 text-sm font-black uppercase tracking-[0.12em] text-white shadow-lg shadow-hba-orange-1/25 transition hover:bg-hba-orange-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-blue-1",children:l}),s.jsxs("a",{href:u,className:"inline-flex min-h-[48px] items-center gap-3 rounded-2xl border border-hba-blue-1/12 bg-white px-5 py-3 text-left shadow-sm transition hover:-translate-y-0.5 hover:border-hba-orange-1/25 hover:text-hba-orange-1 hover:shadow-md",children:[s.jsx("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-hba-blue-1/6 text-hba-orange-1",children:s.jsx(Ut,{className:"h-4 w-4"})}),s.jsxs("span",{className:"flex items-center gap-2.5 whitespace-nowrap",children:[s.jsx("span",{className:"text-[10px] font-black uppercase tracking-[0.18em] text-hba-grey-1",children:"Call Us"}),s.jsx("span",{className:"text-base font-black tracking-tight text-hba-blue-1",children:d})]})]})]})]})]})]})}const Dme=[{number:1,title:"Tell us about your doctors, prescriptions, and needs",description:"We start with what matters to you - so recommendations fit your needs."},{number:2,title:"We compare Medicare options side by side",description:"Clear, apples-to-apples comparisons across plans and carriers you can choose from."},{number:3,title:"You choose a plan with confidence",description:"Enroll with clarity, and know we are here when questions come up later."}];function Lme({title:t="We Make Medicare Easier to Understand",subtitle:e,steps:r=Dme,sectionTitleId:n="medicare-steps-title",className:a}){return s.jsxs("section",{className:Fe("relative border-b border-hba-blue-1/8 bg-white py-20 md:py-28",a),"aria-labelledby":n,children:[s.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-hba-orange-1/30 to-transparent","aria-hidden":!0}),s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(vi,{title:t,subtitle:e,titleId:n,align:"center",className:"mx-auto max-w-3xl text-center",titleClassName:"text-[1.65rem] md:text-4xl lg:text-[2.35rem]",subtitleClassName:"text-hba-blue-2"}),s.jsxs("div",{className:"relative mt-16 hidden md:mt-20 md:block",children:[s.jsx("div",{className:"absolute left-[12%] right-[12%] top-10 z-0 h-px bg-gradient-to-r from-hba-blue-1/10 via-hba-orange-1/35 to-hba-blue-1/10","aria-hidden":!0}),s.jsx("ol",{className:"relative z-10 grid grid-cols-3 gap-6 lg:gap-10",children:r.map(i=>s.jsxs("li",{className:"flex flex-col items-center text-center",children:[s.jsx("span",{className:"flex h-20 w-20 items-center justify-center rounded-full border-4 border-white bg-gradient-to-br from-hba-blue-1 to-[#1a2630] text-2xl font-black text-white shadow-[0_12px_32px_-8px_rgba(42,60,70,0.45)] ring-4 ring-hba-blue-1/10",children:i.number}),s.jsx("h3",{className:"mt-10 max-w-[20rem] text-lg font-black leading-snug text-hba-blue-1 lg:text-xl",children:i.title}),s.jsx("p",{className:"mt-3 max-w-sm text-sm leading-relaxed text-hba-grey-1 lg:text-base",children:i.description})]},i.number))})]}),s.jsx("ol",{className:"relative mt-14 space-y-0 md:hidden",children:r.map((i,o)=>s.jsxs("li",{className:"relative flex gap-5 pb-12 last:pb-0",children:[o<r.length-1?s.jsx("div",{className:"absolute left-[1.35rem] top-12 bottom-0 w-0.5 bg-gradient-to-b from-hba-blue-1/30 via-hba-orange-1/25 to-hba-blue-1/15","aria-hidden":!0}
849):null,s.jsx("div",{className:"relative z-10 flex shrink-0 flex-col items-center",children:s.jsx("span",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-gradient-to-br from-hba-blue-1 to-[#1a2630] text-sm font-black text-white shadow-md ring-4 ring-white",children:i.number})}),s.jsxs("div",{className:"min-w-0 pt-0.5",children:[s.jsx("h3",{className:"text-base font-black leading-snug text-hba-blue-1",children:i.title}),s.jsx("p",{className:"mt-2 text-sm leading-relaxed text-hba-grey-1",children:i.description})]})]},i.number))})]})]})}const Bme={blue:{card:"bg-gradient-to-br from-white to-[#e9f0f6] ring-hba-blue-1/10 hover:ring-hba-blue-1/20",iconWrap:"bg-hba-blue-1 text-white shadow-inner shadow-black/10"},warm:{card:"bg-gradient-to-br from-white to-[#faf4ee] ring-hba-orange-1/15 hover:ring-hba-orange-1/30",iconWrap:"bg-hba-orange-1 text-white shadow-inner shadow-black/10"},slate:{card:"bg-gradient-to-br from-white to-[#eef0f3] ring-hba-blue-2/15 hover:ring-hba-blue-2/25",iconWrap:"bg-[#3d5260] text-white shadow-inner shadow-black/10"}};function Hme({sectionTitle:t="Medicare help built around you",sectionSubtitle:e="Medicare can feel overwhelming, but comparing plans is easier with guidance. We help you find coverage that fits your doctors, prescriptions, and budget.",eyebrow:r="How we help",items:n,sectionTitleId:a="medicare-value-title",className:i}){return s.jsxs("section",{className:Fe("relative overflow-hidden py-20 md:py-28","bg-gradient-to-b from-[#e6eef5]/90 via-[#eef4f9] to-[#e8edf2]",i),"aria-labelledby":a,children:[s.jsx("div",{className:"pointer-events-none absolute -right-40 top-20 h-80 w-80 rounded-full bg-hba-orange-1/10 blur-3xl","aria-hidden":!0}),s.jsx("div",{className:"pointer-events-none absolute -left-20 bottom-0 h-64 w-64 rounded-full bg-hba-blue-1/5 blur-3xl","aria-hidden":!0}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4",children:[s.jsx(vi,{eyebrow:r,title:t,subtitle:e,titleId:a,align:"center",className:"mx-auto max-w-3xl text-center",titleClassName:"text-[1.65rem] md:text-4xl lg:text-[2.35rem]",subtitleClassName:"text-hba-blue-2"}),s.jsx("ul",{className:"mt-14 grid gap-8 md:grid-cols-3 md:gap-10",children:n.map(o=>{const l=o.icon,c=Bme[o.tone];return s.jsx("li",{children:s.jsxs("article",{className:Fe("flex h-full flex-col rounded-2xl border border-white/80 p-8 shadow-[0_8px_30px_-12px_rgba(42,60,70,0.12)] ring-1 transition duration-300 hover:-translate-y-0.5 hover:shadow-[0_20px_50px_-20px_rgba(42,60,70,0.18)] md:p-10",c.card),children:[s.jsx("div",{className:Fe("flex h-16 w-16 items-center justify-center rounded-2xl",c.iconWrap),children:s.jsx(l,{className:"h-8 w-8","aria-hidden":!0})}),s.jsx("h3",{className:"mt-8 text-xl font-black tracking-tight text-hba-blue-1 md:text-2xl",children:o.title}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-hba-blue-2",children:o.description})]})},o.title)})})]})]})}function Fme({title:t="Medicare Resources and Plan Options",subtitle:e="Explore topics and carriers â your hub for Medicare information.",links:r,titleId:n="medicare-resources-title",className:a}){return s.jsxs("section",{className:Fe("relative border-t border-hba-blue-1/10 py-20 md:py-28","bg-gradient-to-b from-[#faf8f5] via-[#f7f5f2] to-[#f2f0ec]",a),"aria-labelledby":n,children:[s.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-32 bg-gradient-to-b from-hba-orange-1/[0.06] to-transparent","aria-hidden":!0}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4",children:[s.jsx(vi,{title:t,subtitle:e,titleId:n,titleClassName:"text-[1.65rem] md:text-4xl lg:text-[2.35rem]",subtitleClassName:"max-w-2xl text-hba-blue-2"}),s.jsx("ul",{className:"mt-14 grid gap-5 sm:grid-cols-2 xl:grid-cols-3",children:r.map(i=>{const o=i.icon;return s.jsx("li",{children:s.jsxs(ue,{to:i.href,className:"group flex h-full min-h-[148px] flex-col rounded-2xl border border-hba-blue-1/10 bg-white/95 p-6 shadow-[0_6px_28px_-12px_rgba(42,60,70,0.14)] ring-1 ring-hba-blue-1/5 transition duration-300 hover:-translate-y-1 hover:border-hba-orange-1/30 hover:bg-white hover:shadow-[0_20px_48px_-18px_rgba(42,60,70,0.22)] hover:ring-hba-orange-1/15 focu
849s-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-orange-1 md:p-7",children:[s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[s.jsx("span",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1 transition group-hover:bg-hba-orange-1/15 group-hover:text-hba-orange-1",children:s.jsx(o,{className:"h-6 w-6","aria-hidden":!0})}),s.jsx(tU,{className:"h-5 w-5 shrink-0 text-hba-grey-1 transition group-hover:translate-x-0.5 group-hover:-translate-y-0.5 group-hover:text-hba-blue-1"})]}),s.jsx("span",{className:"mt-5 text-lg font-black leading-tight text-hba-blue-1 transition group-hover:text-hba-orange-1",children:i.label}),i.description?s.jsx("span",{className:"mt-2 line-clamp-2 text-sm leading-relaxed text-hba-grey-1",children:i.description}):s.jsx("span",{className:"mt-2 text-sm font-medium text-hba-blue-2/80",children:"View details"})]})},i.href+i.label)})})]})]})}const zme=[{title:"Local Nevada support",icon:Zoe},{title:"No-fee Medicare guidance",icon:F0},{title:"Help comparing plans year-round",icon:nU}];function Vme({items:t=zme,className:e}){return s.jsxs("section",{className:Fe("relative overflow-hidden border-y border-white/10 py-12 md:py-14","bg-gradient-to-r from-[#1a2830] via-hba-blue-1 to-[#243a45]",e),"aria-label":"Why choose Health Benefits Associates",children:[s.jsxs("div",{className:"pointer-events-none absolute inset-0 opacity-40","aria-hidden":!0,children:[s.jsx("div",{className:"absolute left-1/4 top-0 h-40 w-40 rounded-full bg-hba-orange-1/20 blur-3xl"}),s.jsx("div",{className:"absolute right-1/4 bottom-0 h-32 w-32 rounded-full bg-white/10 blur-2xl"})]}),s.jsx("div",{className:"relative mx-auto max-w-7xl px-4",children:s.jsx("ul",{className:"grid gap-8 text-center md:grid-cols-3 md:gap-6 md:text-left",children:t.map(r=>{const n=r.icon;return s.jsxs("li",{className:"flex flex-col items-center gap-4 md:flex-row md:items-center md:gap-5",children:[s.jsx("span",{className:"flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl bg-white/10 text-hba-orange-1 ring-1 ring-white/15 backdrop-blur-sm",children:s.jsx(n,{className:"h-7 w-7","aria-hidden":!0})}),s.jsx("p",{className:"text-base font-black uppercase tracking-wide text-white md:text-lg",children:r.title})]},r.title)})})})]})}function Ume({eyebrow:t="Take the next step",headline:e="Get Help Choosing the Right Medicare Plan",supp
849orting:r="We'll help you compare your Medicare choices and find coverage that fits your needs.",quotePath:n="/medicare-quote-request/",phoneHref:a="tel:7758281216",headingId:i="medicare-final-cta-heading",className:o}){return s.jsxs("section",{className:Fe("relative overflow-hidden py-24 text-white md:py-32","bg-gradient-to-br from-[#141c22] via-[#1a2830] to-hba-blue-1",o),"aria-labelledby":i,children:[s.jsxs("div",{className:"pointer-events-none absolute inset-0","aria-hidden":!0,children:[s.jsx("div",{className:"absolute -left-20 top-1/2 h-[32rem] w-[32rem] -translate-y-1/2 rounded-full bg-hba-orange-1/15 blur-3xl"}),s.jsx("div",{className:"absolute -right-10 bottom-0 h-72 w-72 rounded-full bg-hba-blue-2/30 blur-3xl"}),s.jsx("div",{className:"absolute inset-0 opacity-[0.12]",style:{backgroundImage:"linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%)"}})]}),s.jsxs("div",{className:"relative mx-auto max-w-4xl px-4 text-center",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.25em] text-hba-orange-1",children:t}),s.jsx("h2",{id:i,className:"mt-5 text-3xl font-black tracking-tight text-white md:text-4xl lg:text-[2.75rem] lg:leading-tight",children:e}),s.jsx("p",{className:"mx-auto mt-6 max-w-2xl text-lg leading-relaxed text-white/85 md:text-xl",children:r}),s.jsxs("div",{className:"mt-12 flex flex-col items-stretch justify-center gap-4 sm:flex-row sm:flex-wrap sm:items-center sm:justify-center",children:[s.jsx(ue,{to:n,className:"inline-flex min-h-[56px] min-w-[220px] items-center justify-center rounded-2xl bg-hba-orange-1 px-10 py-4 text-sm font-black uppercase tracking-[0.14em] text-white shadow-[0_12px_40px_-6px_rgba(236,129,76,0.5)] transition hover:bg-hba-orange-2 hover:shadow-[0_16px_48px_-6px_rgba(236,129,76,0.45)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:"Get a Quote"}),s.jsxs("a",{href:a,className:"inline-flex min-h-[56px] min-w-[220px] items-center justify-center gap-3 rounded-2xl border-2 border-white/25 bg-white/5 px-10 py-4 text-sm font-black uppercase tracking-[0.14em] text-white backdrop-blur-sm transition hover:border-white/45 hover:bg-white/10 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:[s.jsx(Ut,{className:"h-5 w-5 text-hba-orange-1","aria-hidden":!0}),"Call Now"]})]})]})]})}const qme={reno:"Reno, NV","carson-city-minden":"Carson City / Minden, NV",sparks:"Sparks, NV",fernley:"Fernley, NV",henderson:"Las Vegas, NV",truckee:"Truckee, CA"};function Wme(t,e){return qme[t]??e??t}function Gme(t){return{id:t.id,quote:t.review_text??"Great service and clear guidance.",name:t.reviewer_name??"Anonymous",location:Wme(t.office_code,t.office_city),rating:Math.max(1,Math.min(5,t.rating||5)),source:"Google review"}}function Kme(t){const e=[...t];for(let r=e.length-1;r>0;r--){const n=Math.floor(Math.random()*(r+1));[e[r],e[n]]=[e[n],e[r]]}return e}const Yme=[{label:"Prominence Medicare",href:"/prominence-medicare-advantage/",description:"Plans and networks through Prominence.",icon:el},{label:"Kaiser Medicare",href:"/kaiser/",description:"Kaiser Permanente Value Plan, which covers the Renown network.",icon:mi},{label:"Aetna Medicare",href:"/aetna-medicare-advantage/",description:"Aetna Medicare options in Nevada.",icon:Ki},{label:"Annual Enrollment Period",href:"/nevada-medicare-advantage-enrollment-period/",description:"Key dates and what you can change each fall.",icon:df},{label:"Medicare Prescriptions",href:"/medicare-prescription-drug-plans/",description:"Drug coverage and how Part D fits your needs.",icon:dc},{label:"Part D Annual Enrollment",href:"/nevada-part-d-annual-enrollment/",description:"Drug plan reviews and enrollment support.",icon:Gi}],Xme=()=>{const[t,e]=w.useState([]),[r,n]=w.useState(!0);return w.useEffect(()=>{let a=!1;return fetch(ut("/api/reviews/recent?limit=60")).then(i=>i.ok?i.json():[]).then(i=>{if(a)return;const o=Array.isArray(i)?i:[];e(Kme(o.filter(l=>!!(l!=null&&l.id&&(l!=null&&l.review_text)))).map(Gme))}).catch(()=>{a||e([])}).finally(()=>{a||n(!1)}),()=>{a=!0}},[]),s.jsxs("div",{className:"flex flex-col bg-[#f5f6f8]",children:[s.jsx(_me,{}),s.jsx(Mme,{}),s.jsx(Ime,{}),s.jsx(Lme,{}),s.jsx(Cme,{title:"Here's What People Are Saying About Us",subtitle:"Real feedback from Nevadans who have worked with Health Benefits Associates.",testimonials:t,loading:r,layout:"slider"}),s.jsx(Hme,{items:[{title:"Compare Options",description:"We walk through Medicare Advantage, supplements, and Part D side by side so you can see what matters most for your care.",icon:toe,tone:"blue"}
849,{title:"Local Guidance",description:"Nevada-focused support from people who understand local networks, carriers, and how plans work in our communities.",icon:tr,tone:"warm"},{title:"Ongoing Support",description:"Questions during enrollment or mid-year? We're here to help you stay on track and adjust when life changes.",icon:F0,tone:"slate"}]}),s.jsx(Vme,{}),s.jsx(Fme,{links:Yme}),s.jsx(Ume,{})]})},Jme=1600;function Qme({src:t,title:e,minHeight:r=Jme}){return s.jsx("div",{className:"flex w-full justify-center px-4 py-8",children:s.jsx("div",{className:"w-full max-w-5xl overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm",children:s.jsx("iframe",{title:e,src:t,className:"block w-full border-0",style:{minHeight:r},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})})}const Zme={medicare:"https://forms.zohopublic.com/healthbenefitsassociates/form/MedicareRequestForm/formperma/gaUfmERxYQ25X5oGf9T41xG7oQBrc316lKnTeHexLfU?zf_rszfm=1",group:"https://forms.zohopublic.com/healthbenefitsassociates/form/GroupQuoteRequestForm/formperma/ANss7oOgs9uaSHj5lLpq-tw7y-zAa8Wvjp9mvSOG6Hg?zf_rszfm=1"},e0e="Email";function t0e(t,e,r=e0e){const n=e==null?void 0:e.trim();if(!n)return t;const a=t.includes("?")?"&":"?";return`${t}${a}${r}=${encodeURIComponent(n)}`}const r0e={medicare:"Medicare Quote Request",group:"Group Quote Request Form"},n0e=1500;function wW({quoteType:t,isOtpVerified:e,email:r}){if(e===!1)return s.jsx("div",{className:"flex w-full justify-center px-4 py-8",children:s.jsxs("div",{className:"w-full max-w-lg rounded-xl border border-slate-200 bg-white p-8 text-center shadow-sm",children:[s.jsx("h2",{className:"text-xl font-semibold tracking-tight text-slate-900",children:"Verify your email to continue"}),s.jsx("p",{className:"mt-4 text-pretty text-sm leading-relaxed text-slate-600",children:"Once verification is complete, your quote request form will appear here."})]})});const n=Zme[t],a=t0e(n,r);return s.jsx(Qme,{src:a,title:r0e[t],minHeight:t==="group"?n0e:void 0})}const a0e=()=>s.jsxs("div",{className:"flex flex-col bg-[#f5f6f8]",children:[s.jsx("section",{className:"bg-white px-4 pb-10 pt-12 text-center md:pb-10 md:pt-14",children:s.jsxs("div",{className:"mx-auto max-w-5xl",children:[s.jsx("h1",{className:"text-4xl font-black tracking-[0.04em] text-[#293942] md:text-5xl",children:"Medicare Quote Request"}),s.jsx("div",{className:"mx-auto mt-8 h-1 w-[300px] bg-gradient-to-r from-hba-orange-1 via-[#7f5f62] to-hba-blue-1","aria-hidden":!0}),s.jsx("p",{className:"mx-auto mt-16 max-w-3xl text-base leading-relaxed text-[#24313a]",children:"Get started by filling out the form below for assistance with your Medicare coverage. Your personal information is never shared with anyone outside our office and is securely encrypted."}),s.jsxs("p",{className:"mx-auto mt-4 max-w-3xl text-base leading-relaxed text-[#24313a]",children:["Insurance companies prohibit us from listing all plans online. To view all plans we represent, please"," ",s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"font-medium text-[#f05a1a] transition hover:text-hba-orange-2 hover:underline",children:"contact Health Benefits Associates"})," ","directly."]})]})}),s.jsx(wW,{quoteType:"medicare",isOtpVerified:!0})]}),s0e="https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/pdfs/2026/07/group-quote-request-form-1782946776952.pdf",i0e=()=>s.jsxs("div",{className:"flex flex-col bg-slate-100",children:[s.jsx("section",{className:"bg-white px-4 pb-5 pt-5 text-center md:pb-5 md:pt-6",children:s.jsxs("div",{className:"mx-auto max-w-5xl",children:[s.jsx("h1",{className:"text-4xl font-black tracking-[0.04em] text-[#293942] md:text-5xl",children:"Business Quote Request"}),s.jsx("div",{className:"mx-auto mt-8 h-1 w-[300px] bg-gradient-to-r from-hba-orange-1 via-[#7f5f62] to-hba-blue-1","aria-hidden":!0}),s.jsx("p",{className:"mx-auto mt-16 max-w-4xl text-base leading-relaxed text-[#24313a] md:text-lg",children:"Keep your employees covered with a small business health insurance or association health plan. Get started by filling out the form below to get a group health insurance quote. Your business and personal information is never shared with anyone outside our office."}),s.jsx("p",{className:"mx-auto mt-10 max-w-4xl text-base leading-relaxed text-[#24313a] md:text-lg",children:"You can also complete this group census form and attach it at the bottom of the web form so we can start working on quotes immediately. The census form will collect employee names, dates of birth, and zip codes."}),s.jsx("a",{href:s0e,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex text-base font-medium text-[#f05a1a] transition hover:text-hba-orange-2 hover:underline",children:"Download Census Form"})]})}),s.jsx(wW,{quoteType:"group"})]});function XS({items:t,referenceCode:e="Y0109_WEBHB24",lastUpdated:r="Last Updated 10/01/2025",showMetadataFooter:n=!0,className:a}){return s.jsx("section",{className:Fe("border-b border-hba-blue-1/20 py-14 md:py-16","bg-gradient-to-br from-[#2a3c46] via-hba-blue-1 to-[#1e2d35] text-hba-grey-2",a),"aria-labelledby":"
849compliance-disclosure-heading",children:s.jsxs("div",{className:"mx-auto max-w-4xl px-4",children:[s.jsx("h2",{id:"compliance-disclosure-heading",className:"text-xs font-black uppercase tracking-[0.2em] text-hba-orange-1",children:"Important information"}),s.jsx("ul",{className:"mt-6 space-y-4 text-sm leading-relaxed text-white/85",children:t.map(i=>s.jsx("li",{className:"border-l-2 border-hba-orange-1/60 pl-4 text-white/90",children:i},i))}),n?s.jsxs("div",{className:"mt-8 flex flex-col gap-2 border-t border-white/10 pt-6 text-xs text-white/65 md:flex-row md:items-center md:justify-between",children:[s.jsx("span",{className:"font-mono text-hba-orange-1/90",children:e}),s.jsx("span",{children:r})]}):null]})})}function NW({title:t,subtitle:e,items:r,footnote:n,silverFitHref:a,silverFitLabel:i="Silver&Fit program (participating gyms)",gymRowTitle:o="Gyms participating in the Silver&Fit program",sectionTitleId:l="covered-facilities-title",className:c}){return s.jsxs("section",{className:Fe("relative overflow-hidden border-b border-hba-blue-1/12 py-20 md:py-28","bg-gradient-to-b from-[#faf7f2] via-white to-[#e9f0f7]",c),"aria-labelledby":l,children:[s.jsx("div",{className:"pointer-events-none absolute left-0 top-0 h-64 w-64 rounded-full bg-hba-orange-1/10 blur-3xl","aria-hidden":!0}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4",children:[s.jsx(vi,{title:t,subtitle:e,titleId:l,titleClassName:"text-[1.65rem] md:text-4xl lg:text-[2.35rem]",subtitleClassName:"text-hba-blue-2"}),s.jsx("p",{className:"mt-4 max-w-3xl text-sm text-hba-grey-1",children:"Network information helps you review where plans may offer access. Lists change; confirm doctors and facilities with the carrier before enrolling."}),s.jsxs("ul",{className:"mt-12 grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[r.map(u=>s.jsxs("li",{className:"flex items-start gap-3 rounded-2xl border border-hba-blue-1/15 bg-gradient-to-br from-white to-hba-blue-1/[0.05] px-4 py-3.5 shadow-md shadow-hba-blue-1/8 ring-1 ring-white/50 transition hover:border-hba-orange-1/25",children:[s.jsx(tr,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{className:"text-sm font-semibold text-hba-blue-1",children:u})]},u)),s.jsxs("li",{className:"flex flex-col gap-2 rounded-2xl border border-hba-orange-1/20 bg-gradient-to-br from-white to-hba-orange-1/[0.06] px-4 py-3.5 shadow-md ring-1 ring-white/50 sm:col-span-2 lg:col-span-1",children:[s.jsxs("span",{className:"flex items-start gap-3",children:[s.jsx(tr,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{className:"text-sm font-semibold text-hba-blue-1",children:o})]}),s.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"ml-7 text-sm font-bold text-hba-orange-1 underline-offset-2 hover:underline",children:i})]})]}),s.jsx("p",{className:"mx-auto mt-10 max-w-3xl rounded-2xl border border-hba-blue-1/15 bg-hba-blue-1/[0.06] px-6 py-5 text-center text-sm leading-relaxed text-hba-blue-1",children:n})]})]})}function JS({title:t,intro:e,items:r,brokerNote:n,sectionTitleId:a="eligibility-title",className:i}){return s.jsxs("section",{className:Fe("relative border-b border-hba-blue-1/12 py-20 md:py-28","bg-gradient-to-b from-[#e2eaf3] via-[#f0f5fa] to-white",i),"aria-labelledby":a,children:[s.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-hba-blue-1/20 to-transparent","aria-hidden":!0}),s.jsxs("div",{className:"relative mx-auto max-w-3xl px-4",children:[s.jsx(vi,{title:t,titleId:a,titleClassName:"text-[1.65rem] md:text-4xl"}),s.jsx("p",{className:"mt-4 text-lg leading-relaxed text-hba-blue-2",children:e}),s.jsx("ol",{className:"mt-10 space-y-5",children:r.map((o,l)=>s.jsxs("li",{className:"flex gap-4",children:[s.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-hba-orange-1 to-hba-orange-2 text-sm font-black text-white shadow-md shadow-hba-orange-1/30","aria-hidden":!0,children:l+1}),s.jsx("p",{className:"pt-1 text-base leading-relaxed text-hba-blue-1",children:o})]},o))}),s.jsx("div",{className:"mt-12 rounded-2xl border border-hba-blue-1/20 bg-gradient-to-br from-white to-hba-blue-1/[0.08] p-8 shadow-lg shadow-hba-blue-1/10 md:p-10",children:s.jsx("p",{className:"text-base leading-relaxed text-hba-blue-2 md:text-lg",children:n})})]})]})}function QS({title:t,titleId:e="carrier-hero-title",children:r,primaryCtaLabel:n,primaryCtaHref:a,primaryExternal:i=!0,secondaryCtaLabel:o="Talk to a Broker",secondaryCtaTo:l="/reno-health-insurance-broker/",eyebrow:c,brandLogo:u,className:d}){const h="inline-flex min-h-[52px] min-w-[220px] items-center justify-center gap-2 rounded-2xl bg-hba-orange-1 px-8 py-3.5 text-center text-sm font-black uppercase tracking-[0.12em] text-white shadow-lg shadow-hba-orange-1/30 transition hover:bg-hba-orange-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-blue-1";return s.jsxs("section",{className:Fe("relative overflow-hidden border-b border-hba-blue-1/10",d),"aria-labelledby":e,children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#c9d8e8] via-[#eef2f7] to-[#ebe4dc]","aria-hidden":!0}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-hba-blue-1/[0.15] via-trans
849parent to-hba-orange-1/[0.12]","aria-hidden":!0}),s.jsx("div",{className:"pointer-events-none absolute -left-32 top-0 h-[22rem] w-[22rem] rounded-full bg-hba-blue-1/20 blur-3xl","aria-hidden":!0}),s.jsx("div",{className:"pointer-events-none absolute bottom-0 right-0 h-80 w-80 rounded-full bg-hba-orange-1/18 blur-3xl","aria-hidden":!0}),s.jsx("div",{className:"pointer-events-none absolute left-1/2 top-1/3 h-64 w-64 -translate-x-1/2 rounded-full bg-hba-blue-2/15 blur-3xl","aria-hidden":!0}),s.jsx("div",{className:"relative mx-auto max-w-7xl px-4 py-16 md:py-24 lg:py-28",children:s.jsxs("div",{className:Fe("grid gap-10 lg:items-center",u?"lg:grid-cols-[minmax(0,1fr)_minmax(260px,400px)]":""),children:[s.jsxs("div",{children:[c?s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.2em] text-hba-orange-1",children:c}):null,s.jsx("h1",{id:e,className:Fe("max-w-4xl text-4xl font-black tracking-tight text-hba-blue-1 md:text-5xl lg:text-[3rem] lg:leading-[1.1]",c?"mt-4":void 0),children:t}),s.jsx("div",{className:"mt-6 max-w-3xl text-lg leading-relaxed text-hba-blue-2 md:text-xl",children:r}),s.jsx("p",{className:"mt-4 max-w-2xl text-sm font-medium text-hba-grey-1",children:"Health Benefits Associates is an independent insurance brokerage. We help you compare plans and review benefits - we do not provide medical care or treatment."}),s.jsxs("div",{className:"mt-10 flex flex-col gap-4 sm:flex-row sm:flex-wrap sm:items-center",children:[i?s.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:h,children:[n,s.jsx(Lt,{className:"h-4 w-4 opacity-90","aria-hidden":!0})]}):s.jsx(ue,{to:a,className:h,children:n}),s.jsx(ue,{to:l,className:"inline-flex min-h-[52px] min-w-[220px] items-center justify-center rounded-2xl border-2 border-hba-blue-1/35 bg-white/85 px-8 py-3.5 text-center text-sm font-black uppercase tracking-[0.12em] text-hba-blue-1 shadow-md shadow-hba-blue-1/10 backdrop-blur-sm transition hover:border-hba-orange-1/40 hover:bg-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-orange-1",children:o})]})]}),u?s.jsx("div",{className:"flex justify-center lg:justify-end",children:s.jsx("div",{className:"w-full max-w-md rounded-2xl bg-white/95 p-6 shadow-xl shadow-hba-blue-1/15 ring-1 ring-hba-blue-1/10 lg:max-w-none",children:s.jsx("img",{src:u.src,alt:u.alt,width:930,height:267,className:"h-auto w-full max-w-full object-contain object-center",loading:"eager",decoding:"async"})})}):null]})})]})}function ZS({title:t,subtitle:e,items:r,sectionTitleId:n="plan-highlights-title",className:a}){return s.jsxs("section",{className:Fe("relative border-b border-hba-blue-1/12 py-20 md:py-28","bg-gradient-to-b from-hba-blue-1/[0.07] via-[#f2f6fa] to-[#e4edf5]",a),"aria-labelledby":n,children:[s.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-40 bg-gradient-to-b from-hba-orange-1/[0.07] to-transparent","aria-hidden":!0}),s.jsx("div",{className:"pointer-events-none absolute -right-20 bottom-0 h-72 w-72 rounded-full bg-hba-blue-2/10 blur-3xl","aria-hidden":!0}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4",children:[s.jsx(vi,{title:t,subtitle:e,titleId:n,align:"center",className:"mx-auto max-w-3xl text-center",titleClassName:"text-[1.65rem] md:text-4xl lg:text-[2.35rem]",subtitleClassName:"text-hba-blue-2"}),s.jsx("ul",{className:"mt-14 grid gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:r.map(({text:i,icon:o})=>s.jsx("li",{children:s.jsxs("div",{className:"group flex h-full min-h-[5.5rem] items-start gap-4 roun
849ded-2xl border border-hba-blue-1/15 bg-gradient-to-br from-white to-hba-blue-1/[0.06] p-5 shadow-md shadow-hba-blue-1/8 ring-1 ring-white/60 transition hover:-translate-y-0.5 hover:border-hba-orange-1/35 hover:shadow-lg hover:shadow-hba-orange-1/10",children:[s.jsx("span",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-hba-blue-1/15 text-hba-orange-1 transition group-hover:bg-hba-orange-1/20",children:s.jsx(o,{className:"h-5 w-5","aria-hidden":!0})}),s.jsx("p",{className:"pt-0.5 text-sm font-semibold leading-snug text-hba-blue-1 md:text-[0.9375rem]",children:i})]})},i))})]})]})}const o0e=[{text:"$0 Premium",icon:Sm},{text:"$0 Medical Deductible",icon:Sm},{text:"$0 Doctor Visits (Including Teladoc)",icon:mi},{text:"$0 Lab Tests",icon:sle},{text:"$200 per day Hospital Copay (max of 5 days)",icon:el},{text:"$0 X-Rays",icon:Fle},{text:"$50 Specialist Visits (No referral needed)",icon:eU},{text:"$2,000 Dental Benefit",icon:ls},{text:"$0 Gym Memberships with Silver&Fit",icon:rS},{text:"Hearing, vision, chiropractic, and many more extra benefits",icon:Ki},{text:"Comprehensive Prescription Drug Coverage",icon:dc},{text:"As well as many other covered services",icon:sU}];function eC({title:t="Helpful links",links:e,sectionTitleId:r="resource-links-title",className:n}){return s.jsxs("section",{className:Fe("relative py-16 md:py-20","bg-gradient-to-b from-[#f4f0ea] via-[#eef3f8] to-[#e6edf4]",n),"aria-labelledby":r,children:[s.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-32 bg-gradient-to-t from-hba-blue-1/[0.04] to-transparent","aria-hidden":!0}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4",children:[s.jsx(vi,{title:t,titleId:r,titleClassName:"text-xl md:text-2xl text-hba-blue-1"}),s.jsx("ul",{className:"mt-8 grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:e.map(a=>s.jsx("li",{children:a.external===!1?s.jsxs(ue,{to:a.href,className:"group flex h-full min-h-[4.5rem] items-center justify-between gap-3 rounded-2xl border border-hba-blue-1/18 bg-gradient-to-br from-white to-hba-blue-1/[0.06] px-5 py-4 shadow-md shadow-hba-blue-1/8 transition hover:border-hba-orange-1/40 hover:shadow-lg hover:shadow-hba-orange-1/15",children:[s.jsx("span",{className:"font-bold text-hba-blue-1 group-hover:text-hba-orange-1",children:a.label}),s.jsx(Lt,{className:"h-4 w-4 shrink-0 text-hba-grey-1 group-hover:text-hba-blue-1","aria-hidden":!0})]}):s.jsxs("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:"group flex h-full min-h-[4.5rem] items-center justify-between gap-3 rounded-2xl border border-hba-blue-1/18 bg-gradient-to-br from-white to-hba-blue-1/[0.06] px-5 py-4 shadow-md shadow-hba-blue-1/8 transition hover:border-hba-orange-1/40 hover:shadow-lg hover:shadow-hba-orange-1/15",children:[s.jsx("span",{className:"font-bold text-hba-blue-1 group-hover:text-hba-orange-1",children:a.label}),s.jsx(Lt,{className:"h-4 w-4 shrink-0 text-hba-grey-1 group-hover:text-hba-blue-1","aria-hidden":!0})]})},a.href))})]})]})}const rM={default:"bg-gradient-to-b from-white via-hba-blue-1/[0.04] to-[#e8eef4]",cool:"bg-gradient-to-br from-[#dce8f2] via-[#e8f0f8] to-[#d4e4f0]",warm:"bg-gradient-to-br from-[#faf4ed] via-[#f5ebe3] to-[#ede4d8]"};function Nh({title:t,description:e,buttonLabel:r,buttonHref:n,note:a,sectionTitleId:i,variant:o="default",embedInGrid:l=!1,className:c}){const u=i??t.toLowerCase().replace(/\s+/g,"-").slice(0,40),d=l?"text-xl text-hba-blue-1 sm:text-2xl md:text-[1.65rem] lg:text-[1.85rem]":"text-2xl md:text-3xl lg:text-[2rem] text-hba-blue-1",h=s.jsxs(s.Fragment,{children:[s.jsx(vi,{title:t,titleId:u,align:"center",className:"mx-auto max-w-2xl text-center",titleClassName:d}),s.jsx("div",{className:Fe("mt-5 leading-relaxed text-hba-blue-2",l?"text-base md:text-[1.05rem]":"text-base md:text-lg"),children:e}),s.jsx("div",{className:"mt-8 flex justify-center",children:s.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex min-h-[52px] items-center justify-center gap-2 rounded-2xl bg-hba-orange-1 px-8 py-3.5 text-sm font-black uppercase tracking-[0.12em] text-white shadow-[0_10px_36px_-8px_rgba(236,129,76,0.45)] transition hover:bg-hba-orange-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-blue-1",children:[r,s.jsx(Lt,{className:"h-4 w-4 opacity-90","aria-hidden":!0})]})}),a?s.jsx("p",{className:"mt-6 text-sm leading-relaxed text-hba-grey-1",children:a}):null]});return l?s.jsxs("div",{className:Fe("relative flex h-full flex-col rounded-2xl border border-hba-blue-1/15 p-8 shadow-lg shadow-hba-blue-1/10 md:p-10",rM[o],"ring-1 ring-white/50",c),"aria-labelledby":u,children:[s.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-hba-orange-1/30 to-transparent","aria-hidden":!0}),s.jsx("div",{className:"relative text-center",children:h})]}):s.jsxs("section",{className:Fe("relative border-b border-hba-blue-1/15 py-20 md:py-28",rM[o],c),"aria-labelledby":u,children:[s.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-hba-orange-1/25 to-transparent","aria-hidden":!0}),s.jsx("div",{className:"relative mx-auto max-w-3xl px-4 text-center",children:h})]})}const l0e="https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/2026/05/prominencelogo-1779832803773.jpg",Ic={drugResources:"https://prominencemedicare.com/get-care/prescription-drugs-part-d/prescription-forms-and-resources/",providerDirectories:"https://prominencemedicare.com/get-care/find-a-doctor/provider-and-pharmacy-directories/",silverfitGymSearch:"https://www.silverandfit.com/search",medicareGov:"https://www.medicare.gov"},c0e=["Northern Nevada Medical Center","Sierra Medical Center","Pinnacle Medical Group","Stand Alone Emergency Rooms","Carson Tahoe Regional Medical Center","South Lyon Medical Center","LabCorp
849Laboratories","Most Private Doctors in Nevada","Most Specialists in Nevada","Most Pharmacies in Nevada"],u0e=["For a complete list of available plans, contact 1-800-MEDICARE (TTY users should call 1-877-486-2048), 24 hours a day / 7 days a week, or consult medicare.gov.","Prominence Health Plan is an HMO plan with a Medicare contract. Enrollment in Prominence Health Plan depends on contract renewal.","For accommodation of persons with special needs at meetings call Phone: 775-828-1216 and TTY: 800-326-6868."];function d0e(){return s.jsxs("div",{className:"flex flex-col bg-gradient-to-b from-[#dfe8f0] via-[#eef2f6] to-[#e8edf2]",children:[s.jsx(QS,{title:"Prominence Medicare Advantage",eyebrow:"Northern Nevada · Medicare Advantage",primaryCtaLabel:"Enroll with Prominence",primaryCtaHref:"/medicare-quote-request/",primaryExternal:!1,secondaryCtaLabel:"Talk to a Broker",secondaryCtaTo:"/reno-health-insurance-broker/",brandLogo:{src:l0e,alt:"Prominence Health Plan logo"},children:s.jsx("p",{children:"Prominence Health Plan is a local health plan in Northern Nevada. They provide various healthcare coverage options, including Prominence Medicare Advantage plans. If you live in Northern Nevada and qualify for Medicare, you may be able to enroll in one of Prominence's $0 premium plans, including the popular Prominence Plus Plan."})}),s.jsx(ZS,{title:"2027 Plus Plan Highlights",subtitle:"Benefits summarized for easy scanningâalways confirm details in the official plan documents before you enroll.",items:o0e,sectionTitleId:"prominence-plus-highlights"}),s.jsx(NW,{title:"Covered Facilities",subtitle:"Examples of facilities and access categories often associated with Prominence Medicare Advantage networks in our area.",items:c0e,silverFitHref:Ic.silverfitGymSearch,silverFitLabel:"Search participating Silver&Fit fitness locations",footnote:"Prominence has additional plan choices that may require certain qualifications to enroll. Give us a call to find which plan may be the best fit for you.",sectionTitleId:"prominence-covered-facilities"}),s.jsx("section",{className:"relative border-b border-hba-blue-1/15 bg-gradient-to-b from-[#e2eaf2] via-[#eef3f8] to-[#dce4ee] py-16 md:py-20 lg:py-24","aria-labelledby":"prominence-search-tools-heading",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx("h2",{id:"prominence-search-tools-heading",className:"text-center text-xs font-black uppercase tracking-[0.22em] text-hba-orange-1",children:"Compare coverage details"}),s.jsx("p",{className:"mx-auto mt-2 max-w-2xl text-center text-sm text-hba-blue-2",children:"Use Prominence's tools to review prescriptions and providers, or talk with a broker for no-cost insurance guidance."}),s.jsxs("div",{className:"mt-10 grid gap-8 md:grid-cols-2 md:gap-6 lg:mt-12 lg:gap-10",children:[s.jsx(Nh,{title:"Prominence Medicare Advantage Drug Search",sectionTitleId:"prominence-drug-search",variant:"cool",embedInGrid:!0,description:s.jsx(s.Fragment,{children:"Checking your prescriptions regularly is a good way to make sure you are paying the lowest amount at the pharmacy. There are often alternative drugs that may produce the same result at a lower copay."}),buttonLabel:"Drug Search",buttonHref:Ic.drugResources,note:"We can also help review how different plans cover your medications."}),s.jsx(Nh,{title:"Prominence Medicare Advantage Doctor Search",sectionTitleId:"prominence-doctor-search",variant:"warm",embedInGrid:!0,description:s.jsx(s.Fragment,{children:"You can search covered doctors and facilities on Prominence's website using the button below. If you have trouble using the site, you can always call or meet with a broker in our office."}),buttonLabel:"Find Doctors",buttonHref:Ic.providerDirectories,note:"Provider lists change often, so it is a good idea to confirm your doctors are still covered before enrolling or receiving care."})]})]})}),s.jsx(JS,{title:"Eligibility for Prominence Medicare Advantage",intro:"Prominence Medicare Advantage plans are available to people who meet the following eligibility requirements:",items:["You need to be enrolled in both Part A and Part B of Medicare.","You live in Washoe County, Carson City, Douglas County, Lyon County, Storey County, or Churchill County.","You can enroll during the Annual Enrollment Period (AEP), which starts on October 15 and ends on December 7.","You may also enroll outside AEP if you qual
849ify for a Special Enrollment Period. Common examples include turning 65, enrolling in Part B recently, moving to Nevada recently, or qualifying through the Low-Income Subsidy."],brokerNote:"Finding the right Medicare plan that fits your needs and budget can be difficult. You can sit down with a health insurance broker in our office to review your options. Best of all, our brokers do not charge any fees and we can help walk you through the application process.",sectionTitleId:"prominence-eligibility"}),s.jsx(XS,{items:u0e,lastUpdated:"Last Updated 10/01/2026"}),s.jsx(eC,{title:"Helpful links & resources",sectionTitleId:"prominence-resource-links",links:[{label:"Enroll with Prominence",href:"/medicare-quote-request/",external:!1},{label:"Drug Search",href:Ic.drugResources},{label:"Find Doctors",href:Ic.providerDirectories},{label:"Silver&Fit participating gyms",href:Ic.silverfitGymSearch},{label:"Medicare.gov",href:Ic.medicareGov}]})]})}const vd={logoSrc:Gr.kaiserPermanente,coveredPrescriptions:"https://healthy.kaiserpermanente.org/learn/nevada",findDoctors:"https://healthy.kaiserpermanente.org/doctors-locations",medicareGov:"https://www.medicare.gov"},h0e=[{text:"$0 Premium",icon:Vse},{text:"$0 Primary Doctor Visits",icon:mi},{text:"Prescription Coverage",icon:dc},{text:"Worldwide Emergency Care",icon:sS},{text:"Priority Access at Renown Facilities",icon:Rr},{text:"$0 Teladoc Services",icon:eU},{text:"$500 Dental Benefit",icon:ls},{text:"Hearing Exams and Hearing Aids",icon:Ece},{text:"Glasses and Vision Exam Coverage",icon:uc},{text:"Gym Benefits",icon:rS},{text:"$0 Lab Services",icon:dU},{text:"Over the Counter Allowance",icon:Ki}],f0e=["For a complete list of available plans please contact 1-800-MEDICARE (TTY users should call 1-877-486-2048), 24 hours a day / 7 days a week, or consult medicare.gov.","Material ID: H2960_2024_TP_HBA_Web1_M (CMS Accepted)","For accommodation of persons with special needs at meetings call Phone: 775-828-1216 and TTY: 800-326-6868.","Senior Care Plus is an HMO plan with a Medicare contract. Enrollment in Senior Care Plus depends on contract renewal."];function p0e(){return s.jsx("section",{className:"border-t border-hba-blue-1/10 bg-gradient-to-b from-[#dfe8f1] via-[#edf2f8] to-[#d7e3ed] py-16 md:py-20",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsxs("div",{className:"rounded-3xl border border-hba-blue-1/15 bg-gradient-to-br from-white to-hba-blue-1/[0.08] p-8 shadow-xl shadow-hba-blue-1/10 ring-1 ring-white/60 md:p-12",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:"Need Help Comparing Kaiser Medicare Plans?"}),s.jsx("p",{className:"mt-4 max-w-3xl text-base leading-relaxed text-hba-blue-2 md:text-lg",children:"We'll help you review benefits, provider access, prescription coverage, and enrollment timing so you can choose coverage with confidence."}),s.jsxs("div",{className:"mt-8 flex flex-col gap-4 sm:flex-row sm:flex-wrap",children:[s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex min-h-[52px] min-w-[220px] items-center justify-center rounded-2xl border-2 border-hba-blue-1/35 bg-white/90 px-8 py-3.5 text-center text-sm font-black uppercase tracking-[0.12em] text-hba-blue-1 shadow-md shadow-hba-blue-1/10 transition hover:border-hba-orange-1/45 hover:bg-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-orange-1",children:"Talk to a Broker"}),s.jsx(ue,{to:"/medicare-quote-request/",className:"inline-flex min-h-[52px] min-w-[220px] items-center justify-center rounded-2xl bg-hba-orange-1 px-8 py-3.5 text-center text-sm font-black uppercase tracking-[0.12em] text-white shadow-lg shadow-hba-orange-1/30 transition hover:bg-hba-orange-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-blue-1",children:"Enroll in the Kaiser Permanente Value Plan"})]})]})})})}function m0e(){return s.jsxs("div",{className:"flex flex-col bg-gradient-to-b from-[#dfe8f0] via-[#eef2f6] to-[#e8edf2]",children:[s.jsx(QS,{title:"Kaiser Permanente Value Plan",eyebrow:"Kaiser Medicare · Northern Nevada",primaryCtaLabel:"Enroll in the Kaiser Permanente Value Plan",primaryCtaHref:"/medicare-quote-request/",primaryExternal:!1,secondaryCtaLabel:"Talk to a Broker",secondaryCtaTo:"/reno-health-insurance-broker/",brandLogo:{src:vd.logoSrc,alt:"Kaiser Permanente logo"},children:s.jsx("p",{children:"New to Northern Nevada and still the only Medicare Advantage plan that covers Renown, Kaiser (formerly Senior Care Plus) will be offering plans for 2027. Still $0, it also offers great benefits and low copays making it a strong Medicare plan choice."})}),s.jsx(ZS,{title:"Kaiser Permanente Value Plan Benefits Include:",subtitle:"A quick view of commonly highlighted benefits. We can help you compare plans and review official documents before you enroll.",items:h0e,sectionTitleId:"kaiser-benefits-highlights"}),s.jsx("section",{className:"relative border-b border-hba-blue-1/15 bg-gradient-to-b from-[#e2eaf2] via-[#eef3f8] to-[#dce4ee] py-16 md:py-20 lg:py-24","aria-labelledby":"kaiser-search-tools-heading",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx("h2",{id:"kaiser-search-tools-heading",className:"text-center text-xs font-black uppercase tracking-[0.22em] text-hba-orange-1",children:"Review plan fit"}),s.jsx("p",{className:"mx-auto mt-2 max-w-2xl text-center text-sm text-hba-blue-2",children:"Compare prescriptions, check doctors and facilities, and talk with a broker for no-cost insurance guidance."}),s.jsxs("div",{className:"mt-10 grid gap-8 md:grid-cols-2 md:gap-6 lg:mt-12 lg:gap-10",children:[s.jsx(Nh,{title:"Kaiser Permanente Value Plan Medication Search",sectionTitleId:"kaiser-medication-search",variant:"cool",embedInGrid:!0,description:s.jsx(s.Fragment,{children:"Checking your prescriptions regularly is a good way to make sure you are paying the lowest amount at the pharmacy. There are often alternative medications that may produce the same result at a lower copay."}),buttonLabel:"Covered Prescriptions",buttonHref:vd.coveredPrescriptions,note:"We can also help review how different plans cover your medications."}),s.jsx(Nh,{title:"Kaiser Permanente Value Plan Doctor Search",sectionTitleId:"kaiser-doctor-search",variant:"warm",embedInGrid:!0,description:s.jsx(s.Fragment,{children:"You can search covered doctors and facilities using the button below. If you have trouble using the site, you can always call or meet with a broker in our office."}),buttonLabel:"Find Doctors",buttonHref:vd.findDoctors,note:"Provider lists change often, so it is a good idea to confirm your doctors are still covered before enrolling or receiving care."})]})]})}),s.jsx(JS,{title:"Eligibility for Kaiser Permanente Value Plan",intro:"Kaiser Permanente Value Plan is available to people who meet the following eligibility requirements:",items:["You need to be enrolled in both Part A and Part B of Medicare.","You live in Washoe County, Storey County, or Carson City.","To enroll, you can apply during the Annual Enrollment Period (AEP), which starts on October 15 and ends on December 7.","You may also enroll outside of AEP if you qual
849ify for a Special Enrollment Period. Common examples include turning 65, enrolling in Part B recently, moving to Nevada recently, or qualifying through the Low-Income Subsidy."],brokerNote:"Finding the right Medicare plan that fits your needs and budget can be difficult. You can sit down with a health insurance broker in our office to review your options. Best of all, our brokers do not charge any fees and we can help walk you through the application process.",sectionTitleId:"kaiser-eligibility"}),s.jsx(eC,{title:"Helpful links & resources",sectionTitleId:"kaiser-resource-links",links:[{label:"Enroll in the Kaiser Permanente Value Plan",href:"/medicare-quote-request/",external:!1},{label:"Covered Prescriptions",href:vd.coveredPrescriptions},{label:"Find Doctors",href:vd.findDoctors},{label:"Annual Enrollment Period",href:"/nevada-medicare-advantage-enrollment-period/",external:!1},{label:"Medicare.gov",href:vd.medicareGov}]}),s.jsx(XS,{items:f0e,referenceCode:"H2960_2024_TP_HBA_Web1_M (CMS Accepted)",lastUpdated:"Compliance language provided by carrier source content"}),s.jsx(p0e,{})]})}const Dc={logoSrc:Gr.aetnaBrand,silverSneakersGyms:"https://tools.silversneakers.com/",drugSearch:"https://www.aetnamedicare.com/en/prescription-drugs/check-medicare-drug-list.html",findDoctors:"https://www.aetnamedicare.com/en/find-doctors-hospitals/find-provider.html",medicareGov:"https://www.medicare.gov"},g0e=[{text:"HMO and PPO plans with low premiums",icon:el},{text:"$0 Doctor Visits (Including Teladoc)",icon:mi},{text:"Plans designed specifically for Veterans",icon:Rr},{text:"Copay reimbursements",icon:Sm},{text:"Over-the-counter benefits",icon:Ki},{text:"Dual eligible plans for Medicaid recipients",icon:sn},{text:"Dental Benefits",icon:ls},{text:"$0 Gym Memberships through SilverSneakers",icon:rS},{text:"Hearing, vision, chiropractic, and many more extra benefits",icon:Ki},{text:"Comprehensive Prescription Drug Coverage",icon:dc},{text:"As well as many other covered services",icon:sU}],b0e=["Northern Nevada Medical Center","Sierra Medical Center","St. Mary's","Pinnacle Medical Group","South Lyon Medical Center","LabCorp Laboratories","Most Private Doctors in Nevada","Most Specialists in Nevada","Most Pharmacies in Nevada"],x0e=["For a complete list of available plans please contact 1-800-MEDICARE (TTY users should call 1-877-486-2048), 24 hours a day / 7 days a week, or consult medicare.gov."];function y0e(){return s.jsx("section",{className:"border-t border-hba-blue-1/10 bg-gradient-to-b from-[#dfe8f1] via-[#edf2f8] to-[#d7e3ed] py-16 md:py-20",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsxs("div",{className:"rounded-3xl border border-hba-blue-1/15 bg-gradient-to-br from-white to-hba-blue-1/[0.08] p-8 shadow-xl shadow-hba-blue-1/10 ring-1 ring-white/60 md:p-12",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:"Need Help Comparing Aetna Medicare Plans?"}),s.jsx("p",{className:"mt-4 max-w-3xl text-base leading-relaxed text-hba-blue-2 md:text-lg",children:"We'll help you review benefits, provider access, prescription coverage, and enrollment timing so you can choose coverage with confidence."}),s.jsxs("div",{className:"mt-8 flex flex-col gap-4 sm:flex-row sm:flex-wrap",children:[s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex min-h-[52px] min-w-[220px] items-center justify-center rounded-2xl border-2 border-hba-blue-1/35 bg-white/90 px-8 py-3.5 text-center text-sm font-black uppercase tracking-[0.12em] text-hba-blue-1 shadow-md shadow-hba-blue-1/10 transition hover:border-hba-orange-1/45 hover:bg-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-orange-1",children:"Talk to a Broker"}),s.jsx(ue,{to:"/medicare-quote-request/",className:"inline-flex min-h-[52px] min-w-[220px] items-center justify-center rounded-2xl bg-hba-orange-1 px-8 py-3.5 text-center text-sm font-black uppercase tracking-[0.12em] text-white shadow-lg shadow-hba-orange-1/30 transition hover:bg-hba-orange-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-hba-blue-1",children:"Enroll with Aetna"})]})]})})})}function v0e(){return s.jsxs("div",{className:"flex flex-col bg-gradient-to-b from-[#dfe8f0] via-[#eef2f6] to-[#e8edf2]",children:[s.jsx(QS,{title:"Aetna Medicare Advantage",eyebrow:"Northern Nevada · Medicare Advantage",primaryCtaLabel:"Enroll with Aetna",primaryCtaHref:"/medicare-quote-request/",primaryExternal:!1,secondaryCtaLabel:"Talk to a Broker",secondaryCtaTo:"/reno-health-insurance-broker/",brandLogo:{src:Dc.logoSrc,alt:"Aetna logo"},children:s.jsx("p",{children:"Aetna is one of the largest Medicare Advantage providers in the nation. They offer multiple Medicare Advantage options, including HMO and PPO plans. If you live in Northern Nevada and qualify for Medicare, you may be able to enroll in one of Aetna's Medicare plans."})}),s.jsx(ZS,{title:"2027 Benefit Highlights",subtitle:"Highlights for quick scanningâcompare plans and review benefits in the official plan documents before you enroll.",items:g0e,sectionTitleId:"aetna-2027-highlights"}),s.jsx(NW,{title:"Covered Facilities",subtitle:"Examples of facilities and access often discussed with Aetna Medicare Advantage networks in our area.",items:b0e,silverFitHref:Dc.silverSneakersGyms,gymRowTitle:"Gyms Participating in the SilverSneakers Program",silverFitLabel:"SilverSneakers â find participating locations",footnote:"Aetna offers different plan choices based on county and eligibility. We can help you compare options and find which one may fit best.",sectionTitleId:"aetna-covered-facilities"}),s.jsx("section",{className:"relative border-b border-hba-blue-1/15 bg-gradient-to-b from-[#e2eaf2] via-[#eef3f8] to-[#dce4ee] py-16 md:py-20 lg:py-24","aria-labelledby":"aetna-search-tools-heading",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx("h2",{id:"aetna-search-tools-heading",className:"text-center text-xs font-black uppercase tracking-[0.22em] text-hba-orange-1",children:"Check doctors and prescriptions"}),s.jsx("p",{className:"mx-auto mt-2 max-w-2xl text-center text-sm text-hba-blue-2",children:"Use Aetna's tools to explore coverage, or talk with a broker for no-cost insurance guidance."}),s.jsxs("div",{className:"mt-10 grid gap-8 md:grid-cols-2 md:gap-6 lg:mt-12 lg:gap-10",children:[s.jsx(Nh,{title:"Aetna Medicare Advantage Drug Search",sectionTitleId:"aetna-drug-search",variant:"cool",embedInGrid:!0,description:s.jsx(s.Fragment,{children:"Checking your prescriptions regularly is a great way to make sure you are paying the lowest amount at the pharmacy. There are often alternative drugs that may produce the same result at a lower copay."}),buttonLabel:"Drug Search",buttonHref:Dc.drugSearch,note:"We can also help review how different Aetna plans cover your medications."}),s.jsx(Nh,{title:"Aetna Medicare Advantage Doctor Search",sectionTitleId:"aetna-doctor-search",variant:"warm",embedInGrid:!0,description:s.jsx(s.Fragment,{children:"You can search covered doctors and facilities on Aetna's website using the button below. If you have trouble using the site, you can always call or meet with a broker in our office."}),buttonLabel:"Find Doctors",buttonHref:Dc.findDoctors,note:"Doctor and facility lists change often, so it can be a good idea to confirm your providers are still covered before enrolling or receiving care."})]})]})}),s.jsx(JS,{title:"Eligibility for Aetna Medicare Advantage",intro:"Aetna Medicare Advantage plans are available to people who meet the following eligibility requirements:",items:["You need to be enrolled in both Part A and Part B of Medicare.","You live in Washoe, Clark, or Nye County.","You can apply during the Annual Enrollment Period (AEP), which starts on October 15 and ends on December 7.","You may also enroll outside AEP if you qual
849ify for a Special Enrollment Period. Common examples include turning 65, enrolling in Part B recently, moving to Nevada recently, or qualifying through the Low-Income Subsidy."],brokerNote:"Finding the right Medicare plan that fits your needs and budget can be difficult. You can sit down with a health insurance broker in our office to review your options. Best of all, our brokers do not charge any fees and we can help walk you through the application process.",sectionTitleId:"aetna-eligibility"}),s.jsx(eC,{title:"Helpful links & resources",sectionTitleId:"aetna-resource-links",links:[{label:"Enroll with Aetna",href:"/medicare-quote-request/",external:!1},{label:"Drug Search",href:Dc.drugSearch},{label:"Find Doctors",href:Dc.findDoctors},{label:"Annual Enrollment Period",href:"/nevada-medicare-advantage-enrollment-period/",external:!1},{label:"Special Enrollment Period",href:"/medicare-special-enrollment",external:!1},{label:"Medicare.gov",href:Dc.medicareGov}]}),s.jsx(XS,{items:x0e,showMetadataFooter:!1}),s.jsx(y0e,{})]})}function w0e(t,e){const r=w.createContext(e),n=i=>{const{children:o,...l}=i,c=w.useMemo(()=>l,Object.values(l));return s.jsx(r.Provider,{value:c,children:o})};n.displayName=t+"Provider";function a(i){const o=w.useContext(r);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[n,a]}function to(t,e=[]){let r=[];function n(i,o){const l=w.createContext(o),c=r.length;r=[...r,o];const u=h=>{var N;const{scope:m,children:g,...b}=h,y=((N=m==null?void 0:m[t])==null?void 0:N[c])||l,v=w.useMemo(()=>b,Object.values(b));return s.jsx(y.Provider,{value:v,children:g})};u.displayName=i+"Provider";function d(h,m){var y;const g=((y=m==null?void 0:m[t])==null?void 0:y[c])||l,b=w.useContext(g);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const a=()=>{const i=r.map(o=>w.createContext(o));return function(l){const c=(l==null?void 0:l[t])||i;return w.useMemo(()=>({[`__scope${t}`]:{...l,[t]:c}}),[l,c])}};return a.scopeName=t,[n,N0e(a,...e)]}function N0e(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=n.reduce((l,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...l,...h}},{});return w.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function nM(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Oy(...t){return e=>{let r=!1;const n=t.map(a=>{const i=nM(a,e);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():nM(t[a],null)}}}}function Mr(...t){return w.useCallback(Oy(...t),t)}var jh=w.forwardRef((t,e)=>{const{children:r,...n}=t,a=w.Children.toArray(r),i=a.find(j0e);if(i){const o=i.props.children,l=a.map(c=>c===i?w.Children.count(o)>1?w.Children.only(null):w.isValidElement(o)?o.props.children:null:c);return s.jsx(uN,{...n,ref:e,children:w.isValidElement(o)?w.cloneElement(o,void 0,l):null})}return s.jsx(uN,{...n,ref:e,children:r})});jh.displayName="Slot";var uN=w.forwardRef((t,e)=>{const{children:r,...n}=t;if(w.isValidElement(r)){const a=S0e(r),i=k0e(n,r.props);return r.type!==w.Fragment&&(i.ref=e?Oy(e,a):a),w.cloneElement(r,i)}return w.Children.count(r)>1?w.Children.only(null):null});uN.displayName="SlotClone";var tC=({children:t})=>s.jsx(s.Fragment,{children:t});function j0e(t){return w.isValidElement(t)&&t.type===tC}function k0e(t,e){const r={...e};for(const n in e){const a=t[n],i=e[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...l)=>{i(...l),a(...l)}:a&&(r[n]=a):n==="style"?r[n]={...a,...i}:n==="className"&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...t,...r}}function S0e(t){var n,a;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(a=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:a.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function rC(t){const e=t+"CollectionProvider",[r,n]=to(e),[a,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:b,children:y}=g,v=z.useRef(null),N=z.useRef(new Map).current;return s.jsx(a,{scope:b,itemMap:N,collectionRef:v,children:y})};o.displayName=e;const l=t+"CollectionSlot",c=z.forwardRef((g,b)=>{const{scope:y,children:v}=g,N=i(l,y),S=Mr(b,N.collectionRef);return s.jsx(jh,{ref:S,children:v})});c.displayName=l;const u=t+"CollectionItemSlot",d="data-radix-collection-item",h=z.forwardRef((g,b)=>{const{scope:y,children:v,...N}=g,S=z.useRef(null),j=Mr(b,S),$=i(u,y);return z.useEffect(()=>($.itemMap.set(S,{ref:S,...N}),()=>void $.itemMap.delete(S))),s.jsx(jh,{[d]:"",ref:j,children:v})});h.displayName=u;function m(g){const b=i(t+"CollectionConsumer",g);return z.useCallback(()=>{const v=b.collectionRef.current;if(!v)return[];const N=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort(($,C)=>N.indexOf($.ref.current)-N.indexOf(C.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:c,ItemSlot:h},m,n]}function Ct(t,e,{checkForDefaultPrevented:r=!0}={}
vendor: 4,277 bytes, line 849
849){return function(a){if(t==null||t(a),r===!1||!a.defaultPrevented)return e==null?void 0:e(a)}}function gi(t){const e=w.useRef(t);return w.useEffect(()=>{e.current=t}),w.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function zu({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,a]=C0e({defaultProp:e,onChange:r}),i=t!==void 0,o=i?t:n,l=gi(r),c=w.useCallback(u=>{if(i){const h=typeof u=="function"?u(t):u;h!==t&&l(h)}else a(u)},[i,t,a,l]);return[o,c]}function C0e({defaultProp:t,onChange:e}){const r=w.useState(t),[n]=r,a=w.useRef(n),i=gi(e);return w.useEffect(()=>{a.current!==n&&(i(n),a.current=n)},[n,a,i]),r}var nC=RV();const aC=ar(nC);var $0e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],cr=$0e.reduce((t,e)=>{const r=w.forwardRef((n,a)=>{const{asChild:i,...o}=n,l=i?jh:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(l,{...o,ref:a})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function jW(t,e){t&&nC.flushSync(()=>t.dispatchEvent(e))}var ic=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{};function _0e(t,e){return w.useReducer((r,n)=>e[r][n]??r,t)}var wi=t=>{const{present:e,children:r}=t,n=A0e(e),a=typeof r=="function"?r({present:n.isPresent}):w.Children.only(r),i=Mr(n.ref,E0e(a));return typeof r=="function"||n.isPresent?w.cloneElement(a,{ref:i}):null};wi.displayName="Presence";function A0e(t){const[e,r]=w.useState(),n=w.useRef({}),a=w.useRef(t),i=w.useRef("none"),o=t?"mounted":"unmounted",[l,c]=_0e(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=Tg(n.current);i.current=l==="mounted"?u:"none"},[l]),ic(()=>{const u=n.current,d=a.current;if(d!==t){const m=i.current,g=Tg(u);t?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&m!==g?"ANIMATION_OUT":"UNMOUNT"),a.current=t}},[t,c]),ic(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,h=g=>{const y=Tg(n.current).includes(g.animationName);if(g.target===e&&y&&(c("ANIMATION_END"),!a.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},m=g=>{g.target===e&&(i.current=Tg(n.current))};return e.addEventListener("animationstart",m),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",m),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Tg(t){return(t==null?void 0:t.animationName)||"none"}function E0e(t){var n,a;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(a=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:a.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var O0e=Kne.useId||(()=>{}),P0e=0;function Lo(t){const[e,r]=w.useState(O0e());return ic(()=>{r(n=>n??String(P0e++))},[t]),e?`radix-${e}`:""}var sC="Collapsible",[M0e,kW]=to(sC),[T0e,iC]=M0e(sC),SW=w.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:a,disabled:i,onOpenChange:o,...l}=t,[c=!1,u]=zu({prop:n,defaultProp:a,onChange:o});return s.jsx(T0e,{scope:r,disabled:i,contentId:Lo(),open:c,onOpenToggle:w.useCallback(()=>u(d=>!d),[u]),children:s.jsx(cr.div,{"data-state":lC(c),"data-disabled":i?"":void 0,...l,ref:e})})});SW.displayName=sC;var CW="CollapsibleTrigger",$W=w.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,a=iC(CW,r);return s.jsx(cr.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":lC(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:e,onClick:Ct(t.onClick,a.onOpenToggle)})});$W.displayName=CW;var oC="CollapsibleContent",_W=w.forwardRef((t,e)=>{const{forceMount:r,...n}=t,a=iC(oC,t.__scopeCollapsible);return s.jsx(wi,{present:r||a.open,children:({present:i})=>s.jsx(R0e,{...n,ref:e,present:i})})});
849_W.displayName=oC;var R0e=w.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:a,...i}=t,o=iC(oC,r),[l,c]=w.useState(n),u=w.useRef(null),d=Mr(e,u),h=w.useRef(0),m=h.current,g=w.useRef(0),b=g.current,y=o.open||l,v=w.useRef(y),N=w.useRef(void 0);return w.useEffect(()=>{const S=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(S)},[]),ic(()=>{const S=u.current;if(S){N.current=N.current||{transitionDuration:S.style.transitionDuration,animationName:S.style.animationName},S.style.transitionDuration="0s",S.style.animationName="none";const j=S.getBoundingClientRect();h.current=j.height,g.current=j.width,v.current||(S.style.transitionDuration=N.current.transitionDuration,S.style.animationName=N.current.animationName),c(n)}},[o.open,n]),s.jsx(cr.div,{"data-state":lC(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!y,...i,ref:d,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...t.style},children:y&&a})});function lC(t){return t?"open":"closed"}var I0e=SW,D0e=$W,L0e=_W,B0e=w.createContext(void 0);function cC(t){const e=w.useContext(B0e);return t||e||"ltr"}var rl="Accordion",H0e=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[uC,F0e,z0e]=rC(rl),[Py]=to(rl,[z0e,kW]),dC=kW(),AW=z.forwardRef((t,e)=>{const{type:r,...n}=t,a=n,i=n;return s.jsx(uC.Provider,{scope:t.__scopeAccordion,children:r==="multiple"?s.jsx(W0e,{...i,ref:e}):s.jsx(q0e,{...a,ref:e})})});AW.displayName=rl;var[EW,V0e]=Py(rl),[OW,U0e]=Py(rl,{collapsible:!1}),q0e=z.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},collapsible:i=!1,...o}=t,[l,c]=zu({prop:r,defaultProp:n,onChange:a});return s.jsx(EW,{scope:t.__scopeAccordion,value:l?[l]:[],onItemOpen:c,onItemClose:z.useCallback(()=>i&&c(""),[i,c]),children:s.jsx(OW,{scope:t.__scopeAccordion,collapsible:i,children:s.jsx(PW,{...o,ref:e})})})}),W0e=z.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...i}=t,[o=[],l]=zu({prop:r,defaultProp:n,onChange:a}),c=z.useCallback(d=>l((h=[])=>[...h,d]),[l]),u=z.useCallback(d=>l((h=[])=>h.filter(m=>m!==d)),[l]);return s.jsx(EW,{scope:t.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:s.jsx(OW,{scope:t.__scopeAccordion,collapsible:!0,children:s.jsx(PW,{...i,ref:e})})})}),[G0e,My]=Py(rl),PW=z.forwardRef((t,e)=>{const{__scopeAccordion:r,disabled:n,dir:a,orientation:i="vertical",...o}=t,l=z.useRef(null),c=Mr(l,e),u=F0e(r),h=cC(a)==="ltr",m=Ct(t.onKeyDown,g=>{var E;if(!H0e.includes(g.key))return;const b=g.target,y=u().filter(P=>{var T;return!((T=P.ref.current)!=null&&T.disabled)}),v=y.findIndex(P=>P.ref.current===b),N=y.length;if(v===-1)return;g.preventDefault();let S=v;const j=0,$=N-1,C=()=>{S=v+1,S>$&&(S=j)},_=()=>{S=v-1,S<j&&(S=$)};switch(g.key){case"Home":S=j;break;case"End":S=$;break;case"ArrowRight":i==="horizontal"&&(h?C():_());break;case"ArrowDown":i==="vertical"&&C();break;case"ArrowLeft":i==="horizontal"&&(h?_():C());break;case"ArrowUp":i==="vertical"&&_();break}const O=S%N;(E=y[O].ref.current)==null||E.focus()});return s.jsx(G0e,{scope:r,disabled:n,direction:a,orientation:i,children:s.jsx(uC.Slot,{scope:r,children:s.jsx(cr.div,{...o,"data-orientation":i,ref:c,onKeyDown:n?void 0:m})})})}),gx="AccordionItem",[K0e,hC]=Py(gx),MW=z.forwardRef((t,e)=>{const{__scopeAccordion:r,value:n,...a}=t,i=My(gx,r),o=V0e(gx,r),l=dC(r),c=Lo(),u=n&&o.value.includes(n)||!1,d=i.disabled||t.disabled;return s.jsx(K0e,{scope:r,open:u,disabled:d,triggerId:c,children:s.jsx(I0e,{"data-orientation":i.orientation,"data-state":BW(u),...l,...a,ref:e,disabled:d,open:u,onOpenChange:h=>{h?o.onItemOpen(n):o.onItemClose(n)}})})});MW.displayName=gx;var TW="AccordionHeader",RW=z.forwardRef((t,e)=>{const{__scopeAccordion:r,...n}=t,a=My(rl,r),i=hC(TW,r);return s.jsx(cr.h3,{"data-orientation":a.orientation,"data-state":BW(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:e})});RW.displayName=TW;var dN="AccordionTrigger",IW=z.forwardRef((t,e)=>{const{__scopeAccordion:r,...n}=t,a=My(rl,r),i=hC(dN,r),o=U0e(dN,r),l=dC(r);return s.jsx(uC.ItemSlot,{scope:r,children:s.jsx(D0e,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":a.orientation,id:i.triggerId,...l,...n,ref:e})})});IW.displayName=dN;var DW="AccordionContent",LW=z.forwardRef((t,e)=>{const{__scopeAccordion:r,...n}=t,a=My(rl,r),i=hC(DW,r),o=dC(r);return s.jsx(L0e,{role:"region","aria-labelledby":i.triggerId,"data-orientation":a.orientation,...o,...n,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});LW.displayName=DW;function BW(t){return t?"open":"closed"}var Y0e=AW,X0e=MW,J0e=RW,Q0e=IW,Z0e=LW;function HW({...t}){return s.jsx(Y0e,{"data-slot":"accordion",...t})}function FW({className:t,...e}){return s.jsx(X0e,{"data-slot":"accordion-item",className:Fe("border-b last:border-b-0",t),...e})}function zW({className:t,children:e,...r}){return s.jsx(J0e,{className:"flex",children:s.jsxs(Q0e,{"data-slot":"accordion-trigger",className:Fe("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 roun
849ded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",t),...r,children:[e,s.jsx(mu,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function VW({className:t,children:e,...r}){return s.jsx(Z0e,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:s.jsx("div",{className:Fe("pt-0 pb-4",t),children:e})})}const aM=new Date("2026-12-07T23:59:59-08:00"),e1e=[{id:"a",question:"How much do Medicare Advantage plans cost?",answer:"Plans vary by insurance company and can range from $0 to a few hundred dollars per month. A $0 plan is not always the best option, so review all plans to confirm your needs are covered correctly."},{id:"b",question:"How do I get dental coverage?",answer:"Some Medicare Advantage plans include dental coverage. Insurance companies update benefits each year during enrollment, so if you have dental now, confirm it is still included next year."},{id:"c",question:"Do Medicare Advantage plans cover vision?",answer:"All Medicare Advantage plans cover medically necessary ophthalmologist visits. Some plans also cover routine vision benefits such as glasses and contact lenses."},{id:"d",question:"When can I enroll in coverage?",answer:s.jsxs(s.Fragment,{children:[s.jsx("p",{children:"Some people may qualify for coverage starting as early as next month through a Special Enrollment Period."}),s.jsxs("ul",{className:"mt-3 list-disc space-y-1 pl-5",children:[s.jsx("li",{children:"Recently turned 65"}),s.jsx("li",{children:"Just enrolled in Part B"}),s.jsx("li",{children:"Moved to Nevada in the past 60 days"}),s.jsx("li",{children:"Lost coverage in the past 60 days"}),s.jsx("li",{children:"During the Annual Enrollment Period"}),s.jsx("li",{children:"Changing plans during the Open Enrollment Period"}),s.jsx("li",{children:"Dual eligibility with Medicaid"})]}),s.jsx(ue,{to:"/medicare-special-enrollment",className:"mt-4 inline-block font-bold text-hba-blue-1 hover:underline",children:"Learn more about Special Enrollment Periods"})]})},{id:"e",question:"How do I know if my plan covers my doctor?",answer:"Each Medicare Advantage plan uses a provider network. Check the insurer's provider directory each year. PPO plans may offer limited out-of-network coverage, while HMO plans generally do not."},{id:"f",question:"When can I change plans?",answer:s.jsxs(s.Fragment,{children:[s.jsx("p",{children:"It depends on whether you have a Special Enrollment Period. Many people change plans during October 15 - December 7 and January 1 - March 31."}),s.jsx("p",{className:"mt-2",children:"Timing matters because enrollment and termination rules can affect coverage."}),s.jsx(ue,{to:"/medicare-special-enrollment",className:"mt-4 inline-block font-bold text-hba-blue-1 hover:underline",children:"Learn more about Special Enrollment Periods"})]})},{id:"g",question:"Are preexisting conditions a factor on my health plan?",answer:"Medicare Advantage plans cover preexisting conditions and applications do not ask health questions. Comprehensive Medicare Advantage coverage should not involve health underwriting in this context."},{id:"h",question:"How do I avoid long wait times at the doctor's office?",answer:s.jsxs(s.Fragment,{children:[s.jsx("p",{children:"Wait times can depend on network size and reimbursement. Some insurers have broader networks than others."}),s.jsx("p",{className:"mt-2",children:"HBA can help compare carriers based on network access and real-world experience in Nevada."}),s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"mt-4 inline-block font-bold text-hba-blue-1 hover:underline",children:"Contact us"})]})},{id:"i",question:"Should I switch to a Medicare Supplement plan?",answer:"Medicare Supplement plans may be better for people who travel or need broader nationwide access. Out-of-pocket costs are generally lower, but premiums are usually higher. Most people switching from Medicare Advantage need to answer health questions and may be denied based on health history or prescriptions."},{id:"j",question:"Are preexisting conditions covered?",answer:"Yes. Medicare Advantage plans cover preexisting conditions and applications do not ask health questions. Medicare Supplement usually asks health questions unless a Special Enrollment Period applies."}
849,{id:"k",question:"Are emergencies covered?",answer:"Yes. Medicare Advantage plans cover emergencies anywhere in the U.S., whether PPO or HMO. Some plans may also include international emergency coverage. Urgent situations are not always treated the same as emergencies."},{id:"l",question:"Can I get Medicare before 65?",answer:"Yes, in some cases. People with certain disabilities can qualify for Medicare before age 65, and Social Security Disability Income often requires a 24-month wait before Medicare begins. In Nevada, people eligible before 65 can enroll in Medicare Advantage or Part D, but not Medicare Supplement until age 65 or older."}],t1e=[{id:"1",title:"How to Compare Medicare Advantage Networks",excerpt:"Practical steps for checking providers before enrollment.",href:"/blog-news/"},{id:"2",title:"How Prescription Lists Affect Total Costs",excerpt:"How formularies and tiers can change plan value.",href:"/blog-news/"},{id:"3",title:"What to Prepare Before October 15",excerpt:"A checklist for enrollment-season decision making.",href:"/blog-news/"}],r1e=[{title:"Medicare Video 1",embedUrl:"https://www.youtube.com/embed/puFRfUO4n9M"},{title:"Medicare Video 2",embedUrl:"https://www.youtube.com/embed/AXTgVfYIzcE"},{title:"Medicare Video 3",embedUrl:"https://www.youtube.com/embed/bLEO8v4mT4Y"}];function sM(t){const e=t.getTime()-Date.now();if(e<=0)return null;const r=Math.floor(e/1e3);return[{label:"Days",value:Math.floor(r/86400)},{label:"Hours",value:Math.floor(r%86400/3600)},{label:"Minutes",value:Math.floor(r%3600/60)},{label:"Seconds",value:r%60}]}function n1e(){const[t,e]=z.useState(()=>sM(aM));return z.useEffect(()=>{const r=setInterval(()=>e(sM(aM)),1e3);return()=>clearInterval(r)},[]),s.jsxs("div",{className:"flex flex-col bg-gradient-to-b from-[#dfe8f0] via-[#eef2f6] to-[#e8edf2]",children:[s.jsx("section",{className:"relative border-b border-hba-blue-1/15 bg-gradient-to-b from-[#dfe8f0] via-[#eef2f6] to-[#e8edf2] py-16 text-hba-blue-1 md:py-20 lg:py-24",children:s.jsxs("div",{className:"mx-auto grid max-w-7xl gap-8 px-4 lg:grid-cols-[1.25fr_1fr] lg:items-center",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.22em] text-hba-orange-1",children:"Medicare Enrollment Timing"}),s.jsx("h1",{className:"mt-4 text-4xl font-black tracking-tight md:text-5xl",children:"Nevada Medicare Advantage Enrollment Period"}),s.jsx("p",{className:"mt-5 max-w-2xl text-base leading-relaxed text-hba-blue-2 md:text-lg",children:"Medicare Advantage Plans, also known as Part C, vary in benefits and price. The Nevada Medicare Advantage Enrollment Period starts on October 15 and ends on December 7. During this time, you can shop your options, apply for a new plan, or renew your current coverage. If you apply during this period, your coverage should start on January 1."}),s.jsxs("div",{className:"mt-8 flex flex-wrap gap-3",children:[s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex min-h-12 items-center justify-center rounded-xl bg-hba-orange-1 px-6 py-3 text-sm font-black uppercase tracking-[0.12em] text-white transition hover:bg-hba-orange-2",children:"Talk to a Broker"}),s.jsx(ue,{to:"/medicare-quote-request/",className:"inline-flex min-h-12 items-center justify-center rounded-xl border border-hba-blue-1/25 px-6 py-3 text-sm font-black uppercase tracking-[0.12em] text-hba-blue-1 transition hover:bg-hba-blue-1/5",children:"Review Medicare Plans"})]})]}),s.jsxs("div",{className:"rounded-3xl border border-hba-blue-1/15 bg-white p-6 shadow-xl md:p-7",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.2em] text-hba-orange-1",children:"October 15 - December 7"}),s.jsx("p",{className:"mt-2 text-2xl font-black text-hba-blue-1",children:"January 1 Effective Date"}),t?s.jsx("div",{className:"mt-5 grid grid-cols-4 gap-2",children:t.map(r=>s.jsxs("div",{className:"rounded-xl border border-hba-blue-1/10 bg-[#f4f8fb] p-3 text-center",children:[s.jsx("p",{className:"text-2xl font-black leading-none text-hba-blue-1",children:r.value.toString().padStart(2,"0")}),s.jsx("p",{className:"mt-1 text-[10px] font-black uppercase tracking-[0.15em] text-hba-blue-2",children:r.label})]},r.label))}):s.jsx("p",{className:"mt-5 rounded-xl border border-[#cde5d4] bg-[#eefaf2] p-3 text-sm font-bold text-[#1e5a34]",children:"The enrollment period has started!"})]})]})}),s.jsx("section",{className:"bg-gradient-to-b from-[#e2eaf2] via-[#eef3f8] to-[#dce4ee] py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx("h2",{className:"text-3xl font-black text-hba-blue-1 md:text-4xl",children:"Medicare Advantage vs. Medicare Supplement Plans"}),s.jsx("p",{className:"mt-4 text-hba-blue-2",children:"There are two main types of Medicare plans: Medicare Advantage and Medicare Supplement plans. Medicare Supplement plans usually have much lower out-of-pocket expenses and work with almost any doctor or facility in the nation that accepts Medicare."}),s.jsxs("div",{className:"mt-6 grid gap-4 md:grid-cols-2",children:[s.jsxs("div",{className:"rounded-2xl border border-hba-blue-1/10 bg-white p-5",children:[s.jsx("p",{className:"text-sm font-black uppercase tracking-[0.12em] text-hba-blue-1",children:"Switching Windows"}),s.jsxs("ul",{className:"mt-3 list-disc space-y-1 pl-5 text-sm text-hba-blue-2",children:[s.jsx("li",{children:"October 15 - December 7"}),s.jsx("li",{children:"January 1 - March 31"})]}),s.jsx("p",{className:"mt-3 text-sm text-hba-blue-2",children:"If you currently have Medicare Advantage, you may be able to switch to Original Medicare and apply for Medicare Supplement in these windows."})]}),s.jsxs("div",{className:"rounded-2xl border border-[#f0c4ae] bg-[#fff4ef] p-5",children:[s.jsx("p",{className:"text-sm font-black uppercase tracking-[0.12em] text-[#6d2d15]",children:"Brokerage Guidance"}),s.jsx("p",{className:"mt-3 text-sm text-[#6d2d15]",children:"We do not recommend terminating your Medicare Advantage plan before confirming the approval of your Medicare Supplement enrollment."}),s.jsx("p",{className:"mt-3 text-sm text-[#6d2d15]",children:"Most Medicare Supplement applications ask health questions unless a Special Enrollment Period applies, and applicants may be denied based on health history or prescriptions."})]})]}),s.jsx(ue,{to:"/medicare-special-enrollment",className:"mt-5 inline-block font-bold text-hba-blue-1 hover:underline",children:"Learn more about switching"})]})}),s.jsx("section",{className:"bg-[#f5f8fb] py-16",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx("h2",{className:"text-3xl font-black text-[#0f2233]",children:"Which Medicare Advantage Plan is Best?"}),s.jsx("p",{className:"mt-4 text-[#2f4d63]",children:"We get asked often which plan is best. Every plan is different just like every person's needs are different. Some plans may work better for your needs than others."}),s.jsx("div",{className:"mt-6 grid gap-3 md:grid-cols-2",children:["Do the doctors and facilities you need accept the plan?","Are your prescriptions covered correctly?","Do you need dental, vision, or hearing aid coverage?","Is there a plan with a lower monthly premium available?","Do you need a PPO plan or will an HMO plan cover your needs?"].map(r=>s.jsx("div",{className:"rounded-xl border border-hba-blue-1/10 bg-white p-4 font-medium text-hba-blue-2 shadow-sm",children:r},r))})]})}),s.jsx("section",{className:"bg-white py-14",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-3",children:r1e.map(r=>s.jsx("article",{className:"overflow-hidden rounded-2xl border border-hba-blue-1/10 bg-white shadow-sm",children:s.jsx("div",{className:"aspect-video",children:s.jsx("iframe",{className:"h-full w-full",src:r.embedUrl,title:r.title,loading:"lazy",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;
849 web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})})},r.embedUrl))})})}),s.jsx("section",{className:"bg-white py-16",children:s.jsxs("div",{className:"mx-auto max-w-4xl px-4",children:[s.jsx("h2",{className:"text-3xl font-black text-[#0f2233]",children:"Frequently Asked Questions"}),s.jsx(HW,{type:"single",collapsible:!0,className:"mt-6 rounded-2xl border border-[#d7e3ed] bg-[#fbfdff] px-5",children:e1e.map(r=>s.jsxs(FW,{value:r.id,className:"border-[#d7e3ed]",children:[s.jsx(zW,{className:"text-base font-bold text-[#12344f] hover:no-underline",children:r.question}),s.jsx(VW,{className:"text-sm leading-relaxed text-[#2f4d63]",children:r.answer})]},r.id))})]})}),s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"mx-auto max-w-5xl px-4",children:s.jsxs("div",{className:"rounded-2xl border border-hba-blue-1/10 bg-white p-8 shadow-sm",children:[s.jsx("h2",{className:"text-3xl font-black text-hba-blue-1",children:"Need Help Comparing Medicare Plans?"}),s.jsx("p",{className:"mt-3 text-hba-blue-2",children:"We help Nevada Medicare shoppers compare doctors, prescriptions, benefits, and enrollment timing so they can choose a plan with confidence."}),s.jsxs("div",{className:"mt-6 flex flex-wrap gap-3",children:[s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"rounded-xl bg-hba-orange-1 px-5 py-3 text-sm font-black uppercase tracking-[0.1em] text-white transition hover:bg-hba-orange-2",children:"Talk to a Broker"}),s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"rounded-xl border border-hba-blue-1/20 px-5 py-3 text-sm font-black uppercase tracking-[0.1em] text-hba-blue-1 transition hover:bg-hba-blue-1/5",children:"Contact Us"})]})]})})}),s.jsx("section",{className:"bg-white py-14",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx("h2",{className:"text-2xl font-black text-[#0f2233]",children:"Related Medicare Articles"}),s.jsx("div",{className:"mt-6 grid gap-4 md:grid-cols-3",children:t1e.map(r=>s.jsxs("article",{className:"rounded-xl border border-[#d9e5ef] bg-[#f9fcff] p-4",children:[s.jsx("h3",{className:"text-lg font-black text-[#12344f]",children:r.title}),s.jsx("p",{className:"mt-2 text-sm text-[#35556d]",children:r.excerpt}),s.jsx("a",{href:r.href,className:"mt-3 inline-block font-bold text-[#1b5676] hover:underline",children:"Read More"})]},r.id))})]})}),s.jsx("section",{className:"bg-gradient-to-b from-[#e2eaf2] via-[#eef3f8] to-[#dce4ee] py-20",children:s.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center",children:[s.jsx("h2",{className:"text-3xl font-black text-hba-blue-1 md:text-4xl",children:"Review Your Medicare Options During Enrollment Season"}),s.jsx("p",{className:"mt-4 text-hba-blue-2",children:"We'll help you compare your choices, understand enrollment timing, and choose coverage that fits your needs."}),s.jsxs("div",{className:"mt-8 flex flex-wrap justify-center gap-4",children:[s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"rounded-xl bg-hba-orange-1 px-6 py-3 text-sm font-black uppercase tracking-[0.12em] text-white transition hover:bg-hba-orange-2",children:"Talk to a Broker"}),s.jsx(ue,{to:"/medicare-quote-request/",className:"rounded-xl border border-hba-blue-1/20 px-6 py-3 text-sm font-black uppercase tracking-[0.12em] text-hba-blue-1 transition hover:bg-hba-blue-1/5",children:"Review Medicare Plans"})]})]})})]})}const UW="https://www.medicare.gov",a1e="https://www.medicare.gov/account/login",s1e="https://www.medicare.gov/health-drug-plans/part-d",qW="https://www.medicare.gov/plan-compare/#/?lang=en&year=2026",Rg=[{label:"Review Part D Plans",href:qW},{label:"Talk to a Broker",to:"/reno-health-insurance-broker/"}],i1e=[{title:"Original Medicare does not include drug coverage",description:"Medicare Parts A and B cover medical and hospital services, but they do not cover most outpatient prescription drugs.",icon:dc},{title:"Part D is often paired with Medicare Supplement plans",description:"Many people with a Medicare Supplement plan also choose a stand-alone Part D Prescription Drug Plan (PDP).",icon:Kie},{title:"A minimum plan may still be important",description:"Even if you take few or no medications now, enrolling in Part D can help reduce the risk of future late-enrollment penalties.",icon:Rr}],o1e=[{title:"Visit Medicare.gov",details:["Go to Medicare.gov to start your drug plan review."]},{title:"Click âMyMedicare.gov Loginâ",details:["If you do not have an account, create one and follow the prompts.","If you already have an account, log in with your username and password."]},{title:"Enter your drugs and pharmacy",details:["Inside your account, click âEnter My Drugs & Pharmacies.â","Enter each prescription name, dosage, and frequency.","Enter your preferred pharmacy to compare plan pricing more accurately."]},{title:"Find and compare Drug Plans (Part D)",details:["Select âFind and Compare Plans,â then choose âDrug Plan (Part D).â","Use âSort plans byâ and choose âLowest Drug Plan + Premium Cost.â","The first option after sorting may represent the lowest annual overall cost."]}
849,{title:"Choose a plan and enroll",details:["Click âEnrollâ on the plan that best fits your needs and complete the application."]}],l1e=[{title:"1. Initial Coverage Stage",points:["You pay a copay or coinsurance based on the Part D plan you selected.","Many people remain in this phase all year, especially with fewer prescriptions or mostly generic medications.","Each medication is assigned a tier, and tiers have different prices.","Always confirm each drug tier directly with the carrier before enrolling."]},{title:"2. Catastrophic Stage",points:["The Medicare Part D maximum out-of-pocket amount is $2,100.","This threshold applies regardless of which Part D plan you choose.","After your total out-of-pocket spending for deductibles, copays, or coinsurance reaches $2,100, you pay $0 for covered medications.","This reflects the newer two-stage approach and replaces the older coverage gap (âdonut holeâ) model."]}],c1e=[{label:"Medicare.gov",href:UW,external:!0,description:"Official Medicare website for plan and enrollment tools."},{label:"MyMedicare Login",href:a1e,external:!0,description:"Sign in to enter drugs, pharmacies, and compare plans."},{label:"Medicare Prescriptions",href:s1e,external:!0,description:"Medicare.gov information about Part D prescription drug coverage."},{label:"Part D Annual Enrollment",href:"/nevada-part-d-annual-enrollment/",external:!1,description:"Learn about annual review timing and enrollment windows."},{label:"Contact Us",href:"/reno-health-insurance-broker/",external:!1,description:"Talk with a broker for no-cost insurance guidance."}],u1e=[{question:"Do I need Part D if I do not take prescriptions now?",answer:"Many people still enroll in at least a basic Part D plan to avoid possible future late-enrollment penalties and to have coverage in place if medication needs change."},{question:"Can I enroll in Part D without Medicare Part A and Part B?",answer:"No. You must be enrolled in Medicare Part A and eligible for Part B to enroll in a stand-alone Medicare Part D plan."},{question:"Why does my preferred pharmacy matter?",answer:"Plan costs can vary by pharmacy. Entering your actual pharmacy helps estimate total annual costs more accurately when you compare options."},{question:"How do I know which plan has the lowest total cost?",answer:"Sorting by âLowest Drug Plan + Premium Costâ can be more useful than looking at premium alone, because it considers both monthly premium and expected medication costs."}],wd=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:t}),e?s.jsx("p",{className:"mt-4 text-lg leading-relaxed text-hba-grey-1",children:e}):null]}),d1e=()=>s.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-hba-blue-2 via-hba-blue-1 to-[#1a2830] py-20 text-white md:py-24",children:[s.jsxs("div",{className:"absolute inset-0 opacity-20",children:[s.jsx("div",{className:"absolute -top-20 right-0 h-72 w-72 rounded-full bg-hba-orange-1 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 left-0 h-80 w-80 rounded-full bg-sky-500/30 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4",children:[s.jsx("h1",{className:"max-w-4xl text-4xl font-black leading-tight tracking-tight text-white md:text-6xl",children:"Medicare Prescription Drug Plans"}),s.jsx("p",{className:"mt-6 max-w-4xl text-lg leading-relaxed text-white/90 md:text-xl",children:"Original Medicare Parts A and B do not cover prescription drugs. A stand-alone Medicare prescription drug plan is available, and these plans are known as Part D. Even if you are not taking medications today, it can still be important to enroll in a minimum plan to avoid a penalty."}),s.jsx("div",{className:"mt-8 max-w-4xl rounded-2xl border border-white/25 bg-white/10 p-5 backdrop-blur-sm",children:s.jsx("p",{className:"text-base font-semibold leading-relaxed text-white md:text-lg",children:"You cannot enroll in Medicare Part D unless you are enrolled in Part A and eligible for Part B."})}),s.jsxs("div",{className:"mt-10 flex flex-col gap-4 sm:flex-row",children:[s.jsxs("a",{href:Rg[0].href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:[Rg[0].label,s.jsx(Lt,{className:"h-4 w-4","aria-hidden":!0})]}),s.jsxs(ue,{to:Rg[1].to,className:"inline-flex items-center justify-center gap-2 rounded-xl border-2 border-white/35 bg-white/10 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:border-white/60 hover:bg-white/15",children:[Rg[1].label,s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})]})]})]}),h1e=({links:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:t.map(e=>e.external?s.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"rounded-2xl border border-hba-blue-1/10 bg-white p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:border-hba-orange-1/50 hover:shadow-md",children:[s.jsx("p",{className:"font-black text-hba-blue-1",children:e.label}),s.jsx("p",{className:"mt-2 text-sm leading-relaxed text-hba-grey-1",children:e.description}),s.jsxs("span",{className:"mt-4 inline-flex items-center gap-2 text-xs font-black uppercase tracking-wider text-hba-orange-1",children:["Open resource",s.jsx(Lt,{className:"h-3.5 w-3.5","aria-hidden":!0})]})]},e.label):s.jsxs(ue,{to:e.href,className:"rounded-2xl border border-hba-blue-1/10 bg-white p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:border-hba-orange-1/50 hover:shadow-md",children:[s.jsx("p",{className:"font-black text-hba-blue-1",children:e.label}),s.jsx("p",{className:"mt-2 text-sm leading-relaxed text-hba-grey-1",children:e.description}),s.jsxs("span",{className:"mt-4 inline-flex items-center gap-2 text-xs font-black uppercase tracking-wider text-hba-orange-1",children:["Open resource",s.jsx(Xe,{className:"h-3.5 w-3.5","aria-hidden":!0})]})]},e.label))});function f1e(){return s.jsxs("div",{className:"bg-slate-100",children:[s.jsx(d1e,{}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-14 md:py-18",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsx("div",{className:"max-w-4xl rounded-2xl border border-hba-blue-1/15 bg-hba-blue-1/[0.06] p-6 md:p-8",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(lie,{className:"mt-0.5 h-5 w-5 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsxs("div",{className:"space-y-3 text-hba-blue-1",children:[s.jsx("p",{className:"font-semibold leading-relaxed",children:"You cannot enroll in Medicare Part D without enrolling in Medicare Part A and being eligible for Part B."}),s.jsx("p",{className:"leading-relaxed text-hba-grey-1",children:"If you are not yet enrolled in Medicare Parts A and B, please contact the Social Security Administration as early as 3 months before your 65th birthday."})]})]})})})}),s.jsx("section",{className:"bg-hba-blue-1/[0.08] py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(wd,{title:"Why Part D Matters"}),s.jsx("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-3",children:i1e.map(t=>{const e=t.icon;return s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(e,{className:"h-6 w-6","aria-hidden":!0})}),s.jsx("h3",{className:"mt-5 text-xl font-black tracking-tight text-hba-blue-1",children:t.title}),s.jsx("p",{className:"mt-3 leading-relaxed text-hba-grey-1",children:t.description})]},t.title)})})]})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(wd,{title:"Enrolling in Medicare Prescription Drug Plans",subtitle:"Many Medicare beneficiaries who have a Medicare Supplement plan also purchase a Medicare Part D Prescription Drug Plan to help pay for medications. Original Medicare and Medicare Supplement plans cover medical costs, but not prescription drugs."}),s.jsx("div",{className:"mt-10 space-y-4",children:o1e.map((t,e)=>s.jsx("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-slate-50 p-6 md:p-7",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-hba-orange-1 text-sm font-black text-white",children:e+1}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-black tracking-tight text-hba-blue-1 md:text-xl",children:t.title}),s.jsx("ul",{className:"mt-3 space-y-2",children:t.details.map(r=>s.jsxs("li",{className:"flex gap-2 text-hba-grey-1",children:[s.jsx(er,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{className:"leading-relaxed",children:r})]},r))})]})]})},t.title))}),s.jsx("div",{className:"mt-10",children:s.jsxs("a",{href:UW,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-xl bg-hba-blue-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-blue-2",children:["Go to Medicare.gov",s.jsx(Lt,{className:"h-4 w-4","aria-hidden":!0})]})})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.08] py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(wd,{title:"Drug and Pharmacy Review Guidance"}),s.jsxs("div",{className:"mt-8 max-w-4xl space-y-4 text-lg leading-relaxed text-hba-grey-1",children:[s.jsx("p",{children:"Entering the right prescriptions and preferred pharmacy is important, because those details can significantly change your estimated annual cost."}),s.jsx("p",{children:"Comparing plans by total annual drug plus premium cost is often more useful than looking at premium alone. Formularies and pharmacy pricing can also change each year."}),s.jsx("p",{className:"rounded-xl border border-hba-blue-1/10 bg-white p-5 text-hba-blue-1",children:"We can help you review drug and pharmacy information if you are not sure how to compare your options."})]})]})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(wd,{title:"Medicare Part D Prescription Plans Include 2 Drug Payment Stages"}),s.jsx("div",{className:"mt-10 grid grid-cols-1 gap-6 lg:grid-cols-2",children:l1e.map(t=>s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-slate-50 p-6 md:p-8",children:[s.jsx("h3",{className:"text-2xl font-black tracking-tight text-hba-blue-1",children:t.title}),s.jsx("ul",{className:"mt-5 space-y-3",children:t.points.map(e=>s.jsxs("li",{className:"flex gap-2 text-hba-grey-1",children:[s.jsx(er,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{className:"leading-relaxed",children:e})]},e))})]},t.title))})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.08] py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(wd,{title:"Helpful links & resources"}),s.jsx("div",{className:"mt-10",children:s.jsx(h1e,{links:c1e})})]})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(wd,{title:"Common questions"}),s.jsx("div",{className:"mt-8 space-y-4",children:u1e.map(t=>s.jsxs("details",{className:"group rounded-xl border border-hba-blue-1/10 bg-slate-50 p-5",children:[s.jsxs("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-4 font-black text-hba-blue-1",children:[t.question,s.jsx("span",{className:"text-hba-orange-1 transition-transform group-open:rotate-45",children:"+"})]}),s.jsx("p",{className:"mt-3 leading-relaxed text-hba-grey-1",children:t.answer})]},t.question))})]})}),s.jsx("section",{className:"relative border-t-4 border-hba-orange-1 bg-gradient-to-b from-white via-slate-50 to-slate-100 py-20 shadow-[0_-12px_40px_-20px_rgba(40,60,68,0.12)]",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4 text-center",children:[s.jsx("h2",{className:"mx-auto max-w-3xl text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:"Need Help Comparing Medicare Prescription Drug Plans?"}),s.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-lg text-hba-grey-1",children:"We'll help you review prescriptions, pharmacies, and plan costs so you can compare Part D options with confidence."}),s.jsxs("div",{className:"mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row",children:[s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Talk to a Broker",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]}),s.jsxs("a",{href:qW,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-xl border-2 border-hba-blue-1/25 bg-white px-7 py-4 font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:["Review Part D Plans",s.jsx(Lt,{className:"h-4 w-4","aria-hidden":!0})]})]})]})})]})}const p1e="https://www.medicare.gov",m1e="https://www.medicare.gov/basics/costs/medicare-costs/avoid-penalties",g1e=[{embedUrl:"https://www.youtube.com/embed/SQg3N-lvWHY",title:"Nevada Part D video 1"},{embedUrl:"https://www.youtube.com/embed/CxxfHDzwgIg",title:"Nevada Part D video 2"},{embedUrl:"https://www.youtube.com/embed/wIgdpfQRC5k",title:"Nevada Part D video 3"}],b1e=[{title:"Visit Medicare.gov",details:["On the top right corner, click âMyMedicare.gov Login.â"]},{title:"Create an account or log in",details:["If you do not have an existing account, click âCreate Accountâ and follow the prompts.","If you already created an account, enter your username and password and log in."]},{title:"Enter your drugs and pharmacies",details:["Once logged in, click âEnter My Drugs & Pharmacies.â","Enter each prescription name, frequency, and dosage.","Enter the pharmacy you prefer to use.","This information helps estimate which Part D plan may fit your needs."]},{title:"Find and compare Drug Plans (Part D)",details:["Select âFind and Compare Plans,â then select âDrug Plan (Part D).â","In the top right area, use the âSort plans byâ box.","We recommend sorting by âLowest Drug Plan + Premium Cost.â","Medicare will show estimated drug cost plus monthly premium under each plan.","Review the first plan after sorting because it may represent the lowest annual total cost."]},{title:"Enroll in the plan you choose",details:["Click âEnrollâ and follow the application steps to begin Part D coverage."]}],x1e=[{question:"Do Part D drug plans ask health questions?",answer:"Part D drug plans never ask health questions. There are certain times of the year when you can purchase a Part D drug plan. Most people enroll in drug plans during the Annual Enrollment Period.",links:[{label:"Learn when you can enroll in a drug plan",href:"/medicare-prescription-drug-plans/"}]},{question:"Can I change my Medicare Advantage plan and enroll in a Medicare Supplement Plan?",answer:"Yes, but timing is everything. There are certain times of year when you can disenroll from a Medicare Advantage Plan. For most people, they terminate Medicare Advantage coverage during the Annual Enrollment Period or during the Open Enrollment Period. The Annual Enrollment Period starts on October 15 and ends on December 7. The Open Enrollment Period starts on January 1 and ends on March 31. Fortunately, you can apply for a Medicare Supplement plan at any time of year. Most people need to answer health questions and may be denied coverage based on preexisting conditions. Because of this, we recommend confirming your acceptance into a Medicare Supplement plan first before terminating your Medicare Advantage plan.",links:[{label:"Learn more about Medicare Supplement plans",href:"/medicare/"}]},{question:"How much does it cost to use a broker?",answer:"There are no costs or fees to use a b
849roker. Our trained Medicare advisors help you shop plans, understand your options, and review claims. The insurance company you enroll in pays for our fees, not you.",links:[{label:"Learn more about our brokers",href:"/our-team"}]},{question:"Do Medicare Supplement plans include dental coverage?",answer:"Medicare Supplement plans do not include dental coverage. Dental coverage can be purchased separately at an additional premium.",links:[{label:"Shop dental plans",href:"/dental-insurance/"}]},{question:"When can I enroll in coverage?",answer:"Some people may qualify to enroll outside the standard annual timing. Common situations include recently turning 65, just enrolling in Part B, moving to Nevada in the past 60 days, losing coverage in the past 60 days, enrolling during the Annual Enrollment Period, changing plans during the Open Enrollment Period, or qualifying through dual eligibility with Medicaid.",bullets:["Recently turned 65 years old","Just enrolled in Part B","Moved to Nevada in the past 60 days","Lost coverage in the past 60 days","During the Annual Enrollment Period","Changing plans during the Open Enrollment Period","Dual eligibility with Medicaid"],links:[{label:"Learn more about Special Enrollment Periods and next-month coverage",href:"/nevada-medicare-advantage-enrollment-period/"}]},{question:"What are the main differences between Medicare Supplement insurance companies?",answer:"All Medicare Supplement insurance companies are required to cover the same medical benefits and doctors. The major differences are rate increases and customer service. There are dozens of Medicare Supplement insurance companies in Nevada. Many of them offer low rates at age 65 but dramatically increase rates over time. The companies we work with are household names with a history of lower year-to-year increases.",links:[{label:"Learn more about finding the right plan at the lowest cost",href:"/medicare/"}]},{question:"Which Medicare Supplement plan is best?",answer:"Our office generally recommends Plan G with a well-known nationwide insurance carrier. Plan G is the highest benefit Medicare Supplement policy available to newly eligible enrollees today. Some people still have older plans like Plan F, which are no longer available to newly eligible people. If you are healthy, have no preexisting conditions, and currently have Plan F, it may be worth reviewing whether converting to Plan G makes sense.",links:[{label:"Learn more about the differences between Plan F and Plan G",href:"/medicare/"}]},{question:"Can I change my Medicare Supplement plan and enroll in a Medicare Advantage plan?",answer:"Yes, you can change plans, but timing is everything. You can switch during the Annual Enrollment Period or if you qualify for a Special Enrollment Period. These windows do not last forever, so it is important to shop your options and apply before time runs out.",links:[{label:"Learn more about the Annual Enrollment Period",href:"/nevada-medicare-advantage-enrollment-period/"},{label:"Learn more about Special Enrollment Periods",href:"/nevada-medicare-advantage-enrollment-period/"}]},{question:"What is the average rate increase on a Medicare Supplement plan?",answer:"Rates increase based on a few different factors. Every year you get older, the rate usually increases by roughly 3 to 7 percent. On top of that, the insurance company may increase rates for all members based on overall claims. Also, each year Original Medicare may leave more cost-sharing to the supplement plan. Insurance companies cannot single you out and raise your rate because you use the plan more than others. If your Medicare Supplement plan is too expensive, there are often options to reduce your monthly premium.",links:[{label:"Learn more about reducing supplement costs",href:"/medicare/"}]},{question:"Medicare Supplement plans â are they HMO or PPO?",answer:"Medicare Supplement plans are neither HMO nor PPO. They are their own classification of coverage. You also do not need a referral to see a specialist on a Medicare Supplement plan. Unlike Medicare Supplement plans, Medicare Advantage plans are usually offered as HMO or PPO."},{question:"How do I know if my doctor accepts my Medicare Supplement plan?",answer:"If your doctor accepts Medicare, then they accept your Medicare Supplement plan. It is that simple.",links:[{label:"Search doctors who accept Medicare",href:"https://www.medicare.gov/care-compare/"}]},{question:"Can I use my HSA when enrolled in a Medicare Supplement plan?",answer:"Yes. If you have an existing Health Savings Account, you can still use your pretax funds to pay for approved expenses in Medicare. However, once you are enrolled in Medicare, you generally cannot contribute additional money to your HSA.",links:[{label:"Learn more about HSAs",href:"/major-medical-insurance-plans/"}]},{question:"Does my Medicare plan cover long term care coverage?",answer:"No. Medicare plans do not cover long term care coverage. To get long term care coverage, you need to enroll in a separate long term care policy.",links:[{label:"Learn more about long term care",href:"/reno-health-insurance-broker/"}]},{question:"How do I renew my Part D drug plan?",answer:"Part D drug plans usually do not require you to do anything to renew. Your insurance company will send you a letter discussing next yearâs benefits and pricing. In that letter, they will explain if any action is needed. Most insurance companies renew your coverage automatically without requiring additional paperwork."},{question:"How do I renew my Medicare Supplement plan?",answer:"Medicare Supplement plans automatically renew. Once you are enrolled, your coverage continues year to year. Your rates usually increase once or twice per year based on several factors. If you want to switch from one Medicare Supplement plan to another, you can do so at any time, although most people need to answer health questions when switching plans.",links:[{label:"Learn more about switching supplement plans",href:"/medicare/"}]}],y1e=[{category:"Part D Education",title:"How to Compare Part D Plans by Total Annual Cost",excerpt:"Why premium alone can be misleading, and how drug list and pharmacy choice can change your yearly spend.",href:"/blog-news/"},{category:"Enrollment Timing",title:"Annual Enrollment vs Open Enrollment: What Changes?",excerpt:"A practical timeline to help Medicare shoppers understand when different plan changes are available.",href:"/blog-news/"},{category:"Medicare Supplement",title:"How Part D Works Alongside Medicare Supplement Plans",excerpt:"A quick guide to coordinating medical and prescription coverage without gaps.",href:"/blog-news/"}],yp=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:t}),e?s.jsx("p",{className:"mt-4 text-lg leading-relaxed text-hba-grey-1",children:e}):null]});function v1e(){return s.jsxs("div",{className:"bg-slate-100",children:[s.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-b from-[#dfe8f0] via-[#eef2f6] to-[#e8edf2] py-20 md:py-24",children:[s.jsxs("div",{className:"absolute inset-0 opacity-40",children:[s.jsx("div",{className:"absolute -top-20 right-0 h-72 w-72 rounded-full bg-hba-orange-1/35 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 left-0 h-80 w-80 rounded-full bg-sky-500/20 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4",children:[s.jsx("h1",{className:"max-w-4xl text-4xl font-black tracking-tight text-hba-blue-1 md:text-6xl",children:"Nevada Part D Enrollment Period"}),s.jsx("p",{className:"mt-6 max-w-4xl text-lg leading-relaxed text-hba-blue-2 md:text-xl",children:"Part D of Medicare covers your prescription drugs. If you have or need Part D, you probably also have a Medicare Supplement plan, also known as a Medigap plan. These policies do not have an Annual Open Enrollment Period. Medicare Supplement plans change in price usually once or twice per year. Without a Medicare Supplement plan, you are left with high out-of-pocket expenses which increase every year."}),s.jsx("p",{className:"mt-5 max-w-4xl text-lg leading-relaxed text-hba-blue-2",children:"Because of this, it is important to have a Medicare Supplement plan to help pay for the expenses not covered by Part A and Part B of Medicare."}),s.jsxs("div",{className:"mt-10 flex flex-col gap-4 sm:flex-row",children:[s.jsxs(ue,{to:"/medicare-prescription-drug-plans/",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Review Part D Options",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]}),s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center justify-center gap-2 rounded-xl border-2 border-hba-blue-1/25 bg-white px-7 py-4 font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:["Talk to a Broker",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})]})]})]}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(yp,{title:"How to Enroll in a Part D Plan",subtitle:"Enrolling in a Part D plan is quick and easy. The federal Medicare website helps people shop, compare, and enroll in Part D drug plans. Your drug plan information is saved securely on your Medicare.gov account from year to year, making the renewal process even easier. Best of all, these plans never ask health questions."}),s.jsx("div",{className:"mt-10 space-y-4",children:b1e.map((t,e)=>s.jsx("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-slate-50 p-6 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md md:p-7",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-hba-orange-1 text-sm font-black text-white",children:e+1}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-black tracking-tight text-hba-blue-1 md:text-xl",children:t.title}),s.jsx("ul",{className:"mt-3 space-y-2",children:t.details.map(r=>s.jsxs("li",{className:"flex gap-2 text-hba-grey-1",children:[s.jsx(er,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{className:"leading-relaxed",children:r})]},r))})]})]})},t.title))}),s.jsx("div",{className:"mt-10",children:s.jsxs("a",{href:p1e,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-xl bg-hba-blue-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-blue-2",children:["Go to Medicare.gov",s.jsx(Lt,{className:"h-4 w-4","aria-hidden":!0})]})})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.08] py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(yp,{title:"The Importance of Drug Coverage"}),s.jsxs("div",{className:"mt-8 max-w-4xl space-y-5 text-lg leading-relaxed text-hba-grey-1",children:[s.jsx("p",{children:"The government penalizes people who do not have creditable drug coverage, even if they are not taking prescriptions. Because of this, we recommend getting at least a low-cost Part D prescription drug plan to avoid lifetime penalties."}),s.jsx("p",{children:"The easiest time to do this is during the Nevada Part D Annual Enrollment period. Low-cost Part D drug plans are usually less than $20 per month."}),s.jsxs("a",{href:m1e,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 font-black text-hba-orange-1 transition-colors hover:text-hba-orange-2",children:["Learn more about the Part D Late Enrollment Penalty",s.jsx(Lt,{className:"h-4 w-4","aria-hidden":!0})]})]})]})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(yp,{title:"Part D Video Guides",subtitle:"Quick explainers before you review FAQs."}),s.jsx("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:g1e.map(t=>s.jsx("article",{className:"overflow-hidden rounded-2xl border border-hba-blue-1/10 bg-slate-50 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md",children:s.jsx("div",{className:"aspect-video",children:s.jsx("iframe",{className:"h-full w-full",src:t.embedUrl,title:t.title,loading:"lazy",allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture;
849 web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})})},t.embedUrl))})]})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(yp,{title:"Frequently Asked Questions About the Nevada Part D Enrollment Period"}),s.jsx("div",{className:"mt-8 space-y-4",children:x1e.map(t=>s.jsxs("details",{className:"group rounded-xl border border-hba-blue-1/10 bg-slate-50 p-5 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md",children:[s.jsxs("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-4 font-black text-hba-blue-1",children:[t.question,s.jsx("span",{className:"text-hba-orange-1 transition-transform group-open:rotate-45",children:"+"})]}),s.jsx("p",{className:"mt-3 leading-relaxed text-hba-grey-1",children:t.answer}),"bullets"in t&&t.bullets?s.jsx("ul",{className:"mt-3 space-y-2",children:t.bullets.map(e=>s.jsxs("li",{className:"flex gap-2 text-hba-grey-1",children:[s.jsx(dc,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:e})]},e))}):null,"links"in t&&t.links?s.jsx("div",{className:"mt-4 flex flex-wrap gap-3",children:t.links.map(e=>e.href.startsWith("http")?s.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-lg border border-hba-blue-1/20 bg-white px-3 py-2 text-xs font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:[e.label,s.jsx(Lt,{className:"h-3.5 w-3.5","aria-hidden":!0})]},e.label):s.jsxs(ue,{to:e.href,className:"inline-flex items-center gap-2 rounded-lg border border-hba-blue-1/20 bg-white px-3 py-2 text-xs font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:[e.label,s.jsx(Xe,{className:"h-3.5 w-3.5","aria-hidden":!0})]},e.label))}):null]},t.question))})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.08] py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(yp,{title:"Related Medicare Articles"}),s.jsx("div",{className:"mt-8 grid grid-cols-1 gap-5 md:grid-cols-3",children:y1e.map(t=>s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-wider text-hba-orange-1",children:t.category}),s.jsx("h3",{className:"mt-3 text-xl font-black tracking-tight text-hba-blue-1",children:t.title}),s.jsx("p",{className:"mt-3 leading-relaxed text-hba-grey-1",children:t.excerpt}),s.jsxs("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"mt-5 inline-flex items-center gap-2 text-sm font-black uppercase tracking-wider text-hba-blue-1 hover:text-hba-orange-1",children:["Read More",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})]},t.title))})]})})]})}const w1e="[email protected]";function f3(t){return(t==null?void 0:t.trim())||""}function kh(t,e){const r=t.images??{},n=f3(r.cardDefault),a=f3(r.cardHover),i=f3(r.hero);return e==="cardHover"?a||n:e==="hero"&&i||n}function N1e(t){var e;return((e=t.email)==null?void 0:e.trim())||w1e}const j1e=ut("/api/team"),WW="hba.team.list.v1",k1e=3600*1e3;function S1e(){try{const t=sessionStorage.getItem(WW);if(!t)return null;const e=JSON.parse(t);return!e||!Array.isArray(e.data)||Date.now()-e.fetchedAt>k1e?null:e.data}catch{return null}}function C1e(t){try{const e={fetchedAt:Date.now(),data:t};sessionStorage.setItem(WW,JSON.stringify(e))}catch{}}function $1e(t){return[...t].sort((e,r)=>(e.sortOrder??0)-(r.sortOrder??0))}let vp=null;async function Ty(t){{const e=S1e();if(e)return e;if(vp)return vp}vp=(async()=>{const e=await fetch(j1e);if(!e.ok)throw new Error("Failed to load team");const r=await e.json(),n=$1e(Array.isArray(r)?r:[]);return C1e(n),n})();try{return await vp}finally{vp=null}}async function _1e(t){return(await Ty()).find(r=>r.slug===t)??null}const GW=["Jasmine Ramirez","CJ Weaver","Kyle Devries"],A1e={"Amy Beck":"(775) 362-3301","CJ Weaver":"(775) 964-5880","Jasmine Ramirez":"(775) 501-8003","Katie Mendoza":"(775) 302-2235","Kyle Devries":"(775) 828-5704","Lani Karosich":"(775) 501-8041","Mackenzie Seaton":"(775) 302-2231","Trevor VanBoven":"(775) 501-8040"},E1e={"Jasmine Ramirez":{displayTitle:"Individual & Medicare Broker",npn:"20793533",email:"[email protected]"},"CJ Weaver":{displayTitle:"Individual, Medicare & Group Broker",npn:"20336949",email:"[email protected]"},"Kyle Devries":{displayTitle:"Individual, Medicare & Group Broker",npn:"17969127",email:"[email protected]"}},O1e=[{title:"No Plan Changes",copy:"Your current health insurance plan, monthly rates, benefits, and renewal dates remain exactly the same.",icon:Rr},{title:"No Friction",copy:"There is no action required from you today. Your policy automatically transitions under our care.",icon:er},{title:"More Support",copy:"You now have a dedicated team of Reno-based brokers ready to advocate for you throughout the year.",icon:sn}],P1e=[{title:"Direct Advocacy",copy:"Whenever you need help checking a claim, updating billing, or navigating a network, call us directly."},{title:"Proactive Renewal Support",copy:"As annual enrollment or renewal approaches, your broker will reach out to review options and value."},{title:"Complete Privacy & Security",copy:"Your records have been transferred securely in accordance with federal HIPAA privacy regulations."}],M1e=["Sparks: 437 Pyramid Way, Sparks, NV 89431 - (775) 828-5701","Reno: 3716 Lakeside Dr, Reno, NV 89509 - (775) 828-1216","Carson: 405 N Roop St, Carson City, NV 89701 - (775) 362-3300","Fernley: 460 W Main St, Fernley, NV 89408 - (775) 828-0001"];function T1e(t){return`tel:${t.replace(/\D/g,"")}`}function R1e(t){return t.department==="Brokers"}function I1e({broker:t}){const e=kh(t,"cardDefault");return e?s.jsx(Dt,{src:e,alt:t.name,className:"h-full w-full object-cover transition duration-500 group-hover:scale-105"}):s.jsx("div",{className:"flex h-full w-full items-center justify-center bg-hba-blue-1/5 text-5xl font-black text-hba-blue-1",children:t.name.charAt(0)})}function D1e({broker:t}){const e=E1e[t.name]??{},r=A1e[t.name],n=e.email??(t.email!=="[email protected]"?t.email:""),a=GW.includes(t.name);return s.jsxs("article",{className:"group overflow-hidden rounded-2xl border border-hba-blue-1/10 bg-white shadow-sm shadow-hba-blue-1/5 transition hover:-translate-y-1 hover:shadow-xl hover:shadow-hba-blue-1/10",children:[s.jsx(ue,{to:`/our-team/${t.slug}`,className:"block focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-hba-orange-1",children:s.jsx("div",{className:"aspect-[4/5] overflow-hidden bg-slate-100",children:s.jsx(I1e,{broker:t})})}),s.jsxs("div",{className:"space-y-5 p-6",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.18em] text-hba-orange-1",children:a?"Health Quest Contact":"HBA Broker"}),s.jsx("h3",{className:"mt-2 text-2xl font-black tracking-tight text-hba-blue-1",children:t.name}),s.jsx("p",{className:"mt-1 text-sm font-bold text-hba-blue-2",children:e.displayTitle??t.title}),e.npn&&s.jsxs("p",{className:"mt-1 text-xs font-bold uppercase tracking-[0.14em] text-hba-grey-1",children:["NPN: ",e.npn]})]}),s.jsxs("div",{className:"space-y-3 border-t border-hba-blue-1/10 pt-5 text-sm font-bold text-hba-blue-2",children:[r&&s.jsxs("a",{href:T1e(r),className:"flex items-center gap-3 transition hover:text-hba-orange-1",children:[s.jsx(Ut,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),r]}),n&&s.jsxs("a",{href:`mailto:${n}`,className:"flex items-center gap-3 break-all transition hover:text-hba-orange-1",children:[s.jsx(Na,{className:"h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),n]})]})]})]})}function L1e(){const[t,e]=w.useState([]),[r,n]=w.useState(!0),[a,i]=w.useState(null);w.useEffect(()=>{let l=!1;async function c(){try{const u=await Ty();l||(e(u),i(null))}catch(u){l||(e([]),i(u.message))}finally{l||n(!1)}}return c(),()=>{l=!0}},[]);const o=w.useMemo(()=>{const l=t.filter(R1e);return GW.map(c=>l.find(u=>u.name===c)).filter(c=>!!c)},[t]);return s.jsxs("div",{className:"bg-[#f5f6f8]",children:[s.jsx("section",{className:"sticky top-[72px] z-40 border-b border-hba-orange-1/25 bg-hba-blue-1 px-4 py-3 text-center text-sm font-black uppercase tracking-[0.14em] text-white md:text-base",children:"Looking for Health Quest Insurance? You are in the right place."}),s.jsxs("section",{className:"relative overflow-hidden bg-hba-blue-1 text-white",children:[s.jsx(Dt,{src:Ya.renoLandscape,alt:"Reno, Nevada landscape",className:"absolute inset-0 h-full w-full object-cover opacity-45"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-hba-blue-1 via-hba-blue-1/80 to-hba-blue-2/70"}),s.jsxs("div",{className:"relative mx-auto grid min-h-[calc(100vh-9rem)] max-w-7xl gap-10 px-4 py-16 md:py-20 lg:grid-cols-[1.08fr_0.92fr] lg:items-center",children:[s.jsxs("div",{className:"max-w-4xl text-white",children:[s.jsxs("p",{className:"inline-flex items-center gap-2 rounded-full bg-white/14 px-4 py-2 text-xs font-black uppercase tracking-[0.22em] text-white ring-1 ring-white/25",children:[s.jsx(ls,{className:"h-4 w-4","aria-hidden":!0}),"Health Quest Transition"]}),s.jsx("h1",{className:"mt-7 text-4xl font-black tracking-tight text-white drop-shadow-sm md:text-6xl lg:text-7xl",children:"Health Quest clients, welcome to Health Benefits Associates."}),s.jsx("p",{className:"mt-6 max-w-3xl text-xl font-semibold leading-relaxed text-white/90 drop-shadow-sm md:text-2xl",children:"Susan and Hardy Thrower have retired and personally entrusted their clients to our local HBA team. Your plan, rates, benefits, and renewal dates remain exactly the same."}),s.jsx("p",{className:"mt-4 max-w-3xl text-lg leading-relaxed text-white/82",children:"There is no action required from you today. When questions come up, Jasmine, CJ, and Kyle are your dedicated Health Quest transition contacts."}),s.jsxs("div",{className:"mt-10 flex flex-col gap-4 sm:flex-row sm:flex-wrap",children:[s.jsxs("a",{href:"#health-quest-brokers",className:"inline-flex min-h-[54px] items-center justify-center gap-3 rounded-2xl bg-hba-orange-1 px-7 py-4 text-sm font-black uppercase tracking-[0.12em] text-white shadow-xl shadow-black/20 transition hover:bg-hba-orange-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-white",children:["Meet Your Dedicated Team",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]}),s.jsx(ue,{to:"/medicare-quote-request/",className:"inline-flex min-h-[54px] items-center justify-center rounded-2xl border border-white/35 bg-white/10 px-7 py-4 text-sm font-black uppercase tracking-[0.12em] text-white backdrop-blur transition hover:bg-white/18 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-white",children:"Looking for a New Quote?"})]})]}),s.jsxs("div",{className:"rounded-3xl border border-white/20 bg-white/12 p-5 shadow-2xl shadow-black/20 backdrop-blur md:p-7",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.22em] text-hba-orange-1",children:"What this means for you"}),s.jsx("div",{className:"mt-5 space-y-4",children:O1e.map(l=>s.jsx("article",{className:"rounded-2xl bg-white/92 p-5 text-hba-blue-1",children:s.jsxs("div",{className:"flex gap-4",children:[s.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-hba-blue-1 text-white",children:s.jsx(l.icon,{className:"h-5 w-5","aria-hidden":!0})}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-lg font-black",children:l.title}),s.jsx("p",{className:"mt-1 text-sm leading-relaxed text-hba-grey-1",children:l.copy})]})]})},l.title))})]})]})]}),s.jsx("section",{id:"health-quest-brokers",className:"bg-[#edf2f6] py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.22em] text-hba-orange-1",children:"Meet Your Dedicated Support Team"}),s.jsx("h2",{className:"mt-3 text-3xl font-black tracking-tight text-hba-blue-1 md:text-5xl",children:"Health Quest accounts are supported by these three local brokers."}),s.jsx("p",{className:"mt-5 text-lg leading-relaxed text-hba-blue-2",children:"Jasmine, CJ, and Kyle are your dedicated transition contacts with direct phone numbers for ongoing support."})]}),r&&s.jsxs("div",{className:"flex justify-center py-16",children:[s.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-4 border-hba-orange-1 border-t-transparent","aria-hidden":!0}),s.jsx("span",{className:"sr-only",children:"Loading brokers"})]}),a&&s.jsxs("div",{className:"mx-auto mt-10 max-w-2xl rounded-2xl border border-red-200 bg-white p-6 text-center",children:[s.jsx("p",{className:"font-bold text-red-600",children:a}),s.jsx("p",{className:"mt-2 text-hba-grey-1",children:"Please try again later."})]}),!r&&!a&&s.jsx("div",{className:"mt-12 grid gap-8 md:grid-cols-3",children:o.map(l
849=>s.jsx(D1e,{broker:l},l.id))}),!r&&!a&&o.length===0&&s.jsx("div",{className:"mx-auto mt-10 max-w-2xl rounded-2xl border border-hba-blue-1/10 bg-white p-6 text-center text-hba-grey-1",children:"No Health Quest brokers are available to display at this time."}),s.jsxs("div",{className:"mx-auto mt-12 flex max-w-3xl flex-col items-center rounded-2xl bg-hba-blue-1 p-7 text-center text-white md:p-8",children:[s.jsx("p",{className:"text-xl font-black",children:"Not sure who your specific broker is?"}),s.jsx("p",{className:"mt-2 text-white/80",children:"No problem. Call and we will get you straight to your broker."}),s.jsxs("a",{href:"tel:7758354423",className:"mt-5 inline-flex min-h-[50px] items-center justify-center gap-3 rounded-xl bg-hba-orange-1 px-6 py-3 text-sm font-black uppercase tracking-[0.12em] text-white transition hover:bg-hba-orange-2",children:[s.jsx(Ut,{className:"h-4 w-4","aria-hidden":!0}),"775-835-4423"]})]})]})}),s.jsx("section",{className:"bg-white py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto grid max-w-7xl gap-10 px-4 lg:grid-cols-2 lg:items-center",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.22em] text-hba-orange-1",children:"Looking for New Coverage?"}),s.jsx("h2",{className:"mt-3 text-3xl font-black tracking-tight text-hba-blue-1 md:text-5xl",children:"Referred to Health Quest Insurance? You are in the right place."}),s.jsx("p",{className:"mt-5 text-lg leading-relaxed text-hba-blue-2",children:"While Susan and Hardy have retired, the team at Health Benefits Associates is ready to help you find the right health, Medicare, or employer group plan in Northern Nevada."}),s.jsxs("div",{className:"mt-8 flex flex-col gap-4 sm:flex-row",children:[s.jsx(ue,{to:"/medicare-quote-request/",className:"inline-flex min-h-[52px] items-center justify-center rounded-2xl bg-hba-orange-1 px-7 py-3.5 text-sm font-black uppercase tracking-[0.12em] text-white transition hover:bg-hba-orange-2",children:"Use Our Quick Quote Engine"}),s.jsx("a",{href:"tel:7758281216",className:"inline-flex min-h-[52px] items-center justify-center rounded-2xl border border-hba-blue-1/20 px-7 py-3.5 text-sm font-black uppercase tracking-[0.12em] text-hba-blue-1 transition hover:border-hba-orange-1/40 hover:bg-hba-orange-1/5",children:"Call 775-828-1216"})]})]}),s.jsx("div",{className:"grid gap-4 sm:grid-cols-3 lg:grid-cols-1",children:P1e.map(l=>s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-[#f8fafc] p-6",children:[s.jsx("h3",{className:"text-lg font-black text-hba-blue-1",children:l.title}),s.jsx("p",{className:"mt-2 text-sm leading-relaxed text-hba-grey-1",children:l.copy})]},l.title))})]})}),s.jsx("section",{className:"border-t border-hba-blue-1/10 bg-[#eef3f8] py-14",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsxs("div",{className:"flex flex-col gap-8 lg:flex-row lg:items-start lg:justify-between",children:[s.jsxs("div",{className:"max-w-2xl",children:[s.jsxs("div",{className:"flex items-center gap-3 text-hba-orange-1",children:[s.jsx(Koe,{className:"h-5 w-5","aria-hidden":!0}),s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.22em]",children:"Warm Regards"})]}),s.jsx("h2",{className:"mt-3 text-2xl font-black tracking-tight text-hba-blue-1 md:text-3xl",children:"The Team at Health Benefits Associates"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-hba-blue-2",children:"If you want to call and say a quick hello to introduce yourself, our team is standing by."})]}),s.jsx("div",{className:"grid gap-3 text-sm font-bold text-hba-blue-2 sm:grid-cols-2 lg:max-w-xl",children:M1e.map(l=>s.jsxs("div",{className:"flex gap-3 rounded-xl bg-white p-4",children:[s.jsx(tr,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:l})]},l))})]})})})]})}const B1e="https://www.nvsos.gov/",H1e=[{title:"Pre-Tax Savings",intro:"Health insurance plans are paid pre-tax.",icon:jle,bullets:["This means they are calculated before Medicare and Social Security, as well as federal income taxes.","This is often the largest single tax deduction allowed by the IRS.","In addition to lower premiums, employees will also pay for their plan with pre-tax dollars."]},{title:"More Policy Options",intro:"There is a greater selection of insurance companies for group plans in Nevada.",icon:jy,bullets:["This gives you flexibility when starting a plan to choose a company that fits well with your demographic.","You can also switch carriers at any time during the year. You do not have this option if you are on an individual insurance policy.","Rates for group plans are also generally more stable from year to year. Increases are usually not as high at your renewal."],note:"Our office can help you find the best fit for your business or help you switch if you are unhappy with your current carrier."},{title:"More Doctors",intro:"Your plan will have more providers in-network.",icon:mi,bullets:["With a greater selection of PPO plans, your employees can enjoy more choices and freedom.","Some plans al
849so come with a national network. This can be a great option if you have employees working in other states.","Most insurance companies have a larger doctor list specifically designed for groups."],note:"We will help search for specific doctors in-network for your employeesâ needs."}],F1e=[{category:"Commercial Health Insurance",title:"Group Health Insurance Strategies That Will Save You Money",excerpt:"Practical ways Nevada employers can review plan design and carrier options to manage group health costs over time.",href:"/blog-news/"},{category:"Small Group Health Insurance",title:"Employer Health Insurance Plans",excerpt:"What to know when comparing small group coverage, contributions, and enrollment for your team.",href:"/blog-news/"},{category:"Small Group Health Insurance",title:"Multiple Employer Welfare Arrangements",excerpt:"A high-level look at MEWAs and how they may fit certain employer situations â with broker guidance.",href:"/blog-news/"}],Ry=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:t}),e?s.jsx("p",{className:"mt-4 text-lg leading-relaxed text-hba-grey-1",children:e}):null]}),z1e=()=>s.jsxs("section",{className:"relative overflow-hidden border-b border-hba-blue-1/10 bg-gradient-to-b from-[#dfe8f0] via-[#eef2f6] to-[#e8edf2] py-16 md:py-24",children:[s.jsxs("div",{className:"absolute inset-0 opacity-50",children:[s.jsx("div",{className:"absolute -right-20 top-0 h-96 w-96 rounded-full bg-hba-orange-1/20 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 left-0 h-80 w-80 rounded-full bg-hba-blue-1/10 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto grid max-w-7xl gap-12 px-4 lg:grid-cols-2 lg:items-center",children:[s.jsxs("div",{children:[s.jsxs("p",{className:"inline-flex items-center gap-2 rounded-full border border-hba-blue-1/15 bg-white/80 px-4 py-1 text-xs font-black uppercase tracking-widest text-hba-blue-1",children:[s.jsx(el,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),"Nevada and Nationwide Employer Coverage"]}),s.jsx("h1",{className:"mt-5 text-4xl font-black tracking-tight text-hba-blue-1 md:text-5xl lg:text-6xl",children:"Coverage Options for Your Business"}),s.jsx("p",{className:"mt-2 text-xl font-semibold text-hba-blue-2 md:text-2xl",children:"Obtain personalized quotes in 24 hours."}),s.jsx("p",{className:"mt-6 max-w-xl text-lg leading-relaxed text-hba-grey-1",children:"Health Benefits Associates is an independent insurance brokerage. We help Nevada employers compare group health plans, review carrier options, and get quotes â with no-cost continued support."}),s.jsxs("div",{className:"mt-10 flex flex-col gap-4 sm:flex-row sm:flex-wrap",children:[s.jsxs(ue,{to:"/group-quote-request/",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Group Health Quote",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]}),s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center justify-center gap-2 rounded-xl border-2 border-hba-blue-1/25 bg-white px-7 py-4 font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:["Talk to a Broker",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})]})]}),s.jsx("div",{className:"relative mx-auto w-full max-w-lg lg:max-w-none",children:s.jsxs("div",{className:"rounded-3xl border border-hba-blue-1/10 bg-white/90 p-8 shadow-xl shadow-hba-blue-1/10 backdrop-blur-sm md:p-10",children:[s.jsxs("div",{className:"flex items-center gap-3 border-b border-hba-blue-1/10 pb-6",children:[s.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-2xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(uf,{className:"h-7 w-7","aria-hidden":!0})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-widest text-hba-grey-1",children:"Focusing on Your Needs"}),s.jsx("p",{className:"text-lg font-black text-hba-blue-1",children:"Compare · quote · enroll"})]})]}),s.jsxs("ul",{className:"mt-6 space-y-4 text-hba-blue-2",children:[s.jsxs("li",{className:"flex gap-3",children:[s.jsx(er,{className:"mt-0.5 h-5 w-5 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:"Evaluate carriers and plan designs side by side."})]}),s.jsxs("li",{className:"flex gap-3",children:[s.jsx(er,{className:"mt-0.5 h-5 w-5 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:"Benefit guidance for owners and HR teams."})]}),s.jsxs("li",{className:"flex gap-3",children:[s.jsx(er,{className:"mt-0.5 h-5 w-5 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:"Continued assistance all year for you and your employees."})]})]}),s.jsxs("div",{className:"mt-8 rounded-2xl bg-hba-blue-1/[0.06] p-4 text-sm font-medium text-hba-grey-1",children:[s.jsx(tr,{className:"mb-2 inline h-4 w-4 text-hba-orange-1","aria-hidden":!0})," Offices available near you with experts in your local health system."]})]})})]})]}),V1e=()=>s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(Ry,{title:"Benefits of Small Group Plans"}),s.jsx("div",{className:"mt-12 grid grid-cols-1 gap-8 lg:grid-cols-3",children:H1e.map(t=>{const e=t.icon;return s.jsxs("article",{className:"flex flex-col rounded-2xl border border-hba-blue-1/10 bg-slate-50 p-6 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md md:p-8",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(e,{className:"h-6 w-6","aria-hidden":!0})}),s.jsx("h3",{className:"mt-5 text-xl font-black tracking-tight text-hba-blue-1",children:t.title}),s.jsx("p",{className:"mt-3 font-medium text-hba-blue-2",children:t.intro}),s.jsx("ul",{className:"mt-4 space-y-3",children:t.bullets.map(r=>s.jsxs("li",{className:"flex gap-2 text-sm leading-relaxed text-hba-grey-1",children:[s.jsx(er,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:r})]},r))}),"note"in t&&t.note?s.jsx("p",{className:"mt-6 rounded-xl border border-hba-orange-1/25 bg-white/80 p-4 text-sm font-medium text-hba-blue-2",children:t.note}):null]},t.title)})})]})}),U1e=()=>s.jsx("section",{className:"bg-hba-blue-1/[0.08] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(Ry,{title:"Group Requirements"}),s.jsxs("div",{className:"mt-12 grid grid-cols-1 gap-8 lg:grid-cols-3",children:[s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md md:p-8",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(Hie,{className:"h-6 w-6","aria-hidden":!0})}),s.jsx("h3",{className:"mt-5 text-xl font-black text-hba-blue-1",children:"Small Business Requirements"}),s.jsx("p",{className:"mt-3 font-medium text-hba-blue-2",children:"You may be eligible for a small business health insurance plan if:"}),s.jsx("ul",{className:"mt-4 space-y-3",children:["There are 2 or more full-time W-2 employees","You have a current Nevada state business license","Your business filed a Quarterly Wage and Contribution Report last quarter"].map(t=>s.jsxs("li",{className:"flex gap-2 text-sm text-hba-grey-1",children:[s.jsx(er,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:t})]},t))}),s.jsxs("p",{className:"mt-6 text-sm text-hba-grey-1",children:["Nevada state business license:"," ",s.jsxs("a",{href:B1e,target:"_blank",rel:"noopener noreferrer",className:"font-bold text-hba-orange-1 underline underline-offset-2 hover:text-hba-orange-2",children:["Nevada Secretary of State",s.jsx(Lt,{className:"ml-1 inline h-3.5 w-3.5","aria-hidden":!0})]})]})]}),s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md md:p-8",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(sn,{className:"h-6 w-6","aria-hidden":!0})}),s.jsx("h3",{className:"mt-5 text-xl font-black text-hba-blue-1",children:"Participation"}),s.jsx("p",{className:"mt-3 font-medium text-hba-blue-2",children:"Each insurance company has its own requirements for how many employees must enroll."}),s.jsx("ul",{className:"mt-4 space-y-3",children:["Depending on the insurance company, 50% to 75% of eligible employees must enroll in the small business health insurance plan.","Employees with other credible coverage can usually be excluded from this count.","Owners may enroll as long as they are taking a wage from the company. A W-2 or K-1 can prove this."].map(t=>s.jsxs("li",{className:"flex gap-2 text-sm text-hba-grey-1",children:[s.jsx(er,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:t})]},t))})]}),s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md md:p-8",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(coe,{className:"h-6 w-6","aria-hidden":!0})}),s.jsx("h3",{className:"mt-5 text-xl font-black text-hba-blue-1",children:"Association Health Plans"}),s.jsx("p",{className:"mt-3 font-medium text-hba-blue-2",children:"Due to new regulations on health insurance, businesses in Nevada can enroll in association health plans."}),s.jsx("ul",{className:"mt-4 space-y-3",children:["Your business can save anywhere from 5% to 20% per month on these plans.","While there are some differences, association plans are still considered fully qualified.","Your business will need to be part of each association to be eligible for the policy.","This usually includes a fee, but the savings on your monthly premium can outweigh that cost."].map(t=>s.jsxs("li",{className:"flex gap-2 text-sm text-hba-grey-1",children:[s.jsx(er,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:t})]},t))})]})]}),s.jsx("p",{className:"mx-auto mt-10 max-w-4xl rounded-2xl border border-hba-blue-1/15 bg-white p-6 text-center text-hba-blue-2 shadow-sm",children:"Our brokers can determine if your business is eligible and quote every association plan."})]})}
vendor: 14,561 bytes, line 849
849),q1e=[{title:"We Are Local",copy:"We have multiple offices across the state and has been helping local clients for over 25 years. You can sit down with one of our brokers face to face with any questions you have.",icon:tr},{title:"No Cost",copy:"There are zero fees for our services. We do not charge our clients, and your premium does not change if you go directly to the insurance company.",icon:Rr},{title:"Personal Touch",copy:"Our brokers can explain your policy and any new changes to you and your employees in benefit meetings. We want to ensure all your employees fully understand how the policy will work.",icon:sn},{title:"Coverage Options",copy:"We work with every major insurance company. If you are unhappy with your current choice, we can help you switch and help ensure that you do not miss your renewal deadline.",icon:cU}],W1e=()=>s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(Ry,{title:"Weâre a Full Service Insurance Brokerage"}),s.jsx("div",{className:"mt-12 grid grid-cols-1 gap-6 md:grid-cols-2 lg:gap-8",children:q1e.map(t=>{const e=t.icon;return s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-slate-50 p-6 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md md:p-8",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(e,{className:"h-6 w-6","aria-hidden":!0})}),s.jsx("h3",{className:"mt-5 text-xl font-black text-hba-blue-1",children:t.title}),s.jsx("p",{className:"mt-3 leading-relaxed text-hba-grey-1",children:t.copy})]},t.title)})}),s.jsx("div",{className:"mt-12 text-center",children:s.jsxs(ue,{to:"/group-quote-request/",className:"inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-8 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Get a Quote Now",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})})]})}),G1e=()=>s.jsx("section",{className:"bg-hba-blue-1/[0.08] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(Ry,{title:"News and Posts",subtitle:"Related topics for employers â full articles coming soon."}),s.jsx("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-3",children:F1e.map(t=>s.jsxs("article",{className:"flex flex-col rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-wider text-hba-orange-1",children:t.category}),s.jsx("h3",{className:"mt-3 text-lg font-black leading-snug text-hba-blue-1",children:t.title}),s.jsx("p",{className:"mt-3 flex-1 text-sm leading-relaxed text-hba-grey-1",children:t.excerpt}),s.jsxs("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"mt-6 inline-flex items-center gap-2 text-sm font-black uppercase tracking-wider text-hba-blue-1 hover:text-hba-orange-1",children:["Read More",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})]},t.title))})]})}),K1e=()=>s.jsx("section",{className:"relative border-t-4 border-hba-orange-1 bg-gradient-to-b from-white via-slate-50 to-slate-100 py-20 shadow-[0_-12px_40px_-20px_rgba(40,60,68,0.12)]",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4 text-center",children:[s.jsx("h2",{className:"mx-auto max-w-3xl text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:"Need Help Comparing Group Health Plan Options?"}),s.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-lg text-hba-grey-1",children:"We help Nevada businesses compare carriers, review eligibility, and get group health quotes with no brokerage fee."}),s.jsxs("div",{className:"mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row",children:[s.jsxs(ue,{to:"/group-quote-request/",className:"inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Get a Quote",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]}),s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center gap-2 rounded-xl border-2 border-hba-blue-1/25 bg-white px-7 py-4 font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:["Talk to a Broker",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})]})]})}),iM=()=>s.jsxs("div",{className:"bg-slate-100",children:[s.jsx(z1e,{}),s.jsx(V1e,{}),s.jsx(U1e,{}),s.jsx(W1e,{}),s.jsx(G1e,{}),s.jsx(K1e,{})]});var Y0=t=>t.type==="checkbox",nu=t=>t instanceof Date,xa=t=>t==null;const KW=t=>typeof t=="object";var Kr=t=>!xa(t)&&!Array.isArray(t)&&KW(t)&&!nu(t),Y1e=t=>Kr(t)&&t.target?Y0(t.target)?t.target.checked:t.target.value:t,X1e=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,J1e=(t,e)=>t.has(X1e(e)),Q1e=t=>{const e=t.constructor&&t.constructor.prototype;return Kr(e)&&e.hasOwnProperty("isPrototypeOf")},fC=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ta(t){let e;const r=Array.isArray(t),n=typeof FileList<"u"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else if(!(fC&&(t instanceof Blob||n))&&(r||Kr(t)))if(e=r?[]:{},!r&&!Q1e(t))e=t;else for(const a in t)t.hasOwnProperty(a)&&(e[a]=ta(t[a]));else return t;return e}var Iy=t=>Array.isArray(t)?t.filter(Boolean):[],tn=t=>t===void 0,ot=(t,e,r)=>{if(!e||!Kr(t))return r;const n=Iy(e.split(/[,[\].]+?/)).reduce((a,i)=>xa(a)?a:a[i],t);return tn(n)||n===t?tn(t[e])?r:t[e]:n},Ri=t=>typeof t=="boolean",pC=t=>/^\w*$/.test(t),YW=t=>Iy(t.replace(/["|']|\]/g,"").split(/\.|\[/)),yr=(t,e,r)=>{let n=-1;const a=pC(e)?[e]:YW(e),i=a.length,o=i-1;for(;++n<i;){const l=a[n];let c=r;if(n!==o){const u=t[l];c=Kr(u)||Array.isArray(u)?u:isNaN(+a[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;t[l]=c,t=t[l]}};const oM={BLUR:"blur",FOCUS_OUT:"focusout"},li={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},yo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};z.createContext(null);var Z1e=(t,e,r,n=!0)=>{const a={defaultValues:e._defaultValues};for(const i in t)Object.defineProperty(a,i,{get:()=>{const o=i;return e._proxyFormState[o]!==li.all&&(e._proxyFormState[o]=!n||li.all),t[o]}});return a},Li=t=>typeof t=="string",ege=(t,e,r,n,a)=>Li(t)?(n&&e.watch.add(t),ot(r,t,a)):Array.isArray(t)?t.map(i=>(n&&e.watch.add(i),ot(r,i))):(n&&(e.watchAll=!0),r),tge=(t,e,r,n,a)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:a||!0}}:{},nm=t=>Array.isArray(t)?t:[t],lM=()=>{let t=[];return{get observers(){return t},next:a=>{for(const i of t)i.next&&i.next(a)},subscribe:a=>(t.push(a),{unsubscribe:()=>{t=t.filter(i=>i!==a)}}),unsubscribe:()=>{t=[]}}},hN=t=>xa(t)||!KW(t);function Hl(t,e){if(hN(t)||hN(e))return t===e;if(nu(t)&&nu(e))return t.getTime()===e.getTime();const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(const a of r){const i=t[a];if(!n.includes(a))return!1;if(a!=="ref"){const o=e[a];if(nu(i)&&nu(o)||Kr(i)&&Kr(o)||Array.isArray(i)&&Array.isArray(o)?!Hl(i,o):i!==o)return!1}}return!0}var ba=t=>Kr(t)&&!Object.keys(t).length,mC=t=>t.type==="file",ci=t=>typeof t=="function",bx=t=>{if(!fC)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},XW=t=>t.type==="select-multiple",gC=t=>t.type==="radio",rge=t=>gC(t)||Y0(t),p3=t=>bx(t)&&t.isConnected;function nge(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=tn(t)?n++:t[e[n++]];return t}function age(t){for(const e in t)if(t.hasOwnProperty(e)&&!tn(t[e]))return!1;return!0}function hn(t,e){const r=Array.isArray(e)?e:pC(e)?[e]:YW(e),n=r.length===1?t:nge(t,r),a=r.length-1,i=r[a];return n&&delete n[i],a!==0&&(Kr(n)&&ba(n)||Array.isArray(n)&&age(n))&&hn(t,r.slice(0,-1)),t}var JW=t=>{for(const e in t)if(ci(t[e]))return!0;return!1};function xx(t,e={}){const r=Array.isArray(t);if(Kr(t)||r)for(const n in t)Array.isArray(t[n])||Kr(t[n])&&!JW(t[n])?(e[n]=Array.isArray(t[n])?[]:{},xx(t[n],e[n])):xa(t[n])||(e[n]=!0);return e}function QW(t,e,r){const n=Array.isArray(t);if(Kr(t)||n)for(const a in t)Array.isArray(t[a])||Kr(t[a])&&!JW(t[a])?tn(e)||hN(r[a])?r[a]=Array.isArray(t[a])?xx(t[a],[]):{...xx(t[a])}:QW(t[a],xa(e)?{}:e[a],r[a]):r[a]=!Hl(t[a],e[a]);return r}var wp=(t,e)=>QW(t,e,xx(e));const cM={value:!1,isValid:!1},uM={value:!0,isValid:!0};var ZW=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!tn(t[0].attributes.value)?tn(t[0].value)||t[0].value===""?uM:{value:t[0].value,isValid:!0}:uM:cM}return cM},eG=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:n})=>tn(t)?t:e?t===""?NaN:t&&+t:r&&Li(t)?new Date(t):n?n(t):t;const dM={isValid:!1,value:null};var tG=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,dM):dM;function hM(t){const e=t.ref;return mC(e)?e.files:gC(e)?tG(t.refs).value:XW(e)?[...e.selectedOptions].map(({value:r})=>r):Y0(e)?ZW(t.refs).value:eG(tn(e.value)?t.ref.value:e.value,t)}var sge=(t,e,r,n)=>{const a={};for(const i of t){const o=ot(e,i);o&&yr(a,i,o._f)}return{criteriaMode:r,names:[...t],fields:a,shouldUseNativeValidation:n}},yx=t=>t instanceof RegExp,Np=t=>tn(t)?t:yx(t)?t.source:Kr(t)?yx(t.value)?t.value.source:t.value:t,fM=t=>({isOnSubmit:!t||t===li.onSubmit,isOnBlur:t===li.onBlur,isOnChange:t===li.onChange,isOnAll:t===li.all,isOnTouch:t===li.onTouched});const pM="AsyncFunction";var ige=t=>!!t&&!!t.validate&&!!(ci(t.validate)&&t.validate.constructor.name===pM||Kr(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===pM)),oge=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),mM=(t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some(n=>t.startsWith(n)&&/^\.\w+/.test(t.slice(n.length))));const am=(t,e,r,n)=>{for(const a of r||Object.keys(t)){const i=ot(t,a);if(i){const{_f:o,...l}=i;if(o){if(o.refs&&o.refs[0]&&e(o.refs[0],a)&&!n)return!0;if(o.ref&&e(o.ref,o.name)&&!n)return!0;if(am(l,e))break}else if(Kr(l)&&am(l,e))break}}};function gM(t,e,r){const n=ot(t,r);if(n||pC(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const i=a.join("."),o=ot(e,i),l=ot(t,i);if(o&&!Array.isArray(o)&&r!==i)return{name:r};if(l&&l.type)return{name:i,error:l};a.pop()}return{name:r}}var lge=(t,e,r,n)=>{r(t);const{name:a,...i}=t;return ba(i)||Object.keys(i).length>=Object.keys(e).length||Object.keys(i).find(o=>e[o]===(!n||li.all))},cge=(t,e,r)=>!t||!e||t===e||nm(t).some(n=>n&&(r?n===e:n.startsWith(e)||e.startsWith(n))),uge=(t,e,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(e||t):(r?n.isOnBlur:a.isOnBlur)?!t:(r?n.isOnChange:a.isOnChange)?t:!0,dge=(t,e)=>!Iy(ot(t,e)).length&&hn(t,e),hge=(t,e,r)=>{const n=nm(ot(t,r));return yr(n,"root",e[r]),yr(t,r,n),t},zb=t=>Li(t);function bM(t,e,r="validate"){if(zb(t)||Array.isArray(t)&&t.every(zb)||Ri(t)&&!t)return{type:r,message:zb(t)?t:"",ref:e}}var Nd=t=>Kr(t)&&!yx(t)?t:{value:t,message:""},xM=async(t,e,r,n,a,i)=>{const{ref:o,refs:l,required:c,maxLength:u,minLength:d,min:h,max:m,pattern:g,validate:b,name:y,valueAsNumber:v,mount:N}=t._f,S=ot(r,y);if(!N||e.has(y))return{};const j=l?l[0]:o,$=R=>{a&&j.reportValidity&&(j.setCustomValidity(Ri(R)?"":R||""),j.reportValidity())},C={},_=gC(o),O=Y0(o),E=_||O,P=(v||mC(o))&&tn(o.value)&&tn(S)||bx(o)&&o.value===""||S===""||Array.isArray(S)&&!S.length,T=tge.bind(null,y,n,C),I=(R,F,L,q=yo.maxLength,G=yo.minLength)=>{const B=R?F:L;C[y]={type:R?q:G,message:B,ref:o,...T(R?q:G,B)}};if(i?!Array.isArray(S)||!S.length:c&&(!E&&(P||xa(S))||Ri(S)&&!S||O&&!ZW(l).isValid||_&&!tG(l).isValid)){const{value:R,message:F}=zb(c)?{value:!!c,message:c}:Nd(c);if(R&&(C[y]={type:yo.required,message:F,ref:j,...T(yo.required,F)},!n))return $(F),C}if(!P&&(!xa(h)||!xa(m))){let R,F;const L=Nd(m),q=Nd(h);if(!xa(S)&&!isNaN(S)){const G=o.valueAsNumber||S&&+S;xa(L.value)||(R=G>L.value),xa(q.value)||(F=G<q.value)}else{const G=o.valueAsDate||new Date(S),B=Z=>new Date(new Date().toDateString()+" "+Z),H=o.type=="time",K=o.type=="week";Li(L.value)&&S&&(R=H?B(S)>B(L.value):K?S>L.value:G>new Date(L.value)),Li(q.value)&&S&&(F=H?B(S)<B(q.value):K?S<q.value:G<new Date(q.value))}if((R||F)&&(I(!!R,L.message,q.message,yo.max,yo.min),!n))return $(C[y].message),C}if((u||d)&&!P&&(Li(S)||i&&Array.isArray(S))){const R=Nd(u),F=Nd(d),L=!xa(R.value)&&S.length>+R.value,q=!xa(F.value)&&S.length<+F.value;if((L||q)&&(I(L,R.message,F.message),!n))return $(C[y].message),C}if(g&&!P&&Li(S)){const{value:R,message:F}=Nd(g);if(yx(R)&&!S.match(R)&&(C[y]={type:yo.pattern,message:F,ref:o,...T(yo.pattern,F)},!n))return $(F),C}if(b){if(ci(b)){const R=await b(S,r),F=bM(R,j);if(F&&(C[y]={...F,...T(yo.validate,F.message)},!n))return $(F.message),C}else if(Kr(b)){let R={};for(const F in b){if(!ba(R)&&!n)break;const L=bM(await b[F](S,r),j,F);L&&(R={...L,...T(F,L.message)},$(L.message),n&&(C[y]=R))}if(!ba(R)&&(C[y]={ref:j,...R},!n))return C}}return $(!0),C};const fge={mode:li.onSubmit,reValidateMode:li.onChange,shouldFocusError:!0};function pge(t={}){let e={...fge,...t},r={submitCount:0,isDirty:!1,isLoading:ci(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1};const n={};let a=Kr(e.defaultValues)||Kr(e.values)?ta(e.values||e.defaultValues)||{}:{},i=e.shouldUnregister?{}:ta(a),o={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h={...d};const m={array:lM(),state:lM()},g=fM(e.mode),b=fM(e.reValidateMode),y=e.criteriaMode===li.all,v=W=>ee=>{clearTimeout(u),u=setTimeout(W,ee)},N=async W=>{if(!e.disabled&&(d.isValid||h.isValid||W)){const ee=e.resolver?ba((await P()).errors):await I(n,!0);ee!==r.isValid&&m.state.next({isValid:ee})}},S=(W,ee)=>{!e.disabled&&(d.isValidating||d.validatingFields||h.isValidating||h.validatingFields)&&((W||Array.from(l.mount)).forEach(Q=>{Q&&(ee?yr(r.validatingFields,Q,ee):hn(r.validatingFields,Q))}),m.state.next({validatingFields:r.validatingFields,isValidating:!ba(r.validatingFields)}))},j=(W,ee=[],Q,xe,ye=!0,X=!0)=>
vendor: 7,624 bytes, line 849
849{if(xe&&Q&&!e.disabled){if(o.action=!0,X&&Array.isArray(ot(n,W))){const ve=Q(ot(n,W),xe.argA,xe.argB);ye&&yr(n,W,ve)}if(X&&Array.isArray(ot(r.errors,W))){const ve=Q(ot(r.errors,W),xe.argA,xe.argB);ye&&yr(r.errors,W,ve),dge(r.errors,W)}if((d.touchedFields||h.touchedFields)&&X&&Array.isArray(ot(r.touchedFields,W))){const ve=Q(ot(r.touchedFields,W),xe.argA,xe.argB);ye&&yr(r.touchedFields,W,ve)}(d.dirtyFields||h.dirtyFields)&&(r.dirtyFields=wp(a,i)),m.state.next({name:W,isDirty:F(W,ee),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else yr(i,W,ee)},$=(W,ee)=>{yr(r.errors,W,ee),m.state.next({errors:r.errors})},C=W=>{r.errors=W,m.state.next({errors:r.errors,isValid:!1})},_=(W,ee,Q,xe)=>{const ye=ot(n,W);if(ye){const X=ot(i,W,tn(Q)?ot(a,W):Q);tn(X)||xe&&xe.defaultChecked||ee?yr(i,W,ee?X:hM(ye._f)):G(W,X),o.mount&&N()}},O=(W,ee,Q,xe,ye)=>{let X=!1,ve=!1;const He={name:W};if(!e.disabled){if(!Q||xe){(d.isDirty||h.isDirty)&&(ve=r.isDirty,r.isDirty=He.isDirty=F(),X=ve!==He.isDirty);const Ie=Hl(ot(a,W),ee);ve=!!ot(r.dirtyFields,W),Ie?hn(r.dirtyFields,W):yr(r.dirtyFields,W,!0),He.dirtyFields=r.dirtyFields,X=X||(d.dirtyFields||h.dirtyFields)&&ve!==!Ie}if(Q){const Ie=ot(r.touchedFields,W);Ie||(yr(r.touchedFields,W,Q),He.touchedFields=r.touchedFields,X=X||(d.touchedFields||h.touchedFields)&&Ie!==Q)}X&&ye&&m.state.next(He)}return X?He:{}},E=(W,ee,Q,xe)=>{const ye=ot(r.errors,W),X=(d.isValid||h.isValid)&&Ri(ee)&&r.isValid!==ee;if(e.delayError&&Q?(c=v(()=>$(W,Q)),c(e.delayError)):(clearTimeout(u),c=null,Q?yr(r.errors,W,Q):hn(r.errors,W)),(Q?!Hl(ye,Q):ye)||!ba(xe)||X){const ve={...xe,...X&&Ri(ee)?{isValid:ee}:{},errors:r.errors,name:W};r={...r,...ve},m.state.next(ve)}},P=async W=>{S(W,!0);const ee=await e.resolver(i,e.context,sge(W||l.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return S(W),ee},T=async W=>{const{errors:ee}=await P(W);if(W)for(const Q of W){const xe=ot(ee,Q);xe?yr(r.errors,Q,xe):hn(r.errors,Q)}else r.errors=ee;return ee},I=async(W,ee,Q={valid:!0})=>{for(const xe in W){const ye=W[xe];if(ye){const{_f:X,...ve}=ye;if(X){const He=l.array.has(X.name),Ie=ye._f&&ige(ye._f);Ie&&d.validatingFields&&S([xe],!0);const dt=await xM(ye,l.disabled,i,y,e.shouldUseNativeValidation&&!ee,He);if(Ie&&d.validatingFields&&S([xe]),dt[X.name]&&(Q.valid=!1,ee))break;!ee&&(ot(dt,X.name)?He?hge(r.errors,dt,X.name):yr(r.errors,X.name,dt[X.name]):hn(r.errors,X.name))}!ba(ve)&&await I(ve,ee,Q)}}return Q.valid},R=()=>{for(const W of l.unMount){const ee=ot(n,W);ee&&(ee._f.refs?ee._f.refs.every(Q=>!p3(Q)):!p3(ee._f.ref))&&le(W)}l.unMount=new Set},F=(W,ee)=>!e.disabled&&(W&&ee&&yr(i,W,ee),!Hl(U(),a)),L=(W,ee,Q)=>ege(W,l,{...o.mount?i:tn(ee)?a:Li(W)?{[W]:ee}:ee},Q,ee),q=W=>Iy(ot(o.mount?i:a,W,e.shouldUnregister?ot(a,W,[]):[])),G=(W,ee,Q={})=>{const xe=ot(n,W);let ye=ee;if(xe){const X=xe._f;X&&(!X.disabled&&yr(i,W,eG(ee,X)),ye=bx(X.ref)&&xa(ee)?"":ee,XW(X.ref)?[...X.ref.options].forEach(ve=>ve.selected=ye.includes(ve.value)):X.refs?Y0(X.ref)?X.refs.length>1?X.refs.forEach(ve=>(!ve.defaultChecked||!ve.disabled)&&(ve.checked=Array.isArray(ye)?!!ye.find(He=>He===ve.value):ye===ve.value)):X.refs[0]&&(X.refs[0].checked=!!ye):X.refs.forEach(ve=>ve.checked=ve.value===ye):mC(X.ref)?X.ref.value="":(X.ref.value=ye,X.ref.type||m.state.next({name:W,values:ta(i)})))}(Q.shouldDirty||Q.shouldTouch)&&O(W,ye,Q.shouldTouch,Q.shouldDirty,!0),Q.shouldValidate&&V(W)},B=(W,ee,Q)=>{for(const xe in ee){const ye=ee[xe],X=`${W}.${xe}`,ve=ot(n,X);(l.array.has(W)||Kr(ye)||ve&&!ve._f)&&!nu(ye)?B(X,ye,Q):G(X,ye,Q)}},H=(W,ee,Q={})=>{const xe=ot(n,W),ye=l.array.has(W),X=ta(ee);yr(i,W,X),ye?(m.array.next({name:W,values:ta(i)}),(d.isDirty||d.dirtyFields||h.isDirty||h.dirtyFields)&&Q.shouldDirty&&m.state.next({name:W,dirtyFields:wp(a,i),isDirty:F(W,X)})):xe&&!xe._f&&!xa(X)?B(W,X,Q):G(W,X,Q),mM(W,l)&&m.state.next({...r}),m.state.next({name:o.mount?W:void 0,values:ta(i)})},K=async W=>{o.mount=!0;const ee=W.target;let Q=ee.name,xe=!0;const ye=ot(n,Q),X=ve=>{xe=Number.isNaN(ve)||nu(ve)&&isNaN(ve.getTime())||Hl(ve,ot(i,Q,ve))};if(ye){let ve,He;const Ie=ee.type?hM(ye._f):Y1e(W),dt=W.type===oM.BLUR||W.type===oM.FOCUS_OUT,Ue=!oge(ye._f)&&!e.resolver&&!ot(r.errors,Q)&&!ye._f.deps||uge(dt,ot(r.touchedFields,Q),r.isSubmitted,b,g),ie=mM(Q,l,dt);yr(i,Q,Ie),dt?(ye._f.onBlur&&ye._f.onBlur(W),c&&c(0)):ye._f.onChange&&ye._f.onChange(W);const it=O(Q,Ie,dt),jr=!ba(it)||ie;if(!dt&&m.state.next({name:Q,type:W.type,values:ta(i)}),Ue)return(d.isValid||h.isValid)&&(e.mode==="onBlur"?dt&&N():dt||N()),jr&&m.state.next({name:Q,...ie?{}:it});if(!dt&&ie&&m.state.next({...r}),e.resolver){const{errors:ir}=await P([Q]);if(X(Ie),xe){const Vr=gM(r.errors,n,Q),Ot=gM(ir,n,Vr.name||Q);ve=Ot.error,Q=Ot.name,He=ba(ir)}}else S([Q],!0),ve=(await xM(ye,l.disabled,i,y,e.shouldUseNativeValidation))[Q],S([Q]),X(Ie),xe&&(ve?He=!1:(d.isValid||h.isValid)&&(He=await I(n,!0)));xe&&(ye._f.deps&&V(ye._f.deps),E(Q,He,ve,it))}},Z=(W,ee)=>{if(ot(r.errors,ee)&&W.focus)return W.focus(),1},V=async(W,ee={})=>{let Q,xe;const ye=nm(W);if(e.resolver){const X=await T(tn(W)?W:ye);Q=ba(X),xe=W?!ye.some(ve=>ot(X,ve)):Q}else W?(xe=(await Promise.all(ye.map(async X=>{const ve=ot(n,X);return await I(ve&&ve._f?{[X]:ve}:ve)}))).every(Boolean),!(!xe&&!r.isValid)&&N()):xe=Q=await I(n);return m.state.next({...!Li(W)||(d.isValid||h.isValid)&&Q!==r.isValid?{}:{name:W},...e.resolver||!W?{isValid:Q}:{},errors:r.errors}),ee.shouldFocus&&!xe&&am(n,Z,W?ye:l.mount),xe},U=W=>{const ee={...o.mount?i:a};return tn(W)?ee:Li(W)?ot(ee,W):W.map(Q=>ot(ee,Q))},Y=(W,ee)=>({invalid:!!ot((ee||r).errors,W),isDirty:!!ot((ee||r).dirtyFields,W),error:ot((ee||r).errors,W),isValidating:!!ot(r.validatingFields,W),isTouched:!!ot((ee||r).touchedFields,W)}),de=W=>{W&&nm(W).forEach(ee=>hn(r.errors,ee)),m.state.next({errors:W?r.errors:{}})},ge=(W,ee,Q)=>{const xe=(ot(n,W,{_f:{}})._f||{}).ref,ye=ot(r.errors,W)||{},{ref:X,message:ve,type:He,...Ie}=ye;yr(r.errors,W,{...Ie,...ee,ref:xe}),m.state.next({name:W,errors:r.errors,isValid:!1}),Q&&Q.shouldFocus&&xe&&xe.focus&&xe.focus()},fe=(W,ee)=>ci(W)?m.state.subscribe({next:Q=>W(L(void 0,ee),Q)}):L(W,ee,!0),Oe=W=>m.state.subscribe({next:ee=>{cge(W.name,ee.name,W.exact)&&lge(ee,W.formState||d,Ae,W.reRenderRoot)&&W.callback({values:{...i},...r,...ee})}}).unsubscribe,Ce=W=>(o.mount=!0,h={...h,...W.formState},Oe({...W,formState:h})),le=(W,ee={})=>{for(const Q of W?nm(W):l.mount)l.mount.delete(Q),l.array.delete(Q),ee.keepValue||(hn(n,Q),hn(i,Q)),!ee.keepError&&hn(r.errors,Q),!ee.keepDirty&&hn(r.dirtyFields,Q),!ee.keepTouched&&hn(r.touchedFields,Q),!ee.keepIsValidating&&hn(r.validatingFields,Q),!e.shouldUnregister&&!ee.keepDefaultValue&&hn(a,Q);m.state.next({values:ta(i)}),m.state.next({...r,...ee.keepDirty?{isDirty:F()}:{}}),!ee.keepIsValid&&N()},we=({disabled:W,name:ee})=>{(Ri(W)&&o.mount||W||l.disabled.has(ee))&&(W?l.disabled.add(ee):l.disabled.delete(ee))},ke=(W,ee={})=>{let Q=ot(n,W);const xe=Ri(ee.disabled)||Ri(e.disabled);return yr(n,W,{...Q||{},_f:{...Q&&Q._f?Q._f:{ref:{name:W}},name:W,mount:!0,...ee}}),l.mount.add(W),Q?we({disabled:Ri(ee.disabled)?ee.disabled:e.disabled,name:W}):_(W,!0,ee.value),{...xe?{disabled:ee.disabled||e.disabled}:{},...e.progressive?{required:!!ee.required,min:Np(ee.min),max:Np(ee.max),minLength:Np(ee.minLength),maxLength:Np(ee.maxLength),pattern:Np(ee.pattern)}:{},name:W,onChange:K,onBlur:K,ref:ye=>{if(ye){ke(W,ee),Q=ot(n,W);const X=tn(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,ve=rge(X),He=Q._f.refs||[];if(ve?He.find(Ie=>Ie===X):X===Q._f.ref)return;yr(n,W,{_f:{...Q._f,...ve?{refs:[...He.filter(p3),X,...Array.isArray(ot(a,W))?[{}
vendor: 2,720 bytes, line 849
849]:[]],ref:{type:X.type,name:W}}:{ref:X}}}),_(W,!1,void 0,X)}else Q=ot(n,W,{}),Q._f&&(Q._f.mount=!1),(e.shouldUnregister||ee.shouldUnregister)&&!(J1e(l.array,W)&&o.action)&&l.unMount.add(W)}}},oe=()=>e.shouldFocusError&&am(n,Z,l.mount),qe=W=>{Ri(W)&&(m.state.next({disabled:W}),am(n,(ee,Q)=>{const xe=ot(n,Q);xe&&(ee.disabled=xe._f.disabled||W,Array.isArray(xe._f.refs)&&xe._f.refs.forEach(ye=>{ye.disabled=xe._f.disabled||W}))},0,!1))},Le=(W,ee)=>async Q=>{let xe;Q&&(Q.preventDefault&&Q.preventDefault(),Q.persist&&Q.persist());let ye=ta(i);if(m.state.next({isSubmitting:!0}),e.resolver){const{errors:X,values:ve}=await P();r.errors=X,ye=ve}else await I(n);if(l.disabled.size)for(const X of l.disabled)yr(ye,X,void 0);if(hn(r.errors,"root"),ba(r.errors)){m.state.next({errors:{}});try{await W(ye,Q)}catch(X){xe=X}}else ee&&await ee({...r.errors},Q),oe(),setTimeout(oe);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ba(r.errors)&&!xe,submitCount:r.submitCount+1,errors:r.errors}),xe)throw xe},Ke=(W,ee={})=>{ot(n,W)&&(tn(ee.defaultValue)?H(W,ta(ot(a,W))):(H(W,ee.defaultValue),yr(a,W,ta(ee.defaultValue))),ee.keepTouched||hn(r.touchedFields,W),ee.keepDirty||(hn(r.dirtyFields,W),r.isDirty=ee.defaultValue?F(W,ta(ot(a,W))):F()),ee.keepError||(hn(r.errors,W),d.isValid&&N()),m.state.next({...r}))},ne=(W,ee={})=>{const Q=W?ta(W):a,xe=ta(Q),ye=ba(W),X=ye?a:xe;if(ee.keepDefaultValues||(a=Q),!ee.keepValues){if(ee.keepDirtyValues){const ve=new Set([...l.mount,...Object.keys(wp(a,i))]);for(const He of Array.from(ve))ot(r.dirtyFields,He)?yr(X,He,ot(i,He)):H(He,ot(X,He))}else{if(fC&&tn(W))for(const ve of l.mount){const He=ot(n,ve);if(He&&He._f){const Ie=Array.isArray(He._f.refs)?He._f.refs[0]:He._f.ref;if(bx(Ie)){const dt=Ie.closest("form");if(dt){dt.reset();break}}}}for(const ve of l.mount)H(ve,ot(X,ve))}i=ta(X),m.array.next({values:{...X}}),m.state.next({values:{...X}})}l={mount:ee.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!ee.keepIsValid||!!ee.keepDirtyValues,o.watch=!!e.shouldUnregister,m.state.next({submitCount:ee.keepSubmitCount?r.submitCount:0,isDirty:ye?!1:ee.keepDirty?r.isDirty:!!(ee.keepDefaultValues&&!Hl(W,a)),isSubmitted:ee.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ye?{}:ee.keepDirtyValues?ee.keepDefaultValues&&i?wp(a,i):r.dirtyFields:ee.keepDefaultValues&&W?wp(a,W):ee.keepDirty?r.dirtyFields:{},touchedFields:ee.keepTouched?r.touchedFields:{},errors:ee.keepErrors?r.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Se=(W,ee)=>ne(ci(W)?W(i):W,ee),$e=(W,ee={})=>{const Q=ot(n,W),xe=Q&&Q._f;if(xe){const ye=xe.refs?xe.refs[0]:xe.ref;
849ye.focus&&(ye.focus(),ee.shouldSelect&&ci(ye.select)&&ye.select())}},Ae=W=>{r={...r,...W}},ae={control:{register:ke,unregister:le,getFieldState:Y,handleSubmit:Le,setError:ge,_subscribe:Oe,_runSchema:P,_getWatch:L,_getDirty:F,_setValid:N,_setFieldArray:j,_setDisabledField:we,_setErrors:C,_getFieldArray:q,_reset:ne,_resetDefaultValues:()=>ci(e.defaultValues)&&e.defaultValues().then(W=>{Se(W,e.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:R,_disableForm:qe,_subjects:m,_proxyFormState:d,get _fields(){return n},get _formValues(){return i},get _state(){return o},set _state(W){o=W},get _defaultValues(){return a},get _names(){return l},set _names(W){l=W},get _formState(){return r},get _options(){return e},set _options(W){e={...e,...W}}},subscribe:Ce,trigger:V,register:ke,handleSubmit:Le,watch:fe,setValue:H,getValues:U,reset:Se,resetField:Ke,clearErrors:de,unregister:le,setError:ge,setFocus:$e,getFieldState:Y};return{...ae,formControl:ae}}function mge(t={}){const e=z.useRef(void 0),r=z.useRef(void 0),[n,a]=z.useState({isDirty:!1,isValidating:!1,isLoading:ci(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,defaultValues:ci(t.defaultValues)?void 0:t.defaultValues});e.current||(e.current={...t.formControl?t.formControl:pge(t),formState:n},t.formControl&&t.defaultValues&&!ci(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions));const i=e.current.control;return i._options=t,z.useLayoutEffect(()=>i._subscribe({formState:i._proxyFormState,callback:()=>a({...i._formState}),reRenderRoot:!0}),[i]),z.useEffect(()=>i._disableForm(t.disabled),[i,t.disabled]),z.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==n.isDirty&&i._subjects.state.next({isDirty:o})}},[i,n.isDirty]),z.useEffect(()=>{t.values&&!Hl(t.values,r.current)?(i._reset(t.values,i._options.resetOptions),r.current=t.values,a(o=>({...o}))):i._resetDefaultValues()},[t.values,i]),z.useEffect(()=>{t.errors&&!ba(t.errors)&&i._setErrors(t.errors)},[t.errors,i]),z.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),z.useEffect(()=>{t.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[t.shouldUnregister,i]),e.current.formState=Z1e(n,i),e.current}function gge(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}const bge=t=>{switch(t){case"success":return vge;case"info":return Nge;case"warning":return wge;case"error":return jge;default:return null}},xge=Array(12).fill(0),yge=({visible:t,className:e})=>z.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},z.createElement("div",{className:"sonner-spinner"},xge.map((r,n)=>z.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),vge=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),wge=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},z.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Nge=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),jge=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),kge=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Sge=()=>{const[t,e]=z.useState(document.hidden);return z.useEffect(()=>{const r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t};let fN=1;class Cge{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const r=this.subscribers.indexOf(e);this.subscribers.splice(r,1)}),this.publish=e=>
vendor: 4,112 bytes, line 849
849{this.subscribers.forEach(r=>r(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var r;const{message:n,...a}=e,i=typeof(e==null?void 0:e.id)=="number"||((r=e.id)==null?void 0:r.length)>0?e.id:fN++,o=this.toasts.find(c=>c.id===i),l=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...e,id:i,title:n}),{...c,...e,id:i,dismissible:l,title:n}):c):this.addToast({title:n,...a,dismissible:l,id:i}),i},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:e,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),e),this.message=(e,r)=>this.create({...r,message:e}),this.error=(e,r)=>this.create({...r,message:e,type:"error"}),this.success=(e,r)=>this.create({...r,type:"success",message:e}),this.info=(e,r)=>this.create({...r,type:"info",message:e}),this.warning=(e,r)=>this.create({...r,type:"warning",message:e}),this.loading=(e,r)=>this.create({...r,type:"loading",message:e}),this.promise=(e,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:e,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const a=Promise.resolve(e instanceof Function?e():e);let i=n!==void 0,o;const l=a.then(async u=>{if(o=["resolve",u],z.isValidElement(u))i=!1,this.create({id:n,type:"default",message:u});else if(_ge(u)&&!u.ok){i=!1;const h=typeof r.error=="function"?await r.error(`HTTP error! status: ${u.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${u.status}`):r.description,b=typeof h=="object"&&!z.isValidElement(h)?h:{message:h};this.create({id:n,type:"error",description:m,...b})}else if(u instanceof Error){i=!1;const h=typeof r.error=="function"?await r.error(u):r.error,m=typeof r.description=="function"?await r.description(u):r.description,b=typeof h=="object"&&!z.isValidElement(h)?h:{message:h};this.create({id:n,type:"error",description:m,...b})}else if(r.success!==void 0){i=!1;const h=typeof r.success=="function"?await r.success(u):r.success,m=typeof r.description=="function"?await r.description(u):r.description,b=typeof h=="object"&&!z.isValidElement(h)?h:{message:h};this.create({id:n,type:"success",description:m,...b})}}).catch(async u=>{if(o=["reject",u],r.error!==void 0){i=!1;const d=typeof r.error=="function"?await r.error(u):r.error,h=typeof r.description=="function"?await r.description(u):r.description,g=typeof d=="object"&&!z.isValidElement(d)?d:{message:d};this.create({id:n,type:"error",description:h,...g})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),c=()=>new Promise((u,d)=>l.then(()=>o[0]==="reject"?d(o[1]):u(o[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(e,r)=>{const n=(r==null?void 0:r.id)||fN++;return this.create({jsx:e(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ra=new Cge,$ge=(t,e)=>{const r=(e==null?void 0:e.id)||fN++;return Ra.addToast({title:t,...e,id:r}),r},_ge=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",Age=$ge,Ege=()=>Ra.toasts,Oge=()=>Ra.getActiveToasts(),te=Object.assign(Age,{success:Ra.success,info:Ra.info,warning:Ra.warning,error:Ra.error,custom:Ra.custom,message:Ra.message,promise:Ra.promise,dismiss:Ra.dismiss,loading:Ra.loading},{getHistory:Ege,getToasts:Oge});gge("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;
849--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)
vendor: 13,513 bytes, line 849
849}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
849Ig(t){return t.label!==void 0}const Pge=3,Mge="24px",Tge="16px",yM=4e3,Rge=356,Ige=14,Dge=45,Lge=200;function Ei(...t){return t.filter(Boolean).join(" ")}function Bge(t){const[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}const Hge=t=>{var e,r,n,a,i,o,l,c,u;const{invert:d,toast:h,unstyled:m,interacting:g,setHeights:b,visibleToasts:y,heights:v,index:N,toasts:S,exp
vendor: 4,761 bytes, line 849
849anded:j,removeToast:$,defaultRichColors:C,closeButton:_,style:O,cancelButtonStyle:E,actionButtonStyle:P,className:T="",descriptionClassName:I="",duration:R,position:F,gap:L,expandByDefault:q,classNames:G,icons:B,closeButtonAriaLabel:H="Close toast"}=t,[K,Z]=z.useState(null),[V,U]=z.useState(null),[Y,de]=z.useState(!1),[ge,fe]=z.useState(!1),[Oe,Ce]=z.useState(!1),[le,we]=z.useState(!1),[ke,oe]=z.useState(!1),[qe,Le]=z.useState(0),[Ke,ne]=z.useState(0),Se=z.useRef(h.duration||R||yM),$e=z.useRef(null),Ae=z.useRef(null),Ve=N===0,ae=N+1<=y,W=h.type,ee=h.dismissible!==!1,Q=h.className||"",xe=h.descriptionClassName||"",ye=z.useMemo(()=>v.findIndex(mt=>mt.toastId===h.id)||0,[v,h.id]),X=z.useMemo(()=>{var mt;return(mt=h.closeButton)!=null?mt:_},[h.closeButton,_]),ve=z.useMemo(()=>h.duration||R||yM,[h.duration,R]),He=z.useRef(0),Ie=z.useRef(0),dt=z.useRef(0),Ue=z.useRef(null),[ie,it]=F.split("-"),jr=z.useMemo(()=>v.reduce((mt,Jt,ce)=>ce>=ye?mt:mt+Jt.height,0),[v,ye]),ir=Sge(),Vr=h.invert||d,Ot=W==="loading";Ie.current=z.useMemo(()=>ye*L+jr,[ye,jr]),z.useEffect(()=>{Se.current=ve},[ve]),z.useEffect(()=>{de(!0)},[]),z.useEffect(()=>{const mt=Ae.current;if(mt){const Jt=mt.getBoundingClientRect().height;return ne(Jt),b(ce=>[{toastId:h.id,height:Jt,position:h.position},...ce]),()=>b(ce=>ce.filter(We=>We.toastId!==h.id))}},[b,h.id]),z.useLayoutEffect(()=>{if(!Y)return;const mt=Ae.current,Jt=mt.style.height;mt.style.height="auto";const ce=mt.getBoundingClientRect().height;mt.style.height=Jt,ne(ce),b(We=>We.find(ht=>ht.toastId===h.id)?We.map(ht=>ht.toastId===h.id?{...ht,height:ce}:ht):[{toastId:h.id,height:ce,position:h.position},...We])},[Y,h.title,h.description,b,h.id]);const Kn=z.useCallback(()=>{fe(!0),Le(Ie.current),b(mt=>mt.filter(Jt=>Jt.toastId!==h.id)),setTimeout(()=>{$(h)},Lge)},[h,$,b,Ie]);z.useEffect(()=>{if(h.promise&&W==="loading"||h.duration===1/0||h.type==="loading")return;let mt;return j||g||ir?(()=>{if(dt.current<He.current){const We=new Date().getTime()-He.current;Se.current=Se.current-We}dt.current=new Date().getTime()})():(()=>{Se.current!==1/0&&(He.current=new Date().getTime(),mt=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),Kn()},Se.current))})(),()=>clearTimeout(mt)},[j,g,h,W,ir,Kn]),z.useEffect(()=>{h.delete&&Kn()},[Kn,h.delete]);function $a(){var mt;if(B!=null&&B.loading){var Jt;return z.createElement("div",{className:Ei(G==null?void 0:G.loader,h==null||(Jt=h.classNames)==null?void 0:Jt.loader,"sonner-loader"),"data-visible":W==="loading"},B.loading)}return z.createElement(yge,{className:Ei(G==null?void 0:G.loader,h==null||(mt=h.classNames)==null?void 0:mt.loader),visible:W==="loading"})}const hs=h.icon||(B==null?void 0:B[W])||bge(W);var Yr,Ur;return z.createElement("li",{tabIndex:0,ref:Ae,className:Ei(T,Q,G==null?void 0:G.toast,h==null||(e=h.classNames)==null?void 0:e.toast,G==null?void 0:G.default,G==null?void 0:G[W],h==null||(r=h.classNames)==null?void 0:r[W]),"data-sonner-toast":"","data-rich-colors":(Yr=h.richColors)!=null?Yr:C,"data-styled":!(h.jsx||h.unstyled||m),"data-mounted":Y,"data-promise":!!h.promise,"data-swiped":ke,"data-removed":ge,"data-visible":ae,"data-y-position":ie,"data-x-position":it,"data-index":N,"data-front":Ve,"data-swiping":Oe,"data-dismissible":ee,"data-type":W,"data-invert":Vr,"data-swipe-out":le,"data-swipe-direction":V,"data-expanded":!!(j||q&&Y),style:{"--index":N,"--toasts-before":N,"--z-index":S.length-N,"--offset":`${ge?qe:Ie.current}px`,"--initial-height":q?"auto":`${Ke}px`,...O,...h.style},onDragEnd:()=>{Ce(!1),Z(null),Ue.current=null},onPointerDown:mt=>{Ot||!ee||($e.current=new Date,Le(Ie.current),mt.target.setPointerCapture(mt.pointerId),mt.target.tagName!=="BUTTON"&&(Ce(!0),Ue.current={x:mt.clientX,y:mt.clientY}))},onPointerUp:()=>{var mt,Jt,ce;if(le||!ee)return;Ue.current=null;const We=Number(((mt=Ae.current)==null?void 0:mt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),xt=Number(((Jt=Ae.current)==null?void 0:Jt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ht=new Date().getTime()-((ce=$e.current)==null?void 0:ce.getTime()),Yt=K==="x"?We:xt,_n=Math.abs(Yt)/ht;if(Math.abs(Yt)>=Dge||_n>.11){Le(Ie.current),h.onDismiss==null||h.onDismiss.call(h,h),U(K==="x"?We>0?"right":"left":xt>0?"down":"up"),Kn(),we(!0);return}else{var _r,qr;(_r=Ae.current)==null||_r.style.setProperty("--swipe-amount-x","0px"),(qr=Ae.current)==null||qr.style.setProperty("--swipe-amount-y","0px")}oe(!1),Ce(!1),Z(null)},onPointerMove:mt=>{var Jt,ce,We;if(!Ue.current||!ee||((Jt=window.getSelection())==null?void 0:Jt.toString().length)>0)return;const ht=mt.clientY-Ue.current.y,Yt=mt.clientX-Ue.current.x;var _n;const _r=(_n=t.swipeDirections)!=null?_n:Bge(F);!K&&(Math.abs(Yt)>1||Math.abs(ht)>1)&&Z(Math.abs(Yt)>
vendor: 5,948 bytes, line 849
849Math.abs(ht)?"x":"y");let qr={x:0,y:0};const An=Xr=>1/(1.5+Math.abs(Xr)/20);if(K==="y"){if(_r.includes("top")||_r.includes("bottom"))if(_r.includes("top")&&ht<0||_r.includes("bottom")&&ht>0)qr.y=ht;else{const Xr=ht*An(ht);qr.y=Math.abs(Xr)<Math.abs(ht)?Xr:ht}}else if(K==="x"&&(_r.includes("left")||_r.includes("right")))if(_r.includes("left")&&Yt<0||_r.includes("right")&&Yt>0)qr.x=Yt;else{const Xr=Yt*An(Yt);qr.x=Math.abs(Xr)<Math.abs(Yt)?Xr:Yt}(Math.abs(qr.x)>0||Math.abs(qr.y)>0)&&oe(!0),(ce=Ae.current)==null||ce.style.setProperty("--swipe-amount-x",`${qr.x}px`),(We=Ae.current)==null||We.style.setProperty("--swipe-amount-y",`${qr.y}px`)}},X&&!h.jsx&&W!=="loading"?z.createElement("button",{"aria-label":H,"data-disabled":Ot,"data-close-button":!0,onClick:Ot||!ee?()=>{}:()=>{Kn(),h.onDismiss==null||h.onDismiss.call(h,h)},className:Ei(G==null?void 0:G.closeButton,h==null||(n=h.classNames)==null?void 0:n.closeButton)},(Ur=B==null?void 0:B.close)!=null?Ur:kge):null,(W||h.icon||h.promise)&&h.icon!==null&&((B==null?void 0:B[W])!==null||h.icon)?z.createElement("div",{"data-icon":"",className:Ei(G==null?void 0:G.icon,h==null||(a=h.classNames)==null?void 0:a.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||$a():null,h.type!=="loading"?hs:null):null,z.createElement("div",{"data-content":"",className:Ei(G==null?void 0:G.content,h==null||(i=h.classNames)==null?void 0:i.content)},z.createElement("div",{"data-title":"",className:Ei(G==null?void 0:G.title,h==null||(o=h.classNames)==null?void 0:o.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?z.createElement("div",{"data-description":"",className:Ei(I,xe,G==null?void 0:G.description,h==null||(l=h.classNames)==null?void 0:l.description)},typeof h.description=="function"?h.description():h.description):null),z.isValidElement(h.cancel)?h.cancel:h.cancel&&Ig(h.cancel)?z.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||E,onClick:mt=>{Ig(h.cancel)&&ee&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,mt),Kn())},className:Ei(G==null?void 0:G.cancelButton,h==null||(c=h.classNames)==null?void 0:c.cancelButton)},h.cancel.label):null,z.isValidElement(h.action)?h.action:h.action&&Ig(h.action)?z.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||P,onClick:mt=>{Ig(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,mt),!mt.defaultPrevented&&Kn())},className:Ei(G==null?void 0:G.actionButton,h==null||(u=h.classNames)==null?void 0:u.actionButton)},h.action.label):null)};function vM(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function Fge(t,e){const r={};return[t,e].forEach((n,a)=>{const i=a===1,o=i?"--mobile-offset":"--offset",l=i?Tge:Mge;function c(u){["top","right","bottom","left"].forEach(d=>{r[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${o}-${u}`]=l:r[`${o}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):c(l)}),r}const zge=z.forwardRef(function(e,r){const{invert:n,position:a="bottom-right",hotkey:i=["altKey","KeyT"],expand:o,closeButton:l,className:c,offset:u,mobileOffset:d,theme:h="light",richColors:m,duration:g,style:b,visibleToasts:y=Pge,toastOptions:v,dir:N=vM(),gap:S=Ige,icons:j,containerAriaLabel:$="Notifications"}=e,[C,_]=z.useState([]),O=z.useMemo(()=>Array.from(new Set([a].concat(C.filter(V=>V.position).map(V=>V.position)))),[C,a]),[E,P]=z.useState([]),[T,I]=z.useState(!1),[R,F]=z.useState(!1),[L,q]=z.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=z.useRef(null),B=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=z.useRef(null),K=z.useRef(!1),Z=z.useCallback(V=>{_(U=>{var Y;return(Y=U.find(de=>de.id===V.id))!=null&&Y.delete||Ra.dismiss(V.id),U.filter(({id:de})=>de!==V.id)})},[]);return z.useEffect(()=>Ra.subscribe(V=>{if(V.dismiss){requestAnimationFrame(()=>{_(U=>U.map(Y=>Y.id===V.id?{...Y,delete:!0}:Y))});return}setTimeout(()=>{aC.flushSync(()=>{_(U=>{const Y=U.findIndex(de=>de.id===V.id);return Y!==-1?[...U.slice(0,Y),{...U[Y],...V},...U.slice(Y+1)]:[V,...U]})})})}),[C]),z.useEffect(()=>{if(h!=="system"){q(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window>"u")return;const V=window.matchMedia("(prefers-color-scheme: dark)");try{V.addEventListener("change",({matches:U})=>{q(U?"dark":"light")})}catch{V.addListener(({matches:Y})=>{try{q(Y?"dark":"light")}catch(de){console.error(de)}})}},[h]),z.useEffect(()=>{C.length<=1&&I(!1)},[C]),z.useEffect(()=>{const V=U=>{var Y;if(i.every(fe=>U[fe]||U.code===fe)){var ge;I(!0),(ge=G.current)==null||ge.focus()}U.code==="Escape"&&(document.activeElement===G.current||(Y=G.current)!=null&&Y.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[i]),z.useEffect(()=>{if(G.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,K.current=!1)}},[G.current]),z.createElement("section",{ref:r,"aria-label":`${$} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},O.map((V,U)=>{var Y;const[de,ge]=V.split("-");return C.length?z.createElement("ol",{key:V,dir:N==="auto"?vM():N,tabIndex:-1,ref:G,className:c,"data-sonner-toaster":!0,"data-sonner-theme":L,"data-y-position":de,"data-lifted":T&&C.length>1&&!o,"data-x-position":ge,style:{"--front-toast-height":`${((Y=E[0])==null?void 0:Y.height)||0}px`,"--width":`${Rge}px`,"--gap":`${S}px`,...b,...Fge(u,d)},onBlur:fe=>{K.current&&!fe.currentTarget.contains(fe.relatedTarget)&&(K.current=!1,H.
849current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||K.current||(K.current=!0,H.current=fe.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{R||I(!1)},onDragEnd:()=>I(!1),onPointerDown:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},C.filter(fe=>!fe.position&&U===0||fe.position===V).map((fe,Oe)=>{var Ce,le;return z.createElement(Hge,{key:fe.id,icons:j,index:Oe,toast:fe,defaultRichColors:m,duration:(Ce=v==null?void 0:v.duration)!=null?Ce:g,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:y,closeButton:(le=v==null?void 0:v.closeButton)!=null?le:l,interacting:R,position:V,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,closeButtonAriaLabel:v==null?void 0:v.closeButtonAriaLabel,removeToast:Z,toasts:C.filter(we=>we.position==fe.position),heights:E.filter(we=>we.position==fe.position),setHeights:P,expandByDefault:o,gap:S,expanded:T,swipeDirections:e.swipeDirections})})):null}))}),Vge={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_URL:"",VITE_GA_MEASUREMENT_ID:"G-RZVS67115J",VITE_SUPABASE_ANON_KEY:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImtldnRkb3lsd3dra2Jwa2dldmh1Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzAwNzUxMjQsImV4cCI6MjA4NTY1MTEyNH0.SasuDnz4EE8Xgca5GTWpCb5JtLT2Ymg0pqeKl61Qyro",VITE_SUPABASE_URL:"https://kevtdoylwwkkbpkgevhu.supabase.co"};function rG(t){const e=Vge[t];if(!e)throw new Error(`Missing ${t}`);return e}const Uge=rG("VITE_SUPABASE_URL"),Vb=new URL(Uge).hostname.split(".")[0],Ub=rG("VITE_SUPABASE_ANON_KEY"),qge="https://www.thebuilders.com/",Wge="https://www.youtube.com/embed/pY4pQtyh7fU",Gge=[{title:"Lower Prices Than Standard Small Group Health Plans",copy:"Association health plans can review the health history of your employees, unlike plans with ACA-only rating rules. For eligible businesses, this may lead to lower monthly costs and more predictable options."},{title:"Works Just Like a Standard Plan",copy:"These plans are not self-funded. BANN Association Health Plans can work very similarly to standard small group plans while adding another path to compare rates and benefits."},{title:"Large Group Model",copy:"Member businesses are grouped together to form a larger risk pool. This group structure can help keep rates competitive against other coverage choices."},{title:"Options to Fit Your Needs",copy:"BANN options can include multiple plan designs for construction-related businesses, including PPO and HMO choices depending on availability."},{title:"Association Fees",copy:"To be part of BANN, your business may need active membership and applicable fees. In some cases, potential premium savings can outweigh membership costs."}],Kge=[{title:"Potential Monthly Savings",copy:"Association health plans may offer lower monthly premiums compared to traditional small group options, depending on your business, employee census, and carrier rules.",icon:Sm},{title:"Qualified Group Coverage",copy:"Association plans can still provide qualified group health coverage while giving eligible employers another option to compare.",icon:Rr},{title:"More Options to Compare",copy:"For some businesses, association plans add another competitive choice alongside standard small group health insurance carriers.",icon:jy}],Yge=[{title:"Review Your Business",copy:"We review your business details, employee count, and eligibility requirements."},{title:"Compare Plan Options",copy:"We compare BANN association plans against standard small group options when available."},{title:"Explain Costs and Benefits",copy:"We help you understand premiums, networks, benefits, and employer contribution requirements."},{title:"Support Enrollment",copy:"We help guide the application and enrollment process so your business can move forward clearly."}],Xge=["Business name","Business address","Number of full-time employees","Employee census","Current coverage information, if applicable","Desired effective date","Employer contribution preference","Any preferred doctors, hospitals, or carrier networks"],Jge=[{category:"Association Plans",title:"How Association Health Plans Compare to Standard Small Group Coverage",excerpt:"A practical comparison framework for Nevada employers evaluating premium, network, and benefit differences.",href:"/blog-news/"},{category:"Employer Benefits",title:"Small Business Benefit Planning: What to Review Before Renewal",excerpt:"Key data points to gather before shopping quotes, including census changes and contribution strategy.",href:"/blog-news/"},{category:"Group Eligibility",title:"Nevada Group Plan Eligibility Basics for Employers",excerpt:"An overview of participation rules, employer documentation, and timelines for smooth enrollment.",href:"/blog-news/"}],jd=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:t}),e?s.jsx("p",{className:"mt-4 text-lg leading-relaxed text-hba-grey-1",children:e}):null]}),Qge=()=>s.jsxs("section",{className:"relative overflow-hidden border-b border-hba-blue-1/10 bg-gradient-to-b from-[#dfe8f0] via-[#eef2f6] to-[#e8edf2] py-16 md:py-24",children:[s.jsxs("div",{className:"absolute inset-0 opacity-50",children:[s.jsx("div",{className:"absolute -right-20 top-0 h-96 w-96 rounded-full bg-hba-orange-1/20 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 left-0 h-80 w-80 rounded-full bg-hba-blue-1/10 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto grid max-w-7xl gap-12 px-4 lg:grid-cols-2 lg:items-center",children:[s.jsxs("div",{children:[s.jsxs("p",{className:"inline-flex items-center gap-2 rounded-full border border-hba-blue-1/15 bg-white/80 px-4 py-1 text-xs font-black uppercase tracking-widest text-hba-blue-1",children:[s.jsx(el,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),"Northern Nevada employer coverage"]}),s.jsx("h1",{className:"mt-5 text-4xl font-black tracking-tight text-hba-blue-1 md:text-5xl lg:text-6xl",children:"BANN Association Health Plan"}),s.jsx("p",{className:"mt-6 max-w-xl text-lg leading-relaxed text-hba-grey-1",children:"The Builders Association of Northern Nevada offers association health plan options for eligible Nevada businesses. These plans may help employers access competitive group health insurance rates while still offering qualified coverage to employees."}),s.jsxs("div",{className:"mt-10 flex flex-col gap-4 sm:flex-row sm:flex-wrap",children:[s.jsxs(ue,{to:"/small-business-health-coverage-2/",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Request a Group Quote",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]}),s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center justify-center gap-2 rounded-xl border-2 border-hba-blue-1/25 bg-white px-7 py-4 font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:["Talk to a Broker",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})]})]}),s.jsxs("div",{className:"rounded-3xl border border-hba-blue-1/10 bg-white/90 p-8 shadow-xl shadow-hba-blue-1/10 backdrop-blur-sm md:p-10",children:[s.jsx("h2",{className:"text-2xl font-black text-hba-blue-1",children:"What is BANN?"}),s.jsx("p",{className:"mt-4 leading-relaxed text-hba-grey-1",children:"BANN stands for Builders Association of Northern Nevada. It is an association for businesses connected to the building, construction, trade, and related industries in Northern Nevada."}),s.jsx("p",{className:"mt-4 leading-relaxed text-hba-blue-2",children:"Some businesses may be eligible to access association health plan options through BANN membership."})]})]})]});function Zge(){return s.jsxs("div",{className:"bg-slate-100",children:[s.jsx(Qge,{}),s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsxs("div",{className:"mx-auto max-w-4xl text-center",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:"What Are Association Health Plans?"}),s.jsx("div",{className:"mx-auto mt-3 h-1 w-44 rounded-full bg-gradient-to-r from-hba-orange-1 via-hba-orange-1 to-hba-blue-1","aria-hidden":!0})]}),s.jsxs("div",{className:"mt-10 grid grid-cols-1 items-start gap-8 lg:grid-cols-2 lg:gap-10 xl:gap-12",children:[s.jsx("div",{className:"min-w-0 space-y-3",children:Gge.map(t=>s.jsxs("details",{className:"group rounded-xl border border-hba-blue-1/10 bg-slate-50 p-4 shadow-sm transition-all duration-200 open:sha
849dow-md hover:-translate-y-0.5 hover:shadow-md md:p-5",children:[s.jsxs("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-4 text-left text-sm font-black uppercase tracking-wider text-hba-blue-1 [&::-webkit-details-marker]:hidden",children:[s.jsx("span",{className:"pr-2",children:t.title}),s.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg border border-hba-blue-1/10 bg-white text-hba-orange-1 transition-transform duration-200 group-open:rotate-45","aria-hidden":!0,children:"+"})]}),s.jsx("p",{className:"mt-3 border-t border-hba-blue-1/10 pt-3 text-sm leading-relaxed text-hba-grey-1",children:t.copy})]},t.title))}),s.jsx("article",{className:"w-full min-w-0 overflow-hidden rounded-2xl border border-hba-blue-1/10 bg-slate-50 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md",children:s.jsx("div",{className:"aspect-video w-full",children:s.jsx("iframe",{className:"h-full w-full",src:Wge,title:"BANN Association Health Plan video",loading:"lazy",allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})})})]})]})}),s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(jd,{title:"Why Association Health Plans Can Be Valuable"}),s.jsx("div",{className:"mt-12 grid grid-cols-1 gap-6 md:grid-cols-3",children:Kge.map(t=>{const e=t.icon;return s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-slate-50 p-6 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(e,{className:"h-6 w-6","aria-hidden":!0})}),s.jsx("h3",{className:"mt-5 text-xl font-black tracking-tight text-hba-blue-1",children:t.title}),s.jsx("p",{className:"mt-3 leading-relaxed text-hba-grey-1",children:t.copy})]},t.title)})})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.08] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(jd,{title:"Who May Qualify?",subtitle:"Eligibility depends on business type, association membership, employee census, carrier participation rules, and Nevada group insurance requirements."}),s.jsxs("div",{className:"mt-10 rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm md:p-8",children:[s.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:["Nevada-based business","Eligible industry or association membership","Meets small group participation rules","Has required employer/business documentation","Has eligible employees to enroll"].map(t=>s.jsxs("li",{className:"flex gap-2 text-hba-blue-2",children:[s.jsx(er,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:t})]},t))}),s.jsx("p",{className:"mt-6 rounded-xl border border-hba-orange-1/25 bg-hba-orange-1/[0.06] p-4 text-sm font-medium text-hba-blue-2",children:"Eligibility can vary, so our brokers can help review your business and determine whether a BANN association plan is available."})]})]})}),s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(jd,{title:"How Health Benefits Associates Helps"}),s.jsx("div",{className:"mt-12 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:Yge.map((t,e)=>s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-slate-50 p-6 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md",children:[s.jsxs("p",{className:"text-xs font-black uppercase tracking-widest text-hba-orange-1",children:["Step ",e+1]}),s.jsx("h3",{className:"mt-2 text-lg font-black text-hba-blue-1",children:t.title}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-hba-grey-1",children:t.copy})]},t.title))})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.08] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(jd,{title:"Information Needed for a Quote"}),s.jsx("div",{className:"mt-10 rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm md:p-8",children:s.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:Xge.map(t=>s.jsxs("li",{className:"flex gap-2 text-hba-blue-2",children:[s.jsx(eS,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:t})]},t))})})]})}),s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsxs("div",{className:"rounded-2xl border border-hba-blue-1/15 bg-slate-50 p-6 shadow-sm md:p-8",children:[s.jsx("h2",{className:"text-2xl font-black text-hba-blue-1",children:"Important Notes"}),s.jsx("ul",{className:"mt-5 space-y-3",children:["Association health plan availability can change.","Membership requirements may apply.","Carrier underwriting or participation rules may apply.","Rates and benefits can vary by business and employee census.","HBA can help compare BANN options with other small group plans."].map(t=>s.jsxs("li",{className:"flex gap-2 text-hba-grey-1",children:[s.jsx(Foe,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:t})]},t))})]})})}),s.jsx("section",{className:"bg-hba-blue-1/[0.08] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(jd,{title:"Helpful Links"}),s.jsxs("div",{className:"mt-10 grid grid-cols-1 gap-4 md:grid-cols-3",children:[s.jsxs("a",{href:qge,target:"_blank",rel:"noopener noreferrer",className:"rounded-2xl border border-hba-blue-1/10 bg-white p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:shadow-md",children:[s.jsx("p",{className:"font-black text-hba-blue-1",children:"BANN Website"}),s.jsx("p",{className:"mt-2 text-sm text-hba-grey-1",children:"Official Builders Association of Northern Nevada website."}),s.jsxs("span",{className:"mt-4 inline-flex items-center gap-2 text-xs font-black uppercase tracking-wider text-hba-orange-1",children:["Open link",s.jsx(Lt,{className:"h-3.5 w-3.5","aria-hidden":!0})]})]}),s.jsxs(ue,{to:"/small-business-health-coverage-2/",className:"rounded-2xl border border-hba-blue-1/10 bg-white p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:shadow-md",children:[s.jsx("p",{className:"font-black text-hba-blue-1",children:"Small Business Quote"}),s.jsx("p",{className:"mt-2 text-sm text-hba-grey-1",children:"Start your small business group quote request."}),s.jsxs("span",{className:"mt-4 inline-flex items-center gap-2 text-xs font-black uppercase tracking-wider text-hba-orange-1",children:["Open link",s.jsx(Xe,{className:"h-3.5 w-3.5","aria-hidden":!0})]})]}),s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"rounded-2xl border border-hba-blue-1/10 bg-white p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:shadow-md",children:[s.jsx("p",{className:"font-black text-hba-blue-1",children:"Contact Us"}),s.jsx("p",{className:"mt-2 text-sm text-hba-grey-1",children:"Talk with a broker about BANN eligibility and options."}),s.jsxs("span",{className:"mt-4 inline-flex items-center gap-2 text-xs font-black uppercase tracking-wider text-hba-orange-1",children:["Open link",s.jsx(Xe,{className:"h-3.5 w-3.5","aria-hidden":!0})]})]})]})]})}),s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(jd,{title:"News and Posts",subtitle:"Recent small business and association-plan topics."}),s.jsx("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-3",children:Jge.map(t=>s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-slate-50 p-6 shadow-sm",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-wider text-hba-orange-1",children:t.category}),s.jsx("h3",{className:"mt-3 text-lg font-black leading-snug text-hba-blue-1",children:t.title}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-hba-grey-1",children:t.excerpt}),s.jsxs("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"mt-5 inline-flex items-center gap-2 text-sm font-black uppercase tracking-wider text-hba-blue-1 hover:text-hba-orange-1",children:["Read More",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})]},t.title))})]})}),s.jsx("section",{className:"relative border-t-4 border-hba-orange-1 bg-gradient-to-b from-white via-slate-50 to-slate-100 py-20 shadow-[0_-12px_40px_-20px_rgba(40,60,68,0.12)]",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4 text-center",children:[s.jsx("h2",{className:"mx-auto max-w-3xl text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:"Want to See if Your Business Qualifies?"}),s.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-lg text-hba-grey-1",children:"We can help review your eligibility, compare association health plans, and quote small group coverage options for your business."}),s.jsxs("div",{className:"mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row",children:[s.jsxs(ue,{to:"/small-business-health-coverage-2/",className:"inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Request a Group Quote",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]}),s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center gap-2 rounded-xl border-2 border-hba-blue-1/25 bg-white px-7 py-4 font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:["Talk to a Broker",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})]})]})})]})}const ebe=[{label:"Department of Labor",href:"https://www.dol.gov/general/topic/health-plans"},{label:"IRS - Cafeteria Plans",href:"https://www.irs.gov/benefits/cafeteria-plans"},{label:"FMLA Overview",href:"https://www.dol.gov/agencies/whd/fmla"}],tbe=[{title:"COBRA",summary:"Employers with 20 or more employees for 50% of the prior calendar year are very likely to be subject to COBRA.",icon:sn,points:["Employees and dependents should receive a notice of COBRA rights within 90 days of coverage starting.","When employees or dependents are terminated from the plan, they need a COBRA offer with the benefits and rates they had before the qualifying event.","COBRA beneficiaries who elect coverage have a specific timeframe to pay premiums, and COBRA administrators often handle collections, notices, and archives.","COBRA beneficiaries must generally receive the same opportunity to change plans during open enrollment."]},{title:"ERISA",summary:"ERISA sets minimum standards for most employer-sponsored group health insurance plans, including plan documents and summary plan descriptions.",icon:Ooe,points:["Plan documents are usually kept by the employer and should be available to employees on request.","Summary Plan Descriptions explain eligibility rules, enrollment deadlines, waiting periods, and open enrollment information.","Insurance companies may provide benefit summaries, but they generally do not replace an employerâs ERISA document responsibilities."]},{title:"Wrap Documents",summary:"Wrap documents bundle health and welfare benefits into a single plan document and summary plan description.",icon:Gi,points:["A wrap plan can fill gaps between insurance certificates, benefit summaries, and required ERISA plan language.","Common benefits that may be included are group health, dental, vision, group life, disability, EAP, FSA, and HRA benefits.","For employers with multiple welfare benefits, a wrap plan can reduce the number of separate documents to maintain."]},{title:"Section 125",summary:"A Section 125 plan, also called a Cafeteria Plan or POP plan, is required when employees pay eligible benefits with pre-tax contributions.",icon:oU,points:["Employers should keep Section 125 documentation on file when pre-taxing health plan premiums.","These documents may also support pre-tax health savings account and flexible spending account contributions.","Documentation should be reviewed and updated as benefit offerings and rules change over time."]},{title:"Association Health Plans",summary:"Association plans may offer Nevada businesses another way to compare group health coverage, but they can come with additional requirements.",icon:el,points:["Association plans can be an alternative to standard small group ACA policies for eligible Nevada businesses.","Because association coverage may be treated as a large group policy, participating employers may need to offer COBRA regardless of business size.","Many associations offer COBRA services to members, but employers should coordinate with the health plan, association, or broker to confirm requirements."]},{title:"Family and Medical Leave Act",summary:"FMLA can require covered employers to provide job-protected leave while continuing group health coverage under the same terms.",icon:Rr,points:["FMLA generally applies to covered employers with 50 or more employees in 20 or more workweeks in the current or prior calendar year.","Eligible employees may receive up to 12 workweeks of leave for certain family and medical reasons.","Military caregiver leave may allow up to 26 workweeks during a single 12-month period for qualifying covered servicemember care."]}],wM=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.2em] text-hba-orange-1",children:"Compliance Information"}),s.jsx("h2",{className:"mt-3 text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:t}),e?s.jsx("p",{className:"mt-4 text-lg leading-relaxed text-hba-grey-1",children:e}):null]});function rbe(){return s.jsxs("div",{className:"bg-slate-100",children:[s.jsxs("section",{className:"relative overflow-hidden border-b border-hba-blue-1/10 bg-gradient-to-br from-hba-blue-2 via-hba-blue-1 to-[#1a2830] py-20 text-white md:py-28",children:[s.jsxs("div",{className:"absolute inset-0 opacity-20","aria-hidden":!0,
849children:[s.jsx("div",{className:"absolute -left-24 top-0 h-80 w-80 rounded-full bg-hba-orange-1 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 right-0 h-96 w-96 rounded-full bg-sky-400/40 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4",children:[s.jsxs("p",{className:"inline-flex items-center gap-2 rounded-full border border-white/25 bg-white/10 px-4 py-1 text-xs font-black uppercase tracking-widest",children:[s.jsx(wU,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),"Employer plan compliance"]}),s.jsx("h1",{className:"mt-6 max-w-4xl text-4xl font-black leading-tight tracking-tight !text-white md:text-6xl",children:"Compliance for Nevada Group Health Plans"}),s.jsx("p",{className:"mt-6 max-w-3xl text-lg leading-relaxed text-white/90 md:text-xl",children:"Offering employee benefits means more than choosing a health plan. Employers also need to understand the federal and state compliance responsibilities that can apply to group coverage."}),s.jsxs("div",{className:"mt-8 rounded-2xl border border-white/20 bg-white/10 p-5 text-sm font-medium leading-relaxed text-white/85 backdrop-blur-sm",children:["This page is educational only and is not legal advice. For official rules and regulations, review guidance from the"," ",s.jsx("a",{href:"https://www.irs.gov/",target:"_blank",rel:"noopener noreferrer",className:"font-black text-hba-orange-1 underline decoration-2 underline-offset-4 hover:text-white",children:"IRS"}),","," ",s.jsx("a",{href:"https://www.dol.gov/",target:"_blank",rel:"noopener noreferrer",className:"font-black text-hba-orange-1 underline decoration-2 underline-offset-4 hover:text-white",children:"Department of Labor"}),", or your legal counsel."]})]})]}),s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-white py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(wM,{title:"Common Compliance Areas",subtitle:"These are common topics employers should review when sponsoring group health and welfare benefits."}),s.jsx("div",{className:"mt-10 grid grid-cols-1 gap-6 lg:grid-cols-2",children:tbe.map(t=>{const e=t.icon;return s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-slate-50 p-6 shadow-sm md:p-8",children:[s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(e,{className:"h-6 w-6","aria-hidden":!0})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-black tracking-tight text-hba-blue-1",children:t.title}),s.jsx("p",{className:"mt-2 leading-relaxed text-hba-grey-1",children:t.summary})]})]}),s.jsx("ul",{className:"mt-6 space-y-3",children:t.points.map(r=>s.jsxs("li",{className:"flex gap-2 text-sm leading-relaxed text-hba-blue-2",children:[s.jsx(Gse,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:r})]},r))})]},t.title)})})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.08] py-16 md:py-20",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsxs("div",{className:"grid gap-10 lg:grid-cols-[minmax(0,1fr)_420px] lg:items-start",children:[s.jsxs("div",{children:[s.jsx(wM,{title:"Official Resources",subtitle:"Use these public resources for official agency guidance and confirm your obligations with legal or compliance professionals."}),s.jsx("div",{className:"mt-10 grid grid-cols-1 gap-4 sm:grid-cols-2",children:ebe.map(t=>s.jsxs("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"group flex items-center justify-between gap-3 rounded-xl border border-hba-blue-1/10 bg-white p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:border-hba-orange-1/60 hover:shadow-md",children:[s.jsx("span",{className:"font-bold text-hba-blue-1",children:t.label}),s.jsx(Lt,{className:"h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0})]},t.href))})]}),s.jsxs("aside",{className:"rounded-3xl border border-hba-blue-1/10 bg-white p-8 shadow-xl shadow-hba-blue-1/10",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.2em] text-hba-orange-1",children:"Need help?"}),s.jsx("h2",{className:"mt-3 text-2xl font-black tracking-tight text-hba-blue-1",children:"Review group plan compliance with a broker"}),s.jsx("p",{className:"mt-4 leading-relaxed text-hba-grey-1",children:"We can help you identify which plan documents, notices, and carrier or association requirements may need review when setting up or renewing group coverage."}),s.jsxs("div",{className:"mt-8 flex flex-col gap-3",children:[s.jsxs(ue,{to:"/group-quote-request/",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-6 py-3.5 text-sm font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Request a Group Quote",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]}),s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center justify-center gap-2 rounded-xl border border-hba-blue-1/20 bg-white px-6 py-3.5 text-sm font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:["Talk to a Broker",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})]})]})]})})})]})}const nbe=mn.hero,abe={Reno:mn.reno,"Las Vegas":mn.henderson,Fernley:mn.fernley,"Carson City":mn.carsonCity,Sparks:mn.sparks,Truckee:mn.truckee},sbe={Reno:"/renolocation/","Las Vegas":"/hendersonlocation/",Fernley:"/fernleylocation/","Carson City":"/carsonlocation/",Sparks:"/sparkslocation/",Truckee:"/truckee-medicare/"},ibe=[{name:"Reno",address:"3716 Lakeside Dr Suite #100, Reno, NV 89509",phone:"(775) 828-1216",email:"[email protected]",note:null},{name:"Las Vegas",address:"9550 S. Eastern Ave Suite 253, Las Vegas, NV 89123",phone:"(702) 963
849-0123",email:"[email protected]",note:"By Appointment Only"},{name:"Fernley",address:"460 W Main St Unit 101, Fernley, NV 89408",phone:"(775) 828-0001",email:"[email protected]",note:null},{name:"Carson City",address:"405 N. Roop St, Carson City, NV 89701",phone:"(775) 362-3300",email:"[email protected]",note:null},{name:"Sparks",address:"437 Pyramid Way, Sparks, NV 89431",phone:"(775) 828-5701",email:"[email protected]",note:null},{name:"Truckee",address:"10098 Jibboom St #201B, Truckee, CA 96161",phone:"(530) 563-7780",email:"[email protected]",note:"By Appointment Only"}],obe=["Reno","Las Vegas","Sparks","Carson City","Fernley","Truckee"],lbe=()=>{const t=qn();return s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("section",{className:"bg-hba-blue-1 py-24 text-white relative overflow-hidden",children:[s.jsxs("div",{className:"absolute inset-0 z-0",children:[s.jsx(Dt,{src:nbe,className:"w-full h-full object-cover opacity-50"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-hba-blue-1/70 via-hba-blue-1/55 to-hba-blue-1/45"})]}),s.jsx("div",{className:"max-w-7xl mx-auto px-4 relative z-10",children:s.jsxs("div",{className:"max-w-3xl",children:[s.jsxs("h1",{className:"text-5xl md:text-8xl font-black mb-8 uppercase tracking-tighter leading-none text-white drop-shadow-2xl",children:["Our Local ",s.jsx("br",{})," ",s.jsx("span",{children:"Offices"})]}),s.jsx("p",{className:"text-xl text-hba-grey-2 leading-relaxed font-medium",children:"We have expert advisors ready to schedule an appointment with you. Browse our locations below to find the closest office to you."})]})})]}),s.jsx("section",{className:"py-24 bg-gradient-to-b from-white via-slate-50/45 to-white",id:"contact",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4",children:[s.jsx(K0,{title:"Local Guidance, Unbiased Advice",subtitle:"Choose a location below for contact details and office hours."}),s.jsxs("div",{className:"mt-10 rounded-xl border border-hba-blue-1/10 bg-hba-blue-1/[0.04] p-5 sm:p-6",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-widest text-hba-blue-1/70",children:"Service Areas"}),s.jsx("div",{className:"mt-3 flex flex-wrap gap-2.5",children:obe.map(e=>s.jsx("span",{className:"rounded-full border border-hba-blue-1/15 bg-white px-3 py-1.5 text-xs font-semibold text-hba-blue-1 transition-colors hover:border-hba-orange-1/35 hover:bg-hba-orange-1/5",children:e},e))})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mt-12",children:ibe.map(e=>{const r=sbe[e.name];return s.jsxs("div",{role:"link",tabIndex:0,onClick:()=>t(r),onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),t(r))},className:"group flex h-full flex-col overflow-hidden rounded-2xl border border-hba-blue-1/10 bg-white shadow-[0_14px_34px_-24px_rgba(15,23,42,0.55)] transition-all duration-300 hover:-translate-y-1.5 hover:shadow-[0_24px_48px_-24px_rgba(15,23,42,0.65)] cursor-pointer focus:outline-none focus:ring-4 focus:ring-orange-200",children:[s.jsxs("div",{className:"relative h-52 overflow-hidden rounded-t-2xl",children:[s.jsx(Dt,{src:abe[e.name],alt:e.name,className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-black/10 to-transparent"})]}),s.jsxs("div",{className:"p-6 flex flex-grow flex-col",children:[s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[s.jsx("h3",{className:"text-2xl font-black uppercase tracking-tight text-hba-orange-1",children:e.name}),e.note&&s.jsx("span",{className:"shrink-0 rounded-full border border-hba-orange-1/25 bg-hba-orange-1/10 px-2.5 py-1 text-[10px] font-bold uppercase tracking-wider text-hba-orange-1",children:e.note})]}),s.jsxs("div",{className:"mt-4 space-y-3.5 text-sm",children:[s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"mt-0.5 w-8 h-8 rounded-lg bg-hba-orange-1/10 flex items-center justify-center shrink-0",children:s.jsx(tr,{className:"w-4 h-4 text-hba-orange-1/80"})}),s.jsx("span",{className:"text-[13px] leading-relaxed text-slate-600",children:e.address})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg bg-hba-orange-1/10 flex items-center justify-center shrink-0",children:s.jsx(Ut,{className:"w-4 h-4 text-hba-orange-1/80"})}),s.jsx("a",{href:`tel:${e.phone.replace(/\D/g,"")}`,onClick:n=>n.stopPropagation(),className:"text-hba-blue-1 font-semibold text-sm hover:text-hba-orange-1 transition-colors",children:e.phone})]}),s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"mt-0.5 w-8 h-8 rounded-lg bg-hba-orange-1/10 flex items-center justify-center shrink-0",children:s.jsx(Na,{className:"w-4 h-4 text-hba-orange-1/80"})}),s.jsx("a",{href:`mailto:${e.email}`,onClick:n=>n.stopPropagation(),className:"min-w-0 break-all text-xs text-slate-500 hover:text-hba-orange-1 transition-colors",children:e.email})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg bg-hba-orange-1/10 flex items-center justify-center shrink-0",children:s.jsx(Fs,{className:"w-4 h-4 text-hba-orange-1/80"})}),s.jsx("span",{className:"text-[11px] text-slate-500",children:"Appointments Available from 8 to 4:30"})]})]}),s.jsxs(ue,{to:r,onClick:n=>n.stopPropagation(),className:"mt-5 flex items-center justify-between w-full rounded-xl bg-hba-blue-1 px-4 py-3 text-xs font-black uppercase tracking-widest text-white transition-all hover:bg-hba-orange-1 group/btn",children:["Learn More",s.jsx(Xe,{className:"w-5 h-5 group-hover/btn:translate-x-1 transition-transform"})]})]})]},e.name)})})]})}),s.jsx("section",{className:"py-24 bg-hba-blue-1/5 overflow-hidden relative",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4 relative z-10",children:s.jsxs("div",{className:"relative overflow-hidden rounded-[2rem] bg-gradient-to-r from-hba-blue-1 via-hba-blue-1 to-hba-blue-2 p-8 shadow-[0_24px_60px_-30px_rgba(15,23,42,0.9)] sm:p-12",children:[s.jsx("div",{className:"pointer-events-none absolute -right-12 -top-12 h-52 w-52 rounded-full bg-hba-orange-1/25 blur-3xl"}),s.jsx("div",{className:"pointer-events-none absolute -left-10 bottom-0 h-44 w-44 rounded-full bg-white/10 blur-3xl"}),s.jsxs("div",{className:"relative z-10 max-w-3xl",children:[s.jsx("h2",{className:"text-3xl font-black text-white tracking-tight sm:text-4xl",children:"Not Sure Which Office to Contact?"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-hba-grey-2",children:"Call our main office or send us a message â we'll connect you with the right local advisor."}),s.jsxs("div",{className:"mt-7 flex flex-col gap-3 sm:flex-row",children:[s.jsx("a",{href:"tel:7758281216",className:"inline-flex items-center justify-center rounded-xl bg-gradient-to-r from-hba-orange-1 to-hba-orange-2 px-7 py-4 text-sm font-black uppercase tracking-wider text-white shadow-[0_14px_35px_-12px_rgba(236,129,76,0.7)] transition-transform hover:-translate-y-0.5",children:"Call (775) 828-1216"}),s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center justify-center rounded-xl border border-white/35 bg-white/10 px-7 py-4 text-sm font-black uppercase tracking-wider text-white transition-colors hover:bg-white/20",children:"Send a Message"})]})]})]})})})]})},NM="hba-google-analytics",Jl="G-RZVS67115J".trim(),cbe=/^[a-z0-9_]{1,40}$/;
849function Om(){return!!(Jl!=null&&Jl.startsWith("G-"))}function ube(){if(!(typeof window>"u"||!Om())){if(window.dataLayer=window.dataLayer||[],window.gtag=window.gtag||function(...e){var r;(r=window.dataLayer)==null||r.push(arguments)},!document.getElementById(NM)&&!document.querySelector(`script[src*="${Jl}"]`)){const t=document.createElement("script");t.id=NM,t.async=!0,t.src=`https://www.googletagmanager.com/gtag/js?id=${encodeURIComponent(Jl)}`,document.head.appendChild(t)}window.gtag("js",new Date),window.gtag("config",Jl,{send_page_view:!1})}}function dbe(t,e=document.title){typeof window>"u"||!Om()||!window.gtag||window.gtag("event","page_view",{page_title:e,page_location:window.location.href,page_path:t,send_to:Jl})}function pN(t,e={}){typeof window>"u"||!Om()||!window.gtag||window.gtag("event",t,{...e,send_to:Jl})}const sm=pN;function hbe(t){return t==="/admin"||t.startsWith("/admin/")}function fbe(t){return(t.slice(4).split(/[?;,]/)[0]??"").replace(/\D/g,"")||void 0}function pbe(t){const e=t.slice(7).split("?")[0]??"";try{const r=decodeURIComponent(e).trim().toLowerCase();return!r||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)?void 0:r}catch{return}}function mbe(t){var n;const e=t.closest("[data-analytics-location]"),r=(n=e==null?void 0:e.getAttribute("data-analytics-location"))==null?void 0:n.trim().toLowerCase();return r&&cbe.test(r)?r:t.closest("header")?"header":t.closest("footer")?"footer":"unknown"}function jM(t){if(typeof window>"u"||hbe(window.location.pathname))return;const e=t.target;if(!(e instanceof Element))return;const r=e.closest("a");if(!r)return;const n=(r.getAttribute("href")??"").trim();if(!n)return;const a=n.toLowerCase(),i=window.location.pathname,o=mbe(r);if(a.startsWith("tel:")){const l=fbe(n);pN("phone_click",{page_path:i,click_location:o,...l?{phone_number:l}:{}});return}if(a.startsWith("mailto:")){const l=pbe(n);pN("email_click",{page_path:i,click_location:o,...l?{email_address:l}:{}})}}function gbe(){return typeof document>"u"?()=>{}
849:(document.addEventListener("click",jM),()=>{document.removeEventListener("click",jM)})}const Sh=({category:t,title:e="Get a Free Quote",showMessage:r=!1,analyticsFormName:n,onSuccess:a})=>{const{register:i,handleSubmit:o,reset:l,formState:{errors:c,isSubmitting:u}}=mge(),d=r,h=z.useMemo(()=>String(Date.now()),[]),m=async g=>{try{if(!(await fetch(ut("/api/leads"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...g,source:d?"contact":"lead-form",category:g.category||t||"General Inquiry",message:g.message||"",website:g.website||"",formStartedAt:g.formStartedAt||h})})).ok)throw new Error("Failed to submit");n&&sm("contact_form_submit",{form_name:n}),te.success("Thank you! An advisor will contact you shortly."),a==null||a(g),l()}catch(b){console.error("Submission error:",b),n&&sm("form_error",{form_name:n,error_type:"submission_failed"}),te.error("There was an error sending your request. Please try again or call us.")}};return s.jsxs("div",{className:"bg-white p-8 rounded-2xl shadow-xl border border-gray-100",children:[s.jsx("h3",{className:"text-2xl font-bold text-hba-blue mb-6",children:e}),s.jsxs("form",{onSubmit:o(m),className:"space-y-4",children:[s.jsx("input",{...i("website"),type:"text",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden"}),s.jsx("input",{...i("formStartedAt"),type:"hidden",value:h}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Full Name ",s.jsx("span",{className:"text-red-500",children:"*"})]}),s.jsx("input",{...i("name",{required:"Name is required"}),className:"w-full px-4 py-2 border border-gray-200 rounded-lg focus:ring-2 focus:ring-hba-blue focus:border-transparent outline-none transition-all",placeholder:"John Doe"}),c.name&&s.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.name.message})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Email Address ",s.jsx("span",{className:"text-red-500",children:"*"})]}),s.jsx("input",{...i("email",{required:"Email is required",pattern:{value:/^\S+@\S+$/i,message:"Invalid email"}}),className:"w-full px-4 py-2 border border-gray-200 rounded-lg focus:ring-2 focus:ring-hba-blue focus:border-transparent outline-none transition-all",placeholder:"[email protected]"}),c.email&&s.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.email.message})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Phone Number ",s.jsx("span",{className:"text-red-500",children:"*"})]}),s.jsx("input",{...i("phone",{required:"Phone is required"}),className:"w-full px-4 py-2 border border-gray-200 rounded-lg focus:ring-2 focus:ring-hba-blue focus:border-transparent outline-none transition-all",placeholder:"(775) 000-0000"}),c.phone&&s.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.phone.message})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Zip Code"}),s.jsx("input",{...i("zip"),className:"w-full px-4 py-2 border border-gray-200 rounded-lg focus:ring-2 focus:ring-hba-blue focus:border-transparent outline-none transition-all",placeholder:"89501"}),c.zip&&s.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.zip.message})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Questions About ",d?s.jsx("span",{className:"text-red-500",children:"*"}):null]}),s.jsxs("select",{...i("category",{validate:g=>d&&!g?"Please select a topic":!0}),defaultValue:d?"":t||"Medicare",className:"w-full px-4 py-2 border border-gray-200 rounded-lg focus:ring-2 focus:ring-hba-blue focus:border-transparent outline-none transition-all appearance-none bg-no-repeat bg-[right_1rem_center]",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='19 9l-7 7-7-7' /%3E%3C/svg%3E")`},children:[d?s.jsx("option",{value:"",children:"Select one..."}):null,s.jsx("option",{value:"Medicare",children:"Medicare"}),s.jsx("option",{value:"Individual",children:"Individual & Family"}),s.jsx("option",{value:"Small Business",children:"Small Business"}),s.jsx("option",{value:"Dental/Vision",children:"Dental & Vision"}),s.jsx("option",{value:"Something else",children:"Something else"})]}),c.category&&s.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.category.message})]})]}),r?s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Message ",s.jsx("span",{className:"text-red-500",children:"*"})]}
849),s.jsx("textarea",{...i("message",{validate:g=>d&&!(g??"").trim()?"Message is required":!0}),rows:5,className:"w-full px-4 py-3 border border-gray-200 rounded-lg focus:ring-2 focus:ring-hba-blue focus:border-transparent outline-none transition-all resize-y",placeholder:"Briefly describe what you need help with..."}),c.message&&s.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.message.message})]}):null,d?s.jsxs("label",{className:"flex items-start gap-3 text-sm leading-relaxed text-gray-700",children:[s.jsx("input",{...i("smsConsent"),type:"checkbox",className:"mt-1 h-4 w-4 shrink-0 rounded border-gray-300 text-hba-blue-1 focus:ring-hba-blue"}),s.jsxs("span",{children:["Yes, I consent to receive customer care text messages from Health Benefits Associates. Reply STOP to opt-out; Reply HELP for support; Message and data rates apply; Messaging frequency may vary. Visit our"," ",s.jsx("a",{href:"/privacy-policy-2/",className:"font-medium text-hba-blue-1 underline hover:text-hba-blue-2",children:"Privacy Policy"})," ","and"," ",s.jsx("a",{href:"/sms-terms-and-conditions/",className:"font-medium text-hba-blue-1 underline hover:text-hba-blue-2",children:"Terms of Service"}),"."]})]}):null,s.jsx("button",{type:"submit",disabled:u,className:"w-full bg-hba-blue-1 hover:bg-hba-blue-2 text-white font-bold py-3 rounded-lg shadow-lg shadow-hba-blue-1/20 transition-all disabled:opacity-50 disabled:cursor-not-allowed mt-4",children:u?"Sending...":d?"Send Secure Message":"Request My Free Quote"}),s.jsx("p",{className:"text-[10px] text-gray-400 text-center uppercase tracking-widest mt-4",children:"By clicking, you agree to be contacted by an HBA advisor."})]})]})},bbe=[{title:"Individual & Family",copy:"Compare individual and family health plans available in your ZIP code.",href:"/ifp-quote",icon:sn},{title:"Group",copy:"Request a group health quote for your business or organization.",href:"/group-quote-request/",icon:el},{title:"Medicare",copy:"Start a Medicare quote request with our advisory team.",href:"/medicare-quote-request/",icon:Ki}],xbe=()=>s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("section",{className:"relative py-32 bg-hba-blue-1 overflow-hidden",children:[s.jsxs("div",{className:"absolute inset-0 z-0",children:[s.jsx(Dt,{src:"https://images.unsplash.com/photo-1542332213-9b5a5a3fad35?q=80&w=1920",className:"w-full h-full object-cover opacity-20 grayscale",alt:"Nevada Landscape"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-hba-blue-1 via-transparent to-hba-blue-1"})]}),s.jsx("div",{className:"max-w-7xl mx-auto px-4 relative z-10 text-center",children:s.jsxs(Nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},children:[s.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 bg-white/5 backdrop-blur-md rounded-full text-hba-orange-1 text-xs font-black uppercase tracking-[0.3em] mb-8 border border-white/10",children:[s.jsx(sS,{className:"w-4 h-4"}),"Nevada-Based Advisory"]}),s.jsxs("h1",{className:"text-5xl md:text-8xl font-black text-white uppercase tracking-tighter leading-none mb-8",children:["Let's ",s.jsx("span",{className:"text-hba-orange-1",children:"Connect"})]}),s.jsx("p",{className:"text-xl text-hba-grey-2 max-w-2xl mx-auto font-medium leading-relaxed",children:"Objective guidance is just a conversation away. Reach out to our team of licensed advisors for a complimentary plan review."})]})})]}),s.jsx("section",{className:"py-24 bg-white -mt-12 relative z-20 rounded-t-[4rem] shadow-2xl",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4",children:[s.jsxs("div",{className:"mb-20",children:[s.jsxs("div",{className:"mb-8 flex flex-col gap-3 md:flex-row md:items-end md:justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.24em] text-hba-orange-1",children:"Start a quote"}),s.jsx("h2",{className:"mt-3 text-3xl font-black uppercase tracking-tight text-hba-blue-1 md:text-4xl",children:"Choose Your Coverage Type"})]}),s.jsx("p",{className:"max-w-xl text-base font-medium leading-relaxed text-hba-grey-1",children:"Select the option that matches your coverage need and continue to the right quote page."})]}),s.jsx("div",{className:"grid grid-cols-1 gap-5 md:grid-cols-3",children:bbe.map((t,e)=>{const r=t.icon;return s.jsx(Nt.div,{initial:{opacity:0,y:18},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.08},children:s.jsxs(ue,{to:t.href,className:"group flex h-full flex-col justify-between rounded-2xl border border-hba-blue-1/10 bg-hba-blue-1/[0.04] p-7 transition-all hover:-translate-y-1 hover:border-hba-orange-1/60 hover:bg-white hover:shadow-xl",children:[s.jsxs("div",{children:[s.jsx("div",{className:"mb-6 flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1 text-white shadow-lg transition-transform group-hover:scale-110 group-hover:bg-hba-orange-1",children:s.jsx(r,{className:"h-5 w-5","aria-hidden":!0})}),s.jsx("h3",{className:"text-xl font-black uppercase tracking-tight text-hba-blue-1",children:t.title}),s.jsx("p",{className:"mt-3 text-sm font-medium leading-relaxed text-hba-grey-1",children:t.copy})]}),s.jsxs("span",{className:"mt-6 inline-flex items-center gap-2 text-xs font-black uppercase tracking-widest text-hba-orange-1",children:["Get Quote",s.jsx(Xe,{className:"h-4 w-4 transition-transform group-hover:translate-x-1","aria-hidden":!0})]})]})},t.title)})})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-16 lg:gap-24",children:[s.jsxs("div",{"data-analytics-location":"contact_page",className:"lg:col-span-5 space-y-16",children:[s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-8",children:[{icon:Ut,title:"Strategic Advisory",value:"(775) 828-1216",href:"tel:7758281216",color:"bg-hba-blue-1",sub:"Reno Headquarters"},{icon:Na,title:"Advisory Inbox",value:"[email protected]",href:"mailto:[email protected]",color:"bg-hba-orange-1",sub:"General Inquiries"},{icon:Fs,title:"Office Hours",value:"Mon-Fri: 8:00am - 4:30 pm",href:null,color:"bg-hba-grey-1",sub:"Weekends by Appt"},{icon:tr,title:"Main Office",value:"3716 Lakeside Dr, #100",href:"/renolocation/",color:"bg-hba-blue-2",sub:"Reno, NV 89509"}].map((t,e)=>s.jsx(Nt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.1},className:"group",children:s.jsxs("div",{className:"p-8 rounded-[2rem] bg-hba-blue-1/5 border border-transparent hover:border-hba-orange-1 hover:bg-white hover:shadow-xl transition-all h-full",children:[s.jsx("div",{className:`${t.color} w-12 h-12 rounded-xl flex items-center justify-center text-white mb-6 group-hover:scale-110 transition-transform shadow-lg`,children:s.jsx(t.icon,{className:"w-5 h-5"})}),s.jsx("h3",{className:"font-black text-xs uppercase tracking-widest text-hba-grey-1 mb-2",children:t.title}),t.href?s.jsx("a",{href:t.href,className:"block min-w-0 break-words text-lg font-black leading-tight text-hba-blue-1 transition-colors hover:text-hba-orange-1",children:t.value}):s.jsx("p",{className:"text-lg font-black text-hba-blue-1 leading-tight",children:t.value}),s.jsx("p",{className:"text-[10px] font-black uppercase tracking-widest text-hba-orange-1 mt-3 opacity-0 group-hover:opacity-100 transition-opacity",children:t.sub})]})},e))}),s.jsxs("div",{className:"relative group",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-hba-blue-1 to-hba-blue-2 roun
849ded-[3rem] -rotate-1 group-hover:rotate-0 transition-transform duration-500 shadow-2xl"}),s.jsxs("div",{className:"relative bg-white/5 backdrop-blur-sm border border-white/10 p-12 rounded-[3rem] overflow-hidden",children:[s.jsx("div",{className:"absolute top-0 right-0 p-8 opacity-10",children:s.jsx(Su,{className:"w-32 h-32 text-white"})}),s.jsxs("div",{className:"relative z-10",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-hba-orange-1 text-white text-[10px] font-black uppercase tracking-widest rounded-full mb-6",children:[s.jsx(Rr,{className:"w-3 h-3"}),"Licensed Experts"]}),s.jsxs("h3",{className:"text-3xl font-black text-white mb-4 uppercase tracking-tight leading-tight",children:["Looking for a ",s.jsx("br",{}),s.jsx("span",{className:"text-hba-orange-1",children:"specific advisor?"})]}),s.jsx("p",{className:"text-white/70 mb-8 font-medium leading-relaxed",children:"Our team includes dedicated specialists for Medicare, Small Business Groups, and Individual Health Exchange navigation."}),s.jsxs(ue,{to:"/our-team/",className:"inline-flex items-center gap-3 bg-white text-hba-blue-1 px-8 py-4 rounded-2xl font-black text-sm uppercase tracking-widest hover:bg-hba-orange-1 hover:text-white transition-all group/btn",children:["Meet the Team",s.jsx(Xe,{className:"w-4 h-4 group-hover/btn:translate-x-2 transition-transform"})]})]})]})]})]}),s.jsx("div",{className:"lg:col-span-7",children:s.jsx("div",{className:"sticky top-32",children:s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-hba-orange-1 to-hba-blue-1 rounded-[3.5rem] blur opacity-20 group-hover:opacity-30 transition duration-1000 group-hover:duration-200"}),s.jsxs("div",{className:"relative bg-white border border-gray-100 rounded-[3rem] p-8 md:p-12 shadow-2xl",children:[s.jsxs("div",{className:"mb-12",children:[s.jsx("h2",{className:"text-4xl font-black text-hba-blue-1 uppercase tracking-tighter mb-4",children:"Send a Secure Message"}),s.jsx("p",{className:"text-hba-grey-1 font-medium",children:"Briefly describe your situation and an advisor will respond within 24 business hours."})]}),s.jsx(Sh,{title:"Contact Advisory",showMessage:!0,analyticsFormName:"contact_us"})]})]})})})]})]})})]});function ybe({employee:t}){const[e,r]=w.useState(!1),n=kh(t,"cardDefault"),a=kh(t,"cardHover");return s.jsx("article",{className:"group block overflow-hidden rounded-[2rem] border border-slate-400/30 bg-transparent transition-colors duration-300 focus-within:ring-2 focus-within:ring-hba-orange-1 focus-within:ring-offset-2",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:s.jsxs(ue,{to:`/our-team/${t.slug}`,className:"block outline-none","aria-label":`View profile of ${t.name}, ${t.title}`,children:[s.jsxs("div",{className:"relative aspect-[4/5] overflow-hidden bg-neutral-100",children:[n?s.jsx(Dt,{src:n,alt:t.name,className:"absolute inset-0 z-[1] h-full w-full object-cover transition-opacity duration-500 ease-out",style:{opacity:a&&e?0:1,pointerEvents:"none"},"aria-hidden":!0}):s.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-hba-grey-1 font-medium text-4xl z-[1]","aria-hidden":!0,children:t.name.charAt(0)}),a&&s.jsx(Dt,{src:a,alt:t.name,className:"absolute inset-0 z-[2] h-full w-full object-cover transition-opacity duration-500 ease-out",style:{opacity:e?1:0,pointerEvents:"none"},"aria-hidden":!0})]}),s.jsxs("div",{className:"border-t border-[#03293f] bg-[#043a59] p-6 md:p-8",children:[s.jsx("h2",{className:"text-xl md:text-2xl font-bold text-white uppercase tracking-tight group-hover:text-hba-orange-1 transition-colors",children:t.name}),s.jsx("p",{className:"mt-1 text-sm font-semibold uppercase tracking-wider text-hba-orange-1",children:t.title})]})]})})}function nG({employees:t,emptyMessage:e="No team members to display."}){return t.length?s.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 md:gap-10 list-none p-0 m-0",children:t.map(r=>s.jsx("li",{children:s.jsx(ybe,{employee:r})},r.id))}):s.jsx("div",{className:"py-16 text-center",children:s.jsx("p",{className:"text-hba-grey-1 text-lg",children:e})})}function kM(){const[t,e]=w.useState([]),[r,n]=w.useState(!0),[a,i]=w.useState(null);return w.useEffect(()=>{let o=!1;async function l(){try{const c=await Ty();o||(e(c),i(null))}catch(c){o||(i(c.message),e([]))}finally{o||n(!1)}}return l(),()=>{o=!0}},[]),s.jsx("div",{className:"py-16 md:py-24 bg-white",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4",children:[s.jsx("div",{className:"mb-4",children:s.jsx(K0,{title:"Our Team",subtitle:"Meet the people behind Health Benefits Associates. We're here to help you navigate coverage with clarity and confidence across Northern Nevada.",badge:"About Us"})}),r&&s.jsxs("div",{className:"flex justify-center py-16",children:[s.jsx("div",{className:"w-10 h-10 border-4 border-hba-orange-1 border-t-transparent roun
849ded-full animate-spin","aria-hidden":!0}),s.jsx("span",{className:"sr-only",children:"Loading team"})]}),a&&s.jsxs("div",{className:"py-16 text-center",children:[s.jsx("p",{className:"text-red-600 font-medium",children:a}),s.jsx("p",{className:"text-hba-grey-1 mt-2",children:"Please try again later."})]}),!r&&!a&&s.jsx(nG,{employees:t,emptyMessage:"No team members to display at this time."})]})})}function vbe(){const[t,e]=w.useState([]),[r,n]=w.useState(!0),[a,i]=w.useState(null);return w.useEffect(()=>{let o=!1;async function l(){try{const c=await Ty();o||(e(c),i(null))}catch(c){o||(i(c.message),e([]))}finally{o||n(!1)}}return l(),()=>{o=!0}},[]),s.jsx("div",{className:"relative z-10 min-h-screen bg-gradient-to-b from-white via-slate-50/40 to-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx("div",{className:"mb-4",children:s.jsx(K0,{badge:"About Us",title:"Our Team",subtitle:"Meet the people behind Health Benefits Associates. We're here to help you navigate coverage with clarity and confidence across Northern Nevada."})}),r&&s.jsxs("div",{className:"flex justify-center py-16",children:[s.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-4 border-hba-orange-1 border-t-transparent","aria-hidden":!0}),s.jsx("span",{className:"sr-only",children:"Loading team"})]}),a&&s.jsxs("div",{className:"py-16 text-center",children:[s.jsx("p",{className:"font-medium text-red-600",children:a}),s.jsx("p",{className:"mt-2 text-hba-grey-1",children:"Please try again later."})]}),!r&&!a&&s.jsx(nG,{employees:t,emptyMessage:"No team members to display at this time."}),s.jsxs("div",{className:"relative mt-32 overflow-hidden rounded-[3.5rem] bg-hba-blue-1 p-16 text-center shadow-[0_30px_60px_rgba(40,60,68,0.3)]",children:[s.jsx("div",{className:"absolute top-0 right-0 h-full w-1/3 translate-x-1/4 skew-x-12 bg-hba-orange-1 opacity-5"}),s.jsxs("h2",{className:"relative z-10 mb-8 text-4xl leading-none font-black tracking-tighter text-white uppercase md:text-6xl",children:["Work With a ",s.jsx("br",{})," ",s.jsx("span",{className:"text-hba-orange-1",children:"Knowledgeable Advisor"})]}),s.jsx("p",{className:"relative z-10 mx-auto mb-12 max-w-2xl text-xl leading-relaxed font-medium text-hba-grey-2",children:"Our services are provided at zero cost. As independent brokers, our priority is objective analysis and finding you the best market value."}),s.jsxs("div",{className:"relative z-10 flex flex-col justify-center gap-6 sm:flex-row",children:[s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"transform rounded-2xl bg-hba-orange-1 px-12 py-5 text-xl font-black text-white shadow-2xl transition-all hover:-translate-y-1 hover:bg-hba-orange-2",children:"Start Comparison"}),s.jsxs("a",{href:"tel:7758281216",className:"flex items-center justify-center gap-4 roun
849ded-2xl border-2 border-white/20 bg-white/10 px-12 py-5 text-xl font-black text-white transition-all hover:bg-white/20",children:[s.jsx(Ut,{className:"h-6 w-6 text-hba-orange-1"}),"(775) 828-1216"]})]})]})]})})}function wbe({employee:t}){var i,o,l,c;const e=kh(t,"hero"),r=N1e(t),{metadata:n}=t;(i=n==null?void 0:n.funFactTitle)!=null&&i.trim()||((o=n==null?void 0:n.funFactText)==null||o.trim());const a=((l=t.images)==null?void 0:l.gallery)??[];return s.jsxs("div",{className:"max-w-5xl mx-auto",children:[s.jsx("div",{className:"mb-8",children:s.jsxs(ue,{to:"/our-team/",className:"inline-flex items-center gap-2 text-hba-blue-1 font-semibold hover:text-hba-orange-1 transition-colors focus:outline-none focus:ring-2 focus:ring-hba-orange-1 focus:ring-offset-2 rounded",children:[s.jsx(Wo,{className:"w-4 h-4","aria-hidden":!0}),"Back to team"]})}),s.jsx("section",{className:"mb-12 overflow-hidden rounded-[2.5rem] border border-slate-200/70 bg-white shadow-[0_36px_90px_-42px_rgba(15,23,42,0.34)]",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[0.95fr_1.05fr]",children:[s.jsx("div",{className:"relative min-h-[360px] bg-gray-100 lg:min-h-[640px]",children:e?s.jsx(Dt,{src:e,alt:t.name,className:"absolute inset-0 h-full w-full object-cover"}):s.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-6xl font-bold text-hba-grey-1",children:t.name.charAt(0)})}),s.jsxs("div",{className:"flex flex-col justify-center p-8 md:p-12 lg:p-14",children:[s.jsx("p",{className:"text-[11px] font-black uppercase tracking-[0.28em] text-hba-orange-1",children:"Team Member"}),s.jsx("h1",{className:"mt-4 text-3xl font-black uppercase tracking-tight text-hba-blue-1 md:text-4xl lg:text-5xl",children:t.name}),s.jsx("p",{className:"mt-2 text-lg font-semibold uppercase tracking-[0.18em] text-hba-orange-1 md:text-xl",children:t.title}),t.tagline?s.jsx("p",{className:"mt-6 text-lg leading-relaxed text-hba-grey-1",children:t.tagline}):null,t.bio?s.jsx("div",{className:"mt-8 whitespace-pre-line text-base leading-relaxed text-hba-grey-1 md:text-lg",children:t.bio}):null,null,t.email||r?s.jsxs("div",{"data-analytics-location":"broker_card",className:"mt-8 flex flex-wrap gap-4",children:[s.jsxs("a",{href:`mailto:${r}`,className:"inline-flex items-center gap-2 rounded-xl bg-hba-blue-1 px-5 py-3 font-semibold text-white transition-colors hover:bg-hba-blue-2 focus:outline-none focus:ring-2 focus:ring-hba-orange-1 focus:ring-offset-2",children:[s.jsx(Na,{className:"w-5 h-5","aria-hidden":!0}),"Email"]}),(c=t.linkedinUrl)!=null&&c.trim()?s.jsxs("a",{href:t.linkedinUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-xl border-2 border-hba-blue-1 px-5 py-3 font-semibold text-hba-blue-1 transition-colors hover:bg-hba-blue-1 hover:text-white focus:outline-none focus:ring-2 focus:ring-hba-orange-1 focus:ring-offset-2",children:[s.jsx(cS,{className:"w-5 h-5","aria-hidden":!0}),"LinkedIn"]}):null]}):null]})]})}),s.jsx("section",{className:"mb-12 overflow-hidden rounded-[2.5rem] bg-hba-blue-1 text-white shadow-[0_38px_100px_-44px_rgba(15,23,42,0.5)]",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[0.9fr_1.1fr]",children:[s.jsxs("div",{className:"p-8 md:p-12 lg:p-14",children:[s.jsx("p",{className:"text-[11px] font-black uppercase tracking-[0.28em] text-hba-orange-1",children:"Reach Out"}),s.jsx("h2",{className:"mt-4 text-3xl font-black tracking-tight text-white md:text-4xl",children:"If youâd rather just chat than scroll through our site, weâd love to hear from you."}),s.jsx("p",{className:"mt-6 max-w-xl text-base leading-relaxed text-white/78 md:text-lg",children:"Feel free to include any details or anecdotes about what brought you here today, it will help make sure we get you connected to the best person right away."})]}),s.jsx("div",{className:"bg-white p-6 md:p-8 lg:p-10",children:s.jsx(Sh,{title:"Contact Us",category:"General Inquiry",showMessage:!0})})]})}),a.length>0?s.jsxs("section",{className:"mb-12",children:[s.jsx("h2",{className:"mb-6 text-2xl font-bold uppercase tracking-tight text-hba-blue-1",children:"Gallery"}),s.jsx("ul",{className:"m-0 grid list-none grid-cols-2 gap-4 p-0 md:grid-cols-3",children:a.map((u,d)=>s.jsx("li",{children:s.jsx("div",{className:"aspect-square overflow-hidden rounded-2xl bg-gray-100",children:s.jsx(Dt,{src:u,alt:"",className:"h-full w-full object-cover","aria-hidden":!0})})},d))})]}):null]})}function Nbe(){const{slug:t}=Hu(),[e,r]=w.useState(null),[n,a]=w.useState(!0),[i,o]=w.useState(!1);return w.useEffect(()=>{if(!t){o(!0),a(!1);return}let l=!1;async function c(){try{const u=await _1e(t);l||(u?r(u):o(!0))}catch{l||o(!0)}finally{l||a(!1)}}return c(),()=>{l=!0}},[t]),n?s.jsxs("div",{className:"py-24 flex justify-center",children:[s.jsx("div",{className:"w-10 h-10 border-4 border-hba-orange-1 border-t-transparent roun
849ded-full animate-spin","aria-hidden":!0}),s.jsx("span",{className:"sr-only",children:"Loading profile"})]}):i||!e?s.jsx(ch,{to:"/our-team/",replace:!0}):s.jsx("div",{className:"py-16 md:py-24 bg-white",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4",children:s.jsx(wbe,{employee:e})})})}const jbe=[{name:"Hometown Health",logo:Gr.hometownHealth,providerLink:"https://apps.hometownhealth.com/OnlineProviderDirectory/"},{name:"Prominence",logo:Gr.prominence,providerLink:"http://prominencehealthplan.com/find-a-doctor/nevada-provider-directories/"},{name:"UnitedHealthcare",logo:Gr.unitedHealthcare,providerLink:"https://www.uhc.com/find-a-physician"},{name:"Anthem",logo:Gr.anthem,providerLink:"https://www.anthem.com/health-insurance/provider-directory/searchcriteria?qs=&planstate=NV"},{name:"Aetna",logo:Gr.aetna,providerLink:"https://www.aetna.com/dsepublic/#/contentPage?page=providerSearchLanding&site_id=dse&language=en"},{name:"Sierra Health and Life",logo:Gr.sierraHealth,providerLink:"https://www.sierrahealthandlife.com/Member/Doctor-or-Provider"},{name:"Health Plan of Nevada",logo:Gr.healthPlanOfNevada,providerLink:"https://www.healthplanofnevada.com/Member/Doctor-or-Provider"}],kbe=[{name:"Hometown Health",logo:Gr.hometownHealth,providerLink:"https://apps.hometownhealth.com/OnlineProviderDirectory/"},{name:"Ambetter",logo:Gr.sierraHealth,providerLink:"https://providersearch.ambetterhealth.com/"},{name:"Health Plan of Nevada",logo:Gr.healthPlanOfNevada,providerLink:"https://www.healthplanofnevada.com/Member/Doctor-or-Provider"}],Sbe="Provider lists can change at the insurance companyâs discretion. An initial in-network classification of medical benefits is not always accurate. Please consult your medical planâs provider list before receiving care to confirm network eligibility. As always, consult your insurance provider for more detailed information about your plan. This webpage is provided for informational purposes only.",Cbe=({title:t,subtitle:e,id:r})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{id:r,className:"text-2xl font-black tracking-tight text-hba-blue-1 md:text-3xl",children:t}),e?s.jsx("p",{className:"mt-3 text-base leading-relaxed text-hba-grey-1 md:text-lg",children:e}):null]}),$be=({className:t=""})=>s.jsx("div",{className:`h-1.5 w-full max-w-[min(100%,22rem)] bg-gradient-to-r from-hba-orange-1 via-[#6d5c62] to-hba-blue-1 md:h-2 ${t}`,"aria-hidden":!0}),_be=()=>s.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-hba-blue-2 via-hba-blue-1 to-[#1a2830] py-20 text-white md:py-24",children:[s.jsxs("div",{className:"absolute inset-0 opacity-20",children:[s.jsx("div",{className:"absolute -top-20 right-0 h-72 w-72 rounded-full bg-hba-orange-1 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 left-0 h-80 w-80 rounded-full bg-sky-500/30 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4",children:[s.jsxs("p",{className:"inline-flex items-center gap-2 rounded-full border border-white/25 bg-white/10 px-4 py-1 text-xs font-black uppercase tracking-widest text-white/90",children:[s.jsx(mi,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),"Provider directories"]}),s.jsx("h1",{className:"mt-5 text-4xl font-black tracking-tight text-white md:text-5xl",children:"Find a Doctor"}),s.jsx($be,{className:"mt-4"}),s.jsx("p",{className:"mt-6 max-w-3xl text-lg leading-relaxed text-white/90 md:text-xl",children:'Insurance companies give you a better price for services when you use a doctor they have contracted with. These doctor lists are often called provider directories. A doctor your insurance carrier has contracted with is called "in-network."'}),s.jsx("div",{className:"mt-8",children:s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center gap-2 rounded-xl border-2 border-white/35 bg-white/10 px-6 py-3.5 font-black uppercase tracking-wider text-white transition-colors hover:border-white/60 hover:bg-white/15",children:["Contact Us for Help",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})})]})]}),Abe=({items:t})=>{const e=[...t,...t];return s.jsxs("div",{className:"relative overflow-hidden rounded-2xl border border-hba-blue-1/10 bg-slate-50 py-5",children:[s.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 z-10 w-14 bg-gradient-to-r from-slate-50 to-transparent md:w-20"}),s.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 z-10 w-14 bg-gradient-to-l from-slate-50 to-transparent md:w-20"}),s.jsx("div",{className:"flex min-w-max items-center gap-7 px-4 md:gap-8 md:px-6 animate-[hba-logo-scroll_30s_linear_infinite]",children:e.map((r,n)=>s.jsx("a",{href:r.providerLink,target:"_blank",rel:"noopener noreferrer",className:"group inline-flex h-32 w-60 shrink-0 items-center justify-center rounded-xl border border-hba-blue-1/10 bg-white p-4 shadow-sm transition hover:-translate-y-0.5 hover:border-hba-orange-1/40 hover:shadow-md md:h-36 md:w-64","aria-label":`Open ${r.name} provider directory in a new tab`,children:s.jsx("img",{src:r.logo,alt:r.name,className:"h-full w-full scale-110 object-contain",loading:"lazy"})},`${r.name}-${n}`))})]})},Ebe=({items:t})=>s.jsx("ul",{className:"grid grid-cols-1 items-center gap-12 pt-4 sm:grid-cols-2 lg:grid-cols-3 lg:gap-16",role:"list",children:t.map(e=>s.jsx("li",{children:s.jsxs("a",{href:e.providerLink,target:"_blank",rel:"noopener noreferrer",className:"group flex h-full flex-col items-center justify-center rounded-xl p-3 transition-transform duration-200 hover:-translate-y-0.5","aria-label":`Open ${e.name} provider directory in a new tab`,children:[s.jsx("div",{className:"flex h-24 w-full max-w-[320px] items-center justify-center p-2 md:h-28 lg:h-32",children:s.jsx("img",{src:e.logo,alt:e.name,className:"h-full w-full scale-105 object-contain saturate-90 transition duration-200 group-hover:saturate-100",loading:"lazy"})}),s.jsxs("span",{className:"mt-2 inline-flex items-center gap-2 text-xs font-black uppercase tracking-wider text-hba-orange-1 opacity-0 transition-opacity group-hover:opacity-100",children:["Open Provider Directory",s.jsx(Lt,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0})]})]})},`${e.name}-${e.providerLink}`))}),Obe=({text:t})=>s.jsxs("aside",{className:"rounded-2xl border border-hba-blue-1/20 bg-white p-6 shadow-sm md:p-8","aria-labelledby":"find-doctor-disclaimer-heading",children:[s.jsx("h2",{id:"find-doctor-disclaimer-heading",className:"text-sm font-black uppercase tracking-widest text-hba-blue-1",children:"Disclaimer"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-hba-grey-1",children:t})]}),Pbe=()=>s.jsx("section",{className:"border-t border-hba-blue-1/10 bg-hba-blue-1/[0.08] py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-3xl px-4 text-center",children:[s.jsx("h2",{className:"text-2xl font-black tracking-tight text-hba-blue-1 md:text-3xl",children:"Need Help Finding the Right Doctor?"}),s.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-lg text-hba-grey-1",children:"If you're not sure which provider directory applies to your plan, our team can help point you in the right direction."}),s.jsx("div",{className:"mt-8",children:s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-8 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Contact Us",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})})]})}),Mbe=()=>s.jsxs("div",{className:"min-h-screen bg-slate-100",children:[s.jsx("style",{children:` 850 @keyframes hba-logo-scroll { 851 0% { transform: translateX(-50%); } 852 100% { transform: translateX(0%); } 853 } 854 `}),s.jsx(_be,{}),s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-hba-blue-1/[0.08] py-12 md:py-16",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsxs("div",{className:"max-w-3xl space-y-4 text-lg leading-relaxed text-hba-grey-1",children:[s.jsx("p",{children:"Knowing which insurance company covers which doctors, medical facilities, and hospitals can be difficult unless it's your business. Fortunately, it is our business. We've included helpful links to help you find a doctor covered by your insurance plan."}),s.jsx("p",{className:"text-base md:text-lg",children:"Each insurance company may have multiple provider directories depen
854ding on the specific plan you chose."})]})})}),s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-white py-14 md:py-20","aria-labelledby":"group-health-heading",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(Cbe,{id:"group-health-heading",title:"Group Health Insurance"}),s.jsx("div",{className:"mt-10",children:s.jsx(Abe,{items:jbe})}),s.jsx("p",{className:"mt-10 max-w-3xl text-hba-grey-1 leading-relaxed",children:"If the insurance company you're looking for isn't listed, please contact us and we will do our best to get you the most accurate information."})]})}),s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-hba-blue-1/[0.08] py-14 md:py-20","aria-labelledby":"individual-plans-heading",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsxs("div",{className:"mx-auto max-w-4xl text-center",children:[s.jsx("h2",{id:"individual-plans-heading",className:"text-3xl font-black uppercase tracking-wide text-hba-blue-1 md:text-4xl",children:"Doctors List for Individual Plans"}),s.jsx("div",{className:"mx-auto mt-3 h-1 w-44 rounded-full bg-gradient-to-r from-hba-orange-1 via-hba-orange-1 to-hba-blue-1","aria-hidden":!0})]}),s.jsx("p",{className:"mx-auto mt-8 max-w-4xl text-center text-lg leading-relaxed text-hba-grey-1",children:"Depending on the type of plan you have, a visit to a doctor may not be covered by your insurance or may be very expensive. It is important to always visit doctors that are in-network with your insurance carrier. Doing this allows you to receive care at the lowest possible cost to you."}),s.jsx("div",{className:"mx-auto mt-12 max-w-6xl",children:s.jsx(Ebe,{items:kbe})})]})}),s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-white py-14 md:py-20",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsx(Obe,{text:Sbe})})}),s.jsx(Pbe,{})]});function Tbe(){return s.jsx("div",{className:"bg-white py-20 md:py-28",children:s.jsxs("div",{className:"mx-auto max-w-4xl px-4",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.22em] text-hba-orange-1",children:"Legal"}),s.jsx("h1",{className:"mt-4 text-4xl font-black uppercase tracking-tight text-hba-blue-1 md:text-6xl",children:"Privacy Policy"}),s.jsx("p",{className:"mt-4 text-sm font-semibold uppercase tracking-widest text-hba-grey-1",children:"Last updated: June 2024"}),s.jsxs("div",{className:"mt-10 space-y-6 text-base leading-relaxed text-slate-700 md:text-lg",children:[s.jsx("p",{children:"Health Benefits Associates operates the https://healthbenefits.net website, which connects people and businesses to health insurance as well as other health related products such as but not limited to dental, vision, life, and disability insurance."}),s.jsx("p",{children:"This page is used to inform website visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our services on the Health Benefits website."}),s.jsx("p",{children:"If you choose to use our services, then you agree to the collection and use of information in relation with this policy. The Personal Information that we collect is used for providing quotes and information about insurance plan options in your area. We will not use or share your information with anyone outside of our organization."})]}),s.jsxs("div",{className:"mt-14 space-y-10",children:[s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h3",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"SMS Terms & Mobile Disclosures"}),s.jsxs("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:["If you consent to receive SMS from Health Benefits Associates, Inc., you agree to receive transactional and conversational text messages regarding your health insurance account, policy updates, and requested consultation appointments. Reply STOP to opt-out; Reply HELP for support; Message & data rates may apply; Messaging frequency may vary. Visit"," ",s.jsx("a",{href:"https://healthbenefits.net/privacy-policy-2/",className:"break-words font-semibold text-hba-blue-1 underline hover:text-hba-orange-1 transition-colors",children:"https://healthbenefits.net/privacy-policy-2/"})," ","to view our Privacy Policy and"," ",s.jsx("a",{href:"https://healthbenefits.net/sms-terms-and-conditions/",className:"break-words font-semibold text-hba-blue-1 underline hover:text-hba-orange-1 transition-colors",children:"https://healthbenefits.net/sms-terms-and-conditions/"})," ","to view our Terms and Conditions."]}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"No mobile information will be shared with third parties/affiliates for marketing/promotional purposes. All the above categories exclude text messaging originator opt-in data and consent; this information will not be shared with any third parties."})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Information Collection and Use"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"For a better experience while using our website and to receive accurate plan information and quotes, we may require you to provide us with certain personally identifiable information, including but not limited to your name, phone number, date of birth, and postal address. The information that we collect may be used to contact you by phone, email, or mail. You are in no way obligated to use or services and completing any quote form on our website does not sign you up or enroll you in a plan."})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Cookies"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"Cookies are files with small amount of data that is commonly used an anonymous unique identifier. These are sent to your browser from the website that you visit and are stored on your computerâs hard drive."}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"Our website uses these âcookiesâ to collection information and to improve our services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your computer. If you choose to refuse our cookies, you may
854not be able to use some portions of our website."})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Security"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"We value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee its absolute security."})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Links to Other Sites"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"Our Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by us. Therefore, we strongly advise you to review the Privacy Policy of these websites. We have no control over, and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services."})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Changes to This Privacy Policy"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"We may update our Privacy Policy from time to time. Thus, we advise you to review this page periodically for any changes. We will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately, after they are posted on this page."})]})]}),s.jsxs("section",{className:"mt-14 rounded-3xl bg-hba-blue-1 px-6 py-8 text-white md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide md:text-2xl",children:"Contact Us"}),s.jsxs("p",{className:"mt-4 text-base leading-relaxed text-hba-grey-2 md:text-lg",children:["If you have any questions or suggestions about our Privacy Policy, do not hesitate to contact us at"," ",s.jsx("a",{href:"tel:7758281216",className:"font-bold text-hba-orange-1 hover:text-white transition-colors",children:"775-828-1216"})," ","or"," ",s.jsx("a",{href:"mailto:[email protected]",className:"font-bold text-hba-orange-1 hover:text-white transition-colors",children:"[email protected]"}),"."]})]})]})})}function Rbe(){return s.jsx("div",{className:"bg-white py-20 md:py-28",children:s.jsxs("div",{className:"mx-auto max-w-4xl px-4",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.22em] text-hba-orange-1",children:"Legal"}),s.jsx("h1",{className:"mt-4 text-4xl font-black uppercase tracking-tight text-hba-blue-1 md:text-6xl",children:"Accessibility Statement"}),s.jsx("p",{className:"mt-4 text-sm font-semibold uppercase tracking-widest text-hba-grey-1",children:"Last updated: June 2024"}),s.jsxs("div",{className:"mt-10 rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("p",{className:"text-base leading-relaxed text-slate-700 md:text-lg",children:"We are committed to ensuring digital accessibility for all people."}),s.jsx("p",{className:"mt-5 text-base leading-relaxed text-slate-700 md:text-lg",children:"Accessibility Statement for Health Benefits Associates has voluntarily undertaken efforts to comply with the World Wide Web Consortiumâs Web Content Accessibility Guidelines 2.0, Level AA (âWCAG-2.0 AAâ), a set of guidelines adopted by a private group designed to maximize the accessibility of web content."}),s.jsx("p",{className:"mt-5 text-base leading-relaxed text-slate-700 md:text-lg",children:"We are continually improving the user experience for everyone and applying the relevant accessibility standards. Please let us know if you encounter accessibility barriers on our site."}),s.jsx("p",{className:"mt-5 text-base leading-relaxed text-slate-700 md:text-lg",children:"Be advised that our efforts are ongoing. If, at any time, you have specific questions or concerns about the accessibility of any particular page, please contact us:"})]}),s.jsxs("section",{className:"mt-14 rounded-3xl bg-hba-blue-1 px-6 py-8 text-white md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide md:text-2xl",children:"Contact Information"}),s.jsxs("div",{className:"mt-5 space-y-3 text-base leading-relaxed text-hba-grey-2 md:text-lg",children:[s.jsxs("p",{children:["Phone:"," ",s.jsx("a",{href:"tel:7758281216",className:"font-bold text-hba-orange-1 hover:text-white transition-colors",children:"(775) 828-1216"})]}),s.jsxs("p",{children:["Email:"," ",s.jsx("a",{href:"mailto:[email protected]",className:"font-bold text-hba-orange-1 hover:text-white transition-colors",children:"[email protected]"})]}),s.jsx("p",{children:"Mailing Address: 3716 Lakeside Dr Suite #100, Reno, NV 89509"})]})]})]})})}function Ibe(){return s.jsx("div",{className:"bg-white py-20 md:py-28",children:s.jsxs("div",{className:"mx-auto max-w-4xl px-4",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.22em] text-hba-orange-1",children:"Legal"}),s.jsx("h1",{className:"mt-4 text-4xl font-black uppercase tracking-tight text-hba-blue-1 md:text-6xl",children:"SMS Terms and Conditions"}),s.jsxs("div",{className:"mt-10 space-y-10",children:[s.jsx("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:s.jsxs("p",{className:"text-base leading-relaxed text-slate-700 md:text-lg",children:["Effective ",s.jsx("strong",{children:"Date:"})," June 3, 2026"]})}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Program Description"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"Health Benefits Associates operates a text messaging program to provide conversational customer support, insurance policy updates, scheduled appointment reminders, upcoming policy renew
854al notifications, and service-related text communications. Messages are intended solely for clients of Health Benefits Associates and individuals who have explicitly requested insurance information or quotes from our agency."})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"User Opt-In"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"By providing your phone number to Health Benefits Associates via our website contact or quote request forms, digital applications, or through direct verbal or written authorization, you agree to receive SMS text messages from Health Benefits Associates."}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"Consent to receive automated or manual text messages is completely voluntary and is not a condition of purchasing any insurance products, goods, or services from us."})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Message Frequency"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"Message frequency varies depen
854ding on your specific interactions with our company, your preferred communication style, and the insurance services or renewal support you have requested."})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Cost and Fees"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"Health Benefits Associates does not charge any fees to participate in our text messaging program. However, standard message and data rates may apply depending on your mobile carrier and wireless plan. You are solely responsible for any charges levied by your mobile provider."})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Opt-Out Instructions"}),s.jsxs("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:["You may opt out of receiving SMS communications from Health Benefits Associates at any time. To stop receiving text messages, reply ",s.jsx("strong",{children:"STOP"})," to any text message you receive from us.",s.jsx("br",{}),"Upon texting ",s.jsx("strong",{children:"STOP"}),", you will receive a single, final confirmation text message verifying that you have been successfully unsubscribed from our text program. Following that confirmation, you will no longer receive SMS messages from us unless you explicitly choose to opt in again."]})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Help and Support Instructions"}),s.jsxs("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:["If you are experiencing issues with the messaging program, or if you have questions regarding your text communications, you can request assistance at any time by replying ",s.jsx("strong",{children:"HELP"})," to any message. You may also contact our office directly for support at:"]}),s.jsx("div",{className:"mt-4 pl-8 text-base leading-relaxed text-slate-700 md:pl-20 md:text-lg",children:s.jsxs("p",{children:["Email:"," ",s.jsx("a",{href:"mailto:[email protected]",className:"font-bold text-hba-blue-1 hover:text-hba-orange-1",children:"[email protected]"}),s.jsx("br",{}),"Phone:"," ",s.jsx("a",{href:"tel:7758281216",className:"font-bold text-hba-blue-1 hover:text-hba-orange-1",children:"775-828-1216"})]})})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Data Privacy Disclosure"}),s.jsxs("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:["We value your data privacy above all else. Your personal information will be handled in strict accordance with our Privacy Policy. Health Benefits Associates does not share mobile information or text messaging originator opt-in data and consent with third parties, affiliates, or partners for marketing or promotional purposes.",s.jsx("br",{}),"The text messaging program is subject to effective transmission by your mobile wireless provider. Delivery of SMS messages may not be available in all geographic areas or supported by all mobile carriers. Health Benefits Associates is not liable for delayed or undelivered messages.",s.jsx("br",{}),"Please review our"," ",s.jsx("a",{href:"/privacy-policy-2/",className:"font-bold text-hba-blue-1 hover:text-hba-orange-1",children:"Privacy Policy"})," ","for more information."]})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Supported Carriers"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"The text messaging program is subject to effective transmission by your mobile wireless provider. Delivery of SMS messages may not be available in all geographic areas or supported by all mobile carriers. Health Benefits Associates is not liable for delayed or undelivered messages."})]}),s.jsxs("section",{className:"rounded-3xl border border-slate-200 bg-slate-50 px-6 py-8 md:px-8",children:[s.jsx("h2",{className:"text-xl font-black uppercase tracking-wide text-hba-blue-1 md:text-2xl",children:"Changes to Terms"}),s.jsx("p",{className:"mt-4 text-base leading-relaxed text-slate-700 md:text-lg",children:"Health Benefits Associates reserves the right to modify or change these SMS Terms & Conditions at any time. Any updates will be published directly to this page with a revised effective date."})]})]})]})})}const Dbe=[{slug:"reno",name:"Reno",pageTitle:"Reno Health Insurance",address:"3716 Lakeside Dr Suite #100, Reno, NV 89509",phone:"(775) 828-1216",phoneHref:"tel:7758281216",email:"[email protected]",mapEmbedUrl:"https://www.google.com/maps?q=3716%20Lakeside%20Dr%20Suite%20%23100%2C%20Reno%2C%20NV%2089509&z=15&output=embed",image:mn.reno,note:null},{slug:"sparks",name:"Sparks",pageTitle:"Sparks Health Insurance",address:"437 Pyramid Way, Sparks, NV 89431",phone:"(775) 828-5701",phoneHref:"tel:7758285701",email:"[email protected]",mapEmbedUrl:"https://www.google.com/maps?q=437%20Pyramid%20Way%2C%20Sparks%2C%20NV%2089431&z=15&output=embed",image:mn.sparks,note:null},{slug:"carson-city",name:"Carson City",pageTitle:"Carson City Health Insurance",address:"405 N. Roop St, Carson City, NV 89701",phone:"(775) 362-3300",phoneHref:"tel:7753623300",email:"[email protected]",mapEmbedUrl:"https://www.google.com/maps?q=405%20N.%20Roop%20St%2C%20Carson%20City%2C%20NV%2089701&z=15&output=embed",image:mn.carsonCity,note:null},{slug:"henderson",name:"Las Vegas",pageTitle:"Las Vegas Health Insurance",address:"9550 S. Eastern Ave Suite 253, Las Vegas, NV 89123",phone:"(702) 963
854-0123",phoneHref:"tel:7029630123",email:"[email protected]",mapEmbedUrl:"https://www.google.com/maps?q=9550%20S.%20Eastern%20Ave%20Suite%20253%2C%20Las%20Vegas%2C%20NV%2089123&z=15&output=embed",image:mn.henderson,note:"By Appointment Only"},{slug:"fernley",name:"Fernley",pageTitle:"Fernley Health Insurance",address:"460 W Main St Unit 101, Fernley, NV 89408",phone:"(775) 828-0001",phoneHref:"tel:7758280001",email:"[email protected]",mapEmbedUrl:"https://www.google.com/maps?q=460%20W%20Main%20St%20Unit%20101%2C%20Fernley%2C%20NV%2089408&z=15&output=embed",image:mn.fernley,note:null},{slug:"truckee",name:"Truckee",pageTitle:"Truckee Health Insurance",address:"10098 Jibboom St #201B, Truckee, CA 96161",phone:"(530) 563-7780",phoneHref:"tel:5305637780",email:"[email protected]",mapEmbedUrl:"https://www.google.com/maps?q=10098%20Jibboom%20St%20%23201B%2C%20Truckee%2C%20CA%2096161&z=15&output=embed",image:mn.truckee,note:"By Appointment Only"}],us=Dbe.reduce((t,e)=>(t[e.slug]=e,t),{});us["truckee-medicare"]=us.truckee;us.renolocation=us.reno;us.sparkslocation=us.sparks;us.carsonlocation=us["carson-city"];us.fernleylocation=us.fernley;us.hendersonlocation=us.henderson;const Lbe=[{question:"How do I prepare for a meeting?",answer:"If youâre meeting with a broker, itâs helpful to bring a list of your doctors and medications along with any details of your current coverage. If youâre a business owner, itâs helpful to have details about your business and the number of employees you have."},{question:"Does it cost anything to use HBA?",answer:"No. There is no broker fee for our services. Your premium does not increase because you work with us instead of going directly to the insurance company."},{question:"Can I get help without visiting the office?",answer:"Yes. We can help by phone, email, online form, or appointment depending on your needs."},{question:"What types of insurance can this office help with?",answer:"We help with Medicare, Individual & Family health plans, Small Business Group coverage, Dental, Vision, Life, and Travel Insurance."}],Qs={phoneLabel:"Main Contact Number",phone:"(775) 828-1216",phoneHref:"tel:7758281216",emailLabel:"General Inbox",email:"[email protected]",emailHref:"mailto:[email protected]",hoursLabel:"Office Hours",hours:"MonâFri: 8:00â4:30",addressLabel:"General Mailing Address",address:"3716 Lakeside Dr Suite #100, Reno, NV 89509"},SM={title:"Needing Something Specific?",body:"Give us a call or use the form here to send us a message and we would be happy to see how we can help!"},Bbe=[{title:"Employer Sponsored Plans",href:"/small-business-health-coverage-2/",icon:uf},{title:"Medicare",href:"/medicare/",icon:Rr},{title:"Individual & Family",href:"/services/",icon:sn}],Hbe=()=>s.jsx(s.Fragment,{children:s.jsx(Sh,{title:"Location Contact"})}),aG=t=>`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(t)}`,sG=({href:t,children:e})=>{const r="block text-sm md:text-base lg:text-lg font-black text-hba-blue-1 hover:text-hba-orange-1 transition-colors leading-snug break-words [overflow-wrap:anywhere]";return t?s.jsx("a",{href:t,className:r,children:e}):s.jsx("p",{className:r,children:e})},Fbe=()=>{const t=[{icon:Ut,title:Qs.phoneLabel,value:Qs.phone,href:Qs.phoneHref,color:"bg-hba-blue-1",sub:"Reno Headquarters"},{icon:Na,title:Qs.emailLabel,value:Qs.email,href:Qs.emailHref,color:"bg-hba-orange-1",sub:"General Inquiries"},{icon:Fs,title:Qs.hoursLabel,value:Qs.hours,href:void 0,color:"bg-hba-grey-1",sub:"Appointments Available"},{icon:tr,title:Qs.addressLabel,value:Qs.address,href:void 0,color:"bg-hba-blue-2",sub:"Mailing Address"}];return s.jsx("section",{id:"contact-block",className:"py-24 bg-white relative z-20 rounded-t-[4rem] shadow-2xl",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-16 lg:gap-24",children:[s.jsxs("div",{className:"lg:col-span-5 space-y-16",children:[s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:t.map((e,r)=>s.jsx(Nt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},className:"group",children:s.jsxs("div",{className:"p-8 rounded-[2rem] bg-hba-blue-1/5 border border-transparent hover:border-hba-orange-1 hover:bg-white hover:shadow-xl transition-all h-full min-w-0",children:[s.jsx("div",{className:`${e.color} w-12 h-12 rounded-xl flex items-center justify-center text-white mb-6 group-hover:scale-110 transition-transform shadow-lg`,children:s.jsx(e.icon,{className:"w-5 h-5"})}),s.jsx("h3",{className:"font-black text-xs uppercase tracking-widest text-hba-grey-1 mb-2",children:e.title}),s.jsx(sG,{href:e.href,children:e.value}),s.jsx("p",{className:"text-[10px] font-black uppercase tracking-widest text-hba-orange-1 mt-3 opacity-0 group-hover:opacity-100 transition-opacity",children:e.sub})]})}
854,e.title))}),s.jsxs("div",{className:"relative group",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-hba-blue-1 to-hba-blue-2 rounded-[3rem] -rotate-1 group-hover:rotate-0 transition-transform duration-500 shadow-2xl"}),s.jsxs("div",{className:"relative bg-white/5 backdrop-blur-sm border border-white/10 p-12 rounded-[3rem] overflow-hidden",children:[s.jsx("div",{className:"absolute top-0 right-0 p-8 opacity-10",children:s.jsx(Su,{className:"w-32 h-32 text-white"})}),s.jsxs("div",{className:"relative z-10",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-hba-orange-1 text-white text-[10px] font-black uppercase tracking-widest rounded-full mb-6",children:[s.jsx(Rr,{className:"w-3 h-3"}),"Licensed Experts"]}),s.jsxs("h3",{className:"text-3xl font-black text-white mb-4 uppercase tracking-tight leading-tight",children:[SM.title.replace("Specific?",""),s.jsx("span",{className:"text-hba-orange-1",children:"Specific?"})]}),s.jsx("p",{className:"text-white/70 mb-8 font-medium leading-relaxed",children:SM.body}),s.jsxs("a",{href:Qs.phoneHref,className:"inline-flex items-center gap-3 bg-white text-hba-blue-1 px-8 py-4 rounded-2xl font-black text-sm uppercase tracking-widest hover:bg-hba-orange-1 hover:text-white transition-all group/btn",children:["Call Us",s.jsx(Xe,{className:"w-4 h-4 group-hover/btn:translate-x-2 transition-transform"})]})]})]})]})]}),s.jsx("div",{className:"lg:col-span-7",children:s.jsx("div",{className:"sticky top-32",children:s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-hba-orange-1 to-hba-blue-1 rounded-[3.5rem] blur opacity-20 transition duration-1000"}),s.jsxs("div",{className:"relative bg-white border border-gray-100 rounded-[3rem] p-8 md:p-12 shadow-2xl",children:[s.jsxs("div",{className:"mb-12",children:[s.jsx("h2",{className:"text-4xl font-black text-hba-blue-1 uppercase tracking-tighter mb-4",children:"Send a Secure Message"}),s.jsx("p",{className:"text-hba-grey-1 font-medium",children:"Briefly describe your situation and someone from our team will respond within 24 business hours."})]}),s.jsx(Hbe,{})]})]})})})]})})})},zbe=({location:t})=>{const e=[{icon:tr,label:"Address",value:t.address,href:aG(t.address)},{icon:Ut,label:"Phone",value:t.phone,href:t.phoneHref},{icon:Na,label:"Email",value:t.email,href:`mailto:${t.email}`},{icon:Fs,label:"Hours",value:"Appointments Available from 8 to 4:30"}];return s.jsx("section",{className:"pb-24 pt-10 bg-white",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4",children:s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:e.map(r=>s.jsxs("div",{className:"bg-hba-blue-1/5 border border-hba-blue-1/10 rounded-[2rem] p-8 shadow-sm hover:shadow-xl transition-all min-w-0",children:[s.jsx("div",{className:"w-12 h-12 bg-hba-orange-1 text-white rounded-2xl flex items-center justify-center mb-6 shadow-lg",children:s.jsx(r.icon,{className:"w-6 h-6"})}),s.jsx("h3",{className:"text-xs font-black uppercase tracking-widest text-hba-grey-1 mb-3",children:r.label}),s.jsx(sG,{href:r.href,children:r.value})]},r.label))})})})};function m3(t){return[{id:`${t.slug}-fallback`,location_slug:t.slug,image_url:t.image,caption:`${t.name} office`,alt_text:`${t.name} office location`,sort_order:0}]}const Vbe=({location:t})=>{const[e,r]=w.useState(()=>m3(t)),[n,a]=w.useState(0);w.useEffect(()=>{let c=!1;return fetch(ut(`/api/location-photos/${t.slug}`)).then(u=>u.ok?u.json():[]).then(u=>{if(c)return;const d=Array.isArray(u)?u:[];r(d.length>0?d:m3(t)),a(0)}).catch(()=>{c||(r(m3(t)),a(0))}),()=>{c=!0}},[t]);const i=e[n]??e[0],o=()=>{a(c=>c===0?e.length-1:c-1)},l=()=>{a(c=>c===e.length-1?0:c+1)};return s.jsxs("div",{className:"relative min-h-[440px] overflow-hidden rounded-[3rem] shadow-2xl lg:min-h-[520px]",children:[s.jsx(Dt,{src:(i==null?void 0:i.image_url)||t.image,alt:(i==null?void 0:i.alt_text)||`${t.name} office location`,className:"absolute inset-0 h-full w-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/55 via-black/10 to-transparent"}),s.jsxs("div",{className:"absolute bottom-8 left-8 right-8",children:[s.jsx("p",{className:"mb-2 text-sm font-black uppercase tracking-[0.25em] text-white",children:"Local Office"}),s.jsx("h2",{className:"text-4xl font-black uppercase tracking-tighter text-white",children:t.name}),i!=null&&i.caption?s.jsx("p",{className:"mt-3 max-w-md text-sm font-medium text-white/85",children:i.caption}):null]}),e.length>1?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"absolute inset-x-0 top-1/2 flex -translate-y-1/2 items-center justify-between px-5",children:[s.jsx("button",{type:"button",onClick:o,className:"inline-flex h-11 w-11 items-center justify-center rounded-full bg-white/90 text-hba-blue-1 shadow-lg transition hover:bg-white","aria-label":`Previous ${t.name} photo`,children:s.jsx(Fu,{className:"h-5 w-5"})}),s.jsx("button",{type:"button",onClick:l,className:"inline-flex h-11 w-11 items-center justify-center rounded-full bg-white/90 text-hba-blue-1 shadow-lg transition hover:bg-white","aria-label":`Next ${t.name} photo`,children:s.jsx(Vn,{className:"h-5 w-5"})})]}),s.jsx("div",{className:"absolute bottom-5 left-1/2 flex -translate-x-1/2 gap-2",children:e.map((c,u)=>s.jsx("button",{type:"button",onClick:()=>a(u),"aria-label":`View ${t.name} photo ${u+1}`,className:`h-2.5 rounded-full transition-all ${u===n?"w-7 bg-white":"w-2.5 bg-white/50"}`},c.id))})]}):null]})},Ube=({location:t})=>s.jsx("section",{className:"bg-hba-blue-1/5 pb-10 pt-24",children:s.jsx("div",{className:"max-w-[90rem] mx-auto px-4",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-stretch",children:[s.jsx(Vbe,{location:t}),s.jsx("div",{className:"min-h-[440px] rounded-[3rem] overflow-hidden shadow-2xl bg-white border border-gray-100 lg:min-h-[520px]",children:t.mapEmbedUrl?s.jsx("iframe",{src:t.mapEmbedUrl,className:"w-full h-full min-h-[440px] border-0 lg:min-h-[520px]",allowFullScreen:!0,loading:"lazy",title:`${t.name} office map`}):s.jsxs("div",{className:"h-full min-h-[440px] flex flex-col items-center justify-center text-center p-10 bg-white lg:min-h-[520px]",children:[s.jsx(tr,{className:"w-14 h-14 text-hba-orange-1 mb-6"}),s.jsx("h3",{className:"text-2xl font-black text-hba-blue-1 uppercase tracking-tight mb-3",children:"Map Coming Soon"}),s.jsxs("p",{className:"text-hba-grey-1 font-medium leading-relaxed mb-6 max-w-sm",children:["Google Maps embed will be added here. Use the address below for directions to our ",t.name," office."]}),s.jsxs("a",{href:aG(t.address),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-hba-orange-1 font-black uppercase tracking-widest text-xs hover:underline",children:["Open in Google Maps",s.jsx(Xe,{className:"w-4 h-4"})]})]})})]})})}),qbe=({location:t})=>s.jsxs("section",{className:"py-24 bg-hba-blue-1 text-white relative overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-black/25 via-trans
854parent to-black/20"}),s.jsxs("div",{className:"max-w-7xl mx-auto px-4 relative z-10",children:[s.jsxs("div",{className:"max-w-3xl mb-16",children:[s.jsx("p",{className:"text-orange-300 font-black uppercase tracking-[0.3em] text-xs mb-4 drop-shadow",children:"Brokerage Support"}),s.jsxs("h2",{className:"text-4xl md:text-6xl font-black uppercase tracking-tighter leading-none mb-8 text-white drop-shadow-2xl",children:["Insurance Support Available in ",t.name]}),s.jsx("p",{className:"text-xl text-white font-semibold leading-relaxed drop-shadow max-w-2xl",children:"Our office helps compare available health insurance options for Employer Sponsored Plans, Medicare, and Individual & Family coverage."})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Bbe.map(e=>s.jsxs(ue,{to:e.href,className:"group bg-white text-hba-blue-1 border border-white/20 rounded-[2rem] p-8 shadow-xl hover:shadow-2xl hover:-translate-y-1 transition-all",children:[s.jsx("div",{className:"w-14 h-14 bg-hba-orange-1 text-white rounded-2xl flex items-center justify-center mb-8 group-hover:scale-110 transition-transform",children:s.jsx(e.icon,{className:"w-7 h-7"})}),s.jsx("h3",{className:"text-2xl font-black uppercase tracking-tight mb-3",children:e.title}),s.jsx("p",{className:"text-hba-grey-1 font-medium leading-relaxed",children:"Compare coverage options with help from a licensed HBA insurance broker."})]},e.title))})]})]}),Wbe=({location:t})=>s.jsxs("section",{className:"relative min-h-[620px] flex items-center overflow-hidden bg-hba-blue-1 text-white",children:[s.jsxs("div",{className:"absolute inset-0",children:[s.jsx(Dt,{src:t.image,alt:`${t.name} health insurance brokerage`,className:"w-full h-full object-cover opacity-40"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/90 via-hba-blue-1/90 to-hba-blue-1/55"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-transparent to-black/20"})]}),s.jsxs("div",{className:"max-w-7xl mx-auto px-4 relative z-10 w-full py-32",children:[s.jsxs("nav",{className:"mb-12 flex flex-wrap items-center gap-3 text-xs font-black uppercase tracking-widest text-white/85 drop-shadow",children:[s.jsx(ue,{to:"/",className:"hover:text-hba-orange-1 transition-colors",children:"Home"}),s.jsx("span",{children:"/"}),s.jsx(ue,{to:"/locations",className:"hover:text-hba-orange-1 transition-colors",children:"Locations"}),s.jsx("span",{children:"/"}),s.jsx("span",{className:"text-hba-orange-1",children:t.name})]}),s.jsxs(Nt.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.7},className:"max-w-4xl",children:[t.note&&s.jsxs("div",{className:"inline-flex items-center gap-2 bg-hba-orange-1 text-white px-4 py-2 rounded-full text-xs font-black uppercase tracking-widest mb-8",children:[s.jsx(Fs,{className:"w-4 h-4"}),t.note]}),s.jsx("h1",{className:"text-5xl md:text-8xl font-black uppercase tracking-tighter leading-none mb-8 text-white drop-shadow-2xl",children:t.pageTitle}),s.jsxs("p",{className:"text-xl md:text-2xl text-white font-semibold leading-relaxed max-w-3xl mb-10 drop-shadow",children:["Health Benefits Associates helps businesses, individuals and their families, and Medicare beneficiaries in ",t.name," compare health insurance options with local help."]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.jsxs("a",{href:t.phoneHref,className:"inline-flex items-center justify-center gap-3 bg-hba-orange-1 text-white px-8 py-5 rounded-2xl font-black uppercase tracking-widest text-sm hover:bg-hba-orange-1/90 transition-all shadow-2xl",children:[s.jsx(Ut,{className:"w-5 h-5"}),"Call This Office"]}),s.jsxs("a",{href:"#contact-block",className:"inline-flex items-center justify-center gap-3 bg-white/10 backdrop-blur-md border border-white/20 text-white px-8 py-5 rounded-2xl font-black uppercase tracking-widest text-sm hover:bg-white/20 transition-all",children:[s.jsx(Su,{className:"w-5 h-5"}),"Send a Message"]})]})]})]})]}),Gbe=({location:t})=>s.jsx("section",{className:"py-24 bg-hba-blue-1/5",children:s.jsxs("div",{className:"max-w-5xl mx-auto px-4 text-center",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-white text-hba-orange-1 rounded-full font-black uppercase tracking-widest text-[10px] mb-8 shadow-sm",children:[s.jsx(er,{className:"w-4 h-4"}),"No Broker Fee"]}),s.jsx("h2",{className:"text-4xl md:text-6xl font-black text-hba-blue-1 uppercase tracking-tighter leading-none mb-6",children:"Need Help Comparing Health Insurance Options?"}),s.jsx("p",{className:"text-xl text-hba-grey-1 font-medium leading-relaxed max-w-3xl mx-auto mb-10",children:"Our local brokerage team can help you compare plans, understand coverage options, and choose insurance with confidence."}),s.jsxs("div",{className:"flex flex-col sm:flex-row justify-center gap-4",children:[s.jsxs("a",{href:t.phoneHref,className:"inline-flex items-center justify-center gap-3 bg-hba-orange-1 text-white px-8 py-5 rounded-2xl font-black uppercase tracking-widest text-sm hover:bg-hba-orange-1/90 transition-all shadow-xl",children:[s.jsx(Ut,{className:"w-5 h-5"}),"Call This Office"]}),s.jsxs("a",{href:"#contact-block",className:"inline-flex items-center justify-center gap-3 bg-hba-blue-1 text-white px-8 py-5 rounded-2xl font-black uppercase tracking-widest text-sm hover:bg-hba-blue-1/90 transition-all shadow-xl",children:[s.jsx(Su,{className:"w-5 h-5"}),"Send a Message"]})]})]})}),Lc=()=>{const{slug:t}=Hu(),{pathname:e}
854=$r(),r=e.split("/").filter(Boolean).at(-1),n=t??r,a=n?us[n.toLowerCase()]:void 0;return z.useEffect(()=>{a&&(document.title=`${a.name} Health Insurance Broker | Health Benefits Associates`)},[a]),a?s.jsxs("div",{"data-analytics-location":"location_page",className:"flex flex-col bg-white",children:[s.jsx(Wbe,{location:a}),s.jsx(Ube,{location:a}),s.jsx(zbe,{location:a}),s.jsx(qbe,{location:a}),s.jsx("section",{className:"py-24 bg-white",children:s.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[s.jsxs("div",{className:"mb-12 text-center",children:[s.jsx("p",{className:"text-hba-orange-1 font-black uppercase tracking-[0.3em] text-xs mb-4",children:"Meeting Prep"}),s.jsx("h2",{className:"text-4xl md:text-6xl font-black text-hba-blue-1 uppercase tracking-tighter leading-none mb-6",children:"Frequently Asked Questions"}),s.jsxs("p",{className:"text-xl text-hba-grey-1 font-medium leading-relaxed max-w-3xl mx-auto",children:["Helpful details before connecting with an HBA insurance broker in ",a.name,"."]})]}),s.jsx(KS,{items:Lbe})]})}),s.jsx(Fbe,{}),s.jsx(Gbe,{location:a})]}):s.jsx("div",{className:"py-32 bg-gray-50 text-center",children:s.jsxs("div",{className:"max-w-3xl mx-auto px-4",children:[s.jsx("h1",{className:"text-4xl md:text-6xl font-black text-hba-blue-1 uppercase tracking-tighter mb-6",children:"Location Not Found"}),s.jsx("p",{className:"text-xl text-hba-grey-1 font-medium mb-10",children:"We could not find that office page. Please return to all HBA locations."}),s.jsxs(ue,{to:"/locations",className:"inline-flex items-center gap-3 bg-hba-blue-1 text-white px-8 py-5 rounded-2xl font-black uppercase tracking-widest text-sm hover:bg-hba-orange-1 transition-all",children:[s.jsx(Wo,{className:"w-5 h-5"}),"Back to Locations"]})]})})},Kbe=[{question:"When is the Nevada Individual Open Enrollment Period?",answer:"The period typically runs from November 1st to January 15th. However, applications submitted by December 15th usually result in coverage starting January 1st."},{question:"What if I miss the Open Enrollment deadline?",answer:"If you miss the deadline, you can only enroll if you qualify for a Special Enrollment Period due to a Qualifying Life Event (like marriage, birth of a child, or loss of other coverage). Otherwise, you may have to wait until the next Open Enrollment period or consider Short-Term health insurance."},{question:"Do I need to re-enroll every year?",answer:"While many plans auto-renew, it is highly recommended to review your options every year. Networks, premiums, and benefit designs often change, and there may be new, better-valued plans available in your area."},{question:"How do I know if I qualify for a subsidy?",answer:"Subsidies are based on your projected household income for the year. Our advisors can help you calculate your eligibility and apply for these tax credits on the Nevada Health Link."},{question:"What documents do I need to apply?",answer:"Typically, you'll need Social Security numbers for everyone in your household, employer and income information (like W2s or pay stubs), and information about any current health coverage you have."}],Ybe={"individual-insurance":{title:"Individual & Family Major Medical",description:"Explore major medical health insurance plans in Nevada. We help you navigate the Nevada Health Link and off-exchange options.",image:"https://images.unsplash.com/photo-1542332213-9b5a5a3fad35?q=80&w=1080",icon:is,features:["Nevada Health Link Assistance","Subsidy & Tax Credit Help","HMO & PPO Network Options","Pre-existing Condition Coverage","Preventative Care Included","Prescription Drug Coverage"],detailedContent:` 855 Individual health insurance is designed for those who don't have access to employer-sponsored or government-sponsored health care. In Nevada, you can choose between plans on the Nevada Health Link (the state exchange) or private plans off the exchange. 856 857 At Health Benefits Associates, we simplify the complex major medical landscape. We help you determine if you qualify for a federal subsidy, which can significantly lower your monthly premiums. Our advisors compare plans from all major Nevada carriers to ensure you get the coverage you need at a price you can afford. 858 `},"hometown-health":{title:"Hometown Health Plans",description:"Nevada's only local non-profit health insurance company. Access the Renown Health network and local care.",image:"https://images.unsplash.com/photo-1496298418161-d2eef32c03c4?q=80&w=1080",icon:tr,features:["Renown Health Network Access","Local Customer Service","Non-Profit Community Focus","Wide Range of Plan Designs","Nevada-Based Provider Network","Wellness Programs"],detailedContent:` 859 Hometown Health is the insurance arm of Renown Health, Northern Nevada's largest locally owned and governed healthcare network. Choosing Hometown Health means you're supporting a local non-profit dedicated to the health of our community. 860 861 We specialize in helping individuals and families enroll in Hometown Health plans. These plans offer comprehensive coverage with a focus on local access, quality care, and community-driven health initiatives. If you want a plan that understands Nevada, Hometown Health is an excellent choice. 862 `},"open-enrollment":{title:"Nevada Open Enrollment",description:"Stay informed about the key dates and deadlines for Nevada's individual health insurance enrollment period.",image:"https://images.unsplash.com/photo-1629768675457-0a825cdbc8fe?q=80&w=1080",icon:df,features:["Starts November 1st","Ends January 15th","Qualifying Life Event Support","Special Enrollment Periods","Deadline Reminders","Plan Renewal Assistance"],detailedContent:""},"dental-insurance":{title:"Dental Insurance Plans",description:"Affordable dental coverage for individuals and families in Nevada. Protect your smile and
862your health.",image:"https://images.unsplash.com/photo-1542332213-9b5a5a3fad35?q=80&w=1080",icon:Zle,features:["Delta Dental & More","Preventative Care Coverage","No Waiting Period Options","Large Provider Networks","Orthodontic Coverage Available","Major Services Protection"],detailedContent:` 863 Good oral health is essential to your overall well-being. Our dental insurance plans cover everything from routine cleanings and exams to complex procedures like crowns and root canals. 864 865 We offer plans from top carriers like Delta Dental and Diversified Dental. Whether you're looking for a plan with no waiting periods or one that covers orthodontics for your children, we can help you find the right fit for your family's needs and budget. 866 `},"vision-insurance":{title:"Vision Insurance Coverage",description:"See clearly with our individual vision plans. Coverage for exams, frames, and contact lenses.",image:"https://images.unsplash.com/photo-1629768675457-0a825cdbc8fe?q=80&w=1080",icon:uc,features:["VSP & EyeMed Networks","Annual Eye Exams","Frame & Lens Allowances","Contact Lens Benefits","LASIK Discounts","Affordable Monthly Premiums"],detailedContent:` 867 Vision insurance is an affordable way to maintain your eye health and save on corrective eyewear. Most plans include an annual eye exam with a small copay and significant allowances for frames or contact lenses. 868 869 Health Benefits Associates offers vision plans through leading providers like VSP and EyeMed. Regular eye exams are not just for vision correction; they can also detect early signs of serious health conditions like diabetes and high blood pressure. 870 `},"life-insurance":{title:"Life Insurance Solutions",description:"Secure your family's financial future. Compare term and whole life insurance options with our experts.",image:"https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=1080",icon:Rr,features:["Term Life Insurance","Whole Life Insurance","Final Expense Coverage","Custom Death Benefits","Financial Security Planning","Fast Underwriting Options"],detailedContent:` 871 Life insurance provides peace of mind, knowing your loved ones will be financially protected in the event of your passing. We offer a variety of life insurance products to meet different needs and budgets. 872 873 Term life insurance is often the most affordable option, providing coverage for a specific period. Whole life insurance offers lifelong protection and builds cash value over time. Our advisors help you calculate the amount of coverage your family needs and find the most competitive rates. 874 `},"travel-insurance":{title:"Travel Medical Insurance",description:"International health protection for your trips abroad. Medical coverage and emergency services globally.",image:"https://images.unsplash.com/photo-1673668317648-f2b92edb6430?q=80&w=1080",icon:uS,features:["Global Medical Coverage","Emergency Medical Evacuation","GeoBlue Travel Plans","Trip Cancellation Support","24/7 Global Assistance","COVID-19 Protection"],detailedContent:` 875 Most domestic health insurance plans provide limited or no coverage once you leave the United States. Travel medical insurance bridges this gap, providing essential protection for international travelers. 876 877 We recommend GeoBlue travel plans for their comprehensive global networks and ease of use. Whether you're traveling for business or pleasure, having medical coverage and access to emergency evacuation services is vital for any trip abroad. 878 `},"short-term-plans":{title:"Short Term Health Plans",description:"Temporary health coverage for life's transitions. Bridging the gap between permanent insurance plans.",image:"https://images.unsplash.com/photo-1454165833767-027ffea9e77b?q=80&w=1080",icon:Fs,features:["Immediate Coverage Access","Flexible Duration Options","Affordable Low Premiums","Simple Enrollment Process","Bridge Between Jobs","Emergency Protection"],detailedContent:` 879 Short-term health insurance is designed for people who are in transition and need temporary coverage. This might include individuals between jobs, recent graduates, or those waiting for employer benefits to begin. 880 881 While these plans are more affordable than major medical plans, they often have limited coverage and may not cover pre-existing conditions. Health Benefits Associates can help you determine if a short-term plan is the right temporary solution for your situation. 882 `},"find-a-doctor":{title:"Find a Doctor Tools",description:"Locate providers, specialists, and facilities within your insurance network in Nevada.",image:"https://images.unsplash.com/photo-1758691461888-b74515208d7a?q=80&w=1080",icon:Ls,features:["Network Provider Search","Specialist Directories","Hospital Facility Locator","Telehealth Options","PPO & HMO Directories","Doctor Verification"],detailedContent:` 883 Finding the right doctor who accepts your insurance is crucial for managing your healthcare costs. Every insurance carrier has a specific network of providers, and seeing a doctor out-of-network can lead to significantly higher expenses. 884 885 We provide tools and assistance to help you search for providers within your specific plan's network. Whether you need a primary care physician, a specialist, or a local urgent care facility, our advisors can guide you through the search process. 886 `}},Xbe=()=>{const{slug:t}=Hu(),e=t?Ybe[t]:null;if(!e)return s.jsxs("div",{className:"py-32 text-center",children:[s.jsx("h1",{className:"text-2xl font-bold text-hba-blue-1 uppercase tracking-tight",children:"Plan Not Found"}),s.jsx(ue,{to:"/services/",className:"text-hba-orange-1 font-bold mt-4 inline-block underline uppercase tracking-widest text-sm",children:"Back to Indiv
886idual Plans"})]});const r=e.icon;return t==="open-enrollment"?s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("section",{className:"relative h-[500px] flex items-center overflow-hidden bg-hba-blue-1",children:[s.jsxs("div",{className:"absolute inset-0 z-0",children:[s.jsx(Dt,{src:e.image,className:"w-full h-full object-cover opacity-40",alt:e.title}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-hba-blue-1 via-hba-blue-1/80 to-transparent"})]}),s.jsx("div",{className:"max-w-7xl mx-auto px-4 w-full relative z-10 text-white",children:s.jsxs("div",{className:"max-w-2xl",children:[s.jsx("div",{className:"w-16 h-16 bg-hba-orange-1 rounded-2xl flex items-center justify-center mb-8 shadow-xl",children:s.jsx(r,{className:"w-8 h-8 text-white"})}),s.jsxs("h1",{className:"text-4xl md:text-6xl font-black mb-6 uppercase tracking-tighter leading-tight text-white",children:["Nevada ",s.jsx("br",{}),s.jsx("span",{className:"text-hba-orange-1",children:"Open Enrollment"})]}),s.jsx("p",{className:"text-lg md:text-xl text-hba-grey-2 leading-relaxed font-bold max-w-lg bg-white/5 backdrop-blur-md p-6 rounded-2xl border border-white/10",children:"Enroll Nov 1 â Jan 15 for 2026 coverage. Expert Nevada plan comparisons and subsidy help at zero cost to you."})]})})]}),s.jsx("section",{className:"py-20 bg-white",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4 text-center",children:s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsx("p",{className:"text-2xl text-hba-blue-1 leading-relaxed font-black uppercase tracking-tight mb-6",children:"Apply Nov 1 â Dec 15 for Jan 1 Coverage"}),s.jsx("p",{className:"text-lg text-hba-grey-1 leading-relaxed font-medium",children:"Whether you're renewing your current plan or enrolling for the first time, the Open Enrollment period is your window to secure 2026 health insurance. Our Nevada-based experts ensure you get the maximum subsidy and the best network for your needs."})]})})}),s.jsx("section",{className:"py-32 bg-hba-blue-1/5 border-y border-hba-blue-1/10",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16",children:[s.jsxs(KP,{title:"Currently Covered? Shop Your Options!",icon:xce,variant:"blue",children:[s.jsx("p",{children:"If you have a health insurance plan today, we recommend reviewing your options to see if it will continue to work for your needs tomorrow. Open Enrollment is the only time of year you can switch plans unless you have a Qualifying Life Event."}),s.jsxs("div",{className:"pt-4",children:[s.jsx("p",{className:"font-black text-hba-blue-1 uppercase tracking-widest text-xs mb-6 bg-hba-blue-1/5 py-2 px-4 rounded-full inline-block",children:"Key considerations:"}),s.jsx("ul",{className:"space-y-6",children:["Your current doctor or facility coverage has changed.","The monthly premium is increasing significantly.","Your medical needs have evolved since last year.","New plans are available with better benefits or lower rates."].map((n,a)=>s.jsxs("li",{className:"flex gap-4 items-start group",children:[s.jsx("div",{className:"w-8 h-8 rounded-full bg-hba-orange-1/10 flex items-center justify-center shrink-0 group-hover:bg-hba-orange-1 transition-colors",children:s.jsx(er,{className:"w-5 h-5 text-hba-orange-1 group-hover:text-white transition-colors"})}),s.jsx("span",{className:"font-bold text-hba-blue-1 leading-snug",children:n})]},a))})]})]}),s.jsxs(KP,{title:"Uninsured? Now is the Time to Get a Plan!",icon:Nce,variant:"orange",children:[s.jsx("p",{children:"We understand that insurance is an investment, but going uninsured can lead to significant financial risk. There is a wide selection of different plans available to protect your financial health."}),s.jsx("p",{children:"It is important to choose a plan that balances coverage with your budget. The lowest costing plan might not be the best long-term value."}),s.jsxs("div",{className:"my-8 p-8 bg-hba-blue-1 rounded-[2rem] text-white shadow-xl shadow-hba-blue-1/10 relative overflow-hidden group",children:[s.jsx("div",{className:"absolute -right-12 -top-12 w-32 h-32 bg-white/10 rounded-full blur-2xl group-hover:scale-150 transition-transform"}),s.jsx("p",{className:"font-black text-hba-orange-1 uppercase text-xs mb-3 tracking-[0.2em] relative z-10",children:"Strategic Advisory"}),s.jsx("p",{className:"text-xl font-bold leading-relaxed relative z-10",children:"Net exposure = Expected medical expenses + Annual premium cost."}),s.jsx("p",{className:"mt-4 text-hba-grey-2 relative z-10 font-medium text-sm italic",children:"Our advisors help you calculate this formula to find the most cost-effective solution."})]}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("a",{href:"#",className:"flex items-center justify-between p-5 rounded-2xl border border-hba-orange-1/10 bg-white hover:border-hba-orange-1 hover:shadow-lg transition-all group",children:[s.jsx("span",{className:"font-black text-hba-blue-1 uppercase tracking-tight group-hover:text-hba-orange-1 transition-colors",children:"Insurance Basics"}),s.jsx(Lt,{className:"w-5 h-5 text-hba-orange-1"})]}),s.jsxs("a",{href:"#",className:"flex items-center justify-between p-5 rounded-2xl border border-hba-orange-1/10 bg-white hover:border-hba-orange-1 hover:shadow-lg transition-all group",children:[s.jsx("span",{className:"font-black text-hba-blue-1 uppercase tracking-tight group-hover:text-hba-orange-1 transition-colors",children:"Division of Insurance"}),s.jsx(Lt,{className:"w-5 h-5 text-hba-orange-1"})]})]})]})]})})}),s.jsx("section",{className:"py-32 bg-white",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-20 items-start",children:[s.jsxs("div",{className:"lg:col-span-2",children:[s.jsx(K0,{title:"Enrolling After Open Enrollment",subtitle:"Missed the deadline? You may still qualify for coverage through a Special Enrollment Period.",centered:!1}),s.jsxs("div",{className:"text-xl text-hba-grey-1 mb-16 space-y-6 leading-relaxed font-medium",children:[s.jsx("p",{children:"Qualifying Life Events allow you to enroll in a plan mid-year. These events usually expire after 60 days, so it is important to act quickly before time runs out."}),s.jsx("p",{className:"font-black text-hba-orange-1 flex items-center gap-3 group cursor-pointer",children:s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"flex items-center gap-2 border-b-4 border-hba-orange-1/20 hover:border-hba-orange-1 pb-1 transition-all",children:["Learn more about Qualifying Life Events",s.jsx(Xe,{className:"w-6 h-6 group-hover:translate-x-2 transition-transform"})]})})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[s.jsx(c3,{title:"Nevada Health Link Guide",url:"https://www.youtube.com/watch?v=placeholder1",thumbnail:"https://images.unsplash.com/photo-1629768675457-0a825cdbc8fe?q=80&w=800"}),s.jsx(c3,{title:"Subsidies & Credits",url:"https://www.youtube.com/watch?v=placeholder2",thumbnail:"https://images.unsplash.com/photo-1542332213-9b5a5a3fad35?q=80&w=800"}),s.jsx(c3,{title:"Plan Network Comparison",url:"https://www.youtube.com/watch?v=placeholder3",thumbnail:"https://images.unsplash.com/photo-1454165833767-027ffea9e77b?q=80&w=800"})]})]}),s.jsx("aside",{className:"lg:sticky lg:top-32",children:s.jsx(Sh,{category:"Open Enrollment",title:"Get Help Enrolling"})})]})})}),s.jsxs("section",{className:"py-32 bg-hba-blue-1 relative overflow-hidden",children:[s.jsxs("div",{className:"absolute top-0 left-0 w-full h-full opacity-5 pointer-events-none",children:[s.jsx("div",{className:"absolute top-10 left-10 w-64 h-64 bg-white rounded-full blur-3xl"}),s.jsx("div",{className:"absolute bottom-10 right-10 w-96 h-96 bg-hba-orange-1 rounded-full blur-3xl"})]}),s.jsxs("div",{className:"max-w-4xl mx-auto px-4 relative z-10",children:[s.jsxs("div",{className:"text-center mb-20",children:[s.jsxs("h2",{className:"text-4xl md:text-6xl font-black text-white uppercase tracking-tighter mb-8 leading-tight",children:["Commonly Asked ",s.jsx("br",{}),s.jsx("span",{className:"text-hba-orange-1 underline decoration-white/20 underline-offset-8",children:"Questions"})]}),s.jsx("div",{className:"h-2 w-32 bg-hba-orange-1 rounded-full mx-auto
886shadow-lg shadow-black/20"})]}),s.jsx(KS,{items:Kbe})]})]})]}):s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("section",{className:"relative h-[450px] flex items-center overflow-hidden bg-hba-blue-1",children:[s.jsxs("div",{className:"absolute inset-0 z-0",children:[s.jsx(Dt,{src:e.image,className:"w-full h-full object-cover opacity-30",alt:e.title}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-hba-blue-1 via-hba-blue-1/80 to-transparent"})]}),s.jsx("div",{className:"max-w-7xl mx-auto px-4 w-full relative z-10 text-white",children:s.jsxs("div",{className:"max-w-2xl",children:[s.jsx("div",{className:"w-16 h-16 bg-hba-orange-1 rounded-2xl flex items-center justify-center mb-6 shadow-xl",children:s.jsx(r,{className:"w-8 h-8 text-white"})}),s.jsx("h1",{className:"text-4xl md:text-6xl font-black mb-6 uppercase tracking-tight leading-tight text-white",children:e.title}),s.jsx("p",{className:"text-xl text-hba-grey-2 leading-relaxed mb-8 font-medium",children:e.description})]})})]}),s.jsx("section",{className:"py-24 bg-white",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 grid grid-cols-1 lg:grid-cols-3 gap-16",children:[s.jsx("div",{className:"lg:col-span-2",children:s.jsxs("div",{className:"space-y-12",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-3xl font-black text-hba-blue-1 mb-6 uppercase tracking-tight",children:"Scope of Guidance"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:e.features.map(n=>s.jsxs("div",{className:"flex items-center gap-3 p-5 bg-hba-blue-1/5 rounded-2xl border border-hba-blue-1/10 group hover:border-hba-orange-1 transition-all",children:[s.jsx(er,{className:"w-6 h-6 text-hba-orange-1 shrink-0"}),s.jsx("span",{className:"font-bold text-hba-blue-1",children:n})]},n))})]}),s.jsxs("div",{className:"prose prose-blue max-w-none text-hba-grey-1",children:[s.jsx("p",{className:"text-lg leading-relaxed whitespace-pre-line font-medium",children:e.detailedContent}),s.jsx("p",{className:"text-lg leading-relaxed mt-4 font-medium",children:"Our role as an advisor is to provide objective plan comparisons and enrollment support. Whether you're looking for a major medical plan on the exchange or specific dental coverage, we provide the expert guidance you need at no cost to you."})]}),s.jsxs("div",{className:"bg-hba-blue-1 rounded-[2.5rem] p-12 text-white relative overflow-hidden group shadow-2xl",children:[s.jsx("div",{className:"absolute -right-24 -top-24 w-96 h-96 bg-white/5 rounded-full blur-3xl transition-transform group-hover:scale-110"}),s.jsxs("div",{className:"relative z-10",children:[s.jsx("h3",{className:"text-2xl font-black mb-4 uppercase text-white",children:"Ready to Compare Options?"}),s.jsx("p",{className:"text-hba-grey-2 mb-8 max-w-md font-medium",children:"Our advisors can provide a customized plan analysis in minutes. No obligation, just expert advice."}),s.jsxs("div",{className:"flex flex-wrap gap-4",children:[s.jsxs("button",{className:"bg-hba-orange-1 hover:bg-hba-orange-2 text-white px-8 py-4 rounded-xl font-black transition-all shadow-xl flex items-center gap-2",children:[s.jsx(Gi,{className:"w-5 h-5"}),"REQUEST QUOTE"]}),s.jsxs("a",{href:"tel:7758281216",className:"bg-white/10 hover:bg-white/20 text-white px-8 py-4 rounded-xl font-black transition-all border border-white/20 flex items-center gap-2",children:[s.jsx(Ut,{className:"w-5 h-5"}),"(775) 828-1216"]})]})]})]})]})}),s.jsx("aside",{className:"lg:sticky lg:top-32 h-fit",children:s.jsx(Sh,{category:e.title,title:`Inquire about ${e.title}`})})]})})]})},Jbe={reno:"Reno, NV","carson-city-minden":"Carson City / Minden, NV",sparks:"Sparks, NV",fernley:"Fernley, NV",henderson:"Las Vegas, NV",truckee:"Truckee, CA"};function Qbe(t,e){return t?Jbe[t]??e??t:e??"Nevada"}function Zbe(t){const e=[...t];for(let r=e.length-1;r>0;r--){const n=Math.floor(Math.random()*(r+1));[e[r],e[n]]=[e[n],e[r]]}return e}const exe=[{title:"We Quote All Plans",copy:"Our brokers work with every major medical insurance plan in Nevada and will find the right policy for your needs and budget.",icon:yie},{title:"We Are Local",copy:"Health Benefits Associates has been assisting Nevadans for over 25 years at its Reno office. We now have office
886s all over Northern Nevada.",icon:el},{title:"We Charge Zero Fees",copy:"There is no extra cost to sit down with one of our licensed professionals. Our brokers know the market and have experience working with every insurance company in Nevada.",icon:rU}],txe=[{label:"Doctor Visits",icon:mi},{label:"Specialists",icon:kce},{label:"Prescriptions",icon:dc},{label:"Surgeries",icon:Rr},{label:"Preventative Care",icon:sce},{label:"Maternity Benefits",icon:Ki},{label:"Lab and Radiology Tests",icon:dU},{label:"Emergencies",icon:Zk},{label:"Hospital Stays",icon:lS},{label:"Urgent Care Centers",icon:mi},{label:"Mental Health Services",icon:ls},{label:"Pre-existing Conditions",icon:vh},{label:"And more!",icon:Xe}],qb=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-black tracking-tight text-hba-blue-1",children:t}),e?s.jsx("p",{className:"mt-4 text-hba-grey-1 text-lg leading-relaxed",children:e}):null]}),rxe=()=>s.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-hba-blue-2 via-hba-blue-1 to-[#1a2830] text-white",children:[s.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-[0.12]",style:{backgroundImage:"radial-gradient(circle at 20% 30%, rgba(255,255,255,0.45) 0%, transparent 45%), radial-gradient(circle at 80% 70%, rgba(236,129,76,0.35) 0%, transparent 40%)"}}),s.jsxs("div",{className:"absolute inset-0 opacity-25",children:[s.jsx("div",{className:"absolute -top-24 -left-24 h-72 w-72 rounded-full bg-hba-orange-1 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 right-0 h-80 w-80 rounded-full bg-cyan-400/80 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4 py-24 md:py-32",children:[s.jsx("p",{className:"inline-flex items-center rounded-full border border-white/25 bg-white/10 px-4 py-1 text-xs font-black tracking-widest text-white uppercase",children:"Nevada Individual Insurance"}),s.jsx("h1",{className:"mt-6 max-w-4xl text-4xl font-black !text-white tracking-tight leading-tight md:text-6xl",children:"Prices for Every Individual Medical Insurance Company in Nevada"}),s.jsx("div",{className:"mt-5 h-1.5 w-full max-w-[min(100%,26rem)] shrink-0 bg-gradient-to-r from-hba-orange-1 via-[#6d5c62] to-hba-blue-1 shadow-[0_1px_12px_rgba(0,0,0,0.25)] md:h-2 md:max-w-[34rem]","aria-hidden":!0}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg text-white/90 leading-relaxed md:text-xl",children:"No hidden fees or added charges. We are a no-cost resource for you."}),s.jsx("div",{className:"mt-10",children:s.jsxs(ue,{to:"/ifp-quote",className:"inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["See Plans and Prices",s.jsx(Xe,{className:"h-5 w-5"})]})})]})]}),nxe=({reviews:t,loading:e})=>{const r=z.useRef(null),n=a=>{var i;(i=r.current)==null||i.scrollBy({left:a==="left"?-420:420,behavior:"smooth"})};return s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-slate-100 py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsxs("div",{className:"flex flex-col gap-5 md:flex-row md:items-end md:justify-between",children:[s.jsx(qb,{title:"What Our Clients Have to Say"}),!e&&t.length>0?s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{type:"button",onClick:()=>n("left"),className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-hba-blue-1/15 bg-white text-hba-blue-1 shadow-sm transition hover:border-hba-orange-1/40 hover:text-hba-orange-1","aria-label":"Previous reviews",children:s.jsx(Fu,{className:"h-5 w-5","aria-hidden":!0})}),s.jsx("button",{type:"button",onClick:()=>n("right"),className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-hba-blue-1/15 bg-white text-hba-blue-1 shadow-sm transition hover:border-hba-orange-1/40 hover:text-hba-orange-1","aria-label":"Next reviews",children:s.jsx(Vn,{className:"h-5 w-5","aria-hidden":!0})})]}):null]}),e?s.jsx("div",{className:"mt-10 flex min-h-40 items-center justify-center rounded-2xl border border-hba-blue-1/10 bg-white/80 text-hba-grey-1",children:"Loading reviews..."}):t.length===0?s.jsx("div",{className:"mt-10 flex min-h-40 items-center justify-center rounded-2xl border border-hba-blue-1/10 bg-white/80 text-hba-grey-1",children:"No reviews available yet."}):s.jsx("div",{ref:r,className:"mt-10 flex snap-x snap-mandatory gap-6 overflow-x-auto scroll-smooth py-8 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:t.map(a=>s.jsxs("article",{tabIndex:0,className:"group/review min-w-[84%] snap-start rounded-2xl border border-hba-blue-1/10 bg-white/90 p-6 shadow-sm shadow-hba-blue-1/5 backdrop-blur-sm transition duration-300 hover:relative hover:z-20 hover:-translate-y-3 hover:scale-[1.04] hover:border-hba-orange-1/30 hover:bg-white hover:shadow-[0_28px_70px_-24px_rgba(42,60,70,0.28)] focu
886s:relative focus:z-20 focus:-translate-y-3 focus:scale-[1.04] focus:border-hba-orange-1/30 focus:bg-white focus:shadow-[0_28px_70px_-24px_rgba(42,60,70,0.28)] focus:outline-none focus:ring-2 focus:ring-hba-orange-1/40 sm:min-w-[430px] lg:min-w-[23.5%]",children:[s.jsx("div",{className:"mb-4 flex gap-1","aria-label":`${a.rating} out of 5 stars`,children:[...Array(5)].map((i,o)=>s.jsx(Un,{className:`h-5 w-5 ${o<(a.rating??0)?"fill-yellow-400 text-yellow-400":"fill-gray-200 text-gray-200"}`,"aria-hidden":!0},o))}),s.jsxs("p",{className:"line-clamp-5 leading-relaxed text-hba-grey-1 transition-all duration-300 group-hover/review:line-clamp-none group-focus/review:line-clamp-none",children:["â",a.review_text,"â"]}),s.jsxs("p",{className:"mt-5 text-sm font-black uppercase tracking-wider text-hba-blue-1",children:[a.reviewer_name??"Anonymous"," - ",Qbe(a.office_code,a.office_city)]})]},a.id))})]})})},axe=({cards:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:t.map(e=>{const r=e.icon;return s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-white/95 p-6 shadow-sm shadow-hba-blue-1/5",children:[s.jsx("div",{className:"inline-flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(r,{className:"h-6 w-6"})}),s.jsx("h3",{className:"mt-5 text-xl font-black tracking-tight text-hba-blue-1",children:e.title}),s.jsx("p",{className:"mt-3 text-hba-grey-1 leading-relaxed",children:e.copy})]},e.title)})}),sxe=({items:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:t.map(e=>{const r=e.icon;return s.jsxs("div",{className:"flex items-center gap-3 rounded-xl border border-hba-blue-1/10 bg-white/90 p-4 shadow-sm shadow-hba-blue-1/[0.06]",children:[s.jsx("div",{className:"inline-flex h-10 w-10 items-center justify-center rounded-lg bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(r,{className:"h-5 w-5"})}),s.jsx("p",{className:"text-sm font-bold text-hba-blue-1",children:e.label})]},e.label)})}),ixe=({title:t,subtitle:e})=>s.jsx("section",{className:"relative border-t-4 border-hba-orange-1 bg-gradient-to-b from-white via-slate-50 to-slate-100 py-20 shadow-[0_-12px_40px_-20px_rgba(40,60,68,0.12)]",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4 text-center",children:[s.jsx("h2",{className:"mx-auto max-w-3xl text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:t}),s.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-lg text-hba-grey-1",children:e}),s.jsxs(ue,{to:"/ifp-quote",className:"mt-8 inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["See Plans and Prices",s.jsx(Xe,{className:"h-5 w-5"})]})]})}),CM=()=>{const[t,e]=z.useState([]),[r,n]=z.useState(!0);return z.useEffect(()=>{fetch(ut("/api/reviews/recent?limit=60")).then(a=>a.ok?a.json():[]).then(a=>{const i=Array.isArray(a)?a.filter(o=>!!(o!=null&&o.id&&(o!=null&&o.review_text))):[];e(Zbe(i))}).catch(()=>e([])).finally(()=>n(!1))},[]),s.jsxs("div",{className:"bg-slate-100",children:[s.jsx(rxe,{}),s.jsx(nxe,{reviews:t,loading:r}),s.jsx("section",{className:"bg-hba-blue-1/[0.09] py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(qb,{title:"Did You Know?"}),s.jsx("div",{className:"mt-10",children:s.jsx(axe,{cards:exe})}),s.jsx("div",{className:"mt-10",children:s.jsxs(ue,{to:"/ifp-quote",className:"inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["See Plans and Prices",s.jsx(Xe,{className:"h-5 w-5"})]})})]})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-slate-100 py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(qb,{title:"Major Medical Plans Cover:",subtitle:"A broad range of essentials to protect your health and your budget."}),s.jsx("div",{className:"mt-10",children:s.jsx(sxe,{items:txe})})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.09] py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(qb,{title:"Individual and Family Health Insurance"}),s.jsx("p",{className:"mt-6 max-w-4xl text-lg text-hba-grey-1 leading-relaxed",children:"Private insurance plans are typically only available during open enrollment but you may be able to get a plan using a qualified life event. We can check your situation and determine if you qual
886ify to get a plan as soon as next month."}),s.jsx("h3",{className:"mt-10 text-2xl font-black tracking-tight text-hba-blue-1",children:"Private Medical Insurance Plans"}),s.jsxs("ol",{className:"mt-6 grid gap-5",children:[s.jsxs("li",{className:"rounded-2xl border border-hba-blue-1/10 bg-white/95 p-6 shadow-sm shadow-hba-blue-1/5",children:[s.jsx("span",{className:"text-hba-orange-1 font-black mr-2",children:"1."}),"Private health insurance plans can be purchased through a broker (like us) as well as straight from the insurance company. It is the same price no matter where it is purchased. The difference is that we provide valuable knowledge as well as customer service that you just will not get with the insurance company."]}),s.jsxs("li",{className:"rounded-2xl border border-hba-blue-1/10 bg-white/95 p-6 shadow-sm shadow-hba-blue-1/5",children:[s.jsx("span",{className:"text-hba-orange-1 font-black mr-2",children:"2."}),"Insurance companies (such as Hometown Health and Health Plan of Nevada) sell private insurance plans throughout various counties in Nevada."]}),s.jsxs("li",{className:"rounded-2xl border border-hba-blue-1/10 bg-white/95 p-6 shadow-sm shadow-hba-blue-1/5",children:[s.jsx("span",{className:"text-hba-orange-1 font-black mr-2",children:"3."}),"Private health insurance plans are not involved with the health insurance marketplace. There are no income-related questions and the price is only based on your age and zip code."]})]}),s.jsx("p",{className:"mt-8 max-w-4xl text-lg text-hba-grey-1 leading-relaxed",children:"If the insurance offered at work pays for employees but not spouses or children, private individual medical insurance plans for dependents can be a great solution."}),s.jsx("aside",{className:"mt-10 rounded-2xl border border-hba-orange-1/20 bg-hba-orange-1/10 p-6 md:p-8",children:s.jsxs("p",{className:"text-hba-blue-1 leading-relaxed",children:[s.jsx("span",{className:"font-black",children:"Did you know?"})," If you had a qualifying life event, you can begin coverage as soon as the first of next month. Speaking with a health insurance broker can determine if you are eligible to sign up for insurance outside of"," ",s.jsx(ue,{to:"/nevada-individual-open-enrollment-2/",className:"font-black text-hba-orange-1 underline underline-offset-4",children:"Open Enrollment"}),"."]})}),s.jsx("p",{className:"mt-10 text-sm text-hba-grey-1 leading-relaxed",children:"We will not, in any circumstances, share your personal information with other individuals or organizations without your permission, including public organizations, corporations, or individuals, except when applicable by law. We do not sell, communicate or divulge your information to any mailing lists."})]})}),s.jsx(ixe,{title:"Compare Nevada Plans With a Local Expert",subtitle:"Get side-by-side plan options and pricing guidance from licensed brokers at no additional cost."})]})},oxe=[{title:"Nationwide Emergency Care",copy:"While outside of Nevada, Hometown Health offers a nationwide network on both HMO, EPO, and PPO plans. This network is used for emergency or urgent care situations only.",icon:sS},{title:"Contracts With the University of Utah",copy:"This facility must be requested and authorized in advance but is available to Hometown Health members when needed. This provides peace of mind if you cannot receive the care you need in Nevada.",icon:lS},{title:"$0 Virtual Doctor Visits",copy:"Hometown offers $0 virtual doctor visits through Teladoc for all non-HSA plans, allowing members to speak to a doctor remotely for common medical needs.",icon:cle,cta:{label:"Access Teladoc Resources",href:"https://www.hometownhealth.com/telehealth/"}}],lxe=[{title:"HMO",points:["HMO plans require you to establish a Renown Primary Care Physician.","HMO plans require you to receive a referral from your Primary Care Physician before seeing a Specialist.","There are no out-of-network benefits on HMO plans except in emergency situations."]},{title:"EPO",points:["EPO plans allow you to use a Primary Care Doctor outside of Renown and do not require referrals.","EPO plans work exactly like a PPO plan aside from out-of-network benefits."]}],cxe=[{label:"Hometown Doctor Search",href:"https://apps.hometownhealth.com/OnlineProviderDirectory/en"}
886,{label:"Member Login",href:"https://www.hometownhealth.com/mychart/"},{label:"Prescription Drug Formulary",href:"https://www.hometownhealth.com/pharmacy-services/drug-formularies/"},{label:"Teladoc",href:"https://www.hometownhealth.com/telehealth/"},{label:"Renown Virtual Visits",href:"https://www.renown.org/Health-Services/Telehealth"},{label:"Dispatch Health",href:"https://www.hometownhealth.com/dispatch-health/"}],uxe=[{title:"Hometown Health Video 1",embedUrl:"https://www.youtube.com/embed/wHbBWTU-9Ds"},{title:"Hometown Health Video 2",embedUrl:"https://www.youtube.com/embed/Vso8HuMWLCg"}],g3=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-black tracking-tight text-hba-blue-1",children:t}),e?s.jsx("p",{className:"mt-4 text-hba-grey-1 text-lg leading-relaxed",children:e}):null]}),dxe=()=>s.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-hba-blue-2 via-hba-blue-1 to-[#1a2830] text-white",children:[s.jsxs("div",{className:"absolute inset-0 opacity-20",children:[s.jsx("div",{className:"absolute -top-24 left-0 h-72 w-72 rounded-full bg-hba-orange-1 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 right-0 h-80 w-80 rounded-full bg-cyan-400/70 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4 py-24 md:py-32",children:[s.jsx("p",{className:"inline-flex items-center rounded-full border border-white/25 bg-white/10 px-4 py-1 text-xs font-black tracking-widest text-white uppercase",children:"Hometown Health"}),s.jsx("h1",{className:"mt-6 max-w-4xl text-4xl font-black !text-white tracking-tight leading-tight md:text-6xl",children:"The Largest Not-for-Profit Insurance Company in Nevada"}),s.jsx("div",{className:"mt-5 h-1.5 w-full max-w-[min(100%,26rem)] bg-gradient-to-r from-hba-orange-1 via-[#6d5c62] to-hba-blue-1 md:h-2 md:max-w-[34rem]","aria-hidden":!0}),s.jsx("p",{className:"mt-6 max-w-3xl text-lg text-white/90 leading-relaxed md:text-xl",children:"Locally owned with access to one of the largest networks of doctors in Northern Nevada, Hometown Health is a great option for individual and family coverage as well as employer health plans."}),s.jsxs(ue,{to:"/ifp-quote",className:"mt-10 inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Enroll with Hometown Health",s.jsx(Xe,{className:"h-5 w-5"})]})]})]}),hxe=({cards:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:t.map(e=>{const r=e.icon;return s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-white/95 p-6 shadow-sm shadow-hba-blue-1/5",children:[s.jsx("div",{className:"inline-flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(r,{className:"h-6 w-6"})}),s.jsx("h3",{className:"mt-5 text-xl font-black tracking-tight text-hba-blue-1",children:e.title}),s.jsx("p",{className:"mt-3 text-hba-grey-1 leading-relaxed",children:e.copy}),e.cta?s.jsxs("a",{href:e.cta.href,target:"_blank",rel:"noreferrer noopener",className:"mt-5 inline-flex items-center gap-2 rounded-lg border border-hba-blue-1/15 bg-hba-blue-1/5 px-3 py-2 text-sm font-black text-hba-blue-1 transition-colors hover:border-hba-orange-1/50 hover:text-hba-orange-1",children:[e.cta.label,s.jsx(Lt,{className:"h-4 w-4"})]}):null]},e.title)})}),fxe=({columns:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2",children:t.map(e=>s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/20 bg-slate-50 p-6 md:p-8 shadow-[0_14px_35px_-16px_rgba(40,60,68,0.45)]",children:[s.jsxs("h3",{className:"text-2xl font-black tracking-tight text-hba-blue-1",children:[e.title," Plans"]}),s.jsx("ul",{className:"mt-5 space-y-4",children:e.points.map(r=>s.jsxs("li",{className:"flex items-start gap-3",children:[s.jsx(Rr,{className:"mt-0.5 h-5 w-5 shrink-0 text-hba-orange-1"}),s.jsx("span",{className:"text-hba-grey-1 leading-relaxed",children:r})]},r))})]},e.title))}),pxe=({links:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:t.map(e=>s.jsxs("a",{href:e.href,target:"_blank",rel:"noreferrer noopener",className:"group flex items-center justify-between rounded-xl border border-hba-blue-1/10 bg-white p-5 transition-all hover:-translate-y-0.5 hover:border-hba-orange-1/60 hover:shadow-md",children:[s.jsx("span",{className:"font-bold text-hba-blue-1",children:e.label}),s.jsx(Lt,{className:"h-4 w-4 text-hba-orange-1 transition-transform group-hover:translate-x-0.5"})]},e.label))}),mxe=()=>s.jsxs("div",{className:"bg-slate-100",children:[s.jsx(dxe,{}),s.jsx("section",{className:"bg-hba-blue-1/[0.09] py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(g3,{title:"Hometown Health Insurance Plans Include:"}),s.jsx("div",{className:"mt-10",children:s.jsx(hxe,{cards:oxe})})]})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-slate-100 py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(g3,{title:"The main differences between HMO and EPO Plans with Hometown Health"}),s.jsx("div",{className:"mt-10",children:s.jsx(fxe,{columns:lxe})}),s.jsx("div",{className:"mt-10 grid grid-cols-1 gap-6 lg:grid-cols-2",children:uxe.map(t=>s.jsx("article",{className:"overflow-hidden rounded-2xl border border-hba-blue-1/10 bg-white shadow-sm",children:s.jsx("div",{className:"aspect-video",children:s.jsx("iframe",{className:"h-full w-full",src:t.embedUrl,title:t.title,loading:"lazy",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;
886 web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})})},t.embedUrl))}),s.jsx("div",{className:"mt-10 text-center md:text-left",children:s.jsxs(ue,{to:"/ifp-quote",className:"inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["See Plans and Prices",s.jsx(Xe,{className:"h-5 w-5"})]})})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.09] py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(g3,{title:"Helpful Links for Hometown Health Members",subtitle:"Quick access to provider lookup, member services, and virtual care tools."}),s.jsx("div",{className:"mt-10",children:s.jsx(pxe,{links:cxe})})]})})]}),gxe=["The doctor or facility you need no longer accepts your insurance policy","The monthly premium is increasing dramatically","Your new benefits for next year do not satisfy all your medical needs","There is a new plan available in your area with better benefits, lower rates, and a larger network"],bxe=["Zip code","Date of birth for all applicants","County / home address","Dependent information","Plan preferences","Doctor and prescription preferences"],xxe=[{label:"Nevada Division of Insurance",href:"https://doi.nv.gov/",description:"Official state regulator resources and consumer information."}],yxe=[{embedUrl:"https://www.youtube.com/embed/TezeJGXQiJM",title:"Nevada enrollment video 1"},{embedUrl:"https://www.youtube.com/embed/bblTq6oAVnA",title:"Nevada enrollment video 2"},{embedUrl:"https://www.youtube.com/embed/9YzBpmAGI9U",title:"Nevada enrollment video 3"}],kd=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:t}),e?s.jsx("p",{className:"mt-4 text-lg leading-relaxed text-hba-grey-1",children:e}):null]}),vxe=({children:t,variant:e="warning"})=>s.jsx("aside",{className:e==="warning"?"rounded-2xl border border-amber-200/80 bg-amber-50 p-6 md:p-8":"rounded-2xl border border-hba-blue-1/15 bg-hba-blue-1/5 p-6 md:p-8",children:s.jsxs("div",{className:"flex gap-4",children:[e==="warning"?s.jsx(Go,{className:"mt-0.5 h-6 w-6 shrink-0 text-amber-600","aria-hidden":!0}):s.jsx(Sy,{className:"mt-0.5 h-6 w-6 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("div",{className:"space-y-3 text-hba-blue-1",children:t})]})}),wxe=({items:t})=>s.jsx("ul",{className:"grid gap-3 sm:grid-cols-2",children:t.map(e=>s.jsxs("li",{className:"flex items-start gap-3 rounded-xl border border-hba-blue-1/10 bg-white p-4 shadow-sm",children:[s.jsx(er,{className:"mt-0.5 h-5 w-5 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{className:"font-bold text-hba-blue-1",children:e})]},e))}),Nxe=({links:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:t.map(e=>{const r=e.external??/^https?:\/\//.test(e.href),n="group flex flex-col rounded-xl border border-hba-blue-1/10 bg-white p-5 transition-all hover:-translate-y-0.5 hover:border-hba-orange-1/60 hover:shadow-md";return r?s.jsxs("a",{href:e.href,target:"_blank",rel:"noreferrer noopener",className:n,children:[s.jsxs("span",{className:"flex items-center justify-between gap-2",children:[s.jsx("span",{className:"font-bold text-hba-blue-1",children:e.label}),s.jsx(Lt,{className:"h-4 w-4 shrink-0 text-hba-orange-1"})]}),e.description?s.jsx("span",{className:"mt-2 text-sm leading-relaxed text-hba-grey-1",children:e.description}):null]},e.label):s.jsxs(ue,{to:e.href,className:n,children:[s.jsxs("span",{className:"flex items-center justify-between gap-2",children:[s.jsx("span",{className:"font-bold text-hba-blue-1",children:e.label}),s.jsx(Xe,{className:"h-4 w-4 shrink-0 text-hba-orange-1 transition-transform group-hover:translate-x-0.5"})]}),e.description?s.jsx("span",{className:"mt-2 text-sm leading-relaxed text-hba-grey-1",children:e.description}):null]},e.label)})}),jxe=[{question:"How are health plan premiums calculated?",answer:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-4",children:"Health insurance premiums are based on a few key factors, including:"}),s.jsxs("ul",{className:"mb-4 list-disc space-y-2 pl-5",children:[s.jsx("li",{children:"The specific plan you choose"}),s.jsx("li",{children:"Your age"}),s.jsx("li",{children:"The ages of any dependents enrolling with you"}),s.jsx("li",{children:"The county of your home address"})]}),s.jsx("p",{children:"Together, these factors determine the monthly cost of your coverage."})]})},{question:"What is the difference between an HMO and a PPO plan?",answer:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-4",children:"HMO and PPO plans differ mainly in how you access care and how much flexibility you have when choosing providers."}),s.jsx("p",{className:"mb-2 font-bold text-hba-blue-1",children:"HMO plans"}),s.jsxs("ul",{className:"mb-4 list-disc space-y-2 pl-5",children:[s.jsx("li",{children:"Require you to select a Primary Care Physician (PCP) from the carrier's network"}),s.jsx("li",{children:"Require referrals from your PCP before seeing a specialist"}),s.jsx("li",{children:"Typically do not offer out-of-network benefits"})]}),s.jsx("p",{className:"mb-2 font-bold text-hba-blue-1",children:"PPO plans"}),s.jsxs("ul",{className:"list-disc space-y-2 pl-5",children:[s.jsx("li",{children:"Provide access to a larger network of doctors and facilities"}),s.jsx("li",{children:"Do not require referrals to see specialists"}),s.jsx("li",{children:"Offer more flexibility when choosing providers"}),s.jsx("li",{children:"Usually cost about 15% more in monthly premiums compared to HMO plans"})]})]})},{question:"What is an HSA plan?",answer:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-4",children:"An HSA (Health Savings Account) plan is a type of health insurance that meets specific government guidelines and allows you to set aside pre-tax money for qualified medical expenses."}),s.jsx("p",{className:"mb-4",children:"Those funds can be used for eligible healthcare costs, which can help reduce your overall out-of-pocket spending. However, monthly premiums are typically not paid directly from HSA funds."}),s.jsx("a",{href:"https://www.irs.gov/publications/p969",target:"_blank",rel:"noreferrer noopener",children:"Learn more about HSAs (IRS Publication 969)"})]})},{question:"Can I change plans in the middle of the year?",answer:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-4",children:"In most cases, you cannot change your health insurance plan outside of Open Enrollment."}),s.jsx("p",{className:"mb-4",children:"If you experience a Qualifying Life Eventâsuch as losing coverage, moving, or having a childâyou may be eligible for a Special Enrollment Period. These enrollment windows typically last 60 days from the date of the event."}),s.jsx(ue,{to:"/article/qualifying-life-events",children:"Learn more about Qualifying Life Events"})]})},{question:"How much does it cost to use a broker?",answer:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-4",children:"There is no cost to work with a health insurance broker like Health Benefits Associates."}),s.jsx("p",{className:"mb-4",children:"You pay the same price whether you enroll directly through the insurance company or through us. The difference is that we provide:"}),s.jsxs("ul",{className:"list-disc space-y-2 pl-5",children:[s.jsx("li",{children:"Personalized plan recommendations"}),s.jsx("li",{children:"Enrollment assistance"}),s.jsx("li",{children:"Ongoing support throughout the year"}),s.jsx("li",{children:"Help with claims, billing, and renewals"})]})]})},{question:"Do health insurance plans include dental and vision coverage?",answer:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-4",children:"Most major medical plans include pediatric dental and vision coverage for individuals under age 19."}),s.jsx("p",{className:"mb-4",children:"Adult dental and vision coverage are not included in standard health plans and are typically purchased
886separately."}),s.jsxs("p",{className:"space-x-3",children:[s.jsx(ue,{to:"/article/dental-coverage",children:"Learn more about dental coverage"}),s.jsx("span",{className:"text-hba-grey-1",children:"·"}),s.jsx(ue,{to:"/article/vision-coverage",children:"Learn more about vision coverage"})]})]})},{question:"Are preexisting conditions a factor when applying for coverage?",answer:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-4",children:"No. Major medical health plans are required to cover preexisting conditions."}),s.jsx("p",{className:"mb-4",children:"Applications for these plans do not include health questions, and your medical history does not affect your eligibility or pricing."}),s.jsx(ue,{to:"/article/major-medical-coverage",children:"Learn more about what major medical plans include"})]})},{question:"How can I avoid long wait times at the doctorâs office?",answer:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-4",children:"Wait times can vary depending on the insurance carrier, provider network, and reimbursement structure."}),s.jsx("p",{className:"mb-4",children:"Choosing a plan with a strong provider network can help reduce delays. Working with a broker can also help you identify plans that offer better access to care in your area."}),s.jsx(ue,{to:"/reno-health-insurance-broker/",children:"Contact us"})]})},{question:"How do I start a group health plan?",answer:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-4",children:"Group health plans can be started at any time of the year and must meet a few basic requirements:"}),s.jsxs("ul",{className:"mb-4 list-disc space-y-2 pl-5",children:[s.jsx("li",{children:"A minimum of 2 enrolled employees"}),s.jsx("li",{children:"Coverage must be offered to all full-time eligible employees"}),s.jsx("li",{children:"The employer must contribute at least 50% of the employee premium"}),s.jsx("li",{children:"Most carriers require 50%â75% participation from eligible employees who are not otherwise insured"}),s.jsx("li",{children:"Proof of a legitimate business and payroll may be required"})]}),s.jsx(ue,{to:"/article/small-business-health-coverage-2/-insurance",children:"Learn more about small business coverage"})]})}],kxe=()=>s.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-hba-blue-2 via-hba-blue-1 to-[#1a2830] text-white",children:[s.jsxs("div",{className:"absolute inset-0 opacity-25",children:[s.jsx("div",{className:"absolute -top-24 left-0 h-72 w-72 rounded-full bg-hba-orange-1 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 right-0 h-80 w-80 rounded-full bg-red-500/30 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4 py-24 md:py-32",children:[s.jsxs("div",{className:"flex flex-wrap gap-3",children:[s.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-white/25 bg-white/10 px-4 py-1.5 text-xs font-black uppercase tracking-widest",children:[s.jsx(nU,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),"Open Enrollment window"]}),s.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-hba-orange-1/40 bg-hba-orange-1/20 px-4 py-1.5 text-xs font-black uppercase tracking-widest text-white",children:[s.jsx(Fs,{className:"h-4 w-4","aria-hidden":!0}),"Enroll by Dec 15 for Jan 1 start"]})]}),s.jsx("h1",{className:"mt-6 max-w-4xl text-4xl font-black !text-white tracking-tight leading-tight md:text-6xl",children:"Nevada Individual Open Enrollment"}),s.jsx("div",{className:"mt-5 h-1.5 w-full max-w-[min(100%,26rem)] bg-gradient-to-r from-hba-orange-1 via-[#6d5c62] to-hba-blue-1 md:h-2 md:max-w-[34rem]","aria-hidden":!0}),s.jsxs("p",{className:"mt-6 max-w-3xl text-lg leading-relaxed text-white/90 md:text-xl",children:["Between ",s.jsx("strong",{className:"text-white",children:"November 1st"})," and ",s.jsx("strong",{className:"text-white",children:"December 15th"}),", you can apply for coverage during the Nevada Individual Open Enrollment Period. Whether you already have coverage or are enrolling for the first time, this window is when you can choose a plan. If you submit an application, make a payment, and select a plan in time, coverage can begin on"," ",s.jsx("strong",{className:"text-white",children:"January 1st"}),"."]}),s.jsx("div",{className:"mt-6 flex flex-wrap gap-4",children:s.jsxs("div",{className:"rounded-2xl border border-white/15 bg-white/10 px-5 py-4 backdrop-blur-sm",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-widest text-hba-orange-1",children:"Key dates"}),s.jsx("p",{className:"mt-1 text-lg font-black text-white",children:"Nov 1 â Dec 15"}),s.jsx("p",{className:"mt-1 text-sm text-white/80",children:"Apply and pay by Dec 15 for a Jan 1 effective date"})]})}),s.jsxs(ue,{to:"/ifp-quote",className:"mt-10 inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Individual and Family Quote",s.jsx(Xe,{className:"h-5 w-5"})]})]})]}),Sxe=()=>s.jsxs("div",{className:"bg-slate-100",children:[s.jsx(kxe,{}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-gradient-to-b from-hba-blue-1/[0.09] to-slate-100 py-20 md:py-24",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsxs("div",{className:"grid grid-cols-1 gap-12 md:grid-cols-2 md:gap-10 lg:gap-14",children:[s.jsxs("div",{children:[s.jsx(kd,{title:"Currently Covered? Shop Your Options!",subtitle:"Networks, premiums, and benefits change. Open Enrollment is your yearly opportunity to get ahead of surprises."}),s.jsx("p",{className:"mt-6 text-lg leading-relaxed text-hba-grey-1",children:"Open Enrollment is typically the only time of year you can switch individual plans unless you have a Qualifying Life Event."}),s.jsx("ul",{className:"mt-8 space-y-4",children:gxe.map(t=>s.jsxs("li",{className:"flex gap-3 rounded-xl border border-hba-blue-1/10 bg-white/95 p-4 shadow-sm",children:[s.jsx(er,{className:"mt-0.5 h-5 w-5 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{className:"text-hba-blue-1 leading-relaxed",children:t})]},t))}),s.jsx("div",{className:"mt-10",children:s.jsxs(ue,{to:"/ifp-quote",className:"inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["See Plans and Prices",s.jsx(Xe,{className:"h-5 w-5"})]})})]}),s.jsxs("div",{className:"border-t border-hba-blue-1/10 pt-12 md:border-t-0 md:border-l md:pt-0 md:pl-10 lg:pl-12",children:[s.jsx(kd,{title:"Uninsured? Now is the Time to Get a Plan!",subtitle:"Coverage is about protecting your health and your finances at the same time."}),s.jsx("p",{className:"mt-6 text-lg leading-relaxed text-hba-grey-1",children:"Going uninsured can mean paying full price for unexpected care. When comparing options, it helps to think about total cost, not just the monthly bill."}),s.jsxs("div",{className:"mt-8 rounded-2xl border border-hba-blue-1/15 bg-white p-6 shadow-md md:p-8",children:[s.jsx("h3",{className:"text-xl font-black text-hba-blue-1",children:"Simple way to think about ânet exposureâ"}),s.jsxs("p",{className:"mt-3 text-hba-grey-1 leading-relaxed",children:["Add your ",s.jsx("strong",{className:"text-hba-blue-1",children:"expected medical expenses for the year"})," to your"," ",s.jsx("strong",{className:"text-hba-blue-1",children:"annual plan cost"})," (premiums and predictable out-of-pocket you expect to use). The option with the lower total may be the better fit â not always the plan with the lowest premium alone."]}),s.jsx("p",{className:"mt-4 text-hba-grey-1 leading-relaxed",children:"Also compare doctor networks, pharmacy coverage, and value-ad
886ded benefits so the plan matches how you actually use care."})]}),s.jsxs("div",{className:"mt-10 grid gap-4",children:[s.jsxs(ue,{to:"/faqs/",className:"group flex items-center justify-between gap-3 rounded-xl border border-hba-blue-1/10 bg-white p-5 transition-all hover:border-hba-orange-1/50 hover:shadow-md",children:[s.jsx("span",{className:"font-bold text-hba-blue-1",children:"Learn the basics of health insurance plans"}),s.jsx(Xe,{className:"h-5 w-5 shrink-0 text-hba-orange-1 transition-transform group-hover:translate-x-0.5"})]}),s.jsxs("a",{href:"https://doi.nv.gov/",target:"_blank",rel:"noreferrer noopener",className:"group flex items-center justify-between gap-3 rounded-xl border border-hba-blue-1/10 bg-white p-5 transition-all hover:border-hba-orange-1/50 hover:shadow-md",children:[s.jsx("span",{className:"font-bold text-hba-blue-1",children:"Review resources from the Nevada Division of Insurance"}),s.jsx(Lt,{className:"h-5 w-5 shrink-0 text-hba-orange-1"})]})]})]})]})})}),s.jsx("section",{id:"qualifying-life-events",className:"scroll-mt-28 bg-hba-blue-1/[0.09] py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(kd,{title:"Enrolling After Open Enrollment",subtitle:"You may still qualify for coverage if you experience a Qualifying Life Event."}),s.jsxs("p",{className:"mt-6 max-w-3xl text-lg leading-relaxed text-hba-grey-1",children:["Special Enrollment Periods are usually limited. In many cases, you have about ",s.jsx("strong",{className:"text-hba-blue-1",children:"60 days"})," from the date of the event to enroll â missing that window can mean waiting for the next Open Enrollment."]}),s.jsxs("p",{className:"mt-4 text-sm text-hba-grey-1",children:["Need help confirming eligibility?"," ",s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"font-bold text-hba-blue-1 underline underline-offset-2 hover:text-hba-orange-1",children:"Talk with an HBA advisor"})]}),s.jsx("div",{className:"mt-12 grid grid-cols-1 gap-6 md:grid-cols-3",children:yxe.map(t=>s.jsx("div",{className:"overflow-hidden rounded-2xl border border-hba-blue-1/10 bg-white shadow-sm",children:s.jsx("div",{className:"aspect-video",children:s.jsx("iframe",{className:"h-full w-full",src:t.embedUrl,title:t.title,loading:"lazy",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})})},t.embedUrl))})]})}),s.jsx("section",{id:"faq-open-enrollment",className:"scroll-mt-28 border-y border-hba-blue-1/10 bg-white py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-4xl px-4",children:[s.jsx(kd,{title:"Questions Often Asked About the Nevada Open Enrollment Period",subtitle:"Straight answers you can use while you compare plans."}),s.jsx("div",{className:"mt-10",children:s.jsx(KS,{items:jxe})})]})}),s.jsx("section",{className:"bg-slate-100 py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(kd,{title:"Helpful external resources",subtitle:"Trusted starting points as you research Nevada coverage."}),s.jsx("div",{className:"mt-10",children:s.jsx(Nxe,{links:xxe})})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.09] py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(kd,{title:"What You Need to Enroll",subtitle:"Gather these details before you start your application."}),s.jsx("div",{className:"mt-10",children:s.jsx(wxe,{items:bxe})})]})}),s.jsx("section",{className:"border-t border-hba-blue-1/10 bg-slate-100 py-16 md:py-20",children:s.jsx("div",{className:"mx-auto max-w-4xl px-4",children:s.jsxs(vxe,{variant:"warning",children:[s.jsx("h3",{className:"text-lg font-black uppercase tracking-wide text-amber-900",children:"Important timing notes"}),s.jsxs("ul",{className:"list-disc space-y-2 pl-5 text-sm leading-relaxed text-amber-950/90 md:text-base",children:[s.jsx("li",{children:"Missing Open Enrollment can mean waiting until next year unless you qualify through a Qualifying Life Event."}),s.jsx("li",{children:"Special Enrollment rules are strict and time-sensitive."}),s.jsx("li",{children:"When eligible, coverage can begin as early as the first day of the following month."})]})]})})})]}),Cxe=["Dental coverage is separate from major medical insurance â it is sold as its own policy.","Stand-alone dental plans can stay in place even when your medical plan changes.","Many dental plans use a graded benefit design, so staying enrolled year over year can improve what the plan pays toward care."],$xe
886="https://www.youtube.com/embed/5PQGHsNCSJc",_xe=[{id:"ameritas",name:"Ameritas",summary:"Strong overall value with major services available from day one, competitive pricing, and a large Nevada dentist network.",highlights:["Major services covered from day one (with graded cost sharing)","Annual maximums from $1,000 up to $2,000","Large dentist list; no waiting period for major services"],directoryLabel:"View Ameritas Dentists in Nevada",directoryUrl:"https://dentalnetwork.ameritas.com",quoteLabel:"Get an Ameritas Quote",quoteUrl:"https://myplan.ameritas.com/id/010L4233"},{id:"delta",name:"Delta Dental",summary:"Often among the most affordable dental options in Nevada, with clear plan designs and a statewide dentist directory.",highlights:["Maximum annual benefits from $1,000 up to $2,000","Limited adult orthodontic coverage on some plans","Waiting periods may apply on major services; one plan design offers no waiting periods"],directoryLabel:"View Delta Dental Dentists in Nevada",directoryUrl:"https://www.deltadentalins.com",quoteLabel:"Get a Delta Quote",quoteUrl:"https://brokers.dentalforeveryone.com/?Portal=92502-00000"}],Axe=[{label:"Ameritas Dentists in Nevada",href:"https://dentalnetwork.ameritas.com"},{label:"Ameritas Quote",href:"https://myplan.ameritas.com/id/010L4233"},{label:"Delta Dental Dentists in Nevada",href:"https://www.deltadentalins.com"},{label:"Delta Member Login / ID Cards",href:"https://www.deltadentalins.com"},{label:"Delta Quote",href:"https://brokers.dentalforeveryone.com/?Portal=92502-00000"}],Wb=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:t}),e?s.jsx("p",{className:"mt-4 text-lg leading-relaxed text-hba-grey-1",children:e}):null]}),Exe=({links:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:t.map(e=>s.jsxs("a",{href:e.href,target:"_blank",rel:"noreferrer noopener",className:"group flex items-center justify-between gap-3 rounded-xl border border-hba-blue-1/10 bg-white p-5 transition-all hover:-translate-y-0.5 hover:border-hba-orange-1/60 hover:shadow-md",children:[s.jsx("span",{className:"font-bold text-hba-blue-1",children:e.label}),s.jsx(Lt,{className:"h-4 w-4 shrink-0 text-hba-orange-1"})]},e.label))}),Oxe=({name:t,summary:e,highlights:r,directoryLabel:n,directoryUrl:a,quoteLabel:i,quoteUrl:o})=>s.jsxs("article",{className:"flex h-full flex-col rounded-2xl border border-hba-blue-1/10 bg-white/95 p-6 shadow-sm shadow-hba-blue-1/5 md:p-8",children:[s.jsx("h3",{className:"text-2xl font-black tracking-tight text-hba-blue-1",children:t}),s.jsx("p",{className:"mt-3 text-hba-grey-1 leading-relaxed",children:e}),s.jsx("ul",{className:"mt-6 space-y-3",children:r.map(l=>s.jsxs("li",{className:"flex gap-2 text-sm font-medium text-hba-blue-1",children:[s.jsx(er,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:l})]},l))}),s.jsxs("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row sm:flex-wrap",children:[s.jsxs("a",{href:a,target:"_blank",rel:"noreferrer noopener",className:"inline-flex items-center justify-center gap-2 rounded-xl border border-hba-blue-1/20 bg-hba-blue-1/5 px-4 py-3 text-center text-sm font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:[n,s.jsx(Lt,{className:"h-4 w-4"})]}),s.jsxs("a",{href:o,target:"_blank",rel:"noreferrer noopener",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-4 py-3 text-center text-sm font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:[i,s.jsx(Xe,{className:"h-4 w-4"})]})]})]}),Pxe=()=>s.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-hba-blue-2 via-hba-blue-1 to-[#1a2830] text-white",children:[s.jsxs("div",{className:"absolute inset-0 opacity-25",children:[s.jsx("div",{className:"absolute -top-24 left-0 h-72 w-72 rounded-full bg-hba-orange-1 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 right-0 h-72 w-72 rounded-full bg-cyan-400/40 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4 py-24 md:py-32",children:[s.jsxs("p",{className:"inline-flex items-center gap-2 rounded-full border border-white/25 bg-white/10 px-4 py-1 text-xs font-black uppercase tracking-widest",children:[s.jsx(ls,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),"Nevada dental coverage"]}),s.jsx("h1",{className:"mt-6 max-w-4xl text-4xl font-black !text-white tracking-tight leading-tight md:text-6xl",children:"Dental Insurance"}),s.jsx("div",{className:"mt-5 h-1.5 w-full max-w-[min(100%,26rem)] bg-gradient-to-r from-hba-orange-1 via-[#6d5c62] to-hba-blue-1 md:h-2 md:max-w-[34rem]","aria-hidden":!0}),s.jsx("p",{className:"mt-6 max-w-3xl text-lg leading-relaxed text-white/90 md:text-xl",children:"Nevada dental insurance works differently than medical insurance. Dental policies are stand-alone plans, which means they can continue even after your medical insurance ends. Because dental plans use a graded benefit structure, staying on the same plan for c
886onsecutive years can improve your benefits."})]})]}),Mxe=()=>s.jsx("div",{className:"rounded-2xl border border-hba-blue-1/15 bg-white p-6 shadow-md md:p-10",children:s.jsxs("div",{className:"grid gap-10 md:grid-cols-2 md:items-start",children:[s.jsxs("div",{children:[s.jsxs("h2",{className:"flex items-center gap-2 text-2xl font-black tracking-tight text-hba-blue-1 md:text-3xl",children:[s.jsx(mi,{className:"h-7 w-7 text-hba-orange-1","aria-hidden":!0}),"How dental insurance works"]}),s.jsx("ul",{className:"mt-6 space-y-4",children:Cxe.map(t=>s.jsxs("li",{className:"flex gap-3 text-hba-grey-1 leading-relaxed",children:[s.jsx("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-hba-orange-1","aria-hidden":!0}),t]},t))})]}),s.jsxs("aside",{className:"rounded-2xl border border-hba-orange-1/25 bg-hba-orange-1/10 p-6",children:[s.jsx("p",{className:"text-sm font-black uppercase tracking-widest text-hba-blue-1",children:"Why it matters"}),s.jsx("p",{className:"mt-3 text-hba-blue-1 leading-relaxed",children:"Dental coverage is designed for predictable, preventive, and restorative care. Understanding annual maximums and cost sharing helps you pick a plan that fits how you use the dentist â not just the lowest monthly price."})]})]})}),Txe=()=>s.jsx("section",{className:"bg-slate-100 py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center",children:[s.jsx(Wb,{title:"Watch: Understanding Dental Benefits"}),s.jsx("div",{className:"mt-10 overflow-hidden rounded-2xl border border-hba-blue-1/10 bg-white shadow-lg",children:s.jsx("div",{className:"aspect-video",children:s.jsx("iframe",{className:"h-full w-full",src:$xe,title:"Understanding dental benefits",loading:"lazy",allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})})})]})}),Rxe=()=>s.jsx("section",{className:"relative border-t-4 border-hba-orange-1 bg-gradient-to-b from-white via-slate-50 to-slate-100 py-20 shadow-[0_-12px_40px_-20px_rgba(40,60,68,0.12)]",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4 text-center",children:[s.jsx("h2",{className:"mx-auto max-w-3xl text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:"Compare Nevada Dental Plans and Get the Right Coverage"}),s.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-lg text-hba-grey-1",children:"Review your options, compare benefits, and get help choosing a dental plan that fits your needs and budget."}),s.jsxs("div",{className:"mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row",children:[s.jsxs(ue,{to:"/ifp-quote",className:"inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Get a Quote",s.jsx(Xe,{className:"h-5 w-5"})]}),s.jsx(ue,{to:"/ifp-quote",className:"inline-flex items-center gap-2 rounded-xl border-2 border-hba-blue-1/20 bg-white px-7 py-4 font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:"Compare Dental Plans"})]})]})}),Ixe=()=>s.jsxs("div",{className:"bg-slate-100",children:[s.jsx(Pxe,{}),s.jsx("section",{className:"bg-hba-blue-1/[0.09] py-20 md:py-24",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsx(Mxe,{})})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(Wb,{title:"Compare Nevada Dental Insurance Options",subtitle:"Two of the most common carrier paths Nevadans use for individual and family dental coverage."}),s.jsx("div",{className:"mt-12 grid grid-cols-1 gap-8 lg:grid-cols-2",children:_xe.map(t=>s.jsx(Oxe,{name:t.name,summary:t.summary,highlights:t.highlights,directoryLabel:t.directoryLabel,directoryUrl:t.directoryUrl,quoteLabel:t.quoteLabel,quoteUrl:t.quoteUrl},t.id))})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.09] py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:"Ameritas Nevada Dental Quote"}),s.jsxs("div",{className:"mt-8 max-w-4xl space-y-4 text-lg leading-relaxed text-hba-grey-1",children:[s.jsx("p",{children:"If you are looking for strong value for your premium dollar, Ameritas can be an excellent choice."}),s.jsx("p",{children:"They cover major services on day one, and their pricing is very competitive for the level of benefits provided."}),s.jsxs("p",{children:["Maximum annual benefits start at ",s.jsx("strong",{className:"text-hba-blue-1",children:"$1,000"})," and can go up to"," ",s.jsx("strong",{className:"text-hba-blue-1",children:"$2,000"}),". Ameritas also maintains a very large dentist network."]}),s.jsxs("p",{children:["Ameritas includes ",s.jsx("strong",{className:"text-hba-blue-1",children:"no waiting period for major services"}),". In the first year, the plan pays about"," ",s.jsx("strong",{className:"text-hba-blue-1",children:"10%"})," of eligible major services, then that share increases the longer you stay enrolled."]}),s.jsx("p",{children:"The longer you remain on the policy, the lower your cost sharing typically becomes â so the plan often pays more toward covered services in the second and third years than in the first."})]}),s.jsxs("div",{className:"mt-10 flex flex-col gap-4 sm:flex-row sm:flex-wrap",children:[s.jsxs("a",{href:"https://dentalnetwork.ameritas.com",target:"_blank",rel:"noreferrer noopener",className:"inline-flex items-center justify-center gap-2 rounded-xl border border-hba-blue-1/20 bg-white px-6 py-4 font-black uppercase tracking-wider text-hba-blue-1 shadow-sm transition-colors hover:border-hba-orange-1/50",children:["View Ameritas Dentists in Nevada",s.jsx(Lt,{className:"h-4 w-4"})]}),s.jsxs("a",{href:"https://myplan.ameritas.com/id/010L4233",target:"_blank",rel:"noreferrer noopener",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-6 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Get an Ameritas Quote",s.jsx(Xe,{className:"h-4 w-4"})]})]})]})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:"Delta Nevada Dental Quote"}),s.jsxs("div",{className:"mt-8 max-w-4xl space-y-4 text-lg leading-relaxed text-hba-grey-1",children:[s.jsx("p",{children:"Delta Dental often offers some of the least expensive dental insurance options in Nevada."}),s.jsxs("p",{children:["Maximum annual benefits typically start around ",s.jsx("strong",{className:"text-hba-blue-1",children:"$1,000"})," and can go up to"," ",s.jsx("strong",{className:"text-hba-blue-1",children:"$2,000"}),", with limited coverage available for adult orthodontics on some plan designs."]}),s.jsx("p",{children:"Delta provides a Nevada dentist directory s
886o you can confirm your providers before you enroll."}),s.jsxs("p",{children:["Even on higher-cost Delta plan options, ",s.jsx("strong",{className:"text-hba-blue-1",children:"waiting periods may still apply"})," for major services. Some plan options are structured with"," ",s.jsx("strong",{className:"text-hba-blue-1",children:"no waiting periods"})," â compare carefully before you choose."]})]}),s.jsxs("aside",{className:"mt-10 max-w-4xl rounded-2xl border border-hba-blue-1/15 bg-hba-blue-1/5 p-6 md:p-8",children:[s.jsx("p",{className:"font-black uppercase tracking-wide text-hba-blue-1",children:"Already a Delta Dental member?"}),s.jsx("p",{className:"mt-3 text-hba-grey-1 leading-relaxed",children:"If you are already registered with Delta Dental, you can print ID cards after you create a username and password in the member portal."}),s.jsxs("p",{className:"mt-4 text-hba-grey-1 leading-relaxed",children:["For member support, call"," ",s.jsx("a",{href:"tel:8005212651",className:"font-bold text-hba-blue-1 underline underline-offset-2 hover:text-hba-orange-1",children:"Delta Dental PPO Member Services: 800-521-2651"}),"."]})]}),s.jsxs("div",{className:"mt-10 flex flex-col gap-4 sm:flex-row sm:flex-wrap",children:[s.jsxs("a",{href:"https://www.deltadentalins.com",target:"_blank",rel:"noreferrer noopener",className:"inline-flex items-center justify-center gap-2 rounded-xl border border-hba-blue-1/20 bg-white px-6 py-4 font-black uppercase tracking-wider text-hba-blue-1 shadow-sm transition-colors hover:border-hba-orange-1/50",children:["View Delta Dental Dentists in Nevada",s.jsx(Lt,{className:"h-4 w-4"})]}),s.jsxs("a",{href:"https://www.deltadentalins.com",target:"_blank",rel:"noreferrer noopener",className:"inline-flex items-center justify-center gap-2 rounded-xl border border-hba-blue-1/20 bg-hba-blue-1/5 px-6 py-4 font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:["Delta Member Login / ID Cards",s.jsx(Lt,{className:"h-4 w-4"})]}),s.jsxs("a",{href:"https://brokers.dentalforeveryone.com/?Portal=92502-00000",target:"_blank",rel:"noreferrer noopener",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-6 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Get a Delta Quote",s.jsx(Xe,{className:"h-4 w-4"})]})]})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.09] py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(Wb,{title:"Max Out of Pocket vs. Annual Max Benefit",subtitle:"Dental insurance uses different terms than medical insurance â here is the practical difference."}),s.jsxs("div",{className:"mt-10 grid gap-8 md:grid-cols-2",children:[s.jsxs("div",{className:"rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm md:p-8",children:[s.jsx("h3",{className:"text-xl font-black text-hba-blue-1",children:"Annual maximum benefit"}),s.jsxs("p",{className:"mt-4 text-hba-grey-1 leading-relaxed",children:["Most dental plans include a ",s.jsx("strong",{className:"text-hba-blue-1",children:"fixed annual dollar amount"})," the plan will pay toward covered services â commonly in the ",s.jsx("strong",{className:"text-hba-blue-1",children:"$1,000â$2,000"})," range depending on the plan you select."]}),s.jsx("p",{className:"mt-4 text-hba-grey-1 leading-relaxed",children:"Once covered services reach that annual limit, additional dental costs in the same plan year are typically your responsibility."})]}),s.jsxs("div",{className:"rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm md:p-8",children:[s.jsx("h3",{className:"text-xl font-black text-hba-blue-1",children:"Not the same as âmax out of pocketâ"}),s.jsxs("p",{className:"mt-4 text-hba-grey-1 leading-relaxed",children:["On medical insurance, âmax out of pocketâ usually caps what you pay for covered care in a year. Dental insurance is different: it often behaves more like a ",s.jsx("strong",{className:"text-hba-blue-1",children:"defined annual benefit pool"})," for covered dental services."]}),s.jsx("p",{className:"mt-6",children:s.jsxs(ue,{to:"/major-medical-insurance-plans/",className:"inline-flex items-center gap-2 font-black text-hba-orange-1 underline decoration-2 underline-offset-4 hover:text-hba-blue-1",children:["Learn about Individual Medical Insurance",s.jsx(Xe,{className:"h-4 w-4"})]})})]})]})]})}),s.jsx(Txe,{}),s.jsx("section",{className:"border-t border-hba-blue-1/10 bg-white py-20 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(Wb,{title:"Helpful links and resources",subtitle:"Carrier tools open in a new browser tab."}),s.jsx("div",{className:"mt-10",children:s.jsx(Exe,{links:Axe})})]})}),s.jsx(Rxe,{})]}),Dxe=["Vision plans in Nevada are fairly similar from one carrier to the next â benefits are usually easy to compare.","Most plans cover at least one annual eye exam with an in-network optometrist.","Frame and lens benefits may renew every year or every other year, depending on the plan option you choose.","If you visit the optometrist less often and replace lenses less frequently, a leaner plan option may cost less per month."],iG="https://www.individualbrokervision.com/enrollclient?AgtCode=VSP11972",Lxe=[{label:"Vision Quote",href:iG},{label:"Explore the List of Nevada VSP Doctors",href:"https://www.vsp.com"}],Bxe=[{title:"Best Care",copy:"Select from one of 32,000 network doctors.",icon:F0},{title:"Best Value",copy:"Lowest out-of-pocket costs and exclusive member extras.",icon:ls},{title:"Best Choice",copy:"VSP doctors carry one of the largest selections in eyewear.",icon:noe}],Hxe=({className:t=""})=>s.jsx("div",{className:`h-1.5 w-full max-w-[min(100%,26rem)] bg-gradient-to-r from-hba-orange-1 via-[#6d5c62] to-hba-blue-1 md:h-2 md:max-w-[34rem] ${t}`,"aria-hidden":!0}),b3=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:t}),e?s.jsx("p",{className:"mt-4 text-lg leading-relaxed text-hba-grey-1",children:e}):null]}),Fxe=({links:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:t.map(e=>s.jsxs("a",{href:e.href,target:"_blank",rel:"noreferrer noopener",className:"group flex items-center justify-between gap-3 rounded-xl border border-hba-blue-1/10 bg-white p-5 transition-all hover:-translate-y-0.5 hover:border-hba-orange-1/60 hover:shadow-md",children:[s.jsx("span",{className:"font-bold text-hba-blue-1",children:e.label}),s.jsx(Lt,{className:"h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0})]},e.label))}),zxe=()=>s.jsx("div",{className:"rounded-2xl border border-hba-blue-1/15 bg-white p-6 shadow-md md:p-10",children:s.jsxs("div",{className:"grid gap-8 md:grid-cols-2 md:items-start",children:[s.jsxs("div",{children:[s.jsxs("h2",{className:"flex items-center gap-2 text-2xl font-black tracking-tight text-hba-blue-1 md:text-3xl",children:[s.jsx(uc,{className:"h-8 w-8 text-hba-orange-1","aria-hidden":!0}),"How vision insurance works"]}),s.jsx("ul",{className:"mt-6 space-y-4",children:Dxe.map(t=>s.jsxs("li",{className:"flex gap-3 text-hba-grey-1 leading-relaxed",children:[s.jsx("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-hba-orange-1","aria-hidden":!0}),t]},t))})]}),s.jsxs("aside",{className:"rounded-2xl border border-hba-orange-1/25 bg-hba-orange-1/10 p-6",children:[s.jsx("p",{className:"text-sm font-black uppercase tracking-widest text-hba-blue-1",children:"Simple takeaway"}),s.jsx("p",{className:"mt-3 text-hba-blue-1 leading-relaxed",children:"Start with how often you need exams and new glasses or contacts. That frequency usually drives which plan tier is the best fit."})]})]})}),Vxe=()=>s.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:Bxe.map(t=>{const e=t.icon;return s.jsxs("article",{className:"rounded-2xl border-2 border-hba-blue-1/25 bg-white/95 p-6 text-center shadow-sm shadow-hba-blue-1/10 md:p-8",children:[s.jsx("div",{className:"mx-auto flex h-14 w-14 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(e,{className:"h-7 w-7","aria-hidden":!0})}),s.jsx("h3",{className:"mt-5 text-xl font-black tracking-tight text-hba-blue-1",children:t.title}),s.jsx("p",{className:"mt-3 text-hba-grey-1 leading-relaxed",children:t.copy})]},t.title)})}),Uxe=()=>s.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-hba-blue-2 via-hba-blue-1 to-[#1a2830] text-white",children:[s.jsxs("div",{className:"absolute inset-0 opacity-20",children:[s.jsx("div",{className:"absolute -top-20 right-0 h-80 w-80 rounded-full bg-violet-400/40 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 left-0 h-72 w-72 rounded-full bg-hba-orange-1 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4 py-24 md:py-28",children:[s.jsxs("p",{className:"inline-flex items-center gap-2 rounded-full border border-white/25 bg-white/10 px-4 py-1 text-xs font-black uppercase tracking-widest",children:[s.jsx(uc,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),"Nevada vision coverage"]}),s.jsx("h1",{className:"mt-6 max-w-4xl text-4xl font-black !text-white tracking-tight leading-tight md:text-6xl",children:"Vision Insurance"}),s.jsx(Hxe,{className:"mt-5"}),s.jsx("p",{className:"mt-6 max-w-3xl text-lg leading-relaxed text-white/90 md:text-xl",children:"Vision insurance in Nevada is relatively similar across plans and even across insurance companies. At a minimum, most plans should cover at least one annual visit to your optometrist."})]})]}),qxe=()=>s.jsxs("div",{className:"bg-slate-100",children:[s.jsx(Uxe,{}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-gradient-to-b from-white via-slate-50 to-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(b3,{title:"Our Recommendation for Vision Coverage",subt
886itle:"We recommend starting with a carrier that combines a strong Nevada network with benefits that travel when you do."}),s.jsxs("div",{className:"mt-10 max-w-5xl overflow-hidden rounded-[1.75rem] border border-hba-blue-1/15 bg-white shadow-[0_20px_50px_-20px_rgba(40,60,68,0.35)]",children:[s.jsx("div",{className:"h-1.5 w-full bg-gradient-to-r from-hba-orange-1 via-[#6d5c62] to-hba-blue-1 md:h-2","aria-hidden":!0}),s.jsxs("div",{className:"p-8 md:p-10",children:[s.jsx("p",{className:"inline-flex items-center rounded-full border border-hba-orange-1/30 bg-hba-orange-1/10 px-4 py-1 text-xs font-black uppercase tracking-widest text-hba-blue-1",children:"Recommended · VSP"}),s.jsx("h3",{className:"mt-6 text-2xl font-black tracking-tight text-hba-blue-1 md:text-3xl",children:"VSP is our recommendation for vision coverage"}),s.jsx("p",{className:"mt-5 max-w-3xl text-lg leading-relaxed text-hba-grey-1",children:"VSP vision insurance has a large network of providers here in Nevada. VSP also maintains a national doctor list, so your coverage can stay with you when you travel or move outside the state."}),s.jsxs("div",{className:"mt-8 flex flex-col gap-4 sm:flex-row sm:flex-wrap",children:[s.jsxs("a",{href:"https://www.vsp.com",target:"_blank",rel:"noreferrer noopener",className:"inline-flex items-center justify-center gap-2 rounded-xl border border-hba-blue-1/20 bg-hba-blue-1/5 px-6 py-4 font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50 hover:bg-white",children:["Explore the List of Nevada VSP Doctors",s.jsx(Lt,{className:"h-4 w-4","aria-hidden":!0})]}),s.jsxs("a",{href:iG,target:"_blank",rel:"noreferrer noopener",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-6 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Get a Vision Quote",s.jsx(Lt,{className:"h-4 w-4","aria-hidden":!0})]})]})]})]})]})}),s.jsx("section",{className:"bg-slate-100 py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(b3,{title:"Why VSP works well for many members",subtitle:"Three practical reasons we highlight VSP."}),s.jsx("div",{className:"mt-10",children:s.jsx(Vxe,{})})]})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-hba-blue-1/[0.09] py-16 md:py-20",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsx(zxe,{})})}),s.jsx("section",{className:"border-t border-hba-blue-1/10 bg-white py-16 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(b3,{title:"Helpful links and resources",subtitle:"Open in a new tab to continue on the carrier site."}),s.jsx("div",{className:"mt-10",children:s.jsx(Fxe,{links:Lxe})})]})})]}),Wxe=[{embedUrl:"https://www.youtube.com/embed/p-ZyR8KgFGg",caption:"Basics of life insurance and why coverage matters"},{embedUrl:"https://www.youtube.com/embed/Pd2_1aYAOUo",caption:"How term and permanent coverage can fit different goals"},{embedUrl:"https://www.youtube.com/embed/fpWwMNEua4k",caption:"Planning considerations for families and beneficiaries"}],Gb=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:t}),e?s.jsx("p",{className:"mt-4 text-lg leading-relaxed text-hba-grey-1",children:e}):null]}),Gxe=({className:t=""})=>s.jsx("div",{className:`h-1.5 w-full max-w-[min(100%,26rem)] bg-gradient-to-r from-hba-orange-1 via-[#6d5c62] to-hba-blue-1 md:h-2 md:max-w-[34rem] ${t}`,"aria-hidden":!0}),Kxe=()=>s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Life Insurance Quote",s.jsx(Xe,{className:"h-4 w-4 shrink-0","aria-hidden":!0})]}),Yxe=()=>s.jsxs("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-2",children:[s.jsxs("article",{className:"rounded-2xl border-2 border-hba-blue-1/25 bg-white/95 p-6 shadow-md md:p-8",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(is,{className:"h-6 w-6","aria-hidden":!0})}),s.jsx("h3",{className:"text-2xl font-black tracking-tight text-hba-blue-1",children:"Whole Life"})]}),s.jsx("p",{className:"mt-5 text-hba-grey-1 leading-relaxed",children:"Whole Life policies remain in force until the policyholder or guarantor fails to pay the premium or the policy matures when the insured dies. Many Whole Life policies are paired with an investment-style cash value component. The policy may pay a benefit based on the insurance company's investment performance. Many Whole Life policies do not guarantee a specific rate of return or benef
886it amount."})]}),s.jsxs("article",{className:"rounded-2xl border-2 border-hba-blue-1/25 bg-white/95 p-6 shadow-md md:p-8",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(Zk,{className:"h-6 w-6","aria-hidden":!0})}),s.jsx("h3",{className:"text-2xl font-black tracking-tight text-hba-blue-1",children:"Term Life"})]}),s.jsx("p",{className:"mt-5 text-hba-grey-1 leading-relaxed",children:"Term Life policies remain in effect for a fixed period of time, such as 1, 10, 20, or 30 years. They are generally much less expensive than Whole Life policies. Prices are usually lowest for shorter terms and younger individuals, but Term Life can still be a strong option for older individuals looking to protect their family."})]})]}),Xxe=({title:t,videos:e})=>s.jsx("section",{className:"bg-slate-100 py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(Gb,{title:t}),s.jsx("div",{className:"mt-10 grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3",children:e.map(r=>s.jsxs("figure",{className:"overflow-hidden rounded-2xl border border-hba-blue-1/10 bg-white shadow-sm",children:[s.jsx("div",{className:"aspect-video",children:s.jsx("iframe",{className:"h-full w-full",src:r.embedUrl,title:r.caption??"Life insurance video",loading:"lazy",allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})}),r.caption?s.jsx("figcaption",{className:"border-t border-hba-blue-1/10 px-4 py-3 text-center text-sm font-medium text-hba-grey-1",children:r.caption}):null]},r.embedUrl))})]})}),Jxe=()=>s.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-hba-blue-2 via-hba-blue-1 to-[#1a2830] text-white",children:[s.jsxs("div",{className:"absolute inset-0 opacity-20",children:[s.jsx("div",{className:"absolute -top-24 right-0 h-72 w-72 rounded-full bg-hba-orange-1 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 left-0 h-80 w-80 rounded-full bg-emerald-500/30 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4 py-24 md:py-28",children:[s.jsxs("p",{className:"inline-flex items-center gap-2 rounded-full border border-white/25 bg-white/10 px-4 py-1 text-xs font-black uppercase tracking-widest",children:[s.jsx(F0,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),"Nevada life insurance guidance"]}),s.jsx("h1",{className:"mt-6 max-w-4xl text-4xl font-black !text-white tracking-tight leading-tight md:text-6xl",children:"Life Insurance"}),s.jsx(Gxe,{className:"mt-5"}),s.jsx("p",{className:"mt-6 max-w-3xl text-lg leading-relaxed text-white/90 md:text-xl",children:"Life Insurance is customized to you and your family's needs. Just like any other insurance policy, each plan varies in benefits and rates. Our brokers do not charge any fees to assess your needs, goals, and coverage options. We will also shop every insurance company to help find the right plan for you."}),s.jsx("div",{className:"mt-10",children:s.jsx(Kxe,{})})]})]}),Qxe=()=>s.jsxs("div",{className:"bg-slate-100",children:[s.jsx(Jxe,{}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(Gb,{title:"Solutions for Tomorrow",subtitle:"Protection that reflects where you are today â and where you want your family or business to be tomorrow."}),s.jsxs("div",{className:"mt-10 max-w-4xl space-y-5 text-lg leading-relaxed text-hba-grey-1",children:[s.jsx("p",{children:"Life Insurance is more than a policy. It is protection for your family, your future, or your business. There are many different variables when it comes to choosing the right policy."}),s.jsx("p",{children:"We are available year-round to help and can also assess your current insurance plan. If you are buying life insurance for the first time, we will help tailor a plan to fit your needs and goals."})]})]})}),s.jsx(Xxe,{title:"Learn About Life Insurance",videos:Wxe}),s.jsx("section",{className:"bg-hba-blue-1/[0.09] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(Gb,{title:"Policy types at a glance",subtitle:"Two common categories clients compare when exploring coverage."}),s.jsx("div",{className:"mt-12",children:s.jsx(Yxe,{})})]})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(Gb,{title:"Underwriting"}),s.jsx("p",{className:"mt-8 max-w-4xl text-lg leading-relaxed text-hba-grey-1",children:"Unlike current medical insurance policies, life insurance usually requires extensive medical underwriting, which may include a physical. Life insurance can also be denied based on health conditions. If you are concerned about eligibility, the best advice is to apply and complete the physical before ruling out the possibility."})]})})]}),oG="https://www.imglobal.com/",Zxe="https://www.youtube.com/embed/lIBbvyi-fw8",e2e=[{title:"Coverage Abroad",copy:"Travel insurance can help protect you when your regular major medical coverage may not apply outside the country.",icon:cU},{title:"Flexible Options",copy:"IMG offers multiple travel insurance products for different trip types, travel needs, and budgets.",icon:jy},{title:"Simple and Affordable",copy:"Some plans only cost a few dollars per day, making travel coverage easier to fit into your budget.",icon:Sm}],t2e=["Apply for travel insurance at least one week before your trip","Review your plan details before departure","Keep a copy of your ID cards while traveling","Compare options based on destination and travel needs"],r2e=[{label:"Travel Insurance Quote",href:oG,external:!0},{label:"Contact Us",href:"/reno-health-insurance-broker/",external:!1},{label:"Our Team",href:"/our-team/",external:!1}],jp=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:t}),e?s.jsx("p",{className:"mt-4 text-lg leading-relaxed text-hba-grey-1",children:e}):null]}),n2e=({className:t=""})=>s.jsx("div",{className:`h-1.5 w-full max-w-[min(100%,26rem)] bg-gradient-to-r from-hba-orange-1 via-[#6d5c62] to-hba-blue-1 md:h-2 md:max-w-[34rem] ${t}`,"aria-hidden":!0}),a2e=({children:t,className:e=""})=>s.jsxs("a",{href:oG,target:"_blank",rel:"noopener noreferrer",className:`inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2 ${e}`,children:[t,s.jsx(Lt,{className:"h-4 w-4 shrink-0","aria-hidden":!0})]}),s2e=[{title:"Major medical may stop at the border",copy:"Many U.S. major medical plans do not cover care outside the country â or only offer limited emergency benefits.",icon:is},{title:"Peace of mind abroad",copy:"Travel insurance is designed to help you feel more secure when you are far from home and
886your usual providers.",icon:F0},{title:"Coverage that fits your trip",copy:"Options vary by traveler, destination, and length of stay â so you can align protection with how you travel.",icon:uS}],i2e=()=>s.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-hba-blue-2 via-hba-blue-1 to-[#1a2830] text-white",children:[s.jsxs("div",{className:"absolute inset-0 opacity-25",children:[s.jsx("div",{className:"absolute -top-20 right-0 h-72 w-72 rounded-full bg-sky-400/40 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 left-0 h-80 w-80 rounded-full bg-hba-orange-1/25 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4 py-24 md:py-28",children:[s.jsxs("p",{className:"inline-flex items-center gap-2 rounded-full border border-white/25 bg-white/10 px-4 py-1 text-xs font-black uppercase tracking-widest",children:[s.jsx(uS,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),"International travel protection"]}),s.jsx("h1",{className:"mt-6 max-w-4xl text-4xl font-black !text-white tracking-tight leading-tight md:text-6xl",children:"Travel Insurance"}),s.jsx(n2e,{className:"mt-5"}),s.jsxs("p",{className:"mt-6 max-w-3xl text-lg leading-relaxed text-white/90 md:text-xl",children:["Most major medical plans will not cover you while outside the country. With a travel insurance plan, you can have peace of mind while traveling abroad. There are many different coverage options with"," ",s.jsx("span",{className:"font-semibold text-white",children:"IMG Global"}),"."]}),s.jsx("div",{className:"mt-10 flex flex-col gap-4 sm:flex-row sm:flex-wrap",children:s.jsx(a2e,{children:"Travel Insurance Quote"})})]})]}),$M=({items:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:t.map(e=>{const r=e.icon;return s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm shadow-hba-blue-1/5 md:p-8",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(r,{className:"h-6 w-6","aria-hidden":!0})}),s.jsx("h3",{className:"mt-5 text-xl font-black tracking-tight text-hba-blue-1",children:e.title}),s.jsx("p",{className:"mt-3 text-hba-grey-1 leading-relaxed",children:e.copy})]},e.title)})}),o2e=({tips:t})=>s.jsx("ul",{className:"space-y-4",children:t.map(e=>s.jsxs("li",{className:"flex gap-3 rounded-xl border border-hba-blue-1/10 bg-white/80 px-4 py-3 text-hba-blue-1 shadow-sm",children:[s.jsx(er,{className:"mt-0.5 h-5 w-5 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsx("span",{className:"font-medium leading-relaxed",children:e})]},e))}),l2e=({links:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:t.map(e=>e.external?s.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"group flex items-center justify-between gap-3 rounded-xl border border-hba-blue-1/10 bg-white p-5 transition-all hover:-translate-y-0.5 hover:border-hba-orange-1/60 hover:shadow-md",children:[s.jsx("span",{className:"font-bold text-hba-blue-1",children:e.label}),s.jsx(Lt,{className:"h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0})]},e.label):s.jsxs(ue,{to:e.href,className:"group flex items-center justify-between gap-3 rounded-xl border border-hba-blue-1/10 bg-white p-5 transition-all hover:-translate-y-0.5 hover:border-hba-orange-1/60 hover:shadow-md",children:[s.jsx("span",{className:"font-bold text-hba-blue-1",children:e.label}),s.jsx(Xe,{className:"h-4 w-4 shrink-0 text-hba-orange-1 transition-transform group-hover:translate-x-0.5"})]},e.label))}),c2e=()=>s.jsxs("div",{className:"bg-slate-100",children:[s.jsx(i2e,{}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(jp,{title:"Why Travel Insurance Matters",subtitle:"A quick look at what many travelers overlook before they leave the U.S."}),s.jsx("div",{className:"mt-12",children:s.jsx($M,{items:s2e})})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.06] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(jp,{title:"IMG Has Multiple Products for Different Types of Travelers",subtitle:"IMG has multiple products for whichever type of traveler you are."}),s.jsx("div",{className:"mt-8 max-w-4xl",children:s.jsx("div",{className:"aspect-video overflow-hidden rounded-2xl border border-hba-blue-1/10 bg-black shadow-sm",children:s.jsx("iframe",{className:"h-full w-full",src:Zxe,title:"IMG travel insurance overview video",loading:"lazy",allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture;
886 web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})})}),s.jsx("div",{className:"mt-8 max-w-4xl space-y-5 text-lg leading-relaxed text-hba-grey-1",children:s.jsx("p",{children:"Our brokers do not charge any fees. The only price you pay is the cost of the insurance plan you buy. Some travel insurance plans only cost a few dollars per day, making them easy to fit into your travel budget."})}),s.jsx("aside",{className:"mt-10 max-w-4xl rounded-2xl border border-hba-orange-1/30 bg-white p-6 shadow-sm md:p-8","aria-label":"Planning tip",children:s.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start",children:[s.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-hba-orange-1/15 text-hba-orange-1",children:s.jsx(df,{className:"h-6 w-6","aria-hidden":!0})}),s.jsxs("div",{children:[s.jsx("p",{className:"font-black text-hba-blue-1",children:"Plan ahead"}),s.jsx("p",{className:"mt-2 text-hba-grey-1 leading-relaxed",children:"We recommend applying for a plan at least a week before your trip. Once you are approved for coverage, IMG will email you a copy of your ID cards."})]})]})})]})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(jp,{title:"Key Benefits",subtitle:"Straightforward reasons travelers choose a dedicated travel plan with IMG."}),s.jsx("div",{className:"mt-12",children:s.jsx($M,{items:e2e})})]})}),s.jsx("section",{className:"bg-slate-100 py-16 md:py-24",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsxs("div",{className:"grid gap-10 lg:grid-cols-12 lg:items-start",children:[s.jsx("div",{className:"lg:col-span-5",children:s.jsx(jp,{title:"Before You Travel",subtitle:"A short checklist to help you leave prepared."})}),s.jsx("div",{className:"lg:col-span-7",children:s.jsx(o2e,{tips:t2e})})]})})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(jp,{title:"Helpful links",subtitle:"Get a quote through IMG or connect with our team."}),s.jsx("div",{className:"mt-10",children:s.jsx(l2e,{links:r2e})})]})})]}),bC="https://www.uhone.com/",u2e=[{icon:uf,text:"Changing jobs when a new employer has a waiting period before you can enroll in their plan, or when the employer does not offer health coverage."},{icon:dS,text:"Coverage during a waiting period before your qualified major medical plan begins."},{icon:Zk,text:"Needing coverage outside of Open Enrollment when you do not have a Qualifying Life Event that would let you enroll in an ACA plan."},{icon:Ki,text:"Waiting for Medicare to begin."},{icon:ioe,text:"Recent college graduates or people coming off a parentâs plan."},{icon:sn,text:"The ACA allows children to stay on a parentâs plan until age 26."},{icon:Cce,text:"Losing coverage after a divorce."}],d2e=["Short term plans are not âqualifiedâ under the Affordable Care Act (ACA).","Not being enrolled in a qualified ACA plan for the entire year may result in tax penalties, depending on your situation.","Coverage is often very specific; some accidents or illnesses may not be covered. Read the policy guidelines carefully.","These plans ask health questions and may change premiums based on medical history.","They usually exclude preexisting conditions. You may face a higher premium or be denied coverage.","Qualified ACA plans charge the same premiums regardless of health status and do not exclude preexisting conditions."],Dg={title:"An Important Note",body:"Federal legislation has aimed to allow short term plans to extend to 12 months in some cases. However, Nevada state law only allows short term plans for a maximum of six months per year. State law takes precedence, so Nevada will not recognize 12-month short term plans unless state regulations change.",blogLinkLabel:"Read more on our blog",blogHref:"/blog-news/"},h2e=[{label:"Get a Short Term Quote",href:bC,external:!0},{label:"Contact Us",href:"/reno-health-insurance-broker/",external:!1}
886,{label:"Open Enrollment",href:"/nevada-individual-open-enrollment-2/",external:!1},{label:"Individual Insurance",href:"/major-medical-insurance-plans/",external:!1}],x3=({title:t,subtitle:e})=>s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:t}),e?s.jsx("p",{className:"mt-4 text-lg leading-relaxed text-hba-grey-1",children:e}):null]}),f2e=({className:t=""})=>s.jsx("div",{className:`h-1.5 w-full max-w-[min(100%,26rem)] bg-gradient-to-r from-hba-orange-1 via-[#6d5c62] to-hba-blue-1 md:h-2 md:max-w-[34rem] ${t}`,"aria-hidden":!0}),p2e=({children:t,className:e=""})=>s.jsxs("a",{href:bC,target:"_blank",rel:"noopener noreferrer",className:`inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2 ${e}`,children:[t,s.jsx(Lt,{className:"h-4 w-4 shrink-0","aria-hidden":!0})]}),m2e=()=>s.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-hba-blue-2 via-hba-blue-1 to-[#1a2830] text-white",children:[s.jsxs("div",{className:"absolute inset-0 opacity-20",children:[s.jsx("div",{className:"absolute -top-24 right-0 h-72 w-72 rounded-full bg-amber-400/30 blur-3xl"}),s.jsx("div",{className:"absolute bottom-0 left-0 h-80 w-80 rounded-full bg-hba-orange-1/20 blur-3xl"})]}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-4 py-24 md:py-28",children:[s.jsxs("p",{className:"inline-flex items-center gap-2 rounded-full border border-white/25 bg-white/10 px-4 py-1 text-xs font-black uppercase tracking-widest",children:[s.jsx(dS,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),"Temporary gap coverage"]}),s.jsx("h1",{className:"mt-6 max-w-4xl text-4xl font-black !text-white tracking-tight leading-tight md:text-6xl",children:"Short Term Insurance"}),s.jsx(f2e,{className:"mt-5"}),s.jsx("p",{className:"mt-6 max-w-3xl text-lg leading-relaxed text-white/90 md:text-xl",children:"If you do not have coverage for a short time during the year, a short term plan may be an option to fill those gaps. While these policies are not qualified ACA plans, a short term plan could provide coverage if something were to happen during that period."}),s.jsx("p",{className:"mt-6 max-w-3xl text-base leading-relaxed text-white/85 md:text-lg",children:'The term "not qualified" means these policies do not follow ACA guidelines. They are not a substitute for having compliant major medical coverage for the full year. Because these plans do not have to cover the 10 Essential Health Benefits required by the ACA, premiums are often lower â with tradeoffs in what is covered.'}),s.jsx("div",{className:"mt-10 flex flex-col gap-4 sm:flex-row sm:flex-wrap",children:s.jsx(p2e,{children:"Get a Short Term Quote"})})]})]}),g2e=[{title:"Built for short gaps",copy:"Short term medical plans are designed to help cover temporary periods when you might otherwise be uninsured â not to replace year-round qualified coverage.",icon:dS},{title:"Not ACA-qualified",copy:"These plans are not major medical insurance under the ACA. They do not guarantee the same benefits or consumer protections as a qualified plan.",icon:Sy},{title:"Lower cost, narrower scope",copy:"Lower premiums often reflect less comprehensive coverage. It is important to compare what is â and is not â included before you enroll.",icon:mi}],b2e=({items:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:t.map(e=>{const r=e.icon;return s.jsxs("article",{className:"rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm shadow-hba-blue-1/5 md:p-8",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(r,{className:"h-6 w-6","aria-hidden":!0})}),s.jsx("h3",{className:"mt-5 text-xl font-black tracking-tight text-hba-blue-1",children:e.title}),s.jsx("p",{className:"mt-3 text-hba-grey-1 leading-relaxed",children:e.copy})]},e.title)})}),x2e=({reasons:t})=>s.jsx("ul",{className:"grid grid-cols-1 gap-4 md:gap-5",children:t.map((e,r)=>{const n=e.icon;
886return s.jsxs("li",{className:"flex gap-4 rounded-2xl border border-hba-blue-1/10 bg-white p-5 shadow-sm md:gap-5 md:p-6",children:[s.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-hba-blue-1/10 text-hba-orange-1",children:s.jsx(n,{className:"h-5 w-5","aria-hidden":!0})}),s.jsx("p",{className:"text-hba-blue-1 leading-relaxed",children:e.text})]},r)})}),y2e=({items:t})=>s.jsx("ul",{className:"space-y-4",role:"list",children:t.map(e=>s.jsxs("li",{className:"flex gap-3 rounded-2xl border border-amber-800/20 bg-amber-50/90 p-5 text-amber-950 shadow-sm md:p-6",children:[s.jsx(Go,{className:"mt-0.5 h-5 w-5 shrink-0 text-amber-700","aria-hidden":!0}),s.jsx("span",{className:"leading-relaxed",children:e})]},e))}),v2e=({title:t,children:e,variant:r="neutral"})=>s.jsx("aside",{className:`rounded-2xl border p-6 shadow-sm md:p-8 ${r==="info"?"border-hba-blue-1/20 bg-hba-blue-1/[0.06]":"border-hba-blue-1/10 bg-white"}`,children:s.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start",children:[s.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-hba-orange-1/15 text-hba-orange-1",children:s.jsx(Wie,{className:"h-6 w-6","aria-hidden":!0})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-black text-hba-blue-1",children:t}),s.jsx("div",{className:"mt-3 text-hba-grey-1 leading-relaxed [&_a]:font-semibold [&_a]:text-hba-blue-1 [&_a]:underline [&_a]:underline-offset-2 [&_a]:hover:text-hba-orange-1",children:e})]})]})}),w2e=({links:t})=>s.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-2",children:t.map(e=>e.external?s.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"group flex items-center justify-between gap-3 rounded-xl border border-hba-blue-1/10 bg-white p-5 transition-all hover:-translate-y-0.5 hover:border-hba-orange-1/60 hover:shadow-md",children:[s.jsx("span",{className:"font-bold text-hba-blue-1",children:e.label}),s.jsx(Lt,{className:"h-4 w-4 shrink-0 text-hba-orange-1","aria-hidden":!0})]},e.label):s.jsxs(ue,{to:e.href,className:"group flex items-center justify-between gap-3 rounded-xl border border-hba-blue-1/10 bg-white p-5 transition-all hover:-translate-y-0.5 hover:border-hba-orange-1/60 hover:shadow-md",children:[s.jsx("span",{className:"font-bold text-hba-blue-1",children:e.label}),s.jsx(Xe,{className:"h-4 w-4 shrink-0 text-hba-orange-1 transition-transform group-hover:translate-x-0.5"})]},e.label))}),N2e=()=>s.jsx("section",{className:"relative border-t-4 border-hba-orange-1 bg-gradient-to-b from-white via-slate-50 to-slate-100 py-20 shadow-[0_-12px_40px_-20px_rgba(40,60,68,0.12)]",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4 text-center",children:[s.jsx("h2",{className:"mx-auto max-w-3xl text-3xl font-black tracking-tight text-hba-blue-1 md:text-4xl",children:"Need Temporary Coverage While Between Plans?"}),s.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-lg text-hba-grey-1",children:"Short term health insurance may help fill temporary gaps, but it is important to understand the limitations before enrolling."}),s.jsxs("div",{className:"mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row",children:[s.jsxs("a",{href:bC,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-4 font-black uppercase tracking-wider text-white transition-colors hover:bg-hba-orange-2",children:["Get a Short Term Quote",s.jsx(Lt,{className:"h-4 w-4","aria-hidden":!0})]}),s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center gap-2 rounded-xl border-2 border-hba-blue-1/25 bg-white px-7 py-4 font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50",children:["Contact Us",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})]})]})}),j2e=()=>s.jsxs("div",{className:"bg-slate-100",children:[s.jsx(m2e,{}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(x3,{title:"How short term coverage works",subtitle:"A quick overview before you compare options."}),s.jsx("div",{className:"mt-12",children:s.jsx(b2e,{items:g2e})})]})}),s.jsx("section",{className:"bg-hba-blue-1/[0.06] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(x3,{title:"Typical Reasons for Enrolling in a Short Term Plan Include:"}),s.jsx("div",{className:"mt-10 max-w-4xl",children:s.jsx(x2e,{reasons:u2e})}
886),s.jsxs("div",{className:"mt-10 flex flex-col gap-4 rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm md:flex-row md:items-center md:justify-between md:p-8",children:[s.jsxs("p",{className:"flex items-start gap-3 text-hba-blue-1 leading-relaxed md:max-w-xl",children:[s.jsx(Ut,{className:"mt-0.5 h-5 w-5 shrink-0 text-hba-orange-1","aria-hidden":!0}),s.jsxs("span",{children:["If you would like more information on short term insurance plans, call us at"," ",s.jsx("a",{href:"tel:+17758281216",className:"font-black text-hba-blue-1 hover:text-hba-orange-1",children:"(775) 828-1216"}),"."]})]}),s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center justify-center gap-2 self-start rounded-xl border-2 border-hba-blue-1/20 bg-white px-6 py-3 font-black uppercase tracking-wider text-hba-blue-1 transition-colors hover:border-hba-orange-1/50 md:self-auto",children:["Contact Us",s.jsx(Xe,{className:"h-4 w-4","aria-hidden":!0})]})]})]})}),s.jsx("section",{className:"border-y border-amber-900/15 bg-gradient-to-b from-amber-50/80 to-amber-100/40 py-16 md:py-24","aria-labelledby":"drawbacks-heading",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsxs("div",{className:"flex max-w-3xl flex-col gap-3 md:flex-row md:items-center md:gap-4",children:[s.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-amber-200/80 text-amber-900",children:s.jsx(Go,{className:"h-6 w-6","aria-hidden":!0})}),s.jsxs("div",{children:[s.jsx("h2",{id:"drawbacks-heading",className:"text-3xl font-black tracking-tight text-amber-950 md:text-4xl",children:"Drawbacks of Having Short Term Insurance"}),s.jsx("p",{className:"mt-2 text-amber-950/80",children:"Short term coverage can help in limited situations â but it is not the same as a full-year qualified plan."})]})]}),s.jsx("div",{className:"mt-10 max-w-4xl",children:s.jsx(y2e,{items:d2e})})]})}),s.jsx("section",{className:"bg-white py-16 md:py-24",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsx(v2e,{title:"What to know before you enroll",variant:"info",children:s.jsx("p",{children:"If you enroll in a short term plan, review the benefits, exclusions, and limitations carefully. Our office can explain where and how to obtain these plans. We generally do not administer enrollment for short term plans because of the detailed health and eligibility information they require â but we are glad to help you understand your options."})})})}),s.jsx("section",{className:"border-y border-hba-blue-1/10 bg-slate-100 py-16 md:py-24",children:s.jsx("div",{className:"mx-auto max-w-7xl px-4",children:s.jsxs("div",{className:"max-w-4xl rounded-2xl border-2 border-hba-blue-1/20 bg-white p-6 shadow-md md:p-10",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(wU,{className:"h-8 w-8 shrink-0 text-hba-blue-1","aria-hidden":!0}),s.jsx("h2",{className:"text-2xl font-black tracking-tight text-hba-blue-1 md:text-3xl",children:Dg.title})]}),s.jsx("p",{className:"mt-6 text-lg leading-relaxed text-hba-grey-1",children:Dg.body}),s.jsx("p",{className:"mt-6",children:s.jsxs(ue,{to:Dg.blogHref,className:"inline-flex items-center gap-2 font-black text-hba-orange-1 transition-colors hover:text-hba-orange-2",children:[s.jsx(Yse,{className:"h-4 w-4","aria-hidden":!0}),Dg.blogLinkLabel,s.jsx(Xe,{className:"h-4 w-4"})]})})]})})}),s.jsx("section",{className:"border-t border-hba-blue-1/10 bg-white py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx(x3,{title:"Helpful links",subtitle:"Get a quote or explore related topics on our site."}),s.jsx("div",{className:"mt-10",children:s.jsx(w2e,{links:h2e})})]})}),s.jsx(N2e,{})]}),Lg=3,k2e=["$0","$10k-$50k","$50k-$100k","$100k-$300k","$300k+"];function S2e(t){const e=(t??"").trim();return e?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?"":"Please enter a valid email address.":"Email is required."}function C2e(t){const e=(t??"").replace(/\D/g,"");return e.length===0?"Phone number is required.":e.length<10?"Please enter a valid 10-digit phone number.":""}function _M(t){const e=(t??"").replace(/\D/g,"").slice(0,10);return e.length<=3?e:e.length<=6?`${e.slice(0,3)}-${e.slice(3)}`:`${e.slice(0,3)}-${e.slice(3,6)}-${e.slice(6)}`}function AM(t,e){const r=(t??"").trim();return r?r.length<2?`${e} must be at least 2 characters.`:/^[a-zA-Z\s\-'.]+$/.test(r)?"":`${e}
886 can only contain letters, spaces, hyphens, and apostrophes.`:`${e} is required.`}function mN(t){if(!t)return null;const[e,r,n]=t.split("-").map(i=>Number(i));if(!e||!r||!n)return null;const a=new Date(e,r-1,n);return Number.isNaN(a.getTime())?null:a}function Bg(t){const e=mN(t);return e?new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric"}).format(e):t}function $2e(t=new Date){const e=t.getFullYear(),r=t.getMonth(),a=t.getDate()<=15?1:2,i=new Date(e,r+a,1),o=[];for(let l=0;l<3;l++){const c=new Date(i.getFullYear(),i.getMonth()+l,1),u=[c.getFullYear(),String(c.getMonth()+1).padStart(2,"0"),String(c.getDate()).padStart(2,"0")].join("-");o.push(u)}return o}function y3(t,e){const r=mN(t),n=mN(e);if(!r||!n)return null;let a=n.getFullYear()-r.getFullYear();const i=n.getMonth(),o=n.getDate(),l=r.getMonth(),c=r.getDate();return(i<l||i===l&&o<c)&&(a-=1),a<0||!Number.isFinite(a)?null:a}function _2e(t){if(!t)return null;const e=String(t).trim();if(!e||e.toLowerCase().includes("not covered"))return null;const r=e.replace(/\$/g,"").replace(/,/g,"").trim(),n=Number(r);return Number.isFinite(n)?n:null}const EM=[{id:"LE_2500",label:"$2,500 and less",test:t=>t<=2500},{id:"LE_5000",label:"$5,000 and less",test:t=>t<=5e3},{id:"LE_7500",label:"$7,500 and less",test:t=>t<=7500},{id:"LE_10000",label:"$10,000 and less",test:t=>t<=1e4},{id:"LE_12000",label:"$12,000 and less",test:t=>t<=12e3},{id:"GT_12000",label:"More than $12,000",test:t=>t>12e3}];function A2e(t){const e=(t??"").toString().trim();return e?e.startsWith("//")?`https:${e}`:e.startsWith("/")?`${window.location.origin}${e}`:e:""}function OM(t){const e=[t["Carrier Logos"],t["Carrier Logo"],t["carrier logos"],t["carrier logo"],t.carrierLogos,t.carrierLogo,t.carrier_logos,t.carrier_logo,t.hba_carrier_logos,t.hba_carrier_logo,t.hba_carrier_logo_url,t.hba_carrier_logo_link,t.logo,t.logo_url];for(const r of e){const n=A2e(r);if(n)return n}return""}function E2e(t){const e=(t??"").toUpperCase().trim(),r="text-[11px] font-black uppercase tracking-widest px-3 py-1 rounded-full ";return e.includes("PLATINUM")?r+"bg-slate-200 text-slate-800 border border-slate-300":e.includes("GOLD")?r+"bg-amber-100 text-amber-900 border border-amber-300":e.includes("SILVER")?r+"bg-gray-200 text-gray-800 border border-gray-400":e.includes("BRONZE")?r+"bg-amber-700/20 text-amber-900 border border-amber-600/50":e.includes("CATASTROPHIC")?r+"bg-red-100 text-red-900 border border-red-300":r+"bg-gray-100 text-gray-800 border border-gray-200"}const O2e=()=>{var mt,Jt;const[t,e]=w.useState(""),[r,n]=w.useState(""),[a,i]=w.useState(""),o=w.useMemo(()=>$2e(new Date),[]),[l,c]=w.useState(o[0]??""),[u,d]=w.useState(""),[h,m]=w.useState(""),[g,b]=w.useState(""),[y,v]=w.useState(""),[N,S]=w.useState(!1),[j,$]=w.useState({firstName:"",lastName:"",dob:"",gender:""}),[C,_]=w.useState([]),[O,E]=w.useState(!1),[P,T]=w.useState(""),[I,R]=w.useState({}),[F,L]=w.useState([]),[q,G]=w.useState(!1),[B,H]=w.useState(!1),[K,Z]=w.useState(()=>new Set),[V,U]=w.useState(null),Y=w.useRef(null),de=t.length===5,ge=w.useMemo(()=>y3(j.dob,l),[j.dob,l]),fe=w.useMemo(()=>C.map(ce=>({...ce,age:y3(ce.dob,l)})),[C,l]),Oe=w.useMemo(()=>t.length===0?"":t.length<5?"Enter a 5-digit zip code.":de&&!B&&!r?"Zip code not found in our mapping yet.":"",[t,de,r,B]),Ce=w.useMemo(()=>S2e(u),[u]),le=w.useMemo(()=>C2e(h),[h]),we=w.useMemo(()=>AM(j.firstName,"First name"),[j.firstName]),ke=w.useMemo(()=>AM(j.lastName,"Last name"),[j.lastName]),oe=I.email??!1,qe=I.phone??!1,Le=I.firstName??!1,Ke=I.lastName??!1,ne=I.smsConsent??!1,Se=de&&!!r&&!!a&&!!l&&!Ce&&!le&&!we&&!ke&&!!j.dob&&!!j.gender&&ge!==null&&N,$e=K.size,Ae=$e>=2,Ve=()=>JSON.stringify({zip:t,ratingArea:a,effectiveDate:l,email:u.trim(),phone:h.trim(),incomeRange:g,primaryCareDoctor:y.trim(),smsConsent:N,primaryDob:j.dob,primaryGender:j.gender,deps:C.map(ce=>`${ce.dob}:${ce.gender}`).join("|")}),[ae,W]=w.useState(()=>new Set),[ee,Q]=w.useState(()=>new Set),[xe,ye]=w.useState(()=>new Set),[X,ve]=w.useState(()=>new Set),He=()=>{W(new Set),Q(new Set),ye(new Set),ve(new Set)},Ie=w.useMemo(()=>{const ce=new Set,We=new Set,xt=new Set;for(const ht of F)ht.hba_carrier&&ce.add(String(ht.hba_carrier).trim()),ht.metal&&We.add(String(ht.metal).trim()),ht.hba_type_of_plan&&xt.add(String(ht.hba_type_of_plan).trim());return{carriers:Array.from(ce).sort(),metals:Array.from(We).sort(),types:Array.from(xt).sort()}},[F]),dt=w.useMemo(()=>{const ce=ae.size>0,We=ee.size>
8860,xt=xe.size>0,ht=X.size>0;return!ce&&!We&&!xt&&!ht?F:F.filter(Yt=>{const _n=!ce||ae.has(String(Yt.hba_carrier??"").trim()),_r=!We||ee.has(String(Yt.metal??"").trim()),qr=!xt||xe.has(String(Yt.hba_type_of_plan??"").trim());let An=!0;if(ht){const Xr=_2e(Yt.hba_in_network_deductible);Xr===null?An=!1:An=Array.from(X).some(fs=>{const _a=EM.find(oo=>oo.id===fs);return _a?_a.test(Xr):!1})}return _n&&_r&&qr&&An})},[F,ae,ee,xe,X]);w.useEffect(()=>{F.length>0&&console.log("FIRST PLAN:",F[0])},[F]);const Ue=w.useMemo(()=>V?F.find(ce=>ce.planId===V)??null:null,[V,F]);w.useEffect(()=>{if(!V)return;const ce=We=>{We.key==="Escape"&&U(null)};return window.addEventListener("keydown",ce),()=>window.removeEventListener("keydown",ce)},[V]),w.useEffect(()=>{if(!de){n(""),i("");return}let ce=!1;return H(!0),fetch(ut(`/api/ifp/zip-lookup?zip=${encodeURIComponent(t)}`)).then(We=>We.json()).then(We=>{ce||(We.county&&We.ratingArea?(n(We.county),i(We.ratingArea)):(n(""),i("")))}).catch(()=>{ce||(n(""),i(""))}).finally(()=>{ce||H(!1)}),()=>{ce=!0}},[t,de]),w.useEffect(()=>{if(!O)return;const ce=Ve();P&&ce!==P&&(L([]),Z(new Set),He(),U(null))},[t,a,l,u,h,g,y,N,j.dob,j.gender,C,O]);const ie=ce=>{const We=ce.replace(/\D/g,"").slice(0,5);e(We)},it=ce=>{m(_M(ce))},jr=()=>{_(ce=>[...ce,{firstName:"",lastName:"",dob:"",gender:""}])},ir=ce=>{_(We=>We.filter((xt,ht)=>
886ht!==ce))},Vr=(ce,We)=>{_(xt=>xt.map((ht,Yt)=>Yt===ce?{...ht,...We}:ht))},Ot=(ce,We)=>{Z(xt=>{const ht=new Set(xt);if(We){if(ht.size>=Lg)return te.error(`You can only compare ${Lg} plans.`),xt;ht.add(ce)}else ht.delete(ce);return ht})},Kn=()=>{const ce=F.filter(xt=>K.has(xt.planId));if(ce.length<2){te.error("Select at least 2 plans to compare.");return}localStorage.setItem("ifp_compare_plans",JSON.stringify(ce));const We=`${window.location.origin}/insurance-plan/compare-plans`;window.open(We,"comparePlans","width=1200,height=900,scrollbars=yes,resizable=yes")},$a=async ce=>{if(ce.preventDefault(),E(!0),!Se){Ce?te.error(Ce):le?te.error(le):we?te.error(we):ke?te.error(ke):!j.dob||ge===null?te.error("Please enter a valid Date of Birth."):j.gender?N?te.error("Please fill in all required fields."):te.error("Please agree to receive text updates before viewing available plans."):te.error("Please select the primary applicant's gender.");return}const We=[{name:`${j.firstName} ${j.lastName}`.trim(),dob:j.dob}];for(const xt of fe){if(!xt.dob){te.error("Dependent Date of Birth is required.");return}if(xt.age===null){te.error("Invalid dependent Date of Birth.");return}if(!xt.gender){te.error("Dependent Gender is required.");return}We.push({name:`${xt.firstName??""} ${xt.lastName??""}`.trim()||"Dependent",dob:xt.dob})}fetch(ut("/api/ifp/submit-quote-lead"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fullName:`${j.firstName} ${j.lastName}`.trim(),phone:_M(h),email:u,zipCode:t,county:r,ratingArea:a,effectiveDate:l,source:"Internet",incomeRange:g,primaryCareDoctor:y,smsConsent:N,primaryApplicant:{firstName:j.firstName,lastName:j.lastName,relationship:"Self",gender:j.gender,dob:j.dob},dependents:C.map(xt=>({firstName:xt.firstName,lastName:xt.lastName,relationship:"Dependent",gender:xt.gender,dob:xt.dob}))})}).catch(xt=>{console.error("Failed to submit IFP quote lead:",xt)}),G(!0);try{const xt=await fetch(ut("/api/ifp/quote"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({zip:t,effectiveDate:l,members:We})}),ht=await xt.json().catch(()=>({}));if(!xt.ok){te.error(ht.message||"Failed to get quotes"),sm("form_error",{form_name:"ifp_quote",error_type:"submission_failed"}),L([]);return}sm("ifp_quote_submit",{form_name:"ifp_quote",lead_type:"ifp"});const Yt=ht.plans??[];T(Ve()),L(Yt),Z(new Set),He(),U(null),requestAnimationFrame(()=>{var _n;(_n=Y.current)==null||_n.scrollIntoView({behavior:"smooth",block:"start"})})}catch{te.error("Failed to get quotes"),sm("form_error",{form_name:"ifp_quote",error_type:"submission_failed"}),L([])}finally{G(!1)}},hs=1+C.filter(ce=>!!ce.dob).length,Yr=(ce,We)=>{const xt=new Set(ce);return xt.has(We)?xt.delete(We):xt.add(We),xt},Ur=ae.size>0||ee.size>0||xe.size>0||X.size>0;return s.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-14",children:[s.jsxs("div",{className:"mb-10 text-center",children:[s.jsx("h1",{className:"text-4xl font-bold text-hba-blue mb-3",children:"Individual & Family Plan Quote"}),s.jsx("p",{className:"text-gray-600 text-lg",children:"Enter a few details below to see available health plans in your area."})]}),s.jsxs("form",{onSubmit:$a,className:"bg-white border border-gray-200 rounded-2xl p-8 shadow-sm",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:["Zip Code ",s.jsx("span",{className:"text-red-600",children:"*"})]}),s.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"postal-code",value:t,onChange:ce=>ie(ce.target.value),required:!0,className:"w-full border border-gray-300 rounded-md px-4 py-2 focus:ring-2 focus:ring-hba-orange focus:outline-none",placeholder:"e.g. 89509"}),s.jsx("div",{className:"mt-2 min-h-[1.25rem] text-sm text-red-600",children:Oe})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:["County ",s.jsx("span",{className:"text-red-600",children:"*"})]}),s.jsx("input",{type:"text",value:B?"Looking upâ¦":r,disabled:!0,className:"w-full bg-gray-100 border border-gray-300 rounded-md px-4 py-2 text-gray-600",placeholder:"Auto-filled from zip"})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:["Effective Date ",s.jsx("span",{className:"text-red-600",children:"*"})]}
886),s.jsx("select",{value:l,onChange:ce=>c(ce.target.value),required:!0,className:"w-full border border-gray-300 rounded-md px-4 py-2 bg-white focus:ring-2 focus:ring-hba-orange focus:outline-none",children:o.map(ce=>s.jsx("option",{value:ce,children:Bg(ce)},ce))}),s.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"Ages are calculated based on the selected effective date."})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:"Household Income Range"}),s.jsxs("select",{value:g,onChange:ce=>b(ce.target.value),className:"w-full border border-gray-300 rounded-md px-4 py-2 bg-white",children:[s.jsx("option",{value:"",children:"Select..."}),k2e.map(ce=>s.jsx("option",{value:ce,children:ce},ce))]})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:["Email ",s.jsx("span",{className:"text-red-600",children:"*"})]}),s.jsx("input",{type:"email",value:u,onChange:ce=>d(ce.target.value),onBlur:()=>R(ce=>({...ce,email:!0})),className:`w-full border rounded-md px-4 py-2 focus:ring-2 focus:ring-hba-orange focus:outline-none ${oe&&Ce?"border-red-500":"border-gray-300"}`,placeholder:"[email protected]"}),s.jsx("div",{className:"mt-1 min-h-[1.25rem] text-sm text-red-600",children:oe&&Ce})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:["Phone ",s.jsx("span",{className:"text-red-600",children:"*"})]}),s.jsx("input",{type:"tel",value:h,onChange:ce=>it(ce.target.value),onBlur:()=>R(ce=>({...ce,phone:!0})),className:`w-full border rounded-md px-4 py-2 focus:ring-2 focus:ring-hba-orange focus:outline-none ${qe&&le?"border-red-500":"border-gray-300"}`,placeholder:"775-000-0000"}),s.jsx("div",{className:"mt-1 min-h-[1.25rem] text-sm text-red-600",children:qe&&le})]}),s.jsxs("div",{className:"md:col-span-2",children:[s.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:"Name of Primary Care Doctor"}),s.jsx("input",{type:"text",value:y,onChange:ce=>v(ce.target.value),className:"w-full border border-gray-300 rounded-md px-4 py-2",placeholder:"Dr. Smith"})]})]}),s.jsxs("div",{className:"mt-8 pt-6 border-t space-y-4",children:[s.jsx("h3",{className:"text-lg font-bold text-hba-blue",children:"Primary Applicant"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:["First Name ",s.jsx("span",{className:"text-red-600",children:"*"})]}),s.jsx("input",{type:"text",value:j.firstName,onChange:ce=>$(We=>({...We,firstName:ce.target.value})),onBlur:()=>R(ce=>({...ce,firstName:!0})),className:`w-full border rounded-md px-4 py-2 focus:ring-2 focus:ring-hba-orange focus:outline-none ${Le&&we?"border-red-500":"border-gray-300"}`,placeholder:"Wayne"}),s.jsx("div",{className:"mt-1 min-h-[1.25rem] text-sm text-red-600",children:Le&&we})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:["Last Name ",s.jsx("span",{className:"text-red-600",children:"*"})]}),s.jsx("input",{type:"text",value:j.lastName,onChange:ce=>$(We=>({...We,lastName:ce.target.value})),onBlur:()=>R(ce=>({...ce,lastName:!0})),className:`w-full border rounded-md px-4 py-2 focus:ring-2 focus:ring-hba-orange focus:outline-none ${Ke&&ke?"border-red-500":"border-gray-300"}`,placeholder:"Rooney"}),s.jsx("div",{className:"mt-1 min-h-[1.25rem] text-sm text-red-600",children:Ke&&ke})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 items-end",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:["Date of Birth ",s.jsx("span",{className:"text-red-600",children:"*"})]}),s.jsx("input",{type:"date",value:j.dob,onChange:ce=>$(We=>({...We,dob:ce.target.value})),required:!0,className:"w-full border border-gray-300 rounded-md px-4 py-2 focus:ring-2 focus:ring-hba-orange focus:outline-none"})]}),s.jsxs("div",{className:"text-sm text-gray-600",children:[s.jsxs("div",{children:["Age on ",s.jsx("span",{className:"font-semibold",children:Bg(l)}),":"," ",s.jsx("span",{className:"font-semibold",children:ge??"-"})]}),s.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:["Rating Area: ",s.jsx("span",{className:"font-semibold",children:a||"-"})]})]})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:["Gender ",s.jsx("span",{className:"text-red-600",children:"*"})]}
886),s.jsxs("select",{value:j.gender,onChange:ce=>$(We=>({...We,gender:ce.target.value})),className:"w-full border border-gray-300 rounded-md px-4 py-2 bg-white focus:ring-2 focus:ring-hba-orange focus:outline-none",children:[s.jsx("option",{value:"",children:"Select..."}),s.jsx("option",{value:"Female",children:"Female"}),s.jsx("option",{value:"Male",children:"Male"})]})]})})]}),s.jsxs("div",{className:"mt-8 pt-6 border-t space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h3",{className:"text-lg font-bold text-hba-blue",children:"Dependents"}),s.jsx("button",{type:"button",onClick:jr,className:"px-4 py-2 rounded-md border border-gray-300 text-sm font-semibold hover:bg-gray-50",children:"+ Add Dependent"})]}),C.length===0?s.jsx("p",{className:"text-sm text-gray-500",children:"Add dependents if anyone else will be on this plan."}):s.jsx("div",{className:"space-y-4",children:C.map((ce,We)=>{const xt=y3(ce.dob,l);return s.jsxs("div",{className:"rounded-lg border border-gray-200 p-4 bg-white",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"font-semibold text-gray-800",children:["Dependent ",We+1]}),s.jsx("button",{type:"button",onClick:()=>ir(We),className:"text-sm font-semibold text-red-600 hover:underline",children:"Remove"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:"First Name"}),s.jsx("input",{type:"text",value:ce.firstName,onChange:ht=>Vr(We,{firstName:ht.target.value}),className:"w-full border border-gray-300 rounded-md px-3 py-2"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:"Last Name"}),s.jsx("input",{type:"text",value:ce.lastName,onChange:ht=>Vr(We,{lastName:ht.target.value}),className:"w-full border border-gray-300 rounded-md px-3 py-2"})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:["Date of Birth ",s.jsx("span",{className:"text-red-600",children:"*"})]}),s.jsx("input",{type:"date",required:!0,value:ce.dob,onChange:ht=>Vr(We,{dob:ht.target.value}),className:"w-full border border-gray-300 rounded-md px-3 py-2 focus:ring-2 focus:ring-hba-orange focus:outline-none"}),xt!==null&&s.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Age on ",Bg(l),":"," ",s.jsx("span",{className:"font-semibold",children:xt})]})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm font-semibold text-gray-700 mb-1",children:["Gender ",s.jsx("span",{className:"text-red-600",children:"*"})]}),s.jsxs("select",{required:!0,value:ce.gender,onChange:ht=>Vr(We,{gender:ht.target.value}),className:"w-full border border-gray-300 rounded-md px-3 py-2 bg-white focus:ring-2 focus:ring-hba-orange focus:outline-none",children:[s.jsx("option",{value:"",children:"Select..."}),s.jsx("option",{value:"Female",children:"Female"}),s.jsx("option",{value:"Male",children:"Male"})]})]})]})]},`dep-${We}`)})})]}),s.jsxs("label",{className:"mt-8 flex gap-3 rounded-xl border border-gray-200 bg-gray-50 p-4 text-sm leading-relaxed text-gray-700",children:[s.jsx("input",{type:"checkbox",checked:N,required:!0,onChange:ce=>S(ce.target.checked),onBlur:()=>R(ce=>({...ce,smsConsent:!0})),className:"mt-1 h-4 w-4 shrink-0 rounded border-gray-300 text-hba-blue-1 focus:ring-hba-orange"}),s.jsxs("span",{children:["Yes, I would like to receive text updates, reminders, and support from Health Benefits Associates."," ","Msg & data rates may apply. Frequency varies. Reply STOP to opt out. View our"," ",s.jsx("a",{href:"https://healthbenefits.net/privacy-policy-2/",target:"_blank",rel:"noreferrer noopener",className:"font-semibold text-hba-orange-1 hover:underline",children:"Privacy Policy"})," ","and"," ",s.jsx("a",{href:"https://healthbenefits.net/sms-terms-and-conditions/",target:"_blank",rel:"noreferrer noopener",className:"font-semibold text-hba-orange-1 hover:underline",children:"Terms"}),".",ne&&!N?s.jsx("span",{className:"mt-2 block text-sm font-semibold text-red-600",children:"Please check this box before viewing available plans."}):null]})]}),s.jsxs("section",{"aria-labelledby":"rates-disclaimer-heading",className:"mt-8 rounded-xl border border-amber-300 bg-amber-50 p-5",children:[s.jsx("h3",{id:"rates-disclaimer-heading",className:"text-base font-bold text-gray-900",children:"Plan Benefits and Rates Disclaimer"}),s.jsx("p",{id:"rates-disclaimer-text",className:"mt-2 text-sm leading-relaxed text-gray-700",children:"Plan benefits and rates are for illustrative purposes only. While every effort has been made to ensure accuracy, if a discrepancy exists between this illustration and the Summary of Benefits (SOB), Evidence of Coverage (EOC
886), or insurance carrier rate sheet, the SBC, EOC, and carrier rate sheet will prevail. We strongly recommend thoroughly reviewing the official plan documents before making a final selection."})]}),s.jsx("div",{className:"pt-8 flex justify-end",onClick:()=>{!Se&&!q&&R({email:!0,phone:!0,firstName:!0,lastName:!0,smsConsent:!0})},children:s.jsx("button",{type:"submit",disabled:!Se||q,className:["w-full md:w-auto px-10 py-4 text-lg font-bold rounded-xl transition-all flex items-center justify-center gap-2",Se&&!q?"bg-hba-blue-1 text-white hover:bg-hba-blue-1/90 shadow-md":"bg-gray-300 text-gray-500 cursor-not-allowed"].join(" "),children:q?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),"Loading plansâ¦"]}):"Check Available Plans"})})]}),O&&s.jsxs("div",{ref:Y,className:"mt-12 border-t pt-10",children:[s.jsxs("div",{className:"flex items-end justify-between gap-4 flex-wrap",children:[s.jsxs("div",{children:[s.jsxs("h2",{className:"text-2xl font-bold text-hba-blue",children:["Plans Found (",dt.length,dt.length!==F.length?` of ${F.length}`:"",")"]}),Ur&&s.jsx("button",{type:"button",onClick:He,className:"mt-2 text-sm font-semibold text-hba-orange-1 hover:underline",children:"Clear all filters"})]}),s.jsxs("div",{className:"text-xs text-gray-500",children:["RA: ",s.jsx("span",{className:"font-semibold",children:a||"-"})," ⢠Effective:"," ",s.jsx("span",{className:"font-semibold",children:Bg(l)||"-"})," ⢠Primary Age:"," ",s.jsx("span",{className:"font-semibold",children:ge??"-"})," ⢠Members:"," ",s.jsx("span",{className:"font-semibold",children:hs})]})]}),s.jsx("div",{className:"sticky top-[88px] z-30 mt-6",children:s.jsxs("div",{className:"bg-white/95 backdrop-blur border border-gray-200 rounded-xl p-3 flex items-center justify-between gap-3",children:[s.jsxs("div",{className:"text-sm text-gray-700",children:["Selected for compare:"," ",s.jsxs("span",{className:"font-bold text-hba-blue-1",children:[$e,"/",Lg]})]}),s.jsxs("button",{type:"button",onClick:Kn,disabled:!Ae,className:["shrink-0 inline-flex items-center justify-center","px-6 py-3 rounded-xl font-black text-xs uppercase tracking-widest transition-all",Ae?"bg-hba-orange-1 text-white hover:bg-hba-orange-2 shadow-lg":"bg-gray-200 text-gray-500 cursor-not-allowed"].join(" "),children:["Compare Plans (",$e,"/",Lg,")"]})]})}),F.length===0?s.jsxs("div",{className:"mt-4 rounded-lg border border-gray-200 bg-white p-5 text-gray-700",children:[s.jsx("p",{className:"font-semibold",children:"No plans found for your inputs."}),s.jsx("p",{className:"mt-2 text-sm text-gray-600",children:"Update your details and click âCheck Available Plansâ again."})]}):s.jsxs("div",{className:"mt-6 grid grid-cols-1 lg:grid-cols-[280px_1fr] gap-6",children:[s.jsxs("aside",{className:"border border-gray-200 bg-white rounded-2xl p-5 h-fit sticky top-[152px]",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("div",{className:"font-black text-hba-blue-1 uppercase tracking-widest text-xs",children:"Filters"}),Ur&&s.jsx("button",{type:"button",onClick:He,className:"text-xs font-semibold text-hba-orange-1 hover:underline",children:"Reset"})]}),s.jsxs("div",{className:"border-t pt-4",children:[s.jsx("div",{className:"font-black text-xs uppercase tracking-widest text-gray-800 mb-3",children:"Carrier"}),s.jsx("div",{className:"space-y-2",children:Ie.carriers.length===0?s.jsx("div",{className:"text-xs text-gray-500",children:"â"}):Ie.carriers.map(ce=>s.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-700",children:[s.jsx("input",{type:"checkbox",checked:ae.has(ce),onChange:()=>W(We=>Yr(We,ce))}),ce]},ce))})]}),s.jsxs("div",{className:"border-t pt-4 mt-4",children:[s.jsx("div",{className:"font-black text-xs uppercase tracking-widest text-gray-800 mb-3",children:"Plan Type"}),s.jsx("div",{className:"space-y-2",children:Ie.types.length===0?s.jsx("div",{className:"text-xs text-gray-500",children:"â"}):Ie.types.map(ce=>s.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-700",children:[s.jsx("input",{type:"checkbox",checked:xe.has(ce),onChange:()=>ye(We=>Yr(We,ce))}),ce]},ce))})]}),s.jsxs("div",{className:"border-t pt-4 mt-4",children:[s.jsx("div",{className:"font-black text-xs uppercase tracking-widest text-gray-800 mb
886-3",children:"Metal Tier"}),s.jsx("div",{className:"space-y-2",children:Ie.metals.length===0?s.jsx("div",{className:"text-xs text-gray-500",children:"â"}):Ie.metals.map(ce=>s.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-700",children:[s.jsx("input",{type:"checkbox",checked:ee.has(ce),onChange:()=>Q(We=>Yr(We,ce))}),ce]},ce))})]}),s.jsxs("div",{className:"border-t pt-4 mt-4",children:[s.jsx("div",{className:"font-black text-xs uppercase tracking-widest text-gray-800 mb-3",children:"Deductible"}),s.jsx("div",{className:"space-y-2",children:EM.map(ce=>s.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-700",children:[s.jsx("input",{type:"checkbox",checked:X.has(ce.id),onChange:()=>ve(We=>Yr(We,ce.id))}),ce.label]},ce.id))})]})]}),s.jsxs("section",{className:"min-w-0",children:[s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-5",children:dt.map(ce=>{var Xr,fs;const We=K.has(ce.planId),xt=String(ce.metal??"").trim(),ht=String(ce.hba_type_of_plan??"").trim(),Yt=ce.hba_in_network_deductible||"-",_n=ce.hba_in_network_maximum_out_of_pocket||"-",_r=ce.hba_in_network_primary_care_physician||"-",qr=ce.hba_in_network_specialist_visit||"-",An=ce.hba_carrier_logo_url||"";return s.jsx("div",{className:"border border-gray-300 rounded-2xl bg-white shadow-sm overflow-hidden",children:s.jsxs("div",{className:"p-5 flex flex-col h-full",children:[s.jsx("div",{className:"flex items-center justify-center border border-gray-100 bg-white rounded-xl h-[64px] mb-4",children:An?s.jsx("img",{src:An,alt:`${ce.hba_carrier} logo`,className:"h-[44px] w-auto object-contain",loading:"lazy",onError:_a=>{_a.currentTarget.style.display="none"}}):s.jsx("div",{className:"text-xs font-bold text-gray-400 uppercase tracking-widest",children:ce.hba_carrier||"Carrier"})}),s.jsx("div",{className:"text-base font-black text-hba-blue-1 leading-snug line-clamp-2 min-h-[44px] mb-2 text-center",children:ce.post_title}),s.jsxs("div",{className:"mb-3 text-center",children:[s.jsx("div",{className:"text-xs font-semibold text-gray-500",children:"Monthly Premium"}),s.jsxs("div",{className:"text-2xl font-extrabold text-green-600 tabular-nums leading-none",children:["$",Number(ce.hba_plan_monthly_premium).toFixed(2),s.jsx("span",{className:"text-sm font-semibold text-green-600/80",children:"/mo"})]})]}),s.jsxs("div",{className:"min-h-[56px]",children:[s.jsxs("div",{className:"flex flex-wrap gap-2 justify-center",children:[!!xt&&s.jsx("span",{className:E2e(xt),children:xt}),!!ht&&s.jsx("span",{className:"text-[11px] font-black uppercase tracking-widest bg-gray-100 text-gray-800 px-3 py-1 rounded-full",children:ht})]}),s.jsxs("label",{className:"mt-2 flex justify-center items-center gap-2 text-sm text-gray-700",children:[s.jsx("input",{type:"checkbox",checked:We,onChange:_a=>Ot(ce.planId,_a.target.checked)}),"Compare"]})]}),s.jsxs("div",{className:"mt-5 grid grid-cols-2 gap-3",children:[s.jsxs("div",{className:"rounded-xl bg-gray-200 border border-gray-300 p-3",children:[s.jsx("div",{className:"text-xs font-semibold text-gray-600",children:"Deductible"}),s.jsx("div",{className:"font-black text-hba-blue-1",children:Yt})]}),s.jsxs("div",{className:"rounded-xl bg-gray-200 border border-gray-300 p-3",children:[s.jsx("div",{className:"text-xs font-semibold text-gray-600",children:"OOP Max"}),s.jsx("div",{className:"font-black text-hba-blue-1",children:_n})]})]}),s.jsxs("div",{className:"mt-4 text-sm text-gray-700 min-h-[80px] space-y-3",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-gray-600",children:"Primary Care:"}),s.jsx("div",{className:"font-semibold text-gray-900 mt-0.5 break-words",children:_r})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-gray-600",children:"Specialist:"}),s.jsx("div",{className:"font-semibold text-gray-900 mt-0.5 break-words",children:qr})]})]}),s.jsxs("div",{className:"mt-5 flex flex-col items-center gap-3",children:[s.jsx("button",{type:"button",onClick:()=>U(ce.planId),className:"w-full sm:w-auto inline-flex items-center justify-center bg-hba-blue-1 text-white font-black text-xs uppercase tracking-widest px-5 py-3 rounded-xl hover:opacity-90 transition",children:"Show Details"}),s.jsxs("div",{className:"flex items-center justify-center gap-6",children:[ce.hba_link_to_doctor_list&&s.jsx("a",{href:ce.hba_link_to_doctor_list,target:"_blank",rel:"noreferrer",className:"text-hba-orange-1 text-sm font-semibold hover:underline",children:"Doctor Search"}),ce.hba_link_to_prescription_drug_list&&s.jsx("a",{href:ce.hba_link_to_prescription_drug_list,target:"_blank",rel:"noreferrer",className:"text-hba-orange-1 text-sm font-semibold hover:underline",children:"Drug Search"})]})]}),s.jsx("div",{className:"mt-4 text-xs text-gray-600",children:(fs=(Xr=ce.hba_individual_full_name_plan_rate)==null?void 0:Xr[0])!=null&&fs.length?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"font-semibold",children:"Per member:"})," ",ce.hba_individual_full_name_plan_rate[0].map((_a,oo)=>s.jsxs("span",{children:[(_a||"Member").trim(),": $",ce.hba_individual_full_name_plan_rate[1][oo],oo<ce.hba_individual_full_name_plan_rate[0].length-1?" ⢠":""]},`${ce.planId}-${oo}`))]}):null})]})},ce.planId)})}),dt.length===0&&F.length>0&&s.jsxs("div",{className:"mt-6 rounded-2xl border border-gray-200 bg-white p-6 text-gray-700",children:[s.jsx("div",{className:"font-bold",children:"No plans match your filters."}),s.jsx("div",{className:"text-sm text-gray-600 mt-2",children:"Try clearing filters or selecting fewer options."})]})]})]})]}),Ue&&s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",role:"dialog","aria-modal":"true",children:[s.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm",onClick:()=>U(null),"aria-hidden":"true"}),s.jsxs("div",{className:"relative w-[min(900px,92vw)] max-h-[85vh] overflow-auto rounded-2xl bg-white shadow-2xl border-2 border-gray-300",onClick:ce=>ce.stopPropagation(),children:[s.jsxs("div",{className:"p-6 border-b-2 border-gray-300 bg-gray-50/80 flex items-start gap-4",children:[s.jsx("div",{className:"shrink-0 flex items-center justify-center w-24 h-24 rounded-xl border border-gray-200 bg-white overflow-hidden",children:OM(Ue)?s.jsx("img",{src:OM(Ue),alt:`${Ue.hba_carrier} logo`,className:"h-14 w-auto object-contain"}):s.jsx("div",{className:"text-[10px] font-bold text-gray-400 uppercase text-center leading-tight",children:Ue.hba_carrier||"Carrier"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("div",{className:"text-xs font-semibold text-gray-500",children:Ue.hba_carrier}),s.jsx("div",{className:"mt-1 text-lg font-black text-hba-blue-1",children:Ue.post_title}),s.jsxs("div",{className:"mt-1 text-sm text-gray-600",children:["Monthly Premium:"," ",s.jsxs("span",{className:"font-black text-gray-900 tabular-nums",children:["$",Number(Ue.hba_plan_monthly_premium).toFixed(2),"/mo"]})]})]}),s.jsx("button",{type:"button",onClick:()=>U(null),className:"shrink-0 w-10 h-10 inline-flex items-center justify-center rounded-lg border border-gray-300 bg-white hover:bg-gray-100 text-gray-600 hover:text-gray-900 transition-colors","aria-label":"Close",children:s.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),s.jsxs("div",{className:"p-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs("div",{className:"space-y-3 p-4 rounded-xl border border-gray-200 bg-gray-50/50",children:[s.jsx("div",{className:"font-black text-gray-800 text-sm uppercase tracking-widest pb-2 border-b border-gray-300",children:"Your Cost For In Network Care"}),s.jsx(ma,{label:"Primary Care Copay",value:Ue.hba_in_network_primary_care_physician}),s.jsx(ma,{label:"Specialist Copay",value:Ue.hba_in_network_specialist_visit}),s.jsx(ma,{label:"Preventive Care",value:Ue.hba_in_network_preventative_services}),s.jsx(ma,{label:"Outpatient Lab Work",value:Ue.hba_outpatient_lab_work}),s.jsx(ma,{label:"Urgent Care",value:Ue.hba_urgent_care}),s.jsx(ma,{label:"Emergency Room",value:Ue.hba_emergency_department}),s.jsx(ma,{label:"Outpatient Complex Radiology (MRI/CT)",value:Ue.hba_outpatient_complex_radiology}),s.jsx(ma,{label:"Outpatient Surgery",value:Ue.hba_outpatient_surgery}),s.jsx(ma,{label:"Hospital",value:Ue.hba_in_network_hospital})]}),s.jsxs("div",{className:"space-y-3 p-4 rounded-xl border border-gray-200 bg-gray-50/50",children:[s.jsx("div",{className:"font-black text-gray-800 text-sm uppercase tracking-widest pb-2 border-b border-gray-300",children:"In Network Pharmacy"}),s.jsx(ma,{label:"Prescription Deductible",value:Ue.hba_prescription_deductible}),s.jsx(ma,{label:"Generic",value:Ue.hba_generic}),s.jsx(ma,{label:"Brand Formulary",value:Ue.hba_brand_formulary}),s.jsx(ma,{label:"Brand Non-Formulary",value:Ue.hba_brand_non_formulary}),s.jsxs("div",{className:"pt-3 border-t border-gray-300 mt-3",children:[s.jsx(ma,{label:"In Network Deductible",value:Ue.hba_in_network_deductible}),s.jsx(ma,{label:"In Network Out-of-Pocket Maximum",value:Ue.hba_in_network_maximum_out_of_pocket})]}),(Jt=(mt=Ue.hba_individual_full_name_plan_rate)==null?void 0:mt[0])!=null&&Jt.length?s.jsxs("div",{className:"pt-3 border-t border-gray-300 mt-3 text-sm text-gray-700",children:[s.jsx("div",{className:"font-semibold",children:"Monthly Premium per family member:"}),s.jsx("ul",{className:"list-disc ml-5 mt-2",children:Ue.hba_individual_full_name_plan_rate[0].map((ce,We)=>s.jsxs("li",{children:[(ce||"Member").trim(),": $",Ue.hba_individual_full_name_plan_rate[1][We]]},`${Ue.planId}-li-${We}`))}),s.jsxs("div",{className:"mt-2 font-bold",children:["Total: $",Number(Ue.hba_plan_monthly_premium).toFixed(2)]})]}):null]})]}),s.jsx("div",{className:"mt-4 text-xs text-gray-500",children:"* Outpatient services provided from a freestanding facility (not at a hospital)."})]})]})]})]})};function ma({label:t,value:e}){const r=(e??"").toString().trim();return s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{className:"text-sm text-gray-700",children:[t,":"]}),s.jsx("div",{className:"text-sm text-gray-900 font-semibold text-right whitespace-pre-line",children:r||"-"})]})}var Kb={exports:{}};/* @license
887Papa Parse 888v5.5.3 889https://github.com/mholt/PapaParse 890License: MIT 891*/var P2e=Kb.exports,PM;function M2e(){return PM||(PM=1,(function(t,e){((r,n)=>{t.exports=n()})(P2e,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},a,i=!n.document&&!!n.postMessage,o=n.IS_PAPA_WORKER||!1,l={},c=0,u={};function d(E){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(P){var T=C(P);T.chunkSize=parseInt(T.chunkSize),P.step||P.chunk||(T.chunkSize=null),this._handle=new y(T),(this._handle.streamer=this)._config=T}).call(this,E),this.parseChunk=function(P,T){var I=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<I){let F=this._config.newline;F||(R=this._config.quoteChar||'"',F=this._handle.guessLineEndings(P,R)),P=[...P.split(F).slice(I)].join(F)}this.isFirstChunk&&O(this._config.beforeFirstChunk)&&(R=this._config.beforeFirstChunk(P))!==void 0&&(P=R),this.isFirstChunk=!1,this._halted=!1;var I=this._partialLine+P,R=(this._partialLine="",this._handle.parse(I,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(P=R.meta.cursor,I=(this._finished||(this._partialLine=I.substring(P-this._baseIndex),this._baseIndex=P),R&&R.data&&(this._rowCount+=R.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),o)n.postMessage({results:R,workerId:u.WORKER_ID,finished:I});else if(O(this._config.chunk)&&!T){if(this._config.chunk(R,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=R=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(R.data),this._completeResults.errors=this._completeResults.errors.concat(R.errors),this._completeResults.meta=R.meta),this._completed||!I||!O(this._config.complete)||R&&R.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),I||R&&R.meta.paused||this._nextChunk(),R}this._halted=!0},this._sendError=function(P){O(this._config.error)?this._config.error(P):o&&this._config.error&&n.postMessage({workerId:u.WORKER_ID,error:P,finished:!1})}}function h(E){var P;(E=E||{}).chunkSize||(E.chunkSize=u.RemoteChunkSize),d.call(this,E),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(T){this._input=T,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(P=new XMLHttpRequest,this._config.withCredentials&&(P.withCredentials=this._config.withCredentials),i||(P.onload=_(this._chunkLoaded,this),P.onerror=_(this._chunkError,this)),P.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var T,I=this._config.downloadRequestHeaders;for(T in I)P.setRequestHeader(T,I[T])}var R;this._config.chunkSize&&(R=this._start+this._config.chunkSize-1,P.setRequestHeader("Range","bytes="+this._start+"-"+R));try{P.send(this._config.downloadRequestBody)}catch(F){this._chunkError(F.message)}i&&P.status===0&&this._chunkError()}},this._chunkLoaded=function(){P.readyState===4&&(P.status<200||400<=P.status?this._chunkError():(this._start+=this._config.chunkSize||P.responseText.length,this._finished=!this._config.chunkSize||this._start>=(T=>(T=T.getResponseHeader("Content-Range"))!==null?parseInt(T.substring(T.lastIndexOf("/")+1)):-1)(P),this.parseChunk(P.responseText)))},this._chunkError=function(T){T=P.statusText||T,this._sendError(new Error(T))}}function m(E){(E=E||{}).chunkSize||(E.chunkSize=u.LocalChunkSize),d.call(this,E);var P,T,I=typeof FileReader<"u";this.stream=function(R){this._input=R,T=R.slice||R.webkitSlice||R.mozSlice,I?((P=new FileReader).onload=_(this._chunkLoaded,this),P.onerror=_(this._chunkError,this)):P=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var R=this._input,F=(this._config.chunkSize&&(F=Math.min(this._start+this._config.chunkSize,this._input.size),R=T.call(R,this._start,F)),P.readAsText(R,this._config.encoding));I||this._chunkLoaded({target:{result:F}})},this._chunkLoaded=function(R){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(R.target.result)},this._chunkError=function(){this._sendError(P.error)}}function g(E){var P;d.call(this,E=E||{}),this.stream=function(T){return P=T,this._nextChunk()},this._nextChunk=function(){var T,I;if(!this._finished)return T=this._config.chunkSize,P=T?(I=P.substring(0,T),P.substring(T)):(I=P,""),this._finished=!P,this.parseChunk(I)}}function b(E){d.call(this,E=E||{});var P=[],T=!0,I=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(R){this._input=R,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){I&&P.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),P.length?this.parseChunk(P.shift()):T=!0}
vendor: 18,808 bytes, lines 891-903
891,this._streamData=_(function(R){try{P.push(typeof R=="string"?R:R.toString(this._config.encoding)),T&&(T=!1,this._checkIsFinished(),this.parseChunk(P.shift()))}catch(F){this._streamError(F)}},this),this._streamError=_(function(R){this._streamCleanUp(),this._sendError(R)},this),this._streamEnd=_(function(){this._streamCleanUp(),I=!0,this._streamData("")},this),this._streamCleanUp=_(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function y(E){var P,T,I,R,F=Math.pow(2,53),L=-F,q=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,G=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,B=this,H=0,K=0,Z=!1,V=!1,U=[],Y={data:[],errors:[],meta:{}};function de(Ce){return E.skipEmptyLines==="greedy"?Ce.join("").trim()==="":Ce.length===1&&Ce[0].length===0}function ge(){if(Y&&I&&(Oe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),I=!1),E.skipEmptyLines&&(Y.data=Y.data.filter(function(oe){return!de(oe)})),fe()){let oe=function(qe,Le){O(E.transformHeader)&&(qe=E.transformHeader(qe,Le)),U.push(qe)};var ke=oe;if(Y)if(Array.isArray(Y.data[0])){for(var Ce=0;fe()&&Ce<Y.data.length;Ce++)Y.data[Ce].forEach(oe);Y.data.splice(0,1)}else Y.data.forEach(oe)}function le(oe,qe){for(var Le=E.header?{}:[],Ke=0;Ke<oe.length;Ke++){var ne=Ke,Se=oe[Ke],Se=(($e,Ae)=>(Ve=>(E.dynamicTypingFunction&&E.dynamicTyping[Ve]===void 0&&(E.dynamicTyping[Ve]=E.dynamicTypingFunction(Ve)),(E.dynamicTyping[Ve]||E.dynamicTyping)===!0))($e)?Ae==="true"||Ae==="TRUE"||Ae!=="false"&&Ae!=="FALSE"&&((Ve=>{if(q.test(Ve)&&(Ve=parseFloat(Ve),L<Ve&&Ve<F))return 1})(Ae)?parseFloat(Ae):G.test(Ae)?new Date(Ae):Ae===""?null:Ae):Ae)(ne=E.header?Ke>=U.length?"__parsed_extra":U[Ke]:ne,Se=E.transform?E.transform(Se,ne):Se);ne==="__parsed_extra"?(Le[ne]=Le[ne]||[],Le[ne].push(Se)):Le[ne]=Se}return E.header&&(Ke>U.length?Oe("FieldMismatch","TooManyFields","Too many fields: expected "+U.length+" fields but parsed "+Ke,K+qe):Ke<U.length&&Oe("FieldMismatch","TooFewFields","Too few fields: expected "+U.length+" fields but parsed "+Ke,K+qe)),Le}var we;Y&&(E.header||E.dynamicTyping||E.transform)&&(we=1,!Y.data.length||Array.isArray(Y.data[0])?(Y.data=Y.data.map(le),we=Y.data.length):Y.data=le(Y.data,0),E.header&&Y.meta&&(Y.meta.fields=U),K+=we)}function fe(){return E.header&&U.length===0}function Oe(Ce,le,we,ke){Ce={type:Ce,code:le,message:we},ke!==void 0&&(Ce.row=ke),Y.errors.push(Ce)}O(E.step)&&(R=E.step,E.step=function(Ce){Y=Ce,fe()?ge():(ge(),Y.data.length!==0&&(H+=Ce.data.length,E.preview&&H>E.preview?T.abort():(Y.data=Y.data[0],R(Y,B))))}),this.parse=function(Ce,le,we){var ke=E.quoteChar||'"',ke=(E.newline||(E.newline=this.guessLineEndings(Ce,ke)),I=!1,E.delimiter?O(E.delimiter)&&(E.delimiter=E.delimiter(Ce),Y.meta.delimiter=E.delimiter):((ke=((oe,qe,Le,Ke,ne)=>{var Se,$e,Ae,Ve;ne=ne||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var ae=0;ae<ne.length;ae++){for(var W,ee=ne[ae],Q=0,xe=0,ye=0,X=(Ae=void 0,new N({comments:Ke,delimiter:ee,newline:qe,preview:10}).parse(oe)),ve=0;ve<X.data.length;ve++)Le&&de(X.data[ve])?ye++:(W=X.data[ve].length,xe+=W,Ae===void 0?Ae=W:0<W&&(Q+=Math.abs(W-Ae),Ae=W));0<X.data.length&&(xe/=X.data.length-ye),($e===void 0||Q<=$e)&&(Ve===void 0||Ve<xe)&&1.99<xe&&($e=Q,Se=ee,Ve=xe)}return{successful:!!(E.delimiter=Se),bestDelimiter:Se}})(Ce,E.newline,E.skipEmptyLines,E.comments,E.delimitersToGuess)).successful?E.delimiter=ke.bestDelimiter:(I=!0,E.delimiter=u.DefaultDelimiter),Y.meta.delimiter=E.delimiter),C(E));return E.preview&&E.header&&ke.preview++,P=Ce,T=new N(ke),Y=T.parse(P,le,we),ge(),Z?{meta:{paused:!0}}:Y||{meta:{paused:!1}}},this.paused=function(){return Z},this.pause=function(){Z=!0,T.abort(),P=O(E.chunk)?"":P.substring(T.getCharIndex())},this.resume=function(){B.streamer._halted?(Z=!1,B.streamer.parseChunk(P,!0)):setTimeout(B.resume,3)},this.aborted=function(){return V},this.abort=function(){V=!0,T.abort(),Y.meta.aborted=!0,O(E.complete)&&E.complete(Y),P=""},this.guessLineEndings=function(oe,ke){oe=oe.substring(0,1048576);var ke=new RegExp(v(ke)+"([^]*?)"+v(ke),"gm"),we=(oe=oe.replace(ke,"")).split("\r"),ke=oe.split(` 892`),oe=1<ke.length&&ke[0].length<we[0].length;if(we.length===1||oe)return` 893`;for(var qe=0,Le=0;Le<we.length;Le++)we[Le][0]===` 894`&&qe++;return qe>=we.length/2?`\r 895`:"\r"}}function v(E){return E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function N(E){var P=(E=E||{}).delimiter,T=E.newline,I=E.comments,R=E.step,F=E.preview,L=E.fastMode,q=null,G=!1,B=E.quoteChar==null?'"':E.quoteChar,H=B;if(E.escapeChar!==void 0&&(H=E.escapeChar),(typeof P!="string"||-1<u.BAD_DELIMITERS.indexOf(P))&&(P=","),I===P)throw new Error("Comment character same as delimiter");I===!0?I="#":(typeof I!="string"||-1<u.BAD_DELIMITERS.indexOf(I))&&(I=!1),T!==` 896`&&T!=="\r"&&T!==`\r 897`&&(T=` 898`);var K=0,Z=!1;this.parse=function(V,U,Y){if(typeof V!="string")throw new Error("Input must be a string");var de=V.length,ge=P.length,fe=T.length,Oe=I.length,Ce=O(R),le=[],we=[],ke=[],oe=K=0;if(!V)return Q();if(L||L!==!1&&V.indexOf(B)===-1){for(var qe=V.split(T),Le=0;Le<qe.length;Le++){if(ke=qe[Le],K+=ke.length,Le!==qe.length-1)K+=T.length;else if(Y)return Q();if(!I||ke.substring(0,Oe)!==I){if(Ce){if(le=[],Ve(ke.split(P)),xe(),Z)return Q()}else Ve(ke.split(P));if(F&&F<=Le)return le=le.slice(0,F),Q(!0)}}return Q()}for(var Ke=V.indexOf(P,K),ne=V.indexOf(T,K),Se=new RegExp(v(H)+v(B),"g"),$e=V.indexOf(B,K);;)if(V[K]===B)for($e=K,K++;;){if(($e=V.indexOf(B,$e+1))===-1)return Y||we.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:le.length,index:K}),W();if($e===de-1)return W(V.substring(K,$e).replace(Se,B));if(B===H&&V[$e+1]===H)$e++;else if(B===H||$e===0||V[$e-1]!==H){Ke!==-1&&Ke<$e+1&&(Ke=V.indexOf(P,$e+1));var Ae=ae((ne=ne!==-1&&ne<$e+1?V.indexOf(T,$e+1):ne)===-1?Ke:Math.min(Ke,ne));if(V.substr($e+1+Ae,ge)===P){ke.push(V.substring(K,$e).replace(Se,B)),V[K=$e+1+Ae+ge]!==B&&($e=V.indexOf(B,K)),Ke=V.indexOf(P,K),ne=V.indexOf(T,K);break}if(Ae=ae(ne),V.substring($e+1+Ae,$e+1+Ae+fe)===T){if(ke.push(V.substring(K,$e).replace(Se,B)),ee($e+1+Ae+fe),Ke=V.indexOf(P,K),$e=V.indexOf(B,K),Ce&&(xe(),Z))return Q();if(F&&le.length>=F)return Q(!0);break}we.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:le.length,index:K}),$e++}}else if(I&&ke.length===0&&V.substring(K,K+Oe)===I){if(ne===-1)return Q();K=ne+fe,ne=V.indexOf(T,K),Ke=V.indexOf(P,K)}else if(Ke!==-1&&(Ke<ne||ne===-1))ke.push(V.substring(K,Ke)),K=Ke+ge,Ke=V.indexOf(P,K);else{if(ne===-1)break;if(ke.push(V.substring(K,ne)),ee(ne+fe),Ce&&(xe(),Z))return Q();if(F&&le.length>=F)return Q(!0)}return W();function Ve(ye){le.push(ye),oe=K}function ae(ye){var X=0;return X=ye!==-1&&(ye=V.substring($e+1,ye))&&ye.trim()===""?ye.length:X}function W(ye){return Y||(ye===void 0&&(ye=V.substring(K)),ke.push(ye),K=de,Ve(ke),Ce&&xe()),Q()}function ee(ye){K=ye,Ve(ke),ke=[],ne=V.indexOf(T,K)}function Q(ye){if(E.header&&!U&&le.length&&!G){var X=le[0],ve=Object.create(null),He=new Set(X);let Ie=!1;for(let dt=0;dt<X.length;dt++){let Ue=X[dt];if(ve[Ue=O(E.transformHeader)?E.transformHeader(Ue,dt):Ue]){let ie,it=ve[Ue];for(;ie=Ue+"_"+it,it++,He.has(ie););He.add(ie),X[dt]=ie,ve[Ue]++,Ie=!0,(q=q===null?{}:q)[ie]=Ue}else ve[Ue]=1,X[dt]=Ue;He.add(Ue)}Ie&&console.warn("Duplicate headers found and renamed."),G=!0}return{data:le,errors:we,meta:{delimiter:P,linebreak:T,aborted:Z,truncated:!!ye,cursor:oe+(U||0),renamedHeaders:q}}}function xe(){R(Q()),le=[],we=[]}},this.abort=function(){Z=!0},this.getCharIndex=function(){return K}}function S(E){var P=E.data,T=l[P.workerId],I=!1;if(P.error)T.userError(P.error,P.file);else if(P.results&&P.results.data){var R={abort:function(){I=!0,j(P.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:$,resume:$};if(O(T.userStep)){for(var F=0;F<P.results.data.length&&(T.userStep({data:P.results.data[F],errors:P.results.errors,meta:P.results.meta},R),!I);F++);delete P.results}else O(T.userChunk)&&(T.userChunk(P.results,R,P.file),delete P.results)}P.finished&&!I&&j(P.workerId,P.results)}function j(E,P){var T=l[E];O(T.userComplete)&&T.userComplete(P),T.terminate(),delete l[E]}function $(){throw new Error("Not implemented.")}function C(E){if(typeof E!="object"||E===null)return E;var P,T=Array.isArray(E)?[]:{};for(P in E)T[P]=C(E[P]);return T}function _(E,P){return function(){E.apply(P,arguments)}}function O(E){return typeof E=="function"}return u.parse=function(E,P){var T=(P=P||{}).dynamicTyping||!1;if(O(T)&&(P.dynamicTypingFunction=T,T={}),P.dynamicTyping=T,P.transform=!!O(P.transform)&&P.transform,!P.worker||!u.WORKERS_SUPPORTED)return T=null,u.NODE_STREAM_INPUT,typeof E=="string"?(E=(I=>I.charCodeAt(0)!==65279?I:I.slice(1))(E),T=new(P.download?h:g)(P)):E.readable===!0&&O(E.read)&&O(E.on)?T=new b(P):(n.File&&E instanceof File||E instanceof Object)&&(T=new m(P)),T.stream(E);(T=(()=>{var I;return!!u.WORKERS_SUPPORTED&&(I=(()=>{var R=n.URL||n.webkitURL||null,F=r.toString();return u.BLOB_URL||(u.BLOB_URL=R.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",F,")();"],{type:"text/javascript"})))})(),(I=new n.Worker(I)).onmessage=S,I.id=c++,l[I.id]=I)})()).userStep=P.step,T.userChunk=P.chunk,T.userComplete=P.complete,T.userError=P.error,P.step=O(P.step),P.chunk=O(P.chunk),P.complete=O(P.complete),P.error=O(P.error),delete P.worker,T.postMessage({input:E,config:P,workerId:T.id})},u.unparse=function(E,P){var T=!1,I=!0,R=",",F=`\r 899`,L='"',q=L+L,G=!1,B=null,H=!1,K=((()=>{if(typeof P=="object"){if(typeof P.delimiter!="string"||u.BAD_DELIMITERS.filter(function(U){return P.delimiter.indexOf(U)!==-1}).length||(R=P.delimiter),typeof P.quotes!="boolean"&&typeof P.quotes!="function"&&!Array.isArray(P.quotes)||(T=P.quotes),typeof P.skipEmptyLines!="boolean"&&typeof P.skipEmptyLines!="string"||(G=P.skipEmptyLines),typeof P.newline=="string"&&(F=P.newline),typeof P.quoteChar=="string"&&(L=P.quoteChar),typeof P.header=="boolean"&&(I=P.header),Array.isArray(P.columns)){if(P.columns.length===0)throw new Error("Option columns is empty");B=P.columns}P.escapeChar!==void 0&&(q=P.escapeChar+L),P.escapeFormulae instanceof RegExp?H=P.escapeFormulae:typeof P.escapeFormulae=="boolean"&&P.escapeFormulae&&(H=/^[=+\-@\t\r].*$/)}})(),new RegExp(v(L),"g"));if(typeof E=="string"&&(E=JSON.parse(E)),Array.isArray(E)){if(!E.length||Array.isArray(E[0]))return Z(null,E,G);if(typeof E[0]=="object")return Z(B||Object.keys(E[0]),E,G)}else if(typeof E=="object")return typeof E.data=="string"&&(E.data=JSON.parse(E.data)),Array.isArray(E.data)&&(E.fields||(E.fields=E.meta&&E.meta.fields||B),E.fields||(E.fields=Array.isArray(E.data[0])?E.fields:typeof E.data[0]=="object"?Object.keys(E.data[0]):[]),Array.isArray(E.data[0])||typeof E.data[0]=="object"||(E.data=[E.data])),Z(E.fields||[],E.data||[],G);throw new Error("Unable to serialize unrecognized input");function Z(U,Y,de){var ge="",fe=(typeof U=="string"&&(U=JSON.parse(U)),typeof Y=="string"&&(Y=JSON.parse(Y)),Array.isArray(U)&&0<U.length),Oe=!Array.isArray(Y[0]);if(fe&&I){for(var Ce=0;Ce<U.length;Ce++)0<Ce&&(ge+=R),ge+=V(U[Ce],Ce);0<Y.length&&(ge+=F)}for(var le=0;le<Y.length;le++){var we=(fe?U:Y[le]).length,ke=!1,oe=fe?Object.keys(Y[le]).length===0:Y[le].length===0;if(de&&!fe&&(ke=de==="greedy"?Y[le].join("").trim()==="":Y[le].length===1&&Y[le][0].length===0),de==="greedy"&&fe){for(var qe=[],Le=0;Le<we;Le++){var Ke=Oe?U[Le]:Le;qe.push(Y[le][Ke])}ke=qe.join("").trim()===""}if(!ke){for(var ne=0;ne<we;ne++){0<ne&&!oe&&(ge+=R);var Se=fe&&Oe?U[ne]:ne;ge+=V(Y[le][Se],ne)}le<Y.length-1&&(!de||0<we&&!oe)&&(ge+=F)}}return ge}function V(U,Y){var de,ge;return U==null?"":U.constructor===Date?JSON.stringify(U).slice(1,25):(ge=!1,H&&typeof U=="string"&&H.test(U)&&(U="'"+U,ge=!0),de=U.toString().replace(K,q),(ge=ge||T===!0||typeof T=="function"&&T(U,Y)||Array.isArray(T)&&T[Y]||((fe,Oe)=>{for(var Ce=0;Ce<Oe.length;Ce++)if(-1<fe.indexOf(Oe[Ce]))return!0;return!1})(de,u.BAD_DELIMITERS)||-1<de.indexOf(R)||de.charAt(0)===" "||de.charAt(de.length-1)===" ")?L+de+L:de)}},u.RECORD_SEP="�",u.UNIT_SEP="�",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",` 900`,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!i&&!!n.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=N,u.ParserHandle=y,u.NetworkStreamer=h,u.FileStreamer=m,u.StringStreamer=g,u.ReadableStreamStreamer=b,n.jQuery&&((a=n.jQuery).fn.parse=function(E){var P=E.config||{},T=[];return this.each(function(F){if(!(a(this).prop("tagName").toUpperCase()==="INPUT"&&a(this).attr("type").toLowerCase()==="file"&&n.FileReader)||!this.files||this.files.length===0)return!0;for(var L=0;L<this.files.length;L++)T.push({file:this.files[L],inputElem:this,instanceConfig:a.extend({},P)})}),I(),this;function I(){if(T.length===0)O(E.complete)&&E.complete();else{var F,L,q,G,B=T[0];if(O(E.before)){var H=E.before(B.file,B.inputElem);if(typeof H=="object"){if(H.action==="abort")return F="AbortError",L=B.file,q=B.inputElem,G=H.reason,void(O(E.error)&&E.error({name:F},L,q,G));if(H.action==="skip")return void R();typeof H.config=="object"&&(B.instanceConfig=a.extend(B.instanceConfig,H.config))}else if(H==="skip")return void R()}var K=B.instanceConfig.complete;B.instanceConfig.complete=function(Z){O(K)&&K(Z,B.file,B.inputElem),R()},u.parse(B.file,B.instanceConfig)}}function R(){T.splice(0,1),I()}}),o&&(n.onmessage=function(E){E=E.data,u.WORKER_ID===void 0&&E&&(u.WORKER_ID=E.workerId),typeof E.input=="string"?n.postMessage({workerId:u.WORKER_ID,results:u.parse(E.input,E.config),finished:!0}):(n.File&&E.input instanceof File||E.input instanceof Object)&&(E=u.parse(E.input,E.config))&&n.postMessage({workerId:u.WORKER_ID,results:E,finished:!0})}),(h.prototype=Object.create(d.prototype)).constructor=h,(m.prototype=Object.create(d.prototype)).constructor=m,(g.prototype=Object.create(g.prototype)).constructor=g,(b.prototype=Object.create(d.prototype)).constructor=b,u})})(Kb)),Kb.exports}var T2e=M2e();const R2e=ar(T2e),I2e=`DOI Plan ID Number,Carrier,Plan Name,Rating Area,Tobacco,Metal,Plan Name2,Type of Plan,In-Network Preventative Services,In-Network Primary Care Physician,In-Network Specialist Visit,Outpatient Lab Work,Urgent Care,Emergency Department,Outpatient X-Ray*,Outpatient Complex Radiology*,Outpatient Surgery*,In-Network Hospital,In-Network Deductible,In-Network Coinsurance,In-Network Maximum Out of Pocket,Out-Of-Network Deductible,Out-of-Network Coinsurance,Out-of-Network Maximum Out of Pocket,Prescription Deductible,Generic,Brand Formulary,Brand Non-Formulary,Provider Network,Link to Doctor List,Link to Prescription Drug List,Popular For,Application PDF,Carrier Logos,Base Rate (Age 21),1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100\r 90145142NV0010030,Anthem,26 Anthem Catastrophic X,RA1,No,Catastrophic,26 Anthem Catastrophic X,HMO,$0,"1st 3 Visits: $40 After: $10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,298.20,228.12,228.12,228.12,228.12,228.12,228.12,228.12,228.12,228.12,228.12,228.12,228.12,228.12,228.12,248.40,256.15,263.91,272.26,280.61,289.25,298.20,298.20,298.20,298.20,299.39,305.36,312.51,324.14,333.69,338.46,345.61,352.77,357.24,362.01,364.40,366.79,369.17,371.56,376.33,381.10,388.26,395.12,404.66,416.59,430.60,447.30,466.09,487.56,508.73,532.59,556.14,582.09,608.33,636.66,664.99,695.70,726.71,759.81,776.21,809.31,837.94,856.73,880.29,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60,894.60\r 90245142NV0010031,Anthem,26 Anthem Bronze Convenient Care X 8500,RA1,No,Bronze,26 Anthem Bronze Convenient Care X 8500,HMO,$0,$15,"$8,500 + 40%","$8,500 + 40%",$50,"$500 + $8,500 + 50%","$8,500 + 40%","$350 + $8,500 + 50%","$8,500 + 40%","$600 + $8,500 + 50%","$8,500",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$8,500 + 40%","$8,500 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,329.05,251.72,251.72,251.72,251.72,251.72,251.72,251.72,251.72,251.72,251.72,251.72,251.72,251.72,251.72,274.10,282.65,291.21,300.42,309.64,319.18,329.05,329.05,329.05,329.05,330.37,336.95,344.84,357.68,368.21,373.47,381.37,389.27,394.20,399.47,402.10,404.73,407.36,410.00,415.26,420.53,428.42,435.99,446.52,459.68,475.15,493.58,514.31,538.00,561.36,587.68,613.68,642.31,671.26,702.52,733.78,767.67,801.89,838.42,856.52,893.04,924.63,945.36,971.36,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15,987.15\r 90345142NV0010032,Anthem,26 Anthem Bronze Convenient Care X 7500,RA1,No,Bronze,26 Anthem Bronze Convenient Care X 7500,HMO,$0,$20,"$7,500 + 40%","$7,500 + 40%",$50,"$1,000 + $7,500 + 50%","$7,500 + 40%","$300 + $7,500 + 50%","$7,500 + 40%","$1,500 + $7,500 + 50%","$7,500",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,$90,"$7,500 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,331.18,253.35,253.35,253.35,253.35,253.35,253.35,253.35,253.35,253.35,253.35,253.35,253.35,253.35,253.35,27
9035.87,284.48,293.09,302.37,311.64,321.24,331.18,331.18,331.18,331.18,332.50,339.13,347.08,359.99,370.59,375.89,383.84,391.79,396.75,402.05,404.70,407.35,410.00,412.65,417.95,423.25,431.20,438.81,449.41,462.66,478.22,496.77,517.63,541.48,564.99,591.49,617.65,646.46,675.61,707.07,738.53,772.64,807.09,843.85,862.06,898.82,930.62,951.48,977.64,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54,993.54\r 90445142NV0010033,Anthem,26 Anthem Bronze X 10600,RA1,No,Bronze,26 Anthem Bronze X 10600,HMO,$0,$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,350.02,267.77,267.77,267.77,267.77,267.77,267.77,267.77,267.77,267.77,267.77,267.77,267.77,267.77,267.77,291.57,300.67,309.77,319.57,329.37,339.52,350.02,350.02,350.02,350.02,351.42,358.42,366.82,380.47,391.67,397.27,405.67,414.07,419.32,424.92,427.72,430.52,433.32,436.12,441.73,447.33,455.73,463.78,474.98,488.98,505.43,525.03,547.08,572.28,597.13,625.14,652.79,683.24,714.04,747.29,780.54,816.60,853.00,891.85,911.10,949.95,983.56,1005.61,1033.26,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06,1050.06\r 90545142NV0010034,Anthem,26 Anthem Bronze X 8200,RA1,No,Bronze,26 Anthem Bronze X 8200,HMO,$0,"$8,200 + 40%","$8,200 + 40%",$50,$75,"$500 + $8,200 + 50%",$120,"$8,200 + 50%","$8,200 + 40%","$8,200 + 50%","$8,200",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$8,200 + 40%","$8,200 + 50%","$8,200 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,351.41,268.83,268.83,268.83,268.83,268.83,268.83,268.83,268.83,268.83,268.83,268.83,268.83,268.83,268.83,292.72,301.86,311.00,320.84,330.68,340.87,351.41,351.41,351.41,351.41,352.82,359.84,368.28,381.98,393.23,398.85,407.28,415.72,420.99,426.61,429.42,432.23,435.05,437.86,443.48,449.10,457.54,465.62,476.86,490.92,507.44,527.12,549.25,574.56,599.51,627.62,655.38,685.95,716.88,750.26,783.64,819.84,856.39,895.39,914.72,953.73,987.46,1009.60,1037.36,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23,1054.23\r 90645142NV0010035,Anthem,26 Anthem Bronze X 5500,RA1,No,Bronze,26 Anthem Bronze X 5500,HMO,$0,$50,"$5,500 + 40%","$5,500 + 40%",$50,"$500 + $5,500 + 40%","$5,500 + 40%","$250 + $5,500 + 40%","$5,500 + 40%","$1,000 + $5,500 + 40%","$5,500",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,$90,"$5,500 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,364.56,278.89,278.89,278.89,278.89,278.89,278.89,278.89,278.89,278.89,278.89,278.89,278.89,278.89,278.89,303.68,313.16,322.64,332.84,343.05,353.62,364.56,364.56,364.56,364.56,366.02,373.31,382.06,396.28,407.94,413.78,422.53,431.27,436.74,442.58,445.49,448.41,451.33,454.24,460.07,465.91,474.66,483.04,494.71,509.29,526.42,546.84,569.81,596.06,621.94,651.10,679.90,711.62,743.70,778.34,812.97,850.52,888.43,928.90,948.95,989.42,1024.41,1047.38,1076.18,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68,1093.68\r 90745142NV0010036,Anthem,26 Anthem Bronze X 6000,RA1,No,Bronze,26 Anthem Bronze X 6000,HMO,$0,$40,$100,"$6,000 + 30%",$50,"$500 + $6,000 + 30%","$6,000 + 30%","$500 + $6,000 + 30%","$6,000 + 30%","$500 + $6,000 + 40%","$6,000",30%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$30,"$6,000 + 30%","$6,000 + 30%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,366.32,280.23,280.23,280.23,280.23,280.23,280.23,280.23,280.23,280.23,280.23,280.23,280.23,280.23,280.23,305.14,314.67,324.19,334.45,344.71,355.33,366.32,366.32,366.32,366.32,367.79,375.11,383.90,398.19,409.91,415.77,424.56,433.3
9076,438.85,444.71,447.64,450.57,453.50,456.43,462.30,468.16,476.95,485.37,497.10,511.75,528.97,549.48,572.56,598.93,624.94,654.25,683.19,715.06,747.29,782.09,816.89,854.62,892.72,933.38,953.53,994.19,1029.36,1052.44,1081.38,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96,1098.96\r 90845142NV0010037,Anthem,26 Anthem Bronze X 7000 Adult Dntal/Vision,RA1,No,Bronze,26 Anthem Bronze X 7000 Adult Dntal/Vision,HMO,$0,$40,$90,"$7,000 + 40%",$75,"$7,000 + 40%","$7,000 + 40%","$7,000 + 0%","$7,000 + 40%","$7,000 + 40%","$7,000",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,"$7,000 + $75","$7,000 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,377.26,288.60,288.60,288.60,288.60,288.60,288.60,288.60,288.60,288.60,288.60,288.60,288.60,288.60,288.60,314.26,324.07,333.88,344.44,355.00,365.94,377.26,377.26,377.26,377.26,378.77,386.31,395.37,410.08,422.15,428.19,437.24,446.30,451.96,457.99,461.01,464.03,467.05,470.07,476.10,482.14,491.19,499.87,511.94,527.03,544.76,565.89,589.66,616.82,643.61,673.79,703.59,736.41,769.61,805.45,841.29,880.15,919.38,961.26,982.01,1023.88,1060.10,1083.87,1113.67,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78,1131.78\r 90945142NV0010038,Anthem,26 Anthem Bronze X 8050 for HSA,RA1,No,Bronze,26 Anthem Bronze X 8050 for HSA,HMO,$0,"$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050",0%,"$8,050",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$8,050 + 0%","$8,050 + 0%","$8,050 + 0%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,382.42,292.55,292.55,292.55,292.55,292.55,292.55,292.55,292.55,292.55,292.55,292.55,292.55,292.55,292.55,318.56,328.50,338.44,349.15,359.86,370.95,382.42,382.42,382.42,382.42,383.95,391.60,400.78,415.69,427.93,434.05,443.22,452.40,458.14,464.26,467.32,470.38,473.44,476.50,482.61,488.73,497.91,506.71,518.94,534.24,552.21,573.63,597.72,625.26,652.41,683.00,713.21,746.48,780.14,816.47,852.80,892.19,931.96,974.41,995.44,1037.89,1074.60,1098.69,1128.90,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26,1147.26\r 91045142NV0010039,Anthem,26 Anthem Bronze X 6300 EPO,RA1,No,Bronze,26 Anthem Bronze X 6300 EPO,EPO,$0,$60,$150,$25,$60,"$6,300 + 40%","$6,300 + 40%","$6,300 + 40%","$6,300 + 40%","$6,300 + 40%","$6,300",40%,"$9,100",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$30,"$6,300 + 30%","$6,300 + 30%",Anthem EPO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,477.98,365.65,365.65,365.65,365.65,365.65,365.65,365.65,365.65,365.65,365.65,365.65,365.65,365.65,365.65,398.16,410.58,423.01,436.40,449.78,463.64,477.98,477.98,477.98,477.98,479.89,489.45,500.92,519.56,534.86,542.51,553.98,565.45,572.62,580.27,584.09,587.92,591.74,595.56,603.21,610.86,622.33,633.32,648.62,667.74,690.20,716.97,747.08,781.50,815.43,853.67,891.43,933.02,975.08,1020.49,1065.90,1115.13,1164.84,1217.89,1244.18,1297.24,1343.12,1373.24,1411.00,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94,1433.94\r 91145142NV0010040,Anthem,26 Anthem Silver Convenient Care X 5000,RA1,No,Silver,26 Anthem Silver Convenient Care X 5000,HMO,$0,$5,$85,$25,$50,"$1,000 + $5,000 + 50%","$5,000 + 40%","$5,000 + 50%","$5,000 + 40%","$950 + $5,000 + 50%","$5,000",40%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$45,"$5,000 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,413.84,316.59,316.59,316.59,316.59,316.59,316.59,316.59,316.59,316.59,316.59,316.59,316.59,316.59,316.59,344.73,355.49,366.25,377.84,389.42,401.42,413.84,413.84,413.84,413.84,415.50,423.77,433.70,449.84,463.09,469.71,479.64,489.57,495.78,502.40,505.71,509.02,512.33,515.64,522.27,528.89,538.82,548.34,561.58,578.13,597.58,620.76,646.83,676.63,706.01,739.12,771.81,807.82,844.23,883.55,922.86,965.49,1008.53,1054.46,1077.23,1123.16,1162.89,1188.96,1221.66,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52,1241.52\r 91245142NV0010041,Anthem,26 Anthem Silver Convenient Care X 5500,RA1,No,Silver,26 Anthem Silver Convenient Care X 5500,HMO,$0,$0,$60,"$5,000 + 30%",$50,"$650 + $5,500 + 50%",$50,"$5,500 + 30%","$5,500 + 30%","$1,000 + $5,500 + 50%","$5,500",30%,"$8,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$40,"$5,500 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,419.65,321.03,321.03,321.03,321.03,321.03,321.03,321.03,321.03,321.03,321.03,321.03,321.03,321.03,321.03,349.57,360.48,371.39,383.14,394.89,407.06,419.65,419.65,419.65,419.65,421.33,429.72,439.79,456.16,469.59,476.30,486.37,496.45,502.74,509.46,512.81,516.17,519.53,522.88,529.60,536.31,546.38,556.04,569.47,586.25,605.97,629.48,655.91,686.13,715.92,749.49,782.65,819.16,856.09,895.95,935.82,979.04,1022.69,1069.27,1092.35,1138.93,1179.22,1205.65,1238.81,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95,1258.95\r 91345142NV0010042,Anthem,26 Anthem Silver Convenient Care X 4500,RA1,No,Silver,26 Anthem Silver Convenient Care X 4500,HMO,$0,$5,$60,$25,$50,"$1,000 + $4,500 + 50%","$4,500 + 50%","$400 + $4,500 + 50%","$4,500 + 50%","$1,000 + $4,500 + 50%","$4,500",50%,"$8,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$45,"$4,500 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,424.90,325.05,325.05,325.05,325.05,325.05,325.05,325.05,325.05,325.05,325.05,325.05,325.05,325.05,325.05,353.94,364.99,376.04,387.93,399.83,412.15,424.90,424.90,424.90,424.90,426.60,435.10,445.30,461.87,475.46,482.26,492.46,502.66,509.03,515.83,519.23,522.63,526.03,529.43,536.22,543.02,553.22,562.99,576.59,593.59,613.56,637.35,664.12,694.71,724.88,758.87,792.44,829.40,866.80,907.16,947.53,991.29,1035.48,1082.65,1106.01,1153.18,1193.97,1220.74,1254.30,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70,1274.70\r 91445142NV0010043,Anthem,26 Anthem Silver X 5500,RA1,No,Silver,26 Anthem Silver X 5500,HMO,$0,$10,$60,"$5,500 + 25%",$50,"$650 + $5,500 + $25%",$50,"$5,500 + 25%","$5,500 + 25%","$1,000 + $5,500 + 25%","$5,500",25%,"$9,700",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$40,"$5,500 + 35%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,440.34,336.86,336.86,336.86,336.86,336.86,336.86,336.86,336.86,336.86,336.86,336.86,336.86,336.86,336.86,366.80,378.25,389.70,402.03,414.36,427.13,440.34,440.34,440.34,440.34,442.10,450.91,461.48,478.65,492.74,499.79,510.35,520.92,527.53,534.57,538.10,541.62,545.14,548.66,555.71,562.75,573.32,583.45,597.54,615.15,635.85,660.51,688.25,719.96,751.22,786.45,821.23,859.54,898.29,940.13,981.96,1027.31,1073.11,1121.99,1146.21,1195.08,1237.36,1265.10,1299.88,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02,1321.02\r 91545142NV0010044,Anthem,26 Anthem Silver X 6800,RA1,No,Silver,26 Anthem Silver X 6800,HMO,$0,$20,$80,$25,$50,"$500 + $6,800 + 45%","$6,800 + 45%","$6,800 + 45%","$6,800 + 45%","$1,000 + $6,800 + 50%","$6,800",45%,"$8,900",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$75,"$6,800 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,444.84,340.30,340.30,340.30,340.30,340.30,340.30,340.30,340.30,340.30,340.30,340.30,340.30,340.30,340.30,370.55,382.12,393.68,406.14,418.59,431.49,444.84,444.84,444.84,444.84,446.62,455.52,466.19,483.54,497.78,504.89,515.57,526.25,532.92,540.04,543.59,547.15,550.71,554.27,561.39,568.51,579.18,589.41,603.65,621.44,642.35,667.26,695.28,727.31,758.90,794.48,829.63,868.33,907.47,949.73,991.99,1037.81,1084.08,1133.45,1157.92,1207.30,1250.00,1278.03,1313.17,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52,1334.52\r 91645142NV0010045,Anthem,26 Anthem Silver X 6500,RA1,No,Silver,26 Anthem Silver X 6500,HMO,$0,$15,$60,"$6,500 + 40%",$50,"$500 + $6,500 + 40%",$75,"$6,500 + 40%","$6,500 + 40%","$1,000 + $6,500 + 40%","$6,500",40%,"$8,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$40,"$6,500 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,449.76,344.07,344.07,344.07,344.07,344.07,344.07,344.07,344.07,344.07,344.07,344.07,344.07,344.07,344.07,374.65,386.34,398.04,410.63,423.22,436.27,449.76,449.76,449.76,449.76,451.56,460.55,471.35,488.89,503.28,510.48,521.27,532.07,538.81,546.01,549.61,553.20,556.80,560.40,567.60,574.79,585.59,595.93,610.32,628.31,649.45,674.64,702.97,735.36,767.29,803.27,838.80,877.93,917.51,960.24,1002.96,1049.29,1096.07,1145.99,1170.73,1220.65,1263.83,1292.16,1327.69,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28,1349.28\r 91745142NV0010046,Anthem,26 Anthem Silver X 4200,RA1,No,Silver,26 Anthem Silver X 4200,HMO,$0,$25,$75,"$4,200 + 40%",$50,"$500 + $4,200 + 40%",$30,"$300 + $4,200 + 50%","$4,200 + 40%","$1,000 + $4,200 + 40%","$4,200",40%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$35,"$4,200 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,451.11,345.10,345.10,345.10,345.10,345.10,345.10,345.10,345.10,345.10,345.10,345.10,345.10,345.10,345.10,375.77,387.50,399.23,411.86,424.49,437.58,451.11,451.11,451.11,451.11,452.91,461.94,472.76,490.36,504.79,512.01,522.84,533.66,540.43,547.65,551.26,554.87,558.47,562.08,569.30,576.52,587.35,597.72,612.16,630.20,651.40,676.67,705.08,737.56,769.59,805.68,841.32,880.57,920.26,963.12,1005.98,1052.44,1099.36,1149.43,1174.24,1224.31,1267.62,1296.04,1331.68,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33,1353.33\r 91845142NV0010047,Anthem,26 Anthem Silver X 3500,RA1,No,Silver,26 Anthem Silver X 3500,HMO,$0,$20,$60,"$3,500 + 20%",$50,"$1,000 + $3,500 + 20%",$50,"$500 + $3,500 + 20%","$3,500 + 20%","$500 + $3,500 + 30%","$3,500",20%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$50,"$3,500 + 30%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,454.84,347.95,347.95,347.95,347.95,347.95,347.95,347.95,347.95,347.95,347.95,347.95,347.95,347.95,347.95,378.88,390.71,402.53,415.27,428.00,441.19,454.84,454.84,454.84,454.84,456.66,465.76,476.67,494.41,508.97,516.24,527.16,538.08,544.90,552.18,555.81,559.45,563.09,566.73,574.01,581.29,592.20,602.66,617.22,635.41,656.79,682.26,710.91,743.66,775.96,812.34,848.28,887.85,927.87,971.08,1014.29,1061.14,1108.45,1158.93,1183.95,1234.44,1278.10,1306.76,
9181342.69,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52,1364.52\r 91945142NV0010048,Anthem,26 Anthem Silver X 3300 Adult Dntal/Vision,RA1,No,Silver,26 Anthem Silver X 3300 Adult Dntal/Vision,HMO,$0,$10,$50,"$3,300 + 30%",$50,"$500 + $3,300 + 50%","$3,300 + 30%","$3,300 + $0","$3,300 + 30%","$3,300 + 30%","$3,300",30%,"$8,300",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$80,"$3,300 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,477.53,365.31,365.31,365.31,365.31,365.31,365.31,365.31,365.31,365.31,365.31,365.31,365.31,365.31,365.31,397.78,410.20,422.61,435.98,449.36,463.20,477.53,477.53,477.53,477.53,479.44,488.99,500.45,519.08,534.36,542.00,553.46,564.92,572.08,579.72,583.54,587.36,591.18,595.00,602.64,610.28,621.74,632.73,648.01,667.11,689.55,716.30,746.38,780.76,814.67,852.87,890.59,932.14,974.16,1019.53,1064.89,1114.08,1163.74,1216.75,1243.01,1296.02,1341.86,1371.94,1409.67,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59,1432.59\r 92045142NV0010049,Anthem,26 Anthem Silver X 3600 HSA,RA1,No,Silver,26 Anthem Silver X 3600 HSA,HMO,$0,"$3,600 + 25%","$3,600 + 25%","$3,600 + 25%","$3,600 + 25%","$3,600 + 50%","$3,600 + 25%","$3,600 + 25%","$3,600 + 25%","$500 + $3,600 + 50%","$3,600",25%,"$6,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$3,600 + 35%","$3,600 + 35%","$3,600 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,478.84,366.31,366.31,366.31,366.31,366.31,366.31,366.31,366.31,366.31,366.31,366.31,366.31,366.31,366.31,398.87,411.32,423.77,437.18,450.59,464.47,478.84,478.84,478.84,478.84,480.76,490.33,501.82,520.50,535.82,543.48,554.98,566.47,573.65,581.31,585.14,588.97,592.80,596.63,604.30,611.96,623.45,634.46,649.79,668.94,691.44,718.26,748.43,782.90,816.90,855.21,893.04,934.70,976.83,1022.32,1067.81,1117.13,1166.93,1220.08,1246.42,1299.57,1345.54,1375.71,1413.54,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52,1436.52\r 92145142NV0010050,Anthem,26 Anthem Silver X 5500 EPO,RA1,No,Silver,26 Anthem Silver X 5500 EPO,EPO,$0,$10,$45,"$5,500 + 30%",$25,"$500 + $5,500 + 30%",$50,"$5,500 + 30%","$5,500 + 30%","$1,000 + $5,500 + 30%","$5,500",30%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$75,"$5,500 + 40%",Anthem EPO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,568.34,434.78,434.78,434.78,434.78,434.78,434.78,434.78,434.78,434.78,434.78,434.78,434.78,434.78,434.78,473.43,488.20,502.98,518.89,534.81,551.29,568.34,568.34,568.34,568.34,570.61,581.98,595.62,617.79,635.97,645.07,658.71,672.35,680.87,689.96,694.51,699.06,703.60,708.15,717.25,726.34,739.98,753.05,771.24,793.97,820.68,852.51,888.32,929.24,969.59,1015.06,1059.95,1109.40,1159.41,1213.41,1267.40,1325.94,1385.04,1448.13,1479.39,1542.47,1597.04,1632.84,1677.74,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02,1705.02\r 92245142NV0010051,Anthem,26 Anthem Gold Convenient Care X 1000,RA1,No,Gold,26 Anthem Gold Convenient Care X 1000,HMO,$0,"Frist 2 Visits: $35 After: $1,000 + 25%","$1,000 + 25%","$1,000 + 25%",$50,"$600 + $1,000 + 40%","$1,000 + 25%","$250 + $1,000 + 25%","$1,000 + 25%","$1,000 + $1,000 + 40%","$1,000",25%,"$6,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$30,"$1,000 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,622.78,476.43,476.43,476.43,476.43,476.43,476.43,476.43,476.43,476.43,476.43,476.43,476.43,476.43,476.43,518.78,534.97,551.16,568.60,586.04,604.10,622.78,622.78,622.78,622.78,625.27,637.73,652.67,676.96,696.89,706.86,721.80,736.75,746.09,756.05,761.04,766.02,771.00,775.98,785.95,795.91,810.86,825.18,845.11,870.02,899.29,934.17,973.41,1018.25,1062.46,1112.29,1161.48,1215.67,1270.47,1329.64,1388.80,1452.95,1517.71,1586.84,1621.10,1690.22,1750.01,1789.25,1838.45,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34,1868.34\r 92345142NV0010052,Anthem,26 Anthem Gold X 1100,RA1,No,Gold,26 Anthem Gold X 1100,HMO,$0,"Frist 2 Visits: $35 After: $1,100 + 25%","$1,100 + 25%","$1,100 + 25%",$50,"$500 + $1,100 + 25%","$1,100 + 25%","$250 + $1,100 + 25%","$1,100 + 25%","$1,000 + $1,100 + 25%","$1,100",25%,"$6,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$40,"$1,100 + 30%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,663.25,507.39,507.39,507.39,507.39,507.39,507.39,507.39,507.39,507.39,507.39,507.39,507.39,507.39,507.39,552.49,569.73,586.98,605.55,624.12,643.35,663.25,663.25,663.25,663.25,665.90,679.17,695.09,720.95,742.18,7
92352.79,768.71,784.62,794.57,805.19,810.49,815.80,821.10,826.41,837.02,847.63,863.55,878.81,900.03,926.56,957.73,994.88,1036.66,1084.41,1131.50,1184.56,1236.96,1294.66,1353.03,1416.04,1479.05,1547.36,1616.34,1689.96,1726.44,1800.06,1863.73,1905.52,1957.91,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75,1989.75\r 92445142NV0010053,Ambetter,26 Ambetter Everyday Bronze,RA1,No,Bronze,26 Ambetter Everyday Bronze,HMO,$0,$40,$90,$50,$50,"$8,450 + 50%","$8,450 + 50%","$8,450 + 50%","$8,450 + 50%","$8,450 + 50%","$8,450",50%,"$10,150",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,"$8,450 + 45%","$8,450 + 45%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,326.11,249.47,249.47,249.47,249.47,249.47,249.47,249.47,249.47,249.47,249.47,249.47,249.47,249.47,249.47,271.65,280.13,288.61,297.74,306.87,316.33,326.11,326.11,326.11,326.11,327.41,333.94,341.76,354.48,364.92,370.13,377.96,385.79,390.68,395.90,398.51,401.12,403.72,406.33,411.55,416.77,424.60,432.10,442.53,455.58,470.90,489.17,509.71,533.19,556.34,582.43,608.20,636.57,665.26,696.24,727.23,760.81,794.73,830.93,848.86,885.06,916.37,936.91,962.68,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33,978.33\r 92545142NV0010054,Ambetter,26 Ambetter Choice Bronze HSA,RA1,No,Bronze,26 Ambetter Choice Bronze HSA,HMO,$0,"$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250",0%,"$7,250",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$7,250 + 0%","$7,250 + 0%","$7,250 + 0%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,353.14,270.15,270.15,270.15,270.15,270.15,270.15,270.15,270.15,270.15,270.15,270.15,270.15,270.15,270.15,294.17,303.35,312.53,322.42,332.30,342.55,353.14,353.14,353.14,353.14,354.55,361.62,370.09,383.86,395.16,400.81,409.29,417.76,423.06,428.71,431.54,434.36,437.19,440.01,445.66,451.31,459.79,467.91,479.21,493.34,509.93,529.71,551.96,577.38,602.46,630.71,658.61,689.33,720.41,753.95,787.50,823.88,860.60,899.80,919.22,958.42,992.32,1014.57,1042.47,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42,1059.42\r 92645142NV0010055,Ambetter,26 Ambetter Clarity Silver,RA1,No,Silver,26 Ambetter Clarity Silver,HMO,$0,$50,$90,$30,$65,"$8,000 + 50%",$90,"$8,000 + 50%","$8,000 + 50%","$8,000 + 50%","$8,000",50%,"$8,400",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,"$8,000 + $85","$8,000 + 50%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,386.63,295.77,295.77,295.77,295.77,295.77,295.77,295.77,295.77,295.77,295.77,295.77,295.77,295.77,295.77,322.06,332.12,342.17,352.99,363.82,375.03,386.63,386.63,386.63,386.63,388.18,395.91,405.19,420.27,432.64,438.83,448.10,457.38,463.18,469.37,472.46,475.55,478.65,481.74,487.93,494.11,503.39,512.28,524.66,540.12,558.29,579.95,604.30,632.14,659.59,690.52,721.06,754.70,788.73,825.46,862.18,902.01,942.22,985.13,1006.40,1049.31,1086.43,1110.79,1141.33,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89,1159.89\r 92745142NV0010056,Ambetter,26 Ambetter Focused Silver,RA1,No,Silver,26 Ambetter Focused Silver,HMO,$0,$40,$85,$50,$60,"$6,300 + 50%","$6,300 + 50%","$6,300 + 50%","$6,300 + 50%","$6,300 + 50%","$6,300",50%,"$8,400",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$75,"$6,300 + 45%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,416.04,318.27,318.27,318.27,318.27,318.27,318.27,318.27,318.27,318.27,318.27,318.27,318.27,318.27,318.27,346.56,357.38,368.20,379.84,391.49,403.56,416.04,416.04,416.04,416.04,417.70,426.02,436.01,452.24,465.55,472.21,482.19,492.18,498.42,505.07,508.40,511.73,515.06,518.39,525.04,531.70,541.68,551.25,564.57,581.21,600.76,624.06,650.27,680.23,709.76,743.05,775.91,812.11,848.72,888.25,927.77,970.
92762,1013.89,1060.07,1082.95,1129.13,1169.07,1195.28,1228.15,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12,1248.12\r 92845142NV0010057,Ambetter,26 Ambetter Complete Silver,RA1,No,Silver,26 Ambetter Complete Silver,HMO,$0,$30,$60,$30,$60,"$5,950 + 40%","$5,950 + 40%","$5,950 + 40%","$5,950 + 40%","$5,950 + 40%","$5,950",40%,"$8,850",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$55,"$5,950 + 45%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,416.76,318.82,318.82,318.82,318.82,318.82,318.82,318.82,318.82,318.82,318.82,318.82,318.82,318.82,318.82,347.16,358.00,368.83,380.50,392.17,404.26,416.76,416.76,416.76,416.76,418.43,426.76,436.76,453.02,466.35,473.02,483.02,493.03,499.28,505.95,509.28,512.61,515.95,519.28,525.95,532.62,542.62,552.21,565.54,582.21,601.80,625.14,651.40,681.40,710.99,744.33,777.26,813.52,850.19,889.78,929.37,972.30,1015.64,1061.90,1084.83,1131.09,1171.10,1197.35,1230.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28,1250.28\r 92945142NV0010058,Ambetter,26 Ambetter Principal Silver,RA1,No,Silver,26 Ambetter Principal Silver,HMO,$0,$30,$60,"$8,200 + $0",$50,"$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200",0%,"$8,200",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$50,"$8,200 + $0",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,417.95,319.73,319.73,319.73,319.73,319.73,319.73,319.73,319.73,319.73,319.73,319.73,319.73,319.73,319.73,348.15,359.02,369.89,381.59,393.29,405.41,417.95,417.95,417.95,417.95,419.62,427.98,438.01,454.31,467.69,474.37,484.40,494.43,500.70,507.39,510.73,514.08,517.42,520.77,527.45,534.14,544.17,553.78,567.16,583.88,603.52,626.93,653.26,683.35,713.02,746.46,779.48,815.84,852.62,892.32,932.03,975.08,1018.54,1064.94,1087.92,1134.32,1174.44,1200.77,1233.79,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85,1253.85\r 93045142NV0010059,Ambetter,26 Ambetter Everyday Gold,RA1,No,Gold,26 Ambetter Everyday Gold,HMO,$0,$35,$55,$35,$45,$800 + 35%,$800 + 35%,$800 + 35%,$800 + 35%,$800 + 35%,$800,35%,"$7,250",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$60,$800 + 45%,Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,453.97,347.29,347.29,347.29,347.29,347.29,347.29,347.29,347.29,347.29,347.29,347.29,347.29,347.29,347.29,378.16,389.96,401.76,414.47,427.19,440.35,453.97,453.97,453.97,453.97,455.79,464.87,475.76,493.47,507.99,515.26,526.15,537.05,543.86,551.12,554.75,558.38,562.01,565.65,572.91,580.17,591.07,601.51,616.04,634.20,655.53,680.96,709.56,742.24,774.47,810.79,846.65,886.15,926.10,969.23,1012.35,1059.11,1106.32,1156.72,1181.68,1232.07,1275.66,1304.26,1340.12,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91,1361.91\r 93145142NV0010060,Ambetter,26 Ambetter Complete Gold,RA1,No,Gold,26 Ambetter Complete Gold,HMO,$0,$15,$35,$15,$35,"$1,450 + 20%","$1,450 + 20%","$1,450 + 20%","$1,450 + 20%","$1,450 + 20%","$1,450",20%,"$7,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$30,"$1,450 + 20%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,468.87,358.69,358.69,358.69,358.69,358.69,358.69,358.69,358.69,358.69,358.69,358.69,358.69,358.69,358.69,390.57,402.76,414.95,428.08,441.21,454.80,468.87,468.87,468.87,468.87,470.75,480.12,491.38,509.66,524.67,532.17,543.42,554.67,561.71,569.21,572.96,576.71,580.46,584.21,591.71,599.22,610.47,621.25,636.26,655.01,677.05,703.31,732.84,766.60,799.89,837.40,874.44,915.23,956.49,1001.04,1045.58,1093.87,1142.64,1194.68,1220.47,1272.51,1317.52,1347.06,1384.10,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61,1406.61\r 93245142NV0010061,Ambetter,26 Ambetter Elite Gold,RA1,No,Gold,26 Ambetter Elite Gold,HMO,$0,$5,$60,$40,$35,30%,$75,$75,$200,30%,$0,30%,"$6,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$50,45%,Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,506.77,387.68,387.68,387.68,387.68,387.68,387.68,387.68,387.68,387.68,387.68,387.68,387.68,387.68,387.68,422.14,435.32,448.49,462.68,476.87,491.57,506.77,506.77,506.77,506.77,508.80,518.93,531.09,550.86,567.08,575.18,587.35,599.51,607.11,615.22,619.27,623.33,627.38,631.44,639.54,647.65,659.81,671.47,687.69,707.96,731.78,760.16,792.08,828.57,864.55,905.09,945.13,989.22,1033.81,1081.95,1130.10,1182.29,1235.00,1291.25,1319.12,1375.37,1424.02,1455.95,1495.99,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31,1520.31\r 93345142NV0010062,CareSource,26 CareSource Low Premium Bronze 10600,RA1,No,Bronze,26 CareSource Low Premium Bronze 10600,HMO,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$10,600 + $0","$10,600 + $0",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,320.74,245.37,245.37,245.37,245.37,245.37,245.37,245.37,245.37,245.37,245.37,245.37,245.37,245.37,245.37,267.18,275.52,283.85,292.84,301.82,311.12,320.74,320.74,320.74,320.74,322.02,328.44,336.14,348.64,358.91,364.04,371.74,379.44,384.25,389.38,391.94,394.51,397.08,399.64,404.77,409.91,417.60,424.98,435.24,448.07,463.15,481.11,501.32,524.41,547.18,572.84,598.18,626.08,654.31,684.78,715.25,748.29,781.64,817.25,834.89,870.49,901.28,921.49,946.82,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22,962.22\r 93445142NV0010063,CareSource,26 CareSource Core Bronze 7500,RA1,No,Bronze,26 CareSource Core Bronze 7500,HMO,$0,$50,$100,"$7,500 + 50%",$75,"$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500",50%,"$10,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$7,500 + 50%","$7,500 + 50%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,325.08,248.69,248.69,248.69,248.69,248.69,248.69,248.69,248.69,248.69,248.69,248.69,248.69,248.69,248.69,270.79,279.24,287.70,296.80,305.90,315.33,325.08,325.08,325.08,325.08,326.38,332.88,340.68,353.36,363.76,368.97,376.77,384.57,389.45,394.65,397.25,399.85,402.45,405.05,410.25,415.45,423.25,430.73,441.13,454.14,469.42,487.62,508.10,531.51,554.59,580.59,606.27,634.56,663.16,694.05,724.93,758.41,792.22,828.30,846.18,882.27,913.47,933.95,959.64,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24,975.24\r 93545142NV0010064,CareSource,26 CareSource Low Premium Silver Medicaid Transition,RA1,No,Silver,26 CareSource Low Premium Silver Medicaid Transition,HMO,$0,$40,$75,$50,$70,"$6,200 + 50%","$6,200 + $200","$6,200 + $250","$6,200 + 40%","$6,200 + $500","$6,200",40%,"$9,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$75,"$6,200 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,398.87,305.14,305.14,305.14,305.14,305.14,305.14,305.14,305.14,305.14,305.14,305.14,305.14,305.14,305.14,332.26,342.63,353.00,364.17,375.34,386.90,398.87,398.87,398.87,398.87,400.47,408.44,418.02,433.57,446.34,452.72,462.29,471.86,477.85,484.23,487.42,490.61,493.80,496.99,503.37,509.76,519.33,528.50,541.27,557.22,575.97,598.31,623.43,652.15,680.47,712.38,743.89,778.59,813.69,851.59,889.48,930.56,972.05,1016.32,1038.26,1082.53,1120.82,1145.95,1177.46,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61,1196.61\r 93645142NV0010065,CareSource,26 CareSource Healthy Heart Silver 5000,RA1,No,Silver,26 CareSource Healthy Heart Silver 5000,HMO,$0,$30,$50,$75,$70,"$5,000 + 50%","$5,000 + $400","$5,000 + $300","$5,000 + 50%","$5,000 + $600","$5,000",50%,"$9,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$100,"$5,000 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,418.91,320.47,320.47,320.47,320.47,320.47,320.47,320.47,320.47,320.47,320.47,320.47,320.47,320.47,320.47,348.95,359.84,370.74,382.46,394.19,406.34,418.91,418.91,418.91,418.91,420.59,428.96,439.02,455.36,468.76,475.46,485.52,495.57,501.85,508.56,511.9
9361,515.26,518.61,521.96,528.66,535.37,545.42,555.06,568.46,585.22,604.91,628.37,654.76,684.92,714.66,748.17,781.27,817.71,854.58,894.37,934.17,977.32,1020.88,1067.38,1090.42,1136.92,1177.14,1203.53,1236.62,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73,1256.73\r 93745142NV0010066,CareSource,26 CareSource Diabetes Silver 5000,RA1,No,Silver,26 CareSource Diabetes Silver 5000,HMO,$0,$30,$50,$75,$70,"$5,000 + 50%","$5,000 + $400","$5,000 + $300","$5,000 + 50%","$5,000 + $600","$5,000",50%,"$9,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$100,"$5,000 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,421.62,322.54,322.54,322.54,322.54,322.54,322.54,322.54,322.54,322.54,322.54,322.54,322.54,322.54,322.54,351.21,362.17,373.13,384.94,396.74,408.97,421.62,421.62,421.62,421.62,423.31,431.74,441.86,458.30,471.79,478.54,488.66,498.78,505.10,511.85,515.22,518.59,521.97,525.34,532.08,538.83,548.95,558.65,572.14,589.00,608.82,632.43,658.99,689.35,719.28,753.01,786.32,823.00,860.10,900.16,940.21,983.64,1027.49,1074.29,1097.48,1144.28,1184.75,1211.31,1244.62,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86,1264.86\r 93845142NV0010067,CareSource,26 CareSource Silver HSA 5500,RA1,No,Silver,26 CareSource Silver HSA 5500,HMO,$0,"$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500",0%,"$5,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$5,500 + $0","$5,500 + $0","$5,500 + $0",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,472.38,361.37,361.37,361.37,361.37,361.37,361.37,361.37,361.37,361.37,361.37,361.37,361.37,361.37,361.37,393.49,405.77,418.06,431.28,444.51,458.21,472.38,472.38,472.38,472.38,474.27,483.72,495.05,513.48,528.59,536.15,547.49,558.83,565.91,573.47,577.25,581.03,584.81,588.59,596.14,603.70,615.04,625.90,641.02,659.91,682.12,708.57,738.33,772.34,805.88,843.67,880.99,922.09,963.66,1008.53,1053.41,1102.06,1151.19,1203.62,1229.61,1282.04,1327.39,1357.15,1394.47,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14,1417.14\r 93945142NV0010068,CareSource,26 CareSource Low Premium Gold 1500,RA1,No,Gold,26 CareSource Low Premium Gold 1500,HMO,$0,$20,$50,$30,$40,"$1,500 + 10%","$1,500 + 25%","$1,500 + 25%","$1,500 + 25%","$1,500 + 25%","$1,500",25%,"$8,400",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$20,$50,"$1,500 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,470.68,360.07,360.07,360.07,360.07,360.07,360.07,360.07,360.07,360.07,360.07,360.07,360.07,360.07,360.07,392.08,404.31,416.55,429.73,442.91,456.56,470.68,470.68,470.68,470.68,472.56,481.98,493.27,511.63,526.69,534.22,545.52,556.81,563.87,571.41,575.17,578.94,582.70,586.47,594.00,601.53,612.83,623.65,638.71,657.54,679.66,706.02,735.67,769.56,802.98,840.63,877.82,918.77,960.19,1004.90,1049.62,1098.10,1147.05,1199.29,1225.18,1277.43,1322.61,1352.26,1389.45,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04,1412.04\r 94045142NV0010069,CareSource,26 CareSource Healthy Heart Gold Medicaid Transition,RA1,No,Gold,26 CareSource Healthy Heart Gold Medicaid Transition,HMO,$0,$10,$40,$30,$30,"$3,000 + 10%","$3,000 + 30%","$3,000 + 30%","$3,000 + 30%","$3,000 + $500","$3,000",30%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$60,"$3,000 + 30%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,477.06,364.95,364.95,364.95,364.95,364.95,364.95,364.95,364.95,364.95,364.95,364.95,364.95,364.95,364.95,397.39,409.79,422.20,435.56,448.91,462.75,477.06,477.06,477.06,477.06,478.97,488.51,499.96,518.56,533.83,541.46,552.91,564.36,571.52,579.15,582.97,586.78,590.60,594.42,602.05,609.68,621.13,632.10,647.37,666.45,688.87,715.59,745.64,779.99,813.86,852.03,889.72,931.22,973.20,1018.52,1063.84,1112.98,1162.60,1215.55,1241.79,1294.74,1340.54,1370.59,1408.28,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18,1431.18\r 94145142NV0010070,CareSource,26 CareSource Diabetes Gold 3000,RA1,No,Gold,26 CareSource Diabetes Gold 3000,HMO,$0,$10,$40,$30,$30,"$3,000 + 10%","$3,000 + 30%","$3,000 + 30%","$3,000 + 30%","$3,000 + $500","$3,000",30%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$60,"$3,000 + 30%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,482.17,368.86,368.86,368.86,368.86,368.86,368.86,368.86,368.86,368.86,368.86,368.86,368.86,368.86,368.86,401.65,414.18,426.72,440.22,453.72,467.70,482.17,482.17,482.17,482.17,484.10,493.74,505.31,524.12,539.55,547.26,558.84,570.41,577.64,585.35,589.21,593.07,596.93,600.78,608.50,616.21,627.79,638.88,654.30,673.59,696.25,723.26,753.63,788.35,822.58,861.16,899.25,941.20,983.63,1029.43,1075.24,1124.90,1175.05,1228.57,1255.09,1308.61,1354.90,1385.27,1423.37,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51,1446.51\r 94245142NV0010071,Health Plan of Nevada,26 HPN Catastrophic,RA1,No,Catastrophic,26 HPN Catastrophic,HMO,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,262.74,201.00,201.00,201.00,201.00,201.00,201.00,201.00,201.00,201.00,201.00,201.00,201.00,201.00,201.00,218.86,225.69,232.52,239.88,247.24,254.86,262.74,262.74,262.74,262.74,263.79,269.05,275.35,285.60,294.01,298.21,304.52,310.82,314.76,318.97,321.07,323.17,325.27,327.37,331.58,335.78,342.09,348.13,356.54,367.05,379.40,394.11,410.66,429.58,448.23,469.25,490.01,512.87,535.99,560.95,585.91,612.97,640.30,669.46,683.91,713.08,738.30,754.85,775.61,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22,788.22\r 94345142NV0010072,Health Plan of Nevada,26 Virtual HPN,RA1,No,Bronze,26 Virtual HPN,HMO,$0,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$10,600 + $0","$10,600 + $0",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,306.07,234.14,234.14,234.14,234.14,234.14,234.14,234.14,234.14,234.14,234.14,234.14,234.14,234.14,234.14,254.96,262.91,270.87,279.44,288.01,296.89,306.07,306.07,306.07,306.07,307.29,313.42,320.76,332.70,342.49,347.39,354.74,362.08,366.67,371.57,374.02,376.47,378.91,381.36,386.26,391.16,398.50,405.54,415.34,427.58,441.97,459.11,478.39,500.42,522.16,546.64,570.82,597.45,624.38,653.46,682.54,714.06,745.89,779.87,796.70,830.67,860.06,879.34,903.52,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21,918.21\r 94445142NV0010073,Health Plan of Nevada,26 MyHPN Bronze 3,RA1,No,Bronze,26 MyHPN Bronze 3,HMO,$0,$25,$120,"$10,600 + $0",$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$10,600 + $0","$10,600 + $0",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,319.49,244.41,244.41,244.41,244.41,244.41,244.41,244.41,244.41,244.41,244.41,244.41,244.41,244.41,244.41,266.14,274.44,282.75,291.69,300.64,309.91,319.49,319.49,319.49,319.49,320.77,327.16,334.83,347.29,357.51,362.62,370.29,377.96,382.75,387.86,390.42,392.97,395.53,398.08,403.20,408.3
9441,415.98,423.32,433.55,446.33,461.34,479.24,499.36,522.37,545.05,570.61,595.85,623.64,651.76,682.11,712.46,745.37,778.60,814.06,831.63,867.10,897.77,917.89,943.13,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47,958.47\r 94545142NV0010074,Health Plan of Nevada,26 MyHPN Select Bronze 1,RA1,No,Bronze,26 MyHPN Select Bronze 1,HMO,$0,"$8,700 + $0","$8,700 + $0","$8,700 + $0","$8,700 + $0","$8,700 + $0","$8,700 + $0","$8,700 + $0","$8,700 + $0","$8,700 + $0","$8,700",0%,"$8,700",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$40,"$8,700 + $0","$8,700 + $0",HPN On Exchange Select,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,320.28,245.01,245.01,245.01,245.01,245.01,245.01,245.01,245.01,245.01,245.01,245.01,245.01,245.01,245.01,266.79,275.12,283.45,292.42,301.38,310.67,320.28,320.28,320.28,320.28,321.56,327.97,335.65,348.14,358.39,363.52,371.20,378.89,383.70,388.82,391.38,393.94,396.51,399.07,404.19,409.32,417.00,424.37,434.62,447.43,462.48,480.42,500.60,523.66,546.40,572.02,597.32,625.19,653.37,683.80,714.22,747.21,780.52,816.07,833.69,869.24,899.99,920.16,945.47,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84,960.84\r 94645142NV0010075,Health Plan of Nevada,26 MyHPN Bronze 2,RA1,No,Bronze,26 MyHPN Bronze 2,HMO,$0,$50,$120,$50,$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$30,$120,"$10,600 + $0",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,329.00,251.69,251.69,251.69,251.69,251.69,251.69,251.69,251.69,251.69,251.69,251.69,251.69,251.69,251.69,274.06,282.61,291.17,300.38,309.59,319.13,329.00,329.00,329.00,329.00,330.32,336.90,344.79,357.62,368.15,373.42,381.31,389.21,394.14,399.41,402.04,404.67,407.30,409.93,415.20,420.46,428.36,435.93,446.45,459.61,475.08,493.50,514.23,537.92,561.27,587.59,613.59,642.21,671.16,702.42,733.67,767.56,801.77,838.29,856.39,892.91,924.49,945.22,971.21,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00,987.00\r 94745142NV0010076,Health Plan of Nevada,26 MyHPN Plus Bronze 4,RA1,No,Bronze,26 MyHPN Plus Bronze 4,HMO,$0,$50,$100,$50,$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0",,"$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$30,$120,"$10,600 + $0",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,329.66,252.19,252.19,252.19,252.19,252.19,252.19,252.19,252.19,252.19,252.19,252.19,252.19,252.19,252.19,274.61,283.18,291.75,300.98,310.21,319.77,329.66,329.66,329.66,329.66,330.98,337.57,345.48,358.34,368.89,374.16,382.08,389.99,394.93,400.21,402.84,405.48,408.12,410.76,416.03,421.31,429.22,436.80,447.35,460.54,476.03,494.49,515.26,538.99,562.40,588.77,614.82,643.50,672.51,703.82,735.14,769.10,803.38,839.97,858.10,894.70,926.34,947.11,973.16,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98,988.98\r 94845142NV0010077,Health Plan of Nevada,26 MyHPN Plus Bronze 6,RA1,No,Bronze,26 MyHPN Plus Bronze 6,HMO,$0,$25,"$8,100 + $40","$8,100 + $25",$50,"$8,100 + $600","$8,100 + 40%","$8,100 + 40%","$8,100 + 40%","$8,100 + 40%","$8,100",40%,"$9,850",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$8,100 + 40%","$8,100 + 40%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,333.17,254.88,254.88,254.88,254.88,254.88,254.88,254.88,254.88,254.88,254.88,254.88,254.88,254.88,254.88,277.53,286.19,294.86,304.18,313.51,323.17,333.17,333.17,333.17,333.17,334.50,341.17,349.16,362.16,372.82,378.15,386.14,394.14,399.14,404.47,407.13,409.80,412.46,415.13,420.46,425.79,433.79,441.45,452.11,465.44,481.10,499.76,520.74,544.73,568.39,595.04,621.36,650.35,679.67,711.32,742.97,777.29,811.94,848.92,867.24,904.22,936.21,957.20,983.52,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51,999.51\r 94945142NV0010078,Health Plan of Nevada,26 MyHPN Plus Bronze 5,RA1,No,Bronze,26 MyHPN Plus Bronze 5,HMO,$0,$35,"$7,800 + $60","$7,800 + $50",$50,"$7,800 + $600","$7,800 + 50%","$7,800 + 50%","$7,800 + 50%","$7,800 + 50%","$7,800",50%,"$9,550",(Not Covered),(Not Covered),(Not Covered),"$1,750",$25,$75,"$1,750 + 50%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,348.72,266.77,266.77,266.77,266.77,266.77,266.77,266.77,266.77,266.77,266.77,266.77,266.77,266.77,266.77,290.48,299.55,308.62,318.38,328.15,338.26,348.72,348.72,348.72,348.72,350.11,357.09,365.46,379.06,390.22,395.80,404.17,412.54,417.77,423.35,426.14,428.93,431.72,434.51,440.08,445.66,454.03,462.05,473.21,487.16,503.55,523.08,545.05,570.16,594.92,622.81,650.36,680.70,711.39,744.52,777.65,813.56,849.83,888.54,907.72,946.43,979.90,1001.87,1029.42,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16,1046.16\r 95045142NV0010079,Health Plan of Nevada,26 MyHPN Focus Copay Bronze 1,RA1,No,Bronze,26 MyHPN Focus Copay Bronze 1,HMO,$0,$45,$130,$45,$70,"$2,200",$120,$400,$700,"$3,000",$0,50%,"$10,600",(Not Covered),(Not Covered),(Not Covered),"$4,500",$25,"$4,500 + 40%","$4,500 + 45%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,363.13,277.79,277.79,277.79,277.79,277.79,277.79,277.79,277.79,277.79,277.79,277.79,277.79,277.79,277.79,302.49,311.93,321.37,331.54,341.71,352.24,363.13,363.13,363.13,363.13,364.58,371.85,380.56,394.72,406.34,412.15,420.87,429.58,435.03,440.84,443.74,446.65,449.55,452.46,458.27,464.08,472.80,481.15,492.77,507.29,524.36,544.70,567.57,593.72,619.50,648.55,677.24,708.83,740.79,775.28,809.78,847.18,884.95,925.26,945.23,985.53,1020.40,1043.27,1071.96,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39,1089.39\r 95145142NV0010080,Health Plan of Nevada,26 MyHPN Select Network Silver 3,RA1,No,Silver,26 MyHPN Select Network Silver 3,HMO,$0,$10,$120,$40,$50,"$5,600 + $1,200","$5,600 + 50%","$5,600 + 50%","$5,600 + 50%","$5,600 + 50%","$5,600",50%,"$8,450",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,"$5,600 + 50%","$5,600 + 50%",HPN On Exchange Select,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,372.25,284.77,284.77,284.77,284.77,284.77,284.77,284.77,284.77,284.77,284.77,284.77,284.77,284.77,284.77,310.08,319.76,329.44,339.86,350.29,361.08,372.25,372.25,372.25,372.25,373.74,381.18,390.12,404.64,416.55,422.50,431.44,440.37,445.96,451.91,454.89,457.87,460.85,463.82,469.78,475.74,484.67,493.23,505.14,520.03,537.53,558.38,581.83,608.63,635.06,664.84,694.25,726.63,759.39,794.75,830.12,868.46,907.17,948.49,968.97,1010.29,1046.02,1069.47,1098.88,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75,1116.75\r 95245142NV0010081,Health Plan of Nevada,26 MyHPN Select Network Silver 4,RA1,No,Silver,26 MyHPN Select Network Silver 4,HMO,$0,$15,$75,$20,$50,"$6,000 + 35%","$6,000 + 35%","$6,000 + 35%","$6,000 + 35%","$6,000 + 35%","$6,000",35%,"$9,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,"$6,000 + $75","$6,000 + 50%",HPN On Exchange Select,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,393.71,301.19,301.19,301.19,301.19,301.19,301.19,301.19,301.19,301.19,301.19,301.19,301.19,301.19,301.19,327.96,338.20,348.43,359.46,370.48,381.90,393.71,393.71,393.71,393.71,395.28,403.16,412.61,427.96,440.56,446.86,456.31,465.76,471.66,477.96,481.11,484.26,487.41,490.56,496.86,503.16,512.61,521.67,534.26,550.01,568.52,590.57,615.37,643.72,671.67,703.17,734.27,768.52,803.17,840.57,877.97,918.53,959.47,1003.17,1024.83,1068.53,1106.33,1131.13,1162.23,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13,1181.13\r 95345142NV0010082,Health Plan of Nevada,26 MyHPN Select Network Silver 1,RA1,No,Silver,26 MyHPN Select Network Silver 1,HMO,$0,$0,"$5,450 + 40%","$5,450 + 40%",$50,"$5,450 + 50%","$5,450 + 40%","$5,450 + 40%","$5,450 + 40%","$5,450 + 40%","$5,450",40%,"$9,300",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,"$5,450 + 40%","$5,450 + 50%",HPN On Exchange Select,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,394.10,301.49,301.49,301.49,301.49,301.49,301.49,301.49,301.49,301.49,301.49,301.49,301.49,301.49,301.49,328.29,338.53,348.78,359.81,370.85,382.28,394.10,394.10,394.10,394.10,395.68,403.56,413.02,428.39,441.00,447.30,456.76,466.22,472.13,478.44,481.59,484.74,487.90,491.05,497.35,503.66,513.12,522.18,534.79,550.56,569.08,591.15,615.98,644.35,672.33,703.8
9536,735.00,769.28,803.96,841.40,878.84,919.44,960.42,1004.17,1025.84,1069.59,1107.42,1132.25,1163.38,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30,1182.30\r 95445142NV0010083,Health Plan of Nevada,26 MyHPN Silver 11,RA1,No,Silver,26 MyHPN Silver 11,HMO,$0,$0,$85,$25,$50,"$6,500 + $1,000","$6,500 + 50%","$6,500 + 50%","$6,500 + 50%","$6,500 + 50%","$6,500",50%,"$8,900",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,$75,"$6,500 + 50%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,404.14,309.17,309.17,309.17,309.17,309.17,309.17,309.17,309.17,309.17,309.17,309.17,309.17,309.17,309.17,336.65,347.16,357.66,368.98,380.30,392.02,404.14,404.14,404.14,404.14,405.76,413.84,423.54,439.30,452.23,458.70,468.40,478.10,484.16,490.63,493.86,497.09,500.33,503.56,510.02,516.49,526.19,535.49,548.42,564.58,583.58,606.21,631.67,660.77,689.46,721.79,753.72,788.88,824.45,862.84,901.23,942.86,984.89,1029.75,1051.98,1096.84,1135.63,1161.09,1193.02,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42,1212.42\r 95545142NV0010084,Health Plan of Nevada,26 MyHPN Silver 10,RA1,No,Silver,26 MyHPN Silver 10,HMO,$0,$30,$95,$30,$50,"$4,000 + $1,000","$4,000 + 50%","$4,000 + 50%","$4,000 + 50%","$4,000 + 50%","$4,000",50%,"$7,300",(Not Covered),(Not Covered),(Not Covered),"$1,850",$25,"$1,850 + $85","$1,850 + 50%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,427.64,327.14,327.14,327.14,327.14,327.14,327.14,327.14,327.14,327.14,327.14,327.14,327.14,327.14,327.14,356.22,367.34,378.46,390.44,402.41,414.81,427.64,427.64,427.64,427.64,429.35,437.90,448.17,464.84,478.53,485.37,495.63,505.90,512.31,519.15,522.58,526.00,529.42,532.84,539.68,546.52,556.79,566.62,580.31,597.41,617.51,641.46,668.40,699.19,729.55,763.77,797.55,834.75,872.39,913.01,953.64,997.68,1042.16,1089.63,1113.15,1160.61,1201.67,1228.61,1262.39,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92,1282.92\r 95645142NV0010085,Health Plan of Nevada,26 MyHPN Silver 1.1,RA1,No,Silver,26 MyHPN Silver 1.1,HMO,$0,$25,$40,$25,$50,"$5,400 + $1,500","$5,400 + 40%","$5,400 + 40%","$5,400 + 40%","$5,400 + 40%","$5,400",40%,"$9,700",(Not Covered),(Not Covered),(Not Covered),"$1,500",$25,$50,"$1,500 + 50%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,452.13,345.88,345.88,345.88,345.88,345.88,345.88,345.88,345.88,345.88,345.88,345.88,345.88,345.88,345.88,376.62,388.38,400.14,412.79,425.45,438.57,452.13,452.13,452.13,452.13,453.94,462.98,473.83,491.47,505.93,513.17,524.02,534.87,541.65,548.89,552.50,556.12,559.74,563.35,570.59,577.82,588.67,599.07,613.54,631.63,652.88,678.20,706.68,739.23,771.33,807.50,843.22,882.56,922.35,965.30,1008.25,1054.82,1101.84,1152.03,1176.89,1227.08,1270.49,1298.97,1334.69,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39,1356.39\r 95745142NV0010086,Health Plan of Nevada,26 MyHPN Silver 12,RA1,No,Silver,26 MyHPN Silver 12,HMO,$0,$5,$95,$30,$50,"$7,000 + $1,000","$7,000 + 40%","$7,000 + 40%","$7,000 + 40%","$7,000 + 40%","$7,000",40%,"$8,950",(Not Covered),(Not Covered),(Not Covered),"$1,950",$10,$40,"$7,000 + 50%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,453.86,347.20,347.20,347.20,347.20,347.20,347.20,347.20,347.20,347.20,347.20,347.20,347.20,347.20,347.20,378.07,389.87,401.67,414.37,427.08,440.24,453.8
9576,453.86,453.86,453.86,455.68,464.75,475.65,493.35,507.87,515.13,526.02,536.92,543.72,550.99,554.62,558.25,561.88,565.51,572.77,580.03,590.93,601.36,615.89,634.04,655.37,680.79,709.38,742.06,774.29,810.59,846.45,885.93,925.87,968.99,1012.11,1058.86,1106.06,1156.44,1181.40,1231.78,1275.35,1303.94,1339.79,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58,1361.58\r 95845142NV0010087,Health Plan of Nevada,26 MyHPN Silver 5,RA1,No,Silver,26 MyHPN Silver 5,HMO,$0,$15,$85,$15,$50,"$5,200 + $1,200","$5,200 + 30%","$5,200 + 30%","$5,200 + 30%","$5,200 + 30%","$5,200",30%,"$9,750",(Not Covered),(Not Covered),(Not Covered),"$1,500",$25,$50,"$5,200 + 50%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,455.45,348.42,348.42,348.42,348.42,348.42,348.42,348.42,348.42,348.42,348.42,348.42,348.42,348.42,348.42,379.39,391.23,403.07,415.83,428.58,441.79,455.45,455.45,455.45,455.45,457.27,466.38,477.31,495.07,509.65,516.94,527.87,538.80,545.63,552.92,556.56,560.20,563.85,567.49,574.78,582.07,593.00,603.47,618.05,636.26,657.67,683.18,711.87,744.66,777.00,813.43,849.41,889.04,929.12,972.39,1015.65,1062.56,1109.93,1160.49,1185.54,1236.09,1279.81,1308.51,1344.49,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35,1366.35\r 95945142NV0010088,Health Plan of Nevada,26 MyHPN Copay Focus Silver 1,RA1,No,Silver,26 MyHPN Copay Focus Silver 1,HMO,$0,$30,$90,$35,$55,"$1,700",$115,$375,$550,"$2,700",$0,50%,"$10,600",(Not Covered),(Not Covered),(Not Covered),"$2,500",$10,"$2,500 + $85","$2,500 + 40%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,463.11,354.28,354.28,354.28,354.28,354.28,354.28,354.28,354.28,354.28,354.28,354.28,354.28,354.28,354.28,385.77,397.81,409.85,422.82,435.79,449.22,463.11,463.11,463.11,463.11,464.96,474.22,485.34,503.40,518.22,525.63,536.74,547.86,554.81,562.22,565.92,569.63,573.33,577.04,584.44,591.85,602.97,613.62,628.44,646.96,668.73,694.67,723.84,757.18,790.07,827.11,863.70,903.99,944.74,988.74,1032.74,1080.44,1128.60,1180.00,1205.48,1256.88,1301.34,1330.52,1367.10,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33,1389.33\r 96045142NV0010089,Health Plan of Nevada,26 MyHPN Select Network Gold 1,RA1,No,Gold,26 MyHPN Select Network Gold 1,HMO,$0,$15,$30,$10,$50,"$2,000 + 20%","$2,000 + 20%","$2,000 + 20%","$2,000 + 20%","$2,000 + 20%","$2,000",20%,"$8,500",(Not Covered),(Not Covered),(Not Covered),$500,$25,$50,$500 + 20%,HPN On Exchange Select,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,527.15,403.27,403.27,403.27,403.27,403.27,403.27,403.27,403.27,403.27,403.27,403.27,403.27,403.27,403.27,439.12,452.82,466.53,481.29,496.05,511.34,527.15,527.15,527.15,527.15,529.26,539.80,552.45,573.01,589.88,598.32,610.97,623.62,631.53,639.96,644.18,648.39,652.61,656.83,665.26,673.70,686.35,698.47,715.34,736.43,761.20,790.73,823.94,861.89,899.32,941.49,983.13,1029.00,1075.39,1125.47,1175.54,1229.84,1284.66,1343.18,1372.17,1430.69,1481.29,1514.50,1556.15,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45,1581.45\r 96145142NV0010090,Health Plan of Nevada,26 MyHPN Gold 6,RA1,No,Gold,26 MyHPN Gold 6,HMO,$0,$0,$50,$15,$50,"$1,800 + 3
9610%",$65,"$1,800 + 30%","$1,800 + 30%","$1,800 + 30%","$1,800",30%,"$7,900",(Not Covered),(Not Covered),(Not Covered),$500,$5,$50,$500 + 30%,HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,533.10,407.82,407.82,407.82,407.82,407.82,407.82,407.82,407.82,407.82,407.82,407.82,407.82,407.82,407.82,444.07,457.93,471.79,486.72,501.65,517.11,533.10,533.10,533.10,533.10,535.23,545.89,558.69,579.48,596.54,605.07,617.86,630.66,638.65,647.18,651.45,655.71,659.98,664.24,672.77,681.30,694.10,706.36,723.42,744.74,769.80,799.65,833.24,871.62,909.47,952.12,994.23,1040.61,1087.52,1138.17,1188.81,1243.72,1299.16,1358.34,1387.66,1446.83,1498.01,1531.60,1573.71,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30,1599.30\r 96245142NV0010091,Hometown Health,26 Renown Catastrophic HMO,RA2,No,Catastrophic,26 Renown Catastrophic HMO,HMO,$0,"1st 3 Visits: $55 After: $10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,343.60,262.85,262.85,262.85,262.85,262.85,262.85,262.85,262.85,262.85,262.85,262.85,262.85,262.85,262.85,286.22,295.15,304.09,313.71,323.33,333.29,343.60,343.60,343.60,343.60,344.97,351.85,360.09,373.49,384.49,389.99,398.23,406.48,411.63,417.13,419.88,422.63,425.38,428.13,433.62,439.12,447.37,455.27,466.27,480.01,496.16,515.40,537.05,561.79,586.18,613.67,640.81,670.71,700.94,733.59,766.23,801.62,837.35,875.49,894.39,932.53,965.52,987.16,1014.31,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80,1030.80\r 96345142NV0010092,Hometown Health,26 Renown Sensible Bronze HMO,RA2,No,Bronze,26 Renown Sensible Bronze HMO,HMO,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0",$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Renown Sensible HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,315.52,241.37,241.37,241.37,241.37,241.37,241.37,241.37,241.37,241.37,241.37,241.37,241.37,241.37,241.37,262.83,271.03,279.24,288.07,296.90,306.05,315.52,315.52,315.52,315.52,316.78,323.09,330.66,342.97,353.07,358.12,365.69,373.26,377.99,383.04,385.57,388.09,390.61,393.14,398.19,403.23,410.81,418.06,428.16,440.78,455.61,473.28,493.16,515.88,538.28,563.52,588.44,615.90,643.66,673.64,703.61,736.11,768.92,803.94,821.30,856.32,886.61,906.49,931.42,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56,946.56\r 96445142NV0010093,Hometown Health,26 Renown Bronze HMO,RA2,No,Bronze,26 Renown Bronze HMO,HMO,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0",$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,350.27,267.96,267.96,267.96,267.96,267.96,267.96,267.96,267.96,267.96,267.96,267.96,267.96,267.96,267.96,291.77,300.88,309.99,319.80,329.60,339.76,350.27,350.27,350.27,350.27,351.67,358.68,367.08,380.74,391.95,397.56,405.96,414.37,419.62,425.23,428.03,430.83,433.63,436.44,442.04,447.65,456.05,464.11,475.32,489.33,505.79,525.41,547.47,572.69,597.56,625.58,653.25,683.73,714.55,747.83,781.10,817.18,853.61,892.49,911.75,950.63,984.26,1006.33,1034.00,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81,1050.81\r 96545142NV0010094,Hometown Health,26 Renown Bronze HMO HSA,RA2,No,Bronze,26 Renown Bronze HMO HSA,HMO,$0,"$5,000 + $45","$5,000 + $90","$5,000 + 50%","$5,000 + $50","$5,000 + 50%","$5,000 + 50%","$5,000 + 50%","$5,000 + 50%","$5,000 + 50%","$5,000",50%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$5,000 + $20","$5,000 + 50%","$5,000 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,399.23,305.41,305.41,305.41,305.41,305.41,305.41,305.41,305.41,305.41,305.41,305.41,305.41,305.41,305.41,332.56,342.94,353.32,364.50,375.68,387.25,399.23,399.23,399.23,399.23,400.83,408.81,418.39,433.96,446.74,453.13,462.71,472.29,478.28,484.67,487.86,491.05,494.25,497.44,503.83,510.22,519.80,528.98,541.76,557.72,576.49,598.85,624.00,652.74,681.09,713.02,744.56,779.30,814.43,852.36,890.28,931.40,972.92,1017.24,1039.20,1083.51,1121.84,1146.99,1178.53,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69,1197.69\r 96645142NV0010095,Hometown Health,26 Renown Bronze Plus HMO,RA2,No,Bronze,26 Renown Bronze Plus HMO,HMO,$0,$45,$90,"$5,225 + 50%",$50,"$5,225 + 50%","$5,225 + 50%","$5,225 + 50%","$5,225 + 50%","$5,225 + 50%","$5,225",50%,"$10,450",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$20,50%,"$5,225 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,410.45,313.99,313.99,313.99,313.99,313.99,313.99,313.99,313.99,313.99,313.99,313.99,313.99,313.99,313.99,341.90,352.58,363.25,374.74,386.23,398.14,410.45,410.45,410.45,410.45,412.09,420.30,430.15,446.16,459.29,465.86,475.71,485.56,491.72,498.29,501.57,504.85,508.14,511.42,517.99,524.56,534.41,543.85,556.98,573.40,592.69,615.68,641.53,671.09,700.23,733.06,765.49,801.20,837.32,876.31,915.30,957.58,1000.27,1045.83,1068.40,1113.96,1153.36,1179.22,1211.65,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35,1231.35\r 96745142NV0010096,Hometown Health,26 Renown Sensible Silver HMO,RA2,No,Silver,26 Renown Sensible Silver HMO,HMO,$0,"$5,975 + $0","$5,975 + $0","$5,975 + $0",$50,"$5,975 + $0","$5,975 + $0","$5,975 + $0","$5,975 + $0","$5,975 + $0","$5,975",0%,"$5,975",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$5,975 + $0","$5,975 + $0","$5,975 + $0",Renown Sensible HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,402.44,307.87,307.87,307.87,307.87,307.87,307.87,307.87,307.87,307.87,307.87,307.87,307.87,307.87,307.87,335.23,345.70,356.16,367.43,378.70,390.37,402.44,402.44,402.44,402.44,404.05,412.10,421.76,437.45,450.33,456.77,466.43,476.09,482.12,488.56,491.78,495.00,498.22,501.44,507.88,514.32,523.98,533.23,546.11,562.21,581.12,603.66,629.01,657.99,686.56,718.76,750.55,785.56,820.98,859.21,897.44,938.89,980.75,1025.42,1047.55,1092.22,1130.86,1156.21,1188.00,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32,1207.32\r 96845142NV0010097,Hometown Health,26 Renown Silver 68 HMO,RA2,No,Silver,26 Renown Silver 68 HMO,HMO,$0,"$6,775 + 0%","$6,775 + 0%","$6,775 + 0%",$50,"$6,775 + 0%","$6,775 + 0%","$6,775 + 0%","$6,775 + 0%","$6,775 + 0%","$6,775",0%,"$6,775",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$6,775 + 0%","$6,775 + 0%","$6,775 + 0%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,412.03,315.20,315.20,315.20,315.20,315.20,315.20,315.20,315.20,315.20,315.20,315.20,315.20,315.20,315.20,343.22,353.93,364.65,376.18,387.72,399.67,412.03,412.03,412.03,412.03,413.68,421.92,431.81,447.88,461.06,467.65,477.54,487.43,493.61,500.20,503.50,506.80,510.09,513.39,519.98,526.57,536.46,545.94,559.12,575.61,594.97,618.05,644.00,673.67,702.92,735.89,768.44,804.28,840.54,879.68,918.83,961.27,1004.12,1049.85,1072.51,1118.25,1157.80,1183.76,1216.31,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09,1236.09\r 96945142NV0010098,Hometown Health,26 Renown Silver 70 HMO,RA2,No,Silver,26 Renown Silver 70 HMO,HMO,$0,"$5,975 + 0%","$5,975 + 0%","$5,975 + 0%",$50,"$5,975 + 0%","$5,975 + 0%","$5,975 + 0%","$5,975 + 0%","$5,975 + 0%","$5,975",0%,"$5,975",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$5,975 + 0%","$5,975 + 0%","$5,975 + 0%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,446.77,341.78,341.78,341.78,341.78,341.78,341.78,341.78,341.78,341.78,341.78,341.78,341.78,341.78,341.78,372.16,383.78,395.39,407.90,420.41,433.37,446.77,446.77,446.77,446.77,448.56,457.49,468.21,485.64,499.94,507.08,517.81,528.53,535.23,542.38,545.95,549.53,553.10,556.68,563.82,570.97,581.69,591.97,606.27,624.14,645.14,670.16,698.30,730.47,762.19,797.93,833.23,872.10,911.41,953.85,996.30,1042.31,1088.78,1138.37,1162.94,1212.53,1255.42,1283.57,1318.87,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31,1340.31\r 97045142NV0010099,Hometown Health,26 Renown Sensible Silver HMO HSA,RA2,No,Silver,26 Renown Sensible Silver HMO HSA,HMO,$0,"$3,450 + $5","$3,450 + $80","$3,450 + 50%","$3,450 + $50","$3,450 + 50%","$3,450 + 50%","$3,450 + 50%","$3,450 + 50%","$3,450 + 50%","$3,450",50%,"$6,900",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$3,450 + $13","$3,450 + $55","$3,450 + 50%",Renown Sensible HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,398.86,305.13,305.13,305.13,305.13,305.13,305.13,305.13,305.13,305.13,305.13,305.13,305.13,305.13,305.13,332.25,342.62,352.99,364.16,375.33,386.89,398.86,398.86,398.86,398.86,400.46,408.43,418.01,433.56,446.32,452.71,462.28,471.85,477.83,484.22,487.41,490.60,493.79,496.98,503.36,509.74,519.32,528.49,541.25,557.21,575.95,598.29,623.42,652.14,680.46,712.36,743.87,778.57,813.67,851.57,889.46,930.54,972.02,1016.30,1038.23,1082.51,1120.80,1145.92,1177.43,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58,1196.58\r 97145142NV0010100,Hometown Health,26 Renown Silver 68 HMO HSA,RA2,No,Silver,26 Renown Silver 68 HMO HSA,HMO,$0,"$3,900 + $5","$3,900 + $85","$3,900 + 50%","$3,900 + $50","$3,900 + 50%","$3,900 + 50%","$3,900 + 50%","$3,900 + 50%","$3,900 + 50%","$3,900",50%,"$7,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$3,900 + $13","$3,900 + $55","$3,900 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,408.44,312.46,312.46,312.46,312.46,312.46,312.46,312.46,312.46,312.46,312.46,312.46,312.46,312.46,312.46,340.23,350.85,361.47,372.91,384.34,396.19,408.44,408.44,408.44,408.44,410.07,418.24,428.05,443.97,457.04,463.58,473.38,483.18,489.31,495.85,499.11,502.38,505.65,508.92,515.45,521.99,531.79,541.18,554.25,570.59,589.79,612.66,638.39,667.80,696.80,729.47,761.74,797.27,833.22,872.02,910.82,952.89,995.37,1040.71,1063.17,1108.51,1147.72,1173.45,1205.71,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32,1225.32\r 97245142NV0010101,Hometown Health,26 Renown Silver 70 HMO HSA,RA2,No,Silver,26 Renown Silver 70 HMO HSA,HMO,$0,"$3,450 + $5","$3,450 + $80","$3,450 + 50%","$3,450 + $50","$3,450 + 50%","$3,450 + 50%","$3,450 + 50%","$3,450 + 50%","$3,450 + 50%","$3,450",50%,"$6,900",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$3,450 + $13","$3,450 + $55","$3,450 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,442.81,338.75,338.75,338.75,338.75,338.75,338.75,338.75,338.75,338.75,338.75,338.75,338.75,338.75,338.75,368.86,380.37,391.89,404.29,416.68,429.53,442.81,442.81,442.81,442.81,444.58,453.44,464.06,481.33,495.50,502.59,513.22,523.84,530.49,537.57,541.11,544.66,548.20,551.74,558.83,565.91,576.54,586.72,600.89,618.61,639.42,664.22,692.11,723.99,755.43,790.86,825.84,864.37,903.33,945.40,987.47,1033.08,1079.13,1128.28,1152.63,1201.79,1244.30,1272.19,1307.18,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43,1328.43\r 97345142NV0010102,Hometown Health,26 Renown Silver 5 HMO,RA2,No,Silver,26 Renown Silver 5 HMO,HMO,$0,$5,$80,"$4,525 + 50%",$5
9730,"$4,525 + 50%","$4,525 + 50%","$4,525 + 50%","$4,525 + 50%","$4,525 + 50%","$4,525",50%,"$9,050",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$13,$55,"$4,525 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,475.33,363.63,363.63,363.63,363.63,363.63,363.63,363.63,363.63,363.63,363.63,363.63,363.63,363.63,363.63,395.95,408.31,420.67,433.98,447.29,461.07,475.33,475.33,475.33,475.33,477.23,486.74,498.15,516.68,531.89,539.50,550.91,562.32,569.45,577.05,580.85,584.66,588.46,592.26,599.87,607.47,618.88,629.81,645.02,664.04,686.38,713.00,742.94,777.16,810.91,848.94,886.49,927.84,969.67,1014.83,1059.99,1108.94,1158.38,1211.14,1237.28,1290.05,1335.68,1365.62,1403.17,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99,1425.99\r 97445142NV0010103,Hometown Health,26 Renown Silver 10 HMO,RA2,No,Silver,26 Renown Silver 10 HMO,HMO,$0,$10,$80,"$4,500 + 50%",$50,"$4,500 + 50%","$4,500 + 50%","$4,500 + 50%","$4,500 + 50%","$4,500 + 50%","$4,500",50%,"$9,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$13,$55,"$4,500 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,463.99,354.95,354.95,354.95,354.95,354.95,354.95,354.95,354.95,354.95,354.95,354.95,354.95,354.95,354.95,386.50,398.57,410.63,423.62,436.61,450.07,463.99,463.99,463.99,463.99,465.85,475.13,486.26,504.36,519.20,526.63,537.76,548.90,555.86,563.28,567.00,570.71,574.42,578.13,585.56,592.98,604.11,614.79,629.63,648.19,670.00,695.99,725.22,758.62,791.57,828.69,865.34,905.71,946.54,990.62,1034.70,1082.49,1130.74,1182.25,1207.77,1259.27,1303.81,1333.04,1369.70,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97,1391.97\r 97545142NV0010104,Hometown Health,26 Renown Silver 20 HMO,RA2,No,Silver,26 Renown Silver 20 HMO,HMO,$0,$20,$80,"$4,450 + 50%",$50,"$4,450 + 50%","$4,450 + 50%","$4,450 + 50%","$4,450 + 50%","$4,450 + 50%","$4,450",50%,"$8,900",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$13,$55,"$4,450 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,474.67,363.12,363.12,363.12,363.12,363.12,363.12,363.12,363.12,363.12,363.12,363.12,363.12,363.12,363.12,395.40,407.74,420.08,433.37,446.66,460.43,474.67,474.67,474.67,474.67,476.57,486.06,497.45,515.97,531.16,538.75,550.14,561.53,568.65,576.25,580.05,583.84,587.64,591.44,599.03,606.63,618.02,628.94,644.13,663.11,685.42,712.01,741.91,776.09,809.79,847.76,885.26,926.56,968.33,1013.42,1058.51,1107.41,1156.77,1209.46,1235.57,1288.25,1333.82,1363.73,1401.23,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01,1424.01\r 97645142NV0010105,Hometown Health,26 Renown Silver Plus HMO,RA2,No,Silver,26 Renown Silver Plus HMO,HMO,$0,$40,$80,$80,$50,"$2,500 (Waived if Admitted)",$80,$500,$500,50%,$0,50%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$55,50%,Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,447.20,342.11,342.11,342.11,342.11,342.11,342.11,342.11,342.11,342.11,342.11,342.11,342.11,342.11,342.11,372.52,384.14,395.77,408.29,420.82,433.78,447.20,447.20,447.20,447.20,448.99,457.93,468.67,486.11,500.42,507.57,518.30,529.04,535.75,542.90,546.48,550.06,553.63,557.21,564.37,571.52,582.25,592.54,606.85,624.74,645.76,670.80,698.97,731.17,762.92,798.70,834.03,872.93,912.29,954.77,997.26,1043.32,1089.83,1139.47,1164.06,1213.70,1256.63,1284.81,1320.13,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60,1341.60\r 97745142NV0010106,Hometown Health,26 Renown Sensible Gold HMO,RA2,No,Gold,26 Renown Sensible Gold HMO,HMO,$0,$5,$50,"$2,300 + 30%",$50,"$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300",30%,"$4,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$40,"$2,300 + 50%",Renown Sensible HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,572.41,437.89,437.89,437.89,437.89,437.89,437.89,437.89,437.89,437.89,437.89,437.89,437.89,437.89,437.89,476.82,491.70,506.58,522.61,538.64,555.24,572.41,572.41,572.41,572.41,574.70,586.15,599.89,622.21,640.53,649.69,663.42,677.16,685.75,694.91,699.49,704.06,708.64,713.22,722.38,731.54,745.28,758.44,776.76,799.66,826.56,858.62,894.68,935.89,976.53,1022.32,1067.54,1117.34,1167.72,1222.10,1276.47,1335.43,1394.96,1458.50,1489.98,1553.52,1608.47,1644.53,1689.75,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23,1717.23\r 97845142NV0010107,Hometown Health,26 Renown Gold HMO,RA2,No,Gold,26 Renown Gold HMO,HMO,$0,$5,$50,"$2,300 + 30%",$50,"$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300",30%,"$4,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$40,"$2,300 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,635.69,486.30,486.30,486.30,486.30,486.30,486.30,486.30,486.30,486.30,486.30,486.30,486.30,486.30,486.30,529.53,546.06,562.59,580.38,598.18,616.62,635.69,635.69,635.69,635.69,638.23,650.95,666.20,691.00,711.34,721.51,736.76,752.02,761.56,771.73,776.81,781.90,786.98,792.07,802.24,812.41,827.67,842.29,862.63,888.06,917.94,953.54,993.58,1039.35,1084.49,1135.34,1185.56,1240.87,1296.81,1357.20,1417.59,1483.06,1549.18,1619.74,1654.70,1725.26,1786.29,1826.34,1876.56,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07,1907.07\r 97945142NV0010108,Hometown Health,26 Renown Gold Plus HMO,RA2,No,Gold,26 Renown Gold Plus HMO,HMO,$0,$5,$50,$50,$50,"$850 (Waived if Admitted)",$50,$200,$250,30%,$0,30%,"$7,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$40,$200,Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,641.64,490.85,490.85,490.85,490.85,490.85,490.85,490.85,490.85,490.85,490.85,490.85,490.85,490.85,490.85,534.49,551.17,567.85,585.82,603.78,622.39,641.64,641.64,641.64,641.64,644.21,657.04,672.44,697.46,718.00,728.26,743.66,759.06,768.68,778.95,784.08,789.22,794.35,799.48,809.75,820.02,835.42,850.17,870.71,896.37,926.53,962.46,1002.88,1049.08,1094.64,1145.97,1196.66,1252.48,1308.95,1369.90,1430.86,1496.95,1563.68,1634.90,1670.19,1741.41,1803.01,1843.43,1894.12,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92,1924.92\r 98045142NV0010109,Hometown Health,26 Hometown Bronze EPO,RA2,No,Bronze,26 Hometown Bronze EPO,EPO,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0",$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,408.13,312.22,3
98012.22,312.22,312.22,312.22,312.22,312.22,312.22,312.22,312.22,312.22,312.22,312.22,312.22,339.97,350.58,361.20,372.62,384.05,395.89,408.13,408.13,408.13,408.13,409.76,417.93,427.72,443.64,456.70,463.23,473.02,482.82,488.94,495.47,498.73,502.00,505.26,508.53,515.06,521.59,531.39,540.77,553.83,570.16,589.34,612.20,637.91,667.29,696.27,728.92,761.16,796.67,832.59,871.36,910.13,952.17,994.61,1039.92,1062.36,1107.66,1146.85,1172.56,1204.80,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39,1224.39\r 98145142NV0010110,Hometown Health,26 Hometown Bronze EPO HSA,RA2,No,Bronze,26 Hometown Bronze EPO HSA,EPO,$0,"$5,000 + $45","$5,000 + $90","$5,000 + 50%","$5,000 + $50","$5,000 + 50%","$5,000 + 50%","$5,000 + 50%","$5,000 + 50%","$5,000 + 50%","$5,000",50%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$5,000 + $20","$5,000 + 50%","$5,000 + 50%",Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,464.76,355.54,355.54,355.54,355.54,355.54,355.54,355.54,355.54,355.54,355.54,355.54,355.54,355.54,355.54,387.15,399.23,411.31,424.33,437.34,450.82,464.76,464.76,464.76,464.76,466.62,475.91,487.07,505.19,520.07,527.50,538.66,549.81,556.78,564.22,567.94,571.65,575.37,579.09,586.53,593.96,605.12,615.81,630.68,649.27,671.11,697.14,726.42,759.88,792.88,830.06,866.78,907.21,948.11,992.26,1036.41,1084.29,1132.62,1184.21,1209.77,1261.36,1305.98,1335.26,1371.97,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28,1394.28\r 98245142NV0010111,Hometown Health,26 Hometown Bronze Plus EPO,RA2,No,Bronze,26 Hometown Bronze Plus EPO,EPO,$0,$45,$90,"$5,225 + 50%",$50,"$5,225 + 50%","$5,225 + 50%","$5,225 + 50%","$5,225 + 50%","$5,225 + 50%","$5,225",50%,"$10,450",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$20,50%,"$5,225 + 50%",Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,475.02,363.39,363.39,363.39,363.39,363.39,363.39,363.39,363.39,363.39,363.39,363.39,363.39,363.39,363.39,395.69,408.04,420.39,433.69,446.99,460.77,475.02,475.02,475.02,475.02,476.92,486.42,497.82,516.35,531.55,539.15,550.55,561.95,569.07,576.67,580.47,584.27,588.07,591.87,599.48,607.08,618.48,629.40,644.60,663.60,685.93,712.53,742.46,776.66,810.38,848.39,885.91,927.24,969.04,1014.17,1059.29,1108.22,1157.62,1210.35,1236.48,1289.20,1334.81,1364.73,1402.26,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06,1425.06\r 98345142NV0010112,Hometown Health,26 Hometown Silver 68 EPO,RA2,No,Silver,26 Hometown Silver 68 EPO,EPO,$0,"$6,775 + 0%","$6,775 + 0%","$6,775 + 0%",$50,"$6,775 + 0%","$6,775 + 0%","$6,775 + 0%","$6,775 + 0%","$6,775 + 0%","$6,775",0%,"$6,775",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$6,775 + 0%","$6,775 + 0%","$6,775 + 0%",Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,483.97,370.24,370.24,370.24,370.24,370.24,370.24,370.24,370.24,370.24,370.24,370.24,370.24,370.24,370.24,403.15,415.73,428.31,441.86,455.42,469.45,483.97,483.97,483.97,483.97,485.91,495.59,507.20,526.08,541.56,549.31,560.92,572.54,579.80,587.54,591.41,595.28,599.15,603.03,610.77,618.51,630.13,641.26,656.75,676.11,698.85,725.96,756.45,791.29,825.65,864.37,902.60,944.71,987.30,1033.28,1079.25,1129.10,1179.43,1233.16,1259.77,1313.49,1359.96,1390.45,1428.68,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91,1451.91\r 98445142NV0010113,Hometown Health,26 Hometown Silver 68 EPO HSA,RA2,No,Silver,26 Hometown Silver 68 EPO HSA,EPO,$0,"$3,900 + $5","$3,900 + $85","$3,900 + 50%","$3,900 + $50","$3,900 + 50%","$3,900 + 50%","$3,900 + 50%","$3,900 + 50%","$3,900 + 50%","$3,900",50%,"$7,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$3,900 + $13","$3,900 + $55","$3,900 + 50%",Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,480.17,367.33,367.33,367.33,367.33,367.33,367.33,367.33,367.33,367.33,367.33,367.33,367.33,367.33,367.33,399.98,412.47,424.95,438.40,451.84,465.76,480.17,480.17,480.17,480.17,482.09,491.69,503.22,521.94,537.31,544.99,5
98456.52,568.04,575.24,582.93,586.77,590.61,594.45,598.29,605.97,613.66,625.18,636.23,651.59,670.80,693.37,720.26,750.51,785.08,819.17,857.58,895.52,937.29,979.55,1025.16,1070.78,1120.24,1170.17,1223.47,1249.88,1303.18,1349.28,1379.53,1417.46,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51,1440.51\r 98545142NV0010114,Hometown Health,26 Hometown Silver Plus EPO,RA2,No,Silver,26 Hometown Silver Plus EPO,EPO,$0,$40,$80,$80,$50,"$2,500 (Waived if Admitted)",$80,$500,$500,50%,$0,50%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$55,50%,Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,515.12,394.07,394.07,394.07,394.07,394.07,394.07,394.07,394.07,394.07,394.07,394.07,394.07,394.07,394.07,429.09,442.49,455.88,470.30,484.73,499.67,515.12,515.12,515.12,515.12,517.18,527.48,539.85,559.94,576.42,584.66,597.02,609.39,617.11,625.36,629.48,633.60,637.72,641.84,650.08,658.32,670.69,682.53,699.02,719.62,743.83,772.68,805.13,842.22,878.79,920.00,960.70,1005.51,1050.84,1099.78,1148.72,1201.77,1255.35,1312.53,1340.86,1398.04,1447.49,1479.94,1520.63,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36,1545.36\r 98645142NV0010115,Hometown Health,26 Hometown Gold EPO,RA2,No,Gold,26 Hometown Gold EPO,EPO,$0,$5,$50,"$2,300 + 30%",$50,"$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300",30%,"$4,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$40,"$2,300 + 50%",Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,729.11,557.77,557.77,557.77,557.77,557.77,557.77,557.77,557.77,557.77,557.77,557.77,557.77,557.77,557.77,607.35,626.31,645.26,665.68,686.09,707.24,729.11,729.11,729.11,729.11,732.03,746.61,764.11,792.54,815.87,827.54,845.04,862.54,873.47,885.14,890.97,896.81,902.64,908.47,920.14,931.80,949.30,966.07,989.40,1018.57,1052.83,1093.67,1139.60,1192.09,1243.86,1302.19,1359.79,1423.22,1487.38,1556.65,1625.92,1701.01,1776.84,1857.77,1897.87,1978.80,2048.80,2094.73,2152.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33,2187.33\r 98745142NV0010116,Hometown Health,26 Hometown Gold Plus EPO,RA2,No,Gold,26 Hometown Gold Plus EPO,EPO,$0,$5,$50,$50,$50,"$850 (Waived if Admitted)",$50,$200,$250,30%,$0,30%,"$7,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$40,$200,Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,731.77,559.80,559.80,559.80,559.80,559.80,559.80,559.80,559.80,559.80,559.80,559.80,559.80,559.80,559.80,609.56,628.59,647.62,668.11,688.60,709.82,731.77,731.77,731.77,731.77,734.70,749.33,766.89,795.43,818.85,830.56,848.12,865.68,876.66,888.37,894.22,900.08,905.93,911.79,923.49,935.20,952.76,969.60,993.01,1022.28,1056.68,1097.66,1143.76,1196.44,1248.40,1306.94,1364.75,1428.42,1492.81,1562.33,1631.85,1707.22,1783.32,1864.55,1904.80,1986.02,2056.27,2102.38,2160.19,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31,2195.31\r 98845142NV0010117,Anthem,26 Anthem Catastrophic X,RA2,No,Catastrophic,26 Anthem Catastrophic X,HMO,$0,"1st 3 Visits: $40 After: $10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,364.21,278.62,278.62,278.62,278.62,278.62,278.62,278.62,278.62,278.62,278.62,278.62,278.62,278.62,278.62,303.39,312.86,322.33,332.52,342.72,353.28,3
98864.21,364.21,364.21,364.21,365.67,372.95,381.69,395.90,407.55,413.38,422.12,430.86,436.32,442.15,445.06,447.98,450.89,453.81,459.63,465.46,474.20,482.58,494.23,508.80,525.92,546.32,569.26,595.48,621.34,650.48,679.25,710.94,742.99,777.59,812.19,849.70,887.58,928.01,948.04,988.47,1023.43,1046.38,1075.15,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63,1092.63\r 98945142NV0010118,Anthem,26 Anthem Bronze X 10600,RA2,No,Bronze,26 Anthem Bronze X 10600,HMO,$0,$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,427.50,327.04,327.04,327.04,327.04,327.04,327.04,327.04,327.04,327.04,327.04,327.04,327.04,327.04,327.04,356.11,367.22,378.34,390.31,402.28,414.68,427.50,427.50,427.50,427.50,429.21,437.76,448.02,464.69,478.37,485.21,495.47,505.73,512.15,518.99,522.41,525.83,529.25,532.67,539.51,546.35,556.61,566.44,580.12,597.22,617.31,641.25,668.18,698.96,729.32,763.52,797.29,834.48,872.10,912.71,953.33,997.36,1041.82,1089.27,1112.78,1160.24,1201.28,1228.21,1261.98,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50,1282.50\r 99045142NV0010119,Anthem,26 Anthem Bronze X 8200,RA2,No,Bronze,26 Anthem Bronze X 8200,HMO,$0,"$8,200 + 40%","$8,200 + 40%",$50,$75,"$500 + $8,200 + 50%",$120,"$8,200 + 50%","$8,200 + 40%","$8,200 + 50%","$8,200",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$8,200 + 40%","$8,200 + 50%","$8,200 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,429.20,328.34,328.34,328.34,328.34,328.34,328.34,328.34,328.34,328.34,328.34,328.34,328.34,328.34,328.34,357.52,368.68,379.84,391.86,403.88,416.32,429.20,429.20,429.20,429.20,430.92,439.50,449.80,466.54,480.27,487.14,497.44,507.74,514.18,521.05,524.48,527.92,531.35,534.78,541.65,548.52,558.82,568.69,582.42,599.59,619.76,643.80,670.84,701.74,732.22,766.55,800.46,837.80,875.57,916.34,957.12,1001.32,1045.96,1093.60,1117.21,1164.85,1206.05,1233.09,1267.00,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60,1287.60\r 99145142NV0010120,Anthem,26 Anthem Bronze X 5500,RA2,No,Bronze,26 Anthem Bronze X 5500,HMO,$0,$50,"$5,500 + 40%","$5,500 + 40%",$50,"$500 + $5,500 + 40%","$5,500 + 40%","$250 + $5,500 + 40%","$5,500 + 40%","$1,000 + $5,500 + 40%","$5,500",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,$90,"$5,500 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,445.26,340.62,340.62,340.62,340.62,340.62,340.62,340.62,340.62,340.62,340.62,340.62,340.62,340.62,340.62,370.90,382.48,394.06,406.52,418.99,431.90,445.26,445.26,445.26,445.26,447.04,455.95,466.63,484.00,498.25,505.37,516.06,526.74,533.42,540.55,544.11,547.67,551.23,554.79,561.92,569.04,579.73,589.97,
991604.22,622.03,642.96,667.89,695.94,728.00,759.61,795.23,830.41,869.15,908.33,950.63,992.93,1038.79,1085.10,1134.52,1159.01,1208.44,1251.18,1279.23,1314.41,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78,1335.78\r 99245142NV0010121,Anthem,26 Anthem Bronze X 6000,RA2,No,Bronze,26 Anthem Bronze X 6000,HMO,$0,$40,$100,"$6,000 + 30%",$50,"$500 + $6,000 + 30%","$6,000 + 30%","$500 + $6,000 + 30%","$6,000 + 30%","$500 + $6,000 + 40%","$6,000",30%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$30,"$6,000 + 30%","$6,000 + 30%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,447.41,342.27,342.27,342.27,342.27,342.27,342.27,342.27,342.27,342.27,342.27,342.27,342.27,342.27,342.27,372.69,384.33,395.96,408.49,421.01,433.99,447.41,447.41,447.41,447.41,449.20,458.15,468.89,486.33,500.65,507.81,518.55,529.29,536.00,543.16,546.74,550.31,553.89,557.47,564.63,571.79,582.53,592.82,607.14,625.03,646.06,671.12,699.30,731.52,763.28,799.07,834.42,873.34,912.72,955.22,997.72,1043.81,1090.34,1140.00,1164.61,1214.27,1257.22,1285.41,1320.75,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23,1342.23\r 99345142NV0010122,Anthem,26 Anthem Bronze X 7000 Adult Dntal/Vision,RA2,No,Bronze,26 Anthem Bronze X 7000 Adult Dntal/Vision,HMO,$0,$40,$90,"$7,000 + 40%",$75,"$7,000 + 40%","$7,000 + 40%","$7,000 + 0%","$7,000 + 40%","$7,000 + 40%","$7,000",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,"$7,000 + $75","$7,000 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,460.77,352.49,352.49,352.49,352.49,352.49,352.49,352.49,352.49,352.49,352.49,352.49,352.49,352.49,352.49,383.82,395.80,407.78,420.68,433.58,446.95,460.77,460.77,460.77,460.77,462.61,471.83,482.89,500.86,515.60,522.97,534.03,545.09,552.00,559.37,563.06,566.75,570.43,574.12,581.49,588.86,599.92,610.52,625.26,643.70,665.35,691.16,720.18,753.36,786.07,822.94,859.34,899.42,939.97,983.74,1027.52,1074.98,1122.90,1174.04,1199.38,1250.53,1294.76,1323.79,1360.19,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31,1382.31\r 99445142NV0010123,Anthem,26 Anthem Bronze X 8050 for HSA,RA2,No,Bronze,26 Anthem Bronze X 8050 for HSA,HMO,$0,"$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050",0%,"$8,050",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$8,050 + 0%","$8,050 + 0%","$8,050 + 0%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,467.07,357.31,357.31,357.31,357.31,357.31,357.31,357.31,357.31,357.31,357.31,357.31,357.31,357.31,357.31,389.07,401.21,413.36,426.43,439.51,453.06,467.07,467.07,467.07,467.07,468.94,478.28,489.49,507.71,522.65,530.12,541.33,552.54,559.55,567.02,570.76,574.50,578.23,581.97,589.44,596.92,608.13,618.87,633.81,652.50,674.45,700.61,730.03,763.66,796.82,834.19,871.09,911.72,952.82,997.19,1041.57,1089.67,1138.25,1190.09,1215.78,1267.63,1312.47,1341.89,1378.79,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21,1401.21\r 99545142NV0010124,Anthem,26 Anthem Silver X 5500,RA2,No,Silver,26 Anthem Silver X 5500,HMO,$0,$10,$60,"$5,500 + 25%",$50,"$650 + $5,500 + $25%",$50,"$5,500 + 25%","$5,500 + 25%","$1,000 + $5,500 + 25%","$5,500",25%,"$9,700",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$40,"$5,500 + 35%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,537.81,411.42,411.42,411.42,411.42,411.42,411.42,411.42,411.42,411.42,411.42,411.42,411.42,411.42,411.42,448.00,461.98,475.96,491.02,506.08,521.68,537.81,537.81,537.81,537.81,539.96,550.72,563.62,584.60,601.81,610.41,623.32,636.23,644.30,652.90,657.20,661.51,665.81,670.11,678.72,687.32,700.23,712.60,729.81,751.32,776.60,806.72,840.60,879.32,917.50,960.53,1003.02,1049.81,1097.13,1148.22,1199.32,1254.71,1310.64,1370.34,1399.92,1459.62,1511.25,1545.13,1587.62,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43,1613.43\r 99645142NV0010125,Anthem,26 Anthem Silver X 6800,RA2,No,Silver,26 Anthem Silver X 6800,HMO,$0,$20,$80,$25,$50,"$500 + $6,800 + 45%","$6,800 + 45%","$6,800 + 45%","$6,800 + 45%","$1,000 + $6,800 + 50%","$6,800",45%,"$8,900",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$75,"$6,800 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,543.31,415.63,415.63,415.63,415.63,415.63,415.63,415.63,415.63,415.63,415.63,415.63,415.63,415.63,415.63,452.58,466.70,480.83,496.04,511.25,527.01,543.31,543.31,543.31,543.31,545.48,556.35,569.39,590.58,607.96,616.66,629.70,642.74,650.89,659.58,663.92,668.27,672.62,676.96,685.66,694.35,707.39,719.89,737.27,759.00,784.54,814.97,849.19,888.31,926.89,970.35,1013.27,1060.54,1108.35,1159.97,1211.58,1267.54,1324.05,1384.35,1414.24,1474.54,1526.70,1560.93,1603.85,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93,1629.93\r 99745142NV0010126,Anthem,26 Anthem Silver X 6500,RA2,No,Silver,26 Anthem Silver X 6500,HMO,$0,$15,$60,"$6,500 + 40%",$50,"$500 + $6,500 + 40%",$75,"$6,500 + 40%","$6,500 + 40%","$1,000 + $6,500 + 40%","$6,500",40%,"$8,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$40,"$6,500 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,549.32,420.23,420.23,420.23,420.23,420.23,420.23,420.23,420.23,420.23,420.23,420.23,420.23,420.23,420.23,457.58,471.87,486.15,501.53,516.91,532.84,549.32,549.32,549.32,549.32,551.52,562.50,575.69,597.11,614.69,623.48,636.66,649.85,658.09,666.87,671.27,675.66,680.06,684.45,693.24,702.03,715.21,727.85,745.43,767.40,793.22,823.98,858.59,898.14,937.14,981.09,1024.48,1072.27,1120.61,1172.80,1224.98,1281.56,1338.69,1399.67,1429.88,1490.85,1543.59,1578.20,1621.59,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96,1647.96\r 99845142NV0010127,Anthem,26 Anthem Silver X 4200,RA2,No,Silver,26 Anthem Silver X 4200,HMO,$0,$25,$75,"$4,200 + 40%",$50,"$500 + $4,200 + 40%",$30,"$300 + $4,200 + 50%","$4,200 + 40%","$1,000 + $4,200 + 40%","$4,200",40%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$35,"$4,200 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,550.97,421.49,421.49,421.49,421.49,421.49,421.49,421.49,421.49,421.49,421.49,421.49,421.49,421.49,421.49,458.96,473.28,487.61,503.04,518.46,534.44,550.97,550.97,550.97,550.97,553.17,564.19,577.42,598.90,616.54,625.35,638.57,651.80,660.06,668.88,673.29,677.69,682.10,686.51,695.32,704.14,717.36,730.04,747.67,769.71,795.60,826.46,861.17,900.84,939.95,984.03,1027.56,1075.49,1123.98,1176.32,1228.66,1285.41,1342.71,1403.87,1434.17,1495.33,1548.23,1582.94,1626.46,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91,1652.91\r 99945142NV0010128,Anthem,26 Anthem Silver X 3500,RA2,No,Silver,26 Anthem Silver X 3500,HMO,$0,$20,$60,"$3,500 + 20%",$50,"$1,000 + $3,500 + 20%",$50,"$500 + $3,500 + 20%","$3,500 + 20%","$500 + $3,500 + 30%","$3,500",20%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$50,"$3,500 + 30%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,555.52,424.97,424.97,424.97,424.97,424.97,424.97,424.97,424.97,424.97,424.97,424.97,424.97,424.97,424.97,462.75,477.19,491.64,507.19,522.74,538.85,555.52,555.52,555.52,555.52,557.74,568.85,582.18,603.85,621.63,630.52,643.85,657.18,665.51,674.40,678.85,683.29,687.73,692.18,701.07,709.95,723.29,736.06,753.84,776.06,802.17,833.28,868.28,908.28,947.72,992.16,1036.04,1084.38,1133.26,1186.04,1238.81,1296.03,1353.80,1415.46,1446.02,1507.68,1561.01,1596.01,1639.90,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56,1666.56\r 100045142NV0010129,Anthem,26 Anthem Silver X 3300 Adult Dntal/Vision,RA2,No,Silver,26 Anthem Silver X 3300 Adult Dntal/Vision,HMO,$0,$10,$50,"$3,300 + 30%",$50,"$500 + $3,300 + 50%","$3,300 + 30%","$3,300 + $0","$3,300 + 30%","$3,300 + 30%","$3,300",30%,"$8,300",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$80,"$3,300 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,583.24,446.18,446.18,446.18,446.18,446.18,446.18,446.18,446.18,446.18,446.18,446.18,446.18,446.18,446.18,485.84,501.00,516.17,532.50,548.83,565.74,583.24,583.24,583.24,583.24,585.57,597.24,611.24,633.98,652.65,661.98,675.98,689.97,698.72,708.05,712.72,717.39,722.05,726.72,736.05,745.38,759.38,772.79,791.46,814.79,842.20,874.86,911.60,953.60,995.01,104
10001.67,1087.74,1138.48,1189.81,1245.22,1300.63,1360.70,1421.36,1486.10,1518.17,1582.91,1638.90,1675.65,1721.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72,1749.72\r 100145142NV0010130,Anthem,26 Anthem Silver X 3600 HSA,RA2,No,Silver,26 Anthem Silver X 3600 HSA,HMO,$0,"$3,600 + 25%","$3,600 + 25%","$3,600 + 25%","$3,600 + 25%","$3,600 + 50%","$3,600 + 25%","$3,600 + 25%","$3,600 + 25%","$500 + $3,600 + 50%","$3,600",25%,"$6,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$3,600 + 35%","$3,600 + 35%","$3,600 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,584.84,447.40,447.40,447.40,447.40,447.40,447.40,447.40,447.40,447.40,447.40,447.40,447.40,447.40,447.40,487.17,502.38,517.58,533.96,550.33,567.29,584.84,584.84,584.84,584.84,587.18,598.88,612.91,635.72,654.44,663.79,677.83,691.87,700.64,710.00,714.67,719.35,724.03,728.71,738.07,747.43,761.46,774.91,793.63,817.02,844.51,877.26,914.10,956.21,997.74,1044.52,1090.73,1141.61,1193.07,1248.63,1304.19,1364.43,1425.26,1490.17,1522.34,1587.26,1643.40,1680.25,1726.45,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52,1754.52\r 100245142NV0010131,Anthem,26 Anthem Gold X 1100,RA2,No,Gold,26 Anthem Gold X 1100,HMO,$0,"Frist 2 Visits: $35 After: $1,100 + 25%","$1,100 + 25%","$1,100 + 25%",$50,"$500 + $1,100 + 25%","$1,100 + 25%","$250 + $1,100 + 25%","$1,100 + 25%","$1,000 + $1,100 + 25%","$1,100",25%,"$6,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$40,"$1,100 + 30%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,810.07,619.70,619.70,619.70,619.70,619.70,619.70,619.70,619.70,619.70,619.70,619.70,619.70,619.70,619.70,674.79,695.85,716.91,739.59,762.28,785.77,810.07,810.07,810.07,810.07,813.31,829.51,848.95,880.55,906.47,919.43,938.87,958.31,970.46,983.42,989.91,996.39,1002.87,1009.35,1022.31,1035.27,1054.71,1073.34,1099.26,1131.67,1169.74,1215.11,1266.14,1324.46,1381.98,1446.79,1510.78,1581.26,1652.54,1729.50,1806.46,1889.89,1974.14,2064.06,2108.61,2198.53,2276.30,2327.33,2391.33,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21,2430.21\r 100345142NV0010132,Ambetter,26 Ambetter Everyday Bronze,RA2,No,Bronze,26 Ambetter Everyday Bronze,HMO,$0,$40,$90,$50,$50,"$8,450 + 50%","$8,450 + 50%","$8,450 + 50%","$8,450 + 50%","$8,450 + 50%","$8,450",50%,"$10,150",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,"$8,450 + 45%","$8,450 + 45%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,410.51,314.04,314.04,314.04,314.04,314.04,314.04,314.04,314.04,314.04,314.04,314.04,314.04,314.04,314.04,341.95,352.63,363.30,374.80,386.29,398.19,410.51,410.51,410.51,410.51,412.15,420.36,430.21,446.22,459.36,465.93,475.78,485.63,491.79,498.36,501.64,504.93,508.21,511.50,518.06,524.63,534.48,543.93,557.06,573.48,592.78,615.77,641.63,671.18,700.33,733.17,765.60,801.32,837.44,876.44,915.44,957.72,1000.41,1045.98,1068.56,1114.12,1153.53,1179.40,1211.83,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53,1231.53\r 100445142NV0010133,Ambetter,26 Ambetter Choice Bronze HSA,RA2,No,Bronze,26 Ambetter Choice Bronze HSA,HMO,$0,"$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250",0%,"$7,250",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$7,250 + 0%","$7,250 + 0%","$7,250 + 0%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,444.53,340.07,340.07,340.07,340.07,340.07,340.07,340.07,340.07,340.07,340.07,340.07,340.07,340.07,340.07,370.29,381.85,393.41,405.86,418.30,431.19,444.53,444.53,444.53,444.53,446.31,455.20,465.87,483.20,497.43,504.54,515.21,525.88,532.55,539.66,543.22,546.7
10047,550.33,553.88,561.00,568.11,578.78,589.00,603.23,621.01,641.90,666.80,694.80,726.81,758.37,793.93,829.05,867.72,906.84,949.07,991.30,1037.09,1083.32,1132.66,1157.11,1206.45,1249.13,1277.13,1312.25,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59,1333.59\r 100545142NV0010134,Ambetter,26 Ambetter Clarity Silver,RA2,No,Silver,26 Ambetter Clarity Silver,HMO,$0,$50,$90,$30,$65,"$8,000 + 50%",$90,"$8,000 + 50%","$8,000 + 50%","$8,000 + 50%","$8,000",50%,"$8,400",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,"$8,000 + $85","$8,000 + 50%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,486.69,372.32,372.32,372.32,372.32,372.32,372.32,372.32,372.32,372.32,372.32,372.32,372.32,372.32,372.32,405.41,418.07,430.72,444.35,457.98,472.09,486.69,486.69,486.69,486.69,488.64,498.37,510.05,529.03,544.61,552.39,564.07,575.75,583.05,590.84,594.74,598.63,602.52,606.42,614.20,621.99,633.67,644.86,660.44,679.91,702.78,730.04,760.70,795.74,830.29,869.23,907.68,950.02,992.85,1039.08,1085.32,1135.45,1186.06,1240.09,1266.85,1320.88,1367.60,1398.26,1436.71,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07,1460.07\r 100645142NV0010135,Ambetter,26 Ambetter Focused Silver,RA2,No,Silver,26 Ambetter Focused Silver,HMO,$0,$40,$85,$50,$60,"$6,300 + 50%","$6,300 + 50%","$6,300 + 50%","$6,300 + 50%","$6,300 + 50%","$6,300",50%,"$8,400",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$75,"$6,300 + 45%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,523.72,400.65,400.65,400.65,400.65,400.65,400.65,400.65,400.65,400.65,400.65,400.65,400.65,400.65,400.65,436.26,449.88,463.49,478.16,492.82,508.01,523.72,523.72,523.72,523.72,525.81,536.29,548.86,569.28,586.04,594.42,606.99,619.56,627.42,635.80,639.99,644.18,648.37,652.56,660.93,669.31,681.88,693.93,710.69,731.64,756.25,785.58,818.57,856.28,893.47,935.36,976.74,1022.30,1068.39,1118.14,1167.90,1221.84,1276.31,1334.44,1363.24,1421.38,1471.65,1504.65,1546.02,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16,1571.16\r 100745142NV0010136,Ambetter,26 Ambetter Complete Silver,RA2,No,Silver,26 Ambetter Complete Silver,HMO,$0,$30,$60,$30,$60,"$5,950 + 40%","$5,950 + 40%","$5,950 + 40%","$5,950 + 40%","$5,950 + 40%","$5,950",40%,"$8,850",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$55,"$5,950 + 45%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,524.62,401.33,401.33,401.33,401.33,401.33,401.33,401.33,401.33,401.33,401.33,401.33,401.33,401.33,401.33,437.01,450.65,464.29,478.98,493.67,508.88,524.62,524.62,524.62,524.62,526.72,537.21,549.80,570.26,587.05,595.44,608.03,620.63,628.49,636.89,641.09,645.28,649.48,653.68,662.07,670.46,683.06,695.12,711.91,732.89,757.55,786.93,819.98,857.75,895.00,936.97,978.42,1024.06,1070.22,1120.06,1169.90,1223.94,1278.50,1336.73,1365.59,1423.82,1474.18,1507.23,1548.68,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86,1573.86\r 100845142NV0010137,Ambetter,26 Ambetter Principal Silver,RA2,No,Silver,26 Ambetter Principal Silver,HMO,$0,$30,$60,"$8,200 + $0",$50,"$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200",0%,"$8,200",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$50,"$8,200 + $0",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,526.12,402.48,402.48,402.48,402.48,402.48,402.48,402.48,402.48,402.48,402.48,402.48,402.48,402.48,402.48,438.26,451.94,465.62,480.35,495.08,510.34,526.12,526.12,526.12,526.12,528.22,538.75,551.37,571.89,588.73,597.15,609.77,622.40,630.29,638.71,642.92,647.13,651.34,655.55,663.96,672.38,685.01,697.11,713.94,734.99,759.72,789.18,822.33,860.21,897.56,939.65,981.21,1026.99,1073.28,1123.27,1173.25,1227.44,1282.15,1340.55,1369.49,1427.89,1478.40,1511.54,1553.11,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36,1578.36\r 100945142NV0010138,Ambetter,26 Ambetter Everyday Gold,RA2,No,Gold,26 Ambetter Everyday Gold,HMO,$0,$35,$55,$35,$45,$800 + 35%,$800 + 35%,$800 + 35%,$800 + 35%,$800 + 35%,$800,35%,"$7,250",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$60,$800 + 45%,Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,571.47,437.17,437.17,437.17,437.17,437.17,437.17,437.17,437.17,437.17,437.17,437.17,437.17,437.17,437.17,476.03,490.89,505.75,521.75,537.75,554.33,571.47,571.47,571.47,571.47,573.76,585.19,598.90,621.19,639.47,648.62,662.33,676.05,684.62,693.76,698.34,702.91,707.48,712.05,721.20,730.34,744.05,757.20,7
100975.48,798.34,825.20,857.21,893.21,934.35,974.93,1020.65,1065.79,1115.51,1165.80,1220.09,1274.38,1333.24,1392.67,1456.11,1487.54,1550.97,1605.83,1641.83,1686.98,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41,1714.41\r 101045142NV0010139,Ambetter,26 Ambetter Complete Gold,RA2,No,Gold,26 Ambetter Complete Gold,HMO,$0,$15,$35,$15,$35,"$1,450 + 20%","$1,450 + 20%","$1,450 + 20%","$1,450 + 20%","$1,450 + 20%","$1,450",20%,"$7,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$30,"$1,450 + 20%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,590.22,451.52,451.52,451.52,451.52,451.52,451.52,451.52,451.52,451.52,451.52,451.52,451.52,451.52,451.52,491.65,507.00,522.34,538.87,555.40,572.51,590.22,590.22,590.22,590.22,592.58,604.39,618.55,641.57,660.46,669.90,684.06,698.23,707.08,716.53,721.25,725.97,730.69,735.41,744.86,754.30,768.47,782.04,800.93,824.54,852.28,885.33,922.51,965.01,1006.92,1054.13,1100.76,1152.11,1204.05,1260.12,1316.19,1376.98,1438.37,1503.88,1536.34,1601.86,1658.52,1695.70,1742.33,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66,1770.66\r 101145142NV0010140,Ambetter,26 Ambetter Elite Gold,RA2,No,Gold,26 Ambetter Elite Gold,HMO,$0,$5,$60,$40,$35,30%,$75,$75,$200,30%,$0,30%,"$6,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$50,45%,Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,637.93,488.02,488.02,488.02,488.02,488.02,488.02,488.02,488.02,488.02,488.02,488.02,488.02,488.02,488.02,531.40,547.98,564.57,582.43,600.29,618.79,637.93,637.93,637.93,637.93,640.48,653.24,668.55,693.43,713.84,724.05,739.36,754.67,764.24,774.45,779.55,784.65,789.76,794.86,805.07,815.27,830.58,845.26,865.67,891.19,921.17,956.90,997.08,1043.02,1088.31,1139.34,1189.74,1245.24,1301.38,1361.98,1422.58,1488.29,1554.64,1625.45,1660.53,1731.34,1792.58,1832.77,1883.17,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79,1913.79\r 101245142NV0010141,CareSource,26 CareSource Low Premium Bronze 10600,RA2,No,Bronze,26 CareSource Low Premium Bronze 10600,HMO,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$10,600 + $0","$10,600 + $0",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,384.75,294.33,294.33,294.33,294.33,294.33,294.33,294.33,294.33,294.33,294.33,294.33,294.33,294.33,294.33,320.50,330.50,340.50,351.28,362.05,373.21,384.75,384.75,384.75,384.75,386.29,393.98,403.22,418.22,430.54,436.69,445.93,455.16,460.93,467.09,470.16,473.24,476.32,479.40,485.55,491.71,500.94,509.79,522.11,537.50,555.58,577.13,601.36,629.07,656.38,687.16,717.56,751.03,784.89,821.44,857.99,897.62,937.64,980.34,1001.50,1044.21,1081.15,1105.39,1135.78,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25,1154.25\r 101345142NV0010142,CareSource,26 CareSource Core Bronze 7500,RA2,No,Bronze,26 CareSource Core Bronze 7500,HMO,$0,$50,$100,"$7,500 + 50%",$75,"$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500",50%,"$10,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$7,500 + 50%","$7,500 + 50%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,389.95,298.31,298.31,298.31,298.31,298.31,298.31,298.31,298.31,298.31,298.31,298.31,298.31,298.31,298.31,324.83,334.97,345.11,356.02,366.94,378.25,389.95,389.95,389.95,389.95,391.51,399.31,408.67,423.88,436.35,442.59,451.95,461.31,467.16,473.40,476.52,479.64,482.76,485.88,492.12,498.36,507.71,516.68,529.16,544.76,563.09,584.93,609.49,637.57,665.25,696.45,727.26,761.18,795.50,832.54,869.59,909.75,950.31,993.59,1015.04,1058.32,1095.76,1120.33,1151.13,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85,1169.85\r 101445142NV0010143,CareSource,26 CareSource Low Premium Silver Medicaid Transition,RA2,No,Silver,26 CareSource Low Premium Silver Medicaid Transition,HMO,$0,$40,$75,$50,$70,"$6,200 + 50%","$6,200 + $200","$6,200 + $250","$6,200 + 40%","$6,200 + $500","$6,200",40%,"$9,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$75,"$6,200 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,478.48,366.04,366.04,366.04,366.04,366.04,366.04,366.04,366.04,366.04,366.04,366.04,366.04,366.04,366.04,398.57,411.01,423.45,436.85,450.25,464.13,478.48,478.48,478.48,478.48,480.39,489.96,501.45,520.11,535.42,543.07,554.56,566.04,573.22,580.87,584.70,588.53,592.36,596.19,603.84,611.50,622.98,633.99,649.30,668.44,690.93,717.72,747.86,782.31,816.29,854.57,892.37,933.99,976.10,1021.55,1067.01,1116.29,1166.06,1219.17,1245.48,1298.59,1344.53,1374.67,1412.47,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44,1435.44\r 101545142NV0010144,CareSource,26 CareSource Healthy Heart Silver 5000,RA2,No,Silver,26 CareSource Healthy Heart Silver 5000,HMO,$0,$30,$50,$75,$70,"$5,000 + 50%","$5,000 + $400","$5,000 + $300","$5,000 + 50%","$5,000 + $600","$5,000",50%,"$9,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$100,"$5,000 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,502.51,384.42,384.42,384.42,384.42,384.42,384.42,384.42,384.42,384.42,384.42,384.42,384.42,384.42,384.42,418.59,431.66,444.72,458.79,472.86,487.43,502.51,502.51,502.51,502.51,504.52,514.57,526.63,546.23,562.31,570.35,582.41,594.47,602.01,610.05,614.07,618.09,622.11,626.13,634.17,642.21,654.27,665.83,681.91,702.01,725.62,753.77,785.42,821.60,857.28,897.48,937.18,980.90,1025.12,1072.86,1120.60,1172.36,1224.62,1280.40,1308.03,1363.81,1412.05,1443.71,1483.41,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53,1507.53\r 101645142NV0010145,CareSource,26 CareSource Diabetes Silver 5000,RA2,No,Silver,26 CareSource Diabetes Silver 5000,HMO,$0,$30,$50,$75,$70,"$5,000 + 50%","$5,000 + $400","$5,000 + $300","$5,000 + 50%","$5,000 + $600","$5,000",50%,"$9,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$100,"$5,000 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,505.76,386.91,386.91,386.91,386.91,386.91,386.91,386.91,386.91,386.91,386.91,386.91,386.91,386.91,386.91,421.30,434.45,447.60,461.76,475.92,490.59,505.76,505.76,505.76,505.76,507.78,517.90,530.04,549.76,565.95,574.04,586.18,598.31,605.90,613.99,618.04,622.08,626.13,630.18,638.27,646.36,658.50,670.13,686.32,706.55,730.32,758.64,790.50,826.92,862.83,903.29,943.24,987.24,1031.75,1079.80,1127.84,1179.94,1232.54,1288.68,1316.49,1372.63,1421.19,1453.05,1493.00,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28,1517.28\r 101745142NV0010146,CareSource,26 CareSource Silver HSA 5500,RA2,No,Silver,26 CareSource Silver HSA 5500,HMO,$0,"$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500",0%,"$5,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$5,500 + $0","$5,500 + $0","$5,500 + $0",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,566.66,433.49,433.49,433.49,433.49,433.49,433.49,433.49,433.49,433.49,433.49,433.49,433.49,433.49,433.49,472.03,486.76,501.49,517.36,533.23,549.66,566.66,566.66,566.66,566.66,568.93,580.26,593.86,615.96,634.09,643.16,656.76,670.36,678.86,687.93,692.46,696.99,701.53,706.06,715.12,724.19,737.79,750.82,768.96,791.62,818.26,849.99,885.69,926.49,966.72,1012.05,1056.82,1106.12,1155.99,1209.82,1263.65,1322.02,1380.95,1443.85,1475.02,1537.92,1592.31,1628.01,1672.78,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98,1699.98\r 101845142NV0010147,CareSource,26 CareSource Low Premium Gold 1500,RA2,No,Gold,26 CareSource Low Premium Gold 1500,HMO,$0,$20,$50,$30,$40,"$1,500 + 10%","$1,500 + 25%","$1,500 + 25%","$1,500 + 25%","$1,500 + 25%","$1,500",25%,"$8,400",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$20,$50,"$1,500 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,564.61,431.93,431.93,431.93,431.93,431.93,431.93,431.93,431.93,431.93,431.93,431.93,431.93,431.93,431.93,470.32,485.00,499.68,515.49,531.30,547.67,564.61,564.61,564.61,564.61,566.87,578.16,591.71,613.73,631.80,640.83,654.38,667.93,676.40,685.44,689.95,694.47,698.99,703.50,712.54,721.57,735.12,748.11,766.18,788.76,815.30,846.92,882.49,923.14,963.22,1008.39,1053.00,1102.12,1151.80,1205.44,1259.08,1317.24,1375.95,1438.63,1469.68,1532.35,1586.55,1622.12,1666.73,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83,1693.83\r 101945142NV0010148,CareSource,26 CareSource Healthy Heart Gold Medicaid Transition,RA2,No,Gold,26 CareSource Healthy Heart Gold Medicaid Transition,HMO,$0,$10,$40,$30,$30,"$3,000 + 10%","$3,000 + 30%","$3,000 + 30%","$3,000 + 30%","$3,000 + $500","$3,000",30%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$60,"$3,000 + 30%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,572.27,437.79,437.79,437.79,437.79,437.79,437.79,437.79,437.79,437.79,437.79,437.79,437.79,437.79,437.79,476.70,491.58,506.46,522.48,538.51,555.10,572.27,572.27,572.27,572.27,574.56,586.00,599.74,622.06,640.37,649.53,663.26,677.00,685.58,694.74,699.31,703.89,708.47,713.05,722.20,731.36,745.10,758.26,776.57,799.46,826.36,858.41,894.46,935.66,976.29,1022.07,1067.28,1117.07,1167.43,1221.80,1276.16,1335.11,1394.62,1458.14,1489.62,1553.14,1608.08,1644.13,1689.34,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81,1716.81\r 102045142NV0010149,CareSource,26 CareSource Diabetes Gold 3000,RA2,No,Gold,26 CareSource Diabetes Gold 3000,HMO,$0,$10,$40,$30,$30,"$3,000 + 10%","$3,000 + 30%","$3,000 + 30%","$3,000 + 30%","$3,000 + $500","$3,000",30%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$60,"$3,000 + 30%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,578.40,442.48,442.48,442.48,442.48,442.48,442.48,442.48,442.48,442.48,442.48,442.48,442.48,442.48,442.48,481.81,496.85,511.88,528.08,544.27,561.05,578.40,578.40,578.40,578.40,580.71,592.28,606.16,628.72,647.23,656.48,670.37,684.25,692.92,702.18,706.80,711.43,716.06,720.69,729.94,739.20,753.08,766.38,784.89,808.02,835.21,867.60,904.04,945.68,986.75,1033.02,1078.72,1129.04,1179.94,1234.88,1289.83,1349.41,1409.56,1473.76,1505.58,1569.78,1625.30,1661.74,1707.44,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20,1735.20\r 102145142NV0010150,Health Plan of Nevada,26 HPN Catastrophic,RA2,No,Catastrophic,26 HPN Catastrophic,HMO,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,356.19,272.49,272.49,272.49,272.49,272.49,272.49,272.49,272.49,272.49,272.49,272.49,272.49,272.49,272.49,296.71,305.97,315.23,325.20,335.17,345.50,356.19,356.19,356.19,356.19,357.61,364.74,373.29,387.18,398.58,404.28,412.82,421.37,426.72,432.41,435.26,438.11,440.96,443.81,449.51,455.21,463.76,471.95,483.35,497.60,514.34,534.29,556.72,582.37,607.66,636.16,664.29,695.28,726.63,760.47,794.30,830.99,868.04,907.57,927.16,966.70,1000.89,1023.33,1051.47,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,10
102168.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57,1068.57\r 102245142NV0010151,Health Plan of Nevada,26 Virtual HPN,RA2,No,Bronze,26 Virtual HPN,HMO,$0,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$10,600 + $0","$10,600 + $0",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,414.94,317.43,317.43,317.43,317.43,317.43,317.43,317.43,317.43,317.43,317.43,317.43,317.43,317.43,317.43,345.65,356.43,367.22,378.84,390.46,402.49,414.94,414.94,414.94,414.94,416.60,424.90,434.86,451.04,464.32,470.96,480.92,490.87,497.10,503.74,507.06,510.38,513.70,517.02,523.65,530.29,540.25,549.80,563.07,579.67,599.17,622.41,648.55,678.43,707.89,741.08,773.86,809.96,846.48,885.90,925.32,968.06,1011.21,1057.27,1080.09,1126.15,1165.98,1192.12,1224.90,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82,1244.82\r 102345142NV0010152,Health Plan of Nevada,26 MyHPN Bronze 3,RA2,No,Bronze,26 MyHPN Bronze 3,HMO,$0,$25,$120,"$10,600 + $0",$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$10,600 + $0","$10,600 + $0",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,433.13,331.34,331.34,331.34,331.34,331.34,331.34,331.34,331.34,331.34,331.34,331.34,331.34,331.34,331.34,360.80,372.06,383.32,395.45,407.58,420.14,433.13,433.13,433.13,433.13,434.86,443.53,453.92,470.81,484.67,491.60,502.00,512.39,518.89,525.82,529.28,532.75,536.21,539.68,546.61,553.54,563.94,573.90,587.76,605.08,625.44,649.70,676.98,708.17,738.92,773.57,807.79,845.47,883.59,924.73,965.88,1010.49,1055.54,1103.62,1127.44,1175.51,1217.10,1244.38,1278.60,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39,1299.39\r 102445142NV0010153,Health Plan of Nevada,26 MyHPN Bronze 2,RA2,No,Bronze,26 MyHPN Bronze 2,HMO,$0,$50,$120,$50,$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$30,$120,"$10,600 + $0",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,446.02,341.21,341.21,341.21,341.21,341.21,341.21,341.21,341.21,341.21,341.21,341.21,341.21,341.21,341.21,371.53,383.13,394.73,407.22,419.70,432.64,446.02,446.02,446.02,446.02,447.80,456.72,467.43,484.82,499.10,506.23,516.94,527.64,534.33,541.47,545.04,548.60,552.17,555.74,562.88,570.01,580.72,590.98,605.25,623.09,644.05,669.03,697.13,729.24,760.91,796.59,831.83,870.63,909.88,952.25,994.62,1040.56,1086.95,1136.46,1160.99,1210.50,1253.32,1281.42,1316.65,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06,1338.06\r 102545142NV0010154,Health Plan of Nevada,26 MyHPN Plus Bronze 4,RA2,No,Bronze,26 MyHPN Plus Bronze 4,HMO,$0,$50,$100,$50,$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0",,"$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$30,$120,"$10,600 + $0",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,446.92,341.89,341.89,341.89,341.89,341.89,341.89,341.89,341.89,341.89,341.89,341.89,341.89,341.89,341.89,372.28,383.90,395.52,408.04,420.55,433.51,446.92,446.92,446.92,446.92,448.71,457.65,468.37,485.80,500.10,507.25,517.98,528.71,535.41,542.56,546.14,549.71,553.29,556.86,564.01,571.16,581.89,592.17,606.47,624.35,645.35,670.38,698.54,730.71,762.45,798.20,833.51,872.39,911.72,954.17,996.63,1042.66,1089.14,1138.75,1163.33,1212.94,1255.85,1284.00,1319.31,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76,1340.76\r 102645142NV0010155,Health Plan of Nevada,26 MyHPN Plus Bronze 6,RA2,No,Bronze,26 MyHPN Plus Bronze 6,HMO,$0,$25,"$8,100 + $40","$8,100 + $25",$50,"$8,100 + $600","$8,100 + 40%","$8,100 + 40%","$8,100 + 40%","$8,100 + 40%","$8,100",40%,"$9,850",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$8,100 + 40%","$8,100 + 40%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,451.67,345.53,345.53,345.53,345.53,345.53,345.53,345.53,345.53,345.53,345.53,345.53,345.53,345.53,345.53,376.24,387.98,399.73,412.37,425.02,438.12,451.67,451.67,451.67,451.67,453.48,462.51,473.35,490.97,505.42,512.65,523.49,534.33,541.10,548.33,551.94,555.55,559.17,562.78,570.
102601,577.23,588.07,598.46,612.92,630.98,652.21,677.51,705.96,738.48,770.55,806.68,842.36,881.66,921.41,964.32,1007.22,1053.75,1100.72,1150.86,1175.70,1225.83,1269.19,1297.65,1333.33,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01,1355.01\r 102745142NV0010156,Health Plan of Nevada,26 MyHPN Plus Bronze 5,RA2,No,Bronze,26 MyHPN Plus Bronze 5,HMO,$0,$35,"$7,800 + $60","$7,800 + $50",$50,"$7,800 + $600","$7,800 + 50%","$7,800 + 50%","$7,800 + 50%","$7,800 + 50%","$7,800",50%,"$9,550",(Not Covered),(Not Covered),(Not Covered),"$1,750",$25,$75,"$1,750 + 50%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,472.76,361.66,361.66,361.66,361.66,361.66,361.66,361.66,361.66,361.66,361.66,361.66,361.66,361.66,361.66,393.81,406.10,418.39,431.63,444.87,458.58,472.76,472.76,472.76,472.76,474.65,484.11,495.45,513.89,529.02,536.58,547.93,559.28,566.37,573.93,577.71,581.49,585.28,589.06,596.62,604.19,615.53,626.41,641.54,660.45,682.67,709.14,738.92,772.96,806.53,844.35,881.70,922.83,964.43,1009.34,1054.25,1102.95,1152.12,1204.59,1230.59,1283.07,1328.46,1358.24,1395.59,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28,1418.28\r 102845142NV0010157,Health Plan of Nevada,26 MyHPN Focus Copay Bronze 1,RA2,No,Bronze,26 MyHPN Focus Copay Bronze 1,HMO,$0,$45,$130,$45,$70,"$2,200",$120,$400,$700,"$3,000",$0,50%,"$10,600",(Not Covered),(Not Covered),(Not Covered),"$4,500",$25,"$4,500 + 40%","$4,500 + 45%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,492.29,376.60,376.60,376.60,376.60,376.60,376.60,376.60,376.60,376.60,376.60,376.60,376.60,376.60,376.60,410.08,422.88,435.68,449.46,463.24,477.52,492.29,492.29,492.29,492.29,494.26,504.10,515.92,535.12,550.87,558.75,570.56,582.38,589.76,597.64,601.58,605.52,609.46,613.39,621.27,629.15,640.96,652.28,668.04,687.73,710.87,738.44,769.45,804.89,839.85,879.23,918.12,960.95,1004.27,1051.04,1097.81,1148.51,1199.71,1254.35,1281.43,1336.08,1383.33,1414.35,1453.24,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87,1476.87\r 102945142NV0010158,Health Plan of Nevada,26 MyHPN Silver 11,RA2,No,Silver,26 MyHPN Silver 11,HMO,$0,$0,$85,$25,$50,"$6,500 + $1,000","$6,500 + 50%","$6,500 + 50%","$6,500 + 50%","$6,500 + 50%","$6,500",50%,"$8,900",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,$75,"$6,500 + 50%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,547.89,419.14,419.14,419.14,419.14,419.14,419.14,419.14,419.14,419.14,419.14,419.14,419.14,419.14,419.14,456.39,470.64,484.88,500.22,515.56,531.45,547.89,547.89,547.89,547.89,550.08,561.04,574.19,595.56,613.09,621.86,635.00,648.15,656.37,665.14,669.52,673.90,678.29,682.67,691.44,700.20,713.35,725.95,743.49,765.40,791.15,821.84,856.35,895.80,934.70,978.53,1021.81,1069.48,1117.70,1169.75,1221.79,1278.23,1335.21,1396.02,1426.16,1486.97,1539.57,1574.09,1617.37,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67,1643.67\r 103045142NV0010159,Health Plan of Nevada,26 MyHPN Silver 10,RA2,No,Silver,26 MyHPN Silver 10,HMO,$0,$30,$95,$30,$50,"$4,000 + $1,000","$4,000 + 50%","$4,000 + 50%","$4,000 + 50%","$4,000 + 50%","$4,000",50%,"$7,300",(Not Covered),(Not Covered),(Not Covered),"$1,850",$25,"$1,850 + $85","$1,850 + 50%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,579.74,443.50,443.50,443.50,443.50,443.50,443.50,443.50,443.50,443.50,443.50,443.50,443.50,443.50,443.50,482.92,498.00,513.07,529.30,545.54,562.35,579.74,579.74,579.74,579.74,582.06,593.65,607.57,630.18,648.73,658.00,671.92,685.83,694.53,703.80,708.44,713.08,717.72,722.36,731.63,740.91,754.82,768.16,786.71,809.90,837.14,869.61,906.13,947.87,989.04,1035.42,1081.22,1131.65,1182.67,1237.74,1292.82,1352.53,1412.83,1477.18,1509.06,1573.41,1629.07,1665.59,1711.39,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22,1739.22\r 103145142NV0010160,Health Plan of Nevada,26 MyHPN Silver 1.1,RA2,No,Silver,26 MyHPN Silver 1.1,HMO,$0,$25,$40,$25,$50,"$5,400 + $1,500","$5,400 + 40%","$5,400 + 40%","$5,400 + 40%","$5,400 + 40%","$5,400",40%,"$9,700",(Not Covered),(Not Covered),(Not Covered),"$1,500",$25,$50,"$1,500 + 50%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,612.95,468.91,468.91,468.91,468.91,468.91,468.91,468.91,468.91,468.91,468.91,468.91,468.91,468.91,468.91,510.59,526.52,542.46,559.62,576.79,594.56,612.95,612.95,612.95,612.95,615.40,627.66,642.37,666.28,685.89,695.70,710.41,725.12,734.31,744.12,749.02,753.93,758.83,763.74,773.54,783.35,798.06,812.16,831.77,856.29,885.10,919.43,958.04,1002.17,1045.69,1094.73,1143.15,1196.48,1250.42,1308.65,1366.88,1430.01,1493.76,1561.80,1595.51,1663.55,1722.39,1761.01,1809.43,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85,1838.85\r 103245142NV0010161,Health Plan of Nevada,26 MyHPN Silver 12,RA2,No,Silver,26 MyHPN Silver 12,HMO,$0,$5,$95,$30,$50,"$7,000 + $1,000","$7,000 + 40%","$7,000 + 40%","$7,000 + 40%","$7,000 + 40%","$7,000",40%,"$8,950",(Not Covered),(Not Covered),(Not Covered),"$1,950",$10,$40,"$7,000 + 50%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,615.29,470.70,470.70,470.70,470.70,470.70,470.70,470.70,470.70,470.70,470.70,470.70,470.70,470.70,470.70,512.54,528.53,544.53,561.76,578.99,596.83,615.29,615.29,615.29,615.29,617.75,630.06,644.82,668.82,688.51,698.35,713.12,727.89,737.12,746.96,751.88,756.81,761.73,766.65,776.50,786.34,801.11,815.26,834.95,859.56,888.48,922.94,961.70,1006.00,1049.68,1098.91,1147.52,1201.05,1255.19,1313.64,1372.10,1435.47,1499.46,1567.76,1601.60,1669.90,1728.96,1767.73,1816.34,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87,1845.87\r 103345142NV0010162,Health Plan of Nevada,26 MyHPN Silver 5,RA2,No,Silver,26 MyHPN Silver 5,HMO,$0,$15,$85,$15,$50,"$5,200 + $1,200","$5,200 + 30%","$5,200 + 30%","$5,200 + 30%","$5,200 + 30%","$5,200",30%,"$9,750",(Not Covered),(Not Covered),(Not Covered),"$1,500",$25,$50,"$5,200 + 50%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,617.44,472.34,472.34,472.34,472.34,472.34,472.34,472.34,472.34,472.34,472.34,472.34,472.34,472.34,472.34,514.33,530.38,546.43,563.72,581.01,598.92,617.44,617.44,617.44,617.44,619.91,632.26,647.08,671.16,690.92,700.79,715.61,730.43,739.69,749.57,754.51,759.45,764.39,769.33,779.21,789.09,803.91,818.11,837.87,862.56,891.58,926.16,965.06,1009.51,1053.35,1102.75,1151.53,1205.24,1259.58,1318.23,1376.89,1440.49,1504.70,1573.24,1607.20,1675.73,1735.01,1773.91,1822.68,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32,1852.32\r 103445142NV0010163,Health Plan of Nevada,26 MyHPN Copay Focus Silver 1,RA2,No,Silver,26 MyHPN Copay Focus Silver 1,HMO,$0,$30,$90,$35,$55,"$1,700",$115,$375,$550,"$2,700",$0,50%,"$10,600",(Not Covered),(Not Covered),(Not Covered),"$2,500",$10,"$2,500 + $85","$2,500 + 40%",HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,627.83,480.29,480.29,480.29,480.29,480.29,480.29,480.29,480.29,480.29,480.29,480.29,480.29,480.29,480.29,522.98,539.31,555.63,573.21,590.79,609.00,627.83,627.83,627.83,627.83,630.34,642.90,657.97,682.45,702.54,712.59,727.65,742.72,752.14,762.19,767.21,772.23,777.25,782.28,792.32,802.37,817.43,831.87,851.97,877.08,906.59,941.75,981.30,1026.50,1071.08,1121.30,1170.90,1225.52,1280.77,1340.42,1400.06,1464.73,1530.02,1599.71,1634.24,1703.93,1764.20,1803.76,1853.35,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49,1883.49\r 103545142NV0010164,Health Plan of Nevada,26 MyHPN Gold 6,RA2,No,Gold,26 MyHPN Gold 6,HMO,$0,$0,$50,$15,$50,"$1,800 + 3
10350%",$65,"$1,800 + 30%","$1,800 + 30%","$1,800 + 30%","$1,800",30%,"$7,900",(Not Covered),(Not Covered),(Not Covered),$500,$5,$50,$500 + 30%,HPN On Exchange,https://healthplanofnevada.com/member/doctor-or-provider,https://healthplanofnevada.com/member/prescription-drug-coverage/prescription-drug-lists,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/health-plan-of-nevada-brand.png,651.86,498.67,498.67,498.67,498.67,498.67,498.67,498.67,498.67,498.67,498.67,498.67,498.67,498.67,498.67,543.00,559.95,576.90,595.15,613.40,632.30,651.86,651.86,651.86,651.86,654.47,667.50,683.15,708.57,729.43,739.86,755.51,771.15,780.93,791.36,796.57,801.79,807.00,812.22,822.65,833.08,848.72,863.71,884.57,910.65,941.29,977.79,1018.86,1065.79,1112.07,1164.22,1215.72,1272.43,1329.79,1391.72,1453.65,1520.79,1588.58,1660.94,1696.79,1769.15,1831.73,1872.79,1924.29,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58,1955.58\r 103645142NV0010165,Hometown Health,26 Renown Catastrophic HMO,RA3,No,Catastrophic,26 Renown Catastrophic HMO,HMO,$0,"1st 3 Visits: $55 After: $10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,397.22,303.87,303.87,303.87,303.87,303.87,303.87,303.87,303.87,303.87,303.87,303.87,303.87,303.87,303.87,330.88,341.21,351.54,362.66,373.78,385.30,397.22,397.22,397.22,397.22,398.81,406.75,416.29,431.78,444.49,450.84,460.38,469.91,475.87,482.23,485.40,488.58,491.76,494.94,501.29,507.65,517.18,526.32,539.03,554.92,573.59,595.83,620.85,649.45,677.66,709.43,740.82,775.37,810.33,848.06,885.80,926.71,968.03,1012.12,1033.96,1078.06,1116.19,1141.21,1172.59,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66,1191.66\r 103745142NV0010166,Hometown Health,26 Renown Bronze HMO,RA3,No,Bronze,26 Renown Bronze HMO,HMO,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0",$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,404.93,309.77,309.77,309.77,309.77,309.77,309.77,309.77,309.77,309.77,309.77,309.77,309.77,309.77,309.77,337.31,347.83,358.36,369.70,381.04,392.78,404.93,404.93,404.93,404.93,406.55,414.65,424.37,440.16,453.12,459.60,469.31,479.03,485.11,491.59,494.82,498.06,501.30,504.54,511.02,517.50,527.22,536.53,549.49,565.69,584.72,607.40,632.91,662.06,690.81,723.20,755.19,790.42,826.06,864.53,902.99,944.70,986.81,1031.76,1054.03,1098.98,1137.85,1163.36,1195.35,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79,1214.79\r 103845142NV0010167,Hometown Health,26 Renown Bronze HMO HSA,RA3,No,Bronze,26 Renown Bronze HMO HSA,HMO,$0,"$5,000 + $45","$5,000 + $90","$5,000 + 50%","$5,000 + $50","$5,000 + 50%","$5,000 + 50%","$5,000 + 50%","$5,000 + 50%","$5,000 + 50%","$5,000",50%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$5,000 + $20","$5,000 + 50%","$5,000 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,461.53,353.07,353.07,353.07,353.07,353.07,353.07,353.07,353.07,353.07,353.07,353.07,353.07,353.07,353.07,384.45,396.45,408.45,421.38,434.30,447.68,461.53,461.53,461.53,461.53,463.38,472.61,483.68,501.68,516.45,523.84,534.91,545.99,552.91,560.30,563.99,567.68,571.37,575.07,582.45,589.84,600.91,611.53,626.30,644.76,666.45,692.30,721.37,754.60,787.37,824.29,860.75,900.91,941.52,985.37,1029.21,1076.75,1124.75,1175.98,1201.36,1252.59,1296.90,1325.98,1362.44,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59,1384.59\r 103945142NV0010168,Hometown Health,26 Renown Bronze Plus HMO,RA3,No,Bronze,26 Renown Bronze Plus HMO,HMO,$0,$45,$90,"$5,225 + 50%",$50,"$5,225 + 50%","$5,225 + 50%","$5,225 + 50%","$5,225 + 50%","$5,225 + 50%","$5,225",50%,"$10,450",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$20,50%,"$5,225 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,474.50,362.99,362.99,362.99,362.99,362.99,362.99,362.99,362.99,362.99,362.99,362.99,362.99,362.99,362.99,395.26,407.60,419.93,433.22,446.50,460.27,474.50,474.50,474.50,474.50,476.40,485.89,497.28,515.78,530.97,538.56,549.95,561.33,568.45,576.04,579.84,583.64,587.43,591.23,598.82,606.41,617.80,628.71,643.90,662.88,685.18,711.75,741.64,775.81,809.50,847.46,884.94,926.22,967.98,1013.06,1058.14,1107.01,1156.36,1209.03,1235.12,1287.79,1333.35,1363.24,1400.72,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50,1423.50\r 104045142NV0010169,Hometown Health,26 Renown Silver 68 HMO,RA3,No,Silver,26 Renown Silver 68 HMO,HMO,$0,"$6,775 + 0%","$6,775 + 0%","$6,775 + 0%",$50,"$6,775 + 0%","$6,775 + 0%","$6,775 + 0%","$6,775 + 0%","$6,775 + 0%","$6,775",0%,"$6,775",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$6,775 + 0%","$6,775 + 0%","$6,775 + 0%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,476.33,364.39,364.39,364.39,364.39,364.39,364.39,364.39,364.39,364.39,364.39,364.39,364.39,364.39,364.39,396.78,409.17,421.55,434.89,448.23,462.04,476.33,476.33,476.33,476.33,478.24,487.76,499.19,517.77,533.01,540.63,552.07,563.50,570.64,578.26,582.08,585.89,589.70,593.51,601.13,608.75,620.18,631.14,646.38,665.43,687.82,714.50,744.50,778.80,812.62,850.73,888.36,929.80,971.71,1016.96,1062.22,1111.28,1160.82,1213.69,1239.89,1292.76,1338.49,1368.50,1406.13,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99,1428.99\r 104145142NV0010170,Hometown Health,26 Renown Silver 70 HMO,RA3,No,Silver,26 Renown Silver 70 HMO,HMO,$0,"$5,975 + 0%","$5,975 + 0%","$5,975 + 0%",$50,"$5,975 + 0%","$5,975 + 0%","$5,975 + 0%","$5,975 + 0%","$5,975 + 0%","$5,975",0%,"$5,975",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$5,975 + 0%","$5,975 + 0%","$5,975 + 0%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,516.49,395.11,395.11,395.11,395.11,395.11,395.11,395.11,395.11,395.11,395.11,395.11,395.11,395.11,395.11,430.24,443.66,457.09,471.56,486.02,501.00,516.49,516.49,516.49,516.49,518.56,528.89,541.28,561.42,577.95,586.22,598.61,611.01,618.76,627.02,631.15,635.28,639.41,643.55,651.81,660.07,672.47,684.35,700.88,721.54,745.81,774.74,807.27,844.46,881.13,922.45,963.25,1008.19,1053.64,1102.71,1151.77,1204.97,1258.69,1316.02,1344.42,1401.75,1451.34,1483.88,1524.68,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47,1549.47\r 104245142NV0010171,Hometown Health,26 Renown Silver 68 HMO HSA,RA3,No,Silver,26 Renown Silver 68 HMO HSA,HMO,$0,"$3,900 + $5","$3,900 + $85","$3,900 + 50%","$3,900 + $50","$3,900 + 50%","$3,900 + 50%","$3,900 + 50%","$3,900 + 50%","$3,900 + 50%","$3,900",50%,"$7,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$3,900 + $13","$3,900 + $55","$3,900 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,472.17,361.21,361.21,361.21,361.21,361.21,361.21,361.21,361.21,361.21,361.21,361.21,361.21,361.21,361.21,393.32,405.59,417.87,431.09,444.31,458.00,472.17,472.17,472.17,472.17,474.06,483.50,494.83,513.25,528.36,535.91,547.25,558.58,565.66,573.21,576.99,580.77,584.55,588.32,595.88,603.43,614.77,625.63,640.73,659.62,681.81,708.26,738.00,772.00,805.52,843.30,880.60,921.68,963.23,1008.08,1052.94,1101.57,1150.68,1203.09,1229.06,1281.47,1326.80,1356.54,1393.85,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51,1416.51\r 104345142NV0010172,Hometown Health,26 Renown Silver 70 HMO HSA,RA3,No,Silver,26 Renown Silver 70 HMO HSA,HMO,$0,"$3,450 + $5","$3,450 + $80","$3,450 + 50%","$3,450 + $50","$3,450 + 50%","$3,450 + 50%","$3,450 + 50%","$3,450 + 50%","$3,450 + 50%","$3,450",50%,"$6,900",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$3,450 + $13","$3,450 + $55","$3,450 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,511.91,391.61,391.61,391.61,391.61,391.61,391.61,391.61,391.61,391.61,391.61,391.61,391.61,391.61,391.61,426.42,439.73,453.04,467.37,481.71,496.55,511.91,511.91,511.91,511.91,513.96,524.20,536.48,556.45,572.83,581.02,593.30,605.59,613.27,621.46,625.55,629.65,633.74,637.84,646.03,654.22,666.51,678.28,694.66,715.14,739.20,767.87,800.12,836.97,873.32,914.27,954.71,999.25,1044.30,1092.93,1141.56,1194.29,1247.52,1304.35,1332.50,1389.32,1438.47,1470.72,1511.16,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73,1535.73\r 104445142NV0010173,Hometown Health,26 Renown Silver 5 HMO,RA3,No,Silver,26 Renown Silver 5 HMO,HMO,$0,$5,$80,"$4,525 + 50%",$50,"$4,525 + 50%","$4,525 + 50%","$4,525 + 50%","$4,525 + 50%","$4,525 + 50%","$4,525",50%,"$9,050",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$13,$55,"$4,525 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,549.51,420.38,420.38,420.38,420.38,420.38,420.38,420.38,420.38,420.38,420.38,420.38,420.38,420.38,420.38,457.74,472.03,486.32,501.70,517.09,533.02,549.51,549.51,549.51,549.51,551.71,562.70,5
104475.89,597.32,614.90,623.69,636.88,650.07,658.31,667.11,671.50,675.90,680.29,684.69,693.48,702.27,715.46,728.10,745.69,767.67,793.49,824.27,858.88,898.45,937.46,981.42,1024.84,1072.64,1121.00,1173.20,1225.41,1282.01,1339.16,1400.15,1430.37,1491.37,1544.12,1578.74,1622.15,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53,1648.53\r 104545142NV0010174,Hometown Health,26 Renown Silver 10 HMO,RA3,No,Silver,26 Renown Silver 10 HMO,HMO,$0,$10,$80,"$4,500 + 50%",$50,"$4,500 + 50%","$4,500 + 50%","$4,500 + 50%","$4,500 + 50%","$4,500 + 50%","$4,500",50%,"$9,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$13,$55,"$4,500 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,536.39,410.34,410.34,410.34,410.34,410.34,410.34,410.34,410.34,410.34,410.34,410.34,410.34,410.34,410.34,446.81,460.76,474.71,489.72,504.74,520.30,536.39,536.39,536.39,536.39,538.54,549.26,562.14,583.06,600.22,608.80,621.68,634.55,642.60,651.18,655.47,659.76,664.05,668.34,676.92,685.51,698.38,710.72,727.88,749.34,774.55,804.59,838.38,877.00,915.08,957.99,1000.37,1047.03,1094.24,1145.19,1196.15,1251.40,1307.18,1366.72,1396.22,1455.76,1507.26,1541.05,1583.42,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17,1609.17\r 104645142NV0010175,Hometown Health,26 Renown Silver 20 HMO,RA3,No,Silver,26 Renown Silver 20 HMO,HMO,$0,$20,$80,"$4,450 + 50%",$50,"$4,450 + 50%","$4,450 + 50%","$4,450 + 50%","$4,450 + 50%","$4,450 + 50%","$4,450",50%,"$8,900",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$13,$55,"$4,450 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,548.74,419.79,419.79,419.79,419.79,419.79,419.79,419.79,419.79,419.79,419.79,419.79,419.79,419.79,419.79,457.10,471.37,485.63,501.00,516.36,532.28,548.74,548.74,548.74,548.74,550.93,561.91,575.08,596.48,614.04,622.82,635.99,649.16,657.39,666.17,670.56,674.95,679.34,683.73,692.51,701.29,714.46,727.08,744.64,766.59,792.38,823.11,857.68,897.19,936.15,980.05,1023.40,1071.14,1119.43,1171.56,1223.69,1280.21,1337.28,1398.19,1428.37,1489.28,1541.96,1576.53,1619.88,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22,1646.22\r 104745142NV0010176,Hometown Health,26 Renown Silver Plus HMO,RA3,No,Silver,26 Renown Silver Plus HMO,HMO,$0,$40,$80,$80,$50,"$2,500 (Waived if Admitted)",$80,$500,$500,50%,$0,50%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$55,50%,Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,516.98,395.49,395.49,395.49,395.49,395.49,395.49,395.49,395.49,395.49,395.49,395.49,395.49,395.49,395.49,430.64,444.09,457.53,472.00,486.48,501.47,516.98,516.98,516.98,516.98,519.05,529.39,541.80,561.96,578.50,586.77,599.18,611.59,619.34,627.61,631.75,635.89,640.02,644.16,652.43,660.70,673.11,685.00,701.54,722.22,746.52,775.47,808.04,845.26,881.97,923.33,964.17,1009.14,1054.64,1103.75,1152.87,1206.11,1259.88,1317.27,
10471345.70,1403.08,1452.71,1485.28,1526.12,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94,1550.94\r 104845142NV0010177,Hometown Health,26 Renown Gold HMO,RA3,No,Gold,26 Renown Gold HMO,HMO,$0,$5,$50,"$2,300 + 30%",$50,"$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300",30%,"$4,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$40,"$2,300 + 50%",Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,734.89,562.19,562.19,562.19,562.19,562.19,562.19,562.19,562.19,562.19,562.19,562.19,562.19,562.19,562.19,612.16,631.27,650.38,670.95,691.53,712.84,734.89,734.89,734.89,734.89,737.83,752.53,770.16,798.83,822.34,834.10,851.74,869.37,880.40,892.16,898.04,903.91,909.79,915.67,927.43,939.19,956.83,973.73,997.25,1026.64,1061.18,1102.34,1148.63,1201.55,1253.72,1312.51,1370.57,1434.51,1499.18,1568.99,1638.80,1714.50,1790.93,1872.50,1912.92,1994.49,2065.04,2111.34,2169.40,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67,2204.67\r 104945142NV0010178,Hometown Health,26 Renown Gold Plus HMO,RA3,No,Gold,26 Renown Gold Plus HMO,HMO,$0,$5,$50,$50,$50,"$850 (Waived if Admitted)",$50,$200,$250,30%,$0,30%,"$7,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$40,$200,Renown HMO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,741.76,567.45,567.45,567.45,567.45,567.45,567.45,567.45,567.45,567.45,567.45,567.45,567.45,567.45,567.45,617.89,637.17,656.46,677.23,698.00,719.51,741.76,741.76,741.76,741.76,744.73,759.56,777.36,806.29,830.03,841.90,859.70,877.50,888.63,900.50,906.43,912.36,918.30,924.23,936.10,947.97,965.77,982.83,1006.57,1036.24,1071.10,1112.64,1159.37,1212.78,1265.44,1324.78,1383.38,1447.92,1513.19,1583.66,1654.12,1730.53,1807.67,1890.00,1930.80,2013.14,2084.35,2131.08,2189.68,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28,2225.28\r 105045142NV0010179,Hometown Health,26 Hometown Bronze EPO,RA3,No,Bronze,26 Hometown Bronze EPO,EPO,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0",$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,471.81,360.93,360.93,360.93,360.93,360.93,360.93,360.93,360.93,360.93,360.93,360.93,360.93,360.93,360.93,393.02,405.28,417.55,430.76,443.97,457.66,471.81,471.81,471.81,471.81,473.70,483.13,494.46,512.86,527.96,535.50,546.83,558.15,565.23,572.78,576.55,580.33,584.10,587.88,595.42,602.97,614.30,625.15,640.25,659.12,681.29,707.72,737.44,771.41,804.91,842.65,879.93,920.97,962.49,1007.31,1052.14,1100.73,1149.80,1202.17,1228.12,1280.49,1325.79,1355.51,1392.78,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43,1415.43\r 105145142NV0010180,Hometown Health,26 Hometown Bronze EPO HSA,RA3,No,Bronze,26 Hometown Bronze EPO HSA,EPO,$0,"$5,000 + $45","$5,000 + $90","$5,000 + 50%","$5,000 + $50","$5,000 + 50%","$5,000 + 50%","$5,000 + 50%","$5,000 + 50%","$5,000 + 50%","$5,000",50%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$5,000 + $20","$5,000 + 50%","$5,000 + 50%",Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,537.28,411.02,411.02,411.02,411.02,411.02,411.02,411.02,411.02,411.02,411.02,411.02,411.02,411.02,411.02,447.55,461.52,475.49,490.54,505.58,521.16,537.28,537.28,537.28,537.28,539.43,550.17,563.07,584.02,601.22,609.81,622.71,635.60,643.66,652.26,656.56,660.85,665.15,669.45,678.05,686.64,699.54,711.90,729.09,750.58,775.83,805.92,839.77,878.45,916.60,959.58,1002.03,1048.77,1096.05,1147.09,1198.13,1253.47,1309.35,1368.99,1398.54,1458.18,1509.76,1543.61,1586.05,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84,1611.84\r 105245142NV0010181,Hometown Health,26 Hometown Bronze Plus EPO,RA3,No,Bronze,26 Hometown Bronze Plus EPO,EPO,$0,$45,$90,"$5,225 + 50%",$50,"$5,225 + 50%","$5,225 + 50%","$5,225 + 50%","$5,225 + 50%","$5,225 + 50%","$5,225",50%,"$10,450",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$20,50%,"$5,225 + 50%",Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,549.14,420.09,420.09,420.09,420.09,420.09,420.09,420.09,420.09,420.09,420.09,420.09,420.09,420.09,420.09,457.43,471.71,485.99,501.36,516.74,532.67,549.14,549.14,549.14,549.14,551.34,562.32,575.50,596.92,614.49,623.27,636.45,649.63,657.87,666.
105266,671.05,675.44,679.84,684.23,693.01,701.80,714.98,727.61,745.18,767.15,792.96,823.71,858.31,897.84,936.83,980.76,1024.15,1071.92,1120.25,1172.41,1224.58,1281.14,1338.25,1399.21,1429.41,1490.37,1543.08,1577.68,1621.06,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42,1647.42\r 105345142NV0010182,Hometown Health,26 Hometown Silver 68 EPO,RA3,No,Silver,26 Hometown Silver 68 EPO,EPO,$0,"$6,775 + 0%","$6,775 + 0%","$6,775 + 0%",$50,"$6,775 + 0%","$6,775 + 0%","$6,775 + 0%","$6,775 + 0%","$6,775 + 0%","$6,775",0%,"$6,775",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$6,775 + 0%","$6,775 + 0%","$6,775 + 0%",Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,559.49,428.01,428.01,428.01,428.01,428.01,428.01,428.01,428.01,428.01,428.01,428.01,428.01,428.01,428.01,466.06,480.60,495.15,510.81,526.48,542.71,559.49,559.49,559.49,559.49,561.73,572.92,586.35,608.17,626.07,635.02,648.45,661.88,670.27,679.22,683.70,688.17,692.65,697.12,706.08,715.03,728.46,741.32,759.23,781.61,807.90,839.24,874.48,914.77,954.49,999.25,1043.45,1092.12,1141.36,1194.51,1247.66,1305.29,1363.48,1425.58,1456.35,1518.46,1572.17,1607.41,1651.61,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47,1678.47\r 105445142NV0010183,Hometown Health,26 Hometown Silver 68 EPO HSA,RA3,No,Silver,26 Hometown Silver 68 EPO HSA,EPO,$0,"$3,900 + $5","$3,900 + $85","$3,900 + 50%","$3,900 + $50","$3,900 + 50%","$3,900 + 50%","$3,900 + 50%","$3,900 + 50%","$3,900 + 50%","$3,900",50%,"$7,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$3,900 + $13","$3,900 + $55","$3,900 + 50%",Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,555.09,424.64,424.64,424.64,424.64,424.64,424.64,424.64,424.64,424.64,424.64,424.64,424.64,424.64,424.64,462.39,476.82,491.25,506.80,522.34,538.44,555.09,555.09,555.09,555.09,557.31,568.41,581.73,603.38,621.15,630.03,643.35,656.67,665.00,673.88,678.32,682.76,687.20,691.64,700.52,709.41,722.73,735.49,753.26,775.46,801.55,832.64,867.61,907.57,946.98,991.39,1035.24,1083.54,1132.38,1185.12,1237.85,1295.02,1352.75,1414.37,1444.90,1506.51,1559.80,1594.77,1638.63,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27,1665.27\r 105545142NV0010184,Hometown Health,26 Hometown Silver Plus EPO,RA3,No,Silver,26 Hometown Silver Plus EPO,EPO,$0,$40,$80,$80,$50,"$2,500 (Waived if Admitted)",$80,$500,$500,50%,$0,50%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$55,50%,Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,595.50,455.56,455.56,455.56,455.56,455.56,455.56,455.56,455.56,455.56,455.56,455.56,455.56,455.56,455.56,496.05,511.53,527.02,543.69,560.37,577.64,595.50,595.50,595.50,595.50,597.88,609.79,624.08,647.31,666.36,675.89,690.18,704.48,713.41,722.94,727.70,732.47,737.23,741.99,751.52,761.05,775.34,789.04,808.09,831.91,859.90,893.25,930.77,973.64,1015.92,1063.56,1110.61,1162.42,1214.82,1271.39,1327.97,1389.30,1451.23,1517.33,1550.09,1616.19,1673.36,1710.87,1757.92,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50,1786.50\r 105645142NV0010185,Hometown Health,26 Hometown Gold EPO,RA3,No,Gold,26 Hometown Gold EPO,EPO,$0,$5,$50,"$2,300 + 30%",$50,"$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300 + 30%","$2,300",30%,"$4,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$40,"$2,300 + 50%",Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,842.88,644.80,644.80,644.80,644.80,644.80,644.80,644.80,644.80,644.80,644.80,644.80,644.80,644.80,644.80,702.12,724.03,745.95,769.55,793.15,817.59,842.88,842.88,842.88,842.88,846.25,863.11,883.34,916.21,943.18,956.67,976.90,997.13,1009.77,1023.26,1030.00,1036.74,1043.49,1050.23,1063.71,1077.20,1097.43,1116.82,1143.79,1177.50,1217.12,12
105664.32,1317.42,1378.11,1437.95,1505.38,1571.97,1645.30,1719.48,1799.55,1879.62,1966.44,2054.10,2147.66,2194.02,2287.58,2368.49,2421.59,2488.18,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64,2528.64\r 105745142NV0010186,Hometown Health,26 Hometown Gold Plus EPO,RA3,No,Gold,26 Hometown Gold Plus EPO,EPO,$0,$5,$50,$50,$50,"$850 (Waived if Admitted)",$50,$200,$250,30%,$0,30%,"$7,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$40,$200,Hometown Health EPO,https://www.hometownhealth.com/provider_directories/,https://www.hometownhealth.com/pharmacy-services/drug-formularies/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/hometown-health-brand.png,845.96,647.16,647.16,647.16,647.16,647.16,647.16,647.16,647.16,647.16,647.16,647.16,647.16,647.16,647.16,704.68,726.68,748.67,772.36,796.05,820.58,845.96,845.96,845.96,845.96,849.34,866.26,886.57,919.56,946.63,960.16,980.47,1000.77,1013.46,1027.00,1033.76,1040.53,1047.30,1054.07,1067.60,1081.14,1101.44,1120.90,1147.97,1181.81,1221.57,1268.94,1322.24,1383.14,1443.21,1510.88,1577.72,1651.31,1725.76,1806.12,1886.49,1973.62,2061.60,2155.51,2202.03,2295.94,2377.15,2430.44,2497.27,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88,2537.88\r 105845142NV0010187,Anthem,26 Anthem Catastrophic X,RA3,No,Catastrophic,26 Anthem Catastrophic X,HMO,$0,"1st 3 Visits: $40 After: $10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,400.81,306.62,306.62,306.62,306.62,306.62,306.62,306.62,306.62,306.62,306.62,306.62,306.62,306.62,306.62,333.87,344.30,354.72,365.94,377.16,388.79,400.81,400.81,400.81,400.81,402.41,410.43,420.05,435.68,448.51,454.92,464.54,474.16,480.17,486.58,489.79,493.00,496.20,499.41,505.82,512.24,521.85,531.07,543.90,559.93,578.77,601.22,626.47,655.32,683.78,715.85,747.51,782.38,817.65,855.73,893.81,935.09,976.77,1021.26,1043.31,1087.80,1126.28,1151.53,1183.19,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43,1202.43\r 105945142NV0010188,Anthem,26 Anthem Bronze X 10600,RA3,No,Bronze,26 Anthem Bronze X 10600,HMO,$0,$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,470.46,359.90,359.90,359.90,359.90,359.90,359.90,359.90,359.90,359.90,359.90,359.90,359.90,359.90,359.90,391.89,404.13,416.36,429.53,442.70,456.35,470.46,470.46,470.46,470.46,472.34,481.75,493.04,511.39,526.44,533.97,545.26,556.55,563.61,571.14,574.90,578.67,582.43,586.19,593.72,601.25,612.54,623.36,638.41,657.23,679.34,705.69,735.33,769.20,802.60,840.24,877.41,918.34,959.74,1004.43,1049.13,1097.58,1146.51,1198.73,1224.61,1276.83,1321.99,1351.63,1388.80,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38,1411.38\r 106045142NV0010189,Anthem,26 Anthem Bronze X 8200,RA3,No,Bronze,26 Anthem Bronze X 8200,HMO,$0,"$8,200 + 40%","$8,200 + 40%",$50,$75,"$500 + $8,200 + 50%",$120,"$8,200 + 50%","$8,200 + 40%","$8,200 + 50%","$8,200",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$8,200 + 40%","$8,200 + 50%","$8,200 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,472.33,361.33,361.33,361.33,361.33,361.33,361.33,361.33,361.33,361.33,361.33,361.33,361.33,361.33,361.33,393.45,405.73,418.01,431.24,444.46,458.16,472.33,472.33,472.33,472.33,474.22,483.67,495.00,513.42,528.54,536.09,547.43,558.77,565.85,573.41,577.19,580.97,584.74,588.52,596.08,603.64,614.97,625.84,640.95,659.85,682.04,708.50,738.25,772.26,805.79,843.58,880.90,921.99,963.55,1008.42,1053.30,1101.95,1151.07,1203.50,1229.47,1281.90,1327.25,1357.00,1394.32,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99,1416.99\r 106145142NV0010190,Anthem,26 Anthem Bronze X 5500,RA3,No,Bronze,26 Anthem Bronze X 5500,HMO,$0,$50,"$5,500 + 40%","$5,500 + 40%",$50,"$500 + $5,500 + 40%","$5,500 + 40%","$250 + $5,500 + 40%","$5,500 + 40%","$1,000 + $5,500 + 40%","$5,500",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,$90,"$5,500 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,490.00,374.85,374.85,374.85,374.85,374.85,374.85,374.85,374.85,374.85,374.85,374.85,374.85,374.85,374.85,408.17,420.91,433.65,447.37,461.09,475.30,490.00,490.00,490.00,490.00,491.96,501.76,513.52,532.63,548.31,556.15,567.91,579.67,587.02,594.86,598.78,602.70,606.62,610.54,618.38,62
10616.22,637.98,649.25,664.93,684.53,707.56,735.00,765.87,801.15,835.94,875.14,913.85,956.48,999.60,1046.15,1092.70,1143.17,1194.13,1248.52,1275.47,1329.86,1376.90,1407.77,1446.48,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00,1470.00\r 106245142NV0010191,Anthem,26 Anthem Bronze X 6000,RA3,No,Bronze,26 Anthem Bronze X 6000,HMO,$0,$40,$100,"$6,000 + 30%",$50,"$500 + $6,000 + 30%","$6,000 + 30%","$500 + $6,000 + 30%","$6,000 + 30%","$500 + $6,000 + 40%","$6,000",30%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$30,"$6,000 + 30%","$6,000 + 30%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,492.37,376.66,376.66,376.66,376.66,376.66,376.66,376.66,376.66,376.66,376.66,376.66,376.66,376.66,376.66,410.14,422.95,435.75,449.53,463.32,477.60,492.37,492.37,492.37,492.37,494.34,504.19,516.00,535.21,550.96,558.84,570.66,582.47,589.86,597.74,601.68,605.62,609.55,613.49,621.37,629.25,641.07,652.39,668.15,687.84,710.98,738.56,769.57,805.02,839.98,879.37,918.27,961.11,1004.43,1051.21,1097.99,1148.70,1199.91,1254.56,1281.64,1336.29,1383.56,1414.58,1453.48,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11,1477.11\r 106345142NV0010192,Anthem,26 Anthem Bronze X 7000 Adult Dntal/Vision,RA3,No,Bronze,26 Anthem Bronze X 7000 Adult Dntal/Vision,HMO,$0,$40,$90,"$7,000 + 40%",$75,"$7,000 + 40%","$7,000 + 40%","$7,000 + 0%","$7,000 + 40%","$7,000 + 40%","$7,000",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,"$7,000 + $75","$7,000 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,507.07,387.91,387.91,387.91,387.91,387.91,387.91,387.91,387.91,387.91,387.91,387.91,387.91,387.91,387.91,422.39,435.57,448.76,462.95,477.15,491.86,507.07,507.07,507.07,507.07,509.10,519.24,531.41,551.19,567.41,575.52,587.69,599.86,607.47,615.58,619.64,623.70,627.75,631.81,639.92,648.04,660.21,671.87,688.09,708.38,732.21,760.61,792.55,829.06,865.06,905.63,945.69,989.80,1034.42,1082.59,1130.77,1182.99,1235.73,1292.01,1319.90,1376.19,1424.87,1456.81,1496.87,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21,1521.21\r 106445142NV0010193,Anthem,26 Anthem Bronze X 8050 for HSA,RA3,No,Bronze,26 Anthem Bronze X 8050 for HSA,HMO,$0,"$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050",0%,"$8,050",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$8,050 + 0%","$8,050 + 0%","$8,050 + 0%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,514.01,393.22,393.22,393.22,393.22,393.22,393.22,393.22,393.22,393.22,393.22,393.22,393.22,393.22,393.22,428.17,441.53,454.90,469.29,483.68,498.59,514.01,514.01,514.01,514.01,516.07,526.35,538.68,558.73,575.18,583.40,595.74,608.07,615.78,624.01,628.12,632.23,636.34,640.46,648.68,656.90,669.24,681.06,697.51,718.07,742.23,771.02,803.40,840.41,876.90,918.02,958.63,1003.35,1048.58,1097.41,1146.24,1199.19,1252.64,1309.70,1337.97,1395.02,1444.37,1476.75,1517.36,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03,1542.03\r 106545142NV0010194,Anthem,26 Anthem Silver X 5500,RA3,No,Silver,26 Anthem Silver X 5500,HMO,$0,$10,$60,"$5,500 + 25%",$50,"$650 + $5,500 + $25%",$50,"$5,500 + 25%","$5,500 + 25%","$1,000 + $5,500 + 25%","$5,500",25%,"$9,700",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$40,"$5,500 + 35%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,591.86,452.77,452.77,452.77,452.77,452.77,452.77,452.77,452.77,452.77,452.77,452.77,452.77,452.77,452.77,493.02,508.41,523.80,540.37,556.94,574.10,591.86,591.86,591.86,591.86,594.23,606.06,620.27,643.35,662.29,671.76,685.97,700.17,709.05,718.52,723.25,727.99,732.72,737.46,746.93,756.40,770.60,784.21,803.15,826.83,854.65,887.79,925.08,967.69,1009.71,1057.06,1103.82,1155.31,1207.39,1263.62,1319.85,1380.81,1442.36,1508.06,1540.61,1606.31,1663.13,1700.41,1747.17,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58,1775.58\r 106645142NV0010195,Anthem,26 Anthem Silver X 6800,RA3,No,Silver,26 Anthem Silver X 6800,HMO,$0,$20,$80,$25,$50,"$500 + $6,800 + 45%","$6,800 + 45%","$6,800 + 45%","$6,800 + 45%","$1,000 + $6,800 + 50%","$6,800",45%,"$8,900",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$75,"$6,800 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,597.92,457.41,457.41,457.41,457.41,457.41,457.41,457.41,457.41,457.41,457.41,457.41,457.41,457.41,457.41,498.07,513.61,529.16,545.90,562.64,579.98,597.92,597.92,597.92,597.92,600.31,612.27,626.62,649.94,669.07,678.64,692.99,707.34,716.31,725.87,730.66,735.44,740.22,745.01,754.58,764.14,778.49,792.24,811.38,835.29,863.40,896.88,934.55,977.60,1020.05,1067.89,1115.12,1167.14,1219.76,1276.56,1333.36,1394.95,1457.13,1523.50,1556.39,1622.75,1680.16,1717.82,1765.06,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76,1793.76\r 106745142NV0010196,Anthem,26 Anthem Silver X 6500,RA3,No,Silver,26 Anthem Silver X 6500,HMO,$0,$15,$60,"$6,500 + 40%",$50,"$500 + $6,500 + 40%",$75,"$6,500 + 40%","$6,500 + 40%","$1,000 + $6,500 + 40%","$6,500",40%,"$8,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$40,"$6,500 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,604.52,462.46,462.46,462.46,462.46,462.46,462.46,462.46,462.46,462.46,462.46,462.46,462.46,462.46,462.46,503.57,519.28,535.00,551.93,568.85,586.38,604.52,604.52,604.52,604.52,606.94,619.03,633.54,657.11,676.46,686.13,700.64,715.15,724.21,733.89,738.72,743.56,748.40,753.23,762.90,772.58,787.09,800.99,820.33,844.51,872.93,906.78,944.86,988.39,1031.31,1079.67,1127.43,1180.02,1233.22,1290.65,1348.08,1410.35,1473.22,1540.32,1573.57,1640.67,1698.70,1736.79,1784.54,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56,1813.56\r 106845142NV0010197,Anthem,26 Anthem Silver X 4200,RA3,No,Silver,26 Anthem Silver X 4200,HMO,$0,$25,$75,"$4,200 + 40%",$50,"$500 + $4,200 + 40%",$30,"$300 + $4,200 + 50%","$4,200 + 40%","$1,000 + $4,200 + 40%","$4,200",40%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$35,"$4,200 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,606.34,463.85,463.85,463.85,463.85,463.85,463.85,463.85,463.85,463.85,463.85,463.85,463.85,463.85,463.85,505.08,520.85,536.61,553.59,570.57,588.15,606.34,606.34,606.34,606.34,608.77,620.89,635.44,659.09,678.49,688.20,702.75,717.30,726.40,736.10,740.95,745.80,750.65,755.50,765.20,774.90,789.45,803.40,822.80,847.06,875.55,909.51,947.71,991.37,1034.42,1082.92,1130.82,1183.58,1236.93,1294.54,1352.14,1414.59,1477.65,1544.95,1578.30,1645.61,1703.82,1742.01,1789.92,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02,1819.02\r 106945142NV0010198,Anthem,26 Anthem Silver X 3500,RA3,No,Silver,26 Anthem Silver X 3500,HMO,$0,$20,$60,"$3,500 + 20%",$50,"$1,000 + $3,500 + 20%",$50,"$500 + $3,500 + 20%","$3,500 + 20%","$500 + $3,500 + 30%","$3,500",20%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$50,"$3,500 + 30%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,611.35,467.68,467.68,467.68,467.68,467.68,467.68,467.68,467.68,467.68,467.68,467.68,467.68,467.68,467.68,509.25,525.15,541.04,558.16,575.28,593.01,611.35,611.35,611.35,611.35,613.80,626.02,640.69,664.54,684.10,693.88,708.55,723.23,732.40,742.18,747.07,751.96,756.85,761.74,771.52,781.31,795.98,810.04,829.60,854.06,882.79,917.03,955.54,999.56,1042.96,1091.87,1140.17,1193.36,1247.15,1305.23,1363.31,1426.28,1489.86,1557.72,1591.34,1659.20,1717.89,1756.41,1804.71,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05,1834.05\r 107045142NV0010199,Anthem,26 Anthem Silver X 3300 Adult Dntal/Vision,RA3,No,Silver,26 Anthem Silver X 3300 Adult Dntal/Vision,HMO,$0,$10,$50,"$3,300 + 30%",$50,"$500 + $3,300 + 50%","$3,300 + 30%","$3,300 + $0","$3,300 + 30%","$3,300 + 30%","$3,300",30%,"$8,300",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$80,"$3,300 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,641.85,491.02,491.02,491.02,491.02,491.02,491.02,491.02,491.02,491.02,491.02,491.02,491.02,491.02,491.02,534.66,551.35,568.04,586.01,603.98,622.59,641.85,641.85,641.85,641.85,644.42,657.25,672.66,697.69,718.23,728.50,743.90,759.31,768.94,779.21,784.34,789.48,794.61,799.75,810.01,820.28,835.69,850.45,870.99,896.66,926.83,962.78,1003.21,1049.42,1095.00,1146.34,1197.05,1252.89,1309.37,1370.35,1431.33,1497.44,1564.19,1635.43,1670.74,1741.98,1803.60,1844.04,1894.74,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55,1925.55\r 107145142NV0010200,Anthem,26 Anthem Silver X 3600 HSA,RA3,No,Silver,26 Anthem Silver X 3600 HSA,HMO,$0,"$3,600 + 25%","$3,600 + 25%","$3,600 + 25%","$3,600 + 25%","$3,600 + 50%","$3,600 + 25%","$3,600 + 25%","$3,600 + 25%","$500 + $3,600 + 50%","$3,600",25%,"$6,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$3,600 + 35%","$3,600 + 35%","$3,600 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,643.61,492.36,492.36,492.36,492.36,492.36,492.36,492.36,492.36,492.36,492.36,492.36,492.36,492.36,492.36,536.13,552.86,569.59,587.62,605.64,624.30,643.61,643.61,643.61,643.61,646.18,659.06,674.50,699.60,720.20,730.50,745.94,761.39,771.04,781.34,786.49,791.64,796.79,801.94,812.24,822.53,837.98,852.78,873.38,899.12,929.37,965.42,1005.96,1052.30,1098.00,1149.49,1200.33,1256.33,1312.96,1374.11,1435.25,1501.54,1568.48,1639.92,1675.32,1746.76,1808.54,1849.09,1899.94,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83,1930.83\r 107245142NV0010201,Anthem,26 Anthem Gold X 1100,RA3,No,Gold,26 Anthem Gold X 1100,HMO,$0,"Frist 2 Visits: $35 After: $1,100 + 25%","$1,100 + 25%","$1,100 + 25%",$50,"$500 + $1,100 + 25%","$1,100 + 25%","$250 + $1,100 + 25%","$1,100 + 25%","$1,000 + $1,100 + 25%","$1,100",25%,"$6,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$40,"$1,100 + 30%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,891.48,681.98,681.98,681.98,681.98,681.98,681.98,681.98,681.98,681.98,681.98,681.98,681.98,681.98,681.98,742.60,765.78,788.96,813.92,838.88,864.74,891.48,891.48,891.48,891.48,895.05,912.88,934.27,969.04,997.57,1011.83,1033.23,1054.62,1067.99,1082.26,1089.39,1096.52,1103.65,1110.78,1125.05,1139.31,1160.71,1181.21,1209.74,1245.40,1287.30,1337.22,1393.38,1457.57,1520.86,1592.18,1662.61,1740.17,1818.62,1903.31,1988.00,2079.82,2172.54,2271.49,2320.52,2419.48,2505.06,2561.22,2631.65,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44,2674.44\r 107345142NV0010202,Ambetter,26 Ambetter Everyday Bronze,RA3,No,Bronze,26 Ambetter Everyday Bronze,HMO,$0,$40,$90,$50,$50,"$8,450 + 50%","$8,450 + 50%","$8,450 + 50%","$8,450 + 50%","$8,450 + 50%","$8,450",50%,"$10,150",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,"$8,450 + 45%","$8,450 + 45%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,487.48,372.92,372.92,372.92,372.92,372.92,372.92,372.92,372.92,372.92,372.92,372.92,372.92,372.92,372.92,406.07,418.75,431.42,445.07,458.72,472.86,487.48,487.48,487.48,487.48,489.43,499.18,510.88,529.89,545.49,553.29,564.99,576.69,584.00,591.80,595.70,599.60,603.50,607.40,615.20,623.00,634.70,645.91,661.51,681.01,703.92,731.22,761.93,797.03,831.64,870.64,909.15,951.56,994.46,1040.77,1087.08,1137.29,1187.99,1242.10,1268.91,1323.02,1369.82,1400.53,1439.04,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462
1073.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44,1462.44\r 107445142NV0010203,Ambetter,26 Ambetter Choice Bronze HSA,RA3,No,Bronze,26 Ambetter Choice Bronze HSA,HMO,$0,"$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250",0%,"$7,250",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$7,250 + 0%","$7,250 + 0%","$7,250 + 0%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,527.87,403.82,403.82,403.82,403.82,403.82,403.82,403.82,403.82,403.82,403.82,403.82,403.82,403.82,403.82,439.72,453.44,467.16,481.95,496.73,512.03,527.87,527.87,527.87,527.87,529.98,540.54,553.21,573.79,590.69,599.13,611.80,624.47,632.39,640.83,645.06,649.28,653.50,657.73,666.17,674.62,687.29,699.43,716.32,737.43,762.24,791.81,825.06,863.07,900.55,942.78,984.48,1030.40,1076.85,1127.00,1177.15,1231.52,1286.42,1345.01,1374.05,1432.64,1483.31,1516.57,1558.27,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61,1583.61\r 107545142NV0010204,Ambetter,26 Ambetter Clarity Silver,RA3,No,Silver,26 Ambetter Clarity Silver,HMO,$0,$50,$90,$30,$65,"$8,000 + 50%",$90,"$8,000 + 50%","$8,000 + 50%","$8,000 + 50%","$8,000",50%,"$8,400",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,"$8,000 + $85","$8,000 + 50%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,577.93,442.12,442.12,442.12,442.12,442.12,442.12,442.12,442.12,442.12,442.12,442.12,442.12,442.12,442.12,481.42,496.44,511.47,527.65,543.83,560.59,577.93,577.93,577.93,577.93,580.24,591.80,605.67,628.21,646.70,655.95,669.82,683.69,692.36,701.61,706.23,710.85,715.48,720.10,729.35,738.59,752.46,765.76,784.25,807.37,834.53,866.90,903.30,944.92,985.95,1032.18,1077.84,1128.12,1178.98,1233.88,1288.78,1348.31,1408.42,1472.57,1504.35,1568.50,1623.98,1660.39,1706.05,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79,1733.79\r 107645142NV0010205,Ambetter,26 Ambetter Focused Silver,RA3,No,Silver,26 Ambetter Focused Silver,HMO,$0,$40,$85,$50,$60,"$6,300 + 50%","$6,300 + 50%","$6,300 + 50%","$6,300 + 50%","$6,300 + 50%","$6,300",50%,"$8,400",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$75,"$6,300 + 45%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,621.90,475.75,475.75,475.75,475.75,475.75,475.75,475.75,475.75,475.75,475.75,475.75,475.75,475.75,475.75,518.04,534.21,550.38,567.79,585.21,603.24,621.90,621.90,621.90,621.90,624.39,636.83,651.75,676.01,695.91,705.86,720.78,735.71,745.04,754.99,759.96,764.94,769.91,774.89,784.84,794.79,809.71,824.02,843.92,868.79,898.02,932.85,972.03,1016.81,1060.96,1110.71,1159.84,1213.95,1268.68,1327.76,1386.84,1450.89,1515.57,1584.60,1618.81,1687.84,1747.54,1786.72,1835.85,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70,1865.70\r 107745142NV0010206,Ambetter,26 Ambetter Complete Silver,RA3,No,Silver,26 Ambetter Complete Silver,HMO,$0,$30,$60,$30,$60,"$5,950 + 40%","$5,950 + 40%","$5,950 + 40%","$5,950 + 40%","$5,950 + 40%","$5,950",40%,"$8,850",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$55,"$5,950 + 45%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,622.97,476.57,476.57,476.57,476.57,476.57,476.57,476.57,476.57,476.57,476.57,476.57,476.57,476.57,476.57,518.93,535.13,551.33,568.77,586.21,604.28,622.97,622.97,622.97,622.97,625.46,637.92,652.87,677.17,697.10,707.07,722.02,736.97,746.32,756.29,761.27,766.25,771.24,776.22,786.19,796.16,811.11,825.44,845.37,870.29,899.57,934.46,973.70,1018.56,1062.79,1112.62,1161.84,1216.04,1270.86,1330.04,1389.22,1453.39,1518.18,1587.33,1621.59,1690.74,1750.55,1789.79,1839.01,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91,1868.91\r 107845142NV0010207,Ambetter,26 Ambetter Principal Silver,RA3,No,Silver,26 Ambetter Principal Silver,HMO,$0,$30,$60,"$8,200 + $0",$50,"$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200",0%,"$8,200",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$50,"$8,200 + $0",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,624.76,477.94,477.94,477.94,477.94,477.94,477.94,477.94,477.94,477.94,477.94,477.94,477.94,477.94,477.94,520.43,536.67,552.91,570.41,587.90,606.02,624.76,624.76,624.76,624.76,627.26,639.75,654.75,679.11,699.11,709.10,724.10,739.09,748.46,758.46,763.46,768.45,773.45,778.45,788.45,798.44,813.44,827.81,847.80,872.79,902.15,937.14,976.50,1021.48,1065.84,1115.82,1165.18,1219.53,1274.51,1333.86,1393.21,1457.57,1522.54,1591.89,1626.25,1695.60,1755.58,1794.94,1844.29,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28,1874.28\r 107945142NV0010208,Ambetter,26 Ambetter Everyday Gold,RA3,No,Gold,26 Ambetter Everyday Gold,HMO,$0,$35,$55,$35,$45,$800 + 35%,$800 + 35%,$800 + 35%,$800 + 35%,$800 + 35%,$800,35%,"$7,250",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$60,$800 + 45%,Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,678.61,519.14,519.14,519.14,519.14,519.14,519.14,519.14,519.14,519.14,519.14,519.14,519.14,519.14,519.14,565.28,582.93,600.57,619.57,638.57,658.25,678.61,678.61,678.61,678.61,681.32,694.90,711.18,737.65,759.36,770.22,786.51,802.8
10790,812.97,823.83,829.26,834.69,840.12,845.55,856.41,867.26,883.55,899.16,920.87,948.02,979.91,1017.92,1060.67,1109.53,1157.71,1212.00,1265.61,1324.65,1384.36,1448.83,1513.30,1583.20,1653.77,1729.10,1766.42,1841.75,1906.89,1949.65,2003.26,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83,2035.83\r 108045142NV0010209,Ambetter,26 Ambetter Complete Gold,RA3,No,Gold,26 Ambetter Complete Gold,HMO,$0,$15,$35,$15,$35,"$1,450 + 20%","$1,450 + 20%","$1,450 + 20%","$1,450 + 20%","$1,450 + 20%","$1,450",20%,"$7,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$30,"$1,450 + 20%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,700.87,536.17,536.17,536.17,536.17,536.17,536.17,536.17,536.17,536.17,536.17,536.17,536.17,536.17,536.17,583.82,602.05,620.27,639.89,659.52,679.84,700.87,700.87,700.87,700.87,703.67,717.69,734.51,761.85,784.27,795.49,812.31,829.13,839.64,850.86,856.46,862.07,867.68,873.28,884.50,895.71,912.53,928.65,951.08,979.12,1012.06,1051.31,1095.46,1145.92,1195.68,1251.75,1307.12,1368.10,1429.77,1496.36,1562.94,1635.13,1708.02,1785.82,1824.36,1902.16,1969.44,2013.60,2068.97,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61,2102.61\r 108145142NV0010210,Ambetter,26 Ambetter Elite Gold,RA3,No,Gold,26 Ambetter Elite Gold,HMO,$0,$5,$60,$40,$35,30%,$75,$75,$200,30%,$0,30%,"$6,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$50,45%,Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,757.53,579.51,579.51,579.51,579.51,579.51,579.51,579.51,579.51,579.51,579.51,579.51,579.51,579.51,579.51,631.02,650.72,670.41,691.62,712.84,734.80,757.53,757.53,757.53,757.53,760.56,775.71,793.89,823.44,847.68,859.80,877.98,896.16,907.52,919.64,925.70,931.76,937.82,943.88,956.00,968.12,986.30,1003.73,1027.97,1058.27,1093.87,1136.30,1184.02,1238.56,1292.35,1352.95,1412.79,1478.70,1545.36,1617.33,1689.29,1767.32,1846.10,1930.19,1971.85,2055.94,2128.66,2176.38,2236.23,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59,2272.59\r 108245142NV0010211,CareSource,26 CareSource Low Premium Bronze 10600,RA3,No,Bronze,26 CareSource Low Premium Bronze 10600,HMO,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$10,600 + $0","$10,600 + $0",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,465.19,355.87,355.87,355.87,355.87,355.87,355.87,355.87,355.87,355.87,355.87,355.87,355.87,355.87,355.87,387.50,399.60,411.69,424.72,437.74,451.23,465.19,465.19,465.19,465.19,467.05,476.35,487.52,505.66,520.55,527.99,539.16,550.32,557.30,564.74,568.46,572.18,575.91,579.63,587.07,594.51,605.68,616.38,631.26,649.87,671.73,697.79,727.09,760.59,793.61,830.83,867.58,908.05,948.99,993.18,1037.37,1085.29,1133.67,1185.30,1210.89,1262.53,1307.18,1336.49,1373.24,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57,1395.57\r 108345142NV0010212,CareSource,26 CareSource Core Bronze 7500,RA3,No,Bronze,26 CareSource Core Bronze 7500,HMO,$0,$50,$100,"$7,500 + 50%",$75,"$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500",50%,"$10,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$7,500 + 50%","$7,500 + 50%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,471.48,360.68,360.68,360.68,360.68,360.68,360.68,360.68,360.68,360.68,360.68,360.68,360.68,360.68,360.68,392.74,405.00,417.26,430.46,443.66,457.34,471.48,471.48,471.48,471.48,473.37,482.80,494.11,512.50,527.59,535.13,546.45,557.76,564.83,572.38,576.15,579.92,583.69,587.46,595.01,602.55,613.87,624.71,639.80,658.66,680.82,707.22,736.92,770.87,804.34,842.06,879.31,920.33,961.82,1006.61,1051.40,1099.96,1149.00,1201.33,1227.26,1279.60,1324.86,1354.56,1391.81,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44,1414.44\r 108445142NV0010213,CareSource,26 CareSource Low Premium Silver Medicaid Transition,RA3,No,Silver,26 CareSource Low Premium Silver Medicaid Transition,HMO,$0,$40,$75,$50,$70,"$6,200 + 50%","$6,200 + $200","$6,200 + $250","$6,200 + 40%","$6,200 + $500","$6,200",40%,"$9,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$75,"$6,200 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,578.52,442.57,442.57,442.57,442.57,442.57,442.57,442.57,442.57,442.57,442.57,442.57,442.57,442.57,442.57,481.91,496.95,511.99,528.19,544.39,561.16,578.52,578.52,578.52,578.52,580.83,592.40,606.29,628.85,647.36,656.62,670.50,684.39,693.07,702.32,706.95,711.58,716.21,720.84,730.09,739.35,753.23,766.54,785.05,808.19,835.38,867.78,904.23,945.88,986.96,1033.24,1078.94,1129.27,1180.18,1235.14,1290.10,1349.69,1409.85,1474.07,1505.89,1570.10,1625.64,1662.09,1707.79,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56,1735.56\r 108545142NV0010214,CareSource,26 CareSource Healthy Heart Silver 5000,RA3,No,Silver,26 CareSource Healthy Heart Silver 5000,HMO,$0,$30,$50,$75,$70,"$5,000 + 50%","$5,000 + $400","$5,000 + $300","$5,000 + 50%","$5,000 + $600","$5,000",50%,"$9,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$100,"$5,000 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,607.57,464.79,464.79,464.79,464.79,464.79,464.79,464.79,464.79,464.79,464.79,464.79,464.79,464.79,464.79,506.11,521.90,537.70,554.71,571.72,589.34,607.57,607.57,607.57,607.57,610.00,
1085622.15,636.73,660.43,679.87,689.59,704.17,718.76,727.87,737.59,742.45,747.31,752.17,757.03,766.75,776.47,791.06,805.03,824.47,848.78,877.33,911.36,949.63,993.38,1036.51,1085.12,1133.12,1185.98,1239.44,1297.16,1354.88,1417.46,1480.65,1548.09,1581.50,1648.94,1707.27,1745.55,1793.55,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71,1822.71\r 108645142NV0010215,CareSource,26 CareSource Diabetes Silver 5000,RA3,No,Silver,26 CareSource Diabetes Silver 5000,HMO,$0,$30,$50,$75,$70,"$5,000 + 50%","$5,000 + $400","$5,000 + $300","$5,000 + 50%","$5,000 + $600","$5,000",50%,"$9,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$100,"$5,000 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,611.50,467.80,467.80,467.80,467.80,467.80,467.80,467.80,467.80,467.80,467.80,467.80,467.80,467.80,467.80,509.38,525.28,541.18,558.30,575.42,593.16,611.50,611.50,611.50,611.50,613.95,626.18,640.85,664.70,684.27,694.05,708.73,723.40,732.58,742.36,747.25,752.15,757.04,761.93,771.71,781.50,796.17,810.24,829.81,854.27,883.01,917.25,955.77,999.80,1043.22,1092.14,1140.45,1193.65,1247.46,1305.55,1363.65,1426.63,1490.23,1558.10,1591.73,1659.61,1718.32,1756.84,1805.15,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50,1834.50\r 108745142NV0010216,CareSource,26 CareSource Silver HSA 5500,RA3,No,Silver,26 CareSource Silver HSA 5500,HMO,$0,"$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500",0%,"$5,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$5,500 + $0","$5,500 + $0","$5,500 + $0",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,685.13,524.12,524.12,524.12,524.12,524.12,524.12,524.12,524.12,524.12,524.12,524.12,524.12,524.12,524.12,570.71,588.53,606.34,625.52,644.71,664.58,685.13,685.13,685.13,685.13,687.87,701.57,718.02,744.74,766.66,777.62,794.07,810.51,820.79,831.75,837.23,842.71,848.19,853.67,864.63,875.60,892.04,907.80,929.72,957.13,989.33,1027.70,1070.86,1120.19,1168.83,1223.64,1277.77,1337.37,1397.67,1462.75,1527.84,1598.41,1669.66,1745.71,1783.39,1859.44,1925.22,1968.38,2022.50,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39,2055.39\r 108845142NV0010217,CareSource,26 CareSource Low Premium Gold 1500,RA3,No,Gold,26 CareSource Low Premium Gold 1500,HMO,$0,$20,$50,$30,$40,"$1,500 + 10%","$1,500 + 25%","$1,500 + 25%","$1,500 + 25%","$1,500 + 25%","$1,500",25%,"$8,400",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$20,$50,"$1,500 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,682.66,522.23,522.23,522.23,522.23,522.23,522.23,522.23,522.23,522.23,522.23,522.23,522.23,522.23,522.23,568.66,586.40,604.15,623.27,642.38,662.18,682.66,682.66,682.66,682.66,685.39,699.04,715.43,742.05,763.90,774.82,791.20,807.59,817.83,828.75,834.21,839.67,845.13,850.59,861.52,872.44,888.82,904.52,926.37,953.68,985.76,1023.99,1067.00,1116.15,1164.62,1219.23,1273.16,1332.55,1392.63,1457.48,1522.33,1592.65,1663.64,1739.42,1776.96,1852.74,1918.27,1961.28,2015.21,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98,2047.98\r 108945142NV0010218,CareSource,26 CareSource Healthy Heart Gold Medicaid Transition,RA3,No,Gold,26 CareSource Healthy Heart Gold Medicaid Transition,HMO,$0,$10,$40,$30,$30,"$3,000 + 10%","$3,000 + 30%","$3,000 + 30%","$3,000 + 30%","$3,000 + $500","$3,000",30%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$60,"$3,000 + 30%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,691.91,529.31,529.31,529.31,529.31,529.31,529.31,529.31,529.31,529.31,529.31,529.31,529.31,529.31,529.31,576.36,594.35,612.34,631.71,651.09,671.15,691.91,691.91,691.91,691.91,694.68,708.52,725.12,752.11,774.25,785.32,801.92,818.53,828.91,839.98,845.51,851.05,856.58,862.12,873.19,884.26,900.87,916.78,938.92,966.60,999.12,1037.87,1081.46,1131.27,
10891180.40,1235.75,1290.41,1350.61,1411.50,1477.23,1542.96,1614.23,1686.18,1762.99,1801.04,1877.84,1944.27,1987.86,2042.52,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73,2075.73\r 109045142NV0010219,CareSource,26 CareSource Diabetes Gold 3000,RA3,No,Gold,26 CareSource Diabetes Gold 3000,HMO,$0,$10,$40,$30,$30,"$3,000 + 10%","$3,000 + 30%","$3,000 + 30%","$3,000 + 30%","$3,000 + $500","$3,000",30%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$60,"$3,000 + 30%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,699.33,534.99,534.99,534.99,534.99,534.99,534.99,534.99,534.99,534.99,534.99,534.99,534.99,534.99,534.99,582.54,600.72,618.91,638.49,658.07,678.35,699.33,699.33,699.33,699.33,702.13,716.11,732.90,760.17,782.55,793.74,810.52,827.31,837.80,848.99,854.58,860.18,865.77,871.37,882.55,893.74,910.53,926.61,948.99,976.96,1009.83,1049.00,1093.05,1143.40,1193.06,1249.00,1304.25,1365.09,1426.63,1493.07,1559.51,1631.54,1704.27,1781.89,1820.36,1897.98,1965.12,2009.18,2064.42,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99,2097.99\r 109145142NV0010220,Anthem,26 Anthem Catastrophic X,RA4,No,Catastrophic,26 Anthem Catastrophic X,HMO,$0,"1st 3 Visits: $40 After: $10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,486.01,371.80,371.80,371.80,371.80,371.80,371.80,371.80,371.80,371.80,371.80,371.80,371.80,371.80,371.80,404.85,417.48,430.12,443.73,457.34,471.43,486.01,486.01,486.01,486.01,487.95,497.67,509.34,528.29,543.85,551.62,563.29,574.95,582.24,590.02,593.90,597.79,601.68,605.57,613.34,621.12,632.79,643.96,659.52,678.96,701.80,729.02,759.63,794.63,829.13,868.01,906.41,948.69,991.46,1037.63,1083.80,1133.86,1184.41,1238.35,1265.08,1319.03,1365.69,1396.31,1434.70,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03,1458.03\r 109245142NV0010221,Anthem,26 Anthem Bronze X 10600,RA4,No,Bronze,26 Anthem Bronze X 10600,HMO,$0,$50,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$10,600 + $0","$10,600 + $0","$10,600 + $0",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,570.46,436.40,436.40,436.40,436.40,436.40,436.40,436.40,436.40,436.40,436.40,436.40,436.40,436.40,436.40,475.19,490.03,504.86,520.83,536.80,553.35,570.46,570.46,570.46,570.46,572.74,584.15,597.84,620.09,638.34,647.47,661.16,674.85,683.41,692.54,697.10,701.67,706.23,710.79,719.92,729.05,742.74,755.86,774.11,796.93,823.74,855.69,891.63,932.70,973.20,1018.84,1063.91,1113.54,1163.74,1217.93,1272.13,1330.88,1390.21,1453.53,1484.91,1548.23,1602.99,1638.93,1684.00,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38,1711.38\r 109345142NV0010222,Anthem,26 Anthem Bronze X 8200,RA4,No,Bronze,26 Anthem Bronze X 8200,HMO,$0,"$8,200 + 40%","$8,200 + 40%",$50,$50,"$500 + $8,200 + 50%",$120,"$8,200 + 50%","$8,200 + 40%","$8,200 + 50%","$8,200",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$8,200 + 40%","$8,200 + 50%","$8,200 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,572.73,438.14,438.14,438.14,438.14,438.14,438.14,438.14,438.14,438.14,438.14,438.14,438.14,438.14,438.14,477.08,491.98,506.87,522.90,538.94,555.55,572.73,572.73,572.73,572.73,575.02,586.48,600.22,622.56,640.88,650.05,663.79,677.54,686.13,695.29,699.88,704.46,709.04,713.62,722.79,731.95,745.69,758.87,777.19,800.10,827.02,859.10,895.18,936.41,977.08,1022.90,1068.14,1117.97,1168.37,1222.78,1277.19,1336.18,1395.74,1459.32,1490.82,1554.39,1609.37,1645.45,1690.70,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19,1718.19\r 109445142NV0010223,Anthem,26 Anthem Bronze X 5500,RA4,No,Bronze,26 Anthem Bronze X 5500,HMO,$0,$50,"$5,500 + 40%","$5,500 + 40%","$5,500 + 40%","$500 + $5,500 + 40%","$5,500 + 40%","$250 + $5,500 + 40%","$5,500 + 40%","$1,000 + $5,500 + 40%","$5,500",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,$90,"$5,500 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,594.16,454.53,454.53,454.53,454.53,454.53,454.53,454.53,454.53,454.53,454.53,454.53,454.53,454.53,454.53,494.94,510.38,525.83,542.47,559.10,576.34,594.16,594.16,594.16,594.16,596.54,608.42,622.68,645.85,664.87,674.37,688.63,702.89,711.80,721.31,726.06,730.82,735.57,740.32,749.83,759.34,773.60,787.26,806.28,830.04,85
10947.97,891.24,928.67,971.45,1013.64,1061.17,1108.11,1159.80,1212.09,1268.53,1324.98,1386.18,1447.97,1513.92,1546.60,1612.55,1669.59,1707.02,1753.96,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48,1782.48\r 109545142NV0010224,Anthem,26 Anthem Bronze X 6000,RA4,No,Bronze,26 Anthem Bronze X 6000,HMO,$0,$40,$100,"$6,000 + 30%","$6,000 + 30%","$500 + $6,000 + 30%","$6,000 + 30%","$500 + $6,000 + 30%","$6,000 + 30%","$500 + $6,000 + 40%","$6,000",30%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$30,"$6,000 + 30%","$6,000 + 30%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,597.04,456.74,456.74,456.74,456.74,456.74,456.74,456.74,456.74,456.74,456.74,456.74,456.74,456.74,456.74,497.33,512.86,528.38,545.10,561.81,579.13,597.04,597.04,597.04,597.04,599.43,611.37,625.70,648.98,668.09,677.64,691.97,706.30,715.25,724.81,729.58,734.36,739.14,743.91,753.46,763.02,777.35,791.08,810.18,834.06,862.13,895.56,933.17,976.16,1018.55,1066.31,1113.48,1165.42,1217.96,1274.68,1331.40,1392.89,1454.99,1521.26,1554.10,1620.37,1677.68,1715.30,1762.46,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12,1791.12\r 109645142NV0010225,Anthem,26 Anthem Bronze X 7000 Adult Dntal/Vision,RA4,No,Bronze,26 Anthem Bronze X 7000 Adult Dntal/Vision,HMO,$0,$40,$90,"$7,000 + 40%","$7,000 + 40%","$7,000 + 40%","$7,000 + 40%","$7,000 + 0%","$7,000 + 40%","$7,000 + 40%","$7,000",40%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,"$7,000 + $75","$7,000 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,614.86,470.37,470.37,470.37,470.37,470.37,470.37,470.37,470.37,470.37,470.37,470.37,470.37,470.37,470.37,512.18,528.16,544.15,561.37,578.58,596.41,614.86,614.86,614.86,614.86,617.32,629.62,644.37,668.35,688.03,697.87,712.62,727.38,736.60,746.44,751.36,756.28,761.20,766.12,775.95,785.79,800.55,814.69,834.37,858.96,887.86,922.29,961.03,1005.30,1048.95,1098.14,1146.71,1200.21,1254.31,1312.73,1371.14,1434.47,1498.41,1566.66,1600.48,1668.73,1727.76,1766.49,1815.07,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58,1844.58\r 109745142NV0010226,Anthem,26 Anthem Bronze X 8050 for HSA,RA4,No,Bronze,26 Anthem Bronze X 8050 for HSA,HMO,$0,"$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050 + 0%","$8,050",0%,"$8,050",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$8,050 + 0%","$8,050 + 0%","$8,050 + 0%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,623.27,476.80,476.80,476.80,476.80,476.80,476.80,476.80,476.80,476.80,476.80,476.80,476.80,476.80,476.80,519.18,535.39,551.59,569.05,586.50,604.57,623.27,623.27,623.27,623.27,625.76,638.23,653.19,677.49,697.44,707.41,722.37,737.33,746.68,756.65,761.64,766.62,771.61,776.59,786.57,796.54,811.50,825.83,845.78,870.71,900.00,934.91,974.17,1019.05,1063.30,1113.16,1162.40,1216.62,1271.47,1330.68,1389.89,1454.09,1518.91,1588.09,1622.37,1691.55,1751.39,1790.65,1839.89,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81,1869.81\r 109845142NV0010227,Anthem,26 Anthem Silver X 5500,RA4,No,Silver,26 Anthem Silver X 5500,HMO,$0,$10,$60,"$5,500 + 25%","$5,500 + 25%","$650 + $5,500 + $25%",$50,"$5,500 + 25%","$5,500 + 25%","$1,000 + $5,500 + 25%","$5,500",25%,"$9,700",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$40,"$5,500 + 35%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,717.67,549.02,549.02,549.02,549.02,549.02,549.02,549.02,549.02,549.02,549.02,549.02,549.02,549.02,549.02,597.82,616.48,635.14,655.23,675.33,696.14,717.67,717.67,717.67,717.67,720.54,734.89,752.12,780.11,803.07,814.56,831.78,849.00,859.77,871.25,876.99,882.73,888.48,894.22,905.70,917.18,934.41,950.91,973.88,1002.58,1036.32,1076.51,1121.72,1173.39,1224.35,1281.76,1338.45,1400.89,1464.05,1532.23,1600.40,1674.32,1748.96,1828.62,1868.10,1947.76,2016.65,2061.87,2118.56,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01,2153.01\r 109945142NV0010228,Anthem,26 Anthem Silver X 6800,RA4,No,Silver,26 Anthem Silver X 6800,HMO,$0,$20,$80,$25,$25,"$500 + $6,800 + 45%","$6,800 + 45%","$6,800 + 45%","$6,800 + 45%","$1,000 + $6,800 + 50%","$6,800",45%,"$8,900",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$5,$75,"$6,800 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,725.01,554.63,554.63,554.63,554.63,554.63,554.63,554.63,554.63,554.63,554.63,554.63,554.63,554.63,554.63,603.93,622.78,641.63,661.93,682.23,703.26,725.01,725.01,725.01,725.01,727.91,742.41,759.81,788.09,811.29,822.89,840.29,857.69,868.56,880.16,885.96,891.76,897.56,903.36,914.96,926.56,943.96,960.64,983.84,1012.84,1046.91,1087.52,1133.19,1185.39,1236.87,1294.87,1352.14,1415.22,1479.02,1547.90,1616.77,1691.45,1766.85,1847.33,1887.20,1967.68,2037.28,2082.95,2140.23,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03,2175.03\r 110045142NV0010229,Anthem,26 Anthem Silver X 6500,RA4,No,Silver,26 Anthem Silver X 6500,HMO,$0,$15,$60,"$6,500 + 40%","$6,500 + 40%","$500 + $6,500 + 40%",$75,"$6,500 + 40%","$6,500 + 40%","$1,000 + $6,500 + 40%","$6,500",40%,"$8,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$40,"$6,500 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,733.03,560.77,560.77,560.77,560.77,560.77,560.77,560.77,560.77,560.77,560.77,560.77,560.77,560.77,560.77,610.61,629.67,648.73,669.26,689.78,711.04,733.03,733.03,733.03,733.03,735.96,750.62,768.22,796.80,820.26,831.99,849.58,867.17,878.17,889.90,895.76,901.63,907.49,913.36,925.08,936.81,954.41,971.26,994.72,1024.04,1058.50,1099.55,1145.73,1198.50,1250.55,1309.19,1367.10,1430.87,1495.38,1565.02,1634.66,1710.16,1786.39,1867.76,1908.08,1989.44,2059.81,2106.00,2163.90,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09,2199.09\r 110145142NV0010230,Anthem,26 Anthem Silver X 4200,RA4,No,Silver,26 Anthem Silver X 4200,HMO,$0,$25,$75,"$4,200 + 40%","$4,200 + 40%","$500 + $4,200 + 40%",$30,"$300 + $4,200 + 50%","$4,200 + 40%","$1,000 + $4,200 + 40%","$4,200",40%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$35,"$4,200 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,735.23,562.45,562.45,562.45,562.45,562.45,562.45,562.45,562.45,562.45,562.45,562.45,562.45,562.45,562.45,612.45,631.56,650.68,671.26,691.85,713.17,735.23,735.23,735.23,735.23,738.17,752.88,770.52,799.20,822.72,834.49,852.13,869.78,880.81,892.57,898.45,904.33,910.21,916.10,927.86,939.62,957.27,974.18,997.71,1027.12,1061.67,1102.85,1149.16,1202.10,1254.30,1313.12,1371.20,1435.17,1499.87,1569.72,1639.56,1715.29,1791.76,1873.37,1913.80,1995.41,2066.00,2112.32,2170.40,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69,2205.69\r 110245142NV0010231,Anthem,26 Anthem Silver X 3500,RA4,No,Silver,26 Anthem Silver X 3500,HMO,$0,$20,$60,"$3,500 + 20%","$3,500 + 20%","$1,000 + $3,500 + 20%",$50,"$500 + $3,500 + 20%","$3,500 + 20%","$500 + $3,500 + 30%","$3,500",20%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$50,"$3,500 + 30%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,741.30,567.09,567.09,567.09,567.09,567.09,567.09,567.09,567.09,567.09,567.09,567.09,567.09,567.09,567.09,617.50,636.78,656.05,676.81,697.56,719.06,741.30,741.30,741.30,741.30,744.27,759.09,776.88,805.79,829.51,841.38,859.17,876.96,888.08,899.94,905.87,911.80,917.73,923.66,935.52,947.38,965.17,982.22,1005.94,1035.60,1070.44,1111.95,1158.65,1212.03,1264.66,1323.96,1382.52,1447.02,1512.25,1582.68,1653.10,1729.45,1806.55,1888.83,1929.60,2011.89,2083.05,2129.75,2188.32,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90,2223.90\r 110345142NV0010232,Anthem,26 Anthem Silver X 3300 Adult Dntal/Vision,RA4,No,Silver,26 Anthem Silver X 3300 Adult Dntal/Vision,HMO,$0,$10,$50,"$3,300 + 30%","$3,300 + 30%","$500 + $3,300 + 50%","$3,300 + 30%","$3,300 + $0","$3,300 + 30%","$3,300 + 30%","$3,300",30%,"$8,300",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$80,"$3,300 + 50%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,778.29,595.39,595.39,595.39,595.39,595.39,595.39,595.39,595.39,595.39,595.39,595.39,595.39,595.39,595.39,648.32,668.55,688.79,710.58,732.37,754.94,778.29,778.29,778.29,778.29,781.40,796.97,815.65,846.00,870.91,883.36,902.04,920.72,932.39,944.84,951.07,957.30,963.52,969.75,982.20,994.65,1013.33,1031.23,1056.14,1087.27,1123.85,1167.44,1216.47,1272.50,1327.76,1390.03,1451.51,1519.22,1587.71,1661.65,1735.59,1815.75,1896.69,1983.08,2025.89,2112.28,2186.99,223
11036.03,2297.51,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87,2334.87\r 110445142NV0010233,Anthem,26 Anthem Silver X 3600 HSA,RA4,No,Silver,26 Anthem Silver X 3600 HSA,HMO,$0,"$3,600 + 25%","$3,600 + 25%","$3,600 + 25%","$3,600 + 25%","$3,600 + 50%","$3,600 + 25%","$3,600 + 25%","$3,600 + 25%","$500 + $3,600 + 50%","$3,600",25%,"$6,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$3,600 + 35%","$3,600 + 35%","$3,600 + 40%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,780.43,597.03,597.03,597.03,597.03,597.03,597.03,597.03,597.03,597.03,597.03,597.03,597.03,597.03,597.03,650.10,670.39,690.68,712.53,734.38,757.02,780.43,780.43,780.43,780.43,783.55,799.16,817.89,848.33,873.30,885.79,904.52,923.25,934.96,947.44,953.69,959.93,966.17,972.42,984.90,997.39,1016.12,1034.07,1059.04,1090.26,1126.94,1170.65,1219.81,1276.00,1331.41,1393.85,1455.50,1523.40,1592.08,1666.22,1740.36,1820.74,1901.91,1988.54,2031.46,2118.09,2193.01,2242.18,2303.83,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29,2341.29\r 110545142NV0010234,Anthem,26 Anthem Gold X 1100,RA4,No,Gold,26 Anthem Gold X 1100,HMO,$0,"Frist 2 Visits: $35 After: $1,100 + 25%","$1,100 + 25%","$1,100 + 25%","$1,100 + 25%","$500 + $1,100 + 25%","$1,100 + 25%","$250 + $1,100 + 25%","$1,100 + 25%","$1,000 + $1,100 + 25%","$1,100",25%,"$6,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$40,"$1,100 + 30%",Pathway X HMO,https://www.anthem.com/find-care/,https://www.anthem.com/pharmacy-information/log-in-or-select-your-state,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/anthem-brand.png,1080.98,826.95,826.95,826.95,826.95,826.95,826.95,826.95,826.95,826.95,826.95,826.95,826.95,826.95,826.95,900.46,928.56,956.67,986.93,1017.20,1048.55,1080.98,1080.98,1080.98,1080.98,1085.30,1106.92,1132.87,1175.03,1209.62,1226.91,1252.86,1278.80,1295.01,1312.31,1320.96,1329.61,1338.25,1346.90,1364.20,1381.49,1407.44,1432.30,1466.89,1510.13,1560.94,1621.47,1689.57,1767.40,1844.15,1930.63,2016.03,2110.07,2205.20,2307.89,2410.59,2521.93,2634.35,2754.34,2813.79,2933.78,3037.55,3105.66,3191.05,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94,3242.94\r 110645142NV0010235,Ambetter,26 Ambetter Everyday Bronze,RA4,No,Bronze,26 Ambetter Everyday Bronze,HMO,$0,$40,$90,$50,$50,"$8,450 + 50%","$8,450 + 50%","$8,450 + 50%","$8,450 + 50%","$8,450 + 50%","$8,450",50%,"$10,150",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,"$8,450 + 45%","$8,450 + 45%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,570.66,436.55,436.55,436.55,436.55,436.55,436.55,436.55,436.55,436.55,436.55,436.55,436.55,436.55,436.55,475.36,490.20,505.03,521.01,536.99,553.54,570.66,570.66,570.66,570.66,572.94,584.36,598.05,620.31,638.57,647.70,661.39,675.09,683.65,692.78,697.35,701.91,706.48,711.04,720.17,729.30,743.00,756.12,774.39,797.21,824.03,855.99,891.94,933.03,973.55,1019.20,1064.28,1113.93,1164.15,1218.36,1272.57,1331.35,1390.70,1454.04,1485.43,1548.77,1603.55,1639.51,1684.59,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98,1711.98\r 110745142NV0010236,Ambetter,26 Ambetter Choice Bronze HSA,RA4,No,Bronze,26 Ambetter Choice Bronze HSA,HMO,$0,"$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250 + 0%","$7,250",0%,"$7,250",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$7,250 + 0%","$7,250 + 0%","$7,250 + 0%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,617.94,472.72,472.72,472.72,472.72,472.72,472.72,472.72,472.72,472.72,472.72,472.72,472.72,472.72,472.72,514.74,530.81,546.88,564.18,581.48,599.40,617.94,617.94,617.94,617.94,620.41,632.77,647.60,671.70,691.47,701.36,716.19,731.02,740.29,750.18,755.12,760.07,765.01,769.95,779.84,789.73,804.56,818.77,838.54,863.26,892.31,926.91,965.84,1010.33,1054.21,1103.64,1152.46,1206.22,1260.60,1319.30,1378.01,1441.65,1505.92,1574.51,1608.50,1677.09,1736.41,1775.34,1824.16,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82,1853.82\r 110845142NV0010237,Ambetter,26 Ambetter Clarity Silver,RA4,No,Silver,26 Ambetter Clarity Silver,HMO,$0,$50,$90,$30,$30,"$8,000 + 50%",$90,"$8,000 + 50%","$8,000 + 50%","$8,000 + 50%","$8,000",50%,"$8,400",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,"$8,000 + $85","$8,000 + 50%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,676.55,517.56,517.56,517.56,517.56,517.56,517.56,517.56,517.56,517.56,517.56,517.56,517.56,517.56,517.56,563.57,581.16,598.75,617.69,636.63,656.25,676.55,676.55,676.55,676.55,679.26,692.79,709.02,735.41,757.06,767.88,784.12,800.36,810.51,821.33,826.74,832.16,837.57,842.98,853.81,864.63,880.87,896.43,918.08,945.14,976.94,1014.83,1057.45,1106.16,1154.19,1208.32,1261.77,1320.63,1380.16,1444.43,1508.71,1578.39,1648.75,1723.85,1761.06,1836.16,1901.11,1943.73,1997.18,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65,2029.65\r 110945142NV0010238,Ambetter,26 Ambetter Focused Silver,RA4,No,Silver,26 Ambetter Focused Silver,HMO,$0,$40,$85,$50,$50,"$6,300 + 50%","$6,300 + 50%","$6,300 + 50%","$6,300 + 50%","$6,300 + 50%","$6,300",50%,"$8,400",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$75,"$6,300 + 45%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,728.02,556.94,556.94,556.94,556.94,556.94,556.94,556.94,556.94,556.94,556.94,556.94,556.94,556.94,556.94,606.44,625.37,644.3
11090,664.68,685.07,706.18,728.02,728.02,728.02,728.02,730.93,745.49,762.96,791.36,814.65,826.30,843.78,861.25,872.17,883.82,889.64,895.46,901.29,907.11,918.76,930.41,947.88,964.63,987.92,1017.04,1051.26,1092.03,1137.90,1190.31,1242.00,1300.24,1357.76,1421.10,1485.16,1554.32,1623.48,1698.47,1774.18,1854.99,1895.04,1975.85,2045.74,2091.60,2149.12,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06,2184.06\r 111045142NV0010239,Ambetter,26 Ambetter Complete Silver,RA4,No,Silver,26 Ambetter Complete Silver,HMO,$0,$30,$60,$30,$30,"$5,950 + 40%","$5,950 + 40%","$5,950 + 40%","$5,950 + 40%","$5,950 + 40%","$5,950",40%,"$8,850",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$55,"$5,950 + 45%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,729.27,557.89,557.89,557.89,557.89,557.89,557.89,557.89,557.89,557.89,557.89,557.89,557.89,557.89,557.89,607.48,626.44,645.40,665.82,686.24,707.39,729.27,729.27,729.27,729.27,732.19,746.77,764.27,792.72,816.05,827.72,845.22,862.73,873.67,885.33,891.17,897.00,902.84,908.67,920.34,932.01,949.51,966.28,989.62,1018.79,1053.07,1093.91,1139.85,1192.36,1244.13,1302.48,1360.09,1423.54,1487.71,1556.99,1626.27,1701.39,1777.23,1858.18,1898.29,1979.24,2049.25,2095.19,2152.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81,2187.81\r 111145142NV0010240,Ambetter,26 Ambetter Principal Silver,RA4,No,Silver,26 Ambetter Principal Silver,HMO,$0,$30,$60,"$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200 + $0","$8,200",0%,"$8,200",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$50,"$8,200 + $0",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,731.36,559.49,559.49,559.49,559.49,559.49,559.49,559.49,559.49,559.49,559.49,559.49,559.49,559.49,559.49,609.22,628.24,647.25,667.73,688.21,709.42,731.36,731.36,731.36,731.36,734.29,748.91,766.47,794.99,818.39,830.09,847.65,865.20,876.17,887.87,893.72,899.57,905.42,911.27,922.98,934.68,952.23,969.05,992.46,1021.71,1056.08,1097.04,1143.12,1195.77,1247.70,1306.21,1363.99,1427.61,1491.97,1561.45,1630.93,1706.26,1782.32,1863.51,1903.73,1984.91,2055.12,2101.20,2158.97,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08,2194.08\r 111245142NV0010241,Ambetter,26 Ambetter Everyday Gold,RA4,No,Gold,26 Ambetter Everyday Gold,HMO,$0,$35,$55,$35,$35,$800 + 35%,$800 + 35%,$800 + 35%,$800 + 35%,$800 + 35%,$800,35%,"$7,250",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$60,$800 + 45%,Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,794.40,607.72,607.72,607.72,607.72,607.72,607.72,607.72,607.72,607.72,607.72,607.72,607.72,607.72,607.72,661.74,682.39,703.04,725.29,747.53,770.57,794.40,794.40,794.40,794.40,797.58,813.47,832.53,863.51,888.93,901.64,920.71,939.78,951.69,964.40,970.76,977.11,983.47,989.82,1002.53,1015.24,1034.31,1052.58,1078.00,1109.78,1147.11,1191.60,1241.65,1298.84,1355.25,1418.80,1481.56,1550.67,1620.58,1696.04,1771.51,1853.34,1935.95,2024.13,2067.82,2156.00,2232.26,2282.31,2345.07,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20,2383.20\r 111345142NV0010242,Ambetter,26 Ambetter Complete Gold,RA4,No,Gold,26 Ambetter Complete Gold,HMO,$0,$15,$35,$15,$15,"$1,450 + 20%","$1,450 + 20%","$1,450 + 20%","$1,450 + 20%","$1,450 + 20%","$1,450",20%,"$7,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$30,"$1,450 + 20%",Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,820.46,627.65,627.65,627.65,627.65,627.65,627.65,627.65,627.65,627.65,627.65,627.65,627.65,627.65,627.65,683.44,704.78,726.11,749.08,772.05,795.85,820.46,820.46,820.46,820.46,823.74,840.15,859.84,891.84,918.09,931.22,950.91,970.
111360,982.91,996.04,1002.60,1009.17,1015.73,1022.29,1035.42,1048.55,1068.24,1087.11,1113.36,1146.18,1184.74,1230.69,1282.38,1341.45,1399.70,1465.34,1530.16,1601.54,1673.74,1751.68,1829.63,1914.13,1999.46,2090.53,2135.66,2226.73,2305.49,2357.18,2422.00,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38,2461.38\r 111445142NV0010243,Ambetter,26 Ambetter Elite Gold,RA4,No,Gold,26 Ambetter Elite Gold,HMO,$0,$5,$60,$40,$40,30%,$75,$75,$200,30%,$0,30%,"$6,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$50,45%,Ambetter Premier,https://providersearch.ambetterhealth.com/,https://ambetter.silversummithealthplan.com/resources/pharmacy-resources.html,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/ambetter.png,886.79,678.39,678.39,678.39,678.39,678.39,678.39,678.39,678.39,678.39,678.39,678.39,678.39,678.39,678.39,738.70,761.75,784.81,809.64,834.47,860.19,886.79,886.79,886.79,886.79,890.34,908.07,929.36,963.94,992.32,1006.51,1027.79,1049.07,1062.37,1076.56,1083.66,1090.75,1097.85,1104.94,1119.13,1133.32,1154.60,1175.00,1203.37,1238.85,1280.52,1330.19,1386.05,1449.90,1512.86,1583.81,1653.86,1731.01,1809.05,1893.30,1977.54,2068.88,2161.11,2259.54,2308.31,2406.75,2491.88,2547.75,2617.80,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37,2660.37\r 111545142NV0010244,CareSource,26 CareSource Low Premium Bronze 10600,RA4,No,Bronze,26 CareSource Low Premium Bronze 10600,HMO,$0,"$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600 + $0","$10,600",0%,"$10,600",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$10,600 + $0","$10,600 + $0",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,561.38,429.46,429.46,429.46,429.46,429.46,429.46,429.46,429.46,429.46,429.46,429.46,429.46,429.46,429.46,467.63,482.23,496.82,512.54,528.26,544.54,561.38,561.38,561.38,561.38,563.63,574.85,588.33,610.22,628.18,637.17,650.64,664.11,672.53,681.52,686.01,690.50,694.99,699.48,708.46,717.44,730.92,743.83,761.79,784.25,810.63,842.07,877.44,917.86,957.71,1002.62,1046.97,1095.81,1145.22,1198.55,1251.88,1309.70,1368.08,1430.40,1461.27,1523.59,1577.48,1612.84,1657.19,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14,1684.14\r 111645142NV0010245,CareSource,26 CareSource Core Bronze 7500,RA4,No,Bronze,26 CareSource Core Bronze 7500,HMO,$0,$50,$100,"$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500 + 50%","$7,500",50%,"$10,000",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$25,"$7,500 + 50%","$7,500 + 50%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,568.97,435.26,435.26,435.26,435.26,435.26,435.26,435.26,435.26,435.26,435.26,435.26,435.26,435.26,435.26,473.95,488.75,503.54,519.47,535.40,551.90,568.97,568.97,568.97,568.97,571.25,582.63,596.28,618.47,636.68,645.78,659.44,673.09,681.63,690.73,695.28,699.83,704.38,708.94,718.04,727.14,740.80,753.89,772.09,794.85,821.59,853.46,889.30,930.27,970.66,1016.18,1061.13,1110.63,1160.70,1214.75,1268.80,1327.41,1386.58,1449.74,1481.03,1544.18,1598.81,1634.65,1679.60,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91,1706.91\r 111745142NV0010246,CareSource,26 CareSource Low Premium Silver Medicaid Transition,RA4,No,Silver,26 CareSource Low Premium Silver Medicaid Transition,HMO,$0,$40,$75,$50,$50,"$6,200 + 50%","$6,200 + $200","$6,200 + $250","$6,200 + 40%","$6,200 + $500","$6,200",40%,"$9,800",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$3,$75,"$6,200 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,698.13,534.07,534.07,534.07,534.07,534.07,534.07,534.07,534.07,534.07,534.07,534.07,534.07,534.07,534.07,581.54,599.69,617.85,637.39,656.94,677.19,698.13,698.13,698.13,698.13,700.92,714.89,731.64,758.87,781.21,792.38,809.13,825.89,836.36,847.53,853.11,858.70,864.28,869.87,881.04,892.21,908.97,925.02,947.36,975.29,1008.10,1047.20,1091.18,1141.44,1191.01,1246.86,1302.01,1362.75,1424.19,1490.51,1556.83,1628.74,1701.34,1778.84,1817.23,1894.72,1961.75,2005.73,2060.88,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39,2094.39\r 111845142NV0010247,CareSource,26 CareSource Healthy Heart Silver 5000,RA4,No,Silver,26 CareSource Healthy Heart Silver 5000,HMO,$0,$30,$50,$75,$75,"$5,000 + 50%","$5,000 + $400","$5,000 + $300","$5,000 + 50%","$5,000 + $600","$5,000",50%,"$9,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$100,"$5,000 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,733.20,560.90,560.90,560.90,560.90,560.90,560.90,560.90,560.90,560.90,560.90,560.90,560.90,560.90,560.90,610.76,629.82,648.88,669.41,689.94,711.20,733.20,733.20,733.20,733.20,736.13,750.80,768.39,796.99,820.45,832.18,849.78,867.38,878.37,890.10,895.97,901.84,907.70,913.57,925.30,937.03,954.63,971.49,994.95,1024.28,1058.74,1099.80,1145.99,1198.78,1250.84,1309.50,1367.42,1431.21,1495.73,1565.38,1635.04,1710.56,1786.81,1868.19,1908.52,1989.90,2060.29,2106.48,2164.41,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60,2199.60\r 111945142NV0010248,CareSource,26 CareSource Diabetes Silver 5000,RA4,No,Silver,26 CareSource Diabetes Silver 5000,HMO,$0,$30,$50,$75,$75,"$5,000 + 50%","$5,000 + $400","$5,000 + $300","$5,000 + 50%","$5,000 + $600","$5,000",50%,"$9,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$15,$100,"$5,000 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,737.94,564.52,564.52,564.52,564.52,564.52,564.52,564.52,564.52,564.52,564.52,564.52,564.52,564.52,564.52,614.70,633.89,653.08,673.74,694.40,715.80,737.94,737.94,737.94,737.94,740.89,755.65,773.36,802.14,825.75,837.56,855.27,872.98,884.05,895.86,901.76,907.67,913.57,919.47,931.28,943.09,960.80,977.77,1001.38,1030.90,1065.59,1106.91,1153.40,1206.53,1258.93,1317.96,1376.26,1440.46,1505.40,1575.50,1645.61,1721.61,1798.36,1880.27,1920.86,2002.77,2073.61,2120.10,2178.40,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82,2213.82\r 112045142NV0010249,CareSource,26 CareSource Silver HSA 5500,RA4,No,Silver,26 CareSource Silver HSA 5500,HMO,$0,"$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500 + $0","$5,500",0%,"$5,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,"$5,500 + $0","$5,500 + $0","$5,500 + $0",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,826.79,632.49,632.49,632.49,632.49,632.49,632.49,632.49,632.49,632.49,632.49,632.49,632.49,632.49,632.49,688.72,710.21,731.71,754.86,778.01,801.99,826.79,826.79,826.79,826.79,830.10,846.63,866.48,898.72,925.18,938.41,958.25,978.09,990.49,1003.72,1010.34,1016.95,1023.57,1030.18,1043.41,1056.64,1076.48,1095.50,1121.95,1155.03,1193.88,1240.19,1292.27,1351.80,1410.50,1476.
112065,1541.96,1613.89,1686.65,1765.20,1843.74,1928.90,2014.89,2106.66,2152.13,2243.91,2323.28,2375.37,2440.68,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37,2480.37\r 112145142NV0010250,CareSource,26 CareSource Low Premium Gold 1500,RA4,No,Gold,26 CareSource Low Premium Gold 1500,HMO,$0,$20,$50,$30,$30,"$1,500 + 10%","$1,500 + 25%","$1,500 + 25%","$1,500 + 25%","$1,500 + 25%","$1,500",25%,"$8,400",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$20,$50,"$1,500 + 40%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,823.81,630.21,630.21,630.21,630.21,630.21,630.21,630.21,630.21,630.21,630.21,630.21,630.21,630.21,630.21,686.23,707.65,729.07,752.14,775.21,799.10,823.81,823.81,823.81,823.81,827.11,843.58,863.35,895.48,921.84,935.02,954.80,974.57,986.92,1000.11,1006.70,1013.29,1019.88,1026.47,1039.65,1052.83,1072.60,1091.55,1117.91,1150.86,1189.58,1235.72,1287.62,1346.93,1405.42,1471.32,1536.41,1608.08,1680.57,1758.83,1837.10,1921.95,2007.62,2099.07,2144.38,2235.82,2314.91,2366.81,2431.89,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43,2471.43\r 112245142NV0010251,CareSource,26 CareSource Healthy Heart Gold Medicaid Transition,RA4,No,Gold,26 CareSource Healthy Heart Gold Medicaid Transition,HMO,$0,$10,$40,$30,$30,"$3,000 + 10%","$3,000 + 30%","$3,000 + 30%","$3,000 + 30%","$3,000 + $500","$3,000",30%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$60,"$3,000 + 30%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,834.98,638.76,638.76,638.76,638.76,638.76,638.76,638.76,638.76,638.76,638.76,638.76,638.76,638.76,638.76,695.54,717.25,738.96,762.34,785.72,809.93,834.98,834.98,834.98,834.98,838.32,855.02,875.06,907.62,934.34,947.70,967.74,987.78,1000.31,1013.67,1020.35,1027.03,1033.71,1040.39,1053.74,1067.10,1087.14,1106.35,1133.07,1166.47,1205.71,1252.47,1305.07,1365.19,1424.48,1491.27,1557.24,1629.88,1703.36,1782.68,1862.01,1948.01,2034.85,2127.53,2173.45,2266.14,2346.29,2398.90,2464.86,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94,2504.94\r 112345142NV0010252,CareSource,26 CareSource Diabetes Gold 3000,RA4,No,Gold,26 CareSource Diabetes Gold 3000,HMO,$0,$10,$40,$30,$30,"$3,000 + 10%","$3,000 + 30%","$3,000 + 30%","$3,000 + 30%","$3,000 + $500","$3,000",30%,"$8,500",(Not Covered),(Not Covered),(Not Covered),Combined with Medical,$10,$60,"$3,000 + 30%",CareSource Nevada,https://findadoctor.caresource.com/,https://www.caresource.com/members/tools-resources/find-my-prescriptions/,,,https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/carriers/caresource.png,843.93,645.61,645.61,645.61,645.61,645.61,645.61,645.61,645.61,645.61,645.61,645.61,645.61,645.61,645.61,702.99,724.94,746.88,770.51,794.14,818.61,843.93,843.93,843.93,843.93,847.31,864.18,884.44,917.35,944.36,957.86,978.11,998.37,1011.03,1024.53,1031.28,1038.03,1044.79,1051.54,1065.04,1078.54,1098.80,1118.21,1145.21,1178.97,1218.63,1265.90,1319.06,1379.83,1439.74,1507.26,1573.93,1647.35,1721.62,1801.79,1881.96,1968.89,2056.66,2150.33,2196.75,2290.43,2371.44,2424.61,2491.28,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79,2531.79`;function MM(t,e,r){const n=String(t).trim(),a=String(e).trim().toUpperCase(),i=String(r).trim();return`${n}|${a}|${i}`}function TM(t){if(t==null)return null;const e=String(t).trim();if(!e)return null;const r=e.replace(/\$/g,"").replace(/,/g,""),n=Number(r);return Number.isFinite(n)?n:null}function D2e(t){const e=String(t??"").trim().toUpperCase();return e==="RA1"||e==="RA2"||e==="RA3"||e==="RA4"?e:null}function L2e(){var a;const t=R2e.parse(I2e,{header:!0,skipEmptyLines:!0});(a=t.errors)!=null&&a.length&&console.warn("plan_rates.csv parse errors:",t.errors);
1123const e=t.data.filter(Boolean),r=new Map,n=new Map;for(const i of e){const o=String(i["DOI Plan ID Number"]??"").trim(),l=D2e(i["Rating Area"]);if(!o||!l)continue;r.has(o)||r.set(o,{planId:o,post_title:String(i["Plan Name"]??"").trim(),hba_carrier:String(i.Carrier??"").trim(),hba_type_of_plan:String(i["Type of Plan"]??"").trim(),rating_area:l,tobacco:String(i.Tobacco??"No").trim(),metal:String(i.Metal??"").trim()||void 0,hba_carrier_logo_url:String(i["Carrier Logos"]??"").trim()||void 0,hba_in_network_preventative_services:String(i["In-Network Preventative Services"]??"").trim()||void 0,hba_in_network_primary_care_physician:String(i["In-Network Primary Care Physician"]??"").trim()||void 0,hba_in_network_specialist_visit:String(i["In-Network Specialist Visit"]??"").trim()||void 0,hba_outpatient_lab_work:String(i["Outpatient Lab Work"]??"").trim()||void 0,hba_urgent_care:String(i["Urgent Care"]??"").trim()||void 0,hba_emergency_department:String(i["Emergency Department"]??"").trim()||void 0,hba_outpatient_complex_radiology:String(i["Outpatient Complex Radiology*"]??"").trim()||void 0,hba_outpatient_surgery:String(i["Outpatient Surgery*"]??"").trim()||void 0,hba_in_network_hospital:String(i["In-Network Hospital"]??"").trim()||void 0,hba_in_network_deductible:String(i["In-Network Deductible"]??"").trim()||void 0,hba_in_network_maximum_out_of_pocket:String(i["In-Network Maximum Out of Pocket"]??"").trim()||void 0,hba_prescription_deductible:String(i["Prescription Deductible"]??"").trim()||void 0,hba_generic:String(i.Generic??"").trim()||void 0,hba_brand_formulary:String(i["Brand Formulary"]??"").trim()||void 0,hba_brand_non_formulary:String(i["Brand Non-Formulary"]??"").trim()||void 0,hba_link_to_doctor_list:String(i["Link to Doctor List"]??"").trim()||void 0,hba_link_to_prescription_drug_list:String(i["Link to Prescription Drug List"]??"").trim()||void 0,raw:i});for(const[u,d]of Object.entries(i)){if(!/^\d+$/.test(u))continue;const h=Number(u);if(!Number.isFinite(h))continue;const m=TM(d);m!==null&&n.set(MM(o,l,u),m)}const c=TM(i["Base Rate (Age 21)"]);if(c!==null){const u=MM(o,l,"21");n.has(u)||n.set(u,c)}}return console.log("Loaded plan rates:",{rows:e.length,plansById:r.size,rateByKey:n.size}),{plansById:r,rateByKey:n}}function B2e(){const{search:t}=$r();return w.useMemo(()=>new URLSearchParams(t),[t])}const H2e=()=>{var $;const t=qn(),e=$r(),r=B2e(),n=($=e.state)==null?void 0:$.plans,a=r.get("ids")??"",i=w.useMemo(()=>a.split(",").map(C=>C.trim()).filter(Boolean),[a]),o=w.useMemo(()=>L2e(),[]),l=w.useMemo(()=>{try{const C=localStorage.getItem("ifp_compare_plans");if(!C)return;const _=JSON.parse(C);return Array.isArray(_)&&_.length>0?_:void 0}catch{return}},[]),c=w.useMemo(()=>{if(Array.isArray(l)&&l.length>0)return l;if(Array.isArray(n)&&n.length>0)return n;const C=[];for(const _ of i){const O=o.plansById.get(_);O&&C.push(O)}return C},[l,n,i,o]),u=C=>{const _=(C??"").toString().trim();return _||"-"},d=C=>{var _;return C.hba_prescription_deductible??((_=C.raw)==null?void 0:_["Prescription Deductible"])},h=C=>{var _;return C.hba_generic??((_=C.raw)==null?void 0:_.Generic)},m=C=>{var _;return C.hba_brand_formulary??((_=C.raw)==null?void 0:_["Brand Formulary"])},g=C=>{var _;return C.hba_brand_non_formulary??((_=C.raw)==null?void 0:_["Brand Non-Formulary"])},b=C=>{var O;const _=C.hba_individual_full_name_plan_rate;return!_||!((O=_[0])!=null&&O.length)?"-":_[0].map((E,P)=>{var T;return`${E}: ${((T=_[1])==null?void 0:T[P])??""}`.trim()}).filter(Boolean).join(` 1124`)},y=C=>typeof C.hba_plan_monthly_premium=="number"?C.hba_plan_monthly_premium.toFixed(2):"-",v=[{kind:"field",label:"Plan Type",get:C=>u(C.hba_type_of_plan)},{kind:"field",label:"In Network Deductible:",get:C=>u(C.hba_in_network_deductible)},{kind:"head",label:"Your Cost For In Network Care:"},{kind:"field",label:"Primary Care Copay:",get:C=>u(C.hba_in_network_primary_care_physician)},{kind:"field",label:"Specialist Copay:",get:C=>u(C.hba_in_network_specialist_visit)},{kind:"field",label:"Preventive Care:",get:C=>u(C.hba_in_network_preventative_services)},{kind:"field",label:"** Outpatient Lab Work:",get:C=>u(C.hba_outpatient_lab_work)},{kind:"field",label:"Urgent Care:",get:C=>u(C.hba_urgent_care)},{kind:"field",label:"Emergency Room:",get:C=>u(C.hba_emergency_department)},{kind:"field",label:"** Outpatient Complex Radiology (MRI/CT):",get:C=>u(C.hba_outpatient_complex_radiology)},{kind:"field",label:"** Outpatient Surgery:",get:C=>u(C.hba_outpatient_surgery)},{kind:"field",label:"Hospital Admission:",get:C=>u(C.hba_in_network_hospital)},{kind:"head",label:"In Network Pharmacy:"},{kind:"field",label:"Pharmacy Deductible:",get:C=>u(d(C))},{kind:"field",label:"Generic:",get:C=>u(h(C))},{kind:"field",label:"Brand Formulary:",get:C=>u(m(C))},{kind:"field",label:"Brand Non-Formulary:",get:C=>u(g(C))},{kind:"head",label:"In Network Out-Of-Pocket Maximum:"},{kind:"field",label:"",get:C=>s.jsx("span",{className:"font-semibold",children:u(C.hba_in_network_maximum_out_of_pocket)})},{kind:"head",label:"Summary Of Benefits:"},{kind:"field",label:"Provider Directory (Doctor List):",get:C=>C.hba_link_to_doctor_list?s.jsx("a",{className:"text-hba-orange-1 hover:underline font-semibold",href:C.hba_link_to_doctor_list,target:"_blank",rel:"noreferrer",children:"Doctor Search"}):"-"},{kind:"field",label:"Formulary (Drug List):",get:C=>C.hba_link_to_prescription_drug_list?s.jsx("a",{className:"text-hba-orange-1 hover:underline font-semibold",href:C.hba_link_to_prescription_drug_list,target:"_blank",rel:"noreferrer",children:"Prescription Drug Search"}):"-"},{kind:"field",label:"Monthly Premium Per Family Member:",get:C=>s.jsx("pre",{className:"whitespace-pre-line text-xs leading-5",children:b(C)})},{kind:"field",label:"Total Family Premium:",get:C=>s.jsx("span",{className:"font-semibold",children:y(C)})}],N=()=>
1124{if(window.opener){window.close();return}t("/ifp-quote")};if(!c.length)return s.jsx("div",{className:"min-h-screen bg-gradient-to-b from-slate-50 to-white",children:s.jsxs("div",{className:"max-w-4xl mx-auto px-6 py-10",children:[s.jsxs("div",{className:"flex items-center justify-between mb-8",children:[s.jsx("h1",{className:"text-2xl md:text-3xl font-extrabold text-hba-blue-1",children:"Compare Plans"}),s.jsxs("button",{type:"button",onClick:N,className:"inline-flex items-center gap-2 px-6 py-3 bg-hba-blue-1 text-white font-semibold rounded-xl shadow-sm hover:shadow-md hover:opacity-90 transition-all",children:[s.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Close"]})]}),s.jsxs("div",{className:"bg-white border border-slate-200 rounded-2xl p-8 shadow-sm",children:[s.jsx("div",{className:"font-bold text-slate-900 text-lg",children:"No plans selected to compare"}),s.jsxs("div",{className:"text-slate-600 mt-2",children:["Go back and choose 2â3 plans, then click ",s.jsx("span",{className:"font-semibold text-hba-blue-1",children:"Compare Plans"}),"."]})]})]})});const S=280,j=`minmax(${S}px, ${S}px) repeat(${c.length}, minmax(240px, 1fr))`;return s.jsx("div",{className:"min-h-screen bg-gradient-to-b from-slate-50 to-white",children:s.jsxs("div",{className:"max-w-[90rem] mx-auto px-4 sm:px-6 lg:px-8 py-8 md:py-12",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-8",children:[s.jsx("h1",{className:"text-2xl md:text-3xl font-extrabold text-hba-blue-1",children:"Compare Plans"}),s.jsxs("button",{type:"button",onClick:N,className:"shrink-0 self-start sm:self-center inline-flex items-center gap-2 px-6 py-3 bg-hba-blue-1 text-white font-semibold rounded-xl shadow-sm hover:shadow-md hover:opacity-90 transition-all",children:[s.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Close"]})]}),s.jsxs("div",{className:"bg-white rounded-2xl shadow-sm border border-slate-200 overflow-hidden overflow-x-auto",children:[s.jsxs("div",{className:"grid border-b border-slate-200",style:{gridTemplateColumns:j},children:[s.jsx("div",{className:"bg-slate-50/80 p-4"}),c.map((C,_)=>s.jsx("div",{className:`px-4 py-3 text-center text-xs font-semibold uppercase tracking-wide text-slate-600 border-l border-slate-200 ${_===0?"bg-slate-100":"bg-slate-50"}`,children:C.hba_carrier},`carrier-${C.planId}`))]}),s.jsxs("div",{className:"grid border-b border-slate-200",style:{gridTemplateColumns:j},children:[s.jsx("div",{className:"bg-slate-50/80 p-4"}),c.map((C,_)=>s.jsx("div",{className:`px-4 py-4 text-center text-base font-bold text-slate-900 border-l border-slate-200 ${_===0?"bg-slate-100":"bg-slate-50"}`,children:C.post_title},`name-${C.planId}`))]}),v.map((C,_)=>C.kind==="head"?s.jsxs("div",{className:"grid bg-slate-100/60 border-b border-slate-200",style:{gridTemplateColumns:j},children:[s.jsx("div",{className:"px-4 py-3 text-sm font-bold text-slate-800",children:C.label}),c.map(O=>s.jsx("div",{className:"border-l border-slate-200 bg-slate-50/50"},`headcell-${_}-${O.planId}`))]},`head-${_}`):s.jsxs("div",{className:`grid border-b border-slate-100 ${_%2===0?"bg-white":"bg-slate-50/30"}`,style:{gridTemplateColumns:j},children:[s.jsx("div",{className:"px-4 py-3 text-sm font-medium text-slate-700",children:C.label}),c.map(O=>s.jsx("div",{className:"px-4 py-3 text-sm text-slate-800 border-l border-slate-100",children:C.get(O)},`cell-${_}-${O.planId}`))]},`row-${_}`))]})]})})};var Ii=function(){return Ii=Object.assign||function(e){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ii.apply(this,arguments)};function yf(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(r[n[a]]=t[n[a]]);return r}function F2e(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?i(d.value):a(d.value).then(l,c)}u((n=n.apply(t,e||[])).next())})}function z2e(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}const V2e=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);
1124class xC extends Error{constructor(e,r="FunctionsError",n){super(e),this.name=r,this.context=n}}class U2e extends xC{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class RM extends xC{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class IM extends xC{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var gN;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(gN||(gN={}));class q2e{constructor(e,{headers:r={},customFetch:n,region:a=gN.Any}={}){this.url=e,this.headers=r,this.region=a,this.fetch=V2e(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return F2e(this,arguments,void 0,function*(r,n={}){var a;let i,o;try{const{headers:l,method:c,body:u,signal:d,timeout:h}=n;let m={},{region:g}=n;g||(g=this.region);const b=new URL(`${this.url}/${r}`);g&&g!=="any"&&(m["x-region"]=g,b.searchParams.set("forceFunctionRegion",g));let y;u&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(m["Content-Type"]="application/octet-stream",y=u):typeof u=="string"?(m["Content-Type"]="text/plain",y=u):typeof FormData<"u"&&u instanceof FormData?y=u:(m["Content-Type"]="application/json",y=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?y=JSON.stringify(u):y=u;let v=d;h&&(o=new AbortController,i=setTimeout(()=>o.abort(),h),d?(v=o.signal,d.addEventListener("abort",()=>o.abort())):v=o.signal);const N=yield this.fetch(b.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},m),this.headers),l),body:y,signal:v}).catch(C=>{throw new U2e(C)}),S=N.headers.get("x-relay-error");if(S&&S==="true")throw new RM(N);if(!N.ok)throw new IM(N);let j=((a=N.headers.get("Content-Type"))!==null&&a!==void 0?a:"text/plain").split(";")[0].trim(),$;return j==="application/json"?$=yield N.json():j==="application/octet-stream"||j==="application/pdf"?$=yield N.blob():j==="text/event-stream"?$=N:j==="multipart/form-data"?$=yield N.formData():$=yield N.text(),{data:$,error:null,response:N}}catch(l){return{data:null,error:l,response:l instanceof IM||l instanceof RM?l.context:void 0}}finally{i&&clearTimeout(i)}})}}var W2e=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
1124de=t.code}},G2e=class{constructor(t){var e,r,n;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(r=t.isMaybeSingle)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(n=t.urlLengthLimit)!==null&&n!==void 0?n:8e3,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}then(t,e){var r=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let a=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let o=null,l=null,c=null,u=i.status,d=i.statusText;if(i.ok){var h,m;if(r.method!=="HEAD"){var g;const N=await i.text();N===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((g=r.headers.get("Accept"))===null||g===void 0)&&g.includes("application/vnd.pgrst.plan+text"))?l=N:l=JSON.parse(N))}const y=(h=r.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),v=(m=i.headers.get("content-range"))===null||m===void 0?void 0:m.split("/");y&&v&&v.length>1&&(c=parseInt(v[1])),r.isMaybeSingle&&r.method==="GET"&&Array.isArray(l)&&(l.length>1?(o={code:"PGRST116",details:`Results contain ${l.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},l=null,c=null,u=406,d="Not Acceptable"):l.length===1?l=l[0]:l=null)}else{var b;const y=await i.text();try{o=JSON.parse(y),Array.isArray(o)&&i.status===404&&(l=[],o=null,u=200,d="OK")}catch{i.status===404&&y===""?(u=204,d="No Content"):o={message:y}}if(o&&r.isMaybeSingle&&(!(o==null||(b=o.details)===null||b===void 0)&&b.includes("0 rows"))&&(o=null,u=200,d="OK"),o&&r.shouldThrowOnError)throw new W2e(o)}return{error:o,data:l,count:c,status:u,statusText:d}});return this.shouldThrowOnError||(a=a.catch(i=>{var o;let l="",c="",u="";const d=i==null?void 0:i.cause;if(d){var h,m,g,b;const N=(h=d==null?void 0:d.message)!==null&&h!==void 0?h:"",S=(m=d==null?void 0:d.code)!==null&&m!==void 0?m:"";l=`${(g=i==null?void 0:i.name)!==null&&g!==void 0?g:"FetchError"}: ${i==null?void 0:i.message}`,l+=` 1125 1126Caused by: ${(b=d==null?void 0:d.name)!==null&&b!==void 0?b:"Error"}: ${N}`,S&&(l+=` (${S})`),d!=null&&d.stack&&(l+=` 1127${d.stack}`)}else{var y;l=(y=i==null?void 0:i.stack)!==null&&y!==void 0?y:""}const v=this.url.toString().length;return(i==null?void 0:i.name)==="AbortError"||(i==null?void 0:i.code)==="ABORT_ERR"?(u="",c="Request was aborted (timeout or manual cancellation)",v>this.urlLengthLimit&&(c+=`. Note: Your request URL is ${v} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",c="HTTP headers exceeded server limits (typically 16KB)",v>this.urlLengthLimit&&(c+=`. Your request URL is ${v} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:l,hint:c,code:u},data:null,count:null,status:0,statusText:""}})),a.then(t,e)}returns(){return this}overrideTypes(){return this}},K2e=class extends G2e{select(t){let e=!1;const r=(t??"*").split("").map(n=>/\s/.test(n)&&!e?"":(n==='"'&&(e=!e),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:r,foreignTable:n,referencedTable:a=n}={}){const i=a?`${a}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${t}.${e?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:r=e}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${t}`),this}range(t,e,{foreignTable:r,referencedTable:n=r}={}){const a=typeof n>"u"?"offset":`${n}.offset`,i=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(a,`${t}`),this.url.searchParams.set(i,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
1127explain({analyze:t=!1,verbose:e=!1,settings:r=!1,buffers:n=!1,wal:a=!1,format:i="text"}={}){var o;const l=[t?"analyze":null,e?"verbose":null,r?"settings":null,n?"buffers":null,a?"wal":null].filter(Boolean).join("|"),c=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const DM=new RegExp("[,()]");var qd=class extends K2e{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const r=Array.from(new Set(e)).map(n=>typeof n=="string"&&DM.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}notIn(t,e){const r=Array.from(new Set(e)).map(n=>typeof n=="string"&&DM.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(t,`not.in.(${r})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:r,type:n}={}){let a="";n==="plain"?a="pl":n==="phrase"?a="ph":n==="websearch"&&(a="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${a}fts${i}.${e}`),this}match(t){return Object.entries(t).forEach(([e,r])=>{this.url.searchParams.append(e,`eq.${r}`)}),this}not(t,e,r){return this.url.searchParams.append(t,`not.${e}.${r}`),this}or(t,{foreignTable:e,referencedTable:r=e}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${t})`),this}filter(t,e,r){return this.url.searchParams.append(t,`${e}.${r}`),this}},Y2e=class{constructor(t,{headers:e={},schema:r,fetch:n,urlLengthLimit:a=8e3}){this.url=t,this.headers=new Headers(e),this.schema=r,this.fetch=n,this.urlLengthLimit=a}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:r=!1,count:n}=e??{},a=r?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",o),n&&c.append("Prefer",`count=${n}`),new qd({method:a,url:l,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(t,{count:e,defaultToNull:r=!0}={}){var n;const a="POST",{url:i,headers:o}=this.cloneRequestState();if(e&&o.append("Prefer",`count=${e}`),r||o.append("Prefer","missing=default"),Array.isArray(t)){const l=t.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);i.searchParams.set("columns",c.join(","))}}return new qd({method:a,url:i,headers:o,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(t,{onConflict:e,ignoreDuplicates:r=!1,count:n,defaultToNull:a=!0}={}){var i;const o="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),e!==void 0&&l.searchParams.set("on_conflict",e),n&&c.append("Prefer",`count=${n}`),a||c.append("Prefer","missing=default"),Array.isArray(t)){const u=t.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(u.length>0){const d=[...new Set(u)].map(h=>`"${h}"`);l.searchParams.set("columns",d.join(","))}}return new qd({method:o,url:l,headers:c,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit})}update(t,{count:e}={}){var r;const n="PATCH",{url:a,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new qd({method:n,url:a,headers:i,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:t}={}){var e;const r="DELETE",{url:n,headers:a}=this.cloneRequestState();return t&&a.append("Prefer",`count=${t}`),new qd({method:r,url:n,headers:a,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit})}};function Pm(t){"@babel/helpers - typeof";return Pm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pm(t)}function X2e(t,e){if(Pm(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Pm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function J2e(t){var e=X2e(t,"string");return Pm(e)=="symbol"?e:e+""}function Q2e(t,e,r){return(e=J2e(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function LM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Hg(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};
1127e%2?LM(Object(r),!0).forEach(function(n){Q2e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LM(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var Z2e=class lG{constructor(e,{headers:r={},schema:n,fetch:a,timeout:i,urlLengthLimit:o=8e3}={}){this.url=e,this.headers=new Headers(r),this.schemaName=n,this.urlLengthLimit=o;const l=a??globalThis.fetch;i!==void 0&&i>0?this.fetch=(c,u)=>{const d=new AbortController,h=setTimeout(()=>d.abort(),i),m=u==null?void 0:u.signal;if(m){if(m.aborted)return clearTimeout(h),l(c,u);const g=()=>{clearTimeout(h),d.abort()};return m.addEventListener("abort",g,{once:!0}),l(c,Hg(Hg({},u),{},{signal:d.signal})).finally(()=>{clearTimeout(h),m.removeEventListener("abort",g)})}return l(c,Hg(Hg({},u),{},{signal:d.signal})).finally(()=>clearTimeout(h))}:this.fetch=l}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new Y2e(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(e){return new lG(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(e,r={},{head:n=!1,get:a=!1,count:i}={}){var o;let l;const c=new URL(`${this.url}/rpc/${e}`);let u;const d=g=>g!==null&&typeof g=="object"&&(!Array.isArray(g)||g.some(d)),h=n&&Object.values(r).some(d);h?(l="POST",u=r):n||a?(l=n?"HEAD":"GET",Object.entries(r).filter(([g,b])=>b!==void 0).map(([g,b])=>[g,Array.isArray(b)?`{${b.join(",")}}`:`${b}`]).forEach(([g,b])=>{c.searchParams.append(g,b)})):(l="POST",u=r);const m=new Headers(this.headers);return h?m.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&m.set("Prefer",`count=${i}`),new qd({method:l,url:c,headers:m,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}};class eye{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const r=globalThis.process;if(r){const n=r.versions;if(n&&n.node){const a=n.node,i=parseInt(a.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 1128import ws from "ws" 1129new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let r=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(r+=` 1130 1131Suggested solution: ${e.workaround}`),new Error(r)}static createWebSocket(e,r){const n=this.getWebSocketConstructor();return new n(e,r)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const tye="2.97.0",rye=`realtime-js/${tye}`,nye="1.0.0",cG="2.0.0",BM=cG,bN=1e4,aye=1e3,sye=100;var Rl;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(Rl||(Rl={}));var fn;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(fn||(fn={}));var ai;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(ai||(ai={}));var xN;(function(t){t.websocket="websocket"})(xN||(xN={}));var Jc;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(Jc||(Jc={}));class iye{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,r){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(e));let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(e){var r;return this._isArrayBuffer((r=e.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var r,n;const a=(n=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,a)}_encodeJsonUserBroadcastPush(e){var r,n;const a=(n=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},o=new TextEncoder().encode(JSON.stringify(a)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(e,r,n){var a,i;const o=e.topic,l=(a=e.ref)!==null&&a!==void 0?a:"",c=(i=e.join_ref)!==null&&i!==void 0?i:"",u=e.payload.event,d=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const m=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+l.length+o.length+u.length+h.length,g=new ArrayBuffer(this.HEADER_LENGTH+m);let b=new DataView(g),y=0;b.setUint8(y++,this.KINDS.userBroadcastPush),b.setUint8(y++,c.length),b.setUint8(y++,l.length),b.setUint8(y++,o.length),b.setUint8(y++,u.length),b.setUint8(y++,h.length),b.setUint8(y++,r),Array.from(c,N=>
1131b.setUint8(y++,N.charCodeAt(0))),Array.from(l,N=>b.setUint8(y++,N.charCodeAt(0))),Array.from(o,N=>b.setUint8(y++,N.charCodeAt(0))),Array.from(u,N=>b.setUint8(y++,N.charCodeAt(0))),Array.from(h,N=>b.setUint8(y++,N.charCodeAt(0)));var v=new Uint8Array(g.byteLength+n.byteLength);return v.set(new Uint8Array(g),0),v.set(new Uint8Array(n),g.byteLength),v.buffer}decode(e,r){if(this._isArrayBuffer(e)){let n=this._binaryDecode(e);return r(n)}if(typeof e=="string"){const n=JSON.parse(e),[a,i,o,l,c]=n;return r({join_ref:a,ref:i,topic:o,event:l,payload:c})}return r({})}_binaryDecode(e){const r=new DataView(e),n=r.getUint8(0),a=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,r,a)}}_decodeUserBroadcast(e,r,n){const a=r.getUint8(1),i=r.getUint8(2),o=r.getUint8(3),l=r.getUint8(4);let c=this.HEADER_LENGTH+4;const u=n.decode(e.slice(c,c+a));c=c+a;const d=n.decode(e.slice(c,c+i));c=c+i;const h=n.decode(e.slice(c,c+o));c=c+o;const m=e.slice(c,e.byteLength),g=l===this.JSON_ENCODING?JSON.parse(n.decode(m)):m,b={type:this.BROADCAST_EVENT,event:d,payload:g};return o>0&&(b.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:b}}_isArrayBuffer(e){var r;return e instanceof ArrayBuffer||((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(e,r){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([n])=>r.includes(n)))}}class uG{constructor(e,r){this.callback=e,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var dr;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(dr||(dr={}));const HM=(t,e,r={})=>{var n;const a=(n=r.skipTypes)!==null&&n!==void 0?n:[];return e?Object.keys(e).reduce((i,o)=>(i[o]=oye(o,t,e,a),i),{}):{}},oye=(t,e,r,n)=>{const a=e.find(l=>
1131l.name===t),i=a==null?void 0:a.type,o=r[t];return i&&!n.includes(i)?dG(i,o):yN(o)},dG=(t,e)=>{if(t.charAt(0)==="_"){const r=t.slice(1,t.length);return dye(e,r)}switch(t){case dr.bool:return lye(e);case dr.float4:case dr.float8:case dr.int2:case dr.int4:case dr.int8:case dr.numeric:case dr.oid:return cye(e);case dr.json:case dr.jsonb:return uye(e);case dr.timestamp:return hye(e);case dr.abstime:case dr.date:case dr.daterange:case dr.int4range:case dr.int8range:case dr.money:case dr.reltime:case dr.text:case dr.time:case dr.timestamptz:case dr.timetz:case dr.tsrange:case dr.tstzrange:return yN(e);default:return yN(e)}},yN=t=>t,lye=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},cye=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},uye=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},dye=(t,e)=>{if(typeof t!="string")return t;const r=t.length-1,n=t[r];if(t[0]==="{"&&n==="}"){let i;const o=t.slice(1,r);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(l=>dG(e,l))}return t},hye=t=>typeof t=="string"?t.replace(" ","T"):t,hG=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};class v3{constructor(e,r,n={},a=bN){this.channel=e,this.event=r,this.payload=n,this.timeout=a,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,r){var n;return this._hasReceived(e)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:e,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(r))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var FM;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(FM||(FM={}));class im{constructor(e,r){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},a=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=im.syncState(this.state,a,i,o),this.pendingDiffs.forEach(c=>{this.state=im.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],l()}),this.channel._on(n.diff,{},a=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(a):(this.state=im.syncDiff(this.state,a,i,o),l())}),this.onJoin((a,i,o)=>{this.channel._trigger("presence",{event:"join",key:a,currentPresences:i,newPresences:o})}),this.onLeave((a,i,o)=>{this.channel._trigger("presence",{event:"leave",key:a,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,r,n,a){const i=this.cloneDeep(e),o=this.transformState(r),l={},c={};return this.map(i,(u,d)=>{o[u]||(c[u]=d)}),this.map(o,(u,d)=>{const h=i[u];if(h){const m=d.map(v=>v.presence_ref),g=h.map(v=>v.presence_ref),b=d.filter(v=>g.indexOf(v.presence_ref)<0),y=h.filter(v=>m.indexOf(v.presence_ref)<0);b.length>0&&(l[u]=b),y.length>0&&(c[u]=y)}else l[u]=d}),this.syncDiff(i,{joins:l,leaves:c},n,a)}static syncDiff(e,r,n,a){const{joins:i,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),a||(a=()=>{}),this.map(i,(l,c)=>{var u;
1131const d=(u=e[l])!==null&&u!==void 0?u:[];if(e[l]=this.cloneDeep(c),d.length>0){const h=e[l].map(g=>g.presence_ref),m=d.filter(g=>h.indexOf(g.presence_ref)<0);e[l].unshift(...m)}n(l,d,c)}),this.map(o,(l,c)=>{let u=e[l];if(!u)return;const d=c.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),e[l]=u,a(l,u,c),u.length===0&&delete e[l]}),e}static map(e,r){return Object.getOwnPropertyNames(e).map(n=>r(n,e[n]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((r,n)=>{const a=e[n];return"metas"in a?r[n]=a.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=a,r},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var zM;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(zM||(zM={}));var om;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(om||(om={}));var _o;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(_o||(_o={}));class rh{constructor(e,r={config:{}},n){var a,i;if(this.topic=e,this.params=r,this.socket=n,this.bindings={},this.state=fn.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new v3(this,ai.join,this.params,this.timeout),this.rejoinTimer=new uG(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=fn.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=fn.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=fn.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=fn.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=fn.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ai.reply,{},(o,l)=>{this._trigger(this._replyEventName(l),o)}),this.presence=new im(this),this.broadcastEndpointURL=hG(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(a=this.params.config)===null||a===void 0?void 0:a.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,r=this.timeout){var n,a,i;if(this.socket.isConnected()||this.socket.connect(),this.state==fn.closed){const{config:{broadcast:o,presence:l,private:c}}=this.params,u=(a=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(g=>g.filter))!==null&&a!==void 0?a:[],d=!!this.bindings[om.PRESENCE]&&this.bindings[om.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},m={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(g=>e==null?void 0:e(_o.CHANNEL_ERROR,g)),this._onClose(()=>e==null?void 0:e(_o.CLOSED)),this.updateJoinPayload(Object.assign({config:m},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:g})=>{var b;if(this.socket._isManualToken()||this.socket.setAuth(),g===void 0){e==null||e(_o.SUBSCRIBED);return}else{const y=this.bindings.postgres_changes,v=(b=y==null?void 0:y.length)!==null&&b!==void 0?b:0,N=[];for(let S=0;S<v;
1131S++){const j=y[S],{filter:{event:$,schema:C,table:_,filter:O}}=j,E=g&&g[S];if(E&&E.event===$&&rh.isFilterValueEqual(E.schema,C)&&rh.isFilterValueEqual(E.table,_)&&rh.isFilterValueEqual(E.filter,O))N.push(Object.assign(Object.assign({},j),{id:E.id}));else{this.unsubscribe(),this.state=fn.errored,e==null||e(_o.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=N,e&&e(_o.SUBSCRIBED);return}}).receive("error",g=>{this.state=fn.errored,e==null||e(_o.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(g).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(_o.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,r={}){return await this.send({type:"presence",event:"track",payload:e},r.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,r,n){return this.state===fn.joined&&e===om.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(e,r,n)}async httpSend(e,r,n={}){var a;if(r==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:r,private:this.private}]})},l=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(a=n.timeout)!==null&&a!==void 0?a:this.timeout);if(l.status===202)return{success:!0};let c=l.statusText;try{const u=await l.json();c=u.error||u.message||c}catch{}return Promise.reject(new Error(c))}async send(e,r={}){var n,a;if(!this._canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
1131in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=e,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((a=u.body)===null||a===void 0?void 0:a.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,l,c;const u=this._push(e.type,e,r.timeout||this.timeout);e.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=fn.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ai.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(a=>{n=new v3(this,ai.leave,{},e),n.receive("ok",()=>{r(),a("ok")}).receive("timeout",()=>{r(),a("timed out")}).receive("error",()=>{a("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=fn.closed,this.bindings={}}async _fetchWithTimeout(e,r,n){const a=new AbortController,i=setTimeout(()=>a.abort(),n),o=await this.socket.fetch(e,Object.assign(Object.assign({},r),{signal:a.signal}));return clearTimeout(i),o}_push(e,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let a=new v3(this,e,r,n);return this._canPush()?a.send():this._addToPushBuffer(a),a}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>sye){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(e,r,n){return r}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,r,n){var a,i;const o=e.toLocaleLowerCase(),{close:l,error:c,leave:u,join:d}=ai;if(n&&[l,c,u,d].indexOf(o)>=0&&n!==this._joinRef())return;let m=this._onMessage(o,r,n);if(r&&!m)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(a=this.bindings.postgres_changes)===null||a===void 0||a.filter(g=>{var b,y,v;return((b=g.filter)===null||b===void 0?void 0:b.event)==="*"||((v=(y=g.filter)===null||y===void 0?void 0:y.event)===null||v===void 0?void 0:v.toLocaleLowerCase())===o}).map(g=>g.callback(m,n)):(i=this.bindings[o])===null||i===void 0||i.filter(g=>{var b,y,v,N,S,j;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in g){const $=g.id,C=(b=g.filter)===null||b===void 0?void 0:b.event;return $&&((y=r.ids)===null||y===void 0?void 0:y.includes($))&&(C==="*"||(C==null?void 0:C.toLocaleLowerCase())===((v=r.data)===null||v===void 0?void 0:v.type.toLocaleLowerCase()))}else{const $=(S=(N=g==null?void 0:g.filter)===null||N===void 0?void 0:N.event)===null||S===void 0?void 0:S.toLocaleLowerCase();return $==="*"||$===((j=r==null?void 0:r.event)===null||j===void 0?void 0:j.toLocaleLowerCase())}else return g.type.toLocaleLowerCase()===o}).map(g=>{if(typeof m=="object"&&"ids"in m){const b=m.data,{schema:y,table:v,commit_timestamp:N,type:S,errors:j}=b;m=Object.assign(Object.assign({},{schema:y,table:v,commit_timestamp:N,eventType:S,new:{},old:{},errors:j}),this._getPayloadRecords(b))}g.callback(m,n)})}_isClosed(){return this.state===fn.closed}_isJoined(){return this.state===fn.joined}_isJoining(){return this.state===fn.joining}_isLeaving(){return this.state===fn.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,r,n){const a=e.toLocaleLowerCase(),i={type:a,filter:r,callback:n};return this.bindings[a]?this.bindings[a].push(i):this.bindings[a]=[i],this}_off(e,r){const n=e.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(a=>{var i;return!(((i=a.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&rh.isEqual(a.filter,r))})),this}static isEqual(e,r){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(const n in e)if(e[n]!==r[n])return!1;return!0}static isFilterValueEqual(e,r){return(e??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(ai.close,{},e)}_onError(e){this._on(ai.error,{},r=>e(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=fn.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const r={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(r.new=HM(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(r.old=HM(e.columns,e.old_record)),r}}const w3=()=>{},Fg={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},fye=[1e3,2e3,5e3,1e4],pye=1e4,mye=` 1132 addEventListener("message", (e) => { 1133 if (e.data.event === "start") { 1134 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 1135 } 1136 });`;class gye{constructor(e,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=bN,this.transport=null,this.heartbeatIntervalMs=Fg.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=w3,this.ref=0,this.reconnectTimer=null,this.vsn=BM,this.logger=w3,this.conn=null,this.sendBuffer=[],this.serializer
1136=new iye,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=a=>a?(...i)=>a(...i):(...i)=>fetch(...i),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${e}/${xN.websocket}`,this.httpEndpoint=hG(e),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=eye.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const r=e.message;throw r.includes("Node.js")?new Error(`${r} 1137 1138To use Realtime in Node.js, you need to provide a WebSocket implementation: 1139 1140Option 1: Use Node.js 22+ which has native WebSocket support 1141Option 2: Install and provide the "ws" package: 1142 1143 npm install ws 1144 1145 import ws from "ws" 1146 const client = new RealtimeClient(url, { 1147 ...options, 1148 transport: ws 1149 })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(e,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(e?this.conn.close(e,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const r=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const e=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,r,n){this.logger(e,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case Rl.connecting:return Jc.Connecting;case Rl.open:return Jc.Open;case Rl.closing:return Jc.Closing;default:return Jc.Closed}}isConnected(){return this.connectionState()===Jc.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,r={config:{}}){const n=`realtime:${e}`,a=this.getChannels().find(i=>i.topic===n);if(a)return a;{const i=new rh(`realtime:${e}`,r,this);return this.channels.push(i),i}}push(e){const{topic:r,event:n,payload:a,ref:i}=e,o=()=>{this.encode(e,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${r} ${n} (${i})`,a),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(aye,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
vendor: 3,886 bytes, line 1149
1149heduleTimeout()},Fg.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let r=this.channels.find(n=>n.topic===e&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${e}"`),r.unsubscribe())}_remove(e){this.channels=this.channels.filter(r=>r.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply"&&r.ref&&r.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error",u)}catch(d){this.log("error","error in heartbeat callback",d)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:n,event:a,payload:i,ref:o}=r,l=o?`(${o})`:"",c=i.status||"";this.log("receive",`${c} ${n} ${a} ${l}`.trim(),i),this.channels.filter(u=>u._isMember(n)).forEach(u=>u._trigger(a,i,o)),this._triggerStateCallbacks("message",r)})}_clearTimer(e){var r;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e),this.conn.readyState===Rl.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Rl.open||this.conn.readyState===Rl.connecting)try{this.conn.close()}catch(e){this.log("error","Error closing connection",e)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(e){var r;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
1149heduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e);try{this.heartbeatCallback("error")}catch(r){this.log("error","error in heartbeat callback",r)}}_triggerChanError(){this.channels.forEach(e=>e._trigger(ai.error))}_appendParams(e,r){if(Object.keys(r).length===0)return e;const n=e.match(/\?/)?"&":"?",a=new URLSearchParams(r);return`${e}${n}${a}`}_workerObjectUrl(e){let r;if(e)r=e;else{const n=new Blob([mye],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(e,r=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(e=null){let r,n=!1;if(e)r=e,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(a){this.log("error","Error fetching access token from callback",a),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(a=>{const i={access_token:r,version:rye};r&&a.updateJoinPayload(i),a.joinedOnce&&a._isJoined()&&a._push(ai.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${e}`,r)})}_triggerStateCallbacks(e,r){try{this.stateChangeCallbacks[e].forEach(n=>{try{n(r)}catch(a){this.log("error",`error in ${e} callback`,a)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new uG(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Fg.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var r,n,a,i,o,l,c,u,d,h,m,g;switch(this.transport=(r=e==null?void 0:e.transport)!==null&&r!==void 0?r:null,this.timeout=(n=e==null?void 0:e.timeout)!==null&&n!==void 0?n:bN,this.heartbeatIntervalMs=(a=e==null?void 0:e.heartbeatIntervalMs)!==null&&a!==void 0?a:Fg.HEARTBEAT_INTERVAL,this.worker=(i=e==null?void 0:e.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=e==null?void 0:e.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(l=e==null?void 0:e.heartbeatCallback)!==null&&l!==void 0?l:w3,this.vsn=(c=e==null?void 0:e.vsn)!==null&&c!==void 0?c:BM,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=e==null?void 0:e.reconnectAfterMs)!==null&&u!==void 0?u:(b=>fye[b-1]||pye),this.vsn){case nye:this.encode=(d=e==null?void 0:e.encode)!==null&&d!==void 0?d:((b,y)=>y(JSON.stringify(b))),this.decode=(h=e==null?void 0:e.decode)!==null&&h!==void 0?h:((b,y)=>y(JSON.parse(b)));break;case cG:this.encode=(m=e==null?void 0:e.encode)!==null&&m!==void 0?m:this.serializer.encode.bind(this.serializer),this.decode=(g=e==null?void 0:e.decode)!==null&&g!==void 0?g:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}var Mm=class extends Error{constructor(t,e){var r;super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&((r=e.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function bye(t,e,r){const n=new URL(e,t);if(r)for(const[a,i]of Object.entries(r))i!==void 0&&n.searchParams.set(a,i);return n.toString()}async function xye(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function yye(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:a,body:i,headers:o}){const l=bye(t.baseUrl,n,a),c=await xye(t.auth),u=await e(l,{method:r,headers:{...i?{"Content-Type":"application/json"}:{},...c,...o},body:i?JSON.stringify(i):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),m=h&&d?JSON.parse(d):d;if(!u.ok){const g=h?m:void 0,b=g==null?void 0:g.error;throw new Mm((b==null?void 0:b.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:b==null?void 0:b.type,icebergCode:b==null?void 0:b.code,details:g})}return{status:u.status,headers:u.headers,data:m}}}}function zg(t){return t.join("�")}var vye=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:zg(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(t,e){const r={namespace:t.namespace,properties:e==null?void 0:e.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}
1149/namespaces/${zg(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${zg(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${zg(t.namespace)}`}),!0}catch(e){if(e instanceof Mm&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(r){if(r instanceof Mm&&r.status===409)return;throw r}}};function Sd(t){return t.join("�")}var wye=class{constructor(t,e="",r){this.client=t,this.prefix=e,this.accessDelegation=r}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Sd(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Sd(t.namespace)}/tables`,body:e,headers:r})).data.metadata}async updateTable(t,e){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Sd(t.namespace)}/tables/${t.name}`,body:e});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Sd(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String((e==null?void 0:e.purge)??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Sd(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Sd(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(r){if(r instanceof Mm&&r.status===404)return!1;throw r}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(r){if(r instanceof Mm&&r.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw r}}},Nye=class{constructor(t){var n;let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const r=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=yye({baseUrl:r,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=(n=t.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new vye(this.client,e),this.tableOps=new wye(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}},Dy=class extends Error{constructor(t,e="storage",r,n){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}};function Ly(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var Vg=class extends Dy{constructor(t,e,r,n="storage"){super(t,n,e,r),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},fG=class extends Dy{constructor(t,e,r="storage"){super(t,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};const jye=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),kye=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);
1149return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},vN=t=>{if(Array.isArray(t))return t.map(r=>vN(r));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([r,n])=>{const a=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));e[a]=vN(n)}),e},Sye=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t);function Tm(t){"@babel/helpers - typeof";return Tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tm(t)}function Cye(t,e){if(Tm(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Tm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $ye(t){var e=Cye(t,"string");return Tm(e)=="symbol"?e:e+""}function _ye(t,e,r){return(e=$ye(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function wt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?VM(Object(r),!0).forEach(function(n){_ye(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VM(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}const UM=t=>{var e;return t.msg||t.message||t.error_description||(typeof t.error=="string"?t.error:(e=t.error)===null||e===void 0?void 0:e.message)||JSON.stringify(t)},Aye=async(t,e,r,n)=>{if(t&&typeof t=="object"&&"status"in t&&"ok"in t&&typeof t.status=="number"&&!(r!=null&&r.noResolveJson)){const a=t,i=a.status||500;if(typeof a.json=="function")a.json().then(o=>{const l=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";e(new Vg(UM(o),i,l,n))}).catch(()=>{if(n==="vectors"){const o=i+"";e(new Vg(a.statusText||`HTTP ${i} error`,i,o,n))}else{const o=i+"";e(new Vg(a.statusText||`HTTP ${i} error`,i,o,n))}});else{const o=i+"";e(new Vg(a.statusText||`HTTP ${i} error`,i,o,n))}}else e(new fG(UM(t),t,n))},Eye=(t,e,r,n)=>{const a={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||t==="HEAD"||!n?wt(wt({},a),r):(kye(n)?(a.headers=wt({"Content-Type":"application/json"},e==null?void 0:e.headers),a.body=JSON.stringify(n)):a.body=n,e!=null&&e.duplex&&(a.duplex=e.duplex),wt(wt({},a),r))};async function kp(t,e,r,n,a,i,o){return new Promise((l,c)=>{t(r,Eye(e,n,a,i)).then(u=>{if(!u.ok)throw u;if(n!=null&&n.noResolveJson)return u;if(o==="vectors"){const d=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!d||!d.includes("application/json"))return{}}return u.json()}).then(u=>l(u)).catch(u=>Aye(u,c,n,o))})}function pG(t="storage"){return{get:async(e,r,n,a)=>kp(e,"GET",r,n,a,void 0,t),post:async(e,r,n,a,i)=>kp(e,"POST",r,a,i,n,t),put:async(e,r,n,a,i)=>kp(e,"PUT",r,a,i,n,t),head:async(e,r,n,a)=>kp(e,"HEAD",r,wt(wt({},n),{},{noResolveJson:!0}),a,void 0,t),remove:async(e,r,n,a,i)=>kp(e,"DELETE",r,a,i,n,t)}}const Oye=pG("storage"),{get:Rm,post:ni,put:wN,head:Pye,remove:yC}=Oye,Ja=pG("vectors");var vf=class{constructor(t,e={},r,n="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=e,this.fetch=jye(r),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=wt(wt({},this.headers),{},{[t]:e}),this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Ly(r))return{data:null,error:r};throw r}}},Mye=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e}then(t,e){return this.execute().then(t,e)}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Ly(e))return{data:null,error:e};throw e}}};let mG;mG=Symbol.toStringTag;var Tye=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[mG]="BlobDownloadBuilder",this.promise=null}asStream(){return new Mye(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Ly(e))return{data:null,error:e};throw e}}};
1149const Rye={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},qM={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var Iye=class extends vf{constructor(t,e={},r,n){super(t,e,n,"storage"),this.bucketId=r}async uploadOrUpdate(t,e,r,n){var a=this;return a.handleOperation(async()=>{let i;const o=wt(wt({},qM),n);let l=wt(wt({},a.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",a.encodeMetadata(c)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),c&&!i.has("metadata")&&i.append("metadata",a.encodeMetadata(c))):(i=r,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=a.toBase64(a.encodeMetadata(c))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),n!=null&&n.headers&&(l=wt(wt({},l),n.headers));const u=a._removeEmptyFolders(e),d=a._getFinalPath(u),h=await(t=="PUT"?wN:ni)(a.fetch,`${a.url}/object/${d}`,i,wt({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:u,id:h.Id,fullPath:h.Key}})}async upload(t,e,r){return this.uploadOrUpdate("POST",t,e,r)}async uploadToSignedUrl(t,e,r,n){var a=this;const i=a._removeEmptyFolders(t),o=a._getFinalPath(i),l=new URL(a.url+`/object/upload/sign/${o}`);return l.searchParams.set("token",e),a.handleOperation(async()=>{let c;const u=wt({upsert:qM.upsert},n),d=wt(wt({},a.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.append("cacheControl",u.cacheControl)):(c=r,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType),{path:i,fullPath:(await wN(a.fetch,l.toString(),c,{headers:d})).Key}})}async createSignedUploadUrl(t,e){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(t);const a=wt({},r.headers);e!=null&&e.upsert&&(a["x-upsert"]="true");const i=await ni(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:a}),o=new URL(r.url+i.url),l=o.searchParams.get("token");if(!l)throw new Dy("No token returned by API");return{signedUrl:o.toString(),path:t,token:l}})}async update(t,e,r){return this.uploadOrUpdate("PUT",t,e,r)}async move(t,e,r){var n=this;return n.handleOperation(async()=>await ni(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:t,destinationKey:e,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}))}async copy(t,e,r){var n=this;return n.handleOperation(async()=>({path:(await ni(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:t,destinationKey:e,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(t,e,r){var n=this;return n.handleOperation(async()=>{let a=n._getFinalPath(t),i=await ni(n.fetch,`${n.url}/object/sign/${a}
1149`,wt({expiresIn:e},r!=null&&r.transform?{transform:r.transform}:{}),{headers:n.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{signedUrl:encodeURI(`${n.url}${i.signedURL}${o}`)}})}async createSignedUrls(t,e,r){var n=this;return n.handleOperation(async()=>{const a=await ni(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:e,paths:t},{headers:n.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return a.map(o=>wt(wt({},o),{},{signedUrl:o.signedURL?encodeURI(`${n.url}${o.signedURL}${i}`):null}))})}download(t,e,r){const n=typeof(e==null?void 0:e.transform)<"u"?"render/image/authenticated":"object",a=this.transformOptsToQueryString((e==null?void 0:e.transform)||{}),i=a?`?${a}`:"",o=this._getFinalPath(t),l=()=>Rm(this.fetch,`${this.url}/${n}/${o}${i}`,{headers:this.headers,noResolveJson:!0},r);return new Tye(l,this.shouldThrowOnError)}async info(t){var e=this;const r=e._getFinalPath(t);return e.handleOperation(async()=>vN(await Rm(e.fetch,`${e.url}/object/info/${r}`,{headers:e.headers})))}async exists(t){var e=this;const r=e._getFinalPath(t);try{return await Pye(e.fetch,`${e.url}/object/${r}`,{headers:e.headers}),{data:!0,error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ly(n)&&n instanceof fG){const a=n.originalError;if([400,404].includes(a==null?void 0:a.status))return{data:!1,error:n}}throw n}}getPublicUrl(t,e){const r=this._getFinalPath(t),n=[],a=e!=null&&e.download?`download=${e.download===!0?"":e.download}`:"";a!==""&&n.push(a);const i=typeof(e==null?void 0:e.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((e==null?void 0:e.transform)||{});o!==""&&n.push(o);let l=n.join("&");return l!==""&&(l=`?${l}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${r}${l}`)}}}async remove(t){var e=this;return e.handleOperation(async()=>await yC(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async list(t,e,r){var n=this;return n.handleOperation(async()=>{const a=wt(wt(wt({},Rye),e),{},{prefix:t||""});return await ni(n.fetch,`${n.url}/object/list/${n.bucketId}`,a,{headers:n.headers},r)})}async listV2(t,e){var r=this;return r.handleOperation(async()=>{const n=wt({},t);return await ni(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},e)})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const e=[];return t.width&&e.push(`width=${t.width}`),t.height&&e.push(`height=${t.height}`),t.resize&&e.push(`resize=${t.resize}`),t.format&&e.push(`format=${t.format}`),t.quality&&e.push(`quality=${t.quality}`),e.join("&")}};const Dye="2.97.0",X0={"X-Client-Info":`storage-js/${Dye}`};var Lye=class extends vf{constructor(t,e={},r,n){const a=new URL(t);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(a.hostname)&&!a.hostname.includes("storage.supabase.")&&(a.hostname=a.hostname.replace("supabase.","storage.supabase."));const i=a.href.replace(/\/$/,""),o=wt(wt({},X0),e);super(i,o,r,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const r=e.listBucketOptionsToQueryString(t);return await Rm(e.fetch,`${e.url}/bucket${r}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await Rm(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var r=this;return r.handleOperation(async()=>await ni(r.fetch,`${r.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:r.headers}))}async updateBucket(t,e){var r=this;return r.handleOperation(async()=>await wN(r.fetch,`${r.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await ni(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await yC(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},Bye=class extends vf{constructor(t,e={},r){const n=t.replace(/\/$/,""),a=wt(wt({},X0),e);super(n,a,r,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await ni(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>
1149{const r=new URLSearchParams;(t==null?void 0:t.limit)!==void 0&&r.set("limit",t.limit.toString()),(t==null?void 0:t.offset)!==void 0&&r.set("offset",t.offset.toString()),t!=null&&t.sortColumn&&r.set("sortColumn",t.sortColumn),t!=null&&t.sortOrder&&r.set("sortOrder",t.sortOrder),t!=null&&t.search&&r.set("search",t.search);const n=r.toString(),a=n?`${e.url}/bucket?${n}`:`${e.url}/bucket`;return await Rm(e.fetch,a,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await yC(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;if(!Sye(t))throw new Dy("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new Nye({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(a,i){const o=a[i];return typeof o!="function"?o:async(...l)=>{try{return{data:await o.apply(a,l),error:null}}catch(c){if(n)throw c;return{data:null,error:c}}}}})}},Hye=class extends vf{constructor(t,e={},r){const n=t.replace(/\/$/,""),a=wt(wt({},X0),{},{"Content-Type":"application/json"},e);super(n,a,r,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await Ja.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var r=this;return r.handleOperation(async()=>await Ja.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:r.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await Ja.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var r=this;return r.handleOperation(async()=>await Ja.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:r.headers})||{})}},Fye=class extends vf{constructor(t,e={},r){const n=t.replace(/\/$/,""),a=wt(wt({},X0),{},{"Content-Type":"application/json"},e);super(n,a,r,"vectors")}async putVectors(t){var e=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return e.handleOperation(async()=>await Ja.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await Ja.post(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}))}async listVectors(t){var e=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return e.handleOperation(async()=>await Ja.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await Ja.post(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}))}async deleteVectors(t){var e=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return e.handleOperation(async()=>await Ja.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},zye=class extends vf{constructor(t,e={},r){const n=t.replace(/\/$/,""),a=wt(wt({},X0),{},{"Content-Type":"application/json"},e);super(n,a,r,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await Ja.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await Ja.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await Ja.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Ja.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},Vye=class extends zye{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new Uye(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,r=this;return e().call(r,t)}async getBucket(t){var e=()=>super.getBucket,r=this;return e().call(r,t)}async listBuckets(t={}){var e=()=>super.listBuckets,r=this;return e().call(r,t)}async deleteBucket(t){var e=()=>super.deleteBucket,r=this;return e().call(r,t)}},Uye=class extends Hye{constructor(t,e,r,n){super(t,e,n),this.vectorBucketName=r}async createIndex(t){var e=()=>super.createIndex,r=this;return e().call(r,wt(wt({},t),{},{vectorBucketName:r.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,r=this;return e().call(r,wt(wt({},t),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,r=this;return e().call(r,r.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,r=this;return e().call(r,r.vectorBucketName,t)}index(t){return new qye(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},qye=class extends Fye{constructor(t,e,r,n,a){super(t,e,a),this.vectorBucketName=r,this.indexName=n}async putVectors(t){var e=()=>super.putVectors,r=this;return e().call(r,wt(wt({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(t){var e=()=>super.getVectors,r=this;return e().call(r,wt(wt({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,r=this;return e().call(r,wt(wt({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,r=this;return e().call(r,wt(wt({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,r=this;return e().call(r,wt(wt({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},Wye=class extends Lye{constructor(t,e={},r,n){super(t,e,r,n)}from(t){return new Iye(this.url,this.headers,t,this.fetch)}get vectors(){return new Vye(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new Bye(this.url+"/iceberg",this.headers,this.fetch)}};
1149const gG="2.97.0",Wd=30*1e3,NN=3,N3=NN*Wd,Gye="http://localhost:9999",Kye="supabase.auth.token",Yye={"X-Client-Info":`gotrue-js/${gG}`},jN="X-Supabase-Api-Version",bG={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Xye=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Jye=600*1e3;class Im extends Error{constructor(e,r,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function ct(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class Qye extends Im{constructor(e,r,n){super(e,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function Zye(t){return ct(t)&&t.name==="AuthApiError"}class Qc extends Im{constructor(e,r){super(e),this.name="AuthUnknownError",this.originalError=r}}class nl extends Im{constructor(e,r,n,a){super(e,n,a),this.name=r,this.status=n}}class Ua extends nl{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function j3(t){return ct(t)&&t.name==="AuthSessionMissingError"}class Cd extends nl{constructor(){super("Auth session or user missing","AuthInvalidToken
1149ResponseError",500,void 0)}}class Ug extends nl{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class qg extends nl{constructor(e,r=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function eve(t){return ct(t)&&t.name==="AuthImplicitGrantRedirectError"}class WM extends nl{constructor(e,r=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class tve extends nl{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class kN extends nl{constructor(e,r){super(e,"AuthRetryableFetchError",r,void 0)}}function k3(t){return ct(t)&&t.name==="AuthRetryableFetchError"}class GM extends nl{constructor(e,r,n){super(e,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class SN extends nl{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const vx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),KM=` 1150\r=`.split(""),rve=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<KM.length;e+=1)t[KM[e].charCodeAt(0)]=-2;for(let e=0;e<vx.length;e+=1)t[vx[e].charCodeAt(0)]=e;return t})();function YM(t,e,r){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(vx[n]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(vx[n]),e.queuedBits-=6}}function xG(t,e,r){const n=rve[t];if(n>-1)for(e.queue=e.queue<<6|n,e.queuedBits+=6;e.queuedBits>=8;)r(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function XM(t){const e=[],r=o=>{e.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},a={queue:0,queuedBits:0},i=o=>{sve(o,n,r)};for(let o=0;o<t.length;o+=1)xG(t.charCodeAt(o),a,i);return e.join("")}function nve(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function ave(t,e){for(let r=0;r<t.length;r+=1){let n=t.charCodeAt(r);if(n>55295&&n<=56319){const a=(n-55296)*1024&65535;n=(t.charCodeAt(r+1)-56320&65535|a)+65536,r+=1}nve(n,e)}}function sve(t,e,r){if(e.utf8seq===0){if(t<=127){r(t);return}for(let n=1;n<6;n+=1)if((t>>7-n&1)===0){e.utf8seq=n;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&r(e.codepoint)}}function dh(t){const e=[],r={queue:0,queuedBits:0},n=a=>{e.push(a)};for(let a=0;a<t.length;a+=1)xG(t.charCodeAt(a),r,n);return new Uint8Array(e)}function ive(t){const e=[];return ave(t,r=>e.push(r)),new Uint8Array(e)}function au(t){const e=[],r={queue:0,queuedBits:0},n=a=>{e.push(a)};return t.forEach(a=>YM(a,r,n)),YM(null,r,n),e.join("")}function ove(t){return Math.round(Date.now()/1e3)+t}function lve(){return Symbol("auth-callback")}const Tn=()=>typeof window<"u"&&typeof document<"u",Bc={tested:!1,writable:!1},yG=()=>{if(!Tn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Bc.tested)return Bc.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),Bc.tested=!0,Bc.writable=!0}catch{Bc.tested=!0,Bc.writable=!1}return Bc.writable};function cve(t){const e={},r=new URL(t);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
1150h((a,i)=>{e[i]=a})}catch{}return r.searchParams.forEach((n,a)=>{e[a]=n}),e}const vG=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),uve=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Gd=async(t,e,r)=>{await t.setItem(e,JSON.stringify(r))},Hc=async(t,e)=>{const r=await t.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Pn=async(t,e)=>{await t.removeItem(e)};class By{constructor(){this.promise=new By.promiseConstructor((e,r)=>{this.resolve=e,this.reject=r})}}By.promiseConstructor=Promise;function Wg(t){const e=t.split(".");if(e.length!==3)throw new SN("Invalid JWT structure");for(let n=0;n<e.length;n++)if(!Xye.test(e[n]))throw new SN("JWT not in base64url format");return{header:JSON.parse(XM(e[0])),payload:JSON.parse(XM(e[1])),signature:dh(e[2]),raw:{header:e[0],payload:e[1]}}}async function dve(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function hve(t,e){return new Promise((n,a)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await t(i);if(!e(i,null,o)){n(o);return}}catch(o){if(!e(i,o)){a(o);return}}})()})}function fve(t){return("0"+t.toString(16)).substr(-2)}function pve(){const e=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let a="";for(let i=0;i<56;i++)a+=r.charAt(Math.floor(Math.random()*n));return a}return crypto.getRandomValues(e),Array.from(e,fve).join("")}async function mve(t){const r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r),a=new Uint8Array(n);return Array.from(a).map(i=>String.fromCharCode(i)).join("")}async function gve(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const r=await mve(t);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function $d(t,e,r=!1){const n=pve();let a=n;r&&(a+="/PASSWORD_RECOVERY"),await Gd(t,`${e}-code-verifier`,a);const i=await gve(n);return[i,n===i?"plain":"s256"]}const bve=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function xve(t){const e=t.headers.get(jN);if(!e||!e.match(bve))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function yve(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function vve(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const wve=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function _d(t){if(!wve.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function S3(){const t={};return new Proxy(t,{get:(e,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Nve(t,e){return new Proxy(t,{get:(r,n,a)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const i=n.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,a)}return!e.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),e.value=!0),Reflect.get(r,n,a)}})}function JM(t){return JSON.parse(JSON.stringify(t))}const Gc=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),jve=[502,503,504];async function QM(t){var e;if(!uve(t))throw new kN(Gc(t),0);if(jve.includes(t.status))throw new kN(Gc(t),t.status);let r;try{r=await t.json()}catch(i){throw new Qc(Gc(i),i)}let n;const a=xve(t);if(a&&a.getTime()>=bG["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new GM(Gc(r),t.status,((e=r.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(n==="session_not_found")throw new Ua}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((i,o)=>
1150i&&typeof o=="string",!0))throw new GM(Gc(r),t.status,r.weak_password.reasons);throw new Qye(Gc(r),t.status||500,n)}const kve=(t,e,r,n)=>{const a={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),a.body=JSON.stringify(n),Object.assign(Object.assign({},a),r))};async function kt(t,e,r,n){var a;const i=Object.assign({},n==null?void 0:n.headers);i[jN]||(i[jN]=bG["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const o=(a=n==null?void 0:n.query)!==null&&a!==void 0?a:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await Sve(t,e,r+l,{headers:i,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(c):{data:Object.assign({},c),error:null}}async function Sve(t,e,r,n,a,i){const o=kve(e,n,a,i);let l;try{l=await t(r,Object.assign({},o))}catch(c){throw console.error(c),new kN(Gc(c),0)}if(l.ok||await QM(l),n!=null&&n.noResolveJson)return l;try{return await l.json()}catch(c){await QM(c)}}function ti(t){var e;let r=null;_ve(t)&&(r=Object.assign({},t),t.expires_at||(r.expires_at=ove(t.expires_in)));const n=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:r,user:n},error:null}}function ZM(t){const e=ti(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Fl(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function Cve(t){return{data:t,error:null}}function $ve(t){const{action_link:e,email_otp:r,hashed_token:n,redirect_to:a,verification_type:i}=t,o=yf(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:e,email_otp:r,hashed_token:n,redirect_to:a,verification_type:i},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function eT(t){return t}function _ve(t){return t.access_token&&t.refresh_token&&t.expires_in}const C3=["global","local","others"];class Ave{constructor({url:e="",headers:r={},fetch:n}){this.url=e,this.headers=r,this.fetch=vG(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(e,r=C3[0]){if(C3.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${C3.join(", ")}`);try{return await kt(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ct(n))return{data:null,error:n};throw n}}async inviteUserByEmail(e,r={}){try{return await kt(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Fl})}catch(n){if(ct(n))return{data:{user:null},error:n};throw n}}async generateLink(e){try{const{options:r}=e,n=yf(e,["options"]),a=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(a.new_email=n==null?void 0:n.newEmail,delete a.newEmail),await kt(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:a,headers:this.headers,xform:$ve,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(ct(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(e){try{return await kt(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Fl})}catch(r){if(ct(r))return{data:{user:null},error:r};throw r}}async listUsers(e){var r,n,a,i,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await kt(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(a=e==null?void 0:e.perPage)===null||a===void 0?void 0:a.toString())!==null&&i!==void 0?i:""},xform:eT});if(d.error)throw d.error;const h=await d.json(),m=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,g=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return g.length>0&&(g.forEach(b=>{const y=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(b.split(";")[1].split("=")[1]);u[`${v}Page`]=y}),u.total=parseInt(m)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(ct(u))return{data:{users:[]},error:u};throw u}}async getUserById(e){_d(e);try{return await kt(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Fl})}catch(r){if(ct(r))return{data:{user:null},error:r};throw r}}async updateUserById(e,r){_d(e);try{return await kt(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:r,headers:this.headers,xform:Fl})}catch(n){if(ct(n))return{data:{user:null},error:n};throw n}}async deleteUser(e,r=!1){_d(e);
1150try{return await kt(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:r},xform:Fl})}catch(n){if(ct(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){_d(e.userId);try{const{data:r,error:n}=await kt(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:a=>({data:{factors:a},error:null})});return{data:r,error:n}}catch(r){if(ct(r))return{data:null,error:r};throw r}}async _deleteFactor(e){_d(e.userId),_d(e.id);try{return{data:await kt(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(r){if(ct(r))return{data:null,error:r};throw r}}async _listOAuthClients(e){var r,n,a,i,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await kt(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(a=e==null?void 0:e.perPage)===null||a===void 0?void 0:a.toString())!==null&&i!==void 0?i:""},xform:eT});if(d.error)throw d.error;const h=await d.json(),m=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,g=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return g.length>0&&(g.forEach(b=>{const y=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(b.split(";")[1].split("=")[1]);u[`${v}Page`]=y}),u.total=parseInt(m)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(ct(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(e){try{return await kt(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ct(r))return{data:null,error:r};throw r}}async _getOAuthClient(e){try{return await kt(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ct(r))return{data:null,error:r};throw r}}async _updateOAuthClient(e,r){try{return await kt(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ct(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(e){try{return await kt(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ct(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(e){try{return await kt(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ct(r))return{data:null,error:r};throw r}}}function tT(t={}){return{getItem:e=>t[e]||null,setItem:(e,r)=>{t[e]=r},removeItem:e=>{delete t[e]}}}const Ad={debug:!!(globalThis&&yG()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class wG extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class rT extends wG{}async function Eve(t,e,r){Ad.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const n=new globalThis.AbortController;e>0&&setTimeout(()=>{n.abort(),Ad.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve();try{return await globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async a=>{if(a){Ad.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,a.name);try{return await r()}finally{Ad.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,a.name)}}else{if(e===0)throw Ad.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new rT(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Ad.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}})}catch(a){throw(a==null?void 0:a.name)==="AbortError"?new rT(`Acquiring an exclusive Navigator LockManager lock "${t}" timed out waiting ${e}ms`):a}}function Ove(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function NG(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}
1150" is invalid.`);return t.toLowerCase()}function Pve(t){return parseInt(t,16)}function Mve(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,n=>n.toString(16).padStart(2,"0")).join("")}function Tve(t){var e;const{chainId:r,domain:n,expirationTime:a,issuedAt:i=new Date,nonce:o,notBefore:l,requestId:c,resources:u,scheme:d,uri:h,version:m}=t;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(m!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${m}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(` 1151`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const g=NG(t.address),b=d?`${d}://${n}`:n,y=t.statement?`${t.statement} 1152`:"",v=`${b} wants you to sign in with your Ethereum account: 1153${g} 1154 1155${y}`;let N=`URI: ${h} 1156Version: ${m} 1157Chain ID: ${r}${o?` 1158Nonce: ${o}`:""} 1159Issued At: ${i.toISOString()}`;if(a&&(N+=` 1160Expiration Time: ${a.toISOString()}`),l&&(N+=` 1161Not Before: ${l.toISOString()}`),c&&(N+=` 1162Request ID: ${c}`),u){let S=` 1163Resources:`;for(const j of u){if(!j||typeof j!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${j}`);S+=` 1164- ${j}`}N+=S}return`${v} 1165${N}`}class Zr extends Error{constructor({message:e,code:r,cause:n,name:a}){var i;super(e,{cause:n}),this.__isWebAuthnError=!0,this.name=(i=a??(n instanceof Error?n.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=r}}class wx extends Zr{constructor(e,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:e}),this.name="WebAuthnUnknownError",this.originalError=r}}function Rve({error:t,options:e}){var r,n,a;const{publicKey:i}=e;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Zr({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((r=i.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Zr({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((n=i.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Zr({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((a=i.authenticatorSelection)===null||a===void 0?void 0:a.userVerification)==="required")return new Zr({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new Zr({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new Zr({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return i.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new Zr({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new Zr({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const o=window.location.hostname;if(jG(o)){if(i.rp.id!==o)return new Zr({message:`The RP ID "${i.rp.id}
1165" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Zr({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Zr({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new Zr({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Zr({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function Ive({error:t,options:e}){const{publicKey:r}=e;if(!r)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Zr({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Zr({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const n=window.location.hostname;if(jG(n)){if(r.rpId!==n)return new Zr({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Zr({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Zr({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Zr({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class Dve{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const Lve=new Dve;function Bve(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:r,excludeCredentials:n}=t,a=yf(t,["challenge","user","excludeCredentials"]),i=dh(e).buffer,o=Object.assign(Object.assign({},r),{id:dh(r.id).buffer}),l=Object.assign(Object.assign({},a),{challenge:i,user:o});if(n&&n.length>0){l.excludeCredentials=new Array(n.length);for(let c=0;c<n.length;c++){const u=n[c];l.excludeCredentials[c]=Object.assign(Object.assign({},u),{id:dh(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return l}function Hve(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:r}=t,n=yf(t,["challenge","allowCredentials"]),a=dh(e).buffer,i=Object.assign(Object.assign({},n),{challenge:a});if(r&&r.length>0){i.allowCredentials=new Array(r.length);for(let o=0;o<r.length;o++){const l=r[o];i.allowCredentials[o]=Object.assign(Object.assign({},l),{id:dh(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return i}function Fve(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t;return{id:t.id,rawId:t.id,response:{attestationObject:au(new Uint8Array(t.response.attestationObject)),clientDataJSON:au(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function zve(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t,n=t.getClientExtensionResults(),a=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:au(new Uint8Array(a.authenticatorData)),clientDataJSON:au(ne
1165w Uint8Array(a.clientDataJSON)),signature:au(new Uint8Array(a.signature)),userHandle:a.userHandle?au(new Uint8Array(a.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function jG(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function nT(){var t,e;return!!(Tn()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.get)=="function")}async function Vve(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new wx("Browser returned unexpected credential type",e)}:{data:null,error:new wx("Empty credential response",e)}}catch(e){return{data:null,error:Rve({error:e,options:t})}}}async function Uve(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new wx("Browser returned unexpected credential type",e)}:{data:null,error:new wx("Empty credential response",e)}}catch(e){return{data:null,error:Ive({error:e,options:t})}}}const qve={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},Wve={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Nx(...t){const e=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),r=a=>a instanceof ArrayBuffer||ArrayBuffer.isView(a),n={};for(const a of t)if(a)for(const i in a){const o=a[i];if(o!==void 0)if(Array.isArray(o))n[i]=o;else if(r(o))n[i]=o;else if(e(o)){const l=n[i];e(l)?n[i]=Nx(l,o):n[i]=Nx(o)}else n[i]=o}return n}function Gve(t,e){return Nx(qve,t,e||{})}function Kve(t,e){return Nx(Wve,t,e||{})}class Yve{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:r,friendlyName:n,signal:a},i){var o;try{const{data:l,error:c}=await this.client.mfa.challenge({factorId:e,webauthn:r});if(!l)return{data:null,error:c};const u=a??Lve.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:d}=l.webauthn.credential_options.publicKey;if(!d.name){const h=n;if(h)d.name=`${d.id}:${h}`;else{const g=(await this.client.getUser()).data.user,b=((o=g==null?void 0:g.user_metadata)===null||o===void 0?void 0:o.name)||(g==null?void 0:g.email)||(g==null?void 0:g.id)||"User";d.name=`${d.id}:${b}`}}d.displayName||(d.displayName=d.name)}switch(l.webauthn.type){case"create":{const d=Gve(l.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:h,error:m}=await Vve({publicKey:d,signal:u});return h?{data:{factorId:e,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:m}}case"request":{const d=Kve(l.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:h,error:m}=await Uve(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:d,signal:u}));return h?{data:{factorId:e,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:m}}}}catch(l){return ct(l)?{data:null,error:l}:{data:null,error:new Qc("Unexpected error in challenge",l)}}}async _verify({challengeId:e,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:e,webauthn:n})}async _authenticate({factorId:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:a}={}},i){if(!r)return{data:null,error:new Im("rpId is required for WebAuthn authentication")};try{if(!nT())return{data:null,error:new Qc("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this.challenge({factorId:e,webauthn:{rpId:r,rpOrigins:n},signal:a},{request:i});if(!o)return{data:null,error:l};const{webauthn:c}=o;return this._verify({factorId:e,challengeId:o.challengeId,webauthn:{type:c.type,rpId:r,rpOrigins:n,credential_response:c.credential_response}})}catch(o){return ct(o)?{data:null,error:o}:{data:null,error:new Qc("Unexpected error in authenticate",o)}}}async _register({friendlyName:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:a}={}},i){if(!r)return{data:null,error:new Im("rpId is required for WebAuthn registration")};try{if(!nT())return{data:null,error:new Qc("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this._enroll({friendlyName:e});if(!o)return await this.client.mfa.listFactors().then(d=>{var h;
1165return(h=d.data)===null||h===void 0?void 0:h.all.find(m=>m.factor_type==="webauthn"&&m.friendly_name===e&&m.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:l};const{data:c,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:a},{create:i});return c?this._verify({factorId:o.id,challengeId:c.challengeId,webauthn:{rpId:r,rpOrigins:n,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(o){return ct(o)?{data:null,error:o}:{data:null,error:new Qc("Unexpected error in register",o)}}}}Ove();const Xve={url:Gye,storageKey:Kye,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Yye,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4,skipAutoInitialize:!1};async function aT(t,e,r){return await r()}const Ed={};class Dm{get jwks(){var e,r;return(r=(e=Ed[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(e){Ed[this.storageKey]=Object.assign(Object.assign({},Ed[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,r;return(r=(e=Ed[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){Ed[this.storageKey]=Object.assign(Object.assign({},Ed[this.storageKey]),{cachedAt:e})}constructor(e){var r,n,a;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},Xve),e);if(this.storageKey=i.storageKey,this.instanceID=(r=Dm.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,Dm.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&Tn()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new Ave({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=vG(i.fetch),this.lock=i.lock||aT,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&Tn()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=Eve:this.lock=aT,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new Yve(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:yG()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=tT(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=tT(this.memoryStorage)),Tn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(a=this.broadcastChannel)===null||a===void 0||a.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}i.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${gG}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{let r={},n="none";if(Tn()&&(r=cve(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),Tn()&&this.detectSessionInUrl&&n!=="none"){const{data:a,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),eve(i)){const c=(e=i.details)===null||e===void 0?void 0:e.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:l}=a;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return ct(r)?this._returnResult({error:r}):this._returnResult({error:new Qc("Unexpected error during initialization",r)}
1165)}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var r,n,a;try{const i=await kt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=e==null?void 0:e.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(a=e==null?void 0:e.options)===null||a===void 0?void 0:a.captchaToken}},xform:ti}),{data:o,error:l}=i;if(l||!o)return this._returnResult({data:{user:null,session:null},error:l});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(ct(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(e){var r,n,a;try{let i;if("email"in e){const{email:d,password:h,options:m}=e;let g=null,b=null;this.flowType==="pkce"&&([g,b]=await $d(this.storage,this.storageKey)),i=await kt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:m==null?void 0:m.emailRedirectTo,body:{email:d,password:h,data:(r=m==null?void 0:m.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken},code_challenge:g,code_challenge_method:b},xform:ti})}else if("phone"in e){const{phone:d,password:h,options:m}=e;i=await kt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(n=m==null?void 0:m.data)!==null&&n!==void 0?n:{},channel:(a=m==null?void 0:m.channel)!==null&&a!==void 0?a:"sms",gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken}},xform:ti})}else throw new Ug("You must provide either an email or phone number and a password");const{data:o,error:l}=i;if(l||!o)return await Pn(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(await Pn(this.storage,`${this.storageKey}-code-verifier`),ct(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(e){try{let r;if("email"in e){const{email:i,password:o,options:l}=e;r=await kt(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:ZM})}else if("phone"in e){const{phone:i,password:o,options:l}=e;r=await kt(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:ZM})}else throw new Ug("You must provide either an email or phone number and a password");const{data:n,error:a}=r;if(a)return this._returnResult({data:{user:null,session:null},error:a});if(!n||!n.session||!n.user){const i=new Cd;return this._returnResult({data:{user:null,session:null},error:i})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:a})}catch(r){if(ct(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(e){var r,n,a,i;return await this._handleProviderSignIn(e.provider,{redirectTo:(r=e.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=e.options)===null||n===void 0?void 0:n.scopes,queryParams:(a=e.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:(i=e.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:r}=e;switch(r){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(e){var r,n,a,i,o,l,c,u,d,h,m;let g,b;if("message"in e)g=e.message,b=e.signature;else{const{chain:y,wallet:v,statement:N,options:S}=e;let j;if(Tn())if(typeof v=="object")j=v;else{const P=window;if("ethereum"in P&&typeof P.ethereum=="object"&&"request"in P.ethereum&&typeof P.ethereum.request=="function")j=P.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(S!=null&&S.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");j=v}const $=new URL((r=S==null?void 0:S.url)!==null&&r!==void 0?r:window.location.href),C=await j.request({method:"eth_requestAccounts"}).then(P=>P).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!C||C.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const _=NG(C[0]);let O=(n=S==null?void 0:S.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!O){const P=await j.request({method:"eth_chainId"});O=Pve(P)}const E={domain:$.host,address:_,statement:N,uri:$.href,version:"1",chainId:O,nonce:(a=S==null?void 0:S.signInWithEthereum)===null||a===void 0?void 0:a.nonce,issuedAt:(o=(i=S==null?void 0:S.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(l=S==null?void 0:S.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=S==null?void 0:S.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=S==null?void 0:S.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=S==null?void 0:S.signInWithEthereum)===null||d===void 0?void 0:d.resources};g=Tve(E),b=await j.request({method:"personal_sign",params:[Mve(g),_]})}try{const{data:y,error:v}=await kt(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:g,signature:b}
1165,!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(m=e.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:ti});if(v)throw v;if(!y||!y.session||!y.user){const N=new Cd;return this._returnResult({data:{user:null,session:null},error:N})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:v})}catch(y){if(ct(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async signInWithSolana(e){var r,n,a,i,o,l,c,u,d,h,m,g;let b,y;if("message"in e)b=e.message,y=e.signature;else{const{chain:v,wallet:N,statement:S,options:j}=e;let $;if(Tn())if(typeof N=="object")$=N;else{const _=window;if("solana"in _&&typeof _.solana=="object"&&("signIn"in _.solana&&typeof _.solana.signIn=="function"||"signMessage"in _.solana&&typeof _.solana.signMessage=="function"))$=_.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof N!="object"||!(j!=null&&j.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");$=N}const C=new URL((r=j==null?void 0:j.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in $&&$.signIn){const _=await $.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},j==null?void 0:j.signInWithSolana),{version:"1",domain:C.host,uri:C.href}),S?{statement:S}:null));let O;if(Array.isArray(_)&&_[0]&&typeof _[0]=="object")O=_[0];else if(_&&typeof _=="object"&&"signedMessage"in _&&"signature"in _)O=_;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in O&&"signature"in O&&(typeof O.signedMessage=="string"||O.signedMessage instanceof Uint8Array)&&O.signature instanceof Uint8Array)b=typeof O.signedMessage=="string"?O.signedMessage:new TextDecoder().decode(O.signedMessage),y=O.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in $)||typeof $.signMessage!="function"||!("publicKey"in $)||typeof $!="object"||!$.publicKey||!("toBase58"in $.publicKey)||typeof $.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${C.host} wants you to sign in with your Solana account:`,$.publicKey.toBase58(),...S?["",S,""]:[""],"Version: 1",`URI: ${C.href}`,`Issued At: ${(a=(n=j==null?void 0:j.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&a!==void 0?a:new Date().toISOString()}`,...!((i=j==null?void 0:j.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${j.signInWithSolana.notBefore}`]:[],...!((o=j==null?void 0:j.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${j.signInWithSolana.expirationTime}`]:[],...!((l=j==null?void 0:j.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${j.signInWithSolana.chainId}`]:[],...!((c=j==null?void 0:j.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${j.signInWithSolana.nonce}`]:[],...!((u=j==null?void 0:j.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${j.signInWithSolana.requestId}`]:[],...!((h=(d=j==null?void 0:j.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...j.signInWithSolana.resources.map(O=>`- ${O}`)]:[]].join(` 1166`);const _=await $.signMessage(new TextEncoder().encode(b),"utf8");if(!_||!(_ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");y=_}}try{const{data:v,error:N}=await kt(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:au(y)},!((m=e.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(g=e.options)===null||g===void 0?void 0:g.captchaToken}}:null),xform:ti});if(N)throw N;if(!v||!v.session||!v.user){const S=new Cd;return this._returnResult({data:{user:null,session:null},error:S})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:N})}catch(v){if(ct(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async _exchangeCodeForSession(e){const r=await Hc(this.storage,`${this.storageKey}-code-verifier`),[n,a]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new tve;const{data:i,error:o}=await kt(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:ti});if(await Pn(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const l=new Cd;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:a??null}),error:o})}catch(i){if(await Pn(this.storage,`${this.storageKey}-code-verifier`),ct(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(e){try{const{options:r,provider:n,token:a,access_token:i,nonce:o}=e,l=await kt(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:a,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:ti}),{data:c,error:u}=l;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!c||!c.session||!c.user){const d=new Cd;return this._returnResult({data:{user:null,session:null},error:d})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:u})}catch(r){if(ct(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(e){var r,n,a,i,o;try{if("email"in e){const{email:l,options:c}=e;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await $d(this.storage,this.storageKey));const{error:h}=await kt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(r=c==null?void 0:c.data)!==null&&r!==void 0?r:{},create_user:(n=c==null?void 0:c.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in e){const{phone:l,options:c}=e,{data:u,error:d}=await kt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(a=c==null?void 0:c.data)!==null&&a!==void 0?a:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new Ug("You must provide either an email or phone number.")}catch(l){if(await Pn(this.storage,`${this.storageKey}-code-verifier`),ct(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(e){var r,n;try{let a,i;"options"in e&&(a=(r=e.options)===null||r===void 0?void 0:r.redirectTo,i=(n=e.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:l}=await kt(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:a,xform:ti});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,u=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(a){if(ct(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithSSO(e){var r,n,a,i,o;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await $d(this.storage,this.storageKey));const u=await kt(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(n=(r=e.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((a=e==null?void 0:e.options)===null||a===void 0)&&a.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:Cve});return!((i=u.data)===null||i===void 0)&&i.url&&Tn()&&!(!((o=e.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(l){if(await Pn(this.storage,`${this.storageKey}-code-verifier`),ct(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;if(n)throw n;if(!r)throw new Ua;const{error:a}=await kt(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:a})})}catch(e){if(ct(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const r=`${this.url}/resend`;if("email"in e){const{email:n,type:a,options:i}=e,{error:o}=await kt(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:a,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in e){const{phone:n,type:a,options:i}=e,{data:o,error:l}=await kt(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:a,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l})}throw new Ug("You must provide either an email or phone number and a type")}catch(r){if(ct(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async r=>r))}async _acquireLock(e,r){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),a=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await a}catch{}})()),a}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await e(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const r=await Hc(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?e=r:(this._debug("#getSession()","session from storage is not val
1166id"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=e.expires_at?e.expires_at*1e3-Date.now()<N3:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",e.expires_at),!n){if(this.userStorage){const o=await Hc(this.userStorage,this.storageKey+"-user");o!=null&&o.user?e.user=o.user:e.user=S3()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};e.user=Nve(e.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:a,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:a},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(e){try{return e?await kt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Fl}):await this._useSession(async r=>{var n,a,i;const{data:o,error:l}=r;if(l)throw l;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Ua}:await kt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(a=o.session)===null||a===void 0?void 0:a.access_token)!==null&&i!==void 0?i:void 0,xform:Fl})})}catch(r){if(ct(r))return j3(r)&&(await this._removeSession(),await Pn(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(e,r={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,r))}async _updateUser(e,r={}){try{return await this._useSession(async n=>{const{data:a,error:i}=n;if(i)throw i;if(!a.session)throw new Ua;const o=a.session;let l=null,c=null;this.flowType==="pkce"&&e.email!=null&&([l,c]=await $d(this.storage,this.storageKey));const{data:u,error:d}=await kt(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:Fl});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(n){if(await Pn(this.storage,`${this.storageKey}-code-verifier`),ct(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Ua;const r=Date.now()/1e3;let n=r,a=!0,i=null;const{payload:o}=Wg(e.access_token);if(o.exp&&(n=o.exp,a=n<=r),a){const{data:l,error:c}=await this._callRefreshToken(e.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(e.access_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});i={access_token:e.access_token,refresh_token:e.refresh_token,user:l.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(r){if(ct(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async r=>{var n;if(!e){const{data:o,error:l}=r;if(l)throw l;e=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(e!=null&&e.refresh_token))throw new Ua;const{data:a,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):a?this._returnResult({data:{user:a.user,session:a},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(ct(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(e,r){try{if(!Tn())throw new qg("No browser detected.");
1166if(e.error||e.error_description||e.error_code)throw new qg(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new WM("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new qg("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new WM("No code detected.");const{data:S,error:j}=await this._exchangeCodeForSession(e.code);if(j)throw j;const $=new URL(window.location.href);return $.searchParams.delete("code"),window.history.replaceState(window.history.state,"",$.toString()),{data:{session:S.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:a,access_token:i,refresh_token:o,expires_in:l,expires_at:c,token_type:u}=e;if(!i||!l||!o||!u)throw new qg("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(l);let m=d+h;c&&(m=parseInt(c));const g=m-d;g*1e3<=Wd&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${g}s, should have been closer to ${h}s`);const b=m-h;d-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,m,d):d-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,m,d);const{data:y,error:v}=await this._getUser(i);if(v)throw v;const N={provider_token:n,provider_refresh_token:a,access_token:i,expires_in:h,expires_at:m,refresh_token:o,token_type:u,user:y.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:N,redirectType:e.type},error:null})}catch(n){if(ct(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error_description)}async _isPKCECallback(e){const r=await Hc(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&r)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:a,error:i}=r;if(i&&!j3(i))return this._returnResult({error:i});const o=(n=a.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:l}=await this.admin.signOut(o,e);if(l&&!(Zye(l)&&(l.status===404||l.status===401||l.status===403)||j3(l)))return this._returnResult({error:l})}return e!=="others"&&(await this._removeSession(),await Pn(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const r=lve(),n={id:r,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async r=>{var n,a;try{const{data:{session:i},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(i){await((a=this.stateChangeEmitters.get(e))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",i),console.error(i)}})}async resetPasswordForEmail(e,r={}){let n=null,a=null;this.flowType==="pkce"&&([n,a]=await $d(this.storage,this.storageKey,!0));try{return await kt(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:a,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(await Pn(this.storage,`${this.storageKey}-code-verifier`),ct(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var e;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(e=r.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(r){if(ct(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var r;try{const{data:n,error:a}=await this._useSession(async i=>{var o,l,c,u,d;const{data:h,error:m}=i;if(m)throw m;const g=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=e.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=e.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await kt(this.fetch,"GET",g,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(a)throw a;return Tn()&&!(!((r=e.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:e.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(ct(n))return this._returnResult({data:{provider:e.provider,url:null},error:n});throw n}}async linkIdentityIdToken(e){return await this._useSession(async r=>{var n;try{const{error:a,data:{session:i}}=r;if(a)throw a;const{options:o,provider:l,token:c,access_token:u,nonce:d}=e,h=await kt(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=i==null?void 0:i.access_token)!==null&&n!==void 0?n:void 0,body:{provider:l,id_token:c,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:ti}),{data:m,error:g}=h;return g?this._returnResult({data:{user:null,session:null},error:g}):!m||!m.session||!m.user?this._returnResult({data:{user:null,session:null},error:new Cd}):(m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("USER_UPDATED",m.session)),this._returnResult({data:m,error:g}))}catch(a){if(await Pn(this.storage,`${this.storageKey}-code-verifier`),ct(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}})}async unlinkIdentity(e){try{return await this._useSession(async r=>{var n,a;const{data:i,error:o}=r;if(o)throw o;
1166return await kt(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(a=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&a!==void 0?a:void 0})})}catch(r){if(ct(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(e){const r=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await hve(async a=>(a>0&&await dve(200*Math.pow(2,a-1)),this._debug(r,"refreshing attempt",a),await kt(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:ti})),(a,i)=>{const o=200*Math.pow(2,a);return i&&k3(i)&&Date.now()+o-n<Wd})}catch(n){if(this._debug(r,"error",n),ct(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",r,"url",n),Tn()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const a=await Hc(this.storage,this.storageKey);if(a&&this.userStorage){let o=await Hc(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:a.user},await Gd(this.userStorage,this.storageKey+"-user",o)),a.user=(e=o==null?void 0:o.user)!==null&&e!==void 0?e:S3()}else if(a&&!a.user&&!a.user){const o=await Hc(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(a.user=o.user,await Pn(this.storage,this.storageKey+"-user"),await Gd(this.storage,this.storageKey,a)):a.user=S3()}if(this._debug(n,"session from storage",a),!this._isValidSession(a)){this._debug(n,"session is not valid"),a!==null&&await this._removeSession();return}const i=((r=a.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<N3;if(this._debug(n,`session has${i?"":" not"} expired with margin of ${N3}s`),i){if(this.autoRefreshToken&&a.refresh_token){const{error:o}=await this._callRefreshToken(a.refresh_token);o&&(console.error(o),k3(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(a.user&&a.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(a.access_token);!l&&(o!=null&&o.user)?(a.user=o.user,await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",a)}catch(a){this._debug(n,"error",a),console.error(a);return}finally{this._debug(n,"end")}}async _callRefreshToken(e){var r,n;if(!e)throw new Ua;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const a=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(a,"begin");try{this.refreshingDeferred=new By;const{data:i,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!i.session)throw new Ua;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const l={data:i.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(i){if(this._debug(a,"error",i),ct(i)){const o={data:null,error:i};return k3(i)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(a,"end")}}async _notifyAllSubscribers(e,r,n=!0){const a=`#_notifyAllSubscribers(${e})`;this._debug(a,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:r});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(e,r)}catch(c){i.push(c)}});if(await Promise.all(o),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(a,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await Pn(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},e),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Gd(this.userStorage,this.storageKey+"-user",{user:r.user});const a=Object.assign({},r);delete a.user;const i=JM(a);await Gd(this.storage,this.storageKey,i)}else{const a=JM(r);await Gd(this.storage,this.storageKey,a)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Pn(this.storage,this.storageKey),await Pn(this.storage,this.storageKey+"-code-verifier"),await Pn(this.storage,this.storageKey+"-user"),this.userStorage&&await Pn(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Tn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
1166catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Wd);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const a=Math.floor((n.expires_at*1e3-e)/Wd);this._debug("#_autoRefreshTokenTick()",`access token expires in ${a} ticks, a tick lasts ${Wd}ms, refresh threshold is ${NN} ticks`),a<=NN&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof wG)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Tn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const r=`#_onVisibilityChanged(${e})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,r,n){const a=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&a.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&a.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,o]=await $d(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});a.push(l.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);a.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&a.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${a.join("&")}`}async _unenroll(e){try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;return i?this._returnResult({data:null,error:i}):await kt(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(ct(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(e){try{return await this._useSession(async r=>{var n,a;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const l=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:c,error:u}=await kt(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return u?this._returnResult({data:null,error:u}):(e.factorType==="totp"&&c.type==="totp"&&(!((a=c==null?void 0:c.totp)===null||a===void 0)&&a.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(r){if(ct(r))return this._returnResult({data:null,error:r});throw r}}async _verify(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?Fve(e.webauthn.credential_response):zve(e.webauthn.credential_response)})}:{code:e.code}),{data:l,error:c}=await kt(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:o,headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:c}))})}catch(r){if(ct(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=await kt(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});if(o.error)return o;const{data:l}=o;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:Bve(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:Hve(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(ct(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(e){const{data:r,error:n}=await this._challenge({factorId:e.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:e.factorId,challengeId:r.id,code:e.code})}async _listFactors(){var e;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const a={all:[],phone:[],totp:[],webauthn:[]};for(const i of(e=r==null?void 0:r.factors)!==null&&e!==void 0?e:[])a.all.push(i),i.status==="verified"&&a[i.factor_type].push(i);return{data:a,error:null}}async _getAuthenticatorAssuranceLevel(e){var r,n,a,i;if(e)try{const{payload:g}=Wg(e);let b=null;g.aal&&(b=g.aal);let y=b;const{data:{user:v},error:N}=await this.getUser(e);if(N)return this._returnResult({data:null,error:N});((n=(r=v==null?void 0:v.factors)===null||r===void 0?void 0:r.filter($=>$.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(y="aal2");const j=g.amr||[];return{data:{currentLevel:b,nextLevel:y,currentAuthenticationMethods:j},error:null}}catch(g){if(ct(g))return this._returnResult({data:null,error:g});throw g}const{data:{session:o},error:l}
1166=await this.getSession();if(l)return this._returnResult({data:null,error:l});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:c}=Wg(o.access_token);let u=null;c.aal&&(u=c.aal);let d=u;((i=(a=o.user.factors)===null||a===void 0?void 0:a.filter(g=>g.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(d="aal2");const m=c.amr||[];return{data:{currentLevel:u,nextLevel:d,currentAuthenticationMethods:m},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async r=>{const{data:{session:n},error:a}=r;return a?this._returnResult({data:null,error:a}):n?await kt(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Ua})})}catch(r){if(ct(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(e,r){try{return await this._useSession(async n=>{const{data:{session:a},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!a)return this._returnResult({data:null,error:new Ua});const o=await kt(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:a.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&Tn()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(ct(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(e,r){try{return await this._useSession(async n=>{const{data:{session:a},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!a)return this._returnResult({data:null,error:new Ua});const o=await kt(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:a.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&Tn()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(ct(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;return n?this._returnResult({data:null,error:n}):r?await kt(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new Ua})})}catch(e){if(ct(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async r=>{const{data:{session:n},error:a}=r;return a?this._returnResult({data:null,error:a}):n?(await kt(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Ua})})}catch(r){if(ct(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(e,r={keys:[]}){let n=r.keys.find(l=>l.kid===e);if(n)return n;const a=Date.now();if(n=this.jwks.keys.find(l=>l.kid===e),n&&this.jwks_cached_at+Jye>a)return n;const{data:i,error:o}=await kt(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=a,n=i.keys.find(l=>l.kid===e),!n)?null:n}async getClaims(e,r={}){try{let n=e;if(!n){const{data:g,error:b}
1166=await this.getSession();if(b||!g.session)return this._returnResult({data:null,error:b});n=g.session.access_token}const{header:a,payload:i,signature:o,raw:{header:l,payload:c}}=Wg(n);r!=null&&r.allowExpired||yve(i.exp);const u=!a.alg||a.alg.startsWith("HS")||!a.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(a.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!u){const{error:g}=await this.getUser(n);if(g)throw g;return{data:{claims:i,header:a,signature:o},error:null}}const d=vve(a.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,o,ive(`${l}.${c}`)))throw new SN("Invalid JWT signature");return{data:{claims:i,header:a,signature:o},error:null}}catch(n){if(ct(n))return this._returnResult({data:null,error:n});throw n}}}Dm.nextInstanceID={};const Jve=Dm,Qve="2.97.0";let zp="";typeof Deno<"u"?zp="deno":typeof document<"u"?zp="web":typeof navigator<"u"&&navigator.product==="ReactNative"?zp="react-native":zp="node";const Zve={"X-Client-Info":`supabase-js-${zp}/${Qve}`},e5e={headers:Zve},t5e={schema:"public"},r5e={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},n5e={};function Lm(t){"@babel/helpers - typeof";return Lm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lm(t)}function a5e(t,e){if(Lm(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Lm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function s5e(t){var e=a5e(t,"string");return Lm(e)=="symbol"?e:e+""}function i5e(t,e,r){return(e=s5e(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Lr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?sT(Object(r),!0).forEach(function(n){i5e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sT(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}const o5e=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),l5e=()=>Headers,c5e=(t,e,r)=>{const n=o5e(r),a=l5e();return async(i,o)=>{var l;const c=(l=await e())!==null&&l!==void 0?l:t;let u=new a(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",t),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),n(i,Lr(Lr({},o),{},{headers:u}))}};function u5e(t){return t.endsWith("/")?t:t+"/"}function d5e(t,e){var r,n;const{db:a,auth:i,realtime:o,global:l}=t,{db:c,auth:u,realtime:d,global:h}=e,m={db:Lr(Lr({},c),a),auth:Lr(Lr({},u),i),realtime:Lr(Lr({},d),o),storage:{},global:Lr(Lr(Lr({},h),l),{},{headers:Lr(Lr({},(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{}),(n=l==null?void 0:l.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return t.accessToken?m.accessToken=t.accessToken:delete m.accessToken,m}function h5e(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(u5e(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var f5e=class extends Jve{constructor(t){super(t)}},p5e=class{constructor(t,e,r){var n,a;this.supabaseUrl=t,this.supabaseKey=e;const i=h5e(t);if(!e)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,l={db:t5e,realtime:n5e,auth:Lr(Lr({},r5e),{},{storageKey:o}),global:e5e},c=d5e(r??{},l);if(this.storageKey=(n=c.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(a=c.global.headers)!==null&&a!==void 0?a:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=c.auth)!==null&&u!==void 0?u:{},this.headers,c.global.fetch)}this.fetch=c5e(e,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Lr({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new Z2e(new URL("rest/v1",i).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch,timeout:c.db.timeout,urlLengthLimit:c.db.urlLengthLimit}),this.storage=new Wye(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new q2e(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,r)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,r;if(t.accessToken)return await t.accessToken();const{data:n}=await t.auth.getSession();return(e=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:r,storage:n,userStorage:a,storageKey:i,flowType:o,lock:l,debug:c,throwOnError:u},d,h){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new f5e({url:this.authUrl.href,headers:Lr(Lr({},m),d),storageKey:i,autoRefreshToken:t,persistSession:e,detectSessionInUrl:r,storage:n,userStorage:a,flowType:o,lock:l,debug:c,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(g=>g.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new gye(this.realtimeUrl.href,Lr(Lr({},t),{},{params:Lr(Lr({},{apikey:this.supabaseKey}),t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e==null?void 0:e.access_token)})}_handleTokenChanged(t,e,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const m5e=(t,e,r)=>new p5e(t,e,r);function g5e(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const r=e.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}g5e()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
1166ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function b5e(){if(typeof window>"u")return{type:null,tokenHash:null};const t=new URLSearchParams(window.location.hash.replace(/^#/,"")),e=new URLSearchParams(window.location.search);return{type:t.get("type")??e.get("type"),tokenHash:e.get("token_hash")??t.get("token_hash")}}let kG=b5e();function x5e(){return kG}function iT(){kG={type:null,tokenHash:null}}const y5e=`https://${Vb}.supabase.co`,Ht=m5e(y5e,Ub);var $3,oT;function Ba(){if(oT)return $3;oT=1;var t=Array.isArray;return $3=t,$3}var _3,lT;function SG(){if(lT)return _3;lT=1;var t=typeof Sg=="object"&&Sg&&Sg.Object===Object&&Sg;return _3=t,_3}var A3,cT;function ro(){if(cT)return A3;cT=1;var t=SG(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return A3=r,A3}var E3,uT;function J0(){if(uT)return E3;uT=1;var t=ro(),e=t.Symbol;return E3=e,E3}var O3,dT;function v5e(){if(dT)return O3;dT=1;var t=J0(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,a=t?t.toStringTag:void 0;function i(o){var l=r.call(o,a),c=o[a];try{o[a]=void 0;var u=!0}catch{}var d=n.call(o);return u&&(l?o[a]=c:delete o[a]),d}return O3=i,O3}var P3,hT;function w5e(){if(hT)return P3;hT=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return P3=r,P3}var M3,fT;function al(){if(fT)return M3;fT=1;var t=J0(),e=v5e(),r=w5e(),n="[object Null]",a="[object Undefined]",i=t?t.toStringTag:void 0;function o(l){return l==null?l===void 0?a:n:i&&i in Object(l)?e(l):r(l)}return M3=o,M3}var T3,pT;function sl(){if(pT)return T3;pT=1;function t(e){return e!=null&&typeof e=="object"}return T3=t,T3}var R3,mT;function wf(){if(mT)return R3;mT=1;var t=al(),e=sl(),r="[object Symbol]";function n(a){return typeof a=="symbol"||e(a)&&t(a)==r}return R3=n,R3}var I3,gT;function vC(){if(gT)return I3;gT=1;var t=Ba(),e=wf(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(t(i))return!1;var l=typeof i;return l=="number"||l=="symbol"||l=="boolean"||i==null||e(i)?!0:n.test(i)||!r.test(i)||o!=null&&i in Object(o)}return I3=a,I3}var D3,bT;function fc(){if(bT)return D3;bT=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return D3=t,D3}var L3,xT;function wC(){if(xT)return L3;xT=1;var t=al(),e=fc(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(l){if(!e(l))return!1;var c=t(l);return c==n||c==a||c==r||c==i}return L3=o,L3}var B3,yT;
vendor: 5,519 bytes, line 1166
1166function N5e(){if(yT)return B3;yT=1;var t=ro(),e=t["__core-js_shared__"];return B3=e,B3}var H3,vT;function j5e(){if(vT)return H3;vT=1;var t=N5e(),e=(function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!e&&e in n}return H3=r,H3}var F3,wT;function CG(){if(wT)return F3;wT=1;var t=Function.prototype,e=t.toString;function r(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return F3=r,F3}var z3,NT;function k5e(){if(NT)return z3;NT=1;var t=wC(),e=j5e(),r=fc(),n=CG(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,c=o.toString,u=l.hasOwnProperty,d=RegExp("^"+c.call(u).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(m){if(!r(m)||e(m))return!1;var g=t(m)?d:i;return g.test(n(m))}return z3=h,z3}var V3,jT;function S5e(){if(jT)return V3;jT=1;function t(e,r){return e==null?void 0:e[r]}return V3=t,V3}var U3,kT;function Vu(){if(kT)return U3;kT=1;var t=k5e(),e=S5e();function r(n,a){var i=e(n,a);return t(i)?i:void 0}return U3=r,U3}var q3,ST;function Hy(){if(ST)return q3;ST=1;var t=Vu(),e=t(Object,"create");return q3=e,q3}var W3,CT;function C5e(){if(CT)return W3;CT=1;var t=Hy();function e(){this.__data__=t?t(null):{},this.size=0}return W3=e,W3}var G3,$T;function $5e(){if($T)return G3;$T=1;function t(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}return G3=t,G3}var K3,_T;function _5e(){if(_T)return K3;_T=1;var t=Hy(),e="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(i){var o=this.__data__;if(t){var l=o[i];return l===e?void 0:l}return n.call(o,i)?o[i]:void 0}return K3=a,K3}var Y3,AT;function A5e(){if(AT)return Y3;AT=1;var t=Hy(),e=Object.prototype,r=e.hasOwnProperty;function n(a){var i=this.__data__;return t?i[a]!==void 0:r.call(i,a)}return Y3=n,Y3}var X3,ET;function E5e(){if(ET)return X3;ET=1;var t=Hy(),e="__lodash_hash_undefined__";function r(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=t&&a===void 0?e:a,this}return X3=r,X3}var J3,OT;function O5e(){if(OT)return J3;OT=1;var t=C5e(),e=$5e(),r=_5e(),n=A5e(),a=E5e();function i(o){var l=-1,c=o==null?0:o.length;for(this.clear();++l<c;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,J3=i,J3}var Q3,PT;function P5e(){if(PT)return Q3;PT=1;function t(){this.__data__=[],this.size=0}return Q3=t,Q3}var Z3,MT;function NC(){if(MT)return Z3;MT=1;function t(e,r){return e===r||e!==e&&r!==r}return Z3=t,Z3}var ew,TT;function Fy(){if(TT)return ew;TT=1;var t=NC();function e(r,n){for(var a=r.length;a--;)if(t(r[a][0],n))return a;return-1}return ew=e,ew}var tw,RT;function M5e(){if(RT)return tw;RT=1;var t=Fy(),e=Array.prototype,r=e.splice;function n(a){var i=this.__data__,o=t(i,a);if(o<0)return!1;var l=i.length-1;return o==l?i.pop():r.call(i,o,1),--this.size,!0}return tw=n,tw}var rw,IT;function T5e(){if(IT)return rw;IT=1;var t=Fy();function e(r){var n=this.__data__,a=t(n,r);return a<0?void 0:n[a][1]}return rw=e,rw}var nw,DT;function R5e(){if(DT)return nw;DT=1;var t=Fy();function e(r){return t(this.__data__,r)>-1}return nw=e,nw}var aw,LT;function I5e(){if(LT)return aw;LT=1;var t=Fy();function e(r,n){var a=this.__data__,i=t(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return aw=e,aw}var sw,BT;function zy(){if(BT)return sw;BT=1;var t=P5e(),e=M5e(),r=T5e(),n=R5e(),a=I5e();function i(o){var l=-1,c=o==null?0:o.length;for(this.clear();++l<c;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,sw=i,sw}var iw,HT;function jC(){if(HT)return iw;HT=1;var t=Vu(),e=ro(),r=t(e,"Map");return iw=r,iw}var ow,FT;function D5e(){if(FT)return ow;FT=1;var t=O5e(),e=zy(),r=jC();function n(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}return ow=n,ow}var lw,zT;function L5e(){if(zT)return lw;zT=1;function t(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}return lw=t,lw}var cw,VT;function Vy(){if(VT)return cw;VT=1;var t=L5e();function e(r,n){var a=r.__data__;return t(n)?a[typeof n=="string"?"string":"hash"]:a.map}return cw=e,cw}var uw,UT;function B5e(){if(UT)return uw;UT=1;var t=Vy();function e(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}return uw=e,uw}var dw,qT;function H5e(){if(qT)return dw;qT=1;var t=Vy();function e(r){return t(this,r).get(r)}return dw=e,dw}var hw,WT;function F5e(){if(WT)return hw;WT=1;var t=Vy();function e(r){return t(this,r).has(r)}return hw=e,hw}var fw,GT;function z5e(){if(GT)return fw;GT=1;var t=Vy();function e(r,n){var a=t(this,r),i=a.size;return a.set(r,n),this.size+=a.size==i?0:1,this}return fw=e,fw}var pw,KT;function kC(){if(KT)return pw;KT=1;var t=D5e(),e=B5e(),r=H5e(),n=F5e(),a=z5e();function i(o){var l=-1,c=o==null?0:o.length;for(this.clear();++l<c;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,pw=i,pw}var mw,YT;function $G(){if(YT)return mw;YT=1;var t=kC(),e="Expected a function";function r(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var i=function(){var o=arguments,l=a?a.apply(this,o):o[0],c=i.cache;if(c.has(l))return c.get(l);var u=n.apply(this,o);return i.cache=c.set(l,u)||c,u};return i.cache=new(r.Cache||t),i}return r.Cache=t,mw=r,mw}var gw,XT;
vendor: 7,338 bytes, lines 1166-1174
1166function V5e(){if(XT)return gw;XT=1;var t=$G(),e=500;function r(n){var a=t(n,function(o){return i.size===e&&i.clear(),o}),i=a.cache;return a}return gw=r,gw}var bw,JT;function U5e(){if(JT)return bw;JT=1;var t=V5e(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(o,l,c,u){i.push(c?u.replace(r,"$1"):l||o)}),i});return bw=n,bw}var xw,QT;function SC(){if(QT)return xw;QT=1;function t(e,r){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=r(e[n],n,e);return i}return xw=t,xw}var yw,ZT;function q5e(){if(ZT)return yw;ZT=1;var t=J0(),e=SC(),r=Ba(),n=wf(),a=t?t.prototype:void 0,i=a?a.toString:void 0;function o(l){if(typeof l=="string")return l;if(r(l))return e(l,o)+"";if(n(l))return i?i.call(l):"";var c=l+"";return c=="0"&&1/l==-1/0?"-0":c}return yw=o,yw}var vw,eR;function _G(){if(eR)return vw;eR=1;var t=q5e();function e(r){return r==null?"":t(r)}return vw=e,vw}var ww,tR;function AG(){if(tR)return ww;tR=1;var t=Ba(),e=vC(),r=U5e(),n=_G();function a(i,o){return t(i)?i:e(i,o)?[i]:r(n(i))}return ww=a,ww}var Nw,rR;function Uy(){if(rR)return Nw;rR=1;var t=wf();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Nw=e,Nw}var jw,nR;function CC(){if(nR)return jw;nR=1;var t=AG(),e=Uy();function r(n,a){a=t(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[e(a[i++])];return i&&i==o?n:void 0}return jw=r,jw}var kw,aR;function EG(){if(aR)return kw;aR=1;var t=CC();function e(r,n,a){var i=r==null?void 0:t(r,n);return i===void 0?a:i}return kw=e,kw}var W5e=EG();const Ps=ar(W5e);var Sw,sR;function G5e(){if(sR)return Sw;sR=1;function t(e){return e==null}return Sw=t,Sw}var K5e=G5e();const Ft=ar(K5e);var Cw,iR;function Y5e(){if(iR)return Cw;iR=1;var t=al(),e=Ba(),r=sl(),n="[object String]";function a(i){return typeof i=="string"||!e(i)&&r(i)&&t(i)==n}return Cw=a,Cw}var X5e=Y5e();const Q0=ar(X5e);var J5e=wC();const Pt=ar(J5e);var Q5e=fc();const Nf=ar(Q5e);var $w={exports:{}},Zt={};/** 1167 * @license React 1168 * react-is.production.min.js 1169 * 1170 * Copyright (c) Facebook, Inc. and its affiliates. 1171 * 1172 * This source code is licensed under the MIT license found in the 1173 * LICENSE file in the root directory of this source tree. 1174 */var oR;function Z5e(){if(oR)return Zt;oR=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function y(v){if(typeof v=="object"&&v!==null){var N=v.$$typeof;switch(N){case t:switch(v=v.type,v){case r:case a:case n:case u:case d:return v;default:switch(v=v&&v.$$typeof,v){case l:case o:case c:case m:case h:case i:return v;default:return N}}case e:return N}}}return Zt.ContextConsumer=o,Zt.ContextProvider=i,Zt.Element=t,Zt.ForwardRef=c,Zt.Fragment=r,Zt.Lazy=m,Zt.Memo=h,Zt.Portal=e,Zt.Profiler=a,Zt.StrictMode=n,Zt.Suspense=u,Zt.SuspenseList=d,Zt.isAsyncMode=function(){return!1},Zt.isConcurrentMode=function(){return!1},Zt.isContextConsumer=function(v){return y(v)===o},Zt.isContextProvider=function(v){return y(v)===i},Zt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},Zt.isForwardRef=function(v){return y(v)===c},Zt.isFragment=function(v){return y(v)===r},Zt.isLazy=function(v){return y(v)===m},Zt.isMemo=function(v){return y(v)===h},Zt.isPortal=function(v){return y(v)===e},Zt.isProfiler=function(v){return y(v)===a},Zt.isStrictMode=function(v){return y(v)===n},Zt.isSuspense=function(v){return y(v)===u},Zt.isSuspenseList=function(v){return y(v)===d},Zt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===a||v===n||v===u||v===d||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===h||v.$$typeof===i||v.$$typeof===o||v.$$typeof===c||v.$$typeof===b||v.getModuleId!==void 0)},Zt.typeOf=y,Zt}var lR;function e4e(){return lR||(lR=1,$w.exports=Z5e()),$w.exports}var t4e=e4e(),_w,cR;function OG(){if(cR)return _w;cR=1;var t=al(),e=sl(),r="[object Number]";function n(a){return typeof a=="number"||e(a)&&t(a)==r}return _w=n,_w}var Aw,uR;function r4e(){if(uR)return Aw;uR=1;var t=OG();function e(r){return t(r)&&r!=+r}return Aw=e,Aw}var n4e=r4e();const jf=ar(n4e);var a4e=OG();const s4e=ar(a4e);var hi=function(e){return e===0?0:e>0?1:-1},su=function(e){return Q0(e)&&e.indexOf("%")===e.length-1},ze=function(e){return s4e(e)&&!jf(e)},gn=function(e){return ze(e)||Q0(e)},i4e=0,kf=function(e){var r=++i4e;return"".concat(e||"").concat(r)},Cu=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ze(e)&&!Q0(e))return n;var i;if(su(e)){var o=e.indexOf("%");i=r*parseFloat(e.slice(0,o))/100}else i=+e;return jf(i)&&(i=n),a&&i>r&&(i=r),i},zl=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},o4e=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},a=0;a<r;a++)if(!n[e[a]])n[e[a]]=!0;else return!0;return!1},Ln=function(e,r){return ze(e)&&ze(r)?function(n){return e+n*(r-e)}:function(){return r}};function jx(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):Ps(n,e))===r})}function hh(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function CN(t){"@babel/helpers - typeof";return CN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CN(t)}var l4e=["viewBox","children"],c4e=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
1174dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],dR=["points","pathLength"],Ew={svg:l4e,polygon:dR,polyline:dR},$C=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
1174Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],kx=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(w.isValidElement(e)&&(n=e.props),!Nf(n))return null;var a={};return Object.keys(n).forEach(function(i){$C.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},u4e=function(e,r,n){return function(a){return e(r,n,a),null}},Sx=function(e,r,n){if(!Nf(e)||CN(e)!=="object")return null;var a=null;return Object.keys(e).forEach(function(i){var o=e[i];$C.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=u4e(o,r,n))}),a},d4e=["children"],h4e=["children"];function hR(t,e){if(t==null)return{};var r=f4e(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function f4e(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function $N(t){"@babel/helpers - typeof";return $N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$N(t)}var fR={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Bo=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},pR=null,Ow=null,_C=function t(e){if(e===pR&&Array.isArray(Ow))return Ow;var r=[];return w.Children.forEach(e,function(n){Ft(n)||(t4e.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),Ow=r,pR=e,r};function Ms(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(a){return Bo(a)}):n=[Bo(e)],_C(t).forEach(function(a){var i=Ps(a,"type.displayName")||Ps(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function Ga(t,e){var r=Ms(t,e);return r&&r[0]}var mR=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,a=r.height;return!(!ze(n)||n<=0||!ze(a)||a<=0)},p4e=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],m4e=function(e){return e&&e.type&&Q0(e.type)&&p4e.indexOf(e.type)>=0},PG=function(e){return e&&$N(e)==="object"&&"clipDot"in e},g4e=function(e,r,n,a){var i,o=(i=Ew==null?void 0:Ew[a])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!Pt(e)&&(a&&o.includes(r)||c4e.includes(r))||n&&$C.includes(r)},Mt=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var a=e;if(w.isValidElement(e)&&(a=e.props),!Nf(a))return null;var i={};
vendor: 5,617 bytes, line 1174
1174return Object.keys(a).forEach(function(o){var l;g4e((l=a)===null||l===void 0?void 0:l[o],o,r,n)&&(i[o]=a[o])}),i},_N=function t(e,r){if(e===r)return!0;var n=w.Children.count(e);if(n!==w.Children.count(r))return!1;if(n===0)return!0;if(n===1)return gR(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=e[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!t(i,o))return!1}else if(!gR(i,o))return!1}return!0},gR=function(e,r){if(Ft(e)&&Ft(r))return!0;if(!Ft(e)&&!Ft(r)){var n=e.props||{},a=n.children,i=hR(n,d4e),o=r.props||{},l=o.children,c=hR(o,h4e);return a&&l?hh(i,c)&&_N(a,l):!a&&!l?hh(i,c):!1}return!1},bR=function(e,r){var n=[],a={};return _C(e).forEach(function(i,o){if(m4e(i))n.push(i);else if(i){var l=Bo(i.type),c=r[l]||{},u=c.handler,d=c.once;if(u&&(!d||!a[l])){var h=u(i,l,o);n.push(h),a[l]=!0}}}),n},b4e=function(e){var r=e&&e.type;return r&&fR[r]?fR[r]:null},x4e=function(e,r){return _C(r).indexOf(e)},y4e=["children","width","height","viewBox","className","style","title","desc"];function AN(){return AN=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},AN.apply(this,arguments)}function v4e(t,e){if(t==null)return{};var r=w4e(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function w4e(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function EN(t){var e=t.children,r=t.width,n=t.height,a=t.viewBox,i=t.className,o=t.style,l=t.title,c=t.desc,u=v4e(t,y4e),d=a||{width:r,height:n,x:0,y:0},h=zt("recharts-surface",i);return z.createElement("svg",AN({},Mt(u,!0,"svg"),{className:h,width:r,height:n,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),z.createElement("title",null,l),z.createElement("desc",null,c),e)}var N4e=["children","className"];function ON(){return ON=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ON.apply(this,arguments)}function j4e(t,e){if(t==null)return{};var r=k4e(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function k4e(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var fr=z.forwardRef(function(t,e){var r=t.children,n=t.className,a=j4e(t,N4e),i=zt("recharts-layer",n);return z.createElement("g",ON({className:i},Mt(a,!0),{ref:e}),r)}),Ho=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]},Pw,xR;function S4e(){if(xR)return Pw;xR=1;function t(e,r,n){var a=-1,i=e.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(i);++a<i;)o[a]=e[a+r];return o}return Pw=t,Pw}var Mw,yR;function C4e(){if(yR)return Mw;yR=1;var t=S4e();function e(r,n,a){var i=r.length;return a=a===void 0?i:a,!n&&a>=i?r:t(r,n,a)}return Mw=e,Mw}var Tw,vR;function MG(){if(vR)return Tw;vR=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=e+r+n,i="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+t+a+i+"]");function c(u){return l.test(u)}return Tw=c,Tw}var Rw,wR;function $4e(){if(wR)return Rw;wR=1;function t(e){return e.split("")}return Rw=t,Rw}var Iw,NR;function _4e(){if(NR)return Iw;NR=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=e+r+n,i="\\ufe0e\\ufe0f",o="["+t+"]",l="["+a+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+l+"|"+c+")",d="[^"+t+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",b=u+"?",y="["+i+"]?",v="(?:"+g+"(?:"+[d,h,m].join("|")+")"+y+b+")*",N=y+b+v,S="(?:"+[d+l+"?",l,h,m,o].join("|")+")",j=RegExp(c+"(?="+c+")|"+S+N,"g");function $(C){return C.match(j)||[]}return Iw=$,Iw}var Dw,jR;function A4e(){if(jR)return Dw;jR=1;var t=$4e(),e=MG(),r=_4e();function n(a){return e(a)?r(a):t(a)}return Dw=n,Dw}var Lw,kR;function E4e(){if(kR)return Lw;kR=1;var t=C4e(),e=MG(),r=A4e(),n=_G();function a(i){return function(o){o=n(o);var l=e(o)?r(o):void 0,c=l?l[0]:o.charAt(0),u=l?t(l,1).join(""):o.slice(1);return c[i]()+u}}return Lw=a,Lw}var Bw,SR;function O4e(){if(SR)return Bw;SR=1;var t=E4e(),e=t("toUpperCase");return Bw=e,Bw}var P4e=O4e();const qy=ar(P4e);function hr(t){return function(){return t}}const TG=Math.cos,Cx=Math.sin,Ni=Math.sqrt,$x=Math.PI,Wy=2*$x,PN=Math.PI,MN=2*PN,Kc=1e-6,M4e=MN-Kc;function RG(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function T4e(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return RG;const r=10**e;return function(n){this._+=n[0];for(let a=1,i=n.length;a<i;++a)this._+=Math.round(arguments[a]*r)/r+n[a]}}class R4e{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?RG:T4e(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,n,a){this._append`Q${+e},${+r},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(e,r,n,a,i,o){this._append`C${+e},${+r},${+n}
1174,${+a},${this._x1=+i},${this._y1=+o}`}arcTo(e,r,n,a,i){if(e=+e,r=+r,n=+n,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,l=this._y1,c=n-e,u=a-r,d=o-e,h=l-r,m=d*d+h*h;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(m>Kc)if(!(Math.abs(h*c-u*d)>Kc)||!i)this._append`L${this._x1=e},${this._y1=r}`;else{let g=n-o,b=a-l,y=c*c+u*u,v=g*g+b*b,N=Math.sqrt(y),S=Math.sqrt(m),j=i*Math.tan((PN-Math.acos((y+m-v)/(2*N*S)))/2),$=j/S,C=j/N;Math.abs($-1)>Kc&&this._append`L${e+$*d},${r+$*h}`,this._append`A${i},${i},0,0,${+(h*g>d*b)},${this._x1=e+C*c},${this._y1=r+C*u}`}}arc(e,r,n,a,i,o){if(e=+e,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(a),c=n*Math.sin(a),u=e+l,d=r+c,h=1^o,m=o?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Kc||Math.abs(this._y1-d)>Kc)&&this._append`L${u},${d}`,n&&(m<0&&(m=m%MN+MN),m>M4e?this._append`A${n},${n},0,1,${h},${e-l},${r-c}A${n},${n},0,1,${h},${this._x1=u},${this._y1=d}`:m>Kc&&this._append`A${n},${n},0,${+(m>=PN)},${h},${this._x1=e+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(e,r,n,a){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function AC(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new R4e(e)}function EC(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function IG(t){this._context=t}IG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Gy(t){return new IG(t)}function DG(t){return t[0]}function LG(t){return t[1]}function BG(t,e){var r=hr(!0),n=null,a=Gy,i=null,o=AC(l);t=typeof t=="function"?t:t===void 0?DG:hr(t),e=typeof e=="function"?e:e===void 0?LG:hr(e);function l(c){var u,d=(c=EC(c)).length,h,m=!1,g;for(n==null&&(i=a(g=o())),u=0;u<=d;++u)!(u<d&&r(h=c[u],u,c))===m&&((m=!m)?i.lineStart():i.lineEnd()),m&&i.point(+t(h,u,c),+e(h,u,c));if(g)return i=null,g+""||null}return l.x=function(c){return arguments.length?(t=typeof c=="function"?c:hr(+c),l):t},l.y=function(c){return arguments.length?(e=typeof c=="function"?c:hr(+c),l):e},l.defined=function(c){return arguments.length?(r=typeof c=="function"?c:hr(!!c),l):r},l.curve=function(c){return arguments.length?(a=c,n!=null&&(i=a(n)),l):a},l.context=function(c){return arguments.length?(c==null?n=i=null:i=a(n=c),l):n},l}function Gg(t,e,r){var n=null,a=hr(!0),i=null,o=Gy,l=null,c=AC(u);t=typeof t=="function"?t:t===void 0?DG:hr(+t),e=typeof e=="function"?e:hr(e===void 0?0:+e),r=typeof r=="function"?r:r===void 0?LG:hr(+r);function u(h){var m,g,b,y=(h=EC(h)).length,v,N=!1,S,j=new Array(y),$=new Array(y);for(i==null&&(l=o(S=c())),m=0;m<=y;++m){if(!(m<y&&a(v=h[m],m,h))===N)if(N=!N)g=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=m-1;b>=g;--b)l.point(j[b],$[b]);l.lineEnd(),l.areaEnd()}N&&(j[m]=+t(v,m,h),$[m]=+e(v,m,h),l.point(n?+n(v,m,h):j[m],r?+r(v,m,h):$[m]))}if(S)return l=null,S+""||null}function d(){return BG().defined(a).curve(o).context(i)}return u.x=function(h){return arguments.length?(t=typeof h=="function"?h:hr(+h),n=null,u):t},u.x0=function(h){return arguments.length?(t=typeof h=="function"?h:hr(+h),u):t},u.x1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:hr(+h),u):n},u.y=function(h){return arguments.length?(e=typeof h=="function"?h:hr(+h),r=null,u):e},u.y0=function(h){return arguments.length?(e=typeof h=="function"?h:hr(+h),u):e},u.y1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:hr(+h),u):r},u.lineX0=u.lineY0=function(){return d().x(t).y(e)},u.lineY1=function(){return d().x(t).y(r)},u.lineX1=function(){return d().x(n).y(e)},u.defined=function(h){return arguments.length?(a=typeof h=="function"?h:hr(!!h),u):a},u.curve=function(h){return arguments.length?(o=h,i!=null&&(l=o(i)),u):o},u.context=function(h){return arguments.length?(h==null?i=l=null:l=o(i=h),u):i},u}class HG{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function I4e(t){return new HG(t,!0)}function D4e(t){return new HG(t,!1)}const OC={draw(t,e){const r=Ni(e/$x);t.moveTo(r,0),t.arc(0,0,r,0,Wy)}},L4e={draw(t,e){const r=Ni(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},FG=Ni(1/3),B4e=FG*2,H4e={draw(t,e){const r=Ni(e/B4e),n=r*FG;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},F4e={draw(t,e){const r=Ni(e),n=-r/2;t.rect(n,n,r,r)}},z4e=.8908130915292852,zG=Cx($x/10)/Cx(7*$x/10),V4e=Cx(Wy/10)*zG,U4e=-TG(Wy/10)*zG,q4e={draw(t,e){const r=Ni(e*z4e),n=V4e*r,a=U4e*r;t.moveTo(0,-r),t.lineTo(n,a);for(let i=1;i<5;++i){const o=Wy*i/5,l=TG(o),c=Cx(o);t.lineTo(c*r,-l*r),t.lineTo(l*n-c*a,c*n+l*a)}t.closePath()}},Hw=Ni(3),W4e={draw(t,e){const r=-Ni(e/(Hw*3));t.moveTo(0,r*2),t.lineTo(-Hw*r,-r),t.lineTo(Hw*r,-r),t.closePath()}},ws=-.5,Ns=Ni(3)/2,TN=1/Ni(12),G4e=(TN/2+1)*3,K4e={draw(t,e){const r=Ni(e/G4e),n=r/2,a=r*TN,i=n,o=r*TN+r,l=-i,c=o;t.moveTo(n,a),t.lineTo(i,o),t.lineTo(l,c),t.lineTo(ws*n-Ns*a,Ns*n+ws*a),t.lineTo(ws*i-Ns*o,Ns*i+ws*o),t.lineTo(ws*l-Ns*c,Ns*l+ws*c),t.lineTo(ws*n+Ns*a,ws*a-Ns*n),t.lineTo(ws*i+Ns*o,ws*o-Ns*i),t.lineTo(ws*l+Ns*c,ws*c-Ns*l),t.closePath()}};function Y4e(t,e){let r=null,n=AC(a);t=typeof t=="function"?t:hr(t||OC),e=typeof e=="function"?e:hr(e===void 0?64:+e);function a(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(t=typeof i=="function"?i:hr(i),a):t},a.size=function(i){return arguments.length?(e=typeof i=="function"?i:hr(+i),a):e},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function _x(){}function Ax(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function VG(t){this._context=t}VG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ax(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ax(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function X4e(t){return new VG(t)}function UG(t){this._context=t}UG.prototype={areaStart:_x,areaEnd:_x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ax(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function J4e(t){return new UG(t)}function qG(t){this._context=t}qG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ax(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Q4e(t){return new qG(t)}function WG(t){this._context=t}WG.prototype={areaStart:_x,areaEnd:_x,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Z4e(t){return new WG(t)}function CR(t){return t<0?-1:1}function $R(t,e,r){var n=t._x1-t._x0,a=e-t._x1,i=(t._y1-t._y0)/(n||a<0&&-0),o=(r-t._y1)/(a||n<0&&-0),l=(i*a+o*n)/(n+a);return(CR(i)+CR(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function _R(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Fw(t,e,r){var n=t._x0,a=t._y0,i=t._x1,o=t._y1,l=(i-n)/3;t._context.bezierCurveTo(n+l,a+l*e,i-l,o-l*r,i,o)}function Ex(t){this._context=t}Ex.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Fw(this,this._t0,_R(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Fw(this,_R(this,r=$R(this,t,e)),r);break;default:Fw(this,this._t0,r=$R(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function GG(t){this._context=new KG(t)}(GG.prototype=Object.create(Ex.prototype)).point=function(t,e){Ex.prototype.point.call(this,e,t)};function KG(t){this._context=t}KG.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,a,i){this._context.bezierCurveTo(e,t,n,r,i,a)}};function e3e(t){return new Ex(t)}function t3e(t){return new GG(t)}function YG(t){this._context=t}YG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=AR(t),a=AR(e),i=0,o=1;o<r;++i,++o)this._context.bezierCurveTo(n[0][i],a[0][i],n[1][i],a[1][i],t[o],e[o
1174]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function AR(t){var e,r=t.length-1,n,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)a[e]=1,i[e]=4,o[e]=4*t[e]+2*t[e+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=a[e]/i[e-1],i[e]-=n,o[e]-=n*o[e-1];for(a[r-1]=o[r-1]/i[r-1],e=r-2;e>=0;--e)a[e]=(o[e]-a[e+1])/i[e];for(i[r-1]=(t[r]+a[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-a[e+1];return[a,i]}function r3e(t){return new YG(t)}function Ky(t,e){this._context=t,this._t=e}Ky.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function n3e(t){return new Ky(t,.5)}function a3e(t){return new Ky(t,0)}function s3e(t){return new Ky(t,1)}function Ch(t,e){if((o=t.length)>1)for(var r=1,n,a,i=t[e[0]],o,l=i.length;r<o;++r)for(a=i,i=t[e[r]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function RN(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function i3e(t,e){return t[e]}function o3e(t){const e=[];return e.key=t,e}function l3e(){var t=hr([]),e=RN,r=Ch,n=i3e;function a(i){var o=Array.from(t.apply(this,arguments),o3e),l,c=o.length,u=-1,d;for(const h of i)for(l=0,++u;l<c;++l)(o[l][u]=[0,+n(h,o[l].key,u,i)]).data=h;for(l=0,d=EC(e(o));l<c;++l)o[d[l]].index=l;return r(o,d),o}return a.keys=function(i){return arguments.length?(t=typeof i=="function"?i:hr(Array.from(i)),a):t},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:hr(+i),a):n},a.order=function(i){return arguments.length?(e=i==null?RN:typeof i=="function"?i:hr(Array.from(i)),a):e},a.offset=function(i){return arguments.length?(r=i??Ch,a):r},a}function c3e(t,e){if((n=t.length)>0){for(var r,n,a=0,i=t[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=t[r][a][1]||0;if(o)for(r=0;r<n;++r)t[r][a][1]/=o}Ch(t,e)}}function u3e(t,e){if((a=t.length)>0){for(var r=0,n=t[e[0]],a,i=n.length;r<i;++r){for(var o=0,l=0;o<a;++o)l+=t[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}Ch(t,e)}}function d3e(t,e){if(!(!((o=t.length)>0)||!((i=(a=t[e[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var l=0,c=0,u=0;l<o;++l){for(var d=t[e[l]],h=d[n][1]||0,m=d[n-1][1]||0,g=(h-m)/2,b=0;b<l;++b){var y=t[e[b]],v=y[n][1]||0,N=y[n-1][1]||0;g+=v-N}c+=h,u+=g*h}a[n-1][1]+=a[n-1][0]=r,c&&(r-=u/c)}a[n-1][1]+=a[n-1][0]=r,Ch(t,e)}}function Bm(t){"@babel/helpers - typeof";return Bm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bm(t)}var h3e=["type","size","sizeType"];function IN(){return IN=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},IN.apply(this,arguments)}function ER(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function OR(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ER(Object(r),!0).forEach(function(n){f3e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ER(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function f3e(t,e,r){return e=p3e(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p3e(t){var e=m3e(t,"string");return Bm(e)=="symbol"?e:e+""}function m3e(t,e){if(Bm(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Bm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function g3e(t,e){if(t==null)return{};var r=b3e(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function b3e(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var XG={symbolCircle:OC,symbolCross:L4e,symbolDiamond:H4e,symbolSquare:F4e,symbolStar:q4e,symbolTriangle:W4e,symbolWye:K4e},x3e=Math.PI/180,y3e=function(e){var r="symbol".concat(qy(e));return XG[r]||OC},v3e=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*x3e;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},w3e=function(e,r){XG["symbol".concat(qy(e))]=r},PC=function(e){var r=e.type,n=r===void 0?"circle":r,a=e.size,i=a===void 0?64:a,o=e.sizeType,l=o===void 0?"area":o,c=g3e(e,h3e),u=OR(OR({},c),{},{type:n,size:i,sizeType:l}),d=function(){var v=y3e(n),N=Y4e().type(v).size(v3e(i,l,n));return N()},h=u.className,m=u.cx,g=u.cy,b=Mt(u,!0);return m===+m&&g===+g&&i===+i?z.createElement("path",IN({}
vendor: 13,842 bytes, lines 1174-1177
1174,b,{className:zt("recharts-symbols",h),transform:"translate(".concat(m,", ").concat(g,")"),d:d()})):null};PC.registerSymbol=w3e;function $h(t){"@babel/helpers - typeof";return $h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$h(t)}function DN(){return DN=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},DN.apply(this,arguments)}function PR(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function N3e(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?PR(Object(r),!0).forEach(function(n){Hm(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):PR(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function j3e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k3e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,QG(n.key),n)}}function S3e(t,e,r){return e&&k3e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function C3e(t,e,r){return e=Ox(e),$3e(t,JG()?Reflect.construct(e,r||[],Ox(t).constructor):e.apply(t,r))}function $3e(t,e){if(e&&($h(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _3e(t)}function _3e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function JG(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JG=function(){return!!t})()}function Ox(t){return Ox=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ox(t)}function A3e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&LN(t,e)}function LN(t,e){return LN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},LN(t,e)}function Hm(t,e,r){return e=QG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QG(t){var e=E3e(t,"string");return $h(e)=="symbol"?e:e+""}function E3e(t,e){if($h(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if($h(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var js=32,MC=(function(t){function e(){return j3e(this,e),C3e(this,e,arguments)}return A3e(e,t),S3e(e,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=js/2,o=js/6,l=js/3,c=n.inactive?a:n.color;if(n.type==="plainline")return z.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:js,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return z.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(l,` 1175 A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(i,` 1176 H`).concat(js,"M").concat(2*l,",").concat(i,` 1177 A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return z.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(js/8,"h").concat(js,"v").concat(js*3/4,"h").concat(-js,"z"),className:"recharts-legend-icon"});if(z.isValidElement(n.legendIcon)){var u=N3e({},n);return delete u.legendIcon,z.cloneElement(n.legendIcon,u)}return z.createElement(PC,{fill:c,cx:i,cy:i,size:js,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,i=a.payload,o=a.iconSize,l=a.layout,c=a.formatter,u=a.inactiveColor,d={x:0,y:0,width:js,height:js},h={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(g,b){var y=g.formatter||c,v=zt(Hm(Hm({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",g.inactive));if(g.type==="none")return null;var N=Pt(g.value)?null:g.value;Ho(!Pt(g.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var S=g.inactive?u:g.color;return z.createElement("li",DN({className:v,style:h,key:"legend-item-".concat(b)},Sx(n.props,g,b)),z.createElement(EN,{width:o,height:o,viewBox:d,style:m},n.renderIcon(g)),z.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},y?y(N,g,b):N))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,o=n.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return z.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(w.PureComponent);Hm(MC,"displayName","Legend");Hm(MC,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var zw,MR;function O3e(){if(MR)return zw;MR=1;var t=zy();function e(){this.__data__=new t,this.size=0}return zw=e,zw}var Vw,TR;function P3e(){if(TR)return Vw;TR=1;function t(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}return Vw=t,Vw}var Uw,RR;function M3e(){if(RR)return Uw;RR=1;function t(e){return this.__data__.get(e)}return Uw=t,Uw}var qw,IR;function T3e(){if(IR)return qw;IR=1;function t(e){return this.__data__.has(e)}return qw=t,qw}var Ww,DR;function R3e(){if(DR)return Ww;DR=1;var t=zy(),e=jC(),r=kC(),n=200;function a(i,o){var l=this.__data__;if(l instanceof t){var c=l.__data__;if(!e||c.length<n-1)return c.push([i,o]),this.size=++l.size,this;l=this.__data__=new r(c)}return l.set(i,o),this.size=l.size,this}return Ww=a,Ww}var Gw,LR;function ZG(){if(LR)return Gw;LR=1;var t=zy(),e=O3e(),r=P3e(),n=M3e(),a=T3e(),i=R3e();function o(l){var c=this.__data__=new t(l);this.size=c.size}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,Gw=o,Gw}var Kw,BR;function I3e(){if(BR)return Kw;BR=1;var t="__lodash_hash_undefined__";function e(r){return this.__data__.set(r,t),this}return Kw=e,Kw}var Yw,HR;function D3e(){if(HR)return Yw;HR=1;function t(e){return this.__data__.has(e)}return Yw=t,Yw}var Xw,FR;function eK(){if(FR)return Xw;FR=1;var t=kC(),e=I3e(),r=D3e();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new t;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,Xw=n,Xw}var Jw,zR;function tK(){if(zR)return Jw;zR=1;function t(e,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(e[n],n,e))return!0;return!1}return Jw=t,Jw}var Qw,VR;function rK(){if(VR)return Qw;VR=1;function t(e,r){return e.has(r)}return Qw=t,Qw}var Zw,UR;function nK(){if(UR)return Zw;UR=1;var t=eK(),e=tK(),r=rK(),n=1,a=2;function i(o,l,c,u,d,h){var m=c&n,g=o.length,b=l.length;if(g!=b&&!(m&&b>g))return!1;var y=h.get(o),v=h.get(l);if(y&&v)return y==l&&v==o;var N=-1,S=!0,j=c&a?new t:void 0;for(h.set(o,l),h.set(l,o);++N<g;){var $=o[N],C=l[N];if(u)var _=m?u(C,$,N,l,o,h):u($,C,N,o,l,h);if(_!==void 0){if(_)continue;S=!1;break}if(j){if(!e(l,function(O,E){if(!r(j,E)&&($===O||d($,O,c,u,h)))return j.push(E)})){S=!1;break}}else if(!($===C||d($,C,c,u,h))){S=!1;break}}return h.delete(o),h.delete(l),S}return Zw=i,Zw}var e6,qR;function L3e(){if(qR)return e6;qR=1;var t=ro(),e=t.Uint8Array;return e6=e,e6}var t6,WR;function B3e(){if(WR)return t6;WR=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(a,i){n[++r]=[i,a]}),n}return t6=t,t6}var r6,GR;function TC(){if(GR)return r6;GR=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(a){n[++r]=a}),n}return r6=t,r6}var n6,KR;function H3e(){if(KR)return n6;KR=1;var t=J0(),e=L3e(),r=NC(),n=nK(),a=B3e(),i=TC(),o=1,l=2,c="[object Boolean]",u="[object Date]",d="[object Error]",h="[object Map]",m="[object Number]",g="[object RegExp]",b="[object Set]",y="[object String]",v="[object Symbol]",N="[object ArrayBuffer]",S="[object DataView]",j=t?t.prototype:void 0,$=j?j.valueOf:void 0;function C(_,O,E,P,T,I,R){switch(E){case S:if(_.byteLength!=O.byteLength||_.byteOffset!=O.byteOffset)return!1;_=_.buffer,O=O.buffer;case N:return!(_.byteLength!=O.byteLength||!I(new e(_),new e(O)));case c:case u:case m:return r(+_,+O);case d:return _.name==O.name&&_.message==O.message;case g:case y:return _==O+"";case h:var F=a;case b:var L=P&o;if(F||(F=i),_.size!=O.size&&!L)return!1;var q=R.get(_);if(q)return q==O;P|=l,R.set(_,O);var G=n(F(_),F(O),P,T,I,R);return R.delete(_),G;case v:if($)return $.call(_)==$.call(O)}return!1}return n6=C,n6}var a6,YR;function aK(){if(YR)return a6;YR=1;function t(e,r){for(var n=-1,a=r.length,i=e.length;++n<a;)e[i+n]=r[n];return e}return a6=t,a6}var s6,XR;function F3e(){if(XR)return s6;XR=1;var t=aK(),e=Ba();function r(n,a,i){var o=a(n);return e(n)?o:t(o,i(n))}return s6=r,s6}var i6,JR;function z3e(){if(JR)return i6;JR=1;function t(e,r){for(var n=-1,a=e==null?0:e.length,i=0,o=[];++n<a;){var l=e[n];r(l,n,e)&&(o[i++]=l)}return o}return i6=t,i6}var o6,QR;function V3e(){if(QR)return o6;QR=1;function t(){return[]}return o6=t,o6}var l6,ZR;function U3e(){if(ZR)return l6;ZR=1;var t=z3e(),e=V3e(),r=Object.prototype,n=r.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),t(a(o),function(l){return n.call(o,l)}))}:e;return l6=i,l6}var c6,eI;function q3e(){if(eI)return c6;eI=1;function t(e,r){for(var n=-1,a=Array(e);++n<e;)a[n]=r(n);return a}return c6=t,c6}var u6,tI;function W3e(){if(tI)return u6;tI=1;var t=al(),e=sl(),r="[object Arguments]";function n(a){return e(a)&&t(a)==r}return u6=n,u6}var d6,rI;function RC(){if(rI)return d6;rI=1;var t=W3e(),e=sl(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,i=t((function(){return arguments})())?t:function(o){return e(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return d6=i,d6}var Vp={exports:{}},h6,nI;function G3e(){if(nI)return h6;nI=1;function t(){return!1}return h6=t,h6}Vp.exports;var aI;function sK(){return aI||(aI=1,(function(t,e){var r=ro(),n=G3e(),a=e&&!e.nodeType&&e,i=a&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===a,l=o?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||n;t.exports=u})(Vp,Vp.exports)),Vp.exports}var f6,sI;function IC(){if(sI)return f6;sI=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function r(n,a){var i=typeof n;return a=a??t,!!a&&(i=="number"||i!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<a}return f6=r,f6}var p6,iI;function DC(){if(iI)return p6;iI=1;var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return p6=e,p6}var m6,oI;function K3e(){if(oI)return m6;oI=1;var t=al(),e=DC(),r=sl(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",l="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",h="[object Object]",m="[object RegExp]",g="[object Set]",b="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",N="[object DataView]",S="[object Float32Array]",j="[object Float64Array]",$="[object Int8Array]",C="[object Int16Array]",_="[object Int32Array]",O="[object Uint8Array]",E="[object Uint8ClampedArray]",P="[object Uint16Array]",T="[object Uint32Array]",I={};I[S]=I[j]=I[$]=I[C]=I[_]=I[O]=I[E]=I[P]=I[T]=!0,I[n]=I[a]=I[v]=I[i]=I[N]=I[o]=I[l]=I[c]=I[u]=I[d]=I[h]=I[m]=I[g]=I[b]=I[y]=!1;function R(F){return r(F)&&e(F.length)&&!!I[t(F)]}return m6=R,m6}var g6,lI;function iK(){if(lI)return g6;lI=1;function t(e){return function(r){return e(r)}}return g6=t,g6}var Up={exports:{}};Up.exports;var cI;function Y3e(){return cI||(cI=1,(function(t,e){var r=SG(),n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===n,o=i&&r.process,l=(function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();t.exports=l})(Up,Up.exports)),Up.exports}var b6,uI;function oK(){if(uI)return b6;uI=1;var t=K3e(),e=iK(),r=Y3e(),n=r&&r.isTypedArray,a=n?e(n):t;return b6=a,b6}var x6,dI;function X3e(){if(dI)return x6;dI=1;var t=q3e(),e=RC(),r=Ba(),n=sK(),a=IC(),i=oK(),o=Object.prototype,l=o.hasOwnProperty;function c(u,d){var h=r(u),m=!h&&e(u),g=!h&&!m&&n(u),b=!h&&!m&&!g&&i(u),y=h||m||g||b,v=y?t(u.length,String):[],N=v.length;for(var S in u)(d||l.call(u,S))&&!(y&&(S=="length"||g&&(S=="offset"||S=="parent")||b&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||a(S,N)))&&v.push(S);return v}return x6=c,x6}var y6,hI;function J3e(){if(hI)return y6;hI=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||t;return r===a}return y6=e,y6}var v6,fI;function lK(){if(fI)return v6;fI=1;function t(e,r){return function(n){return e(r(n))}}return v6=t,v6}var w6,pI;function Q3e(){if(pI)return w6;pI=1;var t=lK(),e=t(Object.keys,Object);return w6=e,w6}var N6,mI;function Z3e(){if(mI)return N6;mI=1;var t=J3e(),e=Q3e(),r=Object.prototype,n=r.hasOwnProperty;function a(i){if(!t(i))return e(i);var o=[];for(var l in Object(i))n.call(i,l)&&l!="constructor"&&o.push(l);return o}return N6=a,N6}var j6,gI;function Z0(){if(gI)return j6;gI=1;var t=wC(),e=DC();function r(n){return n!=null&&e(n.length)&&!t(n)}return j6=r,j6}var k6,bI;function Yy(){if(bI)return k6;bI=1;var t=X3e(),e=Z3e(),r=Z0();function n(a){return r(a)?t(a):e(a)}return k6=n,k6}var S6,xI;
vendor: 4,891 bytes, line 1177
1177function ewe(){if(xI)return S6;xI=1;var t=F3e(),e=U3e(),r=Yy();function n(a){return t(a,r,e)}return S6=n,S6}var C6,yI;function twe(){if(yI)return C6;yI=1;var t=ewe(),e=1,r=Object.prototype,n=r.hasOwnProperty;function a(i,o,l,c,u,d){var h=l&e,m=t(i),g=m.length,b=t(o),y=b.length;if(g!=y&&!h)return!1;for(var v=g;v--;){var N=m[v];if(!(h?N in o:n.call(o,N)))return!1}var S=d.get(i),j=d.get(o);if(S&&j)return S==o&&j==i;var $=!0;d.set(i,o),d.set(o,i);for(var C=h;++v<g;){N=m[v];var _=i[N],O=o[N];if(c)var E=h?c(O,_,N,o,i,d):c(_,O,N,i,o,d);if(!(E===void 0?_===O||u(_,O,l,c,d):E)){$=!1;break}C||(C=N=="constructor")}if($&&!C){var P=i.constructor,T=o.constructor;P!=T&&"constructor"in i&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof T=="function"&&T instanceof T)&&($=!1)}return d.delete(i),d.delete(o),$}return C6=a,C6}var $6,vI;function rwe(){if(vI)return $6;vI=1;var t=Vu(),e=ro(),r=t(e,"DataView");return $6=r,$6}var _6,wI;function nwe(){if(wI)return _6;wI=1;var t=Vu(),e=ro(),r=t(e,"Promise");return _6=r,_6}var A6,NI;function cK(){if(NI)return A6;NI=1;var t=Vu(),e=ro(),r=t(e,"Set");return A6=r,A6}var E6,jI;function awe(){if(jI)return E6;jI=1;var t=Vu(),e=ro(),r=t(e,"WeakMap");return E6=r,E6}var O6,kI;function swe(){if(kI)return O6;kI=1;var t=rwe(),e=jC(),r=nwe(),n=cK(),a=awe(),i=al(),o=CG(),l="[object Map]",c="[object Object]",u="[object Promise]",d="[object Set]",h="[object WeakMap]",m="[object DataView]",g=o(t),b=o(e),y=o(r),v=o(n),N=o(a),S=i;return(t&&S(new t(new ArrayBuffer(1)))!=m||e&&S(new e)!=l||r&&S(r.resolve())!=u||n&&S(new n)!=d||a&&S(new a)!=h)&&(S=function(j){var $=i(j),C=$==c?j.constructor:void 0,_=C?o(C):"";if(_)switch(_){case g:return m;case b:return l;case y:return u;case v:return d;case N:return h}return $}),O6=S,O6}var P6,SI;function iwe(){if(SI)return P6;SI=1;var t=ZG(),e=nK(),r=H3e(),n=twe(),a=swe(),i=Ba(),o=sK(),l=oK(),c=1,u="[object Arguments]",d="[object Array]",h="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function b(y,v,N,S,j,$){var C=i(y),_=i(v),O=C?d:a(y),E=_?d:a(v);O=O==u?h:O,E=E==u?h:E;var P=O==h,T=E==h,I=O==E;if(I&&o(y)){if(!o(v))return!1;C=!0,P=!1}if(I&&!P)return $||($=new t),C||l(y)?e(y,v,N,S,j,$):r(y,v,O,N,S,j,$);if(!(N&c)){var R=P&&g.call(y,"__wrapped__"),F=T&&g.call(v,"__wrapped__");if(R||F){var L=R?y.value():y,q=F?v.value():v;return $||($=new t),j(L,q,N,S,$)}}return I?($||($=new t),n(y,v,N,S,j,$)):!1}return P6=b,P6}var M6,CI;function LC(){if(CI)return M6;CI=1;var t=iwe(),e=sl();function r(n,a,i,o,l){return n===a?!0:n==null||a==null||!e(n)&&!e(a)?n!==n&&a!==a:t(n,a,i,o,r,l)}return M6=r,M6}var T6,$I;function owe(){if($I)return T6;$I=1;var t=ZG(),e=LC(),r=1,n=2;function a(i,o,l,c){var u=l.length,d=u,h=!c;if(i==null)return!d;for(i=Object(i);u--;){var m=l[u];if(h&&m[2]?m[1]!==i[m[0]]:!(m[0]in i))return!1}for(;++u<d;){m=l[u];var g=m[0],b=i[g],y=m[1];if(h&&m[2]){if(b===void 0&&!(g in i))return!1}else{var v=new t;if(c)var N=c(b,y,g,i,o,v);if(!(N===void 0?e(y,b,r|n,c,v):N))return!1}}return!0}return T6=a,T6}var R6,_I;function uK(){if(_I)return R6;_I=1;var t=fc();function e(r){return r===r&&!t(r)}return R6=e,R6}var I6,AI;function lwe(){if(AI)return I6;AI=1;var t=uK(),e=Yy();function r(n){for(var a=e(n),i=a.length;i--;){var o=a[i],l=n[o];a[i]=[o,l,t(l)]}return a}return I6=r,I6}var D6,EI;function dK(){if(EI)return D6;EI=1;function t(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}return D6=t,D6}var L6,OI;function cwe(){if(OI)return L6;OI=1;var t=owe(),e=lwe(),r=dK();function n(a){var i=e(a);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(o){return o===a||t(o,a,i)}}return L6=n,L6}var B6,PI;function uwe(){if(PI)return B6;PI=1;function t(e,r){return e!=null&&r in Object(e)}return B6=t,B6}var H6,MI;function dwe(){if(MI)return H6;MI=1;var t=AG(),e=RC(),r=Ba(),n=IC(),a=DC(),i=Uy();function o(l,c,u){c=t(c,l);for(var d=-1,h=c.length,m=!1;++d<h;){var g=i(c[d]);if(!(m=l!=null&&u(l,g)))break;l=l[g]}return m||++d!=h?m:(h=l==null?0:l.length,!!h&&a(h)&&n(g,h)&&(r(l)||e(l)))}return H6=o,H6}var F6,TI;function hwe(){if(TI)return F6;TI=1;var t=uwe(),e=dwe();function r(n,a){return n!=null&&e(n,a,t)}return F6=r,F6}var z6,RI;function fwe(){if(RI)return z6;RI=1;var t=LC(),e=EG(),r=hwe(),n=vC(),a=uK(),i=dK(),o=Uy(),l=1,c=2;function u(d,h){return n(d)&&a(h)?i(o(d),h):function(m){var g=e(m,d);return g===void 0&&g===h?r(m,d):t(h,g,l|c)}}return z6=u,z6}var V6,II;function Sf(){if(II)return V6;II=1;function t(e){return e}return V6=t,V6}var U6,DI;function pwe(){if(DI)return U6;DI=1;function t(e){return function(r){return r==null?void 0:r[e]}}return U6=t,U6}var q6,LI;function mwe(){if(LI)return q6;LI=1;var t=CC();function e(r){return function(n){return t(n,r)}}return q6=e,q6}var W6,BI;function gwe(){if(BI)return W6;BI=1;var t=pwe(),e=mwe(),r=vC(),n=Uy();function a(i){return r(i)?t(n(i)):e(i)}return W6=a,W6}var G6,HI;function pc(){if(HI)return G6;HI=1;
vendor: 10,709 bytes, line 1177
1177var t=cwe(),e=fwe(),r=Sf(),n=Ba(),a=gwe();function i(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?e(o[0],o[1]):t(o):a(o)}return G6=i,G6}var K6,FI;function hK(){if(FI)return K6;FI=1;function t(e,r,n,a){for(var i=e.length,o=n+(a?1:-1);a?o--:++o<i;)if(r(e[o],o,e))return o;return-1}return K6=t,K6}var Y6,zI;function bwe(){if(zI)return Y6;zI=1;function t(e){return e!==e}return Y6=t,Y6}var X6,VI;function xwe(){if(VI)return X6;VI=1;function t(e,r,n){for(var a=n-1,i=e.length;++a<i;)if(e[a]===r)return a;return-1}return X6=t,X6}var J6,UI;function ywe(){if(UI)return J6;UI=1;var t=hK(),e=bwe(),r=xwe();function n(a,i,o){return i===i?r(a,i,o):t(a,e,o)}return J6=n,J6}var Q6,qI;function vwe(){if(qI)return Q6;qI=1;var t=ywe();function e(r,n){var a=r==null?0:r.length;return!!a&&t(r,n,0)>-1}return Q6=e,Q6}var Z6,WI;function wwe(){if(WI)return Z6;WI=1;function t(e,r,n){for(var a=-1,i=e==null?0:e.length;++a<i;)if(n(r,e[a]))return!0;return!1}return Z6=t,Z6}var e8,GI;function Nwe(){if(GI)return e8;GI=1;function t(){}return e8=t,e8}var t8,KI;function jwe(){if(KI)return t8;KI=1;var t=cK(),e=Nwe(),r=TC(),n=1/0,a=t&&1/r(new t([,-0]))[1]==n?function(i){return new t(i)}:e;return t8=a,t8}var r8,YI;function kwe(){if(YI)return r8;YI=1;var t=eK(),e=vwe(),r=wwe(),n=rK(),a=jwe(),i=TC(),o=200;function l(c,u,d){var h=-1,m=e,g=c.length,b=!0,y=[],v=y;if(d)b=!1,m=r;else if(g>=o){var N=u?null:a(c);if(N)return i(N);b=!1,m=n,v=new t}else v=u?[]:y;e:for(;++h<g;){var S=c[h],j=u?u(S):S;if(S=d||S!==0?S:0,b&&j===j){for(var $=v.length;$--;)if(v[$]===j)continue e;u&&v.push(j),y.push(S)}else m(v,j,d)||(v!==y&&v.push(j),y.push(S))}return y}return r8=l,r8}var n8,XI;function Swe(){if(XI)return n8;XI=1;var t=pc(),e=kwe();function r(n,a){return n&&n.length?e(n,t(a,2)):[]}return n8=r,n8}var Cwe=Swe();const JI=ar(Cwe);function fK(t,e,r){return e===!0?JI(t,r):Pt(e)?JI(t,e):t}function _h(t){"@babel/helpers - typeof";return _h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_h(t)}var $we=["ref"];function QI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function vo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?QI(Object(r),!0).forEach(function(n){Xy(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):QI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _we(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ZI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mK(n.key),n)}}function Awe(t,e,r){return e&&ZI(t.prototype,e),r&&ZI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ewe(t,e,r){return e=Px(e),Owe(t,pK()?Reflect.construct(e,r||[],Px(t).constructor):e.apply(t,r))}function Owe(t,e){if(e&&(_h(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pwe(t)}function Pwe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pK(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pK=function(){return!!t})()}function Px(t){return Px=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Px(t)}function Mwe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&BN(t,e)}function BN(t,e){return BN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},BN(t,e)}function Xy(t,e,r){return e=mK(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mK(t){var e=Twe(t,"string");return _h(e)=="symbol"?e:e+""}function Twe(t,e){if(_h(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(_h(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Rwe(t,e){if(t==null)return{};var r=Iwe(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Iwe(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Dwe(t){return t.value}function Lwe(t,e){if(z.isValidElement(t))return z.cloneElement(t,e);if(typeof t=="function")return z.createElement(t,e);e.ref;var r=Rwe(e,$we);return z.createElement(MC,r)}var eD=1,bu=(function(t){function e(){var r;_we(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Ewe(this,e,[].concat(a)),Xy(r,"lastBoundingBox",{width:-1,height:-1}),r}return Mwe(e,t),Awe(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>eD||Math.abs(a.height-this.lastBoundingBox.height)>eD)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?vo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,o=a.align,l=a.verticalAlign,c=a.margin,u=a.chartWidth,d=a.chartHeight,h,m;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var g=this.getBBoxSnapshot();h={left:((u||0)-g.width)/2}}else h=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();m={top:((d||0)-b.height)/2}}else m=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return vo(vo({},h),m)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,o=a.width,l=a.height,c=a.wrapperStyle,u=a.payloadUniqBy,d=a.payload,h=vo(vo({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return z.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(g){n.wrapperNode=g}},Lwe(i,vo(vo({},this.props),{},{payload:fK(d,u,Dwe)})))}}],[{key:"getWithHeight",value:function(n,a){var i=vo(vo({},this.defaultProps),n.props),o=i.layout;return o==="vertical"&&ze(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||a}:null}}])})(w.PureComponent);Xy(bu,"displayName","Legend");Xy(bu,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var a8,tD;function Bwe(){if(tD)return a8;tD=1;var t=J0(),e=RC(),r=Ba(),n=t?t.isConcatSpreadable:void 0;function a(i){return r(i)||e(i)||!!(n&&i&&i[n])}return a8=a,a8}var s8,rD;function gK(){if(rD)return s8;rD=1;var t=aK(),e=Bwe();function r(n,a,i,o,l){var c=-1,u=n.length;for(i||(i=e),l||(l=[]);++c<u;){var d=n[c];a>0&&i(d)?a>1?r(d,a-1,i,o,l):t(l,d):o||(l[l.length]=d)}return l}return s8=r,s8}var i8,nD;function Hwe(){if(nD)return i8;nD=1;function t(e){return function(r,n,a){for(var i=-1,o=Object(r),l=a(r),c=l.length;c--;){var u=l[e?c:++i];if(n(o[u],u,o)===!1)break}return r}}return i8=t,i8}var o8,aD;function Fwe(){if(aD)return o8;aD=1;var t=Hwe(),e=t();return o8=e,o8}var l8,sD;function bK(){if(sD)return l8;sD=1;var t=Fwe(),e=Yy();function r(n,a){return n&&t(n,a,e)}return l8=r,l8}var c8,iD;function zwe(){if(iD)return c8;iD=1;var t=Z0();function e(r,n){return function(a,i){if(a==null)return a;if(!t(a))return r(a,i);for(var o=a.length,l=n?o:-1,c=Object(a);(n?l--:++l<o)&&i(c[l],l,c)!==!1;);return a}}return c8=e,c8}var u8,oD;function BC(){if(oD)return u8;oD=1;var t=bK(),e=zwe(),r=e(t);return u8=r,u8}var d8,lD;function xK(){if(lD)return d8;lD=1;var t=BC(),e=Z0();function r(n,a){var i=-1,o=e(n)?Array(n.length):[];return t(n,function(l,c,u){o[++i]=a(l,c,u)}),o}return d8=r,d8}var h8,cD;function Vwe(){if(cD)return h8;cD=1;function t(e,r){var n=e.length;for(e.sort(r);n--;)e[n]=e[n].value;return e}return h8=t,h8}var f8,uD;function Uwe(){if(uD)return f8;uD=1;var t=wf();function e(r,n){if(r!==n){var a=r!==void 0,i=r===null,o=r===r,l=t(r),c=n!==void 0,u=n===null,d=n===n,h=t(n);if(!u&&!h&&!l&&r>n||l&&c&&d&&!u&&!h||i&&c&&d||!a&&d||!o)return 1;if(!i&&!l&&!h&&r<n||h&&a&&o&&!i&&!l||u&&a&&o||!c&&o||!d)return-1}return 0}return f8=e,f8}var p8,dD;function qwe(){if(dD)return p8;dD=1;var t=Uwe();function e(r,n,a){for(var i=-1,o=r.criteria,l=n.criteria,c=o.length,u=a.length;++i<c;){var d=t(o[i],l[i]);if(d){if(i>=u)return d;var h=a[i];return d*(h=="desc"?-1:1)}}return r.index-n.index}return p8=e,p8}var m8,hD;function Wwe(){if(hD)return m8;hD=1;var t=SC(),e=CC(),r=pc(),n=xK(),a=Vwe(),i=iK(),o=qwe(),l=Sf(),c=Ba();function u(d,h,m){h.length?h=t(h,function(y){return c(y)?function(v){return e(v,y.length===1?y[0]:y)}:y}):h=[l];var g=-1;h=t(h,i(r));var b=n(d,function(y,v,N){var S=t(h,function(j){return j(y)});return{criteria:S,index:++g,value:y}});return a(b,function(y,v){return o(y,v,m)})}return m8=u,m8}var g8,fD;function Gwe(){if(fD)return g8;fD=1;function t(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}return g8=t,g8}var b8,pD;function Kwe(){if(pD)return b8;pD=1;var t=Gwe(),e=Math.max;function r(n,a,i){return a=e(a===void 0?n.length-1:a,0),function(){for(var o=arguments,l=-1,c=e(o.length-a,0),u=Array(c);++l<c;)u[l]=o[a+l];l=-1;for(var d=Array(a+1);++l<a;)d[l]=o[l];return d[a]=i(u),t(n,this,d)}}return b8=r,b8}var x8,mD;
vendor: 1,148 bytes, line 1177
1177function Ywe(){if(mD)return x8;mD=1;function t(e){return function(){return e}}return x8=t,x8}var y8,gD;function yK(){if(gD)return y8;gD=1;var t=Vu(),e=(function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch{}})();return y8=e,y8}var v8,bD;function Xwe(){if(bD)return v8;bD=1;var t=Ywe(),e=yK(),r=Sf(),n=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:r;return v8=n,v8}var w8,xD;function Jwe(){if(xD)return w8;xD=1;var t=800,e=16,r=Date.now;function n(a){var i=0,o=0;return function(){var l=r(),c=e-(l-o);if(o=l,c>0){if(++i>=t)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return w8=n,w8}var N8,yD;function Qwe(){if(yD)return N8;yD=1;var t=Xwe(),e=Jwe(),r=e(t);return N8=r,N8}var j8,vD;function Zwe(){if(vD)return j8;vD=1;var t=Sf(),e=Kwe(),r=Qwe();function n(a,i){return r(e(a,i,t),a+"")}return j8=n,j8}var k8,wD;function Jy(){if(wD)return k8;wD=1;var t=NC(),e=Z0(),r=IC(),n=fc();function a(i,o,l){if(!n(l))return!1;var c=typeof o;return(c=="number"?e(l)&&r(o,l.length):c=="string"&&o in l)?t(l[o],i):!1}return k8=a,k8}var S8,ND;function e6e(){if(ND)return S8;ND=1;
vendor: 31,186 bytes, lines 1177-1185
1177var t=gK(),e=Wwe(),r=Zwe(),n=Jy(),a=r(function(i,o){if(i==null)return[];var l=o.length;return l>1&&n(i,o[0],o[1])?o=[]:l>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),e(i,t(o,1),[])});return S8=a,S8}var t6e=e6e();const HC=ar(t6e);function Fm(t){"@babel/helpers - typeof";return Fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fm(t)}function HN(){return HN=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},HN.apply(this,arguments)}function r6e(t,e){return i6e(t)||s6e(t,e)||a6e(t,e)||n6e()}function n6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1178In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a6e(t,e){if(t){if(typeof t=="string")return jD(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jD(t,e)}}function jD(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s6e(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function i6e(t){if(Array.isArray(t))return t}function kD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function C8(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kD(Object(r),!0).forEach(function(n){o6e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function o6e(t,e,r){return e=l6e(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l6e(t){var e=c6e(t,"string");return Fm(e)=="symbol"?e:e+""}function c6e(t,e){if(Fm(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Fm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function u6e(t){return Array.isArray(t)&&gn(t[0])&&gn(t[1])?t.join(" ~ "):t}var d6e=function(e){var r=e.separator,n=r===void 0?" : ":r,a=e.contentStyle,i=a===void 0?{}:a,o=e.itemStyle,l=o===void 0?{}:o,c=e.labelStyle,u=c===void 0?{}:c,d=e.payload,h=e.formatter,m=e.itemSorter,g=e.wrapperClassName,b=e.labelClassName,y=e.label,v=e.labelFormatter,N=e.accessibilityLayer,S=N===void 0?!1:N,j=function(){if(d&&d.length){var R={padding:0,margin:0},F=(m?HC(d,m):d).map(function(L,q){if(L.type==="none")return null;var G=C8({display:"block",paddingTop:4,paddingBottom:4,color:L.color||"#000"},l),B=L.formatter||h||u6e,H=L.value,K=L.name,Z=H,V=K;if(B&&Z!=null&&V!=null){var U=B(H,K,L,q,d);if(Array.isArray(U)){var Y=r6e(U,2);Z=Y[0],V=Y[1]}else Z=U}return z.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(q),style:G},gn(V)?z.createElement("span",{className:"recharts-tooltip-item-name"},V):null,gn(V)?z.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,z.createElement("span",{className:"recharts-tooltip-item-value"},Z),z.createElement("span",{className:"recharts-tooltip-item-unit"},L.unit||""))});return z.createElement("ul",{className:"recharts-tooltip-item-list",style:R},F)}return null},$=C8({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),C=C8({margin:0},u),_=!Ft(y),O=_?y:"",E=zt("recharts-default-tooltip",g),P=zt("recharts-tooltip-label",b);_&&v&&d!==void 0&&d!==null&&(O=v(y,d));var T=S?{role:"status","aria-live":"assertive"}:{};return z.createElement("div",HN({className:E,style:$},T),z.createElement("p",{className:P,style:C},z.isValidElement(O)?O:"".concat(O)),j())};function zm(t){"@babel/helpers - typeof";return zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zm(t)}function Kg(t,e,r){return e=h6e(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h6e(t){var e=f6e(t,"string");return zm(e)=="symbol"?e:e+""}function f6e(t,e){if(zm(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(zm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Sp="recharts-tooltip-wrapper",p6e={visibility:"hidden"};function m6e(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return zt(Sp,Kg(Kg(Kg(Kg({},"".concat(Sp,"-right"),ze(r)&&e&&ze(e.x)&&r>=e.x),"".concat(Sp,"-left"),ze(r)&&e&&ze(e.x)&&r<e.x),"".concat(Sp,"-bottom"),ze(n)&&e&&ze(e.y)&&n>=e.y),"".concat(Sp,"-top"),ze(n)&&e&&ze(e.y)&&n<e.y))}function SD(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,a=t.offsetTopLeft,i=t.position,o=t.reverseDirection,l=t.tooltipDimension,c=t.viewBox,u=t.viewBoxDimension;if(i&&ze(i[n]))return i[n];var d=r[n]-l-a,h=r[n]+a;if(e[n])return o[n]?d:h;if(o[n]){var m=d,g=c[n];return m<g?Math.max(h,c[n]):Math.max(d,c[n])}var b=h+l,y=c[n]+u;return b>y?Math.max(d,c[n]):Math.max(h,c[n])}function g6e(t){var e=t.translateX,r=t.translateY,n=t.useTranslate3d;return{transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}function b6e(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.offsetTopLeft,a=t.position,i=t.reverseDirection,o=t.tooltipBox,l=t.useTranslate3d,c=t.viewBox,u,d,h;return o.height>0&&o.width>0&&r?(d=SD({allowEscapeViewBox:e,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),h=SD({allowEscapeViewBox:e,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=g6e({translateX:d,translateY:h,useTranslate3d:l})):u=p6e,{cssProperties:u,cssClasses:m6e({translateX:d,translateY:h,coordinate:r})}}function Ah(t){"@babel/helpers - typeof";return Ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ah(t)}function CD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function $D(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?CD(Object(r),!0).forEach(function(n){zN(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):CD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function x6e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y6e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wK(n.key),n)}}function v6e(t,e,r){return e&&y6e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function w6e(t,e,r){return e=Mx(e),N6e(t,vK()?Reflect.construct(e,r||[],Mx(t).constructor):e.apply(t,r))}function N6e(t,e){if(e&&(Ah(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j6e(t)}function j6e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vK(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vK=function(){return!!t})()}function Mx(t){return Mx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mx(t)}function k6e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&FN(t,e)}function FN(t,e){return FN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},FN(t,e)}function zN(t,e,r){return e=wK(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wK(t){var e=S6e(t,"string");return Ah(e)=="symbol"?e:e+""}function S6e(t,e){if(Ah(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ah(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var _D=1,C6e=(function(t){function e(){var r;x6e(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=w6e(this,e,[].concat(a)),zN(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),zN(r,"handleKeyDown",function(o){if(o.key==="Escape"){var l,c,u,d;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&l!==void 0?l:0,y:(u=(d=r.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),r}return k6e(e,t),v6e(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>_D||Math.abs(n.height-this.state.lastBoundingBox.height)>_D)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,c=a.animationEasing,u=a.children,d=a.coordinate,h=a.hasPayload,m=a.isAnimationActive,g=a.offset,b=a.position,y=a.reverseDirection,v=a.useTranslate3d,N=a.viewBox,S=a.wrapperStyle,j=b6e({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:g,position:b,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:N}),$=j.cssClasses,C=j.cssProperties,_=$D($D({transition:m&&i?"transform ".concat(l,"ms ").concat(c):void 0},C),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&h?"visible":"hidden",position:"absolute",top:0,left:0},S);return z.createElement("div",{tabIndex:-1,className:$,style:_,ref:function(E){n.wrapperNode=E}},u)}}])})(w.PureComponent),$6e=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Uu={isSsr:$6e()};function Eh(t){"@babel/helpers - typeof";return Eh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eh(t)}function AD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ED(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?AD(Object(r),!0).forEach(function(n){FC(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):AD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _6e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A6e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jK(n.key),n)}}function E6e(t,e,r){return e&&A6e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function O6e(t,e,r){return e=Tx(e),P6e(t,NK()?Reflect.construct(e,r||[],Tx(t).constructor):e.apply(t,r))}function P6e(t,e){if(e&&(Eh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M6e(t)}function M6e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function NK(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NK=function(){return!!t})()}function Tx(t){return Tx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tx(t)}function T6e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&VN(t,e)}function VN(t,e){return VN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},VN(t,e)}function FC(t,e,r){return e=jK(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jK(t){var e=R6e(t,"string");return Eh(e)=="symbol"?e:e+""}function R6e(t,e){if(Eh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Eh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function I6e(t){return t.dataKey}function D6e(t,e){return z.isValidElement(t)?z.cloneElement(t,e):typeof t=="function"?z.createElement(t,e):z.createElement(d6e,e)}var si=(function(t){function e(){return _6e(this,e),O6e(this,e,arguments)}return T6e(e,t),E6e(e,[{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,c=a.animationEasing,u=a.content,d=a.coordinate,h=a.filterNull,m=a.isAnimationActive,g=a.offset,b=a.payload,y=a.payloadUniqBy,v=a.position,N=a.reverseDirection,S=a.useTranslate3d,j=a.viewBox,$=a.wrapperStyle,C=b??[];h&&C.length&&(C=fK(b.filter(function(O){return O.value!=null&&(O.hide!==!0||n.props.includeHidden)}),y,I6e));var _=C.length>0;return z.createElement(C6e,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:m,active:i,coordinate:d,hasPayload:_,offset:g,position:v,reverseDirection:N,useTranslate3d:S,viewBox:j,wrapperStyle:$},D6e(u,ED(ED({},this.props),{},{payload:C})))}}])})(w.PureComponent);FC(si,"displayName","Tooltip");FC(si,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Uu.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var $8,OD;function L6e(){if(OD)return $8;OD=1;var t=ro(),e=function(){return t.Date.now()};return $8=e,$8}var _8,PD;function B6e(){if(PD)return _8;PD=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return _8=e,_8}var A8,MD;function H6e(){if(MD)return A8;MD=1;var t=B6e(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return A8=r,A8}var E8,TD;function kK(){if(TD)return E8;TD=1;var t=H6e(),e=fc(),r=wf(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function c(u){if(typeof u=="number")return u;if(r(u))return n;if(e(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=e(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=t(u);var h=i.test(u);return h||o.test(u)?l(u.slice(2),h?2:8):a.test(u)?n:+u}return E8=c,E8}var O8,RD;function F6e(){if(RD)return O8;RD=1;var t=fc(),e=L6e(),r=kK(),n="Expected a function",a=Math.max,i=Math.min;function o(l,c,u){var d,h,m,g,b,y,v=0,N=!1,S=!1,j=!0;if(typeof l!="function")throw new TypeError(n);c=r(c)||0,t(u)&&(N=!!u.leading,S="maxWait"in u,m=S?a(r(u.maxWait)||0,c):m,j="trailing"in u?!!u.trailing:j);function $(F){var L=d,q=h;return d=h=void 0,v=F,g=l.apply(q,L),g}function C(F){return v=F,b=setTimeout(E,c),N?$(F):g}function _(F){var L=F-y,q=F-v,G=c-L;return S?i(G,m-q):G}function O(F){var L=F-y,q=F-v;return y===void 0||L>=c||L<0||S&&q>=m}function E(){var F=e();if(O(F))return P(F);b=setTimeout(E,_(F))}function P(F){return b=void 0,j&&d?$(F):(d=h=void 0,g)}function T(){b!==void 0&&clearTimeout(b),v=0,d=y=h=b=void 0}function I(){return b===void 0?g:P(e())}function R(){var F=e(),L=O(F);if(d=arguments,h=this,y=F,L){if(b===void 0)return C(y);if(S)return clearTimeout(b),b=setTimeout(E,c),$(y)}return b===void 0&&(b=setTimeout(E,c)),g}return R.cancel=T,R.flush=I,R}return O8=o,O8}var P8,ID;function z6e(){if(ID)return P8;ID=1;var t=F6e(),e=fc(),r="Expected a function";function n(a,i,o){var l=!0,c=!0;if(typeof a!="function")throw new TypeError(r);return e(o)&&(l="leading"in o?!!o.leading:l,c="trailing"in o?!!o.trailing:c),t(a,i,{leading:l,maxWait:i,trailing:c})}return P8=n,P8}var V6e=z6e();const SK=ar(V6e);function Vm(t){"@babel/helpers - typeof";return Vm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vm(t)}function DD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Yg(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?DD(Object(r),!0).forEach(function(n){U6e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function U6e(t,e,r){return e=q6e(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function q6e(t){var e=W6e(t,"string");return Vm(e)=="symbol"?e:e+""}function W6e(t,e){if(Vm(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Vm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function G6e(t,e){return J6e(t)||X6e(t,e)||Y6e(t,e)||K6e()}function K6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1179In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y6e(t,e){if(t){if(typeof t=="string")return LD(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LD(t,e)}}function LD(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function X6e(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function J6e(t){if(Array.isArray(t))return t}var BD=w.forwardRef(function(t,e){var r=t.aspect,n=t.initialDimension,a=n===void 0?{width:-1,height:-1}:n,i=t.width,o=i===void 0?"100%":i,l=t.height,c=l===void 0?"100%":l,u=t.minWidth,d=u===void 0?0:u,h=t.minHeight,m=t.maxHeight,g=t.children,b=t.debounce,y=b===void 0?0:b,v=t.id,N=t.className,S=t.onResize,j=t.style,$=j===void 0?{}:j,C=w.useRef(null),_=w.useRef();_.current=S,w.useImperativeHandle(e,function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})});var O=w.useState({containerWidth:a.width,containerHeight:a.height}),E=G6e(O,2),P=E[0],T=E[1],I=w.useCallback(function(F,L){T(function(q){var G=Math.round(F),B=Math.round(L);return q.containerWidth===G&&q.containerHeight===B?q:{containerWidth:G,containerHeight:B}})},[]);w.useEffect(function(){var F=function(K){var Z,V=K[0].contentRect,U=V.width,Y=V.height;I(U,Y),(Z=_.current)===null||Z===void 0||Z.call(_,U,Y)};y>0&&(F=SK(F,y,{trailing:!0,leading:!1}));var L=new ResizeObserver(F),q=C.current.getBoundingClientRect(),G=q.width,B=q.height;return I(G,B),L.observe(C.current),function(){L.disconnect()}},[I,y]);var R=w.useMemo(function(){var F=P.containerWidth,L=P.containerHeight;if(F<0||L<0)return null;Ho(su(o)||su(c),`The width(%s) and height(%s) are both fixed numbers, 1180 maybe you don't need to use a ResponsiveContainer.`,o,c),Ho(!r||r>0,"The aspect(%s) must be greater than zero.",r);var q=su(o)?F:o,G=su(c)?L:c;r&&r>0&&(q?G=q/r:G&&(q=G*r),m&&G>m&&(G=m)),Ho(q>0||G>0,`The width(%s) and height(%s) of chart should be greater than 0, 1181 please check the style of container, or the props width(%s) and height(%s), 1182 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 1183 height and width.`,q,G,o,c,d,h,r);var B=!Array.isArray(g)&&Bo(g.type).endsWith("Chart");return z.Children.map(g,function(H){return z.isValidElement(H)?w.cloneElement(H,Yg({width:q,height:G},B?{style:Yg({height:"100%",width:"100%",maxHeight:G,maxWidth:q},H.props.style)}:{})):H})},[r,g,c,m,h,d,P,o]);return z.createElement("div",{id:v?"".concat(v):void 0,className:zt("recharts-responsive-container",N),style:Yg(Yg({},$),{},{width:o,height:c,minWidth:d,minHeight:h,maxHeight:m}),ref:C},R)}),CK=function(e){return null};CK.displayName="Cell";function Um(t){"@babel/helpers - typeof";return Um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Um(t)}function HD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function UN(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?HD(Object(r),!0).forEach(function(n){Q6e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Q6e(t,e,r){return e=Z6e(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Z6e(t){var e=e8e(t,"string");return Um(e)=="symbol"?e:e+""}function e8e(t,e){if(Um(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Um(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Od={widthCache:{},cacheCount:0},t8e=2e3,r8e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},FD="recharts_measurement_span";function n8e(t){var e=UN({},t);return Object.keys(e).forEach(function(r){e[r]||delete e[r]}),e}var lm=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||Uu.isSsr)return{width:0,height:0};var n=n8e(r),a=JSON.stringify({text:e,copyStyle:n});if(Od.widthCache[a])return Od.widthCache[a];try{var i=document.getElementById(FD);i||(i=document.createElement("span"),i.setAttribute("id",FD),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=UN(UN({},r8e),n);Object.assign(i.style,o),i.textContent="".concat(e);var l=i.getBoundingClientRect(),c={width:l.width,height:l.height};return Od.widthCache[a]=c,++Od.cacheCount>t8e&&(Od.cacheCount=0,Od.widthCache={}),c}catch{return{width:0,height:0}}},a8e=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function qm(t){"@babel/helpers - typeof";return qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qm(t)}function Rx(t,e){return l8e(t)||o8e(t,e)||i8e(t,e)||s8e()}function s8e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1184In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i8e(t,e){if(t){if(typeof t=="string")return zD(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zD(t,e)}}function zD(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function o8e(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function l8e(t){if(Array.isArray(t))return t}function c8e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function VD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d8e(n.key),n)}}function u8e(t,e,r){return e&&VD(t.prototype,e),r&&VD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function d8e(t){var e=h8e(t,"string");return qm(e)=="symbol"?e:e+""}function h8e(t,e){if(qm(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(qm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var UD=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qD=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,f8e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,p8e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,$K={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},m8e=Object.keys($K),nh="NaN";function g8e(t,e){return t*$K[e]}var Xg=(function(){function t(e,r){c8e(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),r!==""&&!f8e.test(r)&&(this.num=NaN,this.unit=""),m8e.includes(r)&&(this.num=g8e(e,r),this.unit="px")}return u8e(t,[{key:"add",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,a=(n=p8e.exec(r))!==null&&n!==void 0?n:[],i=Rx(a,3),o=i[1],l=i[2];return new t(parseFloat(o),l??"")}}])})();function _K(t){if(t.includes(nh))return nh;for(var e=t;e.includes("*")||e.includes("/");){var r,n=(r=UD.exec(e))!==null&&r!==void 0?r:[],a=Rx(n,4),i=a[1],o=a[2],l=a[3],c=Xg.parse(i??""),u=Xg.parse(l??""),d=o==="*"?c.multiply(u):c.divide(u);if(d.isNaN())return nh;e=e.replace(UD,d.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var h,m=(h=qD.exec(e))!==null&&h!==void 0?h:[],g=Rx(m,4),b=g[1],y=g[2],v=g[3],N=Xg.parse(b??""),S=Xg.parse(v??""),j=y==="+"?N.add(S):N.subtract(S);if(j.isNaN())return nh;e=e.replace(qD,j.toString())}return e}var WD=/\(([^()]*)\)/;function b8e(t){for(var e=t;e.includes("(");){var r=WD.exec(e),n=Rx(r,2),a=n[1];e=e.replace(WD,_K(a))}return e}function x8e(t){var e=t.replace(/\s+/g,"");return e=b8e(e),e=_K(e),e}function y8e(t){try{return x8e(t)}catch{return nh}}function M8(t){var e=y8e(t.slice(5,-1));return e===nh?"":e}var v8e=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],w8e=["dx","dy","angle","className","breakAll"];function qN(){return qN=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qN.apply(this,arguments)}function GD(t,e){if(t==null)return{};var r=N8e(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function N8e(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function KD(t,e){return C8e(t)||S8e(t,e)||k8e(t,e)||j8e()}function j8e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1185In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k8e(t,e){if(t){if(typeof t=="string")return YD(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return YD(t,e)}}function YD(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function S8e(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(d){u=!0,a=d}
1185finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function C8e(t){if(Array.isArray(t))return t}var AK=/[ \f\n\r\t\v\u2028\u2029]+/,EK=function(e){var r=e.children,n=e.breakAll,a=e.style;try{var i=[];Ft(r)||(n?i=r.toString().split(""):i=r.toString().split(AK));var o=i.map(function(c){return{word:c,width:lm(c,a).width}}),l=n?0:lm(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},$8e=function(e,r,n,a,i){var o=e.maxLines,l=e.children,c=e.style,u=e.breakAll,d=ze(o),h=l,m=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return q.reduce(function(G,B){var H=B.word,K=B.width,Z=G[G.length-1];if(Z&&(a==null||i||Z.width+K+n<Number(a)))Z.words.push(H),Z.width+=K+n;else{var V={words:[H],width:K};G.push(V)}return G},[])},g=m(r),b=function(q){return q.reduce(function(G,B){return G.width>B.width?G:B})};if(!d)return g;for(var y="â¦",v=function(q){var G=h.slice(0,q),B=EK({breakAll:u,style:c,children:G+y}).wordsWithComputedWidth,H=m(B),K=H.length>o||b(H).width>Number(a);return[K,H]},N=0,S=h.length-1,j=0,$;N<=S&&j<=h.length-1;){var C=Math.floor((N+S)/2),_=C-1,O=v(_),E=KD(O,2),P=E[0],T=E[1],I=v(C),R=KD(I,1),F=R[0];if(!P&&!F&&(N=C+1),P&&F&&(S=C-1),!P&&F){$=T;break}j++}return $||g},XD=function(e){var r=Ft(e)?[]:e.toString().split(AK);return[{words:r}]},_8e=function(e){var r=e.width,n=e.scaleToFit,a=e.children,i=e.style,o=e.breakAll,l=e.maxLines;if((r||n)&&!Uu.isSsr){var c,u,d=EK({breakAll:o,children:a,style:i});if(d){var h=d.wordsWithComputedWidth,m=d.spaceWidth;c=h,u=m}else return XD(a);return $8e({breakAll:o,children:a,maxLines:l,style:i},c,u,r,n)}return XD(a)},JD="#808080",Ix=function(e){var r=e.x,n=r===void 0?0:r,a=e.y,i=a===void 0?0:a,o=e.lineHeight,l=o===void 0?"1em":o,c=e.capHeight,u=c===void 0?"0.71em":c,d=e.scaleToFit,h=d===void 0?!1:d,m=e.textAnchor,g=m===void 0?"start":m,b=e.verticalAnchor,y=b===void 0?"end":b,v=e.fill,N=v===void 0?JD:v,S=GD(e,v8e),j=w.useMemo(function(){return _8e({breakAll:S.breakAll,children:S.children,maxLines:S.maxLines,scaleToFit:h,style:S.style,width:S.width})},[S.breakAll,S.children,S.maxLines,h,S.style,S.width]),$=S.dx,C=S.dy,_=S.angle,O=S.className,E=S.breakAll,P=GD(S,w8e);if(!gn(n)||!gn(i))return null;var T=n+(ze($)?$:0),I=i+(ze(C)?C:0),R;switch(y){case"start":R=M8("calc(".concat(u,")"));break;case"middle":R=M8("calc(".concat((j.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:R=M8("calc(".concat(j.length-1," * -").concat(l,")"));break}var F=[];if(h){var L=j[0].width,q=S.width;F.push("scale(".concat((ze(q)?q/L:1)/L,")"))}return _&&F.push("rotate(".concat(_,", ").concat(T,", ").concat(I,")")),F.length&&(P.transform=F.join(" ")),z.createElement("text",qN({},Mt(P,!0),{x:T,y:I,className:zt("recharts-text",O),textAnchor:g,fill:N.includes("url")?JD:N}),j.map(function(G,B){var H=G.words.join(E?"":" ");return z.createElement("tspan",{x:T,dy:B===0?R:l,key:"".concat(H,"-").concat(B)},H)}))};function Ql(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function A8e(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function zC(t){let e,r,n;t.length!==2?(e=Ql,r=(l,c)=>Ql(t(l),c),n=(l,c)=>t(l)-c):(e=t===Ql||t===A8e?t:E8e,r=t,n=t);function a(l,c,u=0,d=l.length){if(u<d){if(e(c,c)!==0)return d;do{const h=u+d>>>1;r(l[h],c)<0?u=h+1:d=h}while(u<d)}return u}function i(l,c,u=0,d=l.length){if(u<d){if(e(c,c)!==0)return d;do{const h=u+d>>>1;r(l[h],c)<=0?u=h+1:d=h}while(u<d)}return u}function o(l,c,u=0,d=l.length){const h=a(l,c,u,d-1);return h>u&&n(l[h-1],c)>-n(l[h],c)?h-1:h}return{left:a,center:o,right:i}}function E8e(){return 0}function OK(t){return t===null?NaN:+t}function*O8e(t,e){for(let r of t)r!=null&&(r=+r)>=r&&(yield r)}const P8e=zC(Ql),e1=P8e.right;zC(OK).center;class QD extends Map{constructor(e,r=R8e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,a]of e)this.set(n,a)}get(e){return super.get(ZD(this,e))}has(e){return super.has(ZD(this,e))}set(e,r){return super.set(M8e(this,e),r)}delete(e){return super.delete(T8e(this,e))}}function ZD({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function M8e({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function T8e({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function R8e(t){return t!==null&&typeof t=="object"?t.valueOf():t}function I8e(t=Ql){if(t===Ql)return PK;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||n===0?n:(t(r,r)===0)-(t(e,e)===0)}}function PK(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}const D8e=Math.sqrt(50),L8e=Math.sqrt(10),B8e=Math.sqrt(2);function Dx(t,e,r){const n=(e-t)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=D8e?10:i>=L8e?5:i>=B8e?2:1;let l,c,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(t*u),c=Math.round(e*u),l/u<t&&++l,c/u>e&&--c,u=-u):(u=Math.pow(10,a)*o,l=Math.round(t/u),c=Math.round(e/u),l*u<t&&++l,c*u>e&&--c),c<l&&.5<=r&&r<2?Dx(t,e,r*2):[l,c,u]}function WN(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const n=e<t,[a,i,o]=n?Dx(e,t,r):Dx(t,e,r);
1185if(!(i>=a))return[];const l=i-a+1,c=new Array(l);if(n)if(o<0)for(let u=0;u<l;++u)c[u]=(i-u)/-o;else for(let u=0;u<l;++u)c[u]=(i-u)*o;else if(o<0)for(let u=0;u<l;++u)c[u]=(a+u)/-o;else for(let u=0;u<l;++u)c[u]=(a+u)*o;return c}function GN(t,e,r){return e=+e,t=+t,r=+r,Dx(t,e,r)[2]}function KN(t,e,r){e=+e,t=+t,r=+r;const n=e<t,a=n?GN(e,t,r):GN(t,e,r);return(n?-1:1)*(a<0?1/-a:a)}function eL(t,e){let r;for(const n of t)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function tL(t,e){let r;for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function MK(t,e,r=0,n=1/0,a){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(a=a===void 0?PK:I8e(a);n>r;){if(n-r>600){const c=n-r+1,u=e-r+1,d=Math.log(c),h=.5*Math.exp(2*d/3),m=.5*Math.sqrt(d*h*(c-h)/c)*(u-c/2<0?-1:1),g=Math.max(r,Math.floor(e-u*h/c+m)),b=Math.min(n,Math.floor(e+(c-u)*h/c+m));MK(t,e,g,b,a)}const i=t[e];let o=r,l=n;for(Cp(t,r,e),a(t[n],i)>0&&Cp(t,r,n);o<l;){for(Cp(t,o,l),++o,--l;a(t[o],i)<0;)++o;for(;a(t[l],i)>0;)--l}a(t[r],i)===0?Cp(t,r,l):(++l,Cp(t,l,n)),l<=e&&(r=l+1),e<=l&&(n=l-1)}return t}function Cp(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function H8e(t,e,r){if(t=Float64Array.from(O8e(t)),!(!(n=t.length)||isNaN(e=+e))){if(e<=0||n<2)return tL(t);if(e>=1)return eL(t);var n,a=(n-1)*e,i=Math.floor(a),o=eL(MK(t,i).subarray(0,i+1)),l=tL(t.subarray(i+1));return o+(l-o)*(a-i)}}function F8e(t,e,r=OK){if(!(!(n=t.length)||isNaN(e=+e))){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,a=(n-1)*e,i=Math.floor(a),o=+r(t[i],i,t),l=+r(t[i+1],i+1,t);return o+(l-o)*(a-i)}}function z8e(t,e,r){t=+t,e=+e,r=(a=arguments.length)<2?(e=t,t=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((e-t)/r))|0,i=new Array(a);++n<a;)i[n]=t+n*r;return i}function Vs(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function il(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const YN=Symbol("implicit");function VC(){var t=new QD,e=[],r=[],n=YN;function a(i){let o=t.get(i);if(o===void 0){if(n!==YN)return n;t.set(i,o=e.push(i)-1)}return r[o%r.length]}return a.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new QD;for(const o of i)t.has(o)||t.set(o,e.push(o)-1);return a},a.range=function(i){return arguments.length?(r=Array.from(i),a):r.slice()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return VC(e,r).unknown(n)},Vs.apply(a,arguments),a}function Wm(){var t=VC().unknown(void 0),e=t.domain,r=t.range,n=0,a=1,i,o,l=!1,c=0,u=0,d=.5;delete t.unknown;function h(){var m=e().length,g=a<n,b=g?a:n,y=g?n:a;i=(y-b)/Math.max(1,m-c+u*2),l&&(i=Math.floor(i)),b+=(y-b-i*(m-c))*d,o=i*(1-c),l&&(b=Math.round(b),o=Math.round(o));var v=z8e(m).map(function(N){return b+i*N});return r(g?v.reverse():v)}return t.domain=function(m){return arguments.length?(e(m),h()):e()},t.range=function(m){return arguments.length?([n,a]=m,n=+n,a=+a,h()):[n,a]},t.rangeRound=function(m){return[n,a]=m,n=+n,a=+a,l=!0,h()},t.bandwidth=function(){return o},t.step=function(){return i},t.round=function(m){return arguments.length?(l=!!m,h()):l},t.padding=function(m){return arguments.length?(c=Math.min(1,u=+m),h()):c},t.paddingInner=function(m){return arguments.length?(c=Math.min(1,m),h()):c},t.paddingOuter=function(m){return arguments.length?(u=+m,h()):u},t.align=function(m){return arguments.length?(d=Math.max(0,Math.min(1,m)),h()):d},t.copy=function(){return Wm(e(),[n,a]).round(l).paddingInner(c).paddingOuter(u).align(d)},Vs.apply(h(),arguments)}function TK(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return TK(e())},t}function cm(){return TK(Wm.apply(null,arguments).paddingInner(1))}function UC(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function RK(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function t1(){}var Gm=.7,Lx=1/Gm,fh="\\s*([+-]?\\d+)\\s*",Km="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ui="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",V8e=/^#([0-9a-f]{3,8})$/,U8e=new RegExp(`^rgb\\(${fh},${fh},${fh}\\)$`),q8e=new RegExp(`^rgb\\(${Ui},${Ui},${Ui}\\)$`),W8e=new RegExp(`^rgba\\(${fh},${fh},${fh},${Km}\\)$`),G8e=new RegExp(`^rgba\\(${Ui},${Ui},${Ui},${Km}\\)$`),K8e=new RegExp(`^hsl\\(${Km},${Ui},${Ui}\\)$`),Y8e=new RegExp(`^hsla\\(${Km},${Ui},${Ui},${Km}\\)$`),rL={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};UC(t1,Ym,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:nL,formatHex:nL,formatHex8:X8e,formatHsl:J8e,formatRgb:aL,toString:aL});function nL(){return this.rgb().formatHex()}function X8e(){return this.rgb().formatHex8()}function J8e(){return IK(this).formatHsl()}function aL(){return this.rgb().formatRgb()}function Ym(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=V8e.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?sL(e):r===3?new Da(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Jg(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Jg(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=U8e.exec(t))?new Da(e[1],e[2],e[3],1):(e=q8e.exec(t))?new Da(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=W8e.exec(t))?Jg(e[1],e[2],e[3],e[4]):(e=G8e.exec(t))?Jg(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=K8e.exec(t))?lL(e[1],e[2]/100,e[3]/100,1):(e=Y8e.exec(t))?lL(e[1],e[2]/100,e[3]/100,e[4]):rL.hasOwnProperty(t)?sL(rL[t]):t==="transparent"?new Da(NaN,NaN,NaN,0):null}function sL(t){return new Da(t>>16&255,t>>8&255,t&255,1)}function Jg(t,e,r,n){return n<=0&&(t=e=r=NaN),new Da(t,e,r,n)}function Q8e(t){return t instanceof t1||(t=Ym(t)),t?(t=t.rgb(),new Da(t.r,t.g,t.b,t.opacity)):new Da}function XN(t,e,r,n){return arguments.length===1?Q8e(t):new Da(t,e,r,n??1)}function Da(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}UC(Da,XN,RK(t1,{brighter(t){return t=t==null?Lx:Math.pow(Lx,t),new Da(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Gm:Math.pow(Gm,t),new Da(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Da(xu(this.r),xu(this.g),xu(this.b),Bx(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:iL,formatHex:iL,formatHex8:Z8e,formatRgb:oL,toString:oL}));function iL(){return`#${iu(this.r)}${iu(this.g)}${iu(this.b)}`}
vendor: 10,054 bytes, line 1185
1185function Z8e(){return`#${iu(this.r)}${iu(this.g)}${iu(this.b)}${iu((isNaN(this.opacity)?1:this.opacity)*255)}`}function oL(){const t=Bx(this.opacity);return`${t===1?"rgb(":"rgba("}${xu(this.r)}, ${xu(this.g)}, ${xu(this.b)}${t===1?")":`, ${t})`}`}function Bx(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function xu(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function iu(t){return t=xu(t),(t<16?"0":"")+t.toString(16)}function lL(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ui(t,e,r,n)}function IK(t){if(t instanceof ui)return new ui(t.h,t.s,t.l,t.opacity);if(t instanceof t1||(t=Ym(t)),!t)return new ui;if(t instanceof ui)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=NaN,l=i-a,c=(i+a)/2;return l?(e===i?o=(r-n)/l+(r<n)*6:r===i?o=(n-e)/l+2:o=(e-r)/l+4,l/=c<.5?i+a:2-i-a,o*=60):l=c>0&&c<1?0:o,new ui(o,l,c,t.opacity)}function e7e(t,e,r,n){return arguments.length===1?IK(t):new ui(t,e,r,n??1)}function ui(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}UC(ui,e7e,RK(t1,{brighter(t){return t=t==null?Lx:Math.pow(Lx,t),new ui(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Gm:Math.pow(Gm,t),new ui(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,a=2*r-n;return new Da(T8(t>=240?t-240:t+120,a,n),T8(t,a,n),T8(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new ui(cL(this.h),Qg(this.s),Qg(this.l),Bx(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Bx(this.opacity);return`${t===1?"hsl(":"hsla("}${cL(this.h)}, ${Qg(this.s)*100}%, ${Qg(this.l)*100}%${t===1?")":`, ${t})`}`}}));function cL(t){return t=(t||0)%360,t<0?t+360:t}function Qg(t){return Math.max(0,Math.min(1,t||0))}function T8(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const qC=t=>()=>t;function t7e(t,e){return function(r){return t+r*e}}function r7e(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function n7e(t){return(t=+t)==1?DK:function(e,r){return r-e?r7e(e,r,t):qC(isNaN(e)?r:e)}}function DK(t,e){var r=e-t;return r?t7e(t,r):qC(isNaN(t)?e:t)}const uL=(function t(e){var r=n7e(e);function n(a,i){var o=r((a=XN(a)).r,(i=XN(i)).r),l=r(a.g,i.g),c=r(a.b,i.b),u=DK(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=l(d),a.b=c(d),a.opacity=u(d),a+""}}return n.gamma=t,n})(1);function a7e(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),a;return function(i){for(a=0;a<r;++a)n[a]=t[a]*(1-i)+e[a]*i;return n}}function s7e(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function i7e(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,a=new Array(n),i=new Array(r),o;for(o=0;o<n;++o)a[o]=Cf(t[o],e[o]);for(;o<r;++o)i[o]=e[o];return function(l){for(o=0;o<n;++o)i[o]=a[o](l);return i}}function o7e(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Hx(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function l7e(t,e){var r={},n={},a;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(a in e)a in t?r[a]=Cf(t[a],e[a]):n[a]=e[a];return function(i){for(a in r)n[a]=r[a](i);return n}}var JN=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,R8=new RegExp(JN.source,"g");function c7e(t){return function(){return t}}function u7e(t){return function(e){return t(e)+""}}function d7e(t,e){var r=JN.lastIndex=R8.lastIndex=0,n,a,i,o=-1,l=[],c=[];for(t=t+"",e=e+"";(n=JN.exec(t))&&(a=R8.exec(e));)(i=a.index)>r&&(i=e.slice(r,i),l[o]?l[o]+=i:l[++o]=i),(n=n[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,c.push({i:o,x:Hx(n,a)})),r=R8.lastIndex;return r<e.length&&(i=e.slice(r),l[o]?l[o]+=i:l[++o]=i),l.length<2?c[0]?u7e(c[0].x):c7e(e):(e=c.length,function(u){for(var d=0,h;d<e;++d)l[(h=c[d]).i]=h.x(u);return l.join("")})}function Cf(t,e){var r=typeof e,n;return e==null||r==="boolean"?qC(e):(r==="number"?Hx:r==="string"?(n=Ym(e))?(e=n,uL):d7e:e instanceof Ym?uL:e instanceof Date?o7e:s7e(e)?a7e:Array.isArray(e)?i7e:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?l7e:Hx)(t,e)}function WC(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function h7e(t,e){e===void 0&&(e=t,t=Cf);for(var r=0,n=e.length-1,a=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(a,a=e[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[l](o-l)}}function f7e(t){return function(){return t}}function Fx(t){return+t}var dL=[0,1];function wa(t){return t}function QN(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:f7e(isNaN(e)?NaN:.5)}function p7e(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function m7e(t,e,r){var n=t[0],a=t[1],i=e[0],o=e[1];return a<n?(n=QN(a,n),i=r(o,i)):(n=QN(n,a),i=r(i,o)),function(l){return i(n(l))}}function g7e(t,e,r){var n=Math.min(t.length,e.length)-1,a=new Array(n),i=new Array(n),o=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<n;)a[o]=QN(t[o],t[o+1]),i[o]=r(e[o],e[o+1]);return function(l){var c=e1(t,l,1,n)-1;return i[c](a[c](l))}}function r1(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Qy(){var t=dL,e=dL,r=Cf,n,a,i,o=wa,l,c,u;function d(){var m=Math.min(t.length,e.length);return o!==wa&&(o=p7e(t[0],t[m-1])),l=m>2?g7e:m7e,c=u=null,h}function h(m){return m==null||isNaN(m=+m)?i:(c||(c=l(t.map(n),e,r)))(n(o(m)))}return h.invert=function(m){return o(a((u||(u=l(e,t.map(n),Hx)))(m)))},h.domain=function(m){return arguments.length?(t=Array.from(m,Fx),d()):t.slice()},h.range=function(m){return arguments.length?(e=Array.from(m),d()):e.slice()},h.rangeRound=function(m){return e=Array.from(m),r=WC,d()},h.clamp=function(m){return arguments.length?(o=m?!0:wa,d()):o!==wa},h.interpolate=function(m){return arguments.length?(r=m,d()):r},h.unknown=function(m){return arguments.length?(i=m,h):i},function(m,g){return n=m,a=g,d()}}function GC(){return Qy()(wa,wa)}function b7e(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function zx(t,e){if(!isFinite(t)||t===0)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Oh(t){return t=zx(Math.abs(t)),t?t[1]:NaN}function x7e(t,e){return function(r,n){for(var a=r.length,i=[],o=0,l=t[0],c=0;a>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),i.push(r.substring(a-=l,a+l)),!((c+=l+1)>n));)l=t[o=(o+1)%t.length];return i.reverse().join(e)}}function y7e(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var v7e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xm(t){if(!(e=v7e.exec(t)))throw new Error("invalid format: "+t);var e;return new KC({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Xm.prototype=KC.prototype;function KC(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}KC.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function w7e(t){e:for(var e=t.length,r=1,n=-1,a;r<e;++r)switch(t[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+t[r])break e;n>0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(a+1):t}var Vx;function N7e(t,e){var r=zx(t,e);if(!r)return Vx=void 0,t.toPrecision(e);var n=r[0],a=r[1],i=a-(Vx=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+zx(t,Math.max(0,e+i-1))[0]}function hL(t,e){var r=zx(t,e);if(!r)return t+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const fL={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:b7e,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>hL(t*100,e),r:hL,s:N7e,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function pL(t){return t}var mL=Array.prototype.map,gL=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function j7e(t){var e=t.grouping===void 0||t.thousands===void 0?pL:x7e(mL.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?pL:y7e(mL.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"â":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(h,m){h=Xm(h);var g=h.fill,b=h.align,y=h.sign,v=h.symbol,N=h.zero,S=h.width,j=h.comma,$=h.precision,C=h.trim,_=h.type;_==="n"?(j=!0,_="g"):fL[_]||($===void 0&&($=12),C=!0,_="g"),(N||g==="0"&&b==="=")&&(N=!0,g="0",b="=");var O=(m&&m.prefix!==void 0?m.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():""),E=(v==="$"?n:/[%p]/.test(_)?o:"")+(m&&m.suffix!==void 0?m.suffix:""),P=fL[_],T=/[defgprs%]/.test(_);$=$===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,$)):Math.max(0,Math.min(20,$));function I(R){var F=O,L=E,q,G,B;if(_==="c")L=P(R)+L,R="";else{R=+R;var H=R<0||1/R<0;if(R=isNaN(R)?c:P(Math.abs(R),$),C&&(R=w7e(R)),H&&+R==0&&y!=="+"&&(H=!1),F=(H?y==="("?y:l:y==="-"||y==="("?"":y)+F,L=(_==="s"&&!isNaN(R)&&Vx!==void 0?gL[8+Vx/3]:"")+L+(H&&y==="("?")":""),T){for(q=-1,G=R.length;++q<G;
vendor: 5,053 bytes, line 1185
1185)if(B=R.charCodeAt(q),48>B||B>57){L=(B===46?a+R.slice(q+1):R.slice(q))+L,R=R.slice(0,q);break}}}j&&!N&&(R=e(R,1/0));var K=F.length+R.length+L.length,Z=K<S?new Array(S-K+1).join(g):"";switch(j&&N&&(R=e(Z+R,Z.length?S-L.length:1/0),Z=""),b){case"<":R=F+R+L+Z;break;case"=":R=F+Z+R+L;break;case"^":R=Z.slice(0,K=Z.length>>1)+F+R+L+Z.slice(K);break;default:R=Z+F+R+L;break}return i(R)}return I.toString=function(){return h+""},I}function d(h,m){var g=Math.max(-8,Math.min(8,Math.floor(Oh(m)/3)))*3,b=Math.pow(10,-g),y=u((h=Xm(h),h.type="f",h),{suffix:gL[8+g/3]});return function(v){return y(b*v)}}return{format:u,formatPrefix:d}}var Zg,YC,LK;k7e({thousands:",",grouping:[3],currency:["$",""]});function k7e(t){return Zg=j7e(t),YC=Zg.format,LK=Zg.formatPrefix,Zg}function S7e(t){return Math.max(0,-Oh(Math.abs(t)))}function C7e(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Oh(e)/3)))*3-Oh(Math.abs(t)))}function $7e(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Oh(e)-Oh(t))+1}function BK(t,e,r,n){var a=KN(t,e,r),i;switch(n=Xm(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(i=C7e(a,o))&&(n.precision=i),LK(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=$7e(a,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=S7e(a))&&(n.precision=i-(n.type==="%")*2);break}}return YC(n)}function mc(t){var e=t.domain;return t.ticks=function(r){var n=e();return WN(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var a=e();return BK(a[0],a[a.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),a=0,i=n.length-1,o=n[a],l=n[i],c,u,d=10;for(l<o&&(u=o,o=l,l=u,u=a,a=i,i=u);d-- >0;){if(u=GN(o,l,r),u===c)return n[a]=o,n[i]=l,e(n);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;c=u}return t},t}function Ux(){var t=GC();return t.copy=function(){return r1(t,Ux())},Vs.apply(t,arguments),mc(t)}function HK(t){var e;function r(n){return n==null||isNaN(n=+n)?e:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(t=Array.from(n,Fx),r):t.slice()},r.unknown=function(n){return arguments.length?(e=n,r):e},r.copy=function(){return HK(t).unknown(e)},t=arguments.length?Array.from(t,Fx):[0,1],mc(r)}function FK(t,e){t=t.slice();var r=0,n=t.length-1,a=t[r],i=t[n],o;return i<a&&(o=r,r=n,n=o,o=a,a=i,i=o),t[r]=e.floor(a),t[n]=e.ceil(i),t}function bL(t){return Math.log(t)}function xL(t){return Math.exp(t)}function _7e(t){return-Math.log(-t)}function A7e(t){return-Math.exp(-t)}function E7e(t){return isFinite(t)?+("1e"+t):t<0?0:t}function O7e(t){return t===10?E7e:t===Math.E?Math.exp:e=>Math.pow(t,e)}function P7e(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function yL(t){return(e,r)=>-t(-e,r)}function XC(t){const e=t(bL,xL),r=e.domain;let n=10,a,i;function o(){return a=P7e(n),i=O7e(n),r()[0]<0?(a=yL(a),i=yL(i),t(_7e,A7e)):t(bL,xL),e}return e.base=function(l){return arguments.length?(n=+l,o()):n},e.domain=function(l){return arguments.length?(r(l),o()):r()},e.ticks=l=>{const c=r();let u=c[0],d=c[c.length-1];const h=d<u;h&&([u,d]=[d,u]);let m=a(u),g=a(d),b,y;const v=l==null?10:+l;let N=[];if(!(n%1)&&g-m<v){if(m=Math.floor(m),g=Math.ceil(g),u>0){for(;m<=g;++m)for(b=1;b<n;++b)if(y=m<0?b/i(-m):b*i(m),!(y<u)){if(y>d)break;N.push(y)}}else for(;m<=g;++m)for(b=n-1;b>=1;--b)if(y=m>0?b/i(-m):b*i(m),!(y<u)){if(y>d)break;N.push(y)}N.length*2<v&&(N=WN(u,d,v))}else N=WN(m,g,Math.min(g-m,v)).map(i);return h?N.reverse():N},e.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Xm(c)).precision==null&&(c.trim=!0),c=YC(c)),l===1/0)return c;const u=Math.max(1,n*l/e.ticks().length);return d=>{let h=d/i(Math.round(a(d)));return h*n<n-.5&&(h*=n),h<=u?c(d):""}},e.nice=()=>r(FK(r(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),e}function zK(){const t=XC(Qy()).domain([1,10]);return t.copy=()=>r1(t,zK()).base(t.base()),Vs.apply(t,arguments),t}function vL(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function wL(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function JC(t){var e=1,r=t(vL(e),wL(e));return r.constant=function(n){return arguments.length?t(vL(e=+n),wL(e)):e},mc(r)}function VK(){var t=JC(Qy());return t.copy=function(){return r1(t,VK()).constant(t.constant())},Vs.apply(t,arguments)}function NL(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function M7e(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function T7e(t){return t<0?-t*t:t*t}function QC(t){var e=t(wa,wa),r=1;function n(){return r===1?t(wa,wa):r===.5?t(M7e,T7e):t(NL(r),NL(1/r))}return e.exponent=function(a){return arguments.length?(r=+a,n()):r},mc(e)}function ZC(){var t=QC(Qy());return t.copy=function(){return r1(t,ZC()).exponent(t.exponent())},Vs.apply(t,arguments),t}function R7e(){return ZC.apply(null,arguments).exponent(.5)}function jL(t){return Math.sign(t)*t*t}
1185function I7e(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function UK(){var t=GC(),e=[0,1],r=!1,n;function a(i){var o=I7e(t(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return t.invert(jL(i))},a.domain=function(i){return arguments.length?(t.domain(i),a):t.domain()},a.range=function(i){return arguments.length?(t.range((e=Array.from(i,Fx)).map(jL)),a):e.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(t.clamp(i),a):t.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return UK(t.domain(),e).round(r).clamp(t.clamp()).unknown(n)},Vs.apply(a,arguments),mc(a)}function qK(){var t=[],e=[],r=[],n;function a(){var o=0,l=Math.max(1,e.length);for(r=new Array(l-1);++o<l;)r[o-1]=F8e(t,o/l);return i}function i(o){return o==null||isNaN(o=+o)?n:e[e1(r,o)]}return i.invertExtent=function(o){var l=e.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:t[0],l<r.length?r[l]:t[t.length-1]]},i.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let l of o)l!=null&&!isNaN(l=+l)&&t.push(l);return t.sort(Ql),a()},i.range=function(o){return arguments.length?(e=Array.from(o),a()):e.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return qK().domain(t).range(e).unknown(n)},Vs.apply(i,arguments)}function WK(){var t=0,e=1,r=1,n=[.5],a=[0,1],i;function o(c){return c!=null&&c<=c?a[e1(n,c,0,r)]:i}function l(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*e-(c-r)*t)/(r+1);return o}return o.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,l()):[t,e]},o.range=function(c){return arguments.length?(r=(a=Array.from(c)).length-1,l()):a.slice()},o.invertExtent=function(c){var u=a.indexOf(c);return u<0?[NaN,NaN]:u<1?[t,n[0]]:u>=r?[n[r-1],e]:[n[u-1],n[u]]},o.unknown=function(c){return arguments.length&&(i=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return WK().domain([t,e]).range(a).unknown(i)},Vs.apply(mc(o),arguments)}function GK(){var t=[.5],e=[0,1],r,n=1;function a(i){return i!=null&&i<=i?e[e1(t,i,0,n)]:r}return a.domain=function(i){return arguments.length?(t=Array.from(i),n=Math.min(t.length,e.length-1),a):t.slice()},a.range=function(i){return arguments.length?(e=Array.from(i),n=Math.min(t.length,e.length-1),a):e.slice()},a.invertExtent=function(i){var o=e.indexOf(i);return[t[o-1],t[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return GK().domain(t).range(e).unknown(r)},Vs.apply(a,arguments)}const I8=new Date,D8=new Date;function bn(t,e,r,n){function a(i){return t(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(t(i=new Date(+i)),i),a.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),a.round=i=>{const o=a(i),l=a.ceil(i);return i-o<l-i?o:l},a.offset=(i,o)=>(e(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,l)=>{const c=[];if(i=a.ceil(i),l=l==null?1:Math.floor(l),!(i<o)||!(l>0))return c;let u;do c.push(u=new Date(+i)),e(i,l),t(i);while(u<i&&i<o);return c},a.filter=i=>bn(o=>{if(o>=o)for(;t(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;e(o,-1),!i(o););else for(;--l>=0;)for(;e(o,1),!i(o););}),r&&(a.count=(i,o)=>(I8.setTime(+i),D8.setTime(+o),t(I8),t(D8),Math.floor(r(I8,D8))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const qx=bn(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);qx.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?bn(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):qx);qx.range;const Eo=1e3,Es=Eo*60,Oo=Es*60,Yo=Oo*24,e$=Yo*7,kL=Yo*30,L8=Yo*365,ou=bn(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Eo)},(t,e)=>(e-t)/Eo,t=>t.getUTCSeconds());ou.range;const t$=bn(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Eo)},(t,e)=>{t.setTime(+t+e*Es)},(t,e)=>(e-t)/Es,t=>t.getMinutes());t$.range;const r$=bn(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Es)},(t,e)=>(e-t)/Es,t=>t.getUTCMinutes());r$.range;const n$=bn(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Eo-t.getMinutes()*Es)},(t,e)=>{t.setTime(+t+e*Oo)},(t,e)=>(e-t)/Oo,t=>t.getHours());n$.range;const a$=bn(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Oo)},(t,e)=>(e-t)/Oo,t=>t.getUTCHours());a$.range;const n1=bn(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Es)/Yo,t=>t.getDate()-1);n1.range;const Zy=bn(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Yo,t=>t.getUTCDate()-1);Zy.range;const KK=bn(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Yo,t=>Math.floor(t/Yo));KK.range;function qu(t){return bn(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Es)/e$)}const ev=qu(0),Wx=qu(1),D7e=qu(2),L7e=qu(3),Ph=qu(4),B7e=qu(5),H7e=qu(6);ev.range;Wx.range;D7e.range;L7e.range;Ph.range;B7e.range;H7e.range;function Wu(t){return bn(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/e$)}const tv=Wu(0),Gx=Wu(1),F7e=Wu(2),z7e=Wu(3),Mh=Wu(4),V7e=Wu(5),U7e=Wu(6);tv.range;Gx.range;F7e.range;z7e.range;Mh.range;V7e.range;U7e.range;const s$=bn(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());s$.range;const i$=bn(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());i$.range;const Xo=bn(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Xo.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:bn(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});Xo.range;const Jo=bn(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Jo.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:bn(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});Jo.range;function YK(t,e,r,n,a,i){const o=[[ou,1,Eo],[ou,5,5*Eo],[ou,15,15*Eo],[ou,30,30*Eo],[i,1,Es],[i,5,5*Es],[i,15,15*Es],[i,30,30*Es],[a,1,Oo],[a,3,3*Oo],[a,6,6*Oo],[a,12,12*Oo],[n,1,Yo],[n,2,2*Yo],[r,1,e$],[e,1,kL],[e,3,3*kL
vendor: 2,935 bytes, line 1185
1185],[t,1,L8]];function l(u,d,h){const m=d<u;m&&([u,d]=[d,u]);const g=h&&typeof h.range=="function"?h:c(u,d,h),b=g?g.range(u,+d+1):[];return m?b.reverse():b}function c(u,d,h){const m=Math.abs(d-u)/h,g=zC(([,,v])=>v).right(o,m);if(g===o.length)return t.every(KN(u/L8,d/L8,h));if(g===0)return qx.every(Math.max(KN(u,d,h),1));const[b,y]=o[m/o[g-1][2]<o[g][2]/m?g-1:g];return b.every(y)}return[l,c]}const[q7e,W7e]=YK(Jo,i$,tv,KK,a$,r$),[G7e,K7e]=YK(Xo,s$,ev,n1,n$,t$);function B8(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function H8(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function $p(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function Y7e(t){var e=t.dateTime,r=t.date,n=t.time,a=t.periods,i=t.days,o=t.shortDays,l=t.months,c=t.shortMonths,u=_p(a),d=Ap(a),h=_p(i),m=Ap(i),g=_p(o),b=Ap(o),y=_p(l),v=Ap(l),N=_p(c),S=Ap(c),j={a:B,A:H,b:K,B:Z,c:null,d:EL,e:EL,f:x9e,g:_9e,G:E9e,H:m9e,I:g9e,j:b9e,L:XK,m:y9e,M:v9e,p:V,q:U,Q:ML,s:TL,S:w9e,u:N9e,U:j9e,V:k9e,w:S9e,W:C9e,x:null,X:null,y:$9e,Y:A9e,Z:O9e,"%":PL},$={a:Y,A:de,b:ge,B:fe,c:null,d:OL,e:OL,f:R9e,g:q9e,G:G9e,H:P9e,I:M9e,j:T9e,L:QK,m:I9e,M:D9e,p:Oe,q:Ce,Q:ML,s:TL,S:L9e,u:B9e,U:H9e,V:F9e,w:z9e,W:V9e,x:null,X:null,y:U9e,Y:W9e,Z:K9e,"%":PL},C={a:T,A:I,b:R,B:F,c:L,d:_L,e:_L,f:d9e,g:$L,G:CL,H:AL,I:AL,j:o9e,L:u9e,m:i9e,M:l9e,p:P,q:s9e,Q:f9e,s:p9e,S:c9e,u:e9e,U:t9e,V:r9e,w:Z7e,W:n9e,x:q,X:G,y:$L,Y:CL,Z:a9e,"%":h9e};j.x=_(r,j),j.X=_(n,j),j.c=_(e,j),$.x=_(r,$),$.X=_(n,$),$.c=_(e,$);function _(le,we){return function(ke){var oe=[],qe=-1,Le=0,Ke=le.length,ne,Se,$e;for(ke instanceof Date||(ke=new Date(+ke));++qe<Ke;)le.charCodeAt(qe)===37&&(oe.push(le.slice(Le,qe)),(Se=SL[ne=le.charAt(++qe)])!=null?ne=le.charAt(++qe):Se=ne==="e"?" ":"0",($e=we[ne])&&(ne=$e(ke,Se)),oe.push(ne),Le=qe+1);return oe.push(le.slice(Le,qe)),oe.join("")}}function O(le,we){return function(ke){var oe=$p(1900,void 0,1),qe=E(oe,le,ke+="",0),Le,Ke;if(qe!=ke.length)return null;if("Q"in oe)return new Date(oe.Q);if("s"in oe)return new Date(oe.s*1e3+("L"in oe?oe.L:0));if(we&&!("Z"in oe)&&(oe.Z=0),"p"in oe&&(oe.H=oe.H%12+oe.p*12),oe.m===void 0&&(oe.m="q"in oe?oe.q:0),"V"in oe){if(oe.V<1||oe.V>53)return null;"w"in oe||(oe.w=1),"Z"in oe?(Le=H8($p(oe.y,0,1)),Ke=Le.getUTCDay(),Le=Ke>4||Ke===0?Gx.ceil(Le):Gx(Le),Le=Zy.offset(Le,(oe.V-1)*7),oe.y=Le.getUTCFullYear(),oe.m=Le.getUTCMonth(),oe.d=Le.getUTCDate()+(oe.w+6)%7):(Le=B8($p(oe.y,0,1)),Ke=Le.getDay(),Le=Ke>4||Ke===0?Wx.ceil(Le):Wx(Le),Le=n1.offset(Le,(oe.V-1)*7),oe.y=Le.getFullYear(),oe.m=Le.getMonth(),oe.d=Le.getDate()+(oe.w+6)%7)}else("W"in oe||"U"in oe)&&("w"in oe||(oe.w="u"in oe?oe.u%7:"W"in oe?1:0),Ke="Z"in oe?H8($p(oe.y,0,1)).getUTCDay():B8($p(oe.y,0,1)).getDay(),oe.m=0,oe.d="W"in oe?(oe.w+6)%7+oe.W*7-(Ke+5)%7:oe.w+oe.U*7-(Ke+6)%7);
vendor: 6,572 bytes, line 1185
1185return"Z"in oe?(oe.H+=oe.Z/100|0,oe.M+=oe.Z%100,H8(oe)):B8(oe)}}function E(le,we,ke,oe){for(var qe=0,Le=we.length,Ke=ke.length,ne,Se;qe<Le;){if(oe>=Ke)return-1;if(ne=we.charCodeAt(qe++),ne===37){if(ne=we.charAt(qe++),Se=C[ne in SL?we.charAt(qe++):ne],!Se||(oe=Se(le,ke,oe))<0)return-1}else if(ne!=ke.charCodeAt(oe++))return-1}return oe}function P(le,we,ke){var oe=u.exec(we.slice(ke));return oe?(le.p=d.get(oe[0].toLowerCase()),ke+oe[0].length):-1}function T(le,we,ke){var oe=g.exec(we.slice(ke));return oe?(le.w=b.get(oe[0].toLowerCase()),ke+oe[0].length):-1}function I(le,we,ke){var oe=h.exec(we.slice(ke));return oe?(le.w=m.get(oe[0].toLowerCase()),ke+oe[0].length):-1}function R(le,we,ke){var oe=N.exec(we.slice(ke));return oe?(le.m=S.get(oe[0].toLowerCase()),ke+oe[0].length):-1}function F(le,we,ke){var oe=y.exec(we.slice(ke));return oe?(le.m=v.get(oe[0].toLowerCase()),ke+oe[0].length):-1}function L(le,we,ke){return E(le,e,we,ke)}function q(le,we,ke){return E(le,r,we,ke)}function G(le,we,ke){return E(le,n,we,ke)}function B(le){return o[le.getDay()]}function H(le){return i[le.getDay()]}function K(le){return c[le.getMonth()]}function Z(le){return l[le.getMonth()]}function V(le){return a[+(le.getHours()>=12)]}function U(le){return 1+~~(le.getMonth()/3)}function Y(le){return o[le.getUTCDay()]}function de(le){return i[le.getUTCDay()]}function ge(le){return c[le.getUTCMonth()]}function fe(le){return l[le.getUTCMonth()]}function Oe(le){return a[+(le.getUTCHours()>=12)]}function Ce(le){return 1+~~(le.getUTCMonth()/3)}return{format:function(le){var we=_(le+="",j);return we.toString=function(){return le},we},parse:function(le){var we=O(le+="",!1);return we.toString=function(){return le},we},utcFormat:function(le){var we=_(le+="",$);return we.toString=function(){return le},we},utcParse:function(le){var we=O(le+="",!0);return we.toString=function(){return le},we}}}var SL={"-":"",_:" ",0:"0"},$n=/^\s*\d+/,X7e=/^%/,J7e=/[\\^$*+?|[\]().{}]/g;function Kt(t,e,r){var n=t<0?"-":"",a=(n?-t:t)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(e)+a:a)}function Q7e(t){return t.replace(J7e,"\\$&")}function _p(t){return new RegExp("^(?:"+t.map(Q7e).join("|")+")","i")}function Ap(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function Z7e(t,e,r){var n=$n.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function e9e(t,e,r){var n=$n.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function t9e(t,e,r){var n=$n.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function r9e(t,e,r){var n=$n.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function n9e(t,e,r){var n=$n.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function CL(t,e,r){var n=$n.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function $L(t,e,r){var n=$n.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function a9e(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function s9e(t,e,r){var n=$n.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function i9e(t,e,r){var n=$n.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function _L(t,e,r){var n=$n.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function o9e(t,e,r){var n=$n.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function AL(t,e,r){var n=$n.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function l9e(t,e,r){var n=$n.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function c9e(t,e,r){var n=$n.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function u9e(t,e,r){var n=$n.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function d9e(t,e,r){var n=$n.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function h9e(t,e,r){var n=X7e.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function f9e(t,e,r){var n=$n.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function p9e(t,e,r){var n=$n.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function EL(t,e){return Kt(t.getDate(),e,2)}function m9e(t,e){return Kt(t.getHours(),e,2)}function g9e(t,e){return Kt(t.getHours()%12||12,e,2)}function b9e(t,e){return Kt(1+n1.count(Xo(t),t),e,3)}function XK(t,e){return Kt(t.getMilliseconds(),e,3)}function x9e(t,e){return XK(t,e)+"000"}function y9e(t,e){return Kt(t.getMonth()+1,e,2)}function v9e(t,e){return Kt(t.getMinutes(),e,2)}function w9e(t,e){return Kt(t.getSeconds(),e,2)}function N9e(t){var e=t.getDay();return e===0?7:e}function j9e(t,e){return Kt(ev.count(Xo(t)-1,t),e,2)}function JK(t){var e=t.getDay();return e>=4||e===0?Ph(t):Ph.ceil(t)}function k9e(t,e){return t=JK(t),Kt(Ph.count(Xo(t),t)+(Xo(t).getDay()===4),e,2)}function S9e(t){return t.getDay()}function C9e(t,e){return Kt(Wx.count(Xo(t)-1,t),e,2)}function $9e(t,e){return Kt(t.getFullYear()%100,e,2)}function _9e(t,e){return t=JK(t),Kt(t.getFullYear()%100,e,2)}function A9e(t,e){return Kt(t.getFullYear()%1e4,e,4)}function E9e(t,e){var r=t.getDay();return t=r>=4||r===0?Ph(t):Ph.ceil(t),Kt(t.getFullYear()%1e4,e,4)}function O9e(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Kt(e/60|0,"0",2)+Kt(e%60,"0",2)}function OL(t,e){return Kt(t.getUTCDate(),e,2)}function P9e(t,e){return Kt(t.getUTCHours(),e,2)}function M9e(t,e){return Kt(t.getUTCHours()%12||12,e,2)}function T9e(t,e){return Kt(1+Zy.count(Jo(t),t),e,3)}function QK(t,e){return Kt(t.getUTCMilliseconds(),e,3)}function R9e(t,e){return QK(t,e)+"000"}function I9e(t,e){return Kt(t.getUTCMonth()+1,e,2)}function D9e(t,e){return Kt(t.getUTCMinutes(),e,2)}function L9e(t,e){return Kt(t.getUTCSeconds(),e,2)}function B9e(t){var e=t.getUTCDay();return e===0?7:e}function H9e(t,e){return Kt(tv.count(Jo(t)-1,t),e,2)}function ZK(t){var e=t.getUTCDay();return e>=4||e===0?Mh(t):Mh.ceil(t)}function F9e(t,e){return t=ZK(t),Kt(Mh.count(Jo(t),t)+(Jo(t).getUTCDay()===4),e,2)}function z9e(t){return t.getUTCDay()}function V9e(t,e){return Kt(Gx.count(Jo(t)-1,t),e,2)}function U9e(t,e){return Kt(t.getUTCFullYear()%100,e,2)}function q9e(t,e){return t=ZK(t),Kt(t.getUTCFullYear()%100,e,2)}function W9e(t,e){return Kt(t.getUTCFullYear()%1e4,e,4)}function G9e(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Mh(t):Mh.ceil(t),Kt(t.getUTCFullYear()%1e4,e,4)}function K9e(){return"+0000"}function PL(){return"%"}function ML(t){return+t}function TL(t){return Math.floor(+t/1e3)}var Pd,eY,tY;Y9e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1185ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Y9e(t){return Pd=Y7e(t),eY=Pd.format,Pd.parse,tY=Pd.utcFormat,Pd.utcParse,Pd}function X9e(t){return new Date(t)}function J9e(t){return t instanceof Date?+t:+new Date(+t)}function o$(t,e,r,n,a,i,o,l,c,u){var d=GC(),h=d.invert,m=d.domain,g=u(".%L"),b=u(":%S"),y=u("%I:%M"),v=u("%I %p"),N=u("%a %d"),S=u("%b %d"),j=u("%B"),$=u("%Y");function C(_){return(c(_)<_?g:l(_)<_?b:o(_)<_?y:i(_)<_?v:n(_)<_?a(_)<_?N:S:r(_)<_?j:$)(_)}return d.invert=function(_){return new Date(h(_))},d.domain=function(_){return arguments.length?m(Array.from(_,J9e)):m().map(X9e)},d.ticks=function(_){var O=m();return t(O[0],O[O.length-1],_??10)},d.tickFormat=function(_,O){return O==null?C:u(O)},d.nice=function(_){var O=m();return(!_||typeof _.range!="function")&&(_=e(O[0],O[O.length-1],_??10)),_?m(FK(O,_)):d},d.copy=function(){return r1(d,o$(t,e,r,n,a,i,o,l,c,u))},d}function Q9e(){return Vs.apply(o$(G7e,K7e,Xo,s$,ev,n1,n$,t$,ou,eY).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Z9e(){return Vs.apply(o$(q7e,W7e,Jo,i$,tv,Zy,a$,r$,ou,tY).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function rv(){var t=0,e=1,r,n,a,i,o=wa,l=!1,c;function u(h){return h==null||isNaN(h=+h)?c:o(a===0?.5:(h=(i(h)-r)*a,l?Math.max(0,Math.min(1,h)):h))}u.domain=function(h){return arguments.length?([t,e]=h,r=i(t=+t),n=i(e=+e),a=r===n?0:1/(n-r),u):[t,e]},u.clamp=function(h){return arguments.length?(l=!!h,u):l},u.interpolator=function(h){return arguments.length?(o=h,u):o};function d(h){return function(m){var g,b;return arguments.length?([g,b]=m,o=h(g,b),u):[o(0),o(1)]}}return u.range=d(Cf),u.rangeRound=d(WC),u.unknown=function(h){return arguments.length?(c=h,u):c},function(h){return i=h,r=h(t),n=h(e),a=r===n?0:1/(n-r),u}}function gc(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function rY(){var t=mc(rv()(wa));return t.copy=function(){return gc(t,rY())},il.apply(t,arguments)}function nY(){var t=XC(rv()).domain([1,10]);return t.copy=function(){return gc(t,nY()).base(t.base())},il.apply(t,arguments)}function aY(){var t=JC(rv());return t.copy=function(){return gc(t,aY()).constant(t.constant())},il.apply(t,arguments)}function l$(){var t=QC(rv());return t.copy=function(){return gc(t,l$()).exponent(t.exponent())},il.apply(t,arguments)}function eNe(){return l$.apply(null,arguments).exponent(.5)}function sY(){var t=[],e=wa;function r(n){if(n!=null&&!isNaN(n=+n))return e((e1(t,n,1)-1)/(t.length-1))}return r.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let a of n)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort(Ql),r},r.interpolator=function(n){return arguments.length?(e=n,r):e},r.range=function(){return t.map((n,a)=>e(a/(t.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>H8e(t,i/n))},r.copy=function(){return sY(e).domain(t)},il.apply(r,arguments)}function nv(){var t=0,e=.5,r=1,n=1,a,i,o,l,c,u=wa,d,h=!1,m;function g(y){return isNaN(y=+y)?m:(y=.5+((y=+d(y))-i)*(n*y<n*i?l:c),u(h?Math.max(0,Math.min(1,y)):y))}g.domain=function(y){return arguments.length?([t,e,r]=y,a=d(t=+t),i=d(e=+e),o=d(r=+r),l=a===i?0:.5/(i-a),c=i===o?0:.5/(o-i),n=i<a?-1:1,g):[t,e,r]},g.clamp=function(y){return arguments.length?(h=!!y,g):h},g.interpolator=function(y){return arguments.length?(u=y,g):u};function b(y){return function(v){var N,S,j;return arguments.length?([N,S,j]=v,u=h7e(y,[N,S,j]),g):[u(0),u(.5),u(1)]}}return g.range=b(Cf),g.rangeRound=b(WC),g.unknown=function(y){return arguments.length?(m=y,g):m},function(y){return d=y,a=y(t),i=y(e),o=y(r),l=a===i?0:.5/(i-a),c=i===o?0:.5/(o-i),n=i<a?-1:1,g}}function iY(){var t=mc(nv()(wa));return t.copy=function(){return gc(t,iY())},il.apply(t,arguments)}function oY(){var t=XC(nv()).domain([.1,1,10]);return t.copy=function(){return gc(t,oY()).base(t.base())},il.apply(t,arguments)}function lY(){var t=JC(nv());return t.copy=function(){return gc(t,lY()).constant(t.constant())},il.apply(t,arguments)}function c$(){var t=QC(nv());return t.copy=function(){return gc(t,c$()).exponent(t.exponent())},il.apply(t,arguments)}function tNe(){return c$.apply(null,arguments).exponent(.5)}const RL=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Wm,scaleDiverging:iY,scaleDivergingLog:oY,scaleDivergingPow:c$,scaleDivergingSqrt:tNe,scaleDivergingSymlog:lY,scaleIdentity:HK,scaleImplicit:YN,scaleLinear:Ux,scaleLog:zK,scaleOrdinal:VC,scalePoint:cm,scalePow:ZC,scaleQuantile:qK,scaleQuantize:WK,scaleRadial:UK,scaleSequential:rY,scaleSequentialLog:nY,scaleSequentialPow:l$,scaleSequentialQuantile:sY,scaleSequentialSqrt:eNe,scaleSequentialSymlog:aY,scaleSqrt:R7e,scaleSymlog:VK,scaleThreshold:GK,scaleTime:Q9e,scaleUtc:Z9e,t
vendor: 67,355 bytes, lines 1185-1211
1185ickFormat:BK},Symbol.toStringTag,{value:"Module"}));var F8,IL;function cY(){if(IL)return F8;IL=1;var t=wf();function e(r,n,a){for(var i=-1,o=r.length;++i<o;){var l=r[i],c=n(l);if(c!=null&&(u===void 0?c===c&&!t(c):a(c,u)))var u=c,d=l}return d}return F8=e,F8}var z8,DL;function rNe(){if(DL)return z8;DL=1;function t(e,r){return e>r}return z8=t,z8}var V8,LL;function nNe(){if(LL)return V8;LL=1;var t=cY(),e=rNe(),r=Sf();function n(a){return a&&a.length?t(a,r,e):void 0}return V8=n,V8}var aNe=nNe();const Gl=ar(aNe);var U8,BL;function sNe(){if(BL)return U8;BL=1;function t(e,r){return e<r}return U8=t,U8}var q8,HL;function iNe(){if(HL)return q8;HL=1;var t=cY(),e=sNe(),r=Sf();function n(a){return a&&a.length?t(a,r,e):void 0}return q8=n,q8}var oNe=iNe();const av=ar(oNe);var W8,FL;function lNe(){if(FL)return W8;FL=1;var t=SC(),e=pc(),r=xK(),n=Ba();function a(i,o){var l=n(i)?t:r;return l(i,e(o,3))}return W8=a,W8}var G8,zL;function cNe(){if(zL)return G8;zL=1;var t=gK(),e=lNe();function r(n,a){return t(e(n,a),1)}return G8=r,G8}var uNe=cNe();const dNe=ar(uNe);var K8,VL;function hNe(){if(VL)return K8;VL=1;var t=LC();function e(r,n){return t(r,n)}return K8=e,K8}var fNe=hNe();const Th=ar(fNe);var $f=1e9,pNe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},d$,Sr=!0,Bs="[DecimalError] ",yu=Bs+"Invalid argument: ",u$=Bs+"Exponent out of range: ",_f=Math.floor,Yc=Math.pow,mNe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Qa,Nn=1e7,Nr=7,uY=9007199254740991,Kx=_f(uY/Nr),Qe={};Qe.absoluteValue=Qe.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t};Qe.comparedTo=Qe.cmp=function(t){var e,r,n,a,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(n=i.d.length,a=t.d.length,e=0,r=n<a?n:a;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};Qe.decimalPlaces=Qe.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*Nr;if(e=t.d[e],e)for(;e%10==0;e/=10)r--;return r<0?0:r};Qe.dividedBy=Qe.div=function(t){return Fo(this,new this.constructor(t))};Qe.dividedToIntegerBy=Qe.idiv=function(t){var e=this,r=e.constructor;return lr(Fo(e,new r(t),0,1),r.precision)};Qe.equals=Qe.eq=function(t){return!this.cmp(t)};Qe.exponent=function(){return an(this)};Qe.greaterThan=Qe.gt=function(t){return this.cmp(t)>0};Qe.greaterThanOrEqualTo=Qe.gte=function(t){return this.cmp(t)>=0};Qe.isInteger=Qe.isint=function(){return this.e>this.d.length-2};Qe.isNegative=Qe.isneg=function(){return this.s<0};Qe.isPositive=Qe.ispos=function(){return this.s>0};Qe.isZero=function(){return this.s===0};Qe.lessThan=Qe.lt=function(t){return this.cmp(t)<0};Qe.lessThanOrEqualTo=Qe.lte=function(t){return this.cmp(t)<1};Qe.logarithm=Qe.log=function(t){var e,r=this,n=r.constructor,a=n.precision,i=a+5;if(t===void 0)t=new n(10);else if(t=new n(t),t.s<1||t.eq(Qa))throw Error(Bs+"NaN");if(r.s<1)throw Error(Bs+(r.s?"NaN":"-Infinity"));return r.eq(Qa)?new n(0):(Sr=!1,e=Fo(Jm(r,i),Jm(t,i),i),Sr=!0,lr(e,a))};Qe.minus=Qe.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?fY(e,t):dY(e,(t.s=-t.s,t))};Qe.modulo=Qe.mod=function(t){var e,r=this,n=r.constructor,a=n.precision;if(t=new n(t),!t.s)throw Error(Bs+"NaN");return r.s?(Sr=!1,e=Fo(r,t,0,1).times(t),Sr=!0,r.minus(e)):lr(new n(r),a)};Qe.naturalExponential=Qe.exp=function(){return hY(this)};Qe.naturalLogarithm=Qe.ln=function(){return Jm(this)};Qe.negated=Qe.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t};Qe.plus=Qe.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?dY(e,t):fY(e,(t.s=-t.s,t))};Qe.precision=Qe.sd=function(t){var e,r,n,a=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(yu+t);if(e=an(a)+1,n=a.d.length-1,r=n*Nr+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return t&&e>r?e:r};Qe.squareRoot=Qe.sqrt=function(){var t,e,r,n,a,i,o,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(Bs+"NaN")}for(t=an(l),Sr=!1,a=Math.sqrt(+l),a==0||a==1/0?(e=Bi(l.d),(e.length+t)%2==0&&(e+="0"),a=Math.sqrt(e),t=_f((t+1)/2)-(t<0||t%2),a==1/0?e="5e"+t:(e=a.toExponential(),e=e.slice(0,e.indexOf("e")+1)+t),n=new c(e)):n=new c(a.toString()),r=c.precision,a=o=r+3;;)if(i=n,n=i.plus(Fo(l,i,o+2)).times(.5),Bi(i.d).slice(0,o)===(e=Bi(n.d)).slice(0,o)){if(e=e.slice(o-3,o+1),a==o&&e=="4999"){if(lr(i,r+1,0),i.times(i).eq(l)){n=i;break}}else if(e!="9999")break;o+=4}return Sr=!0,lr(n,r)};Qe.times=Qe.mul=function(t){var e,r,n,a,i,o,l,c,u,d=this,h=d.constructor,m=d.d,g=(t=new h(t)).d;if(!d.s||!t.s)return new h(0);for(t.s*=d.s,r=d.e+t.e,c=m.length,u=g.length,c<u&&(i=m,m=g,g=i,o=c,c=u,u=o),i=[],o=c+u,n=o;n--;)i.push(0);for(n=u;--n>=0;){for(e=0,a=c+n;a>n;)l=i[a]+g[n]*m[a-n-1]+e,i[a--]=l%Nn|0,e=l/Nn|0;i[a]=(i[a]+e)%Nn|0}for(;!i[--o];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,Sr?lr(t,h.precision):t};Qe.toDecimalPlaces=Qe.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),t===void 0?r:(Xi(t,0,$f),e===void 0?e=n.rounding:Xi(e,0,8),lr(r,t+an(r)+1,e))};Qe.toExponential=function(t,e){var r,n=this,a=n.constructor;return t===void 0?r=$u(n,!0):(Xi(t,0,$f),e===void 0?e=a.rounding:Xi(e,0,8),n=lr(new a(n),t+1,e),r=$u(n,!0,t+1)),r};Qe.toFixed=function(t,e){var r,n,a=this,i=a.constructor;return t===void 0?$u(a):(Xi(t,0,$f),e===void 0?e=i.rounding:Xi(e,0,8),n=lr(new i(a),t+an(a)+1,e),r=$u(n.abs(),!1,t+an(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};Qe.toInteger=Qe.toint=function(){var t=this,e=t.constructor;return lr(new e(t),an(t)+1,e.rounding)};Qe.toNumber=function(){return+this};Qe.toPower=Qe.pow=function(t){var e,r,n,a,i,o,l=this,c=l.constructor,u=12,d=+(t=new c(t));if(!t.s)return new c(Qa);if(l=new c(l),!l.s){if(t.s<1)throw Error(Bs+"Infinity");return l}if(l.eq(Qa))return l;if(n=c.precision,t.eq(Qa))return lr(l,n);if(e=t.e,r=t.d.length-1,o=e>=r,i=l.s,o){if((r=d<0?-d:d)<=uY){for(a=new c(Qa),e=Math.ceil(n/Nr+4),Sr=!1;r%2&&(a=a.times(l),qL(a.d,e)),r=_f(r/2),r!==0;)l=l.times(l),qL(l.d,e);return Sr=!0,t.s<0?new c(Qa).div(a):lr(a,n)}}else if(i<0)throw Error(Bs+"NaN");return i=i<0&&t.d[Math.max(e,r)]&1?-1:1,l.s=1,Sr=!1,a=t.times(Jm(l,n+u)),Sr=!0,a=hY(a),a.s=i,a};Qe.toPrecision=function(t,e){var r,n,a=this,i=a.constructor;return t===void 0?(r=an(a),n=$u(a,r<=i.toExpNeg||r>=i.toExpPos)):(Xi(t,1,$f),e===void 0?e=i.rounding:Xi(e,0,8),a=lr(new i(a),t,e),r=an(a),n=$u(a,t<=r||r<=i.toExpNeg,t)),n};Qe.toSignificantDigits=Qe.tosd=function(t,e){var r=this,n=r.constructor;return t===void 0?(t=n.precision,e=n.rounding):(Xi(t,1,$f),e===void 0?e=n.rounding:Xi(e,0,8)),lr(new n(r),t,e)};Qe.toString=Qe.valueOf=Qe.val=Qe.toJSON=Qe[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=an(t),r=t.constructor;return $u(t,e<=r.toExpNeg||e>=r.toExpPos)};function dY(t,e){var r,n,a,i,o,l,c,u,d=t.constructor,h=d.precision;if(!t.s||!e.s)return e.s||(e=new d(t)),Sr?lr(e,h):e;if(c=t.d,u=e.d,o=t.e,a=e.e,c=c.slice(),i=o-a,i){for(i<0?(n=c,i=-i,l=u.length):(n=u,a=o,l=c.length),o=Math.ceil(h/Nr),l=o>l?o+1:l+1,i>l&&(i=l,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(l=c.length,i=u.length,l-i<0&&(i=l,n=u,u=c,c=n),r=0;i;)r=(c[--i]=c[i]+u[i]+r)/Nn|0,c[i]%=Nn;for(r&&(c.unshift(r),++a),l=c.length;c[--l]==0;)c.pop();return e.d=c,e.e=a,Sr?lr(e,h):e}function Xi(t,e,r){if(t!==~~t||t<e||t>r)throw Error(yu+t)}function Bi(t){var e,r,n,a=t.length-1,i="",o=t[0];if(a>0){for(i+=o,e=1;e<a;e++)n=t[e]+"",r=Nr-n.length,r&&(i+=Il(r)),i+=n;o=t[e],n=o+"",r=Nr-n.length,r&&(i+=Il(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var Fo=(function(){function t(n,a){var i,o=0,l=n.length;for(n=n.slice();l--;)i=n[l]*a+o,n[l]=i%Nn|0,o=i/Nn|0;return o&&n.unshift(o),n}function e(n,a,i,o){var l,c;if(i!=o)c=i>o?1:-1;else for(l=c=0;l<i;l++)if(n[l]!=a[l]){c=n[l]>a[l]?1:-1;break}return c}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]<a[i]?1:0,n[i]=o*Nn+n[i]-a[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,a,i,o){var l,c,u,d,h,m,g,b,y,v,N,S,j,$,C,_,O,E,P=n.constructor,T=n.s==a.s?1:-1,I=n.d,R=a.d;if(!n.s)return new P(n);if(!a.s)throw Error(Bs+"Division by zero");for(c=n.e-a.e,O=R.length,C=I.length,g=new P(T),b=g.d=[],u=0;R[u]==(I[u]||0);)++u;if(R[u]>(I[u]||0)&&--c,i==null?S=i=P.precision:o?S=i+(an(n)-an(a))+1:S=i,S<0)return new P(0);if(S=S/Nr+2|0,u=0,O==1)for(d=0,R=R[0],S++;(u<C||d)&&S--;u++)j=d*Nn+(I[u]||0),b[u]=j/R|0,d=j%R|0;else{for(d=Nn/(R[0]+1)|0,d>1&&(R=t(R,d),I=t(I,d),O=R.length,C=I.length),$=O,y=I.slice(0,O),v=y.length;v<O;)y[v++]=0;E=R.slice(),E.unshift(0),_=R[0],R[1]>=Nn/2&&++_;do d=0,l=e(R,y,O,v),l<0?(N=y[0],O!=v&&(N=N*Nn+(y[1]||0)),d=N/_|0,d>1?(d>=Nn&&(d=Nn-1),h=t(R,d),m=h.length,v=y.length,l=e(h,y,m,v),l==1&&(d--,r(h,O<m?E:R,m))):(d==0&&(l=d=1),h=R.slice()),m=h.length,m<v&&h.unshift(0),r(y,h,v),l==-1&&(v=y.length,l=e(R,y,O,v),l<1&&(d++,r(y,O<v?E:R,v))),v=y.length):l===0&&(d++,y=[0]),b[u++]=d,l&&y[0]?y[v++]=I[$]||0:(y=[I[$]],v=1);while(($++<C||y[0]!==void 0)&&S--)}return b[0]||b.shift(),g.e=c,lr(g,o?i+an(g)+1:i)}})();function hY(t,e){var r,n,a,i,o,l,c=0,u=0,d=t.constructor,h=d.precision;if(an(t)>16)throw Error(u$+an(t));if(!t.s)return new d(Qa);for(Sr=!1,l=h,o=new d(.03125);t.abs().gte(.1);)t=t.times(o),u+=5;for(n=Math.log(Yc(2,u))/Math.LN10*2+5|0,l+=n,r=a=i=new d(Qa),d.precision=l;;){if(a=lr(a.times(t),l),r=r.times(++c),o=i.plus(Fo(a,r,l)),Bi(o.d).slice(0,l)===Bi(i.d).slice(0,l)){for(;u--;)i=lr(i.times(i),l);return d.precision=h,e==null?(Sr=!0,lr(i,h)):i}i=o}}function an(t){for(var e=t.e*Nr,r=t.d[0];r>=10;r/=10)e++;return e}function Y8(t,e,r){if(e>t.LN10.sd())throw Sr=!0,r&&(t.precision=r),Error(Bs+"LN10 precision limit exceeded");return lr(new t(t.LN10),e)}function Il(t){for(var e="";t--;)e+="0";return e}function Jm(t,e){var r,n,a,i,o,l,c,u,d,h=1,m=10,g=t,b=g.d,y=g.constructor,v=y.precision;if(g.s<1)throw Error(Bs+(g.s?"NaN":"-Infinity"));if(g.eq(Qa))return new y(0);if(e==null?(Sr=!1,u=v):u=e,g.eq(10))return e==null&&(Sr=!0),Y8(y,u);if(u+=m,y.precision=u,r=Bi(b),n=r.charAt(0),i=an(g),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)g=g.times(t),r=Bi(g.d),n=r.charAt(0),h++;i=an(g),n>1?(g=new y("0."+r),i++):g=new y(n+"."+r.slice(1))}else return c=Y8(y,u+2,v).times(i+""),g=Jm(new y(n+"."+r.slice(1)),u-m).plus(c),y.precision=v,e==null?(Sr=!0,lr(g,v)):g;for(l=o=g=Fo(g.minus(Qa),g.plus(Qa),u),d=lr(g.times(g),u),a=3;;){if(o=lr(o.times(d),u),c=l.plus(Fo(o,new y(a),u)),Bi(c.d).slice(0,u)===Bi(l.d).slice(0,u))return l=l.times(2),i!==0&&(l=l.plus(Y8(y,u+2,v).times(i+""))),l=Fo(l,new y(h),u),y.precision=v,e==null?(Sr=!0,lr(l,v)):l;l=c,a+=2}}function UL(t,e){var r,n,a;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;e.charCodeAt(n)===48;)++n;for(a=e.length;e.charCodeAt(a-1)===48;)--a;if(e=e.slice(n,a),e){if(a-=n,r=r-n-1,t.e=_f(r/Nr),t.d=[],n=(r+1)%Nr,r<0&&(n+=Nr),n<a){for(n&&t.d.push(+e.slice(0,n)),a-=Nr;n<a;)t.d.push(+e.slice(n,n+=Nr));e=e.slice(n),n=Nr-e.length}else n-=a;for(;n--;)e+="0";if(t.d.push(+e),Sr&&(t.e>Kx||t.e<-Kx))throw Error(u$+r)}else t.s=0,t.e=0,t.d=[0];return t}function lr(t,e,r){var n,a,i,o,l,c,u,d,h=t.d;for(o=1,i=h[0];i>=10;i/=10)o++;if(n=e-o,n<0)n+=Nr,a=e,u=h[d=0];else{if(d=Math.ceil((n+1)/Nr),i=h.length,d>=i)return t;for(u=i=h[d],o=1;i>=10;i/=10)o++;n%=Nr,a=n-Nr+o}if(r!==void 0&&(i=Yc(10,o-a-1),l=u/i%10|0,c=e<0||h[d+1]!==void 0||u%i,c=r<4?(l||c)&&(r==0||r==(t.s<0?3:2)):l>5||l==5&&(r==4||c||r==6&&(n>0?a>0?u/Yc(10,o-a):0:h[d-1])%10&1||r==(t.s<0?8:7))),e<1||!h[0])return c?(i=an(t),h.length=1,e=e-i-1,h[0]=Yc(10,(Nr-e%Nr)%Nr),t.e=_f(-e/Nr)||0):(h.length=1,h[0]=t.e=t.s=0),t;if(n==0?(h.length=d,i=1,d--):(h.length=d+1,i=Yc(10,Nr-n),h[d]=a>0?(u/Yc(10,o-a)%Yc(10,a)|0)*i:0),c)for(;;)if(d==0){(h[0]+=i)==Nn&&(h[0]=1,++t.e);break}else{if(h[d]+=i,h[d]!=Nn)break;h[d--]=0,i=1}for(n=h.length;h[--n]===0;)h.pop();if(Sr&&(t.e>Kx||t.e<-Kx))throw Error(u$+an(t));return t}function fY(t,e){var r,n,a,i,o,l,c,u,d,h,m=t.constructor,g=m.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new m(t),Sr?lr(e,g):e;if(c=t.d,h=e.d,n=e.e,u=t.e,c=c.slice(),o=u-n,o){for(d=o<0,d?(r=c,o=-o,l=h.length):(r=h,n=u,l=c.length),a=Math.max(Math.ceil(g/Nr),l)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=c.length,l=h.length,d=a<l,d&&(l=a),a=0;a<l;a++)if(c[a]!=h[a]){d=c[a]<h[a];break}o=0}for(d&&(r=c,c=h,h=r,e.s=-e.s),l=c.length,a=h.length-l;a>0;--a)c[l++]=0;for(a=h.length;a>o;){if(c[--a]<h[a]){for(i=a;i&&c[--i]===0;)c[i]=Nn-1;--c[i],c[a]+=Nn}c[a]-=h[a]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(e.d=c,e.e=n,Sr?lr(e,g):e):new m(0)}function $u(t,e,r){var n,a=an(t),i=Bi(t.d),o=i.length;return e?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+Il(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Il(-a-1)+i,r&&(n=r-o)>0&&(i+=Il(n))):a>=o?(i+=Il(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+Il(n))):((n=a+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(i+="."),i+=Il(n))),t.s<0?"-"+i:i}function qL(t,e){if(t.length>e)return t.length=e,!0}function pY(t){var e,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(yu+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return UL(o,i.toString())}else if(typeof i!="string")throw Error(yu+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,mNe.test(i))UL(o,i);else throw Error(yu+i)}if(a.prototype=Qe,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=pY,a.config=a.set=gNe,t===void 0&&(t={}),t)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],e=0;e<n.length;)t.hasOwnProperty(r=n[e++])||(t[r]=this[r]);return a.config(t),a}function gNe(t){if(!t||typeof t!="object")throw Error(Bs+"Object expected");var e,r,n,a=["precision",1,$f,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<a.length;e+=3)if((n=t[r=a[e]])!==void 0)if(_f(n)===n&&n>=a[e+1]&&n<=a[e+2])this[r]=n;else throw Error(yu+r+": "+n);if((n=t[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(yu+r+": "+n);return this}var d$=pY(pNe);Qa=new d$(1);const sr=d$;function bNe(t){return wNe(t)||vNe(t)||yNe(t)||xNe()}function xNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1186In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yNe(t,e){if(t){if(typeof t=="string")return ZN(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZN(t,e)}}function vNe(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function wNe(t){if(Array.isArray(t))return ZN(t)}function ZN(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var NNe=function(e){return e},mY={},gY=function(e){return e===mY},WL=function(e){return function r(){return arguments.length===0||arguments.length===1&&gY(arguments.length<=0?void 0:arguments[0])?r:e.apply(void 0,arguments)}},jNe=function t(e,r){return e===1?r:WL(function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var o=a.filter(function(l){return l!==mY}).length;return o>=e?r.apply(void 0,a):t(e-o,WL(function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=a.map(function(h){return gY(h)?c.shift():h});return r.apply(void 0,bNe(d).concat(c))}))})},sv=function(e){return jNe(e.length,e)},ej=function(e,r){for(var n=[],a=e;a<r;++a)n[a-e]=a;return n},kNe=sv(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(r){return e[r]}).map(t)}),SNe=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r.length)return NNe;var a=r.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(l,c){return c(l)},i.apply(void 0,arguments))}},tj=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},bY=function(e){var r=null,n=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r&&i.every(function(l,c){return l===r[c]})||(r=i,n=e.apply(void 0,i)),n}};function CNe(t){var e;return t===0?e=1:e=Math.floor(new sr(t).abs().log(10).toNumber())+1,e}function $Ne(t,e,r){for(var n=new sr(t),a=0,i=[];n.lt(e)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var _Ne=sv(function(t,e,r){var n=+t,a=+e;return n+r*(a-n)}),ANe=sv(function(t,e,r){var n=e-+t;return n=n||1/0,(r-t)/n}),ENe=sv(function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))});const iv={rangeStep:$Ne,getDigitCount:CNe,interpolateNumber:_Ne,uninterpolateNumber:ANe,uninterpolateTruncation:ENe};function rj(t){return MNe(t)||PNe(t)||xY(t)||ONe()}function ONe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1187In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PNe(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function MNe(t){if(Array.isArray(t))return nj(t)}function Qm(t,e){return INe(t)||RNe(t,e)||xY(t,e)||TNe()}function TNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1188In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xY(t,e){if(t){if(typeof t=="string")return nj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nj(t,e)}}function nj(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function RNe(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=t[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(e&&r.length===e));n=!0);}catch(c){a=!0,i=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function INe(t){if(Array.isArray(t))return t}function yY(t){var e=Qm(t,2),r=e[0],n=e[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function vY(t,e,r){if(t.lte(0))return new sr(0);var n=iv.getDigitCount(t.toNumber()),a=new sr(10).pow(n),i=t.div(a),o=n!==1?.05:.1,l=new sr(Math.ceil(i.div(o).toNumber())).add(r).mul(o),c=l.mul(a);return e?c:new sr(Math.ceil(c))}function DNe(t,e,r){var n=1,a=new sr(t);if(!a.isint()&&r){var i=Math.abs(t);i<1?(n=new sr(10).pow(iv.getDigitCount(t)-1),a=new sr(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new sr(Math.floor(t)))}else t===0?a=new sr(Math.floor((e-1)/2)):r||(a=new sr(Math.floor(t)));var o=Math.floor((e-1)/2),l=SNe(kNe(function(c){return a.add(new sr(c-o).mul(n)).toNumber()}),ej);return l(0,e)}function wY(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new sr(0),tickMin:new sr(0),tickMax:new sr(0)};var i=vY(new sr(e).sub(t).div(r-1),n,a),o;t<=0&&e>=0?o=new sr(0):(o=new sr(t).add(e).div(2),o=o.sub(new sr(o).mod(i)));var l=Math.ceil(o.sub(t).div(i).toNumber()),c=Math.ceil(new sr(e).sub(o).div(i).toNumber()),u=l+c+1;return u>r?wY(t,e,r,n,a+1):(u<r&&(c=e>0?c+(r-u):c,l=e>0?l:l+(r-u)),{step:i,tickMin:o.sub(new sr(l).mul(i)),tickMax:o.add(new sr(c).mul(i))})}function LNe(t){var e=Qm(t,2),r=e[0],n=e[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),l=yY([r,n]),c=Qm(l,2),u=c[0],d=c[1];if(u===-1/0||d===1/0){var h=d===1/0?[u].concat(rj(ej(0,a-1).map(function(){return 1/0}))):[].concat(rj(ej(0,a-1).map(function(){return-1/0})),[d]);return r>n?tj(h):h}if(u===d)return DNe(u,a,i);var m=wY(u,d,o,i),g=m.step,b=m.tickMin,y=m.tickMax,v=iv.rangeStep(b,y.add(new sr(.1).mul(g)),g);return r>n?tj(v):v}function BNe(t,e){var r=Qm(t,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=yY([n,a]),l=Qm(o,2),c=l[0],u=l[1];if(c===-1/0||u===1/0)return[n,a];if(c===u)return[c];var d=Math.max(e,2),h=vY(new sr(u).sub(c).div(d-1),i,0),m=[].concat(rj(iv.rangeStep(new sr(c),new sr(u).sub(new sr(.99).mul(h)),h)),[u]);return n>a?tj(m):m}var HNe=bY(LNe),FNe=bY(BNe),zNe="Invariant failed";function _u(t,e){throw new Error(zNe)}var VNe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Rh(t){"@babel/helpers - typeof";return Rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rh(t)}function Yx(){return Yx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Yx.apply(this,arguments)}function UNe(t,e){return KNe(t)||GNe(t,e)||WNe(t,e)||qNe()}function qNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1189In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WNe(t,e){if(t){if(typeof t=="string")return GL(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GL(t,e)}}function GL(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function GNe(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function KNe(t){if(Array.isArray(t))return t}function YNe(t,e){if(t==null)return{};var r=XNe(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function XNe(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function JNe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QNe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,kY(n.key),n)}}function ZNe(t,e,r){return e&&QNe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function eje(t,e,r){return e=Xx(e),tje(t,NY()?Reflect.construct(e,r||[],Xx(t).constructor):e.apply(t,r))}function tje(t,e){if(e&&(Rh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rje(t)}function rje(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function NY(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NY=function(){return!!t})()}function Xx(t){return Xx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xx(t)}function nje(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&aj(t,e)}function aj(t,e){return aj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},aj(t,e)}function jY(t,e,r){return e=kY(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kY(t){var e=aje(t,"string");return Rh(e)=="symbol"?e:e+""}function aje(t,e){if(Rh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Rh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var a1=(function(t){function e(){return JNe(this,e),eje(this,e,arguments)}return nje(e,t),ZNe(e,[{key:"render",value:function(){var n=this.props,a=n.offset,i=n.layout,o=n.width,l=n.dataKey,c=n.data,u=n.dataPointFormatter,d=n.xAxis,h=n.yAxis,m=YNe(n,VNe),g=Mt(m,!1);this.props.direction==="x"&&d.type!=="number"&&_u();var b=c.map(function(y){var v=u(y,l),N=v.x,S=v.y,j=v.value,$=v.errorVal;if(!$)return null;var C=[],_,O;if(Array.isArray($)){var E=UNe($,2);_=E[0],O=E[1]}else _=O=$;if(i==="vertical"){var P=d.scale,T=S+a,I=T+o,R=T-o,F=P(j-_),L=P(j+O);C.push({x1:L,y1:I,x2:L,y2:R}),C.push({x1:F,y1:T,x2:L,y2:T}),C.push({x1:F,y1:I,x2:F,y2:R})}else if(i==="horizontal"){var q=h.scale,G=N+a,B=G-o,H=G+o,K=q(j-_),Z=q(j+O);C.push({x1:B,y1:Z,x2:H,y2:Z}),C.push({x1:G,y1:K,x2:G,y2:Z}),C.push({x1:B,y1:K,x2:H,y2:K})}return z.createElement(fr,Yx({className:"recharts-errorBar",key:"bar-".concat(C.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},g),C.map(function(V){return z.createElement("line",Yx({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return z.createElement(fr,{className:"recharts-errorBars"},b)}}])})(z.Component);jY(a1,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});jY(a1,"displayName","ErrorBar");function Zm(t){"@babel/helpers - typeof";return Zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zm(t)}function KL(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Fc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?KL(Object(r),!0).forEach(function(n){sje(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):KL(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function sje(t,e,r){return e=ije(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ije(t){var e=oje(t,"string");return Zm(e)=="symbol"?e:e+""}function oje(t,e){if(Zm(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Zm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var SY=function(e){var r=e.children,n=e.formattedGraphicalItems,a=e.legendWidth,i=e.legendContent,o=Ga(r,bu);if(!o)return null;var l=bu.defaultProps,c=l!==void 0?Fc(Fc({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:i==="children"?u=(n||[]).reduce(function(d,h){var m=h.item,g=h.props,b=g.sectors||g.data||[];return d.concat(b.map(function(y){return{type:o.props.iconType||m.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):u=(n||[]).map(function(d){var h=d.item,m=h.type.defaultProps,g=m!==void 0?Fc(Fc({},m),h.props):{},b=g.dataKey,y=g.name,v=g.legendType,N=g.hide;return{inactive:N,dataKey:b,type:c.iconType||v||"square",color:h$(h),value:y||b,payload:g}}),Fc(Fc(Fc({},c),bu.getWithHeight(o,a)),{},{payload:u,item:o})};function e0(t){"@babel/helpers - typeof";return e0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e0(t)}function YL(t){return dje(t)||uje(t)||cje(t)||lje()}function lje(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1190In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cje(t,e){if(t){if(typeof t=="string")return sj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sj(t,e)}}function uje(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dje(t){if(Array.isArray(t))return sj(t)}function sj(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function XL(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Hr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?XL(Object(r),!0).forEach(function(n){ph(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):XL(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ph(t,e,r){return e=hje(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hje(t){var e=fje(t,"string");return e0(e)=="symbol"?e:e+""}function fje(t,e){if(e0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(e0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ja(t,e,r){return Ft(t)||Ft(e)?r:gn(e)?Ps(t,e,r):Pt(e)?e(t):r}function um(t,e,r,n){var a=dNe(t,function(l){return ja(l,e)});if(r==="number"){var i=a.filter(function(l){return ze(l)||parseFloat(l)});return i.length?[av(i),Gl(i)]:[1/0,-1/0]}var o=n?a.filter(function(l){return!Ft(l)}):a;return o.map(function(l){return gn(l)||l instanceof Date?l:""})}var pje=function(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<l;u++){var d=u>0?a[u-1].coordinate:a[l-1].coordinate,h=a[u].coordinate,m=u>=l-1?a[0].coordinate:a[u+1].coordinate,g=void 0;if(hi(h-d)!==hi(m-h)){var b=[];if(hi(m-h)===hi(c[1]-c[0])){g=m;var y=h+c[1]-c[0];b[0]=Math.min(y,(y+d)/2),b[1]=Math.max(y,(y+d)/2)}else{g=d;var v=m+c[1]-c[0];b[0]=Math.min(h,(v+h)/2),b[1]=Math.max(h,(v+h)/2)}var N=[Math.min(h,(g+h)/2),Math.max(h,(g+h)/2)];if(e>N[0]&&e<=N[1]||e>=b[0]&&e<=b[1]){o=a[u].index;break}}else{var S=Math.min(d,m),j=Math.max(d,m);if(e>(S+h)/2&&e<=(j+h)/2){o=a[u].index;break}}}else for(var $=0;$<l;$++)if($===0&&e<=(n[$].coordinate+n[$+1].coordinate)/2||$>0&&$<l-1&&e>(n[$].coordinate+n[$-1].coordinate)/2&&e<=(n[$].coordinate+n[$+1].coordinate)/2||$===l-1&&e>(n[$].coordinate+n[$-1].coordinate)/2){o=n[$].index;break}return o},h$=function(e){var r,n=e,a=n.type.displayName,i=(r=e.type)!==null&&r!==void 0&&r.defaultProps?Hr(Hr({},e.type.defaultProps),e.props):e.props,o=i.stroke,l=i.fill,c;switch(a){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:l;break;default:c=l;break}return c},mje=function(e){var r=e.barSize,n=e.totalSize,a=e.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},l=Object.keys(i),c=0,u=l.length;c<u;c++)for(var d=i[l[c]].stackGroups,h=Object.keys(d),m=0,g=h.length;m<g;m++){var b=d[h[m]],y=b.items,v=b.cateAxisId,N=y.filter(function(O){return Bo(O.type).indexOf("Bar")>=0});if(N&&N.length){var S=N[0].type.defaultProps,j=S!==void 0?Hr(Hr({},S),N[0].props):N[0].props,$=j.barSize,C=j[v];o[C]||(o[C]=[]);var _=Ft($)?r:$;o[C].push({item:N[0],stackList:N.slice(1),barSize:Ft(_)?void 0:Cu(_,n,0)})}}return o},gje=function(e){var r=e.barGap,n=e.barCategoryGap,a=e.bandSize,i=e.sizeList,o=i===void 0?[]:i,l=e.maxBarSize,c=o.length;if(c<1)return null;var u=Cu(r,a,0,!0),d,h=[];if(o[0].barSize===+o[0].barSize){var m=!1,g=a/c,b=o.reduce(function($,C){return $+C.barSize||0},0);b+=(c-1)*u,b>=a&&(b-=(c-1)*u,u=0),b>=a&&g>0&&(m=!0,g*=.9,b=c*g);var y=(a-b)/2>>0,v={offset:y-u,size:0};d=o.reduce(function($,C){var _={item:C.item,position:{offset:v.offset+v.size+u,size:m?g:C.barSize}},O=[].concat(YL($),[_]);return v=O[O.length-1].position,C.stackList&&C.stackList.length&&C.stackList.forEach(function(E){O.push({item:E,position:v})}),O},h)}else{var N=Cu(n,a,0,!0);a-2*N-(c-1)*u<=0&&(u=0);var S=(a-2*N-(c-1)*u)/c;S>1&&(S>>=0);var j=l===+l?Math.min(S,l):S;d=o.reduce(function($,C,_){var O=[].concat(YL($),[{item:C.item,position:{offset:N+(S+u)*_+(S-j)/2,size:j}}]);return C.stackList&&C.stackList.length&&C.stackList.forEach(function(E){O.push({item:E,position:O[O.length-1].position})}),O},h)}return d},bje=function(e,r,n,a){var i=n.children,o=n.width,l=n.margin,c=o-(l.left||0)-(l.right||0),u=SY({children:i,legendWidth:c});if(u){var d=a||{},h=d.width,m=d.height,g=u.align,b=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&b==="middle")&&g!=="center"&&ze(e[g]))return Hr(Hr({},e),{},ph({},g,e[g]+(h||0)));if((y==="horizontal"||y==="vertical"&&g==="center")&&b!=="middle"&&ze(e[b]))return Hr(Hr({},e),{},ph({},b,e[b]+(m||0)))}return e},xje=function(e,r,n){return Ft(r)?!0:e==="horizontal"?r==="yAxis":e==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},CY=function(e,r,n,a,i){var o=r.props.children,l=Ms(o,a1).filter(function(u){return xje(a,i,u.props.direction)});if(l&&l.length){var c=l.map(function(u){return u.props.dataKey});return e.reduce(function(u,d){var h=ja(d,n);if(Ft(h))return u;var m=Array.isArray(h)?[av(h),Gl(h)]:[h,h],g=c.reduce(function(b,y){var v=ja(d,y,0),N=m[0]-Math.abs(Array.isArray(v)?v[0]:v),S=m[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(N,b[0]),Math.max(S,b[1])]},[1/0,-1/0]);return[Math.min(g[0],u[0]),Math.max(g[1],u[1])]},[1/0,-1/0])}return null},yje=function(e,r,n,a,i){var o=r.map(function(l){return CY(e,l,n,i,a)}).filter(function(l){return!Ft(l)});return o&&o.length?o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]):null},$Y=function(e,r,n,a,i){var o=r.map(function(c){var u=c.props.dataKey;return n==="number"&&u&&CY(e,c,u,a)||um(e,u,n,i)});if(n==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(c,u){for(var d=0,h=u.length;d<h;d++)l[u[d]]||(l[u[d]]=!0,c.push(u[d]));return c},[])},_Y=function(e,r){return e==="horizontal"&&r==="xAxis"||e==="vertical"&&r==="yAxis"||e==="centric"&&r==="angleAxis"||e==="radial"&&r==="radiusAxis"},AY=function(e,r,n,a){if(a)return e.map(function(c){return c.coordinate});var i,o,l=e.map(function(c){return c.coordinate===r&&(i=!0),c.coordinate===n&&(o=!0),c.coordinate});return i||l.push(r),o||l.push(n),l},Po=function(e,r,n){if(!e)return null;var a=e.scale,i=e.duplicateDomain,o=e.type,l=e.range,c=e.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(r||n)&&o==="category"&&a.bandwidth?a.bandwidth()/c:0;if(u=e.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?hi(l[0]-l[1])*2*u:u,r&&(e.ticks||e.niceTicks)){var d=(e.ticks||e.niceTicks).map(function(h){var m=i?i.indexOf(h):h;return{coordinate:a(m)+u,value:h,offset:u}});return d.filter(function(h){return!jf(h.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(h,m){return{coordinate:a(h)+u,value:h,index:m,offset:u}}):a.ticks&&!n?a.ticks(e.tickCount).map(function(h){return{coordinate:a(h)+u,value:h,offset:u}}):a.domain().map(function(h,m){return{coordinate:a(h)+u,value:i?i[h]:h,index:m,offset:u}})},X8=new WeakMap,eb=function(e,r){if(typeof r!="function")return e;X8.has(e)||X8.set(e,new WeakMap);var n=X8.get(e);if(n.has(r))return n.get(r);var a=function(){e.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},vje=function(e,r,n){var a=e.scale,i=e.type,o=e.layout,l=e.axisType;if(a==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Wm(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:Ux(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:cm(),realScaleType:"point"}:i==="category"?{scale:Wm(),realScaleType:"band"}:{scale:Ux(),realScaleType:"linear"};if(Q0(a)){var c="scale".concat(qy(a));return{scale:(RL[c]||cm)(),realScaleType:RL[c]?c:"point"}}return Pt(a)?{scale:a}:{scale:cm(),realScaleType:"point"}},JL=1e-4,wje=function(e){var r=e.domain();if(!(!r||r.length<=2)){var n=r.length,a=e.range(),i=Math.min(a[0],a[1])-JL,o=Math.max(a[0],a[1])+JL,l=e(r[0]),c=e(r[n-1]);(l<i||l>o||c<i||c>o)&&e.domain([r[0],r[n-1]])}},Nje=function(e,r){if(!e)return null;for(var n=0,a=e.length;n<a;n++)if(e[n].item===r)return e[n].position;return null},jje=function(e,r){if(!r||r.length!==2||!ze(r[0])||!ze(r[1]))return e;var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),i=[e[0],e[1]];return(!ze(e[0])||e[0]<n)&&(i[0]=n),(!ze(e[1])||e[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<n&&(i[1]=n),i},kje=function(e){var r=e.length;if(!(r<=0))for(var n=0,a=e[0].length;n<a;++n)for(var i=0,o=0,l=0;l<r;++l){var c=jf(e[l][n][1])?e[l][n][0]:e[l][n][1];c>=0?(e[l][n][0]=i,e[l][n][1]=i+c,i=e[l][n][1]):(e[l][n][0]=o,e[l][n][1]=o+c,o=e[l][n][1])}},Sje=function(e){var r=e.length;if(!(r<=0))for(var n=0,a=e[0].length;n<a;++n)for(var i=0,o=0;o<r;++o){var l=jf(e[o][n][1])?e[o][n][0]:e[o][n][1];l>=0?(e[o][n][0]=i,e[o][n][1]=i+l,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},Cje={sign:kje,expand:c3e,none:Ch,silhouette:u3e,wiggle:d3e,positive:Sje},$je=function(e,r,n){var a=r.map(function(l){return l.props.dataKey}),i=Cje[n],o=l3e().keys(a).value(function(l,c){return+ja(l,c,0)}).order(RN).offset(i);return o(e)},_je=function(e,r,n,a,i,o){if(!e)return null;var l=o?r.reverse():r,c={},u=l.reduce(function(h,m){var g,b=(g=m.type)!==null&&g!==void 0&&g.defaultProps?Hr(Hr({},m.type.defaultProps),m.props):m.props,y=b.stackId,v=b.hide;if(v)return h;var N=b[n],S=h[N]||{hasStack:!1,stackGroups:{}};if(gn(y)){var j=S.stackGroups[y]||{numericAxisId:n,cateAxisId:a,items:[]};j.items.push(m),S.hasStack=!0,S.stackGroups[y]=j}else S.stackGroups[kf("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[m]};return Hr(Hr({},h),{},ph({},N,S))},c),d={};return Object.keys(u).reduce(function(h,m){var g=u[m];if(g.hasStack){var b={};g.stackGroups=Object.keys(g.stackGroups).reduce(function(y,v){var N=g.stackGroups[v];return Hr(Hr({},y),{},ph({},v,{numericAxisId:n,cateAxisId:a,items:N.items,stackedData:$je(e,N.items,i)}))},b)}return Hr(Hr({},h),{},ph({},m,g))},d)},Aje=function(e,r){var n=r.realScaleType,a=r.type,i=r.tickCount,o=r.originalDomain,l=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=e.domain();if(!u.length)return null;var d=HNe(u,i,l);return e.domain([av(d),Gl(d)]),{niceTicks:d}}if(i&&a==="number"){var h=e.domain(),m=FNe(h,i,l);return{niceTicks:m}}return null};function Jx(t){var e=t.axis,r=t.ticks,n=t.bandSize,a=t.entry,i=t.index,o=t.dataKey;if(e.type==="category"){if(!e.allowDuplicatedCategory&&e.dataKey&&!Ft(a[e.dataKey])){var l=jx(r,"value",a[e.dataKey]);if(l)return l.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var c=ja(a,Ft(o)?e.dataKey:o);return Ft(c)?null:e.scale(c)}var QL=function(e){var r=e.axis,n=e.ticks,a=e.offset,i=e.bandSize,o=e.entry,l=e.index;if(r.type==="category")return n[l]?n[l].coordinate+a:null;var c=ja(o,r.dataKey,r.domain[l]);return Ft(c)?null:r.scale(c)-i/2+a},Eje=function(e){var r=e.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return a<=0&&i>=0?0:i<0?i:a}return n[0]},Oje=function(e,r){var n,a=(n=e.type)!==null&&n!==void 0&&n.defaultProps?Hr(Hr({},e.type.defaultProps),e.props):e.props,i=a.stackId;if(gn(i)){var o=r[i];if(o){var l=o.items.indexOf(e);return l>=0?o.stackedData[l]:null}}return null},Pje=function(e){return e.reduce(function(r,n){return[av(n.concat([r[0]]).filter(ze)),Gl(n.concat([r[1]]).filter(ze))]},[1/0,-1/0])},EY=function(e,r,n){return Object.keys(e).reduce(function(a,i){var o=e[i],l=o.stackedData,c=l.reduce(function(u,d){var h=Pje(d.slice(r,n+1));return[Math.min(u[0],h[0]),Math.max(u[1],h[1])]},[1/0,-1/0]);return[Math.min(c[0],a[0]),Math.max(c[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},ZL=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,eB=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ij=function(e,r,n){if(Pt(e))return e(r,n);if(!Array.isArray(e))return r;var a=[];if(ze(e[0]))a[0]=n?e[0]:Math.min(e[0],r[0]);else if(ZL.test(e[0])){var i=+ZL.exec(e[0])[1];a[0]=r[0]-i}else Pt(e[0])?a[0]=e[0](r[0]):a[0]=r[0];if(ze(e[1]))a[1]=n?e[1]:Math.max(e[1],r[1]);else if(eB.test(e[1])){var o=+eB.exec(e[1])[1];a[1]=r[1]+o}else Pt(e[1])?a[1]=e[1](r[1]):a[1]=r[1];return a},Qx=function(e,r,n){if(e&&e.scale&&e.scale.bandwidth){var a=e.scale.bandwidth();if(!n||a>0)return a}if(e&&r&&r.length>=2){for(var i=HC(r,function(h){return h.coordinate}),o=1/0,l=1,c=i.length;l<c;l++){var u=i[l],d=i[l-1];o=Math.min((u.coordinate||0)-(d.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},tB=function(e,r,n){return!e||!e.length||Th(e,Ps(n,"type.defaultProps.domain"))?r:e},OY=function(e,r){var n=e.type.defaultProps?Hr(Hr({},e.type.defaultProps),e.props):e.props,a=n.dataKey,i=n.name,o=n.unit,l=n.formatter,c=n.tooltipType,u=n.chartType,d=n.hide;return Hr(Hr({},Mt(e,!1)),{},{dataKey:a,unit:o,formatter:l,name:i||a,color:h$(e),value:ja(r,a),type:c,payload:r,chartType:u,hide:d})};function t0(t){"@babel/helpers - typeof";return t0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t0(t)}function rB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function nB(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?rB(Object(r),!0).forEach(function(n){Mje(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Mje(t,e,r){return e=Tje(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tje(t){var e=Rje(t,"string");return t0(e)=="symbol"?e:e+""}function Rje(t,e){if(t0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(t0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Zx=Math.PI/180,Ije=function(e){return e*180/Math.PI},Fn=function(e,r,n,a){return{x:e+Math.cos(-Zx*a)*n,y:r+Math.sin(-Zx*a)*n}},Dje=function(e,r){var n=e.x,a=e.y,i=r.x,o=r.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(a-o,2))},Lje=function(e,r){var n=e.x,a=e.y,i=r.cx,o=r.cy,l=Dje({x:n,y:a},{x:i,y:o});if(l<=0)return{radius:l};var c=(n-i)/l,u=Math.acos(c);return a>o&&(u=2*Math.PI-u),{radius:l,angle:Ije(u),angleInRadian:u}},Bje=function(e){var r=e.startAngle,n=e.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return{startAngle:r-o*360,endAngle:n-o*360}},Hje=function(e,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),o=Math.floor(a/360),l=Math.min(i,o);return e+l*360},aB=function(e,r){var n=e.x,a=e.y,i=Lje({x:n,y:a},r),o=i.radius,l=i.angle,c=r.innerRadius,u=r.outerRadius;if(o<c||o>u)return!1;if(o===0)return!0;var d=Bje(r),h=d.startAngle,m=d.endAngle,g=l,b;if(h<=m){for(;g>m;)g-=360;for(;g<h;)g+=360;b=g>=h&&g<=m}else{for(;g>h;)g-=360;for(;g<m;)g+=360;b=g>=m&&g<=h}return b?nB(nB({},r),{},{radius:o,angle:Hje(g,r)}):null};function r0(t){"@babel/helpers - typeof";return r0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r0(t)}var Fje=["offset"];function zje(t){return Wje(t)||qje(t)||Uje(t)||Vje()}function Vje(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1191In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uje(t,e){if(t){if(typeof t=="string")return oj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oj(t,e)}}function qje(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Wje(t){if(Array.isArray(t))return oj(t)}function oj(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Gje(t,e){if(t==null)return{};var r=Kje(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Kje(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function sB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function dn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?sB(Object(r),!0).forEach(function(n){Yje(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Yje(t,e,r){return e=Xje(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xje(t){var e=Jje(t,"string");return r0(e)=="symbol"?e:e+""}function Jje(t,e){if(r0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(r0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function n0(){return n0=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n0.apply(this,arguments)}var Qje=function(e){var r=e.value,n=e.formatter,a=Ft(e.children)?r:e.children;return Pt(n)?n(a):a},Zje=function(e,r){var n=hi(r-e),a=Math.min(Math.abs(r-e),360);return n*a},eke=function(e,r,n){var a=e.position,i=e.viewBox,o=e.offset,l=e.className,c=i,u=c.cx,d=c.cy,h=c.innerRadius,m=c.outerRadius,g=c.startAngle,b=c.endAngle,y=c.clockWise,v=(h+m)/2,N=Zje(g,b),S=N>=0?1:-1,j,$;a==="insideStart"?(j=g+S*o,$=y):a==="insideEnd"?(j=b-S*o,$=!y):a==="end"&&(j=b+S*o,$=y),$=N<=0?$:!$;var C=Fn(u,d,v,j),_=Fn(u,d,v,j+($?1:-1)*359),O="M".concat(C.x,",").concat(C.y,` 1192 A`).concat(v,",").concat(v,",0,1,").concat($?0:1,`, 1193 `).concat(_.x,",").concat(_.y),E=Ft(e.id)?kf("recharts-radial-line-"):e.id;return z.createElement("text",n0({},n,{dominantBaseline:"central",className:zt("recharts-radial-bar-label",l)}),z.createElement("defs",null,z.createElement("path",{id:E,d:O})),z.createElement("textPath",{xlinkHref:"#".concat(E)},r))},tke=function(e){var r=e.viewBox,n=e.offset,a=e.position,i=r,o=i.cx,l=i.cy,c=i.innerRadius,u=i.outerRadius,d=i.startAngle,h=i.endAngle,m=(d+h)/2;if(a==="outside"){var g=Fn(o,l,u+n,m),b=g.x,y=g.y;return{x:b,y,textAnchor:b>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var v=(c+u)/2,N=Fn(o,l,v,m),S=N.x,j=N.y;return{x:S,y:j,textAnchor:"middle",verticalAnchor:"middle"}},rke=function(e){var r=e.viewBox,n=e.parentViewBox,a=e.offset,i=e.position,o=r,l=o.x,c=o.y,u=o.width,d=o.height,h=d>=0?1:-1,m=h*a,g=h>0?"end":"start",b=h>0?"start":"end",y=u>=0?1:-1,v=y*a,N=y>0?"end":"start",S=y>0?"start":"end";if(i==="top"){var j={x:l+u/2,y:c-h*a,textAnchor:"middle",verticalAnchor:g};return dn(dn({},j),n?{height:Math.max(c-n.y,0),width:u}:{})}if(i==="bottom"){var $={x:l+u/2,y:c+d+m,textAnchor:"middle",verticalAnchor:b};return dn(dn({},$),n?{height:Math.max(n.y+n.height-(c+d),0),width:u}:{})}if(i==="left"){var C={x:l-v,y:c+d/2,textAnchor:N,verticalAnchor:"middle"};return dn(dn({},C),n?{width:Math.max(C.x-n.x,0),height:d}:{})}if(i==="right"){var _={x:l+u+v,y:c+d/2,textAnchor:S,verticalAnchor:"middle"};return dn(dn({},_),n?{width:Math.max(n.x+n.width-_.x,0),height:d}:{})}var O=n?{width:u,height:d}:{};return i==="insideLeft"?dn({x:l+v,y:c+d/2,textAnchor:S,verticalAnchor:"middle"},O):i==="insideRight"?dn({x:l+u-v,y:c+d/2,textAnchor:N,verticalAnchor:"middle"},O):i==="insideTop"?dn({x:l+u/2,y:c+m,textAnchor:"middle",verticalAnchor:b},O):i==="insideBottom"?dn({x:l+u/2,y:c+d-m,textAnchor:"middle",verticalAnchor:g},O):i==="insideTopLeft"?dn({x:l+v,y:c+m,textAnchor:S,verticalAnchor:b},O):i==="insideTopRight"?dn({x:l+u-v,y:c+m,textAnchor:N,verticalAnchor:b},O):i==="insideBottomLeft"?dn({x:l+v,y:c+d-m,textAnchor:S,verticalAnchor:g},O):i==="insideBottomRight"?dn({x:l+u-v,y:c+d-m,textAnchor:N,verticalAnchor:g},O):Nf(i)&&(ze(i.x)||su(i.x))&&(ze(i.y)||su(i.y))?dn({x:l+Cu(i.x,u),y:c+Cu(i.y,d),textAnchor:"end",verticalAnchor:"end"},O):dn({x:l+u/2,y:c+d/2,textAnchor:"middle",verticalAnchor:"middle"},O)},nke=function(e){return"cx"in e&&ze(e.cx)};function aa(t){var e=t.offset,r=e===void 0?5:e,n=Gje(t,Fje),a=dn({offset:r},n),i=a.viewBox,o=a.position,l=a.value,c=a.children,u=a.content,d=a.className,h=d===void 0?"":d,m=a.textBreakAll;if(!i||Ft(l)&&Ft(c)&&!w.isValidElement(u)&&!Pt(u))return null;if(w.isValidElement(u))return w.cloneElement(u,a);var g;if(Pt(u)){if(g=w.createElement(u,a),w.isValidElement(g))return g}else g=Qje(a);var b=nke(i),y=Mt(a,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return eke(a,g,y);var v=b?tke(a):rke(a);return z.createElement(Ix,n0({className:zt("recharts-label",h)},y,v,{breakAll:m}),g)}aa.displayName="Label";var PY=function(e){var r=e.cx,n=e.cy,a=e.angle,i=e.startAngle,o=e.endAngle,l=e.r,c=e.radius,u=e.innerRadius,d=e.outerRadius,h=e.x,m=e.y,g=e.top,b=e.left,y=e.width,v=e.height,N=e.clockWise,S=e.labelViewBox;if(S)return S;if(ze(y)&&ze(v)){if(ze(h)&&ze(m))return{x:h,y:m,width:y,height:v};if(ze(g)&&ze(b))return{x:g,y:b,width:y,height:v}}return ze(h)&&ze(m)?{x:h,y:m,width:0,height:0}:ze(r)&&ze(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:d||c||l||0,clockWise:N}:e.viewBox?e.viewBox:{}},ake=function(e,r){return e?e===!0?z.createElement(aa,{key:"label-implicit",viewBox:r}):gn(e)?z.createElement(aa,{key:"label-implicit",viewBox:r,value:e}):w.isValidElement(e)?e.type===aa?w.cloneElement(e,{key:"label-implicit",viewBox:r}):z.createElement(aa,{key:"label-implicit",content:e,viewBox:r}):Pt(e)?z.createElement(aa,{key:"label-implicit",content:e,viewBox:r}):Nf(e)?z.createElement(aa,n0({viewBox:r},e,{key:"label-implicit"})):null:null},ske=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var a=e.children,i=PY(e),o=Ms(a,aa).map(function(c,u){return w.cloneElement(c,{viewBox:r||i,key:"label-".concat(u)})});if(!n)return o;var l=ake(e.label,r||i);return[l].concat(zje(o))};aa.parseViewBox=PY;aa.renderCallByParent=ske;var J8,iB;function ike(){if(iB)return J8;iB=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return J8=t,J8}var oke=ike();const lke=ar(oke);function a0(t){"@babel/helpers - typeof";return a0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a0(t)}var cke=["valueAccessor"],uke=["data","dataKey","clockWise","id","textBreakAll"];function dke(t){return mke(t)||pke(t)||fke(t)||hke()}function hke(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1194In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fke(t,e){if(t){if(typeof t=="string")return lj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lj(t,e)}}function pke(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mke(t){if(Array.isArray(t))return lj(t)}function lj(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function e2(){return e2=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},e2.apply(this,arguments)}function oB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function lB(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?oB(Object(r),!0).forEach(function(n){gke(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function gke(t,e,r){return e=bke(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bke(t){var e=xke(t,"string");return a0(e)=="symbol"?e:e+""}function xke(t,e){if(a0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(a0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cB(t,e){if(t==null)return{};var r=yke(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function yke(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var vke=function(e){return Array.isArray(e.value)?lke(e.value):e.value};function zo(t){var e=t.valueAccessor,r=e===void 0?vke:e,n=cB(t,cke),a=n.data,i=n.dataKey,o=n.clockWise,l=n.id,c=n.textBreakAll,u=cB(n,uke);return!a||!a.length?null:z.createElement(fr,{className:"recharts-label-list"},a.map(function(d,h){var m=Ft(i)?r(d,h):ja(d&&d.payload,i),g=Ft(l)?{}:{id:"".concat(l,"-").concat(h)};return z.createElement(aa,e2({},Mt(d,!0),u,g,{parentViewBox:d.parentViewBox,value:m,textBreakAll:c,viewBox:aa.parseViewBox(Ft(o)?d:lB(lB({},d),{},{clockWise:o})),key:"label-".concat(h),index:h}))}))}zo.displayName="LabelList";function wke(t,e){return t?t===!0?z.createElement(zo,{key:"labelList-implicit",data:e}):z.isValidElement(t)||Pt(t)?z.createElement(zo,{key:"labelList-implicit",data:e,content:t}):Nf(t)?z.createElement(zo,e2({data:e},t,{key:"labelList-implicit"})):null:null}function Nke(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var n=t.children,a=Ms(n,zo).map(function(o,l){return w.cloneElement(o,{data:e,key:"labelList-".concat(l)})});if(!r)return a;var i=wke(t.label,e);return[i].concat(dke(a))}zo.renderCallByParent=Nke;function s0(t){"@babel/helpers - typeof";return s0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s0(t)}function cj(){return cj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},cj.apply(this,arguments)}function uB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function dB(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?uB(Object(r),!0).forEach(function(n){jke(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function jke(t,e,r){return e=kke(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kke(t){var e=Ske(t,"string");return s0(e)=="symbol"?e:e+""}function Ske(t,e){if(s0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(s0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Cke=function(e,r){var n=hi(r-e),a=Math.min(Math.abs(r-e),359.999);return n*a},tb=function(e){var r=e.cx,n=e.cy,a=e.radius,i=e.angle,o=e.sign,l=e.isExternal,c=e.cornerRadius,u=e.cornerIsExternal,d=c*(l?1:-1)+a,h=Math.asin(c/d)/Zx,m=u?i:i+o*h,g=Fn(r,n,d,m),b=Fn(r,n,a,m),y=u?i-o*h:i,v=Fn(r,n,d*Math.cos(h*Zx),y);return{center:g,circleTangency:b,lineTangency:v,theta:h}},MY=function(e){var r=e.cx,n=e.cy,a=e.innerRadius,i=e.outerRadius,o=e.startAngle,l=e.endAngle,c=Cke(o,l),u=o+c,d=Fn(r,n,i,o),h=Fn(r,n,i,u),m="M ".concat(d.x,",").concat(d.y,` 1195 A `).concat(i,",").concat(i,`,0, 1196 `).concat(+(Math.abs(c)>180),",").concat(+(o>u),`, 1197 `).concat(h.x,",").concat(h.y,` 1198 `);if(a>0){var g=Fn(r,n,a,o),b=Fn(r,n,a,u);m+="L ".concat(b.x,",").concat(b.y,` 1199 A `).concat(a,",").concat(a,`,0, 1200 `).concat(+(Math.abs(c)>180),",").concat(+(o<=u),`, 1201 `).concat(g.x,",").concat(g.y," Z")}else m+="L ".concat(r,",").concat(n," Z");return m},$ke=function(e){var r=e.cx,n=e.cy,a=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,l=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,d=e.endAngle,h=hi(d-u),m=tb({cx:r,cy:n,radius:i,angle:u,sign:h,cornerRadius:o,cornerIsExternal:c}),g=m.circleTangency,b=m.lineTangency,y=m.theta,v=tb({cx:r,cy:n,radius:i,angle:d,sign:-h,cornerRadius:o,cornerIsExternal:c}),N=v.circleTangency,S=v.lineTangency,j=v.theta,$=c?Math.abs(u-d):Math.abs(u-d)-y-j;if($<0)return l?"M ".concat(b.x,",").concat(b.y,` 1202 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 1203 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 1204 `):MY({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d});var C="M ".concat(b.x,",").concat(b.y,` 1205 A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(g.x,",").concat(g.y,` 1206 A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(h<0),",").concat(N.x,",").concat(N.y,` 1207 A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(S.x,",").concat(S.y,` 1208 `);if(a>0){var _=tb({cx:r,cy:n,radius:a,angle:u,sign:h,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=_.circleTangency,E=_.lineTangency,P=_.theta,T=tb({cx:r,cy:n,radius:a,angle:d,sign:-h,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),I=T.circleTangency,R=T.lineTangency,F=T.theta,L=c?Math.abs(u-d):Math.abs(u-d)-P-F;if(L<0&&o===0)return"".concat(C,"L").concat(r,",").concat(n,"Z");C+="L".concat(R.x,",").concat(R.y,` 1209 A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(I.x,",").concat(I.y,` 1210 A`).concat(a,",").concat(a,",0,").concat(+(L>180),",").concat(+(h>0),",").concat(O.x,",").concat(O.y,` 1211 A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(E.x,",").concat(E.y,"Z")}else C+="L".concat(r,",").concat(n,"Z");return C},_ke={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},TY=function(e){var r=dB(dB({},_ke),e),n=r.cx,a=r.cy,i=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,c=r.forceCornerRadius,u=r.cornerIsExternal,d=r.startAngle,h=r.endAngle,m=r.className;if(o<i||d===h)return null;var g=zt("recharts-sector",m),b=o-i,y=Cu(l,b,0,!0),v;return y>0&&Math.abs(d-h)<360?v=$ke({cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,b/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:d,endAngle:h}):v=MY({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:d,endAngle:h}),z.createElement("path",cj({},Mt(r,!0),{className:g,d:v,role:"img"}))};function i0(t){"@babel/helpers - typeof";return i0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i0(t)}function uj(){return uj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},uj.apply(this,arguments)}function hB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function fB(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hB(Object(r),!0).forEach(function(n){Ake(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ake(t,e,r){return e=Eke(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Eke(t){var e=Oke(t,"string");return i0(e)=="symbol"?e:e+""}function Oke(t,e){if(i0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(i0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var pB={curveBasisClosed:J4e,curveBasisOpen:Q4e,curveBasis:X4e,curveBumpX:I4e,curveBumpY:D4e,curveLinearClosed:Z4e,curveLinear:Gy,curveMonotoneX:e3e,curveMonotoneY:t3e,curveNatural:r3e,curveStep:n3e,curveStepAfter:s3e,curveStepBefore:a3e},rb=function(e){return e.x===+e.x&&e.y===+e.y},Ep=function(e){return e.x},Op=function(e){return e.y},Pke=function(e,r){if(Pt(e))return e;var n="curve".concat(qy(e));return(n==="curveMonotone"||n==="curveBump")&&r?pB["".concat(n).concat(r==="vertical"?"Y":"X")]:pB[n]||Gy},Mke=function(e){var r=e.type,n=r===void 0?"linear":r,a=e.points,i=a===void 0?[]:a,o=e.baseLine,l=e.layout,c=e.connectNulls,u=c===void 0?!1:c,d=Pke(n,l),h=u?i.filter(function(y){return rb(y)}):i,m;if(Array.isArray(o)){var g=u?o.filter(function(y){return rb(y)}):o,b=h.map(function(y,v){return fB(fB({},y),{},{base:g[v]})});return l==="vertical"?m=Gg().y(Op).x1(Ep).x0(function(y){return y.base.x}):m=Gg().x(Ep).y1(Op).y0(function(y){return y.base.y}),m.defined(rb).curve(d),m(b)}return l==="vertical"&&ze(o)?m=Gg().y(Op).x1(Ep).x0(o):ze(o)?m=Gg().x(Ep).y1(Op).y0(o):m=BG().x(Ep).y(Op),m.defined(rb).curve(d),m(h)},mh=function(e){var r=e.className,n=e.points,a=e.path,i=e.pathRef;if((!n||!n.length)&&!a)return null;var o=n&&n.length?Mke(e):a;return z.createElement("path",uj({},Mt(e,!1),kx(e),{className:zt("recharts-curve",r),d:o,ref:i}))};const{getOwnPropertyNames:Tke,getOwnPropertySymbols:Rke}=Object,{hasOwnProperty:Ike}=Object.prototype;function Q8(t,e){return function(n,a,i){return t(n,a,i)&&e(n,a,i)}}function nb(t){return function(r,n,a){if(!r||!n||typeof r!="object"||typeof n!="object")return t(r,n,a);const{cache:i}=a,o=i.get(r),l=i.get(n);if(o&&l)return o===n&&l===r;i.set(r,n),i.set(n,r);const c=t(r,n,a);return i.delete(r),i.delete(n),c}}function Dke(t){return t!=null?t[Symbol.toStringTag]:void 0}function mB(t){return Tke(t).concat(Rke(t))}const Lke=Object.hasOwn||((t,e)=>Ike.call(t,e));function Gu(t,e){return t===e||!t&&!e&&t!==t&&e!==e}const Bke="__v",Hke="__o",Fke="_owner",{getOwnPropertyDescriptor:gB,keys:bB}=Object;function zke(t,e){return t.byteLength===e.byteLength&&t2(new Uint8Array(t),new Uint8Array(e))}function Vke(t,e,r){let n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function Uke(t,e){return t.byteLength===e.byteLength&&t2(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function qke(t,e){return Gu(t.getTime(),e.getTime())}function Wke(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function Gke(t,e){return t===e}function xB(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const a=new Array(n),i=t.entries();let o,l,c=0;for(;(o=i.next())&&!o.done;){const u=e.entries();let d=!1,h=0;for(;(l=u.next())&&!l.done;){if(a[h]){h++;continue}const m=o.value,g=l.value;if(r.equals(m[0],g[0],c,h,t,e,r)&&r.equals(m[1],g[1],m[0],g[0],t,e,r)){d=a[h]=!0;break}h++}if(!d)return!1;c++}return!0}const Kke=Gu;function Yke(t,e,r){const n=bB(t);let a=n.length;if(bB(e).length!==a)return!1;for(;a-- >0;)if(!RY(t,e,r,n[a]))return!1;return!0}function Pp(t,e,r){const n=mB(t);let a=n.length;if(mB(e).length!==a)return!1;let i,o,l;for(;a-- >0;)if(i=n[a],!RY(t,e,r,i)||(o=gB(t,i),l=gB(e,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function Xke(t,e){return Gu(t.valueOf(),e.valueOf())}function Jke(t,e){return t.source===e.source&&t.flags===e.flags}function yB(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const a=new Array(n),i=t.values();let o,l;for(;(o=i.next())&&!o.done;){const c=e.values();let u=!1,d=0;for(;(l=c.next())&&!l.done;){if(!a[d]&&r.equals(o.value,l.value,o.value,l.value,t,e,r)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function t2(t,e){let r=t.byteLength;if(e.byteLength!==r||t.byteOffset!==e.byteOffset)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function Qke(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function RY(t,e,r,n){return(n===Fke||n===Hke||n===Bke)&&(t.$$typeof||e.$$typeof)?!0:Lke(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}const Zke="[object ArrayBuffer]",eSe="[object Arguments]",tSe="[object Boolean]",rSe="[object DataView]",nSe="[object Date]",aSe="[object Error]",sSe="[object Map]",iSe="[object Number]",oSe="[object Object]",lSe="[object RegExp]",cSe="[object Set]",uSe="[object String]",dSe={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
1211]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},hSe="[object URL]",fSe=Object.prototype.toString;function pSe({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:d,areSetsEqual:h,areTypedArraysEqual:m,areUrlsEqual:g,unknownTagComparators:b}){return function(v,N,S){if(v===N)return!0;if(v==null||N==null)return!1;const j=typeof v;if(j!==typeof N)return!1;if(j!=="object")return j==="number"?l(v,N,S):j==="function"?i(v,N,S):!1;const $=v.constructor;if($!==N.constructor)return!1;if($===Object)return c(v,N,S);if(Array.isArray(v))return e(v,N,S);if($===Date)return n(v,N,S);if($===RegExp)return d(v,N,S);if($===Map)return o(v,N,S);if($===Set)return h(v,N,S);const C=fSe.call(v);if(C===nSe)return n(v,N,S);if(C===lSe)return d(v,N,S);if(C===sSe)return o(v,N,S);if(C===cSe)return h(v,N,S);if(C===oSe)return typeof v.then!="function"&&typeof N.then!="function"&&c(v,N,S);if(C===hSe)return g(v,N,S);if(C===aSe)return a(v,N,S);if(C===eSe)return c(v,N,S);if(dSe[C])return m(v,N,S);if(C===Zke)return t(v,N,S);if(C===rSe)return r(v,N,S);if(C===tSe||C===iSe||C===uSe)return u(v,N,S);if(b){let _=b[C];if(!_){const O=Dke(v);O&&(_=b[O])}if(_)return _(v,N,S)}return!1}}function mSe({circular:t,createCustomConfig:e,strict:r}){let n={areArrayBuffersEqual:zke,areArraysEqual:r?Pp:Vke,areDataViewsEqual:Uke,areDatesEqual:qke,areErrorsEqual:Wke,areFunctionsEqual:Gke,areMapsEqual:r?Q8(xB,Pp):xB,areNumbersEqual:Kke,areObjectsEqual:r?Pp:Yke,arePrimitiveWrappersEqual:Xke,areRegExpsEqual:Jke,areSetsEqual:r?Q8(yB,Pp):yB,areTypedArraysEqual:r?Q8(t2,Pp):t2,areUrlsEqual:Qke,unknownTagComparators:void 0};if(e&&(n=Object.assign({},n,e(n))),t){const a=nb(n.areArraysEqual),i=nb(n.areMapsEqual),o=nb(n.areObjectsEqual),l=nb(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:o,areSetsEqual:l})}return n}function gSe(t){return function(e,r,n,a,i,o,l){return t(e,r,l)}}function bSe({circular:t,comparator:e,createState:r,equals:n,strict:a}){if(r)return function(l,c){const{cache:u=t?new WeakMap:void 0,meta:d}=r();return e(l,c,{cache:u,equals:n,meta:d,strict:a})};if(t)return function(l,c){return e(l,c,{cache:new WeakMap,equals:n,meta:void 0,strict:a})};const i={cache:void 0,equals:n,meta:void 0,strict:a};return function(l,c){return e(l,c,i)}}const xSe=bc();bc({strict:!0});bc({circular:!0});bc({circular:!0,strict:!0});bc({createInternalComparator:()=>Gu});bc({strict:!0,createInternalComparator:()=>Gu});bc({circular:!0,createInternalComparator:()=>Gu});bc({circular:!0,createInternalComparator:()=>Gu,strict:!0});function bc(t={}){const{circular:e=!1,createInternalComparator:r,createState:n,strict:a=!1}=t,i=mSe(t),o=pSe(i),l=r?r(o):gSe(o);return bSe({circular:e,comparator:o,createState:n,equals:l,strict:a})}function ySe(t){typeof requestAnimationFrame<"u"&&requestAnimationFrame(t)}function vB(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>e?(t(i),r=-1):ySe(a)};requestAnimationFrame(n)}function dj(t){"@babel/helpers - typeof";return dj=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dj(t)}function vSe(t){return kSe(t)||jSe(t)||NSe(t)||wSe()}function wSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1212In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NSe(t,e){if(t){if(typeof t=="string")return wB(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wB(t,e)}}function wB(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jSe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function kSe(t){if(Array.isArray(t))return t}function SSe(){var t={},e=function(){return null},r=!1,n=function a(i){if(!r){if(Array.isArray(i)){if(!i.length)return;var o=i,l=vSe(o),c=l[0],u=l.slice(1);if(typeof c=="number"){vB(a.bind(null,u),c);return}a(c),vB(a.bind(null,u));return}dj(i)==="object"&&(t=i,e(t)),typeof i=="function"&&i()}};return{stop:function(){r=!0},start:function(i){r=!1,n(i)},subscribe:function(i){return e=i,function(){e=function(){return null}}}}}function o0(t){"@babel/helpers - typeof";return o0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o0(t)}function NB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function jB(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};
vendor: 170,127 bytes, lines 1212-1234
1212e%2?NB(Object(r),!0).forEach(function(n){IY(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function IY(t,e,r){return e=CSe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function CSe(t){var e=$Se(t,"string");return o0(e)==="symbol"?e:String(e)}function $Se(t,e){if(o0(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(o0(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var _Se=function(e,r){return[Object.keys(e),Object.keys(r)].reduce(function(n,a){return n.filter(function(i){return a.includes(i)})})},ASe=function(e){return e},ESe=function(e){return e.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},dm=function(e,r){return Object.keys(r).reduce(function(n,a){return jB(jB({},n),{},IY({},a,e(a,r[a])))},{})},kB=function(e,r,n){return e.map(function(a){return"".concat(ESe(a)," ").concat(r,"ms ").concat(n)}).join(",")};function OSe(t,e){return TSe(t)||MSe(t,e)||DY(t,e)||PSe()}function PSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1213In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MSe(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function TSe(t){if(Array.isArray(t))return t}function RSe(t){return LSe(t)||DSe(t)||DY(t)||ISe()}function ISe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1214In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DY(t,e){if(t){if(typeof t=="string")return hj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hj(t,e)}}function DSe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function LSe(t){if(Array.isArray(t))return hj(t)}function hj(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var r2=1e-4,LY=function(e,r){return[0,3*e,3*r-6*e,3*e-3*r+1]},BY=function(e,r){return e.map(function(n,a){return n*Math.pow(r,a)}).reduce(function(n,a){return n+a})},SB=function(e,r){return function(n){var a=LY(e,r);return BY(a,n)}},BSe=function(e,r){return function(n){var a=LY(e,r),i=[].concat(RSe(a.map(function(o,l){return o*l}).slice(1)),[0]);return BY(i,n)}},CB=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var a=r[0],i=r[1],o=r[2],l=r[3];if(r.length===1)switch(r[0]){case"linear":a=0,i=0,o=1,l=1;break;case"ease":a=.25,i=.1,o=.25,l=1;break;case"ease-in":a=.42,i=0,o=1,l=1;break;case"ease-out":a=.42,i=0,o=.58,l=1;break;case"ease-in-out":a=0,i=0,o=.58,l=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),d=OSe(u,4);a=d[0],i=d[1],o=d[2],l=d[3]}}}var h=SB(a,o),m=SB(i,l),g=BSe(a,o),b=function(N){return N>1?1:N<0?0:N},y=function(N){for(var S=N>1?1:N,j=S,$=0;$<8;++$){var C=h(j)-S,_=g(j);if(Math.abs(C-S)<r2||_<r2)return m(j);j=b(j-C/_)}return m(j)};return y.isStepper=!1,y},HSe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.stiff,n=r===void 0?100:r,a=e.damping,i=a===void 0?8:a,o=e.dt,l=o===void 0?17:o,c=function(d,h,m){var g=-(d-h)*n,b=m*i,y=m+(g-b)*l/1e3,v=m*l/1e3+d;return Math.abs(v-h)<r2&&Math.abs(y)<r2?[h,0]:[v,y]};return c.isStepper=!0,c.dt=l,c},FSe=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var a=r[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return CB(a);case"spring":return HSe();default:if(a.split("(")[0]==="cubic-bezier")return CB(a)}return typeof a=="function"?a:null};function l0(t){"@babel/helpers - typeof";return l0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l0(t)}function $B(t){return USe(t)||VSe(t)||HY(t)||zSe()}function zSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1215In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VSe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function USe(t){if(Array.isArray(t))return pj(t)}function _B(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Rn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_B(Object(r),!0).forEach(function(n){fj(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_B(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function fj(t,e,r){return e=qSe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qSe(t){var e=WSe(t,"string");return l0(e)==="symbol"?e:String(e)}function WSe(t,e){if(l0(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(l0(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function GSe(t,e){return XSe(t)||YSe(t,e)||HY(t,e)||KSe()}function KSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1216In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HY(t,e){if(t){if(typeof t=="string")return pj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pj(t,e)}}function pj(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function YSe(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function XSe(t){if(Array.isArray(t))return t}var n2=function(e,r,n){return e+(r-e)*n},mj=function(e){var r=e.from,n=e.to;return r!==n},JSe=function t(e,r,n){var a=dm(function(i,o){if(mj(o)){var l=e(o.from,o.to,o.velocity),c=GSe(l,2),u=c[0],d=c[1];return Rn(Rn({},o),{},{from:u,velocity:d})}return o},r);return n<1?dm(function(i,o){return mj(o)?Rn(Rn({},o),{},{velocity:n2(o.velocity,a[i].velocity,n),from:n2(o.from,a[i].from,n)}):o},r):t(e,a,n-1)};const QSe=(function(t,e,r,n,a){var i=_Se(t,e),o=i.reduce(function(v,N){return Rn(Rn({},v),{},fj({},N,[t[N],e[N]]))},{}),l=i.reduce(function(v,N){return Rn(Rn({},v),{},fj({},N,{from:t[N],velocity:0,to:e[N]}))},{}),c=-1,u,d,h=function(){return null},m=function(){return dm(function(N,S){return S.from},l)},g=function(){return!Object.values(l).filter(mj).length},b=function(N){u||(u=N);var S=N-u,j=S/r.dt;l=JSe(r,l,j),a(Rn(Rn(Rn({},t),e),m())),u=N,g()||(c=requestAnimationFrame(h))},y=function(N){d||(d=N);var S=(N-d)/n,j=dm(function(C,_){return n2.apply(void 0,$B(_).concat([r(S)]))},o);if(a(Rn(Rn(Rn({},t),e),j)),S<1)c=requestAnimationFrame(h);else{var $=dm(function(C,_){return n2.apply(void 0,$B(_).concat([r(1)]))},o);a(Rn(Rn(Rn({},t),e),$))}};return h=r.isStepper?b:y,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(c)}}});function Ih(t){"@babel/helpers - typeof";return Ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ih(t)}var ZSe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function eCe(t,e){if(t==null)return{};var r=tCe(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function tCe(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Z8(t){return sCe(t)||aCe(t)||nCe(t)||rCe()}function rCe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1217In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nCe(t,e){if(t){if(typeof t=="string")return gj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gj(t,e)}}function aCe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function sCe(t){if(Array.isArray(t))return gj(t)}function gj(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function AB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Zs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?AB(Object(r),!0).forEach(function(n){qp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):AB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qp(t,e,r){return e=FY(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iCe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oCe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,FY(n.key),n)}}function lCe(t,e,r){return e&&oCe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function FY(t){var e=cCe(t,"string");return Ih(e)==="symbol"?e:String(e)}function cCe(t,e){if(Ih(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ih(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function uCe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bj(t,e)}function bj(t,e){return bj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},bj(t,e)}function dCe(t){var e=hCe();return function(){var n=a2(t),a;if(e){var i=a2(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return xj(this,a)}}function xj(t,e){if(e&&(Ih(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yj(t)}function yj(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function a2(t){return a2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},a2(t)}var Ji=(function(t){uCe(r,t);var e=dCe(r);function r(n,a){var i;iCe(this,r),i=e.call(this,n,a);var o=i.props,l=o.isActive,c=o.attributeName,u=o.from,d=o.to,h=o.steps,m=o.children,g=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(yj(i)),i.changeStyle=i.changeStyle.bind(yj(i)),!l||g<=0)return i.state={style:{}},typeof m=="function"&&(i.state={style:d}),xj(i);if(h&&h.length)i.state={style:h[0].style};else if(u){if(typeof m=="function")return i.state={style:u},xj(i);i.state={style:c?qp({},c,u):u}}else i.state={style:{}};return i}return lCe(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,l=i.canBegin,c=i.attributeName,u=i.shouldReAnimate,d=i.to,h=i.from,m=this.state.style;if(l){if(!o){var g={style:c?qp({},c,d):d};this.state&&m&&(c&&m[c]!==d||!c&&m!==d)&&this.setState(g);return}if(!(xSe(a.to,d)&&a.canBegin&&a.isActive)){var b=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=b||u?h:a.to;if(this.state&&m){var v={style:c?qp({},c,y):y};(c&&m[c]!==y||!c&&m!==y)&&this.setState(v)}this.runAnimation(Zs(Zs({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,l=a.to,c=a.duration,u=a.easing,d=a.begin,h=a.onAnimationEnd,m=a.onAnimationStart,g=QSe(o,l,FSe(u),c,this.changeStyle),b=function(){i.stopJSAnimation=g()};this.manager.start([m,d,b,c,h])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,l=a.begin,c=a.onAnimationStart,u=o[0],d=u.style,h=u.duration,m=h===void 0?0:h,g=function(y,v,N){if(N===0)return y;var S=v.duration,j=v.easing,$=j===void 0?"ease":j,C=v.style,_=v.properties,O=v.onAnimationEnd,E=N>0?o[N-1]:v,P=_||Object.keys(C);if(typeof $=="function"||$==="spring")return[].concat(Z8(y),[i.runJSAnimation.bind(i,{from:E.style,to:C,duration:S,easing:$}),S]);var T=kB(P,S,$),I=Zs(Zs(Zs({},E.style),C),{},{transition:T});return[].concat(Z8(y),[I,S,O]).filter(ASe)};return this.manager.start([c].concat(Z8(o.reduce(g,[d,Math.max(m,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=SSe());var i=a.begin,o=a.duration,l=a.attributeName,c=a.to,u=a.easing,d=a.onAnimationStart,h=a.onAnimationEnd,m=a.steps,g=a.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof u=="function"||typeof g=="function"||u==="spring"){this.runJSAnimation(a);return}if(m.length>1){this.runStepAnimation(a);return}var y=l?qp({},l,c):c,v=kB(Object.keys(y),o,u);b.start([d,i,Zs(Zs({},y),{},{transition:v}),o,h])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var l=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var c=eCe(a,ZSe),u=w.Children.count(i),d=this.state.style;if(typeof i=="function")return i(d);if(!l||u===0||o<=0)return i;var h=function(g){var b=g.props,y=b.style,v=y===void 0?{}:y,N=b.className,S=w.cloneElement(g,Zs(Zs({},c),{},{style:Zs(Zs({},v),d),className:N}));return S};return u===1?h(w.Children.only(i)):z.createElement("div",null,w.Children.map(i,function(m){return h(m)}))}}]),r})(w.PureComponent);Ji.displayName="Animate";Ji.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ji.propTypes={from:Qt.oneOfType([Qt.object,Qt.string]),to:Qt.oneOfType([Qt.object,Qt.string]),attributeName:Qt.string,duration:Qt.number,begin:Qt.number,easing:Qt.oneOfType([Qt.string,Qt.func]),steps:Qt.arrayOf(Qt.shape({duration:Qt.number.isRequired,style:Qt.object.isRequired,easing:Qt.oneOfType([Qt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Qt.func]),properties:Qt.arrayOf("string"),onAnimationEnd:Qt.func})),children:Qt.oneOfType([Qt.node,Qt.func]),isActive:Qt.bool,canBegin:Qt.bool,onAnimationEnd:Qt.func,shouldReAnimate:Qt.bool,onAnimationStart:Qt.func,onAnimationReStart:Qt.func};function c0(t){"@babel/helpers - typeof";return c0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c0(t)}function s2(){return s2=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s2.apply(this,arguments)}function fCe(t,e){return bCe(t)||gCe(t,e)||mCe(t,e)||pCe()}function pCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1218In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mCe(t,e){if(t){if(typeof t=="string")return EB(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return EB(t,e)}}function EB(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function gCe(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function bCe(t){if(Array.isArray(t))return t}function OB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function PB(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?OB(Object(r),!0).forEach(function(n){xCe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):OB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function xCe(t,e,r){return e=yCe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yCe(t){var e=vCe(t,"string");return c0(e)=="symbol"?e:e+""}function vCe(t,e){if(c0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(c0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var MB=function(e,r,n,a,i){var o=Math.min(Math.abs(n)/2,Math.abs(a)/2),l=a>=0?1:-1,c=n>=0?1:-1,u=a>=0&&n>=0||a<0&&n<0?1:0,d;if(o>0&&i instanceof Array){for(var h=[0,0,0,0],m=0,g=4;m<g;m++)h[m]=i[m]>o?o:i[m];d="M".concat(e,",").concat(r+l*h[0]),h[0]>0&&(d+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(u,",").concat(e+c*h[0],",").concat(r)),d+="L ".concat(e+n-c*h[1],",").concat(r),h[1]>0&&(d+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(u,`, 1219 `).concat(e+n,",").concat(r+l*h[1])),d+="L ".concat(e+n,",").concat(r+a-l*h[2]),h[2]>0&&(d+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(u,`, 1220 `).concat(e+n-c*h[2],",").concat(r+a)),d+="L ".concat(e+c*h[3],",").concat(r+a),h[3]>0&&(d+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(u,`, 1221 `).concat(e,",").concat(r+a-l*h[3])),d+="Z"}else if(o>0&&i===+i&&i>0){var b=Math.min(o,i);d="M ".concat(e,",").concat(r+l*b,` 1222 A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(e+c*b,",").concat(r,` 1223 L `).concat(e+n-c*b,",").concat(r,` 1224 A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(e+n,",").concat(r+l*b,` 1225 L `).concat(e+n,",").concat(r+a-l*b,` 1226 A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(e+n-c*b,",").concat(r+a,` 1227 L `).concat(e+c*b,",").concat(r+a,` 1228 A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(e,",").concat(r+a-l*b," Z")}else d="M ".concat(e,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return d},wCe=function(e,r){if(!e||!r)return!1;var n=e.x,a=e.y,i=r.x,o=r.y,l=r.width,c=r.height;if(Math.abs(l)>0&&Math.abs(c)>0){var u=Math.min(i,i+l),d=Math.max(i,i+l),h=Math.min(o,o+c),m=Math.max(o,o+c);return n>=u&&n<=d&&a>=h&&a<=m}return!1},NCe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},f$=function(e){var r=PB(PB({},NCe),e),n=w.useRef(),a=w.useState(-1),i=fCe(a,2),o=i[0],l=i[1];w.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var $=n.current.getTotalLength();$&&l($)}catch{}},[]);var c=r.x,u=r.y,d=r.width,h=r.height,m=r.radius,g=r.className,b=r.animationEasing,y=r.animationDuration,v=r.animationBegin,N=r.isAnimationActive,S=r.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||h!==+h||d===0||h===0)return null;var j=zt("recharts-rectangle",g);return S?z.createElement(Ji,{canBegin:o>0,from:{width:d,height:h,x:c,y:u},to:{width:d,height:h,x:c,y:u},duration:y,animationEasing:b,isActive:S},function($){var C=$.width,_=$.height,O=$.x,E=$.y;return z.createElement(Ji,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:N,easing:b},z.createElement("path",s2({},Mt(r,!0),{className:j,d:MB(O,E,C,_,m),ref:n})))}):z.createElement("path",s2({},Mt(r,!0),{className:j,d:MB(c,u,d,h,m)}))};function vj(){return vj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vj.apply(this,arguments)}var ov=function(e){var r=e.cx,n=e.cy,a=e.r,i=e.className,o=zt("recharts-dot",i);return r===+r&&n===+n&&a===+a?z.createElement("circle",vj({},Mt(e,!1),kx(e),{className:o,cx:r,cy:n,r:a})):null};function u0(t){"@babel/helpers - typeof";return u0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u0(t)}var jCe=["x","y","top","left","width","height","className"];function wj(){return wj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},wj.apply(this,arguments)}function TB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function kCe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?TB(Object(r),!0).forEach(function(n){SCe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):TB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function SCe(t,e,r){return e=CCe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function CCe(t){var e=$Ce(t,"string");return u0(e)=="symbol"?e:e+""}function $Ce(t,e){if(u0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(u0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _Ce(t,e){if(t==null)return{};var r=ACe(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ACe(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var ECe=function(e,r,n,a,i,o){return"M".concat(e,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},OCe=function(e){var r=e.x,n=r===void 0?0:r,a=e.y,i=a===void 0?0:a,o=e.top,l=o===void 0?0:o,c=e.left,u=c===void 0?0:c,d=e.width,h=d===void 0?0:d,m=e.height,g=m===void 0?0:m,b=e.className,y=_Ce(e,jCe),v=kCe({x:n,y:i,top:l,left:u,width:h,height:g},y);return!ze(n)||!ze(i)||!ze(h)||!ze(g)||!ze(l)||!ze(u)?null:z.createElement("path",wj({},Mt(v,!0),{className:zt("recharts-cross",b),d:ECe(n,i,h,g,l,u)}))},e7,RB;function PCe(){if(RB)return e7;RB=1;var t=lK(),e=t(Object.getPrototypeOf,Object);return e7=e,e7}var t7,IB;function MCe(){if(IB)return t7;IB=1;var t=al(),e=PCe(),r=sl(),n="[object Object]",a=Function.prototype,i=Object.prototype,o=a.toString,l=i.hasOwnProperty,c=o.call(Object);function u(d){if(!r(d)||t(d)!=n)return!1;var h=e(d);if(h===null)return!0;var m=l.call(h,"constructor")&&h.constructor;return typeof m=="function"&&m instanceof m&&o.call(m)==c}return t7=u,t7}var TCe=MCe();const RCe=ar(TCe);var r7,DB;function ICe(){if(DB)return r7;DB=1;var t=al(),e=sl(),r="[object Boolean]";function n(a){return a===!0||a===!1||e(a)&&t(a)==r}return r7=n,r7}var DCe=ICe();const LCe=ar(DCe);function d0(t){"@babel/helpers - typeof";return d0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d0(t)}function i2(){return i2=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i2.apply(this,arguments)}function BCe(t,e){return VCe(t)||zCe(t,e)||FCe(t,e)||HCe()}function HCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1229In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FCe(t,e){if(t){if(typeof t=="string")return LB(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LB(t,e)}}function LB(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function zCe(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function VCe(t){if(Array.isArray(t))return t}function BB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function HB(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?BB(Object(r),!0).forEach(function(n){UCe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):BB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function UCe(t,e,r){return e=qCe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qCe(t){var e=WCe(t,"string");return d0(e)=="symbol"?e:e+""}function WCe(t,e){if(d0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(d0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var FB=function(e,r,n,a,i){var o=n-a,l;return l="M ".concat(e,",").concat(r),l+="L ".concat(e+n,",").concat(r),l+="L ".concat(e+n-o/2,",").concat(r+i),l+="L ".concat(e+n-o/2-a,",").concat(r+i),l+="L ".concat(e,",").concat(r," Z"),l},GCe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},KCe=function(e){var r=HB(HB({},GCe),e),n=w.useRef(),a=w.useState(-1),i=BCe(a,2),o=i[0],l=i[1];w.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var j=n.current.getTotalLength();j&&l(j)}catch{}},[]);var c=r.x,u=r.y,d=r.upperWidth,h=r.lowerWidth,m=r.height,g=r.className,b=r.animationEasing,y=r.animationDuration,v=r.animationBegin,N=r.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||h!==+h||m!==+m||d===0&&h===0||m===0)return null;var S=zt("recharts-trapezoid",g);return N?z.createElement(Ji,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:m,x:c,y:u},to:{upperWidth:d,lowerWidth:h,height:m,x:c,y:u},duration:y,animationEasing:b,isActive:N},function(j){var $=j.upperWidth,C=j.lowerWidth,_=j.height,O=j.x,E=j.y;return z.createElement(Ji,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,easing:b},z.createElement("path",i2({},Mt(r,!0),{className:S,d:FB(O,E,$,C,_),ref:n})))}):z.createElement("g",null,z.createElement("path",i2({},Mt(r,!0),{className:S,d:FB(c,u,d,h,m)})))},YCe=["option","shapeType","propTransformer","activeClassName","isActive"];function h0(t){"@babel/helpers - typeof";return h0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h0(t)}function XCe(t,e){if(t==null)return{};var r=JCe(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function JCe(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function zB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function o2(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zB(Object(r),!0).forEach(function(n){QCe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function QCe(t,e,r){return e=ZCe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ZCe(t){var e=e$e(t,"string");return h0(e)=="symbol"?e:e+""}function e$e(t,e){if(h0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(h0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function t$e(t,e){return o2(o2({},e),t)}function r$e(t,e){return t==="symbols"}function VB(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return z.createElement(f$,r);case"trapezoid":return z.createElement(KCe,r);case"sector":return z.createElement(TY,r);case"symbols":if(r$e(e))return z.createElement(PC,r);break;default:return null}}function n$e(t){return w.isValidElement(t)?t.props:t}function a$e(t){var e=t.option,r=t.shapeType,n=t.propTransformer,a=n===void 0?t$e:n,i=t.activeClassName,o=i===void 0?"recharts-active-shape":i,l=t.isActive,c=XCe(t,YCe),u;if(w.isValidElement(e))u=w.cloneElement(e,o2(o2({},c),n$e(e)));else if(Pt(e))u=e(c);else if(RCe(e)&&!LCe(e)){var d=a(e,c);u=z.createElement(VB,{shapeType:r,elementProps:d})}else{var h=c;u=z.createElement(VB,{shapeType:r,elementProps:h})}return l?z.createElement(fr,{className:o},u):u}function lv(t,e){return e!=null&&"trapezoids"in t.props}function cv(t,e){return e!=null&&"sectors"in t.props}function f0(t,e){return e!=null&&"points"in t.props}function s$e(t,e){var r,n,a=t.x===(e==null||(r=e.labelViewBox)===null||r===void 0?void 0:r.x)||t.x===e.x,i=t.y===(e==null||(n=e.labelViewBox)===null||n===void 0?void 0:n.y)||t.y===e.y;return a&&i}function i$e(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function o$e(t,e){var r=t.x===e.x,n=t.y===e.y,a=t.z===e.z;return r&&n&&a}function l$e(t,e){var r;return lv(t,e)?r=s$e:cv(t,e)?r=i$e:f0(t,e)&&(r=o$e),r}function c$e(t,e){var r;return lv(t,e)?r="trapezoids":cv(t,e)?r="sectors":f0(t,e)&&(r="points"),r}function u$e(t,e){if(lv(t,e)){var r;return(r=e.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(cv(t,e)){var n;return(n=e.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return f0(t,e)?e.payload:{}}function d$e(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,a=c$e(r,e),i=u$e(r,e),o=n.filter(function(c,u){var d=Th(i,c),h=r.props[a].filter(function(b){var y=l$e(r,e);return y(b,e)}),m=r.props[a].indexOf(h[h.length-1]),g=u===m;return d&&g}),l=n.indexOf(o[o.length-1]);return l}var n7,UB;function h$e(){if(UB)return n7;UB=1;var t=Math.ceil,e=Math.max;function r(n,a,i,o){for(var l=-1,c=e(t((a-n)/(i||1)),0),u=Array(c);c--;)u[o?c:++l]=n,n+=i;return u}return n7=r,n7}var a7,qB;function zY(){if(qB)return a7;qB=1;var t=kK(),e=1/0,r=17976931348623157e292;function n(a){if(!a)return a===0?a:0;if(a=t(a),a===e||a===-e){var i=a<0?-1:1;return i*r}return a===a?a:0}return a7=n,a7}var s7,WB;function f$e(){if(WB)return s7;WB=1;var t=h$e(),e=Jy(),r=zY();function n(a){return function(i,o,l){return l&&typeof l!="number"&&e(i,o,l)&&(o=l=void 0),i=r(i),o===void 0?(o=i,i=0):o=r(o),l=l===void 0?i<o?1:-1:r(l),t(i,o,l,a)}}return s7=n,s7}var i7,GB;function p$e(){if(GB)return i7;GB=1;var t=f$e(),e=t();return i7=e,i7}var m$e=p$e();const l2=ar(m$e);function p0(t){"@babel/helpers - typeof";return p0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p0(t)}function KB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function YB(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?KB(Object(r),!0).forEach(function(n){VY(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):KB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function VY(t,e,r){return e=g$e(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g$e(t){var e=b$e(t,"string");return p0(e)=="symbol"?e:e+""}function b$e(t,e){if(p0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(p0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var x$e=["Webkit","Moz","O","ms"],y$e=function(e,r){var n=e.replace(/(\w)/,function(i){return i.toUpperCase()}),a=x$e.reduce(function(i,o){return YB(YB({},i),{},VY({},o+n,r))},{});return a[e]=r,a};function Dh(t){"@babel/helpers - typeof";return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dh(t)}function c2(){return c2=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},c2.apply(this,arguments)}function XB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function o7(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?XB(Object(r),!0).forEach(function(n){Wa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):XB(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function v$e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JB(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qY(n.key),n)}}function w$e(t,e,r){return e&&JB(t.prototype,e),r&&JB(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function N$e(t,e,r){return e=u2(e),j$e(t,UY()?Reflect.construct(e,r||[],u2(t).constructor):e.apply(t,r))}function j$e(t,e){if(e&&(Dh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k$e(t)}function k$e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function UY(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UY=function(){return!!t})()}function u2(t){return u2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},u2(t)}function S$e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nj(t,e)}function Nj(t,e){return Nj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Nj(t,e)}function Wa(t,e,r){return e=qY(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qY(t){var e=C$e(t,"string");return Dh(e)=="symbol"?e:e+""}function C$e(t,e){if(Dh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Dh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var $$e=function(e){var r=e.data,n=e.startIndex,a=e.endIndex,i=e.x,o=e.width,l=e.travellerWidth;if(!r||!r.length)return{};var c=r.length,u=cm().domain(l2(0,c)).range([i,i+o-l]),d=u.domain().map(function(h){return u(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(a),scale:u,scaleValues:d}},QB=function(e){return e.changedTouches&&!!e.changedTouches.length},Lh=(function(t){function e(r){var n;return v$e(this,e),n=N$e(this,e,[r]),Wa(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),Wa(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),Wa(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,i=a.endIndex,o=a.onDragEnd,l=a.startIndex;o==null||o({endIndex:i,startIndex:l})}),n.detachDragEndListener()}),Wa(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Wa(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Wa(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Wa(n,"handleSlideDragStart",function(a){var i=QB(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return S$e(e,t),w$e(e,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,i=n.endX,o=this.state.scaleValues,l=this.props,c=l.gap,u=l.data,d=u.length-1,h=Math.min(a,i),m=Math.max(a,i),g=e.getIndexInRange(o,h),b=e.getIndexInRange(o,m);return{startIndex:g-g%c,endIndex:b===d?d:b-b%c}}},{key:"getTextOfTick",value:function(n){var a=this.props,i=a.data,o=a.tickFormatter,l=a.dataKey,c=ja(i[n],l,n);return Pt(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var a=this.state,i=a.slideMoveStartX,o=a.startX,l=a.endX,c=this.props,u=c.x,d=c.width,h=c.travellerWidth,m=c.startIndex,g=c.endIndex,b=c.onChange,y=n.pageX-i;y>0?y=Math.min(y,u+d-h-l,u+d-h-o):y<0&&(y=Math.max(y,u-o,u-l));var v=this.getIndex({startX:o+y,endX:l+y});(v.startIndex!==m||v.endIndex!==g)&&b&&b(v),this.setState({startX:o+y,endX:l+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var i=QB(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,l=a.endX,c=a.startX,u=this.state[o],d=this.props,h=d.x,m=d.width,g=d.travellerWidth,b=d.onChange,y=d.gap,v=d.data,N={startX:this.state.startX,endX:this.state.endX},S=n.pageX-i;S>0?S=Math.min(S,h+m-g-u):S<0&&(S=Math.max(S,h-u)),N[o]=u+S;var j=this.getIndex(N),$=j.startIndex,C=j.endIndex,_=function(){var E=v.length-1;return o==="startX"&&(l>c?$%y===0:C%y===0)||l<c&&C===E||o==="endX"&&(l>c?C%y===0:$%y===0)||l>c&&C===E};this.setState(Wa(Wa({},o,u+S),"brushMoveStartX",n.pageX),function(){b&&_()&&b(j)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var i=this,o=this.state,l=o.scaleValues,c=o.startX,u=o.endX,d=this.state[a],h=l.indexOf(d);if(h!==-1){var m=h+n;if(!(m===-1||m>=l.length)){var g=l[m];a==="startX"&&g>=u||a==="endX"&&g<=c||this.setState(Wa({},a,g),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,l=n.height,c=n.fill,u=n.stroke;return z.createElement("rect",{stroke:u,fill:c,x:a,y:i,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,l=n.height,c=n.data,u=n.children,d=n.padding,h=w.Children.only(u);return h?z.cloneElement(h,{x:a,y:i,width:o,height:l,margin:d,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,a){var i,o,l=this,c=this.props,u=c.y,d=c.travellerWidth,h=c.height,m=c.traveller,g=c.ariaLabel,b=c.data,y=c.startIndex,v=c.endIndex,N=Math.max(n,this.props.x),S=o7(o7({},Mt(this.props,!1)),{},{x:N,y:u,width:d,height:h}),j=g||"Min value: ".concat((i=b[y])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=b[v])===null||o===void 0?void 0:o.name);return z.createElement(fr,{tabIndex:0,role:"slider","aria-label":j,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(C){["ArrowLeft","ArrowRight"].includes(C.key)&&(C.preventDefault(),C.stopPropagation(),l.handleTravellerMoveKeyboard(C.key==="ArrowRight"?1:-1,a))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(m,S))}},{key:"renderSlide",value:function(n,a){var i=this.props,o=i.y,l=i.height,c=i.stroke,u=i.travellerWidth,d=Math.min(n,a)+u,h=Math.max(Math.abs(a-n)-u,0);return z.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:d,y:o,width:h,height:l})}},{key:"renderText",value:function(){var n=this.props,a=n.startIndex,i=n.endIndex,o=n.y,l=n.height,c=n.travellerWidth,u=n.stroke,d=this.state,h=d.startX,m=d.endX,g=5,b={pointerEvents:"none",fill:u};return z.createElement(fr,{className:"recharts-brush-texts"},z.createElement(Ix,c2({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,m)-g,y:o+l/2},b),this.getTextOfTick(a)),z.createElement(Ix,c2({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,m)+c+g,y:o+l/2},b),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,a=n.data,i=n.className,o=n.children,l=n.x,c=n.y,u=n.width,d=n.height,h=n.alwaysShowText,m=this.state,g=m.startX,b=m.endX,y=m.isTextActive,v=m.isSlideMoving,N=m.isTravellerMoving,S=m.isTravellerFocused;if(!a||!a.length||!ze(l)||!ze(c)||!ze(u)||!ze(d)||u<=0||d<=0)return null;var j=zt("recharts-brush",i),$=z.Children.count(o)===1,C=y$e("userSelect","none");return z.createElement(fr,{className:j,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:C},this.renderBackground(),$&&this.renderPanorama(),this.renderSlide(g,b),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(b,"endX"),(y||v||N||S||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,i=n.y,o=n.width,l=n.height,c=n.stroke,u=Math.floor(i+l/2)-1;return z.createElement(z.Fragment,null,z.createElement("rect",{x:a,y:i,width:o,height:l,fill:c,stroke:"none"}),z.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),z.createElement("line",{x1:a+1,y1:u+2,x2:a+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var i;return z.isValidElement(n)?i=z.cloneElement(n,a):Pt(n)?i=n(a):i=e.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(n,a){var i=n.data,o=n.width,l=n.x,c=n.travellerWidth,u=n.updateId,d=n.startIndex,h=n.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return o7({prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:o},i&&i.length?$$e({data:i,width:o,x:l,travellerWidth:c,startIndex:d,endIndex:h}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||l!==a.prevX||c!==a.prevTravellerWidth)){a.scale.range([l,l+o-c]);var m=a.scale.domain().map(function(g){return a.scale(g)});return{prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:o,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(n,a){for(var i=n.length,o=0,l=i-1;l-o>1;){var c=Math.floor((o+l)/2);n[c]>a?l=c:o=c}return a>=n[l]?l:o}}])})(w.PureComponent);Wa(Lh,"displayName","Brush");Wa(Lh,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var l7,ZB;function _$e(){if(ZB)return l7;ZB=1;var t=BC();function e(r,n){var a;return t(r,function(i,o,l){return a=n(i,o,l),!a}),!!a}return l7=e,l7}var c7,eH;function A$e(){if(eH)return c7;eH=1;var t=tK(),e=pc(),r=_$e(),n=Ba(),a=Jy();function i(o,l,c){var u=n(o)?t:r;return c&&a(o,l,c)&&(l=void 0),u(o,e(l,3))}return c7=i,c7}var E$e=A$e();const O$e=ar(E$e);var qi=function(e,r){var n=e.alwaysShow,a=e.ifOverflow;return n&&(a="extendDomain"),a===r},u7,tH;function P$e(){if(tH)return u7;tH=1;var t=yK();function e(r,n,a){n=="__proto__"&&t?t(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return u7=e,u7}var d7,rH;function M$e(){if(rH)return d7;rH=1;var t=P$e(),e=bK(),r=pc();function n(a,i){var o={};return i=r(i,3),e(a,function(l,c,u){t(o,c,i(l,c,u))}),o}return d7=n,d7}var T$e=M$e();const R$e=ar(T$e);var h7,nH;function I$e(){if(nH)return h7;nH=1;function t(e,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(!r(e[n],n,e))return!1;return!0}return h7=t,h7}var f7,aH;function D$e(){if(aH)return f7;aH=1;var t=BC();function e(r,n){var a=!0;return t(r,function(i,o,l){return a=!!n(i,o,l),a}),a}return f7=e,f7}var p7,sH;function L$e(){if(sH)return p7;sH=1;var t=I$e(),e=D$e(),r=pc(),n=Ba(),a=Jy();function i(o,l,c){var u=n(o)?t:e;return c&&a(o,l,c)&&(l=void 0),u(o,r(l,3))}return p7=i,p7}var B$e=L$e();const WY=ar(B$e);var H$e=["x","y"];function m0(t){"@babel/helpers - typeof";return m0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m0(t)}function jj(){return jj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jj.apply(this,arguments)}function iH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Mp(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?iH(Object(r),!0).forEach(function(n){F$e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function F$e(t,e,r){return e=z$e(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z$e(t){var e=V$e(t,"string");return m0(e)=="symbol"?e:e+""}function V$e(t,e){if(m0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(m0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function U$e(t,e){if(t==null)return{};var r=q$e(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function q$e(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function W$e(t,e){var r=t.x,n=t.y,a=U$e(t,H$e),i="".concat(r),o=parseInt(i,10),l="".concat(n),c=parseInt(l,10),u="".concat(e.height||a.height),d=parseInt(u,10),h="".concat(e.width||a.width),m=parseInt(h,10);return Mp(Mp(Mp(Mp(Mp({},e),a),o?{x:o}:{}),c?{y:c}:{}),{},{height:d,width:m,name:e.name,radius:e.radius})}function oH(t){return z.createElement(a$e,jj({shapeType:"rectangle",propTransformer:W$e,activeClassName:"recharts-active-bar"},t))}var G$e=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,a){if(typeof e=="number")return e;var i=typeof n=="number";return i?e(n,a):(i||_u(),r)}},K$e=["value","background"],GY;function Bh(t){"@babel/helpers - typeof";return Bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bh(t)}function Y$e(t,e){if(t==null)return{};var r=X$e(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function X$e(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function d2(){return d2=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},d2.apply(this,arguments)}function lH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Qr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?lH(Object(r),!0).forEach(function(n){Kl(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function J$e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cH(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,YY(n.key),n)}}function Q$e(t,e,r){return e&&cH(t.prototype,e),r&&cH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Z$e(t,e,r){return e=h2(e),e_e(t,KY()?Reflect.construct(e,r||[],h2(t).constructor):e.apply(t,r))}function e_e(t,e){if(e&&(Bh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t_e(t)}function t_e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function KY(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KY=function(){return!!t})()}function h2(t){return h2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},h2(t)}function r_e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kj(t,e)}function kj(t,e){return kj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},kj(t,e)}function Kl(t,e,r){return e=YY(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YY(t){var e=n_e(t,"string");return Bh(e)=="symbol"?e:e+""}function n_e(t,e){if(Bh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Bh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var s1=(function(t){function e(){var r;J$e(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Z$e(this,e,[].concat(a)),Kl(r,"state",{isAnimationFinished:!1}),Kl(r,"id",kf("recharts-bar-")),Kl(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Kl(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return r_e(e,t),Q$e(e,[{key:"renderRectanglesStatically",value:function(n){var a=this,i=this.props,o=i.shape,l=i.dataKey,c=i.activeIndex,u=i.activeBar,d=Mt(this.props,!1);return n&&n.map(function(h,m){var g=m===c,b=g?u:o,y=Qr(Qr(Qr({},d),h),{},{isActive:g,option:b,index:m,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return z.createElement(fr,d2({className:"recharts-bar-rectangle"},Sx(a.props,h,m),{key:"rectangle-".concat(h==null?void 0:h.x,"-").concat(h==null?void 0:h.y,"-").concat(h==null?void 0:h.value,"-").concat(m)}),z.createElement(oH,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,a=this.props,i=a.data,o=a.layout,l=a.isAnimationActive,c=a.animationBegin,u=a.animationDuration,d=a.animationEasing,h=a.animationId,m=this.state.prevData;return z.createElement(Ji,{begin:c,duration:u,isActive:l,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var b=g.t,y=i.map(function(v,N){var S=m&&m[N];if(S){var j=Ln(S.x,v.x),$=Ln(S.y,v.y),C=Ln(S.width,v.width),_=Ln(S.height,v.height);return Qr(Qr({},v),{},{x:j(b),y:$(b),width:C(b),height:_(b)})}if(o==="horizontal"){var O=Ln(0,v.height),E=O(b);return Qr(Qr({},v),{},{y:v.y+v.height-E,height:E})}var P=Ln(0,v.width),T=P(b);return Qr(Qr({},v),{},{width:T})});return z.createElement(fr,null,n.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var n=this.props,a=n.data,i=n.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!Th(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var n=this,a=this.props,i=a.data,o=a.dataKey,l=a.activeIndex,c=Mt(this.props.background,!1);return i.map(function(u,d){u.value;var h=u.background,m=Y$e(u,K$e);if(!h)return null;var g=Qr(Qr(Qr(Qr(Qr({},m),{},{fill:"#eee"},h),c),Sx(n.props,u,d)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:d,className:"recharts-bar-background-rectangle"});return z.createElement(oH,d2({key:"background-bar-".concat(d),option:n.props.background,isActive:d===l},g))})}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,l=i.xAxis,c=i.yAxis,u=i.layout,d=i.children,h=Ms(d,a1);if(!h)return null;var m=u==="vertical"?o[0].height/2:o[0].width/2,g=function(v,N){var S=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:S,errorVal:ja(v,N)}},b={clipPath:n?"url(#clipPath-".concat(a,")"):null};return z.createElement(fr,b,h.map(function(y){return z.cloneElement(y,{key:"error-bar-".concat(a,"-").concat(y.props.dataKey),data:o,xAxis:l,yAxis:c,layout:u,offset:m,dataPointFormatter:g})}))}},{key:"render",value:function(){var n=this.props,a=n.hide,i=n.data,o=n.className,l=n.xAxis,c=n.yAxis,u=n.left,d=n.top,h=n.width,m=n.height,g=n.isAnimationActive,b=n.background,y=n.id;if(a||!i||!i.length)return null;var v=this.state.isAnimationFinished,N=zt("recharts-bar",o),S=l&&l.allowDataOverflow,j=c&&c.allowDataOverflow,$=S||j,C=Ft(y)?this.id:y;return z.createElement(fr,{className:N},S||j?z.createElement("defs",null,z.createElement("clipPath",{id:"clipPath-".concat(C)},z.createElement("rect",{x:S?u:u-h/2,y:j?d:d-m/2,width:S?h:h*2,height:j?m:m*2}))):null,z.createElement(fr,{className:"recharts-bar-rectangles",clipPath:$?"url(#clipPath-".concat(C,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar($,C),(!g||v)&&zo.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:a.curData}:n.data!==a.curData?{curData:n.data}:null}}])})(w.PureComponent);GY=s1;Kl(s1,"displayName","Bar");Kl(s1,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Uu.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Kl(s1,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,a=t.bandSize,i=t.xAxis,o=t.yAxis,l=t.xAxisTicks,c=t.yAxisTicks,u=t.stackedData,d=t.dataStartIndex,h=t.displayedData,m=t.offset,g=Nje(n,r);if(!g)return null;var b=e.layout,y=r.type.defaultProps,v=y!==void 0?Qr(Qr({},y),r.props):r.props,N=v.dataKey,S=v.children,j=v.minPointSize,$=b==="horizontal"?o:i,C=u?$.scale.domain():null,_=Eje({numericAxis:$}),O=Ms(S,CK),E=h.map(function(P,T){var I,R,F,L,q,G;u?I=jje(u[d+T],C):(I=ja(P,N),Array.isArray(I)||(I=[_,I]));var B=G$e(j,GY.defaultProps.minPointSize)(I[1],T);if(b==="horizontal"){var H,K=[o.scale(I[0]),o.scale(I[1])],Z=K[0],V=K[1];R=QL({axis:i,ticks:l,bandSize:a,offset:g.offset,entry:P,index:T}),F=(H=V??Z)!==null&&H!==void 0?H:void 0,L=g.size;var U=Z-V;if(q=Number.isNaN(U)?0:U,G={x:R,y:o.y,width:L,height:o.height},Math.abs(B)>0&&Math.abs(q)<Math.abs(B)){var Y=hi(q||B)*(Math.abs(B)-Math.abs(q));F-=Y,q+=Y}}else{var de=[i.scale(I[0]),i.scale(I[1])],ge=de[0],fe=de[1];if(R=ge,F=QL({axis:o,ticks:c,bandSize:a,offset:g.offset,entry:P,index:T}),L=fe-ge,q=g.size,G={x:i.x,y:F,width:i.width,height:q},Math.abs(B)>0&&Math.abs(L)<Math.abs(B)){var Oe=hi(L||B)*(Math.abs(B)-Math.abs(L));L+=Oe}}return Qr(Qr(Qr({},P),{},{x:R,y:F,width:L,height:q,value:u?I:I[1],payload:P,background:G},O&&O[T]&&O[T].props),{},{tooltipPayload:[OY(r,P)],tooltipPosition:{x:R+L/2,y:F+q/2}})});return Qr({data:E,layout:b},m)});function g0(t){"@babel/helpers - typeof";return g0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g0(t)}function a_e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uH(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,XY(n.key),n)}}function s_e(t,e,r){return e&&uH(t.prototype,e),r&&uH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function dH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ii(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dH(Object(r),!0).forEach(function(n){uv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function uv(t,e,r){return e=XY(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XY(t){var e=i_e(t,"string");return g0(e)=="symbol"?e:e+""}function i_e(t,e){if(g0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(g0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var JY=function(e,r,n,a,i){var o=e.width,l=e.height,c=e.layout,u=e.children,d=Object.keys(r),h={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:l-n.bottom,bottomMirror:l-n.bottom},m=!!Ga(u,s1);return d.reduce(function(g,b){var y=r[b],v=y.orientation,N=y.domain,S=y.padding,j=S===void 0?{}:S,$=y.mirror,C=y.reversed,_="".concat(v).concat($?"Mirror":""),O,E,P,T,I;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var R=N[1]-N[0],F=1/0,L=y.categoricalDomain.sort();if(L.forEach(function(de,ge){ge>0&&(F=Math.min((de||0)-(L[ge-1]||0),F))}),Number.isFinite(F)){var q=F/R,G=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(O=q*G/2),y.padding==="no-gap"){var B=Cu(e.barCategoryGap,q*G),H=q*G/2;O=H-B-(H-B)/G*B}}}a==="xAxis"?E=[n.left+(j.left||0)+(O||0),n.left+n.width-(j.right||0)-(O||0)]:a==="yAxis"?E=c==="horizontal"?[n.top+n.height-(j.bottom||0),n.top+(j.top||0)]:[n.top+(j.top||0)+(O||0),n.top+n.height-(j.bottom||0)-(O||0)]:E=y.range,C&&(E=[E[1],E[0]]);var K=vje(y,i,m),Z=K.scale,V=K.realScaleType;Z.domain(N).range(E),wje(Z);var U=Aje(Z,ii(ii({},y),{},{realScaleType:V}));a==="xAxis"?(I=v==="top"&&!$||v==="bottom"&&$,P=n.left,T=h[_]-I*y.height):a==="yAxis"&&(I=v==="left"&&!$||v==="right"&&$,P=h[_]-I*y.width,T=n.top);var Y=ii(ii(ii({},y),U),{},{realScaleType:V,x:P,y:T,scale:Z,width:a==="xAxis"?n.width:y.width,height:a==="yAxis"?n.height:y.height});return Y.bandSize=Qx(Y,U),!y.hide&&a==="xAxis"?h[_]+=(I?-1:1)*Y.height:y.hide||(h[_]+=(I?-1:1)*Y.width),ii(ii({},g),{},uv({},b,Y))},{})},QY=function(e,r){var n=e.x,a=e.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},o_e=function(e){var r=e.x1,n=e.y1,a=e.x2,i=e.y2;return QY({x:r,y:n},{x:a,y:i})},ZY=(function(){function t(e){a_e(this,t),this.scale=e}return s_e(t,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(a){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new t(r)}}])})();uv(ZY,"EPS",1e-4);var p$=function(e){var r=Object.keys(e).reduce(function(n,a){return ii(ii({},n),{},uv({},a,ZY.create(e[a])))},{});return ii(ii({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return R$e(a,function(c,u){return r[u].apply(c,{bandAware:o,position:l})})},isInRange:function(a){return WY(a,function(i,o){return r[o].isInRange(i)})}})};function l_e(t){return(t%180+180)%180}var c_e=function(e){var r=e.width,n=e.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=l_e(a),o=i*Math.PI/180,l=Math.atan(n/r),c=o>l&&o<Math.PI-l?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},m7,hH;function u_e(){if(hH)return m7;hH=1;var t=pc(),e=Z0(),r=Yy();function n(a){return function(i,o,l){var c=Object(i);if(!e(i)){var u=t(o,3);i=r(i),o=function(h){return u(c[h],h,c)}}var d=a(i,o,l);return d>-1?c[u?i[d]:d]:void 0}}return m7=n,m7}var g7,fH;function d_e(){if(fH)return g7;fH=1;var t=zY();function e(r){var n=t(r),a=n%1;return n===n?a?n-a:n:0}return g7=e,g7}var b7,pH;function h_e(){if(pH)return b7;pH=1;var t=hK(),e=pc(),r=d_e(),n=Math.max;function a(i,o,l){var c=i==null?0:i.length;if(!c)return-1;var u=l==null?0:r(l);return u<0&&(u=n(c+u,0)),t(i,e(o,3),u)}return b7=a,b7}var x7,mH;function f_e(){if(mH)return x7;mH=1;var t=u_e(),e=h_e(),r=t(e);return x7=r,x7}var p_e=f_e();const m_e=ar(p_e);var g_e=$G();const b_e=ar(g_e);var x_e=b_e(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),m$=w.createContext(void 0),g$=w.createContext(void 0),eX=w.createContext(void 0),tX=w.createContext({}),rX=w.createContext(void 0),nX=w.createContext(0),aX=w.createContext(0),gH=function(e){var r=e.state,n=r.xAxisMap,a=r.yAxisMap,i=r.offset,o=e.clipPathId,l=e.children,c=e.width,u=e.height,d=x_e(i);return z.createElement(m$.Provider,{value:n},z.createElement(g$.Provider,{value:a},z.createElement(tX.Provider,{value:i},z.createElement(eX.Provider,{value:d},z.createElement(rX.Provider,{value:o},z.createElement(nX.Provider,{value:u},z.createElement(aX.Provider,{value:c},l)))))))},y_e=function(){return w.useContext(rX)},sX=function(e){var r=w.useContext(m$);r==null&&_u();var n=r[e];return n==null&&_u(),n},v_e=function(){var e=w.useContext(m$);return zl(e)},w_e=function(){var e=w.useContext(g$),r=m_e(e,function(n){return WY(n.domain,Number.isFinite)});return r||zl(e)},iX=function(e){var r=w.useContext(g$);r==null&&_u();var n=r[e];return n==null&&_u(),n},N_e=function(){var e=w.useContext(eX);return e},j_e=function(){return w.useContext(tX)},b$=function(){return w.useContext(aX)},x$=function(){return w.useContext(nX)};function Hh(t){"@babel/helpers - typeof";return Hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hh(t)}function k_e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S_e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,lX(n.key),n)}}function C_e(t,e,r){return e&&S_e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function $_e(t,e,r){return e=f2(e),__e(t,oX()?Reflect.construct(e,r||[],f2(t).constructor):e.apply(t,r))}function __e(t,e){if(e&&(Hh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A_e(t)}function A_e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oX=function(){return!!t})()}function f2(t){return f2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},f2(t)}function E_e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sj(t,e)}function Sj(t,e){return Sj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Sj(t,e)}function bH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function xH(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?bH(Object(r),!0).forEach(function(n){y$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function y$(t,e,r){return e=lX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lX(t){var e=O_e(t,"string");return Hh(e)=="symbol"?e:e+""}function O_e(t,e){if(Hh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Hh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function P_e(t,e){return I_e(t)||R_e(t,e)||T_e(t,e)||M_e()}function M_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1230In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T_e(t,e){if(t){if(typeof t=="string")return yH(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yH(t,e)}}function yH(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function R_e(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function I_e(t){if(Array.isArray(t))return t}function Cj(){return Cj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cj.apply(this,arguments)}var D_e=function(e,r){var n;return z.isValidElement(e)?n=z.cloneElement(e,r):Pt(e)?n=e(r):n=z.createElement("line",Cj({},r,{className:"recharts-reference-line-line"})),n},L_e=function(e,r,n,a,i,o,l,c,u){var d=i.x,h=i.y,m=i.width,g=i.height;if(n){var b=u.y,y=e.y.apply(b,{position:o});if(qi(u,"discard")&&!e.y.isInRange(y))return null;var v=[{x:d+m,y},{x:d,y}];return c==="left"?v.reverse():v}if(r){var N=u.x,S=e.x.apply(N,{position:o});if(qi(u,"discard")&&!e.x.isInRange(S))return null;var j=[{x:S,y:h+g},{x:S,y:h}];return l==="top"?j.reverse():j}if(a){var $=u.segment,C=$.map(function(_){return e.apply(_,{position:o})});return qi(u,"discard")&&O$e(C,function(_){return!e.isInRange(_)})?null:C}return null};function B_e(t){var e=t.x,r=t.y,n=t.segment,a=t.xAxisId,i=t.yAxisId,o=t.shape,l=t.className,c=t.alwaysShow,u=y_e(),d=sX(a),h=iX(i),m=N_e();if(!u||!m)return null;Ho(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=p$({x:d.scale,y:h.scale}),b=gn(e),y=gn(r),v=n&&n.length===2,N=L_e(g,b,y,v,m,t.position,d.orientation,h.orientation,t);if(!N)return null;var S=P_e(N,2),j=S[0],$=j.x,C=j.y,_=S[1],O=_.x,E=_.y,P=qi(t,"hidden")?"url(#".concat(u,")"):void 0,T=xH(xH({clipPath:P},Mt(t,!0)),{},{x1:$,y1:C,x2:O,y2:E});return z.createElement(fr,{className:zt("recharts-reference-line",l)},D_e(o,T),aa.renderCallByParent(t,o_e({x1:$,y1:C,x2:O,y2:E})))}var v$=(function(t){function e(){return k_e(this,e),$_e(this,e,arguments)}return E_e(e,t),C_e(e,[{key:"render",value:function(){return z.createElement(B_e,this.props)}}])})(z.Component);y$(v$,"displayName","ReferenceLine");y$(v$,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function $j(){return $j=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$j.apply(this,arguments)}function Fh(t){"@babel/helpers - typeof";return Fh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fh(t)}function vH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function wH(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vH(Object(r),!0).forEach(function(n){dv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function H_e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F_e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,uX(n.key),n)}}function z_e(t,e,r){return e&&F_e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function V_e(t,e,r){return e=p2(e),U_e(t,cX()?Reflect.construct(e,r||[],p2(t).constructor):e.apply(t,r))}function U_e(t,e){if(e&&(Fh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q_e(t)}function q_e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cX=function(){return!!t})()}function p2(t){return p2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},p2(t)}function W_e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_j(t,e)}function _j(t,e){return _j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},_j(t,e)}function dv(t,e,r){return e=uX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uX(t){var e=G_e(t,"string");return Fh(e)=="symbol"?e:e+""}function G_e(t,e){if(Fh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Fh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var K_e=function(e){var r=e.x,n=e.y,a=e.xAxis,i=e.yAxis,o=p$({x:a.scale,y:i.scale}),l=o.apply({x:r,y:n},{bandAware:!0});return qi(e,"discard")&&!o.isInRange(l)?null:l},hv=(function(t){function e(){return H_e(this,e),V_e(this,e,arguments)}return W_e(e,t),z_e(e,[{key:"render",value:function(){var n=this.props,a=n.x,i=n.y,o=n.r,l=n.alwaysShow,c=n.clipPathId,u=gn(a),d=gn(i);if(Ho(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var h=K_e(this.props);if(!h)return null;var m=h.x,g=h.y,b=this.props,y=b.shape,v=b.className,N=qi(this.props,"hidden")?"url(#".concat(c,")"):void 0,S=wH(wH({clipPath:N},Mt(this.props,!0)),{},{cx:m,cy:g});return z.createElement(fr,{className:zt("recharts-reference-dot",v)},e.renderDot(y,S),aa.renderCallByParent(this.props,{x:m-o,y:g-o,width:2*o,height:2*o}))}}])})(z.Component);dv(hv,"displayName","ReferenceDot");dv(hv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});dv(hv,"renderDot",function(t,e){var r;return z.isValidElement(t)?r=z.cloneElement(t,e):Pt(t)?r=t(e):r=z.createElement(ov,$j({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"})),r});function Aj(){return Aj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Aj.apply(this,arguments)}function zh(t){"@babel/helpers - typeof";return zh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zh(t)}function NH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function jH(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?NH(Object(r),!0).forEach(function(n){fv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Y_e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X_e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,hX(n.key),n)}}function J_e(t,e,r){return e&&X_e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Q_e(t,e,r){return e=m2(e),Z_e(t,dX()?Reflect.construct(e,r||[],m2(t).constructor):e.apply(t,r))}function Z_e(t,e){if(e&&(zh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eAe(t)}function eAe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dX=function(){return!!t})()}function m2(t){return m2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},m2(t)}function tAe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ej(t,e)}function Ej(t,e){return Ej=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ej(t,e)}function fv(t,e,r){return e=hX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hX(t){var e=rAe(t,"string");return zh(e)=="symbol"?e:e+""}function rAe(t,e){if(zh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(zh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var nAe=function(e,r,n,a,i){var o=i.x1,l=i.x2,c=i.y1,u=i.y2,d=i.xAxis,h=i.yAxis;if(!d||!h)return null;var m=p$({x:d.scale,y:h.scale}),g={x:e?m.x.apply(o,{position:"start"}):m.x.rangeMin,y:n?m.y.apply(c,{position:"start"}):m.y.rangeMin},b={x:r?m.x.apply(l,{position:"end"}):m.x.rangeMax,y:a?m.y.apply(u,{position:"end"}):m.y.rangeMax};return qi(i,"discard")&&(!m.isInRange(g)||!m.isInRange(b))?null:QY(g,b)},pv=(function(t){function e(){return Y_e(this,e),Q_e(this,e,arguments)}return tAe(e,t),J_e(e,[{key:"render",value:function(){var n=this.props,a=n.x1,i=n.x2,o=n.y1,l=n.y2,c=n.className,u=n.alwaysShow,d=n.clipPathId;Ho(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=gn(a),m=gn(i),g=gn(o),b=gn(l),y=this.props.shape;if(!h&&!m&&!g&&!b&&!y)return null;var v=nAe(h,m,g,b,this.props);if(!v&&!y)return null;var N=qi(this.props,"hidden")?"url(#".concat(d,")"):void 0;return z.createElement(fr,{className:zt("recharts-reference-area",c)},e.renderRect(y,jH(jH({clipPath:N},Mt(this.props,!0)),v)),aa.renderCallByParent(this.props,v))}}])})(z.Component);fv(pv,"displayName","ReferenceArea");fv(pv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});fv(pv,"renderRect",function(t,e){var r;return z.isValidElement(t)?r=z.cloneElement(t,e):Pt(t)?r=t(e):r=z.createElement(f$,Aj({},e,{className:"recharts-reference-area-rect"})),r});function fX(t,e,r){if(e<1)return[];if(e===1&&r===void 0)return t;for(var n=[],a=0;a<t.length;a+=e)n.push(t[a]);return n}function aAe(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return c_e(n,r)}function sAe(t,e,r){var n=r==="width",a=t.x,i=t.y,o=t.width,l=t.height;return e===1?{start:n?a:i,end:n?a+o:i+l}:{start:n?a+o:i+l,end:n?a:i}}function g2(t,e,r,n,a){if(t*e<t*n||t*e>t*a)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-a)<=0}function iAe(t,e){return fX(t,e+1)}function oAe(t,e,r,n,a){for(var i=(n||[]).slice(),o=e.start,l=e.end,c=0,u=1,d=o,h=function(){var b=n==null?void 0:n[c];if(b===void 0)return{v:fX(n,u)};var y=c,v,N=function(){return v===void 0&&(v=r(b,y)),v},S=b.coordinate,j=c===0||g2(t,S,N,d,l);j||(c=0,d=o,u+=1),j&&(d=S+t*(N()/2+a),c+=u)},m;u<=i.length;)if(m=h(),m)return m.v;return[]}function b0(t){"@babel/helpers - typeof";return b0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b0(t)}function kH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ra(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kH(Object(r),!0).forEach(function(n){lAe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function lAe(t,e,r){return e=cAe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cAe(t){var e=uAe(t,"string");return b0(e)=="symbol"?e:e+""}function uAe(t,e){if(b0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(b0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function dAe(t,e,r,n,a){for(var i=(n||[]).slice(),o=i.length,l=e.start,c=e.end,u=function(m){var g=i[m],b,y=function(){return b===void 0&&(b=r(g,m)),b};if(m===o-1){var v=t*(g.coordinate+t*y()/2-c);i[m]=g=ra(ra({},g),{},{tickCoord:v>0?g.coordinate-v*t:g.coordinate})}else i[m]=g=ra(ra({},g),{},{tickCoord:g.coordinate});var N=g2(t,g.tickCoord,y,l,c);N&&(c=g.tickCoord-t*(y()/2+a),i[m]=ra(ra({},g),{},{isShow:!0}))},d=o-1;d>=0;d--)u(d);return i}function hAe(t,e,r,n,a,i){var o=(n||[]).slice(),l=o.length,c=e.start,u=e.end;if(i){var d=n[l-1],h=r(d,l-1),m=t*(d.coordinate+t*h/2-u);o[l-1]=d=ra(ra({},d),{},{tickCoord:m>0?d.coordinate-m*t:d.coordinate});var g=g2(t,d.tickCoord,function(){return h},c,u);g&&(u=d.tickCoord-t*(h/2+a),o[l-1]=ra(ra({},d),{},{isShow:!0}))}for(var b=i?l-1:l,y=function(S){var j=o[S],$,C=function(){return $===void 0&&($=r(j,S)),$};if(S===0){var _=t*(j.coordinate-t*C()/2-c);o[S]=j=ra(ra({},j),{},{tickCoord:_<0?j.coordinate-_*t:j.coordinate})}else o[S]=j=ra(ra({},j),{},{tickCoord:j.coordinate});var O=g2(t,j.tickCoord,C,c,u);O&&(c=j.tickCoord+t*(C()/2+a),o[S]=ra(ra({},j),{},{isShow:!0}))},v=0;v<b;v++)y(v);return o}function w$(t,e,r){var n=t.tick,a=t.ticks,i=t.viewBox,o=t.minTickGap,l=t.orientation,c=t.interval,u=t.tickFormatter,d=t.unit,h=t.angle;if(!a||!a.length||!n)return[];if(ze(c)||Uu.isSsr)return iAe(a,typeof c=="number"&&ze(c)?c:0);var m=[],g=l==="top"||l==="bottom"?"width":"height",b=d&&g==="width"?lm(d,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(j,$){var C=Pt(u)?u(j.value,$):j.value;return g==="width"?aAe(lm(C,{fontSize:e,letterSpacing:r}),b,h):lm(C,{fontSize:e,letterSpacing:r})[g]},v=a.length>=2?hi(a[1].coordinate-a[0].coordinate):1,N=sAe(i,v,g);return c==="equidistantPreserveStart"?oAe(v,N,y,a,o):(c==="preserveStart"||c==="preserveStartEnd"?m=hAe(v,N,y,a,o,c==="preserveStartEnd"):m=dAe(v,N,y,a,o),m.filter(function(S){return S.isShow}))}var fAe=["viewBox"],pAe=["viewBox"],mAe=["ticks"];function Vh(t){"@babel/helpers - typeof";return Vh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vh(t)}function ah(){return ah=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ah.apply(this,arguments)}function SH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ga(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?SH(Object(r),!0).forEach(function(n){N$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function y7(t,e){if(t==null)return{};var r=gAe(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function gAe(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function bAe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CH(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mX(n.key),n)}}function xAe(t,e,r){return e&&CH(t.prototype,e),r&&CH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yAe(t,e,r){return e=b2(e),vAe(t,pX()?Reflect.construct(e,r||[],b2(t).constructor):e.apply(t,r))}function vAe(t,e){if(e&&(Vh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wAe(t)}function wAe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pX=function(){return!!t})()}function b2(t){return b2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},b2(t)}function NAe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oj(t,e)}function Oj(t,e){return Oj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Oj(t,e)}function N$(t,e,r){return e=mX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mX(t){var e=jAe(t,"string");return Vh(e)=="symbol"?e:e+""}function jAe(t,e){if(Vh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Vh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Af=(function(t){function e(r){var n;return bAe(this,e),n=yAe(this,e,[r]),n.state={fontSize:"",letterSpacing:""},n}return NAe(e,t),xAe(e,[{key:"shouldComponentUpdate",value:function(n,a){var i=n.viewBox,o=y7(n,fAe),l=this.props,c=l.viewBox,u=y7(l,pAe);return!hh(i,c)||!hh(o,u)||!hh(a,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var a=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.x,o=a.y,l=a.width,c=a.height,u=a.orientation,d=a.tickSize,h=a.mirror,m=a.tickMargin,g,b,y,v,N,S,j=h?-1:1,$=n.tickSize||d,C=ze(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":g=b=n.coordinate,v=o+ +!h*c,y=v-j*$,S=y-j*m,N=C;break;case"left":y=v=n.coordinate,b=i+ +!h*l,g=b-j*$,N=g-j*m,S=C;break;case"right":y=v=n.coordinate,b=i+ +h*l,g=b+j*$,N=g+j*m,S=C;break;default:g=b=n.coordinate,v=o+ +h*c,y=v+j*$,S=y+j*m,N=C;break}return{line:{x1:g,y1:y,x2:b,y2:v},tick:{x:N,y:S}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,l=n.height,c=n.orientation,u=n.mirror,d=n.axisLine,h=ga(ga(ga({},Mt(this.props,!1)),Mt(d,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var m=+(c==="top"&&!u||c==="bottom"&&u);h=ga(ga({},h),{},{x1:a,y1:i+m*l,x2:a+o,y2:i+m*l})}else{var g=+(c==="left"&&!u||c==="right"&&u);h=ga(ga({},h),{},{x1:a+g*o,y1:i,x2:a+g*o,y2:i+l})}return z.createElement("line",ah({},h,{className:zt("recharts-cartesian-axis-line",Ps(d,"className"))}))}},{key:"renderTicks",value:function(n,a,i){var o=this,l=this.props,c=l.tickLine,u=l.stroke,d=l.tick,h=l.tickFormatter,m=l.unit,g=w$(ga(ga({},this.props),{},{ticks:n}),a,i),b=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),v=Mt(this.props,!1),N=Mt(d,!1),S=ga(ga({},v),{},{fill:"none"},Mt(c,!1)),j=g.map(function($,C){var _=o.getTickLineCoord($),O=_.line,E=_.tick,P=ga(ga(ga(ga({textAnchor:b,verticalAnchor:y},v),{},{stroke:"none",fill:u},N),E),{},{index:C,payload:$,visibleTicksCount:g.length,tickFormatter:h});return z.createElement(fr,ah({className:"recharts-cartesian-axis-tick",key:"tick-".concat($.value,"-").concat($.coordinate,"-").concat($.tickCoord)},Sx(o.props,$,C)),c&&z.createElement("line",ah({},S,O,{className:zt("recharts-cartesian-axis-tick-line",Ps(c,"className"))})),d&&e.renderTickItem(d,P,"".concat(Pt(h)?h($.value,C):$.value).concat(m||"")))});return z.createElement("g",{className:"recharts-cartesian-axis-ticks"},j)}},{key:"render",value:function(){var n=this,a=this.props,i=a.axisLine,o=a.width,l=a.height,c=a.ticksGenerator,u=a.className,d=a.hide;if(d)return null;var h=this.props,m=h.ticks,g=y7(h,mAe),b=m;return Pt(c)&&(b=m&&m.length>0?c(this.props):c(g)),o<=0||l<=0||!b||!b.length?null:z.createElement(fr,{className:zt("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},i&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),aa.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,a,i){var o;return z.isValidElement(n)?o=z.cloneElement(n,a):Pt(n)?o=n(a):o=z.createElement(Ix,ah({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])})(w.Component);N$(Af,"displayName","CartesianAxis");N$(Af,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var kAe=["x1","y1","x2","y2","key"],SAe=["offset"];function Au(t){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Au(t)}function $H(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function sa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$H(Object(r),!0).forEach(function(n){CAe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$H(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function CAe(t,e,r){return e=$Ae(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $Ae(t){var e=_Ae(t,"string");return Au(e)=="symbol"?e:e+""}function _Ae(t,e){if(Au(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lu(){return lu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lu.apply(this,arguments)}function _H(t,e){if(t==null)return{};var r=AAe(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function AAe(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var EAe=function(e){var r=e.fill;if(!r||r==="none")return null;var n=e.fillOpacity,a=e.x,i=e.y,o=e.width,l=e.height,c=e.ry;return z.createElement("rect",{x:a,y:i,ry:c,width:o,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function gX(t,e){var r;if(z.isValidElement(t))r=z.cloneElement(t,e);else if(Pt(t))r=t(e);else{var n=e.x1,a=e.y1,i=e.x2,o=e.y2,l=e.key,c=_H(e,kAe),u=Mt(c,!1);u.offset;var d=_H(u,SAe);r=z.createElement("line",lu({},d,{x1:n,y1:a,x2:i,y2:o,fill:"none",key:l}))}return r}function OAe(t){var e=t.x,r=t.width,n=t.horizontal,a=n===void 0?!0:n,i=t.horizontalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(l,c){var u=sa(sa({},t),{},{x1:e,y1:l,x2:e+r,y2:l,key:"line-".concat(c),index:c});return gX(a,u)});return z.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function PAe(t){var e=t.y,r=t.height,n=t.vertical,a=n===void 0?!0:n,i=t.verticalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(l,c){var u=sa(sa({},t),{},{x1:l,y1:e,x2:l,y2:e+r,key:"line-".concat(c),index:c});return gX(a,u)});return z.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function MAe(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,a=t.y,i=t.width,o=t.height,l=t.horizontalPoints,c=t.horizontal,u=c===void 0?!0:c;if(!u||!e||!e.length)return null;var d=l.map(function(m){return Math.round(m+a-a)}).sort(function(m,g){return m-g});a!==d[0]&&d.unshift(0);var h=d.map(function(m,g){var b=!d[g+1],y=b?a+o-m:d[g+1]-m;if(y<=0)return null;var v=g%e.length;return z.createElement("rect",{key:"react-".concat(g),y:m,x:n,height:y,width:i,stroke:"none",fill:e[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return z.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function TAe(t){var e=t.vertical,r=e===void 0?!0:e,n=t.verticalFill,a=t.fillOpacity,i=t.x,o=t.y,l=t.width,c=t.height,u=t.verticalPoints;if(!r||!n||!n.length)return null;var d=u.map(function(m){return Math.round(m+i-i)}).sort(function(m,g){return m-g});i!==d[0]&&d.unshift(0);var h=d.map(function(m,g){var b=!d[g+1],y=b?i+l-m:d[g+1]-m;if(y<=0)return null;var v=g%n.length;return z.createElement("rect",{key:"react-".concat(g),x:m,y:o,width:y,height:c,stroke:"none",fill:n[v],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return z.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var RAe=function(e,r){var n=e.xAxis,a=e.width,i=e.height,o=e.offset;return AY(w$(sa(sa(sa({},Af.defaultProps),n),{},{ticks:Po(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.left,o.left+o.width,r)},IAe=function(e,r){var n=e.yAxis,a=e.width,i=e.height,o=e.offset;return AY(w$(sa(sa(sa({},Af.defaultProps),n),{},{ticks:Po(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.top,o.top+o.height,r)},Md={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Pj(t){var e,r,n,a,i,o,l=b$(),c=x$(),u=j_e(),d=sa(sa({},t),{},{stroke:(e=t.stroke)!==null&&e!==void 0?e:Md.stroke,fill:(r=t.fill)!==null&&r!==void 0?r:Md.fill,horizontal:(n=t.horizontal)!==null&&n!==void 0?n:Md.horizontal,horizontalFill:(a=t.horizontalFill)!==null&&a!==void 0?a:Md.horizontalFill,vertical:(i=t.vertical)!==null&&i!==void 0?i:Md.vertical,verticalFill:(o=t.verticalFill)!==null&&o!==void 0?o:Md.verticalFill,x:ze(t.x)?t.x:u.left,y:ze(t.y)?t.y:u.top,width:ze(t.width)?t.width:u.width,height:ze(t.height)?t.height:u.height}),h=d.x,m=d.y,g=d.width,b=d.height,y=d.syncWithTicks,v=d.horizontalValues,N=d.verticalValues,S=v_e(),j=w_e();if(!ze(g)||g<=0||!ze(b)||b<=0||!ze(h)||h!==+h||!ze(m)||m!==+m)return null;var $=d.verticalCoordinatesGenerator||RAe,C=d.horizontalCoordinatesGenerator||IAe,_=d.horizontalPoints,O=d.verticalPoints;if((!_||!_.length)&&Pt(C)){var E=v&&v.length,P=C({yAxis:j?sa(sa({},j),{},{ticks:E?v:j.ticks}):void 0,width:l,height:c,offset:u},E?!0:y);Ho(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Au(P),"]")),Array.isArray(P)&&(_=P)}if((!O||!O.length)&&Pt($)){var T=N&&N.length,I=$({xAxis:S?sa(sa({},S),{},{ticks:T?N:S.ticks}):void 0,width:l,height:c,offset:u},T?!0:y);Ho(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Au(I),"]")),Array.isArray(I)&&(O=I)}return z.createElement("g",{className:"recharts-cartesian-grid"},z.createElement(EAe,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),z.createElement(OAe,lu({},d,{offset:u,horizontalPoints:_,xAxis:S,yAxis:j})),z.createElement(PAe,lu({},d,{offset:u,verticalPoints:O,xAxis:S,yAxis:j})),z.createElement(MAe,lu({},d,{horizontalPoints:_})),z.createElement(TAe,lu({},d,{verticalPoints:O})))}Pj.displayName="CartesianGrid";var DAe=["type","layout","connectNulls","ref"],LAe=["key"];function Uh(t){"@babel/helpers - typeof";return Uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uh(t)}function AH(t,e){if(t==null)return{};var r=BAe(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function BAe(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function hm(){return hm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},hm.apply(this,arguments)}function EH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function qa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?EH(Object(r),!0).forEach(function(n){oi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):EH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Td(t){return VAe(t)||zAe(t)||FAe(t)||HAe()}function HAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1231In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FAe(t,e){if(t){if(typeof t=="string")return Mj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mj(t,e)}}function zAe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function VAe(t){if(Array.isArray(t))return Mj(t)}function Mj(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function UAe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function OH(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xX(n.key),n)}}function qAe(t,e,r){return e&&OH(t.prototype,e),r&&OH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function WAe(t,e,r){return e=x2(e),GAe(t,bX()?Reflect.construct(e,r||[],x2(t).constructor):e.apply(t,r))}function GAe(t,e){if(e&&(Uh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KAe(t)}function KAe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bX=function(){return!!t})()}function x2(t){return x2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},x2(t)}function YAe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tj(t,e)}function Tj(t,e){return Tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Tj(t,e)}function oi(t,e,r){return e=xX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xX(t){var e=XAe(t,"string");return Uh(e)=="symbol"?e:e+""}function XAe(t,e){if(Uh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Uh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var qh=(function(t){function e(){var r;UAe(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=WAe(this,e,[].concat(a)),oi(r,"state",{isAnimationFinished:!0,totalLength:0}),oi(r,"generateSimpleStrokeDasharray",function(o,l){return"".concat(l,"px ").concat(o-l,"px")}),oi(r,"getStrokeDasharray",function(o,l,c){var u=c.reduce(function(N,S){return N+S});if(!u)return r.generateSimpleStrokeDasharray(l,o);for(var d=Math.floor(o/u),h=o%u,m=l-o,g=[],b=0,y=0;b<c.length;y+=c[b],++b)if(y+c[b]>h){g=[].concat(Td(c.slice(0,b)),[h-y]);break}var v=g.length%2===0?[0,m]:[m];return[].concat(Td(e.repeat(c,d)),Td(g),v).map(function(N){return"".concat(N,"px")}).join(", ")}),oi(r,"id",kf("recharts-line-")),oi(r,"pathRef",function(o){r.mainCurve=o}),oi(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),oi(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return YAe(e,t),qAe(e,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,l=i.xAxis,c=i.yAxis,u=i.layout,d=i.children,h=Ms(d,a1);if(!h)return null;var m=function(y,v){return{x:y.x,y:y.y,value:y.value,errorVal:ja(y.payload,v)}},g={clipPath:n?"url(#clipPath-".concat(a,")"):null};return z.createElement(fr,g,h.map(function(b){return z.cloneElement(b,{key:"bar-".concat(b.props.dataKey),data:o,xAxis:l,yAxis:c,layout:u,dataPointFormatter:m})}))}},{key:"renderDots",value:function(n,a,i){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,c=l.dot,u=l.points,d=l.dataKey,h=Mt(this.props,!1),m=Mt(c,!0),g=u.map(function(y,v){var N=qa(qa(qa({key:"dot-".concat(v),r:3},h),m),{},{index:v,cx:y.x,cy:y.y,value:y.value,dataKey:d,payload:y.payload,points:u});return e.renderDotItem(c,N)}),b={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return z.createElement(fr,hm({className:"recharts-line-dots",key:"dots"},b),g)}},{key:"renderCurveStatically",value:function(n,a,i,o){var l=this.props,c=l.type,u=l.layout,d=l.connectNulls;l.ref;var h=AH(l,DAe),m=qa(qa(qa({},Mt(h,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:n},o),{},{type:c,layout:u,connectNulls:d});return z.createElement(mh,hm({},m,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,a){var i=this,o=this.props,l=o.points,c=o.strokeDasharray,u=o.isAnimationActive,d=o.animationBegin,h=o.animationDuration,m=o.animationEasing,g=o.animationId,b=o.animateNewValues,y=o.width,v=o.height,N=this.state,S=N.prevPoints,j=N.totalLength;return z.createElement(Ji,{begin:d,duration:h,isActive:u,easing:m,from:{t:0},to:{t:1},key:"line-".concat(g),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function($){var C=$.t;if(S){var _=S.length/l.length,O=l.map(function(R,F){var L=Math.floor(F*_);if(S[L]){var q=S[L],G=Ln(q.x,R.x),B=Ln(q.y,R.y);return qa(qa({},R),{},{x:G(C),y:B(C)})}if(b){var H=Ln(y*2,R.x),K=Ln(v/2,R.y);return qa(qa({},R),{},{x:H(C),y:K(C)})}return qa(qa({},R),{},{x:R.x,y:R.y})});return i.renderCurveStatically(O,n,a)}var E=Ln(0,j),P=E(C),T;if(c){var I="".concat(c).split(/[,\s]+/gim).map(function(R){return parseFloat(R)});T=i.getStrokeDasharray(P,j,I)}else T=i.generateSimpleStrokeDasharray(j,P);return i.renderCurveStatically(l,n,a,{strokeDasharray:T})})}},{key:"renderCurve",value:function(n,a){var i=this.props,o=i.points,l=i.isAnimationActive,c=this.state,u=c.prevPoints,d=c.totalLength;return l&&o&&o.length&&(!u&&d>0||!Th(u,o))?this.renderCurveWithAnimation(n,a):this.renderCurveStatically(o,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,o=a.dot,l=a.points,c=a.className,u=a.xAxis,d=a.yAxis,h=a.top,m=a.left,g=a.width,b=a.height,y=a.isAnimationActive,v=a.id;if(i||!l||!l.length)return null;var N=this.state.isAnimationFinished,S=l.length===1,j=zt("recharts-line",c),$=u&&u.allowDataOverflow,C=d&&d.allowDataOverflow,_=$||C,O=Ft(v)?this.id:v,E=(n=Mt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=E.r,T=P===void 0?3:P,I=E.strokeWidth,R=I===void 0?2:I,F=PG(o)?o:{},L=F.clipDot,q=L===void 0?!0:L,G=T*2+R;return z.createElement(fr,{className:j},$||C?z.createElement("defs",null,z.createElement("clipPath",{id:"clipPath-".concat(O)},z.createElement("rect",{x:$?m:m-g/2,y:C?h:h-b/2,width:$?g:g*2,height:C?b:b*2})),!q&&z.createElement("clipPath",{id:"clipPath-dots-".concat(O)},z.createElement("rect",{x:m-G/2,y:h-G/2,width:g+G,height:b+G}))):null,!S&&this.renderCurve(_,O),this.renderErrorBar(_,O),(S||o)&&this.renderDots(_,q,O),(!y||N)&&zo.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:a.curPoints}:n.points!==a.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,a){for(var i=n.length%2!==0?[].concat(Td(n),[0]):n,o=[],l=0;l<a;++l)o=[].concat(Td(o),Td(i));return o}},{key:"renderDotItem",value:function(n,a){var i;if(z.isValidElement(n))i=z.cloneElement(n,a);else if(Pt(n))i=n(a);else{var o=a.key,l=AH(a,LAe),c=zt("recharts-line-dot",typeof n!="boolean"?n.className:"");i=z.createElement(ov,hm({key:o},l,{className:c}))}return i}}])})(w.PureComponent);oi(qh,"displayName","Line");oi(qh,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Uu.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});oi(qh,"getComposedData",function(t){var e=t.props,r=t.xAxis,n=t.yAxis,a=t.xAxisTicks,i=t.yAxisTicks,o=t.dataKey,l=t.bandSize,c=t.displayedData,u=t.offset,d=e.layout,h=c.map(function(m,g){var b=ja(m,o);return d==="horizontal"?{x:Jx({axis:r,ticks:a,bandSize:l,entry:m,index:g}),y:Ft(b)?null:n.scale(b),value:b,payload:m}:{x:Ft(b)?null:r.scale(b),y:Jx({axis:n,ticks:i,bandSize:l,entry:m,index:g}),value:b,payload:m}});return qa({points:h,layout:d},u)});var JAe=["layout","type","stroke","connectNulls","isRange","ref"],QAe=["key"],yX;function Wh(t){"@babel/helpers - typeof";return Wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wh(t)}function vX(t,e){if(t==null)return{};var r=ZAe(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ZAe(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function cu(){return cu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},cu.apply(this,arguments)}function PH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ol(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?PH(Object(r),!0).forEach(function(n){Hi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):PH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function eEe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MH(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,NX(n.key),n)}}function tEe(t,e,r){return e&&MH(t.prototype,e),r&&MH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function rEe(t,e,r){return e=y2(e),nEe(t,wX()?Reflect.construct(e,r||[],y2(t).constructor):e.apply(t,r))}function nEe(t,e){if(e&&(Wh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aEe(t)}function aEe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wX=function(){return!!t})()}function y2(t){return y2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},y2(t)}function sEe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rj(t,e)}function Rj(t,e){return Rj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Rj(t,e)}function Hi(t,e,r){return e=NX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function NX(t){var e=iEe(t,"string");return Wh(e)=="symbol"?e:e+""}function iEe(t,e){if(Wh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Wh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var xc=(function(t){function e(){var r;eEe(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=rEe(this,e,[].concat(a)),Hi(r,"state",{isAnimationFinished:!0}),Hi(r,"id",kf("recharts-area-")),Hi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Pt(o)&&o()}),Hi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Pt(o)&&o()}),r}return sEe(e,t),tEe(e,[{key:"renderDots",value:function(n,a,i){var o=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(o&&!l)return null;var c=this.props,u=c.dot,d=c.points,h=c.dataKey,m=Mt(this.props,!1),g=Mt(u,!0),b=d.map(function(v,N){var S=Ol(Ol(Ol({key:"dot-".concat(N),r:3},m),g),{},{index:N,cx:v.x,cy:v.y,dataKey:h,value:v.value,payload:v.payload,points:d});return e.renderDotItem(u,S)}),y={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return z.createElement(fr,cu({className:"recharts-area-dots"},y),b)}},{key:"renderHorizontalRect",value:function(n){var a=this.props,i=a.baseLine,o=a.points,l=a.strokeWidth,c=o[0].x,u=o[o.length-1].x,d=n*Math.abs(c-u),h=Gl(o.map(function(m){return m.y||0}));return ze(i)&&typeof i=="number"?h=Math.max(i,h):i&&Array.isArray(i)&&i.length&&(h=Math.max(Gl(i.map(function(m){return m.y||0})),h)),ze(h)?z.createElement("rect",{x:c<u?c:c-d,y:0,width:d,height:Math.floor(h+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var a=this.props,i=a.baseLine,o=a.points,l=a.strokeWidth,c=o[0].y,u=o[o.length-1].y,d=n*Math.abs(c-u),h=Gl(o.map(function(m){return m.x||0}));return ze(i)&&typeof i=="number"?h=Math.max(i,h):i&&Array.isArray(i)&&i.length&&(h=Math.max(Gl(i.map(function(m){return m.x||0})),h)),ze(h)?z.createElement("rect",{x:0,y:c<u?c:c-d,width:h+(l?parseInt("".concat(l),10):1),height:Math.floor(d)}):null}},{key:"renderClipRect",value:function(n){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,a,i,o){var l=this.props,c=l.layout,u=l.type,d=l.stroke,h=l.connectNulls,m=l.isRange;l.ref;var g=vX(l,JAe);return z.createElement(fr,{clipPath:i?"url(#clipPath-".concat(o,")"):null},z.createElement(mh,cu({},Mt(g,!0),{points:n,connectNulls:h,type:u,baseLine:a,layout:c,stroke:"none",className:"recharts-area-area"})),d!=="none"&&z.createElement(mh,cu({},Mt(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:h,fill:"none",points:n})),d!=="none"&&m&&z.createElement(mh,cu({},Mt(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:h,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(n,a){var i=this,o=this.props,l=o.points,c=o.baseLine,u=o.isAnimationActive,d=o.animationBegin,h=o.animationDuration,m=o.animationEasing,g=o.animationId,b=this.state,y=b.prevPoints,v=b.prevBaseLine;return z.createElement(Ji,{begin:d,duration:h,isActive:u,easing:m,from:{t:0},to:{t:1},key:"area-".concat(g),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(N){var S=N.t;if(y){var j=y.length/l.length,$=l.map(function(E,P){var T=Math.floor(P*j);if(y[T]){var I=y[T],R=Ln(I.x,E.x),F=Ln(I.y,E.y);return Ol(Ol({},E),{},{x:R(S),y:F(S)})}return E}),C;if(ze(c)&&typeof c=="number"){var _=Ln(v,c);C=_(S)}else if(Ft(c)||jf(c)){var O=Ln(v,0);C=O(S)}else C=c.map(function(E,P){var T=Math.floor(P*j);if(v[T]){var I=v[T],R=Ln(I.x,E.x),F=Ln(I.y,E.y);return Ol(Ol({},E),{},{x:R(S),y:F(S)})}return E});return i.renderAreaStatically($,C,n,a)}return z.createElement(fr,null,z.createElement("defs",null,z.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(S))),z.createElement(fr,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(l,c,n,a)))})}},{key:"renderArea",value:function(n,a){var i=this.props,o=i.points,l=i.baseLine,c=i.isAnimationActive,u=this.state,d=u.prevPoints,h=u.prevBaseLine,m=u.totalLength;return c&&o&&o.length&&(!d&&m>0||!Th(d,o)||!Th(h,l))?this.renderAreaWithAnimation(n,a):this.renderAreaStatically(o,l,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,o=a.dot,l=a.points,c=a.className,u=a.top,d=a.left,h=a.xAxis,m=a.yAxis,g=a.width,b=a.height,y=a.isAnimationActive,v=a.id;if(i||!l||!l.length)return null;var N=this.state.isAnimationFinished,S=l.length===1,j=zt("recharts-area",c),$=h&&h.allowDataOverflow,C=m&&m.allowDataOverflow,_=$||C,O=Ft(v)?this.id:v,E=(n=Mt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=E.r,T=P===void 0?3:P,I=E.strokeWidth,R=I===void 0?2:I,F=PG(o)?o:{},L=F.clipDot,q=L===void 0?!0:L,G=T*2+R;return z.createElement(fr,{className:j},$||C?z.createElement("defs",null,z.createElement("clipPath",{id:"clipPath-".concat(O)},z.createElement("rect",{x:$?d:d-g/2,y:C?u:u-b/2,width:$?g:g*2,height:C?b:b*2})),!q&&z.createElement("clipPath",{id:"clipPath-dots-".concat(O)},z.createElement("rect",{x:d-G/2,y:u-G/2,width:g+G,height:b+G}))):null,S?null:this.renderArea(_,O),(o||S)&&this.renderDots(_,q,O),(!y||N)&&zo.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:n.points!==a.curPoints||n.baseLine!==a.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(w.PureComponent);yX=xc;Hi(xc,"displayName","Area");Hi(xc,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Uu.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Hi(xc,"getBaseValue",function(t,e,r,n){var a=t.layout,i=t.baseValue,o=e.props.baseValue,l=o??i;if(ze(l)&&typeof l=="number")return l;var c=a==="horizontal"?n:r,u=c.scale.domain();if(c.type==="number"){var d=Math.max(u[0],u[1]),h=Math.min(u[0],u[1]);return l==="dataMin"?h:l==="dataMax"||d<0?d:Math.max(Math.min(u[0],u[1]),0)}return l==="dataMin"?u[0]:l==="dataMax"?u[1]:u[0]});Hi(xc,"getComposedData",function(t){var e=t.props,r=t.item,n=t.xAxis,a=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,l=t.bandSize,c=t.dataKey,u=t.stackedData,d=t.dataStartIndex,h=t.displayedData,m=t.offset,g=e.layout,b=u&&u.length,y=yX.getBaseValue(e,r,n,a),v=g==="horizontal",N=!1,S=h.map(function($,C){var _;b?_=u[d+C]:(_=ja($,c),Array.isArray(_)?N=!0:_=[y,_]);var O=_[1]==null||b&&ja($,c)==null;return v?{x:Jx({axis:n,ticks:i,bandSize:l,entry:$,index:C}),y:O?null:a.scale(_[1]),value:_,payload:$}:{x:O?null:n.scale(_[1]),y:Jx({axis:a,ticks:o,bandSize:l,entry:$,index:C}),value:_,payload:$}}),j;return b||N?j=S.map(function($){var C=Array.isArray($.value)?$.value[0]:null;return v?{x:$.x,y:C!=null&&$.y!=null?a.scale(C):null}:{x:C!=null?n.scale(C):null,y:$.y}}):j=v?a.scale(y):n.scale(y),Ol({points:S,baseLine:j,layout:g,isRange:N},m)});Hi(xc,"renderDotItem",function(t,e){var r;if(z.isValidElement(t))r=z.cloneElement(t,e);else if(Pt(t))r=t(e);else{var n=zt("recharts-area-dot",typeof t!="boolean"?t.className:""),a=e.key,i=vX(e,QAe);r=z.createElement(ov,cu({},i,{key:a,className:n}))}return r});function Gh(t){"@babel/helpers - typeof";return Gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gh(t)}function oEe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lEe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,SX(n.key),n)}}function cEe(t,e,r){return e&&lEe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function uEe(t,e,r){return e=v2(e),dEe(t,jX()?Reflect.construct(e,r||[],v2(t).constructor):e.apply(t,r))}function dEe(t,e){if(e&&(Gh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hEe(t)}function hEe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jX=function(){return!!t})()}function v2(t){return v2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},v2(t)}function fEe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ij(t,e)}function Ij(t,e){return Ij=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ij(t,e)}function kX(t,e,r){return e=SX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function SX(t){var e=pEe(t,"string");return Gh(e)=="symbol"?e:e+""}function pEe(t,e){if(Gh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Gh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Dj(){return Dj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Dj.apply(this,arguments)}function mEe(t){var e=t.xAxisId,r=b$(),n=x$(),a=sX(e);return a==null?null:z.createElement(Af,Dj({},a,{className:zt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Po(o,!0)}}))}var Kh=(function(t){function e(){return oEe(this,e),uEe(this,e,arguments)}return fEe(e,t),cEe(e,[{key:"render",value:function(){return z.createElement(mEe,this.props)}}])})(z.Component);kX(Kh,"displayName","XAxis");kX(Kh,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Yh(t){"@babel/helpers - typeof";return Yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yh(t)}function gEe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bEe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_X(n.key),n)}}function xEe(t,e,r){return e&&bEe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function yEe(t,e,r){return e=w2(e),vEe(t,CX()?Reflect.construct(e,r||[],w2(t).constructor):e.apply(t,r))}function vEe(t,e){if(e&&(Yh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wEe(t)}function wEe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CX=function(){return!!t})()}function w2(t){return w2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},w2(t)}function NEe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lj(t,e)}function Lj(t,e){return Lj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Lj(t,e)}function $X(t,e,r){return e=_X(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _X(t){var e=jEe(t,"string");return Yh(e)=="symbol"?e:e+""}function jEe(t,e){if(Yh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Yh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Bj(){return Bj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Bj.apply(this,arguments)}var kEe=function(e){var r=e.yAxisId,n=b$(),a=x$(),i=iX(r);return i==null?null:z.createElement(Af,Bj({},i,{className:zt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(l){return Po(l,!0)}}))},Xh=(function(t){function e(){return gEe(this,e),yEe(this,e,arguments)}return NEe(e,t),xEe(e,[{key:"render",value:function(){return z.createElement(kEe,this.props)}}])})(z.Component);$X(Xh,"displayName","YAxis");$X(Xh,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function TH(t){return _Ee(t)||$Ee(t)||CEe(t)||SEe()}function SEe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1232In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CEe(t,e){if(t){if(typeof t=="string")return Hj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hj(t,e)}}function $Ee(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _Ee(t){if(Array.isArray(t))return Hj(t)}function Hj(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Fj=function(e,r,n,a,i){var o=Ms(e,v$),l=Ms(e,hv),c=[].concat(TH(o),TH(l)),u=Ms(e,pv),d="".concat(a,"Id"),h=a[0],m=r;if(c.length&&(m=c.reduce(function(y,v){if(v.props[d]===n&&qi(v.props,"extendDomain")&&ze(v.props[h])){var N=v.props[h];return[Math.min(y[0],N),Math.max(y[1],N)]}return y},m)),u.length){var g="".concat(h,"1"),b="".concat(h,"2");m=u.reduce(function(y,v){if(v.props[d]===n&&qi(v.props,"extendDomain")&&ze(v.props[g])&&ze(v.props[b])){var N=v.props[g],S=v.props[b];return[Math.min(y[0],N,S),Math.max(y[1],N,S)]}return y},m)}return i&&i.length&&(m=i.reduce(function(y,v){return ze(v)?[Math.min(y[0],v),Math.max(y[1],v)]:y},m)),m},v7={exports:{}},RH;function AEe(){return RH||(RH=1,(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function i(c,u,d,h,m){if(typeof d!="function")throw new TypeError("The listener must be a function");var g=new a(d,h||c,m),b=r?r+u:u;return c._events[b]?c._events[b].fn?c._events[b]=[c._events[b],g]:c._events[b].push(g):(c._events[b]=g,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],d,h;if(this._eventsCount===0)return u;for(h in d=this._events)e.call(d,h)&&u.push(r?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u){var d=r?r+u:u,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var m=0,g=h.length,b=new Array(g);m<g;m++)b[m]=h[m].fn;return b},l.prototype.listenerCount=function(u){var d=r?r+u:u,h=this._events[d];return h?h.fn?1:h.length:0},l.prototype.emit=function(u,d,h,m,g,b){var y=r?r+u:u;if(!this._events[y])return!1;var v=this._events[y],N=arguments.length,S,j;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),N){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,d),!0;case 3:return v.fn.call(v.context,d,h),!0;case 4:return v.fn.call(v.context,d,h,m),!0;case 5:return v.fn.call(v.context,d,h,m,g),!0;case 6:return v.fn.call(v.context,d,h,m,g,b),!0}for(j=1,S=new Array(N-1);j<N;j++)S[j-1]=arguments[j];v.fn.apply(v.context,S)}else{var $=v.length,C;for(j=0;j<$;j++)switch(v[j].once&&this.removeListener(u,v[j].fn,void 0,!0),N){case 1:v[j].fn.call(v[j].context);break;case 2:v[j].fn.call(v[j].context,d);break;case 3:v[j].fn.call(v[j].context,d,h);break;case 4:v[j].fn.call(v[j].context,d,h,m);break;default:if(!S)for(C=1,S=new Array(N-1);C<N;C++)S[C-1]=arguments[C];v[j].fn.apply(v[j].context,S)}}return!0},l.prototype.on=function(u,d,h){return i(this,u,d,h,!1)},l.prototype.once=function(u,d,h){return i(this,u,d,h,!0)},l.prototype.removeListener=function(u,d,h,m){var g=r?r+u:u;if(!this._events[g])return this;if(!d)return o(this,g),this;var b=this._events[g];if(b.fn)b.fn===d&&(!m||b.once)&&(!h||b.context===h)&&o(this,g);else{for(var y=0,v=[],N=b.length;y<N;y++)(b[y].fn!==d||m&&!b[y].once||h&&b[y].context!==h)&&v.push(b[y]);v.length?this._events[g]=v.length===1?v[0]:v:o(this,g)}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=r?r+u:u,this._events[d]&&o(this,d)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,t.exports=l})(v7)),v7.exports}var EEe=AEe();const OEe=ar(EEe);var w7=new OEe,N7="recharts.syncMouseEvents";function x0(t){"@babel/helpers - typeof";return x0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x0(t)}function PEe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MEe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,AX(n.key),n)}}function TEe(t,e,r){return e&&MEe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function j7(t,e,r){return e=AX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AX(t){var e=REe(t,"string");return x0(e)=="symbol"?e:e+""}function REe(t,e){if(x0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(x0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var IEe=(function(){function t(){PEe(this,t),j7(this,"activeIndex",0),j7(this,"coordinateList",[]),j7(this,"layout","horizontal")}return TEe(t,[{key:"setDetails",value:function(r){var n,a=r.coordinateList,i=a===void 0?null:a,o=r.container,l=o===void 0?null:o,c=r.layout,u=c===void 0?null:c,d=r.offset,h=d===void 0?null:d,m=r.mouseHandlerCallback,g=m===void 0?null:m;this.coordinateList=(n=i??this.coordinateList)!==null&&n!==void 0?n:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=h??this.offset,this.mouseHandlerCallback=g??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,o=a.y,l=a.height,c=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,d=((n=window)===null||n===void 0?void 0:n.scrollY)||0,h=i+c+u,m=o+this.offset.top+l/2+d;this.mouseHandlerCallback({pageX:h,pageY:m})}}}])})();function DEe(t,e,r){if(r==="number"&&e===!0&&Array.isArray(t)){var n=t==null?void 0:t[0],a=t==null?void 0:t[1];if(n&&a&&ze(n)&&ze(a))return!0}return!1}function LEe(t,e,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-a:r.left+.5,y:t==="horizontal"?r.top+.5:e.y-a,width:t==="horizontal"?n:r.width-1,height:t==="horizontal"?r.height-1:n}}function EX(t){var e=t.cx,r=t.cy,n=t.radius,a=t.startAngle,i=t.endAngle,o=Fn(e,r,n,a),l=Fn(e,r,n,i);return{points:[o,l],cx:e,cy:r,radius:n,startAngle:a,endAngle:i}}function BEe(t,e,r){var n,a,i,o;if(t==="horizontal")n=e.x,i=n,a=r.top,o=r.top+r.height;else if(t==="vertical")a=e.y,o=a,n=r.left,i=r.left+r.width;else if(e.cx!=null&&e.cy!=null)if(t==="centric"){var l=e.cx,c=e.cy,u=e.innerRadius,d=e.outerRadius,h=e.angle,m=Fn(l,c,u,h),g=Fn(l,c,d,h);n=m.x,a=m.y,i=g.x,o=g.y}else return EX(e);return[{x:n,y:a},{x:i,y:o}]}function y0(t){"@babel/helpers - typeof";return y0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y0(t)}function IH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ab(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?IH(Object(r),!0).forEach(function(n){HEe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function HEe(t,e,r){return e=FEe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FEe(t){var e=zEe(t,"string");return y0(e)=="symbol"?e:e+""}function zEe(t,e){if(y0(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(y0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function VEe(t){var e,r,n=t.element,a=t.tooltipEventType,i=t.isActive,o=t.activeCoordinate,l=t.activePayload,c=t.offset,u=t.activeTooltipIndex,d=t.tooltipAxisBandSize,h=t.layout,m=t.chartName,g=(e=n.props.cursor)!==null&&e!==void 0?e:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!g||!i||!o||m!=="ScatterChart"&&a!=="axis")return null;var b,y=mh;if(m==="ScatterChart")b=o,y=OCe;else if(m==="BarChart")b=LEe(h,o,c,d),y=f$;else if(h==="radial"){var v=EX(o),N=v.cx,S=v.cy,j=v.radius,$=v.startAngle,C=v.endAngle;b={cx:N,cy:S,startAngle:$,endAngle:C,innerRadius:j,outerRadius:j},y=TY}else b={points:BEe(h,o,c)},y=mh;var _=ab(ab(ab(ab({stroke:"#ccc",pointerEvents:"none"},c),b),Mt(g,!1)),{},{payload:l,payloadIndex:u,className:zt("recharts-tooltip-cursor",g.className)});return w.isValidElement(g)?w.cloneElement(g,_):w.createElement(y,_)}var UEe=["item"],qEe=["children","className","width","height","style","compact","title","desc"];function Jh(t){"@babel/helpers - typeof";return Jh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jh(t)}function sh(){return sh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sh.apply(this,arguments)}function DH(t,e){return KEe(t)||GEe(t,e)||PX(t,e)||WEe()}function WEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1233In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GEe(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function KEe(t){if(Array.isArray(t))return t}function LH(t,e){if(t==null)return{};var r=YEe(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function YEe(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function XEe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JEe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,MX(n.key),n)}}function QEe(t,e,r){return e&&JEe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ZEe(t,e,r){return e=N2(e),eOe(t,OX()?Reflect.construct(e,r||[],N2(t).constructor):e.apply(t,r))}function eOe(t,e){if(e&&(Jh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tOe(t)}function tOe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function OX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OX=function(){return!!t})()}function N2(t){return N2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},N2(t)}function rOe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zj(t,e)}function zj(t,e){return zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},zj(t,e)}function Qh(t){return sOe(t)||aOe(t)||PX(t)||nOe()}function nOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1234In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PX(t,e){if(t){if(typeof t=="string")return Vj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vj(t,e)}}function aOe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function sOe(t){if(Array.isArray(t))return Vj(t)}function Vj(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function BH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function _e(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?BH(Object(r),!0).forEach(function(n){jt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):BH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function jt(t,e,r){return e=MX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function MX(t){var e=iOe(t,"string");return Jh(e)=="symbol"?e:e+""}function iOe(t,e){if(Jh(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Jh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var oOe={xAxis:["bottom","top"],yAxis:["left","right"]},lOe={width:"100%",height:"100%"},TX={x:0,y:0};function sb(t){return t}var cOe=function(e,r){return r==="horizontal"?e.x:r==="vertical"?e.y:r==="centric"?e.angle:e.radius},uOe=function(e,r,n,a){var i=r.find(function(d){return d&&d.index===n});if(i){if(e==="horizontal")return{x:i.coordinate,y:a.y};if(e==="vertical")return{x:a.x,y:i.coordinate};if(e==="centric"){var o=i.coordinate,l=a.radius;return _e(_e(_e({},a),Fn(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var c=i.coordinate,u=a.angle;return _e(_e(_e({},a),Fn(a.cx,a.cy,c,u)),{},{angle:u,radius:c})}return TX},mv=function(e,r){var n=r.graphicalItems,a=r.dataStartIndex,i=r.dataEndIndex,o=(n??[]).reduce(function(l,c){var u=c.props.data;return u&&u.length?[].concat(Qh(l),Qh(u)):l},[]);return o.length>0?o:e&&e.length&&ze(a)&&ze(i)?e.slice(a,i+1):[]};function RX(t){return t==="number"?[0,"auto"]:void 0}var Uj=function(e,r,n,a){var i=e.graphicalItems,o=e.tooltipAxis,l=mv(r,e);return n<0||!i||!i.length||n>=l.length?null:i.reduce(function(c,u){var d,h=(d=u.props.data)!==null&&d!==void 0?d:r;h&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(h=h.slice(e.dataStartIndex,e.dataEndIndex+1));var m;if(o.dataKey&&!o.allowDuplicatedCategory){var g=h===void 0?l:h;m=jx(g,o.dataKey,a)}else m=h&&h[n]||l[n];return m?[].concat(Qh(c),[OY(u,m)]):c},[])},HH=function(e,r,n,a){var i=a||{x:e.chartX,y:e.chartY},o=cOe(i,n),l=e.orderedTooltipTicks,c=e.tooltipAxis,u=e.tooltipTicks,d=pje(o,l,u,c);if(d>=0&&u){var h=u[d]&&u[d].value,m=Uj(e,r,d,h),g=uOe(n,l,d,i);return{activeTooltipIndex:d,activeLabel:h,activePayload:m,activeCoordinate:g}}return null},dOe=function(e,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,o=r.axisIdKey,l=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,d=e.layout,h=e.children,m=e.stackOffset,g=_Y(d,i);return n.reduce(function(b,y){var v,N=y.type.defaultProps!==void 0?_e(_e({},y.type.defaultProps),y.props):y.props,S=N.type,j=N.dataKey,$=N.allowDataOverflow,C=N.allowDuplicatedCategory,_=N.scale,O=N.ticks,E=N.includeHidden,P=N[o];if(b[P])return b;var T=mv(e.data,{graphicalItems:a.filter(function(U){var Y,de=o in U.props?U.props[o]:(Y=U.type.defaultProps)===null||Y===void 0?void 0:Y[o];return de===P}),dataStartIndex:c,dataEndIndex:u}),I=T.length,R,F,L;DEe(N.domain,$,S)&&(R=ij(N.domain,null,$),g&&(S==="number"||_!=="auto")&&(L=um(T,j,"category")));var q=RX(S);if(!R||R.length===0){var G,B=(G=N.domain)!==null&&G!==void 0?G:q;if(j){if(R=um(T,j,S),S==="category"&&g){var H=o4e(R);C&&H?(F=R,R=l2(0,I)):C||(R=tB(B,R,y).reduce(function(U,Y){return U.indexOf(Y)>=0?U:[].concat(Qh(U),[Y])},[]))}else if(S==="category")C?R=R.filter(function(U){return U!==""&&!Ft(U)}):R=tB(B,R,y).reduce(function(U,Y){return U.indexOf(Y)>=0||Y===""||Ft(Y)?U:[].concat(Qh(U),[Y])},[]);else if(S==="number"){var K=yje(T,a.filter(function(U){var Y,de,ge=o in U.props?U.props[o]:(Y=U.type.defaultProps)===null||Y===void 0?void 0:Y[o],fe="hide"in U.props?U.props.hide:(de=U.type.defaultProps)===null||de===void 0?void 0:de.hide;return ge===P&&(E||!fe)}),j,i,d);K&&(R=K)}g&&(S==="number"||_!=="auto")&&(L=um(T,j,"category"))}else g?R=l2(0,I):l&&l[P]&&l[P].hasStack&&S==="number"?R=m==="expand"?[0,1]:EY(l[P].stackGroups,c,u):R=$Y(T,a.filter(function(U){var Y=o in U.props?U.props[o]:U.type.defaultProps[o],de="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return Y===P&&(E||!de)}),S,d,!0);if(S==="number")R=Fj(h,R,P,i,O),B&&(R=ij(B,R,$));else if(S==="category"&&B){var Z=B,V=R.every(function(U){return Z.indexOf(U)>=0});V&&(R=Z)}}return _e(_e({},b),{},jt({},P,_e(_e({},N),{},{axisType:i,domain:R,categoricalDomain:L,duplicateDomain:F,originalDomain:(v=N.domain)!==null&&v!==void 0?v:q,isCategorical:g,layout:d})))},{})},hOe=function(e,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,o=r.axisIdKey,l=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,d=e.layout,h=e.children,m=mv(e.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),g=m.length,b=_Y(d,i),y=-1;return n.reduce(function(v,N){var S=N.type.defaultProps!==void 0?_e(_e({},N.type.defaultProps),N.props):N.props,j=S[o],$=RX("number");if(!v[j]){y++;var C;return b?C=l2(0,g):l&&l[j]&&l[j].hasStack?(C=EY(l[j].stackGroups,c,u),C=Fj(h,C,j,i)):(C=ij($,$Y(m,n.filter(function(_){var O,E,P=o in _.props?_.props[o]:(O=_.type.defaultProps)===null||O===void 0?void 0:O[o],T="hide"in _.props?_.props.hide:(E=_.type.defaultProps)===null||E===void 0?void 0:E.hide;return P===j&&!T}),"number",d),a.defaultProps.allowDataOverflow),C=Fj(h,C,j,i)),_e(_e({},v),{},jt({},j,_e(_e({axisType:i},a.defaultProps),{},{hide:!0,orientation:Ps(oOe,"".concat(i,".").concat(y%2),null),domain:C,originalDomain:$,isCategorical:b,layout:d})))}return v},{})},fOe=function(e,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,d=e.children,h="".concat(a,"Id"),m=Ms(d,i),g={};return m&&m.length?g=dOe(e,{axes:m,graphicalItems:o,axisType:a,axisIdKey:h,stackGroups:l,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(g=hOe(e,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:h,stackGroups:l,dataStartIndex:c,dataEndIndex:u})),g},pOe=function(e){var r=zl(e),n=Po(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:HC(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Qx(r,n)}},FH=function(e){var r=e.children,n=e.defaultShowTooltip,a=Ga(r,Lh),i=0,o=0;return e.data&&e.data.length!==0&&(o=e.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},mOe=function(e){return!e||!e.length?!1:e.some(function(r){var n=Bo(r&&r.type);return n&&n.indexOf("Bar")>=0})},zH=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},gOe=function(e,r){var n=e.props,a=e.graphicalItems,i=e.xAxisMap,o=i===void 0?{}:i,l=e.yAxisMap,c=l===void 0?{}:l,u=n.width,d=n.height,h=n.children,m=n.margin||{},g=Ga(h,Lh),b=Ga(h,bu),y=Object.keys(c).reduce(function(C,_){var O=c[_],E=O.orientation;return!O.mirror&&!O.hide?_e(_e({},C),{},jt({},E,C[E]+O.width)):C},{left:m.left||0,right:m.right||0}),v=Object.keys(o).reduce(function(C,_){var O=o[_],E=O.orientation;return!O.mirror&&!O.hide?_e(_e({},C),{},jt({},E,Ps(C,"".concat(E))+O.height)):C},{top:m.top||0,bottom:m.bottom||0}),N=_e(_e({},v),y),S=N.bottom;g&&(N.bottom+=g.props.height||Lh.defaultProps.height),b&&r&&(N=bje(N,a,n,r));var j=u-N.left-N.right,$=d-N.top-N.bottom;return _e(_e({brushBottom:S},N),{},{width:Math.max(j,0),height:Math.max($,0)})},bOe=function(e,r){if(r==="xAxis")return e[r].width;if(r==="yAxis")return e[r].height},IX=function(e){var r=e.chartName,n=e.GraphicalChild,a=e.defaultTooltipEventType,i=a===void 0?"axis":a,o=e.validateTooltipEventTypes,l=o===void 0?["axis"]:o,c=e.axisComponents,u=e.legendContent,d=e.formatAxisMap,h=e.defaultProps,m=function(N,S){var j=S.graphicalItems,$=S.stackGroups,C=S.offset,_=S.updateId,O=S.dataStartIndex,E=S.dataEndIndex,P=N.barSize,T=N.layout,I=N.barGap,R=N.barCategoryGap,F=N.maxBarSize,L=zH(T),q=L.numericAxisName,G=L.cateAxisName,B=mOe(j),H=[];return j.forEach(function(K,Z){var V=mv(N.data,{graphicalItems:[K],dataStartIndex:O,dataEndIndex:E}),U=K.type.defaultProps!==void 0?_e(_e({},K.type.defaultProps),K.props):K.props,Y=U.dataKey,de=U.maxBarSize,ge=U["".concat(q,"Id")],fe=U["".concat(G,"Id")],Oe={},Ce=c.reduce(function(ae,W){var ee=S["".concat(W.axisType,"Map")],Q=U["".concat(W.axisType,"Id")];ee&&ee[Q]||W.axisType==="zAxis"||_u();var xe=ee[Q];return _e(_e({},ae),{},jt(jt({},W.axisType,xe),"".concat(W.axisType,"Ticks"),Po(xe)))},Oe),le=Ce[G],we=Ce["".concat(G,"Ticks")],ke=$&&$[ge]&&$[ge].hasStack&&Oje(K,$[ge].stackGroups),oe=Bo(K.type).indexOf("Bar")>=0,qe=Qx(le,we),Le=[],Ke=B&&mje({barSize:P,stackGroups:$,totalSize:bOe(Ce,G)});if(oe){var ne,Se,$e=Ft(de)?F:de,Ae=(ne=(Se=Qx(le,we,!0))!==null&&Se!==void 0?Se:$e)!==null&&ne!==void 0?ne:0;Le=gje({barGap:I,barCategoryGap:R,bandSize:Ae!==qe?Ae:qe,sizeList:Ke[fe],maxBarSize:$e}),Ae!==qe&&(Le=Le.map(function(ae){return _e(_e({},ae),{},{position:_e(_e({},ae.position),{},{offset:ae.position.offset-Ae/2})})}))}var Ve=K&&K.type&&K.type.getComposedData;Ve&&H.push({props:_e(_e({},Ve(_e(_e({},Ce),{},{displayedData:V,props:N,dataKey:Y,item:K,bandSize:qe,barPosition:Le,offset:C,stackedData:ke,layout:T,dataStartIndex:O,dataEndIndex:E}))),{},jt(jt(jt({key:K.key||"item-".concat(Z)},q,Ce[q]),G,Ce[G]),"animationId",_)),childIndex:x4e(K,N.children),item:K})}),H},g=function(N,S){var j=N.props,$=N.dataStartIndex,C=N.dataEndIndex,_=N.updateId;if(!mR({props:j}))return null;var O=j.children,E=j.layout,P=j.stackOffset,T=j.data,I=j.reverseStackOrder,R=zH(E),F=R.numericAxisName,L=R.cateAxisName,q=Ms(O,n),G=_je(T,q,"".concat(F,"Id"),"".concat(L,"Id"),P,I),B=c.reduce(function(U,Y){var de="".concat(Y.axisType,"Map");return _e(_e({},U),{},jt({},de,fOe(j,_e(_e({},Y),{},{graphicalItems:q,stackGroups:Y.axisType===F&&G,dataStartIndex:$,dataEndIndex:C}))))},{}),H=gOe(_e(_e({},B),{},{props:j,graphicalItems:q}),S==null?void 0:S.legendBBox);Object.keys(B).forEach(function(U){B[U]=d(j,B[U],H,U.replace("Map",""),r)});var K=B["".concat(L,"Map")],Z=pOe(K),V=m(j,_e(_e({},B),{},{dataStartIndex:$,dataEndIndex:C,updateId:_,graphicalItems:q,stackGroups:G,offset:H}));return _e(_e({formattedGraphicalItems:V,graphicalItems:q,offset:H,stackGroups:G},Z),B)},b=(function(v){function N(S){var j,$,C;return XEe(this,N),C=ZEe(this,N,[S]),jt(C,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),jt(C,"accessibilityManager",new IEe),jt(C,"handleLegendBBoxUpdate",function(_){if(_){var O=C.state,E=O.dataStartIndex,P=O.dataEndIndex,T=O.updateId;C.setState(_e({legendBBox:_},g({props:C.props,dataStartIndex:E,dataEndIndex:P,updateId:T},_e(_e({},C.state),{},{legendBBox:_}))))}}),jt(C,"handleReceiveSyncEvent",function(_,O,E){if(C.props.syncId===_){if(E===C.eventEmitterSymbol&&typeof C.props.syncMethod!="function")return;C.applySyncEvent(O)}}),jt(C,"handleBrushChange",function(_){var O=_.startIndex,E=_.endIndex;if(O!==C.state.dataStartIndex||E!==C.state.dataEndIndex){var P=C.state.updateId;C.setState(function(){return _e({dataStartIndex:O,dataEndIndex:E},g({props:C.props,dataStartIndex:O,dataEndIndex:E,updateId:P},C.state))}),C.triggerSyncEvent({dataStartIndex:O,dataEndIndex:E})}}),jt(C,"handleMouseEnter",function(_){var O=C.getMouseInfo(_);if(O){var E=_e(_e({},O),{},{isTooltipActive:!0});C.setState(E),C.triggerSyncEvent(E);var P=C.props.onMouseEnter;Pt(P)&&P(E,_)}}),jt(C,"triggeredAfterMouseMove",function(_){var O=C.getMouseInfo(_),E=O?_e(_e({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};C.setState(E),C.triggerSyncEvent(E);var P=C.props.onMouseMove;Pt(P)&&P(E,_)}),jt(C,"handleItemMouseEnter",function(_){C.setState(function(){return{isTooltipActive:!0,activeItem:_,activePayload:_.tooltipPayload,activeCoordinate:_.tooltipPosition||{x:_.cx,y:_.cy}}})}),jt(C,"handleItemMouseLeave",function(){C.setState(function(){return{isTooltipActive:!1}})}),jt(C,"handleMouseMove",function(_){_.persist(),C.throttleTriggeredAfterMouseMove(_)}),jt(C,"handleMouseLeave",function(_){C.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};C.setState(O),C.triggerSyncEvent(O);var E=C.props.onMouseLeave;Pt(E)&&E(O,_)}),jt(C,"handleOuterEvent",function(_){var O=b4e(_),E=Ps(C.props,"".concat(O));if(O&&Pt(E)){var P,T;/.*touch.*/i.test(O)?T=C.getMouseInfo(_.changedTouches[0]):T=C.getMouseInfo(_),E((P=T)!==null&&P!==void 0?P:{},_)}}),jt(C,"handleClick",function(_){var O=C.getMouseInfo(_);if(O){var E=_e(_e({},O),{},{isTooltipActive:!0});C.setState(E),C.triggerSyncEvent(E);var P=C.props.onClick;Pt(P)&&P(E,_)}}),jt(C,"handleMouseDown",function(_){var O=C.props.onMouseDown;if(Pt(O)){var E=C.getMouseInfo(_);O(E,_)}}),jt(C,"handleMouseUp",function(_){var O=C.props.onMouseUp;if(Pt(O)){var E=C.getMouseInfo(_);O(E,_)}}),jt(C,"handleTouchMove",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&C.throttleTriggeredAfterMouseMove(_.changedTouches[0])}),jt(C,"handleTouchStart",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&C.handleMouseDown(_.changedTouches[0])}),jt(C,"handleTouchEnd",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&C.handleMouseUp(_.changedTouches[0])}),jt(C,"handleDoubleClick",function(_){var O=C.props.onDoubleClick;if(Pt(O)){var E=C.getMouseInfo(_);O(E,_)}}),jt(C,"handleContextMenu",function(_){var O=C.props.onContextMenu;if(Pt(O)){var E=C.getMouseInfo(_);O(E,_)}}),jt(C,"triggerSyncEvent",function(_){C.props.syncId!==void 0&&w7.emit(N7,C.props.syncId,_,C.eventEmitterSymbol)}),jt(C,"applySyncEvent",function(_){var O=C.props,E=O.layout,P=O.syncMethod,T=C.state.updateId,I=_.dataStartIndex,R=_.dataEndIndex;if(_.dataStartIndex!==void 0||_.dataEndIndex!==void 0)C.setState(_e({dataStartIndex:I,dataEndIndex:R},g({props:C.props,dataStartIndex:I,dataEndIndex:R,updateId:T},C.state)));else if(_.activeTooltipIndex!==void 0){var F=_.chartX,L=_.chartY,q=_.activeTooltipIndex,G=C.state,B=G.offset,H=G.tooltipTicks;if(!B)return;if(typeof P=="function")q=P(H,_);else if(P==="value"){q=-1;for(var K=0;K<H.length;K++)if(H[K].value===_.activeLabel){q=K;break}}var Z=_e(_e({},B),{},{x:B.left,y:B.top}),V=Math.min(F,Z.x+Z.width),U=Math.min(L,Z.y+Z.height),Y=H[q]&&H[q].value,de=Uj(C.state,C.props.data,q),ge=H[q]?{x:E==="horizontal"?H[q].coordinate:V,y:E==="horizontal"?U:H[q].coordinate}:TX;C.setState(_e(_e({},_),{},{activeLabel:Y,activeCoordinate:ge,activePayload:de,activeTooltipIndex:q}))}else C.setState(_)}),jt(C,"renderCursor",function(_){var O,E=C.state,P=E.isTooltipActive,T=E.activeCoordinate,I=E.activePayload,R=E.offset,F=E.activeTooltipIndex,L=E.tooltipAxisBandSize,q=C.getTooltipEventType(),G=(O=_.props.active)!==null&&O!==void 0?O:P,B=C.props.layout,H=_.key||"_recharts-cursor";return z.createElement(VEe,{key:H,activeCoordinate:T,activePayload:I,activeTooltipIndex:F,chartName:r,element:_,isActive:G,layout:B,offset:R,tooltipAxisBandSize:L,tooltipEventType:q})}),jt(C,"renderPolarAxis",function(_,O,E){var P=Ps(_,"type.axisType"),T=Ps(C.state,"".concat(P,"Map")),I=_.type.defaultProps,R=I!==void 0?_e(_e({},I),_.props):_.props,F=T&&T[R["".concat(P,"Id")]];return w.cloneElement(_,_e(_e({},F),{},{className:zt(P,F.className),key:_.key||"".concat(O,"-").concat(E),ticks:Po(F,!0)}))}),jt(C,"renderPolarGrid",function(_){var O=_.props,E=O.radialLines,P=O.polarAngles,T=O.polarRadius,I=C.state,R=I.radiusAxisMap,F=I.angleAxisMap,L=zl(R),q=zl(F),G=q.cx,B=q.cy,H=q.innerRadius,K=q.outerRadius;return w.cloneElement(_,{polarAngles:Array.isArray(P)?P:Po(q,!0).map(function(Z){return Z.coordinate}),polarRadius:Array.isArray(T)?T:Po(L,!0).map(function(Z){return Z.coordinate}),cx:G,cy:B,innerRadius:H,outerRadius:K,key:_.key||"polar-grid",radialLines:E})}),jt(C,"renderLegend",function(){var _=C.state.formattedGraphicalItems,O=C.props,E=O.children,P=O.width,T=O.height,I=C.props.margin||{},R=P-(I.left||0)-(I.right||0),F=SY({children:E,formattedGraphicalItems:_,legendWidth:R,legendContent:u});if(!F)return null;var L=F.item,q=LH(F,UEe);return w.cloneElement(L,_e(_e({},q),{},{chartWidth:P,chartHeight:T,margin:I,onBBoxUpdate:C.handleLegendBBoxUpdate}))}),jt(C,"renderTooltip",function(){var _,O=C.props,E=O.children,P=O.accessibilityLayer,T=Ga(E,si);if(!T)return null;var I=C.state,R=I.isTooltipActive,F=I.activeCoordinate,L=I.activePayload,q=I.activeLabel,G=I.offset,B=(_=T.props.active)!==null&&_!==void 0?_:R;return w.cloneElement(T,{viewBox:_e(_e({},G),{},{x:G.left,y:G.top}),active:B,label:q,payload:B?L:[],coordinate:F,accessibilityLayer:P})}),jt(C,"renderBrush",function(_){var O=C.props,E=O.margin,P=O.data,T=C.state,I=T.offset,R=T.dataStartIndex,F=T.dataEndIndex,L=T.updateId;return w.cloneElement(_,{key:_.key||"_recharts-brush",onChange:eb(C.handleBrushChange,_.props.onChange),data:P,x:ze(_.props.x)?_.props.x:I.left,y:ze(_.props.y)?_.props.y:I.top+I.height+I.brushBottom-(E.bottom||0),width:ze(_.props.width)?_.props.width:I.width,startIndex:R,endIndex:F,updateId:"brush-".concat(L)})}),jt(C,"renderReferenceElement",function(_,O,E){if(!_)return null;var P=C,T=P.clipPathId,I=C.state,R=I.xAxisMap,F=I.yAxisMap,L=I.offset,q=_.type.defaultProps||{},G=_.props,B=G.xAxisId,H=B===void 0?q.xAxisId:B,K=G.yAxisId,Z=K===void 0?q.yAxisId:K;return w.cloneElement(_,{key:_.key||"".concat(O,"-").concat(E),xAxis:R[H],yAxis:F[Z],viewBox:{x:L.left,y:L.top,width:L.width,height:L.height},clipPathId:T})}),jt(C,"renderActivePoints",function(_){var O=_.item,E=_.activePoint,P=_.basePoint,T=_.childIndex,I=_.isRange,R=[],F=O.props.key,L=O.item.type.defaultProps!==void 0?_e(_e({},O.item.type.defaultProps),O.item.props):O.item.props,q=L.activeDot,G=L.dataKey,B=_e(_e({index:T,dataKey:G,cx:E.x,cy:E.y,r:4,fill:h$(O.item),strokeWidth:2,stroke:"#fff",payload:E.payload,value:E.value},Mt(q,!1)),kx(q));return R.push(N.renderActiveDot(q,B,"".concat(F,"-activePoint-").concat(T))),P?R.push(N.renderActiveDot(q,_e(_e({},B),{},{cx:P.x,cy:P.y}),"".concat(F,"-basePoint-").concat(T))):I&&R.push(null),R}),jt(C,"renderGraphicChild",function(_,O,E){var P=C.filterFormatItem(_,O,E);if(!P)return null;var T=C.getTooltipEventType(),I=C.state,R=I.isTooltipActive,F=I.tooltipAxis,L=I.activeTooltipIndex,q=I.activeLabel,G=C.props.children,B=Ga(G,si),H=P.props,K=H.points,Z=H.isRange,V=H.baseLine,U=P.item.type.defaultProps!==void 0?_e(_e({},P.item.type.defaultProps),P.item.props):P.item.props,Y=U.activeDot,de=U.hide,ge=U.activeBar,fe=U.activeShape,Oe=!!(!de&&R&&B&&(Y||ge||fe)),Ce={};T!=="axis"&&B&&B.props.trigger==="click"?Ce={onClick:eb(C.handleItemMouseEnter,_.props.onClick)}:T!=="axis"&&(Ce={onMouseLeave:eb(C.handleItemMouseLeave,_.props.onMouseLeave),onMouseEnter:eb(C.handleItemMouseEnter,_.props.onMouseEnter)});var le=w.cloneElement(_,_e(_e({},P.props),Ce));function we(W){return typeof F.dataKey=="function"?F.dataKey(W.payload):null}if(Oe)if(L>=0){var ke,oe;if(F.dataKey&&!F.allowDuplicatedCategory){var qe=typeof F.dataKey=="function"?we:"payload.".concat(F.dataKey.toString());ke=jx(K,qe,q),oe=Z&&V&&jx(V,qe,q)}else ke=K==null?void 0:K[L],oe=Z&&V&&V[L];if(fe||ge){var Le=_.props.activeIndex!==void 0?_.props.activeIndex:L;return[w.cloneElement(_,_e(_e(_e({},P.props),Ce),{},{activeIndex:Le})),null,null]}if(!Ft(ke))return[le].concat(Qh(C.renderActivePoints({item:P,activePoint:ke,basePoint:oe,childIndex:L,isRange:Z})))}else{var Ke,ne=(Ke=C.getItemByXY(C.state.activeCoordinate))!==null&&Ke!==void 0?Ke:{graphicalItem:le},Se=ne.graphicalItem,$e=Se.item,Ae=$e===void 0?_:$e,Ve=Se.childIndex,ae=_e(_e(_e({},P.props),Ce),{},{activeIndex:Ve});return[w.cloneElement(Ae,ae),null,null]}return Z?[le,null,null]:[le,null]}),jt(C,"renderCustomized",function(_,O,E){return w.cloneElement(_,_e(_e({key:"recharts-customized-".concat(E)},C.props),C.state))}),jt(C,"renderMap",{CartesianGrid:{handler:sb,once:!0},ReferenceArea:{handler:C.renderReferenceElement},ReferenceLine:{handler:sb},ReferenceDot:{handler:C.renderReferenceElement},XAxis:{handler:sb},YAxis:{handler:sb},Brush:{handler:C.renderBrush,once:!0},Bar:{handler:C.renderGraphicChild},Line:{handler:C.renderGraphicChild},Area:{handler:C.renderGraphicChild},Radar:{handler:C.renderGraphicChild},RadialBar:{handler:C.renderGraphicChild},Scatter:{handler:C.renderGraphicChild},Pie:{handler:C.renderGraphicChild},Funnel:{handler:C.renderGraphicChild},Tooltip:{handler:C.renderCursor,once:!0},PolarGrid:{handler:C.renderPolarGrid,once:!0},PolarAngleAxis:{handler:C.renderPolarAxis},PolarRadiusAxis:{handler:C.renderPolarAxis},Customized:{handler:C.renderCustomized}}),C.clipPathId="".concat((j=S.id)!==null&&j!==void 0?j:kf("recharts"),"-clip"),C.throttleTriggeredAfterMouseMove=SK(C.triggeredAfterMouseMove,($=S.throttleDelay)!==null&&$!==void 0?$:1e3/60),C.state={},C}return rOe(N,v),QEe(N,[{key:"componentDidMount",value:function(){var j,$;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:($=this.props.margin.top)!==null&&$!==void 0?$:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var j=this.props,$=j.children,C=j.data,_=j.height,O=j.layout,E=Ga($,si);if(E){var P=E.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var T=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,I=Uj(this.state,C,P,T),R=this.state.tooltipTicks[P].coordinate,F=(this.state.offset.top+_)/2,L=O==="horizontal",q=L?{x:R,y:F}:{y:R,x:F},G=this.state.formattedGraphicalItems.find(function(H){var K=H.item;return K.type.name==="Scatter"});G&&(q=_e(_e({},q),G.props.points[P].tooltipPosition),I=G.props.points[P].tooltipPayload);var B={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:T,activePayload:I,activeCoordinate:q};this.setState(B),this.renderCursor(E),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(j,$){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==$.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==j.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==j.margin){var C,_;this.accessibilityManager.setDetails({offset:{left:(C=this.props.margin.left)!==null&&C!==void 0?C:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0}})}return null}},{key:"componentDidUpdate",value:function(j){_N([Ga(j.children,si)],[Ga(this.props.children,si)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var j=Ga(this.props.children,si);if(j&&typeof j.props.shared=="boolean"){var $=j.props.shared?"axis":"item";return l.indexOf($)>=0?$:i}return i}},{key:"getMouseInfo",value:function(j){if(!this.container)return null;var $=this.container,C=$.getBoundingClientRect(),_=a8e(C),O={chartX:Math.round(j.pageX-_.left),chartY:Math.round(j.pageY-_.top)},E=C.width/$.offsetWidth||1,P=this.inRange(O.chartX,O.chartY,E);if(!P)return null;var T=this.state,I=T.xAxisMap,R=T.yAxisMap,F=this.getTooltipEventType(),L=HH(this.state,this.props.data,this.props.layout,P);if(F!=="axis"&&I&&R){var q=zl(I).scale,G=zl(R).scale,B=q&&q.invert?q.invert(O.chartX):null,H=G&&G.invert?G.invert(O.chartY):null;return _e(_e({},O),{},{xValue:B,yValue:H},L)}return L?_e(_e({},O),L):null}},{key:"inRange",value:function(j,$){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=this.props.layout,O=j/C,E=$/C;if(_==="horizontal"||_==="vertical"){var P=this.state.offset,T=O>=P.left&&O<=P.left+P.width&&E>=P.top&&E<=P.top+P.height;return T?{x:O,y:E}:null}var I=this.state,R=I.angleAxisMap,F=I.radiusAxisMap;if(R&&F){var L=zl(R);return aB({x:O,y:E},L)}return null}},{key:"parseEventsOfWrapper",value:function(){var j=this.props.children,$=this.getTooltipEventType(),C=Ga(j,si),_={};C&&$==="axis"&&(C.props.trigger==="click"?_={onClick:this.handleClick}:_={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=kx(this.props,this.handleOuterEvent);return _e(_e({},O),_)}},{key:"addListener",value:function(){w7.on(N7,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){w7.removeListener(N7,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(j,$,C){for(var _=this.state.formattedGraphicalItems,O=0,E=_.length;O<E;O++){var P=_[O];if(P.item===j||P.props.key===j.key||$===Bo(P.item.type)&&C===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var j=this.clipPathId,$=this.state.offset,C=$.left,_=$.top,O=$.height,E=$.width;return z.createElement("defs",null,z.createElement("clipPath",{id:j},z.createElement("rect",{x:C,y:_,height:O,width:E})))}},{key:"getXScales",value:function(){var j=this.state.xAxisMap;return j?Object.entries(j).reduce(function($,C){var _=DH(C,2),O=_[0],E=_[1];return _e(_e({},$),{},jt({},O,E.scale))},{}):null}},{key:"getYScales",value:function(){var j=this.state.yAxisMap;return j?Object.entries(j).reduce(function($,C){var _=DH(C,2),O=_[0],E=_[1];return _e(_e({},$),{},jt({},O,E.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(j){var $;return($=this.state.xAxisMap)===null||$===void 0||($=$[j])===null||$===void 0?void 0:$.scale}},{key:"getYScaleByAxisId",value:function(j){var $;return($=this.state.yAxisMap)===null||$===void 0||($=$[j])===null||$===void 0?void 0:$.scale}},{key:"getItemByXY",value:function(j){var $=this.state,C=$.formattedGraphicalItems,_=$.activeItem;if(C&&C.length)for(var O=0,E=C.length;O<E;O++){var P=C[O],T=P.props,I=P.item,R=I.type.defaultProps!==void 0?_e(_e({},I.type.defaultProps),I.props):I.props,F=Bo(I.type);if(F==="Bar"){var L=(T.data||[]).find(function(H){return wCe(j,H)});if(L)return{graphicalItem:P,payload:L}}else if(F==="RadialBar"){var q=(T.data||[]).find(function(H){return aB(j,H)});if(q)return{graphicalItem:P,payload:q}}else if(lv(P,_)||cv(P,_)||f0(P,_)){var G=d$e({graphicalItem:P,activeTooltipItem:_,itemData:R.data}),B=R.activeIndex===void 0?G:R.activeIndex;return{graphicalItem:_e(_e({},P),{},{childIndex:B}),payload:f0(P,_)?R.data[G]:P.props.data[G]}}}return null}},{key:"render",value:function(){var j=this;if(!mR(this))return null;var $=this.props,C=$.children,_=$.className,O=$.width,E=$.height,P=$.style,T=$.compact,I=$.title,R=$.desc,F=LH($,qEe),L=Mt(F,!1);if(T)return z.createElement(gH,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},z.createElement(EN,sh({},L,{width:O,height:E,title:I,desc:R}),this.renderClipPath(),bR(C,this.renderMap)));if(this.props.accessibilityLayer){var q,G;L.tabIndex=(q=this.props.tabIndex)!==null&&q!==void 0?q:0,L.role=(G=this.props.role)!==null&&G!==void 0?G:"application",L.onKeyDown=function(H){j.accessibilityManager.keyboardEvent(H)},L.onFocus=function(){j.accessibilityManager.focus()}}var B=this.parseEventsOfWrapper();return z.createElement(gH,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},z.createElement("div",sh({className:zt("recharts-wrapper",_),style:_e({position:"relative",curs
1234or:"default",width:O,height:E},P)},B,{ref:function(K){j.container=K}}),z.createElement(EN,sh({},L,{width:O,height:E,title:I,desc:R,style:lOe}),this.renderClipPath(),bR(C,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(w.Component);jt(b,"displayName",r),jt(b,"defaultProps",_e({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),jt(b,"getDerivedStateFromProps",function(v,N){var S=v.dataKey,j=v.data,$=v.children,C=v.width,_=v.height,O=v.layout,E=v.stackOffset,P=v.margin,T=N.dataStartIndex,I=N.dataEndIndex;if(N.updateId===void 0){var R=FH(v);return _e(_e(_e({},R),{},{updateId:0},g(_e(_e({props:v},R),{},{updateId:0}),N)),{},{prevDataKey:S,prevData:j,prevWidth:C,prevHeight:_,prevLayout:O,prevStackOffset:E,prevMargin:P,prevChildren:$})}if(S!==N.prevDataKey||j!==N.prevData||C!==N.prevWidth||_!==N.prevHeight||O!==N.prevLayout||E!==N.prevStackOffset||!hh(P,N.prevMargin)){var F=FH(v),L={chartX:N.chartX,chartY:N.chartY,isTooltipActive:N.isTooltipActive},q=_e(_e({},HH(N,j,O)),{},{updateId:N.updateId+1}),G=_e(_e(_e({},F),L),q);return _e(_e(_e({},G),g(_e({props:v},G),N)),{},{prevDataKey:S,prevData:j,prevWidth:C,prevHeight:_,prevLayout:O,prevStackOffset:E,prevMargin:P,prevChildren:$})}if(!_N($,N.prevChildren)){var B,H,K,Z,V=Ga($,Lh),U=V&&(B=(H=V.props)===null||H===void 0?void 0:H.startIndex)!==null&&B!==void 0?B:T,Y=V&&(K=(Z=V.props)===null||Z===void 0?void 0:Z.endIndex)!==null&&K!==void 0?K:I,de=U!==T||Y!==I,ge=!Ft(j),fe=ge&&!de?N.updateId:N.updateId+1;return _e(_e({updateId:fe},g(_e(_e({props:v},N),{},{updateId:fe,dataStartIndex:U,dataEndIndex:Y}),N)),{},{prevChildren:$,dataStartIndex:U,dataEndIndex:Y})}return null}),jt(b,"renderActiveDot",function(v,N,S){var j;return w.isValidElement(v)?j=w.cloneElement(v,N):Pt(v)?j=v(N):j=z.createElement(ov,N),z.createElement(fr,{className:"recharts-active-dot",key:S},j)});var y=w.forwardRef(function(N,S){return z.createElement(b,sh({},N,{ref:S}))});return y.displayName=b.displayName,y},xOe=IX({chartName:"LineChart",GraphicalChild:qh,axisComponents:[{axisType:"xAxis",AxisComp:Kh},{axisType:"yAxis",AxisComp:Xh}],formatAxisMap:JY}),yOe=IX({chartName:"AreaChart",GraphicalChild:xc,axisComponents:[{axisType:"xAxis",AxisComp:Kh},{axisType:"yAxis",AxisComp:Xh}],formatAxisMap:JY});function vOe(t,e=globalThis==null?void 0:globalThis.document){const r=gi(t);w.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var wOe="DismissableLayer",qj="dismissableLayer.update",NOe="dismissableLayer.pointerDownOutside",jOe="dismissableLayer.focusOutside",VH,DX=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gv=w.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=t,u=w.useContext(DX),[d,h]=w.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=w.useState({}),b=Mr(e,O=>h(O)),y=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),N=y.indexOf(v),S=d?y.indexOf(d):-1,j=u.layersWithOutsidePointerEventsDisabled.size>0,$=S>=N,C=COe(O=>{const E=O.target,P=[...u.branches].some(T=>T.contains(E));!$||P||(a==null||a(O),o==null||o(O),O.defaultPrevented||l==null||l())},m),_=$Oe(O=>{const E=O.target;[...u.branches].some(T=>T.contains(E))||(i==null||i(O),o==null||o(O),O.defaultPrevented||l==null||l())},m);return vOe(O=>{S===u.layers.size-1&&(n==null||n(O),!O.defaultPrevented&&l&&(O.preventDefault(),l()))},m),w.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(VH=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),UH(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=VH)}},[d,m,r,u]),w.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(
vendor: 5,738 bytes, line 1234
1234d),UH())},[d,u]),w.useEffect(()=>{const O=()=>g({});return document.addEventListener(qj,O),()=>document.removeEventListener(qj,O)},[]),s.jsx(cr.div,{...c,ref:b,style:{pointerEvents:j?$?"auto":"none":void 0,...t.style},onFocusCapture:Ct(t.onFocusCapture,_.onFocusCapture),onBlurCapture:Ct(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Ct(t.onPointerDownCapture,C.onPointerDownCapture)})});gv.displayName=wOe;var kOe="DismissableLayerBranch",SOe=w.forwardRef((t,e)=>{const r=w.useContext(DX),n=w.useRef(null),a=Mr(e,n);return w.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),s.jsx(cr.div,{...t,ref:a})});SOe.displayName=kOe;function COe(t,e=globalThis==null?void 0:globalThis.document){const r=gi(t),n=w.useRef(!1),a=w.useRef(()=>{});return w.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){LX(NOe,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",a.current),a.current=c,e.addEventListener("click",a.current,{once:!0})):c()}else e.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",a.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function $Oe(t,e=globalThis==null?void 0:globalThis.document){const r=gi(t),n=w.useRef(!1);return w.useEffect(()=>{const a=i=>{i.target&&!n.current&&LX(jOe,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",a),()=>e.removeEventListener("focusin",a)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function UH(){const t=new CustomEvent(qj);document.dispatchEvent(t)}function LX(t,e,r,{discrete:n}){const a=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&a.addEventListener(t,e,{once:!0}),n?jW(a,i):a.dispatchEvent(i)}var k7="focusScope.autoFocusOnMount",S7="focusScope.autoFocusOnUnmount",qH={bubbles:!1,cancelable:!0},_Oe="FocusScope",j$=w.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=t,[l,c]=w.useState(null),u=gi(a),d=gi(i),h=w.useRef(null),m=Mr(e,y=>c(y)),g=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(n){let y=function(j){if(g.paused||!l)return;const $=j.target;l.contains($)?h.current=$:Pl(h.current,{select:!0})},v=function(j){if(g.paused||!l)return;const $=j.relatedTarget;$!==null&&(l.contains($)||Pl(h.current,{select:!0}))},N=function(j){if(document.activeElement===document.body)for(const C of j)C.removedNodes.length>0&&Pl(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const S=new MutationObserver(N);return l&&S.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),S.disconnect()}}},[n,l,g.paused]),w.useEffect(()=>{if(l){GH.add(g);const y=document.activeElement;if(!l.contains(y)){const N=new CustomEvent(k7,qH);l.addEventListener(k7,u),l.dispatchEvent(N),N.defaultPrevented||(AOe(TOe(BX(l)),{select:!0}),document.activeElement===y&&Pl(l))}return()=>{l.removeEventListener(k7,u),setTimeout(()=>{const N=new CustomEvent(S7,qH);l.addEventListener(S7,d),l.dispatchEvent(N),N.defaultPrevented||Pl(y??document.body,{select:!0}),l.removeEventListener(S7,d),GH.remove(g)},0)}}},[l,u,d,g]);const b=w.useCallback(y=>{if(!r&&!n||g.paused)return;const v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,N=document.activeElement;if(v&&N){const S=y.currentTarget,[j,$]=EOe(S);j&&$?!y.shiftKey&&N===$?(y.preventDefault(),r&&Pl(j,{select:!0})):y.shiftKey&&N===j&&(y.preventDefault(),r&&Pl($,{select:!0})):N===S&&y.preventDefault()}},[r,n,g.paused]);return s.jsx(cr.div,{tabIndex:-1,...o,ref:m,onKeyDown:b})});j$.displayName=_Oe;function AOe(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Pl(n,{select:e}),document.activeElement!==r)return}function EOe(t){const e=BX(t),r=WH(e,t),n=WH(e.reverse(),t);return[r,n]}function BX(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function WH(t,e){for(const r of t)if(!OOe(r,{upTo:e}))return r}function OOe(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function POe(t){return t instanceof HTMLInputElement&&"select"in t}function Pl(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&POe(t)&&e&&t.select()}}var GH=MOe();function MOe(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=KH(t,e),t.unshift(e)},remove(e){var r;t=KH(t,e),(r=t[0])==null||r.resume()}}}function KH(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function TOe(t){return t.filter(e=>e.tagName!=="A")}var ROe="Portal",bv=w.forwardRef((t,e)=>{var l;const{container:r,...n}=t,[a,i]=w.useState(!1);ic(()=>i(!0),[]);const o=r||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?aC.createPortal(s.jsx(cr.div,{...n,ref:e}),o):null});bv.displayName=ROe;var C7=0;function HX(){w.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??YH()),document.body.insertAdjacentElement("beforeend",t[1]??YH()),C7++,()=>{C7===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
vendor: 5,126 bytes, lines 1234-1249
1234=>e.remove()),C7--}},[])}function YH(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Yb="right-scroll-bar-position",Xb="width-before-scroll-bar",IOe="with-scroll-bars-hidden",DOe="--removed-body-scroll-bar-size";function $7(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function LOe(t,e){var r=w.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=e,r.facade}var BOe=typeof window<"u"?w.useLayoutEffect:w.useEffect,XH=new WeakMap;function HOe(t,e){var r=LOe(null,function(n){return t.forEach(function(a){return $7(a,n)})});return BOe(function(){var n=XH.get(r);if(n){var a=new Set(n),i=new Set(t),o=r.current;a.forEach(function(l){i.has(l)||$7(l,null)}),i.forEach(function(l){a.has(l)||$7(l,o)})}XH.set(r,t)},[t]),r}function FOe(t){return t}function zOe(t,e){e===void 0&&(e=FOe);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(i){var o=e(i,n);return r.push(o),function(){r=r.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var l=r;r=[],l.forEach(i),o=r}var c=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),r}}}};return a}function VOe(t){t===void 0&&(t={});var e=zOe(null);return e.options=Ii({async:!0,ssr:!1},t),e}var FX=function(t){var e=t.sideCar,r=yf(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return w.createElement(n,Ii({},r))};FX.isSideCarExport=!0;function UOe(t,e){return t.useMedium(e),FX}var zX=VOe(),_7=function(){},xv=w.forwardRef(function(t,e){var r=w.useRef(null),n=w.useState({onScrollCapture:_7,onWheelCapture:_7,onTouchMoveCapture:_7}),a=n[0],i=n[1],o=t.forwardProps,l=t.children,c=t.className,u=t.removeScrollBar,d=t.enabled,h=t.shards,m=t.sideCar,g=t.noRelative,b=t.noIsolation,y=t.inert,v=t.allowPinchZoom,N=t.as,S=N===void 0?"div":N,j=t.gapMode,$=yf(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,_=HOe([r,e]),O=Ii(Ii({},$),a);return w.createElement(w.Fragment,null,d&&w.createElement(C,{sideCar:zX,removeScrollBar:u,shards:h,noRelative:g,noIsolation:b,inert:y,setCallbacks:i,allowPinchZoom:!!v,lockRef:r,gapMode:j}),o?w.cloneElement(w.Children.only(l),Ii(Ii({},O),{ref:_})):w.createElement(S,Ii({},O,{className:c,ref:_}),l))});xv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xv.classNames={fullWidth:Xb,zeroRight:Yb};var qOe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function WOe(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=qOe();return e&&t.setAttribute("nonce",e),t}function GOe(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function KOe(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var YOe=function(){var t=0,e=null;return{add:function(r){t==0&&(e=WOe())&&(GOe(e,r),KOe(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},XOe=function(){var t=YOe();return function(e,r){w.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},VX=function(){var t=XOe(),e=function(r){var n=r.styles,a=r.dynamic;return t(n,a),null};return e},JOe={left:0,top:0,right:0,gap:0},A7=function(t){return parseInt(t||"",10)||0},QOe=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],a=e[t==="padding"?"paddingRight":"marginRight"];return[A7(r),A7(n),A7(a)]},ZOe=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return JOe;var e=QOe(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},ePe=VX(),gh="data-scroll-locked",tPe=function(t,e,r,n){var a=t.left,i=t.top,o=t.right,l=t.gap;return r===void 0&&(r="margin"),` 1235 .`.concat(IOe,` { 1236 overflow: hidden `).concat(n,`; 1237 padding-right: `).concat(l,"px ").concat(n,`; 1238 } 1239 body[`).concat(gh,`] { 1240 overflow: hidden `).concat(n,`; 1241 overscroll-behavior: contain; 1242 `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&` 1243 padding-left: `.concat(a,`px; 1244 padding-top: `).concat(i,`px; 1245 padding-right: `).concat(o,`px; 1246 margin-left:0; 1247 margin-top:0; 1248 margin-right: `).concat(l,"px ").concat(n,`; 1249 `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";
1249")].filter(Boolean).join(""),` 1250 } 1251 1252 .`).concat(Yb,` { 1253 right: `).concat(l,"px ").concat(n,`; 1254 } 1255 1256 .`).concat(Xb,` { 1257 margin-right: `).concat(l,"px ").concat(n,`; 1258 } 1259 1260 .`).concat(Yb," .").concat(Yb,` { 1261 right: 0 `).concat(n,`; 1262 } 1263 1264 .`).concat(Xb," .").concat(Xb,` { 1265 margin-right: 0 `).concat(n,`; 1266 } 1267 1268 body[`).concat(gh,`] { 1269 `).concat(DOe,": ").concat(l,`px; 1270 } 1271`)},JH=function(){var t=parseInt(document.body.getAttribute(gh)||"0",10);return isFinite(t)?t:0},rPe=function(){w.useEffect(function(){return document.body.setAttribute(gh,(JH()+1).toString()),function(){var t=JH()-1;t<=0?document.body.removeAttribute(gh):document.body.setAttribute(gh,t.toString())}},[])},nPe=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,a=n===void 0?"margin":n;rPe();var i=w.useMemo(function(){return ZOe(a)},[a]);return w.createElement(ePe,{styles:tPe(i,!e,a,r?"":"!important")})},Wj=!1;if(typeof window<"u")try{var ib=Object.defineProperty({},"passive",{get:function(){return Wj=!0,!0}});window.addEventListener("test",ib,ib),window.removeEventListener("test",ib,ib)}catch{Wj=!1}var Rd=Wj?{passive:!1}:!1,aPe=function(t){return t.tagName==="TEXTAREA"},UX=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!aPe(t)&&r[e]==="visible")},sPe=function(t){return UX(t,"overflowY")},iPe=function(t){return UX(t,"overflowX")},QH=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=qX(t,n);if(a){var i=WX(t,n),o=i[1],l=i[2];if(o>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},oPe=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},lPe=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},qX=function(t,e){return t==="v"?sPe(e):iPe(e)},WX=function(t,e){return t==="v"?oPe(e):lPe(e)},cPe=function(t,e){return t==="h"&&e==="rtl"?-1:1},uPe=function(t,e,r,n,a){var i=cPe(t,window.getComputedStyle(e).direction),o=i*n,l=r.target,c=e.contains(l),u=!1,d=o>0,h=0,m=0;do{if(!l)break;var g=WX(t,l),b=g[0],y=g[1],v=g[2],N=y-v-i*b;(b||N)&&qX(t,l)&&(h+=N,m+=b);var S=l.parentNode;l=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!c&&l!==document.body||c&&(e.contains(l)||e===l));return(d&&Math.abs(h)<1||!d&&Math.abs(m)<1)&&(u=!0),u},ob=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},ZH=function(t){return[t.deltaX,t.deltaY]},eF=function(t){return t&&"current"in t?t.current:t},dPe=function(t,e){return t[0]===e[0]&&t[1]===e[1]},hPe=function(t){return` 1272 .block-interactivity-`.concat(t,` {pointer-events: none;} 1273 .allow-interactivity-`).concat(t,` {pointer-events: all;} 1274`)},fPe=0,Id=[];function pPe(t){var e=w.useRef([]),r=w.useRef([0,0]),n=w.useRef(),a=w.useState(fPe++)[0],i=w.useState(VX)[0],o=w.useRef(t);w.useEffect(function(){o.current=t},[t]),w.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var y=z2e([t.lockRef.current],(t.shards||[]).map(eF),!0).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(a))})}}},[t.inert,t.lockRef.current,t.shards]);var l=w.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!o.current.allowPinchZoom;var N=ob(y),S=r.current,j="deltaX"in y?y.deltaX:S[0]-N[0],$="deltaY"in y?y.deltaY:S[1]-N[1],C,_=y.target,O=Math.abs(j)>Math.abs($)?"h":"v";if("touches"in y&&O==="h"&&_.type==="range")return!1;var E=window.getSelection(),P=E&&E.anchorNode,T=P?P===_||P.contains(_):!1;if(T)return!1;var I=QH(O,_);if(!I)return!0;if(I?C=O:(C=O==="v"?"h":"v",I=QH(O,_)),!I)return!1;if(!n.current&&"changedTouches"in y&&(j||$)&&(n.current=C),!C)return!0;var R=n.current||C;return uPe(R,v,y,R==="h"?j:$)},[]),c=w.useCallback(function(y){var v=y;if(!(!Id.length||Id[Id.length-1]!==i)){var N="deltaY"in v?ZH(v):ob(v),S=e.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&dPe(C.delta,N)})[0];if(S&&S.should){v.cancelable&&v.preventDefault();return}
vendor: 4,939 bytes, line 1274
1274if(!S){var j=(o.current.shards||[]).map(eF).filter(Boolean).filter(function(C){return C.contains(v.target)}),$=j.length>0?l(v,j[0]):!o.current.noIsolation;$&&v.cancelable&&v.preventDefault()}}},[]),u=w.useCallback(function(y,v,N,S){var j={name:y,delta:v,target:N,should:S,shadowParent:mPe(N)};e.current.push(j),setTimeout(function(){e.current=e.current.filter(function($){return $!==j})},1)},[]),d=w.useCallback(function(y){r.current=ob(y),n.current=void 0},[]),h=w.useCallback(function(y){u(y.type,ZH(y),y.target,l(y,t.lockRef.current))},[]),m=w.useCallback(function(y){u(y.type,ob(y),y.target,l(y,t.lockRef.current))},[]);w.useEffect(function(){return Id.push(i),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Rd),document.addEventListener("touchmove",c,Rd),document.addEventListener("touchstart",d,Rd),function(){Id=Id.filter(function(y){return y!==i}),document.removeEventListener("wheel",c,Rd),document.removeEventListener("touchmove",c,Rd),document.removeEventListener("touchstart",d,Rd)}},[]);var g=t.removeScrollBar,b=t.inert;return w.createElement(w.Fragment,null,b?w.createElement(i,{styles:hPe(a)}):null,g?w.createElement(nPe,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function mPe(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const gPe=UOe(zX,pPe);var k$=w.forwardRef(function(t,e){return w.createElement(xv,Ii({},t,{ref:e,sideCar:gPe}))});k$.classNames=xv.classNames;var bPe=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Dd=new WeakMap,lb=new WeakMap,cb={},E7=0,GX=function(t){return t&&(t.host||GX(t.parentNode))},xPe=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=GX(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},yPe=function(t,e,r,n){var a=xPe(e,Array.isArray(t)?t:[t]);cb[r]||(cb[r]=new WeakMap);var i=cb[r],o=[],l=new Set,c=new Set(a),u=function(h){!h||l.has(h)||(l.add(h),u(h.parentNode))};a.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(l.has(m))d(m);else try{var g=m.getAttribute(n),b=g!==null&&g!=="false",y=(Dd.get(m)||0)+1,v=(i.get(m)||0)+1;Dd.set(m,y),i.set(m,v),o.push(m),y===1&&b&&lb.set(m,!0),v===1&&m.setAttribute(r,"true"),b||m.setAttribute(n,"true")}catch(N){console.error("aria-hidden: cannot operate on ",m,N)}})};return d(e),l.clear(),E7++,function(){o.forEach(function(h){var m=Dd.get(h)-1,g=i.get(h)-1;Dd.set(h,m),i.set(h,g),m||(lb.has(h)||h.removeAttribute(n),lb.delete(h)),g||h.removeAttribute(r)}),E7--,E7||(Dd=new WeakMap,Dd=new WeakMap,lb=new WeakMap,cb={})}},KX=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),a=bPe(t);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),yPe(n,a,r,"aria-hidden")):function(){return null}},S$="Dialog",[YX,XX]=to(S$),[vPe,ji]=YX(S$),JX=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:o=!0}=t,l=w.useRef(null),c=w.useRef(null),[u=!1,d]=zu({prop:n,defaultProp:a,onChange:i});return s.jsx(vPe,{scope:e,triggerRef:l,contentRef:c,contentId:Lo(),titleId:Lo(),descriptionId:Lo(),open:u,onOpenChange:d,onOpenToggle:w.useCallback(()=>d(h=>!h),[d]),modal:o,children:r})};JX.displayName=S$;var QX="DialogTrigger",ZX=w.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=ji(QX,r),i=Mr(e,a.triggerRef);return s.jsx(cr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":_$(a.open),...n,ref:i,onClick:Ct(t.onClick,a.onOpenToggle)})});ZX.displayName=QX;var C$="DialogPortal",[wPe,eJ]=YX(C$,{forceMount:void 0}),tJ=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:a}=t,i=ji(C$,e);return s.jsx(wPe,{scope:e,forceMount:r,children:w.Children.map(n,o=>s.jsx(wi,{present:r||i.open,children:s.jsx(bv,{asChild:!0,container:a,children:o})}))})};tJ.displayName=C$;var j2="DialogOverlay",rJ=w.forwardRef((t,e)=>{const r=eJ(j2,t.__scopeDialog),{forceMount:n=r.forceMount,...a}=t,i=ji(j2,t.__scopeDialog);return i.modal?s.jsx(wi,{present:n||i.open,children:s.jsx(NPe,{...a,ref:e})}):null});rJ.displayName=j2;var NPe=w.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=ji(j2,r);return s.jsx(k$,{as:jh,allowPinchZoom:!0,shards:[a.contentRef],children:s.jsx(cr.div,{"data-state":_$(a.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),Eu="DialogContent",nJ=w.forwardRef((t,e)=>{const r=eJ(Eu,t.__scopeDialog),{forceMount:n=r.forceMount,...a}=t,i=ji(Eu,t.__scopeDialog);return s.jsx(wi,{present:n||i.open,children:i.modal?s.jsx(jPe,{...a,ref:e}):s.jsx(kPe,{...a,ref:e})})});nJ.displayName=Eu;var jPe=w.forwardRef((t,e)=>{const r=ji(Eu,t.__scopeDialog),n=w.useRef(null),a=Mr(e,r.contentRef,n);return w.useEffect(()=>{const i=n.current;if(i)return KX(i)}
vendor: 4,940 bytes, lines 1274-1278
1274,[]),s.jsx(aJ,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ct(t.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Ct(t.onPointerDownOutside,i=>{const o=i.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&i.preventDefault()}),onFocusOutside:Ct(t.onFocusOutside,i=>i.preventDefault())})}),kPe=w.forwardRef((t,e)=>{const r=ji(Eu,t.__scopeDialog),n=w.useRef(!1),a=w.useRef(!1);return s.jsx(aJ,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=t.onCloseAutoFocus)==null||o.call(t,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:i=>{var c,u;(c=t.onInteractOutside)==null||c.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((u=r.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),aJ=w.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=t,l=ji(Eu,r),c=w.useRef(null),u=Mr(e,c);return HX(),s.jsxs(s.Fragment,{children:[s.jsx(j$,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:i,children:s.jsx(gv,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":_$(l.open),...o,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(CPe,{titleId:l.titleId}),s.jsx(_Pe,{contentRef:c,descriptionId:l.descriptionId})]})]})}),$$="DialogTitle",sJ=w.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=ji($$,r);return s.jsx(cr.h2,{id:a.titleId,...n,ref:e})});sJ.displayName=$$;var iJ="DialogDescription",oJ=w.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=ji(iJ,r);return s.jsx(cr.p,{id:a.descriptionId,...n,ref:e})});oJ.displayName=iJ;var lJ="DialogClose",cJ=w.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=ji(lJ,r);return s.jsx(cr.button,{type:"button",...n,ref:e,onClick:Ct(t.onClick,()=>a.onOpenChange(!1))})});cJ.displayName=lJ;function _$(t){return t?"open":"closed"}var uJ="DialogTitleWarning",[SPe,dJ]=w0e(uJ,{contentName:Eu,titleName:$$,docsSlug:"dialog"}),CPe=({titleId:t})=>{const e=dJ(uJ),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. 1275 1276If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component. 1277 1278For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return w.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},$Pe="DialogDescriptionWarning",_Pe=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${dJ($Pe).contentName}}.`;return w.useEffect(()=>{var i;const a=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&a&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},hJ=JX,APe=ZX,fJ=tJ,pJ=rJ,mJ=nJ,gJ=sJ,bJ=oJ,A$=cJ;function xJ({...t}){return s.jsx(hJ,{"data-slot":"sheet",...t})}function EPe({...t}){return s.jsx(fJ,{"data-slot":"sheet-portal",...t})}function OPe({className:t,...e}){return s.jsx(pJ,{"data-slot":"sheet-overlay",className:Fe("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function yJ({className:t,children:e,side:r="right",...n}){return s.jsxs(EPe,{children:[s.jsx(OPe,{}),s.jsxs(mJ,{"data-slot":"sheet-content",className:Fe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...n,children:[e,s.jsxs(A$,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[s.jsx(cs,{className:"size-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function vJ({className:t,...e}){return s.jsx(gJ,{"data-slot":"sheet-title",className:Fe("text-foreground font-semibold",t),...e})}function wJ({className:t,...e}
vendor: 12,332 bytes, line 1278
1278){return s.jsx(bJ,{"data-slot":"sheet-description",className:Fe("text-muted-foreground text-sm",t),...e})}const PPe=["top","right","bottom","left"],oc=Math.min,Xa=Math.max,k2=Math.round,ub=Math.floor,Wi=t=>({x:t,y:t}),MPe={left:"right",right:"left",bottom:"top",top:"bottom"},TPe={start:"end",end:"start"};function Gj(t,e,r){return Xa(t,oc(e,r))}function Qo(t,e){return typeof t=="function"?t(e):t}function Zo(t){return t.split("-")[0]}function Ef(t){return t.split("-")[1]}function E$(t){return t==="x"?"y":"x"}function O$(t){return t==="y"?"height":"width"}const RPe=new Set(["top","bottom"]);function Fi(t){return RPe.has(Zo(t))?"y":"x"}function P$(t){return E$(Fi(t))}function IPe(t,e,r){r===void 0&&(r=!1);const n=Ef(t),a=P$(t),i=O$(a);let o=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=S2(o)),[o,S2(o)]}function DPe(t){const e=S2(t);return[Kj(t),e,Kj(e)]}function Kj(t){return t.replace(/start|end/g,e=>TPe[e])}const tF=["left","right"],rF=["right","left"],LPe=["top","bottom"],BPe=["bottom","top"];function HPe(t,e,r){switch(t){case"top":case"bottom":return r?e?rF:tF:e?tF:rF;case"left":case"right":return e?LPe:BPe;default:return[]}}function FPe(t,e,r,n){const a=Ef(t);let i=HPe(Zo(t),r==="start",n);return a&&(i=i.map(o=>o+"-"+a),e&&(i=i.concat(i.map(Kj)))),i}function S2(t){return t.replace(/left|right|bottom|top/g,e=>MPe[e])}function zPe(t){return{top:0,right:0,bottom:0,left:0,...t}}function NJ(t){return typeof t!="number"?zPe(t):{top:t,right:t,bottom:t,left:t}}function C2(t){const{x:e,y:r,width:n,height:a}=t;return{width:n,height:a,top:r,left:e,right:e+n,bottom:r+a,x:e,y:r}}function nF(t,e,r){let{reference:n,floating:a}=t;const i=Fi(e),o=P$(e),l=O$(o),c=Zo(e),u=i==="y",d=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,m=n[l]/2-a[l]/2;let g;switch(c){case"top":g={x:d,y:n.y-a.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:h};break;case"left":g={x:n.x-a.width,y:h};break;default:g={x:n.x,y:n.y}}switch(Ef(e)){case"start":g[o]-=m*(r&&u?-1:1);break;case"end":g[o]+=m*(r&&u?-1:1);break}return g}async function VPe(t,e){var r;e===void 0&&(e={});const{x:n,y:a,platform:i,rects:o,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=Qo(e,t),b=NJ(g),v=l[m?h==="floating"?"reference":"floating":h],N=C2(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),S=h==="floating"?{x:n,y:a,width:o.floating.width,height:o.floating.height}:o.reference,j=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),$=await(i.isElement==null?void 0:i.isElement(j))?await(i.getScale==null?void 0:i.getScale(j))||{x:1,y:1}:{x:1,y:1},C=C2(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:S,offsetParent:j,strategy:c}):S);return{top:(N.top-C.top+b.top)/$.y,bottom:(C.bottom-N.bottom+b.bottom)/$.y,left:(N.left-C.left+b.left)/$.x,right:(C.right-N.right+b.right)/$.x}}const UPe=async(t,e,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:h}=nF(u,n,c),m=n,g={},b=0;for(let v=0;v<l.length;v++){var y;const{name:N,fn:S}=l[v],{x:j,y:$,data:C,reset:_}=await S({x:d,y:h,initialPlacement:n,placement:m,strategy:a,middlewareData:g,rects:u,platform:{...o,detectOverflow:(y=o.detectOverflow)!=null?y:VPe},elements:{reference:t,floating:e}});d=j??d,h=$??h,g={...g,[N]:{...g[N],...C}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(u=_.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:a}):_.rects),{x:d,y:h}=nF(u,m,c)),v=-1)}return{x:d,y:h,placement:m,strategy:a,middlewareData:g}},qPe=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:a,rects:i,platform:o,elements:l,middlewareData:c}=e,{element:u,padding:d=0}=Qo(t,e)||{};if(u==null)return{};const h=NJ(d),m={x:r,y:n},g=P$(a),b=O$(g),y=await o.getDimensions(u),v=g==="y",N=v?"top":"left",S=v?"bottom":"right",j=v?"clientHeight":"clientWidth",$=i.reference[b]+i.reference[g]-m[g]-i.floating[b],C=m[g]-i.reference[g],_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let O=_?_[j]:0;(!O||!await(o.isElement==null?void 0:o.isElement(_)))&&(O=l.floating[j]||i.floating[b]);const E=$/2-C/2,P=O/2-y[b]/2-1,T=oc(h[N],P),I=oc(h[S],P),R=T,F=O-y[b]-I,L=O/2-y[b]/2+E,q=Gj(R,L,F),G=!c.arrow&&Ef(a)!=null&&L!==q&&i.reference[b]/2-(L<R?T:I)-y[b]/2<0,B=G?L<R?L-R:L-F:0;return{[g]:m[g]+B,data:{[g]:q,centerOffset:L-q-B,...G&&{alignmentOffset:B}},reset:G}}}),WPe=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:a,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...v}=Qo(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const N=Zo(a),S=Fi(l),j=Zo(l)===l,$=await(c.isRTL==null?void 0:c.isRTL(u.floating)),C=m||(j||!y?[S2(l)]:DPe(l)),_=b!=="none";!m&&_&&C.push(...FPe(l,y,b,$));const O=[l,...C],E=await c.detectOverflow(e,v),P=[];let T=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&P.push(E[N]),h){const L=IPe(a,o,$);P.push(E[L[0]],E[L[1]])}if(T=[...T,{placement:a,overflows:P}],!P.every(L=>L<=0)){var I,R;const L=(((I=i.flip)==null?void 0:I.index)||0)+1,q=O[L];if(q&&(!(h==="alignment"?S!==Fi(q):!1)||T.every(H=>Fi(H.placement)===S?H.overflows[0]>0:!0)))return{data:{index:L,overflows:T},reset:{placement:q}};let G=(R=T.filter(B=>B.overflows[0]<=0).sort((B,H)=>B.overflows[1]-H.overflows[1])[0])==null?void 0:R.placement;if(!G)switch(g){case"bestFit":{var F;const B=(F=T.filter(H=>{if(_){const K=Fi(H.placement);return K===S||K==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(K=>K>0).reduce((K,Z)=>K+Z,0)]).sort((H,K)=>H[1]-K[1])[0])==null?void 0:F[0];B&&(G=B);break}case"initialPlacement":G=l;break}if(a!==G)return{reset:{placement:G}}}return{}}}};function aF(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function sF(t){return PPe.some(e=>t[e]>=0)}const GPe=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r,platform:n}=e,{strategy:a="referenceHidden",...i}=Qo(t,e);switch(a){case"referenceHidden":{const o=await n.detectOverflow(e,{...i,elementContext:"reference"}),l=aF(o,r.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:sF(l)}}}case"escaped":{const o=await n.detectOverflow(e,{...i,altBoundary:!0}),l=aF(o,r.floating);return{data:{escapedOffsets:l,escaped:sF(l)}}}default:return{}}}}},jJ=new Set(["left","top"]);async function KPe(t,e){const{placement:r,platform:n,elements:a}=t,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),o=Zo(r),l=Ef(r),c=Fi(r)==="y",u=jJ.has(o)?-1:1,d=i&&c?-1:1,h=Qo(e,t);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof b=="number"&&(g=l==="end"?b*-1:b),c?{x:g*d,y:m*u}:{x:m*u,y:g*d}}const YPe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:a,y:i,placement:o,middlewareData:l}=e,c=await KPe(e,t);return o===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:o}}}}},XPe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:a,platform:i}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:c={fn:N=>{let{x:S,y:j}=N;return{x:S,y:j}}},...u}=Qo(t,e),d={x:r,y:n},h=await i.detectOverflow(e,u),m=Fi(Zo(a)),g=E$(m);let b=d[g],y=d[m];if(o){const N=g==="y"?"top":"left",S=g==="y"?"bottom":"right",j=b+h[N],$=b-h[S];b=Gj(j,b,$)}if(l){const N=m==="y"?"top":"left",S=m==="y"?"bottom":"right",j=y+h[N],$=y-h[S];y=Gj(j,y,$)}const v=c.fn({...e,[g]:b,[m]:y});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[g]:o,[m]:l}}}}}},JPe=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:a,rects:i,middlewareData:o}=e,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Qo(t,e),d={x:r,y:n},h=Fi(a),m=E$(h);let g=d[m],b=d[h];const y=Qo(l,e),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const j=m==="y"?"height":"width",$=i.reference[m]-i.floating[j]+v.mainAxis,C=i.reference[m]+i.reference[j]-v.mainAxis;g<$?g=$:g>C&&(g=C)}if(u){var N,S;const j=m==="y"?"width":"height",$=jJ.has(Zo(a)),C=i.reference[h]-i.floating[j]+($&&((N=o.offset)==null?void 0:N[h])||0)+($?0:v.crossAxis),_=i.reference[h]+i.reference[j]+($?0:((S=o.offset)==null?void 0:S[h])||0)-($?v.crossAxis:0);b<C?b=C:b>_&&(b=_)}return{[m]:g,[h]:b}}}},QPe=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:a,rects:i,platform:o,elements:l}=e,{apply:c=()=>{},...u}=Qo(t,e),d=await o.detectOverflow(e,u),h=Zo(a),m=Ef(a),g=Fi(a)==="y",{width:b,height:y}=i.floating;let v,N;h==="top"||h==="bottom"?(v=h,N=m===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(N=h,v=m==="end"?"top":"bottom");const S=y-d.top-d.bottom,j=b-d.left-d.right,$=oc(y-d[v],S),C=oc(b-d[N],j),_=!e.middlewareData.shift;let O=$,E=C;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(E=j),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(O=S),_&&!m){const T=Xa(d.left,0),I=Xa(d.right,0),R=Xa(d.top,0),F=Xa(d.bottom,0);g?E=b-2*(T!==0||I!==0?T+I:Xa(d.left,d.right)):O=y-2*(R!==0||F!==0?R+F:Xa(d.top,d.bottom))}await c({...e,availableWidth:E,availableHeight:O});const P=await o.getDimensions(l.floating);return b!==P.width||y!==P.height?{reset:{rects:!0}}:{}}}};function yv(){return typeof window<"u"}function Of(t){return kJ(t)?(t.nodeName||"").toLowerCase():"#document"}function rs(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function no(t){var e;return(e=(kJ(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function kJ(t){return yv()?t instanceof Node||t instanceof rs(t).Node:!1}function bi(t){return yv()?t instanceof Element||t instanceof rs(t).Element:!1}function Qi(t){return yv()?t instanceof HTMLElement||t instanceof rs(t).HTMLElement:!1}function iF(t){return!yv()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof rs(t).ShadowRoot}const ZPe=new Set(["inline","contents"]);function i1(t){const{overflow:e,overflowX:r,overflowY:n,display:a}=xi(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!ZPe.has(a)}const eMe=new Set(["table","td","th"]);function tMe(t){return eMe.has(Of(t))}const rMe=[":popover-open",":modal"];function vv(t){return rMe.some(e=>{try{return t.matches(e)}catch{return!1}})}const nMe=["transform","translate","scale","rotate","perspective"],aMe=["transform","translate","scale","rotate","perspective","filter"],sMe=["paint","layout","strict","content"];function M$(t){const e=T$(),r=bi(t)?xi(t):t;return nMe.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||aMe.some(n=>(r.willChange||"").includes(n))||sMe.some(n=>(r.contain||"").includes(n))}function iMe(t){let e=lc(t);for(;Qi(e)&&!Zh(e);){if(M$(e))return e;if(vv(e))return null;e=lc(e)}return null}function T$(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const oMe=new Set(["html","body","#document"]);function Zh(t){return oMe.has(Of(t))}function xi(t){return rs(t).getComputedStyle(t)}function wv(t){return bi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function lc(t){if(Of(t)==="html")return t;const e=t.assignedSlot||t.parentNode||iF(t)&&t.host||no(t);return iF(e)?e.host:e}function SJ(t){const e=lc(t);return Zh(e)?t.ownerDocument?t.ownerDocument.body:t.body:Qi(e)&&i1(e)?e:SJ(e)}function v0(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const a=SJ(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),o=rs(a);if(i){const l=Yj(o);
vendor: 8,977 bytes, line 1278
1278return e.concat(o,o.visualViewport||[],i1(a)?a:[],l&&r?v0(l):[])}return e.concat(a,v0(a,[],r))}function Yj(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function CJ(t){const e=xi(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const a=Qi(t),i=a?t.offsetWidth:r,o=a?t.offsetHeight:n,l=k2(r)!==i||k2(n)!==o;return l&&(r=i,n=o),{width:r,height:n,$:l}}function R$(t){return bi(t)?t:t.contextElement}function bh(t){const e=R$(t);if(!Qi(e))return Wi(1);const r=e.getBoundingClientRect(),{width:n,height:a,$:i}=CJ(e);let o=(i?k2(r.width):r.width)/n,l=(i?k2(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const lMe=Wi(0);function $J(t){const e=rs(t);return!T$()||!e.visualViewport?lMe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function cMe(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==rs(t)?!1:e}function Ou(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const a=t.getBoundingClientRect(),i=R$(t);let o=Wi(1);e&&(n?bi(n)&&(o=bh(n)):o=bh(t));const l=cMe(i,r,n)?$J(i):Wi(0);let c=(a.left+l.x)/o.x,u=(a.top+l.y)/o.y,d=a.width/o.x,h=a.height/o.y;if(i){const m=rs(i),g=n&&bi(n)?rs(n):n;let b=m,y=Yj(b);for(;y&&n&&g!==b;){const v=bh(y),N=y.getBoundingClientRect(),S=xi(y),j=N.left+(y.clientLeft+parseFloat(S.paddingLeft))*v.x,$=N.top+(y.clientTop+parseFloat(S.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,h*=v.y,c+=j,u+=$,b=rs(y),y=Yj(b)}}return C2({width:d,height:h,x:c,y:u})}function Nv(t,e){const r=wv(t).scrollLeft;return e?e.left+r:Ou(no(t)).left+r}function _J(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-Nv(t,r),a=r.top+e.scrollTop;return{x:n,y:a}}function uMe(t){let{elements:e,rect:r,offsetParent:n,strategy:a}=t;const i=a==="fixed",o=no(n),l=e?vv(e.floating):!1;if(n===o||l&&i)return r;let c={scrollLeft:0,scrollTop:0},u=Wi(1);const d=Wi(0),h=Qi(n);if((h||!h&&!i)&&((Of(n)!=="body"||i1(o))&&(c=wv(n)),Qi(n))){const g=Ou(n);u=bh(n),d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}const m=o&&!h&&!i?_J(o,c):Wi(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x+m.x,y:r.y*u.y-c.scrollTop*u.y+d.y+m.y}}function dMe(t){return Array.from(t.getClientRects())}function hMe(t){const e=no(t),r=wv(t),n=t.ownerDocument.body,a=Xa(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Xa(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Nv(t);const l=-r.scrollTop;return xi(n).direction==="rtl"&&(o+=Xa(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:l}}const oF=25;function fMe(t,e){const r=rs(t),n=no(t),a=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,l=0,c=0;if(a){i=a.width,o=a.height;const d=T$();(!d||d&&e==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}const u=Nv(n);if(u<=0){const d=n.ownerDocument,h=d.body,m=getComputedStyle(h),g=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(n.clientWidth-h.clientWidth-g);b<=oF&&(i-=b)}else u<=oF&&(i+=u);return{width:i,height:o,x:l,y:c}}const pMe=new Set(["absolute","fixed"]);function mMe(t,e){const r=Ou(t,!0,e==="fixed"),n=r.top+t.clientTop,a=r.left+t.clientLeft,i=Qi(t)?bh(t):Wi(1),o=t.clientWidth*i.x,l=t.clientHeight*i.y,c=a*i.x,u=n*i.y;return{width:o,height:l,x:c,y:u}}function lF(t,e,r){let n;if(e==="viewport")n=fMe(t,r);else if(e==="document")n=hMe(no(t));else if(bi(e))n=mMe(e,r);else{const a=$J(t);n={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return C2(n)}function AJ(t,e){const r=lc(t);return r===e||!bi(r)||Zh(r)?!1:xi(r).position==="fixed"||AJ(r,e)}function gMe(t,e){const r=e.get(t);if(r)return r;let n=v0(t,[],!1).filter(l=>bi(l)&&Of(l)!=="body"),a=null;const i=xi(t).position==="fixed";let o=i?lc(t):t;for(;bi(o)&&!Zh(o);){const l=xi(o),c=M$(o);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&!!a&&pMe.has(a.position)||i1(o)&&!c&&AJ(t,o))?n=n.filter(d=>d!==o):a=l,o=lc(o)}return e.set(t,n),n}function bMe(t){let{element:e,boundary:r,rootBoundary:n,strategy:a}=t;const o=[...r==="clippingAncestors"?vv(e)?[]:gMe(e,this._c):[].concat(r),n],l=o[0],c=o.reduce((u,d)=>{const h=lF(e,d,a);return u.top=Xa(h.top,u.top),u.right=oc(h.right,u.right),u.bottom=oc(h.bottom,u.bottom),u.left=Xa(h.left,u.left),u},lF(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function xMe(t){const{width:e,height:r}=CJ(t);return{width:e,height:r}}function yMe(t,e,r){const n=Qi(e),a=no(e),i=r==="fixed",o=Ou(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Wi(0);function u(){c.x=Nv(a)}if(n||!n&&!i)if((Of(e)!=="body"||i1(a))&&(l=wv(e)),n){const g=Ou(e,!0,i,e);c.x=g.x+e.clientLeft,c.y=g.y+e.clientTop}else a&&u();i&&!n&&a&&u();const d=a&&!n&&!i?_J(a,l):Wi(0),h=o.left+l.scrollLeft-c.x-d.x,m=o.top+l.scrollTop-c.y-d.y;return{x:h,y:m,width:o.width,height:o.height}}function O7(t){return xi(t).position==="static"}function cF(t,e){if(!Qi(t)||xi(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return no(t)===r&&(r=r.ownerDocument.body),r}function EJ(t,e){const r=rs(t);if(vv(t))return r;if(!Qi(t)){let a=lc(t);for(;a&&!Zh(a);){if(bi(a)&&!O7(a))return a;a=lc(a)}return r}let n=cF(t,e);for(;n&&tMe(n)&&O7(n);)n=cF(n,e);return n&&Zh(n)&&O7(n)&&!M$(n)?r:n||iMe(t)||r}const vMe=async function(t){const e=this.getOffsetParent||EJ,r=this.getDimensions,n=await r(t.floating);return{reference:yMe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function wMe(t){return xi(t).direction==="rtl"}const NMe={convertOffsetParentRelativeRectToViewportRelativeRect:uMe,getDocumentElement:no,getClippingRect:bMe,getOffsetParent:EJ,getElementRects:vMe,getClientRects:dMe,getDimensions:xMe,getScale:bh,isElement:bi,isRTL:wMe};function OJ(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function jMe(t,e){let r=null,n;const a=no(t);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=t.getBoundingClientRect(),{left:d,top:h,width:m,height:g}=u;if(l||e(),!m||!g)return;const b=ub(h),y=ub(a.clientWidth-(d+m)),v=ub(a.clientHeight-(h+g)),N=ub(d),j={rootMargin:-b+"px "+-y+"px "+-v+"px "+-N+"px",threshold:Xa(0,oc(1,c))||1};let $=!0;function C(_){const O=_[0].intersectionRatio;if(O!==c){if(!$)return o();O?o(!1,O):n=setTimeout(()=>{o(!1,1e-7)},1e3)}O===1&&!OJ(u,t.getBoundingClientRect())&&o(),$=!1}try{r=new IntersectionObserver(C,{...j,root:a.ownerDocument})}catch{r=new IntersectionObserver(C,j)}r.observe(t)}return o(!0),i}function kMe(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=R$(t),d=a||i?[...u?v0(u):[],...v0(e)]:[];d.forEach(N=>{a&&N.addEventListener("scroll",r,{passive:!0}),i&&N.addEventListener("resize",r)});const h=u&&l?jMe(u,r):null;let m=-1,g=null;o&&(g=new ResizeObserver(N=>{let[S]=N;S&&S.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var j;(j=g)==null||j.observe(e)})),r()}),u&&!c&&g.observe(u),g.observe(e));let b,y=c?Ou(t):null;c&&v();function v(){const N=Ou(t);y&&!OJ(y,N)&&r(),y=N,b=requestAnimationFrame(v)}return r(),()=>{var N;d.forEach(S=>{a&&S.removeEventListener("scroll",r),i&&S.removeEventListener("resize",r)}),h==null||h(),(N=g)==null||N.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const SMe=YPe,CMe=XPe,$Me=WPe,_Me=QPe,AMe=GPe,uF=qPe,EMe=JPe,OMe=(t,e,r)=>{const n=new Map,a={platform:NMe,...r},i={...a.platform,_c:n};return UPe(t,e,{...a,platform:i})};var PMe=typeof document<"u",MMe=function(){},Jb=PMe?w.useLayoutEffect:MMe;function $2(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,a;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!$2(t[n],e[n]))return!1;return!0}if(a=Object.keys(t),r=a.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){const i=a[n];if(!(i==="_owner"&&t.$$typeof)&&!$2(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function PJ(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function dF(t,e){const r=PJ(t);return Math.round(e*r)/r}function P7(t){const e=w.useRef(t);return Jb(()=>{e.current=t}),e}function TMe(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[d,h]=w.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[m,g]=w.useState(n);$2(m,n)||g(n);const[b,y]=w.useState(null),[v,N]=w.useState(null),S=w.useCallback(H=>{H!==_.current&&(_.current=H,y(H))},[]),j=w.useCallback(H=>{H!==O.current&&(O.current=H,N(H))},[]),$=i||b,C=o||v,_=w.useRef(null),O=w.useRef(null),E=w.useRef(d),P=c!=null,T=P7(c),I=P7(a),R=P7(u),F=w.useCallback(()=>
vendor: 1,947 bytes, line 1278
1278{if(!_.current||!O.current)return;const H={placement:e,strategy:r,middleware:m};I.current&&(H.platform=I.current),OMe(_.current,O.current,H).then(K=>{const Z={...K,isPositioned:R.current!==!1};L.current&&!$2(E.current,Z)&&(E.current=Z,nC.flushSync(()=>{h(Z)}))})},[m,e,r,I,R]);Jb(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,h(H=>({...H,isPositioned:!1})))},[u]);const L=w.useRef(!1);Jb(()=>(L.current=!0,()=>{L.current=!1}),[]),Jb(()=>{if($&&(_.current=$),C&&(O.current=C),$&&C){if(T.current)return T.current($,C,F);F()}},[$,C,F,T,P]);const q=w.useMemo(()=>({reference:_,floating:O,setReference:S,setFloating:j}),[S,j]),G=w.useMemo(()=>({reference:$,floating:C}),[$,C]),B=w.useMemo(()=>{const H={position:r,left:0,top:0};if(!G.floating)return H;const K=dF(G.floating,d.x),Z=dF(G.floating,d.y);return l?{...H,transform:"translate("+K+"px, "+Z+"px)",...PJ(G.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:K,top:Z}},[r,l,G.floating,d.x,d.y]);return w.useMemo(()=>({...d,update:F,refs:q,elements:G,floatingStyles:B}),[d,F,q,G,B])}const RMe=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:a}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?uF({element:n.current,padding:a}).fn(r):{}:n?uF({element:n,padding:a}).fn(r):{}}}},IMe=(t,e)=>({...SMe(t),options:[t,e]}),DMe=(t,e)=>({...CMe(t),options:[t,e]}),LMe=(t,e)=>({...EMe(t),options:[t,e]}),BMe=(t,e)=>({...$Me(t),options:[t,e]}),HMe=(t,e)=>({..._Me(t),options:[t,e]}),FMe=(t,e)=>({...AMe(t),options:[t,e]}),zMe=(t,e)=>({...RMe(t),options:[t,e]});var VMe="Arrow",MJ=w.forwardRef((t,e)=>{const{children:r,width:n=10,height:a=5,...i}=t;return s.jsx(cr.svg,{...i,ref:e,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});MJ.displayName=VMe;var UMe=MJ;function qMe(t){const[e,r]=w.useState(void 0);return ic(()=>
vendor: 25,675 bytes, line 1278
1278{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,l=u.blockSize}else o=t.offsetWidth,l=t.offsetHeight;r({width:o,height:l})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var I$="Popper",[TJ,jv]=to(I$),[WMe,RJ]=TJ(I$),IJ=t=>{const{__scopePopper:e,children:r}=t,[n,a]=w.useState(null);return s.jsx(WMe,{scope:e,anchor:n,onAnchorChange:a,children:r})};IJ.displayName=I$;var DJ="PopperAnchor",LJ=w.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...a}=t,i=RJ(DJ,r),o=w.useRef(null),l=Mr(e,o);return w.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:s.jsx(cr.div,{...a,ref:l})});LJ.displayName=DJ;var D$="PopperContent",[GMe,KMe]=TJ(D$),BJ=w.forwardRef((t,e)=>{var Oe,Ce,le,we,ke,oe;const{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:b,...y}=t,v=RJ(D$,r),[N,S]=w.useState(null),j=Mr(e,qe=>S(qe)),[$,C]=w.useState(null),_=qMe($),O=(_==null?void 0:_.width)??0,E=(_==null?void 0:_.height)??0,P=n+(i!=="center"?"-"+i:""),T=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},I=Array.isArray(u)?u:[u],R=I.length>0,F={padding:T,boundary:I.filter(XMe),altBoundary:R},{refs:L,floatingStyles:q,placement:G,isPositioned:B,middlewareData:H}=TMe({strategy:"fixed",placement:P,whileElementsMounted:(...qe)=>kMe(...qe,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[IMe({mainAxis:a+E,alignmentAxis:o}),c&&DMe({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?LMe():void 0,...F}),c&&BMe({...F}),HMe({...F,apply:({elements:qe,rects:Le,availableWidth:Ke,availableHeight:ne})=>{const{width:Se,height:$e}=Le.reference,Ae=qe.floating.style;Ae.setProperty("--radix-popper-available-width",`${Ke}px`),Ae.setProperty("--radix-popper-available-height",`${ne}px`),Ae.setProperty("--radix-popper-anchor-width",`${Se}px`),Ae.setProperty("--radix-popper-anchor-height",`${$e}px`)}}),$&&zMe({element:$,padding:l}),JMe({arrowWidth:O,arrowHeight:E}),m&&FMe({strategy:"referenceHidden",...F})]}),[K,Z]=zJ(G),V=gi(b);ic(()=>{B&&(V==null||V())},[B,V]);const U=(Oe=H.arrow)==null?void 0:Oe.x,Y=(Ce=H.arrow)==null?void 0:Ce.y,de=((le=H.arrow)==null?void 0:le.centerOffset)!==0,[ge,fe]=w.useState();return ic(()=>{N&&fe(window.getComputedStyle(N).zIndex)},[N]),s.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:B?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(we=H.transformOrigin)==null?void 0:we.x,(ke=H.transformOrigin)==null?void 0:ke.y].join(" "),...((oe=H.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:s.jsx(GMe,{scope:r,placedSide:K,onArrowChange:C,arrowX:U,arrowY:Y,shouldHideArrow:de,children:s.jsx(cr.div,{"data-side":K,"data-align":Z,...y,ref:j,style:{...y.style,animation:B?void 0:"none"}})})})});BJ.displayName=D$;var HJ="PopperArrow",YMe={top:"bottom",right:"left",bottom:"top",left:"right"},FJ=w.forwardRef(function(e,r){const{__scopePopper:n,...a}=e,i=KMe(HJ,n),o=YMe[i.placedSide];return s.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:s.jsx(UMe,{...a,ref:r,style:{...a.style,display:"block"}})})});FJ.displayName=HJ;function XMe(t){return t!==null}var JMe=t=>({name:"transformOrigin",options:t,fn(e){var v,N,S;const{placement:r,rects:n,middlewareData:a}=e,o=((v=a.arrow)==null?void 0:v.centerOffset)!==0,l=o?0:t.arrowWidth,c=o?0:t.arrowHeight,[u,d]=zJ(r),h={start:"0%",center:"50%",end:"100%"}[d],m=(((N=a.arrow)==null?void 0:N.x)??0)+l/2,g=(((S=a.arrow)==null?void 0:S.y)??0)+c/2;let b="",y="";return u==="bottom"?(b=o?h:`${m}px`,y=`${-c}px`):u==="top"?(b=o?h:`${m}px`,y=`${n.floating.height+c}px`):u==="right"?(b=`${-c}px`,y=o?h:`${g}px`):u==="left"&&(b=`${n.floating.width+c}px`,y=o?h:`${g}px`),{data:{x:b,y}}}});function zJ(t){const[e,r="center"]=t.split("-");return[e,r]}var VJ=IJ,UJ=LJ,qJ=BJ,WJ=FJ,M7="rovingFocusGroup.onEntryFocus",QMe={bubbles:!1,cancelable:!0},kv="RovingFocusGroup",[Xj,GJ,ZMe]=rC(kv),[eTe,KJ]=to(kv,[ZMe]),[tTe,rTe]=eTe(kv),YJ=w.forwardRef((t,e)=>s.jsx(Xj.Provider,{scope:t.__scopeRovingFocusGroup,children:s.jsx(Xj.Slot,{scope:t.__scopeRovingFocusGroup,children:s.jsx(nTe,{...t,ref:e})})}));YJ.displayName=kv;var nTe=w.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...h}=t,m=w.useRef(null),g=Mr(e,m),b=cC(i),[y=null,v]=zu({prop:o,defaultProp:l,onChange:c}),[N,S]=w.useState(!1),j=gi(u),$=GJ(r),C=w.useRef(!1),[_,O]=w.useState(0);return w.useEffect(()=>{const E=m.current;if(E)return E.addEventListener(M7,j),()=>E.removeEventListener(M7,j)},[j]),s.jsx(tTe,{scope:r,orientation:n,dir:b,loop:a,currentTabStopId:y,onItemFocus:w.useCallback(E=>v(E),[v]),onItemShiftTab:w.useCallback(()=>S(!0),[]),onFocusableItemAdd:w.useCallback(()=>O(E=>E+1),[]),onFocusableItemRemove:w.useCallback(()=>O(E=>E-1),[]),children:s.jsx(cr.div,{tabIndex:N||_===0?-1:0,"data-orientation":n,...h,ref:g,style:{outline:"none",...t.style},onMouseDown:Ct(t.onMouseDown,()=>{C.current=!0}),onFocus:Ct(t.onFocus,E=>{const P=!C.current;if(E.target===E.currentTarget&&P&&!N){const T=new CustomEvent(M7,QMe);if(E.currentTarget.dispatchEvent(T),!T.defaultPrevented){const I=$().filter(G=>G.focusable),R=I.find(G=>G.active),F=I.find(G=>G.id===y),q=[R,F,...I].filter(Boolean).map(G=>G.ref.current);QJ(q,d)}}C.current=!1}),onBlur:Ct(t.onBlur,()=>S(!1))})})}),XJ="RovingFocusGroupItem",JJ=w.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:i,...o}=t,l=Lo(),c=i||l,u=rTe(XJ,r),d=u.currentTabStopId===c,h=GJ(r),{onFocusableItemAdd:m,onFocusableItemRemove:g}=u;return w.useEffect(()=>{if(n)return m(),()=>g()},[n,m,g]),s.jsx(Xj.ItemSlot,{scope:r,id:c,focusable:n,active:a,children:s.jsx(cr.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...o,ref:e,onMouseDown:Ct(t.onMouseDown,b=>{n?u.onItemFocus(c):b.preventDefault()}),onFocus:Ct(t.onFocus,()=>u.onItemFocus(c)),onKeyDown:Ct(t.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=iTe(b,u.orientation,u.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let N=h().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")N.reverse();else if(y==="prev"||y==="next"){y==="prev"&&N.reverse();const S=N.indexOf(b.currentTarget);N=u.loop?oTe(N,S+1):N.slice(S+1)}setTimeout(()=>QJ(N))}})})})});JJ.displayName=XJ;var aTe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function sTe(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function iTe(t,e,r){const n=sTe(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return aTe[n]}function QJ(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function oTe(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var lTe=YJ,cTe=JJ,Jj=["Enter"," "],uTe=["ArrowDown","PageUp","Home"],ZJ=["ArrowUp","PageDown","End"],dTe=[...uTe,...ZJ],hTe={ltr:[...Jj,"ArrowRight"],rtl:[...Jj,"ArrowLeft"]},fTe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},o1="Menu",[w0,pTe,mTe]=rC(o1),[Ku,eQ]=to(o1,[mTe,jv,KJ]),Sv=jv(),tQ=KJ(),[gTe,Yu]=Ku(o1),[bTe,l1]=Ku(o1),rQ=t=>{const{__scopeMenu:e,open:r=!1,children:n,dir:a,onOpenChange:i,modal:o=!0}=t,l=Sv(e),[c,u]=w.useState(null),d=w.useRef(!1),h=gi(i),m=cC(a);return w.useEffect(()=>{const g=()=>{d.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>d.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),s.jsx(VJ,{...l,children:s.jsx(gTe,{scope:e,open:r,onOpenChange:h,content:c,onContentChange:u,children:s.jsx(bTe,{scope:e,onClose:w.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:d,dir:m,modal:o,children:n})})})};rQ.displayName=o1;var xTe="MenuAnchor",L$=w.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,a=Sv(r);return s.jsx(UJ,{...a,...n,ref:e})});L$.displayName=xTe;var B$="MenuPortal",[yTe,nQ]=Ku(B$,{forceMount:void 0}),aQ=t=>{const{__scopeMenu:e,forceMount:r,children:n,container:a}=t,i=Yu(B$,e);return s.jsx(yTe,{scope:e,forceMount:r,children:s.jsx(wi,{present:r||i.open,children:s.jsx(bv,{asChild:!0,container:a,children:n})})})};aQ.displayName=B$;var Ts="MenuContent",[vTe,H$]=Ku(Ts),sQ=w.forwardRef((t,e)=>{const r=nQ(Ts,t.__scopeMenu),{forceMount:n=r.forceMount,...a}=t,i=Yu(Ts,t.__scopeMenu),o=l1(Ts,t.__scopeMenu);return s.jsx(w0.Provider,{scope:t.__scopeMenu,children:s.jsx(wi,{present:n||i.open,children:s.jsx(w0.Slot,{scope:t.__scopeMenu,children:o.modal?s.jsx(wTe,{...a,ref:e}):s.jsx(NTe,{...a,ref:e})})})})}),wTe=w.forwardRef((t,e)=>{const r=Yu(Ts,t.__scopeMenu),n=w.useRef(null),a=Mr(e,n);return w.useEffect(()=>{const i=n.current;if(i)return KX(i)},[]),s.jsx(F$,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Ct(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),NTe=w.forwardRef((t,e)=>{const r=Yu(Ts,t.__scopeMenu);return s.jsx(F$,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),F$=w.forwardRef((t,e)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:m,onDismiss:g,disableOutsideScroll:b,...y}=t,v=Yu(Ts,r),N=l1(Ts,r),S=Sv(r),j=tQ(r),$=pTe(r),[C,_]=w.useState(null),O=w.useRef(null),E=Mr(e,O,v.onContentChange),P=w.useRef(0),T=w.useRef(""),I=w.useRef(0),R=w.useRef(null),F=w.useRef("right"),L=w.useRef(0),q=b?k$:w.Fragment,G=b?{as:jh,allowPinchZoom:!0}:void 0,B=K=>{var Oe,Ce;const Z=T.current+K,V=$().filter(le=>!le.disabled),U=document.activeElement,Y=(Oe=V.find(le=>le.ref.current===U))==null?void 0:Oe.textValue,de=V.map(le=>le.textValue),ge=TTe(de,Z,Y),fe=(Ce=V.find(le=>le.textValue===ge))==null?void 0:Ce.ref.current;(function le(we){T.current=we,window.clearTimeout(P.current),we!==""&&(P.current=window.setTimeout(()=>le(""),1e3))})(Z),fe&&setTimeout(()=>fe.focus())};w.useEffect(()=>()=>window.clearTimeout(P.current),[]),HX();const H=w.useCallback(K=>{var V,U;return F.current===((V=R.current)==null?void 0:V.side)&&ITe(K,(U=R.current)==null?void 0:U.area)},[]);return s.jsx(vTe,{scope:r,searchRef:T,onItemEnter:w.useCallback(K=>{H(K)&&K.preventDefault()},[H]),onItemLeave:w.useCallback(K=>{var Z;H(K)||((Z=O.current)==null||Z.focus(),_(null))},[H]),onTriggerLeave:w.useCallback(K=>{H(K)&&K.preventDefault()},[H]),pointerGraceTimerRef:I,onPointerGraceIntentChange:w.useCallback(K=>{R.current=K},[]),children:s.jsx(q,{...G,children:s.jsx(j$,{asChild:!0,trapped:a,onMountAutoFocus:Ct(i,K=>{var Z;K.preventDefault(),(Z=O.current)==null||Z.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:s.jsx(gv,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:m,onDismiss:g,children:s.jsx(lTe,{asChild:!0,...j,dir:N.dir,orientation:"vertical",loop:n,currentTabStopId:C,onCurrentTabStopIdChange:_,onEntryFocus:Ct(c,K=>{N.isUsingKeyboardRef.current||K.preventDefault()}),preventScrollOnEntryFocus:!0,children:s.jsx(qJ,{role:"menu","aria-orientation":"vertical","data-state":wQ(v.open),"data-radix-menu-content":"",dir:N.dir,...S,...y,ref:E,style:{outline:"none",...y.style},onKeyDown:Ct(y.onKeyDown,K=>{const V=K.target.closest("[data-radix-menu-content]")===K.currentTarget,U=K.ctrlKey||K.altKey||K.metaKey,Y=K.key.length===1;V&&(K.key==="Tab"&&K.preventDefault(),!U&&Y&&B(K.key));const de=O.current;if(K.target!==de||!dTe.includes(K.key))return;K.preventDefault();const fe=$().filter(Oe=>!Oe.disabled).map(Oe=>Oe.ref.current);ZJ.includes(K.key)&&fe.reverse(),PTe(fe)}),onBlur:Ct(t.onBlur,K=>{K.currentTarget.contains(K.target)||(window.clearTimeout(P.current),T.current="")}),onPointerMove:Ct(t.onPointerMove,N0(K=>{const Z=K.target,V=L.current!==K.clientX;if(K.currentTarget.contains(Z)&&V){const U=K.clientX>L.current?"right":"left";F.current=U,L.current=K.clientX}}))})})})})})})});sQ.displayName=Ts;var jTe="MenuGroup",z$=w.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return s.jsx(cr.div,{role:"group",...n,ref:e})});z$.displayName=jTe;var kTe="MenuLabel",iQ=w.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return s.jsx(cr.div,{...n,ref:e})});iQ.displayName=kTe;var _2="MenuItem",hF="menu.itemSelect",Cv=w.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...a}=t,i=w.useRef(null),o=l1(_2,t.__scopeMenu),l=H$(_2,t.__scopeMenu),c=Mr(e,i),u=w.useRef(!1),d=()=>{const h=i.current;if(!r&&h){const m=new CustomEvent(hF,{bubbles:!0,cancelable:!0});h.addEventListener(hF,g=>n==null?void 0:n(g),{once:!0}),jW(h,m),m.defaultPrevented?u.current=!1:o.onClose()}};return s.jsx(oQ,{...a,ref:c,disabled:r,onClick:Ct(t.onClick,d),onPointerDown:h=>{var m;(m=t.onPointerDown)==null||m.call(t,h),u.current=!0},onPointerUp:Ct(t.onPointerUp,h=>{var m;u.current||(m=h.currentTarget)==null||m.click()}),onKeyDown:Ct(t.onKeyDown,h=>{const m=l.searchRef.current!=="";r||m&&h.key===" "||Jj.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});Cv.displayName=_2;var oQ=w.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:a,...i}=t,o=H$(_2,r),l=tQ(r),c=w.useRef(null),u=Mr(e,c),[d,h]=w.useState(!1),[m,g]=w.useState("");return w.useEffect(()=>{const b=c.current;b&&g((b.textContent??"").trim())},[i.children]),s.jsx(w0.ItemSlot,{scope:r,disabled:n,textValue:a??m,children:s.jsx(cTe,{asChild:!0,...l,focusable:!n,children:s.jsx(cr.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:u,onPointerMove:Ct(t.onPointerMove,N0(b=>{n?o.onItemLeave(b):(o.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ct(t.onPointerLeave,N0(b=>o.onItemLeave(b))),onFocus:Ct(t.onFocus,()=>h(!0)),onBlur:Ct(t.onBlur,()=>h(!1))})})})}),STe="MenuCheckboxItem",lQ=w.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...a}=t;return s.jsx(fQ,{scope:t.__scopeMenu,checked:r,children:s.jsx(Cv,{role:"menuitemcheckbox","aria-checked":A2(r)?"mixed":r,...a,ref:e,"data-state":U$(r),onSelect:Ct(a.onSelect,()=>n==null?void 0:n(A2(r)?!0:!r),{checkForDefaultPrevented:!1})})})});lQ.displayName=STe;var cQ="MenuRadioGroup",[CTe,$Te]=Ku(cQ,{value:void 0,onValueChange:()=>{}}),uQ=w.forwardRef((t,e)=>{const{value:r,onValueChange:n,...a}=t,i=gi(n);return s.jsx(CTe,{scope:t.__scopeMenu,value:r,onValueChange:i,children:s.jsx(z$,{...a,ref:e})})});uQ.displayName=cQ;var dQ="MenuRadioItem",hQ=w.forwardRef((t,e)=>{const{value:r,...n}=t,a=$Te(dQ,t.__scopeMenu),i=r===a.value;return s.jsx(fQ,{scope:t.__scopeMenu,checked:i,children:s.jsx(Cv,{role:"menuitemradio","aria-checked":i,...n,ref:e,"data-state":U$(i),onSelect:Ct(n.onSelect,()=>{var o;return(o=a.onValueChange)==null?void 0:o.call(a,r)},{checkForDefaultPrevented:!1})})})});hQ.displayName=dQ;var V$="MenuItemIndicator",[fQ,_Te]=Ku(V$,{checked:!1}),pQ=w.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...a}=t,i=_Te(V$,r);return s.jsx(wi,{present:n||A2(i.checked)||i.checked===!0,children:s.jsx(cr.span,{...a,ref:e,"data-state":U$(i.checked)})})});pQ.displayName=V$;var ATe="MenuSeparator",mQ=w.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return s.jsx(cr.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});mQ.displayName=ATe;var ETe="MenuArrow",gQ=w.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,a=Sv(r);return s.jsx(WJ,{...a,...n,ref:e})});gQ.displayName=ETe;var OTe="MenuSub",[UYe,bQ]=Ku(OTe),Wp="MenuSubTrigger",xQ=w.forwardRef((t,e)=>{const r=Yu(Wp,t.__scopeMenu),n=l1(Wp,t.__scopeMenu),a=bQ(Wp,t.__scopeMenu),i=H$(Wp,t.__scopeMenu),o=w.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=i,u={__scopeMenu:t.__scopeMenu},d=w.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return w.useEffect(()=>d,[d]),w.useEffect(()=>{const h=l.current;return()=>{window.clearTimeout(h),c(null)}},[l,c]),s.jsx(L$,{asChild:!0,...u,children:s.jsx(oQ,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":wQ(r.open),...t,ref:Oy(e,a.onTriggerChange),onClick:h=>{var m;(m=t.onClick)==null||m.call(t,h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Ct(t.onPointerMove,N0(h=>{i.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!r.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:Ct(t.onPointerLeave,N0(h=>{var g,b;d();const m=(g=r.content)==null?void 0:g.getBoundingClientRect();if(m){const y=(b=r.content)==null?void 0:b.dataset.side,v=y==="right",N=v?-5:5,S=m[v?"left":"right"],j=m[v?"right":"left"];i.onPointerGraceIntentChange({area:[{x:h.clientX+N,y:h.clientY},{x:S,y:m.top},{x:j,y:m.top},{x:j,y:m.bottom},{x:S,y:m.bottom}],side:y}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(h),h.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Ct(t.onKeyDown,h=>{var g;const m=i.searchRef.current!=="";t.disabled||m&&h.key===" "||hTe[n.dir].includes(h.key)&&(r.onOpenChange(!0),(g=r.content)==null||g.focus(),h.preventDefault())})})})});xQ.displayName=Wp;var yQ="MenuSubContent",vQ=w.forwardRef((t,e)=>{const r=nQ(Ts,t.__scopeMenu),{forceMount:n=r.forceMount,...a}=t,i=Yu(Ts,t.__scopeMenu),o=l1(Ts,t.__scopeMenu),l=bQ(yQ,t.__scopeMenu),c=w.useRef(null),u=Mr(e,c);return s.jsx(w0.Provider,{scope:t.__scopeMenu,children:s.jsx(wi,{present:n||i.open,children:s.jsx(w0.Slot,{scope:t.__scopeMenu,children:s.jsx(F$,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var h;o.isUsingKeyboardRef.current&&((h=c.current)==null||h.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:Ct(t.onFocusOutside,d=>{d.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Ct(t.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:Ct(t.onKeyDown,d=>{var g;const h=d.currentTarget.contains(d.target),m=fTe[o.dir].includes(d.key);h&&m&&(i.onOpenChange(!1),(g=l.trigger)==null||g.focus(),d.preventDefault())})})})})})});vQ.displayName=yQ;function wQ(t){return t?"open":"closed"}function A2(t){return t==="indeterminate"}function U$(t){return A2(t)?"indeterminate":t?"checked":"unchecked"}function PTe(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function MTe(t,e){return t.map((r,n)=>t[(e+n)%t.length])}function TTe(t,e,r){const a=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=MTe(t,Math.max(i,0));a.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.toLowerCase().startsWith(a.toLowerCase()));return c!==r?c:void 0}function RTe(t,e){const{x:r,y:n}=t;let a=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const l=e[i].x,c=e[i].y,u=e[o].x,d=e[o].y;c>n!=d>n&&r<(u-l)*(n-c)/(d-c)+l&&(a=!a)}return a}function ITe(t,e){if(!e)return!1;const r={x:t.clientX,y:t.clientY};return RTe(r,e)}function N0(t){return e=>e.pointerType==="mouse"?t(e):void 0}var DTe=rQ,LTe=L$,BTe=aQ,HTe=sQ,FTe=z$,zTe=iQ,VTe=Cv,UTe=lQ,qTe=uQ,WTe=hQ,GTe=pQ,KTe=mQ,YTe=gQ,XTe=xQ,JTe=vQ,q$="DropdownMenu",[QTe]=to(q$,[eQ]),Ca=eQ(),[ZTe,NQ]=QTe(q$),jQ=t=>{const{__scopeDropdownMenu:e,children:r,dir:n,open:a,defaultOpen:i,onOpenChange:o,modal:l=!0}=t,c=Ca(e),u=w.useRef(null),[d=!1,h]=zu({prop:a,defaultProp:i,onChange:o});return s.jsx(ZTe,{scope:e,triggerId:Lo(),triggerRef:u,contentId:Lo(),open:d,onOpenChange:h,onOpenToggle:w.useCallback(()=>h(m=>!m),[h]),modal:l,children:s.jsx(DTe,{...c,open:d,onOpenChange:h,dir:n,modal:l,children:r})})};jQ.displayName=q$;var kQ="DropdownMenuTrigger",SQ=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=t,i=NQ(kQ,r),o=Ca(r);return s.jsx(LTe,{asChild:!0,...o,children:s.jsx(cr.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:Oy(e,i.triggerRef),onPointerDown:Ct(t.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(i.onOpenToggle(),i.open||l.preventDefault())}),onKeyDown:Ct(t.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&i.onOpenToggle(),l.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});SQ.displayName=kQ;var eRe="DropdownMenuPortal",CQ=t=>{const{__scopeDropdownMenu:e,...r}=t,n=Ca(e);return s.jsx(BTe,{...n,...r})};CQ.displayName=eRe;var $Q="DropdownMenuContent",_Q=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=NQ($Q,r),i=Ca(r),o=w.useRef(!1);return s.jsx(HTe,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...n,ref:e,onCloseAutoFocus:Ct(t.onCloseAutoFocus,l=>{var c;o.current||(c=a.triggerRef.current)==null||c.focus(),o.current=!1,l.preventDefault()}),onInteractOutside:Ct(t.onInteractOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!a.modal||d)&&(o.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});_Q.displayName=$Q;var tRe="DropdownMenuGroup",rRe=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Ca(r);return s.jsx(FTe,{...a,...n,ref:e})});rRe.displayName=tRe;var nRe="DropdownMenuLabel",AQ=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Ca(r);return s.jsx(zTe,{...a,...n,ref:e})});AQ.displayName=nRe;var aRe="DropdownMenuItem",EQ=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Ca(r);return s.jsx(VTe,{...a,...n,ref:e})});EQ.displayName=aRe;var sRe="DropdownMenuCheckboxItem",iRe=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Ca(r);return s.jsx(UTe,{...a,...n,ref:e})});iRe.displayName=sRe;var oRe="DropdownMenuRadioGroup",lRe=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Ca(r);return s.jsx(qTe,{...a,...n,ref:e})});lRe.displayName=oRe;var cRe="DropdownMenuRadioItem",uRe=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Ca(r);return s.jsx(WTe,{...a,...n,ref:e})});uRe.displayName=cRe;var dRe="DropdownMenuItemIndicator",hRe=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Ca(r);return s.jsx(GTe,{...a,...n,ref:e})});hRe.displayName=dRe;var fRe="DropdownMenuSeparator",OQ=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Ca(r);return s.jsx(KTe,{...a,...n,ref:e})});OQ.displayName=fRe;var pRe="DropdownMenuArrow",mRe=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Ca(r);return s.jsx(YTe,{...a,...n,ref:e})});mRe.displayName=pRe;var gRe="DropdownMenuSubTrigger",bRe=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Ca(r);return s.jsx(XTe,{...a,...n,ref:e})});bRe.displayName=gRe;var xRe="DropdownMenuSubContent",yRe=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Ca(r);return s.jsx(JTe,{...a,...n,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});yRe.displayName=xRe;var vRe=jQ,wRe=SQ,NRe=CQ,jRe=_Q,kRe=AQ,SRe=EQ,CRe=OQ;function $v({...t}){return s.jsx(vRe,{"data-slot":"dropdown-menu",...t})}function _v({...t}){return s.jsx(wRe,{"data-slot":"dropdown-menu-trigger",...t})}function Av({className:t,sideOffset:e=4,...r}){return s.jsx(NRe,{children:s.jsx(jRe,{"data-slot":"dropdown-menu-content",sideOffset:e,className:Fe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1278de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...r})})}function Za({className:t,inset:e,variant:r="default",...n}){return s.jsx(SRe,{"data-slot":"dropdown-menu-item","data-inset":e,"data-variant":r,className:Fe("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...n})}function $Re({className:t,inset:e,...r}){return s.jsx(kRe,{"data-slot":"dropdown-menu-label","data-inset":e,className:Fe("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...r})}function Ev({className:t,...e}){return s.jsx(CRe,{"data-slot":"dropdown-menu-separator",className:Fe("bg-border -mx-1 my-1 h-px",t),...e})}const _Re={analytics:"/admin",submissions:"/admin/submissions",authoring:"/admin/authoring","article-review":"/admin/article-review","article-authors":"/admin/article-authors","article-categories":"/admin/article-categories","article-catalog":"/admin/article-catalog","articles-validation":"/admin/articles-validation",youtube:"/admin/youtube",photos:"/admin/photos","homepage-images":"/admin/homepage-images",plans:"/admin/plans",employees:"/admin/employees",users:"/admin/users",reviews:"/admin/reviews","file-library":"/admin/file-library",sobs:"/admin/sobs","sob-audit":"/admin/sobs/audit",security:"/admin/security"},ARe={analytics:{title:"Analytics Overview",section:"Overview"},submissions:{title:"Lead Submissions",section:"Intake"},authoring:{title:"Write Articles",section:"Content"},"article-review":{title:"Article Review",section:"Content"},"article-authors":{title:"Article Authors",section:"Content"},"article-categories":{title:"Article Categories",section:"Content"},"article-catalog":{title:"Article URLs & visibility",section:"Content"},"articles-validation":{title:"Article Validation",section:"Content"},youtube:{title:"YouTube Library",section:"Website"},photos:{title:"Location Photos",section:"Website"},"homepage-images":{title:"Homepage Images",section:"Website"},plans:{title:"Benefit Plan Tables",section:"Benefits"},employees:{title:"Employee Cards",section:"Website"},users:{title:"User Management",section:"Administration"},reviews:{title:"Google Reviews",section:"Website"},"file-library":{title:"File Library",section:"Website"},sobs:{title:"SOB Documents",section:"Benefits"},"sob-audit":{title:"SOB Audit Log",section:"Benefits"},security:{title:"Security",section:"Administration"}};function fF(t){return t.startsWith("/admin/security")?"security":t.startsWith("/admin/submissions")?"submissions":t.startsWith("/admin/sobs/audit")?"sob-audit":t.startsWith("/admin/sobs")?"sobs":t.startsWith("/admin/file-library")?"file-library":t.startsWith("/admin/authoring")?"authoring":t.startsWith("/admin/article-review")?"article-review":t.startsWith("/admin/article-authors")?"article-authors":t.startsWith("/admin/article-categories")?"article-categories":t.startsWith("/admin/article-catalog")?"article-catalog":t.startsWith("/admin/articles-validation")?"articles-validation":t.startsWith("/admin/youtube")?"youtube":t.startsWith("/admin/homepage-images")?"homepage-images":t.startsWith("/admin/photos")?"photos":t.startsWith("/admin/plans")?"plans":t.startsWith("/admin/employees")?"employees":t.startsWith("/admin/users")?"users":t.startsWith("/admin/reviews")?"reviews":"analytics"}function ERe(t){const e=[{id:"authoring",label:"Write Articles",icon:ble}];t.canReview&&e.push({id:"article-review",label:"Article Review",icon:eS}),t.canManageSobs&&e.push({id:"article-authors",label:"Article Authors",icon:Db},{id:"article-categories",label:"Article Categories",icon:M9},{id:"article-catalog",label:"URLs & visibility",icon:gU}
vendor: 12,253 bytes, line 1278
1278),e.push({id:"articles-validation",label:"Article Validation",icon:qle});const r=[];t.canManageSobs&&r.push({id:"sobs",label:"SOB Documents",icon:CO},{id:"sob-audit",label:"SOB Audit Log",icon:oS}),t.isSuperAdmin&&r.push({id:"plans",label:"Benefit Plan Tables",icon:jU});const n=[{id:"youtube",label:"YouTube Library",icon:Cy},{id:"photos",label:"Location Photos",icon:pU}];t.canManageHomepageImages&&n.push({id:"homepage-images",label:"Homepage Images",icon:fU}),n.push({id:"file-library",label:"File Library",icon:CO},{id:"reviews",label:"Google Reviews",icon:Un},{id:"employees",label:"Employee Cards",icon:xoe});const a=[{id:"overview",label:"Overview",items:[{id:"analytics",label:"Analytics Overview",icon:rie},{id:"submissions",label:"Lead Submissions",icon:z0}]},{id:"content",label:"Content",items:e}];return r.length>0&&a.push({id:"benefits",label:"Benefits",items:r}),a.push({id:"website",label:"Website",items:n},{id:"admin",label:"Administration",items:[{id:"users",label:"User Management",icon:sn},{id:"security",label:"Security",icon:Rr}]}),a}function ORe({tab:t}){const e=ARe[t];return s.jsx("nav",{"aria-label":"Breadcrumb",className:"min-w-0",children:s.jsxs("ol",{className:"flex flex-wrap items-center gap-1 text-[13px]",children:[s.jsx("li",{children:s.jsx(ue,{to:"/admin",className:"font-medium text-admin-muted transition-colors hover:text-admin-text",children:"HBA Admin"})}),t!=="analytics"?s.jsxs(s.Fragment,{children:[s.jsx("li",{className:"text-admin-muted","aria-hidden":"true",children:s.jsx(Vn,{size:14})}),s.jsx("li",{className:"truncate text-admin-muted",children:e.section}),s.jsx("li",{className:"text-admin-muted","aria-hidden":"true",children:s.jsx(Vn,{size:14})}),s.jsx("li",{className:"truncate font-semibold text-admin-text","aria-current":"page",children:e.title})]}):s.jsxs(s.Fragment,{children:[s.jsx("li",{className:"text-admin-muted","aria-hidden":"true",children:s.jsx(Vn,{size:14})}),s.jsx("li",{className:"truncate font-semibold text-admin-text","aria-current":"page",children:e.title})]})]})})}function PRe({tab:t,displayName:e,roleLabel:r,email:n,initials:a,onOpenMobileNav:i,onNavigate:o,onLogout:l}){return s.jsxs("header",{className:"sticky top-0 z-20 flex h-[var(--admin-header-height)] items-center gap-3 border-b border-admin-border bg-admin-surface px-4 sm:px-6",children:[s.jsx("button",{type:"button",onClick:i,className:"inline-flex h-10 w-10 items-center justify-center rounded-[10px] border border-admin-border text-hba-blue-1 transition-colors hover:bg-[#F5F7F8] lg:hidden","aria-label":"Open navigation menu",children:s.jsx(xU,{size:20})}),s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(ORe,{tab:t})}),s.jsxs($v,{children:[s.jsx(_v,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex max-w-[16rem] items-center gap-2 rounded-[10px] py-1 pr-1 pl-2 text-left transition-colors hover:bg-[#F5F7F8] focus-visible:outline-none","aria-label":"Account menu",children:[s.jsxs("span",{className:"hidden min-w-0 sm:block",children:[s.jsx("span",{className:"block truncate text-sm font-semibold text-admin-text",children:e}),s.jsx("span",{className:"block truncate text-xs text-admin-muted",children:r})]}),s.jsx("span",{"aria-hidden":"true",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-hba-blue-1 text-xs font-semibold text-white",children:a})]})}),s.jsxs(Av,{align:"end",className:"w-56 rounded-admin",children:[s.jsxs($Re,{className:"font-normal",children:[s.jsx("p",{className:"text-sm font-semibold text-admin-text",children:e}),n?s.jsx("p",{className:"truncate text-xs text-admin-muted",children:n}):null,s.jsx("p",{className:"mt-0.5 text-xs text-admin-muted",children:r})]}),s.jsx(Ev,{}),s.jsxs(Za,{onSelect:()=>o("security"),children:[s.jsx(Rr,{size:16}),"Security"]}),s.jsxs(Za,{variant:"destructive",onSelect:l,children:[s.jsx(R9,{size:16}),"Sign out"]})]})]})]})}var MRe="VisuallyHidden",PQ=w.forwardRef((t,e)=>s.jsx(cr.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));PQ.displayName=MRe;var TRe=PQ,[Ov]=to("Tooltip",[jv]),Pv=jv(),MQ="TooltipProvider",RRe=700,Qj="tooltip.open",[IRe,W$]=Ov(MQ),TQ=t=>{const{__scopeTooltip:e,delayDuration:r=RRe,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:i}=t,[o,l]=w.useState(!0),c=w.useRef(!1),u=w.useRef(0);return w.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),s.jsx(IRe,{scope:e,isOpenDelayed:o,delayDuration:r,onOpen:w.useCallback(()=>{window.clearTimeout(u.current),l(!1)},[]),onClose:w.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:w.useCallback(d=>{c.current=d},[]),disableHoverableContent:a,children:i})};TQ.displayName=MQ;var Mv="Tooltip",[DRe,c1]=Ov(Mv),RQ=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:l}=t,c=W$(Mv,t.__scopeTooltip),u=Pv(e),[d,h]=w.useState(null),m=Lo(),g=w.useRef(0),b=o??c.disableHoverableContent,y=l??c.delayDuration,v=w.useRef(!1),[N=!1,S]=zu({prop:n,defaultProp:a,onChange:O=>{O?(c.onOpen(),document.dispatchEvent(new CustomEvent(Qj))):c.onClose(),i==null||i(O)}}),j=w.useMemo(()=>N?v.current?"delayed-open":"instant-open":"closed",[N]),$=w.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,S(!0)},[S]),C=w.useCallback(()=>{window.clearTimeout(g.current),g.current=0,S(!1)},[S]),_=w.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,S(!0),g.current=0},y)},[y,S]);return w.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),s.jsx(VJ,{...u,children:s.jsx(DRe,{scope:e,contentId:m,open:N,stateAttribute:j,trigger:d,onTriggerChange:h,onTriggerEnter:w.useCallback(()=>{c.isOpenDelayed?_():$()},[c.isOpenDelayed,_,$]),onTriggerLeave:w.useCallback(()=>{b?C():(window.clearTimeout(g.current),g.current=0)},[C,b]),onOpen:$,onClose:C,disableHoverableContent:b,children:r})})};RQ.displayName=Mv;var Zj="TooltipTrigger",IQ=w.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,a=c1(Zj,r),i=W$(Zj,r),o=Pv(r),l=w.useRef(null),c=Mr(e,l,a.onTriggerChange),u=w.useRef(!1),d=w.useRef(!1),h=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),s.jsx(UJ,{asChild:!0,...o,children:s.jsx(cr.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:c,onPointerMove:Ct(t.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:Ct(t.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:Ct(t.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Ct(t.onFocus,()=>{u.current||a.onOpen()}),onBlur:Ct(t.onBlur,a.onClose),onClick:Ct(t.onClick,a.onClose)})})});IQ.displayName=Zj;var G$="TooltipPortal",[LRe,BRe]=Ov(G$,{forceMount:void 0}),DQ=t=>{const{__scopeTooltip:e,forceMount:r,children:n,container:a}=t,i=c1(G$,e);return s.jsx(LRe,{scope:e,forceMount:r,children:s.jsx(wi,{present:r||i.open,children:s.jsx(bv,{asChild:!0,container:a,children:n})})})};DQ.displayName=G$;var ef="TooltipContent",LQ=w.forwardRef((t,e)=>{const r=BRe(ef,t.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...i}=t,o=c1(ef,t.__scopeTooltip);return s.jsx(wi,{present:n||o.open,children:o.disableHoverableContent?s.jsx(BQ,{side:a,...i,ref:e}):s.jsx(HRe,{side:a,...i,ref:e})})}),HRe=w.forwardRef((t,e)=>{const r=c1(ef,t.__scopeTooltip),n=W$(ef,t.__scopeTooltip),a=w.useRef(null),i=Mr(e,a),[o,l]=w.useState(null),{trigger:c,onClose:u}=r,d=a.current,{onPointerInTransitChange:h}=n,m=w.useCallback(()=>{l(null),h(!1)},[h]),g=w.useCallback((b,y)=>{const v=b.currentTarget,N={x:b.clientX,y:b.clientY},S=VRe(N,v.getBoundingClientRect()),j=URe(N,S),$=qRe(y.getBoundingClientRect()),C=GRe([...j,...$]);l(C),h(!0)},[h]);return w.useEffect(()=>()=>m(),[m]),w.useEffect(()=>{if(c&&d){const b=v=>g(v,d),y=v=>g(v,c);return c.addEventListener("pointerleave",b),d.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",y)}}},[c,d,g,m]),w.useEffect(()=>{if(o){const b=y=>{const v=y.target,N={x:y.clientX,y:y.clientY},S=(c==null?void 0:c.contains(v))||(d==null?void 0:d.contains(v)),j=!WRe(N,o);S?m():j&&(m(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,d,o,u,m]),s.jsx(BQ,{...t,ref:i})}),[FRe,zRe]=Ov(Mv,{isInside:!1}),BQ=w.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=t,c=c1(ef,r),u=Pv(r),{onClose:d}=c;return w.useEffect(()=>(document.addEventListener(Qj,d),()=>document.removeEventListener(Qj,d)),[d]),w.useEffect(()=>{if(c.trigger){const h=m=>{const g=m.target;g!=null&&g.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),s.jsx(gv,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:s.jsxs(qJ,{"data-state":c.stateAttribute,...u,...l,ref:e,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(tC,{children:n}),s.jsx(FRe,{scope:r,isInside:!0,children:s.jsx(TRe,{id:c.contentId,role:"tooltip",children:a||n})})]})})});LQ.displayName=ef;var HQ="TooltipArrow",FQ=w.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,a=Pv(r);return zRe(HQ,r).isInside?null:s.jsx(WJ,{...a,...n,ref:e})});FQ.displayName=HQ;function VRe(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),a=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,a,i)){case i:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function URe(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function qRe(t){const{top:e,right:r,bottom:n,left:a}=t;return[{x:a,y:e},{x:r,y:e},{x:r,y:n},{x:a,y:n}]}function WRe(t,e){const{x:r,y:n}=t;let a=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const l=e[i].x,c=e[i].y,u=e[o].x,d=e[o].y;c>n!=d>n&&r<(u-l)*(n-c)/(d-c)+l&&(a=!a)}return a}function GRe(t){const e=t.slice();return e.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),KRe(e)}function KRe(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const a=t[n];for(;e.length>=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))e.pop();else break}e.push(a)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const a=t[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))r.pop();else break}r.push(a)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var YRe=TQ,XRe=RQ,JRe=IQ,QRe=DQ,ZRe=LQ,eIe=FQ;function zQ({delayDuration:t=0,...e}){return s.jsx(YRe,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function ek({...t}){return s.jsx(zQ,{children:s.jsx(XRe,{"data-slot":"tooltip",...t})})}function tk({...t}){return s.jsx(JRe,{"data-slot":"tooltip-trigger",...t})}function rk({className:t,sideOffset:e=0,children:r,...n}){return s.jsx(QRe,{children:s.jsxs(ZRe,{"data-slot":"tooltip-content",sideOffset:e,className:Fe("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1278de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...n,children:[r,s.jsx(eIe,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}function pF({groups:t,activeTab:e,collapsed:r,onToggleCollapsed:n,onNavigate:a,onLogout:i,showCollapseControl:o}){return s.jsx(zQ,{delayDuration:250,children:s.jsxs("div",{className:"flex h-full flex-col bg-admin-sidebar text-white",children:[s.jsxs("div",{className:Fe("border-b border-white/10",r?"px-2 py-3":"px-4 py-4"),children:[s.jsxs("div",{className:Fe("flex items-center",r?"justify-center":"gap-3"),children:[s.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-[10px] bg-white p-1",children:s.jsx("img",{src:G0.hbaLogo,alt:"",className:"h-full w-full object-contain"})}),!r&&s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"font-heading text-sm font-bold tracking-wide text-white",children:"HBA Admin"}),s.jsx("p",{className:"truncate text-xs text-admin-sidebar-muted",children:"Operations console"})]})]}),o?s.jsxs("button",{type:"button",onClick:n,className:Fe("mt-3 hidden h-10 items-center justify-center gap-2 rounded-[10px] border border-white/10 bg-white/5 text-xs font-semibold text-admin-sidebar-muted transition-colors duration-200 hover:bg-white/10 hover:text-white lg:flex",r?"w-full px-0":"w-full px-3"),"aria-label":r?"Expand sidebar":"Collapse sidebar","aria-expanded":!r,children:[r?s.jsx(fle,{size:18}):s.jsx(dle,{size:18}),!r&&s.jsx("span",{children:"Collapse"})]}):null]}),s.jsx("nav",{className:Fe("flex-1 overflow-y-auto py-3",r?"px-2":"px-3"),"aria-label":"Admin",children:t.map(l=>s.jsxs("div",{className:"mb-4",children:[!r&&s.jsx("p",{className:"mb-1 px-2 text-[10px] font-semibold uppercase tracking-[0.16em] text-admin-sidebar-muted",children:l.label}),s.jsx("ul",{className:"space-y-0.5",children:l.items.map(c=>{const u=c.icon,d=e===c.id,h=s.jsxs("button",{type:"button",onClick:()=>a(c.id),"aria-current":d?"page":void 0,"aria-label":c.label,className:Fe("group relative flex h-10 w-full items-center rounded-[10px] text-sm font-medium transition-colors duration-200",r?"justify-center px-0":"gap-2.5 px-2.5",d?"bg-admin-sidebar-active text-white":"text-admin-sidebar-muted hover:bg-admin-sidebar-hover hover:text-white"),children:[d&&s.jsx("span",{"aria-hidden":"true",className:"absolute top-1.5 bottom-1.5 left-0 w-[3px] rounded-full bg-admin-action"}),s.jsx(u,{size:18,className:"shrink-0","aria-hidden":"true"}),!r&&s.jsx("span",{className:"truncate",children:c.label})]});return r?s.jsx("li",{children:s.jsxs(ek,{children:[s.jsx(tk,{asChild:!0,children:h}),s.jsx(rk,{side:"right",className:"font-medium",children:c.label})]})},c.id):s.jsx("li",{children:h},c.id)})})]},l.id))}),s.jsx("div",{className:Fe("border-t border-white/10",r?"p-2":"p-3"),children:r?s.jsxs(ek,{children:[s.jsx(tk,{asChild:!0,children:s.jsx("button",{type:"button",onClick:i,"aria-label":"Sign out",className:"flex h-10 w-full items-center justify-center rounded-[10px] text-admin-sidebar-muted transition-colors duration-200 hover:bg-red-500/15 hover:text-red-100",children:s.jsx(R9,{size:18})})}),s.jsx(rk,{side:"right",children:"Sign out"})]}):s.jsxs("button",{type:"button",onClick:i,className:"flex h-10 w-full items-center justify-center gap-2 rounded-[10px] border border-white/10 bg-white/5 px-3 text-sm font-semibold text-white/90 transition-colors duration-200 hover:border-red-300/30 hover:bg-red-500/15 hover:text-red-100",children:[s.jsx(R9,{size:16}),"Sign out"]})})]})})}function tIe({children:t,groups:e,activeTab:r,collapsed:n,onToggleCollapsed:a,onNavigate:i,onLogout:o,displayName:l,roleLabel:c,email:u,initials:d}){const[h,m]=z.useState(!1),g=b=>{i(b),m(!1)};return s.jsxs("div",{className:"admin-console flex h-screen overflow-hidden",children:[s.jsx("aside",{className:Fe("hidden shrink-0 overflow-hidden transition-[width] duration-200 ease-in-out lg:block",n?"w-[var(--admin-sidebar-collapsed)]":"w-[var(--admin-sidebar-width)]"),"aria-label":"Admin navigation",children:s.jsx(pF,{groups:e,activeTab:r,collapsed:n,onToggleCollapsed:a,onNavigate:g,onLogout:o,showCollapseControl:!0})}),s.jsx(xJ,{open:h,onOpenChange:m,children:s.jsxs(yJ,{side:"left",className:"w-[var(--admin-sidebar-width)] max-w-[85vw] border-0 bg-admin-sidebar p-0 [&>button]:text-white",children:[s.jsx(vJ,{className:"sr-only",children:"Admin navigation"}),s.jsx(wJ,{className:"sr-only",children:"Navigate HBA Admin pages"}),s.jsx(pF,{groups:e,activeTab:r,collapsed:!1,onToggleCollapsed:()=>{},onNavigate:g,onLogout:o})]})}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col bg-admin-bg",children:[s.jsx(PRe,{tab:r,displayName:l,roleLabel:c,email:u,initials:d,onOpenMobileNav:()=>m(!0),onNavigate:g,onLogout:o}),s.jsx("main",{className:"min-w-0 flex-1 overflow-auto",children:s.jsx("div",{className:"mx-auto max-w-[1600px] px-4 py-5 sm:px-6 lg:px-8 lg:py-6",children:t})})]})]})}function Wn({title:t,description:e,eyebrow:r,actions:n,className:a}){return s.jsxs("div",{className:Fe("mb-6 flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",a),children:[s.jsxs("div",{className:"min-w-0",children:[r?s.jsx("p",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[0.16em] text-admin-muted",children:r}):null,s.jsx("h1",{className:"font-heading text-[1.75rem] font-bold leading-tight tracking-tight text-admin-text sm:text-[2rem]",children:t}),e?s.jsx("div",{className:"mt-1.5 max-w-2xl text-sm leading-relaxed text-admin-muted",children:e}):null]}),n?s.jsx("div",{className:"flex shrink-0 flex-wrap items-center gap-2",children:n}):null]})}function T7({className:t,padding:e="md",interactive:r=!1,...n}){return s.jsx("div",{className:Fe("rounded-admin border border-admin-border bg-admin-surface shadow-admin",e==="sm"&&"p-4",e==="md"&&"p-4 sm:p-6",r&&"transition-shadow duration-200 hover:shadow-admin-hover",t),...n})}function R7({children:t,description:e,className:r}){return s.jsxs("div",{className:Fe("mb-4",r),children:[s.jsx("h2",{className:"font-heading text-lg font-semibold text-admin-text sm:text-xl",children:t}),e?s.jsx("p",{className:"mt-1 text-sm text-admin-muted",children:e}):null]})}const rIe={default:"bg-hba-blue-1 text-white",action:"bg-admin-action text-white",success:"bg-admin-success text-white",info:"bg-admin-info text-white",muted:"bg-[#E8EEF0] text-hba-blue-1"};function Vl({label:t,value:e,detail:r,icon:n,tone:a="muted",className:i}){return s.jsx("div",{className:Fe("rounded-admin border border-admin-border bg-admin-surface p-4 shadow-admin sm:p-5",
1278i),children:s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-admin-muted",children:t}),s.jsx("p",{className:"mt-1.5 font-heading text-[1.625rem] font-bold leading-none tabular-nums text-admin-text sm:text-[1.75rem]",children:e}),r?s.jsx("p",{className:"mt-2 text-xs leading-relaxed text-admin-muted",children:r}):null]}),n?s.jsx("div",{className:Fe("flex h-10 w-10 shrink-0 items-center justify-center rounded-[10px]",rIe[a]),children:s.jsx(n,{size:18,"aria-hidden":"true"})}):null]})})}function Mo({title:t,description:e,icon:r=z0,action:n,className:a}){return s.jsxs("div",{className:Fe("rounded-admin border border-dashed border-admin-border bg-admin-surface px-6 py-14 text-center",a),children:[s.jsx("div",{className:"mx-auto mb-3 flex h-12 w-12 items-center justify-center rounded-[10px] bg-[#E8EEF0] text-hba-blue-1",children:s.jsx(r,{size:22,"aria-hidden":"true"})}),s.jsx("h3",{className:"font-heading text-lg font-semibold text-admin-text",children:t}),e?s.jsx("div",{className:"mx-auto mt-1.5 max-w-md text-sm leading-relaxed text-admin-muted",children:e}):null,n?s.jsx("div",{className:"mt-5",children:n}):null]})}function VQ({title:t="Something went wrong",description:e,action:r,className:n}){return s.jsx("div",{role:"alert",className:Fe("rounded-admin border border-red-200 bg-red-50 px-4 py-4 text-sm text-admin-error sm:px-5",n),children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(Go,{size:18,className:"mt-0.5 shrink-0","aria-hidden":"true"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"font-semibold text-admin-error",children:t}),e?s.jsx("div",{className:"mt-1 text-admin-error/90",children:e}):null,r?s.jsx("div",{className:"mt-3",children:r}):null]})]})})}function UQ({label:t="Loading"}){return s.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-sm text-admin-muted",role:"status",children:[s.jsx("span",{className:"inline-block h-5 w-5 rounded-full border-2 border-admin-action border-t-transparent motion-safe:animate-spin","aria-hidden":"true"}),t,"â¦"]})}function qQ({id:t,label:e,className:r,...n}){const a=z.useId(),i=t??a;return s.jsxs("div",{className:Fe("min-w-0",r),children:[e?s.jsx("label",{htmlFor:i,className:"mb-1 block text-xs font-medium text-admin-muted",children:e}):s.jsx("label",{htmlFor:i,className:"sr-only",children:n.placeholder??"Search"}),s.jsxs("div",{className:"relative",children:[s.jsx(Ls,{size:16,"aria-hidden":"true",className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-admin-muted"}),s.jsx("input",{id:i,type:"search",className:"h-10 w-full rounded-[10px] border border-admin-border bg-admin-surface py-2 pl-9 pr-3 text-sm text-admin-text placeholder:text-admin-muted/80 focus:border-admin-focus focus:outline-none focus-visible:ring-[3px] focus-visible:ring-admin-action/30 disabled:bg-[#F5F7F8] disabled:text-admin-muted",...n})]})]})}function nIe({children:t,className:e}){return s.jsx("div",{className:Fe("flex flex-col gap-3 rounded-admin border border-admin-border bg-admin-surface p-3 sm:flex-row sm:flex-wrap sm:items-end",e),children:t})}function WQ({page:t,totalPages:e,onPageChange:r,disabled:n,className:a,label:i="Pagination"}){return e<=1?null:s.jsxs("nav",{"aria-label":i,className:Fe("flex items-center justify-between gap-3 border-t border-admin-border px-4 py-3",a),children:[s.jsxs("button",{type:"button",onClick:()=>r(Math.max(1,t-1)),disabled:t<=1||n,className:"inline-flex h-10 min-w-10 items-center justify-center gap-1 rounded-[10px] border border-admin-border bg-admin-surface px-3 text-sm font-semibold text-hba-blue-1 transition-colors hover:bg-[#F5F7F8] disabled:cursor-not-allowed disabled:opacity-50",children:[s.jsx(Fu,{size:16,"aria-hidden":"true"}),"Previous"]}),s.jsxs("p",{className:"text-sm text-admin-muted",children:["Page ",t," of ",e]}),s.jsxs("button",{type:"button",onClick:()=>r(Math.min(e,t+1)),disabled:t>=e||n,className:"inline-flex h-10 min-w-10 items-center justify-center gap-1 rounded-[10px] border border-admin-border bg-admin-surface px-3 text-sm font-semibold text-hba-blue-1 transition-colors hover:bg-[#F5F7F8] disabled:cursor-not-allowed disabled:opacity-50",children:["Next",s.jsx(Vn,{size:16,"aria-hidden":"true"})]})]})}var GQ="AlertDialog",[aIe]=to(GQ,[XX]),ol=XX(),KQ=t=>{const{__scopeAlertDialog:e,...r}=t,n=ol(e);return s.jsx(hJ,{...n,...r,modal:!0})};KQ.displayName=GQ;var sIe="AlertDialogTrigger",iIe=w.forwardRef((t,e)=>{const{__scopeAlertDialog:r,...n}=t,a=ol(r);return s.jsx(APe,{...a,...n,ref:e})});
vendor: 5,385 bytes, lines 1278-1284
1278iIe.displayName=sIe;var oIe="AlertDialogPortal",YQ=t=>{const{__scopeAlertDialog:e,...r}=t,n=ol(e);return s.jsx(fJ,{...n,...r})};YQ.displayName=oIe;var lIe="AlertDialogOverlay",XQ=w.forwardRef((t,e)=>{const{__scopeAlertDialog:r,...n}=t,a=ol(r);return s.jsx(pJ,{...a,...n,ref:e})});XQ.displayName=lIe;var xh="AlertDialogContent",[cIe,uIe]=aIe(xh),JQ=w.forwardRef((t,e)=>{const{__scopeAlertDialog:r,children:n,...a}=t,i=ol(r),o=w.useRef(null),l=Mr(e,o),c=w.useRef(null);return s.jsx(SPe,{contentName:xh,titleName:QQ,docsSlug:"alert-dialog",children:s.jsx(cIe,{scope:r,cancelRef:c,children:s.jsxs(mJ,{role:"alertdialog",...i,...a,ref:l,onOpenAutoFocus:Ct(a.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=c.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[s.jsx(tC,{children:n}),s.jsx(hIe,{contentRef:o})]})})})});JQ.displayName=xh;var QQ="AlertDialogTitle",ZQ=w.forwardRef((t,e)=>{const{__scopeAlertDialog:r,...n}=t,a=ol(r);return s.jsx(gJ,{...a,...n,ref:e})});ZQ.displayName=QQ;var eZ="AlertDialogDescription",tZ=w.forwardRef((t,e)=>{const{__scopeAlertDialog:r,...n}=t,a=ol(r);return s.jsx(bJ,{...a,...n,ref:e})});tZ.displayName=eZ;var dIe="AlertDialogAction",rZ=w.forwardRef((t,e)=>{const{__scopeAlertDialog:r,...n}=t,a=ol(r);return s.jsx(A$,{...a,...n,ref:e})});rZ.displayName=dIe;var nZ="AlertDialogCancel",aZ=w.forwardRef((t,e)=>{const{__scopeAlertDialog:r,...n}=t,{cancelRef:a}=uIe(nZ,r),i=ol(r),o=Mr(e,a);return s.jsx(A$,{...i,...n,ref:o})});aZ.displayName=nZ;var hIe=({contentRef:t})=>{const e=`\`${xh}\` requires a description for the component to be accessible for screen reader users. 1279 1280You can add a description to the \`${xh}\` by passing a \`${eZ}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 1281 1282Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${xh}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 1283 1284For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return w.useEffect(()=>{var n;document.getElementById((n=t.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(e)},[e,t]),null},fIe=KQ,pIe=YQ,mIe=XQ,gIe=JQ,bIe=rZ,xIe=aZ,yIe=ZQ,vIe=tZ;const mF=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,gF=zt,wIe=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return gF(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:i}=e,o=Object.keys(a).map(u=>{const d=r==null?void 0:r[u],h=i==null?void 0:i[u];if(d===null)return null;const m=mF(d)||mF(h);return a[u][m]}),l=r&&Object.entries(r).reduce((u,d)=>{let[h,m]=d;return m===void 0||(u[h]=m),u},{}),c=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:h,className:m,...g}=d;return Object.entries(g).every(b=>{let[y,v]=b;return Array.isArray(v)?v.includes({...i,...l}[y]):{...i,...l}[y]===v})?[...u,h,m]:u},[]);return gF(t,o,c,r==null?void 0:r.class,r==null?void 0:r.className)},sZ=wIe("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-sans font-medium uppercase transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9 rounded-md"}},defaultVariants:{variant:"default",size:"default"}});function NIe({...t}){return s.jsx(fIe,{"data-slot":"alert-dialog",...t})}function jIe({...t}){return s.jsx(pIe,{"data-slot":"alert-dialog-portal",...t})}function kIe({className:t,...e}){return s.jsx(mIe,{"data-slot":"alert-dialog-overlay",className:Fe("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function SIe({className:t,...e}){return s.jsxs(jIe,{children:[s.jsx(kIe,{}),s.jsx(gIe,{"data-slot":"alert-dialog-content",className:Fe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
1284ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...e})]})}function CIe({className:t,...e}){return s.jsx("div",{"data-slot":"alert-dialog-header",className:Fe("flex flex-col gap-2 text-center sm:text-left",t),...e})}function $Ie({className:t,...e}){return s.jsx("div",{"data-slot":"alert-dialog-footer",className:Fe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function _Ie({className:t,...e}){return s.jsx(yIe,{"data-slot":"alert-dialog-title",className:Fe("text-lg font-semibold",t),...e})}function AIe({className:t,...e}){return s.jsx(vIe,{"data-slot":"alert-dialog-description",className:Fe("text-muted-foreground text-sm",t),...e})}function EIe({className:t,...e}){return s.jsx(bIe,{className:Fe(sZ(),t),...e})}function OIe({className:t,...e}){return s.jsx(xIe,{className:Fe(sZ({variant:"outline"}),t),...e})}const PIe={primary:"h-10 rounded-[10px] bg-admin-primary font-semibold normal-case text-white hover:bg-admin-primary-hover",warning:"h-10 rounded-[10px] bg-admin-warning font-semibold normal-case text-white hover:bg-admin-warning/90",destructive:"h-10 rounded-[10px] bg-admin-error font-semibold normal-case text-white hover:bg-admin-error/90"};function Tv({open:t,onOpenChange:e,title:r,description:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",destructive:o=!1,tone:l,onConfirm:c}){const u=o?"destructive":l??"primary";return s.jsx(NIe,{open:t,onOpenChange:e,children:s.jsxs(SIe,{className:"rounded-admin border-admin-border",children:[s.jsxs(CIe,{children:[s.jsx(_Ie,{className:"font-heading text-admin-text",children:r}),s.jsx(AIe,{asChild:!0,children:s.jsx("div",{className:"text-sm text-admin-muted",children:n})})]}),s.jsxs($Ie,{children:[s.jsx(OIe,{className:"h-10 rounded-[10px] border-admin-border font-semibold normal-case",children:i}),s.jsx(EIe,{className:PIe[u],onClick:c,children:a})]})]})})}const MIe={draft:"bg-[#E8EEF0] text-[#3A4E59] border-[#DDE3E6]",pending:"bg-amber-50 text-admin-warning border-amber-200",published:"bg-emerald-50 text-admin-success border-emerald-200",active:"bg-emerald-50 text-admin-success border-emerald-200",inactive:"bg-[#E8EEF0] text-admin-muted border-admin-border",approved:"bg-sky-50 text-admin-info border-sky-200",rejected:"bg-red-50 text-admin-error border-red-200",failed:"bg-red-50 text-admin-error border-red-200",archived:"bg-[#E8EEF0] text-admin-muted border-admin-border",info:"bg-sky-50 text-admin-info border-sky-200"};function ih({children:t,tone:e="draft",className:r}){return s.jsx("span",{className:Fe("inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-xs font-medium",MIe[e],r),children:t})}function TIe({id:t,label:e,tooltip:r,aside:n}){return s.jsxs("div",{className:"mb-1.5 flex items-baseline justify-between gap-2",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[s.jsx("label",{htmlFor:t,className:nk,children:e}),r?s.jsxs(ek,{children:[s.jsx(tk,{asChild:!0,children:s.jsx("button",{type:"button",className:"inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full text-hba-grey-1 transition hover:bg-gray-100 hover:text-hba-blue-1 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1","aria-label":`Help: ${e}`,children:s.jsx(aU,{size:14,"aria-hidden":"true"})})}),s.jsx(rk,{side:"top",className:"max-w-xs text-left text-xs leading-relaxed",children:r})]}):null]}),n]})}const rr="inline-flex min-h-10 items-center justify-center gap-2 rounded-[10px] bg-admin-primary px-4 py-2 text-sm font-semibold text-white transition-colors duration-200 hover:bg-admin-primary-hover focus:outline-none focus-visible:ring-[3px] focus-visible:ring-admin-focus/35 disabled:cursor-not-allowed disabled:opacity-50",Et="inline-flex min-h-10 items-center justify-center gap-2 rounded-[10px] border border-admin-border bg-admin-surface px-4 py-2 text-sm font-semibold text-hba-blue-1 transition-colors duration-200 hover:bg-[#F5F7F8] focus:outline-none focus-visible:ring-[3px] focus-visible:ring-admin-focus/30 disabled:cursor-not-allowed disabled:opacity-50",Pu="inline-flex min-h-10 items-center justify-center gap-2 rounded-[10px] border border-red-300 bg-admin-surface px-4 py-2 text-sm font-semibold text-admin-error transition-colors duration-200 hover:bg-red-50 focus:outline-none focus-visible:ring-[3px] focus-visible:ring-admin-error/30 disabled:cursor-not-allowed disabled:opacity-50",Vt="h-10 w-full rounded-[10px] border border-admin-border bg-admin-surface px-3 py-2 text-sm text-admin-text placeholder:text-admin-muted/80 focus:outline-none focus-visible:border-admin-focus focus-visible:ring-[3px] focus-visible:ring-admin-action/30 disabled:bg-[#F5F7F8] disabled:text-admin-muted",nk="block text-sm font-medium text-admin-text",jn="rounded-admin border border-admin-border bg-admin-surface shadow-admin";function Xt({id:t,label:e,hint:r,tooltip:n,error:a,children:i,aside:o}){return s.jsxs("div",{children:[s.jsx(TIe,{id:t,label:e,tooltip:n,aside:o}),i,r&&!a&&s.jsx("p",{id:`${t}
1284-hint`,className:"mt-1 text-xs text-hba-grey-1",children:r}),a&&s.jsx("p",{id:`${t}-error`,role:"alert",className:"mt-1 text-xs font-semibold text-red-600",children:a})]})}const RIe={summary:{contactLeads:0,ifpLeads:0,totalLeadSubmissions:0,thisMonthContactLeads:0,thisMonthIfpLeads:0,thisMonthLeadSubmissions:0,publishedArticles:0,draftArticles:0,googleReviews:0,averageRating:null,activeTeamMembers:0,activeLocationPhotos:0,homepageLocationImages:0,activeSobDocuments:0,uploadedFiles:0,ifpPlanRecords:0},monthlyIntake:[],warnings:[],lastUpdated:""};function ea(t){return t.toLocaleString()}function IIe(t){return t?new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(new Date(t)):"Not loaded yet"}const wo=()=>{const[t,e]=w.useState(RIe),[r,n]=w.useState(!0),[a,i]=w.useState(null),o=w.useCallback(async()=>{n(!0),i(null);try{const d=await fetch(ut("/api/admin/analytics/overview"),{headers:mr()});if(!d.ok)throw new Error(`Analytics request failed (${d.status})`);const h=await d.json();e(h)}catch(d){i(d instanceof Error?d.message:"Unable to load analytics")}finally{n(!1)}},[]);w.useEffect(()=>{o()},[o]);const{summary:l}=t,c=w.useMemo(()=>[{label:"Lead Submissions",value:ea(l.totalLeadSubmissions),detail:`${ea(l.contactLeads)} secure messages + ${ea(l.ifpLeads)} IFP quote leads`,icon:Su,tone:"default"},{label:"This Month",value:ea(l.thisMonthLeadSubmissions),detail:`${ea(l.thisMonthContactLeads)} secure + ${ea(l.thisMonthIfpLeads)} IFP`,icon:df,tone:"action"},{label:"Google Reviews",value:ea(l.googleReviews),detail:l.averageRating?`${l.averageRating.toFixed(2)} average rating`:"Average rating unavailable",icon:Un,tone:"info"},{label:"Published Content",value:ea(l.publishedArticles),detail:`${ea(l.draftArticles)} drafts in admin`,icon:Gi,tone:"muted"}],[l]),u=[{label:"Active Team Members",value:ea(l.activeTeamMembers),detail:"Shown from employee cards",icon:sn,border:"border-hba-blue-1"},{label:"Location Images",value:ea(l.activeLocationPhotos+l.homepageLocationImages),detail:`${ea(l.activeLocationPhotos)} gallery + ${ea(l.homepageLocationImages)} homepage`,icon:pU,border:"border-hba-orange-1"},{label:"SOB Documents",value:ea(l.activeSobDocuments),detail:"Active summary-of-benefits rows",icon:Gi,border:"border-emerald-500"},{label:"Uploaded Files",value:ea(l.uploadedFiles),detail:"Admin file library records",icon:SO,border:"border-indigo-500"},{label:"IFP Plan Records",value:ea(l.ifpPlanRecords),detail:"Plan metadata rows available",icon:SO,border:"border-cyan-600"},{label:"Lead Sources",value:"2",detail:"Secure message form and IFP quote flow",icon:Su,border:"border-slate-500"}];return s.jsxs("div",{className:"space-y-6",children:[s.jsx(Wn,{eyebrow:"Overview",title:"Analytics Overview",description:s.jsxs(s.Fragment,{children:["Live operational metrics from the website database. Visitor/page-view tracking is not stored yet.",s.jsxs("span",{className:"mt-1 block text-xs",children:["Last updated: ",IIe(t.lastUpdated)]})]}),actions:s.jsxs("button",{type:"button",onClick:()=>void o(),disabled:r,className:Et,children:[s.jsx(ky,{size:16,className:r?"animate-spin":"","aria-hidden":"true"}),"Refresh"]})}),a?s.jsx(VQ,{title:"Unable to load analytics",description:a}):null,t.warnings.length>0?s.jsxs("div",{className:"rounded-admin border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-admin-warning",children:["Some metrics could not be loaded: ",t.warnings.slice(0,3).join("; "),t.warnings.length>3?` and ${t.warnings.length-3} more.`:""]}):null,s.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4",children:c.map(d=>s.jsx(Vl,{label:d.label,value:d.value,detail:d.detail,icon:d.icon,tone:d.tone},d.label))}),s.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[s.jsxs(T7,{children:[s.jsx(R7,{description:"Total secure messages and IFP quote leads by month.",children:"Lead Intake Trend"}),s.jsx(BD,{width:"100%",height:300,children:s.jsxs(yOe,{data:t.monthlyIntake,children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"colorLeadTotal",x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx("stop",{offset:"5%",
1284stopColor:"#EC814C",stopOpacity:.32}),s.jsx("stop",{offset:"95%",stopColor:"#EC814C",stopOpacity:0})]})}),s.jsx(Pj,{strokeDasharray:"3 3",stroke:"#EBEDED"}),s.jsx(Kh,{dataKey:"month",stroke:"#899AA4",style:{fontSize:"12px"}}),s.jsx(Xh,{allowDecimals:!1,stroke:"#899AA4",style:{fontSize:"12px"}}),s.jsx(si,{contentStyle:{backgroundColor:"#fff",border:"1px solid #EBEDED",borderRadius:"8px",fontSize:"12px"}}),s.jsx(xc,{type:"monotone",dataKey:"total",name:"Total leads",stroke:"#EC814C",strokeWidth:2,fillOpacity:1,fill:"url(#colorLeadTotal)"})]})})]}),s.jsxs(T7,{children:[s.jsx(R7,{description:"Monthly split between homepage secure messages and IFP quote submissions.",children:"Lead Sources"}),s.jsx(BD,{width:"100%",height:300,children:s.jsxs(xOe,{data:t.monthlyIntake,children:[s.jsx(Pj,{strokeDasharray:"3 3",stroke:"#EBEDED"}),s.jsx(Kh,{dataKey:"month",stroke:"#899AA4",style:{fontSize:"12px"}}),s.jsx(Xh,{allowDecimals:!1,stroke:"#899AA4",style:{fontSize:"12px"}}),s.jsx(si,{contentStyle:{backgroundColor:"#fff",border:"1px solid #EBEDED",borderRadius:"8px",fontSize:"12px"}}),s.jsx(bu,{wrapperStyle:{fontSize:"12px"}}),s.jsx(qh,{type:"monotone",dataKey:"secureMessages",name:"Secure messages",stroke:"#2A3C46",strokeWidth:3,dot:{fill:"#2A3C46",r:4},activeDot:{r:6}}),s.jsx(qh,{type:"monotone",dataKey:"ifpQuoteLeads",name:"IFP quote leads",stroke:"#EC814C",strokeWidth:3,dot:{fill:"#EC814C",r:4},activeDot:{r:6}})]})})]})]}),s.jsxs(T7,{children:[s.jsx(R7,{children:"Website Data Inventory"}),s.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3",children:u.map(d=>{const h=d.icon;return s.jsx("div",{className:`rounded-[10px] border border-admin-border border-l-4 ${d.border} bg-[#F5F7F8] p-4`,children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(h,{size:18,className:"mt-0.5 text-hba-blue-1"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-admin-muted mb-1",children:d.label}),s.jsx("p",{className:"font-heading text-xl font-bold text-admin-text",children:d.value}),s.jsx("p",{className:"text-xs text-admin-muted mt-1",children:d.detail})]})]})},d.label)})})]})]})},DIe=()=>{const[t,e]=w.useState([]),[r,n]=w.useState(""),[a,i]=w.useState(!1);w.useEffect(()=>{o()},[]);const o=async()=>{i(!0);try{const h=await fetch(`https://${Vb}.supabase.co/functions/v1/make-server-b7750426/admin/videos`,{headers:{Authorization:`Bearer ${Ub}`}});if(h.ok){const m=await h.json();e(m||[])}}catch(h){console.error("Error loading videos:",h),e([{id:"1",url:"https://www.youtube.com/watch?v=dQw4w9WgXcQ",videoId:"dQw4w9WgXcQ",title:"Understanding Medicare Part A & B",description:"Learn the basics of Original Medicare coverage",thumbnail:"https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg",addedDate:"2026-02-20"},{id:"2",url:"https://www.youtube.com/watch?v=jNQXAC9IVRw",videoId:"jNQXAC9IVRw",title:"Medicare Advantage vs Medicare Supplement",description:"Compare your Medicare coverage options",thumbnail:"https://img.youtube.com/vi/jNQXAC9IVRw/maxresdefault.jpg",addedDate:"2026-02-18"},{id:"3",url:"https://www.youtube.com/watch?v=9bZkp7q19f0",videoId:"9bZkp7q19f0",title:"Small Business Health Insurance Guide",description:"Everything employers need to know",thumbnail:"https://img.youtube.com/vi/9bZkp7q19f0/maxresdefault.jpg",addedDate:"2026-02-15"},{id:"4",url:"https://www.youtube.com/watch?v=M7lc1UVf-VE",videoId:"M7lc1UVf-VE",title:"ACA Marketplace Enrollment Tips",description:"Navigate the Health Insurance Marketplace",thumbnail:"https://img.youtube.com/vi/M7lc1UVf-VE/maxresdefault.jpg",addedDate:"2026-02-10"}])}finally{i(!1)}},l=h=>{const m=[/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&\s]+)/,/youtube\.com\/embed\/([^&\s]+)/,/youtube\.com\/v\/([^&\s]+)/];for(const g of m){const b=h.match(g);if(b&&b[1])return b[1]}return null},c=async()=>{if(!r.trim()){te.error("Please enter a YouTube URL");return}const h=l(r);if(!h){te.error("Invalid YouTube URL");return}if(t.some(g=>g.videoId===h)){te.error("This video is already in your library");return}const m={id:Date.now().toString(),url:r,videoId:h,title:"YouTube Video",description:"Added from URL",thumbnail:`https://img.youtube.com/vi/${h}/maxresdefault.jpg`,addedDate:new Date().toISOString().split("T")[0]};try{(await fetch(`https://${Vb}.supabase.co/functions/v1/make-server-b7750426/admin/videos`,{method:"POST",headers:{Authorization:`Bearer ${Ub}`,"Content-Type":"application/json"},body:JSON.stringify(m)})).ok?(e([m,...t]),n(""),te.success("Video added to library")):(e([m,...t]),n(""),te.success("Video added to library"))}catch(g){console.error("Error adding video:",g),e([m,...t]),n(""),te.success("Video added to library")}},u=async h=>{if(confirm("Remove this video from your library?"))try{await fetch(`https://${Vb}.supabase.co/functions/v1/make-server-b7750426/admin/videos/${h}`,{method:"DELETE",headers:{Authorization:`Bearer ${Ub}`}}),e(t.filter(m=>m.id!==h)),te.success("Video removed")}catch(m){console.error("Error deleting video:",m),e(t.filter(g=>g.id!==h)),te.success("Video removed")}},d=async(h,m,g)=>{e(t.map(b=>b.id===h?{...b,[m]:g}:b))};return s.jsxs("div",{className:"space-y-6",children:[s.jsx(Wn,{eyebrow:"Website",title:"YouTube Library",description:"Manage educational videos and content for your website."}),s.jsxs("div",{className:"rounded-admin border border-admin-border bg-admin-surface p-6 shadow-admin",children:[s.jsx("h3",{className:"mb-4 text-sm font-semibold uppercase tracking-wide text-admin-muted",children:"Add New Video"}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("input",{type:"text",value:r,onChange:h=>n(h.target.value),onKeyPress:h=>h.key==="Enter"&&c(),placeholder:"Paste YouTube URL (e.g., https://www.youtube.com/watch?v=...)",className:"flex-1 px-4 py-3 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-hba-orange-1 text-sm",style:{borderRadius:"8px"}}),s.jsxs("button",{onClick:c,className:"flex items-center gap-2 px-6 py-3 bg-admin-primary text-white font-medium hover:bg-admin-primary-hover transition-colors",style:{borderRadius:"8px"},children:[s.jsx(ss,{size:20}),"Add Video"]})]}),s.jsx("p",{className:"text-xs text-hba-grey-1 mt-2",children:"Supports youtube.com/watch, youtu.be, and youtube.com/embed URLs"})]}),s.jsxs("div",{className:"bg-white border border-gray-200 p-6",style:{borderRadius:"8px"},children:[s.jsxs("h3",{className:"text-sm font-bold text-hba-blue-1 uppercase tracking-wide mb-4",children:["Video Library (",t.length,")"]}),t.length>0?s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:t.map(h=>s.jsxs("div",{className:"group border border-gray-200 overflow-hidden hover:shadow-lg transition-all",style:{borderRadius:"8px"},children:[s.jsxs("div",{className:"relative aspect-video bg-gray-100 overflow-hidden",children:[s.jsx("img",{src:h.thumbnail,alt:h.title,className:"w-full h-full object-cover",onError:m=>{m.currentTarget.src=`https://img.youtube.com/vi/${h.videoId}/hqdefault.jpg`}}),s.jsx("div",{className:"absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:s.jsx("a",{href:h.url,target:"_blank",rel:"noopener noreferrer",className:"p-4 bg-white rounded-full hover:scale-110 transition-transform",children:s.jsx($le,{size:24,className:"text-hba-orange-1",fill:"currentColor"})})}),s.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white text-xs px-2 py-1",style:{borderRadius:"4px"},children:h.videoId})]}),s.jsxs("div",{className:"p-4",children:[s.jsx("input",{type:"text",value:h.title,onChange:m=>d(h.id,"title",m.target.value),className:"w-full font-bold text-sm text-hba-blue-1 mb-2 px-2 py-1 border border-transparent hover:border-gray-300 focus:border-hba-orange-1 focus:outline-none transition-colors",style:{borderRadius:"4px"},placeholder:"Video title"}),s.jsx("textarea",{value:h.description,onChange:m=>d(h.id,"description",m.target.value),rows:2,className:"w-full text-xs text-hba-grey-1 mb-3 px-2 py-1 border border-transparent hover:border-gray-300 focus:border-hba-orange-1 focus:outline-none resize-none transition-colors",style:{borderRadius:"4px"},placeholder:"Video description"}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("span",{className:"text-xs text-hba-grey-1",children:["Added ",h.addedDate]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("a",{href:h.url,target:"_blank",rel:"noopener noreferrer",className:"p-2 text-hba-blue-1 hover:bg-gray-100 transition-colors",style:{borderRadius:"6px"},title:"Open in YouTube",children:s.jsx(Lt,{size:16})}),s.jsx("button",{onClick:()=>u(h.id),className:"p-2 text-red-600 hover:bg-red-50 transition-colors",style:{borderRadius:"6px"},title:"Remove from library",children:s.jsx(zs,{size:16})})]})]})]})]}
1284,h.id))}):s.jsxs("div",{className:"text-center py-12",children:[s.jsx(Cy,{size:48,className:"mx-auto text-hba-grey-1 mb-4"}),s.jsx("p",{className:"text-sm text-hba-grey-1",children:"No videos in your library yet. Add your first video above!"})]})]}),t.length>0&&s.jsxs("div",{className:"bg-blue-50 border border-blue-200 p-6",style:{borderRadius:"8px"},children:[s.jsx("h3",{className:"text-sm font-bold text-hba-blue-1 mb-2",children:"ð¡ Embedding Videos"}),s.jsx("p",{className:"text-sm text-hba-grey-1 mb-3",children:"To embed any video on your website, use this format:"}),s.jsx("code",{className:"block bg-white border border-gray-300 p-3 text-xs font-mono overflow-x-auto",style:{borderRadius:"6px"},children:`<iframe 1285 width="560" 1286 height="315" 1287 src="https://www.youtube.com/embed/VIDEO_ID" 1288 frameBorder="0" 1289 allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 1290 allowFullScreen 1291></iframe>`})]})]})};function LIe(t){if(t==null)return null;const r=(t instanceof Date?t:new Date(t)).getTime();return Number.isFinite(r)?Math.floor(r/1e3):null}function j0(t,e){if(!t)return"";const r=LIe(e);if(r==null)return t;const n=t.includes("?")?"&":"?";return`${t}${n}v=${r}`}const Gp=[{slug:"reno",label:"Reno"},{slug:"carson-city",label:"Carson City"},{slug:"sparks",label:"Sparks"},{slug:"fernley",label:"Fernley"},{slug:"truckee",label:"Truckee"},{slug:"henderson",label:"Las Vegas"}],iZ=["image/jpeg","image/jpg","image/png","image/webp","image/gif"],BIe=iZ.join(",");function HIe(){const t=xf();return t?{Authorization:`Bearer ${t}`}:{}}function bF(t){if(!t)return"Unknown";const e=new Date(t);return Number.isNaN(e.getTime())?"Unknown":e.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function db(t){var e;return((e=Gp.find(r=>r.slug===t))==null?void 0:e.label)??t}function zc(t){return[...t].sort((e,r)=>{const n=e.location_slug.localeCompare(r.location_slug);if(n!==0)return n;const a=(e.sort_order??0)-(r.sort_order??0);return a!==0?a:new Date(e.created_at??0).getTime()-new Date(r.created_at??0).getTime()})}function FIe(t){return t<1024*1024?`${Math.max(1,Math.round(t/1024))} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const zIe=()=>{const[t,e]=w.useState([]),[r,n]=w.useState("all"),[a,i]=w.useState("reno"),[o,l]=w.useState(""),[c,u]=w.useState(""),[d,h]=w.useState("0"),[m,g]=w.useState(""),[b,y]=w.useState([]),[v,N]=w.useState(!1),[S,j]=w.useState(!1),[$,C]=w.useState(!1),[_,O]=w.useState(null),[E,P]=w.useState(null),[T,I]=w.useState(!1),[R,F]=w.useState(null),[L,q]=w.useState(null),[G,B]=w.useState(null),[H,K]=w.useState(""),[Z,V]=w.useState(""),[U,Y]=w.useState("0"),[de,ge]=w.useState("reno"),[fe,Oe]=w.useState(!0),Ce=w.useRef(null);w.useEffect(()=>{le()},[]);const le=async()=>{j(!0);try{const ae=await fetch(ut("/api/admin/location-photos"),{headers:mr()});if(!ae.ok){const ee=await ae.json().catch(()=>({}));throw new Error(ee.message||"Failed to load photos")}const W=await ae.json();e(Array.isArray(W)?zc(W):[])}catch(ae){console.error("Error loading location photos:",ae),te.error(ae instanceof Error?ae.message:"Failed to load photos")}finally{j(!1)}},we=()=>{l(""),u(""),h("0"),g(""),y([]),Ce.current&&(Ce.current.value="")},ke=ae=>{const W=ae.filter(Q=>iZ.includes(Q.type)),ee=ae.length-W.length;ee>0&&te.error(`${ee} unsupported file${ee===1?"":"s"} skipped`),W.length!==0&&y(Q=>{const xe=new Set(Q.map(X=>`${X.name}-${X.size}-${X.lastModified}`)),ye=W.filter(X=>{const ve=`${X.name}-${X.size}-${X.lastModified}`;return xe.has(ve)?!1:(xe.add(ve),!0)});return[...Q,...ye]})},oe=async()=>{if(!a){te.error("Select a location");return}if(b.length===0&&!m.trim()){te.error("Provide either an image URL or one or more uploaded files");return}C(!0);try{const ae=[],W=Number(d||"0"),ee=[...m.trim()?[{imageUrl:m.trim()}]:[],...b.map(Q=>({file:Q}))];for(const[Q,xe]of ee.entries()){const ye=new FormData;ye.append("locationSlug",a),ye.append("caption",o.trim()),ye.append("altText",c.trim()),ye.append("sortOrder",String(W+Q*10)),xe.imageUrl&&ye.append("imageUrl",xe.imageUrl),xe.file&&ye.append("file",xe.file);const X=await fetch(ut("/api/admin/location-photos"),{method:"POST",headers:HIe(),body:ye});if(!X.ok){const ve=await X.json().catch(()=>({}));throw new Error(ve.message||"Failed to add photo")}ae.push(await X.json())}e(Q=>zc([...Q,...ae])),we(),te.success(ae.length===1?"Photo added successfully":`${ae.length} photos added successfully`)}catch(ae){console.error("Error creating location photo:",ae),te.error(ae instanceof Error?ae.message:"Failed to add photo")}finally{C(!1)}},qe=ae=>{B(ae.id),K(ae.caption??""),V(ae.alt_text??""),Y(String(ae.sort_order??0)),ge(ae.location_slug),Oe(ae.is_active)},Le=()=>{B(null),K(""),V(""),Y("0"),ge("reno"),Oe(!0)},Ke=async ae=>{O(ae);try{const W=await fetch(ut(`/api/admin/location-photos/${ae}`),{method:"PATCH",headers:mr(),body:JSON.stringify({locationSlug:de,caption:H.trim()||null,altText:Z.trim()||null,sortOrder:Number(U||"0"),isActive:fe})});if(!W.ok){const Q=await W.json().catch(()=>({}));throw new Error(Q.message||"Failed to update photo")}const ee=await W.json();e(Q=>zc(Q.map(xe=>xe.id===ae?ee:xe))),Le(),te.success("Photo updated")}catch(W){console.error("Error updating location photo:",W),te.error(W instanceof Error?W.message:"Failed to update photo")}finally{O(null)}},ne=async ae=>{if(window.confirm("Delete this location photo?")){P(ae);try{const W=await fetch(ut(`/api/admin/location-photos/${ae}`),{method:"DELETE",headers:mr()});if(!W.ok){const ee=await W.json().catch(()=>({}));throw new Error(ee.message||"Failed to delete photo")}e(ee=>zc(ee.filter(Q=>Q.id!==ae))),te.success("Photo deleted")}catch(W){console.error("Error deleting location photo:",W),te.error(W instanceof Error?W.message:"Failed to delete photo")}finally{P(null)}}},Se=async ae=>{try{await navigator.clipboard.writeText(ae.image_url),q(ae.id),window.setTimeout(()=>q(W=>W===ae.id?null:W),1500),te.success("Image URL copied")}catch{te.error("Unable to copy image URL")}},$e=async(ae,W)=>{if(r==="all"||ae===W||T)return;const ee=r,Q=zc(t.filter(Ie=>Ie.location_slug===ee)),xe=Q.findIndex(Ie=>Ie.id===ae),ye=Q.findIndex(Ie=>Ie.id===W);if(xe<0||ye<0||xe===ye)return;
1291const X=[...Q],[ve]=X.splice(xe,1);X.splice(ye,0,ve);const He=X.map((Ie,dt)=>({...Ie,sort_order:dt*10}));I(!0),e(Ie=>{const dt=new Map(He.map(Ue=>[Ue.id,Ue]));return zc(Ie.map(Ue=>dt.get(Ue.id)??Ue))});try{await Promise.all(He.map(Ie=>fetch(ut(`/api/admin/location-photos/${Ie.id}`),{method:"PATCH",headers:mr(),body:JSON.stringify({sortOrder:Ie.sort_order})}).then(async dt=>{if(!dt.ok){const Ue=await dt.json().catch(()=>({}));throw new Error(Ue.message||"Failed to update sort order")}}))),te.success(`Reordered ${db(ee)} photos`)}catch(Ie){console.error("Error reordering location photos:",Ie),te.error(Ie instanceof Error?Ie.message:"Failed to reorder photos"),await le()}finally{I(!1),F(null)}},Ae=w.useMemo(()=>zc(r==="all"?t:t.filter(ae=>ae.location_slug===r)),[t,r]),Ve=w.useMemo(()=>{const ae={reno:0,"carson-city":0,sparks:0,fernley:0,truckee:0,henderson:0};for(const W of t)ae[W.location_slug]+=1;return ae},[t]);return s.jsxs("div",{className:"space-y-6",children:[s.jsx(Wn,{eyebrow:"Website",title:"Location Photos",description:"Upload and manage slideshow photos for public location pages."}),s.jsxs("div",{className:"rounded-xl border border-gray-200 bg-white p-6",children:[s.jsx("h3",{className:"mb-4 text-sm font-bold uppercase tracking-wide text-hba-blue-1",children:"Add New Photo"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:[s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs font-medium text-hba-blue-1",children:"Location"}),s.jsx("select",{value:a,onChange:ae=>i(ae.target.value),className:"w-full rounded-xl border border-gray-300 px-4 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-hba-orange-1",children:Gp.map(ae=>s.jsx("option",{value:ae.slug,children:ae.label},ae.slug))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs font-medium text-hba-blue-1",children:"Caption"}),s.jsx("input",{type:"text",value:o,onChange:ae=>l(ae.target.value),placeholder:"Optional caption",className:"w-full rounded-xl border border-gray-300 px-4 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-hba-orange-1"})]})]}),s.jsxs("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:[s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs font-medium text-hba-blue-1",children:"Alt Text"}),s.jsx("input",{type:"text",value:c,onChange:ae=>u(ae.target.value),placeholder:"Optional alt text",className:"w-full rounded-xl border border-gray-300 px-4 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-hba-orange-1"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs font-medium text-hba-blue-1",children:"Sort Order"}),s.jsx("input",{type:"number",min:0,value:d,onChange:ae=>h(ae.target.value),className:"w-full rounded-xl border border-gray-300 px-4 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-hba-orange-1"})]})]}),s.jsxs("div",{className:"grid grid-cols-1 gap-3 lg:grid-cols-[1fr_auto]",children:[s.jsx("input",{type:"text",value:m,onChange:ae=>g(ae.target.value),onKeyDown:ae=>{ae.key==="Enter"&&(ae.preventDefault(),oe())},placeholder:"Paste an external image URL or upload a file",className:"w-full rounded-xl border border-gray-300 px-4 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-hba-orange-1"}),s.jsxs("button",{type:"button",onClick:()=>void oe(),disabled:$,className:"inline-flex items-center justify-center gap-2 rounded-xl bg-admin-primary px-6 py-2 text-sm font-medium text-white transition-colors hover:bg-admin-primary-hover disabled:opacity-50",children:[$?s.jsx(pt,{size:18,className:"animate-spin"}):null,b.length>1?"Add Photos":"Add Photo"]})]}),s.jsxs("div",{onDragOver:ae=>{ae.preventDefault(),N(!0)},onDragLeave:()=>N(!1),onDrop:ae=>{ae.preventDefault(),N(!1),ke(Array.from(ae.dataTransfer.files??[]))},className:`cursor-pointer rounded-2xl border-2 border-dashed p-6 text-center transition-colors ${v?"border-hba-orange-1 bg-hba-orange-1/10":"border-gray-300 bg-slate-50 hover:border-hba-orange-1/60 hover:bg-white"}`,children:[s.jsx(fi,{size:28,className:"mx-auto text-hba-orange-1"}),s.jsx("p",{className:"mt-3 text-sm font-black uppercase tracking-wide text-hba-blue-1",children:"Select Multiple Images"}),s.jsx("p",{className:"mt-1 text-xs text-hba-grey-1",children:"Hold Command/Ctrl or Shift in the file picker to select several images, or drag and drop multiple files here."}),s.jsx("input",{ref:Ce,type:"file",multiple:!0,accept:BIe,onChange:ae=>{ke(Array.from(ae.currentTarget.files??[])),ae.currentTarget.value=""},className:"mx-auto mt-4 block max-w-full cursor-pointer rounded-xl border border-gray-300 bg-white px-4 py-2 text-sm text-hba-blue-1 file:mr-4 file:cursor-pointer file:rounded-lg file:border-0 file:bg-hba-blue-1/10 file:px-4 file:py-2 file:font-bold file:text-hba-blue-1 hover:file:bg-hba-blue-1/15"})]}),s.jsx("div",{className:"text-xs text-hba-grey-1",children:b.length>0?s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"font-bold text-hba-blue-1",children:["Selected ",b.length," file",b.length!==1?"s":""]}),s.jsx("ul",{className:"grid gap-2 sm:grid-cols-2",children:b.map(ae=>s.jsxs("li",{className:"flex items-center justify-between gap-3 rounded-lg border border-gray-200 bg-white px-3 py-2",children:[s.jsxs("span",{className:"min-w-0 truncate",children:[s.jsx("strong",{children:ae.name})," ",s.jsxs("span",{className:"text-hba-grey-1",children:["(",FIe(ae.size),")"]})]}),s.jsx("button",{type:"button",onClick:()=>y(W=>W.filter(ee=>`${ee.name}-${ee.size}-${ee.lastModified}`!=`${ae.name}-${ae.size}-${ae.lastModified}`)),className:"shrink-0 rounded-md p-1 text-red-600 transition-colors hover:bg-red-50","aria-label":`Remove ${ae.name}`,children:s.jsx(cs,{size:14})})]},`${ae.name}-${ae.size}-${ae.lastModified}`))})]}):s.jsx("span",{children:"Supported uploads: JPEG, PNG, WebP, GIF. Select multiple files or use an external URL."})})]})]}),s.jsx("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-6",children:Gp.map(ae=>s.jsxs("div",{className:"rounded-xl border border-gray-200 bg-white p-4 text-center",children:[s.jsx(tr,{size:20,className:"mx-auto mb-2 text-hba-orange-1"}),s.jsx("p",{className:"mb-1 text-xs text-hba-grey-1",children:ae.label}),s.jsx("p",{className:"text-2xl font-black text-hba-blue-1",children:Ve[ae.slug]})]},ae.slug))}),s.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[s.jsx("label",{className:"text-sm font-medium text-hba-blue-1",children:"Filter by:"}),s.jsxs("select",{value:r,onChange:ae=>n(ae.target.value),className:"rounded-xl border border-gray-300 px-4 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-hba-orange-1",children:[s.jsx("option",{value:"all",children:"All Locations"}),Gp.map(ae=>s.jsx("option",{value:ae.slug,children:ae.label},ae.slug))]}),s.jsxs("span",{className:"text-sm text-hba-grey-1",children:["Showing ",Ae.length," photo",Ae.length!==1?"s":""]}),s.jsx("span",{className:"text-xs text-hba-grey-1",children:r==="all"?"Filter to one location to drag and reorder.":T?"Saving new order...":"Drag cards to update slideshow order."})]}),s.jsx("div",{className:"rounded-xl border border-gray-200 bg-white p-6",children:S?s.jsxs("div",{className:"flex items-center justify-center py-16 text-hba-grey-1",children:[s.jsx(pt,{className:"mr-2 h-5 w-5 animate-spin"}),"Loading photosâ¦"]}):Ae.length>0?s.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-3",children:Ae.map(ae=>{const W=G===ae.id;return s.jsxs("div",{draggable:!W&&r!=="all"&&!T,onDragStart:()=>F(ae.id),onDragOver:ee=>{r!=="all"&&ee.preventDefault()},onDrop:ee=>{ee.preventDefault(),R&&$e(R,ae.id)},onDragEnd:()=>F(null),className:`overflow-hidden rounded-xl border border-gray-200 transition-all hover:shadow-lg ${R===ae.id?"opacity-60 ring-2 ring-hba-orange-1/40":""} ${r!=="all"&&!W?"cursor-move":""}`,children:[s.jsxs("div",{className:"relative aspect-video overflow-hidden bg-gray-100",children:[s.jsx(Dt,{src:j0(ae.image_url,ae.updated_at),alt:ae.alt_text||ae.caption||`${db(ae.location_slug)} office photo`,className:"h-full w-full object-cover"}),s.jsxs("div",{className:"absolute left-2 top-2 inline-flex items-center gap-1 rounded-md bg-hba-blue-1 px-3 py-1 text-xs text-white",children:[s.jsx(tr,{size:12}),db(ae.location_slug)]}),s.jsxs("div",{className:"absolute inset-0 flex items-center justify-center gap-2 bg-black/40 opacity-0 transition-opacity hover:opacity-100",children:[s.jsx("a",{href:j0(ae.image_url,ae.updated_at),target:"_blank",rel:"noopener noreferrer",className:"rounded-md bg-white p-2 transition-colors hover:bg-gray-100",title:"Open image",children:s.jsx(Lt,{size:18,className:"text-hba-blue-1"})}),s.jsx("button",{type:"button",onClick:()=>void Se(ae),className:"rounded-md bg-white p-2 transition-colors hover:bg-gray-100",title:"Copy image URL",children:L===ae.id?s.jsx(vh,{size:18,className:"text-emerald-600"}):s.jsx(Ny,{size:18,className:"text-hba-blue-1"})})]})]}),s.jsx("div",{className:"space-y-4 p-4",children:W?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs font-medium text-hba-blue-1",children:"Caption"}),s.jsx("input",{type:"text",value:H,onChange:ee=>K(ee.target.value),className:"w-full rounded-lg border border-gray-300 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-hba-orange-1"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs font-medium text-hba-blue-1",children:"Alt Text"}),s.jsx("input",{type:"text",value:Z,onChange:ee=>V(ee.target.value),className:"w-full rounded-lg border border-gray-300 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-hba-orange-1"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs font-medium text-hba-blue-1",children:"Sort Order"}),s.jsx("input",{type:"number",min:0,value:U,onChange:ee=>Y(ee.target.value),className:"w-full rounded-lg border border-gray-300 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-hba-orange-1"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs font-medium text-hba-blue-1",children:"Location"}),s.jsx("select",{value:de,onChange:ee=>ge(ee.target.value),className:"w-full rounded-lg border border-gray-300 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-hba-orange-1",children:Gp.map(ee=>s.jsx("option",{value:ee.slug,children:ee.label},ee.slug))})]})]}),s.jsxs("label",{className:"inline-flex items-center gap-2 text-sm text-hba-blue-1",children:[s.jsx("input",{type:"checkbox",checked:fe,onChange:ee=>Oe(ee.target.checked)}),"Active on public site"]})]}),s.jsxs("div",{className:"flex items-center justify-between gap-3 text-xs text-hba-grey-1",children:[s.jsxs("span",{children:["Created ",bF(ae.created_at)]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs("button",{type:"button",onClick:Le,className:"inline-flex items-center gap-1 rounded-md border border-gray-300 px-3 py-2 font-medium text-hba-blue-1 transition-colors hover:bg-gray-50",children:[s.jsx(cs,{size:14}),"Cancel"]}),s.jsxs("button",{type:"button",onClick:()=>void Ke(ae.id),disabled:_===ae.id,className:"inline-flex items-center gap-1 rounded-md bg-admin-primary px-3 py-2 font-medium text-white transition-colors hover:bg-admin-primary-hover disabled:opacity-50",children:[_===ae.id?s.jsx(pt,{size:14,className:"animate-spin"}):s.jsx(vh,{size:14}),"Save"]})]})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsx("p",{className:"font-bold text-hba-blue-1",children:ae.caption||"Untitled photo"}),s.jsx("span",{className:`rounded-full px-2.5 py-1 text-[11px] font-bold uppercase tracking-wide ${ae.is_active?"bg-emerald-50 text-emerald-700":"bg-slate-100 text-slate-600"}`,children:ae.is_active?"Active":"Inactive"})]}),r!=="all"?s.jsxs("div",{className:"inline-flex items-center gap-1 text-xs font-medium text-hba-grey-1",children:[s.jsx(iS,{size:14}),"Drag to reorder"]}
1291):null,s.jsxs("p",{className:"text-xs text-hba-grey-1",children:["Sort order: ",s.jsx("strong",{children:ae.sort_order})]}),ae.alt_text?s.jsxs("p",{className:"text-xs text-hba-grey-1",children:["Alt: ",ae.alt_text]}):null,s.jsx("p",{className:"break-all text-xs text-hba-grey-1",children:ae.image_url.replace(bW(),"")||ae.image_url})]}),s.jsxs("div",{className:"flex items-center justify-between gap-3 border-t border-gray-100 pt-3 text-xs text-hba-grey-1",children:[s.jsx("span",{children:bF(ae.created_at)}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{type:"button",onClick:()=>qe(ae),className:"rounded-md p-1.5 text-hba-blue-1 transition-colors hover:bg-hba-blue-1/5",title:"Edit photo",children:s.jsx(hf,{size:16})}),s.jsx("button",{type:"button",onClick:()=>void ne(ae.id),disabled:E===ae.id,className:"rounded-md p-1.5 text-red-600 transition-colors hover:bg-red-50 disabled:opacity-50",title:"Delete photo",children:E===ae.id?s.jsx(pt,{size:16,className:"animate-spin"}):s.jsx(zs,{size:16})})]})]})]})})]},ae.id)})}):s.jsxs("div",{className:"py-12 text-center",children:[s.jsx(fi,{size:48,className:"mx-auto mb-4 text-hba-grey-1"}),s.jsx("p",{className:"text-sm text-hba-grey-1",children:r==="all"?"No location photos yet. Add your first photo above.":`No photos for ${db(r)} yet.`})]})})]})};function Ld(t){if(!t)return null;const e=String(t).trim();if(!e||e.toLowerCase().includes("not covered"))return null;const r=e.replace(/\$/g,"").replace(/,/g,"").trim(),n=Number(r);return Number.isFinite(n)?n:null}function VIe(){var t;try{const e=localStorage.getItem("hba_user");if(!e)return!1;const r=JSON.parse(e);return(((t=r==null?void 0:r.app_metadata)==null?void 0:t.role)??(r==null?void 0:r.role)??"")==="super_admin"}catch{return!1}}const UIe=()=>{const t=VIe(),[e,r]=w.useState([]),[n,a]=w.useState(!1),[i,o]=w.useState(null),[l,c]=w.useState(!1),[u,d]=w.useState(null),[h,m]=w.useState(""),[g,b]=w.useState(""),[y,v]=w.useState(""),[N,S]=w.useState(""),[j,$]=w.useState(""),[C,_]=w.useState(""),[O,E]=w.useState(""),[P,T]=w.useState(""),[I,R]=w.useState(20),[F,L]=w.useState(1),[q,G]=w.useState(new Set),[B,H]=w.useState(null),[K,Z]=w.useState(!1),[V,U]=w.useState(!1),[Y,de]=w.useState(null),[ge,fe]=w.useState(0),[Oe,Ce]=w.useState(!1),le=w.useCallback(async()=>{a(!0);try{const X=await fetch(ut("/api/admin/ifp-plans"),{headers:mr()});if(X.ok){const ve=await X.json();r(ve||[])}else{const ve=await X.json().catch(()=>({}));te.error(ve.message||"Failed to load plans"),r([])}}catch(X){console.error("Error loading plans:",X),te.error("Failed to load plans"),r([])}finally{a(!1)}},[]);w.useEffect(()=>{t&&le()},[t,le]);const we=async()=>{if(!i){te.error("Please select an Excel file first");return}const X=xf();if(!X){te.error("Please log in to upload");return}c(!0),d(null);try{const ve=new FormData;ve.append("file",i);const He=await fetch(ut("/api/admin/ifp-plans/import-excel"),{method:"POST",headers:{Authorization:`Bearer ${X}`},body:ve}),Ie=await He.json().catch(()=>({}));if(!He.ok){te.error(Ie.message||"Upload failed"),d({success:!1,message:Ie.message||"Upload failed",rowsProcessed:0,plansUpserted:0,ratesUpserted:0,errors:Ie.errors||[]});return}d({success:Ie.success??!0,message:Ie.message??"Import complete",rowsProcessed:Ie.rowsProcessed??0,plansUpserted:Ie.plansUpserted??0,ratesUpserted:Ie.ratesUpserted??0,errors:Ie.errors??[]}),Ie.success?te.success(Ie.message):te.warning(Ie.message),o(null),le()}catch(ve){console.error("IFP Excel upload error:",ve),te.error("Upload failed"),d({success:!1,message:"Upload failed",rowsProcessed:0,plansUpserted:0,ratesUpserted:0,errors:[String(ve)]})}finally{c(!1)}},ke=w.useMemo(()=>{let X=e;if(h&&(X=X.filter(Ue=>Ue.ratingArea===h)),g.trim()){const Ue=g.trim().toLowerCase();X=X.filter(ie=>(ie.planName??"").toLowerCase().includes(Ue))}y&&(X=X.filter(Ue=>(Ue.metalLevel??"").trim()===y)),P&&(X=X.filter(Ue=>(Ue.providerNetwork??"").trim()===P));const ve=Ld(N),He=Ld(j);(ve!==null||He!==null)&&(X=X.filter(Ue=>{const ie=Ld(Ue.inNetworkDeductible);return!(ie===null||ve!==null&&ie<ve||He!==null&&ie>He)}));const Ie=Ld(C),dt=Ld(O);return(Ie!==null||dt!==null)&&(X=X.filter(Ue=>{const ie=Ld(Ue.inNetworkMaxOutOfPocket);return!(ie===null||Ie!==null&&ie<Ie||dt!==null&&ie>dt)})),X},[e,h,g,y,N,j,C,O,P]),oe=w.useMemo(()=>[...new Set(e.map(X=>X.ratingArea))].sort(),[e]),qe=w.useMemo(()=>[...new Set(e.map(X=>
1291(X.metalLevel??"").trim()).filter(Boolean))].sort(),[e]),Le=w.useMemo(()=>[...new Set(e.map(X=>(X.providerNetwork??"").trim()).filter(Boolean))].sort(),[e]),Ke=h||g.trim()||y||N||j||C||O||P,ne=()=>{m(""),b(""),v(""),S(""),$(""),_(""),E(""),T(""),L(1)},Se=[20,40,50,100],$e=Math.max(1,Math.ceil(ke.length/I)),Ae=w.useMemo(()=>{const X=(F-1)*I;return ke.slice(X,X+I)},[ke,F,I]);w.useEffect(()=>{F>$e&&$e>=1&&L(1)},[F,$e]),w.useEffect(()=>{L(1)},[h,g,y,N,j,C,O,P]);const Ve=X=>{R(X),L(1)};w.useEffect(()=>{if(!B){de(null),fe(0);return}fe(0),Z(!0),fetch(ut(`/api/admin/ifp-plans/${encodeURIComponent(B)}`),{headers:mr()}).then(X=>X.json()).then(X=>{de(X)}).catch(()=>{te.error("Failed to load plan"),H(null)}).finally(()=>Z(!1))},[B]);const ae=async()=>{if(!(!B||!Y)){U(!0);try{const X=await fetch(ut(`/api/admin/ifp-plans/${encodeURIComponent(B)}`),{method:"PUT",headers:mr(),body:JSON.stringify(Y)}),ve=await X.json().catch(()=>({}));if(!X.ok){te.error(ve.message||"Update failed");return}te.success("Plan updated"),H(null),le()}catch{te.error("Update failed")}finally{U(!1)}}},W=X=>{G(ve=>{const He=new Set(ve);return He.has(X)?He.delete(X):He.add(X),He})},ee=w.useMemo(()=>[...new Set(Ae.map(X=>X.doiPlanIdNumber))],[Ae]),Q=ee.length>0&&ee.every(X=>q.has(X)),xe=()=>{const X=[...new Set(Ae.map(ve=>ve.doiPlanIdNumber))];G(Q?ve=>{const He=new Set(ve);return X.forEach(Ie=>He.delete(Ie)),He}:ve=>{const He=new Set(ve);return X.forEach(Ie=>He.add(Ie)),He})},ye=async()=>{const X=[...q];if(X.length===0){te.error("Select at least one plan");return}if(confirm(`Delete ${X.length} plan(s)? This will remove all rating area data for each plan.`)){Ce(!0);try{const ve=await fetch(ut("/api/admin/ifp-plans"),{method:"DELETE",headers:mr(),body:JSON.stringify({doiPlanIdNumbers:X})}),He=await ve.json().catch(()=>({}));if(!ve.ok){te.error(He.message||"Delete failed");return}te.success(`Deleted ${He.deleted??X.length} plan(s)`),G(new Set),le()}catch{te.error("Delete failed")}finally{Ce(!1)}}};return t?s.jsxs("div",{className:"space-y-6",children:[s.jsx(Wn,{eyebrow:"Benefits",title:"IFP Plan Data",description:"Manage plan metadata and age-based rates via Excel upload, or edit individual plans and delete selected plans."}),s.jsxs("div",{className:"bg-white border border-gray-200 p-6",style:{borderRadius:"12px"},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx(z4,{size:22,className:"text-hba-blue-1"}),s.jsx("h3",{className:"text-lg font-bold text-hba-blue-1",children:"Upload Plan Data"})]}),s.jsx("p",{className:"text-sm text-hba-grey-1 mb-4",children:"Upload an Excel (.xlsx) file to update plan metadata and age-based rates. Existing plans (matching DOI Plan ID Number) will be replaced; new plans will be added."}),s.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[s.jsxs("label",{className:"flex items-center gap-2 px-4 py-2 bg-white border border-gray-300 text-hba-blue-1 font-medium hover:bg-gray-50 transition-colors cursor-pointer",style:{borderRadius:"8px"},children:[s.jsx(fi,{size:18}),i?i.name:"Choose Excel file",s.jsx("input",{type:"file",accept:".xlsx,.xls",onChange:X=>{var ve;o(((ve=X.target.files)==null?void 0:ve[0])??null),d(null)},className:"hidden"})]}),s.jsxs("button",{onClick:we,disabled:!i||l,className:"flex items-center gap-2 px-6 py-2 bg-admin-primary text-white font-medium hover:bg-admin-primary-hover transition-colors disabled:opacity-50 disabled:cursor-not-allowed",style:{borderRadius:"8px"},children:[l?s.jsx(pt,{size:18,className:"animate-spin"}):s.jsx(fi,{size:18}),l?"Uploadingâ¦":"Import Excel"]})]}),u&&s.jsxs("div",{className:`mt-4 p-4 border ${u.success?"bg-green-50 border-green-200":"bg-amber-50 border-amber-200"}`,style:{borderRadius:"8px"},children:[s.jsx("p",{className:`text-sm font-semibold ${u.success?"text-green-800":"text-amber-800"}`,children:u.message}),s.jsxs("p",{className:"text-sm text-gray-700 mt-1",children:["Rows: ",u.rowsProcessed," · Plans: ",u.plansUpserted," · Rates: ",u.ratesUpserted]}),u.errors.length>0&&s.jsxs("ul",{className:"mt-2 text-xs text-amber-800 list-disc list-inside",children:[u.errors.slice(0,5).map((X,ve)=>s.jsx("li",{children:X},ve)),u.errors.length>5&&s.jsxs("li",{children:["â¦and ",u.errors.length-5," more"]})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"bg-white border border-gray-200 p-4",style:{borderRadius:"8px"},children:[s.jsx(z4,{size:24,className:"text-hba-blue-1 mb-2"}),s.jsx("p",{className:"text-xs text-hba-grey-1 mb-1",children:"Total Plan-Rating Area Rows"}),s.jsx("p",{className:"text-3xl font-black text-hba-blue-1",children:e.length})]}),s.jsxs("div",{className:"bg-white border border-gray-200 p-4",style:{borderRadius:"8px"},children:[s.jsx("p",{className:"text-xs text-hba-grey-1 mb-1",children:"Unique Plans"}),s.jsx("p",{className:"text-3xl font-black text-hba-blue-1",children:new Set(e.map(X=>X.doiPlanIdNumber)).size})]})]}),s.jsxs("div",{className:"sticky top-0 z-20 bg-gray-50 border border-gray-200 p-4 -mx-1 px-5 shadow-sm",style:{borderRadius:"12px"},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(Zie,{size:18,className:"text-hba-blue-1"}),s.jsx("h3",{className:"text-sm font-bold text-hba-blue-1 uppercase tracking-wider",children:"Filters"}),Ke&&s.jsx("button",{type:"button",onClick:ne,className:"ml-auto text-xs font-semibold text-hba-orange-1 hover:underline",children:"Clear all"})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-hba-grey-1 mb-1",children:"Plan Name"}),s.jsxs("div",{className:"relative",children:[s.jsx(Ls,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),s.jsx("input",{type:"text",value:g,onChange:X=>b(X.target.value),placeholder:"Search plansâ¦",className:"w-full pl-9 pr-3 py-2 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-hba-orange-1 text-sm",style:{borderRadius:"8px"}})]})]}),oe.length>0&&s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-hba-grey-1 mb-1",children:"Rating Area"}),s.jsxs("select",{value:h,onChange:X=>m(X.target.value),className:"w-full px-3 py-2 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-hba-orange-1 text-sm",style:{borderRadius:"8px"},children:[s.jsx("option",{value:"",children:"All"}),oe.map(X=>s.jsx("option",{value:X,children:X},X))]})]}),qe.length>0&&s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-hba-grey-1 mb-1",children:"Metal Tier"}),s.jsxs("select",{value:y,onChange:X=>v(X.target.value),className:"w-full px-3 py-2 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-hba-orange-1 text-sm",style:{borderRadius:"8px"},children:[s.jsx("option",{value:"",children:"All"}),qe.map(X=>s.jsx("option",{value:X,children:X},X))]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-hba-grey-1 mb-1",children:"Deductible ($)"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"text",value:N,onChange:X=>S(X.target.value),placeholder:"Min",className:"w-full px-3 py-2 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-hba-orange-1 text-sm",style:{borderRadius:"8px"}}),s.jsx("input",{type:"text",value:j,onChange:X=>$(X.target.value),placeholder:"Max",className:"w-full px-3 py-2 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-hba-orange-1 text-sm",style:{borderRadius:"8px"}})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-hba-grey-1 mb-1",children:"OOP Max ($)"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"text",value:C,onChange:X=>_(X.target.value),placeholder:"Min",className:"w-full px-3 py-2 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-hba-orange-1 text-sm",style:{borderRadius:"8px"}}),s.jsx("input",{type:"text",value:O,onChange:X=>E(X.target.value),placeholder:"Max",className:"w-full px-3 py-2 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-hba-orange-1 text-sm",style:{borderRadius:"8px"}})]})]}),Le.length>0&&s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-hba-grey-1 mb-1",children:"Provider Network"}),s.jsxs("select",{value:P,onChange:X=>T(X.target.value),className:"w-full px-3 py-2 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-hba-orange-1 text-sm",style:{borderRadius:"8px"},children:[s.jsx("option",{value:"",children:"All"}),Le.map(X=>s.jsx("option",{value:X,children:X},X))]})]})]}),s.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-4",children:[s.jsxs("p",{className:"text-xs text-hba-grey-1",children:["Showing ",ke.length," of ",e.length," row",e.length!==1?"s":"",Ke&&" (filtered)"]}),q.size>0&&s.jsxs("button",{onClick:ye,disabled:Oe,className:"flex items-center gap-2 px-3 py-2 bg-red-600 text-white text-sm font-medium hover:bg-red-700 disabled:opacity-50",style:{borderRadius:"6px"},children:[Oe?s.jsx(pt,{size:16,className:"animate-spin"}):s.jsx(zs,{size:16}),"Delete ",q.size," plan(s)"]}),s.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[s.jsx("label",{className:"text-xs font-medium text-hba-grey-1",children:"Rows per page:"}),s.jsx("select",{value:I,onChange:X=>Ve(Number(X.target.value)),className:"px-2 py-1.5 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-hba-orange-1 text-sm",style:{borderRadius:"6px"},children:Se.map(X=>s.jsx("option",{value:X,children:X},X))})]})]})]}),s.jsxs("div",{className:"bg-white border border-gray-200 overflow-hidden",style:{borderRadius:"8px"},children:[s.jsxs("div",{className:"overflow-x-auto overflow-y-auto max-h-[calc(100vh-280px)]",children:[n?s.jsx("div",{className:"flex items-center justify-center py-16",children:s.jsx(pt,{size:32,className:"animate-spin text-hba-blue-1"})}):s.jsxs("table",{className:"w-full",children:[s.jsx("thead",{className:"sticky top-0 z-10 bg-gray-100 border-b border-gray-200 shadow-sm",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-3 py-3 w-10",children:s.jsx("input",{type:"checkbox",checked:Q,onChange:xe,className:"rounded border-gray-300"})}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-hba-blue-1 uppercase tracking-wider",children:"DOI Plan ID"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-hba-blue-1 uppercase tracking-wider",children:"Carrier"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-hba-blue-1 uppercase tracking-wider",children:"Plan Name"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-hba-blue-1 uppercase tracking-wider",children:"Rating Area"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-hba-blue-1 uppercase tracking-wider",children:"Metal"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-hba-blue-1 uppercase tracking-wider",children:"Plan Type"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-hba-blue-1 uppercase tracking-wider",children:"Tobacco"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-hba-blue-1 uppercase tracking-wider",children:"Deductible"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-hba-blue-1 uppercase tracking-wider",children:"OOP Max"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-hba-blue-1 uppercase tracking-wider",children:"PCP"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-hba-blue-1 uppercase tracking-wider",children:"Specialist"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-hba-blue-1 uppercase tracking-wider",children:"Provider Network"}),s.jsx("th",{className:"px-3 py-3 text-right text-xs font-bold text-hba-blue-1 uppercase tracking-wider w-20",children:"Actions"})]})}),s.jsx("tbody",{className:"divide-y divide-gray-200",children:Ae.map(X=>s.jsxs("tr",{className:"hover:bg-gray-50",children:[s.jsx("td",{className:"px-3 py-3",children:s.jsx("input",{type:"checkbox",checked:q.has(X.doiPlanIdNumber),onChange:()=>W(X.doiPlanIdNumber),className:"rounded border-gray-300"})}),s.jsx("td",{className:"px-4 py-3 text-sm font-mono text-hba-blue-1",children:X.doiPlanIdNumber}),s.jsx("td",{className:"px-4 py-3 text-sm text-hba-grey-1",children:X.carrier??"â"}),s.jsx("td",{className:"px-4 py-3 text-sm text-hba-grey-1 max-w-xs truncate",title:X.planName??"",children:X.planName??"â"}),s.jsx("td",{className:"px-4 py-3",children:s.jsx("span",{className:"inline-block px-2 py-1 text-xs font-medium bg-hba-blue-1 text-white",style:{borderRadius:"4px"},children:X.ratingArea})}),s.jsx("td",{className:"px-4 py-3 text-sm text-hba-grey-1",children:X.metalLevel??"â"}),s.jsx("td",{className:"px-4 py-3 text-sm text-hba-grey-1",children:X.planType??"â"}),s.jsx("td",{className:"px-4 py-3 text-sm text-hba-grey-1",children:X.tobaccoStatus??"â"}),s.jsx("td",{className:"px-4 py-3 text-sm text-hba-grey-1",children:X.inNetworkDeductible??"â"}),s.jsx("td",{className:"px-4 py-3 text-sm text-hba-grey-1",children:X.inNetworkMaxOutOfPocket??"â"}),s.jsx("td",{className:"px-4 py-3 text-sm text-hba-grey-1",children:X.inNetworkPrimaryCare??"â"}),s.jsx("td",{className:"px-4 py-3 text-sm text-hba-grey-1",children:X.inNetworkSpecialist??"â"}),s.jsx("td",{className:"px-4 py-3 text-sm text-hba-grey-1",children:X.providerNetwork??"â"}),s.jsx("td",{className:"px-3 py-3 text-right",children:s.jsx("button",{onClick:()=>H(X.doiPlanIdNumber),className:"p-2 text-hba-blue-1 hover:bg-gray-100 rounded",title:"Edit plan",children:s.jsx(yle,{size:16})})})]},X.id))})]}),!n&&ke.length===0&&s.jsxs("div",{className:"text-center py-12",children:[s.jsx(z4,{size:48,className:"mx-auto text-hba-grey-1 mb-4"}),s.jsx("p",{className:"text-sm text-hba-grey-1",children:e.length===0?"N
1291o plans found. Upload an Excel file to import plan data.":"No plans match your filters. Try adjusting or clearing filters."})]})]}),!n&&ke.length>0&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 px-4 py-3 border-t border-gray-200 bg-gray-50",children:[s.jsxs("p",{className:"text-sm text-hba-grey-1",children:["Page ",F," of ",$e,s.jsxs("span",{className:"ml-2",children:["(",(F-1)*I+1,"â",Math.min(F*I,ke.length)," of ",ke.length,")"]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>L(X=>Math.max(1,X-1)),disabled:F<=1,className:"flex items-center gap-1 px-3 py-2 border border-gray-300 text-sm font-medium hover:bg-gray-100 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent",style:{borderRadius:"6px"},children:[s.jsx(Fu,{size:18}),"Previous"]}),s.jsxs("button",{onClick:()=>L(X=>Math.min($e,X+1)),disabled:F>=$e,className:"flex items-center gap-1 px-3 py-2 border border-gray-300 text-sm font-medium hover:bg-gray-100 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent",style:{borderRadius:"6px"},children:["Next",s.jsx(Vn,{size:18})]})]})]})]}),B&&s.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",onClick:()=>!V&&H(null),children:s.jsxs("div",{className:"bg-white w-full max-w-4xl max-h-[90vh] overflow-hidden flex flex-col rounded-xl shadow-xl",onClick:X=>X.stopPropagation(),children:[s.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-200",children:[s.jsxs("h3",{className:"text-lg font-bold text-hba-blue-1",children:["Edit Plan: ",B]}),s.jsx("button",{onClick:()=>!V&&H(null),className:"p-2 hover:bg-gray-100 rounded-lg",children:s.jsx(cs,{size:20})})]}),s.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:K?s.jsx("div",{className:"flex justify-center py-12",children:s.jsx(pt,{size:32,className:"animate-spin text-hba-blue-1"})}):Y?s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-sm font-bold text-hba-blue-1 mb-3",children:"Plan Metadata"}),s.jsx("div",{className:"grid grid-cols-2 gap-4",children:[["carrier","Carrier"],["plan_name","Plan Name"],["metal_level","Metal Level"],["plan_type","Plan Type"],["tobacco_status","Tobacco"],["in_network_deductible","Deductible"],["in_network_maximum_out_of_pocket","OOP Max"],["in_network_primary_care_physician","PCP"],["in_network_specialist_visit","Specialist"],["provider_network","Provider Network"]].map(([X,ve])=>s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:ve}),s.jsx("input",{type:"text",value:String(Y.metadata[X]??""),onChange:He=>de(Ie=>Ie&&{...Ie,metadata:{...Ie.metadata,[X]:He.target.value}}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg text-sm"})]},X))})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"text-sm font-bold text-hba-blue-1 mb-3",children:"Age-Based Rates by Rating Area"}),s.jsx("div",{className:"flex gap-2 mb-3 overflow-x-auto pb-2",children:Y.rates.map((X,ve)=>s.jsx("button",{type:"button",onClick:()=>fe(ve),className:`shrink-0 px-4 py-2 text-sm font-medium rounded-lg ${ge===ve?"bg-hba-blue-1 text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`,children:X.ratingArea},X.ratingArea))}),Y.rates[ge]&&s.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"bg-gray-50",children:[s.jsx("th",{className:"px-2 py-2 text-left text-xs font-semibold text-gray-600 w-20",children:"Age range"}),[1,2,3,4,5,6,7,8,9,10].map(X=>s.jsx("th",{className:"px-2 py-2 text-center text-xs font-semibold text-gray-600",children:X},X))]})}),s.jsx("tbody",{children:[0,1,2,3,4,5,6,7,8,9].map(X=>{const ve=X*10+1,He=ge;return s.jsxs("tr",{className:X%2===0?"bg-white":"bg-gray-50/50",children:[s.jsxs("td",{className:"px-2 py-1.5 text-xs font-medium text-gray-600 border-r border-gray-200",children:[ve,"â",ve+9]}),[0,1,2,3,4,5,6,7,8,9].map(Ie=>{const dt=X*10+Ie+1,Ue=`age_${dt}`,ie=Y.rates[He].ages[Ue];return s.jsx("td",{className:"px-1 py-1 border-b border-r border-gray-100",children:s.jsx("input",{type:"number",step:"0.01",min:0,value:ie??"",onChange:it=>{const jr=it.target.value?Number(it.target.value):null;de(ir=>{if(!ir)return ir;const Vr=[...ir.rates];return Vr[He]={...Vr[He],ages:{...Vr[He].ages,[Ue]:jr}},{...ir,rates:Vr}})},className:"w-full min-w-[52px] px-1.5 py-1 text-xs border border-gray-300 rounded focus:ring-1 focus:ring-hba-orange-1 focus:border-hba-orange-1"})},dt)})]},X)})})]}),s.jsx("p",{className:"px-3 py-2 text-xs text-gray-500 bg-gray-50 border-t border-gray-200",children:"Monthly premium ($) by age. Columns 1â10 = ages within each row range."})]})]})]}):null}),Y&&s.jsxs("div",{className:"p-4 border-t border-gray-200 flex justify-end gap-2",children:[s.jsx("button",{onClick:()=>!V&&H(null),className:"px-4 py-2 border border-gray-300 rounded-lg text-sm font-medium hover:bg-gray-50",children:"Cancel"}),s.jsxs("button",{onClick:ae,disabled:V,className:"flex items-center gap-2 px-6 py-2 bg-admin-primary text-white rounded-lg text-sm font-medium hover:bg-admin-primary-hover disabled:opacity-50",children:[V?s.jsx(pt,{size:16,className:"animate-spin"}):s.jsx(vU,{size:16}),"Save Changes"]})]})]})})]}):s.jsxs("div",{className:"flex flex-col items-center justify-center py-24 px-6",children:[s.jsx(is,{size:64,className:"text-hba-grey-1 mb-4"}),s.jsx("h3",{className:"text-xl font-bold text-hba-blue-1 mb-2",children:"Access Restricted"}),s.jsx("p",{className:"text-sm text-hba-grey-1 text-center max-w-md",children:"IFP Plan management is available only to Super Admins. To update plan data, please contact an administrator."})]})};
1291function I7({label:t,value:e,onChange:r,accept:n="image/*",employeeSlug:a}){const i=w.useRef(null),[o,l]=w.useState(!1),c=async u=>{var h;const d=(h=u.target.files)==null?void 0:h[0];if(d){l(!0);try{const m=new FormData;m.append("file",d);const g={},b=localStorage.getItem("hba_access_token");b&&(g.Authorization=`Bearer ${b}`);const y=new URLSearchParams({prefix:"team"});a&&y.set("employee",a);const v=await fetch(ut(`/api/admin/team/upload?${y.toString()}`),{method:"POST",headers:g,body:m});if(!v.ok){const S=await v.json().catch(()=>({}));throw new Error(S.message||"Upload failed")}const N=await v.json();if(N.url)r(N.url);else throw new Error("No URL returned")}catch(m){te.error(m.message)}finally{l(!1),u.target.value=""}}};return s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:t}),s.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[e&&s.jsxs("div",{className:"relative w-24 h-24 rounded-lg overflow-hidden bg-gray-100 border border-gray-200",children:[s.jsx("img",{src:e,alt:"",className:"w-full h-full object-cover"}),s.jsx("button",{type:"button",onClick:()=>r(""),className:"absolute top-1 right-1 w-6 h-6 bg-red-500 text-white rounded flex items-center justify-center hover:bg-red-600","aria-label":"Remove image",children:s.jsx(cs,{className:"w-4 h-4"})})]}),s.jsxs("div",{children:[s.jsx("input",{ref:i,type:"file",accept:n,className:"hidden",onChange:c,disabled:o}),s.jsxs("button",{type:"button",onClick:()=>{var u;return(u=i.current)==null?void 0:u.click()},disabled:o,className:"flex items-center gap-2 px-4 py-2 border border-gray-300 rounded-lg text-hba-blue-1 font-medium hover:bg-gray-50 disabled:opacity-50",children:[s.jsx(fi,{className:"w-4 h-4"}),o?"Uploadingâ¦":e?"Replace":"Upload"]})]})]})]})}const xF={cardDefault:"",cardHover:"",hero:"",gallery:[]},yF={startDateLabel:"",funFactTitle:"",funFactText:""};function D7(t){return t.toLowerCase().trim().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"")}function qIe({employee:t,onClose:e,onSaved:r}){const[n,a]=w.useState(!1),[i,o]=w.useState(""),[l,c]=w.useState(""),[u,d]=w.useState("[email protected]"),[h,m]=w.useState(""),[g,b]=w.useState(""),[y,v]=w.useState(""),[N,S]=w.useState(""),[j,$]=w.useState(""),[C,_]=w.useState(""),[O,E]=w.useState(!0),[P,T]=w.useState(0),[I,R]=w.useState(xF),[F,L]=w.useState(yF);w.useEffect(()=>{var B,H,K,Z,V,U,Y;t?(o(t.name),c(t.title),d(t.email||"[email protected]"),m(t.location||""),b(t.department||""),v(t.shortDescription||""),S(t.tagline||""),$(t.bio||""),_(t.linkedinUrl||""),E(t.isActive),T(t.sortOrder),R({cardDefault:((B=t.images)==null?void 0:B.cardDefault)??"",cardHover:((H=t.images)==null?void 0:H.cardHover)??"",hero:((K=t.images)==null?void 0:K.hero)??"",gallery:((Z=t.images)==null?void 0:Z.gallery)??[]}),L({startDateLabel:((V=t.metadata)==null?void 0:V.startDateLabel)??"",funFactTitle:((U=t.metadata)==null?void 0:U.funFactTitle)??"",funFactText:((Y=t.metadata)==null?void 0:Y.funFactText)??""})):(o(""),c(""),d("[email protected]"),m(""),b(""),v(""),S(""),$(""),_(""),E(!0),T(0),R(xF),L(yF))},[t]);const q=()=>i.trim()?l.trim()?!0:(te.error("Title is required"),!1):(te.error("Name is required"),!1),G=async B=>{if(B.preventDefault(),!!q()){a(!0);try{const H={name:i.trim(),title:l.trim(),email:u.trim()||"[email protected]",location:h.trim(),department:g.trim(),shortDescription:y.trim(),tagline:N.trim(),bio:j.trim(),linkedinUrl:C.trim(),isActive:O,sortOrder:P,images:I,metadata:F};if(t){const K=await fetch(ut(`/api/admin/team/${t.id}`),{method:"PUT",headers:mr(),body:JSON.stringify(H)});if(!K.ok){const Z=await K.json().catch(()=>({}));throw new Error(Z.message||"Update failed")}te.success("Employee updated")}else{const K=await fetch(ut("/api/admin/team"),{method:"POST",headers:mr(),body:JSON.stringify(H)});if(!K.ok){const Z=await K.json().catch(()=>({}));throw new Error(Z.message||"Create failed")}te.success("Employee added")}r(),e()}catch(H){te.error(H.message)}finally{a(!1)}}};return s.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4 overflow-y-auto",children:s.jsxs("div",{className:"bg-white rounded-xl max-w-3xl w-full max-h-[90vh] overflow-y-auto shadow-xl",children:[s.jsxs("div",{className:"sticky top-0 bg-white border-b border-gray-200 px-6 py-4 flex items-center justify-between",children:[s.jsx("h2",{className:"text-xl font-bold text-hba-blue-1 uppercase",children:t?"Edit Employee":"Add Employee"}),s.jsx("button",{type:"button",onClick:e,className:"p-2 text-hba-grey-1 hover:text-hba-blue-1","aria-label":"Close",children:s.jsx(cs,{className:"w-5 h-5"})})]}),s.jsxs("form",{onSubmit:G,className:"p-6 space-y-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Name *"}),s.jsx("input",{type:"text",value:i,onChange:B=>o(B.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Title *"}
1291),s.jsx("input",{type:"text",value:l,onChange:B=>c(B.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent",required:!0})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Email"}),s.jsx("input",{type:"email",value:u,onChange:B=>d(B.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Location"}),s.jsx("input",{type:"text",value:h,onChange:B=>m(B.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Department"}),s.jsx("input",{type:"text",value:g,onChange:B=>b(B.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Short description (card)"}),s.jsx("textarea",{value:y,onChange:B=>v(B.target.value),rows:2,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Tagline (detail page)"}),s.jsx("input",{type:"text",value:N,onChange:B=>S(B.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Bio"}),s.jsx("textarea",{value:j,onChange:B=>$(B.target.value),rows:6,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"LinkedIn URL"}),s.jsx("input",{type:"url",value:C,onChange:B=>_(B.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent",placeholder:"https://linkedin.com/in/..."})]}),s.jsxs("div",{className:"flex flex-wrap gap-6 items-center",children:[s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[s.jsx("input",{type:"checkbox",checked:O,onChange:B=>E(B.target.checked),className:"rounded border-gray-300 text-hba-orange-1 focus:ring-hba-orange-1"}),s.jsx("span",{className:"text-sm font-medium text-hba-blue-1",children:"Active (show on site)"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-1",children:"Sort order"}),s.jsx("input",{type:"number",min:0,value:P,onChange:B=>T(parseInt(B.target.value,10)||0),className:"w-24 px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1"})]})]}),s.jsx("hr",{className:"border-gray-200"}),s.jsxs("div",{className:"space-y-6",children:[s.jsx("h3",{className:"font-bold text-hba-blue-1",children:"Images"}),s.jsx(I7,{label:"Card image (default)",value:I.cardDefault,onCh
1291ange:B=>R(H=>({...H,cardDefault:B})),employeeSlug:(t==null?void 0:t.slug)??(i.trim()?D7(i):void 0)}),s.jsx(I7,{label:"Card image (hover)",value:I.cardHover,onChange:B=>R(H=>({...H,cardHover:B})),employeeSlug:(t==null?void 0:t.slug)??(i.trim()?D7(i):void 0)}),s.jsx(I7,{label:"Hero image (detail page)",value:I.hero,onChange:B=>R(H=>({...H,hero:B})),employeeSlug:(t==null?void 0:t.slug)??(i.trim()?D7(i):void 0)}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Gallery URLs (one per line)"}),s.jsx("textarea",{value:I.gallery.join(` 1292`),onChange:B=>R(H=>({...H,gallery:B.target.value.split(` 1293`).map(K=>K.trim()).filter(Boolean)})),rows:3,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1",placeholder:"https://..."})]})]}),s.jsx("hr",{className:"border-gray-200"}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("h3",{className:"font-bold text-hba-blue-1",children:"Metadata"}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Joined HBA label"}),s.jsx("input",{type:"text",value:F.startDateLabel,onChange:B=>L(H=>({...H,startDateLabel:B.target.value})),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1",placeholder:"e.g. Joined HBA in 2021"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Fun fact title"}),s.jsx("input",{type:"text",value:F.funFactTitle,onChange:B=>L(H=>({...H,funFactTitle:B.target.value})),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Fun fact text"}),s.jsx("textarea",{value:F.funFactText,onChange:B=>L(H=>({...H,funFactText:B.target.value})),rows:2,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1"})]})]}),s.jsxs("div",{className:"flex gap-3 pt-4 border-t border-gray-200",children:[s.jsx("button",{type:"button",onClick:e,className:"flex-1 px-6 py-3 border border-gray-300 rounded-lg text-hba-blue-1 font-bold hover:bg-gray-50",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:n,className:"flex-1 px-6 py-3 bg-admin-primary hover:bg-admin-primary-hover text-white font-bold rounded-lg disabled:opacity-50",children:n?"Savingâ¦":"Save"})]})]})]})})}const WIe=()=>{const[t,e]=w.useState([]),[r,n]=w.useState(!0),[a,i]=w.useState(null),[o,l]=w.useState(!1),[c,u]=w.useState(null),d=async()=>{n(!0);try{const b=await fetch(ut("/api/admin/team"),{headers:mr()});if(b.ok){const y=await b.json(),v=Array.isArray(y)?y:[];e(v.sort((N,S)=>N.sortOrder-S.sortOrder))}else{const y=await b.json().catch(()=>({}));te.error(y.message||"Failed to load employees")}}catch{te.error("Failed to load employees")}finally{n(!1)}};w.useEffect(()=>{d()},[]);const h=async b=>{try{const y=await fetch(ut(`/api/admin/team/${b}`),{method:"DELETE",headers:mr()});if(!y.ok){const v=await y.json().catch(()=>({}));throw new Error(v.message||"Delete failed")}te.success("Employee removed"),d()}catch(y){te.error(y.message)}},m=async(b,y)=>{const v=[...t],N=y==="up"?b-1:b+1;if(N<0||N>=v.length)return;[v[b],v[N]]=[v[N],v[b]];const S=v.map(j=>j.id);try{if(!(await fetch(ut("/api/admin/team/reorder"),{method:"POST",headers:mr(),body:JSON.stringify({ids:S})})).ok)throw new Error("Reorder failed");e(v.map(($,C)=>({...$,sortOrder:C}))),te.success("Order updated")}catch{te.error("Failed to reorder")}},g=async()=>{try{const b=await fetch(ut("/api/admin/team/reorder"),{method:"POST",headers:mr(),body:JSON.stringify({ids:t.map(v=>v.id)})});if(!b.ok)throw new Error("Reorder failed");const y=await b.json();e(Array.isArray(y)?y:t),l(!1),te.success("Order saved")}catch{te.error("Failed to save order")}};return s.jsxs("div",{children:[s.jsx(Wn,{eyebrow:"Website",title:"Employee Cards",description:"Team members shown on the About Us / Team page. Reorder, edit, or add new cards.",actions:s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.length>0&&s.jsx(s.Fragment,{children:o?s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:g,className:Et,children:"Save order"}),s.jsx("button",{type:"button",onClick:()=>l(!1),className:Et,children:"Cancel"})]}):s.jsxs("button",{type:"button",onClick:()=>l(!0),className:Et,children:[s.jsx(iS,{className:"h-4 w-4"}),"Reorder"]})}),s.jsxs("button",{type:"button",onClick:()=>i("new"),className:rr,children:[s.jsx(ss,{className:"h-4 w-4"}),"Add Employee"]})]})}),r?s.jsx(UQ,{label:"Loading employees"}):t.length===0?s.jsx(Mo,{title:"No employee cards yet",description:"Add a team member to show them on the public team page.",action:s.jsxs("button",{type:"button",onClick:()=>i("new"),className:rr,children:[s.jsx(ss,{className:"h-4 w-4"}),"Add your first employee"]})}):s.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:t.map((b,y)=>s.jsxs("div",{className:"overflow-hidden rounded-admin border border-admin-border bg-admin-surface shadow-admin",children:[s.jsxs("div",{className:"flex gap-4 p-4",children:[o&&s.jsxs("div",{className:"flex flex-col justify-center gap-0",children:[s.jsx("button",{type:"button",onClick:()=>m(y,"up"),disabled:y===0,className:"p-1 text-hba-grey-1 hover:text-hba-blue-1 disabled:opacity-30","aria-label":"Move up",children:s.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})})}),s.jsx("button",{type:"button",onClick:()=>m(y,"down"),disabled:y===t.length-1,className:"p-1 text-hba-grey-1 hover:text-hba-blue-1 disabled:opacity-30","aria-label":"Move down",children:s.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),s.jsx("div",{className:"w-20 h-20 rounded-lg overflow-hidden flex-shrink-0 bg-gray-100",children:kh(b,"cardDefault")?
1293s.jsx(Dt,{src:kh(b,"cardDefault"),alt:"",className:"w-full h-full object-cover"}):s.jsx("div",{className:"w-full h-full flex items-center justify-center text-hba-grey-1 font-bold text-xl",children:b.name.charAt(0)})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h3",{className:"font-bold text-hba-blue-1 truncate",children:b.name}),s.jsx("p",{className:"text-sm text-hba-orange-1 font-semibold uppercase tracking-wide truncate",children:b.title}),!b.isActive&&s.jsx(ih,{tone:"inactive",className:"mt-1",children:"Inactive"})]})]}),!o&&s.jsxs("div",{className:"flex gap-2 border-t border-admin-border p-4",children:[s.jsxs("button",{type:"button",onClick:()=>i(b),className:`${Et} flex-1`,children:[s.jsx(NU,{className:"h-4 w-4"}),"Edit"]}),s.jsxs("button",{type:"button",onClick:()=>u(b.id),className:Pu,children:[s.jsx(zs,{className:"h-4 w-4"}),"Delete"]})]})]},b.id))}),s.jsx(Tv,{open:!!c,onOpenChange:b=>{b||u(null)},title:"Delete employee card?",description:"This cannot be undone. The team member will be removed from the public team page.",confirmLabel:"Delete",destructive:!0,onConfirm:()=>{c&&(h(c),u(null))}}),a!==null&&s.jsx(qIe,{employee:a==="new"?null:a,onClose:()=>i(null),onSaved:d})]})},L7={super_admin:{label:"Super Admin",description:"Full system access, including managing other admins and billing.",color:"bg-hba-blue-1 text-white",icon:is},admin:{label:"Admin",description:"Can manage content, employee cards, and approve articles. Cannot manage Super Admins.",color:"bg-hba-orange-1 text-white",icon:vce},regular_user:{label:"Regular User",description:"Can draft articles and view data. Articles require Admin approval to publish.",color:"bg-gray-400 text-white",icon:hS}},GIe=()=>{const[t,e]=w.useState([]),[r,n]=w.useState(!0),[a,i]=w.useState(!1),[o,l]=w.useState(null),[c,u]=w.useState(null),[d,h]=w.useState(""),[m,g]=w.useState(""),[b,y]=w.useState("regular_user"),[v,N]=w.useState(null);w.useEffect(()=>{S()},[]);const S=async()=>{n(!0);try{const P=await fetch(ut("/api/admin/users"),{headers:mr()});if(P.ok){const T=await P.json();e(T)}else{const T=await P.json().catch(()=>({}));te.error(T.message||"Failed to load users")}}catch(P){console.error("Error fetching users:",P),te.error("Failed to load users")}finally{n(!1)}},j=P=>{P?(l(P),h(P.fullName),g(P.email),y(P.role)):(l(null),C()),i(!0)},$=()=>{i(!1),l(null),C()},C=()=>{h(""),g(""),y("regular_user")},_=async()=>{if(!d||!m){te.error("Please fill in all required fields");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(m)){te.error("Please enter a valid email address");return}try{const T={...(o==null?void 0:o.id)&&{id:o.id},fullName:d,email:m,role:b,...o?{}:{redirectOrigin:window.location.origin}},I=await fetch(ut("/api/admin/users"),{method:"POST",headers:mr(),body:JSON.stringify(T)});if(!I.ok){const R=await I.json().catch(()=>({}));throw new Error(R.message||"Failed to save user")}te.success(o?"User updated!":"Invitation sent!"),$(),S()}catch(T){console.error("Error saving user:",T),te.error(T instanceof Error?T.message:"Failed to save user")}},O=async P=>{try{const T=await fetch(ut(`/api/admin/users/${P}`),{method:"DELETE",headers:mr()});if(!T.ok){const I=await T.json().catch(()=>({}));throw new Error(I.message||"Failed to revoke access")}te.success("Access revoked"),S()}catch(T){console.error("Error revoking access:",T),te.error("Failed to revoke access")}},E=({role:P})=>{const T=L7[P],I=T.icon;return s.jsxs("span",{className:`inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium ${T.color}`,children:[s.jsx(I,{size:14}),T.label]})};return s.jsxs("div",{children:[s.jsx(Wn,{eyebrow:"Administration",title:"User Management",description:"Control user permissions and invite new team members.",actions:s.jsxs("button",{type:"button",onClick:()=>j(),className:rr,children:[s.jsx(ss,{size:16}),"Invite New User"]})}),r?s.jsx(UQ,{label:"Loading users"}):t.length===0?s.jsx(Mo,{title:"No users added yet",description:"Invite a teammate to get started.",action:s.jsxs("button",{type:"button",onClick:()=>j(),className:rr,children:[s.jsx(ss,{size:16}),"Invite New User"]})}):s.jsx("div",{className:"overflow-hidden rounded-admin border border-admin-border bg-admin-surface shadow-admin",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full",children:[s.jsx("thead",{className:"bg-[#F5F7F8] border-b border-admin-border",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-4 py-3 text-left text-xs font-semibold uppercase tracking-wider text-admin-muted",children:"User"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-semibold uppercase tracking-wider text-admin-muted",children:"Email Address"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-semibold uppercase tracking-wider text-admin-muted",children:"Role"}),s.jsx("th",{className:"px-4 py-3 text-left text-xs font-semibold uppercase tracking-wider text-admin-muted",children:"Status"}),s.jsx("th",{className:"px-4 py-3 text-right text-xs font-semibold uppercase tracking-wider text-admin-muted",children:"Actions"})]})}),s.jsx("tbody",{className:"divide-y divide-admin-border text-sm",children:t.map(P=>s.jsxs("tr",{className:"hover:bg-[#F5F7F8] transition-colors duration-200",children:[s.jsx("td",{className:"px-6 py-4",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-hba-blue-1 flex items-center justify-center text-white font-bold",children:P.fullName.charAt(0).toUpperCase()}),s.jsx("span",{className:"font-bold text-hba-blue-1",children:P.fullName})]})}),s.jsx("td",{className:"px-6 py-4 text-hba-grey-1",children:P.email}),s.jsx("td",{className:"px-6 py-4",children:s.jsx(E,{role:P.role})}),s.jsx("td",{className:"px-6 py-4",children:s.jsx(ih,{tone:P.status==="active"?"active":"pending",children:P.status==="active"?"Active":"Pending Invite"})}),s.jsx("td",{className:"px-6 py-4 text-right",children:s.jsxs("div",{className:"relative inline-block",children:[s.jsx("button",{onClick:()=>u(c===P.id?null:P.id),className:"p-2 hover:bg-gray-100 rounded-lg transition-colors",children:s.jsx(Mie,{size:18,className:"text-hba-grey-1"})}),c===P.id&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>u(null)}),s.jsxs("div",{className:"absolute right-0 mt-2 w-48 bg-white rounded-lg shadow-lg border border-gray-200 z-20",children:[s.jsxs("button",{onClick:()=>{j(P),u(null)},className:"w-full px-4 py-2 text-left text-sm hover:bg-gray-50 flex items-center gap-2 text-hba-blue-1 font-medium rounded-t-lg",children:[s.jsx(NU,{size:16}),"Edit User"]}),s.jsxs("button",{onClick:()=>{N(P),u(null)},className:"w-full px-4 py-2 text-left text-sm hover:bg-gray-50 flex items-center gap-2 text-red-600 font-medium rounded-b-lg",children:[s.jsx(zs,{size:16}),"Revoke Access"]})]})]})]})})]},P.id))})]})})}),a&&s.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:s.jsxs("div",{className:"bg-white rounded-lg max-w-2xl w-full max-h-[90vh] overflow-y-auto",children:[s.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-admin-border",children:[s.jsx("h2",{className:"font-heading text-xl font-semibold text-admin-text",children:o?"Edit User Permissions":"Invite New User"}),s.jsx("button",{onClick:$,className:"text-hba-grey-1 hover:text-hba-blue-1 transition-colors",children:s.jsx(cs,{size:24})})]}),s.jsxs("div",{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Full Name *"}),s.jsx("input",{type:"text",value:d,onChange:P=>h(P.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent outline-none",placeholder:"John Doe"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Email Address *"}),s.jsx("input",{type:"email",value:m,onChange:P=>g(P.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent outline-none",placeholder:"[email protected]",disabled:!!o}),o&&s.jsx("p",{className:"text-xs text-hba-grey-1 mt-1",children:"Email cannot be changed after creation"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-3",children:"Role & Permissions *"}),s.jsx("div",{className:"space-y-3",children:Object.keys(L7).map(P=>{const T=L7[P],I=T.icon;return s.jsxs("label",{className:`flex items-start gap-4 p-4 border-2 rounded-lg cursor-pointer transition-all ${b===P?"border-hba-orange-1 bg-orange-50":"border-gray-200 hover:border-gray-300"}`,children:[s.jsx("input",{type:"radio",name:"role",value:P,checked:b===P,onChange:R=>y(R.target.value),className:"mt-1"}),s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(I,{size:18,className:"text-hba-blue-1"}),s.jsx("span",{className:"font-bold text-hba-blue-1",children:T.label})]}),s.jsx("p",{className:"text-sm text-hba-grey-1",children:T.description})]})]},P)})})]})]}),s.jsxs("div",{className:"flex gap-3 p-6 border-t border-gray-200",children:[s.jsx("button",{onClick:$,className:Et,children:"Cancel"}),s.jsx("button",{onClick:_,className:rr,children:o?"Save Changes":"Send Invitation"})]})]})}),s.jsx(Tv,{open:!!v,onOpenChange:P=>{P||N(null)},title:"Revoke access?",description:v?`This will revoke access for ${v.fullName}. They will no longer be able to sign in.`:"",confirmLabel:"Revoke access",destructive:!0,onConfirm:()=>{v&&(O(v.id),N(null))}})]})},KIe={static:"Static (Mock)",google_places:"Google Places API (Real)",google_business_profile:"Google Business Profile",scraper:"Scraper"},YIe=[{code:"reno",label:"Reno"},{code:"carson-city-minden",label:"Carson City / Minden"},{code:"sparks",label:"Sparks"},{code:"fernley",label:"Fernley"},{code:"henderson",label:"Las Vegas"}
1293],XIe=()=>{const[t,e]=w.useState(!1),[r,n]=w.useState(!1),[a,i]=w.useState("google_places"),[o,l]=w.useState([]),[c,u]=w.useState(!0),d=w.useRef(null),[h,m]=w.useState("reno"),[g,b]=w.useState([]),[y,v]=w.useState(!1);w.useEffect(()=>{N()},[]),w.useEffect(()=>{v(!0),fetch(ut(`/api/reviews/offices/${h}/reviews?limit=100&sort=recent`)).then(C=>C.ok?C.json():{reviews:[]}).then(C=>b(C.reviews??[])).catch(()=>b([])).finally(()=>v(!1))},[h]);const N=async()=>{u(!0);try{const C=await fetch(ut("/api/admin/reviews/sync-runs?limit=10"),{headers:mr()});if(C.ok){const _=await C.json();l(_)}}catch(C){console.error("Failed to load sync runs:",C)}finally{u(!1)}},S=async()=>{e(!0);try{const _=await(await fetch(ut("/api/admin/reviews/sync"),{method:"POST",headers:mr(),body:JSON.stringify({provider:a})})).json();_.status==="success"?te.success(`Synced ${_.reviews_upserted} reviews from ${_.offices_processed} offices`):te.error(_.error_message||"Sync failed"),N()}catch(C){const _=C instanceof Error?C.message:"Sync failed";te.error(_),N()}finally{e(!1)}},j=async C=>{var O;const _=(O=C.target.files)==null?void 0:O[0];if(_){n(!0);try{const E=new FormData;E.append("file",_);const P=mr().Authorization,I=await(await fetch(ut("/api/admin/reviews/import-csv"),{method:"POST",headers:P?{Authorization:P}:{},body:E})).json();I.success?te.success(`Imported ${I.imported} reviews (skipped ${I.skipped}, errors ${I.errors})`):te.error(I.message||"Import failed")}catch(E){te.error(E instanceof Error?E.message:"Import failed")}finally{n(!1),C.target.value=""}}},$=C=>C?new Date(C).toLocaleString():"â";return s.jsxs("div",{className:"space-y-8",children:[s.jsx(Wn,{eyebrow:"Website",title:"Google Reviews",description:"Sync reviews from Google for your office locations. Use Google Places API for live reviews, or import a historical CSV."}),s.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6 shadow-sm",children:[s.jsx("h3",{className:"text-lg font-semibold text-hba-blue-1 mb-4",children:"Manual Sync"}),s.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Provider"}),s.jsxs("select",{value:a,onChange:C=>i(C.target.value),className:"block w-64 rounded-md border border-gray-300 px-3 py-2 text-sm focus:border-hba-orange-1 focus:ring-hba-orange-1",children:[s.jsx("option",{value:"google_places",children:"Google Places API (Real reviews)"}),s.jsx("option",{value:"static",children:"Static / Mock (testing only)"}),s.jsx("option",{value:"google_business_profile",children:"Google Business Profile"}),s.jsx("option",{value:"scraper",children:"Scraper"})]})]}),s.jsx("div",{className:"flex items-end",children:s.jsx("button",{onClick:S,disabled:t,className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-admin-primary text-white font-medium hover:bg-admin-primary-hover disabled:opacity-60 disabled:cursor-not-allowed transition-colors",children:t?s.jsxs(s.Fragment,{children:[s.jsx(pt,{size:18,className:"animate-spin"}),"Syncingâ¦"]}):s.jsxs(s.Fragment,{children:[s.jsx(ky,{size:18}),"Sync Now"]})})})]}),s.jsxs("p",{className:"mt-3 text-sm text-gray-500",children:[a==="google_places"&&"Requires GOOGLE_PLACES_API_KEY in api/.env. Google returns up to 5 reviews per location.",a==="static"&&"Uses sample data for testing. No API key needed."]})]}),s.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6 shadow-sm",children:[s.jsx("h3",{className:"text-lg font-semibold text-hba-blue-1 mb-4",children:"Import from WP Review Slider"}),s.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Upload a CSV export from WP Review Slider Pro. Rows are mapped to offices: Reno, Carson City Minden, Sparks, Fernley, Las Vegas."}),s.jsx("input",{ref:d,type:"file",accept:".csv",className:"hidden",onChange:j,disabled:r}),s.jsx("button",{onClick:()=>{var C;return(C=d.current)==null?void 0:C.click()},disabled:r,className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-gray-100 text-gray-800 font-medium hover:bg-gray-200 disabled:opacity-60 disabled:cursor-not-allowed transition-colors border border-gray-300",children:r?s.jsxs(s.Fragment,{children:[s.jsx(pt,{size:18,className:"animate-spin"}),"Importingâ¦"]}):s.jsxs(s.Fragment,{children:[s.jsx(fi,{size:18}),"Choose CSV file to import"]}
1293)})]}),s.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm overflow-hidden",children:[s.jsxs("div",{className:"px-6 py-4 border-b border-gray-200",children:[s.jsx("h3",{className:"text-lg font-semibold text-hba-blue-1 mb-4",children:"Reviews by Location"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:YIe.map(C=>s.jsx("button",{onClick:()=>m(C.code),className:`px-4 py-2 rounded-lg text-sm font-medium transition-colors ${h===C.code?"bg-admin-primary text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`,children:C.label},C.code))})]}),y?s.jsx("div",{className:"p-8 text-center text-gray-500",children:"Loadingâ¦"}):g.length===0?s.jsx("div",{className:"p-8 text-center text-gray-500",children:"No reviews for this location."}):s.jsx("div",{className:"overflow-x-auto max-h-[400px] overflow-y-auto",children:s.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[s.jsx("thead",{className:"bg-gray-50 sticky top-0",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Photo"}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Date"}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Reviewer"}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Rating"}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Review"})]})}),s.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:g.map(C=>s.jsxs("tr",{children:[s.jsx("td",{className:"px-6 py-4",children:C.reviewer_profile_photo_url?s.jsx("img",{src:C.reviewer_profile_photo_url,alt:C.reviewer_name??"Reviewer",className:"w-10 h-10 rounded-full object-cover border border-gray-200"}):s.jsx("div",{className:"w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center text-gray-500 text-sm font-medium",children:(C.reviewer_name??"?").charAt(0).toUpperCase()})}),s.jsx("td",{className:"px-6 py-4 text-sm text-gray-600 whitespace-nowrap",children:C.review_date?new Date(C.review_date).toLocaleDateString():"â"}),s.jsx("td",{className:"px-6 py-4 text-sm font-medium text-gray-900",children:C.reviewer_name??"â"}),s.jsxs("td",{className:"px-6 py-4 text-sm",children:[C.rating," â
"]}),s.jsx("td",{className:"px-6 py-4 text-sm text-gray-600 max-w-md truncate",title:C.review_text??"",children:C.review_text??"â"})]},C.id))})]})})]}),s.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm overflow-hidden",children:[s.jsx("div",{className:"px-6 py-4 border-b border-gray-200",children:s.jsx("h3",{className:"text-lg font-semibold text-hba-blue-1",children:"Recent Sync Runs"})}),c?s.jsx("div",{className:"p-8 text-center text-gray-500",children:"Loadingâ¦"}):o.length===0?s.jsx("div",{className:"p-8 text-center text-gray-500",children:"No sync runs yet."}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[s.jsx("thead",{className:"bg-gray-50",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Started"}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Provider"}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Status"}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Offices"}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Upserted"}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Deleted"})]})}),s.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:o.map(C=>s.jsxs("tr",{children:[s.jsx("td",{className:"px-6 py-4 text-sm text-gray-900 whitespace-nowrap",children:$(C.started_at)}),s.jsx("td",{className:"px-6 py-4 text-sm text-gray-600",children:KIe[C.provider]??C.provider}),s.jsx("td",{className:"px-6 py-4",children:C.status==="success"?s.jsxs("span",{className:"inline-flex items-center gap-1 text-green-600",children:[s.jsx(uie,{size:16}),"Success"]}):C.status==="failed"?s.jsxs("span",{className:"inline-flex items-center gap-1 text-red-600",title:C.error_message??"",children:[s.jsx(iU,{size:16}),"Failed"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 text-amber-600",children:[s.jsx(pt,{size:16,className:"animate-spin"}),"Running"]})}),s.jsx("td",{className:"px-6 py-4 text-sm text-gray-600",children:C.offices_processed}),s.jsx("td",{className:"px-6 py-4 text-sm text-gray-600",children:C.reviews_upserted}),s.jsx("td",{className:"px-6 py-4 text-sm text-gray-600",children:C.reviews_marked_deleted})]},C.id))})]})})]})]})},Qb="hba-public-files",oZ=new Set(["png","jpg","jpeg","webp","svg"]),lZ=new Set(["pdf"]),cZ=new Set(["doc","docx"]),uZ=new Set(["xls","xlsx","csv"]),JIe=new Set(["image/png","image/jpeg","image/webp","image/svg+xml","
1293image/jpg"]),QIe=new Set(["application/pdf"]),ZIe=new Set(["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]),eDe=new Set(["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/csv","application/csv","text/comma-separated-values"]),tDe=10*1024*1024,rDe=25*1024*1024;function K$(t){const e=t.toLowerCase().split(".");return e.length>1?e[e.length-1]:""}function nDe(t){const e=K$(t.name);return oZ.has(e)?"images":lZ.has(e)?"pdfs":cZ.has(e)?"docs":uZ.has(e)?"sheets":"misc"}function dZ(t){const e=K$(t.name),r=nDe(t);if(!(oZ.has(e)||lZ.has(e)||cZ.has(e)||uZ.has(e)))throw new Error("Unsupported file extension. Allowed: png, jpg, jpeg, webp, svg, pdf, doc, docx, xls, xlsx, csv.");const a=(t.type||"").toLowerCase();if(!(r==="images"&&JIe.has(a)||r==="pdfs"&&QIe.has(a)||r==="docs"&&ZIe.has(a)||r==="sheets"&&eDe.has(a)))throw new Error(`Invalid MIME type "${t.type||"unknown"}" for .${e} file.`);const o=r==="images"?tDe:rDe;if(t.size>o){const l=r==="images"?10:25;throw new Error(`File is too large. Max size for this type is ${l}MB.`)}return{extension:e,fileType:r}}function aDe(t){const e=t.toLowerCase(),r=e.replace(/\.[^/.]+$/,""),n=K$(e);return`${r.replace(/[^a-z0-9\s-_]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")||"file"}-${Date.now()}.${n}`}function sDe(t,e){const r=new Date,n=r.getUTCFullYear(),a=String(r.getUTCMonth()+1).padStart(2,"0");return`${t}/${n}/${a}/${e}`}function iDe(){var t,e;try{const r=localStorage.getItem("hba_user");if(!r)return{userId:null,displayName:null};const n=JSON.parse(r),a=(n==null?void 0:n.email)??null,i=((t=n==null?void 0:n.user_metadata)==null?void 0:t.full_name)??((e=n==null?void 0:n.user_metadata)==null?void 0:e.name)??null;return{userId:(n==null?void 0:n.id)??null,displayName:i||a}}catch{return{userId:null,displayName:null}}}async function oDe(t){var N,S;const{file:e,category:r,notes:n}=t,{fileType:a}=dZ(e),i=aDe(e.name),o=sDe(a,i),{data:{user:l}}=await Ht.auth.getUser(),c=iDe(),u=(l==null?void 0:l.id)??c.userId,d=((N=l==null?void 0:l.user_metadata)==null?void 0:N.full_name)??((S=l==null?void 0:l.user_metadata)==null?void 0:S.name)??(l==null?void 0:l.email)??c.displayName,{data:h,error:m}
1293=await Ht.storage.from(Qb).upload(o,e,{cacheControl:"3600",upsert:!1,contentType:e.type});if(m||!h)throw new Error((m==null?void 0:m.message)||"File upload failed.");const{data:g}=Ht.storage.from(Qb).getPublicUrl(h.path);if(!(g!=null&&g.publicUrl))throw new Error("Failed to generate public URL.");const b={file_name:i,original_file_name:e.name,file_type:a,mime_type:e.type,storage_path:h.path,public_url:g.publicUrl,uploaded_by_user_id:u,uploaded_by_name:d,file_size:e.size,category:r!=null&&r.trim()?r.trim():null,notes:n!=null&&n.trim()?n.trim():null},{data:y,error:v}=await Ht.from("uploaded_files").insert(b).select("*").single();if(v||!y)throw await Ht.storage.from(Qb).remove([h.path]),new Error((v==null?void 0:v.message)||"Failed to save file metadata.");return y}async function lDe(){const{data:t,error:e}=await Ht.from("uploaded_files").select("*").order("created_at",{ascending:!1});if(e)throw new Error(e.message);return t??[]}async function cDe(t){const{error:e}=await Ht.storage.from(Qb).remove([t.storage_path]);if(e)throw new Error(e.message);const{error:r}=await Ht.from("uploaded_files").delete().eq("id",t.id);if(r)throw new Error(r.message)}function uDe(t){return!t||t<0?"N/A":t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const dDe=[{label:"All Types",value:"all"},{label:"Images",value:"images"},{label:"PDFs",value:"pdfs"},{label:"Docs",value:"docs"},{label:"Sheets",value:"sheets"},{label:"Misc",value:"misc"}],hDe=10*1024*1024,fDe=()=>{const[t,e]=w.useState([]),[r,n]=w.useState(!0),[a,i]=w.useState(!1),[o,l]=w.useState(null),[c,u]=w.useState(""),[d,h]=w.useState(""),[m,g]=w.useState(""),[b,y]=w.useState("all"),[v,N]=w.useState(!1),[S,j]=w.useState(!1),$=w.useRef(null);w.useEffect(()=>{C()},[]);const C=async()=>{n(!0);try{const L=await lDe();e(L)}catch(L){const q=L instanceof Error?L.message:"Failed to load files.";te.error(q)}finally{n(!1)}},_=L=>{if(L)try{if(L.size>hDe){te.error("File size must be 10MB or less.");return}dZ(L),l(L)}catch(q){const G=q instanceof Error?q.message:"Invalid file.";te.error(G)}},O=L=>{var G;const q=((G=L.target.files)==null?void 0:G[0])??null;_(q),L.target.value=""},E=async()=>{if(!o){te.error("Select a file first.");return}i(!0);try{const L=await oDe({file:o,category:c,notes:d});e(q=>[L,...q]),l(null),u(""),h(""),j(!1),te.success("File uploaded successfully.")}catch(L){const q=L instanceof Error?L.message:"Upload failed.";te.error(q)}finally{i(!1)}},P=async L=>{if(window.confirm(`Delete "${L.original_file_name}"? This cannot be undone.`))try{await cDe(L),e(G=>G.filter(B=>B.id!==L.id)),te.success("File deleted.")}catch(G){const B=G instanceof Error?G.message:"Delete failed.";te.error(B)}},T=async L=>{try{await navigator.clipboard.writeText(L),te.success("Copied!")}catch{te.error("Unable to copy link.")}},I=()=>{l(null),u(""),h(""),N(!1)},R=w.useMemo(()=>t.filter(L=>{const q=b==="all"||L.file_type===b,G=L.original_file_name.toLowerCase().includes(m.toLowerCase().trim());return q&&G}),[t,m,b]),F=w.useMemo(()=>t.reduce((L,q)=>(L.all+=1,L[q.file_type]+=1,L),{all:0,images:0,pdfs:0,docs:0,sheets:0,misc:0}),[t]);return s.jsxs("div",{className:"space-y-6",children:[s.jsx(Wn,{eyebrow:"Website",title:"File Library",description:"Browse, copy, and manage public files for outbound email links.",actions:s.jsxs("button",{type:"button",onClick:()=>j(!0),className:rr,children:[s.jsx(ss,{size:16}),"Upload File"]})}),s.jsxs("section",{className:"rounded-2xl border border-slate-200 bg-white p-6 shadow-sm space-y-4",children:[s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-bold uppercase tracking-wide text-hba-blue-1",children:"Uploaded Files"}),s.jsxs("p",{className:"mt-1 text-xs text-slate-500",children:["Showing ",R.length," of ",t.length," file",t.length===1?"":"s"]})]}),s.jsxs("div",{className:"relative",children:[s.jsx(Ls,{className:"absolute left-2 top-2.5 text-slate-400",size:16}),s.jsx("input",{type:"text",value:m,onChange:L=>
1293g(L.target.value),placeholder:"Search file name",className:"w-full rounded-lg border border-slate-200 py-2 pl-8 pr-3 text-sm outline-none focus:ring-2 focus:ring-hba-orange-1 md:w-72"})]})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsx("div",{className:"inline-flex min-w-max rounded-xl border border-slate-200 bg-slate-50 p-1",children:dDe.map(L=>{const q=b===L.value;return s.jsxs("button",{type:"button",onClick:()=>y(L.value),className:`rounded-lg px-3 py-2 text-sm font-medium transition-colors ${q?"bg-hba-blue-1 text-white shadow-sm":"text-slate-600 hover:bg-white hover:text-hba-blue-1"}`,children:[L.label,s.jsx("span",{className:`ml-2 rounded-full px-2 py-0.5 text-xs ${q?"bg-white/20 text-white":"bg-white text-slate-500"}`,children:F[L.value]})]},L.value)})})})]}),r?s.jsx("div",{className:"py-10 text-center text-sm text-slate-500",children:"Loading files..."}):R.length===0?s.jsxs("div",{className:"rounded-xl border border-dashed border-slate-200 bg-slate-50 py-12 text-center",children:[s.jsx(fi,{size:32,className:"mx-auto mb-3 text-slate-400"}),s.jsx("p",{className:"text-sm font-medium text-slate-700",children:"No files found."}),s.jsx("p",{className:"mt-1 text-xs text-slate-500",children:"Try a different filter or upload a new file."})]}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"min-w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b border-slate-200 text-left text-xs uppercase tracking-wide text-slate-500",children:[s.jsx("th",{className:"px-3 py-2",children:"File Name"}),s.jsx("th",{className:"px-3 py-2",children:"Type"}),s.jsx("th",{className:"px-3 py-2",children:"Uploaded By"}),s.jsx("th",{className:"px-3 py-2",children:"Uploaded On"}),s.jsx("th",{className:"px-3 py-2",children:"Size"}),s.jsx("th",{className:"px-3 py-2",children:"Public Link"}),s.jsx("th",{className:"px-3 py-2 text-right",children:"Actions"})]})}),s.jsx("tbody",{children:R.map(L=>s.jsxs("tr",{className:"border-b border-slate-100 align-top hover:bg-slate-50/70",children:[s.jsxs("td",{className:"px-3 py-2",children:[s.jsx("div",{className:"font-medium text-slate-800",children:L.original_file_name}),L.category?s.jsxs("div",{className:"text-xs text-slate-500",children:["Category: ",L.category]}):null]}),s.jsx("td",{className:"px-3 py-2 capitalize",children:L.file_type}),s.jsx("td",{className:"px-3 py-2",children:L.uploaded_by_name??"Unknown"}),s.jsx("td",{className:"px-3 py-2",children:new Date(L.created_at).toLocaleString()}),s.jsx("td",{className:"px-3 py-2",children:uDe(L.file_size)}),s.jsx("td",{className:"px-3 py-2",children:s.jsx("a",{href:L.public_url,target:"_blank",rel:"noreferrer noopener",className:"max-w-[260px] block truncate text-hba-blue-1 hover:underline",title:L.public_url,children:L.public_url})}),s.jsx("td",{className:"px-3 py-2",children:s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsx("button",{type:"button",onClick:()=>window.open(L.public_url,"_blank","noopener,noreferrer"),className:"rounded-md border border-slate-200 p-1.5 text-slate-600 hover:bg-white",title:"Open",children:s.jsx(Lt,{size:15})}),s.jsx("button",{type:"button",onClick:()=>T(L.public_url),className:"rounded-md border border-slate-200 p-1.5 text-slate-600 hover:bg-white",title:"Copy link",children:s.jsx(Ny,{size:15})}),s.jsx("button",{type:"button",onClick:()=>P(L),className:"rounded-md border border-red-200 p-1.5 text-red-600 hover:bg-red-50",title:"Delete",children:s.jsx(zs,{size:15})})]})})]},L.id))})]})})]}),S&&s.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",children:s.jsxs("div",{className:"w-full max-w-2xl rounded-2xl bg-white shadow-xl",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-slate-200 px-6 py-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-bold text-hba-blue-1",children:"Upload File"}),s.jsx("p",{className:"text-xs text-slate-500",children:"Files are stored publicly in hba-public-files."})]}),s.jsx("button",{type:"button",onClick:()=>{I(),j(!1)},className:"rounded-lg p-2 text-slate-500 hover:bg-slate-100 hover:text-slate-700",children:s.jsx(cs,{size:18})})]}),s.jsxs("div",{className:"space-y-4 p-6",children:[s.jsxs("div",{onDragOver:L=>{L.preventDefault(),N(!0)},onDragLeave:()=>N(!1),onDrop:L=>{var G;L.preventDefault(),N(!1);const q=((G=L.dataTransfer.files)==null?void 0:G[0])??null;_(q)},className:`rounded-xl border-2 border-dashed p-6 text-center transition-colors ${v?"border-hba-orange-1 bg-orange-50":"border-slate-300 bg-slate-50"}`,children:[s.jsx(fi,{className:"mx-auto mb-2 text-slate-500",size:22}),s.jsx("p",{className:"text-sm text-slate-700",children:"Drag and drop a file here, or"}),s.jsx("button",{type:"button",onClick:()=>{var L;return(L=$.current)==null?void 0:L.click()},className:"mt-2 inline-flex items-center rounded-lg border border-slate-200 bg-white px-3 py-2 text-sm font-medium text-hba-blue-1 hover:bg-slate-50",children:"Choose File"}),s.jsx("input",{ref:$,type:"file",className:"hidden",accept:".png,.jpg,.jpeg,.webp,.svg,.pdf,.doc,.docx,.xls,.xlsx,.csv",onChange:O}),s.jsx("p",{className:"mt-2 text-xs text-slate-500",children:"Max file size: 10MB."})]}),s.jsxs("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:[s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs font-medium text-slate-600",children:"Selected File"}),s.jsx("div",{className:"rounded-lg border border-slate-200 bg-slate-50 px-3 py-2 text-sm text-slate-700",children:o?o.name:"No file selected"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs font-medium text-slate-600",children:"Category (optional)"}),s.jsx("input",{type:"text",value:c,onChange:L=>u(L.target.value),placeholder:"e.g. Enrollment Forms",className:"w-full rounded-lg border border-slate-200 px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-hba-orange-1"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs font-medium text-slate-600",children:"Notes (optional)"}),s.jsx("textarea",{value:d,onChange:L=>h(L.target.value),rows:3,placeholder:"Internal notes about this file...",className:"w-full rounded-lg border border-slate-200 px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-hba-orange-1"})]})]}),s.jsxs("div",{className:"flex justify-end gap-3 border-t border-slate-200 px-6 py-4",children:[s.jsx("button",{type:"button",onClick:()=>{I(),j(!1)},disabled:a,className:"rounded-lg border border-slate-200 px-4 py-2 text-sm font-semibold text-slate-700 hover:bg-slate-50 disabled:cursor-not-allowed disabled:opacity-60",children:"Cancel"}),s.jsxs("button",{type:"button",onClick:E,disabled:a,className:"inline-flex items-center gap-2 rounded-lg bg-admin-primary px-4 py-2 text-sm font-semibold text-white hover:bg-admin-primary-hover disabled:cursor-not-allowed disabled:opacity-60",children:[a?s.jsx(pt,{size:16,className:"animate-spin"}):s.jsx(fi,{size:16}),a?"Uploading...":"Upload File"]})]})]})})]})};function Tp({label:t,value:e}
1293){return s.jsx(Vl,{label:t,value:e.toLocaleString()})}function pDe(){const[t,e]=w.useState(""),[r,n]=w.useState(""),[a,i]=w.useState(null),[o,l]=w.useState(!0),[c,u]=w.useState("");return w.useEffect(()=>{document.title="Articles Validation | Health Benefits Associates"},[]),w.useEffect(()=>{let d=!1;l(!0),u("");const h=r.trim()?`?slug=${encodeURIComponent(r.trim())}`:"";return fetch(ut(`/api/articles/validation${h}`)).then(m=>{if(!m.ok)throw new Error("Failed to load validation data");return m.json()}).then(m=>{d||i(m)}).catch(m=>{d||u(m.message||"Failed to load validation data")}).finally(()=>{d||l(!1)}),()=>{d=!0}},[r]),s.jsxs("div",{className:"space-y-6",children:[s.jsx(Wn,{eyebrow:"Content",title:"Articles Validation",description:"Migration verification for imported WordPress article data."}),c?s.jsx(VQ,{title:"Unable to load validation data",description:c}):null,o&&!a?s.jsx("div",{className:"grid gap-4 md:grid-cols-4",children:Array.from({length:4}).map((d,h)=>s.jsx("div",{className:"h-32 animate-pulse rounded-lg bg-white"},h))}):null,a?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-5",children:[s.jsx(Tp,{label:"Total articles imported",value:a.totalArticlesImported}),s.jsx(Tp,{label:"WordPress imported count",value:a.wordpressImportedCount}),s.jsx(Tp,{label:"Current API count",value:a.currentApiCount}),s.jsx(Tp,{label:"Total categories",value:a.totalCategories}),s.jsx(Tp,{label:"Total tags",value:a.totalTags})]}),s.jsxs("form",{className:"rounded-lg border border-hba-blue-1/10 bg-white p-5 shadow-sm",onSubmit:d=>{d.preventDefault(),n(t)},children:[s.jsx("label",{className:"text-sm font-bold text-hba-blue-1",htmlFor:"article-slug-search",children:"Search by slug"}),s.jsxs("div",{className:"mt-2 flex flex-col gap-3 sm:flex-row",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx(Ls,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-hba-grey-1"}),s.jsx("input",{id:"article-slug-search",value:t,onChange:d=>e(d.target.value),placeholder:"example-article-slug",className:"h-11 w-full rounded-lg border border-gray-300 pl-10 pr-4 text-sm outline-none transition focus:border-hba-orange-1 focus:ring-2 focus:ring-hba-orange-1/20"})]}),s.jsx("button",{type:"submit",className:"inline-flex h-11 items-center justify-center rounded-lg bg-admin-primary px-5 text-sm font-black uppercase tracking-[0.12em] text-white transition hover:bg-admin-primary-hover",children:"Validate"})]})]}),r.trim()?s.jsxs("div",{className:"rounded-lg border border-hba-blue-1/10 bg-white p-5 shadow-sm",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.16em] text-hba-grey-1",children:"Slug result"}),a.slugSearch?s.jsxs("div",{className:"mt-3",children:[s.jsx(ue,{to:`/${a.slugSearch.slug}`,className:"text-lg font-black text-hba-blue-1 hover:text-hba-orange-1",children:a.slugSearch.title}),s.jsx("p",{className:"mt-2 text-sm text-hba-blue-2",children:a.slugSearch.excerpt})]}):s.jsx("p",{className:"mt-3 text-sm font-bold text-red-700",children:"No article found for that slug."})]}):null]}):null]})}function ao(t=!1){const e={},r=xf();return r&&(e.Authorization=`Bearer ${r}`),t&&(e["Content-Type"]="application/json"),e}async function so(t){try{return(await t.json()).message||`Request failed (${t.status})`}catch{return`Request failed (${t.status})`}}function mDe(t){var r;const e=new URLSearchParams;return(r=t.search)!=null&&r.trim()&&e.set("search",t.search.trim()),t.carrier&&e.set("carrier",t.carrier),t.planYear!==void 0&&e.set("planYear",String(t.planYear)),t.isActive!==void 0&&e.set("isActive",String(t.isActive)),e}async function gDe(){const t=await fetch(ut("/api/admin/sobs"),{headers:ao()});if(!t.ok)throw new Error(await so(t));return t.json()}async function bDe(t){const e=await fetch(ut("/api/admin/sobs"),{method:"POST",headers:ao(!0),body:JSON.stringify(t)});if(!e.ok)throw new Error(await so(e));return e.json()}async function vF(t,e){const r=await fetch(ut(`/api/admin/sobs/${t}`),{method:"PATCH",headers:ao(!0),body:JSON.stringify(e)});if(!r.ok)throw new Error(await so(r));return r.json()}async function xDe(t){const e=new FormData;e.append("file",t);const r=await fetch(ut("/api/admin/sobs/import"),{method:"POST",headers:ao(),body:e});if(!r.ok&&r.status!==207)throw new Error(await so(r));return r.json()}async function yDe(t,e){const r=new FormData;r.append("file",e);const n=await fetch(ut(`/api/admin/sobs/${t}/file`),{method:"POST",headers:ao(),body:r});if(!n.ok)throw new Error(await so(n));return n.json()}async function vDe(t){const e=new FormData;t.forEach(n=>e.append("files",n));const r=await fetch(ut("/api/admin/sobs/bulk-files"),{method:"POST",headers:ao(),body:e});if(!r.ok&&r.status!==207)throw new Error(await so(r));return r.json()}async function wDe(t={}){var a;const e=new URLSearchParams;(a=t.search)!=null&&a.trim()&&e.set("search",t.search.trim()),t.action&&e.set("action",t.action);
1293const r=e.toString(),n=await fetch(ut(`/api/admin/sobs/audit${r?`?${r}`:""}`),{headers:ao()});if(!n.ok)throw new Error(await so(n));return n.json()}async function NDe(){const t=await fetch(ut("/api/admin/sobs/audit"),{method:"DELETE",headers:ao()});if(!t.ok)throw new Error(await so(t));return(await t.json()).deleted??0}async function jDe(t,e){const r=await fetch(ut(`/api/admin/sobs/${t}?deleteFile=${e?"true":"false"}`),{method:"DELETE",headers:ao()});if(!r.ok)throw new Error(await so(r))}async function kDe(t){var u;const r=mDe(t).toString(),n=await fetch(ut(`/api/admin/sobs/export${r?`?${r}`:""}`),{headers:ao()});if(!n.ok)throw new Error(await so(n));const a=await n.blob(),o=((u=(n.headers.get("Content-Disposition")??"").match(/filename="([^"]+)"/))==null?void 0:u[1])??"sob-documents.csv",l=URL.createObjectURL(a),c=document.createElement("a");c.href=l,c.download=o,document.body.appendChild(c),c.click(),c.remove(),URL.revokeObjectURL(l)}const hZ={hba_plan_key_file_name:"",carrier:"",plan_year:"",start_date:"",end_date:"",hyperlink:"",is_active:!0},SDe=[10,25,50,100];function _l(t,e){return t instanceof Error?t.message:e}function wF(t){return t?{hba_plan_key_file_name:t.hba_plan_key_file_name,carrier:t.carrier??"",plan_year:t.plan_year===null?"":String(t.plan_year),start_date:t.start_date??"",end_date:t.end_date??"",hyperlink:t.hyperlink??"",is_active:t.is_active}:{...hZ}}function CDe(t){const e=t.plan_year.trim()?Number(t.plan_year):null;if(e!==null&&(!Number.isInteger(e)||e<1900||e>2200))throw new Error("Plan Year must be a valid four-digit year.");if(!t.hba_plan_key_file_name.trim())throw new Error("HbaPlanKeyFileName is required.");return{hba_plan_key_file_name:t.hba_plan_key_file_name.trim(),carrier:t.carrier.trim()||null,plan_year:e,start_date:t.start_date||null,end_date:t.end_date||null,hyperlink:t.hyperlink.trim()||null,is_active:t.is_active}}function $De(t){return t?new Date(t).toLocaleString():"â"}const _De=()=>{const t=qn(),[e,r]=w.useState([]),[n,a]=w.useState(!0),[i,o]=w.useState(""),[l,c]=w.useState(""),[u,d]=w.useState(""),[h,m]=w.useState("all"),[g,b]=w.useState(1),[y,v]=w.useState(25),[N,S]=w.useState(null),[j,$]=w.useState(hZ),[C,_]=w.useState(!1),[O,E]=w.useState(!1),[P,T]=w.useState(!1),[I,R]=w.useState(null),[F,L]=w.useState(!1),[q,G]=w.useState(null),[B,H]=w.useState(!1),[K,Z]=w.useState([]),[V,U]=w.useState(!1),[Y,de]=w.useState(null),[ge,fe]=w.useState(null),[Oe,Ce]=w.useState(null),[le,we]=w.useState(!1),[ke,oe]=w.useState(null),[qe,Le]=w.useState(!1),[Ke,ne]=w.useState(!1),Se=async()=>{a(!0);try{r(await gDe())}catch(ie){te.error(_l(ie,"Failed to load SOB documents."))}finally{a(!1)}};w.useEffect(()=>{Se()},[]);const $e=w.useMemo(()=>Array.from(new Set(e.map(ie=>ie.carrier).filter(ie=>!!ie))).sort((ie,it)=>ie.localeCompare(it)),[e]),Ae=w.useMemo(()=>Array.from(new Set(e.map(ie=>ie.plan_year).filter(ie=>ie!==null))).sort((ie,it)=>it-ie),[e]),Ve=w.useMemo(()=>{const ie=i.trim().toLowerCase();return e.filter(it=>{const jr=!ie||it.hba_plan_key_file_name.toLowerCase().includes(ie)||(it.carrier??"").toLowerCase().includes(ie)||(it.hyperlink??"").toLowerCase().includes(ie),ir=!l||it.carrier===l,Vr=!u||it.plan_year===Number(u),Ot=h==="all"||it.is_active===(h==="active");return jr&&ir&&Vr&&Ot})},[h,l,u,e,i]),ae=Math.max(1,Math.ceil(Ve.length/y)),W=w.useMemo(()=>{const ie=(g-1)*y;return Ve.slice(ie,ie+y)},[Ve,g,y]);w.useEffect(()=>{b(1)},[h,l,u,i]),w.useEffect(()=>{g>ae&&b(ae)},[g,ae]);const ee=()=>{S(null),$(wF()),_(!0)},Q=ie=>{S(ie),$(wF(ie)),_(!0)},xe=async()=>{E(!0);try{const ie=CDe(j),it=N?await vF(N.id,ie):await bDe(ie);r(jr=>N?jr.map(ir=>ir.id===it.id?it:ir):[it,...jr]),_(!1),te.success(N?"Plan row updated.":"Plan row created.")}catch(ie){te.error(_l(ie,"Unable to save plan row."))}finally{E(!1)}},ye=async ie=>{try{const it=await vF(ie.id,{is_active:!ie.is_active});r(jr=>jr.map(ir=>ir.id===it.id?it:ir))}catch(it){te.error(_l(it,"Unable to update active status."))}},X=async()=>{if(!I){te.error("Select a CSV or Excel file.");return}L(!0);try{const ie=await xDe(I);G(ie),await Se(),te.success(`Import finished: ${ie.created} created, ${ie.updated} updated.`)}catch(ie){te.error(_l(ie,"Import failed."))}finally{L(!1)}},ve=async()=>
1293{if(!ge||!Oe){te.error("Select a PDF or Word document.");return}we(!0);try{const ie=await yDe(ge.id,Oe);r(it=>it.map(jr=>jr.id===ie.id?ie:jr)),fe(null),Ce(null),te.success("SOB document uploaded.")}catch(ie){te.error(_l(ie,"Document upload failed."))}finally{we(!1)}},He=async()=>{if(K.length===0){te.error("Select one or more documents or a ZIP file.");return}U(!0);try{const ie=await vDe(K);de(ie),await Se(),te.success(`Bulk upload finished: ${ie.uploaded} file${ie.uploaded===1?"":"s"} uploaded.`)}catch(ie){te.error(_l(ie,"Bulk upload failed."))}finally{U(!1)}},Ie=async ie=>{if(ke){Le(!0);try{await jDe(ke.id,ie),r(it=>it.filter(jr=>jr.id!==ke.id)),oe(null),te.success(ie?"Row and storage file deleted.":"Row deleted.")}catch(it){te.error(_l(it,"Delete failed."))}finally{Le(!1)}}},dt=async ie=>{try{await navigator.clipboard.writeText(ie),te.success("Link copied.")}catch{te.error("Unable to copy link.")}},Ue=async()=>{ne(!0);const ie={search:i.trim()||void 0,carrier:l||void 0,planYear:u?Number(u):void 0,isActive:h==="all"?void 0:h==="active"};try{await kDe(ie)}catch(it){te.error(_l(it,"Export failed."))}finally{ne(!1)}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col gap-4 xl:flex-row xl:items-center xl:justify-between",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"font-heading text-[1.75rem] font-bold tracking-tight text-admin-text sm:text-[2rem]",children:"SOB Documents"}),s.jsx("p",{className:"mt-1 text-sm text-admin-muted",children:"Import plan rows, attach Summary of Benefits files later, and export public links."})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs("button",{type:"button",onClick:()=>{Z([]),de(null),H(!0)},className:Et,children:[s.jsx(Mse,{size:16}),"Bulk Upload Files"]}),s.jsxs("button",{type:"button",onClick:()=>{R(null),G(null),T(!0)},className:Et,children:[s.jsx(Uie,{size:16}),"Import CSV/Excel"]}),s.jsxs("button",{type:"button",onClick:ee,className:rr,children:[s.jsx(ss,{size:16}),"Add Plan Row"]}),s.jsxs("button",{type:"button",onClick:Ue,disabled:Ke,className:"inline-flex items-center gap-2 rounded-lg bg-hba-blue-1 px-4 py-2 text-sm font-semibold text-white hover:opacity-90 disabled:opacity-60",children:[Ke?s.jsx(pt,{size:16,className:"animate-spin"}):s.jsx(Aie,{size:16}),"Export CSV"]}),s.jsxs("button",{type:"button",onClick:()=>t("/admin/sobs/audit"),className:"inline-flex items-center gap-2 rounded-lg border border-hba-blue-1 px-4 py-2 text-sm font-semibold text-hba-blue-1 hover:bg-blue-50",children:[s.jsx(oS,{size:16}),"Audit-Log"]})]})]}),s.jsxs("section",{className:"space-y-4 rounded-2xl border border-slate-200 bg-white p-5 shadow-sm",children:[s.jsxs("div",{className:"grid gap-3 md:grid-cols-2 xl:grid-cols-4",children:[s.jsxs("div",{className:"relative",children:[s.jsx(Ls,{className:"absolute left-3 top-2.5 text-slate-400",size:17}),s.jsx("input",{value:i,onChange:ie=>o(ie.target.value),placeholder:"Search key, carrier, or link",className:"w-full rounded-lg border border-slate-200 py-2 pl-9 pr-3 text-sm outline-none focus:ring-2 focus:ring-hba-orange-1"})]}),s.jsxs("select",{value:l,onChange:ie=>c(ie.target.value),className:"rounded-lg border border-slate-200 px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-hba-orange-1",children:[s.jsx("option",{value:"",children:"All carriers"}),$e.map(ie=>s.jsx("option",{value:ie,children:ie},ie))]}),s.jsxs("select",{value:u,onChange:ie=>d(ie.target.value),className:"rounded-lg border border-slate-200 px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-hba-orange-1",children:[s.jsx("option",{value:"",children:"All plan years"}),Ae.map(ie=>s.jsx("option",{value:ie,children:ie},ie))]}),s.jsxs("select",{value:h,onChange:ie=>m(ie.target.value),className:"rounded-lg border border-slate-200 px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-hba-orange-1",children:[s.jsx("option",{value:"all",children:"Active and inactive"}),s.jsx("option",{value:"active",children:"Active only"}),s.jsx("option",{value:"inactive",children:"Inactive only"})]})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-xs text-slate-500 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("p",{children:["Showing ",Ve.length===0?0:(g-1)*y+1,"â",Math.min(g*y,Ve.length)," of ",Ve.length," filtered row",Ve.length===1?"":"s"," (",e.length," total). Export uses the current filters."]}),s.jsxs("label",{className:"flex items-center gap-2",children:["Rows per page",s.jsx("select",{value:y,onChange:ie=>{v(Number(ie.target.value)),b(1)},className:"rounded-md border border-slate-200 bg-white px-2 py-1 text-xs text-slate-700",children:SDe.map(ie=>s.jsx("option",{value:ie,children:ie},ie))})]})]}),n?s.jsx("div",{className:"flex justify-center py-14 text-slate-500",children:s.jsx(pt,{className:"animate-spin"})}):Ve.length===0?s.jsx("div",{className:"rounded-xl border border-dashed border-slate-300 bg-slate-50 py-14 text-center text-sm text-slate-500",children:"No SOB plan rows match these filters."}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"min-w-[1450px] w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b border-slate-200 text-left text-xs uppercase tracking-wide text-slate-500",children:[s.jsx("th",{className:"px-3 py-3",children:"HbaPlanKeyFileName"}),s.jsx("th",{className:"px-3 py-3",children:"Carrier"}),s.jsx("th",{className:"px-3 py-3",children:"Plan Year"}),s.jsx("th",{className:"px-3 py-3",children:"Start"}),s.jsx("th",{className:"px-3 py-3",children:"End"}),s.jsx("th",{className:"px-3 py-3",children:"Hyperlink"}),s.jsx("th",{className:"px-3 py-3",children:"Uploaded By"}),s.jsx("th",{className:"px-3 py-3",children:"Upload Date"}),s.jsx("th",{className:"px-3 py-3",children:"Active"}),s.jsx("th",{className:"px-3 py-3 text-right",children:"Actions"})]})}),s.jsx("tbody",{children:W.map(ie=>s.jsxs("tr",{className:"border-b border-slate-100 align-top hover:bg-slate-50/70",children:[s.jsxs("td",{className:"max-w-[280px] px-3 py-3 font-medium text-slate-800",children:[s.jsx("span",{className:"block break-words",children:ie.hba_plan_key_file_name}),ie.storage_path?s.jsx("span",{className:"mt-1 block text-xs font-normal text-slate-400",children:ie.storage_path}):null]}),s.jsx("td",{className:"px-3 py-3",children:ie.carrier??"â"}),s.jsx("td",{className:"px-3 py-3",children:ie.plan_year??"â"}),s.jsx("td",{className:"px-3 py-3",children:ie.start_date??"â"}),s.jsx("td",{className:"px-3 py-3",children:ie.end_date??"â"}),s.jsx("td",{className:"max-w-[240px] px-3 py-3",children:ie.hyperlink?s.jsx("a",{href:ie.hy
1293perlink,target:"_blank",rel:"noreferrer noopener",title:ie.hyperlink,className:"block truncate text-hba-blue-1 hover:underline",children:ie.hyperlink}):s.jsx("span",{className:"text-slate-400",children:"No file uploaded yet"})}),s.jsx("td",{className:"px-3 py-3",children:ie.uploaded_by??"â"}),s.jsx("td",{className:"whitespace-nowrap px-3 py-3",children:$De(ie.uploaded_at)}),s.jsx("td",{className:"px-3 py-3",children:s.jsx("button",{type:"button",role:"switch","aria-checked":ie.is_active,onClick:()=>void ye(ie),className:`relative h-6 w-11 rounded-full transition-colors ${ie.is_active?"bg-emerald-500":"bg-slate-300"}`,title:ie.is_active?"Set inactive":"Set active",children:s.jsx("span",{className:`absolute top-1 h-4 w-4 rounded-full bg-white transition-all ${ie.is_active?"left-6":"left-1"}`})})}),s.jsx("td",{className:"px-3 py-3",children:s.jsxs("div",{className:"flex justify-end gap-1.5",children:[s.jsx("button",{type:"button",onClick:()=>{Ce(null),fe(ie)},className:"rounded-md border border-slate-200 p-1.5 text-hba-blue-1 hover:bg-white",title:ie.storage_path?"Replace file":"Upload file",children:s.jsx(fi,{size:15})}),s.jsx("button",{type:"button",onClick:()=>Q(ie),className:"rounded-md border border-slate-200 p-1.5 text-slate-600 hover:bg-white",title:"Edit",children:s.jsx(hf,{size:15})}),s.jsx("button",{type:"button",disabled:!ie.hyperlink,onClick:()=>ie.hyperlink&&void dt(ie.hyperlink),className:"rounded-md border border-slate-200 p-1.5 text-slate-600 hover:bg-white disabled:cursor-not-allowed disabled:opacity-35",title:"Copy link",children:s.jsx(Ny,{size:15})}),s.jsx("button",{type:"button",disabled:!ie.hyperlink,onClick:()=>ie.hyperlink&&window.open(ie.hyperlink,"_blank","noopener,noreferrer"),className:"rounded-md border border-slate-200 p-1.5 text-slate-600 hover:bg-white disabled:cursor-not-allowed disabled:opacity-35",title:"Open link",children:s.jsx(Lt,{size:15})}),s.jsx("button",{type:"button",onClick:()=>oe(ie),className:"rounded-md border border-red-200 p-1.5 text-red-600 hover:bg-red-50",title:"Delete",children:s.jsx(zs,{size:15})})]})})]},ie.id))})]})}),!n&&Ve.length>0?s.jsxs("div",{className:"flex flex-col gap-3 border-t border-slate-200 pt-4 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("p",{className:"text-sm text-slate-500",children:["Page ",g," of ",ae]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsx("button",{type:"button",onClick:()=>b(1),disabled:g===1,className:"rounded-lg border border-slate-200 px-3 py-1.5 text-sm font-medium text-slate-700 hover:bg-slate-50 disabled:cursor-not-allowed disabled:opacity-40",children:"First"}),s.jsx("button",{type:"button",onClick:()=>b(ie=>Math.max(1,ie-1)),disabled:g===1,className:"rounded-lg border border-slate-200 px-3 py-1.5 text-sm font-medium text-slate-700 hover:bg-slate-50 disabled:cursor-not-allowed disabled:opacity-40",children:"Previous"}),s.jsx("span",{className:"rounded-lg bg-slate-100 px-3 py-1.5 text-sm font-semibold text-hba-blue-1",children:g}),s.jsx("button",{type:"button",onClick:()=>b(ie=>Math.min(ae,ie+1)),disabled:g===ae,className:"rounded-lg border border-slate-200 px-3 py-1.5 text-sm font-medium text-slate-700 hover:bg-slate-50 disabled:cursor-not-allowed disabled:opacity-40",children:"Next"}),s.jsx("button",{type:"button",onClick:()=>b(ae),disabled:g===ae,className:"rounded-lg border border-slate-200 px-3 py-1.5 text-sm font-medium text-slate-700 hover:bg-slate-50 disabled:cursor-not-allowed disabled:opacity-40",children:"Last"})]})]}):null]}),C?s.jsxs(Rp,{title:N?"Edit Plan Row":"Add Plan Row",onClose:()=>_(!1),children:[s.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[s.jsx(Bd,{label:"HbaPlanKeyFileName",required:!0,className:"md:col-span-2",children:s.jsx("input",{value:j.hba_plan_key_file_name,onChange:ie=>$({...j,hba_plan_key_file_name:ie.target.value}),className:"sob-form-input"})}),s.jsx(Bd,{label:"Carrier",children:s.jsx("input",{value:j.carrier,onChange:ie=>$({...j,carrier:ie.target.value}),className:"sob-form-input"})}),s.jsx(Bd,{label:"Plan Year",children:s.jsx("input",{type:"number",min:"1900",max:"2200",value:j.plan_year,onChange:ie=>$({...j,plan_year:ie.target.value}),className:"sob-form-input"})}),s.jsx(Bd,{label:"StartDate",children:s.jsx("input",{type:"date",value:j.start_date,onChange:ie=>$({...j,start_date:ie.target.value}),className:"sob-form-input"})}),s.jsx(Bd,{label:"EndDate",children:s.jsx("input",{type:"date",value:j.end_date,onChange:ie=>$({...j,end_date:ie.target.value}),className:"sob-form-input"})}),s.jsx(Bd,{label:"Hyperlink",className:"md:col-span-2",children:s.jsx("input",{type:"url",value:j.hyperlink,onChange:ie=>$({...j,hyperlink:ie.target.value}),placeholder:"https://...",className:"sob-form-input"})}),s.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-slate-700",children:[s.jsx("input",{type:"checkbox",checked:j.is_active,onChange:ie=>$({...j,is_active:ie.target.checked}
1293),className:"h-4 w-4 rounded border-slate-300"}),"Active"]})]}),s.jsx(hb,{onCancel:()=>_(!1),onConfirm:()=>void xe(),busy:O,confirmLabel:N?"Save Changes":"Create Row"})]}):null,B?s.jsxs(Rp,{title:"Bulk Upload SOB Files",onClose:()=>H(!1),children:[s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"rounded-lg border border-blue-200 bg-blue-50 p-3 text-sm text-blue-900",children:"Select multiple PDF/Word files or one or more ZIP files. Each document filename, without its extension, must exactly match an HbaPlanKeyFileName. Matching is case-insensitive."}),s.jsx("input",{type:"file",multiple:!0,accept:".pdf,.doc,.docx,.zip",onChange:ie=>{Z(Array.from(ie.target.files??[])),de(null)},className:"block w-full rounded-lg border border-slate-200 p-3 text-sm"}),K.length>0?s.jsxs("div",{className:"rounded-lg bg-slate-50 p-3 text-sm text-slate-700",children:[K.length," selected file",K.length===1?"":"s",": ",K.map(ie=>ie.name).join(", ")]}):null,Y?s.jsxs("div",{className:"space-y-3",children:[s.jsx("div",{className:"grid grid-cols-2 gap-2 md:grid-cols-4",children:[["Total",Y.totalFiles],["Uploaded",Y.uploaded],["Unmatched",Y.unmatched],["Errors",Y.errors]].map(([ie,it])=>s.jsxs("div",{className:"rounded-lg border border-slate-200 bg-slate-50 p-3 text-center",children:[s.jsx("div",{className:"text-xl font-bold text-hba-blue-1",children:it}),s.jsx("div",{className:"text-xs uppercase text-slate-500",children:ie})]},String(ie)))}),s.jsx("div",{className:"max-h-64 overflow-auto rounded-lg border border-slate-200",children:Y.items.map((ie,it)=>s.jsxs("div",{className:"flex items-start justify-between gap-3 border-b border-slate-100 px-3 py-2 text-sm last:border-0",children:[s.jsxs("div",{children:[s.jsx("div",{className:"font-medium text-slate-800",children:ie.fileName}),s.jsx("div",{className:"text-xs text-slate-500",children:ie.planKey??ie.message??"No plan match"}),ie.message&&ie.planKey?s.jsx("div",{className:"text-xs text-red-600",children:ie.message}):null]}),s.jsx("span",{className:`rounded-full px-2 py-1 text-xs font-semibold ${ie.status==="uploaded"?"bg-emerald-50 text-emerald-700":ie.status==="unmatched"?"bg-amber-50 text-amber-700":"bg-red-50 text-red-700"}`,children:ie.status})]},`${ie.fileName}-${it}`))})]}):null]}),s.jsx(hb,{onCancel:()=>H(!1),onConfirm:()=>void He(),busy:V,confirmLabel:"Upload and Match Files"})]}):null,P?s.jsxs(Rp,{title:"Import Plan Rows",onClose:()=>T(!1),children:[s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"rounded-lg border border-blue-200 bg-blue-50 p-3 text-sm text-blue-900",children:"This import creates or updates plan rows only. SOB files can be uploaded later from the table."}),s.jsx("input",{type:"file",accept:".csv,.xlsx,.xls",onChange:ie=>{var it;R(((it=ie.target.files)==null?void 0:it[0])??null),G(null)},className:"block w-full rounded-lg border border-slate-200 p-3 text-sm"}),q?s.jsxs("div",{className:"space-y-3",children:[s.jsx("div",{className:"grid grid-cols-2 gap-2 md:grid-cols-4",children:[["Created",q.created],["Updated",q.updated],["Skipped",q.skipped],["Errors",q.errorCount]].map(([ie,it])=>s.jsxs("div",{className:"rounded-lg border border-slate-200 bg-slate-50 p-3 text-center",children:[s.jsx("div",{className:"text-xl font-bold text-hba-blue-1",children:it}),s.jsx("div",{className:"text-xs uppercase text-slate-500",children:ie})]},String(ie)))}),q.errors.length>0?s.jsx("div",{className:"max-h-48 overflow-auto rounded-lg border border-red-200",children:q.errors.map((ie,it)=>s.jsxs("div",{className:"border-b border-red-100 px-3 py-2 text-sm last:border-0",children:[s.jsxs("span",{className:"font-semibold text-red-700",children:["Row ",ie.row,ie.key?` (${ie.key})`:"",":"]})," ",s.jsx("span",{className:"text-slate-700",children:ie.message})]},`${ie.row}-${it}`))}):null]}):null]}),s.jsx(hb,{onCancel:()=>T(!1),onConfirm:()=>void X(),busy:F,confirmLabel:"Import Rows"})]}):null,ge?s.jsxs(Rp,{title:ge.storage_path?"Replace SOB File":"Upload SOB File",onClose:()=>fe(null),children:[s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"rounded-lg bg-slate-50 p-3 text-sm",children:[s.jsx("div",{className:"font-semibold text-slate-800",children:ge.hba_plan_key_file_name}),s.jsxs("div",{className:"mt-1 text-slate-500",children:[ge.carrier??"No carrier"," · ",ge.plan_year??"No plan year"]})]}),ge.storage_path?s.jsxs("p",{className:"text-sm text-slate-600",children:["The new file will over
1293write the existing object at ",s.jsx("span",{className:"font-mono text-xs",children:ge.storage_path}),", preserving the public path."]}):s.jsx("p",{className:"text-sm text-slate-600",children:"A deterministic filename will be generated from the plan key, carrier, and dates."}),s.jsx("input",{type:"file",accept:".pdf,.doc,.docx",onChange:ie=>{var it;return Ce(((it=ie.target.files)==null?void 0:it[0])??null)},className:"block w-full rounded-lg border border-slate-200 p-3 text-sm"}),s.jsx("p",{className:"text-xs text-slate-500",children:"Accepted: PDF, DOC, DOCX. Maximum size: 25MB."})]}),s.jsx(hb,{onCancel:()=>fe(null),onConfirm:()=>void ve(),busy:le,confirmLabel:ge.storage_path?"Replace File":"Upload File"})]}):null,ke?s.jsxs(Rp,{title:"Delete SOB Plan Row",onClose:()=>oe(null),children:[s.jsxs("p",{className:"text-sm text-slate-700",children:["Delete ",s.jsx("span",{className:"font-semibold",children:ke.hba_plan_key_file_name}),"?"]}),s.jsxs("div",{className:"mt-5 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",children:[s.jsx("button",{type:"button",disabled:qe,onClick:()=>oe(null),className:"rounded-lg border border-slate-200 px-4 py-2 text-sm font-semibold text-slate-700 hover:bg-slate-50",children:"Cancel"}),s.jsx("button",{type:"button",disabled:qe,onClick:()=>void Ie(!1),className:"rounded-lg border border-red-300 px-4 py-2 text-sm font-semibold text-red-700 hover:bg-red-50 disabled:opacity-60",children:"Delete Row Only"}),s.jsxs("button",{type:"button",disabled:qe||!ke.storage_path,onClick:()=>void Ie(!0),className:"inline-flex items-center justify-center gap-2 rounded-lg bg-red-600 px-4 py-2 text-sm font-semibold text-white hover:bg-red-700 disabled:cursor-not-allowed disabled:opacity-40",children:[qe?s.jsx(pt,{size:15,className:"animate-spin"}):null,"Delete Row + File"]})]})]}):null]})};function Rp({title:t,children:e,onClose:r}){return s.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/45 p-4",children:s.jsxs("div",{className:"max-h-[92vh] w-full max-w-2xl overflow-auto rounded-2xl bg-white shadow-xl",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-slate-200 px-6 py-4",children:[s.jsx("h3",{className:"text-lg font-bold text-hba-blue-1",children:t}),s.jsx("button",{type:"button",onClick:r,className:"rounded-lg p-2 text-slate-500 hover:bg-slate-100","aria-label":"Close",children:s.jsx(cs,{size:18})})]}),s.jsx("div",{className:"p-6",children:e})]})})}function Bd({label:t,required:e,className:r="",children:n}){return s.jsxs("label",{className:`block ${r}`,children:[s.jsxs("span",{className:"mb-1 block text-xs font-semibold text-slate-600",children:[t,e?" *":""]}),n]})}function hb({onCancel:t,onConfirm:e,busy:r,confirmLabel:n}){return s.jsxs("div",{className:"mt-6 flex justify-end gap-3 border-t border-slate-200 pt-4",children:[s.jsx("button",{type:"button",onClick:t,disabled:r,className:"rounded-lg border border-slate-200 px-4 py-2 text-sm font-semibold text-slate-700 hover:bg-slate-50 disabled:opacity-60",children:"Cancel"}),s.jsxs("button",{type:"button",onClick:e,disabled:r,className:"inline-flex items-center gap-2 rounded-lg bg-admin-primary px-4 py-2 text-sm font-semibold text-white hover:bg-admin-primary-hover disabled:opacity-60",children:[r?s.jsx(pt,{size:16,className:"animate-spin"}):null,n]})]})}const ADe=[{slug:"reno",label:"Reno"},{slug:"sparks",label:"Sparks"},{slug:"carson-city",label:"Carson City"},{slug:"fernley",label:"Fernley"},{slug:"henderson",label:"Las Vegas"},{slug:"truckee",label:"Truckee"}],EDe="image/jpeg,image/png,image/webp,image/gif";function ODe(){const t=xf();return t?{Authorization:`Bearer ${t}`}:{}}function PDe(){const[t,e]=w.useState([]),[r,n]=w.useState(!0),[a,i]=w.useState(null),[o,l]=w.useState(null),c=w.useMemo(()=>new Map(t.map(m=>[m.location_slug,m])),[t]),u=async()=>{n(!0);try{const m=await fetch(ut("/api/admin/homepage-location-images"),{headers:mr()});if(!m.ok){const b=await m.json().catch(()=>({}));throw new Error(b.message||"Failed to load homepage images")}const g=await m.json();e(Array.isArray(g)?g:[])}catch(m){te.error(m instanceof Error?m.message:"Failed to load homepage images")}finally{n(!1)}};w.useEffect(()=>{u()},[]);const d=async(m,g)=>{i(m.slug);try{const b=new FormData;b.append("file",g),b.append("altText",`${m.label} office location`);const y=await fetch(ut(`/api/admin/homepage-location-images/${m.slug}`),{method:"PUT",headers:ODe(),body:b});if(!y.ok){const N=await y.json().catch(()=>({}));throw new Error(N.message||`Failed to update ${m.label}`)}const v=await y.json();e(N=>[...N.filter(S=>S.location_slug!==m.slug),v]),te.success(`${m.label} homepage image updated`)}catch(b){te.error(b instanceof Error?b.message:"Image upload failed")}finally{i(null)}},h=async m=>{if(window.confirm(`Reset ${m.label} to the default homepage image?`)){l(m.slug);try{const g=await fetch(ut(`/api/admin/homepage-location-images/${m.slug}`),{method:"DELETE",headers:mr()});if(!g.ok){const b=await g.json().catch(()=>({}));throw new Error(b.message||`Failed to reset ${m.label}`)}e(b=>b.filter(y=>y.location_slug!==m.slug)),te.success(`${m.label} reset to the default image`)}catch(g){te.error(g instanceof Error?g.message:"Failed to reset image")}finally{l(null)}}};return s.jsxs("div",{className:"space-y-6",children:[s.jsx(Wn,{eyebrow:"Website",title:"Homepage Location Images",description:"Replace the six city images shown in the homepage office-location grid."}),s.jsx("div",{className:"rounded-xl border border-blue-100 bg-blue-50 px-4 py-3 text-sm text-hba-blue-1",children:"Images are cropped to a wide tile. Use landscape photos with the main subject near the center. JPEG, PNG, WebP, and GIF files up to 25 MB are accepted."}),r?s.jsxs("div",{className:"flex items-center justify-center rounded-xl border border-gray-200 bg-white py-20 text-hba-grey-1",children:[s.jsx(pt,{className:"mr-2 h-5 w-5 animate-spin"}),"Loading homepage imagesâ¦"]}):s.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-3",children:ADe.map(m=>{const g=c.get(m.slug),b=a===m.slug,y=o===m.slug,v=g?j0(g.image_url,g.updated_at):GS[m.slug];return s.jsxs("article",{className:"overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm",children:[s.jsxs("div",{className:"relative aspect-[5/3] overflow-hidden bg-slate-100",children:[s.jsx(Dt,{src:v,alt:(g==null?void 0:g.alt_text)||m.label,className:"h-full w-full object-cover"}),s.jsx("span",{className:"absolute left-3 top-3 rounded-full bg-hba-blue-1/90 px-3 py-1 text-xs font-bold text-white",children:g?"Custom image":"Default image"})]}),s.jsxs("div",{className:"space-y-4 p-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(fU,{size:18,className:"text-hba-orange-1"}),s.jsx("h3",{className:"font-bold text-hba-blue-1",children:m.label})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs("label",{className:"inline-flex cursor-pointer items-center gap-2 rounded-lg bg-admin-primary px-4 py-2 text-sm font-semibold text-white transition hover:bg-admin-primary-hover",children:[b?s.jsx(pt,{size:16,className:"animate-spin"}):s.jsx(fi,{size:16}),g?"Replace image":"Upload image",s.jsx("input",{type:"file",accept:EDe,disabled:b||y,className:"sr-only",onChange:N=>{var j;const S=(j=N.currentTarget.files)==null?void 0:j[0];
1293N.currentTarget.value="",S&&d(m,S)}})]}),g?s.jsxs("button",{type:"button",onClick:()=>void h(m),disabled:b||y,className:"inline-flex items-center gap-2 rounded-lg border border-gray-300 px-4 py-2 text-sm font-semibold text-hba-blue-1 transition hover:bg-gray-50 disabled:opacity-50",children:[y?s.jsx(pt,{size:16,className:"animate-spin"}):s.jsx(yU,{size:16}),"Reset"]}):null]}),g!=null&&g.uploaded_by?s.jsxs("p",{className:"text-xs text-hba-grey-1",children:["Last uploaded by ",g.uploaded_by]}):null]})]},m.slug)})})]})}const B7=50;function NF(t){return t.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}const MDe=()=>{const t=qn(),[e,r]=w.useState([]),[n,a]=w.useState(!0),[i,o]=w.useState(""),[l,c]=w.useState(""),[u,d]=w.useState(1),[h,m]=w.useState(!1),g=async()=>{a(!0);try{r(await wDe())}catch(j){te.error(j instanceof Error?j.message:"Failed to load SOB audit logs.")}finally{a(!1)}};w.useEffect(()=>{g()},[]);const b=w.useMemo(()=>Array.from(new Set(e.map(j=>j.action))).sort(),[e]),y=w.useMemo(()=>{const j=i.trim().toLowerCase();return e.filter($=>{const C=!l||$.action===l,_=!j||($.hba_plan_key_file_name??"").toLowerCase().includes(j)||($.actor_email??"").toLowerCase().includes(j)||$.action.toLowerCase().includes(j);return C&&_})},[l,e,i]);w.useEffect(()=>{d(1)},[l,i]);const v=Math.max(1,Math.ceil(y.length/B7)),N=y.slice((u-1)*B7,u*B7);w.useEffect(()=>{u>v&&d(v)},[u,v]);const S=async()=>{if(window.confirm("Clear the entire SOB audit log? This cannot be undone.")){m(!0);try{const j=await NDe();r([]),te.success(`Cleared ${j} audit entr${j===1?"y":"ies"}.`)}catch(j){te.error(j instanceof Error?j.message:"Failed to clear SOB audit logs.")}finally{m(!1)}}};return s.jsxs("div",{className:"space-y-6",children:[s.jsx(Wn,{eyebrow:"Benefits",title:"SOB Audit Log",description:"Administrative history for SOB plans, files, imports, exports, and deletions.",actions:s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs("button",{type:"button",onClick:()=>void S(),disabled:h||e.length===0,className:Pu,children:[h?s.jsx(pt,{size:16,className:"animate-spin"}):s.jsx(zs,{size:16}),"Clear Audit Log"]}),s.jsxs("button",{type:"button",onClick:()=>t("/admin/sobs"),className:Et,children:[s.jsx(Wo,{size:16}),"Back to SOB Documents"]})]})}),s.jsxs("section",{className:"space-y-4 rounded-admin border border-admin-border bg-admin-surface p-5 shadow-admin",children:[s.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[s.jsxs("div",{className:"relative",children:[s.jsx(Ls,{className:"absolute left-3 top-2.5 text-slate-400",size:17}),s.jsx("input",{value:i,onChange:j=>o(j.target.value),placeholder:"Search plan key, action, or administrator",className:"w-full rounded-lg border border-slate-200 py-2 pl-9 pr-3 text-sm outline-none focus:ring-2 focus:ring-hba-orange-1"})]}),s.jsxs("select",{value:l,onChange:j=>c(j.target.value),className:"rounded-lg border border-slate-200 px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-hba-orange-1",children:[s.jsx("option",{value:"",children:"All operations"}),b.map(j=>s.jsx("option",{value:j,children:NF(j)},j))]})]}),s.jsxs("p",{className:"text-xs text-slate-500",children:[y.length," audit entr",y.length===1?"y":"ies"]}),n?s.jsx("div",{className:"flex justify-center py-14",children:s.jsx(pt,{className:"animate-spin text-slate-500"})}):N.length===0?s.jsx("div",{className:"rounded-xl border border-dashed border-slate-300 bg-slate-50 py-14 text-center text-sm text-slate-500",children:"No audit entries found."}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"min-w-[1200px] w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b border-slate-200 text-left text-xs uppercase tracking-wide text-slate-500",children:[s.jsx("th",{className:"px-3 py-3",children:"Date"}),s.jsx("th",{className:"px-3 py-3",children:"Operation"}),s.jsx("th",{className:"px-3 py-3",children:"Plan Key"}),s.jsx("th",{className:"px-3 py-3",children:"Administrator"}),s.jsx("th",{className:"px-3 py-3",children:"Description"}),s.jsx("th",{className:"px-3 py-3",children:"Details"})]})}),s.jsx("tbody",{children:N.map(j=>s.jsxs("tr",{className:"border-b border-slate-100 align-top hover:bg-slate-50/70",children:[s.jsx("td",{className:"whitespace-nowrap px-3 py-3",children:new Date(j.created_at).toLocaleStr
1293ing()}),s.jsx("td",{className:"px-3 py-3",children:s.jsx("span",{className:"rounded-full bg-blue-50 px-2.5 py-1 text-xs font-semibold text-hba-blue-1",children:NF(j.action)})}),s.jsx("td",{className:"max-w-[260px] break-words px-3 py-3 font-medium text-slate-800",children:j.hba_plan_key_file_name??"â"}),s.jsx("td",{className:"px-3 py-3",children:j.actor_email??j.actor_user_id??"System"}),s.jsx("td",{className:"max-w-[420px] px-3 py-3 text-slate-700",children:j.description??"â"}),s.jsx("td",{className:"px-3 py-3",children:s.jsxs("details",{children:[s.jsx("summary",{className:"cursor-pointer font-medium text-hba-blue-1",children:"View details"}),s.jsx("pre",{className:"mt-2 max-h-72 max-w-[520px] overflow-auto rounded-lg bg-slate-900 p-3 text-xs text-slate-100",children:JSON.stringify(j.details,null,2)})]})})]},j.id))})]})}),!n&&y.length>0?s.jsxs("div",{className:"flex items-center justify-between border-t border-slate-200 pt-4",children:[s.jsxs("span",{className:"text-sm text-slate-500",children:["Page ",u," of ",v]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{type:"button",disabled:u===1,onClick:()=>d(j=>Math.max(1,j-1)),className:"rounded-lg border border-slate-200 px-3 py-1.5 text-sm font-medium disabled:opacity-40",children:"Previous"}),s.jsx("button",{type:"button",disabled:u===v,onClick:()=>d(j=>Math.min(v,j+1)),className:"rounded-lg border border-slate-200 px-3 py-1.5 text-sm font-medium disabled:opacity-40",children:"Next"})]})]}):null]})]})};function TDe(t){const e=t.trim();return e.startsWith("data:image/")?e:e.startsWith("<")||e.includes("<svg")?`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`:`data:image/svg+xml;utf-8,${e}`}const RDe=()=>{const t=qn(),[e,r]=w.useState([]),[n,a]=w.useState(null),[i,o]=w.useState(""),[l,c]=w.useState(!0),[u,d]=w.useState(!1),[h,m]=w.useState(!1),[g,b]=w.useState(null),y=w.useMemo(()=>e.filter(_=>_.status==="verified"),[e]),v=w.useMemo(()=>e.filter(_=>_.status==="unverified"),[e]),N=async()=>{c(!0);try{const{data:_,error:O}=await Ht.auth.mfa.listFactors();if(O){te.error(O.message);return}r(_.all.filter(E=>E.factor_type==="totp"))}catch(_){console.error("Failed to load MFA factors:",_),te.error("Failed to load security settings")}finally{c(!1)}};w.useEffect(()=>{N()},[]);const S=async()=>{d(!0);try{const _=await Ht.auth.mfa.listFactors();if(_.error){te.error(_.error.message);return}const O=_.data.all.filter(I=>I.factor_type==="totp"&&I.status==="unverified");await Promise.all(O.map(I=>Ht.auth.mfa.unenroll({factorId:I.id})));const E=new Date().toISOString().slice(0,16).replace("T"," "),{data:P,error:T}=await Ht.auth.mfa.enroll({factorType:"totp",friendlyName:`HBA Admin ${E}`,issuer:"Health Benefits Associates"});if(T){te.error(T.message);return}a({factorId:P.id,qrCode:P.totp.qr_code,secret:P.totp.secret}),o(""),await N()}catch(_){console.error("MFA enrollment failed:",_),te.error("Failed to start two-factor setup")}finally{d(!1)}},j=async()=>{const _=n==null?void 0:n.factorId;if(a(null),o(""),!!_)try{await Ht.auth.mfa.unenroll({factorId:_}),await N()}catch(O){console.error("Failed to cancel MFA enrollment:",O)}},$=async _=>{if(_.preventDefault(),!!n){m(!0);try{const O=await Ht.auth.mfa.challenge({factorId:n.factorId});if(O.error){te.error(O.error.message);return}const E=await Ht.auth.mfa.verify({factorId:n.factorId,challengeId:O.data.id,code:i});if(E.error){te.error(E.error.message);return}localStorage.setItem("hba_access_token",E.data.access_token),localStorage.setItem("hba_user",JSON.stringify(E.data.user)),te.success("Two-factor authentication enabled"),a(null),o(""),await N()}catch(O){console.error("MFA enrollment verification failed:",O),te.error("Failed to verify authenticator code")}finally{m(!1)}}},C=async _=>{if(confirm(`Remove ${_.friendly_name||"this authenticator app"} from your account?`)){b(_.id);try{const{error:O}=await Ht.auth.mfa.unenroll({factorId:_.id});if(O){if(O.message.toLowerCase().includes("aal2")){te.error("Please verify with two-factor authentication before removing a factor."),t("/mfa",{state:{from:"/admin/security"}});return}te.error(O.message);return}te.success("Two-factor method removed");const E=await Ht.auth.refreshSession();E.data.session&&(localStorage.setItem("hba_access_token",E.data.session.access_token),localStorage.setItem("hba_user",JSON.stringify(E.data.session.user))),await N()}catch(O){console.error("Failed to remove MFA factor:",O),te.error("Failed to remove two-factor method")}finally{b(null)}}};return s.jsxs("div",{children:[s.jsx(Wn,{eyebrow:"Administration",title:"Security",description:"Manage two-factor authentication for your admin account."}),s.jsxs("div",{className:"grid gap-6 lg:grid-cols-[minmax(0,1fr)_minmax(320px,420px)]",children:[s.jsxs("section",{className:"bg-white border border-gray-200 rounded-lg p-6",children:[s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"w-12 h-12 rounded-lg bg-hba-blue-1 text-white flex items-center justify-center shrink-0",children:s.jsx(Rr,{size:24})}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-xl font-bold text-hba-blue-1",children:"Authenticator App"}),s.jsx("p",{className:"text-hba-grey-1 mt-2",children:"Use Google Authenticator, Microsoft Authenticator, 1Password, Authy, or another TOTP app."})]})]}),l?s.jsxs("div",{className:"py-10 text-center",children:[s.jsx("div",{className:"inline-block w-8 h-8 border-4 border-hba-orange-1 border-t-transparent roun
1293ded-full animate-spin"}),s.jsx("p",{className:"mt-4 text-hba-grey-1",children:"Loading security settings..."})]}):y.length>0?s.jsx("div",{className:"mt-6 space-y-3",children:y.map(_=>s.jsxs("div",{className:"flex items-center justify-between gap-4 border border-gray-200 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-lg bg-green-100 text-green-700 flex items-center justify-center",children:s.jsx(Aoe,{size:20})}),s.jsxs("div",{children:[s.jsx("p",{className:"font-bold text-hba-blue-1",children:_.friendly_name||"Authenticator App"}),s.jsxs("p",{className:"text-xs text-hba-grey-1",children:["Added ",new Date(_.created_at).toLocaleDateString()]})]})]}),s.jsxs("button",{type:"button",onClick:()=>C(_),disabled:g===_.id,className:"inline-flex items-center gap-2 px-3 py-2 border border-red-200 text-red-600 hover:bg-red-50 rounded-lg text-sm font-bold disabled:opacity-50",children:[s.jsx(zs,{size:16}),g===_.id?"Removing...":"Remove"]})]},_.id))}):s.jsxs("div",{className:"mt-6 space-y-3",children:[s.jsxs("div",{className:"border border-yellow-200 bg-yellow-50 rounded-lg p-4",children:[s.jsx("p",{className:"font-bold text-yellow-900",children:"Two-factor authentication is off"}),s.jsx("p",{className:"text-sm text-yellow-800 mt-1",children:"Enable it to require an authenticator code after password login."})]}),v.length>0&&s.jsxs("div",{className:"border border-orange-200 bg-orange-50 rounded-lg p-4",children:[s.jsx("p",{className:"font-bold text-orange-900",children:"Setup was not completed"}),s.jsx("p",{className:"text-sm text-orange-800 mt-1",children:"Start setup again to remove the incomplete factor and generate a fresh QR code."})]})]})]}),s.jsx("section",{className:"bg-white border border-gray-200 rounded-lg p-6",children:n?s.jsxs("form",{onSubmit:$,className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-xl font-bold text-hba-blue-1",children:"Scan QR Code"}),s.jsx("p",{className:"text-sm text-hba-grey-1 mt-2",children:"Add this account to your authenticator app, then enter the 6-digit code. If the QR code does not scan, use the manual setup key."})]}),s.jsx("div",{className:"flex justify-center bg-gray-50 border border-gray-200 rounded-lg p-4",children:s.jsx("img",{src:TDe(n.qrCode),alt:"Two-factor authentication QR code",className:"w-48 h-48"})}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Manual Setup Key"}),s.jsx("input",{type:"text",readOnly:!0,value:n.secret,className:"w-full px-3 py-2 border border-gray-300 rounded-lg bg-gray-50 text-sm font-mono"})]}),s.jsxs("div",{children:[s.jsx("label",{htmlFor:"setup-code",className:"block text-sm font-bold text-hba-blue-1 mb-2",children:"Authenticator Code"}),s.jsx("input",{id:"setup-code",type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:i,onChange:_=>o(_.target.value.replace(/\D/g,"").slice(0,6)),required:!0,minLength:6,maxLength:6,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent outline-none tracking-[0.3em] text-center text-xl font-bold",placeholder:"000000"})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{type:"button",onClick:j,className:"flex-1 px-4 py-3 border border-gray-300 text-hba-blue-1 rounded-lg hover:bg-gray-50 font-bold",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:h||i.length!==6,className:"flex-1 px-4 py-3 bg-admin-primary hover:bg-admin-primary-hover text-white rounded-lg font-bold disabled:opacity-50 disabled:cursor-not-allowed",children:h?"Verifying...":"Enable"})]})]}):s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-xl font-bold text-hba-blue-1",children:"Set Up 2FA"}),s.jsx("p",{className:"text-sm text-hba-grey-1 mt-2",children:"Start setup to generate a QR code for your authenticator app."})]}),s.jsx("button",{type:"button",onClick:S,disabled:u,className:"w-full bg-admin-primary hover:bg-admin-primary-hover text-white font-bold py-3 px-6 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:u?"Starting setup...":y.length>0?"Add Another App":"Enable 2FA"})]})})]})]})};function fZ(t){if(!t)return"Unknown";const e=new Date(t);
1293return Number.isNaN(e.getTime())?"Unknown":e.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}function jF(t){return String(t??"").toLowerCase()}function H7({icon:t,label:e,value:r}){return s.jsx(Vl,{icon:t,label:e,value:r,tone:"muted"})}function IDe(){const[t,e]=w.useState("messages"),[r,n]=w.useState([]),[a,i]=w.useState([]),[o,l]=w.useState(!0),[c,u]=w.useState(""),d=async()=>{l(!0);try{const[g,b]=await Promise.all([fetch(ut("/api/admin/leads/contact?limit=500"),{headers:mr()}),fetch(ut("/api/admin/leads/ifp?limit=500"),{headers:mr()})]);if(!g.ok){const N=await g.json().catch(()=>({}));throw new Error(N.message||"Failed to load secure messages")}if(!b.ok){const N=await b.json().catch(()=>({}));throw new Error(N.message||"Failed to load IFP quote leads")}const[y,v]=await Promise.all([g.json(),b.json()]);n(Array.isArray(y)?y:[]),i(Array.isArray(v)?v:[])}catch(g){te.error(g instanceof Error?g.message:"Failed to load submissions")}finally{l(!1)}};w.useEffect(()=>{d()},[]);const h=w.useMemo(()=>{const g=c.trim().toLowerCase();return g?r.filter(b=>[b.name,b.email,b.phone,b.zip,b.category,b.message].some(y=>jF(y).includes(g))):r},[r,c]),m=w.useMemo(()=>{const g=c.trim().toLowerCase();return g?a.filter(b=>[b.first_name,b.last_name,b.email,b.phone,b.zip,b.county,b.rating_area,b.income_range,b.primary_care_doctor].some(y=>jF(y).includes(g))):a},[a,c]);return s.jsxs("div",{className:"space-y-6",children:[s.jsx(Wn,{eyebrow:"Intake",title:"Lead Submissions",description:"Review secure contact messages and IFP quote-tool submissions from website visitors.",actions:s.jsxs("button",{type:"button",onClick:()=>void d(),disabled:o,className:Et,children:[o?s.jsx(pt,{size:16,className:"animate-spin"}):s.jsx(ky,{size:16}),"Refresh"]})}),s.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[s.jsx(H7,{icon:Rr,label:"Secure Messages",value:r.length}),s.jsx(H7,{icon:sn,label:"IFP Quote Leads",value:a.length}),s.jsx(H7,{icon:z0,label:"Total Intake",value:r.length+a.length})]}),s.jsx("div",{className:"rounded-admin border border-admin-border bg-admin-surface p-3 shadow-admin",children:s.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[s.jsx("div",{className:"inline-flex rounded-[10px] bg-[#E8EEF0] p-1",children:[{id:"messages",label:"Secure Messages",count:h.length},{id:"ifp",label:"IFP Quote Leads",count:m.length}].map(g=>s.jsxs("button",{type:"button",onClick:()=>e(g.id),className:["min-h-10 rounded-[8px] px-4 py-2 text-sm font-semibold transition-colors duration-200",t===g.id?"bg-hba-blue-1 text-white":"text-admin-muted hover:text-hba-blue-1"].join(" "),children:[g.label,s.jsx("span",{className:"ml-2 rounded-full bg-white/20 px-2 py-0.5 text-xs",children:g.count})]},g.id))}),s.jsx(qQ,{value:c,onChange:g=>u(g.target.value),placeholder:"Search submissions...",className:"w-full lg:w-80"})]})}),o?s.jsxs("div",{className:"flex items-center justify-center rounded-admin border border-admin-border bg-admin-surface py-20 text-admin-muted",children:[s.jsx(pt,{className:"mr-2 h-5 w-5 animate-spin"}),"Loading submissionsâ¦"]}):t==="messages"?s.jsx(DDe,{leads:h}):s.jsx(LDe,{leads:m})]})}function pZ({label:t}){return s.jsx(Mo,{title:t,icon:z0})}function DDe({leads:t}){return t.length===0?s.jsx(pZ,{label:"No secure messages found."}):s.jsx("div",{className:"overflow-hidden rounded-admin border border-admin-border bg-admin-surface shadow-admin",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"min-w-full divide-y divide-slate-200 text-sm",children:[s.jsx("thead",{className:"bg-[#F5F7F8] text-xs font-semibold uppercase tracking-wide text-admin-muted",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-4 py-3 text-left font-bold",children:"Submitted"}),s.jsx("th",{className:"px-4 py-3 text-left font-bold",children:"Contact"}),s.jsx("th",{className:"px-4 py-3 text-left font-bold",children:"Topic"}),s.jsx("th",{className:"px-4 py-3 text-left font-bold",children:"Message"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map(e=>s.jsxs("tr",{className:"align-top hover:bg-slate-50/70",children:[s.jsx("td",{className:"whitespace-nowrap px-4 py-4 text-slate-500",children:fZ(e.submitted_at??e.created_at)}),s.jsxs("td",{className:"px-4 py-4",children:[s.jsx("p",{className:"font-bold text-hba-blue-1",children:e.name}),s.jsxs("div",{className:"mt-1 space-y-1 text-xs text-slate-500",children:[s.jsxs("a",{className:"flex items-center gap-1 hover:text-hba-orange-1",href:`mailto:${e.email}`,children:[s.jsx(Na,{size:13})," ",e.email]}),e.phone?s.jsxs("a",{className:"flex items-center gap-1 hover:text-hba-orange-1",href:`tel:${e.phone}`,children:[s.jsx(Ut,{size:13})," ",e.phone]}
1293):null,e.zip?s.jsxs("p",{children:["ZIP ",e.zip]}):null]})]}),s.jsxs("td",{className:"px-4 py-4",children:[s.jsx("span",{className:"rounded-full bg-hba-orange-1/10 px-2.5 py-1 text-xs font-bold text-hba-orange-1",children:e.category||"General Inquiry"}),s.jsx("p",{className:"mt-2 text-xs text-slate-400",children:e.status||"new"})]}),s.jsx("td",{className:"max-w-xl px-4 py-4 text-slate-700",children:e.message||s.jsx("span",{className:"text-slate-400",children:"No message provided."})})]},e.id))})]})})})}function LDe({leads:t}){return t.length===0?s.jsx(pZ,{label:"No IFP quote leads found."}):s.jsx("div",{className:"overflow-hidden rounded-admin border border-admin-border bg-admin-surface shadow-admin",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"min-w-full divide-y divide-slate-200 text-sm",children:[s.jsx("thead",{className:"bg-[#F5F7F8] text-xs font-semibold uppercase tracking-wide text-admin-muted",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-4 py-3 text-left font-bold",children:"Submitted"}),s.jsx("th",{className:"px-4 py-3 text-left font-bold",children:"Applicant"}),s.jsx("th",{className:"px-4 py-3 text-left font-bold",children:"Quote Details"}),s.jsx("th",{className:"px-4 py-3 text-left font-bold",children:"Household"}),s.jsx("th",{className:"px-4 py-3 text-left font-bold",children:"Doctor / Income"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map(e=>s.jsxs("tr",{className:"align-top hover:bg-slate-50/70",children:[s.jsx("td",{className:"whitespace-nowrap px-4 py-4 text-slate-500",children:fZ(e.submitted_at??e.created_at)}),s.jsxs("td",{className:"px-4 py-4",children:[s.jsxs("p",{className:"font-bold text-hba-blue-1",children:[e.first_name," ",e.last_name]}),s.jsxs("p",{className:"mt-1 text-xs text-slate-500",children:["DOB ",e.primary_dob||"â"]}),s.jsxs("div",{className:"mt-2 space-y-1 text-xs text-slate-500",children:[s.jsxs("a",{className:"flex items-center gap-1 hover:text-hba-orange-1",href:`mailto:${e.email}`,children:[s.jsx(Na,{size:13})," ",e.email]}),s.jsxs("a",{className:"flex items-center gap-1 hover:text-hba-orange-1",href:`tel:${e.phone}`,children:[s.jsx(Ut,{size:13})," ",e.phone]})]})]}),s.jsxs("td",{className:"px-4 py-4 text-slate-700",children:[s.jsxs("p",{children:[s.jsx("strong",{children:"ZIP:"})," ",e.zip]}),s.jsxs("p",{children:[s.jsx("strong",{children:"County:"})," ",e.county]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Rating:"})," ",e.rating_area]}),e.effective_date?s.jsxs("p",{children:[s.jsx("strong",{children:"Effective:"})," ",e.effective_date]}):null]}),s.jsxs("td",{className:"px-4 py-4 text-slate-700",children:[s.jsxs("p",{className:"font-semibold",children:[e.household_size||1," member",e.household_size===1?"":"s"]}),Array.isArray(e.dependents)&&e.dependents.length>0?s.jsx("ul",{className:"mt-2 space-y-1 text-xs text-slate-500",children:e.dependents.map((r,n)=>s.jsxs("li",{children:[r.firstName||r.lastName?`${r.firstName??""} ${r.lastName??""}`.trim():`Dependent ${n+1}`,r.dob?` · ${r.dob}`:""]},`${e.id}-${n}`))}):s.jsx("p",{className:"mt-2 text-xs text-slate-400",children:"No depen
1293dents"})]}),s.jsxs("td",{className:"max-w-xs px-4 py-4 text-slate-700",children:[s.jsx("p",{children:e.primary_care_doctor||s.jsx("span",{className:"text-slate-400",children:"No doctor listed"})}),s.jsxs("p",{className:"mt-2 text-xs text-slate-500",children:["Income: ",e.income_range||"Not provided"]})]})]},e.id))})]})})})}const Y$="/api/admin/authoring";class At extends Error{constructor(e,r){super(e),this.name="ApiRequestError",this.status=r}get isConflict(){return this.status===409}get isForbidden(){return this.status===403}get isUnavailable(){return this.status===503}}function mZ(){const t=xf();return t?{Authorization:`Bearer ${t}`}:{}}async function qt(t,e={}){const r=await fetch(ut(`${Y$}${t}`),{...e,headers:{...mr(),...e.headers??{}}});if(!r.ok){const n=await r.json().catch(()=>({}));throw new At(n.message||`Request failed (${r.status})`,r.status)}if(r.status!==204)return await r.json()}function gZ(t){var n,a;const e=new URLSearchParams;(n=t.status)!=null&&n.length&&e.set("status",t.status.join(",")),t.authorId&&e.set("authorId",t.authorId),t.ownedBy&&e.set("ownedBy",t.ownedBy),t.categoryId&&e.set("categoryId",t.categoryId),(a=t.search)!=null&&a.trim()&&e.set("search",t.search.trim()),t.from&&e.set("from",t.from),t.to&&e.set("to",t.to),t.page&&e.set("page",String(t.page)),t.limit&&e.set("limit",String(t.limit)),t.sort&&e.set("sort",t.sort),t.direction&&e.set("direction",t.direction);const r=e.toString();return r?`?${r}`:""}function BDe(t={}){return qt(`/${gZ(t)}`)}function HDe(t={}){return qt(`/review-queue${gZ(t)}`)}function ak(t){return qt(`/${t}`)}function FDe(t){return qt("/",{method:"POST",body:JSON.stringify(t)})}function zDe(t,e){return qt(`/${t}`,{method:"PATCH",body:JSON.stringify(e)})}function VDe(t,e){return qt(`/${t}/autosave`,{method:"POST",body:JSON.stringify(e)})}function UDe(t){return qt(`/${t}`,{method:"DELETE"})}function bZ(t,e,r={}){return qt(`/${t}/transition`,{method:"POST",body:JSON.stringify({action:e,...r})})}function qDe(t){return qt(`/${t}/revisions`)}function WDe(t,e){return qt(`/${t}/revisions/${e}`)}function GDe(t,e){return qt(`/${t}/revisions/restore`,{method:"POST",body:JSON.stringify({revisionId:e})})}function KDe(t,e,r="comment"){return qt(`/${t}/comments`,{method:"POST",body:JSON.stringify({body:e,kind:r})})}function YDe(t,e){return qt(`/${t}/comments/${e}/resolve`,{method:"POST"})}function XDe(t){return qt(`/${t}/preview`)}function JDe(t,e={}){return qt(`/${t}/preview-link`,{method:"POST",body:JSON.stringify(e)})}function QDe(t){return qt(`/${t}/events`)}function xZ(t={}){const e=new URLSearchParams;t.activeOnly!==void 0&&e.set("activeOnly",String(t.activeOnly)),t.includeCounts&&e.set("includeCounts","true");const r=e.toString();return qt(`/authors${r?`?${r}`:""}`)}function ZDe(t){return qt("/authors",{method:"POST",body:JSON.stringify(t)})}function eLe(t,e){return qt(`/authors/${t}`,{method:"PATCH",body:JSON.stringify(e)})}function tLe(t,e){return qt(`/authors/${t}/active`,{method:"POST",body:JSON.stringify({isActive:e})})}function rLe(t){return qt(`/authors/${t}`,{method:"DELETE"})}function nLe(t,e){return new Promise((r,n)=>{const a=new FormData;a.append("file",e);const i=new XMLHttpRequest;i.open("POST",ut(`${Y$}/authors/${t}/photo`));for(const[o,l]of Object.entries(mZ()))i.setRequestHeader(o,l);i.onload=()=>{let o={};try{o=JSON.parse(i.responseText)}catch{}i.status>=200&&i.status<300&&o.author?r({author:o.author}):n(new At(o.message||`Upload failed (${i.status})`,i.status))},i.onerror=()=>n(new At("Upload failed. Check your connection.",0)),i.onabort=()=>n(new At("Upload cancelled.",0)),i.send(a)})}function X$(t){const e=typeof t=="string"?{taxonomy:t}:t??{},r=new URLSearchParams;e.taxonomy&&r.set("taxonomy",e.taxonomy),e.activeOnly&&r.set("activeOnly","true"),e.includeCounts&&r.set("includeCounts","true");const n=r.toString();return qt(`/terms${n?`?${n}`:""}`)}function aLe(t){return qt("/terms",{method:"POST",body:JSON.stringify(t)})}function sLe(t,e){return qt(`/terms/${t}`,{method:"PATCH",body:JSON.stringify(e)})}function iLe(t,e){return qt(`/terms/${t}/active`,{method:"POST",body:JSON.stringify({isActive:e})})}function oLe(t){return qt("/terms/reorder",{method:"POST",body:JSON.stringify({orderedIds:t})})}function lLe(t){return qt("/seo-analysis",{method:"POST",body:JSON.stringify({keyword:t})})}
1293function yZ(t,e){const r=new URLSearchParams({slug:t});return e!=null&&e.articleId&&r.set("articleId",e.articleId),e!=null&&e.legacyPostId&&r.set("legacyPostId",String(e.legacyPostId)),qt(`/slug-check?${r.toString()}`)}function cLe(t,e){return qt(`/${t}/takeover-slug`,{method:"POST",body:JSON.stringify(e)})}function uLe(t={}){var n;const e=new URLSearchParams;(n=t.search)!=null&&n.trim()&&e.set("search",t.search.trim()),t.sourceType&&e.set("sourceType",t.sourceType),t.isActive&&e.set("isActive",t.isActive),t.page&&e.set("page",String(t.page)),t.limit&&e.set("limit",String(t.limit));const r=e.toString()?`?${e.toString()}`:"";return qt(`/catalog${r}`)}function dLe(t){return qt("/catalog/active",{method:"POST",body:JSON.stringify(t)})}function hLe(t){return qt("/catalog/slug",{method:"POST",body:JSON.stringify(t)})}function vZ(t,e,r,n){return new Promise((a,i)=>{const o=new FormData;o.append("file",e),r.altText&&o.append("altText",r.altText),r.caption&&o.append("caption",r.caption);const l=new XMLHttpRequest;l.open("POST",ut(`${Y$}/${t}/assets`));for(const[c,u]of Object.entries(mZ()))l.setRequestHeader(c,u);l.upload.onprogress=c=>{c.lengthComputable&&n&&n(Math.round(c.loaded/c.total*100))},l.onload=()=>{let c={};try{c=JSON.parse(l.responseText)}catch{}l.status>=200&&l.status<300&&c.asset?a(c.asset):i(new At(c.message||`Upload failed (${l.status})`,l.status))},l.onerror=()=>i(new At("Upload failed. Check your connection.",0)),l.onabort=()=>i(new At("Upload cancelled.",0)),l.send(o)})}function fLe(t,e,r){return qt(`/${t}/assets/${e}`,{method:"PATCH",body:JSON.stringify(r)})}function pLe(){return qt("/ai/status")}function mLe(t){return qt("/ai/assist",{method:"POST",body:JSON.stringify(t)})}const Rv={draft:"Draft",in_review:"In review",changes_requested:"Changes requested",approved:"Approved",scheduled:"Scheduled",published:"Published",archived:"Archived"},gLe={draft:"border-[#DDE3E6] bg-[#E8EEF0] text-[#3A4E59]",in_review:"border-amber-200 bg-amber-50 text-admin-warning",changes_requested:"border-red-200 bg-red-50 text-admin-error",approved:"border-sky-200 bg-sky-50 text-admin-info",scheduled:"border-violet-200 bg-violet-50 text-violet-800",published:"border-emerald-200 bg-emerald-50 text-admin-success",archived:"border-[#DDE3E6] bg-[#E8EEF0] text-admin-muted"},bLe=["publish","unpublish","archive"];function J$({status:t}){return s.jsx("span",{className:`inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-medium ${gLe[t]}`,children:Rv[t]})}function xLe(){return s.jsx("span",{className:"inline-flex items-center rounded-md border border-amber-200 bg-amber-50 px-2 py-0.5 text-xs font-medium text-admin-warning",children:"Unpublished edits"})}function wZ(){return s.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md border border-emerald-200 bg-emerald-50 px-2 py-0.5 text-xs font-medium text-admin-success",children:[s.jsx("span",{"aria-hidden":"true",className:"h-1.5 w-1.5 rounded-full bg-admin-success"}),"Live"]})}function Pf(t){if(!t)return"â";const e=new Date(t);return Number.isNaN(e.getTime())?"â":e.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}function Mu(t){if(!t)return"never";const e=new Date(t);if(Number.isNaN(e.getTime()))return"never";const r=Math.round((Date.now()-e.getTime())/1e3);if(r<10)return"just now";if(r<60)return`${r} seconds ago`;const n=Math.round(r/60);if(n<60)return`${n} minute${n===1?"":"s"} ago`;const a=Math.round(n/60);if(a<24)return`${a} hour${a===1?"":"s"} ago`;const i=Math.round(a/24);return i<30?`${i} day${i===1?"":"s"} ago`:Pf(t)}const kF=20,yLe=["all","draft","in_review","changes_requested","approved","scheduled","published","archived"];function vLe({onOpen:t,onCreate:e,currentUserId:r}){const[n,a]=w.useState([]),[i,o]=w.useState(0),[l,c]=w.useState(1),[u,d]=w.useState(!0),[h,m]=w.useState(""),[g,b]=w.useState(""),[y,v]=w.useState("all"),[N,S]=w.useState(!1),[j,$]=w.useState(""),[C,_]=w.useState([]),[O,E]=w.useState(""),[P,T]=w.useState(""),[I,R]=w.useState("updated_at");w.useEffect(()=>{let B=!1;return X$({taxonomy:"category",activeOnly:!0}).then(H=>{B||_(H.terms)}).catch(()=>{B||_([])}),()=>{B=!0}},[]),w.useEffect(()=>{const B=window.setTimeout(()=>{b(h),c(1)},350);return()=>window.clearTimeout(B)},[h]);const F=w.useMemo(()=>{const B={page:l,limit:kF,sort:I,direction:I==="title"?"asc":"desc"};return y!=="all"&&(B.status=[y]),g.trim()&&(B.search=g.trim()),N&&r&&(B.ownedBy=r),j&&(B.categoryId=j),O&&(B.from=new Date(`${O}T00:00:00`).toISOString()),P&&(B.to=new Date(`${P}T23:59:59`).toISOString()),B},[l,I,y,g,N,r,j,O,P]);w.useEffect(()=>{let B=!1;return d(!0),BDe(F).then(H=>{B||(a(H.articles),o(H.total))}).catch(H=>{if(B)return;const K=H instanceof At?H.message:"Could not load articles.";te.error(K),a([]),o(0)}).finally(()=>{B||d(!1)}),()=>{B=!0}},[F]);const L=w.useCallback(()=>{m(""),b(""),v("all"),S(!1),$(""),E(""),T(""),c(1)},[]),q=Math.max(1,Math.ceil(i/kF)),G=!!(g||y!=="all"||N||j||O||P);return s.jsxs("div",{children:[s.jsx(Wn,{eyebrow:"Newsroom",title:"Articles",description:"Write, review, and publish articles for the public site.",actions:s.jsxs("button",{type:"button",onClick:e,className:rr,children:[s.jsx(ss,{size:16,"aria-hidden":"true"}),"New article"]})}),s.jsxs("div",{className:"overflow-hidden rounded-admin border border-admin-border bg-admin-surface shadow-admin",children:[s.jsxs("div",{className:"space-y-3 border-b border-admin-border bg-[#F5F7F8] px-4 py-3",children:[s.jsxs("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-[minmax(0,1fr)_11rem_11rem]",children:[s.jsxs("label",{className:"relative",children:[s.jsx("span",{className:"sr-only",children:"Search articles"}),s.jsx(Ls,{size:16,"aria-hidden":"true",className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-hba-grey-1"}),s.jsx("input",{id:"article-search",type:"search",value:h,onChange:B=>m(B.target.value),placeholder:"Search by title, slug, or summary",className:`${Vt} bg-white pl-9`})]}),s.jsx("select",{id:"article-status",value:y,"aria-label":"Filter by status",onChange:B=>{v(B.target.value),c(1)},className:`${Vt} bg-white`,children:yLe.map(B=>s.jsx("option",{value:B,children:B==="all"?"All statuses":Rv[B]},B))}),s.jsxs("select",{id:"article-sort",value:I,"aria-label":"Sort articles",onChange:B=>{R(B.target.value),c(1)},className:`${Vt} bg-white`,children:[s.jsx("option",{value:"updated_at",children:"Recently updated"}),s.jsx("option",{value:"created_at",children:"Recently created"}),s.jsx("option",{value:"published_at",children:"Recently published"}),s.jsx("option",{value:"title",children:"Title AâZ"})]})]}),s.jsxs("div",{className:"flex flex-wrap items-end gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{htmlFor:"article-from",className:"mb-1 block text-xs font-semibold text-hba-grey-1",children:"Updated from"}),s.jsx("input",{id:"article-from",type:"date",value:O,onChange:B=>{E(B.target.value),c(1)},className:`${Vt} bg-white`})]}),s.jsxs("div",{children:[s.jsx("label",{htmlFor:"article-to",className:"mb-1 block text-xs font-semibold text-hba-grey-1",children:"Updated to"}),s.jsx("input",{id:"article-to",type:"date",value:P,onChange:B=>{T(B.target.value),c(1)},className:`${Vt} bg-white`})]}),s.jsxs("div",{className:"min-w-[10rem] flex-1",children:[s.jsx("label",{htmlFor:"article-category",className:"mb-1 block text-xs font-semibold text-hba-grey-1",children:"Category"}),s.jsxs("select",{id:"article-category",value:j,onChange:B=>{$(B.target.value),c(1)},className:`${Vt} bg-white`,children:[s.jsx("option",{value:"",children:"All categories"}),C.map(B=>s.jsx("option",{value:B.id,children:B.name},B.id))]})]}),s.jsxs("label",{className:"flex h-10 items-center gap-2 text-sm text-hba-blue-1",children:[s.jsx("input",{type:"checkbox",checked:N,onChange:B=>{S(B.target.checked),c(1)}
1293,disabled:!r,className:"h-4 w-4 rounded border-gray-300 text-hba-orange-1 focus:ring-hba-orange-1"}),"Only my articles"]}),s.jsx("button",{type:"button",onClick:L,disabled:!G,className:Et,children:"Clear filters"})]})]}),s.jsxs("div",{className:"flex items-center justify-between border-b border-hba-blue-1/10 px-4 py-3",children:[s.jsx("p",{className:"text-sm font-semibold text-hba-blue-1","aria-live":"polite",children:u?"Loadingâ¦":`${i} ${i===1?"article":"articles"}`}),q>1&&s.jsxs("p",{className:"text-xs text-hba-grey-1",children:["Page ",l," of ",q]})]}),u?s.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-sm text-hba-grey-1",children:[s.jsx(pt,{size:18,className:"animate-spin"}),"Loading articlesâ¦"]}):n.length===0?s.jsx("div",{className:"px-6 py-4",children:s.jsx(Mo,{title:G?"No articles match these filters":"No articles yet",description:G?"Try widening your search or clearing the filters.":"Create your first article to get started.",icon:Gi,action:G?void 0:s.jsxs("button",{type:"button",onClick:e,className:rr,children:[s.jsx(ss,{size:16,"aria-hidden":"true"}),"New article"]})})}):s.jsx("ul",{className:"divide-y divide-hba-blue-1/10",children:n.map(B=>s.jsx("li",{children:s.jsxs("button",{type:"button",onClick:()=>t(B.id),className:"group flex w-full items-start gap-4 px-4 py-4 text-left transition-colors hover:bg-[#f7f9fc] focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-hba-orange-1",children:[B.featuredImageUrl?s.jsx("img",{src:B.featuredImageUrl,alt:"",className:"h-16 w-24 flex-shrink-0 rounded-lg border border-hba-blue-1/10 object-cover"}):s.jsx("span",{"aria-hidden":"true",className:"flex h-16 w-24 flex-shrink-0 items-center justify-center rounded-lg border border-dashed border-hba-blue-1/20 bg-[#f7f9fc] text-hba-grey-1",children:s.jsx(Gi,{size:18})}),s.jsxs("span",{className:"min-w-0 flex-1",children:[s.jsx("span",{className:"block text-base font-bold leading-snug tracking-tight text-hba-blue-1 group-hover:text-hba-orange-1",children:B.title||"Untitled article"}),s.jsxs("span",{className:"mt-1 block truncate text-sm text-hba-grey-1",children:[B.slug?`/${B.slug}`:"No URL yet",B.authorName?` · ${B.authorName}`:"",` · Updated ${Mu(B.updatedAt)}`]}),s.jsxs("span",{className:"mt-2.5 flex flex-wrap items-center gap-1.5",children:[s.jsx(J$,{status:B.status}),B.isLive&&s.jsx(wZ,{}),B.hasUnpublishedChanges&&s.jsx(xLe,{}),B.legacyPostId!==null&&s.jsx("span",{className:"rounded-full bg-slate-100 px-2.5 py-0.5 text-xs font-semibold text-slate-600",children:"Imported"}),B.scheduledFor&&s.jsxs("span",{className:"rounded-full bg-violet-50 px-2.5 py-0.5 text-xs font-semibold text-violet-700",children:["Publishes ",Mu(B.scheduledFor)]})]})]})]})},B.id))}),q>1&&s.jsx(WQ,{page:l,totalPages:q,onPageChange:c,disabled:u,label:"Article pages"})]})]})}function In(t){this.content=t}In.prototype={constructor:In,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,r){var n=r&&r!=t?this.remove(r):this,a=n.find(t),i=n.content.slice();return a==-1?i.push(r||t,e):(i[a+1]=e,r&&(i[a]=r)),new In(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var r=this.content.slice();return r.splice(e,2),new In(r)},addToStart:function(t,e){return new In([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var r=this.remove(t).content.slice();return r.push(t,e),new In(r)},addBefore:function(t,e,r){var n=this.remove(e),a=n.content.slice(),i=n.find(t);return a.splice(i==-1?a.length:i,0,e,r),new In(a)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=In.from(t),t.size?new In(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=In.from(t),t.size?new In(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=In.from(t);for(var r=0;r<t.content.length;r+=2)e=e.remove(t.content[r]);return e},toObject:function(){var t={};return this.forEach(function(e,r){t[e]=r}),t},get size(){return this.content.length>>1}};In.from=function(t){if(t instanceof In)return t;var e=[];
vendor: 8,934 bytes, line 1293
1293if(t)for(var r in t)e.push(r,t[r]);return new In(e)};function NZ(t,e,r){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:r;let a=t.child(n),i=e.child(n);if(a==i){r+=a.nodeSize;continue}if(!a.sameMarkup(i))return r;if(a.isText&&a.text!=i.text){let o=a.text,l=i.text,c=0;for(;o[c]==l[c];c++)r++;return c&&c<o.length&&c<l.length&&SZ(o.charCodeAt(c-1))&&kZ(o.charCodeAt(c))&&r--,r}if(a.content.size||i.content.size){let o=NZ(a.content,i.content,r+1);if(o!=null)return o}r+=a.nodeSize}}function jZ(t,e,r,n){for(let a=t.childCount,i=e.childCount;;){if(a==0||i==0)return a==i?null:{a:r,b:n};let o=t.child(--a),l=e.child(--i),c=o.nodeSize;if(o==l){r-=c,n-=c;continue}if(!o.sameMarkup(l))return{a:r,b:n};if(o.isText&&o.text!=l.text){let u=o.text,d=l.text,h=u.length,m=d.length;for(;h>0&&m>0&&u[h-1]==d[m-1];)h--,m--,r--,n--;return h&&m&&h<u.length&&SZ(u.charCodeAt(h-1))&&kZ(u.charCodeAt(h))&&(r++,n++),{a:r,b:n}}if(o.content.size||l.content.size){let u=jZ(o.content,l.content,r-1,n-1);if(u)return u}r-=c,n-=c}}function kZ(t){return t>=56320&&t<57344}function SZ(t){return t>=55296&&t<56320}class Ee{constructor(e,r){if(this.content=e,this.size=r||0,r==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,r,n,a=0,i){for(let o=0,l=0;l<r;o++){let c=this.content[o],u=l+c.nodeSize;if(u>e&&n(c,a+l,i||null,o)!==!1&&c.content.size){let d=l+1;c.nodesBetween(Math.max(0,e-d),Math.min(c.content.size,r-d),n,a+d)}l=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,r,n,a){let i="",o=!0;return this.nodesBetween(e,r,(l,c)=>{let u=l.isText?l.text.slice(Math.max(e,c)-c,r-c):l.isLeaf?a?typeof a=="function"?a(l):a:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&n&&(o?o=!1:i+=n),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let r=this.lastChild,n=e.firstChild,a=this.content.slice(),i=0;for(r.isText&&r.sameMarkup(n)&&(a[a.length-1]=r.withText(r.text+n.text),i=1);i<e.content.length;i++)a.push(e.content[i]);return new Ee(a,this.size+e.size)}cut(e,r=this.size){if(e==0&&r==this.size)return this;let n=[],a=0;if(r>e)for(let i=0,o=0;o<r;i++){let l=this.content[i],c=o+l.nodeSize;c>e&&((o<e||c>r)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,r-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,r-o-1))),n.push(l),a+=l.nodeSize),o=c}return new Ee(n,a)}cutByIndex(e,r){return e==r?Ee.empty:e==0&&r==this.content.length?this:new Ee(this.content.slice(e,r))}replaceChild(e,r){let n=this.content[e];if(n==r)return this;let a=this.content.slice(),i=this.size+r.nodeSize-n.nodeSize;return a[e]=r,new Ee(a,i)}addToStart(e){return new Ee([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Ee(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let r=0;r<this.content.length;r++)if(!this.content[r].eq(e.content[r]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let r=this.content[e];if(!r)throw new RangeError("Index "+e+" out of range for "+this);return r}maybeChild(e){return this.content[e]||null}forEach(e){for(let r=0,n=0;r<this.content.length;r++){let a=this.content[r];e(a,n,r),n+=a.nodeSize}}findDiffStart(e,r=0){return NZ(this,e,r)}findDiffEnd(e,r=this.size,n=e.size){return jZ(this,e,r,n)}findIndex(e){if(e==0)return fb(0,e);if(e==this.size)return fb(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,n=0;;r++){let a=this.child(r),i=n+a.nodeSize;if(i>=e)return i==e?fb(r+1,i):fb(r,n);n=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,r){if(!r)return Ee.empty;if(!Array.isArray(r))throw new RangeError("Invalid input for Fragment.fromJSON");return Ee.fromArray(r.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Ee.empty;let r,n=0;for(let a=0;a<e.length;a++){let i=e[a];n+=i.nodeSize,a&&i.isText&&e[a-1].sameMarkup(i)?(r||(r=e.slice(0,a)),r[r.length-1]=i.withText(r[r.length-1].text+i.text)):r&&r.push(i)}return new Ee(r||e,n)}static from(e){if(!e)return Ee.empty;if(e instanceof Ee)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Ee([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Ee.empty=new Ee([],0);const F7={index:0,offset:0};function fb(t,e){return F7.index=t,F7.offset=e,F7}function E2(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let r=Array.isArray(t);if(Array.isArray(e)!=r)return!1;if(r){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!E2(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!E2(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let or=class sk{constructor(e,r){this.type=e,this.attrs=r}addToSet(e){let r,n=!1;for(let a=0;a<e.length;a++){let i=e[a];if(this.eq(i))return e;if(this.type.excludes(i.type))r||(r=e.slice(0,a));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(r||(r=e.slice(0,a)),r.push(this),n=!0),r&&r.push(i)}}return r||(r=e.slice()),n||r.push(this),r}removeFromSet(e){for(let r=0;r<e.length;r++)if(this.eq(e[r]))return e.slice(0,r).concat(e.slice(r+1));return e}isInSet(e){for(let r=0;r<e.length;r++)if(this.eq(e[r]))return!0;return!1}eq(e){return this==e||this.type==e.type&&E2(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let r in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,r){if(!r)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[r.type];if(!n)throw new RangeError(`There is no mark type ${r.type} in this schema`);let a=n.create(r.attrs);return n.checkAttrs(a.attrs),a}static sameSet(e,r){if(e==r)return!0;if(e.length!=r.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(r[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return sk.none;if(e instanceof sk)return[e];let r=e.slice();return r.sort((n,a)=>n.type.rank-a.type.rank),r}};or.none=[];class k0 extends Error{}class Ge{constructor(e,r,n){this.content=e,this.openStart=r,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,r){let n=$Z(this.content,e+this.openStart,r,this.openStart+1,this.openEnd+1);return n&&new Ge(n,this.openStart,this.openEnd)}removeBetween(e,r){return new Ge(CZ(this.content,e+this.openStart,r+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,r){if(!r)return Ge.empty;let n=r.openStart||0,a=r.openEnd||0;if(typeof n!="number"||typeof a!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ge(Ee.fromJSON(e,r.content),n,a)}static maxOpen(e,r=!0){let n=0,a=0;for(let i=e.firstChild;i&&!i.isLeaf&&(r||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(r||!i.type.spec.isolating);i=i.lastChild)a++;return new Ge(e,n,a)}}Ge.empty=new Ge(Ee.empty,0,0);function CZ(t,e,r){let{index:n,offset:a}=t.findIndex(e),i=t.maybeChild(n),{index:o,offset:l}=t.findIndex(r);if(a==e||i.isText){if(l!=r&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(r))}if(n!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(CZ(i.content,e-a-1,r-a-1)))}function $Z(t,e,r,n,a,i){let{index:o,offset:l}=t.findIndex(e),c=t.maybeChild(o);if(l==e||c.isText)return i&&n<=0&&a<=0&&!i.canReplace(o,o,r)?null:t.cut(0,e).append(r).append(t.cut(e));let u=$Z(c.content,e-l-1,r,o==0?n-1:0,o==t.childCount-1?a-1:0,c);return u&&t.replaceChild(o,c.copy(u))}function wLe(t,e,r){if(r.openStart>t.depth)throw new k0("Inserted content deeper than insertion position");if(t.depth-r.openStart!=e.depth-r.openEnd)throw new k0("Inconsistent open depths");return _Z(t,e,r,0)}function _Z(t,e,r,n){let a=t.index(n),i=t.node(n);if(a==e.index(n)&&n<t.depth-r.openStart){let o=_Z(t,e,r,n+1);return i.copy(i.content.replaceChild(a,o))}else if(r.content.size)if(!r.openStart&&!r.openEnd&&t.depth==n&&e.depth==n){let o=t.parent,l=o.content;return wu(o,l.cut(0,t.parentOffset).append(r.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=NLe(r,t);return wu(i,EZ(t,o,l,e,n))}else return wu(i,O2(t,e,n))}function AZ(t,e){if(!e.type.compatibleContent(t.type))throw new k0("Cannot join "+e.type.n
vendor: 9,550 bytes, line 1293
1293ame+" onto "+t.type.name)}function ik(t,e,r){let n=t.node(r);return AZ(n,e.node(r)),n}function vu(t,e){let r=e.length-1;r>=0&&t.isText&&t.sameMarkup(e[r])?e[r]=t.withText(e[r].text+t.text):e.push(t)}function fm(t,e,r,n){let a=(e||t).node(r),i=0,o=e?e.index(r):a.childCount;t&&(i=t.index(r),t.depth>r?i++:t.textOffset&&(vu(t.nodeAfter,n),i++));for(let l=i;l<o;l++)vu(a.child(l),n);e&&e.depth==r&&e.textOffset&&vu(e.nodeBefore,n)}function wu(t,e){if(!t.type.validContent(e))throw new k0("Invalid content for node "+t.type.name);return t.copy(e)}function EZ(t,e,r,n,a){let i=t.depth>a&&ik(t,e,a+1),o=n.depth>a&&ik(r,n,a+1),l=[];return fm(null,t,a,l),i&&o&&e.index(a)==r.index(a)?(AZ(i,o),vu(wu(i,EZ(t,e,r,n,a+1)),l)):(i&&vu(wu(i,O2(t,e,a+1)),l),fm(e,r,a,l),o&&vu(wu(o,O2(r,n,a+1)),l)),fm(n,null,a,l),new Ee(l)}function O2(t,e,r){let n=[];if(fm(null,t,r,n),t.depth>r){let a=ik(t,e,r+1);vu(wu(a,O2(t,e,r+1)),n)}return fm(e,null,r,n),new Ee(n)}function NLe(t,e){let r=e.depth-t.openStart,a=e.node(r).copy(t.content);for(let i=r-1;i>=0;i--)a=e.node(i).copy(Ee.from(a));return{start:a.resolveNoCache(t.openStart+r),end:a.resolveNoCache(a.content.size-t.openEnd-r)}}class S0{constructor(e,r,n){this.pos=e,this.path=r,this.parentOffset=n,this.depth=r.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,r=this.index(this.depth);if(r==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],a=e.child(r);return n?e.child(r).cut(n):a}get nodeBefore(){let e=this.index(this.depth),r=this.pos-this.path[this.path.length-1];return r?this.parent.child(e).cut(0,r):e==0?null:this.parent.child(e-1)}posAtIndex(e,r){r=this.resolveDepth(r);let n=this.path[r*3],a=r==0?0:this.path[r*3-1]+1;for(let i=0;i<e;i++)a+=n.child(i).nodeSize;return a}marks(){let e=this.parent,r=this.index();if(e.content.size==0)return or.none;if(this.textOffset)return e.child(r).marks;let n=e.maybeChild(r-1),a=e.maybeChild(r);if(!n){let l=n;n=a,a=l}let i=n.marks;for(var o=0;o<i.length;o++)i[o].type.spec.inclusive===!1&&(!a||!i[o].isInSet(a.marks))&&(i=i[o--].removeFromSet(i));return i}marksAcross(e){let r=this.parent.maybeChild(this.index());if(!r||!r.isInline)return null;let n=r.marks,a=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!a||!n[i].isInSet(a.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let r=this.depth;r>0;r--)if(this.start(r)<=e&&this.end(r)>=e)return r;return 0}blockRange(e=this,r){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!r||r(this.node(n))))return new P2(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let r=1;r<=this.depth;r++)e+=(e?"/":"")+this.node(r).type.name+"_"+this.index(r-1);return e+":"+this.parentOffset}static resolve(e,r){if(!(r>=0&&r<=e.content.size))throw new RangeError("Position "+r+" out of range");let n=[],a=0,i=r;for(let o=e;;){let{index:l,offset:c}=o.content.findIndex(i),u=i-c;if(n.push(o,l,a+c),!u||(o=o.child(l),o.isText))break;i=u-1,a+=c+1}return new S0(r,n,i)}static resolveCached(e,r){let n=SF.get(e);if(n)for(let i=0;i<n.elts.length;i++){let o=n.elts[i];if(o.pos==r)return o}else SF.set(e,n=new jLe);let a=n.elts[n.i]=S0.resolve(e,r);return n.i=(n.i+1)%kLe,a}}class jLe{constructor(){this.elts=[],this.i=0}}const kLe=12,SF=new WeakMap;class P2{constructor(e,r,n){this.$from=e,this.$to=r,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const SLe=Object.create(null);let Zl=class ok{constructor(e,r,n,a=or.none){this.type=e,this.attrs=r,this.marks=a,this.content=n||Ee.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,r,n,a=0){this.content.nodesBetween(e,r,n,a,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,r,n,a){return this.content.textBetween(e,r,n,a)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,r,n){return this.type==e&&E2(this.attrs,r||e.defaultAttrs||SLe)&&or.sameSet(this.marks,n||or.none)}copy(e=null){return e==this.content?this:new ok(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ok(this.type,this.attrs,this.content,e)}cut(e,r=this.content.size){return e==0&&r==this.content.size?this:this.copy(this.content.cut(e,r))}slice(e,r=this.content.size,n=!1){if(e==r)return Ge.empty;let a=this.resolve(e),i=this.resolve(r),o=n?0:a.sharedDepth(r),l=a.start(o),u=a.node(o).content.cut(a.pos-l,i.pos-l);return new Ge(u,a.depth-o,i.depth-o)}replace(e,r,n){return wLe(this.resolve(e),this.resolve(r),n)}nodeAt(e){for(let r=this;;){let{index:n,offset:a}=r.content.findIndex(e);if(r=r.maybeChild(n),!r)return null;if(a==e||r.isText)return r;e-=a+1}}childAfter(e){let{index:r,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(r),index:r,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:r,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(r),index:r,offset:n};let a=this.content.child(r-1);return{node:a,index:r-1,offset:n-a.nodeSize}}resolve(e){return S0.resolveCached(this,e)}resolveNoCache(e){return S0.resolve(this,e)}rangeHasMark(e,r,n){let a=!1;return r>e&&this.nodesBetween(e,r,i=>(n.isInSet(i.marks)&&(a=!0),!a)),a}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),OZ(this.marks,e)}contentMatchAt(e){let r=this.type.contentMatch.matchFragment(this.content,0,e);if(!r)throw new Error("Called contentMatchAt on a node with invalid content");return r}canReplace(e,r,n=Ee.empty,a=0,i=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,a,i),l=o&&o.matchFragment(this.content,r);if(!l||!l.validEnd)return!1;for(let c=a;c<i;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0}canReplaceWith(e,r,n,a){if(a&&!this.type.allowsMarks(a))return!1;let i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,r);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=or.none;for(let r=0;r<this.marks.length;r++){let n=this.marks[r];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!or.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(r=>r.type.name)}`);this.content.forEach(r=>r.check())}toJSON(){let e={type:this.type.name};for(let r in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(r=>r.toJSON())),e}static fromJSON(e,r){if(!r)throw new RangeError("Invalid input for Node.fromJSON");let n;if(r.marks){if(!Array.isArray(r.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=r.marks.map(e.markFromJSON)}if(r.type=="text"){if(typeof r.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(r.text,n)}let a=Ee.fromJSON(e,r.content),i=e.nodeType(r.type).create(r.attrs,a,n);return i.type.checkAttrs(i.attrs),i}};Zl.prototype.text=void 0;class M2 extends Zl{constructor(e,r,n,a){if(super(e,r,null,a),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):OZ(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,r){return this.text.slice(e,r)}get nodeSize(){return this.text.length}
vendor: 5,505 bytes, lines 1293-1294
1293mark(e){return e==this.marks?this:new M2(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new M2(this.type,this.attrs,e,this.marks)}cut(e=0,r=this.text.length){return e==0&&r==this.text.length?this:this.withText(this.text.slice(e,r))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function OZ(t,e){for(let r=t.length-1;r>=0;r--)e=t[r].type.name+"("+e+")";return e}class Tu{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,r){let n=new CLe(e,r);if(n.next==null)return Tu.empty;let a=PZ(n);n.next&&n.err("Unexpected trailing text");let i=MLe(PLe(a));return TLe(i,n),i}matchType(e){for(let r=0;r<this.next.length;r++)if(this.next[r].type==e)return this.next[r].next;return null}matchFragment(e,r=0,n=e.childCount){let a=this;for(let i=r;a&&i<n;i++)a=a.matchType(e.child(i).type);return a}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:r}=this.next[e];if(!(r.isText||r.hasRequiredAttrs()))return r}return null}compatible(e){for(let r=0;r<this.next.length;r++)for(let n=0;n<e.next.length;n++)if(this.next[r].type==e.next[n].type)return!0;return!1}fillBefore(e,r=!1,n=0){let a=[this];function i(o,l){let c=o.matchFragment(e,n);if(c&&(!r||c.validEnd))return Ee.from(l.map(u=>u.createAndFill()));for(let u=0;u<o.next.length;u++){let{type:d,next:h}=o.next[u];if(!(d.isText||d.hasRequiredAttrs())&&a.indexOf(h)==-1){a.push(h);let m=i(h,l.concat(d));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let r=this.computeWrapping(e);return this.wrapCache.push(e,r),r}computeWrapping(e){let r=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let a=n.shift(),i=a.match;if(i.matchType(e)){let o=[];for(let l=a;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<i.next.length;o++){let{type:l,next:c}=i.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in r)&&(!a.type||c.validEnd)&&(n.push({match:l.contentMatch,type:l,via:a}),r[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function r(n){e.push(n);for(let a=0;a<n.next.length;a++)e.indexOf(n.next[a].next)==-1&&r(n.next[a].next)}return r(this),e.map((n,a)=>{let i=a+(n.validEnd?"*":" ")+" ";for(let o=0;o<n.next.length;o++)i+=(o?", ":"")+n.next[o].type.name+"->"+e.indexOf(n.next[o].next);return i}).join(` 1294`)}}Tu.empty=new Tu(!0);class CLe{constructor(e,r){this.string=e,this.nodeTypes=r,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function PZ(t){let e=[];do e.push($Le(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function $Le(t){let e=[];do e.push(_Le(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function _Le(t){let e=OLe(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=ALe(t,e);else break;return e}function CF(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function ALe(t,e){let r=CF(t),n=r;return t.eat(",")&&(t.next!="}"?n=CF(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:e}}function ELe(t,e){let r=t.nodeTypes,n=r[e];if(n)return[n];let a=[];for(let i in r){let o=r[i];o.isInGroup(e)&&a.push(o)}return a.length==0&&t.err("No node type or group '"+e+"' found"),a}function OLe(t){if(t.eat("(")){let e=PZ(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=ELe(t,t.next).map(r=>(t.inline==null?t.inline=r.isInline:t.inline!=r.isInline&&t.err("Mixing inline and block content"),{type:"name",value:r}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function PLe(t){let e=[[]];return a(i(t,0),r()),e;function r(){return e.push([])-1}function n(o,l,c){let u={term:c,to:l};return e[o].push(u),u}function a(o,l){o.forEach(c=>c.to=l)}function i(o,l){if(o.type=="choice")return o.exprs.reduce((c,u)=>c.concat(i(u,l)),[]);if(o.type=="seq")for(let c=0;;c++){let u=i(o.exprs[c],l);if(c==o.exprs.length-1)return u;a(u,l=r())}else if(o.type=="star"){let c=r();return n(l,c),a(i(o.expr,c),c),[n(c)]}else if(o.type=="plus"){let c=r();return a(i(o.expr,l),c),a(i(o.expr,c),c),[n(c)]}else{if(o.type=="opt")return[n(l)].concat(i(o.expr,l));if(o.type=="range"){let c=l;for(let u=0;u<o.min;u++){let d=r();a(i(o.expr,c),d),c=d}if(o.max==-1)a(i(o.expr,c),c);else for(let u=o.min;u<o.max;u++){let d=r();n(c,d),a(i(o.expr,c),d),c=d}return[n(c)]}else{if(o.type=="name")return[n(l,void 0,o.value)];throw new Error("Unknown expr type")}}}}function MZ(t,e){return e-t}function $F(t,e){let r=[];return n(e),r.sort(MZ);function n(a){let i=t[a];if(i.length==1&&!i[0].term)return n(i[0].to);r.push(a);for(let o=0;o<i.length;o++){let{term:l,to:c}=i[o];!l&&r.indexOf(c)==-1&&n(c)}}}function MLe(t){let e=Object.create(null);return r($F(t,0));function r(n){let a=[];
vendor: 12,383 bytes, lines 1294-1295
1294n.forEach(o=>{t[o].forEach(({term:l,to:c})=>{if(!l)return;let u;for(let d=0;d<a.length;d++)a[d][0]==l&&(u=a[d][1]);$F(t,c).forEach(d=>{u||a.push([l,u=[]]),u.indexOf(d)==-1&&u.push(d)})})});let i=e[n.join(",")]=new Tu(n.indexOf(t.length-1)>-1);for(let o=0;o<a.length;o++){let l=a[o][1].sort(MZ);i.next.push({type:a[o][0],next:e[l.join(",")]||r(l)})}return i}}function TLe(t,e){for(let r=0,n=[t];r<n.length;r++){let a=n[r],i=!a.validEnd,o=[];for(let l=0;l<a.next.length;l++){let{type:c,next:u}=a.next[l];o.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function TZ(t){let e=Object.create(null);for(let r in t){let n=t[r];if(!n.hasDefault)return null;e[r]=n.default}return e}function RZ(t,e){let r=Object.create(null);for(let n in t){let a=e&&e[n];if(a===void 0){let i=t[n];if(i.hasDefault)a=i.default;else throw new RangeError("No value supplied for attribute "+n)}r[n]=a}return r}function IZ(t,e,r,n){for(let a in e)if(!(a in t))throw new RangeError(`Unsupported attribute ${a} for ${r} of type ${n}`);for(let a in t)t[a].validate&&t[a].validate(e[a])}function DZ(t,e){let r=Object.create(null);if(e)for(let n in e)r[n]=new ILe(t,n,e[n]);return r}let _F=class LZ{constructor(e,r,n){this.name=e,this.schema=r,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=DZ(e,n.attrs),this.defaultAttrs=TZ(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Tu.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:RZ(this.attrs,e)}create(e=null,r,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Zl(this,this.computeAttrs(e),Ee.from(r),or.setFrom(n))}createChecked(e=null,r,n){return r=Ee.from(r),this.checkContent(r),new Zl(this,this.computeAttrs(e),r,or.setFrom(n))}createAndFill(e=null,r,n){if(e=this.computeAttrs(e),r=Ee.from(r),r.size){let o=this.contentMatch.fillBefore(r);if(!o)return null;r=o.append(r)}let a=this.contentMatch.matchFragment(r),i=a&&a.fillBefore(Ee.empty,!0);return i?new Zl(this,e,r.append(i),or.setFrom(n)):null}validContent(e){let r=this.contentMatch.matchFragment(e);if(!r||!r.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){IZ(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let r=0;r<e.length;r++)if(!this.allowsMarkType(e[r].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let r;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?r&&r.push(e[n]):r||(r=e.slice(0,n));return r?r.length?r:or.none:e}static compile(e,r){let n=Object.create(null);e.forEach((i,o)=>n[i]=new LZ(i,r,o));let a=r.spec.topNode||"doc";if(!n[a])throw new RangeError("Schema is missing its top node type ('"+a+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};function RLe(t,e,r){let n=r.split("|");return a=>{let i=a===null?"null":typeof a;if(n.indexOf(i)<0)throw new RangeError(`Expected value of type ${n} for attribute ${e} on type ${t}, got ${i}`)}}class ILe{constructor(e,r,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate=typeof n.validate=="string"?RLe(e,r,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class Iv{constructor(e,r,n,a){this.name=e,this.rank=r,this.schema=n,this.spec=a,this.attrs=DZ(e,a.attrs),this.excluded=null;let i=TZ(this.attrs);this.instance=i?new or(this,i):null}create(e=null){return!e&&this.instance?this.instance:new or(this,RZ(this.attrs,e))}static compile(e,r){let n=Object.create(null),a=0;return e.forEach((i,o)=>n[i]=new Iv(i,a++,r,o)),n}removeFromSet(e){for(var r=0;r<e.length;r++)e[r].type==this&&(e=e.slice(0,r).concat(e.slice(r+1)),r--);return e}isInSet(e){for(let r=0;r<e.length;r++)if(e[r].type==this)return e[r]}checkAttrs(e){IZ(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class BZ{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let r=this.spec={};for(let a in e)r[a]=e[a];r.nodes=In.from(e.nodes),r.marks=In.from(e.marks||{}),this.nodes=_F.compile(this.spec.nodes,this),this.marks=Iv.compile(this.spec.marks,this);let n=Object.create(null);for(let a in this.nodes){if(a in this.marks)throw new RangeError(a+" can not be both a node and a mark");let i=this.nodes[a],o=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=n[o]||(n[o]=Tu.parse(o,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=l=="_"?null:l?AF(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let a in this.marks){let i=this.marks[a],o=i.spec.excludes;i.excluded=o==null?[i]:o==""?[]:AF(this,o.split(" "))}this.nodeFromJSON=a=>Zl.fromJSON(this,a),this.markFromJSON=a=>or.fromJSON(this,a),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,r=null,n,a){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof _F){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(r,n,a)}text(e,r){let n=this.nodes.text;return new M2(n,n.defaultAttrs,e,or.setFrom(r))}mark(e,r){return typeof e=="string"&&(e=this.marks[e]),e.create(r)}nodeType(e){let r=this.nodes[e];if(!r)throw new RangeError("Unknown node type: "+e);return r}}function AF(t,e){let r=[];for(let n=0;n<e.length;n++){let a=e[n],i=t.marks[a],o=i;if(i)r.push(i);else for(let l in t.marks){let c=t.marks[l];(a=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(a)>-1)&&r.push(o=c)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return r}function DLe(t){return t.tag!=null}function LLe(t){return t.style!=null}let pm=class lk{constructor(e,r){this.schema=e,this.rules=r,this.tags=[],this.styles=[];let n=this.matchedStyles=[];r.forEach(a=>{if(DLe(a))this.tags.push(a);else if(LLe(a)){let i=/[^=]*/.exec(a.style)[0];n.indexOf(i)<0&&n.push(i),this.styles.push(a)}}),this.normalizeLists=!this.tags.some(a=>{if(!/^(ul|ol)\b/.test(a.tag)||!a.node)return!1;let i=e.nodes[a.node];return i.contentMatch.matchType(i)})}parse(e,r={}){let n=new OF(this,r,!1);return n.addAll(e,or.none,r.from,r.to),n.finish()}parseSlice(e,r={}){let n=new OF(this,r,!0);return n.addAll(e,or.none,r.from,r.to),Ge.maxOpen(n.finish())}matchTag(e,r,n){for(let a=n?this.tags.indexOf(n)+1:0;a<this.tags.length;a++){let i=this.tags[a];if(FLe(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||r.matchesContext(i.context))){if(i.getAttrs){let o=i.getAttrs(e);if(o===!1)continue;i.attrs=o||void 0}return i}}}matchStyle(e,r,n,a){for(let i=a?this.styles.indexOf(a)+1:0;i<this.styles.length;i++){let o=this.styles[i],l=o.style;if(!(l.indexOf(e)!=0||o.context&&!n.matchesContext(o.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=r))){if(o.getAttrs){let c=o.getAttrs(r);if(c===!1)continue;o.attrs=c||void 0}return o}}}static schemaRules(e){let r=[];function n(a){let i=a.priority==null?50:a.priority,o=0;for(;o<r.length;o++){let l=r[o];if((l.priority==null?50:l.priority)<i)break}r.splice(o,0,a)}for(let a in e.marks){let i=e.marks[a].spec.parseDOM;i&&i.forEach(o=>{n(o=PF(o)),o.mark||o.ignore||o.clearMark||(o.mark=a)})}for(let a in e.nodes){let i=e.nodes[a].spec.parseDOM;i&&i.forEach(o=>{n(o=PF(o)),o.node||o.ignore||o.mark||(o.node=a)})}return r}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new lk(e,lk.schemaRules(e)))}};const HZ={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},BLe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},FZ={ol:!0,ul:!0},C0=1,ck=2,mm=4;function EF(t,e,r){return e!=null?(e?C0:0)|(e==="full"?ck:0):t&&t.whitespace=="pre"?C0|ck:r&~mm}class pb{constructor(e,r,n,a,i,o){this.type=e,this.attrs=r,this.marks=n,this.solid=a,this.options=o,this.content=[],this.activeMarks=or.none,this.match=i||(o&mm?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let r=this.type.contentMatch.fillBefore(Ee.from(e));if(r)this.match=this.type.contentMatch.matchFragment(r);else{let n=this.type.contentMatch,a;return(a=n.findWrapping(e.type))?(this.match=n,a):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&C0)){let n=this.content[this.content.length-1],a;if(n&&n.isText&&(a=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==a[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-a[0].length))}}let r=Ee.from(this.content);return!e&&this.match&&(r=r.append(this.match.fillBefore(Ee.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!HZ.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class OF{constructor(e,r,n){this.parser=e,this.options=r,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let a=r.topNode,i,o=EF(null,r.preserveWhitespace,0)|(n?mm:0);a?i=new pb(a.type,a.attrs,or.none,!0,r.topMatch||a.type.contentMatch,o):n?i=new pb(null,null,or.none,!0,null,o):i=new pb(e.schema.topNodeType,null,or.none,!0,null,o),this.nodes=[i],this.find=r.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,r){e.nodeType==3?this.addTextNode(e,r):e.nodeType==1&&this.addElement(e,r)}addTextNode(e,r){let n=e.nodeValue,a=this.top,i=a.options&ck?"full":this.localPreserveWS||(a.options&C0)>0,{schema:o}=this.parser;if(i==="full"||a.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if(i==="full")n=n.replace(/\r\n?/g,` 1295`);else if(o.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(o.linebreakReplacement.create())){let l=n.split(/\r?\n|\r/);for(let c=0;c<l.length;c++)c&&this.insertNode(o.linebreakReplacement.create(),r,!0),l[c]&&this.insertNode(o.text(l[c]),r,!/\S/.test(l[c]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let l=a.content[a.content.length-1],c=e.previousSibling;(!l||c&&c.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(n=n.slice(1))}n&&this.insertNode(o.text(n),r,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,r,n){let a=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),l;FZ.hasOwnProperty(o)&&this.parser.normalizeLists&&HLe(e);let c=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,n));e:if(c?c.ignore:BLe.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,r);else if(!c||c.skip||c.closeParent){c&&c.closeParent?this.open=Math.max(0,this.open-1):c&&c.skip.nodeType&&(e=c.skip);let u,d=this.needsBlock;if(HZ.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,r);break e}
vendor: 4,920 bytes, lines 1295-1296
1295let h=c&&c.skip?r:this.readStyles(e,r);h&&this.addAll(e,h),u&&this.sync(i),this.needsBlock=d}else{let u=this.readStyles(e,r);u&&this.addElementByRule(e,c,u,c.consuming===!1?l:void 0)}this.localPreserveWS=a}leafFallback(e,r){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` 1296`),r)}ignoreFallback(e,r){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),r,!0)}readStyles(e,r){let n=e.style;if(n&&n.length)for(let a=0;a<this.parser.matchedStyles.length;a++){let i=this.parser.matchedStyles[a],o=n.getPropertyValue(i);if(o)for(let l=void 0;;){let c=this.parser.matchStyle(i,o,this,l);if(!c)break;if(c.ignore)return null;if(c.clearMark?r=r.filter(u=>!c.clearMark(u)):r=r.concat(this.parser.schema.marks[c.mark].create(c.attrs)),c.consuming===!1)l=c;else break}}return r}addElementByRule(e,r,n,a){let i,o;if(r.node)if(o=this.parser.schema.nodes[r.node],o.isLeaf)this.insertNode(o.create(r.attrs),n,e.nodeName=="BR")||this.leafFallback(e,n);else{let c=this.enter(o,r.attrs||null,n,r.preserveWhitespace);c&&(i=!0,n=c)}else{let c=this.parser.schema.marks[r.mark];n=n.concat(c.create(r.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(a)this.addElement(e,n,a);else if(r.getContent)this.findInside(e),r.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c,n,!1));else{let c=e;typeof r.contentElement=="string"?c=e.querySelector(r.contentElement):typeof r.contentElement=="function"?c=r.contentElement(e):r.contentElement&&(c=r.contentElement),this.findAround(e,c,!0),this.addAll(c,n),this.findAround(e,c,!1)}i&&this.sync(l)&&this.open--}addAll(e,r,n,a){let i=n||0;for(let o=n?e.childNodes[n]:e.firstChild,l=a==null?null:e.childNodes[a];o!=l;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,r);this.findAtPoint(e,i)}findPlace(e,r,n){let a,i;for(let o=this.open,l=0;o>=0;o--){let c=this.nodes[o],u=c.findWrapping(e);if(u&&(!a||a.length>u.length+l)&&(a=u,i=c,!u.length))break;if(c.solid){if(n)break;l+=2}}if(!a)return null;this.sync(i);for(let o=0;o<a.length;o++)r=this.enterInner(a[o],null,r,!1);return r}insertNode(e,r,n){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(r=this.enterInner(i,null,r))}let a=this.findPlace(e,r,n);if(a){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let o=or.none;for(let l of a.concat(e.marks))(i.type?i.type.allowsMarkType(l.type):MF(l.type,e.type))&&(o=l.addToSet(o));return i.content.push(e.mark(o)),!0}return!1}enter(e,r,n,a){let i=this.findPlace(e.create(r),n,!1);return i&&(i=this.enterInner(e,r,n,!0,a)),i}enterInner(e,r,n,a=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let l=EF(e,i,o.options);o.options&mm&&o.content.length==0&&(l|=mm);let c=or.none;return n=n.filter(u=>(o.type?o.type.allowsMarkType(u.type):MF(u.type,e))?(c=u.addToSet(c),!1):!0),this.nodes.push(new pb(e,r,c,a,null,l)),this.open++,n}closeExtra(e=!1){let r=this.nodes.length-1;if(r>this.open){for(;r>this.open;r--)this.nodes[r-1].content.push(this.nodes[r].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let r=this.open;r>=0;r--){if(this.nodes[r]==e)return this.open=r,!0;this.localPreserveWS&&(this.nodes[r].options|=C0)}return!1}get currentPos(){this.closeExtra();let e=0;for(let r=this.open;r>=0;r--){let n=this.nodes[r].content;for(let a=n.length-1;a>=0;a--)e+=n[a].nodeSize;r&&e++}return e}findAtPoint(e,r){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==r&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&(this.find[r].pos=this.currentPos)}findAround(e,r,n){if(e!=r&&this.find)for(let a=0;a<this.find.length;a++)this.find[a].pos==null&&e.nodeType==1&&e.contains(this.find[a].node)&&r.compareDocumentPosition(this.find[a].node)&(n?2:4)&&(this.find[a].pos=this.currentPos)}findInText(e){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&(this.find[r].pos=this.currentPos-(e.nodeValue.length-this.find[r].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let r=e.split("/"),n=this.options.context,a=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(a?0:1),o=(l,c)=>{for(;l>=0;l--){let u=r[l];if(u==""){if(l==r.length-1||l==0)continue;for(;c>=i;c--)if(o(l-1,c))return!0;return!1}else{let d=c>0||c==0&&a?this.nodes[c].type:n&&c>=i?n.node(c-i).type:null;if(!d||d.name!=u&&!d.isInGroup(u))return!1;c--}}return!0};return o(r.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let r=e.depth;r>=0;r--){let n=e.node(r).contentMatchAt(e.indexAfter(r)).defaultType;
vendor: 4,598 bytes, line 1296
1296if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let r in this.parser.schema.nodes){let n=this.parser.schema.nodes[r];if(n.isTextblock&&n.defaultAttrs)return n}}}function HLe(t){for(let e=t.firstChild,r=null;e;e=e.nextSibling){let n=e.nodeType==1?e.nodeName.toLowerCase():null;n&&FZ.hasOwnProperty(n)&&r?(r.appendChild(e),e=r):n=="li"?r=e:n&&(r=null)}}function FLe(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function PF(t){let e={};for(let r in t)e[r]=t[r];return e}function MF(t,e){let r=e.schema.nodes;for(let n in r){let a=r[n];if(!a.allowsMarkType(t))continue;let i=[],o=l=>{i.push(l);for(let c=0;c<l.edgeCount;c++){let{type:u,next:d}=l.edge(c);if(u==e||i.indexOf(d)<0&&o(d))return!0}};if(o(a.contentMatch))return!0}}class Xu{constructor(e,r){this.nodes=e,this.marks=r}serializeFragment(e,r={},n){n||(n=mb(r).createDocumentFragment());let a=n,i=[];return e.forEach(o=>{if(i.length||o.marks.length){let l=0,c=0;for(;l<i.length&&c<o.marks.length;){let u=o.marks[c];if(!this.marks[u.type.name]){c++;continue}if(!u.eq(i[l][0])||u.type.spec.spanning===!1)break;l++,c++}for(;l<i.length;)a=i.pop()[1];for(;c<o.marks.length;){let u=o.marks[c++],d=this.serializeMark(u,o.isInline,r);d&&(i.push([u,a]),a.appendChild(d.dom),a=d.contentDOM||d.dom)}}a.appendChild(this.serializeNodeInner(o,r))}),n}serializeNodeInner(e,r){if(e.isText)return mb(r).createTextNode(e.text);let{dom:n,contentDOM:a}=Zb(mb(r),this.nodes[e.type.name](e),null,e.attrs);if(a){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,r,a)}return n}serializeNode(e,r={}){let n=this.serializeNodeInner(e,r);for(let a=e.marks.length-1;a>=0;a--){let i=this.serializeMark(e.marks[a],e.isInline,r);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,r,n={}){let a=this.marks[e.type.name];return a&&Zb(mb(n),a(e,r),null,e.attrs)}static renderSpec(e,r,n=null,a){return typeof r=="string"?{dom:e.createTextNode(r)}:Zb(e,r,n,a)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Xu(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let r=TF(e.nodes);return r.text||(r.text=n=>n.text),r}static marksFromSchema(e){return TF(e.marks)}}function TF(t){let e={};for(let r in t){let n=t[r].spec.toDOM;n&&(e[r]=n)}return e}function mb(t){return t.document||window.document}const RF=new WeakMap;function zLe(t){let e=RF.get(t);return e===void 0&&RF.set(t,e=VLe(t)),e}function VLe(t){let e=null;function r(n){if(n&&typeof n=="object")if(Array.isArray(n))if(typeof n[0]=="string")e||(e=[]),e.push(n);else for(let a=0;a<n.length;a++)r(n[a]);else for(let a in n)r(n[a])}return r(t),e}function Zb(t,e,r,n){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let a=e[0],i;if(typeof a!="string")throw new RangeError("Invalid array passed to renderSpec");if(n&&(i=zLe(n))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=a.indexOf(" ");o>0&&(r=a.slice(0,o),a=a.slice(o+1));let l,c=r?t.createElementNS(r,a):t.createElement(a),u=e[1],d=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){d=2;for(let h in u)if(u[h]!=null){let m=h.indexOf(" ");m>0?c.setAttributeNS(h.slice(0,m),h.slice(m+1),u[h]):h=="style"&&c.style?c.style.cssText=u[h]:c.setAttribute(h,u[h])}}for(let h=d;h<e.length;h++){let m=e[h];if(m===0){if(h<e.length-1||h>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}else if(typeof m=="string")c.appendChild(t.createTextNode(m));else{let{dom:g,contentDOM:b}=Zb(t,m,r,n);if(c.appendChild(g),b){if(l)throw new RangeError("Multiple content holes");l=b}}}return{dom:c,contentDOM:l}}const zZ=65535,VZ=Math.pow(2,16);function ULe(t,e){return t+e*VZ}function IF(t){return t&zZ}function qLe(t){return(t-(t&zZ))/VZ}const UZ=1,qZ=2,ex=4,WZ=8;class uk{constructor(e,r,n){this.pos=e,this.delInfo=r,this.recover=n}get deleted(){return(this.delInfo&WZ)>0}get deletedBefore(){return(this.delInfo&(UZ|ex))>0}get deletedAfter(){return(this.delInfo&(qZ|ex))>0}get deletedAcross(){return(this.delInfo&ex)>0}}class es{constructor(e,r=!1){if(this.ranges=e,this.inverted=r,!e.length&&es.empty)return es.empty}recover(e){let r=0,n=IF(e);if(!this.inverted)for(let a=0;a<n;a++)r+=this.ranges[a*3+2]-this.ranges[a*3+1];return this.ranges[n*3]+r+qLe(e)}mapResult(e,r=1){return this._map(e,r,!1)}map(e,r=1){return this._map(e,r,!0)}_map(e,r,n){let a=0,i=this.inverted?2:1,o=this.inverted?1:2;
vendor: 4,389 bytes, line 1296
1296for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?a:0);if(c>e)break;let u=this.ranges[l+i],d=this.ranges[l+o],h=c+u;if(e<=h){let m=u?e==c?-1:e==h?1:r:r,g=c+a+(m<0?0:d);if(n)return g;let b=e==(r<0?c:h)?null:ULe(l/3,e-c),y=e==c?qZ:e==h?UZ:ex;return(r<0?e!=c:e!=h)&&(y|=WZ),new uk(g,y,b)}a+=d-u}return n?e+a:new uk(e+a,0,null)}touches(e,r){let n=0,a=IF(r),i=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?n:0);if(c>e)break;let u=this.ranges[l+i],d=c+u;if(e<=d&&l==a*3)return!0;n+=this.ranges[l+o]-u}return!1}forEach(e){let r=this.inverted?2:1,n=this.inverted?1:2;for(let a=0,i=0;a<this.ranges.length;a+=3){let o=this.ranges[a],l=o-(this.inverted?i:0),c=o+(this.inverted?0:i),u=this.ranges[a+r],d=this.ranges[a+n];e(l,l+u,c,c+d),i+=d-u}}invert(){return new es(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?es.empty:new es(e<0?[0,-e,0]:[0,0,e])}}es.empty=new es([]);class $0{constructor(e,r,n=0,a=e?e.length:0){this.mirror=r,this.from=n,this.to=a,this._maps=e||[],this.ownData=!(e||r)}get maps(){return this._maps}slice(e=0,r=this.maps.length){return new $0(this._maps,this.mirror,e,r)}appendMap(e,r){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),r!=null&&this.setMirror(this._maps.length-1,r)}appendMapping(e){for(let r=0,n=this._maps.length;r<e._maps.length;r++){let a=e.getMirror(r);this.appendMap(e._maps[r],a!=null&&a<r?n+a:void 0)}}getMirror(e){if(this.mirror){for(let r=0;r<this.mirror.length;r++)if(this.mirror[r]==e)return this.mirror[r+(r%2?-1:1)]}}setMirror(e,r){this.mirror||(this.mirror=[]),this.mirror.push(e,r)}appendMappingInverted(e){for(let r=e.maps.length-1,n=this._maps.length+e._maps.length;r>=0;r--){let a=e.getMirror(r);this.appendMap(e._maps[r].invert(),a!=null&&a>r?n-a-1:void 0)}}invert(){let e=new $0;return e.appendMappingInverted(this),e}map(e,r=1){if(this.mirror)return this._map(e,r,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,r);return e}mapResult(e,r=1){return this._map(e,r,!1)}_map(e,r,n){let a=0;for(let i=this.from;i<this.to;i++){let o=this._maps[i],l=o.mapResult(e,r);if(l.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,e=this._maps[c].recover(l.recover);continue}}a|=l.delInfo,e=l.pos}return n?e:new uk(e,a,null)}}const z7=Object.create(null);class da{getMap(){return es.empty}merge(e){return null}static fromJSON(e,r){if(!r||!r.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=z7[r.stepType];if(!n)throw new RangeError(`No step type ${r.stepType} defined`);return n.fromJSON(e,r)}static jsonID(e,r){if(e in z7)throw new RangeError("Duplicate use of step JSON ID "+e);return z7[e]=r,r.prototype.jsonID=e,r}}class nn{constructor(e,r){this.doc=e,this.failed=r}static ok(e){return new nn(e,null)}static fail(e){return new nn(null,e)}static fromReplace(e,r,n,a){try{return nn.ok(e.replace(r,n,a))}catch(i){if(i instanceof k0)return nn.fail(i.message);throw i}}}function Q$(t,e,r){let n=[];for(let a=0;a<t.childCount;a++){let i=t.child(a);i.content.size&&(i=i.copy(Q$(i.content,e,i))),i.isInline&&(i=e(i,r,a)),n.push(i)}return Ee.fromArray(n)}class Yl extends da{constructor(e,r,n){super(),this.from=e,this.to=r,this.mark=n}apply(e){let r=e.slice(this.from,this.to),n=e.resolve(this.from),a=n.node(n.sharedDepth(this.to)),i=new Ge(Q$(r.content,(o,l)=>!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),a),r.openStart,r.openEnd);return nn.fromReplace(e,this.from,this.to,i)}invert(){return new zi(this.from,this.to,this.mark)}map(e){let r=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return r.deleted&&n.deleted||r.pos>=n.pos?null:new Yl(r.pos,n.pos,this.mark)}merge(e){return e instanceof Yl&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Yl(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,r){if(typeof r.from!="number"||typeof r.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Yl(r.from,r.to,e.markFromJSON(r.mark))}}da.jsonID("addMark",Yl);class zi extends da{constructor(e,r,n){super(),this.from=e,this.to=r,this.mark=n}
vendor: 12,206 bytes, lines 1296-1297
1296apply(e){let r=e.slice(this.from,this.to),n=new Ge(Q$(r.content,a=>a.mark(this.mark.removeFromSet(a.marks)),e),r.openStart,r.openEnd);return nn.fromReplace(e,this.from,this.to,n)}invert(){return new Yl(this.from,this.to,this.mark)}map(e){let r=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return r.deleted&&n.deleted||r.pos>=n.pos?null:new zi(r.pos,n.pos,this.mark)}merge(e){return e instanceof zi&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new zi(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,r){if(typeof r.from!="number"||typeof r.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new zi(r.from,r.to,e.markFromJSON(r.mark))}}da.jsonID("removeMark",zi);class Xl extends da{constructor(e,r){super(),this.pos=e,this.mark=r}apply(e){let r=e.nodeAt(this.pos);if(!r)return nn.fail("No node at mark step's position");let n=r.type.create(r.attrs,null,this.mark.addToSet(r.marks));return nn.fromReplace(e,this.pos,this.pos+1,new Ge(Ee.from(n),0,r.isLeaf?0:1))}invert(e){let r=e.nodeAt(this.pos);if(r){let n=this.mark.addToSet(r.marks);if(n.length==r.marks.length){for(let a=0;a<r.marks.length;a++)if(!r.marks[a].isInSet(n))return new Xl(this.pos,r.marks[a]);return new Xl(this.pos,this.mark)}}return new Ru(this.pos,this.mark)}map(e){let r=e.mapResult(this.pos,1);return r.deletedAfter?null:new Xl(r.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,r){if(typeof r.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Xl(r.pos,e.markFromJSON(r.mark))}}da.jsonID("addNodeMark",Xl);class Ru extends da{constructor(e,r){super(),this.pos=e,this.mark=r}apply(e){let r=e.nodeAt(this.pos);if(!r)return nn.fail("No node at mark step's position");let n=r.type.create(r.attrs,null,this.mark.removeFromSet(r.marks));return nn.fromReplace(e,this.pos,this.pos+1,new Ge(Ee.from(n),0,r.isLeaf?0:1))}invert(e){let r=e.nodeAt(this.pos);return!r||!this.mark.isInSet(r.marks)?this:new Xl(this.pos,this.mark)}map(e){let r=e.mapResult(this.pos,1);return r.deletedAfter?null:new Ru(r.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,r){if(typeof r.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ru(r.pos,e.markFromJSON(r.mark))}}da.jsonID("removeNodeMark",Ru);class rn extends da{constructor(e,r,n,a=!1){super(),this.from=e,this.to=r,this.slice=n,this.structure=a}apply(e){return this.structure&&dk(e,this.from,this.to)?nn.fail("Structure replace would overwrite content"):nn.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new es([this.from,this.to-this.from,this.slice.size])}invert(e){return new rn(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let r=e.mapResult(this.to,-1),n=this.from==this.to&&rn.MAP_BIAS<0?r:e.mapResult(this.from,1);return n.deletedAcross&&r.deletedAcross?null:new rn(n.pos,Math.max(n.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof rn)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let r=this.slice.size+e.slice.size==0?Ge.empty:new Ge(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new rn(this.from,this.to+(e.to-e.from),r,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let r=this.slice.size+e.slice.size==0?Ge.empty:new Ge(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new rn(e.from,this.to,r,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,r){if(typeof r.from!="number"||typeof r.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new rn(r.from,r.to,Ge.fromJSON(e,r.slice),!!r.structure)}}rn.MAP_BIAS=1;da.jsonID("replace",rn);class kn extends da{constructor(e,r,n,a,i,o,l=!1){super(),this.from=e,this.to=r,this.gapFrom=n,this.gapTo=a,this.slice=i,this.insert=o,this.structure=l}apply(e){if(this.structure&&(dk(e,this.from,this.gapFrom)||dk(e,this.gapTo,this.to)))return nn.fail("Structure gap-replace would overwrite content");let r=e.slice(this.gapFrom,this.gapTo);if(r.openStart||r.openEnd)return nn.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,r.content);return n?nn.fromReplace(e,this.from,this.to,n):nn.fail("Content does not fit in gap")}getMap(){return new es([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let r=this.gapTo-this.gapFrom;return new kn(this.from,this.from+this.slice.size+r,this.from+this.insert,this.from+this.insert+r,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let r=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),a=this.from==this.gapFrom?r.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return r.deletedAcross&&n.deletedAcross||a<r.pos||i>n.pos?null:new kn(r.pos,n.pos,a,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,r){if(typeof r.from!="number"||typeof r.to!="number"||typeof r.gapFrom!="number"||typeof r.gapTo!="number"||typeof r.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new kn(r.from,r.to,r.gapFrom,r.gapTo,Ge.fromJSON(e,r.slice),r.insert,!!r.structure)}}da.jsonID("replaceAround",kn);function dk(t,e,r){let n=t.resolve(e),a=r-e,i=n.depth;for(;a>0&&i>0&&n.indexAfter(i)==n.node(i).childCount;)i--,a--;if(a>0){let o=n.node(i).maybeChild(n.indexAfter(i));for(;a>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,a--}}return!1}function WLe(t,e,r,n){let a=[],i=[],o,l;t.doc.nodesBetween(e,r,(c,u,d)=>{if(!c.isInline)return;let h=c.marks;if(!n.isInSet(h)&&d.type.allowsMarkType(n.type)){let m=Math.max(u,e),g=Math.min(u+c.nodeSize,r),b=n.addToSet(h);for(let y=0;y<h.length;y++)h[y].isInSet(b)||(o&&o.to==m&&o.mark.eq(h[y])?o.to=g:a.push(o=new zi(m,g,h[y])));l&&l.to==m?l.to=g:i.push(l=new Yl(m,g,n))}}),a.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function GLe(t,e,r,n){let a=[],i=0;t.doc.nodesBetween(e,r,(o,l)=>{if(!o.isInline)return;i++;let c=null;if(n instanceof Iv){let u=o.marks,d;for(;d=n.isInSet(u);)(c||(c=[])).push(d),u=d.removeFromSet(u)}else n?n.isInSet(o.marks)&&(c=[n]):c=o.marks;if(c&&c.length){let u=Math.min(l+o.nodeSize,r);for(let d=0;d<c.length;d++){let h=c[d],m;for(let g=0;g<a.length;g++){let b=a[g];b.step==i-1&&h.eq(a[g].style)&&(m=b)}m?(m.to=u,m.step=i):a.push({style:h,from:Math.max(l,e),to:u,step:i})}}}),a.forEach(o=>t.step(new zi(o.from,o.to,o.style)))}function Z$(t,e,r,n=r.contentMatch,a=!0){let i=t.doc.nodeAt(e),o=[],l=e+1;for(let c=0;c<i.childCount;c++){let u=i.child(c),d=l+u.nodeSize,h=n.matchType(u.type);if(!h)o.push(new rn(l,d,Ge.empty));else{n=h;for(let m=0;m<u.marks.length;m++)r.allowsMarkType(u.marks[m].type)||t.step(new zi(l,d,u.marks[m]));if(a&&u.isText&&r.whitespace!="pre"){let m,g=/\r?\n|\r/g,b;for(;m=g.exec(u.text);)b||(b=new Ge(Ee.from(r.schema.text(" ",r.allowedMarks(u.marks))),0,0)),o.push(new rn(l+m.index,l+m.index+m[0].length,b))}}l=d}if(!n.validEnd){let c=n.fillBefore(Ee.empty,!0);t.replace(l,l,new Ge(c,0,0))}for(let c=o.length-1;c>=0;c--)t.step(o[c])}function KLe(t,e,r){return(e==0||t.canReplace(e,t.childCount))&&(r==t.childCount||t.canReplace(0,r))}function Mf(t){let r=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth,a=0,i=0;;--n){let o=t.$from.node(n),l=t.$from.index(n)+a,c=t.$to.indexAfter(n)-i;if(n<t.depth&&o.canReplace(l,c,r))return n;if(n==0||o.type.spec.isolating||!KLe(o,l,c))break;l&&(a=1),c<o.childCount&&(i=1)}return null}function YLe(t,e,r){let{$from:n,$to:a,depth:i}=e,o=n.before(i+1),l=a.after(i+1),c=o,u=l,d=Ee.empty,h=0;for(let b=i,y=!1;b>r;b--)y||n.index(b)>0?(y=!0,d=Ee.from(n.node(b).copy(d)),h++):c--;let m=Ee.empty,g=0;for(let b=i,y=!1;b>r;b--)y||a.after(b+1)<a.end(b)?(y=!0,m=Ee.from(a.node(b).copy(m)),g++):u++;t.step(new kn(c,u,o,l,new Ge(d.append(m),h,g),d.size-h,!0))}function e_(t,e,r=null,n=t){let a=XLe(t,e),i=a&&JLe(n,e);return i?a.map(DF).concat({type:e,attrs:r}).concat(i.map(DF)):null}function DF(t){return{type:t,attrs:null}}function XLe(t,e){let{parent:r,startIndex:n,endIndex:a}=t,i=r.contentMatchAt(n).findWrapping(e);if(!i)return null;let o=i.length?i[0]:e;return r.canReplaceWith(n,a,o)?i:null}function JLe(t,e){let{parent:r,startIndex:n,endIndex:a}=t,i=r.child(n),o=e.contentMatch.findWrapping(i.type);if(!o)return null;let c=(o.length?o[o.length-1]:e).contentMatch;for(let u=n;c&&u<a;u++)c=c.matchType(r.child(u).type);return!c||!c.validEnd?null:o}function QLe(t,e,r){let n=Ee.empty;for(let o=r.length-1;o>=0;o--){if(n.size){let l=r[o].type.contentMatch.matchFragment(n);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=Ee.from(r[o].type.create(r[o].attrs,n))}let a=e.start,i=e.end;t.step(new kn(a,i,a,i,new Ge(n,0,0),r.length,!0))}function ZLe(t,e,r,n,a){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,r,(o,l)=>{let c=typeof a=="function"?a(o):a;if(o.isTextblock&&!o.hasMarkup(n,c)&&eBe(t.doc,t.mapping.slice(i).map(l),n)){let u=null;if(n.schema.linebreakReplacement){let g=n.whitespace=="pre",b=!!n.contentMatch.matchType(n.schema.linebreakReplacement);g&&!b?u=!1:!g&&b&&(u=!0)}u===!1&&KZ(t,o,l,i),Z$(t,t.mapping.slice(i).map(l,1),n,void 0,u===null);let d=t.mapping.slice(i),h=d.map(l,1),m=d.map(l+o.nodeSize,1);return t.step(new kn(h,m,h+1,m-1,new Ge(Ee.from(n.create(c,null,o.marks)),0,0),1,!0)),u===!0&&GZ(t,o,l,i),!1}})}function GZ(t,e,r,n){e.forEach((a,i)=>{if(a.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(a.text);){let c=t.mapping.slice(n).map(r+1+i+o.index);t.replaceWith(c,c+1,e.type.schema.linebreakReplacement.create())}}})}function KZ(t,e,r,n){e.forEach((a,i)=>{if(a.type==a.type.schema.linebreakReplacement){let o=t.mapping.slice(n).map(r+1+i);t.replaceWith(o,o+1,e.type.schema.text(` 1297`))}})}function eBe(t,e,r){let n=t.resolve(e),a=n.index();return n.parent.canReplaceWith(a,a+1,r)}function tBe(t,e,r,n,a){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");r||(r=i.type);let o=r.create(n,null,a||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,o);if(!r.validContent(i.content))throw new RangeError("Invalid content for node type "+r.name);t.step(new kn(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new Ge(Ee.from(o),0,0),1,!0))}function Vo(t,e,r=1,n){let a=t.resolve(e),i=a.depth-r,o=n&&n[n.length-1]||a.parent;if(i<0||a.parent.type.spec.isolating||!a.parent.canReplace(a.index(),a.parent.childCount)||!o.type.validContent(a.parent.content.cutByIndex(a.index(),a.parent.childCount)))return!1;for(let u=a.depth-1,d=r-2;u>i;u--,d--){let h=a.node(u),m=a.index(u);if(h.type.spec.isolating)return!1;let g=h.content.cutByIndex(m,h.childCount),b=n&&n[d+1];b&&(g=g.replaceChild(0,b.type.create(b.attrs)));let y=n&&n[d]||h;if(!h.canReplace(m+1,h.childCount)||!y.type.validContent(g))return!1}let l=a.indexAfter(i),c=n&&n[0];return a.node(i).canReplaceWith(l,l,c?c.type:a.node(i+1).type)}function rBe(t,e,r=1,n){let a=t.doc.resolve(e),i=Ee.empty,o=Ee.empty;for(let l=a.depth,c=a.depth-r,u=r-1;l>c;l--,u--){i=Ee.from(a.node(l).copy(i));let d=n&&n[u];o=Ee.from(d?d.type.create(d.attrs,o):a.node(l).copy(o))}t.step(new rn(e,e,new Ge(i.append(o),r,r),!0))}function yc(t,e){let r=t.resolve(e),n=r.index();return YZ(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function nBe(t,e){e.content.size||t.type.compatibleContent(e.type);let r=t.contentMatchAt(t.childCount),{linebreakReplacement:n}=t.type.schema;for(let a=0;a<e.childCount;
vendor: 11,863 bytes, line 1297
1297a++){let i=e.child(a),o=i.type==n?t.type.schema.nodes.text:i.type;if(r=r.matchType(o),!r||!t.type.allowsMarks(i.marks))return!1}return r.validEnd}function YZ(t,e){return!!(t&&e&&!t.isLeaf&&nBe(t,e))}function Dv(t,e,r=-1){let n=t.resolve(e);for(let a=n.depth;;a--){let i,o,l=n.index(a);if(a==n.depth?(i=n.nodeBefore,o=n.nodeAfter):r>0?(i=n.node(a+1),l++,o=n.node(a).maybeChild(l)):(i=n.node(a).maybeChild(l-1),o=n.node(a+1)),i&&!i.isTextblock&&YZ(i,o)&&n.node(a).canReplace(l,l+1))return e;if(a==0)break;e=r<0?n.before(a):n.after(a)}}function aBe(t,e,r){let n=null,{linebreakReplacement:a}=t.doc.type.schema,i=t.doc.resolve(e-r),o=i.node().type;if(a&&o.inlineContent){let d=o.whitespace=="pre",h=!!o.contentMatch.matchType(a);d&&!h?n=!1:!d&&h&&(n=!0)}let l=t.steps.length;if(n===!1){let d=t.doc.resolve(e+r);KZ(t,d.node(),d.before(),l)}o.inlineContent&&Z$(t,e+r-1,o,i.node().contentMatchAt(i.index()),n==null);let c=t.mapping.slice(l),u=c.map(e-r);if(t.step(new rn(u,c.map(e+r,-1),Ge.empty,!0)),n===!0){let d=t.doc.resolve(u);GZ(t,d.node(),d.before(),t.steps.length)}return t}function sBe(t,e,r){let n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),r))return e;if(n.parentOffset==0)for(let a=n.depth-1;a>=0;a--){let i=n.index(a);if(n.node(a).canReplaceWith(i,i,r))return n.before(a+1);if(i>0)return null}if(n.parentOffset==n.parent.content.size)for(let a=n.depth-1;a>=0;a--){let i=n.indexAfter(a);if(n.node(a).canReplaceWith(i,i,r))return n.after(a+1);if(i<n.node(a).childCount)return null}return null}function XZ(t,e,r){let n=t.resolve(e);if(!r.content.size)return e;let a=r.content;for(let i=0;i<r.openStart;i++)a=a.firstChild.content;for(let i=1;i<=(r.openStart==0&&r.size?2:1);i++)for(let o=n.depth;o>=0;o--){let l=o==n.depth?0:n.pos<=(n.start(o+1)+n.end(o+1))/2?-1:1,c=n.index(o)+(l>0?1:0),u=n.node(o),d=!1;if(i==1)d=u.canReplace(c,c,a);else{let h=u.contentMatchAt(c).findWrapping(a.firstChild.type);d=h&&u.canReplaceWith(c,c,h[0])}if(d)return l==0?n.pos:l<0?n.before(o+1):n.after(o+1)}return null}function Lv(t,e,r=e,n=Ge.empty){if(e==r&&!n.size)return null;let a=t.resolve(e),i=t.resolve(r);return JZ(a,i,n)?new rn(e,r,n):new iBe(a,i,n).fit()}function JZ(t,e,r){return!r.openStart&&!r.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),r.content)}class iBe{constructor(e,r,n){this.$from=e,this.$to=r,this.unplaced=n,this.frontier=[],this.placed=Ee.empty;for(let a=0;a<=e.depth;a++){let i=e.node(a);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(a))})}for(let a=e.depth;a>0;a--)this.placed=Ee.from(e.node(a).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),r=this.placed.size-this.depth-this.$from.depth,n=this.$from,a=this.close(e<0?this.$to:n.doc.resolve(e));if(!a)return null;let i=this.placed,o=n.depth,l=a.depth;for(;o&&l&&i.childCount==1;)i=i.firstChild.content,o--,l--;let c=new Ge(i,o,l);return e>-1?new kn(n.pos,e,this.$to.pos,this.$to.end(),c,r):c.size||n.pos!=this.$to.pos?new rn(n.pos,a.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let r=this.unplaced.content,n=0,a=this.unplaced.openEnd;n<e;n++){let i=r.firstChild;if(r.childCount>1&&(a=0),i.type.spec.isolating&&a<=n){e=n;break}r=i.content}for(let r=1;r<=2;r++)for(let n=r==1?e:this.unplaced.openStart;n>=0;n--){let a,i=null;n?(i=V7(this.unplaced.content,n-1).firstChild,a=i.content):a=this.unplaced.content;let o=a.firstChild;for(let l=this.depth;l>=0;l--){let{type:c,match:u}=this.frontier[l],d,h=null;if(r==1&&(o?u.matchType(o.type)||(h=u.fillBefore(Ee.from(o),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:l,parent:i,inject:h};if(r==2&&o&&(d=u.findWrapping(o.type)))return{sliceDepth:n,frontierDepth:l,parent:i,wrap:d};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:r,openEnd:n}=this.unplaced,a=V7(e,r);return!a.childCount||a.firstChild.isLeaf?!1:(this.unplaced=new Ge(e,r+1,Math.max(n,a.size+r>=e.size-n?r+1:0)),!0)}dropNode(){let{content:e,openStart:r,openEnd:n}=this.unplaced,a=V7(e,r);if(a.childCount<=1&&r>0){let i=e.size-r<=r+a.size;this.unplaced=new Ge(Kp(e,r-1,1),r-1,i?r-1:n)}else this.unplaced=new Ge(Kp(e,r,1),r,n)}placeNodes({sliceDepth:e,frontierDepth:r,parent:n,inject:a,wrap:i}){for(;this.depth>r;)this.closeFrontierNode();if(i)for(let y=0;y<i.length;y++)this.openFrontierNode(i[y]);let o=this.unplaced,l=n?n.content:o.content,c=o.openStart-e,u=0,d=[],{match:h,type:m}=this.frontier[r];if(a){for(let y=0;y<a.childCount;y++)d.push(a.child(y));h=h.matchFragment(a)}let g=l.size+e-(o.content.size-o.openEnd);for(;u<l.childCount;){let y=l.child(u),v=h.matchType(y.type);if(!v)break;u++,(u>1||c==0||y.content.size)&&(h=v,d.push(QZ(y.mark(m.allowedMarks(y.marks)),u==1?c:0,u==l.childCount?g:-1)))}let b=u==l.childCount;b||(g=-1),this.placed=Yp(this.placed,r,Ee.from(d)),this.frontier[r].match=h,b&&g<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,v=l;y<g;y++){let N=v.lastChild;this.frontier.push({type:N.type,match:N.contentMatchAt(N.childCount)}),v=N.content}this.unplaced=b?e==0?Ge.empty:new Ge(Kp(o.content,e-1,1),e-1,g<0?o.openEnd:e-1):new Ge(Kp(o.content,e,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],r;if(!e.type.isTextblock||!U7(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(r=this.findCloseLevel(this.$to))&&r.depth==this.depth)return-1;let{depth:n}=this.$to,a=this.$to.after(n);for(;n>1&&a==this.$to.end(--n);)++a;return a}findCloseLevel(e){e:for(let r=Math.min(this.depth,e.depth);r>=0;r--){let{match:n,type:a}=this.frontier[r],i=r<e.depth&&e.end(r+1)==e.pos+(e.depth-(r+1)),o=U7(e,r,a,n,i);if(o){for(let l=r-1;l>=0;l--){let{match:c,type:u}=this.frontier[l],d=U7(e,l,u,c,!0);if(!d||d.childCount)continue e}return{depth:r,fit:o,move:i?e.doc.resolve(e.after(r+1)):e}}}}close(e){let r=this.findCloseLevel(e);if(!r)return null;for(;this.depth>r.depth;)this.closeFrontierNode();r.fit.childCount&&(this.placed=Yp(this.placed,r.depth,r.fit)),e=r.move;for(let n=r.depth+1;n<=e.depth;n++){let a=e.node(n),i=a.type.contentMatch.fillBefore(a.content,!0,e.index(n));this.openFrontierNode(a.type,a.attrs,i)}return e}openFrontierNode(e,r=null,n){let a=this.frontier[this.depth];a.match=a.match.matchType(e),this.placed=Yp(this.placed,this.depth,Ee.from(e.create(r,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let r=this.frontier.pop().match.fillBefore(Ee.empty,!0);r.childCount&&(this.placed=Yp(this.placed,this.frontier.length,r))}}function Kp(t,e,r){return e==0?t.cutByIndex(r,t.childCount):t.replaceChild(0,t.firstChild.copy(Kp(t.firstChild.content,e-1,r)))}function Yp(t,e,r){return e==0?t.append(r):t.replaceChild(t.childCount-1,t.lastChild.copy(Yp(t.lastChild.content,e-1,r)))}function V7(t,e){for(let r=0;r<e;r++)t=t.firstChild.content;return t}function QZ(t,e,r){if(e<=0)return t;let n=t.content;return e>1&&(n=n.replaceChild(0,QZ(n.firstChild,e-1,n.childCount==1?r-1:0))),e>0&&(n=t.type.contentMatch.fillBefore(n).append(n),r<=0&&(n=n.append(t.type.contentMatch.matchFragment(n).fillBefore(Ee.empty,!0)))),t.copy(n)}function U7(t,e,r,n,a){let i=t.node(e),o=a?t.indexAfter(e):t.index(e);if(o==i.childCount&&!r.compatibleContent(i.type))return null;let l=n.fillBefore(i.content,!0,o);return l&&!oBe(r,i.content,o)?l:null}function oBe(t,e,r){for(let n=r;n<e.childCount;n++)if(!t.allowsMarks(e.child(n).marks))return!0;return!1}function lBe(t){return t.spec.defining||t.spec.definingForContent}function cBe(t,e,r,n){if(!n.size)return t.deleteRange(e,r);let a=t.doc.resolve(e),i=t.doc.resolve(r);if(JZ(a,i,n))return t.step(new rn(e,r,n));let o=eee(a,i);o[o.length-1]==0&&o.pop();let l=-(a.depth+1);o.unshift(l);for(let m=a.depth,g=a.pos-1;m>0;m--,g--){let b=a.node(m).type.spec;if(b.defining||b.definingAsContext||b.isolating)break;o.indexOf(m)>-1?l=m:a.before(m)==g&&o.splice(1,0,-m)}let c=o.indexOf(l),u=[],d=n.openStart;for(let m=n.content,g=0;;g++){let b=m.firstChild;if(u.push(b),g==n.openStart)break;m=b.content}for(let m=d-1;m>=0;m--){let g=u[m],b=lBe(g.type);if(b&&!g.sameMarkup(a.node(Math.abs(l)-1)))d=m;else if(b||!g.type.isTextblock)break}for(let m=n.openStart;m>=0;m--){let g=(m+d+1)%(n.openStart+1),b=u[g];if(b)for(let y=0;y<o.length;y++){let v=o[(y+c)%o.length],N=!0;v<0&&(N=!1,v=-v);let S=a.node(v-1),j=a.index(v-1);if(S.canReplaceWith(j,j,b.type,b.marks))return t.replace(a.before(v),N?i.after(v):r,new Ge(ZZ(n.content,0,n.openStart,g),g,n.openEnd))}}let h=t.steps.length;for(let m=o.length-1;m>=0&&(t.replace(e,r,n),!(t.steps.length>h));m--){let g=o[m];g<0||(e=a.before(g),r=i.after(g))}}function ZZ(t,e,r,n,a){if(e<r){let i=t.firstChild;t=t.replaceChild(0,i.copy(ZZ(i.content,e+1,r,n,i)))}if(e>n){let i=a.contentMatchAt(0),o=i.fillBefore(t).append(t);t=o.append(i.matchFragment(o).fillBefore(Ee.empty,!0))}return t}function uBe(t,e,r,n){if(!n.isInline&&e==r&&t.doc.resolve(e).parent.content.size){let a=sBe(t.doc,e,n.type);a!=null&&(e=r=a)}t.replaceRange(e,r,new Ge(Ee.from(n),0,0))}function dBe(t,e,r){let n=t.doc.resolve(e),a=t.doc.resolve(r);if(n.parent.isTextblock&&a.parent.isTextblock&&n.start()!=a.start()&&n.parentOffset==0&&a.parentOffset==0){let o=n.sharedDepth(r),l=!1;for(let c=n.depth;c>o;c--)n.node(c).type.spec.isolating&&(l=!0);for(let c=a.depth;c>o;c--)a.node(c).type.spec.isolating&&(l=!0);if(!l){for(let c=n.depth;c>0&&e==n.start(c);c--)e=n.before(c);for(let c=a.depth;c>0&&r==a.start(c);c--)r=a.before(c);n=t.doc.resolve(e),a=t.doc.resolve(r)}}let i=eee(n,a);for(let o=0;o<i.length;o++){let l=i[o],c=o==i.length-1;if(c&&l==0||n.node(l).type.contentMatch.validEnd)return t.delete(n.start(l),a.end(l));if(l>0&&(c||n.node(l-1).canReplace(n.index(l-1),a.indexAfter(l-1))))return t.delete(n.before(l),a.after(l))}for(let o=1;o<=n.depth&&o<=a.depth;o++)if(e-n.start(o)==n.depth-o&&r>n.end(o)&&a.end(o)-r!=a.depth-o&&n.start(o-1)==a.start(o-1)&&n.node(o-1).canReplace(n.index(o-1),a.index(o-1)))return t.delete(n.before(o),r);t.delete(e,r)}function eee(t,e){let r=[],n=Math.min(t.depth,e.depth);for(let a=n;a>=0;a--){let i=t.start(a);if(i<t.pos-(t.depth-a)||e.end(a)>e.pos+(e.depth-a)||t.node(a).type.spec.isolating||e.node(a).type.spec.isolating)break;(i==e.start(a)||a==t.depth&&a==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&a&&e.start(a-1)==i-1)&&r.push(a)}return r}class yh extends da{constructor(e,r,n){super(),this.pos=e,this.attr=r,this.value=n}apply(e){let r=e.nodeAt(this.pos);if(!r)return nn.fail("No node at attribute step's position");let n=Object.create(null);for(let i in r.attrs)n[i]=r.attrs[i];n[this.attr]=this.value;let a=r.type.create(n,null,r.marks);return nn.fromReplace(e,this.pos,this.pos+1,new Ge(Ee.from(a),0,r.isLeaf?0:1))}getMap(){return es.empty}invert(e){return new yh(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let r=e.mapResult(this.pos,1);return r.deletedAfter?null:new yh(r.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,r){if(typeof r.pos!="number"||typeof r.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new yh(r.pos,r.attr,r.value)}}da.jsonID("attr",yh);class _0 extends da{constructor(e,r){super(),this.attr=e,this.value=r}apply(e){let r=Object.create(null);for(let a in e.attrs)r[a]=e.attrs[a];r[this.attr]=this.value;let n=e.type.create(r,e.content,e.marks);return nn.ok(n)}getMap(){return es.empty}invert(e){return new _0(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,r){if(typeof r.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new _0(r.attr,r.value)}}da.jsonID("docAttr",_0);
vendor: 4,298 bytes, line 1297
1297let tf=class extends Error{};tf=function t(e){let r=Error.call(this,e);return r.__proto__=t.prototype,r};tf.prototype=Object.create(Error.prototype);tf.prototype.constructor=tf;tf.prototype.name="TransformError";class t_{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new $0}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let r=this.maybeStep(e);if(r.failed)throw new tf(r.failed);return this}maybeStep(e){let r=e.apply(this.doc);return r.failed||this.addStep(e,r.doc),r}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,r=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let a=this.mapping.maps[n];n&&(e=a.map(e,1),r=a.map(r,-1)),a.forEach((i,o,l,c)=>{e=Math.min(e,l),r=Math.max(r,c)})}return e==1e9?null:{from:e,to:r}}addStep(e,r){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=r}replace(e,r=e,n=Ge.empty){let a=Lv(this.doc,e,r,n);return a&&this.step(a),this}replaceWith(e,r,n){return this.replace(e,r,new Ge(Ee.from(n),0,0))}delete(e,r){return this.replace(e,r,Ge.empty)}insert(e,r){return this.replaceWith(e,e,r)}replaceRange(e,r,n){return cBe(this,e,r,n),this}replaceRangeWith(e,r,n){return uBe(this,e,r,n),this}deleteRange(e,r){return dBe(this,e,r),this}lift(e,r){return YLe(this,e,r),this}join(e,r=1){return aBe(this,e,r),this}wrap(e,r){return QLe(this,e,r),this}setBlockType(e,r=e,n,a=null){return ZLe(this,e,r,n,a),this}setNodeMarkup(e,r,n=null,a){return tBe(this,e,r,n,a),this}setNodeAttribute(e,r,n){return this.step(new yh(e,r,n)),this}setDocAttribute(e,r){return this.step(new _0(e,r)),this}addNodeMark(e,r){return this.step(new Xl(e,r)),this}removeNodeMark(e,r){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(r instanceof or)r.isInSet(n.marks)&&this.step(new Ru(e,r));else{let a=n.marks,i,o=[];for(;i=r.isInSet(a);)o.push(new Ru(e,i)),a=i.removeFromSet(a);for(let l=o.length-1;l>=0;l--)this.step(o[l])}return this}split(e,r=1,n){return rBe(this,e,r,n),this}addMark(e,r,n){return WLe(this,e,r,n),this}removeMark(e,r,n){return GLe(this,e,r,n),this}clearIncompatible(e,r,n){return Z$(this,e,r,n),this}}const q7=Object.create(null);class St{constructor(e,r,n){this.$anchor=e,this.$head=r,this.ranges=n||[new tee(e.min(r),e.max(r))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let r=0;r<e.length;r++)if(e[r].$from.pos!=e[r].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,r=Ge.empty){let n=r.content.lastChild,a=null;for(let l=0;l<r.openEnd;l++)a=n,n=n.lastChild;let i=e.steps.length,o=this.ranges;for(let l=0;l<o.length;l++){let{$from:c,$to:u}=o[l],d=e.mapping.slice(i);e.replaceRange(d.map(c.pos),d.map(u.pos),l?Ge.empty:r),l==0&&HF(e,i,(n?n.isInline:a&&a.isTextblock)?-1:1)}}replaceWith(e,r){let n=e.steps.length,a=this.ranges;for(let i=0;i<a.length;i++){let{$from:o,$to:l}=a[i],c=e.mapping.slice(n),u=c.map(o.pos),d=c.map(l.pos);i?e.deleteRange(u,d):(e.replaceRangeWith(u,d,r),HF(e,n,r.isInline?-1:1))}}static findFrom(e,r,n=!1){let a=e.parent.inlineContent?new gt(e):Kd(e.node(0),e.parent,e.pos,e.index(),r,n);if(a)return a;for(let i=e.depth-1;i>=0;i--){let o=r<0?Kd(e.node(0),e.node(i),e.before(i+1),e.index(i),r,n):Kd(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,r,n);if(o)return o}return null}static near(e,r=1){return this.findFrom(e,r)||this.findFrom(e,-r)||new ns(e.node(0))}static atStart(e){return Kd(e,e,0,0,1)||new ns(e)}static atEnd(e){return Kd(e,e,e.content.size,e.childCount,-1)||new ns(e)}static fromJSON(e,r){if(!r||!r.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=q7[r.type];if(!n)throw new RangeError(`No selection type ${r.type} defined`);return n.fromJSON(e,r)}static jsonID(e,r){if(e in q7)throw new RangeError("Duplicate use of selection JSON ID "+e);return q7[e]=r,r.prototype.jsonID=e,r}getBookmark(){return gt.between(this.$anchor,this.$head).getBookmark()}}St.prototype.visible=!0;class tee{constructor(e,r){this.$from=e,this.$to=r}}let LF=!1;function BF(t){!LF&&!t.parent.inlineContent&&(LF=!0,console.warn("TextSelection endpoint not pointing into a
1297node with inline content ("+t.parent.type.name+")"))}class gt extends St{constructor(e,r=e){BF(e),BF(r),super(e,r)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,r){let n=e.resolve(r.map(this.head));if(!n.parent.inlineContent)return St.near(n);let a=e.resolve(r.map(this.anchor));return new gt(a.parent.inlineContent?a:n,n)}replace(e,r=Ge.empty){if(super.replace(e,r),r==Ge.empty){let n=this.$from.marksAcross(this.$to);n&&e.ensureMarks(n)}}eq(e){return e instanceof gt&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Bv(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,r){if(typeof r.anchor!="number"||typeof r.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new gt(e.resolve(r.anchor),e.resolve(r.head))}static create(e,r,n=r){let a=e.resolve(r);return new this(a,n==r?a:e.resolve(n))}static between(e,r,n){let a=e.pos-r.pos;if((!n||a)&&(n=a>=0?1:-1),!r.parent.inlineContent){let i=St.findFrom(r,n,!0)||St.findFrom(r,-n,!0);if(i)r=i.$head;else return St.near(r,n)}return e.parent.inlineContent||(a==0?e=r:(e=(St.findFrom(e,-n,!0)||St.findFrom(e,n,!0)).$anchor,e.pos<r.pos!=a<0&&(e=r))),new gt(e,r)}}St.jsonID("text",gt);class Bv{constructor(e,r){this.anchor=e,this.head=r}map(e){return new Bv(e.map(this.anchor),e.map(this.head))}resolve(e){return gt.between(e.resolve(this.anchor),e.resolve(this.head))}}class bt extends St{constructor(e){let r=e.nodeAfter,n=e.node(0).resolve(e.pos+r.nodeSize);super(e,n),this.node=r}map(e,r){let{deleted:n,pos:a}=r.mapResult(this.anchor),i=e.resolve(a);return n?St.near(i):new bt(i)}content(){return new Ge(Ee.from(this.node),0,0)}eq(e){return e instanceof bt&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new r_(this.anchor)}static fromJSON(e,r){if(typeof r.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new bt(e.resolve(r.anchor))}static create(e,r){return new bt(e.resolve(r))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}bt.prototype.visible=!1;St.jsonID("node",bt);class r_{constructor(e){this.anchor=e}map(e){let{deleted:r,pos:n}=e.mapResult(this.anchor);return r?new Bv(n,n):new r_(n)}resolve(e){let r=e.resolve(this.anchor),n=r.nodeAfter;return n&&bt.isSelectable(n)?new bt(r):St.near(r)}}class ns extends St{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,r=Ge.empty){if(r==Ge.empty){e.delete(0,e.doc.content.size);let n=St.atStart(e.doc);n.eq(e.selection)||e.setSelection(n)}else super.replace(e,r)}toJSON(){return{type:"all"}}static fromJSON(e){return new ns(e)}map(e){return new ns(e)}eq(e){return e instanceof ns}getBookmark(){return hBe}}St.jsonID("all",ns);const hBe={map(){return this},resolve(t){return new ns(t)}};function Kd(t,e,r,n,a,i=!1){if(e.inlineContent)return gt.create(t,r);for(let o=n-(a>0?0:1);a>0?o<e.childCount:o>=0;o+=a){let l=e.child(o);if(l.isAtom){if(!i&&bt.isSelectable(l))return bt.create(t,r-(a<0?l.nodeSize:0))}else{let c=Kd(t,l,r+a,a<0?l.childCount:0,a,i);if(c)return c}r+=l.nodeSize*a}return null}function HF(t,e,r){let n=t.steps.length-1;if(n<e)return;let a=t.steps[n];if(!(a instanceof rn||a instanceof kn))return;let i=t.mapping.maps[n],o;i.forEach((l,c,u,d)=>{o==null&&(o=d)}),t.setSelection(St.near(t.doc.resolve(o),r))}const FF=1,gb=2,zF=4;class fBe extends t_{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|FF)&~gb,this.storedMarks=null,this}get selectionSet(){return(this.updated&FF)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=gb,this}ensureMarks(e){return or.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&gb)>0}addStep(e,r){super.addStep(e,r),this.updated=this.updated&~gb,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,r=!0){let n=this.selection;return r&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||or.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,r,n){let a=this.doc.type.schema;if(r==null)return e?this.replaceSelectionWith(a.text(e),!0):this.deleteSelection();{if(n==null&&(n=r),!e)return this.deleteRange(r,n);let i=this.storedMarks;if(!i){let o=this.doc.resolve(r);i=n==r?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(r,n,a.text(e,i)),!this.selection.empty&&this.selection.to==r+e.length&&this.setSelection(St.near(this.selection.$to)),this}}setMeta(e,r){return this.meta[typeof e=="string"?e:e.key]=r,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=zF,this}get scrolledIntoView(){return(this.updated&zF)>0}}function VF(t,e){return!e||!t?t:t.bind(e)}
vendor: 4,496 bytes, line 1297
1297class Xp{constructor(e,r,n){this.name=e,this.init=VF(r.init,n),this.apply=VF(r.apply,n)}}const pBe=[new Xp("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Xp("selection",{init(t,e){return t.selection||St.atStart(e.doc)},apply(t){return t.selection}}),new Xp("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,r,n){return n.selection.$cursor?t.storedMarks:null}}),new Xp("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class W7{constructor(e,r){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=pBe.slice(),r&&r.forEach(n=>{if(this.pluginsByKey[n.key])throw new RangeError("Adding different instances of a keyed plugin ("+n.key+")");this.plugins.push(n),this.pluginsByKey[n.key]=n,n.spec.state&&this.fields.push(new Xp(n.key,n.spec.state,n))})}}class oh{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,r=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=r){let a=this.config.plugins[n];if(a.spec.filterTransaction&&!a.spec.filterTransaction.call(a,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let r=[e],n=this.applyInner(e),a=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let l=this.config.plugins[o];if(l.spec.appendTransaction){let c=a?a[o].n:0,u=a?a[o].state:this,d=c<r.length&&l.spec.appendTransaction.call(l,c?r.slice(c):r,u,n);if(d&&n.filterTransaction(d,o)){if(d.setMeta("appendedTransaction",e),!a){a=[];for(let h=0;h<this.config.plugins.length;h++)a.push(h<o?{state:n,n:r.length}:{state:this,n:0})}r.push(d),n=n.applyInner(d),i=!0}a&&(a[o]={state:n,n:r.length})}}if(!i)return{state:n,transactions:r}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let r=new oh(this.config),n=this.config.fields;for(let a=0;a<n.length;a++){let i=n[a];r[i.name]=i.apply(e,this[i.name],this,r)}return r}get tr(){return new fBe(this)}static create(e){let r=new W7(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new oh(r);for(let a=0;a<r.fields.length;a++)n[r.fields[a].name]=r.fields[a].init(e,n);return n}reconfigure(e){let r=new W7(this.schema,e.plugins),n=r.fields,a=new oh(r);for(let i=0;i<n.length;i++){let o=n[i].name;a[o]=this.hasOwnProperty(o)?this[o]:n[i].init(e,a)}return a}toJSON(e){let r={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(r.storedMarks=this.storedMarks.map(n=>n.toJSON())),e&&typeof e=="object")for(let n in e){if(n=="doc"||n=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let a=e[n],i=a.spec.state;i&&i.toJSON&&(r[n]=i.toJSON.call(a,this[a.key]))}return r}static fromJSON(e,r,n){if(!r)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let a=new W7(e.schema,e.plugins),i=new oh(a);return a.fields.forEach(o=>{if(o.name=="doc")i.doc=Zl.fromJSON(e.schema,r.doc);else if(o.name=="selection")i.selection=St.fromJSON(i.doc,r.selection);else if(o.name=="storedMarks")r.storedMarks&&(i.storedMarks=r.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let l in n){let c=n[l],u=c.spec.state;if(c.key==o.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(r,l)){i[o.name]=u.fromJSON.call(c,e,r[l],i);return}}i[o.name]=o.init(e,i)}}),i}}function ree(t,e,r){for(let n in t){let a=t[n];a instanceof Function?a=a.bind(e):n=="handleDOMEvents"&&(a=ree(a,e,{})),r[n]=a}return r}class on{constructor(e){this.spec=e,this.props={},e.props&&ree(e.props,this,this.props),this.key=e.key?e.key.key:nee("plugin")}getState(e){return e[this.key]}}const G7=Object.create(null);function nee(t){return t in G7?t+"$"+ ++G7[t]:(G7[t]=0,t+"$")}class Gn{constructor(e="key"){this.key=nee(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Bn=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},rf=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let hk=null;const Ao=function(t,e,r){let n=hk||(hk=document.createRange());return n.setEnd(t,r??t.nodeValue.length),n.setStart(t,e||0),n},mBe=function(){hk=null},Iu=function(t,e,r,n){return r&&(UF(t,e,r,n,-1)||UF(t,e,r,n,1))},gBe=/^(img|br|input|textarea|hr)$/i;function UF(t,e,r,n,a){for(var i;;){if(t==r&&e==n)return!0;
vendor: 39,968 bytes, lines 1297-1298
1297if(e==(a<0?0:_s(t))){let o=t.parentNode;if(!o||o.nodeType!=1||u1(t)||gBe.test(t.nodeName)||t.contentEditable=="false")return!1;e=Bn(t)+(a<0?0:1),t=o}else if(t.nodeType==1){let o=t.childNodes[e+(a<0?-1:0)];if(o.nodeType==1&&o.contentEditable=="false")if(!((i=o.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)e+=a;else return!1;else t=o,e=a<0?_s(t):0}else return!1}}function _s(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function bBe(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=_s(t)}else if(t.parentNode&&!u1(t))e=Bn(t),t=t.parentNode;else return null}}function xBe(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!u1(t))e=Bn(t)+1,t=t.parentNode;else return null}}function yBe(t,e,r){for(let n=e==0,a=e==_s(t);n||a;){if(t==r)return!0;let i=Bn(t);if(t=t.parentNode,!t)return!1;n=n&&i==0,a=a&&i==_s(t)}}function u1(t){let e;for(let r=t;r&&!(e=r.pmViewDesc);r=r.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Hv=function(t){return t.focusNode&&Iu(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Zc(t,e){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=t,r.key=r.code=e,r}function vBe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function wBe(t,e,r){if(t.caretPositionFromPoint)try{let n=t.caretPositionFromPoint(e,r);if(n)return{node:n.offsetNode,offset:Math.min(_s(n.offsetNode),n.offset)}}catch{}if(t.caretRangeFromPoint){let n=t.caretRangeFromPoint(e,r);if(n)return{node:n.startContainer,offset:Math.min(_s(n.startContainer),n.startOffset)}}}const Zi=typeof navigator<"u"?navigator:null,qF=typeof document<"u"?document:null,vc=Zi&&Zi.userAgent||"",fk=/Edge\/(\d+)/.exec(vc),aee=/MSIE \d/.exec(vc),pk=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(vc),La=!!(aee||pk||fk),ec=aee?document.documentMode:pk?+pk[1]:fk?+fk[1]:0,Rs=!La&&/gecko\/(\d+)/i.test(vc);Rs&&+(/Firefox\/(\d+)/.exec(vc)||[0,0])[1];const mk=!La&&/Chrome\/(\d+)/.exec(vc),zn=!!mk,see=mk?+mk[1]:0,la=!La&&!!Zi&&/Apple Computer/.test(Zi.vendor),nf=la&&(/Mobile\/\w+/.test(vc)||!!Zi&&Zi.maxTouchPoints>2),$s=nf||(Zi?/Mac/.test(Zi.platform):!1),iee=Zi?/Win/.test(Zi.platform):!1,To=/Android \d/.test(vc),d1=!!qF&&"webkitFontSmoothing"in qF.documentElement.style,NBe=d1?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function jBe(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function No(t,e){return typeof t=="number"?t:t[e]}function kBe(t){let e=t.getBoundingClientRect(),r=e.width/t.offsetWidth||1,n=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*r,top:e.top,bottom:e.top+t.clientHeight*n}}function WF(t,e,r){if(!gk(e)&&e.left==0)return;let n=t.someProp("scrollThreshold")||0,a=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let o=r||t.dom;o;){if(o.nodeType!=1){o=rf(o);continue}let l=o,c=l==i.body,u=c?jBe(i):kBe(l),d=0,h=0;if(e.top<u.top+No(n,"top")?h=-(u.top-e.top+No(a,"top")):e.bottom>u.bottom-No(n,"bottom")&&(h=e.bottom-e.top>u.bottom-u.top?e.top+No(a,"top")-u.top:e.bottom-u.bottom+No(a,"bottom")),e.left<u.left+No(n,"left")?d=-(u.left-e.left+No(a,"left")):e.right>u.right-No(n,"right")&&(d=e.right-u.right+No(a,"right")),d||h)if(c)i.defaultView.scrollBy(d,h);else{let g=l.scrollLeft,b=l.scrollTop;h&&(l.scrollTop+=h),d&&(l.scrollLeft+=d);let y=l.scrollLeft-g,v=l.scrollTop-b;e={left:e.left-y,top:e.top-v,right:e.right-y,bottom:e.bottom-v}}let m=c?"fixed":getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(m))break;o=m=="absolute"?o.offsetParent:rf(o)}}function SBe(t){let e=t.dom.getBoundingClientRect(),r=Math.max(0,e.top),n,a;for(let i=(e.left+e.right)/2,o=r+1;o<Math.min(innerHeight,e.bottom);o+=5){let l=t.root.elementFromPoint(i,o);if(!l||l==t.dom||!t.dom.contains(l))continue;let c=l.getBoundingClientRect();if(c.top>=r-20){n=l,a=c.top;break}}return{refDOM:n,refTop:a,stack:oee(t.dom)}}function oee(t){let e=[],r=t.ownerDocument;for(let n=t;n&&(e.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=r);n=rf(n));return e}function CBe({refDOM:t,refTop:e,stack:r}){let n=t?t.getBoundingClientRect().top:0;lee(r,n==0?0:n-e)}function lee(t,e){for(let r=0;r<t.length;r++){let{dom:n,top:a,left:i}=t[r];n.scrollTop!=a+e&&(n.scrollTop=a+e),n.scrollLeft!=i&&(n.scrollLeft=i)}}let Hd=null;function $Be(t){if(t.setActive)return t.setActive();if(Hd)return t.focus(Hd);let e=oee(t);t.focus(Hd==null?{get preventScroll(){return Hd={preventScroll:!0},!0}}:void 0),Hd||(Hd=!1,lee(e,0))}function cee(t,e){let r,n=2e8,a,i=0,o=e.top,l=e.top,c,u;for(let d=t.firstChild,h=0;d;d=d.nextSibling,h++){let m;if(d.nodeType==1)m=d.getClientRects();else if(d.nodeType==3)m=Ao(d).getClientRects();else continue;for(let g=0;g<m.length;g++){let b=m[g];if(b.top<=o&&b.bottom>=l){o=Math.max(b.bottom,o),l=Math.min(b.top,l);let y=b.left>e.left?b.left-e.left:b.right<e.left?e.left-b.right:0;if(y<n){r=d,n=y,a=y&&r.nodeType==3?{left:b.right<e.left?b.right:b.left,top:e.top}:e,d.nodeType==1&&y&&(i=h+(e.left>=(b.left+b.right)/2?1:0));continue}}else b.top>e.top&&!c&&b.left<=e.left&&b.right>=e.left&&(c=d,u={left:Math.max(b.left,Math.min(b.right,e.left)),top:b.top});!r&&(e.left>=b.right&&e.top>=b.top||e.left>=b.left&&e.top>=b.bottom)&&(i=h+1)}}return!r&&c&&(r=c,a=u,n=0),r&&r.nodeType==3?_Be(r,a):!r||n&&r.nodeType==1?{node:t,offset:i}:cee(r,a)}function _Be(t,e){let r=t.nodeValue.length,n=document.createRange(),a;for(let i=0;i<r;i++){n.setEnd(t,i+1),n.setStart(t,i);let o=Ml(n,1);if(o.top!=o.bottom&&n_(e,o)){a={node:t,offset:i+(e.left>=(o.left+o.right)/2?1:0)};break}}return n.detach(),a||{node:t,offset:0}}function n_(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function ABe(t,e){let r=t.parentNode;return r&&/^li$/i.test(r.nodeName)&&e.left<t.getBoundingClientRect().left?r:t}function EBe(t,e,r){let{node:n,offset:a}=cee(e,r),i=-1;if(n.nodeType==1&&!n.firstChild){let o=n.getBoundingClientRect();i=o.left!=o.right&&r.left>(o.left+o.right)/2?1:-1}return t.docView.posFromDOM(n,a,i)}function OBe(t,e,r,n){let a=-1;for(let i=e,o=!1;i!=t.dom;){let l=t.docView.nearestDesc(i,!0),c;if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)&&((c=l.dom.getBoundingClientRect()).width||c.height)&&(l.node.isBlock&&l.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(l.dom.nodeName)&&(!o&&c.left>n.left||c.top>n.top?a=l.posBefore:(!o&&c.right<n.left||c.bottom<n.top)&&(a=l.posAfter),o=!0),!l.contentDOM&&a<0&&!l.node.isText))return(l.node.isBlock?n.top<(c.top+c.bottom)/2:n.left<(c.left+c.right)/2)?l.posBefore:l.posAfter;i=l.dom.parentNode}return a>-1?a:t.docView.posFromDOM(e,r,-1)}function uee(t,e,r){let n=t.childNodes.length;if(n&&r.top<r.bottom)for(let a=Math.max(0,Math.min(n-1,Math.floor(n*(e.top-r.top)/(r.bottom-r.top))-2)),i=a;;){let o=t.childNodes[i];if(o.nodeType==1){let l=o.getClientRects();for(let c=0;c<l.length;c++){let u=l[c];if(n_(e,u))return uee(o,e,u)}}if((i=(i+1)%n)==a)break}return t}function PBe(t,e){let r=t.dom.ownerDocument,n,a=0,i=wBe(r,e.left,e.top);i&&({node:n,offset:a}=i);let o=(t.root.elementFromPoint?t.root:r).elementFromPoint(e.left,e.top),l;if(!o||!t.dom.contains(o.nodeType!=1?o.parentNode:o)){let u=t.dom.getBoundingClientRect();if(!n_(e,u)||(o=uee(t.dom,e,u),!o))return null}if(la)for(let u=o;n&&u;u=rf(u))u.draggable&&(n=void 0);if(o=ABe(o,e),n){if(Rs&&n.nodeType==1&&(a=Math.min(a,n.childNodes.length),a<n.childNodes.length)){let d=n.childNodes[a],h;d.nodeName=="IMG"&&(h=d.getBoundingClientRect()).right<=e.left&&h.bottom>e.top&&a++}let u;d1&&a&&n.nodeType==1&&(u=n.childNodes[a-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&a--,n==t.dom&&a==n.childNodes.length-1&&n.lastChild.nodeType==1&&e.top>n.lastChild.getBoundingClientRect().bottom?l=t.state.doc.content.size:(a==0||n.nodeType!=1||n.childNodes[a-1].nodeName!="BR")&&(l=OBe(t,n,a,e))}l==null&&(l=EBe(t,o,e));let c=t.docView.nearestDesc(o,!0);return{pos:l,inside:c?c.posAtStart-c.border:-1}}function gk(t){return t.top<t.bottom||t.left<t.right}function Ml(t,e){let r=t.getClientRects();if(r.length){let n=r[e<0?0:r.length-1];if(gk(n))return n}return Array.prototype.find.call(r,gk)||t.getBoundingClientRect()}const MBe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function dee(t,e,r){let{node:n,offset:a,atom:i}=t.docView.domFromPos(e,r<0?-1:1),o=d1||Rs;if(n.nodeType==3)if(o&&(MBe.test(n.nodeValue)||(r<0?!a:a==n.nodeValue.length))){let c=Ml(Ao(n,a,a),r);if(Rs&&a&&/\s/.test(n.nodeValue[a-1])&&a<n.nodeValue.length){let u=Ml(Ao(n,a-1,a-1),-1);if(u.top==c.top){let d=Ml(Ao(n,a,a+1),-1);if(d.top!=c.top)return Ip(d,d.left<u.left)}}return c}else{let c=a,u=a,d=r<0?1:-1;return r<0&&!a?(u++,d=-1):r>=0&&a==n.nodeValue.length?(c--,d=1):r<0?c--:u++,Ip(Ml(Ao(n,c,u),d),d<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&a&&(r<0||a==_s(n))){let c=n.childNodes[a-1];if(c.nodeType==1)return K7(c.getBoundingClientRect(),!1)}if(i==null&&a<_s(n)){let c=n.childNodes[a];if(c.nodeType==1)return K7(c.getBoundingClientRect(),!0)}return K7(n.getBoundingClientRect(),r>=0)}if(i==null&&a&&(r<0||a==_s(n))){let c=n.childNodes[a-1],u=c.nodeType==3?Ao(c,_s(c)-(o?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return Ip(Ml(u,1),!1)}if(i==null&&a<_s(n)){let c=n.childNodes[a];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let u=c?c.nodeType==3?Ao(c,0,o?0:1):c.nodeType==1?c:null:null;if(u)return Ip(Ml(u,-1),!0)}return Ip(Ml(n.nodeType==3?Ao(n):n,-r),r>=0)}function Ip(t,e){if(t.width==0)return t;let r=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:r,right:r}}function K7(t,e){if(t.height==0)return t;let r=e?t.top:t.bottom;return{top:r,bottom:r,left:t.left,right:t.right}}function hee(t,e,r){let n=t.state,a=t.root.activeElement;n!=e&&t.updateState(e),a!=t.dom&&t.focus();try{return r()}finally{n!=e&&t.updateState(n),a!=t.dom&&a&&a.focus()}}function TBe(t,e,r){let n=e.selection,a=r=="up"?n.$from:n.$to;return hee(t,e,()=>{let{node:i}=t.docView.domFromPos(a.pos,r=="up"?-1:1);for(;;){let l=t.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let o=dee(t,a.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let c;if(l.nodeType==1)c=l.getClientRects();else if(l.nodeType==3)c=Ao(l,0,l.nodeValue.length).getClientRects();else continue;for(let u=0;u<c.length;u++){let d=c[u];if(d.bottom>d.top+1&&(r=="up"?o.top-d.top>(d.bottom-o.top)*2:d.bottom-o.bottom>(o.bottom-d.top)*2))return!1}}return!0})}const RBe=/[\u0590-\u08ac]/;function IBe(t,e,r){let{$head:n}=e.selection;if(!n.parent.isTextblock)return!1;let a=n.parentOffset,i=!a,o=a==n.parent.content.size,l=t.domSelection();return l?!RBe.test(n.parent.textContent)||!l.modify?r=="left"||r=="backward"?i:o:hee(t,e,()=>{let{focusNode:c,focusOffset:u,anchorNode:d,anchorOffset:h}=t.domSelectionRange(),m=l.caretBidiLevel;l.modify("move",r,"character");let g=n.depth?t.docView.domAfterPos(n.before()):t.dom,{focusNode:b,focusOffset:y}=t.domSelectionRange(),v=b&&!g.contains(b.nodeType==1?b:b.parentNode)||c==b&&u==y;try{l.collapse(d,h),c&&(c!=d||u!=h)&&l.extend&&l.extend(c,u)}catch{}return m!=null&&(l.caretBidiLevel=m),v}):n.pos==n.start()||n.pos==n.end()}let GF=null,KF=null,YF=!1;function DBe(t,e,r){return GF==e&&KF==r?YF:(GF=e,KF=r,YF=r=="up"||r=="down"?TBe(t,e,r):IBe(t,e,r))}const Is=0,XF=1,uu=2,pi=3;class h1{constructor(e,r,n,a){this.parent=e,this.children=r,this.dom=n,this.contentDOM=a,this.dirty=Is,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,r,n){return!1}matchesHack(e){return!1}parseRule(e){return null}stopEvent(e){return!1}get size(){let e=0;for(let r=0;r<this.children.length;r++)e+=this.children[r].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let r=0,n=this.posAtStart;;r++){let a=this.children[r];if(a==e)return n;n+=a.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,r,n){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(n<0){let i,o;if(e==this.contentDOM)i=e.childNodes[r-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((o=i.pmViewDesc)&&o.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(o)+o.size:this.posAtStart}else{let i,o;if(e==this.contentDOM)i=e.childNodes[r];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((o=i.pmViewDesc)&&o.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(o):this.posAtEnd}let a;if(e==this.dom&&this.contentDOM)a=r>Bn(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))a=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(r==0)for(let i=e;;i=i.parentNode){if(i==this.dom){a=!1;break}if(i.previousSibling)break}if(a==null&&r==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){a=!0;break}if(i.nextSibling)break}}return a??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,r=!1){for(let n=!0,a=e;a;a=a.parentNode){let i=this.getDesc(a),o;if(i&&(!r||i.node))if(n&&(o=i.nodeDOM)&&!(o.nodeType==1?o.contains(e.nodeType==1?e:e.parentNode):o==e))n=!1;else return i}}getDesc(e){let r=e.pmViewDesc;for(let n=r;n;n=n.parent)if(n==this)return r}posFromDOM(e,r,n){for(let a=e;a;a=a.parentNode){let i=this.getDesc(a);if(i)return i.localPosFromDOM(e,r,n)}return-1}descAt(e){for(let r=0,n=0;r<this.children.length;r++){let a=this.children[r],i=n+a.size;if(n==e&&i!=n){for(;!a.border&&a.children.length;)for(let o=0;o<a.children.length;o++){let l=a.children[o];if(l.size){a=l;break}}return a}if(e<i)return a.descAt(e-n-a.border);n=i}}domFromPos(e,r){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,a=0;for(let i=0;n<this.children.length;n++){let o=this.children[n],l=i+o.size;if(l>e||o instanceof pee){a=e-i;break}i=l}if(a)return this.children[n].domFromPos(a-this.children[n].border,r);for(let i;n&&!(i=this.children[n-1]).size&&i instanceof fee&&i.side>=0;n--);if(r<=0){let i,o=!0;for(;i=n?this.children[n-1]:null,!(!i||i.dom.parentNode==this.contentDOM);n--,o=!1);return i&&r&&o&&!i.border&&!i.domAtom?i.domFromPos(i.size,r):{node:this.contentDOM,offset:i?Bn(i.dom)+1:0}}else{let i,o=!0;for(;i=n<this.children.length?this.children[n]:null,!(!i||i.dom.parentNode==this.contentDOM);n++,o=!1);return i&&o&&!i.border&&!i.domAtom?i.domFromPos(0,r):{node:this.contentDOM,offset:i?Bn(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,r,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:r,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let a=-1,i=-1;for(let o=n,l=0;;l++){let c=this.children[l],u=o+c.size;if(a==-1&&e<=u){let d=o+c.border;if(e>=d&&r<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,r,d);e=o;for(let h=l;h>0;h--){let m=this.children[h-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){a=Bn(m.dom)+1;break}e-=m.size}a==-1&&(a=0)}if(a>-1&&(u>r||l==this.children.length-1)){r=u;for(let d=l+1;d<this.children.length;d++){let h=this.children[d];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){i=Bn(h.dom);break}r+=h.size}i==-1&&(i=this.contentDOM.childNodes.length);break}o=u}return{node:this.contentDOM,from:e,to:r,fromOffset:a,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let r=this.children[e<0?0:this.children.length-1];return r.size==0||r.emptyChildAt(e)}domAfterPos(e){let{node:r,offset:n}=this.domFromPos(e,0);if(r.nodeType!=1||n==r.childNodes.length)throw new RangeError("No node after pos "+e);return r.childNodes[n]}setSelection(e,r,n,a=!1){let i=Math.min(e,r),o=Math.max(e,r);for(let g=0,b=0;g<this.children.length;g++){let y=this.children[g],v=b+y.size;if(i>b&&o<v)return y.setSelection(e-b-y.border,r-b-y.border,n,a);b=v}let l=this.domFromPos(e,e?-1:1),c=r==e?l:this.domFromPos(r,r?-1:1),u=n.root.getSelection(),d=n.domSelectionRange(),h=!1;if((Rs||la)&&e==r){let{node:g,offset:b}=l;if(g.nodeType==3){if(h=!!(b&&g.nodeValue[b-1]==` 1298`),h&&b==g.nodeValue.length)for(let y=g,v;y;y=y.parentNode){if(v=y.nextSibling){v.nodeName=="BR"&&(l=c={node:v.parentNode,offset:Bn(v)+1});break}let N=y.pmViewDesc;if(N&&N.node&&N.node.isBlock)break}}else{let y=g.childNodes[b-1];h=y&&(y.nodeName=="BR"||y.contentEditable=="false")}}if(Rs&&d.focusNode&&d.focusNode!=c.node&&d.focusNode.nodeType==1){let g=d.focusNode.childNodes[d.focusOffset];g&&g.contentEditable=="false"&&(a=!0)}if(!(a||h&&la)&&Iu(l.node,l.offset,d.anchorNode,d.anchorOffset)&&Iu(c.node,c.offset,d.focusNode,d.focusOffset))return;let m=!1;if((u.extend||e==r)&&!(h&&Rs)){u.collapse(l.node,l.offset);try{e!=r&&u.extend(c.node,c.offset),m=!0}catch{}}if(!m){if(e>r){let b=l;l=c,c=b}let g=document.createRange();g.setEnd(c.node,c.offset),g.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(g)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,r){for(let n=0,a=0;a<this.children.length;a++){let i=this.children[a],o=n+i.size;if(n==o?e<=o&&r>=n:e<o&&r>n){let l=n+i.border,c=o-i.border;if(e>=l&&r<=c){this.dirty=e==n||r==o?uu:XF,e==l&&r==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=pi:i.markDirty(e-l,r-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?uu:pi}n=o}this.dirty=uu}markParentsDirty(){let e=1;for(let r=this.parent;r;r=r.parent,e++){let n=e==1?uu:XF;r.dirty<n&&(r.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class fee extends h1{constructor(e,r,n,a){let i,o=r.type.toDOM;if(typeof o=="function"&&(o=o(n,()=>{if(!i)return a;if(i.parent)return i.parent.posBeforeChild(i)})),!r.type.spec.raw){if(o.nodeType!=1){let l=document.createElement("span");l.appendChild(o),o=l}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=r,this.widget=r,i=this}matchesWidget(e){return this.dirty==Is&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let r=this.widget.spec.stopEvent;return r?r(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class LBe extends h1{constructor(e,r,n,a){super(e,[],r,null),this.textDOM=n,this.text=a}get size(){return this.text.length}localPosFromDOM(e,r){return e!=this.textDOM?this.posAtStart+(r?this.size:0):this.posAtStart+r}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class tc extends h1{constructor(e,r,n,a,i){super(e,[],n,a),this.mark=r,this.spec=i}static create(e,r,n,a){let i=a.nodeViews[r.type.name],o=i&&i(r,a,n);return(!o||!o.dom)&&(o=Xu.renderSpec(document,r.type.spec.toDOM(r,n),null,r.attrs)),new tc(e,r,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&pi||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=pi&&this.mark.eq(e)}markDirty(e,r){if(super.markDirty(e,r),this.dirty!=Is){let n=this.parent;for(;!n.node;)n=n.parent;n.dirty<this.dirty&&(n.dirty=this.dirty),this.dirty=Is}}slice(e,r,n){let a=tc.create(this.parent,this.mark,!0,n),i=this.children,o=this.size;r<o&&(i=xk(i,r,o,n)),e>0&&(i=xk(i,0,e,n));for(let l=0;l<i.length;l++)i[l].parent=a;return a.children=i,a}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class rc extends h1{constructor(e,r,n,a,i,o,l){super(e,[],i,o),this.node=r,this.outerDeco=n,this.innerDeco=a,this.nodeDOM=l}static create(e,r,n,a,i,o){let l=i.nodeViews[r.type.name],c,u=l&&l(r,i,()=>{if(!c)return o;if(c.parent)return c.parent.posBeforeChild(c)},n,a),d=u&&u.dom,h=u&&u.contentDOM;if(r.isText){if(!d)d=document.createTextNode(r.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:h}=Xu.renderSpec(document,r.type.spec.toDOM(r),null,r.attrs));!h&&!r.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),r.type.spec.draggable&&(d.draggable=!0));let m=d;return d=bee(d,n,r),u?c=new BBe(e,r,n,a,d,h||null,m,u):r.isText?new Fv(e,r,n,a,d,m):new rc(e,r,n,a,d,h||null,m)}parseRule(e){if(this.node.type.spec.reparseInView)return null;let r={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(r.preserveWhitespace="full"),!this.contentDOM)r.getContent=()=>this.node.content;else if(!this.contentLost)r.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let a=this.children[n];if(this.dom.contains(a.dom.parentNode)){r.contentElement=a.dom.parentNode;break}}if(!r.contentElement){let n=e&&e.find(a=>a.nodeType==1&&e.indexOf(a.parentNode)<0&&this.dom.contains(a));n?r.contentElement=n:r.getContent=()=>Ee.empty}}return r}matchesNode(e,r,n){return this.dirty==Is&&e.eq(this.node)&&T2(r,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,r){let n=this.node.inlineContent,a=r,i=e.composing?this.localCompositionInfo(e,r):null,o=i&&i.pos>-1?i:null,l=i&&i.pos<0,c=new FBe(this,o&&o.node,e);UBe(this.node,this.innerDeco,(u,d,h)=>{u.spec.marks?c.syncToMarks(u.spec.marks,n,e,d):u.type.side>=0&&!h&&c.syncToMarks(d==this.node.childCount?or.none:this.node.child(d).marks,n,e,d),c.placeWidget(u,e,a)},(u,d,h,m)=>{c.syncToMarks(u.marks,n,e,m);let g;c.findNodeMatch(u,d,h,m)||l&&e.state.selection.from>a&&e.state.selection.to<a+u.nodeSize&&(g=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(u,d,h,g,e)||c.updateNextNode(u,d,h,e,m,a)||c.addNode(u,d,h,e,a),a+=u.nodeSize}),c.syncToMarks([],n,e,0),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==uu)&&(o&&this.protectLocalComposition(e,o),mee(this.contentDOM,this.children,e),nf&&qBe(this.dom))}localCompositionInfo(e,r){let{from:n,to:a}=e.state.selection;if(!(e.state.selection instanceof gt)||n<r||a>r+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let o=i.nodeValue,l=WBe(this.node.content,o,n-r,a-r);return l<0?null:{node:i,pos:l,text:o}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:r,pos:n,text:a}){if(this.getDesc(r))return;let i=r;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let o=new LBe(this,i,r,a);e.input.compositionNodes.push(o),this.children=xk(this.children,n,n+a.length,e,o)}update(e,r,n,a){return this.dirty==pi||!e.sameMarkup(this.node)?!1:(this.updateInner(e,r,n,a),!0)}updateInner(e,r,n,a){this.updateOuterDeco(r),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(a,this.posAtStart),this.dirty=Is}updateOuterDeco(e){if(T2(e,this.outerDeco))return;let r=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=gee(this.dom,this.nodeDOM,bk(this.outerDeco,this.node,r),bk(e,this.node,r)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function JF(t,e,r,n,a){bee(n,e,t);let i=new rc(void 0,t,e,r,n,n,n);return i.contentDOM&&i.updateChildren(a,0),i}class Fv extends rc{constructor(e,r,n,a,i,o){super(e,r,n,a,i,null,o)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,r,n,a){return this.dirty==pi||this.dirty!=Is&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(r),(this.dirty!=Is||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,a.trackWrites==this.nodeDOM&&(a.trackWrites=null)),this.node=e,this.dirty=Is,!0)}inParent(){let e=this.parent.contentDOM;for(let r=this.nodeDOM;r;r=r.parentNode)if(r==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,r,n){return e==this.nodeDOM?this.posAtStart+Math.min(r,this.node.text.length):super.localPosFromDOM(e,r,n)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,r,n){let a=this.node.cut(e,r),i=document.createTextNode(a.text);return new Fv(this.parent,a,this.outerDeco,this.innerDeco,i,i)}markDirty(e,r){super.markDirty(e,r),this.dom!=this.nodeDOM&&(e==0||r==this.nodeDOM.nodeValue.length)&&(this.dirty=pi)}get domAtom(){return!1}isText(e){return this.node.text==e}}class pee extends h1{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Is&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class BBe extends rc{constructor(e,r,n,a,i,o,l,c){super(e,r,n,a,i,o,l),this.spec=c}update(e,r,n,a){if(this.dirty==pi)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,r,n);return i&&this.updateInner(e,r,n,a),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,r,n,a)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,r,n,a){this.spec.setSelection?this.spec.setSelection(e,r,n.root):super.setSelection(e,r,n,a)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function mee(t,e,r){let n=t.firstChild,a=!1;for(let i=0;i<e.length;i++){let o=e[i],l=o.dom;if(l.parentNode==t){for(;l!=n;)n=QF(n),a=!0;n=n.nextSibling}else a=!0,t.insertBefore(l,n);if(o instanceof tc){let c=n?n.previousSibling:t.lastChild;mee(o.contentDOM,o.children,r),n=c?c.nextSibling:t.firstChild}}for(;n;)n=QF(n),a=!0;a&&r.trackWrites==t&&(r.trackWrites=null)}const gm=function(t){t&&(this.nodeName=t)};gm.prototype=Object.create(null);const du=[new gm];function bk(t,e,r){if(t.length==0)return du;let n=r?du[0]:new gm,a=[n];for(let i=0;i<t.length;i++){let o=t[i].type.attrs;if(o){o.nodeName&&a.push(n=new gm(o.nodeName));for(let l in o){let c=o[l];c!=null&&(r&&a.length==1&&a.push(n=new gm(e.isInline?"span":"div")),l=="class"?n.class=(n.class?n.class+" ":"")+c:l=="style"?n.style=(n.style?n.style+";":"")+c:l!="nodeName"&&(n[l]=c))}}}return a}function gee(t,e,r,n){if(r==du&&n==du)return e;let a=e;for(let i=0;i<n.length;i++){let o=n[i],l=r[i];if(i){let c;l&&l.nodeName==o.nodeName&&a!=t&&(c=a.parentNode)&&c.nodeName.toLowerCase()==o.nodeName||(c=document.createElement(o.nodeName),c.pmIsDeco=!0,c.appendChild(a),l=du[0]),a=c}HBe(a,l||du[0],o)}return a}function HBe(t,e,r){for(let n in e)n!="class"&&n!="style"&&n!="nodeName"&&!(n in r)&&t.removeAttribute(n);for(let n in r)n!="class"&&n!="style"&&n!="nodeName"&&r[n]!=e[n]&&t.setAttribute(n,r[n]);if(e.class!=r.class){let n=e.class?e.class.split(" ").filter(Boolean):[],a=r.class?r.class.split(" ").filter(Boolean):[];for(let i=0;i<n.length;i++)a.indexOf(n[i])==-1&&t.classList.remove(n[i]);for(let i=0;i<a.length;i++)n.indexOf(a[i])==-1&&t.classList.add(a[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=r.style){if(e.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,a;for(;a=n.exec(e.style);)t.style.removeProperty(a[1])}r.style&&(t.style.cssText+=r.style)}}function bee(t,e,r){return gee(t,t,du,bk(e,r,t.nodeType!=1))}function T2(t,e){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].type.eq(e[r].type))return!1;return!0}function QF(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class FBe{constructor(e,r,n){this.lock=r,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=zBe(e.node.content,e)}destroyBetween(e,r){if(e!=r){for(let n=e;n<r;n++)this.top.children[n].destroy();this.top.children.splice(e,r-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,r,n,a){let i=0,o=this.stack.length>>1,l=Math.min(o,e.length);for(;i<l&&(i==o-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<o;)this.destroyRest(),this.top.dirty=Is,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let c=-1,u=this.top.children.length;a<this.preMatch.index&&(u=Math.min(this.index+3,u));for(let d=this.index;d<u;d++){let h=this.top.children[d];if(h.matchesMark(e[o])&&!this.isLocked(h.dom)){c=d;break}}if(c<0&&this.index<this.top.children.length){let d=this.top.children[this.index];d instanceof tc&&d.dirty!=pi&&d.mark.type==e[o].type&&d.spec.update&&!this.isLocked(d.dom)&&d.spec.update(e[o])&&(d.mark=e[o],c=this.index,this.changed=!0)}if(c>-1)c>this.index&&(this.changed=!0,this.destroyBetween(this.index,c)),this.top=this.top.children[this.index];else{let d=tc.create(this.top,e[o],r,n);this.top.children.splice(this.index,0,d),this.top=d,this.changed=!0}this.index=0,o++}}findNodeMatch(e,r,n,a){let i=-1,o;if(a>=this.preMatch.index&&(o=this.preMatch.matches[a-this.preMatch.index]).parent==this.top&&o.matchesNode(e,r,n))i=this.top.children.indexOf(o,this.index);else for(let l=this.index,c=Math.min(this.top.children.length,l+5);l<c;l++){let u=this.top.children[l];if(u.matchesNode(e,r,n)&&!this.preMatch.matched.has(u)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,r,n,a,i){let o=this.top.children[a];return o.dirty==pi&&o.dom==o.contentDOM&&(o.dirty=uu),o.update(e,r,n,i)?(this.destroyBetween(this.index,a),this.index++,!0):!1}findIndexWithChild(e){for(;;){let r=e.parentNode;if(!r)return-1;if(r==this.top.contentDOM){let n=e.pmViewDesc;if(n){for(let a=this.index;a<this.top.children.length;a++)if(this.top.children[a]==n)return a}return-1}e=r}}updateNextNode(e,r,n,a,i,o){for(let l=this.index;l<this.top.children.length;l++){let c=this.top.children[l];if(c instanceof rc){let u=this.preMatch.matched.get(c);if(u!=null&&u!=i)return!1;let d=c.dom,h,m=this.isLocked(d)&&!(e.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==e.text&&c.dirty!=pi&&T2(r,c.outerDeco));if(!m&&c.update(e,r,n,a))return this.destroyBetween(this.index,l),c.dom!=d&&(this.changed=!0),this.index++,!0;if(!m&&(h=this.recreateWrapper(c,e,r,n,a,o)))return this.destroyBetween(this.index,l),this.top.children[this.index]=h,h.contentDOM&&(h.dirty=uu,h.updateChildren(a,o+1),h.dirty=Is),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,r,n,a,i,o){if(e.dirty||r.isAtom||!e.children.length||!e.node.content.eq(r.content)||!T2(n,e.outerDeco)||!a.eq(e.innerDeco))return null;let l=rc.create(this.top,r,n,a,i,o);if(l.contentDOM){l.children=e.children,e.children=[];for(let c of l.children)c.parent=l}return e.destroy(),l}addNode(e,r,n,a,i){let o=rc.create(this.top,e,r,n,a,i);o.contentDOM&&o.updateChildren(a,i+1),this.top.children.splice(this.index++,0,o),this.changed=!0}placeWidget(e,r,n){let a=this.index<this.top.children.length?this.top.children[this.index]:null;if(a&&a.matchesWidget(e)&&(e==a.widget||!a.widget.type.toDOM.parentNode))this.index++;else{let i=new fee(this.top,e,r,n);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],r=this.top;for(;e instanceof tc;)r=e,e=r.children[r.children.length-1];(!e||!(e instanceof Fv)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((la||zn)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",r),this.addHackNode("BR",this.top))}addHackNode(e,r){if(r==this.top&&this.index<r.children.length&&r.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e=="IMG"&&(n.className="ProseMirror-separator",n.alt=""),e=="BR"&&(n.className="ProseMirror-trailingBreak");let a=new pee(this.top,[],n,null);r!=this.top?r.children.push(a):r.children.splice(this.index++,0,a),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function zBe(t,e){let r=e,n=r.children.length,a=t.childCount,i=new Map,o=[];e:for(;a>0;){let l;for(;;)if(n){let u=r.children[n-1];if(u instanceof tc)r=u,n=u.children.length;else{l=u,n--;break}}else{if(r==e)break e;n=r.parent.children.indexOf(r),r=r.parent}let c=l.node;if(c){if(c!=t.child(a-1))break;--a,i.set(l,a),o.push(l)}}return{index:a,matched:i,matches:o.reverse()}}function VBe(t,e){return t.type.side-e.type.side}function UBe(t,e,r,n){let a=e.locals(t),i=0;if(a.length==0){for(let u=0;u<t.childCount;u++){let d=t.child(u);n(d,a,e.forChild(i,d),u),i+=d.nodeSize}return}let o=0,l=[],c=null;for(let u=0;;){let d,h;for(;o<a.length&&a[o].to==i;){let v=a[o++];v.widget&&(d?(h||(h=[d])).push(v):d=v)}if(d)if(h){h.sort(VBe);for(let v=0;v<h.length;v++)r(h[v],u,!!c)}else r(d,u,!!c);let m,g;if(c)g=-1,m=c,c=null;else if(u<t.childCount)g=u,m=t.child(u++);else break;for(let v=0;v<l.length;v++)l[v].to<=i&&l.splice(v--,1);for(;o<a.length&&a[o].from<=i&&a[o].to>i;)l.push(a[o++]);let b=i+m.nodeSize;if(m.isText){let v=b;o<a.length&&a[o].from<v&&(v=a[o].from);for(let N=0;N<l.length;N++)l[N].to<v&&(v=l[N].to);v<b&&(c=m.cut(v-i),m=m.cut(0,v-i),b=v,g=-1)}else for(;o<a.length&&a[o].to<b;)o++;let y=m.isInline&&!m.isLeaf?l.filter(v=>!v.inline):l.slice();n(m,y,e.forChild(i,m),g),i=b}}function qBe(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function WBe(t,e,r,n){for(let a=0,i=0;a<t.childCount&&i<=n;){let o=t.child(a++),l=i;if(i+=o.nodeSize,!o.isText)continue;let c=o.text;for(;a<t.childCount;){let u=t.child(a++);if(i+=u.nodeSize,!u.isText)break;c+=u.text}if(i>=r){if(i>=n&&c.slice(n-e.length-l,n-l)==e)return n-e.length;let u=l<n?c.lastIndexOf(e,n-l-1):-1;if(u>=0&&u+e.length+l>=r)return l+u;if(r==n&&c.length>=n+e.length-l&&c.slice(n-l,n-l+e.length)==e)return n}}return-1}function xk(t,e,r,n,a){let i=[];for(let o=0,l=0;o<t.length;o++){let c=t[o],u=l,d=l+=c.size;u>=r||d<=e?i.push(c):(u<e&&i.push(c.slice(0,e-u,n)),a&&(i.push(a),a=void 0),d>r&&i.push(c.slice(r-u,c.size,n)))}return i}function a_(t,e=null){let r=t.domSelectionRange(),n=t.state.doc;if(!r.focusNode)return null;let a=t.docView.nearestDesc(r.focusNode),i=a&&a.size==0,o=t.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(o<0)return null;let l=n.resolve(o),c,u;if(Hv(r)){for(c=o;a&&!a.node;)a=a.parent;let h=a.node;if(a&&h.isAtom&&bt.isSelectable(h)&&a.parent&&!(h.isInline&&yBe(r.focusNode,r.focusOffset,a.dom))){let m=a.posBefore;u=new bt(o==m?l:n.resolve(m))}}else{if(r instanceof t.dom.ownerDocument.defaultView.Selection&&r.rangeCount>1){let h=o,m=o;for(let g=0;g<r.rangeCount;g++){let b=r.getRangeAt(g);h=Math.min(h,t.docView.posFromDOM(b.startContainer,b.startOffset,1)),m=Math.max(m,t.docView.posFromDOM(b.endContainer,b.endOffset,-1))}if(h<0)return null;[c,o]=m==t.state.selection.anchor?[m,h]:[h,m],l=n.resolve(o)}else c=t.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(c<0)return null}let d=n.resolve(c);if(!u){let h=e=="pointer"||t.state.selection.head<l.pos&&!i?1:-1;u=s_(t,d,l,h)}return u}function xee(t){return t.editable?t.hasFocus():vee(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Uo(t,e=!1){let r=t.state.selection;if(yee(t,r),!xee(t))return;let n=t.input.mouseDown;if(!e&&zn&&n){let a=t.domSelectionRange(),i=t.domObserver.currentSelection;if(a.anchorNode&&i.anchorNode&&Iu(a.anchorNode,a.anchorOffset,i.anchorNode,i.anchorOffset)&&n.delaySelUpdate()){t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)KBe(t);else{let{anchor:a,head:i}=r,o,l;ZF&&!(r instanceof gt)&&(r.$from.parent.inlineContent||(o=ez(t,r.from)),!r.empty&&!r.$from.parent.inlineContent&&(l=ez(t,r.to))),t.docView.setSelection(a,i,t,e),ZF&&(o&&tz(o),l&&tz(l)),r.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&GBe(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}const ZF=la||zn&&see<63;function ez(t,e){let{node:r,offset:n}=t.docView.domFromPos(e,0),a=n<r.childNodes.length?r.childNodes[n]:null,i=n?r.childNodes[n-1]:null;if(la&&a&&a.contentEditable=="false")return Y7(a);if((!a||a.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(a)return Y7(a);if(i)return Y7(i)}}function Y7(t){return t.contentEditable="true",la&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function tz(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function GBe(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let r=t.domSelectionRange(),n=r.anchorNode,a=r.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(r.anchorNode!=n||r.anchorOffset!=a)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!xee(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function KBe(t){let e=t.domSelection();if(!e)return;let r=t.cursorWrapper.dom,n=r.nodeName=="IMG";n?e.collapse(r.parentNode,Bn(r)+1):e.collapse(r,0),!n&&!t.state.selection.visible&&La&&ec<=11&&(r.disabled=!0,r.disabled=!1)}function yee(t,e){if(e instanceof bt){let r=t.docView.descAt(e.from);r!=t.lastSelectedViewDesc&&(rz(t),r&&r.selectNode(),t.lastSelectedViewDesc=r)}else rz(t)}function rz(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function s_(t,e,r,n){return t.someProp("createSelectionBetween",a=>a(t,e,r))||gt.between(e,r,n)}function nz(t){return t.editable&&!t.hasFocus()?!1:vee(t)}function vee(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function YBe(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),r=t.domSelectionRange();return Iu(e.node,e.offset,r.anchorNode,r.anchorOffset)}function yk(t,e){let{$anchor:r,$head:n}=t.selection,a=e>0?r.max(n):r.min(n),i=a.parent.inlineContent?a.depth?t.doc.resolve(e>0?a.after():a.before()):null:a;return i&&St.findFrom(i,e)}function Dl(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function az(t,e,r){let n=t.state.selection;if(n instanceof gt)if(r.indexOf("s")>-1){let{$head:a}=n,i=a.textOffset?null:e<0?a.nodeBefore:a.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let o=t.state.doc.resolve(a.pos+i.nodeSize*(e<0?-1:1));return Dl(t,new gt(n.$anchor,o))}
vendor: 4,181 bytes, line 1298
1298else if(n.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let a=yk(t.state,e);return a&&a instanceof bt?Dl(t,a):!1}else if(!($s&&r.indexOf("m")>-1)){let a=n.$head,i=a.textOffset?null:e<0?a.nodeBefore:a.nodeAfter,o;if(!i||i.isText)return!1;let l=e<0?a.pos-i.nodeSize:a.pos;return i.isAtom||(o=t.docView.descAt(l))&&!o.contentDOM?bt.isSelectable(i)?Dl(t,new bt(e<0?t.state.doc.resolve(a.pos-i.nodeSize):a)):d1?Dl(t,new gt(t.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(n instanceof bt&&n.node.isInline)return Dl(t,new gt(e>0?n.$to:n.$from));{let a=yk(t.state,e);return a?Dl(t,a):!1}}}function R2(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function bm(t,e){let r=t.pmViewDesc;return r&&r.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Fd(t,e){return e<0?XBe(t):JBe(t)}function XBe(t){let e=t.domSelectionRange(),r=e.focusNode,n=e.focusOffset;if(!r)return;let a,i,o=!1;for(Rs&&r.nodeType==1&&n<R2(r)&&bm(r.childNodes[n],-1)&&(o=!0);;)if(n>0){if(r.nodeType!=1)break;{let l=r.childNodes[n-1];if(bm(l,-1))a=r,i=--n;else if(l.nodeType==3)r=l,n=r.nodeValue.length;else break}}else{if(wee(r))break;{let l=r.previousSibling;for(;l&&bm(l,-1);)a=r.parentNode,i=Bn(l),l=l.previousSibling;if(l)r=l,n=R2(r);else{if(r=r.parentNode,r==t.dom)break;n=0}}}o?vk(t,r,n):a&&vk(t,a,i)}function JBe(t){let e=t.domSelectionRange(),r=e.focusNode,n=e.focusOffset;if(!r)return;let a=R2(r),i,o;for(;;)if(n<a){if(r.nodeType!=1)break;let l=r.childNodes[n];if(bm(l,1))i=r,o=++n;else break}else{if(wee(r))break;{let l=r.nextSibling;for(;l&&bm(l,1);)i=l.parentNode,o=Bn(l)+1,l=l.nextSibling;if(l)r=l,n=0,a=R2(r);else{if(r=r.parentNode,r==t.dom)break;n=a=0}}}i&&vk(t,i,o)}function wee(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function QBe(t,e){for(;t&&e==t.childNodes.length&&!u1(t);)e=Bn(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let r=t.childNodes[e];if(r.nodeType==3)return r;if(r.nodeType==1&&r.contentEditable=="false")break;t=r,e=0}}function ZBe(t,e){for(;t&&!e&&!u1(t);)e=Bn(t),t=t.parentNode;for(;t&&e;){let r=t.childNodes[e-1];if(r.nodeType==3)return r;if(r.nodeType==1&&r.contentEditable=="false")break;t=r,e=t.childNodes.length}}function vk(t,e,r){if(e.nodeType!=3){let i,o;(o=QBe(e,r))?(e=o,r=0):(i=ZBe(e,r))&&(e=i,r=i.nodeValue.length)}let n=t.domSelection();if(!n)return;if(Hv(n)){let i=document.createRange();i.setEnd(e,r),i.setStart(e,r),n.removeAllRanges(),n.addRange(i)}else n.extend&&n.extend(e,r);t.domObserver.setCurSelection();let{state:a}=t;setTimeout(()=>{t.state==a&&Uo(t)},50)}function sz(t,e){let r=t.state.doc.resolve(e);if(!(zn||iee)&&r.parent.inlineContent){let a=t.coordsAtPos(e);if(e>r.start()){let i=t.coordsAtPos(e-1),o=(i.top+i.bottom)/2;if(o>a.top&&o<a.bottom&&Math.abs(i.left-a.left)>1)return i.left<a.left?"ltr":"rtl"}if(e<r.end()){let i=t.coordsAtPos(e+1),o=(i.top+i.bottom)/2;if(o>a.top&&o<a.bottom&&Math.abs(i.left-a.left)>1)return i.left>a.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function iz(t,e,r){let n=t.state.selection;if(n instanceof gt&&!n.empty||r.indexOf("s")>-1||$s&&r.indexOf("m")>-1)return!1;let{$from:a,$to:i}=n;if(!a.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let o=yk(t.state,e);if(o&&o instanceof bt)return Dl(t,o)}if(!a.parent.inlineContent){let o=e<0?a:i,l=n instanceof ns?St.near(o,e):St.findFrom(o,e);return l?Dl(t,l):!1}return!1}function oz(t,e){if(!(t.state.selection instanceof gt))return!0;let{$head:r,$anchor:n,empty:a}=t.state.selection;if(!r.sameParent(n))return!0;if(!a)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!r.textOffset&&(e<0?r.nodeBefore:r.nodeAfter);if(i&&!i.isText){let o=t.state.tr;return e<0?o.delete(r.pos-i.nodeSize,r.pos):o.delete(r.pos,r.pos+i.nodeSize),t.dispatch(o),!0}return!1}function lz(t,e,r){t.domObserver.stop(),e.contentEditable=r,t.domObserver.start()}function eHe(t){if(!la||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:r}=t.domSelectionRange();if(e&&e.nodeType==1&&r==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let n=e.firstChild;lz(t,n,"true"),setTimeout(()=>lz(t,n,"false"),20)}return!1}function tHe(t){let e="";
vendor: 24,249 bytes, lines 1298-1301
1298return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function rHe(t,e){let r=e.keyCode,n=tHe(e);if(r==8||$s&&r==72&&n=="c")return oz(t,-1)||Fd(t,-1);if(r==46&&!e.shiftKey||$s&&r==68&&n=="c")return oz(t,1)||Fd(t,1);if(r==13||r==27)return!0;if(r==37||$s&&r==66&&n=="c"){let a=r==37?sz(t,t.state.selection.from)=="ltr"?-1:1:-1;return az(t,a,n)||Fd(t,a)}else if(r==39||$s&&r==70&&n=="c"){let a=r==39?sz(t,t.state.selection.from)=="ltr"?1:-1:1;return az(t,a,n)||Fd(t,a)}else{if(r==38||$s&&r==80&&n=="c")return iz(t,-1,n)||Fd(t,-1);if(r==40||$s&&r==78&&n=="c")return eHe(t)||iz(t,1,n)||Fd(t,1);if(n==($s?"m":"c")&&(r==66||r==73||r==89||r==90))return!0}return!1}function i_(t,e){t.someProp("transformCopied",g=>{e=g(e,t)});let r=[],{content:n,openStart:a,openEnd:i}=e;for(;a>1&&i>1&&n.childCount==1&&n.firstChild.childCount==1;){a--,i--;let g=n.firstChild;r.push(g.type.name,g.attrs!=g.type.defaultAttrs?g.attrs:null),n=g.content}let o=t.someProp("clipboardSerializer")||Xu.fromSchema(t.state.schema),l=$ee(),c=l.createElement("div");c.appendChild(o.serializeFragment(n,{document:l}));let u=c.firstChild,d,h=0;for(;u&&u.nodeType==1&&(d=Cee[u.nodeName.toLowerCase()]);){for(let g=d.length-1;g>=0;g--){let b=l.createElement(d[g]);for(;c.firstChild;)b.appendChild(c.firstChild);c.appendChild(b),h++}u=c.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${a} ${i}${h?` -${h}`:""} ${JSON.stringify(r)}`);let m=t.someProp("clipboardTextSerializer",g=>g(e,t))||e.content.textBetween(0,e.content.size,` 1299 1300`);return{dom:c,text:m,slice:e}}function Nee(t,e,r,n,a){let i=a.parent.type.spec.code,o,l;if(!r&&!e)return null;let c=!!e&&(n||i||!r);if(c){if(t.someProp("transformPastedText",m=>{e=m(e,i||n,t)}),i)return l=new Ge(Ee.from(t.state.schema.text(e.replace(/\r\n?/g,` 1301`))),0,0),t.someProp("transformPasted",m=>{l=m(l,t,!0)}),l;let h=t.someProp("clipboardTextParser",m=>m(e,a,n,t));if(h)l=h;else{let m=a.marks(),{schema:g}=t.state,b=Xu.fromSchema(g);o=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let v=o.appendChild(document.createElement("p"));y&&v.appendChild(b.serializeNode(g.text(y,m)))})}}else t.someProp("transformPastedHTML",h=>{r=h(r,t)}),o=iHe(r),d1&&oHe(o);let u=o&&o.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let h=+d[3];h>0;h--){let m=o.firstChild;for(;m&&m.nodeType!=1;)m=m.nextSibling;if(!m)break;o=m}if(l||(l=(t.someProp("clipboardParser")||t.someProp("domParser")||pm.fromSchema(t.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||d),context:a,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!nHe.test(m.parentNode.nodeName)?{ignore:!0}:null}})),d)l=lHe(cz(l,+d[1],+d[2]),d[4]);else if(l=Ge.maxOpen(aHe(l.content,a),!0),l.openStart||l.openEnd){let h=0,m=0;for(let g=l.content.firstChild;h<l.openStart&&!g.type.spec.isolating;h++,g=g.firstChild);for(let g=l.content.lastChild;m<l.openEnd&&!g.type.spec.isolating;m++,g=g.lastChild);l=cz(l,h,m)}return t.someProp("transformPasted",h=>{l=h(l,t,c)}),l}const nHe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function aHe(t,e){if(t.childCount<2)return t;for(let r=e.depth;r>=0;r--){let a=e.node(r).contentMatchAt(e.index(r)),i,o=[];if(t.forEach(l=>{if(!o)return;let c=a.findWrapping(l.type),u;if(!c)return o=null;if(u=o.length&&i.length&&kee(c,i,l,o[o.length-1],0))o[o.length-1]=u;else{o.length&&(o[o.length-1]=See(o[o.length-1],i.length));let d=jee(l,c);o.push(d),a=a.matchType(d.type),i=c}}),o)return Ee.from(o)}return t}function jee(t,e,r=0){for(let n=e.length-1;n>=r;n--)t=e[n].create(null,Ee.from(t));return t}function kee(t,e,r,n,a){if(a<t.length&&a<e.length&&t[a]==e[a]){let i=kee(t,e,r,n.lastChild,a+1);if(i)return n.copy(n.content.replaceChild(n.childCount-1,i));if(n.contentMatchAt(n.childCount).matchType(a==t.length-1?r.type:t[a+1]))return n.copy(n.content.append(Ee.from(jee(r,t,a+1))))}}function See(t,e){if(e==0)return t;let r=t.content.replaceChild(t.childCount-1,See(t.lastChild,e-1)),n=t.contentMatchAt(t.childCount).fillBefore(Ee.empty,!0);return t.copy(r.append(n))}function wk(t,e,r,n,a,i){let o=e<0?t.firstChild:t.lastChild,l=o.content;return t.childCount>1&&(i=0),a<n-1&&(l=wk(l,e,r,n,a+1,i)),a>=r&&(l=e<0?o.contentMatchAt(0).fillBefore(l,i<=a).append(l):l.append(o.contentMatchAt(o.childCount).fillBefore(Ee.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,o.copy(l))}function cz(t,e,r){return e<t.openStart&&(t=new Ge(wk(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),r<t.openEnd&&(t=new Ge(wk(t.content,1,r,t.openEnd,0,0),t.openStart,r)),t}const Cee={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};function $ee(){return document.implementation.createHTMLDocument("title")}let X7=null;function sHe(t){let e=window.trustedTypes;return e?(X7||(X7=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:r=>r})),X7.createHTML(t)):t}function iHe(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let r=$ee(),n=r.body,a=/<([a-z][^>\s]+)/i.exec(t),i;if((i=a&&Cee[a[1].toLowerCase()])&&(t=i.map(o=>"<"+o+">").join("")+t+i.map(o=>"</"+o+">").reverse().join("")),n.innerHTML=sHe(t),i)for(let o=0;o<i.length;o++)n=n.querySelector(i[o])||n;for(let o=0;o<r.styleSheets.length;o++){let l=r.styleSheets[o];for(let c=0;c<l.rules.length;c++){let u=l.rules[c];if(u instanceof CSSStyleRule){let d=n.querySelectorAll(u.selectorText);for(let h=0;h<d.length;h++)d[h].style.cssText+=u.style.cssText}}}return n}function oHe(t){let e=t.querySelectorAll(zn?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<e.length;r++){let n=e[r];n.childNodes.length==1&&n.textContent=="Â "&&n.parentNode&&n.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),n)}}function lHe(t,e){if(!t.size)return t;let r=t.content.firstChild.type.schema,n;try{n=JSON.parse(e)}catch{return t}let{content:a,openStart:i,openEnd:o}=t;for(let l=n.length-2;l>=0;l-=2){let c=r.nodes[n[l]];if(!c||c.hasRequiredAttrs())break;a=Ee.from(c.create(n[l+1],a)),i++,o++}return new Ge(a,i,o)}const ka={},Sa={},cHe={touchstart:!0,touchmove:!0};class uHe{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function dHe(t){for(let e in ka){let r=ka[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=n=>{fHe(t,n)&&!o_(t,n)&&(t.editable||!(n.type in Sa))&&r(t,n)},cHe[e]?{passive:!0}:void 0)}la&&t.dom.addEventListener("input",()=>null),Nk(t)}function Ro(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function hHe(t){t.input.mouseDown&&t.input.mouseDown.done(),t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Nk(t){t.someProp("handleDOMEvents",e=>{for(let r in e)t.input.eventHandlers[r]||t.dom.addEventListener(r,t.input.eventHandlers[r]=n=>o_(t,n))})}function o_(t,e){return t.someProp("handleDOMEvents",r=>{let n=r[e.type];return n?n(t,e)||e.defaultPrevented:!1})}function fHe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let r=e.target;r!=t.dom;r=r.parentNode)if(!r||r.nodeType==11||r.pmViewDesc&&r.pmViewDesc.stopEvent(e))return!1;return!0}function pHe(t,e){!o_(t,e)&&ka[e.type]&&(t.editable||!(e.type in Sa))&&ka[e.type](t,e)}Sa.keydown=(t,e)=>{let r=e;if(t.input.shiftKey=r.keyCode==16||r.shiftKey,!Oee(t)&&(t.input.lastKeyCode=r.keyCode,t.input.lastKeyCodeTime=Date.now(),!(To&&zn&&r.keyCode==13)))if(r.keyCode!=229&&t.domObserver.forceFlush(),nf&&r.keyCode==13&&!r.ctrlKey&&!r.altKey&&!r.metaKey){let n=Date.now();t.input.lastIOSEnter=n,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==n&&(t.someProp("handleKeyDown",a=>a(t,Zc(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",n=>n(t,r))||rHe(t,r)?r.preventDefault():Ro(t,"key")};Sa.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Sa.keypress=(t,e)=>{let r=e;if(Oee(t)||!r.charCode||r.ctrlKey&&!r.altKey||$s&&r.metaKey)return;if(t.someProp("handleKeyPress",a=>a(t,r))){r.preventDefault();return}let n=t.state.selection;if(!(n instanceof gt)||!n.$from.sameParent(n.$to)){let a=String.fromCharCode(r.charCode),i=()=>t.state.tr.insertText(a).scrollIntoView();!/[\r\n]/.test(a)&&!t.someProp("handleTextInput",o=>o(t,n.$from.pos,n.$to.pos,a,i))&&t.dispatch(i()),r.preventDefault()}};function f1(t){return{left:t.clientX,top:t.clientY}}function mHe(t,e){let r=e.x-t.clientX,n=e.y-t.clientY;return r*r+n*n<100}function l_(t,e,r,n,a){if(n==-1)return!1;let i=t.state.doc.resolve(n);for(let o=i.depth+1;o>0;o--)if(t.someProp(e,l=>o>i.depth?l(t,r,i.nodeAfter,i.before(o),a,!0):l(t,r,i.node(o),i.before(o),a,!1)))return!0;return!1}function p1(t,e,r){if(t.focused||t.focus(),t.state.selection.eq(e))return;let n=t.state.tr.setSelection(e);n.setMeta("pointer",!0),t.dispatch(n)}function gHe(t,e){if(e==-1)return!1;let r=t.state.doc.resolve(e),n=r.nodeAfter;return n&&n.isAtom&&bt.isSelectable(n)?(p1(t,new bt(r)),!0):!1}function bHe(t,e){if(e==-1)return!1;let r=t.state.selection,n,a;r instanceof bt&&(n=r.node);let i=t.state.doc.resolve(e);for(let o=i.depth+1;o>0;o--){let l=o>i.depth?i.nodeAfter:i.node(o);if(bt.isSelectable(l)){n&&r.$from.depth>0&&o>=r.$from.depth&&i.before(r.$from.depth+1)==r.$from.pos?a=i.before(r.$from.depth):a=i.before(o);break}}return a!=null?(p1(t,bt.create(t.state.doc,a)),!0):!1}function xHe(t,e,r,n,a){return l_(t,"handleClickOn",e,r,n)||t.someProp("handleClick",i=>i(t,e,n))||(a?bHe(t,r):gHe(t,r))}function yHe(t,e,r,n){return l_(t,"handleDoubleClickOn",e,r,n)||t.someProp("handleDoubleClick",a=>a(t,e,n))}function vHe(t,e,r,n){return l_(t,"handleTripleClickOn",e,r,n)||t.someProp("handleTripleClick",a=>a(t,e,n))||wHe(t,r,n)}function wHe(t,e,r){if(r.button!=0)return!1;let n=_ee(t,e,!0),a=t.state.doc;return n?(p1(t,n),n instanceof gt&&a.eq(t.state.doc)&&(t.input.mouseDown=new jHe(t,n)),!0):!1}function _ee(t,e,r){let n=t.state.doc;if(e==-1)return n.inlineContent?gt.create(n,0,n.content.size):null;let a=n.resolve(e);for(let i=a.depth+1;i>0;i--){let o=i>a.depth?a.nodeAfter:a.node(i),l=a.before(i);if(o.inlineContent)return gt.create(n,l+1,l+1+o.content.size);if(r&&bt.isSelectable(o))return bt.create(n,l)}return null}function c_(t){return I2(t)}const Aee=$s?"metaKey":"ctrlKey";ka.mousedown=(t,e)=>{let r=e;t.input.shiftKey=r.shiftKey;let n=c_(t),a=Date.now(),i="singleClick";a-t.input.lastClick.time<500&&mHe(r,t.input.lastClick)&&!r[Aee]&&t.input.lastClick.button==r.button&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:a,x:r.clientX,y:r.clientY,type:i,button:r.button},t.input.mouseDown&&t.input.mouseDown.done();let o=t.posAtCoords(f1(r));o&&(i=="singleClick"?t.input.mouseDown=new NHe(t,o,r,!!n):(i=="doubleClick"?yHe:vHe)(t,o.pos,o.inside,r)?r.preventDefault():Ro(t,"pointer"))};class Eee{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(e){this.done()}move(e){e.buttons==0&&this.done()}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}}class NHe extends Eee{constructor(e,r,n,a){super(e),this.pos=r,this.event=n,this.flushed=a,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!n[Aee],this.allowDefault=n.shiftKey;let i,o;if(r.inside>-1)i=e.state.doc.nodeAt(r.inside),o=r.inside;else{let d=e.state.doc.resolve(r.pos);i=d.parent,o=d.depth?d.before():0}const l=a?null:n.target,c=l?e.docView.nearestDesc(l,!0):null;this.target=c&&c.nodeDOM.nodeType==1?c.nodeDOM:null;let{selection:u}=e.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof bt&&u.from<=o&&u.to>o)&&(this.mightDrag={node:i,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Rs&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),Ro(e,"pointer")}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||Uo(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let r=this.pos;this.view.state.doc!=this.startDoc&&(r=this.view.posAtCoords(f1(e))),this.updateAllowDefault(e),this.allowDefault||!r?Ro(this.view,"pointer"):xHe(this.view,r.pos,r.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||la&&this.mightDrag&&!this.mightDrag.node.isAtom||zn&&!this.view.state.selection.visible&&Math.min(Math.abs(r.pos-this.view.state.selection.from),Math.abs(r.pos-this.view.state.selection.to))<=2)?(p1(this.view,St.near(this.view.state.doc.resolve(r.pos))),e.preventDefault()):Ro(this.view,"pointer")}move(e){this.updateAllowDefault(e),Ro(this.view,"pointer"),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}}class jHe extends Eee{constructor(e,r){super(e),this.startSelection=r,this.startDoc=e.state.doc}move(e){if(e.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}e.preventDefault(),Ro(this.view,"pointer");let r=this.view.posAtCoords(f1(e)),n=r&&_ee(this.view,r.inside,!1);if(!n)return;let{doc:a}=this.view.state,i=this.startSelection,[o,l]=n.from<i.from?[i.to,n.from]:[i.from,n.to];p1(this.view,gt.create(a,o,l))}}ka.touchstart=t=>{t.input.lastTouch=Date.now(),c_(t),Ro(t,"pointer")};ka.touchmove=t=>{t.input.lastTouch=Date.now(),Ro(t,"pointer")};ka.contextmenu=t=>c_(t);function Oee(t,e){return t.composing?!0:la&&Math.abs(Date.now()-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const kHe=To?5e3:-1;Sa.compositionstart=Sa.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,r=e.selection.$to;if(e.selection instanceof gt&&(e.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some(n=>n.type.spec.inclusive===!1)||zn&&iee&&SHe(t)))t.markCursor=t.state.storedMarks||r.marks(),I2(t,!0),t.markCursor=null;else if(I2(t,!e.selection.empty),Rs&&e.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let n=t.domSelectionRange();for(let a=n.focusNode,i=n.focusOffset;a&&a.nodeType==1&&i!=0;){let o=i<0?a.lastChild:a.childNodes[i-1];if(!o)break;if(o.nodeType==3){let l=t.domSelection();l&&l.collapse(o,o.nodeValue.length);break}else a=o,i=-1}}t.input.composing=!0}Pee(t,kHe)};function SHe(t){let{focusNode:e,focusOffset:r}=t.domSelectionRange();if(!e||e.nodeType!=1||r>=e.childNodes.length)return!1;let n=e.childNodes[r];return n.nodeType==1&&n.contentEditable=="false"}Sa.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Date.now(),t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,Pee(t,20))};function Pee(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>I2(t),e))}function Mee(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Date.now());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function CHe(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let r=bBe(e.focusNode,e.focusOffset),n=xBe(e.focusNode,e.focusOffset);if(r&&n&&r!=n){let a=n.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(r==i||n==i)return i;if(!a||!a.isText(n.nodeValue))return n;if(t.input.compositionNode==n){let o=r.pmViewDesc;if(!(!o||!o.isText(r.nodeValue)))return n}}return r||n}function I2(t,e=!1){if(!(To&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Mee(t),e||t.docView&&t.docView.dirty){let r=a_(t),n=t.state.selection;return r&&!r.eq(n)?t.dispatch(t.state.tr.setSelection(r)):(t.markCursor||e)&&!n.$from.node(n.$from.sharedDepth(n.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function $He(t,e){if(!t.dom.parentNode)return;let r=t.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(e),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),a=document.createRange();a.selectNodeContents(e),t.dom.blur(),n.removeAllRanges(),n.addRange(a),setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r),t.focus()},50)}const A0=La&&ec<15||nf&&NBe<604;ka.copy=Sa.cut=(t,e)=>{let r=e,n=t.state.selection,a=r.type=="cut";if(n.empty)return;let i=A0?null:r.clipboardData,o=n.content(),{dom:l,text:c}=i_(t,o);i?(r.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",c)):$He(t,l),a&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function _He(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function AHe(t,e){if(!t.dom.parentNode)return;let r=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,n=t.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let a=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),n.parentNode&&n.parentNode.removeChild(n),r?E0(t,n.value,null,a,e):E0(t,n.textContent,n.innerHTML,a,e)},50)}function E0(t,e,r,n,a){let i=Nee(t,e,r,n,t.state.selection.$from);if(t.someProp("handlePaste",c=>c(t,a,i||Ge.empty)))return!0;if(!i)return!1;let o=_He(i),l=o?t.state.tr.replaceSelectionWith(o,n):t.state.tr.replaceSelection(i);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Tee(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let r=t.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}Sa.paste=(t,e)=>{let r=e;if(t.composing&&!To)return;let n=A0?null:r.clipboardData,a=t.input.shiftKey&&t.input.lastKeyCode!=45;n&&E0(t,Tee(n),n.getData("text/html"),a,r)?r.preventDefault():AHe(t,r)};class Ree{constructor(e,r,n){this.slice=e,this.move=r,this.node=n}}const EHe=$s?"altKey":"ctrlKey";function Iee(t,e){let r;return t.someProp("dragCopies",n=>{r=r||n(e)}),r!=null?!r:!e[EHe]}ka.dragstart=(t,e)=>{let r=e,n=t.input.mouseDown;if(n&&n.done(),!r.dataTransfer)return;let a=t.state.selection,i=a.empty?null:t.posAtCoords(f1(r)),o;if(!(i&&i.pos>=a.from&&i.pos<=(a instanceof bt?a.to-1:a.to))){if(n&&n.mightDrag)o=bt.create(t.state.doc,n.mightDrag.pos);else if(r.target&&r.target.nodeType==1){let h=t.docView.nearestDesc(r.target,!0);h&&h.node.type.spec.draggable&&h!=t.docView&&(o=bt.create(t.state.doc,h.posBefore))}}let l=(o||t.state.selection).content(),{dom:c,text:u,slice:d}=i_(t,l);(!r.dataTransfer.files.length||!zn||see>120)&&r.dataTransfer.clearData(),r.dataTransfer.setData(A0?"Text":"text/html",c.innerHTML),r.dataTransfer.effectAllowed="copyMove",A0||r.dataTransfer.setData("text/plain",u),t.dragging=new Ree(d,Iee(t,r),o)};ka.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Sa.dragover=Sa.dragenter=(t,e)=>e.preventDefault();Sa.drop=(t,e)=>{try{OHe(t,e,t.dragging)}finally{t.dragging=null}};function OHe(t,e,r){if(!e.dataTransfer)return;let n=t.posAtCoords(f1(e));if(!n)return;let a=t.state.doc.resolve(n.pos),i=r&&r.slice;i?t.someProp("transformPasted",g=>{i=g(i,t,!1)}):i=Nee(t,Tee(e.dataTransfer),A0?null:e.dataTransfer.getData("text/html"),!1,a);let o=!!(r&&Iee(t,e));if(t.someProp("handleDrop",g=>g(t,e,i||Ge.empty,o))){e.preventDefault();return}if(!i)return;e.preventDefault();let l=i?XZ(t.state.doc,a.pos,i):a.pos;l==null&&(l=a.pos);let c=t.state.tr;if(o){let{node:g}=r;g?g.replace(c):c.deleteSelection()}let u=c.mapping.map(l),d=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,h=c.doc;if(d?c.replaceRangeWith(u,u,i.content.firstChild):c.replaceRange(u,u,i),c.doc.eq(h))return;let m=c.doc.resolve(u);if(d&&bt.isSelectable(i.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(i.content.firstChild))c.setSelection(new bt(m));else{let g=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((b,y,v,N)=>g=N),c.setSelection(s_(t,m,c.doc.resolve(g)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))}ka.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Uo(t)},20))};ka.blur=(t,e)=>{let r=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),r.relatedTarget&&t.dom.contains(r.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};ka.beforeinput=(t,e)=>{if(To&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:n}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=n||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,Zc(8,"Backspace")))))return;let{$cursor:a}=t.state.selection;a&&a.pos>0&&t.dispatch(t.state.tr.delete(a.pos-1,a.pos).scrollIntoView())},50)}};for(let t in Sa)ka[t]=Sa[t];function O0(t,e){if(t==e)return!0;for(let r in t)if(t[r]!==e[r])return!1;for(let r in e)if(!(r in t))return!1;return!0}class D2{constructor(e,r){this.toDOM=e,this.spec=r||Nu,this.side=this.spec.side||0}map(e,r,n,a){let{pos:i,deleted:o}=e.mapResult(r.from+a,this.side<0?-1:1);return o?null:new oa(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof D2&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&O0(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class nc{constructor(e,r){this.attrs=e,this.spec=r||Nu}map(e,r,n,a){let i=e.map(r.from+a,this.spec.inclusiveStart?-1:1)-n,o=e.map(r.to+a,this.spec.inclusiveEnd?1:-1)-n;return i>=o?null:new oa(i,o,this)}valid(e,r){return r.from<r.to}eq(e){return this==e||e instanceof nc&&O0(this.attrs,e.attrs)&&O0(this.spec,e.spec)}static is(e){return e.type instanceof nc}destroy(){}}class u_{constructor(e,r){this.attrs=e,this.spec=r||Nu}map(e,r,n,a){let i=e.mapResult(r.from+a,1);if(i.deleted)return null;let o=e.mapResult(r.to+a,-1);return o.deleted||o.pos<=i.pos?null:new oa(i.pos-n,o.pos-n,this)}valid(e,r){let{index:n,offset:a}=e.content.findIndex(r.from),i;return a==r.from&&!(i=e.child(n)).isText&&a+i.nodeSize==r.to}eq(e){return this==e||e instanceof u_&&O0(this.attrs,e.attrs)&&O0(this.spec,e.spec)}destroy(){}}class oa{constructor(e,r,n){this.from=e,this.to=r,this.type=n}copy(e,r){return new oa(e,r,this.type)}eq(e,r=0){return this.type.eq(e.type)&&this.from+r==e.from&&this.to+r==e.to}map(e,r,n){return this.type.map(e,this,r,n)}static widget(e,r,n){return new oa(e,e,new D2(r,n))}static inline(e,r,n,a){return new oa(e,r,new nc(n,a))}
vendor: 4,696 bytes, line 1301
1301static node(e,r,n,a){return new oa(e,r,new u_(n,a))}get spec(){return this.type.spec}get inline(){return this.type instanceof nc}get widget(){return this.type instanceof D2}}const Yd=[],Nu={};class Or{constructor(e,r){this.local=e.length?e:Yd,this.children=r.length?r:Yd}static create(e,r){return r.length?L2(r,e,0,Nu):na}find(e,r,n){let a=[];return this.findInner(e??0,r??1e9,a,0,n),a}findInner(e,r,n,a,i){for(let o=0;o<this.local.length;o++){let l=this.local[o];l.from<=r&&l.to>=e&&(!i||i(l.spec))&&n.push(l.copy(l.from+a,l.to+a))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<r&&this.children[o+1]>e){let l=this.children[o]+1;this.children[o+2].findInner(e-l,r-l,n,a+l,i)}}map(e,r,n){return this==na||e.maps.length==0?this:this.mapInner(e,r,0,0,n||Nu)}mapInner(e,r,n,a,i){let o;for(let l=0;l<this.local.length;l++){let c=this.local[l].map(e,n,a);c&&c.type.valid(r,c)?(o||(o=[])).push(c):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?PHe(this.children,o||[],e,r,n,a,i):o?new Or(o.sort(ju),Yd):na}add(e,r){return r.length?this==na?Or.create(e,r):this.addInner(e,r,0):this}addInner(e,r,n){let a,i=0;e.forEach((l,c)=>{let u=c+n,d;if(d=Lee(r,l,u)){for(a||(a=this.children.slice());i<a.length&&a[i]<c;)i+=3;a[i]==c?a[i+2]=a[i+2].addInner(l,d,u+1):a.splice(i,0,c,c+l.nodeSize,L2(d,l,u+1,Nu)),i+=3}});let o=Dee(i?Bee(r):r,-n);for(let l=0;l<o.length;l++)o[l].type.valid(e,o[l])||o.splice(l--,1);return new Or(o.length?this.local.concat(o).sort(ju):this.local,a||this.children)}remove(e){return e.length==0||this==na?this:this.removeInner(e,0)}removeInner(e,r){let n=this.children,a=this.local;for(let i=0;i<n.length;i+=3){let o,l=n[i]+r,c=n[i+1]+r;for(let d=0,h;d<e.length;d++)(h=e[d])&&h.from>l&&h.to<c&&(e[d]=null,(o||(o=[])).push(h));if(!o)continue;n==this.children&&(n=this.children.slice());let u=n[i+2].removeInner(o,l+1);u!=na?n[i+2]=u:(n.splice(i,3),i-=3)}if(a.length){for(let i=0,o;i<e.length;i++)if(o=e[i])for(let l=0;l<a.length;l++)a[l].eq(o,r)&&(a==this.local&&(a=this.local.slice()),a.splice(l--,1))}return n==this.children&&a==this.local?this:a.length||n.length?new Or(a,n):na}forChild(e,r){if(this==na)return this;if(r.isLeaf)return Or.empty;let n,a;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(n=this.children[l+2]);break}let i=e+1,o=i+r.content.size;for(let l=0;l<this.local.length;l++){let c=this.local[l];if(c.from<o&&c.to>i&&c.type instanceof nc){let u=Math.max(i,c.from)-i,d=Math.min(o,c.to)-i;u<d&&(a||(a=[])).push(c.copy(u,d))}}if(a){let l=new Or(a.sort(ju),Yd);return n?new Ul([l,n]):l}return n||na}eq(e){if(this==e)return!0;if(!(e instanceof Or)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let r=0;r<this.local.length;r++)if(!this.local[r].eq(e.local[r]))return!1;for(let r=0;r<this.children.length;r+=3)if(this.children[r]!=e.children[r]||this.children[r+1]!=e.children[r+1]||!this.children[r+2].eq(e.children[r+2]))return!1;return!0}locals(e){return d_(this.localsInner(e))}localsInner(e){if(this==na)return Yd;if(e.inlineContent||!this.local.some(nc.is))return this.local;let r=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof nc||r.push(this.local[n]);return r}forEachSet(e){e(this)}}Or.empty=new Or([],[]);Or.removeOverlap=d_;const na=Or.empty;class Ul{constructor(e){this.members=e}map(e,r){const n=this.members.map(a=>a.map(e,r,Nu));return Ul.from(n)}forChild(e,r){if(r.isLeaf)return Or.empty;let n=[];for(let a=0;a<this.members.length;a++){let i=this.members[a].forChild(e,r);i!=na&&(i instanceof Ul?n=n.concat(i.members):n.push(i))}return Ul.from(n)}eq(e){if(!(e instanceof Ul)||e.members.length!=this.members.length)return!1;for(let r=0;r<this.members.length;r++)if(!this.members[r].eq(e.members[r]))return!1;return!0}locals(e){let r,n=!0;for(let a=0;a<this.members.length;a++){let i=this.members[a].localsInner(e);if(i.length)if(!r)r=i;else{n&&(r=r.slice(),n=!1);for(let o=0;o<i.length;o++)r.push(i[o])}}return r?d_(n?r:r.sort(ju)):Yd}static from(e){switch(e.length){case 0:return na;case 1:return e[0];default:return new Ul(e.every(r=>r instanceof Or)?e:e.reduce((r,n)=>r.concat(n instanceof Or?n:n.members),[]))}}forEachSet(e){for(let r=0;r<this.members.length;r++)this.members[r].forEachSet(e)}}function PHe(t,e,r,n,a,i,o){let l=t.slice();for(let u=0,d=i;u<r.maps.length;u++){let h=0;r.maps[u].forEach((m,g,b,y)=>{let v=y-b-(g-m);for(let N=0;N<l.length;N+=3){let S=l[N+1];if(S<0||m>S+d-h)continue;let j=l[N]+d-h;g>=j?l[N+1]=m<=j?-2:-1:m>=d&&v&&(l[N]+=v,l[N+1]+=v)}h+=v}),d=r.maps[u].map(d,-1)}let c=!1;for(let u=0;u<l.length;u+=3)if(l[u+1]<0){if(l[u+1]==-2){c=!0,l[u+1]=-1;continue}let d=r.map(t[u]+i),h=d-a;if(h<0||h>
vendor: 26,715 bytes, line 1301
1301=n.content.size){c=!0;continue}let m=r.map(t[u+1]+i,-1),g=m-a,{index:b,offset:y}=n.content.findIndex(h),v=n.maybeChild(b);if(v&&y==h&&y+v.nodeSize==g){let N=l[u+2].mapInner(r,v,d+1,t[u]+i+1,o);N!=na?(l[u]=h,l[u+1]=g,l[u+2]=N):(l[u+1]=-2,c=!0)}else c=!0}if(c){let u=MHe(l,t,e,r,a,i,o),d=L2(u,n,0,o);e=d.local;for(let h=0;h<l.length;h+=3)l[h+1]<0&&(l.splice(h,3),h-=3);for(let h=0,m=0;h<d.children.length;h+=3){let g=d.children[h];for(;m<l.length&&l[m]<g;)m+=3;l.splice(m,0,d.children[h],d.children[h+1],d.children[h+2])}}return new Or(e.sort(ju),l)}function Dee(t,e){if(!e||!t.length)return t;let r=[];for(let n=0;n<t.length;n++){let a=t[n];r.push(new oa(a.from+e,a.to+e,a.type))}return r}function MHe(t,e,r,n,a,i,o){function l(c,u){for(let d=0;d<c.local.length;d++){let h=c.local[d].map(n,a,u);h?r.push(h):o.onRemove&&o.onRemove(c.local[d].spec)}for(let d=0;d<c.children.length;d+=3)l(c.children[d+2],c.children[d]+u+1)}for(let c=0;c<t.length;c+=3)t[c+1]==-1&&l(t[c+2],e[c]+i+1);return r}function Lee(t,e,r){if(e.isLeaf)return null;let n=r+e.nodeSize,a=null;for(let i=0,o;i<t.length;i++)(o=t[i])&&o.from>r&&o.to<n&&((a||(a=[])).push(o),t[i]=null);return a}function Bee(t){let e=[];for(let r=0;r<t.length;r++)t[r]!=null&&e.push(t[r]);return e}function L2(t,e,r,n){let a=[],i=!1;e.forEach((l,c)=>{let u=Lee(t,l,c+r);if(u){i=!0;let d=L2(u,l,r+c+1,n);d!=na&&a.push(c,c+l.nodeSize,d)}});let o=Dee(i?Bee(t):t,-r).sort(ju);for(let l=0;l<o.length;l++)o[l].type.valid(e,o[l])||(n.onRemove&&n.onRemove(o[l].spec),o.splice(l--,1));return o.length||a.length?new Or(o,a):na}function ju(t,e){return t.from-e.from||t.to-e.to}function d_(t){let e=t;for(let r=0;r<e.length-1;r++){let n=e[r];if(n.from!=n.to)for(let a=r+1;a<e.length;a++){let i=e[a];if(i.from==n.from){i.to!=n.to&&(e==t&&(e=t.slice()),e[a]=i.copy(i.from,n.to),uz(e,a+1,i.copy(n.to,i.to)));continue}else{i.from<n.to&&(e==t&&(e=t.slice()),e[r]=n.copy(n.from,i.from),uz(e,a,n.copy(i.from,n.to)));break}}}return e}function uz(t,e,r){for(;e<t.length&&ju(r,t[e])>0;)e++;t.splice(e,0,r)}function J7(t){let e=[];return t.someProp("decorations",r=>{let n=r(t.state);n&&n!=na&&e.push(n)}),t.cursorWrapper&&e.push(Or.create(t.state.doc,[t.cursorWrapper.deco])),Ul.from(e)}const THe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},RHe=La&&ec<=11;class IHe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class DHe{constructor(e,r){this.view=e,this.handleDOMChange=r,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new IHe,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(n=>{for(let a=0;a<n.length;a++)this.queue.push(n[a]);La&&ec<=11&&n.some(a=>a.type=="childList"&&a.removedNodes.length||a.type=="characterData"&&a.oldValue.length>a.target.nodeValue.length)?this.flushSoon():la&&e.composing&&n.some(a=>a.type=="childList"&&a.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),RHe&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,THe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let r=0;r<e.length;r++)this.queue.push(e[r]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(nz(this.view)){if(this.suppressingSelectionUpdates)return Uo(this.view);if(La&&ec<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Iu(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let r=new Set,n;for(let i=e.focusNode;i;i=rf(i))r.add(i);for(let i=e.anchorNode;i;i=rf(i))if(r.has(i)){n=i;break}let a=n&&this.view.docView.nearestDesc(n);if(a&&a.ignoreMutation({type:"selection",target:n.nodeType==3?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let r=this.pendingRecords();r.length&&(this.queue=[]);let n=e.domSelectionRange(),a=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&nz(e)&&!this.ignoreSelectionChange(n),i=-1,o=-1,l=!1,c=[];if(e.editable)for(let d=0;d<r.length;d++){let h=this.registerMutation(r[d],c);h&&(i=i<0?h.from:Math.min(h.from,i),o=o<0?h.to:Math.max(h.to,o),h.typeOver&&(l=!0))}if(c.some(d=>d.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46||zn&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&r.some(d=>d.type=="childList"&&d.removedNodes.length))){for(let d of c)if(d.nodeName=="BR"&&d.parentNode){let h=d.nextSibling;for(;h&&h.nodeType==1;){if(h.contentEditable=="false"){d.parentNode.removeChild(d);break}h=h.firstChild}}}else if(Rs&&c.length){let d=c.filter(h=>h.nodeName=="BR");if(d.length==2){let[h,m]=d;h.parentNode&&h.parentNode.parentNode==m.parentNode?m.remove():h.remove()}else{let{focusNode:h}=this.currentSelection;for(let m of d){let g=m.parentNode;g&&g.nodeName=="LI"&&(!h||HHe(e,h)!=g)&&m.remove()}}}let u=null;i<0&&a&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Hv(n)&&(u=a_(e))&&u.eq(St.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Uo(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||a)&&(i>-1&&(e.docView.markDirty(i,o),LHe(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,FHe(e,c)),this.handleDOMChange(i,o,l,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||Uo(e),this.currentSelection.set(n))}registerMutation(e,r){if(r.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(n==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!n||n.ignoreMutation(e))return null;if(e.type=="childList"){for(let d=0;d<e.addedNodes.length;d++){let h=e.addedNodes[d];r.push(h),h.nodeType==3&&(this.lastChangedTextNode=h)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let a=e.previousSibling,i=e.nextSibling;if(La&&ec<=11&&e.addedNodes.length)for(let d=0;d<e.addedNodes.length;d++){let{previousSibling:h,nextSibling:m}=e.addedNodes[d];(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(a=h),(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(i=m)}let o=a&&a.parentNode==e.target?Bn(a)+1:0,l=n.localPosFromDOM(e.target,o,-1),c=i&&i.parentNode==e.target?Bn(i):e.target.childNodes.length,u=n.localPosFromDOM(e.target,c,1);return{from:l,to:u}}else return e.type=="attributes"?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let dz=new WeakMap,hz=!1;function LHe(t){if(!dz.has(t)&&(dz.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Rs,hz)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),hz=!0}}function fz(t,e){let r=e.startContainer,n=e.startOffset,a=e.endContainer,i=e.endOffset,o=t.domAtPos(t.state.selection.anchor);return Iu(o.node,o.offset,a,i)&&([r,n,a,i]=[a,i,r,n]),{anchorNode:r,anchorOffset:n,focusNode:a,focusOffset:i}}function BHe(t,e){if(e.getComposedRanges){let a=e.getComposedRanges(t.root)[0];if(a)return fz(t,a)}let r;function n(a){a.preventDefault(),a.stopImmediatePropagation(),r=a.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0),r?fz(t,r):null}function HHe(t,e){for(let r=e.parentNode;r&&r!=t.dom;r=r.parentNode){let n=t.docView.nearestDesc(r,!0);if(n&&n.node.isBlock)return r}return null}function FHe(t,e){var r;let{focusNode:n,focusOffset:a}=t.domSelectionRange();for(let i of e)if(((r=i.parentNode)===null||r===void 0?void 0:r.nodeName)=="TR"){let o=i.nextSibling;for(;o&&o.nodeName!="TD"&&o.nodeName!="TH";)o=o.nextSibling;if(o){let l=o;for(;;){let c=l.firstChild;if(!c||c.nodeType!=1||c.contentEditable=="false"||/^(BR|IMG)$/.test(c.nodeName))break;l=c}l.insertBefore(i,l.firstChild),n==i&&t.domSelection().collapse(i,a)}else i.parentNode.removeChild(i)}}function zHe(t,e,r,n){let{node:a,fromOffset:i,toOffset:o,from:l,to:c}=t.docView.parseRange(e,r),u=t.domSelectionRange(),d,h=u.anchorNode;if(h&&t.dom.contains(h.nodeType==1?h:h.parentNode)&&(d=[{node:h,offset:u.anchorOffset}],Hv(u)||d.push({node:u.focusNode,offset:u.focusOffset})),zn&&t.input.lastKeyCode===8)for(let N=o;N>i;N--){let S=a.childNodes[N-1],j=S.pmViewDesc;if(S.nodeName=="BR"&&!j){o=N;break}if(!j||j.size)break}let m=t.state.doc,g=t.someProp("domParser")||pm.fromSchema(t.state.schema),b=m.resolve(l),y=null,v=g.parse(a,{topNode:b.parent,topMatch:b.parent.contentMatchAt(b.index()),topOpen:!0,from:i,to:o,preserveWhitespace:b.parent.type.whitespace=="pre"?"full":!0,findPositions:d,ruleFromNode:VHe(n),context:b});if(d&&d[0].pos!=null){let N=d[0].pos,S=d[1]&&d[1].pos;S==null&&(S=N),y={anchor:N+l,head:S+l}}return{doc:v,sel:y,from:l,to:c}}const VHe=t=>e=>{let r=e.pmViewDesc;if(r)return r.parseRule(t);if(e.nodeName=="BR"&&e.parentNode){if(la&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||la&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null},UHe=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function qHe(t,e,r,n,a){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let O=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,E=a_(t,O);if(E&&!t.state.selection.eq(E)){if(zn&&To&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",T=>T(t,Zc(13,"Enter"))))return;let P=t.state.tr.setSelection(E);O=="pointer"?P.setMeta("pointer",!0):O=="key"&&P.scrollIntoView(),i&&P.setMeta("composition",i),t.dispatch(P)}return}let o=t.state.doc.resolve(e),l=o.sharedDepth(r);e=o.before(l+1),r=t.state.doc.resolve(r).after(l+1);let c=t.state.selection,u=zHe(t,e,r,a),d=t.state.doc,h=d.slice(u.from,u.to),m,g;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(m=t.state.selection.to,g="end"):(m=t.state.selection.from,g="start"),t.input.lastKeyCode=null;let b=KHe(h.content,u.doc.content,u.from,m,g);if(b&&t.input.domChangeCount++,(nf&&t.input.lastIOSEnter>Date.now()-225||To)&&a.some(O=>O.nodeType==1&&!UHe.test(O.nodeName))&&(!b||b.endA>=b.endB)&&t.someProp("handleKeyDown",O=>O(t,Zc(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!b)if(n&&c instanceof gt&&!c.empty&&c.$head.sameParent(c.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))b={start:c.from,endA:c.to,endB:c.to};else{if(u.sel){let O=pz(t,t.state.doc,u.sel);if(O&&!O.eq(t.state.selection)){let E=t.state.tr.setSelection(O);i&&E.setMeta("composition",i),t.dispatch(E)}}return}t.state.selection.from<t.state.selection.to&&b.start==b.endB&&t.state.selection instanceof gt&&(b.start>t.state.selection.from&&b.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?b.start=t.state.selection.from:b.endA<t.state.selection.to&&b.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(b.endB+=t.state.selection.to-b.endA,b.endA=t.state.selection.to)),La&&ec<=11&&b.endB==b.start+1&&b.endA==b.start&&b.start>u.from&&u.doc.textBetween(b.start-u.from-1,b.start-u.from+1)==" Â "&&(b.start--,b.endA--,b.endB--);let y=u.doc.resolveNoCache(b.start-u.from),v=u.doc.resolveNoCache(b.endB-u.from),N=d.resolve(b.start),S=y.sameParent(v)&&y.parent.inlineContent&&N.end()>=b.endA;if((nf&&t.input.lastIOSEnter>Date.now()-225&&(!S||a.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!S&&y.pos<u.doc.content.size&&(!y.sameParent(v)||!y.parent.inlineContent)&&y.pos<v.pos&&!/\S/.test(u.doc.textBetween(y.pos,v.pos,"","")))&&t.someProp("handleKeyDown",O=>O(t,Zc(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>b.start&&GHe(d,b.start,b.endA,y,v)&&t.someProp("handleKeyDown",O=>O(t,Zc(8,"Backspace")))){To&&zn&&t.domObserver.suppressSelectionUpdates();return}zn&&b.endB==b.start&&(t.input.lastChromeDelete=Date.now()),To&&!S&&y.start()!=v.start()&&v.parentOffset==0&&y.depth==v.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==b.endA&&(b.endB-=2,v=u.doc.resolveNoCache(b.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(O){return O(t,Zc(13,"Enter"))})},20));let j=b.start,$=b.endA,C=O=>{let E=O||t.state.tr.replace(j,$,u.doc.slice(b.start-u.from,b.endB-u.from));if(u.sel){let P=pz(t,E.doc,u.sel);P&&!(zn&&t.composing&&P.empty&&(b.start!=b.endB||t.input.lastChromeDelete<Date.now()-100)&&(P.head==j||P.head==E.mapping.map($)-1)||La&&P.empty&&P.head==j)&&E.setSelection(P)}return i&&E.setMeta("composition",i),E.scrollIntoView()},_;if(S)if(y.pos==v.pos){La&&ec<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Uo(t),20));let O=C(t.state.tr.delete(j,$)),E=d.resolve(b.start).marksAcross(d.resolve(b.endA));E&&O.ensureMarks(E),t.dispatch(O)}else if(b.endA==b.endB&&(_=WHe(y.parent.content.cut(y.parentOffset,v.parentOffset),N.parent.content.cut(N.parentOffset,b.endA-N.start())))){let O=C(t.state.tr);_.type=="add"?O.addMark(j,$,_.mark):O.removeMark(j,$,_.mark),t.dispatch(O)}else if(y.parent.child(y.index()).isText&&y.index()==v.index()-(v.textOffset?0:1)){let O=y.parent.textBetween(y.parentOffset,v.parentOffset),E=()=>C(t.state.tr.insertText(O,j,$));t.someProp("handleTextInput",P=>P(t,j,$,O,E))||t.dispatch(E())}else t.dispatch(C());else t.dispatch(C())}function pz(t,e,r){return Math.max(r.anchor,r.head)>e.content.size?null:s_(t,e.resolve(r.anchor),e.resolve(r.head))}function WHe(t,e){let r=t.firstChild.marks,n=e.firstChild.marks,a=r,i=n,o,l,c;for(let d=0;d<n.length;d++)a=n[d].removeFromSet(a);for(let d=0;d<r.length;d++)i=r[d].removeFromSet(i);if(a.length==1&&i.length==0)l=a[0],o="add",c=d=>d.mark(l.addToSet(d.marks));else if(a.length==0&&i.length==1)l=i[0],o="remove",c=d=>d.mark(l.removeFromSet(d.marks));else return null;let u=[];for(let d=0;d<e.childCount;d++)u.push(c(e.child(d)));if(Ee.from(u).eq(t))return{mark:l,type:o}}function GHe(t,e,r,n,a){if(r-e<=a.pos-n.pos||Q7(n,!0,!1)<a.pos)return!1;let i=t.resolve(e);if(!n.parent.isTextblock){let l=i.nodeAfter;return l!=null&&r==e+l.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let o=t.resolve(Q7(i,!0,!0));return!o.parent.isTextblock||o.pos>r||Q7(o,!0,!1)<r?!1:n.parent.content.cut(n.parentOffset).eq(o.parent.content)}function Q7(t,e,r){let n=t.depth,a=e?t.end():t.pos;for(;n>0&&(e||t.indexAfter(n)==t.node(n).childCount);)n--,a++,e=!1;if(r){let i=t.node(n).maybeChild(t.indexAfter(n));for(;i&&!i.isLeaf;)i=i.firstChild,a++}return a}function KHe(t,e,r,n,a){let i=t.findDiffStart(e,r),o=r+t.size,l=r+e.size;if(i==null)return null;let{a:c,b:u}=t.findDiffEnd(e,o,l);if(a=="end"){let d=Math.max(0,i-Math.min(c,u));n-=c+d-i}if(c<i&&o<l){let d=n<=i&&n>=c?i-n:0;i-=d,u=i+(u-c),c=i}else if(u<i){let d=n<=i&&n>=u?i-n:0;i-=d,c=i+(c-u),u=i}return{start:i,endA:c,endB:u}}class Hee{constructor(e,r){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new uHe,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=r,this.state=r.state,this.directPlugins=r.plugins||[],this.directPlugins.forEach(yz),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=bz(this),gz(this),this.nodeViews=xz(this),this.docView=JF(this.state.doc,mz(this),J7(this),this.dom,this),this.domObserver=new DHe(this,(n,a,i,o)=>qHe(this,n,a,i,o)),this.domObserver.start(),dHe(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let r in e)this._props[r]=e[r];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Nk(this);let r=this._props;this._props=e,e.plugins&&(e.plugins.forEach(yz),this.directPlugins=e.plugins),this.updateStateInner(e.state,r)}setProps(e){let r={};for(let n in this._props)r[n]=this._props[n];r.state=this.state;for(let n in e)r[n]=e[n];this.update(r)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,r){var n;let a=this.state,i=!1,o=!1;e.storedMarks&&this.composing&&(Mee(this),o=!0),this.state=e;let l=a.plugins!=e.plugins||this._props.plugins!=r.plugins;if(l||this._props.plugins!=r.plugins||this._props.nodeViews!=r.nodeViews){let g=xz(this);XHe(g,this.nodeViews)&&(this.nodeViews=g,i=!0)}(l||r.handleDOMEvents!=this._props.handleDOMEvents)&&Nk(this),this.editable=bz(this),gz(this);let c=J7(this),u=mz(this),d=a.plugins!=e.plugins&&!a.doc.eq(e.doc)?"reset":e.scrollToSelection>a.scrollToSelection?"to selection":"preserve",h=i||!this.docView.matchesNode(e.doc,u,c);(h||!e.selection.eq(a.selection))&&(o=!0);let m=d=="preserve"&&o&&this.dom.style.overflowAnchor==null&&SBe(this);if(o){this.domObserver.stop();let g=h&&(La||zn)&&!this.composing&&!a.selection.empty&&!e.selection.empty&&YHe(a.selection,e.selection);if(h){let y=zn?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=CHe(this)),(i||!this.docView.update(e.doc,u,c,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=JF(e.doc,u,c,this.dom,this)),y&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(g=!0)}let b=this.input.mouseDown;g||!(b&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&YBe(this)&&b.delaySelUpdate())?Uo(this,g):(yee(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(a),!((n=this.dragging)===null||n===void 0)&&n.node&&!a.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,a),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():m&&CBe(m)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",r=>r(this)))if(this.state.selection instanceof bt){let r=this.docView.domAfterPos(this.state.selection.from);r.nodeType==1&&WF(this,r.getBoundingClientRect(),e)}else WF(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let r=0;r<this.directPlugins.length;r++){let n=this.directPlugins[r];n.spec.view&&this.pluginViews.push(n.spec.view(this))}for(let r=0;r<this.state.plugins.length;r++){let n=this.state.plugins[r];n.spec.view&&this.pluginViews.push(n.spec.view(this))}}else for(let r=0;r<this.pluginViews.length;r++){let n=this.pluginViews[r];n.update&&n.update(this,e)}}updateDraggedNode(e,r){let n=e.node,a=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)a=n.from;else{let i=n.from+(this.state.doc.content.size-r.doc.content.size);(i>0&&i<this.state.doc.content.size&&this.state.doc.nodeAt(i))==n.node&&(a=i)}this.dragging=new Ree(e.slice,e.move,a<0?void 0:bt.create(this.state.doc,a))}someProp(e,r){let n=this._props&&this._props[e],a;if(n!=null&&(a=r?r(n):n))return a;for(let o=0;o<this.directPlugins.length;o++){let l=this.directPlugins[o].props[e];if(l!=null&&(a=r?r(l):l))return a}let i=this.state.plugins;if(i)for(let o=0;o<i.length;o++){let l=i[o].props[e];if(l!=null&&(a=r?r(l):l))return a}}hasFocus(){if(La){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&$Be(this.dom),Uo(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let r=this.dom.parentNode;r;r=r.parentNode)if(r.nodeType==9||r.nodeType==11&&r.host)return r.getSelection||(Object.getPrototypeOf(r).getSelection=()=>r.ownerDocument.getSelection()),this._root=r}return e||document}updateRoot(){this._root=null}posAtCoords(e){return PBe(this,e)}coordsAtPos(e,r=1){return dee(this,e,r)}domAtPos(e,r=0){return this.docView.domFromPos(e,r)}nodeDOM(e){let r=this.docView.descAt(e);return r?r.nodeDOM:null}posAtDOM(e,r,n=-1){let a=this.docView.posFromDOM(e,r,n);if(a==null)throw new RangeError("DOM position not inside the editor");return a}endOfTextblock(e,r){return DBe(this,r||this.state,e)}pasteHTML(e,r){return E0(this,"",e,!1,r||new ClipboardEvent("paste"))}pasteText(e,r){return E0(this,e,null,!0,r||new ClipboardEvent("paste"))}serializeForClipboard(e){return i_(this,e)}destroy(){this.docView&&(hHe(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],J7(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,mBe())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return pHe(this,e)}domSelectionRange(){let e=this.domSelection();return e?la&&this.root.nodeType===11&&vBe(this.dom.ownerDocument)==this.dom&&BHe(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}Hee.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function mz(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",r=>{if(typeof r=="function"&&(r=r(t.state)),r)for(let n in r)n=="class"?e.class+=" "+r[n]:n=="style"?e.style=(e.style?e.style+";":"")+r[n]:!e[n]&&n!="contenteditable"&&n!="nodeName"&&(e[n]=String(r[n]))}),e.translate||(e.translate="no"),[oa.node(0,t.state.doc.content.size,e)]}function gz(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:oa.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function bz(t){return!t.someProp("editable",e=>e(t.state)===!1)}function YHe(t,e){let r=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(r)!=e.$anchor.start(r)}function xz(t){let e=Object.create(null);function r(n){for(let a in n)Object.prototype.hasOwnProperty.call(e,a)||(e[a]=n[a])}return t.someProp("nodeViews",r),t.someProp("markViews",r),e}function XHe(t,e){let r=0,n=0;for(let a in t){if(t[a]!=e[a])return!0;r++}for(let a in e)n++;return r!=n}function yz(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var cc={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},B2={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},JHe=typeof navigator<"u"&&/Mac/.test(navigator.platform),QHe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Hn=0;Hn<10;Hn++)cc[48+Hn]=cc[96+Hn]=String(Hn);for(var Hn=1;Hn<=24;Hn++)cc[Hn+111]="F"+Hn;for(var Hn=65;Hn<=90;Hn++)cc[Hn]=String.fromCharCode(Hn+32),B2[Hn]=String.fromCharCode(Hn);for(var Z7 in cc)B2.hasOwnProperty(Z7)||(B2[Z7]=cc[Z7]);function ZHe(t){var e=JHe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||QHe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",r=!e&&t.key||(t.shiftKey?B2:cc)[t.keyCode]||t.key||"Unidentified";return r=="Esc"&&(r="Escape"),r=="Del"&&(r="Delete"),r=="Left"&&(r="ArrowLeft"),r=="Up"&&(r="ArrowUp"),r=="Right"&&(r="ArrowRight"),r=="Down"&&(r="ArrowDown"),r}const eFe=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),tFe=typeof navigator<"u"&&/Win/.test(navigator.platform);function rFe(t){let e=t.split(/-(?!$)/),r=e[e.length-1];r=="Space"&&(r=" ");let n,a,i,o;for(let l=0;l<e.length-1;l++){let c=e[l];
vendor: 73,234 bytes, lines 1301-1381
1301if(/^(cmd|meta|m)$/i.test(c))o=!0;else if(/^a(lt)?$/i.test(c))n=!0;else if(/^(c|ctrl|control)$/i.test(c))a=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))eFe?o=!0:a=!0;else throw new Error("Unrecognized modifier name: "+c)}return n&&(r="Alt-"+r),a&&(r="Ctrl-"+r),o&&(r="Meta-"+r),i&&(r="Shift-"+r),r}function nFe(t){let e=Object.create(null);for(let r in t)e[rFe(r)]=t[r];return e}function e9(t,e,r=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),r&&e.shiftKey&&(t="Shift-"+t),t}function aFe(t){return new on({props:{handleKeyDown:h_(t)}})}function h_(t){let e=nFe(t);return function(r,n){let a=ZHe(n),i,o=e[e9(a,n)];if(o&&o(r.state,r.dispatch,r))return!0;if(a.length==1&&a!=" "){if(n.shiftKey){let l=e[e9(a,n,!1)];if(l&&l(r.state,r.dispatch,r))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(tFe&&n.ctrlKey&&n.altKey)&&(i=cc[n.keyCode])&&i!=a){let l=e[e9(i,n)];if(l&&l(r.state,r.dispatch,r))return!0}}return!1}}const f_=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Fee(t,e){let{$cursor:r}=t.selection;return!r||(e?!e.endOfTextblock("backward",t):r.parentOffset>0)?null:r}const zee=(t,e,r)=>{let n=Fee(t,r);if(!n)return!1;let a=p_(n);if(!a){let o=n.blockRange(),l=o&&Mf(o);return l==null?!1:(e&&e(t.tr.lift(o,l).scrollIntoView()),!0)}let i=a.nodeBefore;if(Jee(t,a,e,-1))return!0;if(n.parent.content.size==0&&(af(i,"end")||bt.isSelectable(i)))for(let o=n.depth;;o--){let l=Lv(t.doc,n.before(o),n.after(o),Ge.empty);if(l&&l.slice.size<l.to-l.from){if(e){let c=t.tr.step(l);c.setSelection(af(i,"end")?St.findFrom(c.doc.resolve(c.mapping.map(a.pos,-1)),-1):bt.create(c.doc,a.pos-i.nodeSize)),e(c.scrollIntoView())}return!0}if(o==1||n.node(o-1).childCount>1)break}return i.isAtom&&a.depth==n.depth-1?(e&&e(t.tr.delete(a.pos-i.nodeSize,a.pos).scrollIntoView()),!0):!1},sFe=(t,e,r)=>{let n=Fee(t,r);if(!n)return!1;let a=p_(n);return a?Vee(t,a,e):!1},iFe=(t,e,r)=>{let n=qee(t,r);if(!n)return!1;let a=m_(n);return a?Vee(t,a,e):!1};function Vee(t,e,r){let n=e.nodeBefore,a=n,i=e.pos-1;for(;!a.isTextblock;i--){if(a.type.spec.isolating)return!1;let d=a.lastChild;if(!d)return!1;a=d}let o=e.nodeAfter,l=o,c=e.pos+1;for(;!l.isTextblock;c++){if(l.type.spec.isolating)return!1;let d=l.firstChild;if(!d)return!1;l=d}let u=Lv(t.doc,i,c,Ge.empty);if(!u||u.from!=i||u instanceof rn&&u.slice.size>=c-i)return!1;if(r){let d=t.tr.step(u);d.setSelection(gt.create(d.doc,i)),r(d.scrollIntoView())}return!0}function af(t,e,r=!1){for(let n=t;n;n=e=="start"?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&n.childCount!=1)return!1}return!1}const Uee=(t,e,r)=>{let{$head:n,empty:a}=t.selection,i=n;if(!a)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",t):n.parentOffset>0)return!1;i=p_(n)}let o=i&&i.nodeBefore;return!o||!bt.isSelectable(o)?!1:(e&&e(t.tr.setSelection(bt.create(t.doc,i.pos-o.nodeSize)).scrollIntoView()),!0)};function p_(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function qee(t,e){let{$cursor:r}=t.selection;return!r||(e?!e.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)?null:r}const Wee=(t,e,r)=>{let n=qee(t,r);if(!n)return!1;let a=m_(n);if(!a)return!1;let i=a.nodeAfter;if(Jee(t,a,e,1))return!0;if(n.parent.content.size==0&&(af(i,"start")||bt.isSelectable(i))){let o=Lv(t.doc,n.before(),n.after(),Ge.empty);if(o&&o.slice.size<o.to-o.from){if(e){let l=t.tr.step(o);l.setSelection(af(i,"start")?St.findFrom(l.doc.resolve(l.mapping.map(a.pos)),1):bt.create(l.doc,l.mapping.map(a.pos))),e(l.scrollIntoView())}return!0}}return i.isAtom&&a.depth==n.depth-1?(e&&e(t.tr.delete(a.pos,a.pos+i.nodeSize).scrollIntoView()),!0):!1},Gee=(t,e,r)=>{let{$head:n,empty:a}=t.selection,i=n;if(!a)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)return!1;i=m_(n)}let o=i&&i.nodeAfter;return!o||!bt.isSelectable(o)?!1:(e&&e(t.tr.setSelection(bt.create(t.doc,i.pos)).scrollIntoView()),!0)};function m_(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let r=t.node(e);if(t.index(e)+1<r.childCount)return t.doc.resolve(t.after(e+1));if(r.type.spec.isolating)break}return null}const oFe=(t,e)=>{let r=t.selection,n=r instanceof bt,a;if(n){if(r.node.isTextblock||!yc(t.doc,r.from))return!1;a=r.from}else if(a=Dv(t.doc,r.from,-1),a==null)return!1;if(e){let i=t.tr.join(a);n&&i.setSelection(bt.create(i.doc,a-t.doc.resolve(a).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},lFe=(t,e)=>{let r=t.selection,n;if(r instanceof bt){if(r.node.isTextblock||!yc(t.doc,r.to))return!1;n=r.to}else if(n=Dv(t.doc,r.to,1),n==null)return!1;return e&&e(t.tr.join(n).scrollIntoView()),!0},cFe=(t,e)=>{let{$from:r,$to:n}=t.selection,a=r.blockRange(n),i=a&&Mf(a);return i==null?!1:(e&&e(t.tr.lift(a,i).scrollIntoView()),!0)},Kee=(t,e)=>{let{$head:r,$anchor:n}=t.selection;return!r.parent.type.spec.code||!r.sameParent(n)?!1:(e&&e(t.tr.insertText(` 1302`).scrollIntoView()),!0)};function g_(t){for(let e=0;e<t.edgeCount;e++){let{type:r}=t.edge(e);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}const uFe=(t,e)=>{let{$head:r,$anchor:n}=t.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let a=r.node(-1),i=r.indexAfter(-1),o=g_(a.contentMatchAt(i));if(!o||!a.canReplaceWith(i,i,o))return!1;if(e){let l=r.after(),c=t.tr.replaceWith(l,l,o.createAndFill());c.setSelection(St.near(c.doc.resolve(l),1)),e(c.scrollIntoView())}return!0},Yee=(t,e)=>{let r=t.selection,{$from:n,$to:a}=r;if(r instanceof ns||n.parent.inlineContent||a.parent.inlineContent)return!1;let i=g_(a.parent.contentMatchAt(a.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let o=(!n.parentOffset&&a.index()<a.parent.childCount?n:a).pos,l=t.tr.insert(o,i.createAndFill());l.setSelection(gt.create(l.doc,o+1)),e(l.scrollIntoView())}return!0},Xee=(t,e)=>{let{$cursor:r}=t.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if(Vo(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let n=r.blockRange(),a=n&&Mf(n);return a==null?!1:(e&&e(t.tr.lift(n,a).scrollIntoView()),!0)};function dFe(t){return(e,r)=>{let{$from:n,$to:a}=e.selection;if(e.selection instanceof bt&&e.selection.node.isBlock)return!n.parentOffset||!Vo(e.doc,n.pos)?!1:(r&&r(e.tr.split(n.pos).scrollIntoView()),!0);if(!n.depth)return!1;let i=[],o,l,c=!1,u=!1;for(let g=n.depth;;g--)if(n.node(g).isBlock){c=n.end(g)==n.pos+(n.depth-g),u=n.start(g)==n.pos-(n.depth-g),l=g_(n.node(g-1).contentMatchAt(n.indexAfter(g-1))),i.unshift(c&&l?{type:l}:null),o=g;break}else{if(g==1)return!1;i.unshift(null)}let d=e.tr;(e.selection instanceof gt||e.selection instanceof ns)&&d.deleteSelection();let h=d.mapping.map(n.pos),m=Vo(d.doc,h,i.length,i);if(m||(i[0]=l?{type:l}:null,m=Vo(d.doc,h,i.length,i)),!m)return!1;if(d.split(h,i.length,i),!c&&u&&n.node(o).type!=l){let g=d.mapping.map(n.before(o)),b=d.doc.resolve(g);l&&n.node(o-1).canReplaceWith(b.index(),b.index()+1,l)&&d.setNodeMarkup(d.mapping.map(n.before(o)),l)}return r&&r(d.scrollIntoView()),!0}}const hFe=dFe(),fFe=(t,e)=>{let{$from:r,to:n}=t.selection,a,i=r.sharedDepth(n);return i==0?!1:(a=r.before(i),e&&e(t.tr.setSelection(bt.create(t.doc,a))),!0)};function pFe(t,e,r){let n=e.nodeBefore,a=e.nodeAfter,i=e.index();return!n||!a||!n.type.compatibleContent(a.type)?!1:!n.content.size&&e.parent.canReplace(i-1,i)?(r&&r(t.tr.delete(e.pos-n.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(a.isTextblock||yc(t.doc,e.pos))?!1:(r&&r(t.tr.join(e.pos).scrollIntoView()),!0)}function Jee(t,e,r,n){let a=e.nodeBefore,i=e.nodeAfter,o,l,c=a.type.spec.isolating||i.type.spec.isolating;if(!c&&pFe(t,e,r))return!0;let u=!c&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(o=(l=a.contentMatchAt(a.childCount)).findWrapping(i.type))&&l.matchType(o[0]||i.type).validEnd){if(r){let g=e.pos+i.nodeSize,b=Ee.empty;for(let N=o.length-1;N>=0;N--)b=Ee.from(o[N].create(null,b));b=Ee.from(a.copy(b));let y=t.tr.step(new kn(e.pos-1,g,e.pos,g,new Ge(b,1,0),o.length,!0)),v=y.doc.resolve(g+2*o.length);v.nodeAfter&&v.nodeAfter.type==a.type&&yc(y.doc,v.pos)&&y.join(v.pos),r(y.scrollIntoView())}return!0}let d=i.type.spec.isolating||n>0&&c?null:St.findFrom(e,1),h=d&&d.$from.blockRange(d.$to),m=h&&Mf(h);if(m!=null&&m>=e.depth)return r&&r(t.tr.lift(h,m).scrollIntoView()),!0;if(u&&af(i,"start",!0)&&af(a,"end")){let g=a,b=[];for(;b.push(g),!g.isTextblock;)g=g.lastChild;let y=i,v=1;for(;!y.isTextblock;y=y.firstChild)v++;if(g.canReplace(g.childCount,g.childCount,y.content)){if(r){let N=Ee.empty;for(let j=b.length-1;j>=0;j--)N=Ee.from(b[j].copy(N));let S=t.tr.step(new kn(e.pos-b.length,e.pos+i.nodeSize,e.pos+v,e.pos+i.nodeSize-v,new Ge(N,b.length,0),0,!0));r(S.scrollIntoView())}return!0}}return!1}function Qee(t){return function(e,r){let n=e.selection,a=t<0?n.$from:n.$to,i=a.depth;for(;a.node(i).isInline;){if(!i)return!1;i--}return a.node(i).isTextblock?(r&&r(e.tr.setSelection(gt.create(e.doc,t<0?a.start(i):a.end(i)))),!0):!1}}const mFe=Qee(-1),gFe=Qee(1);function bFe(t,e=null){return function(r,n){let{$from:a,$to:i}=r.selection,o=a.blockRange(i),l=o&&e_(o,t,e);return l?(n&&n(r.tr.wrap(o,l).scrollIntoView()),!0):!1}}function vz(t,e=null){return function(r,n){let a=!1;for(let i=0;i<r.selection.ranges.length&&!a;i++){let{$from:{pos:o},$to:{pos:l}}=r.selection.ranges[i];r.doc.nodesBetween(o,l,(c,u)=>{if(a)return!1;if(!(!c.isTextblock||c.hasMarkup(t,e)))if(c.type==t)a=!0;else{let d=r.doc.resolve(u),h=d.index();a=d.parent.canReplaceWith(h,h+1,t)}})}if(!a)return!1;if(n){let i=r.tr;for(let o=0;o<r.selection.ranges.length;o++){let{$from:{pos:l},$to:{pos:c}}=r.selection.ranges[o];i.setBlockType(l,c,t,e)}n(i.scrollIntoView())}return!0}}function b_(...t){return function(e,r,n){for(let a=0;a<t.length;a++)if(t[a](e,r,n))return!0;return!1}}b_(f_,zee,Uee);b_(f_,Wee,Gee);b_(Kee,Yee,Xee,hFe);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function xFe(t,e=null){return function(r,n){let{$from:a,$to:i}=r.selection,o=a.blockRange(i);if(!o)return!1;let l=n?r.tr:null;return yFe(l,o,t,e)?(n&&n(l.scrollIntoView()),!0):!1}}function yFe(t,e,r,n=null){let a=!1,i=e,o=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(r)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let c=o.resolve(e.start-2);i=new P2(c,c,e.depth),e.endIndex<e.parent.childCount&&(e=new P2(e.$from,o.resolve(e.$to.end(e.depth)),e.depth)),a=!0}let l=e_(i,r,n,e);return l?(t&&vFe(t,e,l,a,r),!0):!1}function vFe(t,e,r,n,a){let i=Ee.empty;for(let d=r.length-1;d>=0;d--)i=Ee.from(r[d].type.create(r[d].attrs,i));t.step(new kn(e.start-(n?2:0),e.end,e.start,e.end,new Ge(i,0,0),r.length,!0));let o=0;for(let d=0;d<r.length;d++)r[d].type==a&&(o=d+1);let l=r.length-o,c=e.start+r.length-(n?2:0),u=e.parent;for(let d=e.startIndex,h=e.endIndex,m=!0;d<h;d++,m=!1)!m&&Vo(t.doc,c,l)&&(t.split(c,l),c+=2*l),c+=u.child(d).nodeSize;return t}function wFe(t){return function(e,r){let{$from:n,$to:a}=e.selection,i=n.blockRange(a,o=>o.childCount>0&&o.firstChild.type==t);return i?r?n.node(i.depth-1).type==t?NFe(e,r,t,i):jFe(e,r,i):!0:!1}}function NFe(t,e,r,n){let a=t.tr,i=n.end,o=n.$to.end(n.depth);i<o&&(a.step(new kn(i-1,o,i,o,new Ge(Ee.from(r.create(null,n.parent.copy())),1,0),1,!0)),n=new P2(a.doc.resolve(n.$from.pos),a.doc.resolve(o),n.depth));const l=Mf(n);if(l==null)return!1;a.lift(n,l);let c=a.doc.resolve(a.mapping.map(i,-1)-1);return yc(a.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&a.join(c.pos),e(a.scrollIntoView()),!0}function jFe(t,e,r){let n=t.tr,a=r.parent;for(let g=r.end,b=r.endIndex-1,y=r.startIndex;b>y;b--)g-=a.child(b).nodeSize,n.delete(g-1,g+1);let i=n.doc.resolve(r.start),o=i.nodeAfter;if(n.mapping.map(r.end)!=r.start+i.nodeAfter.nodeSize)return!1;let l=r.startIndex==0,c=r.endIndex==a.childCount,u=i.node(-1),d=i.index(-1);if(!u.canReplace(d+(l?0:1),d+1,o.content.append(c?Ee.empty:Ee.from(a))))return!1;let h=i.pos,m=h+o.nodeSize;return n.step(new kn(h-(l?1:0),m+(c?1:0),h+1,m-1,new Ge((l?Ee.empty:Ee.from(a.copy(Ee.empty))).append(c?Ee.empty:Ee.from(a.copy(Ee.empty))),l?0:1,c?0:1),l?0:1)),e(n.scrollIntoView()),!0}function kFe(t){return function(e,r){let{$from:n,$to:a}=e.selection,i=n.blockRange(a,u=>u.childCount>0&&u.firstChild.type==t);if(!i)return!1;let o=i.startIndex;if(o==0)return!1;let l=i.parent,c=l.child(o-1);if(c.type!=t)return!1;if(r){let u=c.lastChild&&c.lastChild.type==l.type,d=Ee.from(u?t.create():null),h=new Ge(Ee.from(t.create(null,Ee.from(l.type.create(null,d)))),u?3:1,0),m=i.start,g=i.end;r(e.tr.step(new kn(m-(u?3:1),g,m,g,h,1,!0)).scrollIntoView())}return!0}}function zv(t){const{state:e,transaction:r}=t;let{selection:n}=r,{doc:a}=r,{storedMarks:i}=r;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return n},get doc(){return a},get tr(){return n=r.selection,a=r.doc,i=r.storedMarks,r}}}class Vv{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:r,state:n}=this,{view:a}=r,{tr:i}=n,o=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([l,c])=>[l,(...d)=>{const h=c(...d)(o);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(i),h}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,r=!0){const{rawCommands:n,editor:a,state:i}=this,{view:o}=a,l=[],c=!!e,u=e||i.tr,d=()=>(!c&&r&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(u),l.every(m=>m===!0)),h={...Object.fromEntries(Object.entries(n).map(([m,g])=>[m,(...y)=>{const v=this.buildProps(u,r),N=g(...y)(v);return l.push(N),h}])),run:d};return h}createCan(e){const{rawCommands:r,state:n}=this,a=!1,i=e||n.tr,o=this.buildProps(i,a);return{...Object.fromEntries(Object.entries(r).map(([c,u])=>[c,(...d)=>u(...d)({...o,dispatch:void 0})])),chain:()=>this.createChain(i,a)}}buildProps(e,r=!0){const{rawCommands:n,editor:a,state:i}=this,{view:o}=a,l={tr:e,editor:a,view:o,state:zv({state:i,transaction:e}),dispatch:r?()=>{}:void 0,chain:()=>this.createChain(e,r),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...d)=>u(...d)(l)]))}};return l}}class SFe{constructor(){this.callbacks={}}on(e,r){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r),this}emit(e,...r){const n=this.callbacks[e];return n&&n.forEach(a=>a.apply(this,r)),this}off(e,r){const n=this.callbacks[e];return n&&(r?this.callbacks[e]=n.filter(a=>a!==r):delete this.callbacks[e]),this}once(e,r){const n=(...a)=>{this.off(e,n),r.apply(this,a)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}}function at(t,e,r){return t.config[e]===void 0&&t.parent?at(t.parent,e,r):typeof t.config[e]=="function"?t.config[e].bind({...r,parent:t.parent?at(t.parent,e,r):null}):t.config[e]}function Uv(t){const e=t.filter(a=>a.type==="extension"),r=t.filter(a=>a.type==="node"),n=t.filter(a=>a.type==="mark");return{baseExtensions:e,nodeExtensions:r,markExtensions:n}}function Zee(t){const e=[],{nodeExtensions:r,markExtensions:n}=Uv(t),a=[...r,...n],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(o=>{const l={name:o.name,options:o.options,storage:o.storage,extensions:a},c=at(o,"addGlobalAttributes",l);if(!c)return;c().forEach(d=>{d.types.forEach(h=>{Object.entries(d.attributes).forEach(([m,g])=>{e.push({type:h,name:m,attribute:{...i,...g}})})})})}),a.forEach(o=>{const l={name:o.name,options:o.options,storage:o.storage},c=at(o,"addAttributes",l);if(!c)return;const u=c();Object.entries(u).forEach(([d,h])=>{const m={...i,...h};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:o.name,name:d,attribute:m})})}),e}function Cn(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Tr(...t){return t.filter(e=>!!e).reduce((e,r)=>{const n={...e};return Object.entries(r).forEach(([a,i])=>{if(!n[a]){n[a]=i;return}if(a==="class"){const l=i?String(i).split(" "):[],c=n[a]?n[a].split(" "):[],u=l.filter(d=>!c.includes(d));n[a]=[...c,...u].join(" ")}else if(a==="style"){const l=i?i.split(";").map(d=>d.trim()).filter(Boolean):[],c=n[a]?n[a].split(";").map(d=>d.trim()).filter(Boolean):[],u=new Map;c.forEach(d=>{const[h,m]=d.split(":").map(g=>g.trim());u.set(h,m)}),l.forEach(d=>{const[h,m]=d.split(":").map(g=>g.trim());u.set(h,m)}),n[a]=Array.from(u.entries()).map(([d,h])=>`${d}: ${h}`).join("; ")}else n[a]=i}),n},{})}function jk(t,e){return e.filter(r=>r.type===t.type.name).filter(r=>r.attribute.rendered).map(r=>r.attribute.renderHTML?r.attribute.renderHTML(t.attrs)||{}:{[r.name]:t.attrs[r.name]}).reduce((r,n)=>Tr(r,n),{})}function ete(t){return typeof t=="function"}function Tt(t,e=void 0,...r){return ete(t)?e?t.bind(e)(...r):t(...r):t}function CFe(t={}){return Object.keys(t).length===0&&t.constructor===Object}function $Fe(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function wz(t,e){return"style"in t?t:{...t,getAttrs:r=>{const n=t.getAttrs?t.getAttrs(r):t.attrs;if(n===!1)return!1;const a=e.reduce((i,o)=>{const l=o.attribute.parseHTML?o.attribute.parseHTML(r):$Fe(r.getAttribute(o.name));return l==null?i:{...i,[o.name]:l}},{});return{...n,...a}}}}function Nz(t){return Object.fromEntries(Object.entries(t).filter(([e,r])=>e==="attrs"&&CFe(r)?!1:r!=null))}function _Fe(t,e){var r;const n=Zee(t),{nodeExtensions:a,markExtensions:i}=Uv(t),o=(r=a.find(u=>at(u,"topNode")))===null||r===void 0?void 0:r.name,l=Object.fromEntries(a.map(u=>{const d=n.filter(N=>N.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:e},m=t.reduce((N,S)=>{const j=at(S,"extendNodeSchema",h);return{...N,...j?j(u):{}}},{}),g=Nz({...m,content:Tt(at(u,"content",h)),marks:Tt(at(u,"marks",h)),group:Tt(at(u,"group",h)),inline:Tt(at(u,"inline",h)),atom:Tt(at(u,"atom",h)),selectable:Tt(at(u,"selectable",h)),draggable:Tt(at(u,"draggable",h)),code:Tt(at(u,"code",h)),whitespace:Tt(at(u,"whitespace",h)),linebreakReplacement:Tt(at(u,"linebreakReplacement",h)),defining:Tt(at(u,"defining",h)),isolating:Tt(at(u,"isolating",h)),attrs:Object.fromEntries(d.map(N=>{var S;return[N.name,{default:(S=N==null?void 0:N.attribute)===null||S===void 0?void 0:S.default}]}))}),b=Tt(at(u,"parseHTML",h));b&&(g.parseDOM=b.map(N=>wz(N,d)));const y=at(u,"renderHTML",h);y&&(g.toDOM=N=>y({node:N,HTMLAttributes:jk(N,d)}));const v=at(u,"renderText",h);return v&&(g.toText=v),[u.name,g]})),c=Object.fromEntries(i.map(u=>{const d=n.filter(v=>v.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:e},m=t.reduce((v,N)=>{const S=at(N,"extendMarkSchema",h);return{...v,...S?S(u):{}}},{}),g=Nz({...m,inclusive:Tt(at(u,"inclusive",h)),excludes:Tt(at(u,"excludes",h)),group:Tt(at(u,"group",h)),spanning:Tt(at(u,"spanning",h)),code:Tt(at(u,"code",h)),attrs:Object.fromEntries(d.map(v=>{var N;return[v.name,{default:(N=v==null?void 0:v.attribute)===null||N===void 0?void 0:N.default}]}))}),b=Tt(at(u,"parseHTML",h));b&&(g.parseDOM=b.map(v=>wz(v,d)));const y=at(u,"renderHTML",h);return y&&(g.toDOM=v=>y({mark:v,HTMLAttributes:jk(v,d)})),[u.name,g]}));return new BZ({topNode:o,nodes:l,marks:c})}function t9(t,e){return e.nodes[t]||e.marks[t]||null}function jz(t,e){return Array.isArray(e)?e.some(r=>(typeof r=="string"?r:r.name)===t.name):e}function x_(t,e){const r=Xu.fromSchema(e).serializeFragment(t),a=document.implementation.createHTMLDocument().createElement("div");return a.appendChild(r),a.innerHTML}const AFe=(t,e=500)=>{let r="";const n=t.parentOffset;return t.parent.nodesBetween(Math.max(0,n-e),n,(a,i,o,l)=>{var c,u;const d=((u=(c=a.type.spec).toText)===null||u===void 0?void 0:u.call(c,{node:a,pos:i,parent:o,index:l}))||a.textContent||"%leaf%";r+=a.isAtom&&!a.isText?d:d.slice(0,Math.max(0,n-i))}),r};function y_(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class qv{constructor(e){this.find=e.find,this.handler=e.handler}}const EFe=(t,e)=>{if(y_(e))return e.exec(t);const r=e(t);if(!r)return null;const n=[r.text];return n.index=r.index,n.input=t,n.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),n.push(r.replaceWith)),n};function bb(t){var e;const{editor:r,from:n,to:a,text:i,rules:o,plugin:l}=t,{view:c}=r;if(c.composing)return!1;const u=c.state.doc.resolve(n);if(u.parent.type.spec.code||!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(m=>m.type.spec.code))return!1;let d=!1;const h=AFe(u)+i;return o.forEach(m=>{if(d)return;const g=EFe(h,m.find);if(!g)return;const b=c.state.tr,y=zv({state:c.state,transaction:b}),v={from:n-(g[0].length-i.length),to:a},{commands:N,chain:S,can:j}=new Vv({editor:r,state:y});m.handler({state:y,range:v,match:g,commands:N,chain:S,can:j})===null||!b.steps.length||(b.setMeta(l,{transform:b,from:n,to:a,text:i}),c.dispatch(b),d=!0)}),d}function OFe(t){const{editor:e,rules:r}=t,n=new on({state:{init(){return null},apply(a,i,o){const l=a.getMeta(n);if(l)return l;const c=a.getMeta("applyInputRules");return!!c&&setTimeout(()=>{let{text:d}=c;typeof d=="string"?d=d:d=x_(Ee.from(d),o.schema);const{from:h}=c,m=h+d.length;bb({editor:e,from:h,to:m,text:d,rules:r,plugin:n})}),a.selectionSet||a.docChanged?null:i}},props:{handleTextInput(a,i,o,l){return bb({editor:e,from:i,to:o,text:l,rules:r,plugin:n})},handleDOMEvents:{compositionend:a=>(setTimeout(()=>{const{$cursor:i}=a.state.selection;i&&bb({editor:e,from:i.pos,to:i.pos,text:"",rules:r,plugin:n})}),!1)},handleKeyDown(a,i){if(i.key!=="Enter")return!1;const{$cursor:o}=a.state.selection;return o?bb({editor:e,from:o.pos,to:o.pos,text:` 1303`,rules:r,plugin:n}):!1}},isInputRules:!0});return n}function PFe(t){return Object.prototype.toString.call(t).slice(8,-1)}function xb(t){return PFe(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Wv(t,e){const r={...t};return xb(t)&&xb(e)&&Object.keys(e).forEach(n=>{xb(e[n])&&xb(t[n])?r[n]=Wv(t[n],e[n]):r[n]=e[n]}),r}class eo{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Tt(at(this,"addOptions",{name:this.name}))),this.storage=Tt(at(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new eo(e)}configure(e={}){const r=this.extend({...this.config,addOptions:()=>Wv(this.options,e)});return r.name=this.name,r.parent=this.parent,r}extend(e={}){const r=new eo(e);return r.parent=this,this.child=r,r.name=e.name?e.name:r.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`),r.options=Tt(at(r,"addOptions",{name:r.name})),r.storage=Tt(at(r,"addStorage",{name:r.name,options:r.options})),r}static handleExit({editor:e,mark:r}){const{tr:n}=e.state,a=e.state.selection.$from;if(a.pos===a.end()){const o=a.marks();if(!!!o.find(u=>(u==null?void 0:u.type.name)===r.name))return!1;const c=o.find(u=>(u==null?void 0:u.type.name)===r.name);return c&&n.removeStoredMark(c),n.insertText(" ",a.pos),e.view.dispatch(n),!0}return!1}}function MFe(t){return typeof t=="number"}class TFe{constructor(e){this.find=e.find,this.handler=e.handler}}const RFe=(t,e,r)=>{if(y_(e))return[...t.matchAll(e)];const n=e(t,r);return n?n.map(a=>{const i=[a.text];return i.index=a.index,i.input=t,i.data=a.data,a.replaceWith&&(a.text.includes(a.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(a.replaceWith)),i}):[]};function IFe(t){const{editor:e,state:r,from:n,to:a,rule:i,pasteEvent:o,dropEvent:l}=t,{commands:c,chain:u,can:d}=new Vv({editor:e,state:r}),h=[];return r.doc.nodesBetween(n,a,(g,b)=>{if(!g.isTextblock||g.type.spec.code)return;const y=Math.max(n,b),v=Math.min(a,b+g.content.size),N=g.textBetween(y-b,v-b,void 0,"");RFe(N,i.find,o).forEach(j=>{if(j.index===void 0)return;const $=y+j.index+1,C=$+j[0].length,_={from:r.tr.mapping.map($),to:r.tr.mapping.map(C)},O=i.handler({state:r,range:_,match:j,commands:c,chain:u,can:d,pasteEvent:o,dropEvent:l});h.push(O)})}),h.every(g=>g!==null)}let yb=null;const DFe=t=>{var e;const r=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=r.clipboardData)===null||e===void 0||e.setData("text/html",t),r};function LFe(t){const{editor:e,rules:r}=t;let n=null,a=!1,i=!1,o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l;try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}const c=({state:d,from:h,to:m,rule:g,pasteEvt:b})=>{const y=d.tr,v=zv({state:d,transaction:y});if(!(!IFe({editor:e,state:v,from:Math.max(h-1,0),to:m.b-1,rule:g,pasteEvent:b,dropEvent:l})||!y.steps.length)){try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}return o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,y}};return r.map(d=>new on({view(h){const m=b=>{var y;n=!((y=h.dom.parentElement)===null||y===void 0)&&y.contains(b.target)?h.dom.parentElement:null,n&&(yb=e)},g=()=>{yb&&(yb=null)};return window.addEventListener("dragstart",m),window.addEventListener("dragend",g),{destroy(){window.removeEventListener("dragstart",m),window.removeEventListener("dragend",g)}}},props:{handleDOMEvents:{drop:(h,m)=>{if(i=n===h.dom.parentElement,l=m,!i){const g=yb;g!=null&&g.isEditable&&setTimeout(()=>{const b=g.state.selection;b&&g.commands.deleteRange({from:b.from,to:b.to})},10)}return!1},paste:(h,m)=>{var g;const b=(g=m.clipboardData)===null||g===void 0?void 0:g.getData("text/html");return o=m,a=!!(b!=null&&b.includes("data-pm-slice")),!1}}},appendTransaction:(h,m,g)=>{const b=h[0],y=b.getMeta("uiEvent")==="paste"&&!a,v=b.getMeta("uiEvent")==="drop"&&!i,N=b.getMeta("applyPasteRules"),S=!!N;if(!y&&!v&&!S)return;if(S){let{text:C}=N;typeof C=="string"?C=C:C=x_(Ee.from(C),g.schema);const{from:_}=N,O=_+C.length,E=DFe(C);return c({rule:d,state:g,from:_,to:{b:O},pasteEvt:E})}const j=m.doc.content.findDiffStart(g.doc.content),$=m.doc.content.findDiffEnd(g.doc.content);if(!(!MFe(j)||!$||j===$.b))return c({rule:d,state:g,from:j,to:$,pasteEvt:o})}}))}function BFe(t){const e=t.filter((r,n)=>t.indexOf(r)!==n);return Array.from(new Set(e))}class lh{constructor(e,r){this.splittableMarks=[],this.editor=r,this.extensions=lh.resolve(e),this.schema=_Fe(this.extensions,r),this.setupExtensions()}static resolve(e){const r=lh.sort(lh.flatten(e)),n=BFe(r.map(a=>a.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(a=>`'${a}'`).join(", ")}]. This can lead to issues.`),r}static flatten(e){return e.map(r=>{const n={name:r.name,options:r.options,storage:r.storage},a=at(r,"addExtensions",n);return a?[r,...this.flatten(a())]:r}).flat(10)}static sort(e){return e.sort((n,a)=>{const i=at(n,"priority")||100,o=at(a,"priority")||100;return i>o?-1:i<o?1:0})}get commands(){return this.extensions.reduce((e,r)=>{const n={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:t9(r.name,this.schema)},a=at(r,"addCommands",n);return a?{...e,...a()}:e},{})}get plugins(){const{editor:e}=this,r=lh.sort([...this.extensions].reverse()),n=[],a=[],i=r.map(o=>{const l={name:o.name,options:o.options,storage:o.storage,editor:e,type:t9(o.name,this.schema)},c=[],u=at(o,"addKeyboardShortcuts",l);let d={};if(o.type==="mark"&&at(o,"exitable",l)&&(d.ArrowRight=()=>eo.handleExit({editor:e,mark:o})),u){const y=Object.fromEntries(Object.entries(u()).map(([v,N])=>[v,()=>N({editor:e})]));d={...d,...y}}const h=aFe(d);c.push(h);const m=at(o,"addInputRules",l);jz(o,e.options.enableInputRules)&&m&&n.push(...m());const g=at(o,"addPasteRules",l);jz(o,e.options.enablePasteRules)&&g&&a.push(...g());const b=at(o,"addProseMirrorPlugins",l);if(b){const y=b();c.push(...y)}return c}).flat();return[OFe({editor:e,rules:n}),...LFe({editor:e,rules:a}),...i]}get attributes(){return Zee(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:r}=Uv(this.extensions);return Object.fromEntries(r.filter(n=>!!at(n,"addNodeView")).map(n=>{const a=this.attributes.filter(c=>c.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:e,type:Cn(n.name,this.schema)},o=at(n,"addNodeView",i);if(!o)return[];const l=(c,u,d,h,m)=>{const g=jk(c,a);return o()({node:c,view:u,getPos:d,decorations:h,innerDecorations:m,editor:e,extension:n,HTMLAttributes:g})};return[n.name,l]}))}setupExtensions(){this.extensions.forEach(e=>{var r;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:t9(e.name,this.schema)};e.type==="mark"&&(!((r=Tt(at(e,"keepOnSplit",n)))!==null&&r!==void 0)||r)&&this.splittableMarks.push(e.name);const a=at(e,"onBeforeCreate",n),i=at(e,"onCreate",n),o=at(e,"onUpdate",n),l=at(e,"onSelectionUpdate",n),c=at(e,"onTransaction",n),u=at(e,"onFocus",n),d=at(e,"onBlur",n),h=at(e,"onDestroy",n);a&&this.editor.on("beforeCreate",a),i&&this.editor.on("create",i),o&&this.editor.on("update",o),l&&this.editor.on("selectionUpdate",l),c&&this.editor.on("transaction",c),u&&this.editor.on("focus",u),d&&this.editor.on("blur",d),h&&this.editor.on("destroy",h)})}}class ca{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Tt(at(this,"addOptions",{name:this.name}))),this.storage=Tt(at(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ca(e)}configure(e={}){const r=this.extend({...this.config,addOptions:()=>Wv(this.options,e)});return r.name=this.name,r.parent=this.parent,r}extend(e={}){const r=new ca({...this.config,...e});return r.parent=this,this.child=r,r.name=e.name?e.name:r.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`),r.options=Tt(at(r,"addOptions",{name:r.name})),r.storage=Tt(at(r,"addStorage",{name:r.name,options:r.options})),r}}function tte(t,e,r){const{from:n,to:a}=e,{blockSeparator:i=` 1304 1305`,textSerializers:o={}}=r||{};let l="";return t.nodesBetween(n,a,(c,u,d,h)=>{var m;c.isBlock&&u>n&&(l+=i);const g=o==null?void 0:o[c.type.name];if(g)return d&&(l+=g({node:c,pos:u,parent:d,index:h,range:e})),!1;c.isText&&(l+=(m=c==null?void 0:c.text)===null||m===void 0?void 0:m.slice(Math.max(n,u)-u,a-u))}),l}function rte(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,r])=>[e,r.spec.toText]))}const HFe=ca.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new on({key:new Gn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:r}=t,{doc:n,selection:a}=e,{ranges:i}=a,o=Math.min(...i.map(d=>d.$from.pos)),l=Math.max(...i.map(d=>d.$to.pos)),c=rte(r);return tte(n,{from:o,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:c})}}})]}}),FFe=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var r;t.isDestroyed||(e.dom.blur(),(r=window==null?void 0:window.getSelection())===null||r===void 0||r.removeAllRanges())}),!0),zFe=(t=!1)=>({commands:e})=>e.setContent("",t),VFe=()=>({state:t,tr:e,dispatch:r})=>{const{selection:n}=e,{ranges:a}=n;return r&&a.forEach(({$from:i,$to:o})=>{t.doc.nodesBetween(i.pos,o.pos,(l,c)=>{if(l.type.isText)return;const{doc:u,mapping:d}=e,h=u.resolve(d.map(c)),m=u.resolve(d.map(c+l.nodeSize)),g=h.blockRange(m);if(!g)return;const b=Mf(g);if(l.type.isTextblock){const{defaultType:y}=h.parent.contentMatchAt(h.index());e.setNodeMarkup(g.start,y)}(b||b===0)&&e.lift(g,b)})}),!0},UFe=t=>e=>t(e),qFe=()=>({state:t,dispatch:e})=>Yee(t,e),WFe=(t,e)=>({editor:r,tr:n})=>{const{state:a}=r,i=a.doc.slice(t.from,t.to);n.deleteRange(t.from,t.to);const o=n.mapping.map(e);return n.insert(o,i.content),n.setSelection(new gt(n.doc.resolve(Math.max(o-1,0)))),!0},GFe=()=>({tr:t,dispatch:e})=>{const{selection:r}=t,n=r.$anchor.node();if(n.content.size>0)return!1;const a=t.selection.$anchor;for(let i=a.depth;i>0;i-=1)if(a.node(i).type===n.type){if(e){const l=a.before(i),c=a.after(i);t.delete(l,c).scrollIntoView()}return!0}return!1},KFe=t=>({tr:e,state:r,dispatch:n})=>{const a=Cn(t,r.schema),i=e.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===a){if(n){const c=i.before(o),u=i.after(o);e.delete(c,u).scrollIntoView()}return!0}return!1},YFe=t=>({tr:e,dispatch:r})=>{const{from:n,to:a}=t;return r&&e.delete(n,a),!0},XFe=()=>({state:t,dispatch:e})=>f_(t,e),JFe=()=>({commands:t})=>t.keyboardShortcut("Enter"),QFe=()=>({state:t,dispatch:e})=>uFe(t,e);function H2(t,e,r={strict:!0}){const n=Object.keys(e);return n.length?n.every(a=>r.strict?e[a]===t[a]:y_(e[a])?e[a].test(t[a]):e[a]===t[a]):!0}function nte(t,e,r={}){return t.find(n=>n.type===e&&H2(Object.fromEntries(Object.keys(r).map(a=>[a,n.attrs[a]])),r))}function kz(t,e,r={}){return!!nte(t,e,r)}function v_(t,e,r){var n;if(!t||!e)return;let a=t.parent.childAfter(t.parentOffset);if((!a.node||!a.node.marks.some(d=>d.type===e))&&(a=t.parent.childBefore(t.parentOffset)),!a.node||!a.node.marks.some(d=>d.type===e)||(r=r||((n=a.node.marks[0])===null||n===void 0?void 0:n.attrs),!nte([...a.node.marks],e,r)))return;let o=a.index,l=t.start()+a.offset,c=o+1,u=l+a.node.nodeSize;for(;o>0&&kz([...t.parent.child(o-1).marks],e,r);)o-=1,l-=t.parent.child(o).nodeSize;for(;c<t.parent.childCount&&kz([...t.parent.child(c).marks],e,r);)u+=t.parent.child(c).nodeSize,c+=1;return{from:l,to:u}}function wc(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const ZFe=(t,e={})=>({tr:r,state:n,dispatch:a})=>{const i=wc(t,n.schema),{doc:o,selection:l}=r,{$from:c,from:u,to:d}=l;if(a){const h=v_(c,i,e);if(h&&h.from<=u&&h.to>=d){const m=gt.create(o,h.from,h.to);r.setSelection(m)}}return!0},eze=t=>e=>{const r=typeof t=="function"?t(e):t;for(let n=0;n<r.length;n+=1)if(r[n](e))return!0;return!1};function ate(t){return t instanceof gt}function hu(t=0,e=0,r=0){return Math.min(Math.max(t,e),r)}function ste(t,e=null){if(!e)return null;const r=St.atStart(t),n=St.atEnd(t);if(e==="start"||e===!0)return r;if(e==="end")return n;const a=r.from,i=n.to;return e==="all"?gt.create(t,hu(0,a,i),hu(t.content.size,a,i)):gt.create(t,hu(e,a,i),hu(e,a,i))}function Sz(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function F2(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function tze(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}const rze=(t=null,e={})=>({editor:r,view:n,tr:a,dispatch:i})=>{e={scrollIntoView:!0,...e};const o=()=>{(F2()||Sz())&&n.dom.focus(),requestAnimationFrame(()=>{r.isDestroyed||(n.focus(),tze()&&!F2()&&!Sz()&&n.dom.focus({preventScroll:!0}))})};if(n.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!ate(r.state.selection))return o(),!0;const l=ste(a.doc,t)||r.state.selection,c=r.state.selection.eq(l);return i&&(c||a.setSelection(l),c&&a.storedMarks&&a.setStoredMarks(a.storedMarks),o()),!0},nze=(t,e)=>r=>t.every((n,a)=>e(n,{...r,index:a})),aze=(t,e)=>({tr:r,commands:n})=>n.insertContentAt({from:r.selection.from,to:r.selection.to},t,e),ite=t=>{const e=t.childNodes;for(let r=e.length-1;r>=0;r-=1){const n=e[r];n.nodeType===3&&n.nodeValue&&/^(\n\s\s|\n)$/.test(n.nodeValue)?t.removeChild(n):n.nodeType===1&&ite(n)}return t};function vb(t){const e=`<body>${t}</body>`,r=new window.DOMParser().parseFromString(e,"text/html").body;return ite(r)}function P0(t,e,r){if(t instanceof Zl||t instanceof Ee)return t;r={slice:!0,parseOptions:{},...r};const n=typeof t=="object"&&t!==null,a=typeof t=="string";if(n)try{if(Array.isArray(t)&&t.length>0)return Ee.fromArray(t.map(l=>e.nodeFromJSON(l)));const o=e.nodeFromJSON(t);return r.errorOnInvalidContent&&o.check(),o}catch(i){if(r.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),P0("",e,r)}if(a){if(r.errorOnInvalidContent){let o=!1,l="";const c=new BZ({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(o=!0,l=typeof u=="string"?u:u.outerHTML,null)}]}})});if(r.slice?pm.fromSchema(c).parseSlice(vb(t),r.parseOptions):pm.fromSchema(c).parse(vb(t),r.parseOptions),r.errorOnInvalidContent&&o)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}const i=pm.fromSchema(e);return r.slice?i.parseSlice(vb(t),r.parseOptions).content:i.parse(vb(t),r.parseOptions)}return P0("",e,r)}function sze(t,e,r){const n=t.steps.length-1;if(n<e)return;const a=t.steps[n];if(!(a instanceof rn||a instanceof kn))return;const i=t.mapping.maps[n];let o=0;i.forEach((l,c,u,d)=>{o===0&&(o=d)}),t.setSelection(St.near(t.doc.resolve(o),r))}const ize=t=>!("type"in t),oze=(t,e,r)=>({tr:n,dispatch:a,editor:i})=>{var o;if(a){r={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...r};let l;const c=v=>{i.emit("contentError",{editor:i,error:v,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...r.parseOptions};if(!r.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{P0(e,i.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(v){c(v)}try{l=P0(e,i.schema,{parseOptions:u,errorOnInvalidContent:(o=r.errorOnInvalidContent)!==null&&o!==void 0?o:i.options.enableContentCheck})}catch(v){return c(v),!1}let{from:d,to:h}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},m=!0,g=!0;if((ize(l)?l:[l]).forEach(v=>{v.check(),m=m?v.isText&&v.marks.length===0:!1,g=g?v.isBlock:!1}),d===h&&g){const{parent:v}=n.doc.resolve(d);v.isTextblock&&!v.type.spec.code&&!v.childCount&&(d-=1,h+=1)}let y;if(m){if(Array.isArray(e))y=e.map(v=>v.text||"").join("");else if(e instanceof Ee){let v="";e.forEach(N=>{N.text&&(v+=N.text)}),y=v}else typeof e=="object"&&e&&e.text?y=e.text:y=e;n.insertText(y,d,h)}else y=l,n.replaceWith(d,h,y);r.updateSelection&&sze(n,n.steps.length-1,-1),r.applyInputRules&&n.setMeta("applyInputRules",{from:d,text:y}),r.applyPasteRules&&n.setMeta("applyPasteRules",{from:d,text:y})}return!0},lze=()=>({state:t,dispatch:e})=>oFe(t,e),cze=()=>({state:t,dispatch:e})=>lFe(t,e),uze=()=>({state:t,dispatch:e})=>zee(t,e),dze=()=>({state:t,dispatch:e})=>Wee(t,e),hze=()=>({state:t,dispatch:e,tr:r})=>{try{const n=Dv(t.doc,t.selection.$from.pos,-1);return n==null?!1:(r.join(n,2),e&&e(r),!0)}catch{return!1}},fze=()=>({state:t,dispatch:e,tr:r})=>{try{const n=Dv(t.doc,t.selection.$from.pos,1);return n==null?!1:(r.join(n,2),e&&e(r),!0)}catch{return!1}},pze=()=>({state:t,dispatch:e})=>sFe(t,e),mze=()=>({state:t,dispatch:e})=>iFe(t,e);function ote(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function gze(t){const e=t.split(/-(?!$)/);let r=e[e.length-1];r==="Space"&&(r=" ");let n,a,i,o;for(let l=0;l<e.length-1;l+=1){const c=e[l];if(/^(cmd|meta|m)$/i.test(c))o=!0;else if(/^a(lt)?$/i.test(c))n=!0;else if(/^(c|ctrl|control)$/i.test(c))a=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))F2()||ote()?o=!0:a=!0;else throw new Error(`Unrecognized modifier name: ${c}`)}return n&&(r=`Alt-${r}`),a&&(r=`Ctrl-${r}`),o&&(r=`Meta-${r}`),i&&(r=`Shift-${r}`),r}const bze=t=>({editor:e,view:r,tr:n,dispatch:a})=>{const i=gze(t).split(/-(?!$)/),o=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),l=new KeyboardEvent("keydown",{key:o==="Space"?" ":o,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),c=e.captureTransaction(()=>{r.someProp("handleKeyDown",u=>u(r,l))});return c==null||c.steps.forEach(u=>{const d=u.map(n.mapping);d&&a&&n.maybeStep(d)}),!0};function M0(t,e,r={}){const{from:n,to:a,empty:i}=t.selection,o=e?Cn(e,t.schema):null,l=[];t.doc.nodesBetween(n,a,(h,m)=>{if(h.isText)return;const g=Math.max(n,m),b=Math.min(a,m+h.nodeSize);l.push({node:h,from:g,to:b})});const c=a-n,u=l.filter(h=>o?o.name===h.node.type.name:!0).filter(h=>H2(h.node.attrs,r,{strict:!1}));return i?!!u.length:u.reduce((h,m)=>h+m.to-m.from,0)>=c}const xze=(t,e={})=>({state:r,dispatch:n})=>{const a=Cn(t,r.schema);return M0(r,a,e)?cFe(r,n):!1},yze=()=>({state:t,dispatch:e})=>Xee(t,e),vze=t=>({state:e,dispatch:r})=>{const n=Cn(t,e.schema);return wFe(n)(e,r)},wze=()=>({state:t,dispatch:e})=>Kee(t,e);function Gv(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Cz(t,e){const r=typeof e=="string"?[e]:e;return Object.keys(t).reduce((n,a)=>(r.includes(a)||(n[a]=t[a]),n),{})}const Nze=(t,e)=>({tr:r,state:n,dispatch:a})=>{let i=null,o=null;const l=Gv(typeof t=="string"?t:t.name,n.schema);return l?(l==="node"&&(i=Cn(t,n.schema)),l==="mark"&&(o=wc(t,n.schema)),a&&r.selection.ranges.forEach(c=>{n.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,d)=>{i&&i===u.type&&r.setNodeMarkup(d,void 0,Cz(u.attrs,e)),o&&u.marks.length&&u.marks.forEach(h=>{o===h.type&&r.addMark(d,d+u.nodeSize,o.create(Cz(h.attrs,e)))})})}),!0):!1},jze=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),kze=()=>({tr:t,dispatch:e})=>{if(e){const r=new ns(t.doc);t.setSelection(r)}return!0},Sze=()=>({state:t,dispatch:e})=>Uee(t,e),Cze=()=>({state:t,dispatch:e})=>Gee(t,e),$ze=()=>({state:t,dispatch:e})=>fFe(t,e),_ze=()=>({state:t,dispatch:e})=>gFe(t,e),Aze=()=>({state:t,dispatch:e})=>mFe(t,e);function kk(t,e,r={},n={}){return P0(t,e,{slice:!1,parseOptions:r,errorOnInvalidContent:n.errorOnInvalidContent})}const Eze=(t,e=!1,r={},n={})=>({editor:a,tr:i,dispatch:o,commands:l})=>{var c,u;const{doc:d}=i;if(r.preserveWhitespace!=="full"){const h=kk(t,a.schema,r,{errorOnInvalidContent:(c=n.errorOnInvalidContent)!==null&&c!==void 0?c:a.options.enableContentCheck});return o&&i.replaceWith(0,d.content.size,h).setMeta("preventUpdate",!e),!0}return o&&i.setMeta("preventUpdate",!e),l.insertContentAt({from:0,to:d.content.size},t,{parseOptions:r,errorOnInvalidContent:(u=n.errorOnInvalidContent)!==null&&u!==void 0?u:a.options.enableContentCheck})};function lte(t,e){const r=wc(e,t.schema),{from:n,to:a,empty:i}=t.selection,o=[];i?(t.storedMarks&&o.push(...t.storedMarks),o.push(...t.selection.$head.marks())):t.doc.nodesBetween(n,a,c=>{o.push(...c.marks)});const l=o.find(c=>c.type.name===r.name);return l?{...l.attrs}:{}}function Oze(t,e){const r=new t_(t);return e.forEach(n=>{n.steps.forEach(a=>{r.step(a)})}),r}function Pze(t){for(let e=0;e<t.edgeCount;e+=1){const{type:r}=t.edge(e);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}function Mze(t,e,r){const n=[];return t.nodesBetween(e.from,e.to,(a,i)=>{r(a)&&n.push({node:a,pos:i})}),n}function cte(t,e){for(let r=t.depth;r>0;r-=1){const n=t.node(r);if(e(n))return{pos:r>0?t.before(r):0,start:t.start(r),depth:r,node:n}}}function w_(t){return e=>cte(e.$from,t)}function Tze(t,e){const r={from:0,to:t.content.size};return tte(t,r,e)}function Rze(t,e){const r=Cn(e,t.schema),{from:n,to:a}=t.selection,i=[];t.doc.nodesBetween(n,a,l=>{i.push(l)});const o=i.reverse().find(l=>l.type.name===r.name);return o?{...o.attrs}:{}}function ute(t,e){const r=Gv(typeof e=="string"?e:e.name,t.schema);return r==="node"?Rze(t,e):r==="mark"?lte(t,e):{}}function Ize(t,e=JSON.stringify){const r={};return t.filter(n=>{const a=e(n);return Object.prototype.hasOwnProperty.call(r,a)?!1:r[a]=!0})}function Dze(t){const e=Ize(t);return e.length===1?e:e.filter((r,n)=>!e.filter((i,o)=>o!==n).some(i=>r.oldRange.from>=i.oldRange.from&&r.oldRange.to<=i.oldRange.to&&r.newRange.from>=i.newRange.from&&r.newRange.to<=i.newRange.to))}function Lze(t){const{mapping:e,steps:r}=t,n=[];return e.maps.forEach((a,i)=>{const o=[];if(a.ranges.length)a.forEach((l,c)=>{o.push({from:l,to:c})});else{const{from:l,to:c}=r[i];if(l===void 0||c===void 0)return;o.push({from:l,to:c})}o.forEach(({from:l,to:c})=>{const u=e.slice(i).map(l,-1),d=e.slice(i).map(c),h=e.invert().map(u,-1),m=e.invert().map(d);n.push({oldRange:{from:h,to:m},newRange:{from:u,to:d}})})}),Dze(n)}function N_(t,e,r){const n=[];return t===e?r.resolve(t).marks().forEach(a=>{const i=r.resolve(t),o=v_(i,a.type);o&&n.push({mark:a,...o})}):r.nodesBetween(t,e,(a,i)=>{!a||(a==null?void 0:a.nodeSize)===void 0||n.push(...a.marks.map(o=>({from:i,to:i+a.nodeSize,mark:o})))}),n}function tx(t,e,r){return Object.fromEntries(Object.entries(r).filter(([n])=>{const a=t.find(i=>i.type===e&&i.name===n);return a?a.attribute.keepOnSplit:!1}))}function Sk(t,e,r={}){const{empty:n,ranges:a}=t.selection,i=e?wc(e,t.schema):null;if(n)return!!(t.storedMarks||t.selection.$from.marks()).filter(h=>i?i.name===h.type.name:!0).find(h=>H2(h.attrs,r,{strict:!1}));let o=0;const l=[];if(a.forEach(({$from:h,$to:m})=>{const g=h.pos,b=m.pos;t.doc.nodesBetween(g,b,(y,v)=>{if(!y.isText&&!y.marks.length)return;const N=Math.max(g,v),S=Math.min(b,v+y.nodeSize),j=S-N;o+=j,l.push(...y.marks.map($=>({mark:$,from:N,to:S})))})}),o===0)return!1;const c=l.filter(h=>i?i.name===h.mark.type.name:!0).filter(h=>H2(h.mark.attrs,r,{strict:!1})).reduce((h,m)=>h+m.to-m.from,0),u=l.filter(h=>i?h.mark.type!==i&&h.mark.type.excludes(i):!0).reduce((h,m)=>h+m.to-m.from,0);return(c>0?c+u:c)>=o}function Bze(t,e,r={}){if(!e)return M0(t,null,r)||Sk(t,null,r);const n=Gv(e,t.schema);return n==="node"?M0(t,e,r):n==="mark"?Sk(t,e,r):!1}function $z(t,e){const{nodeExtensions:r}=Uv(e),n=r.find(o=>o.name===t);if(!n)return!1;const a={name:n.name,options:n.options,storage:n.storage},i=Tt(at(n,"group",a));return typeof i!="string"?!1:i.split(" ").includes("list")}function Kv(t,{checkChildren:e=!0,ignoreWhitespace:r=!1}={}){var n;if(r){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((n=t.text)!==null&&n!==void 0?n:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let a=!0;return t.content.forEach(i=>{a!==!1&&(Kv(i,{ignoreWhitespace:r,checkChildren:e})||(a=!1))}),a}return!1}function Hze(t){return t instanceof bt}function Fze(t,e,r){var n;const{selection:a}=e;let i=null;if(ate(a)&&(i=a.$cursor),i){const l=(n=t.storedMarks)!==null&&n!==void 0?n:i.marks();return!!r.isInSet(l)||!l.some(c=>c.type.excludes(r))}const{ranges:o}=a;return o.some(({$from:l,$to:c})=>{let u=l.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(r):!1;return t.doc.nodesBetween(l.pos,c.pos,(d,h,m)=>{if(u)return!1;if(d.isInline){const g=!m||m.type.allowsMarkType(r),b=!!r.isInSet(d.marks)||!d.marks.some(y=>y.type.excludes(r));u=g&&b}return!u}),u})}const zze=(t,e={})=>({tr:r,state:n,dispatch:a})=>{const{selection:i}=r,{empty:o,ranges:l}=i,c=wc(t,n.schema);if(a)if(o){const u=lte(n,c);r.addStoredMark(c.create({...u,...e}))}else l.forEach(u=>{const d=u.$from.pos,h=u.$to.pos;n.doc.nodesBetween(d,h,(m,g)=>{const b=Math.max(g,d),y=Math.min(g+m.nodeSize,h);m.marks.find(N=>N.type===c)?m.marks.forEach(N=>{c===N.type&&r.addMark(b,y,c.create({...N.attrs,...e}))}):r.addMark(b,y,c.create(e))})});return Fze(n,r,c)},Vze=(t,e)=>({tr:r})=>(r.setMeta(t,e),!0),Uze=(t,e={})=>({state:r,dispatch:n,chain:a})=>{const i=Cn(t,r.schema);let o;return r.selection.$anchor.sameParent(r.selection.$head)&&(o=r.selection.$anchor.parent.attrs),i.isTextblock?a().command(({commands:l})=>vz(i,{...o,...e})(r)?!0:l.clearNodes()).command(({state:l})=>vz(i,{...o,...e})(l,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},qze=t=>({tr:e,dispatch:r})=>{if(r){const{doc:n}=e,a=hu(t,0,n.content.size),i=bt.create(n,a);e.setSelection(i)}return!0},Wze=t=>({tr:e,dispatch:r})=>{if(r){const{doc:n}=e,{from:a,to:i}=typeof t=="number"?{from:t,to:t}:t,o=gt.atStart(n).from,l=gt.atEnd(n).to,c=hu(a,o,l),u=hu(i,o,l),d=gt.create(n,c,u);e.setSelection(d)}return!0},Gze=t=>({state:e,dispatch:r})=>{const n=Cn(t,e.schema);return kFe(n)(e,r)};function _z(t,e){const r=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(r){const n=r.filter(a=>e==null?void 0:e.includes(a.type.name));t.tr.ensureMarks(n)}}const Kze=({keepMarks:t=!0}={})=>({tr:e,state:r,dispatch:n,editor:a})=>{const{selection:i,doc:o}=e,{$from:l,$to:c}=i,u=a.extensionManager.attributes,d=tx(u,l.node().type.name,l.node().attrs);if(i instanceof bt&&i.node.isBlock)return!l.parentOffset||!Vo(o,l.pos)?!1:(n&&(t&&_z(r,a.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;const h=c.parentOffset===c.parent.content.size,m=l.depth===0?void 0:Pze(l.node(-1).contentMatchAt(l.indexAfter(-1)));let g=h&&m?[{type:m,attrs:d}]:void 0,b=Vo(e.doc,e.mapping.map(l.pos),1,g);if(!g&&!b&&Vo(e.doc,e.mapping.map(l.pos),1,m?[{type:m}]:void 0)&&(b=!0,g=m?[{type:m,attrs:d}]:void 0),n){if(b&&(i instanceof gt&&e.deleteSelection(),e.split(e.mapping.map(l.pos),1,g),m&&!h&&!l.parentOffset&&l.parent.type!==m)){const y=e.mapping.map(l.before()),v=e.doc.resolve(y);l.node(-1).canReplaceWith(v.index(),v.index()+1,m)&&e.setNodeMarkup(e.mapping.map(l.before()),m)}t&&_z(r,a.extensionManager.splittableMarks),e.scrollIntoView()}return b},Yze=(t,e={})=>({tr:r,state:n,dispatch:a,editor:i})=>{var o;const l=Cn(t,n.schema),{$from:c,$to:u}=n.selection,d=n.selection.node;if(d&&d.isBlock||c.depth<2||!c.sameParent(u))return!1;const h=c.node(-1);if(h.type!==l)return!1;const m=i.extensionManager.attributes;if(c.parent.content.size===0&&c.node(-1).childCount===c.indexAfter(-1)){if(c.depth===2||c.node(-3).type!==l||c.index(-2)!==c.node(-2).childCount-1)return!1;if(a){let N=Ee.empty;const S=c.index(-1)?1:c.index(-2)?2:3;for(let E=c.depth-S;E>=c.depth-3;E-=1)N=Ee.from(c.node(E).copy(N));const j=c.indexAfter(-1)<c.node(-2).childCount?1:c.indexAfter(-2)<c.node(-3).childCount?2:3,$={...tx(m,c.node().type.name,c.node().attrs),...e},C=((o=l.contentMatch.defaultType)===null||o===void 0?void 0:o.createAndFill($))||void 0;N=N.append(Ee.from(l.createAndFill(null,C)||void 0));const _=c.before(c.depth-(S-1));r.replace(_,c.after(-j),new Ge(N,4-S,0));let O=-1;r.doc.nodesBetween(_,r.doc.content.size,(E,P)=>{if(O>-1)return!1;E.isTextblock&&E.content.size===0&&(O=P+1)}),O>-1&&r.setSelection(gt.near(r.doc.resolve(O))),r.scrollIntoView()}return!0}const g=u.pos===c.end()?h.contentMatchAt(0).defaultType:null,b={...tx(m,h.type.name,h.attrs),...e},y={...tx(m,c.node().type.name,c.node().attrs),...e};r.delete(c.pos,u.pos);const v=g?[{type:l,attrs:b},{type:g,attrs:y}]:[{type:l,attrs:b}];if(!Vo(r.doc,c.pos,2))return!1;if(a){const{selection:N,storedMarks:S}=n,{splittableMarks:j}=i.extensionManager,$=S||N.$to.parentOffset&&N.$from.marks();if(r.split(c.pos,2,v).scrollIntoView(),!$||!a)return!0;const C=$.filter(_=>j.includes(_.type.name));r.ensureMarks(C)}return!0},r9=(t,e)=>{const r=w_(o=>o.type===e)(t.selection);if(!r)return!0;const n=t.doc.resolve(Math.max(0,r.pos-1)).before(r.depth);if(n===void 0)return!0;const a=t.doc.nodeAt(n);return r.node.type===(a==null?void 0:a.type)&&yc(t.doc,r.pos)&&t.join(r.pos),!0},n9=(t,e)=>{const r=w_(o=>o.type===e)(t.selection);if(!r)return!0;const n=t.doc.resolve(r.start).after(r.depth);if(n===void 0)return!0;const a=t.doc.nodeAt(n);return r.node.type===(a==null?void 0:a.type)&&yc(t.doc,n)&&t.join(n),!0},Xze=(t,e,r,n={})=>({editor:a,tr:i,state:o,dispatch:l,chain:c,commands:u,can:d})=>{const{extensions:h,splittableMarks:m}=a.extensionManager,g=Cn(t,o.schema),b=Cn(e,o.schema),{selection:y,storedMarks:v}=o,{$from:N,$to:S}=y,j=N.blockRange(S),$=v||y.$to.parentOffset&&y.$from.marks();if(!j)return!1;const C=w_(_=>$z(_.type.name,h))(y);if(j.depth>=1&&C&&j.depth-C.depth<=1){if(C.node.type===g)return u.liftListItem(b);if($z(C.node.type.name,h)&&g.validContent(C.node.content)&&l)return c().command(()=>(i.setNodeMarkup(C.pos,g),!0)).command(()=>r9(i,g)).command(()=>n9(i,g)).run()}return!r||!$||!l?c().command(()=>d().wrapInList(g,n)?!0:u.clearNodes()).wrapInList(g,n).command(()=>r9(i,g)).command(()=>n9(i,g)).run():c().command(()=>{const _=d().wrapInList(g,n),O=$.filter(E=>m.includes(E.type.name));return i.ensureMarks(O),_?!0:u.clearNodes()}).wrapInList(g,n).command(()=>r9(i,g)).command(()=>n9(i,g)).run()},Jze=(t,e={},r={})=>({state:n,commands:a})=>{const{extendEmptyMarkRange:i=!1}=r,o=wc(t,n.schema);return Sk(n,o,e)?a.unsetMark(o,{extendEmptyMarkRange:i}):a.setMark(o,e)},Qze=(t,e,r={})=>({state:n,commands:a})=>{const i=Cn(t,n.schema),o=Cn(e,n.schema),l=M0(n,i,r);let c;return n.selection.$anchor.sameParent(n.selection.$head)&&(c=n.selection.$anchor.parent.attrs),l?a.setNode(o,c):a.setNode(i,{...c,...r})},Zze=(t,e={})=>({state:r,commands:n})=>{const a=Cn(t,r.schema);return M0(r,a,e)?n.lift(a):n.wrapIn(a,e)},eVe=()=>({state:t,dispatch:e})=>{const r=t.plugins;for(let n=0;n<r.length;n+=1){const a=r[n];let i;if(a.spec.isInputRules&&(i=a.getState(t))){if(e){const o=t.tr,l=i.transform;for(let c=l.steps.length-1;c>=0;c-=1)o.step(l.steps[c].invert(l.docs[c]));if(i.text){const c=o.doc.resolve(i.from).marks();o.replaceWith(i.from,i.to,t.schema.text(i.text,c))}else o.delete(i.from,i.to)}return!0}}return!1},tVe=()=>({tr:t,dispatch:e})=>{const{selection:r}=t,{empty:n,ranges:a}=r;return n||e&&a.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},rVe=(t,e={})=>({tr:r,state:n,dispatch:a})=>{var i;const{extendEmptyMarkRange:o=!1}=e,{selection:l}=r,c=wc(t,n.schema),{$from:u,empty:d,ranges:h}=l;if(!a)return!0;if(d&&o){let{from:m,to:g}=l;const b=(i=u.marks().find(v=>v.type===c))===null||i===void 0?void 0:i.attrs,y=v_(u,c,b);y&&(m=y.from,g=y.to),r.removeMark(m,g,c)}else h.forEach(m=>{r.removeMark(m.$from.pos,m.$to.pos,c)});return r.removeStoredMark(c),!0},nVe=(t,e={})=>({tr:r,state:n,dispatch:a})=>{let i=null,o=null;const l=Gv(typeof t=="string"?t:t.name,n.schema);return l?(l==="node"&&(i=Cn(t,n.schema)),l==="mark"&&(o=wc(t,n.schema)),a&&r.selection.ranges.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;let h,m,g,b;r.selection.empty?n.doc.nodesBetween(u,d,(y,v)=>{i&&i===y.type&&(g=Math.max(v,u),b=Math.min(v+y.nodeSize,d),h=v,m=y)}):n.doc.nodesBetween(u,d,(y,v)=>{v<u&&i&&i===y.type&&(g=Math.max(v,u),b=Math.min(v+y.nodeSize,d),h=v,m=y),v>=u&&v<=d&&(i&&i===y.type&&r.setNodeMarkup(v,void 0,{...y.attrs,...e}),o&&y.marks.length&&y.marks.forEach(N=>{if(o===N.type){const S=Math.max(v,u),j=Math.min(v+y.nodeSize,d);r.addMark(S,j,o.create({...N.attrs,...e}))}}))}),m&&(h!==void 0&&r.setNodeMarkup(h,void 0,{...m.attrs,...e}),o&&m.marks.length&&m.marks.forEach(y=>{o===y.type&&r.addMark(g,b,o.create({...y.attrs,...e}))}))}),!0):!1},aVe=(t,e={})=>({state:r,dispatch:n})=>{const a=Cn(t,r.schema);return bFe(a,e)(r,n)},sVe=(t,e={})=>({state:r,dispatch:n})=>{const a=Cn(t,r.schema);return xFe(a,e)(r,n)};var iVe=Object.freeze({__proto__:null,blur:FFe,clearContent:zFe,clearNodes:VFe,command:UFe,createParagraphNear:qFe,cut:WFe,deleteCurrentNode:GFe,deleteNode:KFe,deleteRange:YFe,deleteSelection:XFe,enter:JFe,exitCode:QFe,extendMarkRange:ZFe,first:eze,focus:rze,forEach:nze,insertContent:aze,insertContentAt:oze,joinBackward:uze,joinDown:cze,joinForward:dze,joinItemBackward:hze,joinItemForward:fze,joinTextblockBackward:pze,joinTextblockForward:mze,joinUp:lze,keyboardShortcut:bze,lift:xze,liftEmptyBlock:yze,liftListItem:vze,newlineInCode:wze,resetAttributes:Nze,scrollIntoView:jze,selectAll:kze,selectNodeBackward:Sze,selectNodeForward:Cze,selectParentNode:$ze,selectTextblockEnd:_ze,selectTextblockStart:Aze,setContent:Eze,setMark:zze,setMeta:Vze,setNode:Uze,setNodeSelection:qze,setTextSelection:Wze,sinkListItem:Gze,splitBlock:Kze,splitListItem:Yze,toggleList:Xze,toggleMark:Jze,toggleNode:Qze,toggleWrap:Zze,undoInputRule:eVe,unsetAllMarks:tVe,unsetMark:rVe,updateAttributes:nVe,wrapIn:aVe,wrapInList:sVe});const oVe=ca.create({name:"commands",addCommands(){return{...iVe}}}),lVe=ca.create({name:"drop",addProseMirrorPlugins(){return[new on({key:new Gn("tiptapDrop"),props:{handleDrop:(t,e,r,n)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:r,moved:n})}}})]}}),cVe=ca.create({name:"editable",addProseMirrorPlugins(){return[new on({key:new Gn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),uVe=new Gn("focusEvents"),dVe=ca.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new on({key:uVe,props:{handleDOMEvents:{focus:(e,r)=>{t.isFocused=!0;const n=t.state.tr.setMeta("focus",{event:r}).setMeta("addToHistory",!1);return e.dispatch(n),!1},blur:(e,r)=>{t.isFocused=!1;const n=t.state.tr.setMeta("blur",{event:r}).setMeta("addToHistory",!1);return e.dispatch(n),!1}}}})]}}),hVe=ca.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:l})=>{const{selection:c,doc:u}=l,{empty:d,$anchor:h}=c,{pos:m,parent:g}=h,b=h.parent.isTextblock&&m>0?l.doc.resolve(m-1):h,y=b.parent.type.spec.isolating,v=h.pos-h.parentOffset,N=y&&b.parent.childCount===1?v===h.pos:St.atStart(u).from===m;return!d||!g.type.isTextblock||g.textContent.length||!N||N&&h.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},a={...n},i={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return F2()||ote()?i:a},addProseMirrorPlugins(){return[new on({key:new Gn("clearDocument"),appendTransaction:(t,e,r)=>{if(t.some(y=>y.getMeta("composition")))return;const n=t.some(y=>y.docChanged)&&!e.doc.eq(r.doc),a=t.some(y=>y.getMeta("preventClearDocument"));if(!n||a)return;const{empty:i,from:o,to:l}=e.selection,c=St.atStart(e.doc).from,u=St.atEnd(e.doc).to;if(i||!(o===c&&l===u)||!Kv(r.doc))return;const m=r.tr,g=zv({state:r,transaction:m}),{commands:b}=new Vv({editor:this.editor,state:g});if(b.clearNodes(),!!m.steps.length)return m}})]}}),fVe=ca.create({name:"paste",addProseMirrorPlugins(){return[new on({key:new Gn("tiptapPaste"),props:{handlePaste:(t,e,r)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:r})}}})]}}),pVe=ca.create({name:"tabindex",addProseMirrorPlugins(){return[new on({key:new Gn("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class eu{get name(){return this.node.type.name}constructor(e,r,n=!1,a=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=r,this.currentNode=a}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let r=this.from,n=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You canât set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}r=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:r,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),r=this.resolvedPos.doc.resolve(e);return new eu(r,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new eu(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new eu(e,this.editor)}get children(){const e=[];return this.node.content.forEach((r,n)=>{const a=r.isBlock&&!r.isTextblock,i=r.isAtom&&!r.isText,o=this.pos+n+(i?0:1);if(o<0||o>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(o);if(!a&&l.depth<=this.depth)return;const c=new eu(l,this.editor,a,a?r:null);a&&(c.actualDepth=this.depth+1),e.push(new eu(l,this.editor,a,a?r:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,r={}){let n=null,a=this.parent;for(;a&&!n;){if(a.node.type.name===e)if(Object.keys(r).length>0){const i=a.node.attrs,o=Object.keys(r);for(let l=0;l<o.length;l+=1){const c=o[l];if(i[c]!==r[c])break}}else n=a;a=a.parent}return n}querySelector(e,r={}){return this.querySelectorAll(e,r,!0)[0]||null}querySelectorAll(e,r={},n=!1){let a=[];if(!this.children||this.children.length===0)return a;const i=Object.keys(r);return this.children.forEach(o=>{n&&a.length>0||(o.node.type.name===e&&i.every(c=>r[c]===o.node.attrs[c])&&a.push(o),!(n&&a.length>0)&&(a=a.concat(o.querySelectorAll(e,r,n))))}),a}setAttribute(e){const{tr:r}=this.editor.state;r.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(r)}}const mVe=`.ProseMirror { 1306 position: relative; 1307} 1308 1309.ProseMirror { 1310 word-wrap: break-word; 1311 white-space: pre-wrap; 1312 white-space: break-spaces; 1313 -webkit-font-variant-ligatures: none; 1314 font-variant-ligatures: none; 1315 font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ 1316} 1317 1318.ProseMirror [contenteditable="false"] { 1319 white-space: normal; 1320} 1321 1322.ProseMirror [contenteditable="false"] [contenteditable="true"] { 1323 white-space: pre-wrap; 1324} 1325 1326.ProseMirror pre { 1327 white-space: pre-wrap; 1328} 1329 1330img.ProseMirror-separator { 1331 display: inline !important; 1332 border: none !important; 1333 margin: 0 !important; 1334 width: 0 !important; 1335 height: 0 !important; 1336} 1337 1338.ProseMirror-gapcursor { 1339 display: none; 1340 pointer-events: none; 1341 position: absolute; 1342 margin: 0; 1343} 1344 1345.ProseMirror-gapcursor:after { 1346 content: ""; 1347 display: block; 1348 position: absolute; 1349 top: -2px; 1350 width: 20px; 1351 border-top: 1px solid black; 1352 animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; 1353} 1354 1355@keyframes ProseMirror-cursor-blink { 1356 to { 1357 visibility: hidden; 1358 } 1359} 1360 1361.ProseMirror-hideselection *::selection { 1362 background: transparent; 1363} 1364 1365.ProseMirror-hideselection *::-moz-selection { 1366 background: transparent; 1367} 1368 1369.ProseMirror-hideselection * { 1370 caret-color: transparent; 1371} 1372 1373.ProseMirror-focused .ProseMirror-gapcursor { 1374 display: block; 1375} 1376 1377.tippy-box[data-animation=fade][data-state=hidden] { 1378 opacity: 0 1379}`;function gVe(t,e,r){const n=document.querySelector("style[data-tiptap-style]");if(n!==null)return n;const a=document.createElement("style");return e&&a.setAttribute("nonce",e),a.setAttribute("data-tiptap-style",""),a.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(a),a}class bVe extends SFe{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:r})=>{throw r},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:r,slice:n,moved:a})=>this.options.onDrop(r,n,a)),this.on("paste",({event:r,slice:n})=>this.options.onPaste(r,n)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=gVe(mVe,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,r=!0){this.setOptions({editable:e}),r&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,r){const n=ete(r)?r(e,[...this.state.plugins]):[...this.state.plugins,e],a=this.state.reconfigure({plugins:n});return this.view.updateState(a),a}unregisterPlugin(e){if(this.isDestroyed)return;const r=this.state.plugins;let n=r;if([].concat(e).forEach(i=>{const o=typeof i=="string"?`${i}$`:i.key;n=n.filter(l=>!l.key.startsWith(o))}),r.length===n.length)return;const a=this.state.reconfigure({plugins:n});return this.view.updateState(a),a}createExtensionManager(){var e,r;const a=[...this.options.enableCoreExtensions?[cVe,HFe.configure({blockSeparator:(r=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||r===void 0?void 0:r.blockSeparator}),oVe,dVe,hVe,pVe,lVe,fVe].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new lh(a,this)}createCommandManager(){this.commandManager=new Vv({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let r;try{r=kk(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(o){if(!(o instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(o.message))throw o;this.emit("contentError",{editor:this,error:o,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(l=>l.name!=="collaboration"),this.createExtensionManager()}}),r=kk(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=ste(r,this.options.autofocus);this.view=new Hee(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:oh.create({doc:r,selection:n||void 0})});const a=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(a),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const r=this.capturedTransaction;return this.capturedTransaction=null,r}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(o=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(o)});return}const r=this.state.apply(e),n=!this.state.selection.eq(r.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:r}),this.view.updateState(r),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const a=e.getMeta("focus"),i=e.getMeta("blur");a&&this.emit("focus",{editor:this,event:a.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return ute(this.state,e)}isActive(e,r){const n=typeof e=="string"?e:null,a=typeof e=="string"?r:e;return Bze(this.state,n,a)}getJSON(){return this.state.doc.toJSON()}getHTML(){return x_(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:r=` 1380 1381`,textSerializers:n={}}=e||{};return Tze(this.state.doc,{blockSeparator:r,textSerializers:{...rte(this.schema),...n}})}get isEmpty(){return Kv(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,r){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(e,r))||null}$nodes(e,r){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(e,r))||null}$pos(e){const r=this.state.doc.resolve(e);return new eu(r,this)}get $doc(){return this.$pos(0)}}function sf(t){return new qv({find:t.find,handler:({state:e,range:r,match:n})=>{const a=Tt(t.getAttributes,void 0,n);if(a===!1||a===null)return null;const{tr:i}=e,o=n[n.length-1],l=n[0];if(o){const c=l.search(/\S/),u=r.from+l.indexOf(o),d=u+o.length;if(N_(r.from,r.to,e.doc).filter(g=>g.mark.type.excluded.find(y=>y===t.type&&y!==g.mark.type)).filter(g=>g.to>u).length)return null;d<r.to&&i.delete(d,r.to),u>r.from&&i.delete(r.from+c,u);const m=r.from+c+o.length;i.addMark(r.from+c,m,t.type.create(a||{})),i.removeStoredMark(t.type)}}})}function xVe(t){return new qv({find:t.find,handler:({state:e,range:r,match:n})=>{const a=Tt(t.getAttributes,void 0,n)||{},{tr:i}=e,o=r.from;let l=r.to;const c=t.type.create(a);if(n[1]){const u=n[0].lastIndexOf(n[1]);let d=o+u;d>l?d=l:l=d+n[1].length;const h=n[0][n[0].length-1];i.insertText(h,o+n[0].length-1),i.replaceWith(d,l,c)}else if(n[0]){const u=t.type.isInline?o:o-1;i.insert(u,t.type.create(a)).delete(i.mapping.map(o),i.mapping.map(l))}i.scrollIntoView()}})}function Ck(t){return new qv({find:t.find,handler:({state:e,range:r,match:n})=>{const a=e.doc.resolve(r.from),i=Tt(t.getAttributes,void 0,n)||{};if(!a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),t.type))return null;e.tr.delete(r.from,r.to).setBlockType(r.from,r.from,t.type,i)}})}function T0(t){return new qv({find:t.find,handler:({state:e,range:r,match:n,chain:a})=>{const i=Tt(t.getAttributes,void 0,n)||{},o=e.tr.delete(r.from,r.to),c=o.doc.resolve(r.from).blockRange(),u=c&&e_(c,t.type,i);if(!u)return null;if(o.wrap(c,u),t.keepMarks&&t.editor){const{selection:h,storedMarks:m}=e,{splittableMarks:g}=t.editor.extensionManager,b=m||h.$to.parentOffset&&h.$from.marks();if(b){const y=b.filter(v=>
1381g.includes(v.type.name));o.ensureMarks(y)}}if(t.keepAttributes){const h=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";a().updateAttributes(h,i).run()}const d=o.doc.resolve(r.from-1).nodeBefore;d&&d.type===t.type&&yc(o.doc,r.from-1)&&(!t.joinPredicate||t.joinPredicate(n,d))&&o.join(r.from-1)}})}let ha=class $k{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Tt(at(this,"addOptions",{name:this.name}))),this.storage=Tt(at(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new $k(e)}configure(e={}){const r=this.extend({...this.config,addOptions:()=>Wv(this.options,e)});return r.name=this.name,r.parent=this.parent,r}extend(e={}){const r=new $k(e);return r.parent=this,this.child=r,r.name=e.name?e.name:r.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`),r.options=Tt(at(r,"addOptions",{name:r.name})),r.storage=Tt(at(r,"addStorage",{name:r.name,options:r.options})),r}};function Du(t){return new TFe({find:t.find,handler:({state:e,range:r,match:n,pasteEvent:a})=>{const i=Tt(t.getAttributes,void 0,n,a);if(i===!1||i===null)return null;const{tr:o}=e,l=n[n.length-1],c=n[0];let u=r.to;if(l){const d=c.search(/\S/),h=r.from+c.indexOf(l),m=h+l.length;if(N_(r.from,r.to,e.doc).filter(b=>b.mark.type.excluded.find(v=>v===t.type&&v!==b.mark.type)).filter(b=>b.to>h).length)return null;m<r.to&&o.delete(m,r.to),h>r.from&&o.delete(r.from+d,h),u=r.from+d+l.length,o.addMark(r.from+d,u,t.type.create(i||{})),o.removeStoredMark(t.type)}}})}function yVe(t,e){const{selection:r}=t,{$from:n}=r;if(r instanceof bt){const i=n.index();return n.parent.canReplaceWith(i,i+1,e)}let a=n.depth;for(;a>=0;){const i=n.index(a);if(n.node(a).contentMatchAt(i).matchType(e))return!0;a-=1}return!1}function vVe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var dte={exports:{}},a9={};/** 1382 * @license React 1383 * use-sync-external-store-shim.production.min.js 1384 * 1385 * Copyright (c) Facebook, Inc. and its affiliates. 1386 * 1387 * This source code is licensed under the MIT license found in the 1388 * LICENSE file in the root directory of this source tree. 1389 */var Az;function wVe(){if(Az)return a9;Az=1;var t=z;function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,a=t.useEffect,i=t.useLayoutEffect,o=t.useDebugValue;function l(h,m){var g=m(),b=n({inst:{value:g,getSnapshot:m}}),y=b[0].inst,v=b[1];return i(function(){y.value=g,y.getSnapshot=m,c(y)&&v({inst:y})},[h,g,m]),a(function(){return c(y)&&v({inst:y}),h(function(){c(y)&&v({inst:y})})},[h]),o(g),g}function c(h){var m=h.getSnapshot;h=h.value;try{var g=m();return!r(h,g)}catch{return!0}}function u(h,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return a9.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,a9}dte.exports=wVe();var j_=dte.exports;const NVe=(...t)=>e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&(r.current=e)})},jVe=({contentComponent:t})=>{const e=j_.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return z.createElement(z.Fragment,null,Object.values(e))};function kVe(){const t=new Set;let e={};return{subscribe(r){return t.add(r),()=>{t.delete(r)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(r,n){e={...e,[r]:aC.createPortal(n.reactElement,n.element,r)},t.forEach(a=>a())},removeRenderer(r){const n={...e};delete n[r],e=n,t.forEach(a=>a())}}}class SVe extends z.Component{constructor(e){var r;super(e),this.editorContentRef=z.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(!((r=e.editor)===null||r===void 0)&&r.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;const r=this.editorContentRef.current;r.append(...e.options.element.childNodes),e.setOptions({element:r}),e.contentComponent=kVe(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(n=>n.hasContentComponentInitialized?n:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){const e=this.props.editor;if(!e||(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild))return;const r=document.createElement("div");r.append(...e.options.element.childNodes),e.setOptions({element:r})}render(){const{editor:e,innerRef:r,...n}=this.props;return z.createElement(z.Fragment,null,z.createElement("div",{ref:NVe(r,this.editorContentRef),...n}),(e==null?void 0:e.contentComponent)&&z.createElement(jVe,{contentComponent:e.contentComponent}))}}const CVe=w.forwardRef((t,e)=>{const r=z.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return z.createElement(SVe,{key:r,innerRef:e,...t})}),$Ve=z.memo(CVe);var _Ve=function t(e,r){if(e===r)return!0;
1389if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!t(e[a],r[a]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(a of e.entries())if(!r.has(a[0]))return!1;for(a of e.entries())if(!t(a[1],r.get(a[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(a of e.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(n=e.length,n!=r.length)return!1;for(a=n;a--!==0;)if(e[a]!==r[a])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!(o==="_owner"&&e.$$typeof)&&!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r},AVe=vVe(_Ve),hte={exports:{}},s9={};/** 1390 * @license React 1391 * use-sync-external-store-shim/with-selector.production.min.js 1392 * 1393 * Copyright (c) Facebook, Inc. and its affiliates. 1394 * 1395 * This source code is licensed under the MIT license found in the 1396 * LICENSE file in the root directory of this source tree. 1397 */var Ez;function EVe(){if(Ez)return s9;Ez=1;var t=z,e=j_;function r(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var n=typeof Object.is=="function"?Object.is:r,a=e.useSyncExternalStore,i=t.useRef,o=t.useEffect,l=t.useMemo,c=t.useDebugValue;return s9.useSyncExternalStoreWithSelector=function(u,d,h,m,g){var b=i(null);if(b.current===null){var y={hasValue:!1,value:null};b.current=y}else y=b.current;b=l(function(){function N(_){if(!S){if(S=!0,j=_,_=m(_),g!==void 0&&y.hasValue){var O=y.value;if(g(O,_))return $=O}return $=_}if(O=$,n(j,_))return O;var E=m(_);return g!==void 0&&g(O,E)?O:(j=_,$=E)}var S=!1,j,$,C=h===void 0?null:h;return[function(){return N(d())},C===null?void 0:function(){return N(C())}]},[d,h,m,g]);var v=a(u,b[0],b[1]);return o(function(){y.hasValue=!0,y.value=v},[v]),c(v),v},s9}hte.exports=EVe();var OVe=hte.exports;const PVe=typeof window<"u"?w.useLayoutEffect:w.useEffect;class MVe{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const r=()=>{this.transactionNumber+=1,this.subscribers.forEach(a=>a())},n=this.editor;return n.on("transaction",r),()=>{n.off("transaction",r)}}}}function TVe(t){var e;const[r]=w.useState(()=>new MVe(t.editor)),n=OVe.useSyncExternalStoreWithSelector(r.subscribe,r.getSnapshot,r.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:AVe);return PVe(()=>r.watch(t.editor),[t.editor,r]),w.useDebugValue(n),n}const RVe=!1,_k=typeof window>"u",IVe=_k||!!(typeof window<"u"&&window.next);class k_{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(r=>r())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?_k||IVe?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const e={...this.options.current,onBeforeCreate:(...n)=>{var a,i;return(i=(a=this.options.current).onBeforeCreate)===null||i===void 0?void 0:i.call(a,...n)},onBlur:(...n)=>{var a,i;return(i=(a=this.options.current).onBlur)===null||i===void 0?void 0:i.call(a,...n)},onCreate:(...n)=>{var a,i;return(i=(a=this.options.current).onCreate)===null||i===void 0?void 0:i.call(a,...n)},onDestroy:(...n)=>{var a,i;return(i=(a=this.options.current).onDestroy)===null||i===void 0?void 0:i.call(a,...n)},onFocus:(...n)=>{var a,i;return(i=(a=this.options.current).onFocus)===null||i===void 0?void 0:i.call(a,...n)},onSelectionUpdate:(...n)=>{var a,i;return(i=(a=this.options.current).onSelectionUpdate)===null||i===void 0?void 0:i.call(a,...n)},onTransaction:(...n)=>{var a,i;return(i=(a=this.options.current).onTransaction)===null||i===void 0?void 0:i.call(a,...n)},onUpdate:(...n)=>{var a,i;return(i=(a=this.options.current).onUpdate)===null||i===void 0?void 0:i.call(a,...n)},onContentError:(...n)=>{var a,i;return(i=(a=this.options.current).onContentError)===null||i===void 0?void 0:i.call(a,...n)},onDrop:(...n)=>{var a,i;return(i=(a=this.options.current).onDrop)===null||i===void 0?void 0:i.call(a,...n)},onPaste:(...n)=>{var a,i;return(i=(a=this.options.current).onPaste)===null||i===void 0?void 0:i.call(a,...n)}};return new bVe(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,r){return Object.keys(e).every(n=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(n)?!0:n==="extensions"&&e.extensions&&r.extensions?e.extensions.length!==r.extensions.length?!1:e.extensions.every((a,i)=>{var o;return a===((o=r.extensions)===null||o===void 0?void 0:o[i])}):e[n]===r[n])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?k_.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}
1397):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((n,a)=>n===e[a]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,r=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){r&&r.setOptions(this.options.current);return}r&&!r.isDestroyed&&(r.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function DVe(t={},e=[]){const r=w.useRef(t);r.current=t;const[n]=w.useState(()=>new k_(r)),a=j_.useSyncExternalStore(n.subscribe,n.getEditor,n.getServerSnapshot);return w.useDebugValue(a),w.useEffect(n.onRender(e)),TVe({editor:a,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),a}const LVe=w.createContext({editor:null});LVe.Consumer;const BVe=w.createContext({onDragStart:void 0}),HVe=()=>w.useContext(BVe);z.forwardRef((t,e)=>{const{onDragStart:r}=HVe(),n=t.as||"div";return z.createElement(n,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...t.style}})});const FVe=/^\s*>\s$/,zVe=ha.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Tr(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[T0({find:FVe,type:this.type})]}}),VVe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,UVe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,qVe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,WVe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,GVe=eo.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",Tr(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[sf({find:VVe,type:this.type}),sf({find:qVe,type:this.type})]},addPasteRules(){return[Du({find:UVe,type:this.type}),Du({find:WVe,type:this.type})]}}),KVe="listItem",Oz="textStyle",Pz=/^\s*([-+*])\s$/,YVe=ha.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",Tr(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(KVe,this.editor.getAttributes(Oz)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=T0({find:Pz,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=T0({find:Pz,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Oz),editor:this.editor})),[t]}}),XVe=/(^|[^`])`([^`]+)`(?!`)/,JVe=/(^|[^`])`([^`]+)`(?!`)/g,QVe=eo.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",Tr(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}}
vendor: 7,026 bytes, lines 1397-1400
1397,addInputRules(){return[sf({find:XVe,type:this.type})]},addPasteRules(){return[Du({find:JVe,type:this.type})]}}),ZVe=/^```([a-z]+)?[\s\n]$/,eUe=/^~~~([a-z]+)?[\s\n]$/,tUe=ha.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:r}=this.options,i=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(o=>o.startsWith(r)).map(o=>o.replace(r,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",Tr(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,r=e.pos===1;return!t||e.parent.type.name!==this.name?!1:r||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:r}=e,{$from:n,empty:a}=r;if(!a||n.parent.type!==this.type)return!1;const i=n.parentOffset===n.parent.nodeSize-2,o=n.parent.textContent.endsWith(` 1398 1399`);return!i||!o?!1:t.chain().command(({tr:l})=>(l.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:r,doc:n}=e,{$from:a,empty:i}=r;if(!i||a.parent.type!==this.type||!(a.parentOffset===a.parent.nodeSize-2))return!1;const l=a.after();return l===void 0?!1:n.nodeAt(l)?t.commands.command(({tr:u})=>(u.setSelection(St.near(n.resolve(l))),!0)):t.commands.exitCode()}}},addInputRules(){return[Ck({find:ZVe,type:this.type,getAttributes:t=>({language:t[1]})}),Ck({find:eUe,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new on({key:new Gn("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const r=e.clipboardData.getData("text/plain"),n=e.clipboardData.getData("vscode-editor-data"),a=n?JSON.parse(n):void 0,i=a==null?void 0:a.mode;if(!r||!i)return!1;const{tr:o,schema:l}=t.state,c=l.text(r.replace(/\r\n?/g,` 1400`));return o.replaceSelectionWith(this.type.create({language:i},c)),o.selection.$from.parent.type!==this.type&&o.setSelection(gt.near(o.doc.resolve(Math.max(0,o.selection.from-2)))),o.setMeta("paste",!0),t.dispatch(o),!0}}})]}}),rUe=ha.create({name:"doc",topNode:!0,content:"block+"});function nUe(t={}){return new on({view(e){return new aUe(e,t)}})}class aUe{constructor(e,r){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=(n=r.width)!==null&&n!==void 0?n:1,this.color=r.color===!1?void 0:r.color||"black",this.class=r.class,this.handlers=["dragover","dragend","drop","dragleave"].map(a=>{let i=o=>{this[a](o)};return e.dom.addEventListener(a,i),{name:a,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:r})=>this.editorView.dom.removeEventListener(e,r))}update(e,r){if(this.cursorPos!=null&&r.doc!=e.state.doc)if(this.lastDragEvent){let n=this.computeTarget(this.lastDragEvent);n==this.cursorPos?this.updateOverlay():this.setCursor(n)}else this.updateOverlay()}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),r=!e.parent.inlineContent,n,a=this.editorView.dom,i=a.getBoundingClientRect(),o=i.width/a.offsetWidth,l=i.height/a.offsetHeight;if(r){let h=e.nodeBefore,m=e.nodeAfter;if(h||m){let g=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(g){let b=g.getBoundingClientRect(),y=h?b.bottom:b.top;h&&m&&(y=(y+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let v=this.width/2*l;n={left:b.left,right:b.right,top:y-v,bottom:y+v}}}}if(!n){let h=this.editorView.coordsAtPos(this.cursorPos),m=this.width/2*o;n={left:h.left-m,right:h.left+m,top:h.top,bottom:h.bottom}}let c=this.editorView.dom.offsetParent;this.element||(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r);let u,d;if(!c||c==document.body&&getComputedStyle(c).position=="static")u=-pageXOffset,d=-pageYOffset;else{let h=c.getBoundingClientRect(),m=h.width/c.offsetWidth,g=h.height/c.offsetHeight;u=h.left-c.scrollLeft*m,d=h.top-c.scrollTop*g}this.element.style.left=(n.left-u)/o+"px",this.element.style.top=(n.top-d)/l+"px",this.element.style.width=(n.right-n.left)/o+"px",this.element.style.height=(n.bottom-n.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}computeTarget(e){let r=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=r&&r.inside>=0&&this.editorView.state.doc.nodeAt(r.inside),a=n&&n.type.spec.disableDropCursor,i=typeof a=="function"?a(this.editorView,r,e):a;if(!r||i)return null;let o=r.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=XZ(this.editorView.state.doc,o,this.editorView.dragging.slice);l!=null&&(o=l)}return o}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let r=this.computeTarget(e);r!=null&&(this.setCursor(r),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}const sUe=ca.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[nUe(this.options)]}});class Fr extends St{constructor(e){super(e,e)}map(e,r){let n=e.resolve(r.map(this.head));return Fr.valid(n)?new Fr(n):St.near(n)}content(){return Ge.empty}eq(e){return e instanceof Fr&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,r){if(typeof r.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Fr(e.resolve(r.pos))}getBookmark(){return new S_(this.anchor)}static valid(e){let r=e.parent;if(r.inlineContent||!iUe(e)||!oUe(e))return!1;let n=r.type.spec.allowGapCursor;if(n!=null)return n;let a=r.contentMatchAt(e.index()).defaultType;return a&&a.isTextblock}static findGapCursorFrom(e,r,n=!1){e:for(;;){if(!n&&Fr.valid(e))return e;let a=e.pos,i=null;for(let o=e.depth;;o--){let l=e.node(o);if(r>
vendor: 1,367 bytes, line 1400
14000?e.indexAfter(o)<l.childCount:e.index(o)>0){i=l.child(r>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;a+=r;let c=e.doc.resolve(a);if(Fr.valid(c))return c}for(;;){let o=r>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!bt.isSelectable(i)){e=e.doc.resolve(a+i.nodeSize*r),n=!1;continue e}break}i=o,a+=r;let l=e.doc.resolve(a);if(Fr.valid(l))return l}return null}}}Fr.prototype.visible=!1;Fr.findFrom=Fr.findGapCursorFrom;St.jsonID("gapcursor",Fr);class S_{constructor(e){this.pos=e}map(e){return new S_(e.map(this.pos))}resolve(e){let r=e.resolve(this.pos);return Fr.valid(r)?new Fr(r):St.near(r)}}function fte(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function iUe(t){for(let e=t.depth;e>=0;e--){let r=t.index(e),n=t.node(e);if(r==0){if(n.type.spec.isolating)return!0;continue}for(let a=n.child(r-1);;a=a.lastChild){if(a.childCount==0&&!a.inlineContent||fte(a.type))return!0;if(a.inlineContent)return!1}}return!0}function oUe(t){for(let e=t.depth;e>=0;e--){let r=t.indexAfter(e),n=t.node(e);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let a=n.child(r);;a=a.firstChild){if(a.childCount==0&&!a.inlineContent||fte(a.type))return!0;if(a.inlineContent)return!1}}return!0}function lUe(){return new on({props:{decorations:hUe,createSelectionBetween(t,e,r){return e.pos==r.pos&&Fr.valid(r)?new Fr(r):null}
vendor: 3,527 bytes, lines 1400-1401
1400,handleClick:uUe,handleKeyDown:cUe,handleDOMEvents:{beforeinput:dUe}}})}const cUe=h_({ArrowLeft:wb("horiz",-1),ArrowRight:wb("horiz",1),ArrowUp:wb("vert",-1),ArrowDown:wb("vert",1)});function wb(t,e){const r=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(n,a,i){let o=n.selection,l=e>0?o.$to:o.$from,c=o.empty;if(o instanceof gt){if(!i.endOfTextblock(r)||l.depth==0)return!1;c=!1,l=n.doc.resolve(e>0?l.after():l.before())}let u=Fr.findGapCursorFrom(l,e,c);return u?(a&&a(n.tr.setSelection(new Fr(u))),!0):!1}}function uUe(t,e,r){if(!t||!t.editable)return!1;let n=t.state.doc.resolve(e);if(!Fr.valid(n))return!1;let a=t.posAtCoords({left:r.clientX,top:r.clientY});return a&&a.inside>-1&&bt.isSelectable(t.state.doc.nodeAt(a.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Fr(n))),!0)}function dUe(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Fr))return!1;let{$from:r}=t.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(t.state.schema.nodes.text);if(!n)return!1;let a=Ee.empty;for(let o=n.length-1;o>=0;o--)a=Ee.from(n[o].createAndFill(null,a));let i=t.state.tr.replace(r.pos,r.pos,new Ge(a,0,0));return i.setSelection(gt.near(i.doc.resolve(r.pos+1))),t.dispatch(i),!1}function hUe(t){if(!(t.selection instanceof Fr))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Or.create(t.doc,[oa.widget(t.selection.head,e,{key:"gapcursor"})])}const fUe=ca.create({name:"gapCursor",addProseMirrorPlugins(){return[lUe()]},extendNodeSchema(t){var e;const r={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Tt(at(t,"allowGapCursor",r)))!==null&&e!==void 0?e:null}}}),pUe=ha.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Tr(this.options.HTMLAttributes,t)]},renderText(){return` 1401`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:r,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:a,storedMarks:i}=r;if(a.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:l}=n.extensionManager,c=i||a.$to.parentOffset&&a.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:d})=>{if(d&&c&&o){const h=c.filter(m=>l.includes(m.type.name));u.ensureMarks(h)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),mUe=ha.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,Tr(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>Ck({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}}
1401)\\s$`),type:this.type,getAttributes:{level:t}}))}});var z2=200,Sn=function(){};Sn.prototype.append=function(e){return e.length?(e=Sn.from(e),!this.length&&e||e.length<z2&&this.leafAppend(e)||this.length<z2&&e.leafPrepend(this)||this.appendInner(e)):this};Sn.prototype.prepend=function(e){return e.length?Sn.from(e).append(this):this};Sn.prototype.appendInner=function(e){return new gUe(this,e)};Sn.prototype.slice=function(e,r){return e===void 0&&(e=0),r===void 0&&(r=this.length),e>=r?Sn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,r))};Sn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};Sn.prototype.forEach=function(e,r,n){r===void 0&&(r=0),n===void 0&&(n=this.length),r<=n?this.forEachInner(e,r,n,0):this.forEachInvertedInner(e,r,n,0)};Sn.prototype.map=function(e,r,n){r===void 0&&(r=0),n===void 0&&(n=this.length);var a=[];return this.forEach(function(i,o){return a.push(e(i,o))},r,n),a};Sn.from=function(e){return e instanceof Sn?e:e&&e.length?new pte(e):Sn.empty};var pte=(function(t){function e(n){t.call(this),this.values=n}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(a,i){return a==0&&i==this.length?this:new e(this.values.slice(a,i))},e.prototype.getInner=function(a){return this.values[a]},e.prototype.forEachInner=function(a,i,o,l){for(var c=i;c<o;c++)if(a(this.values[c],l+c)===!1)return!1},e.prototype.forEachInvertedInner=function(a,i,o,l){for(var c=i-1;c>=o;c--)if(a(this.values[c],l+c)===!1)return!1},e.prototype.leafAppend=function(a){if(this.length+a.length<=z2)return new e(this.values.concat(a.flatten()))},e.prototype.leafPrepend=function(a){if(this.length+a.length<=z2)return new e(a.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(e.prototype,r),e})(Sn);Sn.empty=new pte([]);var gUe=(function(t){function e(r,n){t.call(this),this.left=r,this.right=n,this.length=r.length+n.length,this.depth=Math.max(r.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},e.prototype.forEachInner=function(n,a,i,o){var l=this.left.length;if(a<l&&this.left.forEachInner(n,a,Math.min(i,l),o)===!1||i>l&&this.right.forEachInner(n,Math.max(a-l,0),Math.min(this.length,i)-l,o+l)===!1)return!1},e.prototype.forEachInvertedInner=function(n,a,i,o){var l=this.left.length;if(a>l&&this.right.forEachInvertedInner(n,a-l,Math.max(i,l)-l,o+l)===!1||i<l&&this.left.forEachInvertedInner(n,Math.min(a,l),i,o)===!1)return!1},e.prototype.sliceInner=function(n,a){if(n==0&&a==this.length)return this;var i=this.left.length;return a<=i?this.left.slice(n,a):n>=i?this.right.slice(n-i,a-i):this.left.slice(n,i).append(this.right.slice(0,a-i))},e.prototype.leafAppend=function(n){var a=this.right.leafAppend(n);if(a)return new e(this.left,a)},e.prototype.leafPrepend=function(n){var a=this.left.leafPrepend(n);if(a)return new e(a,this.right)},e.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new e(this.left,new e(this.right,n)):new e(this,n)},e})(Sn);const bUe=500;class di{constructor(e,r){this.items=e,this.eventCount=r}popEvent(e,r){if(this.eventCount==0)return null;let n=this.items.length;for(;;n--)if(this.items.get(n-1).selection){--n;break}let a,i;r&&(a=this.remapping(n,this.items.length),i=a.maps.length);let o=e.tr,l,c,u=[],d=[];return this.items.forEach((h,m)=>{if(!h.step){a||(a=this.remapping(n,m+1),i=a.maps.length),i--,d.push(h);return}if(a){d.push(new Pi(h.map));let g=h.step.map(a.slice(i)),b;g&&o.maybeStep(g).doc&&(b=o.mapping.maps[o.mapping.maps.length-1],u.push(new Pi(b,void 0,void 0,u.length+d.length))),i--,b&&a.appendMap(b,i)}else o.maybeStep(h.step);if(h.selection)return l=a?h.selection.map(a.slice(i)):h.selection,c=new di(this.items.slice(0,n).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:o,selection:l}}addTransform(e,r,n,a){let i=[],o=this.eventCount,l=this.items,c=!a&&l.length?l.get(l.length-1):null;for(let d=0;d<e.steps.length;d++){let h=e.steps[d].invert(e.docs[d]),m=new Pi(e.mapping.maps[d],h,r),g;(g=c&&c.merge(m))&&(m=g,d?i.pop():l=l.slice(0,l.length-1)),i.push(m),r&&(
vendor: 1,600 bytes, line 1401
1401o++,r=void 0),a||(c=m)}let u=o-n.depth;return u>yUe&&(l=xUe(l,u),o-=u),new di(l.append(i),o)}remapping(e,r){let n=new $0;return this.items.forEach((a,i)=>{let o=a.mirrorOffset!=null&&i-a.mirrorOffset>=e?n.maps.length-a.mirrorOffset:void 0;n.appendMap(a.map,o)},e,r),n}addMaps(e){return this.eventCount==0?this:new di(this.items.append(e.map(r=>new Pi(r))),this.eventCount)}rebased(e,r){if(!this.eventCount)return this;let n=[],a=Math.max(0,this.items.length-r),i=e.mapping,o=e.steps.length,l=this.eventCount;this.items.forEach(m=>{m.selection&&l--},a);let c=r;this.items.forEach(m=>{let g=i.getMirror(--c);if(g==null)return;o=Math.min(o,g);let b=i.maps[g];if(m.step){let y=e.steps[g].invert(e.docs[g]),v=m.selection&&m.selection.map(i.slice(c+1,g));v&&l++,n.push(new Pi(b,y,v))}else n.push(new Pi(b))},a);let u=[];for(let m=r;m<o;m++)u.push(new Pi(i.maps[m]));let d=this.items.slice(0,a).append(u).append(n),h=new di(d,l);return h.emptyItemCount()>bUe&&(h=h.compress(this.items.length-n.length)),h}emptyItemCount(){let e=0;return this.items.forEach(r=>{r.step||e++}),e}compress(e=this.items.length){let r=this.remapping(0,e),n=r.maps.length,a=[],i=0;return this.items.forEach((o,l)=>{if(l>=e)a.push(o),o.selection&&i++;else if(o.step){let c=o.step.map(r.slice(n)),u=c&&c.getMap();if(n--,u&&r.appendMap(u,n),c){let d=o.selection&&o.selection.map(r.slice(n));d&&i++;let h=new Pi(u.invert(),c,d),m,g=a.length-1;(m=a.length&&a[g].merge(h))?a[g]=m:a.push(h)}}else o.map&&n--},this.items.length,0),new di(Sn.from(a.reverse()),i)}}di.empty=new di(Sn.empty,0);function xUe(t,e){let r;return t.forEach((n,a)=>
vendor: 8,685 bytes, line 1401
1401{if(n.selection&&e--==0)return r=a,!1}),t.slice(r)}class Pi{constructor(e,r,n,a){this.map=e,this.step=r,this.selection=n,this.mirrorOffset=a}merge(e){if(this.step&&e.step&&!e.selection){let r=e.step.merge(this.step);if(r)return new Pi(r.getMap().invert(),r,this.selection)}}}class Ll{constructor(e,r,n,a,i){this.done=e,this.undone=r,this.prevRanges=n,this.prevTime=a,this.prevComposition=i}}const yUe=20;function vUe(t,e,r,n){let a=r.getMeta(ku),i;if(a)return a.historyState;r.getMeta(jUe)&&(t=new Ll(t.done,t.undone,null,0,-1));let o=r.getMeta("appendedTransaction");if(r.steps.length==0)return t;if(o&&o.getMeta(ku))return o.getMeta(ku).redo?new Ll(t.done.addTransform(r,void 0,n,rx(e)),t.undone,Mz(r.mapping.maps),t.prevTime,t.prevComposition):new Ll(t.done,t.undone.addTransform(r,void 0,n,rx(e)),null,t.prevTime,t.prevComposition);if(r.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let l=r.getMeta("composition"),c=t.prevTime==0||!o&&t.prevComposition!=l&&(t.prevTime<(r.time||0)-n.newGroupDelay||!wUe(r,t.prevRanges)),u=o?i9(t.prevRanges,r.mapping):Mz(r.mapping.maps);return new Ll(t.done.addTransform(r,c?e.selection.getBookmark():void 0,n,rx(e)),di.empty,u,r.time,l??t.prevComposition)}else return(i=r.getMeta("rebased"))?new Ll(t.done.rebased(r,i),t.undone.rebased(r,i),i9(t.prevRanges,r.mapping),t.prevTime,t.prevComposition):new Ll(t.done.addMaps(r.mapping.maps),t.undone.addMaps(r.mapping.maps),i9(t.prevRanges,r.mapping),t.prevTime,t.prevComposition)}function wUe(t,e){if(!e)return!1;if(!t.docChanged)return!0;let r=!1;return t.mapping.maps[0].forEach((n,a)=>{for(let i=0;i<e.length;i+=2)n<=e[i+1]&&a>=e[i]&&(r=!0)}),r}function Mz(t){let e=[];for(let r=t.length-1;r>=0&&e.length==0;r--)t[r].forEach((n,a,i,o)=>e.push(i,o));return e}function i9(t,e){if(!t)return null;let r=[];for(let n=0;n<t.length;n+=2){let a=e.map(t[n],1),i=e.map(t[n+1],-1);a<=i&&r.push(a,i)}return r}function NUe(t,e,r){let n=rx(e),a=ku.get(e).spec.config,i=(r?t.undone:t.done).popEvent(e,n);if(!i)return null;let o=i.selection.resolve(i.transform.doc),l=(r?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),a,n),c=new Ll(r?l:i.remaining,r?i.remaining:l,null,0,-1);return i.transform.setSelection(o).setMeta(ku,{redo:r,historyState:c})}let o9=!1,Tz=null;function rx(t){let e=t.plugins;if(Tz!=e){o9=!1,Tz=e;for(let r=0;r<e.length;r++)if(e[r].spec.historyPreserveItems){o9=!0;break}}return o9}const ku=new Gn("history"),jUe=new Gn("closeHistory");function kUe(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new on({key:ku,state:{init(){return new Ll(di.empty,di.empty,null,0,-1)},apply(e,r,n){return vUe(r,n,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,r){let n=r.inputType,a=n=="historyUndo"?gte:n=="historyRedo"?bte:null;return!a||!e.editable?!1:(r.preventDefault(),a(e.state,e.dispatch))}}}})}function mte(t,e){return(r,n)=>{let a=ku.getState(r);if(!a||(t?a.undone:a.done).eventCount==0)return!1;if(n){let i=NUe(a,r,t);i&&n(e?i.scrollIntoView():i)}return!0}}const gte=mte(!1,!0),bte=mte(!0,!0),SUe=ca.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>gte(t,e),redo:()=>({state:t,dispatch:e})=>bte(t,e)}},addProseMirrorPlugins(){return[kUe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}}),CUe=ha.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",Tr(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{if(!yVe(e,e.schema.nodes[this.name]))return!1;const{selection:r}=e,{$from:n,$to:a}=r,i=t();return n.parentOffset===0?i.insertContentAt({from:Math.max(n.pos-1,0),to:a.pos},{type:this.name}):Hze(r)?i.insertContentAt(a.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({tr:o,dispatch:l})=>{var c;if(l){const{$to:u}=o.selection,d=u.end();if(u.nodeAfter)u.nodeAfter.isTextblock?o.setSelection(gt.create(o.doc,u.pos+1)):u.nodeAfter.isBlock?o.setSelection(bt.create(o.doc,u.pos)):o.setSelection(gt.create(o.doc,u.pos));else{const h=(c=u.parent.type.contentMatch.defaultType)===null||c===void 0?void 0:c.create();h&&(o.insert(d,h),o.setSelection(gt.create(o.doc,d+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[xVe({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.type})]}}),$Ue=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,_Ue=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,AUe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,EUe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,OUe=eo.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Tr(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[sf({find:$Ue,type:this.type}),sf({find:AUe,type:this.type})]},addPasteRules(){return[Du({find:_Ue,type:this.type}),Du({find:EUe,type:this.type})]}}),PUe=ha.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Tr(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),MUe="listItem",Rz="textStyle",Iz=/^(\d+)\.\s$/,TUe=ha.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...r}=t;return e===1?["ol",Tr(this.options.HTMLAttributes,r),0]:["ol",Tr(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(MUe,this.editor.getAttributes(Rz)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=T0({find:Iz,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,r)=>r.childCount+r.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=T0({find:Iz,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Rz)}),joinPredicate:(e,r)=>r.childCount+r.attrs.start===+e[1],editor:this.editor})),[t]}}),RUe=ha.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Tr(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),IUe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,DUe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,LUe=eo.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Tr(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[sf({find:IUe,type:this.type})]}
1401,addPasteRules(){return[Du({find:DUe,type:this.type})]}}),BUe=ha.create({name:"text",group:"inline"}),HUe=ca.create({name:"starterKit",addExtensions(){const t=[];return this.options.bold!==!1&&t.push(GVe.configure(this.options.bold)),this.options.blockquote!==!1&&t.push(zVe.configure(this.options.blockquote)),this.options.bulletList!==!1&&t.push(YVe.configure(this.options.bulletList)),this.options.code!==!1&&t.push(QVe.configure(this.options.code)),this.options.codeBlock!==!1&&t.push(tUe.configure(this.options.codeBlock)),this.options.document!==!1&&t.push(rUe.configure(this.options.document)),this.options.dropcursor!==!1&&t.push(sUe.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&t.push(fUe.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&t.push(pUe.configure(this.options.hardBreak)),this.options.heading!==!1&&t.push(mUe.configure(this.options.heading)),this.options.history!==!1&&t.push(SUe.configure(this.options.history)),this.options.horizontalRule!==!1&&t.push(CUe.configure(this.options.horizontalRule)),this.options.italic!==!1&&t.push(OUe.configure(this.options.italic)),this.options.listItem!==!1&&t.push(PUe.configure(this.options.listItem)),this.options.orderedList!==!1&&t.push(TUe.configure(this.options.orderedList)),this.options.paragraph!==!1&&t.push(RUe.configure(this.options.paragraph)),this.options.strike!==!1&&t.push(LUe.configure(this.options.strike)),this.options.text!==!1&&t.push(BUe.configure(this.options.text)),t}}),FUe="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
1401ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",zUe="ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
1401ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5را٠ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5٠غرب5٠ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2٠اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ 3٠صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4Ù٠راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å «å¦2å ¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å 2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2",Ak="numeric",Ek="ascii",Ok="alpha",xm="asciinumeric",Jp="alphanumeric",Pk="domain",xte="emoji",VUe="scheme",UUe="slashscheme",l9="whitespace";function qUe(t,e){return t in e||(e[t]=[]),e[t]}function fu(t,e,r){e[Ak]&&(e[xm]=!0,e[Jp]=!0),e[Ek]&&(e[xm]=!0,e[Ok]=!0),e[xm]&&(e[Jp]=!0),e[Ok]&&(e[Jp]=!0),e[Jp]&&(e[Pk]=!0),e[xte]&&(e[Pk]=!0);for(const n in e){const a=qUe(n,r);a.indexOf(t)<0&&a.push(t)}}function WUe(t,e){const r={};for(const n in e)e[n].indexOf(t)>=0&&(r[n]=!0);return r}function Ia(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}Ia.groups={};Ia.prototype={accepts(){return!!this.t},go(t){const e=this,r=e.j[t];if(r)return r;for(let n=0;n<e.jr.length;n++){const a=e.jr[n][0],i=e.jr[n][1];if(i&&a.test(t))return i}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,r,n){for(let a=0;a<t.length;a++)this.tt(t[a],e,r,n)},tr(t,e,r,n){n=n||Ia.groups;let a;return e&&e.j?a=e:(a=new Ia(e),r&&n&&fu(e,r,n)),this.jr.push([t,a]),a},ts(t,e,r,n){let a=this;const i=t.length;if(!i)return a;for(let o=0;o<i-1;o++)a=a.tt(t[o]);return a.tt(t[i-1],e,r,n)},tt(t,e,r,n){n=n||Ia.groups;const a=this;if(e&&e.j)return a.j[t]=e,e;const i=e;let o,l=a.go(t);if(l?(o=new Ia,Object.assign(o.j,l.j),o.jr.push.apply(o.jr,l.jr),o.jd=l.jd,o.t=l.t):o=new Ia,i){if(n)if(o.t&&typeof o.t=="string"){const c=Object.assign(WUe(o.t,n),r);fu(i,c,n)}else r&&fu(i,r,n);o.t=i}return a.j[t]=o,o}};const Rt=(t,e,r,n,a)=>t.ta(e,r,n,a),Dr=(t,e,r,n,a)=>t.tr(e,r,n,a),Dz=(t,e,r,n,a)=>t.ts(e,r,n,a),De=(t,e,r,n,a)=>t.tt(e,r,n,a),Co="WORD",Mk="UWORD",yte="ASCIINUMERICAL",vte="ALPHANUMERICAL",R0="LOCALHOST",Tk="TLD",Rk="UTLD",nx="SCHEME",Xd="SLASH_SCHEME",C_="NUM",Ik="WS",$_="NL",ym="OPENBRACE",vm="CLOSEBRACE",V2="OPENBRACKET",U2="CLOSEBRACKET",q2="OPENPAREN",W2="CLOSEPAREN",G2="OPENANGLEBRACKET",K2="CLOSEANGLEBRACKET",Y2="FULLWIDTHLEFTPAREN",X2="FULLWIDTHRIGHTPAREN",J2="LEFTCORNERBRACKET",Q2="RIGHTCORNERBRACKET",Z2="LEFTWHITECORNERBRACKET",ey="RIGHTWHITECORNERBRACKET",ty="FULLWIDTHLESSTHAN",ry="FULLWIDTHGREATERTHAN",ny="AMPERSAND",ay="APOSTROPHE",sy="ASTERISK",Bl="AT",iy="BACKSLASH",oy="BACKTICK",ly="CARET",pu="COLON",__="COMMA",cy="DOLLAR",Mi="DOT",uy="EQUALS",A_="EXCLAMATION",Cs="HYPHEN",wm="PERCENT",dy="PIPE",hy="PLUS",fy="POUND",Nm="QUERY",E_="QUOTE",wte="FULLWIDTHMIDDLEDOT",O_="SEMI",Ti="SLASH",jm="TILDE",py="UNDERSCORE",Nte="EMOJI",my="SYM";var jte=Object.freeze({__proto__:null,ALPHANUMERICAL:vte,AMPERSAND:ny,APOSTROPHE:ay,ASCIINUMERICAL:yte,ASTERISK:sy,AT:Bl,BACKSLASH:iy,BACKTICK:oy,CARET:ly,CLOSEANGLEBRACKET:K2,CLOSEBRACE:vm,CLOSEBRACKET:U2,CLOSEPAREN:W2,COLON:pu,COMMA:__,DOLLAR:cy,DOT:Mi,EMOJI:Nte,EQUALS:uy,EXCLAMATION:A_,FULLWIDTHGREATERTHAN:ry,FULLWIDTHLEFTPAREN:Y2,FULLWIDTHLESSTHAN:ty,FULLWIDTHMIDDLEDOT:wte,FULLWIDTHRIGHTPAREN:X2,HYPHEN:Cs,LEFTCORNERBRACKET:J2,LEFTWHITECORNERBRACKET:Z2,LOCALHOST:R0,NL:$_,NUM:C_,OPENANGLEBRACKET:G2,OPENBRACE:ym,OPENBRACKET:V2,OPENPAREN:q2,PERCENT:wm,PIPE:dy,PLUS:hy,POUND:fy,QUERY:Nm,QUOTE:E_,RIGHTCORNERBRACKET:Q2,RIGHTWHITECORNERBRACKET:ey,SCHEME:nx,SEMI:O_,SLASH:Ti,SLASH_SCHEME:Xd,SYM:my,TILDE:jm,TLD:Tk,UNDERSCORE:py,UTLD:Rk,UWORD:Mk,WORD:Co,WS:Ik});const jo=/[a-z]/,Dp=new RegExp("\\p{L}","u"),c9=new RegExp("\\p{Emoji}","u"),ko=/\d/,u9=/\s/,Lz="\r",d9=` 1402`,GUe="ï¸",KUe="â",h9="";let Nb=null,jb=null;function YUe(t=[]){const e={};Ia.groups=e;const r=new Ia;Nb==null&&(Nb=Bz(FUe)),jb==null&&(jb=Bz(zUe)),De(r,"'",ay),De(r,"{",ym),De(r,"}",vm),De(r,"[",V2),De(r,"]",U2),De(r,"(",q2),De(r,")",W2),De(r,"<",G2),De(r,">",K2),De(r,"ï¼",Y2),De(r,"ï¼",X2),De(r,"ã",J2),De(r,"ã",Q2),De(r,"ã",Z2),De(r,"ã",ey),De(r,"ï¼",ty),De(r,"ï¼",ry),De(r,"&",ny),De(r,"*",sy),De(r,"@",Bl),De(r,"`",oy),De(r,"^",ly),De(r,":",pu),De(r,",",__),De(r,"$",cy),De(r,".",Mi),De(r,"=",uy),De(r,"!",A_),De(r,"-",Cs),De(r,"%",wm),De(r,"|",dy),De(r,"+",hy),De(r,"#",fy),De(r,"?",Nm),De(r,'"',E_),De(r,"/",Ti),De(r,";",O_),De(r,"~",jm),De(r,"_",py),De(r,"\\",iy),De(r,"ã»",wte);const n=Dr(r,ko,C_,{[Ak]:!0});Dr(n,ko,n);const a=Dr(n,jo,yte,{[xm]:!0}),i=Dr(n,Dp,vte,{[Jp]:!0}
vendor: 9,298 bytes, lines 1402-1405
1402),o=Dr(r,jo,Co,{[Ek]:!0});Dr(o,ko,a),Dr(o,jo,o),Dr(a,ko,a),Dr(a,jo,a);const l=Dr(r,Dp,Mk,{[Ok]:!0});Dr(l,jo),Dr(l,ko,i),Dr(l,Dp,l),Dr(i,ko,i),Dr(i,jo),Dr(i,Dp,i);const c=De(r,d9,$_,{[l9]:!0}),u=De(r,Lz,Ik,{[l9]:!0}),d=Dr(r,u9,Ik,{[l9]:!0});De(r,h9,d),De(u,d9,c),De(u,h9,d),Dr(u,u9,d),De(d,Lz),De(d,d9),Dr(d,u9,d),De(d,h9,d);const h=Dr(r,c9,Nte,{[xte]:!0});De(h,"#"),Dr(h,c9,h),De(h,GUe,h);const m=De(h,KUe);De(m,"#"),Dr(m,c9,h);const g=[[jo,o],[ko,a]],b=[[jo,null],[Dp,l],[ko,i]];for(let y=0;y<Nb.length;y++)Al(r,Nb[y],Tk,Co,g);for(let y=0;y<jb.length;y++)Al(r,jb[y],Rk,Mk,b);fu(Tk,{tld:!0,ascii:!0},e),fu(Rk,{utld:!0,alpha:!0},e),Al(r,"file",nx,Co,g),Al(r,"mailto",nx,Co,g),Al(r,"http",Xd,Co,g),Al(r,"https",Xd,Co,g),Al(r,"ftp",Xd,Co,g),Al(r,"ftps",Xd,Co,g),fu(nx,{scheme:!0,ascii:!0},e),fu(Xd,{slashscheme:!0,ascii:!0},e),t=t.sort((y,v)=>y[0]>v[0]?1:-1);for(let y=0;y<t.length;y++){const v=t[y][0],S=t[y][1]?{[VUe]:!0}:{[UUe]:!0};v.indexOf("-")>=0?S[Pk]=!0:jo.test(v)?ko.test(v)?S[xm]=!0:S[Ek]=!0:S[Ak]=!0,Dz(r,v,v,S)}return Dz(r,"localhost",R0,{ascii:!0}),r.jd=new Ia(my),{start:r,tokens:Object.assign({groups:e},jte)}}function kte(t,e){const r=XUe(e.replace(/[A-Z]/g,l=>l.toLowerCase())),n=r.length,a=[];let i=0,o=0;for(;o<n;){let l=t,c=null,u=0,d=null,h=-1,m=-1;for(;o<n&&(c=l.go(r[o]));)l=c,l.accepts()?(h=0,m=0,d=l):h>=0&&(h+=r[o].length,m++),u+=r[o].length,i+=r[o].length,o++;i-=h,o-=m,u-=h,a.push({t:d.t,v:e.slice(i-u,i),s:i-u,e:i})}return a}function XUe(t){const e=[],r=t.length;let n=0;for(;n<r;){let a=t.charCodeAt(n),i,o=a<55296||a>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?t[n]:t.slice(n,n+2);e.push(o),n+=o.length}return e}function Al(t,e,r,n,a){let i;const o=e.length;for(let l=0;l<o-1;l++){const c=e[l];t.j[c]?i=t.j[c]:(i=new Ia(n),i.jr=a.slice(),t.j[c]=i),t=i}return i=new Ia(r),i.jr=a.slice(),t.j[e[o-1]]=i,i}function Bz(t){const e=[],r=[];let n=0,a="0123456789";for(;n<t.length;){let i=0;for(;a.indexOf(t[n+i])>=0;)i++;if(i>0){e.push(r.join(""));for(let o=parseInt(t.substring(n,n+i),10);o>0;o--)r.pop();n+=i}else r.push(t[n]),n++}return e}const I0={defaultProtocol:"http",events:null,format:Hz,formatHref:Hz,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function P_(t,e=null){let r=Object.assign({},I0);t&&(r=Object.assign(r,t instanceof P_?t.o:t));const n=r.ignoreTags,a=[];for(let i=0;i<n.length;i++)a.push(n[i].toUpperCase());this.o=r,e&&(this.defaultRender=e),this.ignoreTags=a}P_.prototype={o:I0,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,r){const n=e!=null;let a=this.o[t];return a&&(typeof a=="object"?(a=r.t in a?a[r.t]:I0[t],typeof a=="function"&&n&&(a=a(e,r))):typeof a=="function"&&n&&(a=a(e,r.t,r)),a)},getObj(t,e,r){let n=this.o[t];return typeof n=="function"&&e!=null&&(n=n(e,r.t,r)),n},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function Hz(t){return t}function Ste(t,e){this.t="token",this.v=t,this.tk=e}Ste.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),r=t.get("truncate",e,this),n=t.get("format",e,this);return r&&n.length>r?n.substring(0,r)+"â¦":n},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=I0.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,r=this.toHref(t.get("defaultProtocol")),n=t.get("formatHref",r,this),a=t.get("tagName",r,e),i=this.toFormattedString(t),o={},l=t.get("className",r,e),c=t.get("target",r,e),u=t.get("rel",r,e),d=t.getObj("attributes",r,e),h=t.getObj("events",r,e);return o.href=n,l&&(o.class=l),c&&(o.target=c),u&&(o.rel=u),d&&Object.assign(o,d),{tagName:a,attributes:o,content:i,eventListeners:h}}};function Yv(t,e){class r extends Ste{constructor(a,i){super(a,i),this.t=t}}for(const n in e)r.prototype[n]=e[n];return r.t=t,r}const JUe=Yv("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Fz=Yv("text"),QUe=Yv("nl"),kb=Yv("url",{isLink:!0,toHref(t=I0.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==R0&&t[1].t===pu}}),ks=t=>new Ia(t);function ZUe({groups:t}){const e=t.domain.concat([ny,sy,Bl,iy,oy,ly,cy,uy,Cs,C_,wm,dy,hy,fy,Ti,my,jm,py]),r=[ay,pu,__,Mi,A_,wm,Nm,E_,O_,G2,K2,ym,vm,U2,V2,q2,W2,Y2,X2,J2,Q2,Z2,ey,ty,ry],n=[ny,ay,sy,iy,oy,ly,cy,uy,Cs,ym,vm,wm,dy,hy,fy,Nm,Ti,my,jm,py],a=ks(),i=De(a,jm);Rt(i,n,i),Rt(i,t.domain,i);const o=ks(),l=ks(),c=ks();Rt(a,t.domain,o),Rt(a,t.scheme,l),Rt(a,t.slashscheme,c),Rt(o,n,i),Rt(o,t.domain,o);const u=De(o,Bl);De(i,Bl,u),De(l,Bl,u),De(c,Bl,u);const d=De(i,Mi);Rt(d,n,i),Rt(d,t.domain,i);const h=ks();Rt(u,t.domain,h),Rt(h,t.domain,h);const m=De(h,Mi);Rt(m,t.domain,h);const g=ks(JUe);Rt(m,t.tld,g),Rt(m,t.utld,g),De(u,R0,g);const b=De(h,Cs);De(b,Cs,b),Rt(b,t.domain,h),Rt(g,t.domain,h),De(g,Mi,m),De(g,Cs,b);const y=De(o,Cs),v=De(o,Mi);De(y,Cs,y),Rt(y,t.domain,o),Rt(v,n,i),Rt(v,t.domain,o);const N=ks(kb);Rt(v,t.tld,N),Rt(v,t.utld,N),Rt(N,t.domain,o),Rt(N,n,i),De(N,Mi,v),De(N,Cs,y),De(N,Bl,u);const S=De(N,pu),j=ks(kb);Rt(S,t.numeric,j);const $=ks(kb),C=ks();Rt($,e,$),Rt($,r,C),Rt(C,e,$),Rt(C,r,C),De(N,Ti,$),De(j,Ti,$);const _=De(l,pu),O=De(c,pu),E=De(O,Ti),P=De(E,Ti);Rt(l,t.domain,o),De(l,Mi,v),De(l,Cs,y),Rt(c,t.domain,o),De(c,Mi,v),De(c,Cs,y),Rt(_,t.domain,$),De(_,Ti,$),De(_,Nm,$),Rt(P,t.domain,$),Rt(P,e,$),De(P,Ti,$);const T=[[ym,vm],[V2,U2],[q2,W2],[G2,K2],[Y2,X2],[J2,Q2],[Z2,ey],[ty,ry]];for(let I=0;I<T.length;I++){const[R,F]=T[I],L=De($,R);De(C,R,L);const q=ks(kb);Rt(L,e,q);const G=ks();Rt(L,r,G),De(L,F,$),Rt(q,e,q),Rt(q,r,G),Rt(G,e,q),Rt(G,r,G),De(q,F,$),De(G,F,$)}return De(a,R0,N),De(a,$_,QUe),{start:a,tokens:jte}}function eqe(t,e,r){let n=r.length,a=0,i=[],o=[];for(;a<n;){let l=t,c=null,u=null,d=0,h=null,m=-1;for(;a<n&&!(c=l.go(r[a].t));)o.push(r[a++]);for(;a<n&&(u=c||l.go(r[a].t));)c=null,l=u,l.accepts()?(m=0,h=l):m>=0&&m++,a++,d++;if(m<0)a-=d,a<n&&(o.push(r[a]),a++);else{o.length>0&&(i.push(f9(Fz,e,o)),o=[]),a-=m,d-=m;const g=h.t,b=r.slice(a-d,a);i.push(f9(g,e,b))}}return o.length>0&&i.push(f9(Fz,e,o)),i}function f9(t,e,r){const n=r[0].s,a=r[r.length-1].e,i=e.slice(n,a);return new t(i,r)}const tqe=typeof console<"u"&&console&&console.warn||(()=>{}),rqe="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",vr={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function nqe(){return Ia.groups={},vr.scanner=null,vr.parser=null,vr.tokenQueue=[],vr.pluginQueue=[],vr.customSchemes=[],vr.initialized=!1,vr}function zz(t,e=!1){if(vr.initialized&&tqe(`linkifyjs: already initialized - will not register custom scheme "${t}" ${rqe}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format. 14031. Must only contain digits, lowercase ASCII letters or "-" 14042. Cannot start or end with "-" 14053. "-" cannot repeat`);vr.customSchemes.push([t,e])}function aqe(){vr.scanner=YUe(vr.customSchemes);for(let t=0;t<vr.tokenQueue.length;t++)vr.tokenQueue[t][1]({scanner:vr.scanner});vr.parser=ZUe(vr.scanner.tokens);for(let t=0;t<vr.pluginQueue.length;t++)vr.pluginQueue[t][1]({scanner:vr.scanner,parser:vr.parser});return vr.initialized=!0,vr}function M_(t){return vr.initialized||aqe(),eqe(vr.parser.start,t,kte(vr.scanner.start,t))}M_.scan=kte;function Cte(t,e=null,r=null){if(e&&typeof e=="object"){if(r)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);r=e,e=null}const n=new P_(r),a=M_(t),i=[];for(let o=0;o<a.length;o++){const l=a[o];l.isLink&&(!e||l.t===e)&&n.check(l)&&i.push(l.toFormattedObject(n))}return i}const T_="[\0-  áá â-\u2029âã]",sqe=new RegExp(T_),iqe=new RegExp(`${T_}$`),oqe=new RegExp(T_,"g");function lqe(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function cqe(t){return new on({key:new Gn("autolink"),appendTransaction:(e,r,n)=>{const a=e.some(u=>u.docChanged)&&!r.doc.eq(n.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!a||i)return;const{tr:o}=n,l=Oze(r.doc,[...e]);if(Lze(l).forEach(({newRange:u})=>{const d=Mze(n.doc,u,g=>g.isTextblock);let h,m;if(d.length>1)h=d[0],m=n.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ");else if(d.length){const g=n.doc.textBetween(u.from,u.to," "," ");if(!iqe.test(g))return;h=d[0],m=n.doc.textBetween(h.pos,u.to,void 0," ")}if(h&&m){const g=m.split(sqe).filter(Boolean);if(g.length<=0)return!1;const b=g[g.length-1],y=h.pos+m.lastIndexOf(b);if(!b)return!1;const v=M_(b).map(N=>N.toObject(t.defaultProtocol));if(!lqe(v))return!1;v.filter(N=>N.isLink).map(N=>({...N,from:y+N.start+1,to:y+N.end+1})).filter(N=>n.schema.marks.code?!n.doc.rangeHasMark(N.from,N.to,n.schema.marks.code):!0).filter(N=>t.validate(N.value)).filter(N=>
vendor: 3,804 bytes, line 1405
1405t.shouldAutoLink(N.value)).forEach(N=>{N_(N.from,N.to,n.doc).some(S=>S.mark.type===t.type)||o.addMark(N.from,N.to,t.type.create({href:N.href}))})}}),!!o.steps.length)return o}})}function uqe(t){return new on({key:new Gn("handleClickLink"),props:{handleClick:(e,r,n)=>{var a,i;if(n.button!==0||!e.editable)return!1;let o=n.target;const l=[];for(;o.nodeName!=="DIV";)l.push(o),o=o.parentNode;if(!l.find(m=>m.nodeName==="A"))return!1;const c=ute(e.state,t.type.name),u=n.target,d=(a=u==null?void 0:u.href)!==null&&a!==void 0?a:c.href,h=(i=u==null?void 0:u.target)!==null&&i!==void 0?i:c.target;return u&&d?(window.open(d,h),!0):!1}}})}function dqe(t){return new on({key:new Gn("handlePasteLink"),props:{handlePaste:(e,r,n)=>{const{state:a}=e,{selection:i}=a,{empty:o}=i;if(o)return!1;let l="";n.content.forEach(u=>{l+=u.textContent});const c=Cte(l,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===l);return!l||!c?!1:t.editor.commands.setMark(t.type,{href:c.href})}}})}function Vc(t,e){const r=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(n=>{const a=typeof n=="string"?n:n.scheme;a&&r.push(a)}),!t||t.replace(oqe,"").match(new RegExp(`^(?:(?:${r.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const hqe=eo.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){zz(t);return}zz(t.scheme,t.optionalSlashes)})},onDestroy(){nqe()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!Vc(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:r=>!!Vc(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!Vc(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Tr(this.options.HTMLAttributes,t),0]:["a",Tr(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:r}=t;return this.options.isAllowedUri(r,{defaultValidate:n=>!!Vc(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:r}=t;return this.options.isAllowedUri(r,{defaultValidate:n=>!!Vc(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Du({find:t=>{const e=[];if(t){const{protocols:r,defaultProtocol:n}=this.options,a=Cte(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:o=>!!Vc(o,r),protocols:r,defaultProtocol:n}));a.length&&a.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e}
1405,type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:r}=this.options;return this.options.autolink&&t.push(cqe({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:n=>this.options.isAllowedUri(n,{defaultValidate:a=>!!Vc(a,e),protocols:e,defaultProtocol:r}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(uqe({type:this.type})),this.options.linkOnPaste&&t.push(dqe({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),fqe=eo.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Tr(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),pqe=ca.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something â¦",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new on({key:new Gn("placeholder"),props:{decorations:({doc:t,selection:e})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:n}=e,a=[];if(!r)return null;const i=this.editor.isEmpty;return t.descendants((o,l)=>{const c=n>=l&&n<=l+o.nodeSize,u=!o.isLeaf&&Kv(o);if((c||!this.options.showOnlyCurrent)&&u){const d=[this.options.emptyNodeClass];i&&d.push(this.options.emptyEditorClass);const h=oa.node(l,l+o.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:o,pos:l,hasAnchor:c}):this.options.placeholder});a.push(h)}return this.options.includeChildren}),Or.create(t,a)}}})]}});let Dk,Lk;if(typeof WeakMap<"u"){let t=new WeakMap;Dk=e=>t.get(e),Lk=(e,r)=>(t.set(e,r),r)}else{const t=[];let r=0;Dk=n=>{for(let a=0;a<t.length;a+=2)if(t[a]==n)return t[a+1]},Lk=(n,a)=>(r==10&&(r=0),t[r++]=n,t[r++]=a)}var zr=class{constructor(t,e,r,n){this.width=t,this.height=e,this.map=r,this.problems=n}findCell(t){for(let e=0;e<this.map.length;e++){const r=this.map[e];if(r!=t)continue;const n=e%this.width,a=e/this.width|0;let i=n+1,o=a+1;for(let l=1;i<this.width&&this.map[e+l]==r;l++)i++;for(let l=1;o<this.height&&this.map[e+this.width*l]==r;l++)o++;return{left:n,top:a,right:i,bottom:o}}throw new RangeError(`No cell with offset ${t} found`)}colCount(t){for(let e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError(`No cell with offset ${t} found`)}nextCell(t,e,r){const{left:n,right:a,top:i,bottom:o}=this.findCell(t);return e=="horiz"?(r<0?n==0:a==this.width)?null:this.map[i*this.width+(r<0?n-1:a)]:(r<0?i==0:o==this.height)?null:this.map[n+this.width*(r<0?i-1:o)]}rectBetween(t,e){const{left:r,right:n,top:a,bottom:i}=this.findCell(t),{left:o,right:l,top:c,bottom:u}=this.findCell(e);return{left:Math.min(r,o),top:Math.min(a,c),right:Math.max(n,l),bottom:Math.max(i,u)}}cellsInRect(t){const e=[],r={};for(let n=t.top;n<t.bottom;n++)for(let a=t.left;a<t.right;a++){const i=n*this.width+a,o=this.map[i];r[o]||(r[o]=!0,!(a==t.left&&a&&this.map[i-1]==o||n==t.top&&n&&this.map[i-this.width]==o)&&e.push(o))}return e}positionAt(t,e,r){for(let n=0,a=0;;n++){const i=a+r.child(n).nodeSize;if(n==t){let o=e+t*this.width;const l=(t+1)*this.width;for(;o<l&&this.map[o]<a;)o++;return o==l?i-1:this.map[o]}a=i}}static get(t){return Dk(t)||Lk(t,mqe(t))}};function mqe(t){if(t.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+t.type.name);const e=gqe(t),r=t.childCount,n=[];let a=0,i=null;const o=[];for(let u=0,d=e*r;u<d;u++)n[u]=0;for(let u=0,d=0;u<r;u++){const h=t.child(u);d++;for(let b=0;;b++){for(;a<n.length&&n[a]!=0;)a++;if(b==h.childCount)break;
1405const y=h.child(b),{colspan:v,rowspan:N,colwidth:S}=y.attrs;for(let j=0;j<N;j++){if(j+u>=r){(i||(i=[])).push({type:"overlong_rowspan",pos:d,n:N-j});break}const $=a+j*e;for(let C=0;C<v;C++){n[$+C]==0?n[$+C]=d:(i||(i=[])).push({type:"collision",row:u,pos:d,n:v-C});const _=S&&S[C];if(_){const O=($+C)%e*2,E=o[O];E==null||E!=_&&o[O+1]==1?(o[O]=_,o[O+1]=1):E==_&&o[O+1]++}}}a+=v,d+=y.nodeSize}const m=(u+1)*e;let g=0;for(;a<m;)n[a++]==0&&g++;g&&(i||(i=[])).push({type:"missing",row:u,n:g}),d++}(e===0||r===0)&&(i||(i=[])).push({type:"zero_sized"});const l=new zr(e,r,n,i);let c=!1;for(let u=0;!c&&u<o.length;u+=2)o[u]!=null&&o[u+1]<r&&(c=!0);return c&&bqe(l,o,t),l}function gqe(t){let e=-1,r=!1;for(let n=0;n<t.childCount;n++){const a=t.child(n);let i=0;if(r)for(let o=0;o<n;o++){const l=t.child(o);for(let c=0;c<l.childCount;c++){const u=l.child(c);o+u.attrs.rowspan>n&&(i+=u.attrs.colspan)}}for(let o=0;o<a.childCount;o++){const l=a.child(o);i+=l.attrs.colspan,l.attrs.rowspan>1&&(r=!0)}e==-1?e=i:e!=i&&(e=Math.max(e,i))}return e}function bqe(t,e,r){t.problems||(t.problems=[]);const n={};for(let a=0;a<t.map.length;a++){const i=t.map[a];if(n[i])continue;n[i]=!0;const o=r.nodeAt(i);if(!o)throw new RangeError(`No cell with offset ${i} found`);let l=null;const c=o.attrs;for(let u=0;u<c.colspan;u++){const d=e[(a+u)%t.width*2];d!=null&&(!c.colwidth||c.colwidth[u]!=d)&&((l||(l=xqe(c)))[u]=d)}l&&t.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:l})}}function xqe(t){if(t.colwidth)return t.colwidth.slice();const e=[];for(let r=0;r<t.colspan;r++)e.push(0);return e}function ua(t){let e=t.cached.tableNodeTypes;if(!e){e=t.cached.tableNodeTypes={};for(const r in t.nodes){const n=t.nodes[r],a=n.spec.tableRole;a&&(e[a]=n)}}return e}const ql=new Gn("selectingCells");function Lu(t){for(let e=t.depth-1;e>0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function yqe(t){for(let e=t.depth;e>0;e--){const r=t.node(e).type.spec.tableRole;if(r==="cell"||r==="header_cell")return t.node(e)}return null}function ki(t){const e=t.selection.$head;for(let r=e.depth;r>0;r--)if(e.node(r).type.spec.tableRole=="row")return!0;return!1}function Xv(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const r=Lu(e.$head)||vqe(e.$head);if(r)return r;throw new RangeError(`No cell found around position ${e.head}`)}function vqe(t){for(let e=t.nodeAfter,r=t.pos;e;e=e.firstChild,r++){const n=e.type.spec.tableRole;if(n=="cell"||n=="header_cell")return t.doc.resolve(r)}for(let e=t.nodeBefore,r=t.pos;e;e=e.lastChild,r--){const n=e.type.spec.tableRole;if(n=="cell"||n=="header_cell")return t.doc.resolve(r-e.nodeSize)}}function Bk(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function wqe(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function R_(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function $te(t,e,r){const n=t.node(-1),a=zr.get(n),i=t.start(-1),o=a.nextCell(t.pos-i,e,r);return o==null?null:t.node(0).resolve(i+o)}function Bu(t,e,r=1){const n={...t,colspan:t.colspan-r};return n.colwidth&&(n.colwidth=n.colwidth.slice(),n.colwidth.splice(e,r),n.colwidth.some(a=>a>0)||(n.colwidth=null)),n}function _te(t,e,r=1){const n={...t,colspan:t.colspan+r};if(n.colwidth){n.colwidth=n.colwidth.slice();for(let a=0;a<r;a++)n.colwidth.splice(e,0,0)}return n}function Nqe(t,e,r){const n=ua(e.type.schema).header_cell;for(let a=0;a<t.height;a++)if(e.nodeAt(t.map[r+a*t.width]).type!=n)return!1;return!0}var gr=class $o extends St{constructor(e,r=e){const n=e.node(-1),a=zr.get(n),i=e.start(-1),o=a.rectBetween(e.pos-i,r.pos-i),l=e.node(0),c=a.cellsInRect(o).filter(d=>d!=r.pos-i);c.unshift(r.pos-i);const u=c.map(d=>{const h=n.nodeAt(d);if(!h)throw new RangeError(`No cell with offset ${d} found`);const m=i+d+1;return new tee(l.resolve(m),l.resolve(m+h.content.size))});super(u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=r}map(e,r){const n=e.resolve(r.map(this.$anchorCell.pos)),a=e.resolve(r.map(this.$headCell.pos));if(Bk(n)&&Bk(a)&&R_(n,a)){const i=this.$anchorCell.node(-1)!=n.node(-1);return i&&this.isRowSelection()?$o.rowSelection(n,a):i&&this.isColSelection()?$o.colSelection(n,a):new $o(n,a)}return gt.between(n,a)}content(){const e=this.$anchorCell.node(-1),r=zr.get(e),n=this.$anchorCell.start(-1),a=r.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},o=[];for(let c=a.top;c<a.bottom;c++){const u=[];for(let d=c*r.width+a.left,h=a.left;h<a.right;h++,d++){const m=r.map[d];if(i[m])continue;i[m]=!0;const g=r.findCell(m);let b=e.nodeAt(m);
vendor: 4,551 bytes, line 1405
1405if(!b)throw new RangeError(`No cell with offset ${m} found`);const y=a.left-g.left,v=g.right-a.right;if(y>0||v>0){let N=b.attrs;if(y>0&&(N=Bu(N,0,y)),v>0&&(N=Bu(N,N.colspan-v,v)),g.left<a.left){if(b=b.type.createAndFill(N),!b)throw new RangeError(`Could not create cell with attrs ${JSON.stringify(N)}`)}else b=b.type.create(N,b.content)}if(g.top<a.top||g.bottom>a.bottom){const N={...b.attrs,rowspan:Math.min(g.bottom,a.bottom)-Math.max(g.top,a.top)};g.top<a.top?b=b.type.createAndFill(N):b=b.type.create(N,b.content)}u.push(b)}o.push(e.child(c).copy(Ee.from(u)))}const l=this.isColSelection()&&this.isRowSelection()?e:o;return new Ge(Ee.from(l),1,1)}replace(e,r=Ge.empty){const n=e.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){const{$from:l,$to:c}=a[o],u=e.mapping.slice(n);e.replace(u.map(l.pos),u.map(c.pos),o?Ge.empty:r)}const i=St.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,r){this.replace(e,new Ge(Ee.from(r),0,0))}forEachCell(e){const r=this.$anchorCell.node(-1),n=zr.get(r),a=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-a,this.$headCell.pos-a));for(let o=0;o<i.length;o++)e(r.nodeAt(i[o]),a+i[o])}isColSelection(){const e=this.$anchorCell.index(-1),r=this.$headCell.index(-1);if(Math.min(e,r)>0)return!1;const n=e+this.$anchorCell.nodeAfter.attrs.rowspan,a=r+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,a)==this.$headCell.node(-1).childCount}static colSelection(e,r=e){const n=e.node(-1),a=zr.get(n),i=e.start(-1),o=a.findCell(e.pos-i),l=a.findCell(r.pos-i),c=e.node(0);return o.top<=l.top?(o.top>0&&(e=c.resolve(i+a.map[o.left])),l.bottom<a.height&&(r=c.resolve(i+a.map[a.width*(a.height-1)+l.right-1]))):(l.top>0&&(r=c.resolve(i+a.map[l.left])),o.bottom<a.height&&(e=c.resolve(i+a.map[a.width*(a.height-1)+o.right-1]))),new $o(e,r)}isRowSelection(){const e=this.$anchorCell.node(-1),r=zr.get(e),n=this.$anchorCell.start(-1),a=r.colCount(this.$anchorCell.pos-n),i=r.colCount(this.$headCell.pos-n);if(Math.min(a,i)>0)return!1;const o=a+this.$anchorCell.nodeAfter.attrs.colspan,l=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,l)==r.width}eq(e){return e instanceof $o&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,r=e){const n=e.node(-1),a=zr.get(n),i=e.start(-1),o=a.findCell(e.pos-i),l=a.findCell(r.pos-i),c=e.node(0);return o.left<=l.left?(o.left>0&&(e=c.resolve(i+a.map[o.top*a.width])),l.right<a.width&&(r=c.resolve(i+a.map[a.width*(l.top+1)-1]))):(l.left>0&&(r=c.resolve(i+a.map[l.top*a.width])),o.right<a.width&&(e=c.resolve(i+a.map[a.width*(o.top+1)-1]))),new $o(e,r)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,r){return new $o(e.resolve(r.anchor),e.resolve(r.head))}static create(e,r,n=r){return new $o(e.resolve(r),e.resolve(n))}getBookmark(){return new jqe(this.$anchorCell.pos,this.$headCell.pos)}};gr.prototype.visible=!1;St.jsonID("cell",gr);var jqe=class Ate{constructor(e,r){this.anchor=e,this.head=r}map(e){return new Ate(e.map(this.anchor),e.map(this.head))}resolve(e){const r=e.resolve(this.anchor),n=e.resolve(this.head);return r.parent.type.spec.tableRole=="row"&&n.parent.type.spec.tableRole=="row"&&r.index()<r.parent.childCount&&n.index()<n.parent.childCount&&R_(r,n)?new gr(r,n):St.near(n,1)}};function kqe(t){if(!(t.selection instanceof gr))return null;const e=[];return t.selection.forEachCell((r,n)=>{e.push(oa.node(n,n+r.nodeSize,{class:"selectedCell"}))}),Or.create(t.doc,e)}function Sqe({$from:t,$to:e}){if(t.pos==e.pos||t.pos<e.pos-6)return!1;let r=t.pos,n=e.pos,a=t.depth;for(;a>=0&&!(t.after(a+1)<t.end(a));a--,r++);for(let i=e.depth;i>=0&&!(e.before(i+1)>e.start(i));i--,n--);return r==n&&/row|table/.test(t.node(a).type.spec.tableRole)}function Cqe({$from:t,$to:e}){let r,n;for(let a=t.depth;a>0;a--){const i=t.node(a);if(i.type.spec.tableRole==="cell"||i.type.spec.tableRole==="header_cell"){r=i;break}}for(let a=e.depth;a>0;a--){const i=e.node(a);if(i.type.spec.tableRole==="cell"||i.type.spec.tableRole==="header_cell"){n=i;break}}return r!==n&&e.parentOffset===0}function $qe(t,e,r){const n=(e||t).selection,a=(e||t).doc;let i,o;if(n instanceof bt&&(o=n.node.type.spec.tableRole)){if(o=="cell"||o=="header_cell")i=gr.create(a,n.from);else if(o=="row"){const l=a.resolve(n.from+1);i=gr.rowSelection(l,l)}else if(!r){const l=zr.get(n.node),c=n.from+1,u=c+l.map[l.width*l.height-1];i=gr.create(a,c+1,u)}}else n instanceof gt&&Sqe(n)?i=gt.create(a,n.from):n instanceof gt&&Cqe
1405(n)&&(i=gt.create(a,n.$from.start(),n.$from.end()));return i&&(e||(e=t.tr)).setSelection(i),e}const _qe=new Gn("fix-tables");function Ete(t,e,r,n){const a=t.childCount,i=e.childCount;e:for(let o=0,l=0;o<i;o++){const c=e.child(o);for(let u=l,d=Math.min(a,o+3);u<d;u++)if(t.child(u)==c){l=u+1,r+=c.nodeSize;continue e}n(c,r),l<a&&t.child(l).sameMarkup(c)?Ete(t.child(l),c,r+1,n):c.nodesBetween(0,c.content.size,n,r+1),r+=c.nodeSize}}function Ote(t,e){let r;const n=(a,i)=>{a.type.spec.tableRole=="table"&&(r=Aqe(t,a,i,r))};return e?e.doc!=t.doc&&Ete(e.doc,t.doc,0,n):t.doc.descendants(n),r}function Aqe(t,e,r,n){const a=zr.get(e);if(!a.problems)return n;n||(n=t.tr);const i=[];for(let c=0;c<a.height;c++)i.push(0);for(let c=0;c<a.problems.length;c++){const u=a.problems[c];if(u.type=="collision"){const d=e.nodeAt(u.pos);if(!d)continue;const h=d.attrs;for(let m=0;m<h.rowspan;m++)i[u.row+m]+=u.n;n.setNodeMarkup(n.mapping.map(r+1+u.pos),null,Bu(h,h.colspan-u.n,u.n))}else if(u.type=="missing")i[u.row]+=u.n;else if(u.type=="overlong_rowspan"){const d=e.nodeAt(u.pos);if(!d)continue;n.setNodeMarkup(n.mapping.map(r+1+u.pos),null,{...d.attrs,rowspan:d.attrs.rowspan-u.n})}else if(u.type=="colwidth mismatch"){const d=e.nodeAt(u.pos);if(!d)continue;n.setNodeMarkup(n.mapping.map(r+1+u.pos),null,{...d.attrs,colwidth:u.colwidth})}else if(u.type=="zero_sized"){const d=n.mapping.map(r);n.delete(d,d+e.nodeSize)}}let o,l;for(let c=0;c<i.length;c++)i[c]&&(o==null&&(o=c),l=c);for(let c=0,u=r+1;c<a.height;c++){const d=e.child(c),h=u+d.nodeSize,m=i[c];if(m>0){let g="cell";d.firstChild&&(g=d.firstChild.type.spec.tableRole);const b=[];for(let v=0;v<m;v++){const N=ua(t.schema)[g].createAndFill();N&&b.push(N)}const y=(c==0||o==c-1)&&l==c?u+1:h-1;n.insert(n.mapping.map(y),b)}u=h}return n.setMeta(_qe,{fixTables:!0})}function io(t){const e=t.selection,r=Xv(t),n=r.node(-1),a=r.start(-1),i=zr.get(n);return{...e instanceof gr?i.rectBetween(e.$anchorCell.pos-a,e.$headCell.pos-a):i.findCell(r.pos-a),tableStart:a,map:i,table:n}}function Pte(t,{map:e,tableStart:r,table:n},a){let i=a>0?-1:0;Nqe(e,n,a+i)&&(i=a==0||a==e.width?null:0);for(let o=0;o<e.height;o++){const l=o*e.width+a;if(a>0&&a<e.width&&e.map[l-1]==e.map[l]){const c=e.map[l],u=n.nodeAt(c);t.setNodeMarkup(t.mapping.map(r+c),null,_te(u.attrs,a-e.colCount(c))),o+=u.attrs.rowspan-1}else{const c=i==null?ua(n.type.schema).cell:n.nodeAt(e.map[l+i]).type,u=e.positionAt(o,a,n);t.insert(t.mapping.map(r+u),c.createAndFill())}}return t}function Eqe(t,e){if(!ki(t))return!1;if(e){const r=io(t);e(Pte(t.tr,r,r.left))}return!0}function Oqe(t,e){if(!ki(t))return!1;if(e){const r=io(t);e(Pte(t.tr,r,r.right))}return!0}function Pqe(t,{map:e,table:r,tableStart:n},a){const i=t.mapping.maps.length;for(let o=0;o<e.height;){const l=o*e.width+a,c=e.map[l],u=r.nodeAt(c),d=u.attrs;if(a>0&&e.map[l-1]==c||a<e.width-1&&e.map[l+1]==c)t.setNodeMarkup(t.mapping.slice(i).map(n+c),null,Bu(d,a-e.colCount(c)));else{const h=t.mapping.slice(i).map(n+c);t.delete(h,h+u.nodeSize)}o+=d.rowspan}}function Mqe(t,e){if(!ki(t))return!1;if(e){const r=io(t),n=t.tr;if(r.left==0&&r.right==r.map.width)return!1;for(let a=r.right-1;Pqe(n,r,a),a!=r.left;a--){const i=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!i)throw new RangeError("No table found");r.table=i,r.map=zr.get(i)}e(n)}return!0}function Tqe(t,e,r){var n;const a=ua(e.type.schema).header_cell;for(let i=0;i<t.width;i++)if(((n=e.nodeAt(t.map[i+r*t.width]))===null||n===void 0?void 0:n.type)!=a)return!1;return!0}function Mte(t,{map:e,tableStart:r,table:n},a){let i=r;for(let u=0;u<a;u++)i+=n.child(u).nodeSize;const o=[];let l=a>0?-1:0;Tqe(e,n,a+l)&&(l=a==0||a==e.height?null:0);for(let u=0,d=e.width*a;u<e.width;u++,d++)if(a>0&&a<e.height&&e.map[d]==e.map[d-e.width]){const h=e.map[d],m=n.nodeAt(h).attrs;t.setNodeMarkup(r+h,null,{...m,rowspan:m.rowspan+1}),u+=m.colspan-1}else{var c;const h=l==null?ua(n.type.schema).cell:(c=n.nodeAt(e.map[d+l*e.width]))===null||c===void 0?void 0:c.type,m=h==null?void 0:h.createAndFill();m&&o.push(m)}return t.insert(i,ua(n.type.schema).row.create(null,o)),t}function Rqe(t,e){if(!ki(t))return!1;if(e){const r=io(t);e(Mte(t.tr,r,r.top))}return!0}function Iqe(t,e){if(!ki(t))return!1;if(e){const r=io(t);e(Mte(t.tr,r,r.bottom))}return!0}function Dqe(t,{map:e,table:r,tableStart:n},a){let i=0;for(let u=0;u<a;u++)i+=r.child(u).nodeSize;const o=i+r.child(a).nodeSize,l=t.mapping.maps.length;t.delete(i+n,o+n);const c=new Set;for(let u=0,d=a*e.width;u<e.width;u++,d++){const h=e.map[d];if(!c.has(h)){if(c.add(h),a>0&&h==e.map[d-e.width]){const m=r.nodeAt(h).attrs;t.setNodeMarkup(t.mapping.slice(l).map(h+n),null,{...m,rowspan:m.rowspan-1}),u+=m.colspan-1}else if(a<e.height&&h==e.map[d+e.width]){const m=r.nodeAt(h),g=m.attrs,b=m.type.create({...g,rowspan:m.attrs.rowspan-1},m.content),y=e.positionAt(a+1,u,r);t.insert(t.mapping.slice(l).map(n+y),b),u+=g.colspan-1}}}}function Lqe(t,e){if(!ki(t))return!1;if(e){const r=io(t),n=t.tr;
vendor: 4,205 bytes, line 1405
1405if(r.top==0&&r.bottom==r.map.height)return!1;for(let a=r.bottom-1;Dqe(n,r,a),a!=r.top;a--){const i=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!i)throw new RangeError("No table found");r.table=i,r.map=zr.get(r.table)}e(n)}return!0}function Vz(t){const e=t.content;return e.childCount==1&&e.child(0).isTextblock&&e.child(0).childCount==0}function Bqe({width:t,height:e,map:r},n){let a=n.top*t+n.left,i=a,o=(n.bottom-1)*t+n.left,l=a+(n.right-n.left-1);for(let c=n.top;c<n.bottom;c++){if(n.left>0&&r[i]==r[i-1]||n.right<t&&r[l]==r[l+1])return!0;i+=t,l+=t}for(let c=n.left;c<n.right;c++){if(n.top>0&&r[a]==r[a-t]||n.bottom<e&&r[o]==r[o+t])return!0;a++,o++}return!1}function Uz(t,e){const r=t.selection;if(!(r instanceof gr)||r.$anchorCell.pos==r.$headCell.pos)return!1;const n=io(t),{map:a}=n;if(Bqe(a,n))return!1;if(e){const i=t.tr,o={};let l=Ee.empty,c,u;for(let d=n.top;d<n.bottom;d++)for(let h=n.left;h<n.right;h++){const m=a.map[d*a.width+h],g=n.table.nodeAt(m);if(!(o[m]||!g))if(o[m]=!0,c==null)c=m,u=g;else{Vz(g)||(l=l.append(g.content));const b=i.mapping.map(m+n.tableStart);i.delete(b,b+g.nodeSize)}}if(c==null||u==null)return!0;if(i.setNodeMarkup(c+n.tableStart,null,{..._te(u.attrs,u.attrs.colspan,n.right-n.left-u.attrs.colspan),rowspan:n.bottom-n.top}),l.size>0){const d=c+1+u.content.size,h=Vz(u)?c+1:d;i.replaceWith(h+n.tableStart,d+n.tableStart,l)}i.setSelection(new gr(i.doc.resolve(c+n.tableStart))),e(i)}return!0}function qz(t,e){const r=ua(t.schema);return Hqe(({node:n})=>r[n.type.spec.tableRole])(t,e)}function Hqe(t){return(e,r)=>{const n=e.selection;let a,i;if(n instanceof gr){if(n.$anchorCell.pos!=n.$headCell.pos)return!1;a=n.$anchorCell.nodeAfter,i=n.$anchorCell.pos}else{var o;if(a=yqe(n.$from),!a)return!1;i=(o=Lu(n.$from))===null||o===void 0?void 0:o.pos}if(a==null||i==null||a.attrs.colspan==1&&a.attrs.rowspan==1)return!1;if(r){let l=a.attrs;const c=[],u=l.colwidth;l.rowspan>1&&(l={...l,rowspan:1}),l.colspan>1&&(l={...l,colspan:1});const d=io(e),h=e.tr;for(let g=0;g<d.right-d.left;g++)c.push(u?{...l,colwidth:u&&u[g]?[u[g]]:null}:l);let m;for(let g=d.top;g<d.bottom;g++){let b=d.map.positionAt(g,d.left,d.table);g==d.top&&(b+=a.nodeSize);for(let y=d.left,v=0;y<d.right;y++,v++)y==d.left&&g==d.top||h.insert(m=h.mapping.map(b+d.tableStart,1),t({node:a,row:g,col:y}).createAndFill(c[v]))}h.setNodeMarkup(i,t({node:a,row:d.top,col:d.left}),c[0]),n instanceof gr&&h.setSelection(new gr(h.doc.resolve(n.$anchorCell.pos),m?h.doc.resolve(m):void 0)),r(h)}return!0}}function Fqe(t,e){return function(r,n){if(!ki(r))return!1;const a=Xv(r);if(a.nodeAfter.attrs[t]===e)return!1;if(n){const i=r.tr;r.selection instanceof gr?r.selection.forEachCell((o,l)=>{o.attrs[t]!==e&&i.setNodeMarkup(l,null,{...o.attrs,[t]:e})}):i.setNodeMarkup(a.pos,null,{...a.nodeAfter.attrs,[t]:e}),n(i)}return!0}}function zqe(t){return function(e,r){if(!ki(e))return!1;if(r){const n=ua(e.schema),a=io(e),i=e.tr,o=a.map.cellsInRect(t=="column"?{left:a.left,top:0,right:a.right,bottom:a.map.height}:t=="row"?{left:0,top:a.top,right:a.map.width,bottom:a.bottom}:a),l=o.map(c=>a.table.nodeAt(c));for(let c=0;c<o.length;c++)l[c].type==n.header_cell&&i.setNodeMarkup(a.tableStart+o[c],n.cell,l[c].attrs);if(i.steps.length===0)for(let c=0;c<o.length;c++)i.setNodeMarkup(a.tableStart+o[c],n.header_cell,l[c].attrs);r(i)}return!0}}function Wz(t,e,r){const n=e.map.cellsInRect({left:0,top:0,right:t=="row"?e.map.width:1,bottom:t=="column"?e.map.height:1});for(let a=0;a<n.length;a++){const i=e.table.nodeAt(n[a]);if(i&&i.type!==r.header_cell)return!1}return!0}function D0(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?zqe(t):function(r,n){if(!ki(r))return!1;if(n){const a=ua(r.schema),i=io(r),o=r.tr,l=Wz("row",i,a),c=Wz("column",i,a),u=(t==="column"?l:t==="row"&&c)?1:0,d=t=="column"?{left:0,top:u,right:1,bottom:i.map.height}:t=="row"?{left:u,top:0,right:i.map.width,bottom:1}:i,h=t=="column"?c?a.cell:a.header_cell:t=="row"?l?a.cell:a.header_cell:a.cell;i.map.cellsInRect(d).forEach(m=>{const g=m+i.tableStart,b=o.doc.nodeAt(g);b&&o.setNodeMarkup(g,h,b.attrs)}),n(o)}return!0}}D0("row",{useDeprecatedLogic:!0});D0("column",{useDeprecatedLogic:!0});const Vqe=D0("cell",{useDeprecatedLogic:!0});
1405function Uqe(t,e){if(e<0){const r=t.nodeBefore;if(r)return t.pos-r.nodeSize;for(let n=t.index(-1)-1,a=t.before();n>=0;n--){const i=t.node(-1).child(n),o=i.lastChild;if(o)return a-1-o.nodeSize;a-=i.nodeSize}}else{if(t.index()<t.parent.childCount-1)return t.pos+t.nodeAfter.nodeSize;const r=t.node(-1);for(let n=t.indexAfter(-1),a=t.after();n<r.childCount;n++){const i=r.child(n);if(i.childCount)return a+1;a+=i.nodeSize}}return null}function Gz(t){return function(e,r){if(!ki(e))return!1;const n=Uqe(Xv(e),t);if(n==null)return!1;if(r){const a=e.doc.resolve(n);r(e.tr.setSelection(gt.between(a,wqe(a))).scrollIntoView())}return!0}}function qqe(t,e){const r=t.selection.$anchor;for(let n=r.depth;n>0;n--)if(r.node(n).type.spec.tableRole=="table")return e&&e(t.tr.delete(r.before(n),r.after(n)).scrollIntoView()),!0;return!1}function Sb(t,e){const r=t.selection;if(!(r instanceof gr))return!1;if(e){const n=t.tr,a=ua(t.schema).cell.createAndFill().content;r.forEachCell((i,o)=>{i.content.eq(a)||n.replace(n.mapping.map(o+1),n.mapping.map(o+i.nodeSize-1),new Ge(a,0,0))}),n.docChanged&&e(n)}return!0}function Wqe(t){if(t.size===0)return null;let{content:e,openStart:r,openEnd:n}=t;for(;e.childCount==1&&(r>0&&n>0||e.child(0).type.spec.tableRole=="table");)r--,n--,e=e.child(0).content;const a=e.child(0),i=a.type.spec.tableRole,o=a.type.schema,l=[];if(i=="row")for(let c=0;c<e.childCount;c++){let u=e.child(c).content;const d=c?0:Math.max(0,r-1),h=c<e.childCount-1?0:Math.max(0,n-1);(d||h)&&(u=Hk(ua(o).row,new Ge(u,d,h)).content),l.push(u)}else if(i=="cell"||i=="header_cell")l.push(r||n?Hk(ua(o).row,new Ge(e,r,n)).content:e);else return null;return Gqe(o,l)}function Gqe(t,e){const r=[];for(let a=0;a<e.length;a++){const i=e[a];for(let o=i.childCount-1;o>=0;o--){const{rowspan:l,colspan:c}=i.child(o).attrs;for(let u=a;u<a+l;u++)r[u]=(r[u]||0)+c}}let n=0;for(let a=0;a<r.length;a++)n=Math.max(n,r[a]);for(let a=0;a<r.length;a++)if(a>=e.length&&e.push(Ee.empty),r[a]<n){const i=ua(t).cell.createAndFill(),o=[];for(let l=r[a];l<n;l++)o.push(i);e[a]=e[a].append(Ee.from(o))}return{height:e.length,width:n,rows:e}}function Hk(t,e){const r=t.createAndFill();return new t_(r).replace(0,r.content.size,e).doc}function Kqe({width:t,height:e,rows:r},n,a){if(t!=n){const i=[],o=[];for(let l=0;l<r.length;l++){const c=r[l],u=[];for(let d=i[l]||0,h=0;d<n;h++){let m=c.child(h%c.childCount);d+m.attrs.colspan>n&&(m=m.type.createChecked(Bu(m.attrs,m.attrs.colspan,d+m.attrs.colspan-n),m.content)),u.push(m),d+=m.attrs.colspan;for(let g=1;g<m.attrs.rowspan;g++)i[l+g]=(i[l+g]||0)+m.attrs.colspan}o.push(Ee.from(u))}r=o,t=n}if(e!=a){const i=[];for(let o=0,l=0;o<a;o++,l++){const c=[],u=r[l%e];for(let d=0;d<u.childCount;d++){let h=u.child(d);o+h.attrs.rowspan>a&&(h=h.type.create({...h.attrs,rowspan:Math.max(1,a-h.attrs.rowspan)},h.content)),c.push(h)}i.push(Ee.from(c))}r=i,e=a}return{width:t,height:e,rows:r}}function Yqe(t,e,r,n,a,i,o){const l=t.doc.type.schema,c=ua(l);let u,d;if(a>e.width)for(let h=0,m=0;h<e.height;h++){const g=r.child(h);m+=g.nodeSize;const b=[];let y;g.lastChild==null||g.lastChild.type==c.cell?y=u||(u=c.cell.createAndFill()):y=d||(d=c.header_cell.createAndFill());for(let v=e.width;v<a;v++)b.push(y);t.insert(t.mapping.slice(o).map(m-1+n),b)}if(i>e.height){const h=[];for(let b=0,y=(e.height-1)*e.width;b<Math.max(e.width,a);b++){const v=b>=e.width?!1:r.nodeAt(e.map[y+b]).type==c.header_cell;h.push(v?d||(d=c.header_cell.createAndFill()):u||(u=c.cell.createAndFill()))}const m=c.row.create(null,Ee.from(h)),g=[];for(let b=e.height;b<i;b++)g.push(m);t.insert(t.mapping.slice(o).map(n+r.nodeSize-2),g)}return!!(u||d)}function Kz(t,e,r,n,a,i,o,l){if(o==0||o==e.height)return!1;let c=!1;for(let u=a;u<i;u++){const d=o*e.width+u,h=e.map[d];if(e.map[d-e.width]==h){c=!0;const m=r.nodeAt(h),{top:g,left:b}=e.findCell(h);t.setNodeMarkup(t.mapping.slice(l).map(h+n),null,{...m.attrs,rowspan:o-g}),t.insert(t.mapping.slice(l).map(e.positionAt(o,b,r)),m.type.createAndFill({...m.attrs,rowspan:g+m.attrs.rowspan-o})),u+=m.attrs.colspan-1}}return c}function Yz(t,e,r,n,a,i,o,l){if(o==0||o==e.width)return!1;let c=!1;for(let u=a;u<i;u++){const d=u*e.width+o,h=e.map[d];if(e.map[d-1]==h){c=!0;const m=r.nodeAt(h),g=e.colCount(h),b=t.mapping.slice(l).map(h+n);t.setNodeMarkup(b,null,Bu(m.attrs,o-g,m.attrs.colspan-(o-g))),t.insert(b+m.nodeSize,m.type.createAndFill(Bu(m.attrs,0,o-g))),u+=m.attrs.rowspan-1}}return c}function Xz(t,e,r,n,a){let i=r?t.doc.nodeAt(r-1):t.doc;if(!i)throw new Error("No table found");let o=zr.get(i);const{top:l,left:c}=n,u=c+a.width,d=l+a.height,h=t.tr;let m=0;function g(){if(i=r?h.doc.nodeAt(r-1):h.doc,!i)throw new Error("No table found");o=zr.get(i),m=h.mapping.maps.length}Yqe(h,o,i,r,u,d,m)&&g(),Kz(h,o,i,r,c,u,l,m)&&g(),Kz(h,o,i,r,c,u,d,m)&&g(),Yz(h,o,i,r,l,d,c,m)&&g(),Yz(h,o,i,r,l,d,u,m)&&g();for(let b=l;b<d;b++){const y=o.positionAt(b,c,i),v=o.positionAt(b,u,i);h.replace(h.mapping.slice(m).map(y+r),h.mapping.slice(m).map(v+r),new Ge(a.rows[b-l],0,0))}g(),h.setSelection(new gr(h.doc.resolve(r+o.positionAt(l,c,i)),h.doc.resolve(r+o.positionAt(d-1,u-1,i)))),e(h)}const Xqe=h_({ArrowLeft:Cb("horiz",-1),ArrowRight:Cb("horiz",1),ArrowUp:Cb("vert",
1405-1),ArrowDown:Cb("vert",1),"Shift-ArrowLeft":$b("horiz",-1),"Shift-ArrowRight":$b("horiz",1),"Shift-ArrowUp":$b("vert",-1),"Shift-ArrowDown":$b("vert",1),Backspace:Sb,"Mod-Backspace":Sb,Delete:Sb,"Mod-Delete":Sb});function ax(t,e,r){return r.eq(t.selection)?!1:(e&&e(t.tr.setSelection(r).scrollIntoView()),!0)}function Cb(t,e){return(r,n,a)=>{if(!a)return!1;const i=r.selection;if(i instanceof gr)return ax(r,n,St.near(i.$headCell,e));if(t!="horiz"&&!i.empty)return!1;const o=Tte(a,t,e);if(o==null)return!1;if(t=="horiz")return ax(r,n,St.near(r.doc.resolve(i.head+e),e));{const l=r.doc.resolve(o),c=$te(l,t,e);let u;return c?u=St.near(c,1):e<0?u=St.near(r.doc.resolve(l.before(-1)),-1):u=St.near(r.doc.resolve(l.after(-1)),1),ax(r,n,u)}}}function $b(t,e){return(r,n,a)=>{if(!a)return!1;const i=r.selection;let o;if(i instanceof gr)o=i;else{const c=Tte(a,t,e);if(c==null)return!1;o=new gr(r.doc.resolve(c))}const l=$te(o.$headCell,t,e);return l?ax(r,n,new gr(o.$anchorCell,l)):!1}}function Jqe(t,e){const r=t.state.doc,n=Lu(r.resolve(e));return n?(t.dispatch(t.state.tr.setSelection(new gr(n))),!0):!1}function Qqe(t,e,r){if(!ki(t.state))return!1;let n=Wqe(r);const a=t.state.selection;if(a instanceof gr){n||(n={width:1,height:1,rows:[Ee.from(Hk(ua(t.state.schema).cell,r))]});const i=a.$anchorCell.node(-1),o=a.$anchorCell.start(-1),l=zr.get(i).rectBetween(a.$anchorCell.pos-o,a.$headCell.pos-o);return n=Kqe(n,l.right-l.left,l.bottom-l.top),Xz(t.state,t.dispatch,o,l,n),!0}else if(n){const i=Xv(t.state),o=i.start(-1);return Xz(t.state,t.dispatch,o,zr.get(i.node(-1)).findCell(i.pos-o),n),!0}else return!1}function Zqe(t,e){var r;if(e.button!=0||e.ctrlKey||e.metaKey)return;const n=Jz(t,e.target);let a;if(e.shiftKey&&t.state.selection instanceof gr)i(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&n&&(a=Lu(t.state.selection.$anchor))!=null&&((r=p9(t,e))===null||r===void 0?void 0:r.pos)!=a.pos)i(a,e),e.preventDefault();else if(!n)return;function i(c,u){let d=p9(t,u);const h=ql.getState(t.state)==null;
1405if(!d||!R_(c,d))if(h)d=c;else return;const m=new gr(c,d);if(h||!t.state.selection.eq(m)){const g=t.state.tr.setSelection(m);h&&g.setMeta(ql,c.pos),t.dispatch(g)}}function o(){t.root.removeEventListener("mouseup",o),t.root.removeEventListener("dragstart",o),t.root.removeEventListener("mousemove",l),ql.getState(t.state)!=null&&t.dispatch(t.state.tr.setMeta(ql,-1))}function l(c){const u=c,d=ql.getState(t.state);let h;if(d!=null)h=t.state.doc.resolve(d);else if(Jz(t,u.target)!=n&&(h=p9(t,e),!h))return o();h&&i(h,u)}t.root.addEventListener("mouseup",o),t.root.addEventListener("dragstart",o),t.root.addEventListener("mousemove",l)}function Tte(t,e,r){if(!(t.state.selection instanceof gt))return null;const{$head:n}=t.state.selection;for(let a=n.depth-1;a>=0;a--){const i=n.node(a);if((r<0?n.index(a):n.indexAfter(a))!=(r<0?0:i.childCount))return null;if(i.type.spec.tableRole=="cell"||i.type.spec.tableRole=="header_cell"){const o=n.before(a),l=e=="vert"?r>0?"down":"up":r>0?"right":"left";return t.endOfTextblock(l)?o:null}}return null}function Jz(t,e){for(;e&&e!=t.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function p9(t,e){const r=t.posAtCoords({left:e.clientX,top:e.clientY});if(!r)return null;let{inside:n,pos:a}=r;return n>=0&&Lu(t.state.doc.resolve(n))||Lu(t.state.doc.resolve(a))}var eWe=class{constructor(e,r){this.node=e,this.defaultCellMinWidth=r,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${r}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Fk(e,this.colgroup,this.table,r),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,Fk(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function Fk(t,e,r,n,a,i){let o=0,l=!0,c=e.firstChild;const u=t.firstChild;if(u){for(let h=0,m=0;h<u.childCount;h++){const{colspan:g,colwidth:b}=u.child(h).attrs;for(let y=0;y<g;y++,m++){const v=a==m?i:b&&b[y],N=v?v+"px":"";if(o+=v||n,v||(l=!1),c)c.style.width!=N&&(c.style.width=N),c=c.nextSibling;else{const S=document.createElement("col");S.style.width=N,e.appendChild(S)}}}for(;c;){var d;const h=c.nextSibling;(d=c.parentNode)===null||d===void 0||d.removeChild(c),c=h}l?(r.style.width=o+"px",r.style.minWidth=""):(r.style.width="",r.style.minWidth=o+"px")}}const ts=new Gn("tableColumnResizing");function tWe({handleWidth:t=5,cellMinWidth:e=25,defaultCellMinWidth:r=100,View:n=eWe,lastColumnResizable:a=!0}={}){const i=new on({key:ts,state:{init(o,l){var c;const u=(c=i.spec)===null||c===void 0||(c=c.props)===null||c===void 0?void 0:c.nodeViews,d=ua(l.schema).table.name;return n&&u&&(u[d]=(h,m)=>new n(h,r,m)),new rWe(-1,!1)},apply(o,l){return l.apply(o)}},props:{attributes:o=>{const l=ts.getState(o);return l&&l.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(o,l)=>{nWe(o,l,t,a)},mouseleave:o=>{aWe(o)},mousedown:(o,l)=>{sWe(o,l,e,r)}},decorations:o=>{const l=ts.getState(o);if(l&&l.activeHandle>-1)return uWe(o,l.activeHandle)},nodeViews:{}}});return i}var rWe=class sx{constructor(e,r){this.activeHandle=e,this.dragging=r}apply(e){const r=this,n=e.getMeta(ts);if(n&&n.setHandle!=null)return new sx(n.setHandle,!1);if(n&&n.setDragging!==void 0)return new sx(r.activeHandle,n.setDragging);if(r.activeHandle>-1&&e.docChanged){let a=e.mapping.map(r.activeHandle,-1);return Bk(e.doc.resolve(a))||(a=-1),new sx(a,r.dragging)}return r}};function nWe(t,e,r,n){if(!t.editable)return;const a=ts.getState(t.state);if(a&&!a.dragging){const i=oWe(e.target);let o=-1;if(i){const{left:l,right:c}=i.getBoundingClientRect();e.clientX-l<=r?o=Qz(t,e,"left",r):c-e.clientX<=r&&(o=Qz(t,e,"right",r))}if(o!=a.activeHandle){if(!n&&o!==-1){const l=t.state.doc.resolve(o),c=l.node(-1),u=zr.get(c),d=l.start(-1);if(u.colCount(l.pos-d)+l.nodeAfter.attrs.colspan-1==u.width-1)return}Rte(t,o)}}}function aWe(t){if(!t.editable)return;const e=ts.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&Rte(t,-1)}function sWe(t,e,r,n){var a;if(!t.editable)return!1;const i=(a=t.dom.ownerDocument.defaultView)!==null&&a!==void 0?a:window,o=ts.getState(t.state);if(!o||o.activeHandle==-1||o.dragging)return!1;const l=t.state.doc.nodeAt(o.activeHandle),c=iWe(t,o.activeHandle,l.attrs);t.dispatch(t.state.tr.setMeta(ts,{setDragging:{startX:e.clientX,startWidth:c}}));function u(h){i.removeEventListener("mouseup",u),i.removeEventListener("mousemove",d);const m=ts.getState(t.state);m!=null&&m.dragging&&(lWe(t,m.activeHandle,Zz(m.dragging,h,r)),t.dispatch(t.state.tr.setMeta(ts,{setDragging:null})))}function d(h){if(!h.which)return u(h);const m=ts.getState(t.state);if(m&&m.dragging){const g=Zz(m.dragging,h,r);eV(t,m.activeHandle,g,n)}}return eV(t,o.activeHandle,c,n),i.addEventListener("mouseup",u),i.addEventListener("mousemove",d),e.preventDefault(),!0}function iWe(t,e,{colspan:r,colwidth:n}){const a=n&&n[n.length-1];if(a)return a;const i=t.domAtPos(e);let o=i.node.childNodes[i.offset].offsetWidth,l=r;if(n)for(let c=0;c<r;c++)n[c]&&(o-=n[c],l--);return o/l}function oWe(t){for(;t&&t.nodeName!="TD"&&t.nodeName!="TH";)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}function Qz(t,e,r,n){const a=r=="right"?-n:n,i=t.posAtCoords({left:e.clientX+a,top:e.clientY});if(!i)return-1;const{pos:o}=i,l=Lu(t.state.doc.resolve(o));if(!l)return-1;if(r=="right")return l.pos;const c=zr.get(l.node(-1)),u=l.start(-1),d=c.map.indexOf(l.pos-u);return d%c.width==0?-1:u+c.map[d-1]}function Zz(t,e,r){const n=e.clientX-t.startX;return Math.max(r,t.startWidth+n)}function Rte(t,e){t.dispatch(t.state.tr.setMeta(ts,{setHandle:e}))}function lWe(t,e,r){const n=t.state.doc.resolve(e),a=n.node(-1),i=zr.get(a),o=n.start(-1),l=i.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1,c=t.state.tr;for(let u=0;u<i.height;u++){const d=u*i.width+l;if(u&&i.map[d]==i.map[d-i.width])continue;const h=i.map[d],m=a.nodeAt(h).attrs,g=m.colspan==1?0:l-i.colCount(h);if(m.colwidth&&m.colwidth[g]==r)continue;const b=m.colwidth?m.colwidth.slice():cWe(m.colspan);b[g]=r,c.setNodeMarkup(o+h,null,{...m,colwidth:b})}c.docChanged&&t.dispatch(c)}function eV(t,e,r,n){const a=t.state.doc.resolve(e),i=a.node(-1),o=a.start(-1),l=zr.get(i).colCount(a.pos-o)+a.nodeAfter.attrs.colspan-1;let c=t.domAtPos(a.start(-1)).node;for(;c&&c.nodeName!="TABLE";)c=c.parentNode;c&&Fk(i,c.firstChild,c,n,l,r)}function cWe(t){return Array(t).fill(0)}function uWe(t,e){const r=[],n=t.doc.resolve(e),a=n.node(-1);if(!a)return Or.empty;const i=zr.get(a),o=n.start(-1),l=i.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1;for(let u=0;u<i.height;u++){const d=l+u*i.width;if((l==i.width-1||i.map[d]!=i.map[d+1])&&(u==0||i.map[d]!=i.map[d-i.width])){var c;const h=i.map[d],m=o+h+a.nodeAt(h).nodeSize-1,g=document.createElement("div");
1405g.className="column-resize-handle",!((c=ts.getState(t))===null||c===void 0)&&c.dragging&&r.push(oa.node(o+h,o+h+a.nodeAt(h).nodeSize,{class:"column-resize-dragging"})),r.push(oa.widget(m,g))}}return Or.create(t.doc,r)}function dWe({allowTableNodeSelection:t=!1}={}){return new on({key:ql,state:{init(){return null},apply(e,r){const n=e.getMeta(ql);if(n!=null)return n==-1?null:n;if(r==null||!e.docChanged)return r;const{deleted:a,pos:i}=e.mapping.mapResult(r);return a?null:i}},props:{decorations:kqe,handleDOMEvents:{mousedown:Zqe},createSelectionBetween(e){return ql.getState(e.state)!=null?e.state.selection:null},handleTripleClick:Jqe,handleKeyDown:Xqe,handlePaste:Qqe},appendTransaction(e,r,n){return $qe(n,Ote(n,r),t)}})}function zk(t,e){return e?["width",`${Math.max(e,t)}px`]:["min-width",`${t}px`]}function tV(t,e,r,n,a,i){var o;let l=0,c=!0,u=e.firstChild;const d=t.firstChild;if(d!==null)for(let h=0,m=0;h<d.childCount;h+=1){const{colspan:g,colwidth:b}=d.child(h).attrs;for(let y=0;y<g;y+=1,m+=1){const v=a===m?i:b&&b[y],N=v?`${v}px`:"";if(l+=v||n,v||(c=!1),u){if(u.style.width!==N){const[S,j]=zk(n,v);u.style.setProperty(S,j)}u=u.nextSibling}else{const S=document.createElement("col"),[j,$]=zk(n,v);S.style.setProperty(j,$),e.appendChild(S)}}}for(;u;){const h=u.nextSibling;(o=u.parentNode)===null||o===void 0||o.removeChild(u),u=h}c?(r.style.width=`${l}px`,r.style.minWidth=""):(r.style.width="",r.style.minWidth=`${l}px`)}class hWe{constructor(e,r){this.node=e,this.cellMinWidth=r,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),tV(e,this.colgroup,this.table,r),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!==this.node.type?!1:(this.node=e,tV(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return e.type==="attributes"&&(e.target===this.table||this.colgroup.contains(e.target))}}function fWe(t,e,r,n){let a=0,i=!0;const o=[],l=t.firstChild;if(!l)return{};for(let h=0,m=0;h<l.childCount;h+=1){const{colspan:g,colwidth:b}=l.child(h).attrs;for(let y=0;y<g;y+=1,m+=1){const v=r===m?n:b&&b[y];a+=v||e,v||(i=!1);const[N,S]=zk(e,v);o.push(["col",{style:`${N}: ${S}`}])}}const c=i?`${a}px`:"",u=i?"":`${a}px`;return{colgroup:["colgroup",{},...o],tableWidth:c,tableMinWidth:u}}function rV(t,e){return t.createAndFill()}function pWe(t){if(t.cached.tableNodeTypes)return t.cached.tableNodeTypes;const e={};return Object.keys(t.nodes).forEach(r=>{const n=t.nodes[r];n.spec.tableRole&&(e[n.spec.tableRole]=n)}),t.cached.tableNodeTypes=e,e}function mWe(t,e,r,n,a){const i=pWe(t),o=[],l=[];for(let u=0;u<r;u+=1){const d=rV(i.cell);if(d&&l.push(d),n){const h=rV(i.header_cell);h&&o.push(h)}}const c=[];for(let u=0;u<e;u+=1)c.push(i.row.createChecked(null,n&&u===0?o:l));return i.table.createChecked(null,c)}function gWe(t){return t instanceof gr}const _b=({editor:t})=>{const{selection:e}=t.state;if(!gWe(e))return!1;let r=0;const n=cte(e.ranges[0].$from,i=>i.type.name==="table");return n==null||n.node.descendants(i=>{if(i.type.name==="table")return!1;["tableCell","tableHeader"].includes(i.type.name)&&(r+=1)}),r===e.ranges.length?(t.commands.deleteTable(),!0):!1},bWe=ha.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:hWe,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:t,HTMLAttributes:e}){const{colgroup:r,tableWidth:n,tableMinWidth:a}=fWe(t,this.options.cellMinWidth),i=["table",Tr(this.options.HTMLAttributes,e,{style:n?`width: ${n}`:`min-width: ${a}`}),r,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},i]:i},addCommands(){return{insertTable:({rows:t=3,cols:e=3,withHeaderRow:r=!0}={})=>({tr:n,dispatch:a,editor:i})=>{const o=mWe(i.schema,t,e,r);if(a){const l=n.selection.from+1;n.replaceSelectionWith(o).scrollIntoView().setSelection(gt.near(n.doc.resolve(l)))}return!0},addColumnBefore:()=>({state:t,dispatch:e})=>Eqe(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>Oqe(t,e),deleteColumn:()=>({state:t,dispatch:e})=>Mqe(t,e),addRowBefore:()=>({state:t,dispatch:e})=>Rqe(t,e),addRowAfter:()=>({state:t,dispatch:e})=>Iqe(t,e),deleteRow:()=>({state:t,dispatch:e})=>Lqe(t,e),deleteTable:()=>({state:t,dispatch:e})=>qqe(t,e),mergeCells:()=>({state:t,dispatch:e})=>Uz(t,e),splitCell:()=>({state:t,dispatch:e})=>qz(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>D0("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>D0("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>Vqe(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>Uz(t,e)?!0:qz(t,e),setCellAttribute:(t,e)=>({state:r,dispatch:n})=>Fqe(t,e)(r,n),goToNextCell:()=>({state:t,dispatch:e})=>Gz(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>Gz(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&Ote(t),!0),setCellSelection:t=>({tr:e,dispatch:r})=>{if(r){const n=gr.create(e.doc,t.anchorCell,t.headCell);e.setSelection(n)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:_b,"Mod-Backspace":_b,Delete:_b,"Mod-Delete":_b}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[tWe({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],dWe({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:Tt(at(t,"tableRole",e))}}}),xWe=ha.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:t}){return["tr",Tr(this.options.HTMLAttributes,t),0]}}),yWe=ha.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(n=>parseInt(n,10)):null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:t}){return["th",Tr(this.options.HTMLAttributes,t),0]}}),vWe=ha.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(n=>parseInt(n,10)):null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:t}){return["td",Tr(this.options.HTMLAttributes,t),0]}}),wWe={none:"alignnone",left:"alignleft",center:"aligncenter",right:"alignright"};function nV(t){return t?t.includes("alignleft")?"left":t.includes("alignright")?"right":t.includes("alignnone")?"none":"center"
1405:"center"}const NWe=ha.create({name:"image",group:"block",atom:!0,draggable:!0,selectable:!0,addAttributes(){return{src:{default:"",parseHTML:t=>{var e;return((e=t.querySelector("img"))==null?void 0:e.getAttribute("src"))??t.getAttribute("src")??""}},alt:{default:"",parseHTML:t=>{var e;return((e=t.querySelector("img"))==null?void 0:e.getAttribute("alt"))??t.getAttribute("alt")??""}},caption:{default:"",parseHTML:t=>{var e,r;return((r=(e=t.querySelector("figcaption"))==null?void 0:e.textContent)==null?void 0:r.trim())??""}},align:{default:"center",parseHTML:t=>{var e;return nV(t.getAttribute("class")??((e=t.querySelector("img"))==null?void 0:e.getAttribute("class"))??null)}},width:{default:null,parseHTML:t=>{var n;const e=(n=t.querySelector("img"))==null?void 0:n.getAttribute("width"),r=e?Number(e):NaN;return Number.isFinite(r)?r:null}},height:{default:null,parseHTML:t=>{var n;const e=(n=t.querySelector("img"))==null?void 0:n.getAttribute("height"),r=e?Number(e):NaN;return Number.isFinite(r)?r:null}}}},parseHTML(){return[{tag:"figure.wp-block-image",priority:60,getAttrs:t=>t.querySelector("img[src]")?null:!1},{tag:"figure",priority:55,getAttrs:t=>t.querySelector("img[src]")?null:!1},{tag:"img[src]",priority:50,getAttrs:t=>{const e=t;return{src:e.getAttribute("src")??"",alt:e.getAttribute("alt")??"",caption:"",align:nV(e.getAttribute("class"))}}}]},renderHTML({HTMLAttributes:t}){const e=t,r=wWe[e.align]??"aligncenter",n=["img",Tr({src:e.src,alt:e.alt??"",loading:"lazy",decoding:"async",...e.width?{width:e.width}:{},...e.height?{height:e.height}:{}})],a=(e.caption??"").trim();return a?["figure",{class:`wp-block-image ${r}`},n,["figcaption",{},a]]:["figure",{class:`wp-block-image ${r}`},n]},addCommands(){return{setArticleImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:{alt:"",caption:"",align:"center",width:null,height:null,...t}}),updateArticleImage:t=>({commands:e})=>e.updateAttributes(this.name,t)}}}),jWe=[2,3,4];function kWe(t){return[HUe.configure({heading:{levels:[...jWe]},horizontalRule:{},codeBlock:{},history:{depth:200}}),fqe,hqe.configure({openOnClick:!1,autolink:!1,protocols:["http","https","mailto","tel"],HTMLAttributes:{rel:"noopener noreferrer"}}),NWe,bWe.configure({resizable:!1,allowTableNodeSelection:!0}
1405),xWe,yWe,vWe,pqe.configure({placeholder:t})]}function Mn({onClick:t,label:e,active:r,disabled:n,children:a}){return s.jsx("button",{type:"button",onClick:t,disabled:n,"aria-label":e,title:e,"aria-pressed":r??void 0,className:["flex h-8 w-8 items-center justify-center rounded-md border transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1 focus-visible:ring-offset-1","disabled:cursor-not-allowed disabled:opacity-40",r?"border-admin-primary bg-admin-primary text-white":"border-gray-300 bg-white text-hba-blue-1 hover:bg-gray-50"].join(" "),children:a})}function zd(){return s.jsx("span",{"aria-hidden":"true",className:"mx-1 h-6 w-px bg-gray-300"})}function SWe({editor:t,onInsertLink:e,onInsertImage:r,onAskAi:n,disabled:a}){const i=t.isActive("table");return s.jsxs("div",{role:"toolbar","aria-label":"Text formatting","aria-controls":"article-editor-surface",className:"flex flex-wrap items-center gap-1 border-b border-gray-300 bg-gray-50 px-2 py-2",children:[s.jsx(Mn,{label:"Undo",disabled:a||!t.can().undo(),onClick:()=>t.chain().focus().undo().run(),children:s.jsx(mce,{size:16})}),s.jsx(Mn,{label:"Redo",disabled:a||!t.can().redo(),onClick:()=>t.chain().focus().redo().run(),children:s.jsx(Mle,{size:16})}),s.jsx(zd,{}),s.jsx("label",{htmlFor:"editor-block-type",className:"sr-only",children:"Text style"}),s.jsxs("select",{id:"editor-block-type",disabled:a,className:"h-8 rounded-md border border-gray-300 bg-white px-2 text-sm text-hba-blue-1 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",value:t.isActive("heading",{level:2})?"h2":t.isActive("heading",{level:3})?"h3":t.isActive("heading",{level:4})?"h4":"p",onChange:o=>{const l=o.target.value,c=t.chain().focus();l==="p"?c.setParagraph().run():c.setHeading({level:Number(l.slice(1))}).run()},children:[s.jsx("option",{value:"p",children:"Paragraph"}),s.jsx("option",{value:"h2",children:"Heading 2"}),s.jsx("option",{value:"h3",children:"Heading 3"}),s.jsx("option",{value:"h4",children:"Heading 4"})]}),s.jsx(zd,{}),s.jsx(Mn,{label:"Bold",active:t.isActive("bold"),disabled:a,onClick:()=>t.chain().focus().toggleBold().run(),children:s.jsx(qse,{size:16})}),s.jsx(Mn,{label:"Italic",active:t.isActive("italic"),disabled:a,onClick:()=>t.chain().focus().toggleItalic().run(),children:s.jsx($oe,{size:16})}),s.jsx(Mn,{label:"Underline",active:t.isActive("underline"),disabled:a,onClick:()=>t.chain().focus().toggleUnderline().run(),children:s.jsx(fce,{size:16})}),s.jsx(zd,{}),s.jsx(Mn,{label:t.isActive("link")?"Edit link":"Add link",active:t.isActive("link"),disabled:a,onClick:e,children:s.jsx(bU,{size:16})}),s.jsx(Mn,{label:"Remove link",disabled:a||!t.isActive("link"),onClick:()=>t.chain().focus().unsetLink().run(),children:s.jsx(Ioe,{size:16})}),s.jsx(zd,{}),s.jsx(Mn,{label:"Bulleted list",active:t.isActive("bulletList"),disabled:a,onClick:()=>t.chain().focus().toggleBulletList().run(),children:s.jsx(qoe,{size:16})}),s.jsx(Mn,{label:"Numbered list",active:t.isActive("orderedList"),disabled:a,onClick:()=>t.chain().focus().toggleOrderedList().run(),children:s.jsx(Voe,{size:16})}),s.jsx(Mn,{label:"Quote",active:t.isActive("blockquote"),disabled:a,onClick:()=>t.chain().focus().toggleBlockquote().run(),children:s.jsx(Ole,{size:16})}),s.jsx(Mn,{label:"Divider line",disabled:a,onClick:()=>t.chain().focus().setHorizontalRule().run(),children:s.jsx(ole,{size:16})}),s.jsx(zd,{}),s.jsx(Mn,{label:"Insert image",disabled:a,onClick:r,children:s.jsx(T9,{size:16})}),n&&s.jsx(Mn,{label:"Ask AI writing assistant",disabled:a,onClick:n,children:s.jsx(ls,{size:16})}),s.jsx(Mn,{label:"Insert table",disabled:a,onClick:()=>t.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run(),children:s.jsx(jU,{size:16})}),i&&s.jsxs(s.Fragment,{children:[s.jsx(zd,{}),s.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-hba-grey-1",children:"Table"}),s.jsx(Mn,{label:"Add row below",disabled:a,onClick:()=>t.chain().focus().addRowAfter().run(),children:s.jsx(Dle,{size:16})}),s.jsx(Mn,{label:"Add column after",disabled:a,onClick:()=>t.chain().focus().addColumnAfter().run(),children:s.jsx(kie,{size:16})}),s.jsx("button",{type:"button",onClick:()=>t.chain().focus().deleteRow().run(),disabled:a,className:"h-8 rounded-md border border-gray-300 bg-white px-2 text-xs font-semibold text-hba-blue-1 hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1 disabled:opacity-40",children:"Delete row"}),s.jsx("button",{type:"button",onClick:()=>t.chain().focus().deleteColumn().run(),disabled:a,className:"h-8 rounded-md border border-gray-300 bg-white px-2 text-xs font-semibold text-hba-blue-1 hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1 disabled:opacity-40",children:"Delete column"}),s.jsx(Mn,{label:"Delete table",disabled:a,onClick:()=>t.chain().focus().deleteTable().run(),children:s.jsx(zs,{size:16})})]})]})}const CWe={sm:"max-w-md",md:"max-w-xl",lg:"max-w-3xl"},aV='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not
1405([tabindex="-1"])';function Hs({open:t,title:e,description:r,onClose:n,children:a,footer:i,size:o="md"}){const l=w.useRef(null),c=w.useRef(null),u=w.useRef(`modal-title-${Math.random().toString(36).slice(2)}`).current,d=w.useCallback(h=>{if(h.key==="Escape"){h.stopPropagation(),n();return}if(h.key!=="Tab"||!l.current)return;const m=Array.from(l.current.querySelectorAll(aV)).filter(y=>y.offsetParent!==null||y===document.activeElement);if(m.length===0)return;const g=m[0],b=m[m.length-1];h.shiftKey&&document.activeElement===g?(h.preventDefault(),b.focus()):!h.shiftKey&&document.activeElement===b&&(h.preventDefault(),g.focus())},[n]);return w.useEffect(()=>{if(!t)return;c.current=document.activeElement;const h=window.setTimeout(()=>{const m=l.current;if(!m)return;const g=m.querySelector('input:not([disabled]):not([type="hidden"]):not([type="file"]), textarea:not([disabled]), select:not([disabled])'),b=m.querySelector(aV);(g??b??m).focus()},0);return()=>{var m,g;window.clearTimeout(h),(g=(m=c.current)==null?void 0:m.focus)==null||g.call(m)}},[t]),w.useEffect(()=>{if(t)return document.addEventListener("keydown",d,!0),()=>document.removeEventListener("keydown",d,!0)},[t,d]),t?s.jsxs("div",{className:"fixed inset-0 z-[60] flex items-center justify-center p-4",children:[s.jsx("div",{className:"absolute inset-0 bg-slate-900/50",onClick:n,"aria-hidden":"true"}),s.jsxs("div",{ref:l,role:"dialog","aria-modal":"true","aria-labelledby":u,tabIndex:-1,className:`relative w-full ${CWe[o]} rounded-xl border border-gray-200 bg-white shadow-2xl focus:outline-none`,children:[s.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-gray-200 px-5 py-4",children:[s.jsxs("div",{children:[s.jsx("h2",{id:u,className:"text-base font-black uppercase tracking-tight text-hba-blue-1",children:e}),r&&s.jsx("p",{className:"mt-1 text-sm text-hba-grey-1",children:r})]}),s.jsx("button",{type:"button",onClick:n,"aria-label":"Close dialog",className:"rounded-md p-1 text-hba-grey-1 transition-colors hover:bg-gray-100 hover:text-hba-blue-1 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",children:s.jsx(cs,{size:18})})]}),s.jsx("div",{className:"max-h-[70vh] overflow-y-auto px-5 py-4",children:a}),i&&s.jsx("div",{className:"flex items-center justify-end gap-2 border-t border-gray-200 px-5 py-4",children:i})]})]}):null}function $We(t){const e=t.trim();return e?e.startsWith("/")||e.startsWith("#")||/^(https?:|mailto:|tel:)/i.test(e)?null:/^[a-z][a-z0-9+.-]*:/i.test(e)?"Only http, https, mailto, and tel links are allowed.":"Start the address with https:// (or use /page for an internal link).":"Enter a web address."}function _We({open:t,initialHref:e,initialNewTab:r,editing:n,onCancel:a,onSubmit:i,onRemove:o}){const[l,c]=w.useState(e),[u,d]=w.useState(r),[h,m]=w.useState(null);w.useEffect(()=>{t&&(c(e),d(r),m(null))},[t,e,r]);const g=()=>{const b=$We(l);if(b){m(b);return}i(l.trim(),u)};return s.jsx(Hs,{open:t,title:n?"Edit link":"Add link",onClose:a,size:"sm",footer:s.jsxs(s.Fragment,{children:[n&&s.jsx("button",{type:"button",onClick:o,className:`${Et} mr-auto`,children:"Remove link"}),s.jsx("button",{type:"button",onClick:a,className:Et,children:"Cancel"}),s.jsx("button",{type:"button",onClick:g,className:rr,children:n?"Update link":"Add link"})]}),children:s.jsxs("div",{className:"space-y-4",children:[s.jsx(Xt,{id:"link-href",label:"Web address",hint:"Use a full https:// address for external sites, or /slug for a page on this site.",error:h??void 0,children:s.jsx("input",{id:"link-href",type:"text",value:l,onChange:b=>{c(b.target.value),m(null)},onKeyDown:b=>{b.key==="Enter"&&(b.preventDefault(),g())},placeholder:"https://www.medicare.gov/",className:Vt,"aria-describedby":h?"link-href-error":"link-href-hint","aria-invalid":h?!0:void 0})}),s.jsxs("label",{className:"flex items-center gap-2 text-sm text-hba-blue-1",children:[s.jsx("input",{type:"checkbox",checked:u,onChange:b=>d(b.target.checked),className:"h-4 w-4 rounded border-gray-300 text-hba-orange-1 focus:ring-hba-orange-1"}),"Open in a new tab"]})]})})}const sV={src:"",alt:"",caption:"",align:"center",width:null,height:null},AWe=[{value:"center",label:"Centered"},{value:"none",label:"Full width"},{value:"left",label:"Float left"},{value:"right",label:"Float right"}];function EWe({open:t,initial:e,articleId:r,assets:n,onCancel:a,onSubmit:i,onAssetUploaded:o}){const[l,c]=w.useState(e??sV),[u,d]=w.useState(!1),[h,m]=w.useState(0),[g,b]=w.useState(null),y=w.useRef(null);
1405w.useEffect(()=>{t&&(c(e??sV),b(null),m(0))},[t,e]);const v=async S=>{if(!r){te.error("Save the article once before uploading images.");return}d(!0),m(0);try{const j=await vZ(r,S,{altText:l.alt},m);o(j),c($=>({...$,src:j.public_url??"",width:j.width,height:j.height,alt:$.alt||j.alt_text||""})),te.success("Image uploaded")}catch(j){const $=j instanceof At?j.message:"Upload failed. Please try again.";te.error($),b($)}finally{d(!1)}},N=()=>{if(!l.src.trim()){b("Choose or upload an image first.");return}if(!l.alt.trim()){b('Add alt text describing the image. If it is purely decorative, type "decorative" and it will be marked as such.');return}const S=l.alt.trim().toLowerCase()==="decorative"?"":l.alt.trim();i({...l,src:l.src.trim(),alt:S,caption:l.caption.trim()})};return s.jsx(Hs,{open:t,title:e?"Edit image":"Insert image",onClose:a,size:"lg",footer:s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:a,className:Et,children:"Cancel"}),s.jsx("button",{type:"button",onClick:N,disabled:u,className:rr,children:e?"Update image":"Insert image"})]}),children:s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("p",{className:"mb-1.5 text-sm font-semibold text-hba-blue-1",children:"Upload a new image"}),s.jsx("input",{ref:y,id:"image-upload",type:"file",accept:"image/jpeg,image/png,image/webp,image/gif,image/avif",disabled:!r||u,onChange:S=>{var $;const j=($=S.target.files)==null?void 0:$[0];j&&v(j),S.target.value=""},className:"block w-full text-sm text-hba-grey-1 file:mr-3 file:cursor-pointer file:rounded-lg file:border-0 file:bg-hba-blue-1 file:px-4 file:py-2 file:text-sm file:font-semibold file:text-white hover:file:bg-hba-blue-2 disabled:cursor-not-allowed disabled:opacity-50"}),!r&&s.jsx("p",{className:"mt-1 text-xs text-amber-700",children:"Save this article once before uploading images, so they can be attached to it."}),u&&s.jsxs("div",{className:"mt-2",children:[s.jsx("div",{role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Upload progress",className:"h-2 w-full overflow-hidden rounded-full bg-gray-200",children:s.jsx("div",{className:"h-full bg-hba-orange-1 transition-all",style:{width:`${h}%`}})}),s.jsxs("p",{className:"mt-1 flex items-center gap-1.5 text-xs text-hba-grey-1",children:[s.jsx(pt,{size:12,className:"animate-spin"}),"Uploading⦠",h,"%"]})]})]}),n.length>0&&s.jsxs("div",{children:[s.jsx("p",{className:"mb-1.5 text-sm font-semibold text-hba-blue-1",children:"Or reuse an image from this article"}),s.jsx("ul",{className:"grid max-h-48 grid-cols-3 gap-2 overflow-y-auto sm:grid-cols-4",children:n.map(S=>{const j=S.public_url===l.src;return s.jsx("li",{children:s.jsx("button",{type:"button",onClick:()=>c($=>({...$,src:S.public_url??"",width:S.width,height:S.height,alt:$.alt||S.alt_text||"",caption:$.caption||S.caption||""})),"aria-pressed":j,className:["block w-full overflow-hidden rounded-lg border-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",j?"border-hba-orange-1":"border-gray-200 hover:border-gray-400"].join(" "),children:s.jsx("img",{src:S.public_url??"",alt:S.alt_text||S.original_filename||"Article image",className:"h-20 w-full object-cover"})})},S.id)})})]}),s.jsx(Xt,{id:"image-src",label:"Image address",hint:"Uploading fills this in automatically. You can also paste an external image URL.",children:s.jsx("input",{id:"image-src",type:"text",value:l.src,onChange:S=>{c(j=>({...j,src:S.target.value})),b(null)},placeholder:"https://â¦",className:Vt})}),l.src&&s.jsx("img",{src:l.src,alt:"",className:"max-h-40 rounded-lg border border-gray-200 object-contain"}),s.jsx(Xt,{id:"image-alt",label:"Alt text (required)",hint:'Describe what the image shows for screen reader users. Type "decorative" if it adds no information.',error:g??void 0,children:s.jsx("input",{id:"image-alt",type:"text",value:l.alt,onChange:S=>{c(j=>({...j,alt:S.target.value})),b(null)},placeholder:"Chart comparing 2026 Medicare Part B premiums",className:Vt,"aria-invalid":g?!0:void 0})}),s.jsx(Xt,{id:"image-caption",label:"Caption (optional)",hint:"Shown below the image.",children:s.jsx("input",{id:"image-caption",type:"text",value:l.caption,onChange:S=>c(j=>({...j,caption:S.target.value})),placeholder:"Source: CMS, 2026",className:Vt})}),s.jsx(Xt,{id:"image-align",label:"Alignment",children:s.jsx("select",{id:"image-align",value:l.align,onChange:S=>c(j=>({...j,align:S.target.value})),className:Vt,children:AWe.map(S=>s.jsx("option",{value:S.value,children:S.label},S.value))})})]})})}function OWe(t){const e=t.trim();return e?e.split(/\s+/).length:0}function PWe(t){const e=t.getText({blockSeparator:" "});return{json:t.getJSON(),html:t.getHTML(),text:e,wordCount:OWe(e)}}function MWe({initialContent:t,onChange:e,editable:r=!0,placeholder:n="Start writingâ¦",minHeight:a=420,articleId:i=null,assets:o=[],onAssetUploaded:l,resetKey:c,ariaLabel:u="Article content",onReady:d,onAskAi:h}){const[m,g]=w.useState(!1),[b,y]=w.useState(!1),[v,N]=w.useState(null),S=w.useRef(e);w.useEffect(()=>{S.current=e},[e]);const j=w.useRef(d);w.useEffect(()=>{j.current=d},[d]);const $=w.useMemo(()=>kWe(n),[n]),C=DVe({extensions:$,content:t??"",editable:r,editorProps:{attributes:{id:"article-editor-surface",role:"textbox","aria-multiline":"true","aria-label":u,class:"hba-article-content focus:outline-none px-5 py-4 [&_.ProseMirror-selectednode]:outline [&_.ProseMirror-selectednode]:outline-2 [&_.ProseMirror-selectednode]:outline-hba-orange-1"}}
1405,onUpdate:({editor:T})=>{S.current(PWe(T))}},[c]);w.useEffect(()=>{C==null||C.setEditable(r)},[C,r]),w.useEffect(()=>{var T;return(T=j.current)==null||T.call(j,C??null),()=>{var I;return(I=j.current)==null?void 0:I.call(j,null)}},[C]);const _=w.useCallback(()=>g(!0),[]),O=w.useCallback(()=>{if(C){if(C.isActive("image")){const T=C.getAttributes("image");N({src:T.src??"",alt:T.alt??"",caption:T.caption??"",align:T.align??"center",width:T.width??null,height:T.height??null})}else N(null);y(!0)}},[C]);if(!C)return s.jsx("div",{className:"flex items-center justify-center rounded-lg border border-gray-300 bg-gray-50 text-sm text-hba-grey-1",style:{minHeight:a},children:"Loading editorâ¦"});const E=C.isActive("image"),P=C.getAttributes("link");return s.jsxs("div",{className:"article-editor-canvas overflow-hidden rounded-lg border border-gray-300 bg-white",children:[r&&s.jsx(SWe,{editor:C,onInsertLink:_,onInsertImage:O,onAskAi:h}),r&&E&&s.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-amber-200 bg-amber-50 px-4 py-2",children:[s.jsxs("p",{className:"text-xs font-semibold text-amber-900",children:["Image selected",!C.getAttributes("image").alt&&" â this image has no alt text"]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs("button",{type:"button",onClick:O,className:"inline-flex items-center gap-1.5 rounded-md border border-amber-300 bg-white px-2.5 py-1 text-xs font-semibold text-amber-900 hover:bg-amber-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",children:[s.jsx(hf,{size:12}),"Edit image"]}),s.jsx("button",{type:"button",onClick:()=>C.chain().focus().deleteSelection().run(),className:"rounded-md border border-amber-300 bg-white px-2.5 py-1 text-xs font-semibold text-red-700 hover:bg-red-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-red-500",children:"Remove"})]})]}),s.jsx("div",{style:{minHeight:a},className:"overflow-y-auto",children:s.jsx($Ve,{editor:C})}),s.jsx(_We,{open:m,editing:C.isActive("link"),initialHref:typeof P.href=="string"?P.href:"",initialNewTab:P.target==="_blank",onCancel:()=>g(!1),onRemove:()=>{C.chain().focus().unsetLink().run(),g(!1)},onSubmit:(T,I)=>{const R=C.chain().focus().extendMarkRange("link");I?R.setLink({href:T,target:"_blank"}).run():R.setLink({href:T,target:null}).run(),g(!1)}}),s.jsx(EWe,{open:b,initial:v,articleId:i,assets:o,onCancel:()=>y(!1),onAssetUploaded:T=>l==null?void 0:l(T),onSubmit:T=>{v?C.chain().focus().updateArticleImage(T).run():C.chain().focus().setArticleImage(T).run(),y(!1)}})]})}const wr={title:{tooltip:"The main headline readers see at the top of the article.",hint:"Keep it clear and specific. This is the only H1 on the page."},publicAuthor:{tooltip:"The person whose name will appear publicly on the article. This can be different from the person writing it.",hint:"Choose from the author directory. Retired authors stay on old articles but are hidden here."},category:{hint:"Required before you submit for review. Select every category that applies."},focusKeyword:{tooltip:"The main phrase someone may search for to find this article.",hint:"Enter one clear phrase, then click Analyze (or leave the field) to look up volume and related keywords."},seoTitle:{tooltip:"The title that may appear as the blue link in Google search results.",hint:"Aim for about 30â60 characters. Falls back to the article title if empty."},metaDescription:{tooltip:"A short summary that may appear below the page title in search results.",hint:"Aim for about 140â158 characters so it is not cut off."},slug:{tooltip:"The end of the articleâs web address (URL).",hint:"Lowercase letters, numbers, and hyphens. Applied when the article is published."},featuredImage:{tooltip:"The main image shown on article cards and at the top of the article.",hint:"Use a clear, relevant photo. Avoid text-heavy graphics when possible."},imageAlt:{tooltip:"A short description of an image for accessibility and search engines."},excerpt:{tooltip:"Short summary used on news cards and listings.",hint:"If you leave this empty, one is generated from the opening text."},postedDate:{tooltip:"The date shown publicly on the article. A future date schedules the article after approval.",hint:"You can backdate if needed. A future date will not publish until approved."},status:{tooltip:"Where this article is in the writing and approval process.",hint:"Draft â In review â Approved â Scheduled or Published."},canonicalUrl:{tooltip:"Only set this if the same content is already published at another official URL.",hint:"Leave blank for normal new articles."}},TWe="https://healthbenefits.net";function Ka(t){return(t??"").replace(/\s+/g," ").trim()}function gy(t){return Ka(t).toLowerCase()}function Tl(t,e){const r=gy(e);return r?gy(t).includes(r):!1}function RWe(t,e){return Tl(t,e)}function by(t){const e=Ka(t);
1405return e?e.split(/\s+/).filter(Boolean).length:0}function IWe(t,e){const r=by(t);if(!r||!Ka(e))return 0;const n=gy(e),a=gy(t);let i=0,o=0;for(;;){const c=a.indexOf(n,o);if(c===-1)break;i+=1,o=c+n.length}const l=Math.max(1,by(e));return i*l/r}function DWe(t){const e=/<a\b[^>]*href\s*=\s*["']([^"']+)["']/gi;let r=0,n=0,a;for(;(a=e.exec(t??""))!==null;){const i=a[1]??"";!i||i.startsWith("#")||i.startsWith("mailto:")||i.startsWith("tel:")||(i.startsWith("/")||i.includes("healthbenefits.net")||i.includes("localhost")?r+=1:/^https?:\/\//i.test(i)&&(n+=1))}return{internal:r,external:n}}function LWe(t){return(t??"").split(/\n+/).filter(r=>by(r)>120).length}function BWe(t){return/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(Ka(t))}function HWe(t){return t>=80?{band:"excellent",bandLabel:"Excellent"}:t>=50?{band:"good",bandLabel:"Good"}:{band:"needs_improvement",bandLabel:"Needs improvement"}}function _t(t,e,r,n,a,i){return{id:t,label:e,status:r,detail:n,maxPoints:a,points:r==="pass"?i:r==="warning"?Math.floor(i/2):0}}function FWe(t){const e=Ka(t.title),r=Ka(t.seoTitle)||e,n=Ka(t.seoDescription)||Ka(t.excerpt),a=Ka(t.focusKeyword),i=Ka(t.slug),o=Ka(t.bodyText),l=t.bodyHtml??"",c=t.headings??[],u=by(o),d=DWe(l),h=a?IWe(o,a):0,m=o.slice(0,400),g=[];a?g.push(_t("focus_present","Focus keyword set","pass",`Focus keyword: â${a}â.`,4,4)):g.push(_t("focus_present","Focus keyword set","fail","Add a focus keyword so we can check whether the article targets a clear search phrase.",4,4)),g.push(a&&Tl(e,a)?_t("focus_in_title","Focus keyword in article title","pass","The article title includes the focus keyword.",6,6):_t("focus_in_title","Focus keyword in article title","fail","Include the focus keyword in the article title when it still reads naturally.",6,6)),g.push(a&&Tl(r,a)?_t("focus_in_seo_title","Focus keyword in SEO title","pass","The SEO title includes the focus keyword.",6,6):_t("focus_in_seo_title","Focus keyword in SEO title","fail","Add the focus keyword near the start of the SEO title.",6,6)),g.push(a&&Tl(i.replace(/-/g," "),a)?_t("focus_in_slug","Focus keyword in URL slug","pass","The URL slug reflects the focus keyword.",5,5):_t("focus_in_slug","Focus keyword in URL slug","warning","Try including the focus keyword in the URL slug.",5,5)),g.push(a&&Tl(n,a)?_t("focus_in_meta","Focus keyword in meta description","pass","The meta description includes the focus keyword.",5,5):_t("focus_in_meta","Focus keyword in meta description","fail","Mention the focus keyword once in the meta description.",5,5)),g.push(a&&Tl(m,a)?_t("focus_in_intro","Focus keyword near the start","pass","The focus keyword appears in the opening of the article.",5,5):_t("focus_in_intro","Focus keyword near the start","warning","Use the focus keyword in the first paragraph when it fits naturally.",5,5));const b=a&&c.some(L=>Tl(L,a));g.push(b?_t("focus_in_heading","Focus keyword in a heading","pass","At least one subheading includes the focus keyword.",4,4):_t("focus_in_heading","Focus keyword in a heading","warning","Include the focus keyword in at least one H2âH4 heading.",4,4)),a&&h>.035?g.push(_t("keyword_stuffing","Natural keyword usage","fail","The focus keyword appears very often. Ease up so the writing stays natural.",5,5)):a&&h>0?g.push(_t("keyword_stuffing","Natural keyword usage","pass","Keyword usage looks reasonable (not stuffed).",5,5)):g.push(_t("keyword_stuffing","Natural keyword usage","warning","Use the focus keyword a few times in the body where it fits.",5,5));const y=r.length;g.push(y>=30&&y<=60?_t("seo_title_length","SEO title length","pass",`SEO title is ${y} characters (aim 30â60).`,8,8):_t("seo_title_length","SEO title length",y===0?"fail":"warning",`SEO title is ${y} characters. Aim for about 30â60 so search results do not cut it off.`,8,8));const v=n.length;g.push(v>=120&&v<=158?_t("meta_length","Meta description length","pass",`Meta description is ${v} characters (aim 140â158).`,8,8):_t("meta_length","Meta description length",v===0?"fail":"warning",`Meta description is ${v} characters. Aim for about 140â158.`,8,8));const N=Number(t.targetWordCount);if(Number.isFinite(N)&&N>0){const L=Math.round(N),q=Math.round(L*.9),G=Math.round(L*.5),B=`Article length: ${u.toLocaleStr
1405ing()} / ${L.toLocaleString()} words`;g.push(u>=q?_t("article_length","Article length","pass",B,8,8):u>=G?_t("article_length","Article length","warning",B,8,8):_t("article_length","Article length","fail",B,8,8))}else g.push(u>=600?_t("article_length","Article length","pass",`About ${u} words â enough depth for most topics.`,8,8):u>=300?_t("article_length","Article length","warning",`About ${u} words. Longer articles (600+) often cover a topic more completely.`,8,8):_t("article_length","Article length","fail",`About ${u} words. Add more helpful detail for readers.`,8,8));const S=(t.relatedKeywords??[]).map(L=>Ka(L)).filter(Boolean);if(S.length>0){const L=S.filter(B=>Tl(o,B)).length,q=Math.max(1,Math.min(3,Math.ceil(S.length*.4))),G=`Used ${L} of ${S.length} recommended phrases in the article.`;g.push(L>=q?_t("related_keywords","Related keywords in the article","pass",G,5,5):L>=1?_t("related_keywords","Related keywords in the article","warning",G,5,5):_t("related_keywords","Related keywords in the article","fail",G,5,5))}g.push(c.length>=2?_t("heading_structure","Heading structure","pass",`${c.length} subheadings help readers scan the article.`,6,6):_t("heading_structure","Heading structure","warning","Add a few H2/H3 subheadings to break up the article.",6,6));const j=LWe(o);g.push(j===0?_t("paragraph_length","Readable paragraphs","pass","Paragraphs look reasonably short for easy reading.",4,4):_t("paragraph_length","Readable paragraphs","warning",`${j} paragraph(s) look quite long. Break them up for easier reading.`,4,4)),g.push(d.internal>0?_t("internal_links","Internal links","pass","The article links to other HBA pages.",3,3):_t("internal_links","Internal links","warning","Add at least one link to another HBA page or article.",3,3)),g.push(d.external>0?_t("external_links","External links","pass","The article includes an outbound reference link.",3,3):_t("external_links","External links","info","Optional: link to a trusted external source when it helps the reader.",3,0)),g.push(t.hasFeaturedImage?_t("featured_image","Featured image","pass","A featured image is set.",5,5):_t("featured_image","Featured image","warning","Add a featured image for listings and social sharing.",5,5));const $=t.imageAlts??[],C=$.filter(L=>!L.hasAlt).length;g.push($.length===0?_t("image_alt","Image alt text","info","No inline images yet. When you add images, include short alt text.",5,0):C===0?_t("image_alt","Image alt text","pass","Inline images have alt text.",5,5):_t("image_alt","Image alt text","warning",`${C} image(s) are missing alt text.`,5,5)),g.push(t.hasPrimaryCategory?_t("primary_category","Primary category","pass","A primary category is selected.",5,5):_t("primary_category","Primary category","fail","Choose a primary category before submitting for review.",5,5)),g.push(i&&BWe(i)?_t("slug_valid","URL slug","pass","The URL slug uses lowercase letters, numbers, and hyphens.",5,5):_t("slug_valid","URL slug","fail","Set a valid URL slug (lowercase letters, numbers, hyphens).",5,5));const _=g.reduce((L,q)=>L+q.points,0),O=g.reduce((L,q)=>L+q.maxPoints,0)||1,E=Math.max(0,Math.min(100,Math.round(_/O*100))),{band:P,bandLabel:T}=HWe(E),I=g.filter(L=>L.status==="pass"),R=g.filter(L=>L.status==="warning"||L.status==="info"),F=g.filter(L=>L.status==="fail");return{score:E,band:P,bandLabel:T,checks:g,passed:I,warnings:R,improvements:F,serp:{title:r||"Article title",url:`${TWe}/${i||"your-article-slug"}/`,description:n||"A short summary of the article may appear here in search results."}}}function zWe(t){const e=[],r=n=>{var a;for(const i of n??[])if(i){if(i.type==="heading"){const o=Number(((a=i.attrs)==null?void 0:a.level)??2);if(o>=2&&o<=4){const l=Ite(i);l&&e.push(l)}}Array.isArray(i.content)&&r(i.content)}};return r(t.content??[]),e}function Ite(t){if(typeof t.text=="string")return t.text;const e=[];for(const r of t.content??[])r&&typeof r=="object"&&e.push(Ite(r));return Ka(e.join(" "))}const VWe=[{id:"focus",label:"Focus keyword",checkIds:["focus_present","focus_in_title","focus_in_seo_title","focus_in_slug","focus_in_meta","focus_in_intro","focus_in_heading","keyword_stuffing","related_keywords"]},{id:"appearance",label:"Search appearance",checkIds:["seo_title_length","meta_length","slug_valid"]},{id:"structure",label:"Content structure",checkIds:["article_length","heading_structure","primary_category"]},{id:"readability",label:"Readability",checkIds:["paragraph_length"]},{id:"links",label:"Links",checkIds:["internal_links","external_links"]},{id:"images",label:"Images",checkIds:["featured_image","image_alt"]}];function UWe(t){return t>=90?{key:"excellent",label:"Excellent"}:t>=70?{key:"good",label:"Good"}:t>=40?{key:"needs_improvement",label:"Needs improvement"}:{key:"needs_attention",label:"Needs attention"}}
1405function qWe(t){const e=t.title.trim(),r=t.focusKeyword.trim(),n=t.bodyText.trim().split(/\s+/).filter(Boolean).length;return!!(e&&r&&n>0)}function WWe(t){return t.status==="pass"}function GWe(t){return t.status==="fail"||t.status==="warning"||t.status==="info"}function KWe(t,e){const r=e.filter(n=>t.checkIds.includes(n.id));return{passed:r.filter(WWe).length,total:r.length}}function iV(t){switch(t.id){case"focus_present":return{label:"Add keyword",target:{kind:"field",id:"seo-keyword"}};case"focus_in_title":return{label:"Edit title",target:{kind:"field",id:"article-title"}};case"focus_in_seo_title":case"seo_title_length":return{label:"Edit SEO title",target:{kind:"field",id:"seo-title"}};case"focus_in_slug":case"slug_valid":return{label:"Edit URL",target:{kind:"field",id:"seo-slug"}};case"focus_in_meta":case"meta_length":return{label:"Add search description",target:{kind:"field",id:"seo-description"}};case"focus_in_intro":return{label:"Add keyword to introduction",target:{kind:"editor"}};case"focus_in_heading":case"heading_structure":return{label:"Review headings",target:{kind:"editor"}};case"internal_links":return{label:"Add internal link",target:{kind:"editor"}};case"featured_image":return{label:"Add featured image",target:{kind:"inspector",tab:"media"}};case"image_alt":return{label:"Add image alt text",target:{kind:"inspector",tab:"media"}};case"primary_category":return{label:"Choose category",target:{kind:"inspector",tab:"settings"}};case"article_length":case"paragraph_length":case"keyword_stuffing":case"related_keywords":case"external_links":return{label:"Review content",target:{kind:"editor"}};default:return null}}function YWe(t){return t==="pass"?"Passed":t==="fail"?"Needs work":t==="warning"?"Recommendation":"Note"}function m9({value:t,min:e,max:r}){const n=t.length,a=n>r,i=e!==void 0&&n>0&&n<e;return s.jsxs("span",{className:["text-xs font-semibold",a||i?"text-amber-700":"text-hba-grey-1"].join(" "),children:[n,"/",r]})}function g9(t){const e=document.getElementById(t);e&&(e.scrollIntoView({block:"center",behavior:"smooth"}),"focus"in e&&typeof e.focus=="function"&&e.focus())}function XWe({values:t,onChange:e,articleId:r,disabled:n,publishedSlug:a,articleTitle:i,bodyText:o,bodyHtml:l,contentJson:c,hasFeaturedImage:u,imageAlts:d,hasPrimaryCategory:h,onSwitchInspectorTab:m,onFocusEditor:g,onAnalysisChange:b,onSlugTakenOver:y}){const[v,N]=w.useState({checking:!1,available:null}),[S,j]=w.useState(!1),[$,C]=w.useState(!1),[_,O]=w.useState(null),[E,P]=w.useState(!1),[T,I]=w.useState(!1),[R,F]=w.useState(!0),[L,q]=w.useState(!!t.seoTitle.trim()),[G,B]=w.useState(!!t.seoDescription.trim()),[H,K]=w.useState(null),[Z,V]=w.useState(!1),[U,Y]=w.useState(null),[de,ge]=w.useState(""),[fe,Oe]=w.useState({title:i,values:t,bodyText:o,bodyHtml:l,contentJson:c,hasFeaturedImage:u,imageAlts:d,hasPrimaryCategory:h}),[Ce,le]=w.useState(null);w.useEffect(()=>{const Q=window.setTimeout(()=>{Oe({title:i,values:t,bodyText:o,bodyHtml:l,contentJson:c,hasFeaturedImage:u,imageAlts:d,hasPrimaryCategory:h}),le(new Date().toISOString())},500);return()=>window.clearTimeout(Q)},[i,t,o,l,c,u,d,h]),w.useEffect(()=>{t.seoTitle.trim()&&q(!0)},[t.seoTitle]),w.useEffect(()=>{t.seoDescription.trim()&&B(!0)},[t.seoDescription]),w.useEffect(()=>{const Q=t.slug.trim();if(!Q||Q===a){N({checking:!1,available:null}),j(!1);return}let xe=!1;N({checking:!0,available:null});const ye=window.setTimeout(()=>{yZ(Q,{articleId:r??void 0}).then(X=>{var ve,He;xe||N({checking:!1,available:X.available,reason:X.reason,ownerLabel:(ve=X.owner)==null?void 0:ve.label,ownerTitle:(He=X.owner)==null?void 0:He.title,canTakeover:X.canTakeover,suggestedReplacement:X.suggestedReplacement})}).catch(()=>{xe||N({checking:!1,available:null})})},450);return()=>{xe=!0,window.clearTimeout(ye)}},[t.slug,r,a]);const we=async Q=>{const xe=Q.replace(/\s+/g," ").trim();if(!(!xe||n)&&!(xe.toLowerCase()===de.toLowerCase()&&H)){V(!0),Y(null);try{const ye=await lLe(xe);K(ye),ge(xe)}catch(ye){const X=ye instanceof At?ye.message:"Could not look up that keyword.";Y(X),K(null),ge("")}finally{V(!1)}}},ke=qWe({title:fe.title,focusKeyword:fe.values.seoFocusKeyword,bodyText:fe.bodyText}),oe=w.useMemo(()=>
1405{if(!ke)return null;const Q=fe.contentJson&&typeof fe.contentJson=="object"?zWe(fe.contentJson):[];return FWe({title:fe.title,seoTitle:fe.values.seoTitle,seoDescription:fe.values.seoDescription,focusKeyword:fe.values.seoFocusKeyword,slug:fe.values.slug,excerpt:fe.values.excerpt,bodyText:fe.bodyText,bodyHtml:fe.bodyHtml,hasFeaturedImage:fe.hasFeaturedImage,imageAlts:fe.imageAlts,hasPrimaryCategory:fe.hasPrimaryCategory,headings:Q,targetWordCount:H==null?void 0:H.averageWordCount,relatedKeywords:H==null?void 0:H.relatedKeywords.map(xe=>xe.keyword)})},[fe,ke,H]),qe=w.useRef(b);qe.current=b,w.useEffect(()=>{var Q;(Q=qe.current)==null||Q.call(qe,oe,ke)},[oe,ke]);const Le=w.useMemo(()=>{const Q=new Set;for(const xe of(H==null?void 0:H.relatedKeywords)??[])RWe(o,xe.keyword)&&Q.add(xe.keyword.toLowerCase());return Q},[o,H]),Ke=!!(a&&t.slug.trim()&&t.slug.trim()!==a),ne=t.seoTitle.trim()||i.trim(),Se=t.seoDescription.trim()||t.excerpt.trim(),$e=!t.seoTitle.trim()&&!!i.trim(),Ae=!t.seoDescription.trim()&&!!t.excerpt.trim(),Ve=Q=>{const xe=iV(Q);if(xe)if(xe.target.kind==="field"){const ye=xe.target.id;ye==="seo-title"&&q(!0),ye==="seo-description"&&B(!0),window.setTimeout(()=>g9(ye),0)}else xe.target.kind==="inspector"?m==null||m(xe.target.tab):g==null||g()},ae=(oe==null?void 0:oe.checks.filter(GWe))??[],W=(oe==null?void 0:oe.passed)??[],ee=oe?UWe(oe.score):null;return s.jsxs("div",{className:"space-y-5",children:[!ke||!oe||!ee?s.jsxs("div",{className:"rounded-[10px] border border-dashed border-admin-border bg-[#F5F7F8] px-4 py-5",children:[s.jsx("p",{className:"font-heading text-lg font-bold text-hba-blue-1",children:"Not analyzed yet"}),s.jsx("p",{className:"mt-1 text-sm text-hba-grey-1",children:"Add a title, focus keyword and article content to begin."})]}):s.jsxs("div",{children:[s.jsx("div",{className:"flex items-end justify-between gap-3",children:s.jsxs("div",{children:[s.jsxs("p",{className:"font-heading text-3xl font-bold text-hba-blue-1","aria-label":`SEO score ${oe.score} out of 100, ${ee.label}`,children:[oe.score," / 100"]}),s.jsx("p",{className:"mt-1 text-sm font-semibold text-hba-blue-1",children:ee.label})]})}),s.jsx("div",{className:"mt-3 h-2 overflow-hidden rounded-full bg-[#E8EEF0]",role:"progressbar","aria-valuenow":oe.score,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"SEO score",children:s.jsx("div",{className:["h-full rounded-full transition-all",ee.key==="excellent"?"bg-green-600":ee.key==="good"?"bg-hba-blue-2":ee.key==="needs_improvement"?"bg-amber-500":"bg-red-500"].join(" "),style:{width:`${oe.score}%`}})}),s.jsxs("p",{className:"mt-2 text-sm text-hba-grey-1",children:[W.length," checks passed · ",ae.length," recommendation",ae.length===1?"":"s"]}),s.jsxs("p",{className:"text-xs text-hba-grey-1",children:["Updated ",Mu(Ce)]})]}),oe&&s.jsx("div",{className:"grid grid-cols-2 gap-2",children:VWe.map(Q=>{const xe=KWe(Q,oe.checks);return xe.total===0?null:s.jsxs("p",{className:"text-xs text-hba-grey-1",children:[s.jsx("span",{className:"font-semibold text-hba-blue-1",children:Q.label})," ",xe.passed,"/",xe.total]},Q.id)})}),ae.length>0&&s.jsxs("div",{children:[s.jsx("h3",{className:"font-heading text-sm font-bold text-hba-blue-1",children:"Recommended improvements"}),s.jsx("ul",{className:"mt-2 space-y-2",children:ae.map(Q=>{const xe=iV(Q);return s.jsxs("li",{className:"rounded-[10px] border border-amber-200 bg-amber-50 px-3 py-3",children:[s.jsxs("div",{className:"flex items-start justify-between gap-2",children:[s.jsx("p",{className:"text-sm font-semibold text-hba-blue-1",children:Q.label}),s.jsx("span",{className:"shrink-0 text-[11px] font-semibold text-amber-800",children:YWe(Q.status)})]}),s.jsx("p",{className:"mt-1 text-xs text-hba-grey-1",children:Q.detail}),xe&&s.jsx("button",{type:"button",onClick:()=>Ve(Q),className:"mt-2 inline-flex min-h-8 items-center rounded-lg border border-amber-300 bg-white px-2.5 text-xs font-semibold text-hba-blue-1 hover:bg-amber-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",children:xe.label})]},Q.id)})})]}),s.jsxs("div",{className:"rounded-[10px] border border-admin-border bg-white p-3",children:[s.jsx("p",{className:"mb-2 text-xs font-semibold text-hba-grey-1",children:"Search preview"}),s.jsx("p",{className:"truncate text-lg text-[#1a0dab]",children:(oe==null?void 0:oe.serp.title)||ne||"Article title"}),s.jsx("p",{className:"truncate text-sm text-[#006621]",children:(oe==null?void 0:oe.serp.url)||`https://healthbenefits.net/${t.slug||"your-article-slug"}/`}),s.jsx("p",{className:"mt-1 line-clamp-2 text-sm text-[#545454]",children:(oe==null?void 0:oe.serp.description)||Se||"A short summary of the article may appear here in search results."})]}),s.jsx(Xt,{id:"seo-slug",label:"URL slug",tooltip:wr.slug.tooltip,hint:wr.slug.hint,aside:v.checking?s.jsxs("span",{className:"flex items-center gap-1 text-xs text-hba-grey-1",children:[s.jsx(pt,{size:11,className:"animate-spin"}),"Checking"]}):v.available===!0?s.jsxs("span",{className:"flex items-center gap-1 text-xs font-semibold text-green-700",children:[s.jsx(er,{size:11}),"Available"]}):v.available===!1?s.jsxs("span",{className:"flex items-center gap-1 text-xs font-semibold text-red-600",children:[s.jsx(iU,{size:11}),"Taken"]}):null,error:v.available===!1?v.reason:void 0,children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("span",{className:"text-sm text-hba-grey-1",children:"/"}),s.jsx("input",{id:"seo-slug",type:"text",value:t.slug,disabled:n,onChange:Q=>e({slug:Q.target.value}),placeholder:"understanding-medicare-advantage-2026",className:Vt,"aria-invalid":v.available===!1?!0:void 0})]})}),v.available===!1&&s.jsxs("div",{className:"rounded-[10px] border border-red-200 bg-red-50 px-3 py-2 text-xs text-red-900",children:[s.jsxs("p",{children:[v.reason??"This URL slug is already in use.",v.ownerLabel?s.jsxs(s.Fragment,{children:[" ","Used by: ",s.jsx("span",{className:"font-semibold",children:v.ownerLabel}),v.ownerTitle?` (â${v.ownerTitle}â)`:"","."]}):null]}),v.canTakeover&&r&&!S&&s.jsx("button",{type:"button",disabled:n,onClick:()=>{O(null),j(!0)},className:"mt-2 font-semibold text-hba-orange-1 hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",children:"Replace legacy article"}),S&&r&&s.jsxs("div",{className:"mt-2 space-y-2 rounded-[8px] border border-amber-300 bg-amber-50 p-2 text-amber-950",children:[s.jsx("p",{className:"font-semibold",children:"This will move the live URL."}),s.jsxs("p",{children:["Legacy URL becomes"," ",s.jsxs("code",{children:["/",v.suggestedReplacement??`${t.slug.trim()}-legacy`,"/"]})]}),s.jsxs("p",{children:["This article becomes ",s.jsxs("code",{children:["/",t.slug.trim(),"/"]})]}),_?s.jsx("p",{className:"text-red-700",children:_}):null,s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{type:"button",disabled:$||n,onClick:()=>{C(!0),O(null),cLe(r,{slug:t.slug.trim(),confirm:!0,replacementSlug:v.suggestedReplacement}).then(Q=>{j(!1),N({checking:!1,available:!0}),e({slug:Q.slug}),y==null||y({slug:Q.slug,legacySlug:Q.legacySlug})}).catch(Q=>{O(Q instanceof At?Q.message:"Could not transfer that URL.")}).finally(()=>C(!1))},className:"rounded-md bg-hba-orange-1 px-2 py-1 font-semibold text-white disabled:opacity-60",children:$?"Transferringâ¦":"Confirm takeover"}),s.jsx("button",{type:"button",disabled:$,onClick:()=>j(!1),className:"rounded-md px-2 py-1 font-semibold",children:"Cancel"})]})]})]}),Ke&&s.jsxs("p",{className:"rounded-[10px] border border-amber-300 bg-amber-50 px-3 py-2 text-xs text-amber-900",children:[s.jsx("span",{className:"font-bold",children:"This changes the public URL."})," The article is currently live at ",s.jsxs("code",{children:["/",a]}),". After publishing it will move to"," ",s.jsxs("code",{children:["/",t.slug.trim()]}),", and the old address will stop working unless a redirect is added."]}),s.jsx(Xt,{id:"seo-excerpt",label:"Excerpt",tooltip:wr.excerpt.tooltip,hint:wr.excerpt.hint,aside:s.jsx(m9,{value:t.excerpt,max:320}),children:s.jsx("textarea",{id:"seo-excerpt",value:t.excerpt,disabled:n,onChange:Q=>e({excerpt:Q.target.value}),rows:3,className:`${Vt} h-auto min-h-[5.5rem] resize-y`,placeholder:"A short summary of what the reader will learn."})}),s.jsxs("div",{children:[s.jsx(Xt,{id:"seo-title",label:"Search title",tooltip:wr.seoTitle.tooltip,hint:wr.seoTitle.hint,aside:s.jsx(m9,{value:ne,max:60}),children:L?s.jsx("input",{id:"seo-title",type:"text",value:t.seoTitle,disabled:n,onChange:Q=>e({seoTitle:Q.target.value}),className:Vt}):s.jsxs("button",{type:"button",id:"seo-title",onClick:()=>q(!0),className:"w-full rounded-[10px] border border-admin-border bg-[#F5F7F8] px-3 py-2 text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",children:[s.jsx("span",{className:"block text-sm text-hba-blue-1",children:ne||"Article title"}),$e&&s.jsx("span",{className:"mt-0.5 block text-xs text-hba-grey-1",children:"Using article title"})]})}),!L&&s.jsx("button",{type:"button",onClick:()=>{q(!0),window.setTimeout(()=>g9("seo-title"),0)},className:"mt-1 text-xs font-semibold text-hba-orange-1 hover:underline",children:"Customize"})]}),s.jsxs("div",{children:[s.jsx(Xt,{id:"seo-description",label:"Search description",tooltip:wr.metaDescription.tooltip,hint:wr.metaDescription.hint,aside:s.jsx(m9,{value:Se,min:140,max:158}),children:G?s.jsx("textarea",{id:"seo-description",value:t.seoDescription,disabled:n,onChange:Q=>e({seoDescription:Q.target.value}),rows:3,className:`${Vt} h-auto min-h-[5.5rem] resize-y`}):s.jsxs("button",{type:"button",id:"seo-description",onClick:()=>B(!0),className:"w-full rounded-[10px] border border-admin-border bg-[#F5F7F8] px-3 py-2 text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",children:[s.jsx("span",{className:"block text-sm text-hba-blue-1",children:Se||"A short summary of the article may appear here."}),Ae&&s.jsx("span",{className:"mt-0.5 block text-xs text-hba-grey-1",children:"Generated from excerpt"})]})}),!G&&s.jsx("button",{type:"button",onClick:()=>{B(!0),window.setTimeout(()=>g9("seo-description"),0)},className:"mt-1 text-xs font-semibold text-hba-orange-1 hover:underline",children:"Customize"})]}),s.jsxs(Xt,{id:"seo-keyword",label:"Focus keyword",tooltip:wr.focusKeyword.tooltip,hint:wr.focusKeyword.hint,children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{id:"seo-keyword",type:"text",value:t.seoFocusKeyword,disabled:n,onChange:Q=>e({seoFocusKeyword:Q.target.value}),onBlur:()=>void we(t.seoFocusKeyword),onKeyDown:Q=>{Q.key==="Enter"&&(Q.preventDefault(),we(t.seoFocusKeyword))},className:Vt}),s.jsx("button",{type:"button",onClick:()=>void we(t.seoFocusKeyword),disabled:n||Z||!t.seoFocusKeyword.trim(),className:"inline-flex h-10 shrink-0 items-center justify-center rounded-[10px] border border-admin-border bg-white px-3 text-xs font-semibold text-hba-blue-1 transition-colors hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1 disabled:cursor-not-allowed disabled:opacity-50",children:Z?"Analyzing":"Analyze"})]}),H&&de.toLowerCase()===t.seoFocusKeyword.trim().toLowerCase()&&s.jsxs("p",{className:"mt-2 flex flex-wrap gap-x-4 gap-y-1 text-xs font-semibold text-hba-blue-1",children:[s.jsxs("span",{children:["Volume: ",H.searchVolume.toLocaleStr
1405ing(),"/mo"]}),s.jsxs("span",{children:["Difficulty: ",H.competitionIndex,"/100"]})]}),U&&s.jsx("p",{className:"mt-1 text-xs font-semibold text-red-600",role:"alert",children:U})]}),H&&H.relatedKeywords.length>0&&s.jsxs("div",{children:[s.jsxs("button",{type:"button",onClick:()=>F(Q=>!Q),className:"flex w-full items-center justify-between rounded-[10px] border border-admin-border px-3 py-2 text-left text-sm font-semibold text-hba-blue-1 hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1","aria-expanded":R,children:[s.jsx("span",{children:"Recommended keywords"}),R?s.jsx(mu,{size:16}):s.jsx(Vn,{size:16})]}),R&&s.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5 rounded-[10px] border border-gray-100 bg-gray-50 p-2",children:H.relatedKeywords.map(Q=>{const xe=Le.has(Q.keyword.toLowerCase());return s.jsx("span",{className:["inline-flex rounded-full px-2.5 py-1 text-xs font-semibold",xe?"bg-green-100 text-green-800":"bg-white text-hba-blue-1 shadow-sm"].join(" "),title:xe?"Found in the article":"Not used in the article yet",children:Q.keyword},Q.keyword)})})]}),W.length>0&&s.jsxs("div",{children:[s.jsxs("button",{type:"button",onClick:()=>P(Q=>!Q),className:"flex w-full items-center justify-between rounded-[10px] border border-admin-border px-3 py-2 text-left text-sm font-semibold text-hba-blue-1 hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1","aria-expanded":E,children:[s.jsxs("span",{children:["â ",W.length," checks passed"]}),E?s.jsx(mu,{size:16}):s.jsx(Vn,{size:16})]}),E&&s.jsx("ul",{className:"mt-2 space-y-1.5",children:W.map(Q=>s.jsxs("li",{className:"rounded-md bg-[#F5F7F8] px-2.5 py-2 text-xs",children:[s.jsx("p",{className:"font-semibold text-hba-blue-1",children:Q.label}),s.jsx("p",{className:"text-hba-grey-1",children:Q.detail})]},Q.id))})]}),s.jsxs("div",{children:[s.jsxs("button",{type:"button",onClick:()=>I(Q=>!Q),className:"flex w-full items-center justify-between rounded-[10px] border border-admin-border px-3 py-2 text-left text-sm font-semibold text-hba-blue-1 hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1","aria-expanded":T,children:[s.jsx("span",{children:"Advanced SEO"}),T?s.jsx(mu,{size:16}):s.jsx(Vn,{size:16})]}),T&&s.jsx("div",{className:"mt-3",children:s.jsx(Xt,{id:"seo-canonical",label:"Canonical URL",tooltip:wr.canonicalUrl.tooltip,hint:wr.canonicalUrl.hint,children:s.jsx("input",{id:"seo-canonical",type:"url",value:t.canonicalUrl,disabled:n,onChange:Q=>e({canonicalUrl:Q.target.value}),placeholder:"https://â¦",className:Vt})})})]})]})}function b9(t,e){return`${t} ${e}`}function JWe({authors:t,categories:e,authorId:r,categoryIds:n,postedAtLocal:a,slug:i,statusLabel:o,detail:l,disabled:c,onAuthorChange:u,onCategoryIdsChange:d,onPostedAtChange:h,onOpenSeoSlug:m,isActive:g,onIsActiveChange:b}){const y=t.find(O=>O.id===r)??null,v=t.filter(O=>O.is_active),N=y&&!y.is_active?[y,...v.filter(O=>O.id!==y.id)]:v,S=e.filter(O=>O.is_active!==!1),j=n.map(O=>e.find(E=>E.id===O)).filter(O=>!!O),C=[...j.filter(O=>O.is_active===!1),...S],_=O=>{if(n.includes(O)){d(n.filter(E=>E!==O));return}n.length>=20||d([...n,O])};return s.jsxs("div",{className:"space-y-5",children:[s.jsx(Xt,{id:"article-status-display",label:"Article status",tooltip:b9(wr.status.tooltip,wr.status.hint),children:s.jsx("p",{id:"article-status-display",className:"flex h-10 items-center rounded-[10px] border border-admin-border bg-[#F5F7F8] px-3 text-sm font-semibold text-hba-blue-1",children:o})}),s.jsx(Xt,{id:"public-author",label:"Public author (required)",tooltip:b9(wr.publicAuthor.tooltip,wr.publicAuthor.hint),children:s.jsxs("select",{id:"public-author",value:r??"",disabled:c,required:!0,"aria-required":"true",onChange:O=>u(O.target.value||null),className:Vt,children:[s.jsx("option",{value:"",children:"Select authorâ¦"}),N.map(O=>s.jsxs("option",{value:O.id,children:[O.display_name,O.job_title?` â ${O.job_title}`:"",O.is_active?"":" (retired)"]},O.id))]})}),(y==null?void 0:y.profile_image_url)&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("img",{src:y.profile_image_url,alt:"",className:"h-9 w-9 rounded-full border border-gray-200 object-cover"}),s.jsxs("div",{className:"min-w-0 text-xs text-hba-grey-1",children:[s.jsx("p",{className:"truncate font-semibold text-hba-blue-1",children:y.display_name}),y.job_title&&s.jsx("p",{className:"truncate",children:y.job_title})]})]}),s.jsxs("fieldset",{className:"min-w-0",children:[s.jsx("legend",{className:"mb-1.5 text-sm font-medium text-admin-text",children:"Category (required)"}),s.jsx("p",{className:"mb-2 text-xs text-hba-grey-1",children:wr.category.hint}),j.length>0&&s.jsx("ul",{className:"mb-2 flex flex-wrap gap-1.5",children:j.map(O=>s.jsx("li",{children:s.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-[#E8EEF0] px-2.5 py-1 text-xs font-semibold text-hba-blue-1",children:[O.name,!c&&s.jsx("button",{type:"button",onClick:()=>
1405_(O.id),className:"rounded-full p-0.5 hover:bg-white focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1","aria-label":`Remove ${O.name}`,children:"Ã"})]})},O.id))}),s.jsx("div",{id:"article-category",role:"group","aria-label":"Categories","aria-required":"true",className:"max-h-48 space-y-1 overflow-y-auto rounded-[10px] border border-admin-border bg-white px-2 py-2",children:C.length===0?s.jsx("p",{className:"px-1 py-2 text-xs text-hba-grey-1",children:"No categories are available yet."}):C.map(O=>{const E=n.includes(O.id);return s.jsxs("label",{className:"flex min-h-10 cursor-pointer items-center gap-2 rounded-lg px-2 text-sm text-hba-blue-1 hover:bg-[#F5F7F8]",children:[s.jsx("input",{type:"checkbox",checked:E,disabled:c||!E&&n.length>=20,onChange:()=>_(O.id),className:"h-4 w-4 rounded border-admin-border text-admin-primary focus:ring-hba-orange-1"}),s.jsxs("span",{children:[O.name,O.is_active===!1?" (inactive)":""]})]},O.id)})})]}),s.jsx(Xt,{id:"posted-at",label:"Posted date",tooltip:b9(wr.postedDate.tooltip,`${wr.postedDate.hint} Uses America/Los_Angeles.`),children:s.jsx("input",{id:"posted-at",type:"datetime-local",value:a,disabled:c,onChange:O=>h(O.target.value),className:Vt})}),s.jsxs("label",{className:"flex items-start gap-2 text-sm text-hba-blue-1",children:[s.jsx("input",{type:"checkbox",checked:g,disabled:c,onChange:O=>b(O.target.checked),className:"mt-0.5"}),s.jsxs("span",{children:[s.jsx("span",{className:"font-semibold",children:"Active listing"}),s.jsx("span",{className:"block text-xs text-hba-grey-1",children:"Inactive articles are hidden from the public site even if they are published."})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"mb-1.5 text-sm font-medium text-admin-text",children:"URL slug"}),s.jsxs("p",{className:"text-sm text-hba-blue-1",children:["/",i||"your-article-slug"]}),s.jsx("button",{type:"button",onClick:m,className:"mt-1 text-sm font-semibold text-hba-orange-1 hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",children:"Edit in SEO"})]}),(l==null?void 0:l.article.scheduled_for)&&s.jsxs("p",{className:"text-xs text-hba-grey-1",children:["Scheduled for ",Pf(l.article.scheduled_for)]}),c&&s.jsx("p",{className:"text-xs text-hba-grey-1",children:(l==null?void 0:l.permissions.canEditReason)??"These fields cannot be changed while the article is read-only."})]})}function QWe({articleId:t,assets:e,featuredImageUrl:r,featuredImageAlt:n,onFeaturedChange:a,onAssetsChange:i,onInsertIntoArticle:o,disabled:l}){const[c,u]=w.useState(!1),[d,h]=w.useState(0),[m,g]=w.useState(!1),[b,y]=w.useState(null),[v,N]=w.useState(""),[S,j]=w.useState(!1),$=w.useRef(null),C=w.useRef(null),_=async(T,I=!1)=>{if(!t){te.error("Save the article once before uploading images.");return}u(!0),h(0);try{const R=await vZ(t,T,{},h);i([R,...e.filter(F=>F.id!==R.id)]),I&&a({featuredImageUrl:R.public_url??"",featuredImageAlt:R.alt_text??n,featuredAssetId:R.id}),te.success("Image uploaded")}catch(R){te.error(R instanceof At?R.message:"Upload failed. Please try again.")}finally{u(!1),C.current=null}},O=(T,I=!1)=>{const R=T==null?void 0:T[0];R&&_(R,I)},E=async()=>{if(!(!t||!b)){j(!0);try{const{asset:T}=await fLe(t,b.id,{altText:v});i(e.map(I=>I.id===T.id?T:I)),T.public_url===r&&a({featuredImageAlt:T.alt_text??""}),y(null),te.success("Alt text saved")}catch(T){te.error(T instanceof At?T.message:"Could not save the alt text.")}finally{j(!1)}}},P=e.filter(T=>{var I;return!((I=T.alt_text)!=null&&I.trim())}).length;return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx(Xt,{id:"featured-image",label:"Featured image",tooltip:wr.featuredImage.tooltip,hint:wr.featuredImage.hint,children:s.jsx("span",{id:"featured-image",className:"sr-only",children:"Featured image picker"})}),r?s.jsxs("div",{className:"space-y-2",children:[s.jsx("img",{src:r,alt:n||"",className:"h-28 w-full rounded-[10px] border border-admin-border object-cover"}),s.jsx(Xt,{id:"featured-alt",label:"Featured image alt text",tooltip:wr.imageAlt.tooltip,children:s.jsx("input",{id:"featured-alt",type:"text",value:n,disabled:l,onChange:T=>a({featuredImageAlt:T.target.value}),className:Vt})}),s.jsx("button",{type:"button",disabled:l,onClick:()=>a({featuredImageUrl:"",featuredImageAlt:"",featuredAssetId:null}),className:Et,children:"Remove featured image"})]}):s.jsx("p",{className:"rounded-[10px] border border-dashed border-admin-border bg-[#F5F7F8] px-3 py-4 text-center text-xs text-hba-grey-1",children:"No featured image. Upload one below, then choose Set as featured."})]}),s.jsxs("div",{children:[s.jsx("input",{ref:$,id:"media-upload",type:"file",accept:"image/jpeg,image/png,image/webp,image/gif,image/avif",disabled:l||c||!t,className:"sr-only",onChange:T=>{const I=!!C.current;O(T.target.files,I),T.target.value=""}}),s.jsxs("button",{type:"button",disabled:l||c||!t,onClick:()=>{var T;C.current=null,(T=$.current)==null||T.click()},onDragOver:T=>{T.preventDefault(),!l&&t&&g(!0)},onDragLeave:()=>g(!1),onDrop:T=>{T.preventDefault(),g(!1),!(l||!t)&&(C.current=null,O(T.dataTransfer.files))},className:["flex w-full flex-col items-center justify-center rounded-[10px] border border-dashed px-4 py-6 text-center transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1 disabled:cursor-not-allowed disabled:opacity-60",m?"border-hba-orange-1 bg-orange-50":"border-admin-border bg-[#F5F7F8]"].join(" "),children:[s.jsx(T9,{size:20,className:"mb-2 text-hba-blue-1","aria-hidden":"true"}),s.jsx("span",{className:"text-sm font-semibold text-hba-blue-1",children:"Drop images here or browse"}),s.jsx("span",{className:"mt-1 text-xs text-hba-grey-1",children:"JPG, PNG or WebP · Recommended 1600 à 900"})]}),!t&&s.jsx("p",{className:"mt-1 text-xs text-amber-800",children:"Save the article once before uploading, so images can be attached to it."}),c&&s.jsxs("div",{className:"mt-2",children:[s.jsx("div",{role:"progressbar","aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Upload progress",className:"h-2 w-full overflow-hidden rounded-full bg-gray-200",children:s.jsx("div",{className:"h-full bg-hba-orange-1 transition-all",style:{width:`${d}%`}})}),s.jsxs("p",{className:"mt-1 flex items-center gap-1.5 text-xs text-hba-grey-1",children:[s.jsx(pt,{size:12,className:"animate-spin"}),"Uploading⦠",d,"%"]})]})]}),e.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[s.jsxs("p",{className:"text-sm font-semibold text-hba-blue-1",children:["Attached images (",e.length,")"]}),P>0&&s.jsxs("span",{className:"text-xs font-semibold text-amber-800",children:[P," missing alt text"]})]}),s.jsx("ul",{className:"space-y-2",children:e.map(T=>{var F;const I=T.public_url===r,R=!!((F=T.alt_text)!=null&&F.trim());return s.jsxs("li",{className:"flex items-center gap-3 rounded-[10px] border border-admin-border px-2 py-2",children:[s.jsx("img",{src:T.public_url??"",alt:"",className:"h-12 w-16 shrink-0 rounded-md border border-admin-border object-cover"}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"truncate text-xs font-semibold text-hba-blue-1",children:T.original_filename||"Image"}),s.jsxs("p",{className:"text-[11px] text-hba-grey-1",children:[T.width&&T.height?`${T.width} à ${T.height}`:"Dimensions unknown",I&&s.jsxs("span",{className:"ml-2 inline-flex items-center gap-1 font-semibold text-hba-orange-1",children:[s.jsx(Un,{size:10,
1405className:"fill-hba-orange-1","aria-hidden":"true"}),"Featured"]})]}),s.jsx("p",{className:["text-[11px] font-semibold",R?"text-green-700":"text-amber-800"].join(" "),children:R?"Alt text added":"Alt text missing"})]}),s.jsxs($v,{children:[s.jsx(_v,{asChild:!0,children:s.jsx("button",{type:"button",className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-hba-blue-1 hover:bg-[#E8EEF0] focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1","aria-label":`Actions for ${T.original_filename||"image"}`,title:"Image actions",disabled:l,children:s.jsx(nS,{size:16,"aria-hidden":"true"})})}),s.jsxs(Av,{align:"end",className:"w-48 rounded-admin",children:[s.jsx(Za,{disabled:I,onSelect:()=>a({featuredImageUrl:T.public_url??"",featuredImageAlt:T.alt_text??"",featuredAssetId:T.id}),children:"Set as featured"}),o&&s.jsx(Za,{onSelect:()=>o(T),children:"Insert into article"}),s.jsx(Za,{onSelect:()=>{y(T),N(T.alt_text??"")},children:"Edit alt text"}),s.jsx(Za,{onSelect:()=>{var L;C.current=T,(L=$.current)==null||L.click()},children:"Replace"}),I&&s.jsxs(s.Fragment,{children:[s.jsx(Ev,{}),s.jsx(Za,{onSelect:()=>a({featuredImageUrl:"",featuredImageAlt:"",featuredAssetId:null}),children:"Remove featured"})]})]})]})]},T.id)})})]}),e.length===0&&t&&s.jsxs("p",{className:"flex items-center justify-center gap-2 rounded-[10px] border border-dashed border-admin-border bg-[#F5F7F8] px-3 py-6 text-xs text-hba-grey-1",children:[s.jsx(T9,{size:14}),"No images attached yet."]}),s.jsx(Hs,{open:b!==null,title:"Edit alt text",onClose:()=>y(null),size:"sm",footer:s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:()=>y(null),className:Et,children:"Cancel"}),s.jsxs("button",{type:"button",onClick:()=>void E(),disabled:S,className:rr,children:[S&&s.jsx(pt,{size:14,className:"animate-spin"}),"Save alt text"]})]}),children:s.jsx(Xt,{id:"edit-alt-text",label:"Alt text",tooltip:wr.imageAlt.tooltip,children:s.jsx("input",{id:"edit-alt-text",type:"text",value:v,onChange:T=>N(T.target.value),className:Vt})})})]})}const ZWe="Preserve dates, carrier names, plan names and factual details. Do not invent benefits, prices, enrollment dates or coverage information. Do not change links or phone numbers without explicit instruction. Flag claims that may need human verification with [VERIFY: â¦]. Treat the output as a suggestion only.",I_=[{id:"improve",label:"Improve clarity",description:"Tighten wording without changing the facts.",task:"improve",generateLabel:"Improve selected text",primary:!0},{id:"fix_grammar",label:"Fix grammar",description:"Correct spelling and punctuation only.",task:"fix_grammar",generateLabel:"Fix grammar",primary:!0},{id:"shorten",label:"Shorten",description:"Remove redundancy, keep the substance.",task:"shorten",generateLabel:"Shorten selected text",primary:!0},{id:"simplify",label:"Simplify language",description:"Rewrite in plain, easy-to-read language.",task:"rewrite_tone",tone:"plain, simple language at about an 8th-grade reading level",generateLabel:"Simplify language",primary:!0},{id:"friendlier",label:"Make friendlier",description:"Warm up the tone while keeping the facts.",task:"rewrite_tone",tone:"warm and friendly",generateLabel:"Make friendlier",primary:!0},{id:"professional",label:"Make more professional",description:"A measured, professional voice.",task:"rewrite_tone",tone:"professional and measured",generateLabel:"Make more professional",primary:!0},{id:"expand",label:"Expand",description:"Add explanation without inventing facts.",task:"expand",generateLabel:"Expand selected text",more:!0,selectionOnly:!0},{id:"rewrite",label:"Rewrite",description:"Rewrite the passage in a clear professional tone.",task:"rewrite_tone",tone:"clear and professional",generateLabel:"Rewrite selected text",more:!0},{id:"improve_structure",label:"Improve structure",description:"Improve flow and structure without changing facts.",task:"improve",extraInstruction:"Improve the structure and flow. Keep every factual claim.",generateLabel:"Improve structure",more:!0},{id:"generate_intro",label:"Generate introduction",description:"Draft an opening section from the current material.",task:"draft_section",extraInstruction:"Write an introduction for this article. Do not invent facts.",generateLabel:"Generate introduction",more:!0},{id:"generate_conclusion",label:"Generate conclusion",description:"Draft a closing section from the current material.",task:"draft_section",extraInstruction:"Write a conclusion for this article. Do not invent facts or call to action unless asked.",generateLabel:"Generate conclusion",more:!0},{id:"generate_seo_metadata",label:"Generate SEO metadata",description:"A search description of 140â158 characters.",task:"seo_de
1405scription",generateLabel:"Generate SEO metadata",more:!0},{id:"custom",label:"Custom instruction",description:"Follow the additional instructions you provide.",task:"improve",generateLabel:"Apply custom instruction",more:!0},{id:"review_entire",label:"Review entire article",description:"Suggest a clearer version of the full draft.",task:"improve",extraInstruction:"Review the entire article for clarity and flow. Keep every factual claim.",generateLabel:"Review entire article",more:!0,articleOnly:!0},{id:"improve_readability",label:"Improve readability",description:"Simplify long or dense passages.",task:"rewrite_tone",tone:"plain, readable language at about an 8th-grade reading level",generateLabel:"Improve readability",more:!0,articleOnly:!0},{id:"review_headings",label:"Review heading structure",description:"Propose a clearer outline of section headings.",task:"outline",generateLabel:"Review heading structure",more:!0,articleOnly:!0},{id:"generate_excerpt",label:"Generate excerpt",description:"A short summary suitable for the excerpt field.",task:"summarize",generateLabel:"Generate excerpt",more:!0,articleOnly:!0},{id:"generate_seo_title_desc",label:"Generate SEO title and description",description:"Title options plus a search description.",task:"suggest_titles",generateLabel:"Generate SEO title and description",more:!0,articleOnly:!0}];function Vk(t){return I_.find(e=>e.id===t)}function oV(t,e){return I_.filter(r=>!(e==="primary"&&!r.primary||e==="more"&&!r.more||r.articleOnly&&t!=="article"||r.selectionOnly&&t!=="selection"))}function lV(t,e){if(e==="article"){if(t.id==="improve")return"Review entire article";if(t.id==="shorten")return"Shorten entire article";if(t.id==="fix_grammar")return"Fix grammar in article";if(t.generateLabel.includes("selected text"))return t.generateLabel.replace("selected text","article")}return t.generateLabel}function xy(t){const e=t.trim();return e?e.split(/\s+/).filter(Boolean).length:0}function eGe(t,e){const r=xy(t),n=xy(e);return r===0?"Drafted new text from your request.":n<r?`Shortened by ${r-n} word${r-n===1?"":"s"}.`:n>r?`Expanded by ${n-r} word${n-r===1?"":"s"}.`:t.trim()===e.trim()?"No wording changes were suggested.":"Rewrote the passage while keeping a similar length."}function tGe(t,e){var n;return[ZWe,(n=t.extraInstruction)==null?void 0:n.trim(),e.trim()].filter(Boolean).join(" ")}function rGe(t,e){const r=cV(t),n=cV(e),a=r.length,i=n.length,o=Array.from({length:a+1},()=>Array(i+1).fill(0));for(let d=a-1;d>=0;d-=1)for(let h=i-1;h>=0;h-=1)o[d][h]=r[d]===n[h]?o[d+1][h+1]+1:Math.max(o[d+1][h],o[d][h+1]);const l=[];let c=0,u=0;for(;c<a&&u<i;)r[c]===n[u]?(Lp(l,"eq",r[c]),c+=1,u+=1):o[c+1][u]>=o[c][u+1]?(Lp(l,"del",r[c]),c+=1):(Lp(l,"add",n[u]),u+=1);for(;c<a;)Lp(l,"del",r[c]),c+=1;for(;u<i;)Lp(l,"add",n[u]),u+=1;return l}function nGe({original:t,suggestion:e}){const r=rGe(t,e);return r.length===0?null:s.jsx("p",{className:"whitespace-pre-wrap text-sm leading-relaxed text-hba-blue-1",children:r.map((n,a)=>n.type==="eq"?s.jsx("span",{children:n.text},a):n.type==="del"?s.jsx("del",{className:"article-diff-del",children:n.text},a):s.jsx("ins",{className:"article-diff-add no-underline",children:n.text},a))})}function cV(t){return t.split(/(\s+)/).filter(e=>e.length>0)}function Lp(t,e,r){const n=t[t.length-1];n&&n.type===e?n.text+=r:t.push({type:e,text:r})}function aGe({articleId:t,title:e,selectedText:r,documentText:n,onReplaceSelection:a,onReplaceDocument:i,onInsert:o,onApplyToField:l,canEdit:c,mode:u,onModeChange:d,requestedActionId:h,onRequestedActionConsumed:m}){const[g,b]=w.useState(null),[y,v]=w.useState(!0),[N,S]=w.useState("improve"),[j,$]=w.useState(""),[C,_]=w.useState(!1),[O,E]=w.useState(null),[P,T]=w.useState(null),[I,R]=w.useState(""),[F,L]=w.useState(!1);w.useEffect(()=>{let Y=!1;return v(!0),pLe().then(de=>{Y||b(de)}).catch(de=>{Y||(de instanceof At&&de.isUnavailable?b({enabled:!1,configured:!1,provider:null,model:null,tasks:[],reason:de.message}):b({enabled:!1,configured:!1,provider:null,model:null,tasks:[],reason:"The writing assistant is unavailable right now."}))}).finally(()=>{Y||v(!1)}),()=>{Y=!0}},[]),w.useEffect(()=>{if(!h)return;const Y=Vk(h);Y&&(S(Y.id),T(null)),m==null||m()},[h,m]);const q=w.useMemo(()=>Vk(N)??I_[0],[N]),G=xy(r),B=u==="selection"?r:n,H=!B.trim(),K=q.id==="custom"&&!j.trim(),Z=async()=>
1405{if(u==="selection"&&H){te.error("Select some text in the editor first.");return}if(u==="article"&&H){te.error("Write something first so the assistant has material to work with.");return}if(K){te.error("Add additional instructions for a custom request.");return}_(!0),E(null),T(null);try{const Y=await mLe({task:q.task,input:B,title:e||null,tone:q.tone??null,instruction:tGe(q,j),articleId:t});T(Y),R(B)}catch(Y){const de=Y instanceof At?Y.message:"The assistant could not respond.";E(de),te.error(de),Y instanceof At&&Y.isUnavailable&&b(ge=>ge&&{...ge,enabled:!1,configured:!1,reason:de})}finally{_(!1)}};if(y)return s.jsxs("p",{className:"flex items-center gap-2 text-sm text-hba-grey-1",children:[s.jsx(pt,{size:15,className:"animate-spin"}),"Checking the writing assistantâ¦"]});if(!(g!=null&&g.enabled)||!g.configured)return s.jsxs("div",{children:[s.jsxs("h3",{className:"flex items-center gap-2 font-heading text-base font-bold text-hba-blue-1",children:[s.jsx(ls,{size:16,"aria-hidden":"true"}),"Writing assistant"]}),s.jsx("p",{className:"mt-2 text-sm text-hba-grey-1",children:(g==null?void 0:g.reason)??"The writing assistant is turned off."}),s.jsx("p",{className:"mt-1 text-xs text-hba-grey-1",children:"An administrator can enable it in the API configuration. Everything else on this screen works normally without it."})]});const V=oV(u,"primary"),U=oV(u,"more");return s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-heading text-base font-bold text-hba-blue-1",children:"Writing assistant"}),s.jsx("p",{className:"mt-1 text-xs text-hba-grey-1",children:"Suggestions only. Nothing changes until you accept it."})]}),s.jsx("div",{role:"tablist","aria-label":"Assistant scope",className:"grid grid-cols-2 gap-1 rounded-[10px] bg-[#E8EEF0] p-1",children:[["selection","Selected text"],["article","Entire article"]].map(([Y,de])=>s.jsx("button",{type:"button",role:"tab","aria-selected":u===Y,onClick:()=>{d(Y),T(null)},className:["min-h-10 rounded-lg px-3 text-sm font-semibold transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",u===Y?"bg-admin-primary text-white":"text-hba-blue-1 hover:bg-white"].join(" "),children:de},Y))}),u==="selection"&&G===0?s.jsx("p",{className:"rounded-[10px] border border-dashed border-admin-border bg-[#F5F7F8] px-3 py-4 text-sm text-hba-grey-1",children:"Select text in the article to use the writing assistant."}):s.jsx("p",{className:"text-sm font-semibold text-hba-blue-1",children:u==="selection"?`${G} word${G===1?"":"s"} selected`:`Entire article · ${xy(n).toLocaleString()} words`}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:V.map(Y=>s.jsx(sGe,{action:Y,selected:N===Y.id,onSelect:()=>{S(Y.id),T(null)}},Y.id))}),s.jsxs("div",{children:[s.jsx("label",{htmlFor:"ai-more-actions",className:nk,children:"More actions"}),s.jsxs("select",{id:"ai-more-actions",value:U.some(Y=>Y.id===N)?N:"",onChange:Y=>{Y.target.value&&(S(Y.target.value),T(null))},className:`${Vt} mt-1.5`,children:[s.jsx("option",{value:"",children:"Choose another actionâ¦"}),U.map(Y=>s.jsx("option",{value:Y.id,children:Y.label},Y.id))]})]}),s.jsxs("div",{children:[s.jsx("label",{htmlFor:"ai-instruction",className:nk,children:"Additional instructions"}),s.jsx("textarea",{id:"ai-instruction",value:j,onChange:Y=>$(Y.target.value),rows:3,placeholder:"For example: Keep all dates, carrier names and plan details unchanged.",className:`${Vt} mt-1.5 h-auto min-h-[5.5rem] resize-y`})]}),s.jsxs("button",{type:"button",onClick:()=>void Z(),disabled:C||H||K,title:H?u==="selection"?"Select text in the article first.":"Write some article content first.":K?"Add additional instructions for a custom request.":lV(q,u),className:`${rr} w-full`,children:[C?s.jsx(pt,{size:16,className:"animate-spin"}):s.jsx(ls,{size:16}),C?"Thinkingâ¦":lV(q,u)]}),O&&s.jsxs("div",{className:"rounded-[10px] border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-800",children:[s.jsx("p",{children:O}),s.jsx("button",{type:"button",onClick:()=>void Z(),className:"mt-2 text-sm font-semibold text-red-800 underline",children:"Try again"})]}),P&&s.jsx(iGe,{result:P,mode:u,usedInput:I,canEdit:c,onReplaceSelection:a,onReplaceDocument:i,onInsert:o,onApplyToField:l,onDismiss:()=>T(null),onTryAgain:()=>void Z(),onConfirmReplaceArticle:()=>L(!0)}),s.jsx(Hs,{open:F,title:"Replace the entire article?",onClose:()=>L(!1),size:"sm",footer:s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:()=>L(!1),className:Et,children:"Cancel"}),s.jsx("button",{type:"button",onClick:()=>{P&&i&&(i(P.text),T(null),te.success("Article replaced. Undo is available in the editor.")),L(!1)},className:rr,children:"Replace article"})]}),children:s.jsx("p",{className:"text-sm text-hba-blue-1",children:"This replaces the full draft with the suggestion. You can undo it from the editor toolbar. It is not saved until you save the draft."})})]})}function sGe({action:t,selected:e,onSelect:r}){return s.jsx("button",{type:"button",onClick:r,"aria-pressed":e,className:["rounded-[10px] border px-3 py-2.5 text-left transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",e?"border-admin-primary bg-[#E8EEF0] text-hba-blue-1":"border-admin-border bg-white text-hba-blue-1 hover:border-hba-blue-2"].join(" "),children:s.jsx("span",{className:"block text-xs font-semibold",children:t.label})})}function iGe({result:t,mode:e,usedInput:r,canEdit:n,onReplaceSelection:a,onReplaceDocument:i,onInsert:o,onApplyToField:l,onDismiss:c,onTryAgain:u,onConfirmReplaceArticle:d}){const h=async m=>{await navigator.clipboard.writeText(m),te.success("Copied")};return s.jsxs("div",{className:"space-y-3 border-t border-admin-border pt-4",children:[s.jsxs("div",{className:"flex items-start gap-2 rounded-[10px] border border-amber-300 bg-amber-50 px-3 py-2",children:[s.jsx(Go,{size:15,"aria-hidden":"true",className:"mt-0.5 flex-shrink-0 text-amber-700"}),s.jsxs("p",{className:"text-xs text-amber-900",children:[s.jsx("span",{className:"font-bold",children:"Suggestion only."}
1405)," Verify dates, carrier names, plan details, prices, and enrollment information before you accept it."]})]}),t.items.length>0?s.jsx("ul",{className:"space-y-2",children:t.items.map((m,g)=>s.jsxs("li",{className:"flex items-start justify-between gap-2 rounded-[10px] border border-admin-border px-3 py-2",children:[s.jsx("span",{className:"text-sm text-hba-blue-1",children:m}),s.jsxs("span",{className:"flex flex-shrink-0 gap-1",children:[t.task==="suggest_titles"&&l&&s.jsx("button",{type:"button",disabled:!n,onClick:()=>{l("title",m),te.success("Title applied. Review it, then save.")},className:"rounded-md border border-gray-300 px-2 py-1 text-xs font-semibold text-hba-blue-1 hover:bg-gray-50 disabled:opacity-50",children:"Use as title"}),t.task==="outline"&&s.jsx("button",{type:"button",disabled:!n,onClick:()=>{o(m),te.success("Heading inserted.")},className:"rounded-md border border-gray-300 px-2 py-1 text-xs font-semibold text-hba-blue-1 hover:bg-gray-50 disabled:opacity-50",children:"Insert"})]})]},`${g}-${m}`))}):s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-xs font-semibold text-hba-grey-1",children:eGe(r,t.text)}),r&&s.jsxs("div",{children:[s.jsx("p",{className:"mb-1 text-xs font-semibold text-hba-grey-1",children:"Original text"}),s.jsx("div",{className:"max-h-32 overflow-y-auto rounded-[10px] border border-admin-border bg-[#F5F7F8] px-3 py-2 text-sm text-hba-grey-1",children:r})]}),s.jsxs("div",{children:[s.jsx("p",{className:"mb-1 text-xs font-semibold text-hba-blue-1",children:"Suggested version"}),s.jsx("div",{className:"max-h-56 overflow-y-auto rounded-[10px] border border-admin-border px-3 py-2",children:r?s.jsx(nGe,{original:r,suggestion:t.text}):s.jsx("p",{className:"whitespace-pre-wrap text-sm text-hba-blue-1",children:t.text})})]}),!n&&s.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-amber-800",children:[s.jsx(Go,{size:13,className:"mt-0.5 flex-shrink-0","aria-hidden":"true"}),"This article cannot be edited right now, so the suggestion cannot be applied."]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[e==="selection"&&a&&s.jsx("button",{type:"button",disabled:!n,onClick:()=>{a(t.text),c(),te.success("Replaced. Undo is available in the editor.")},className:rr,children:"Replace selection"}),e==="article"&&i&&s.jsx("button",{type:"button",disabled:!n,onClick:d,className:rr,children:"Replace article"}),s.jsx("button",{type:"button",disabled:!n,onClick:()=>{o(t.text),c(),te.success("Inserted below. Review it, then save.")},className:Et,children:"Insert below"}
1405),t.task==="seo_description"&&l&&s.jsx("button",{type:"button",disabled:!n,onClick:()=>{l("seoDescription",t.text),c(),te.success("Search description applied. Review it, then save.")},className:Et,children:"Use as search description"}),t.task==="summarize"&&l&&s.jsx("button",{type:"button",disabled:!n,onClick:()=>{l("excerpt",t.text),c(),te.success("Excerpt applied. Review it, then save.")},className:Et,children:"Use as excerpt"}),s.jsx("button",{type:"button",onClick:u,className:Et,children:"Try again"}),s.jsxs("button",{type:"button",onClick:()=>void h(t.text),className:Et,children:[s.jsx(Ny,{size:14,"aria-hidden":"true"}),"Copy"]}),s.jsx("button",{type:"button",onClick:c,className:Et,children:"Dismiss"})]})]}),s.jsxs("p",{className:"text-[11px] text-hba-grey-1",children:[t.model," · ",t.usage.totalTokens," tokens · ",t.latencyMs," ms"]})]})}const oGe={working:"bg-blue-100 text-blue-800",submitted:"bg-amber-100 text-amber-800",approved:"bg-sky-100 text-sky-800",published:"bg-green-100 text-green-700",superseded:"bg-gray-100 text-gray-600"},lGe={working:"Working draft",submitted:"Submitted",approved:"Approved",published:"Published",superseded:"Superseded"};function cGe({articleId:t,detail:e,canEdit:r,onRestored:n,refreshKey:a}){const[i,o]=w.useState([]),[l,c]=w.useState(!0),[u,d]=w.useState(null),[h,m]=w.useState(null),[g,b]=w.useState(null),[y,v]=w.useState(!1);w.useEffect(()=>{let j=!1;return c(!0),qDe(t).then($=>{j||o($.revisions)}).catch($=>{j||te.error($ instanceof At?$.message:"Could not load the revision history.")}).finally(()=>{j||c(!1)}),()=>{j=!0}},[t,a]);const N=async j=>{m(j.id);try{const{revision:$}=await WDe(t,j.id);d({id:$.id,title:`Revision ${$.revision_number}: ${$.title}`,html:$.content_html??"<p>This revision has no content.</p>"})}catch($){te.error($ instanceof At?$.message:"Could not load that revision.")}finally{m(null)}},S=async()=>{if(g){v(!0);try{const j=await GDe(t,g.id);n(j),b(null),te.success(`Revision ${g.revision_number} copied into a new working draft.`)}catch(j){te.error(j instanceof At?j.message:"Could not restore that revision.")}finally{v(!1)}}};return s.jsxs("div",{className:jn,children:[s.jsxs("div",{className:"border-b border-gray-200 px-4 py-3",children:[s.jsxs("h3",{className:"flex items-center gap-2 text-sm font-bold uppercase tracking-wide text-hba-blue-1",children:[s.jsx(oS,{size:16,"aria-hidden":"true"}),"Revision history"]}),s.jsx("p",{className:"mt-1 text-xs text-hba-grey-1",children:"Every submitted and published version is kept. Restoring creates a new draft rather than deleting anything."})]}),l?s.jsxs("p",{className:"flex items-center justify-center gap-2 py-10 text-sm text-hba-grey-1",children:[s.jsx(pt,{size:16,className:"animate-spin"}),"Loading revisionsâ¦"]}):i.length===0?s.jsx("p",{className:"px-4 py-8 text-center text-sm text-hba-grey-1",children:"No revisions yet. One is created the first time you save."}):s.jsx("ul",{className:"divide-y divide-gray-100",children:i.map(j=>{const $=j.id===e.article.working_revision_id,C=j.id===e.article.published_revision_id;return s.jsx("li",{className:"px-4 py-3",children:s.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsxs("p",{className:"flex flex-wrap items-center gap-2 text-sm font-bold text-hba-blue-1",children:["Revision ",j.revision_number,s.jsx("span",{className:`rounded px-2 py-0.5 text-xs font-semibold ${oGe[j.status]}`,children:lGe[j.status]}),$&&s.jsx("span",{className:"rounded bg-hba-orange-1/10 px-2 py-0.5 text-xs font-semibold text-hba-orange-2",children:"Current draft"}),C&&s.jsx("span",{className:"rounded bg-green-50 px-2 py-0.5 text-xs font-semibold text-green-700",children:"Live version"})]}),s.jsxs("p",{className:"mt-0.5 truncate text-xs text-hba-grey-1",children:[j.title||"Untitled"," · ",j.word_count," words ·"," ",Pf(j.updated_at)]}),j.restored_from_revision_id&&s.jsx("p",{className:"mt-0.5 text-xs text-hba-grey-1",children:"Restored from an earlier revision"}),j.notes&&s.jsx("p",{className:"mt-1 text-xs italic text-hba-grey-1",children:j.notes})]}),s.jsxs("div",{className:"flex flex-shrink-0 gap-2",children:[s.jsx("button",{type:"button",onClick:()=>void N(j),disabled:h===j.id,className:"rounded-md border border-gray-300 px-2.5 py-1 text-xs font-semibold text-hba-blue-1 hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",children:h===j.id?s.jsx(pt,{size:12,className:"animate-spin"}):"View"}),s.jsxs("button",{type:"button",onClick:()=>b(j),disabled:!r||$,title:$?"This is already the current draft.":r?"Copy this revision into a new working draft":e.permissions.canEditReason??"You cannot edit this article right now.",className:"inline-flex items-center gap-1 rounded-md border border-gray-300 px-2.5 py-1 text-xs font-semibold text-hba-blue-1 hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1 disabled:cursor-not-allowed disabled:opacity-40",children:[s.jsx(yU,{size:12}),"Restore"]})]})]})},j.id)})}),s.jsx(Hs,{open:u!==null,title:(u==null?void 0:u.title)??"",description:"Read-only view of this revision as it was saved.",onClose:()=>d(null),size:"lg",children:s.jsx("div",{className:"hba-article-content",dangerouslySetInnerHTML:{__html:(u==null?void 0:u.html)??""}})}),s.jsx(Hs,{open:g!==null,title:`Restore revision ${(g==null?void 0:g.revision_number)??""}`,onClose:()=>b(null),size:"sm",footer:s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:()=>b(null),className:Et,children:"Cancel"}),s.jsxs("button",{type:"button",onClick:()=>void S(),disabled:y,className:rr,children:[y&&s.jsx(pt,{size:15,className:"animate-spin"}),"Restore as new draft"]})]}),children:s.jsxs("div",{className:"space-y-2 text-sm text-hba-blue-1",children:[s.jsxs("p",{children:["This copies revision ",g==null?void 0:g.revision_number," into a
1405new working draft. Your current draft is kept in the history and nothing is deleted."]}),s.jsx("p",{className:"text-hba-grey-1",children:"The restored draft still needs to go through review before it can be published."})]})})]})}const uGe={"article.created":"created the article","article.updated":"saved changes","article.autosaved":"autosaved","article.deleted":"deleted the article","article.submitted":"submitted it for review","article.withdrawn":"withdrew it from review","article.changes_requested":"requested changes","article.approved":"approved it","article.scheduled":"scheduled it for publication","article.unscheduled":"cancelled the scheduled publication","article.published":"published it","article.unpublished":"unpublished it","article.archived":"archived it","article.restored":"restored it from the archive","article.revision_restored":"restored an earlier revision","article.comment_added":"left a comment","article.comment_resolved":"resolved a comment","article.asset_uploaded":"uploaded an image","article.asset_updated":"updated image details","article.migrated":"imported it from the legacy site","article.ai_assist":"used the writing assistant"};function dGe(t){return uGe[t.action]??t.action.replace(/^article\./,"").replace(/_/g," ")}function hGe(t){return t.actor_email??"System"}function Dte({articleId:t,detail:e,refreshKey:r,onCommentsChange:n}){const[a,i]=w.useState(e.events),[o,l]=w.useState(!1),[c,u]=w.useState(""),[d,h]=w.useState(!1),[m,g]=w.useState(null),b=w.useRef(r);w.useEffect(()=>{if(r===b.current)return;let S=!1;return l(!0),QDe(t).then(j=>{S||i(j.events)}).catch(()=>{}).finally(()=>{S||l(!1)}),()=>{S=!0}},[t,r]);const y=async()=>{const S=c.trim();if(!(S.length<2)){h(!0);try{const{comment:j}=await KDe(t,S,"comment");n([...e.comments,j]),u(""),te.success("Comment added")}catch(j){te.error(j instanceof At?j.message:"Could not post the comment.")}finally{h(!1)}}},v=async S=>{g(S.id);try{const{comment:j}=await YDe(t,S.id);n(e.comments.map($=>$.id===j.id?j:$))}catch(j){te.error(j instanceof At?j.message:"Could not resolve the comment.")}finally{g(null)}},N=e.comments.filter(S=>!S.resolved_at);return s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:jn,children:[s.jsx("div",{className:"border-b border-gray-200 px-4 py-3",children:s.jsxs("h3",{className:"flex items-center gap-2 text-sm font-bold uppercase tracking-wide text-hba-blue-1",children:[s.jsx(Su,{size:16,"aria-hidden":"true"}),"Review notes",N.length>0&&s.jsxs("span",{className:"rounded bg-amber-100 px-2 py-0.5 text-xs font-semibold text-amber-800",children:[N.length," open"]})]})}),s.jsxs("div",{className:"px-4 py-4",children:[e.comments.length===0?s.jsx("p",{className:"text-sm text-hba-grey-1",children:"No notes yet."}):s.jsx("ul",{className:"space-y-3",children:e.comments.map(S=>s.jsxs("li",{className:["rounded-lg border px-3 py-2",S.resolved_at?"border-gray-200 bg-gray-50":S.kind==="change_request"?"border-rose-200 bg-rose-50":"border-gray-200 bg-white"].join(" "),children:[s.jsxs("div",{className:"flex items-start justify-between gap-2",children:[s.jsxs("p",{className:"text-xs font-semibold text-hba-blue-1",children:[S.author_name||S.author_email||"Unknown",S.kind==="change_request"&&s.jsx("span",{className:"ml-2 rounded bg-rose-200 px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-wide text-rose-900",children:"Changes requested"}),S.resolved_at&&s.jsx("span",{className:"ml-2 rounded bg-green-100 px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-wide text-green-800",children:"Resolved"})]}),!S.resolved_at&&s.jsxs("button",{type:"button",onClick:()=>void v(S),disabled:m===S.id,className:"inline-flex flex-shrink-0 items-center gap-1 rounded-md border border-gray-300 bg-white px-2 py-0.5 text-xs font-semibold text-hba-blue-1 hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",children:[m===S.id?s.jsx(pt,{size:11,className:"animate-spin"}):s.jsx(vh,{size:11}),"Resolve"]})]}),s.jsx("p",{className:"mt-1 whitespace-pre-wrap text-sm text-hba-blue-1",children:S.body}),s.jsx("p",{className:"mt-1 text-[11px] text-hba-grey-1",children:Mu(S.created_at)})]},S.id))}),s.jsxs("div",{className:"mt-4",children:[s.jsx("label",{htmlFor:"new-comment",className:"mb-1.5 block text-sm font-semibold text-hba-blue-1",children:"Add a note"}),s.jsx("textarea",{id:"new-comment",value:c,onChange:S=>u(S.target.value),rows:3,placeholder:"Anything the reviewer or author should know.",className:`${Vt} resize-y`}),s.jsxs("button",{type:"button",onClick:()=>void y(),disabled:d||c.trim().length<2,className:`${rr} mt-2`,children:[d?s.jsx(pt,{size:15,className:"animate-spin"}):s.jsx(Kle,{size:15}),"Add note"]})]})]})]}),s.jsxs("div",{className:jn,children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-gray-200 px-4 py-3",children:[s.jsxs("h3",{className:"flex items-center gap-2 text-sm font-bold uppercase tracking-wide text-hba-blue-1",children:[s.jsx(Vle,{size:16,"aria-hidden":"true"}),"Activity"]}),o&&s.jsx(pt,{size:14,className:"animate-spin text-hba-grey-1"})]}),a.length===0?s.jsx("p",{className:"px-4 py-6 text-center text-sm text-hba-grey-1",children:"No activity recorded."}
1405):s.jsx("ol",{className:"max-h-80 divide-y divide-gray-50 overflow-y-auto",children:a.map(S=>s.jsxs("li",{className:"px-4 py-2",children:[s.jsxs("p",{className:"text-sm text-hba-blue-1",children:[s.jsx("span",{className:"font-semibold",children:hGe(S)})," ",dGe(S),S.from_status&&S.to_status&&S.from_status!==S.to_status&&s.jsxs("span",{className:"text-hba-grey-1",children:[" ","(",S.from_status.replace(/_/g," ")," â ",S.to_status.replace(/_/g," "),")"]})]}),s.jsxs("p",{className:"text-[11px] text-hba-grey-1",children:[Pf(S.created_at),S.actor_role?` · ${S.actor_role.replace(/_/g," ")}`:""]})]},S.id))})]})]})}function uV(t){if(!t.trim())return[];const e=new DOMParser().parseFromString(t,"text/html"),r=[],n=(i,o,l)=>{const c=o.replace(/\s+/g," ").trim();c&&r.push({kind:i,text:c,...l?{level:l}:{}})},a=i=>{var o;for(const l of Array.from(i.children)){const c=l.tagName.toLowerCase();switch(c){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":n("heading",l.textContent??"",Number(c[1]));break;case"p":n("paragraph",l.textContent??"");break;case"ul":case"ol":for(const u of Array.from(l.querySelectorAll(":scope > li")))n("listItem",u.textContent??"");break;case"blockquote":n("quote",l.textContent??"");break;case"table":{const u=Array.from(l.querySelectorAll("tr")).map(d=>Array.from(d.querySelectorAll("th, td")).map(h=>(h.textContent??"").replace(/\s+/g," ").trim()).join(" | "));n("table",u.join(` 1406`));break}case"figure":{const u=l.querySelector("img"),d=((o=l.querySelector("figcaption"))==null?void 0:o.textContent)??"",h=(u==null?void 0:u.getAttribute("alt"))??"",m=(u==null?void 0:u.getAttribute("src"))??"";n("image",`Image: ${h||d||m}`);break}case"img":n("image",`Image: ${l.getAttribute("alt")||l.getAttribute("src")||""}`);break;case"hr":n("other","â divider â");break;case"div":case"section":case"article":a(l);break;default:n("other",l.textContent??"");break}}};return a(e.body),r}function dV(t){return t.toLowerCase().replace(/[^a-z0-9\s]/g,"").replace(/\s+/g," ").trim()}function fGe(t,e){const r=dV(t).split(" ").filter(Boolean),n=dV(e).split(" ").filter(Boolean);if(r.length===0&&n.length===0)return 1;if(r.length===0||n.length===0)return 0;const a=new Map;for(const o of r)a.set(o,(a.get(o)??0)+1);let i=0;for(const o of n){const l=a.get(o)??0;l>0&&(i+=1,a.set(o,l-1))}return 2*i/(r.length+n.length)}function pGe(t,e){const r=t.split(/(\s+)/).filter(u=>u!==""),n=e.split(/(\s+)/).filter(u=>u!==""),a=Array.from({length:r.length+1},()=>new Array(n.length+1).fill(0));for(let u=r.length-1;u>=0;u-=1)for(let d=n.length-1;d>=0;d-=1)a[u][d]=r[u]===n[d]?a[u+1][d+1]+1:Math.max(a[u+1][d],a[u][d+1]);const i=[],o=(u,d)=>{const h=i[i.length-1];h&&h.type===u?h.value+=d:i.push({type:u,value:d})};let l=0,c=0;for(;l<r.length&&c<n.length;)r[l]===n[c]?(o("same",r[l]),l+=1,c+=1):a[l+1][c]>=a[l][c+1]?(o("removed",r[l]),l+=1):(o("added",n[c]),c+=1);for(;l<r.length;)o("removed",r[l]),l+=1;for(;c<n.length;)o("added",n[c]),c+=1;return i}const mGe=.45;function gGe(t,e){const r=t.length,n=e.length,a=Array.from({length:r+1},()=>new Array(n+1).fill(0));for(let h=r-1;h>=0;h-=1)for(let m=n-1;m>=0;m-=1)a[h][m]=t[h].text===e[m].text&&t[h].kind===e[m].kind?a[h+1][m+1]+1:Math.max(a[h+1][m],a[h][m+1]);const i=[];let o=0,l=0,c=[],u=[];const d=()=>{const h=new Set;for(const m of c){let g=-1,b=0;if(u.forEach((y,v)=>{if(h.has(v))return;const N=fGe(m.text,y.text);N>b&&(b=N,g=v)}),g>=0&&b>=mGe){h.add(g);const y=u[g];i.push({type:"modified",before:m,after:y,parts:pGe(m.text,y.text)})}else i.push({type:"removed",block:m})}u.forEach((m,g)=>{h.has(g)||i.push({type:"added",block:m})}),c=[],u=[]};for(;o<r&&l<n;)t[o].text===e[l].text&&t[o].kind===e[l].kind?(d(),i.push({type:"unchanged",block:t[o]}),o+=1,l+=1):a[o+1][l]>=a[o][l+1]?(c.push(t[o]),o+=1):(u.push(e[l]),l+=1);for(;o<r;)c.push(t[o]),o+=1;for(;l<n;)u.push(e[l]),l+=1;return d(),i}function bGe(t){const e={added:0,removed:0,modified:0,unchanged:0,hasChanges:!1};for(const r of t)r.type==="added"?e.added+=1:r.type==="removed"?e.removed+=1:r.type==="modified"?e.modified+=1:e.unchanged+=1;return e.hasChanges=e.added+e.removed+e.modified>0,e}function xGe(t,e,r){const n=[];for(const[a,i]of Object.entries(r)){const o=(t[a]??"").trim(),l=(e[a]??"").trim();o!==l&&n.push({label:i,before:o,after:l})}return n}const yGe={title:"Title",slug:"URL slug",excerpt:"Excerpt",seoTitle:"Search title",seoDescription:"Search description",seoFocusKeyword:"Focus keyword",canonicalUrl:"Canonical URL",featuredImageUrl:"Featured image",featuredImageAlt:"Featured image alt text"};function Uk(t){return t.kind==="heading"?`H${t.level??2}`:t.kind==="listItem"?"List item":t.kind==="quote"?"Quote":t.kind==="table"?"Table":t.kind==="image"?"Image":""}function x9({block:t}){const e=Uk(t);return s.jsxs("span",{className:t.kind==="heading"?"font-bold text-hba-blue-1":"text-hba-blue-1",children:[e&&s.jsx("span",{className:"mr-1.5 rounded bg-white/60 px-1 text-[10px] font-bold uppercase tracking-wide text-hba-grey-1",children:e}),t.kind==="table"?s.jsx("span",{className:"whitespace-pre-wrap font-mono text-xs",children:t.text}):t.text]})}function vGe({row:t}){return t.type==="unchanged"?s.jsxs("li",{className:"flex gap-2 px-3 py-1.5",children:[s.jsx("span",{"aria-hidden":"true",className:"w-6 flex-shrink-0 text-xs text-gray-300"}),s.jsx("span",{className:"text-sm text-hba-grey-1",children:s.jsx(x9,{block:t.block})})]}):t.type==="added"?s.jsxs("li",{className:"flex gap-2 border-l-4 border-green-500 bg-green-50 px-3 py-1.5",children:[s.jsx("span",{"aria-hidden":"true",className:"w-6 flex-shrink-0 text-xs font-bold text-green-700",children:"+"}),s.jsxs("span",{className:"text-sm",children:[s.jsx("span",{className:"sr-only",children:"Added: "}),s.jsx(x9,{block:t.block})]})]}):t.type==="removed"?s.jsxs("li",{className:"flex gap-2 border-l-4 border-red-400 bg-red-50 px-3 py-1.5",children:[s.jsx("span",{"aria-hidden":"true",className:"w-6 flex-shrink-0 text-xs font-bold text-red-700",children:"â"}),s.jsxs("span",{className:"text-sm line-through decoration-red-400",children:[s.jsx("span",{className:"sr-only",children:"Removed: "}),s.jsx(x9,{block:t.block})]})]}):s.jsxs("li",{className:"flex gap-2 border-l-4 border-amber-400 bg-amber-50 px-3 py-1.5",children:[s.jsx("span",{"aria-hidden":"true",className:"w-6 flex-shrink-0 text-xs font-bold text-amber-700",children:"~"}),s.jsxs("span",{className:"text-sm",children:[s.jsx("span",{className:"sr-only",children:"Changed: "}),Uk(t.after)&&s.jsx("span",{className:"mr-1.5 rounded bg-white/60 px-1 text-[10px] font-bold uppercase tracking-wide text-hba-grey-1",children:Uk(t.after)}),t.parts.map((e,r)=>e.type==="same"?s.jsx("span",{className:"text-hba-blue-1",children:e.value},r):e.type==="added"?s.jsx("span",{className:"rounded bg-green-200/70 font-semibold text-green-900",children:e.value},r):s.jsx("span",{className:"rounded bg-red-200/60 text-red-900 line-through decoration-red-500",children:e.value},r))]})]})}function Lte({beforeHtml:t,afterHtml:e,beforeFields:r,afterFields:n,beforeLabel:a,afterLabel:i}){const[o,l]=w.useState(!1),c=w.useMemo(()=>gGe(uV(t),uV(e)),[t,e]),u=w.useMemo(()=>bGe(c),[c]),d=w.useMemo(()=>xGe(r,n,yGe),[r,n]),h=o?c:c.filter(m=>m.type!=="unchanged");return s.jsxs("div",{className:jn,children:[s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-gray-200 px-4 py-3",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-bold uppercase tracking-wide text-hba-blue-1",children:"Changes"}),s.jsxs("p",{className:"mt-0.5 text-xs text-hba-grey-1",children:[i," compared with ",a]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("p",{className:"text-xs text-hba-grey-1","aria-live":"polite",children:u.hasChanges?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"font-semibold text-green-700",children:[u.added," added"]})," · ",s.jsxs("span",{className:"font-semibold text-amber-700",children:[u.modified," changed"]})," · ",s.jsxs("span",{className:"font-semibold text-red-700",children:[u.removed," removed"]})]}):"No changes to the body text"}),s.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-hba-blue-1",children:[s.jsx("input",{type:"checkbox",checked:o,onChange:m=>l(m.target.checked),className:"h-3.5 w-3.5 rounded border-gray-300 text-hba-orange-1 focus:ring-hba-orange-1"}),"Show unchanged"]})]})]}),d.length>0&&s.jsxs("div",{className:"border-b border-gray-200 px-4 py-3",children:[s.jsx("p",{className:"mb-2 text-xs font-bold uppercase tracking-wide text-hba-blue-1",children:"Metadata"}),s.jsx("ul",{className:"space-y-2",children:d.map(m=>s.jsxs("li",{className:"text-sm",children:[s.jsx("p",{className:"text-xs font-semibold text-hba-grey-1",children:m.label}),s.jsxs("p",{className:"mt-0.5",children:[s.jsx("span",{className:"rounded bg-red-100 px-1.5 py-0.5 text-xs text-red-900 line-through",children:m.before||"(empty)"}),s.jsx("span",{"aria-hidden":"true",className:"mx-1.5 text-hba-grey-1",children:"to"}),s.jsx("span",{className:"rounded bg-green-100 px-1.5 py-0.5 text-xs font-semibold text-green-900",children:m.after||"(empty)"})]})]},m.label))})]}),h.length===0?s.jsx("p",{className:"px-4 py-8 text-center text-sm text-hba-grey-1",children:u.hasChanges?"All changes are hidden. Turn on âShow unchangedâ to see the full text.":"The body text is identical."}):s.jsx("ul",{className:"max-h-[32rem] divide-y divide-gray-50 overflow-y-auto py-1",children:h.map((m,g)=>s.jsx(vGe,{row:m},g))})]})}const wGe="America/Los_Angeles";function Bte(t){if(!t)return"";const e=new Date(t);if(Number.isNaN(e.getTime()))return"";const r=Object.fromEntries(new Intl.DateTimeFormat("en-US",{timeZone:wGe,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(e).map(n=>[n.type,n.value]));return`${r.year}-${r.month}-${r.day}T${r.hour}:${r.minute}`}function NGe(t){const e=t.trim();if(!e)return null;const r=e.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})$/);if(!r)return null;const n=Number(r[1]),a=Number(r[2]),i=Number(r[3]),o=Number(r[4]),l=Number(r[5]);let c=Date.UTC(n,a-1,i,o,l);for(let u=0;u<4;u+=1){const h=Bte(new Date(c).toISOString()).match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})$/);if(!h)break;const m=Date.UTC(Number(h[1]),Number(h[2])-1,Number(h[3]),Number(h[4]),Number(h[5])),g=Date.UTC(n,a-1,i,o,l);c+=g-m}return new Date(c).toISOString()}const jGe={draft:["submit","publish"],in_review:["approve","request_changes","withdraw"],changes_requested:["submit"],approved:["publish","schedule"],scheduled:["publish","unschedule"],published:["submit","unpublish","archive"],archived:["restore"]};function kGe(t,e){const r=e.article.slug?`/${e.article.slug}`:"its public URL";switch(t){case"publish":return`This makes the approved version live at ${r}, visible to everyone.`;case"unpublish":return`This removes the article from ${r}. Visitors and search engines will no longer find it.`;case"archive":return e.flags.isLive?`This takes the article off the public site and moves it to the archive. ${r} will stop working.`:"This moves the article to the archive. You can restore it later.";default:return""}}function SGe(t,e){return t==="request_changes"?{action:t,label:e,kind:"comment"}:t==="schedule"?{action:t,label:e,kind:"schedule"}:bLe.includes(t)?{action:t,label:e,kind:"confirm"}:null}const Hte=w.forwardRef(function({detail:e,busyAction:r,onAction:n,only:a,allowedOnly:i=!1,hideDeniedReasons:o=!1},l){const[c,u]=w.useState(null),[d,h]=w.useState(""),[m,g]=w.useState(""),[b,y]=w.useState(null),v=jGe[e.article.status]??[],N=(a?a.map($=>e.permissions.actions.find(C=>C.action===$)).filter($=>!!$):e.permissions.actions.filter($=>$.allowed||v.includes($.action))).filter($=>i?$.allowed:!0),S=($,C)=>{const _=SGe($,C);_?(h(""),g(""),y(null),u(_)):n($,{})};w.useImperativeHandle(l,()=>({request($){const C=e.permissions.actions.find(_=>_.action===$);C!=null&&C.allowed&&S(C.action,C.label)}}
1406));const j=()=>{if(c){if(c.kind==="comment"){if(d.trim().length<10){y("Explain what needs to change, in at least 10 characters.");return}n(c.action,{comment:d.trim()})}else if(c.kind==="schedule"){if(!m){y("Choose a date and time.");return}const $=new Date(m);if(Number.isNaN($.getTime())||$.getTime()<=Date.now()){y("Pick a time in the future.");return}n(c.action,{scheduledFor:$.toISOString()})}else n(c.action,{});u(null)}};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex flex-wrap gap-2",children:N.map($=>{const C=r===$.action,_=$.action==="unpublish"||$.action==="archive",O=$.action==="submit"||$.action==="approve"||$.action==="publish",E=`action-reason-${$.action}`;return s.jsxs("span",{className:"inline-flex",children:[s.jsxs("button",{type:"button",disabled:!$.allowed||!!r,onClick:()=>S($.action,$.label),title:$.allowed?$.label:$.reason,"aria-describedby":$.reason?E:void 0,className:_?Pu:O?rr:Et,children:[C&&s.jsx(pt,{size:15,className:"animate-spin"}),$.label]}),$.reason&&s.jsx("span",{id:E,className:"sr-only",children:$.reason})]},$.action)})}),!o&&N.some($=>!$.allowed&&$.reason)&&s.jsx("ul",{className:"mt-3 space-y-1",children:N.filter($=>!$.allowed&&$.reason).map($=>s.jsxs("li",{className:"text-xs text-hba-grey-1",children:[s.jsxs("span",{className:"font-semibold text-hba-blue-1",children:[$.label,":"]})," ",$.reason]},$.action))}),s.jsxs(Hs,{open:c!==null,title:(c==null?void 0:c.label)??"",onClose:()=>u(null),size:"sm",footer:s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:()=>u(null),className:Et,children:"Cancel"}),s.jsx("button",{type:"button",onClick:j,className:c&&(c.action==="unpublish"||c.action==="archive")?Pu:rr,children:c==null?void 0:c.label})]}),children:[(c==null?void 0:c.kind)==="confirm"&&s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-sm text-hba-blue-1",children:kGe(c.action,e)}),s.jsx("p",{className:"text-sm text-hba-grey-1",children:"Do you want to continue?"})]}),(c==null?void 0:c.kind)==="comment"&&s.jsx(Xt,{id:"change-request-comment",label:"What needs to change?",hint:"The author sees this, so be specific about what to fix.",error:b??void 0,children:s.jsx("textarea",{id:"change-request-comment",value:d,onChange:$=>{h($.target.value),y(null)},rows:5,className:`${Vt} resize-y`,placeholder:"Please add a source for the 2026 Part B premium figure in the second section.","aria-invalid":b?!0:void 0})}),(c==null?void 0:c.kind)==="schedule"&&s.jsx(Xt,{id:"schedule-at",label:"Publish at",hint:"Uses your computer's time zone. The article goes live automatically.",error:b??void 0,children:s.jsx("input",{id:"schedule-at",type:"datetime-local",value:m,onChange:$=>{g($.target.value),y(null)},className:Vt,"aria-invalid":b?!0:void 0})})]})]})});function CGe(t){const e=t.status?Rv[t.status]:"Draft",r=$Ge(t);return t.status==="published"&&(t.hasUnpublishedChanges||t.dirty||t.saving||t.autosaving)?{statusLabel:e,saveLabel:r,combined:"Published · Unpublished changes"}:{statusLabel:e,saveLabel:r,combined:`${e} · ${r}`}}function $Ge(t){return t.conflict?"Autosave paused":t.saving||t.autosaving?"Savingâ¦":t.dirty?"Unsaved changes":`Saved ${Mu(t.lastSavedAt)}`}const _Ge=["submit","request_changes","approve","publish"],AGe=["withdraw","schedule","unschedule","unpublish","archive","restore"];function EGe({compact:t,isNew:e,title:r,wordCount:n,detail:a,canEdit:i,dirty:o,saving:l,autosaving:c,lastSavedAt:u,conflict:d,previewLoading:h,busyAction:m,workflowRef:g,onBack:b,onPreview:y,onSave:v,onWorkflow:N,onDelete:S,canDelete:j,deleteDisabledReason:$}){const[,C]=z.useState(0);w.useEffect(()=>{const E=window.setInterval(()=>C(P=>P+1),3e4);return()=>window.clearInterval(E)},[]);const _=CGe({status:(a==null?void 0:a.article.status)??(e?"draft":null),isLive:(a==null?void 0:a.flags.isLive)??!1,hasUnpublishedChanges:(a==null?void 0:a.flags.hasUnpublishedChanges)??!1,dirty:o,saving:l,autosaving:c,lastSavedAt:u,conflict:d}),O=((a==null?void 0:a.permissions.actions)??[]).filter(E=>E.allowed&&AGe.includes(E.action));return s.jsx("header",{className:["sticky top-0 z-20 -mx-4 border-b border-admin-border bg-admin-bg/95 px-4 backdrop-blur-sm sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8",t?"py-2":"py-3"].join(" "),children:s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("button",{type:"button",onClick:b,className:"mb-0.5 inline-flex items-center gap-1.5 text-sm font-semibold text-hba-grey-1 transition-colors hover:text-hba-blue-1 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",children:[s.jsx(Wo,{size:15,"aria-hidden":"true"}),"Back to All Articles"]}),s.jsx("h1",{className:["truncate font-heading font-bold tracking-tight text-admin-text",t?"text-lg":"text-2xl"].join(" "),children:e?"New article":r||"Untitled article"}),s.jsxs("p",{className:"mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-hba-grey-1",children:[s.jsx("span",{className:"font-semibold text-hba-blue-1",children:_.comb
1406ined}),s.jsx("span",{"aria-hidden":"true",children:"·"}),s.jsxs("span",{children:[n.toLocaleString()," words"]}),d&&s.jsxs("span",{className:"inline-flex items-center gap-1 font-semibold text-red-700",children:[s.jsx(lU,{size:12,"aria-hidden":"true"}),"Autosave paused"]}),!d&&(l||c)&&s.jsx("span",{className:"inline-flex items-center gap-1",children:s.jsx(pt,{size:12,className:"animate-spin","aria-hidden":"true"})}),!d&&!l&&!c&&!o&&s.jsx(vh,{size:12,className:"text-green-600","aria-hidden":"true"})]})]}),s.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[s.jsxs("button",{type:"button",onClick:y,disabled:e||h,title:e?"Save the article once to preview it.":"Preview as readers will see it",className:Et,children:[h?s.jsx(pt,{size:16,className:"animate-spin","aria-hidden":"true"}):s.jsx(uc,{size:16,"aria-hidden":"true"}),"Preview"]}),s.jsxs("button",{type:"button",onClick:v,disabled:l||!i,title:i?"Save the working draft":a==null?void 0:a.permissions.canEditReason,className:rr,children:[l?s.jsx(pt,{size:16,className:"animate-spin","aria-hidden":"true"}):s.jsx(vU,{size:16,"aria-hidden":"true"}),"Save draft"]}),a&&s.jsx(Hte,{ref:g,detail:a,busyAction:m,onAction:N,only:_Ge,allowedOnly:!0,hideDeniedReasons:!0}),(O.length>0||j)&&s.jsxs($v,{children:[s.jsx(_v,{asChild:!0,children:s.jsxs("button",{type:"button",className:Et,"aria-label":"More article actions",title:"More actions",children:[s.jsx(nS,{size:16,"aria-hidden":"true"}),"More"]})}),s.jsxs(Av,{align:"end",className:"w-56 rounded-admin",children:[O.map(E=>s.jsx(Za,{disabled:!!m,onSelect:()=>{var P;return(P=g.current)==null?void 0:P.request(E.action)},className:E.action==="archive"||E.action==="unpublish"?"text-admin-error":void 0,children:E.label},E.action)),O.length>0&&j&&s.jsx(Ev,{}),j&&s.jsxs(Za,{variant:"destructive",disabled:!!$,title:$,onSelect:S,children:[s.jsx(zs,{size:14,"aria-hidden":"true"}),"Delete article"]})]})]})]})]})})}function OGe(t=!0){const[e,r]=z.useState(null),[n,a]=z.useState(!1);return w.useEffect(()=>{if(!t||!e){a(!1);return}const i=e.closest("main"),o=new IntersectionObserver(([l])=>a(!l.isIntersecting),{threshold:0,root:i instanceof Element?i:null});return o.observe(e),()=>o.disconnect()},[t,e]),[n,r]}const Vd=[{id:"assistant",label:"Assistant"},{id:"seo",label:"SEO"},{id:"media",label:"Media"},{id:"settings",label:"Settings"}];function PGe({activeTab:t,onTabChange:e,open:r,onOpenChange:n,seoScore:a,seoHasRecommendations:i,imageCount:o,settingsIncomplete:l,children:c}){w.useEffect(()=>{if(!r)return;const d=h=>{h.key==="Escape"&&n(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[r,n]);const u=d=>{const h=Vd.findIndex(m=>m.id===t);if(d.key==="ArrowRight"||d.key==="ArrowLeft"){d.preventDefault();const m=d.key==="ArrowRight"?1:-1,g=Vd[(h+m+Vd.length)%Vd.length];e(g.id),requestAnimationFrame(()=>{var b;(b=document.getElementById(`inspector-tab-${g.id}`))==null||b.focus()})}};return s.jsxs("div",{className:"article-inspector-slot min-w-0",children:[s.jsxs("button",{type:"button",className:["fixed bottom-5 right-5 z-30 inline-flex items-center gap-2 rounded-full bg-admin-primary px-4 py-2.5 text-sm font-semibold text-white shadow-admin min-[1100px]:hidden focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",r?"hidden":""].join(" "),onClick:()=>n(!0),"aria-expanded":r,"aria-controls":"article-inspector",children:[s.jsx(mle,{size:16,"aria-hidden":"true"}),"Article tools"]}),r&&s.jsx("button",{type:"button",className:"article-inspector-backdrop min-[1100px]:hidden","aria-label":"Close article tools",onClick:()=>n(!1)}),s.jsxs("aside",{id:"article-inspector",className:["article-inspector",r?"is-open":""].join(" "),"aria-label":"Article inspector",children:[s.jsx("div",{role:"tablist","aria-label":"Inspector sections",onKeyDown:u,className:"flex shrink-0 gap-1 overflow-x-auto border-b border-admin-border px-2 pt-2",children:Vd.map(d=>{const h=t===d.id;return s.jsxs("button",{type:"button",role:"tab",id:`inspector-tab-${d.id}`,"aria-selected":h,"aria-controls":`inspector-panel-${d.id}`,tabIndex:h?0:-1,onClick:()=>e(d.id),className:["relative flex min-h-10 shrink-0 items-center gap-1.5 rounded-t-[10px] px-3 text-sm font-semibold transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",h?"border-b-2 border-hba-orange-1 text-hba-blue-1":"border-b-2 border-transparent text-hba-grey-1 hover:text-hba-blue-1"].join(" "),children:[d.label,d.id==="seo"&&a!==null&&s.jsx("span",{className:"rounded-full bg-[#E8EEF0] px-1.5 py-0.5 text-[11px] font-bold text-hba-blue-1",children:a}),d.id==="seo"&&i&&s.jsx("span",{className:"h-2 w-2 rounded-full bg-amber-500",title:"SEO recommendations",children:s.jsx("span",{className:"sr-only",children:"Has recommendations"})}),d.id==="media"&&s.jsx("span",{className:"rounded-full bg-[#E8EEF0] px-1.5 py-0.5 text-[11px] font-bold text-hba-blue-1",children:o}),d.id==="settings"&&l&&s.jsx("span",{className:"h-2 w-2 rounded-full bg-amber-500",title:"Required fields missing",children:s.jsx("span",{className:"sr-only",children:"Required fields missing"})})]},d.id)})}),Vd.map(d=>
1406s.jsx("div",{role:"tabpanel",id:`inspector-panel-${d.id}`,"aria-labelledby":`inspector-tab-${d.id}`,hidden:t!==d.id,className:"article-inspector-body",children:t===d.id?c[d.id]:null},d.id))]})]})}const MGe=[{id:"improve",label:"Improve"},{id:"shorten",label:"Shorten"},{id:"fix_grammar",label:"Fix grammar"}];function TGe({editor:t,enabled:e,onAsk:r}){const[n,a]=w.useState(null);return w.useEffect(()=>{if(!t||!e){a(null);return}const i=()=>{const{from:o,to:l,empty:c}=t.state.selection;if(c||t.isActive("image")){a(null);return}const u=t.view.coordsAtPos(o),d=t.view.coordsAtPos(l);a({top:Math.max(8,u.top-44),left:Math.min(window.innerWidth-160,(u.left+d.left)/2)})};return i(),t.on("selectionUpdate",i),t.on("transaction",i),window.addEventListener("scroll",i,!0),window.addEventListener("resize",i),()=>{t.off("selectionUpdate",i),t.off("transaction",i),window.removeEventListener("scroll",i,!0),window.removeEventListener("resize",i)}},[t,e]),n?s.jsxs("div",{role:"toolbar","aria-label":"Writing assistant for selection",className:"fixed z-30 flex -translate-x-1/2 items-center gap-0.5 rounded-[10px] border border-admin-border bg-white px-1 py-1 shadow-admin",style:{to
1406p:n.top,left:n.left},children:[MGe.map(i=>s.jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-semibold text-hba-blue-1 hover:bg-[#E8EEF0] focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",onMouseDown:o=>o.preventDefault(),onClick:()=>r(Vk(i.id)??null),children:i.label},i.id)),s.jsxs("button",{type:"button",className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-semibold text-hba-blue-1 hover:bg-[#E8EEF0] focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",onMouseDown:i=>i.preventDefault(),onClick:()=>r(null),children:[s.jsx(ls,{size:12,"aria-hidden":"true"}),"Ask AI"]})]}):null}const RGe=2500;function IGe(t){const e=t.terms.filter(n=>n.taxonomy==="category").map(n=>n.id),r=t.primaryCategoryId;return r&&e.includes(r)?[r,...e.filter(n=>n!==r)]:e.length>0?e:r?[r]:[]}function y9(t){var a;const e=t.article,r=t.workingRevision,n=IGe(t);return{title:(r==null?void 0:r.title)??e.title??"",slug:(r==null?void 0:r.slug)??e.slug??"",excerpt:(r==null?void 0:r.excerpt)??e.excerpt??"",seoTitle:(r==null?void 0:r.seo_title)??e.seo_title??"",seoDescription:(r==null?void 0:r.seo_description)??e.seo_description??"",seoFocusKeyword:(r==null?void 0:r.seo_focus_keyword)??e.seo_focus_keyword??"",canonicalUrl:(r==null?void 0:r.canonical_url)??e.canonical_url??"",featuredImageUrl:(r==null?void 0:r.featured_image_url)??e.featured_image_url??"",featuredImageAlt:(r==null?void 0:r.featured_image_alt)??e.featured_image_alt??"",featuredAssetId:(r==null?void 0:r.featured_asset_id)??e.featured_asset_id??null,authorId:e.author_id??((a=t.publicAuthor)==null?void 0:a.id)??null,primaryCategoryId:n[0]??null,categoryIds:n,postedAtLocal:Bte(t.postedAt??e.posted_at),isActive:e.is_active!==!1}}function Fte({articleId:t,onBack:e,onCreated:r,onDeleted:n}){var Tf,Rf;const[a,i]=w.useState(null),[o,l]=w.useState(t!==null),[c,u]=w.useState(null),[d,h]=w.useState({title:"",slug:"",excerpt:"",seoTitle:"",seoDescription:"",seoFocusKeyword:"",canonicalUrl:"",featuredImageUrl:"",featuredImageAlt:"",featuredAssetId:null,authorId:null,primaryCategoryId:null,categoryIds:[],postedAtLocal:"",isActive:!0}),[m,g]=w.useState([]),[b,y]=w.useState([]),[v,N]=w.useState(null),[S,j]=w.useState(null),[$,C]=w.useState(0),[_,O]=w.useState(0),[E,P]=w.useState(""),[T,I]=w.useState(""),[R,F]=w.useState(!1),[L,q]=w.useState(!1),[G,B]=w.useState(!1),[H,K]=w.useState(null),[Z,V]=w.useState(!1),[U,Y]=w.useState([]),[de,ge]=w.useState(null),[fe,Oe]=w.useState("content"),[Ce,le]=w.useState(0),[we,ke]=w.useState(null),[oe,qe]=w.useState(!1),[Le,Ke]=w.useState(!1),[ne,Se]=w.useState(!1),[$e,Ae]=w.useState(""),[Ve,ae]=w.useState(!1),[W,ee]=w.useState("assistant"),[Q,xe]=w.useState(!1),[ye,X]=w.useState("selection"),[ve,He]=w.useState(null),[Ie,dt]=w.useState(""),[Ue,ie]=w.useState(null),[it,jr]=w.useState(!1),[ir,Vr]=OGe(),[Ot,Kn]=w.useState(null),$a=w.useRef(0),hs=w.useRef(null);w.useEffect(()=>{let Ne=!1;return Promise.all([xZ({activeOnly:!0}),X$({taxonomy:"category",activeOnly:!0})]).then(([Me,Ze])=>{Ne||(g(Me.authors),y(Ze.terms))}).catch(()=>{}),()=>{Ne=!0}},[]),w.useEffect(()=>{if(!t){i(null),l(!1),j("");return}let Ne=!1;return l(!0),u(null),ak(t).then(Me=>{if(Ne)return;i(Me),h(y9(Me)),Me.publicAuthor&&g(ps=>ps.some(y1=>y1.id===Me.publicAuthor.id)?ps:[Me.publicAuthor,...ps]),Y(Me.assets),$a.current=Me.article.lock_version,K(Me.article.updated_at),V(!1),F(!1);const Ze=Me.workingRevision,Yn=(Ze==null?void 0:Ze.content_json)??(Ze==null?void 0:Ze.content_html)??Me.article.content_html??"";j(Yn),N(typeof Yn=="string"?null:Yn),O((Ze==null?void 0:Ze.word_count)??0),C(ps=>ps+1)}).catch(Me=>{if(Ne)return;const Ze=Me instanceof At?Me.message:"Could not load this article.";u(Ze),te.error(Ze)}).finally(()=>{Ne||l(!1)}),()=>{Ne=!0}},[t]);const Yr=w.useCallback(()=>({title:d.title,slug:d.slug.trim()||null,excerpt:d.excerpt.trim()||null,contentJson:v??null,featuredImageUrl:d.featuredImageUrl.trim()||null,featuredImageAlt:d.featuredImageAlt.trim()||null,featuredAssetId:d.featuredAssetId,seoTitle:d.seoTitle.trim()||null,seoDescription:d.seoDescription.trim()||null,seoFocusKeyword:d.seoFocusKeyword.trim()||null,canonicalUrl:d.canonicalUrl.trim()||null,authorId:d.authorId,primaryCategoryId:d.categoryIds[0]??null,categoryIds:d.categoryIds,postedAt:NGe(d.postedAtLocal),isActive:d.isActive}),[d,v]),Ur=(a==null?void 0:a.permissions.canEdit)??!0,mt=w.useCallback(Ne=>
1406{i(Ne),Y(Ne.assets),$a.current=Ne.article.lock_version,K(Ne.article.updated_at),V(!1),F(!1)},[]),Jt=w.useCallback(async(Ne={})=>{if(!d.title.trim()){te.error("Give the article a title before saving.");return}q(!0);try{if(t){const Me=await zDe(t,{...Yr(),expectedLockVersion:$a.current});mt(Me),le(Ze=>Ze+1),Ne.silent||te.success("Draft saved")}else{const Me=await FDe({...Yr(),title:d.title.trim()});mt(Me),r(Me.article.id),te.success("Draft created")}}catch(Me){Me instanceof At&&Me.isConflict?(V(!0),te.error(Me.message)):te.error(Me instanceof At?Me.message:"Could not save the article.")}finally{q(!1)}},[t,mt,d.title,r,Yr]);w.useEffect(()=>{if(!t||!R||!Ur||Z||L)return;const Ne=window.setTimeout(()=>{B(!0),VDe(t,{...Yr(),expectedLockVersion:$a.current}).then(Me=>{$a.current=Me.lockVersion,K(Me.updatedAt),F(!1);for(const Ze of Me.warnings)te.warning(Ze)}).catch(Me=>{Me instanceof At&&Me.isConflict&&(V(!0),te.error(Me.message))}).finally(()=>B(!1))},RGe);return()=>window.clearTimeout(Ne)},[t,R,Ur,Z,L,Yr]),w.useEffect(()=>{if(!R)return;const Ne=Me=>{Me.preventDefault(),Me.returnValue=""};return window.addEventListener("beforeunload",Ne),()=>window.removeEventListener("beforeunload",Ne)},[R]);const ce=w.useCallback(Ne=>{h(Me=>({...Me,...Ne})),F(!0)},[]),We=w.useCallback(Ne=>{N(Ne.json),O(Ne.wordCount),P(Ne.text),dt(Ne.html),F(!0)},[]),xt=w.useCallback(async(Ne,Me)=>{if(!t){te.error("Save the article before using workflow actions.");return}R&&(Ne==="submit"||Ne==="publish")&&await Jt({silent:!0}),ge(Ne);try{const Ze=await bZ(t,Ne,{comment:Me.comment??null,scheduledFor:Me.scheduledFor??null,expectedLockVersion:$a.current});mt(Ze),le(Yn=>Yn+1),te.success(`Done: ${Ne.replace(/_/g," ")}`)}catch(Ze){Ze instanceof At&&Ze.isConflict&&V(!0),te.error(Ze instanceof At?Ze.message:"That action could not be completed.")}finally{ge(null)}},[t,mt,R,Jt]),ht=w.useCallback(async()=>{if(t)try{const Ne=await ak(t);mt(Ne),h(y9(Ne));const Me=Ne.workingRevision,Ze=(Me==null?void 0:Me.content_json)??(Me==null?void 0:Me.content_html)??Ne.article.content_html??"";j(Ze),N(typeof Ze=="string"?null:Ze),O((Me==null?void 0:Me.word_count)??0),C(Yn=>Yn+1),le(Yn=>Yn+1),te.success("Reloaded the latest version")}catch(Ne){te.error(Ne instanceof At?Ne.message:"Could not reload.")}},[t,mt]),Yt=w.useCallback(async()=>{if(!t){te.error("Save the article once to preview it.");return}R&&await Jt({silent:!0}),qe(!0);try{ke(await XDe(t))}catch(Ne){te.error(Ne instanceof At?Ne.message:"Could not build the preview.")}finally{qe(!1)}},[t,R,Jt]),_n=w.useCallback(async()=>{if(t){Ke(!0);try{const Ne=await JDe(t),Me=`${window.location.origin}${Ne.previewPath}`;await navigator.clipboard.writeText(Me),te.success("Preview link copied. It expires in two hours.")}catch(Ne){te.error(Ne instanceof At?Ne.message:"Could not create a preview link.")}finally{Ke(!1)}}},[t]),_r=w.useCallback(async()=>{if(t){ae(!0);try{await UDe(t),te.success("Article deleted"),n()}catch(Ne){te.error(Ne instanceof At?Ne.message:"Could not delete the article.")}finally{ae(!1),Se(!1)}}},[t,n]),qr=Ne=>Ne.split(/\n{2,}/).map(Me=>Me.trim()).filter(Boolean).map(Me=>({type:"paragraph",content:[{type:"text",text:Me}]})),An=w.useCallback(Ne=>{if(!Ot)return;const{to:Me}=Ot.state.selection;Ot.chain().focus().insertContentAt(Me,qr(Ne)).run()},[Ot]),Xr=w.useCallback(Ne=>{Ot&&Ot.chain().focus().deleteSelection().insertContent(qr(Ne)).run()},[Ot]),fs=w.useCallback(Ne=>{Ot&&Ot.chain().focus().selectAll().deleteSelection().insertContent(qr(Ne)).run()},[Ot]),_a=w.useCallback((Ne,Me)=>{ce(Ne==="title"?{title:Me}:Ne==="seoDescription"?{seoDescription:Me}:{excerpt:Me})},[ce]),oo=w.useCallback((Ne,Me)=>{ie(Ne),jr(Me)},[]),m1=w.useCallback((Ne,Me="selection")=>{ee("assistant"),xe(!0),X(Me),He((Ne==null?void 0:Ne.id)??null)},[]);w.useEffect(()=>{!Ot||v!==null||(N(Ot.getJSON()),dt(Ot.getHTML()),P(Ot.getText({blockSeparator:" "})))},[Ot,v]),w.useEffect(()=>{if(!Ot)return;const Ne=()=>{const{from:Me,to:Ze}=Ot.state.selection;I(Me===Ze?"":Ot.state.doc.textBetween(Me,Ze," ")),P(Ot.getText({blockSeparator:" "}))};return Ne(),Ot.on("selectionUpdate",Ne),Ot.on("transaction",Ne),()=>{Ot.off("selectionUpdate",Ne),Ot.off("transaction",Ne)}},[Ot]);const Zv=w.useMemo(()=>
1406({slug:d.slug,excerpt:d.excerpt,seoTitle:d.seoTitle,seoDescription:d.seoDescription,seoFocusKeyword:d.seoFocusKeyword,canonicalUrl:d.canonicalUrl}),[d]);if(o)return s.jsxs("div",{className:"flex items-center justify-center gap-2 py-24 text-sm text-hba-grey-1",children:[s.jsx(pt,{size:18,className:"animate-spin"}),"Loading articleâ¦"]});if(c)return s.jsxs("div",{className:`${jn} p-8 text-center`,children:[s.jsx(Go,{size:32,className:"mx-auto mb-3 text-amber-600","aria-hidden":"true"}),s.jsx("h2",{className:"text-lg font-bold text-hba-blue-1",children:"This article could not be opened"}),s.jsx("p",{className:"mx-auto mt-1 max-w-md text-sm text-hba-grey-1",children:c}),s.jsxs("button",{type:"button",onClick:e,className:`${Et} mt-5`,children:[s.jsx(Wo,{size:16}),"Back to articles"]})]});const lo=t===null,xn=(a==null?void 0:a.publishedRevision)??null,g1=!!a&&(a==null?void 0:a.article.status)!=="published",e5=!d.authorId||d.categoryIds.length===0,b1=it?(Ue==null?void 0:Ue.checks.filter(Ne=>Ne.status!=="pass").length)??0:0,x1=s.jsx(PGe,{activeTab:W,onTabChange:ee,open:Q,onOpenChange:xe,seoScore:it&&Ue?Ue.score:null,seoHasRecommendations:b1>0,imageCount:U.length,settingsIncomplete:e5,children:{assistant:s.jsx(aGe,{articleId:t,title:d.title,selectedText:T,documentText:E,onReplaceSelection:T?Xr:null,onReplaceDocument:fs,onInsert:An,onApplyToField:_a,canEdit:Ur,mode:ye,onModeChange:X,requestedActionId:ve,onRequestedActionConsumed:()=>He(null)}),seo:s.jsx(XWe,{values:Zv,onChange:ce,articleId:t,disabled:!Ur,publishedSlug:(xn==null?void 0:xn.slug)??null,articleTitle:d.title,bodyText:E,bodyHtml:Ie||((Tf=a==null?void 0:a.workingRevision)==null?void 0:Tf.content_html)||"",contentJson:v,hasFeaturedImage:!!d.featuredImageUrl.trim(),imageAlts:U.map(Ne=>{var Me;return{hasAlt:!!((Me=Ne.alt_text)!=null&&Me.trim())}}),hasPrimaryCategory:d.categoryIds.length>0,onSwitchInspectorTab:ee,onFocusEditor:()=>{var Ne;return(Ne=document.getElementById("article-editor-surface"))==null?void 0:Ne.focus()},onAnalysisChange:oo,onSlugTakenOver:({slug:Ne,legacySlug:Me})=>{te.success(`URL moved. Legacy article is now /${Me}/`),ce({slug:Ne}),le(Ze=>Ze+1)}}),media:s.jsx(QWe,{articleId:t,assets:U,featuredImageUrl:d.featuredImageUrl,featuredImageAlt:d.featuredImageAlt,onFeaturedChange:ce,onAssetsChange:Y,disabled:!Ur,onInsertIntoArticle:Ne=>{!Ot||!Ne.public_url||(Ot.chain().focus().insertContent({type:"image",attrs:{src:Ne.public_url,alt:Ne.alt_text??"",caption:Ne.caption??"",align:"center",width:Ne.width,height:Ne.height}}).run(),te.success("Image inserted into the article."))}}),settings:s.jsx(JWe,{authors:m,categories:b,authorId:d.authorId,categoryIds:d.categoryIds,postedAtLocal:d.postedAtLocal,slug:d.slug,statusLabel:a?Rv[a.article.status]:"Draft",detail:a,disabled:!Ur,onAuthorChange:Ne=>ce({authorId:Ne}),onCategoryIdsChange:Ne=>ce({categoryIds:Ne,primaryCategoryId:Ne[0]??null}),onPostedAtChange:Ne=>ce({postedAtLocal:Ne}),onOpenSeoSlug:()=>{ee("seo"),window.setTimeout(()=>{var Ne;return(Ne=document.getElementById("seo-slug"))==null?void 0:Ne.focus()},0)},isActive:d.isActive,onIsActiveChange:Ne=>ce({isActive:Ne})})}});return s.jsxs("div",{className:["article-editor-workspace space-y-5",ir?"is-compact":""].join(" "),children:[s.jsx("div",{ref:Vr,className:"h-px w-full","aria-hidden":"true"}),s.jsx(EGe,{compact:ir,isNew:lo,title:d.title,wordCount:_,detail:a,canEdit:Ur,dirty:R,saving:L,autosaving:G,lastSavedAt:H,conflict:Z,previewLoading:oe,busyAction:de,workflowRef:hs,onBack:e,onPreview:()=>void Yt(),onSave:()=>void Jt(),onWorkflow:xt,onDelete:()=>{Ae(""),Se(!0)},canDelete:!!g1,deleteDisabledReason:(a==null?void 0:a.article.status)==="published"?"Unpublish the article before deleting it.":void 0}),Z&&s.jsxs("div",{role:"alert",className:"flex flex-wrap items-center justify-between gap-3 rounded-xl border border-red-300 bg-red-50 px-4 py-3",children:[s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(lU,{size:18,className:"mt-0.5 flex-shrink-0 text-red-700","aria-hidden":"true"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-red-900",children:"Someone else saved this article while you were editing"}),s.jsx("p",{className:"text-sm text-red-800",children:"Autosave is paused so your changes cannot over
1406write theirs. Copy anything you need to keep, then reload to get the latest version."})]})]}),s.jsx("button",{type:"button",onClick:()=>void ht(),className:Et,children:"Reload latest"})]}),a&&!Ur&&s.jsxs("div",{role:"status",className:"rounded-xl border border-amber-300 bg-amber-50 px-4 py-3 text-sm text-amber-900",children:[s.jsx("span",{className:"font-bold",children:"This article is read-only right now."})," ",a.permissions.canEditReason??"It is locked while it moves through the review process."]}),(a==null?void 0:a.warnings)&&a.warnings.length>0&&s.jsx("ul",{className:"space-y-1 rounded-xl border border-amber-200 bg-amber-50 px-4 py-3",children:a.warnings.map(Ne=>s.jsxs("li",{className:"flex items-start gap-2 text-sm text-amber-900",children:[s.jsx(Go,{size:14,className:"mt-0.5 flex-shrink-0","aria-hidden":"true"}),Ne]},Ne))}),a&&s.jsx("div",{role:"tablist","aria-label":"Article sections",className:"flex gap-1 border-b border-gray-200",onKeyDown:Ne=>{const Me=["content","changes","revisions","activity"],Ze=Me.indexOf(fe);if(Ne.key==="ArrowRight"||Ne.key==="ArrowLeft"){Ne.preventDefault();const Yn=Me[(Ze+(Ne.key==="ArrowRight"?1:-1)+Me.length)%Me.length];Oe(Yn),requestAnimationFrame(()=>{var ps;return(ps=document.getElementById(`tab-${Yn}`))==null?void 0:ps.focus()})}},children:[["content","Content"],["changes","Changes"],["revisions","Revisions"],["activity","Activity"]].map(([Ne,Me])=>s.jsx("button",{type:"button",role:"tab",id:`tab-${Ne}`,"aria-selected":fe===Ne,"aria-controls":`panel-${Ne}`,tabIndex:fe===Ne?0:-1,onClick:()=>Oe(Ne),className:["-mb-px border-b-2 px-4 py-2 text-sm font-semibold transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",fe===Ne?"border-hba-orange-1 text-hba-blue-1":"border-transparent text-hba-grey-1 hover:text-hba-blue-1"].join(" "),children:Me},Ne))}),s.jsxs("div",{role:a?"tabpanel":void 0,id:"panel-content","aria-labelledby":"tab-content",hidden:!!a&&fe!=="content",children:[s.jsxs("div",{className:"article-editor-layout",children:[s.jsxs("div",{className:"min-w-0 space-y-5",children:[s.jsx("div",{className:`${jn} p-5`,children:s.jsx(Xt,{id:"article-title",label:"Article title",tooltip:wr.title.tooltip,hint:wr.title.hint,children:s.jsx("input",{id:"article-title",type:"text",value:d.title,disabled:!Ur,onChange:Ne=>ce({title:Ne.target.value}),placeholder:"What Medicare Advantage covers in 2026",className:"h-11 w-full rounded-[10px] border border-admin-border px-3 text-lg font-bold text-hba-blue-1 placeholder:font-normal placeholder:text-gray-400 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1 disabled:bg-gray-50"})})}),s.jsxs("div",{children:[s.jsx("p",{className:"mb-1.5 text-sm font-semibold text-hba-blue-1",children:"Article content"}),s.jsx(MWe,{resetKey:$,initialContent:S,onChange:We,editable:Ur,articleId:t,assets:U,onAssetUploaded:Ne=>Y(Me=>[Ne,...Me.filter(Ze=>Ze.id!==Ne.id)]),onReady:Kn,onAskAi:()=>m1(null,T.trim()?"selection":"article")})]})]}),x1]}),s.jsx(TGe,{editor:Ot,enabled:Ur,onAsk:Ne=>m1(Ne,"selection")})]}),a&&s.jsx("div",{role:"tabpanel",id:"panel-changes","aria-labelledby":"tab-changes",hidden:fe!=="changes",children:xn?s.jsx(Lte,{beforeHtml:xn.content_html??"",afterHtml:((Rf=a.workingRevision)==null?void 0:Rf.content_html)??"",beforeFields:{title:xn.title,slug:xn.slug,excerpt:xn.excerpt,seoTitle:xn.seo_title,seoDescription:xn.seo_description,seoFocusKeyword:xn.seo_focus_keyword,canonicalUrl:xn.canonical_url,featuredImageUrl:xn.featured_image_url,featuredImageAlt:xn.featured_image_alt},afterFields:{title:d.title,slug:d.slug,excerpt:d.excerpt,seoTitle:d.seoTitle,seoDescription:d.seoDescription,seoFocusKeyword:d.seoFocusKeyword,canonicalUrl:d.canonicalUrl,featuredImageUrl:d.featuredImageUrl,featuredImageAlt:d.featuredImageAlt},beforeLabel:`published revision ${xn.revision_number}`,afterLabel:"your draft"}):s.jsxs("div",{className:`${jn} p-8 text-center`,children:[s.jsx("p",{className:"text-sm text-hba-grey-1",children:"This article has never been published, so there is nothing to compare against yet."}),R&&s.jsx("p",{className:"mt-1 text-xs text-hba-grey-1",children:"Save the draft to refresh what is shown here."})]})}),a&&t&&s.jsx("div",{role:"tabpanel",id:"panel-revisions","aria-labelledby":"tab-revisions",hidden:fe!=="revisions",children:s.jsx(cGe,{articleId:t,detail
1406:a,canEdit:Ur,refreshKey:Ce,onRestored:Ne=>{mt(Ne),h(y9(Ne));const Me=Ne.workingRevision,Ze=(Me==null?void 0:Me.content_json)??(Me==null?void 0:Me.content_html)??"";j(Ze),N(typeof Ze=="string"?null:Ze),O((Me==null?void 0:Me.word_count)??0),C(Yn=>Yn+1),Oe("content")}})}),a&&t&&s.jsx("div",{role:"tabpanel",id:"panel-activity","aria-labelledby":"tab-activity",hidden:fe!=="activity",children:s.jsx(Dte,{articleId:t,detail:a,refreshKey:Ce,onCommentsChange:Ne=>i(Me=>Me&&{...Me,comments:Ne})})}),s.jsx(Hs,{open:we!==null,title:"Preview",description:"This is how the article will appear to readers.",onClose:()=>ke(null),size:"lg",children:we&&s.jsxs("div",{children:[we.isStale&&s.jsx("p",{className:"mb-3 rounded-lg border border-amber-300 bg-amber-50 px-3 py-2 text-xs text-amber-900",children:"You have unsaved edits that are not in this preview."}),we.featuredImageUrl&&s.jsx("img",{src:we.featuredImageUrl,alt:"",className:"mb-4 w-full rounded-lg object-cover"}),s.jsx("h1",{className:"mb-1 text-3xl font-black leading-tight text-hba-blue-1",children:we.title}),s.jsxs("p",{className:"mb-5 text-sm text-hba-grey-1",children:[we.authorName?s.jsxs("span",{className:"font-semibold text-hba-blue-1",children:["By ",we.authorName]}):s.jsx("span",{children:"No public author selected"}),we.postedAt?` · Posted ${new Date(we.postedAt).toLocaleString("en-US",{timeZone:"America/Los_Angeles",dateStyle:"medium",timeStyle:"short"})}`:"",` · ${we.wordCount} words`,we.slug?` · /${we.slug}`:" · no URL yet"]}),s.jsx("div",{className:"hba-article-content",dangerouslySetInnerHTML:{__html:we.html}}),s.jsxs("div",{className:"mt-6 border-t border-gray-200 pt-4",children:[s.jsx("p",{className:"mb-2 text-xs text-hba-grey-1",children:"Need a second opinion from someone who is not signed in? Generate a private link. It expires in two hours and search engines are told not to index it."}),s.jsxs("button",{type:"button",onClick:()=>void _n(),disabled:Le,className:Et,children:[Le?s.jsx(pt,{size:16,className:"animate-spin"}):s.jsx(bU,{size:16}),"Copy shareable preview link"]})]})]})}),s.jsx(Hs,{open:ne,title:"Delete this article?",onClose:()=>Se(!1),size:"sm",footer:s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:()=>Se(!1),className:Et,children:"Cancel"}),s.jsxs("button",{type:"button",onClick:()=>void _r(),disabled:Ve||$e.trim().toUpperCase()!=="DELETE",title:$e.trim().toUpperCase()!=="DELETE"?"Type DELETE to confirm.":"Delete this article permanently",className:Pu,children:[Ve&&s.jsx(pt,{size:15,className:"animate-spin"}),"Delete permanently"]})]}),children:s.jsxs("div",{className:"space-y-3 text-sm text-hba-blue-1",children:[s.jsxs("p",{children:[s.jsxs("span",{className:"font-bold",children:["â",d.title||"Untitled article","â and all of its revisions will be removed."]})," ","This cannot be undone."]}),s.jsx("p",{className:"text-hba-grey-1",children:"If you only want it off the public site, archive it instead. Archived articles keep their history and can be restored."}),s.jsx(Xt,{id:"delete-confirm",label:"Type DELETE to confirm",children:s.jsx("input",{id:"delete-confirm",type:"text",value:$e,onChange:Ne=>Ae(Ne.target.value),className:Vt,autoComplete:"off"})})]})})]})}function DGe({onOpen:t,refreshKey:e}){const[r,n]=w.useState([]),[a,i]=w.useState(!0),[o,l]=w.useState(!1);if(w.useEffect(()=>{let d=!1;return i(!0),l(!1),HDe({limit:50}).then(h=>{d||n(h.articles)}).catch(h=>{d||(h instanceof At&&h.isForbidden?l(!0):te.error(h instanceof At?h.message:"Could not load the review queue."))}).finally(()=>{d||i(!1)}),()=>{d=!0}},[e]),o)return s.jsxs("div",{className:`${jn} p-10 text-center`,children:[s.jsx(Sy,{size:36,className:"mx-auto mb-3 text-hba-grey-1","aria-hidden":"true"}),s.jsx("h2",{className:"text-lg font-bold text-hba-blue-1",children:"Review access is limited"}),s.jsx("p",{className:"mx-auto mt-1 max-w-md text-sm text-hba-grey-1",children:"Only admins can approve and publish articles. You can still write and submit your own work from the Articles screen."})]});const c=r.filter(d=>d.status==="in_review"),u=r.filter(d=>d.status==="approved"||d.status==="scheduled");return s.jsxs("div",{className:"space-y-6",children:[s.jsx(Wn,{eyebrow:"Content",title:"Review queue",description:"Articles submitted by authors, waiting for approval or publication."}),a?s.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-sm text-hba-grey-1",children:[s.jsx(pt,{size:18,className:"animate-spin"}),"Loading the queueâ¦"]}):r.length===0?s.jsxs("div",{className:`${jn} p-12 text-center`,children:[s.jsx(z0,{size:40,className:"mx-auto mb-3 text-hba-grey-1","aria-hidden":"true"}),s.jsx("h3",{className:"text-base font-bold text-hba-blue-1",children:"Nothing waiting for review"}),s.jsx("p",{className:"mt-1 text-sm text-hba-grey-1",children:"Submitted articles will appear here."})]}):s.jsxs(s.Fragment,{children:[s.jsx(hV,{title:"Waiting for review",icon:s.jsx(Fs,{size:15,"aria-hidden":"true"}),items:c,emptyText:"No articles are waiting for a decision.",onOpen:t}
1406),s.jsx(hV,{title:"Approved, ready to publish",icon:s.jsx(er,{size:15,"aria-hidden":"true"}),items:u,emptyText:"Nothing is approved and waiting.",onOpen:t})]})]})}function hV({title:t,icon:e,items:r,emptyText:n,onOpen:a}){return s.jsxs("div",{className:jn,children:[s.jsxs("div",{className:"flex items-center gap-2 border-b border-gray-200 px-4 py-3",children:[e,s.jsx("h3",{className:"text-sm font-bold uppercase tracking-wide text-hba-blue-1",children:t}),s.jsx("span",{className:"ml-auto text-xs text-hba-grey-1",children:r.length})]}),r.length===0?s.jsx("p",{className:"px-4 py-6 text-center text-sm text-hba-grey-1",children:n}):s.jsx("ul",{className:"divide-y divide-gray-100",children:r.map(i=>s.jsx("li",{children:s.jsxs("button",{type:"button",onClick:()=>a(i.id),className:"flex w-full items-center justify-between gap-4 px-4 py-3 text-left transition-colors hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-hba-orange-1",children:[s.jsxs("span",{className:"min-w-0 flex-1",children:[s.jsx("span",{className:"block truncate text-sm font-bold text-hba-blue-1",children:i.title||"Untitled article"}),s.jsxs("span",{className:"mt-0.5 block truncate text-xs text-hba-grey-1",children:[i.authorName||i.authorEmail||"Unknown author"," · updated"," ",Mu(i.updatedAt)]})]}),s.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2",children:[i.isLive&&s.jsx("span",{className:"rounded bg-green-50 px-2 py-0.5 text-xs font-semibold text-green-700",children:"Live edit"}),i.scheduledFor&&s.jsx("span",{className:"rounded bg-violet-50 px-2 py-0.5 text-xs font-semibold text-violet-700",children:Mu(i.scheduledFor)}),s.jsx(J$,{status:i.status})]})]})},i.id))})]})}function zte({articleId:t,onBack:e,onDecision:r,onEdit:n}){const[a,i]=w.useState(null),[o,l]=w.useState(!0),[c,u]=w.useState(null),[d,h]=w.useState(null),[m,g]=w.useState(0),[b,y]=w.useState("diff");w.useEffect(()=>{let $=!1;return l(!0),u(null),ak(t).then(C=>{$||i(C)}).catch(C=>{if($)return;const _=C instanceof At?C.message:"Could not load this article.";u(_)}).finally(()=>{$||l(!1)}),()=>{$=!0}},[t,m]);const v=w.useCallback(async($,C)=>{h($);try{const _=await bZ(t,$,{comment:C.comment??null,scheduledFor:C.scheduledFor??null,expectedLockVersion:a==null?void 0:a.article.lock_version});i(_),g(O=>O+1),r(),te.success(`Done: ${$.replace(/_/g," ")}`)}catch(_){te.error(_ instanceof At?_.message:"That action could not be completed.")}finally{h(null)}},[t,a==null?void 0:a.article.lock_version,r]);if(o)return s.jsxs("div",{className:"flex items-center justify-center gap-2 py-24 text-sm text-hba-grey-1",children:[s.jsx(pt,{size:18,className:"animate-spin"}),"Loading articleâ¦"]});if(c||!a)return s.jsxs("div",{className:`${jn} p-8 text-center`,children:[s.jsx(Go,{size:32,className:"mx-auto mb-3 text-amber-600","aria-hidden":"true"}),s.jsx("h2",{className:"text-lg font-bold text-hba-blue-1",children:"This article could not be opened"}),s.jsx("p",{className:"mx-auto mt-1 max-w-md text-sm text-hba-grey-1",children:c}),s.jsxs("button",{type:"button",onClick:e,className:`${Et} mt-5`,children:[s.jsx(Wo,{size:16}),"Back to the queue"]})]});const N=a.workingRevision,S=a.publishedRevision,j=a.comments.filter($=>$.kind==="change_request"&&!$.resolved_at);return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsxs("button",{type:"button",onClick:e,className:"mb-1 inline-flex items-center gap-1.5 text-sm font-semibold text-hba-grey-1 transition-colors hover:text-hba-blue-1 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",children:[s.jsx(Wo,{size:15}),"Review queue"]}),s.jsx("h2",{className:"truncate font-heading text-2xl font-bold tracking-tight text-admin-text",children:(N==null?void 0:N.title)||a.article.title||"Untitled article"}),s.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2",children:[s.jsx(J$,{status:a.article.status}),a.flags.isLive&&s.jsx(wZ,{}),s.jsxs("span",{className:"text-xs text-hba-grey-1",children:[a.article.author_name||a.article.author_email||"Unknown author",a.article.submitted_at?` · submitted ${Pf(a.article.submitted_at)}`:""]}),s.jsxs("span",{className:"text-xs text-hba-grey-1",children:[(N==null?void 0:N.word_count)??0," words"]})]})]}),s.jsx("button",{type:"button",onClick:()=>n(t),className:Et,children:"Open in editor"})]}),s.jsxs("div",{className:`${jn} px-4 py-3`,children:[s.jsx("p",{className:"mb-2 text-xs font-bold uppercase tracking-wide text-hba-grey-1",children:"Review decision"}),s.jsx(Hte,{detail:a,busyAction:d,onAction:v,only:["approve","request_changes","schedule","publish","unpublish","archive"]})]}),j.length>0&&s.jsxs("div",{className:"rounded-xl border border-rose-200 bg-rose-50 px-4 py-3",children:[s.jsxs("p",{className:"text-sm font-bold text-rose-900",children:["Open change requests (",j.length,")"]}),s.jsx("ul",{className:"mt-1.5 space-y-1",children:j.map($=>s.jsx("li",{className:"text-sm text-rose-900",children:$.body},$.id))})]}),s.jsx("div",{role:"tablist","aria-label":"Review view",className:"flex gap-1 border-b border-gray-200",children:[["diff",S?"Compare with live version":"Changes"],["read","Read the full article"]].map(([$,C])=>s.jsx("button",{type:"button",role:"tab","aria-selected":b===$,onClick:()=>y($),className:["-mb-px border-b-2 px-4 py-2 text-sm font-semibold transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1",b===$?"border-hba-orange-1 text-hba-blue-1":"border-transparent text-hba-grey-1 hover:text-hba-blue-1"].join(" "),children:C},$))}),b==="diff"?S?s.jsx(Lte,{beforeHtml:S.content_html??"",afterHtml:(N==null?void 0:N.content_html)??"",beforeFields:{title:S.title,slug:S.slug,excerpt:S.excerpt,seoTitle:S.seo_title,seoDescription:S.seo_description,seoFocusKeyword:S.seo_focus_keyword,
1406canonicalUrl:S.canonical_url,featuredImageUrl:S.featured_image_url,featuredImageAlt:S.featured_image_alt},afterFields:{title:N==null?void 0:N.title,slug:N==null?void 0:N.slug,excerpt:N==null?void 0:N.excerpt,seoTitle:N==null?void 0:N.seo_title,seoDescription:N==null?void 0:N.seo_description,seoFocusKeyword:N==null?void 0:N.seo_focus_keyword,canonicalUrl:N==null?void 0:N.canonical_url,featuredImageUrl:N==null?void 0:N.featured_image_url,featuredImageAlt:N==null?void 0:N.featured_image_alt},beforeLabel:`live revision ${S.revision_number}`,afterLabel:`submitted revision ${(N==null?void 0:N.revision_number)??"â"}`}):s.jsxs("div",{className:`${jn} p-6`,children:[s.jsx("p",{className:"mb-4 text-sm text-hba-grey-1",children:"This article has never been published, so there is no earlier version to compare against. The full submission is below."}),s.jsx(fV,{detail:a})]}):s.jsx("div",{className:`${jn} p-6`,children:s.jsx(fV,{detail:a})}),s.jsx(Dte,{articleId:t,detail:a,refreshKey:m,onCommentsChange:$=>i(C=>C&&{...C,comments:$})})]})}function fV({detail:t}){const e=t.workingRevision;return s.jsxs("article",{children:[(e==null?void 0:e.featured_image_url)&&s.jsx("img",{src:e.featured_image_url,alt:e.featured_image_alt??"",className:"mb-5 w-full rounded-lg object-cover"}),s.jsx("h1",{className:"mb-2 text-3xl font-black leading-tight text-hba-blue-1",children:(e==null?void 0:e.title)||t.article.title}),(e==null?void 0:e.excerpt)&&s.jsx("p",{className:"mb-5 border-l-4 border-gray-200 pl-3 text-sm italic text-hba-grey-1",children:e.excerpt}),s.jsx("div",{className:"hba-article-content",dangerouslySetInnerHTML:{__html:(e==null?void 0:e.content_html)??"<p>This revision has no content.</p>"}}),s.jsxs("dl",{className:"mt-8 grid grid-cols-1 gap-3 border-t border-gray-200 pt-5 text-sm sm:grid-cols-2",children:[s.jsxs("div",{children:[s.jsx("dt",{className:"text-xs font-bold uppercase tracking-wide text-hba-grey-1",children:"URL slug"}),s.jsx("dd",{className:"text-hba-blue-1",children:e!=null&&e.slug?`/${e.slug}`:"Not set"})]}),s.jsxs("div",{children:[s.jsx("dt",{className:"text-xs font-bold uppercase tracking-wide text-hba-grey-1",children:"Search title"}),s.jsx("dd",{className:"text-hba-blue-1",children:(e==null?void 0:e.seo_title)||"Falls back to the title"})]}),s.jsxs("div",{className:"sm:col-span-2",children:[s.jsx("dt",{className:"text-xs font-bold uppercase tracking-wide text-hba-grey-1",children:"Search description"}),s.jsx("dd",{className:"text-hba-blue-1",children:(e==null?void 0:e.seo_description)||"Not set"})]})]})]})}function Jv(){try{const t=localStorage.getItem("hba_user");return t?JSON.parse(t):null}catch{return null}}function LGe(){var t;return((t=Jv())==null?void 0:t.id)??null}function Qv(){var r;const t=Jv(),e=((r=t==null?void 0:t.app_metadata)==null?void 0:r.role)??(t==null?void 0:t.role)??"";return e==="super_admin"||e==="admin"||e==="regular"?e:null}function BGe(){const t=Qv();return t==="admin"||t==="super_admin"}function Vte(){var e;const t=(e=Jv())==null?void 0:e.email;return typeof t=="string"&&t.trim()?t.trim():null}function Ute(){const t=Jv(),e=(t==null?void 0:t.user_metadata)??{},r=e.full_name??e.name??e.display_name;if(typeof r=="string"&&r.trim())return r.trim();const n=Vte();return n!=null&&n.includes("@")?n.split("@")[0]:"Admin"}function HGe(){const t=Qv();return t==="super_admin"?"Super Admin":t==="admin"?"Admin":t==="regular"?"Team Member":"Signed in"}function FGe(){const t=Ute(),e=t.split(/[\s._-]+/).filter(Boolean);return e.length>=2?`${e[0][0]}${e[1][0]}`.toUpperCase():t.slice(0,2).toUpperCase()}function zGe(){return Qv()==="super_admin"}function VGe(){const t=Qv();return t==="admin"||t==="super_admin"}function pV(){const[t,e]=w.useState({name:"list"}),[r,n]=w.useState(0),a=w.useCallback(()=>{n(i=>i+1),e({name:"list"})},[]);return t.name==="editor"?s.jsx(Fte,{articleId:t.articleId,onBack:a,onCreated:i=>e({name:"editor",articleId:i}),onDeleted:a}):t.name==="review"?s.jsx(zte,{articleId:t.articleId,onBack:a,onDecision:()=>n(i=>i+1),onEdit:i=>e({name:"editor",articleId:i})}):s.jsx(vLe,{currentUserId:LGe(),onOpen:i=>e({name:"editor",articleId:i}),onCreate:()=>e({name:"editor",articleId:null})},r)}
1406function UGe(){const[t,e]=w.useState(null),[r,n]=w.useState(null),[a,i]=w.useState(0);return r?s.jsx(Fte,{articleId:r,onBack:()=>{n(null),i(o=>o+1)},onCreated:o=>n(o),onDeleted:()=>{n(null),e(null),i(o=>o+1)}}):t?s.jsx(zte,{articleId:t,onBack:()=>{e(null),i(o=>o+1)},onDecision:()=>i(o=>o+1),onEdit:o=>n(o)}):s.jsx(DGe,{onOpen:e,refreshKey:a})}const Ab={displayName:"",slug:"",jobTitle:"",shortBio:"",email:"",photoFile:null,photoPreview:null};function qGe(t){return{displayName:t.display_name??"",slug:t.slug??"",jobTitle:t.job_title??"",shortBio:t.short_bio??"",email:t.email??"",photoFile:null,photoPreview:t.profile_image_url}}function WGe(t){return{displayName:t.displayName.trim(),slug:t.slug.trim()||void 0,jobTitle:t.jobTitle.trim()||null,shortBio:t.shortBio.trim()||null,email:t.email.trim()||null}}function GGe(){const[t,e]=w.useState([]),[r,n]=w.useState(!0),[a,i]=w.useState(null),[o,l]=w.useState(!1),[c,u]=w.useState(null),[d,h]=w.useState(Ab),[m,g]=w.useState(!1),[b,y]=w.useState(null),[v,N]=w.useState(null),[S,j]=w.useState(!1),$=w.useCallback(async()=>{n(!0);try{const R=await xZ({activeOnly:!1,includeCounts:!0});e(R.authors)}catch(R){const F=R instanceof At?R.message:"Could not load authors.";te.error(F),e([])}finally{n(!1)}},[]);w.useEffect(()=>{$()},[$]);const C=()=>{u(null),h(Ab),y(null),l(!0)},_=R=>{u(R),h(qGe(R)),y(null),l(!0)},O=()=>{m||(l(!1),u(null),h(Ab),y(null))},E=R=>{var L,q;const F=((L=R.target.files)==null?void 0:L[0])??null;F&&((q=d.photoPreview)!=null&&q.startsWith("blob:")&&URL.revokeObjectURL(d.photoPreview),h(G=>({...G,photoFile:F,photoPreview:URL.createObjectURL(F)})))},P=async()=>{if(!d.displayName.trim()){y("Display name is required.");return}g(!0),y(null);try{const R=WGe(d);let F=c==null?void 0:c.id;if(c){const{author:L}=await eLe(c.id,R);F=L.id,te.success("Author updated.")}else{const{author:L}=await ZDe(R);F=L.id,te.success("Author created.")}d.photoFile&&F&&(await nLe(F,d.photoFile),te.success("Photo uploaded.")),l(!1),u(null),h(Ab),await $()}catch(R){const F=R instanceof At?R.message:"Could not save author.";y(F),te.error(F)}finally{g(!1)}},T=async R=>{i(R.id);try{const{author:F}=await tLe(R.id,!R.is_active);e(L=>L.map(q=>q.id===F.id?F:q)),te.success(F.is_active?"Author activated.":"Author deactivated.")}catch(F){const L=F instanceof At?F.message:"Could not update author.";te.error(L)}finally{i(null)}},I=async()=>{if(v){j(!0);try{(await rLe(v.id)).deleted?te.success("Author deleted."):te.message("This author is linked to articles, so they were deactivated instead of deleted."),N(null),await $()}catch(R){const F=R instanceof At?R.message:"Could not delete author. They may still be linked to articles.";te.error(F)}finally{j(!1)}}};return s.jsxs("div",{children:[s.jsx(Wn,{eyebrow:"Content",title:"Article Authors",description:s.jsxs(s.Fragment,{children:["Public bylines shown on articles â names, photos, and short bios readers see. These are ",s.jsx("span",{className:"font-semibold text-admin-text",children:"not login accounts"}),". Who can sign in and edit drafts is managed under User Management."]}),actions:s.jsxs("button",{type:"button",onClick:C,className:rr,children:[s.jsx(ss,{size:16,"aria-hidden":"true"}),"Add author"]})}),r?s.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-hba-grey-1",children:[s.jsx(pt,{className:"animate-spin",size:20,"aria-hidden":"true"}),"Loading authorsâ¦"]}):t.length===0?s.jsxs("div",{className:`${jn} px-6 py-12 text-center`,children:[s.jsx(Db,{className:"mx-auto mb-3 text-hba-grey-1",size:36,"aria-hidden":"true"}),s.jsx("p",{className:"font-semibold text-hba-blue-1",children:"No authors yet"}),s.jsx("p",{className:"mt-1 text-sm text-hba-grey-1",children:"Add a public byline so writers can assign it when publishing."}),s.jsxs("button",{type:"button",onClick:C,className:`${rr} mt-4`,children:[s.jsx(ss,{size:16,"aria-hidden":"true"}),"Add first author"]})]}):s.jsx("ul",{className:"space-y-3","aria-label":"Article authors",children:t.map(R=>{const F=a===R.id;return s.jsxs("li",{className:`${jn} flex flex-wrap items-center gap-4 px-4 py-3`,children:[s.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[R.profile_image_url?s.jsx("img",{src:R.profile_image_url,alt:"",className:"h-12 w-12 shrink-0 rounded-full object-cover"}):s.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-gray-100 text-hba-grey-1","aria-hidden":"true",children:s.jsx(Db,{size:28})}),s.jsxs("div",{className:"min-w-0",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsx("p",{className:"truncate font-semibold text-hba-blue-1",children:R.display_name}),s.jsx("span",{className:`rounded-full px-2 py-0.5 text-xs font-semibold ${R.is_active?"bg-green-100 text-green-800":"bg-slate-200 text-slate-600"}`,children:R.is_active?"Active":"Inactive"})]}),s.jsxs("p",{className:"truncate text-sm text-hba-grey-1",children:[R.job_title||"No job title",typeof R.article_c
1406ount=="number"?` · ${R.article_count} article${R.article_count===1?"":"s"}`:null]})]})]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsxs("button",{type:"button",className:Et,onClick:()=>_(R),disabled:F,children:[s.jsx(hf,{size:14,"aria-hidden":"true"}),"Edit"]}),s.jsxs("button",{type:"button",className:Et,onClick:()=>void T(R),disabled:F,"aria-label":R.is_active?`Deactivate ${R.display_name}`:`Activate ${R.display_name}`,children:[F?s.jsx(pt,{className:"animate-spin",size:14,"aria-hidden":"true"}):s.jsx(lx,{size:14,"aria-hidden":"true"}),R.is_active?"Deactivate":"Activate"]}),s.jsxs("button",{type:"button",className:Pu,onClick:()=>N(R),disabled:F,children:[s.jsx(zs,{size:14,"aria-hidden":"true"}),"Delete"]})]})]},R.id)})}),s.jsx(Hs,{open:o,onClose:O,title:c?"Edit author":"Add author",description:"This profile is the public byline on articles â not a login user.",size:"md",footer:s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",className:Et,onClick:O,disabled:m,children:"Cancel"}),s.jsx("button",{type:"button",className:rr,onClick:()=>void P(),disabled:m,children:m?s.jsxs(s.Fragment,{children:[s.jsx(pt,{className:"animate-spin",size:16,"aria-hidden":"true"}),"Savingâ¦"]}):c?"Save changes":"Create author"})]}),children:s.jsxs("div",{className:"space-y-4",children:[b&&s.jsx("p",{role:"alert",className:"rounded-lg bg-red-50 px-3 py-2 text-sm text-red-700",children:b}),s.jsx(Xt,{id:"author-display-name",label:"Display name",hint:"Shown as the byline on articles.",children:s.jsx("input",{id:"author-display-name",className:Vt,value:d.displayName,onChange:R=>h(F=>({...F,displayName:R.target.value})),autoComplete:"off",required:!0})}),s.jsx(Xt,{id:"author-slug",label:"URL slug",hint:"Optional. Leave blank to generate from the display name.",children:s.jsx("input",{id:"author-slug",className:Vt,value:d.slug,onChange:R=>h(F=>({...F,slug:R.target.value})),autoComplete:"off",placeholder:"jane-doe"})}),s.jsx(Xt,{id:"author-job-title",label:"Job title",children:s.jsx("input",{id:"author-job-title",className:Vt,value:d.jobTitle,onChange:R=>h(F=>({...F,jobTitle:R.target.value})),autoComplete:"off",placeholder:"Benefits Advisor"})}),s.jsx(Xt,{id:"author-short-bio",label:"Short bio",children:s.jsx("textarea",{id:"author-short-bio",className:`${Vt} min-h-[96px] resize-y`,value:d.shortBio,onChange:R=>h(F=>({...F,shortBio:R.target.value})),rows:3})}),s.jsx(Xt,{id:"author-email",label:"Email",hint:"Optional contact shown in author profiles.",children:s.jsx("input",{id:"author-email",type:"email",className:Vt,value:d.email,onChange:R=>h(F=>({...F,email:R.target.value})),autoComplete:"off"})}),s.jsx(Xt,{id:"author-photo",label:"Photo",hint:"JPEG, PNG, WebP, GIF, or AVIF. Max 10 MB.",children:s.jsxs("div",{className:"flex items-center gap-4",children:[d.photoPreview?s.jsx("img",{src:d.photoPreview,alt:"",className:"h-16 w-16 rounded-full object-cover"}):s.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-gray-100 text-hba-grey-1","aria-hidden":"true",children:s.jsx(Db,{size:32})}),s.jsx("input",{id:"author-photo",type:"file",accept:"image/jpeg,image/png,image/webp,image/gif,image/avif",onChange:E,className:"block w-full text-sm text-hba-grey-1 file:mr-3 file:rounded-lg file:border-0 file:bg-admin-primary file:px-3 file:py-2 file:text-sm file:font-semibold file:text-white hover:file:bg-admin-primary-hover"})]})})]})}),s.jsx(Hs,{open:!!v,onClose:()=>S?void 0:N(null),title:"Delete author?",description:v?`Remove â${v.display_name}â from the directory. If they are still linked to articles, the server will block hard-delete and deactivate them instead.`:void 0,size:"sm",footer:s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",className:Et,onClick:()=>N(null),disabled:S,children:"Cancel"}),s.jsx("button",{type:"button",className:Pu,onClick:()=>void I(),disabled:S,children:S?s.jsxs(s.Fragment,{children:[s.jsx(pt,{className:"animate-spin",size:16,"aria-hidden":"true"}),"Deletingâ¦"]}):"Delete"})]}),children:s.jsx("p",{className:"text-sm text-hba-grey-1",children:"Prefer deactivate when you want to hide an author from new articles but keep past bylines intact."})})]})}const mV=1e3,Eb={name:"",slug:"",description:"",isActive:!0},yy="inline-flex h-10 w-10 items-center justify-center rounded-[10px] text-hba-blue-1 transition hover:bg-[#F5F7F8] hover:text-hba-orange-1 focus:outline-none focus-visible:ring-[3px] focus-visible:ring-admin-action/30 disabled:cursor-not-allowed disabled:opacity-40";function Ud(t){return[...t].sort((e,r)=>{const n=e.sort_order??0,a=r.sort_order??0;return n!==a?n-a:e.name.localeCompare(r.name)})}function gV(t){const e=t.trim().split(/\s+/).filter(r=>!/^(and|to|of|the|for|a|an)$/i.test(r));return e.length===0?"C":e.length===1?e[0].slice(0,2).toUpperCase():`${e[0][0]??""}${e[1][0]??""}`.toUpperCase()}function v9(t){return`${t} ${t===1?"article":"articles"}`}function w9(t){return(t??"").trim().normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/['â]/g,"").replace(/&/g," and ").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,96).replace(/-+$/g,"")}function KGe(t){return/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)}
1406function Ob(t,e){return{...e,article_count:e.article_count??(t==null?void 0:t.article_count)??0}}function bV({active:t}){return s.jsxs("span",{className:Fe("inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-semibold",t?"border-emerald-200 bg-emerald-50 text-emerald-800":"border-admin-border bg-[#E8EEF0] text-[#3A4E59]"),children:[s.jsx("span",{className:Fe("h-1.5 w-1.5 rounded-full",t?"bg-emerald-600":"bg-[#899AA4]"),"aria-hidden":"true"}),t?"Active":"Inactive"]})}function YGe(){const[t,e]=w.useState([]),[r,n]=w.useState(!0),[a,i]=w.useState(null),[o,l]=w.useState(!1),[c,u]=w.useState(""),[d,h]=w.useState("all"),[m,g]=w.useState(!1),[b,y]=w.useState(null),[v,N]=w.useState(Eb),[S,j]=w.useState(!1),[$,C]=w.useState(!1),[_,O]=w.useState(!1),[E,P]=w.useState(null),[T,I]=w.useState(null),R=w.useRef(null),F=w.useRef([]),L=w.useRef(!1);F.current=t,L.current=o;const q=w.useCallback(async()=>{n(!0);try{const ne=await X$({taxonomy:"category",includeCounts:!0});e(Ud(ne.terms))}catch(ne){const Se=ne instanceof At?ne.message:"Could not load categories.";te.error(Se),e([])}finally{n(!1)}},[]);w.useEffect(()=>{q()},[q]);const G=w.useMemo(()=>{const ne=t.filter($e=>$e.is_active??!0).length,Se=t.reduce(($e,Ae)=>$e+(Ae.article_count??0),0);return{total:t.length,active:ne,inactive:t.length-ne,tagged:Se}},[t]),B=d==="all"&&!c.trim()&&!o,H=w.useMemo(()=>{const ne=c.trim().toLowerCase();return t.filter(Se=>{const $e=Se.is_active??!0;return d==="active"&&!$e||d==="inactive"&&$e?!1:ne?Se.name.toLowerCase().includes(ne)||(Se.description??"").toLowerCase().includes(ne)||Se.slug.toLowerCase().includes(ne):!0})},[t,c,d]),K=w9(v.name),Z=S?w9(v.slug):K,V=w.useMemo(()=>{const ne=v.name.trim();return ne?t.some($e=>$e.id!==(b==null?void 0:b.id)&&$e.name.trim().toLowerCase()===ne.toLowerCase())?"A category with this name already exists.":null:_?"Name is required.":null},[_,t,b==null?void 0:b.id,v.name]),U=w.useMemo(()=>Z?KGe(Z)?t.some(Se=>Se.id!==(b==null?void 0:b.id)&&Se.slug.toLowerCase()===Z)?"This URL slug is already used by another category.":null:"Slug may only contain lowercase letters, numbers, and single hyphens.":_?"Could not build a slug from that name.":null,[_,t,b==null?void 0:b.id,Z]),Y=!!(V||U||!v.name.trim()||!Z),de=()=>{y(null),N(Eb),j(!1),O(!1),g(!0)},ge=ne=>{y(ne),N({name:ne.name??"",slug:ne.slug??"",description:ne.description??"",isActive:ne.is_active??!0}),j(!0),O(!1),g(!0)},fe=()=>{$||(g(!1),y(null),N(Eb),j(!1),O(!1))},Oe=async()=>{if(O(!0),!Y){C(!0);try{if(b){const{term:ne}=await sLe(b.id,{name:v.name.trim(),slug:Z,description:v.description.trim()||null,isActive:v.isActive});e(Se=>Ud(Se.map($e=>$e.id===ne.id?Ob($e,ne):$e))),te.success("Category updated.")}else{const ne=t.reduce(($e,Ae)=>Math.max($e,Ae.sort_order??0),-1)+1,{term:Se}=await aLe({taxonomy:"category",name:v.name.trim(),slug:Z,description:v.description.trim()||null,sortOrder:ne});e($e=>$e.some(Ae=>Ae.id===Se.id)?Ud($e.map(Ae=>Ae.id===Se.id?Ob(Ae,Se):Ae)):Ud([...$e,Ob(void 0,Se)])),te.success("Category added.")}g(!1),y(null),N(Eb),j(!1),O(!1)}catch(ne){const Se=ne instanceof At?ne.message:"Could not save category.";te.error(Se)}finally{C(!1)}}},Ce=async(ne,Se)=>{if(!(L.current||ne.map(Ae=>Ae.id).join()===Se.map(Ae=>Ae.id).join())){L.current=!0,l(!0),e(ne);try{const{terms:Ae}=await oLe(ne.map(ae=>ae.id)),Ve=new Map(Se.map(ae=>[ae.id,ae.article_count]));e(Ud(Ae.map(ae=>({...ae,article_count:Ve.get(ae.id)??ae.article_count})))),te.success("Category order updated")}catch(Ae){e(Se);const Ve=Ae instanceof At?Ae.message:"Could not reorder categories.";te.error(Ve)}finally{L.current=!1,l(!1)}}},le=async(ne,Se)=>{i(ne.id);try{const{term:$e}=await iLe(ne.id,Se);e(Ae=>Ud(Ae.map(Ve=>Ve.id===$e.id?Ob(Ve,$e):Ve))),te.success(Se?"Category reactivated.":"Category deactivated.")}catch($e){const Ae=$e instanceof At?$e.message:"Could not update category.";te.error(Ae)}finally{i(null),P(null)}},we=(ne,Se)=>{if(!B)return;const $e=t.findIndex(ae=>ae.id===ne),Ae=Se==="up"?$e-1:$e+1;if($e<0||Ae<0||Ae>=t.length)return;const Ve=[...t];[Ve[$e],Ve[Ae]]=[Ve[Ae],Ve[$e]],Ce(Ve,t)},ke=(ne,Se)=>{if(!B){Se.preventDefault();return}Se.dataTransfer.effectAllowed="move",Se.dataTransfer.setData("text/plain",ne),I(ne),R.current=t},oe=(ne,Se)=>{Se.preventDefault(),!(!T||T===ne||L.current)&&e($e=>{const Ae=$e.findIndex(ee=>ee.id===T),Ve=$e.findIndex(ee=>ee.id===ne);if(Ae<0||Ve<0||Ae===Ve)return $e;const ae=[...$e],[W]=ae.splice(Ae,1);return ae.splice(Ve,0,W),ae})},qe=()=>{const ne=R.current,Se=F.current;I(null),R.current=null,ne&&Ce(Se,ne)},Le=v.description.length,Ke=b?t.findIndex(ne=>ne.id===b.id)+1:null;return s.jsxs("div",{children:[s.jsxs("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[0.16em] text-admin-muted",children:"Content"}),s.jsx("h1",{className:"font-heading text-[1.75rem] font-bold leading-tight tracking-tight text-admin-text sm:text-[2rem]",children:"Article categories"}),s.jsx("p",{className:"mt-1.5 max-w-2xl text-sm leading-relaxed text-admin-muted",children:"Organize the categories writers use when publishing articles. Drag to change their display order. Categories assigned to articles can be deactivated but not deleted."})]}),s.jsxs("button",{type:"button",onClick:de,className:`${rr} shrink-0`,children:[s.jsx(ss,{size:16,"aria-hidden":"true"}),"Add category"]})]}),!r&&t.length>0?s.jsx("div",{className:"mb-4 grid grid-cols-2 gap-2 xl:grid-cols-4",children:[{key:"all",label:"Total categories",value:G.total,detail:"In the directory",icon:M9,tone
1406:"default",clickable:!0},{key:"active",label:"Active",value:G.active,detail:"Available to writers",icon:er,tone:"success",clickable:!0},{key:"inactive",label:"Inactive",value:G.inactive,detail:"Hidden from writers",icon:lx,tone:"muted",clickable:!0},{key:"tagged",label:"Categorized articles",value:G.tagged,detail:"Assignments in authoring",icon:Gi,tone:"info",clickable:!1}].map(ne=>{const Se=ne.icon,$e=ne.clickable&&d===ne.key,Ae=Fe("flex items-start justify-between gap-3 rounded-[12px] border border-admin-border bg-admin-surface p-3 text-left shadow-admin",ne.clickable&&"transition hover:border-hba-blue-1/30 hover:shadow-admin-hover",$e&&"border-hba-blue-1 ring-1 ring-hba-blue-1/20"),Ve=s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-[11px] font-medium uppercase tracking-wide text-admin-muted",children:ne.label}),s.jsx("p",{className:"mt-1 font-heading text-xl font-bold leading-none tabular-nums text-admin-text",children:ne.value}),s.jsx("p",{className:"mt-1.5 text-xs text-admin-muted",children:ne.detail})]}),s.jsx("div",{className:Fe("flex h-8 w-8 shrink-0 items-center justify-center rounded-[10px]",ne.tone==="success"&&"bg-emerald-50 text-emerald-700",ne.tone==="muted"&&"bg-[#E8EEF0] text-hba-blue-1",ne.tone==="info"&&"bg-[#E8EEF0] text-hba-blue-2",ne.tone==="default"&&"bg-hba-blue-1 text-white"),children:s.jsx(Se,{size:16,"aria-hidden":"true"})})]});return ne.clickable?s.jsx("button",{type:"button",className:Ae,onClick:()=>h(ne.key),"aria-pressed":$e,children:Ve},ne.key):s.jsx("div",{className:Ae,children:Ve},ne.key)})}):null,r?s.jsxs("div",{className:"rounded-[12px] border border-admin-border bg-admin-surface shadow-admin",role:"status","aria-label":"Loading categories",children:[s.jsxs("div",{className:"flex items-center gap-3 border-b border-admin-border px-4 py-3",children:[s.jsx("div",{className:"h-10 flex-1 animate-pulse rounded-[10px] bg-[#E4EAED]"}),s.jsx("div",{className:"h-10 w-48 animate-pulse rounded-[10px] bg-[#E4EAED]"})]}),Array.from({length:6}).map((ne,Se)=>s.jsxs("div",{className:"flex items-center gap-3 border-b border-admin-border px-4 py-3 last:border-b-0",children:[s.jsx("div",{className:"h-10 w-16 animate-pulse rounded-[10px] bg-[#E4EAED]"}),s.jsx("div",{className:"h-10 w-10 animate-pulse rounded-[10px] bg-[#E4EAED]"}),s.jsx("div",{className:"h-4 flex-1 animate-pulse rounded bg-[#E4EAED]"}),s.jsx("div",{className:"h-4 w-16 animate-pulse rounded bg-[#E4EAED]"})]},Se))]}):t.length===0?s.jsx(Mo,{title:"No article categories yet",description:"Create your first category to organize articles for writers and readers.",icon:M9,action:s.jsxs("button",{type:"button",onClick:de,className:rr,children:[s.jsx(ss,{size:16,"aria-hidden":"true"}),"Add category"]})}):s.jsxs("div",{className:"rounded-[12px] border border-admin-border bg-admin-surface shadow-admin",children:[s.jsxs("div",{className:"flex flex-col gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{className:"relative min-w-0 sm:max-w-sm sm:flex-1",children:[s.jsx(Ls,{size:16,"aria-hidden":"true",className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-admin-muted"}),s.jsx("input",{type:"search",value:c,onChange:ne=>u(ne.target.value),placeholder:"Search categories",className:`${Vt} pl-9 ${c?"pr-10":""}`,"aria-label":"Search categories"}),c?s.jsx("button",{type:"button",className:"absolute right-1 top-1/2 inline-flex h-8 w-8 -translate-y-1/2 items-center justify-center rounded-md text-admin-muted hover:bg-[#F5F7F8] hover:text-hba-blue-1",onClick:()=>u(""),"aria-label":"Clear search",children:s.jsx(cs,{size:14,"aria-hidden":"true"})}):null]}),s.jsx("div",{className:"inline-flex rounded-[10px] border border-admin-border bg-[#F5F7F8] p-0.5",role:"group","aria-label":"Filter by status",children:[["all","All",G.total],["active","Active",G.active],["inactive","Inactive",G.inactive]].map(([ne,Se,$e])=>s.jsxs("button",{type:"button",onClick:()=>h(ne),className:Fe("inline-flex min-h-10 items-center gap-1.5 rounded-[8px] px-3 text-sm font-semibold transition",d===ne?"bg-hba-blue-1 text-white shadow-sm":"text-hba-blue-1 hover:bg-white"),"aria-pressed":d===ne,children:[Se,s.jsx("span",{className:d===ne?"text-white/80":"text-admin-muted",children:$e})]},ne))})]}),!B&&!o?s.jsx("p",{className:"border-t border-admin-border bg-amber-50 px-4 py-2 text-xs font-semibold text-amber-900",children:"Clear search and filters to drag categories into a new display order."}):null,o?s.jsxs("p",{className:"flex items-center gap-2 border-t border-admin-border px-4 py-2 text-xs font-semibold text-admin-muted",children:[s.jsx(pt,{size:14,className:"animate-spin","aria-hidden":"true"}),"Saving category orderâ¦"]}):null,H.length===0?d==="inactive"&&!c.trim()?s.jsx(Mo,{className:"border-0 shadow-none",title:"No inactive categories",description:"Deactivated categories will appear here.",icon:lx}):c.trim()?s.jsx(Mo,{className:"border-0 shadow-none",title:`No categories match â${c.trim()}â`,description:"Try a different search or clear your filters.",icon:Ls,action:s.jsx("button",{type:"button",className:Et,onClick:()=>{u(""),h("all")},children:"Clear filters"})}):s.jsx(Mo,{className:"border-0 shadow-none",title:"No active categories",description:"Active categories will appear here.",icon:er,action:s.jsx("button",{type:"button",className:Et,onClick:()=>h("all"),children:"Clear filters"})}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"hidden md:block",children:s.jsxs("table",{className:"w-full min-w-[640px] border-t border-admin-border text-left",children:[s.jsx("caption",{className:"sr-only",children:"Article categories"}),s.jsx("thead",{className:"sticky top-0 z-10 bg-admin-surface",children:s.jsxs("tr",{className:"border-b border-admin-border text-[11px] font-semibold uppercase tracking-[0.12em] text-admin-muted",children:[s.jsx("th",{scope:"col",className:"w-[7.5rem] px-4 py-2.5 font-semibold",children:"Order"}),s.jsx("th",{scope:"col",className:"px-4 py-2.5 font-semibold",children:"Category"}),s.jsx("th",{scope:"col",className:"w-32 px-4 py-2.5 font-semibold",children:"Articles"}),s.jsx("th",{scope:"col",className:"w-28 px-4 py-2.5 font-semibold",children:"Status"}),s.jsx("th",{scope:"col",className:"w-28 px-4 py-2.5 text-right font-semibold",children:"Actions"})]})}),s.jsx("tbody",{children:H.map(ne=>{var ae;const Se=t.findIndex(W=>
1406W.id===ne.id),$e=ne.is_active??!0,Ae=ne.article_count??0,Ve=((ae=ne.description)==null?void 0:ae.trim())||"";return s.jsxs("tr",{className:Fe("group border-b border-admin-border last:border-b-0 hover:bg-[#F5F7F8]",T===ne.id&&"opacity-60",!$e&&"bg-slate-50/70"),onDragOver:W=>oe(ne.id,W),onDrop:W=>W.preventDefault(),children:[s.jsx("td",{className:"px-4 py-2.5",children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{role:"button",tabIndex:B?0:-1,className:Fe(yy,"hidden cursor-grab active:cursor-grabbing md:inline-flex",!B&&"cursor-not-allowed"),draggable:B,onDragStart:W=>ke(ne.id,W),onDragEnd:qe,"aria-label":`Reorder ${ne.name}`,"aria-disabled":!B,title:B?"Drag to change display order":"Clear search and filters to reorder",children:s.jsx(iS,{size:16,"aria-hidden":"true"})}),s.jsx("span",{className:"w-6 text-center text-xs font-semibold tabular-nums text-admin-muted",children:String(Se+1).padStart(2,"0")}),s.jsxs("div",{className:"hidden flex-col opacity-0 transition group-focus-within:opacity-100 focus-within:opacity-100 lg:flex",children:[s.jsx("button",{type:"button",className:"inline-flex h-5 w-5 items-center justify-center rounded text-hba-blue-1 hover:bg-white disabled:opacity-30",onClick:()=>we(ne.id,"up"),disabled:!B||Se<=0,"aria-label":`Move ${ne.name} up`,children:s.jsx(Hse,{size:12,"aria-hidden":"true"})}),s.jsx("button",{type:"button",className:"inline-flex h-5 w-5 items-center justify-center rounded text-hba-blue-1 hover:bg-white disabled:opacity-30",onClick:()=>we(ne.id,"down"),disabled:!B||Se===t.length-1,"aria-label":`Move ${ne.name} down`,children:s.jsx(Rse,{size:12,"aria-hidden":"true"})})]})]})}),s.jsx("td",{className:"px-4 py-2.5",children:s.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[s.jsx("div",{className:Fe("flex h-11 w-11 shrink-0 items-center justify-center rounded-[10px] text-[11px] font-semibold tracking-wide",$e?"bg-hba-blue-1 text-white":"bg-[#E8EEF0] text-hba-blue-2"),"aria-hidden":"true",children:gV(ne.name)}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"truncate text-sm font-semibold text-admin-text",children:ne.name}),s.jsx("p",{className:"truncate text-xs text-admin-muted",title:Ve||void 0,children:Ve||"No description added"})]})]})}),s.jsx("td",{className:"px-4 py-2.5 text-sm tabular-nums text-admin-text",children:v9(Ae)}),s.jsx("td",{className:"px-4 py-2.5",children:s.jsx(bV,{active:$e})}),s.jsx("td",{className:"px-4 py-2.5",children:s.jsx(xV,{term:ne,index:Se,total:t.length,canReorder:B,busy:a===ne.id||o,onEdit:()=>ge(ne),onMove:we,onToggle:()=>P(ne)})})]},ne.id)})})]})}),s.jsx("ul",{className:"divide-y divide-admin-border border-t border-admin-border md:hidden","aria-label":"Article categories",children:H.map(ne=>{var ae;const Se=t.findIndex(W=>W.id===ne.id),$e=ne.is_active??!0,Ae=ne.article_count??0,Ve=((ae=ne.description)==null?void 0:ae.trim())||"";return s.jsx("li",{className:Fe("px-4 py-3",!$e&&"bg-slate-50/70"),children:s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"flex min-w-0 items-start gap-3",children:[s.jsx("div",{className:Fe("flex h-11 w-11 shrink-0 items-center justify-center rounded-[10px] text-[11px] font-semibold tracking-wide",$e?"bg-hba-blue-1 text-white":"bg-[#E8EEF0] text-hba-blue-2"),"aria-hidden":"true",children:gV(ne.name)}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"truncate text-sm font-semibold text-admin-text",children:ne.name}),s.jsx("p",{className:"truncate text-xs text-admin-muted",children:Ve||"No description added"}),s.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-2 text-xs text-admin-muted",children:[s.jsx("span",{className:"tabular-nums",children:String(Se+1).padStart(2,"0")}),s.jsx("span",{children:v9(Ae)}),s.jsx(bV,{active:$e})]})]})]}),s.jsx(xV,{term:ne,index:Se,total:t.length,canReorder:B,busy:a===ne.id||o,onEdit:()=>ge(ne),onMove:we,onToggle:()=>P(ne)})]})},ne.id)})})]})]}),s.jsx(Tv,{open:!!E,onOpenChange:ne=>{ne||P(null)},tone:"warning",title:E?`${E.is_active??!0?"Deactivate":"Reactivate"} â${E.name}â?`:"Update category?",description:E?E.is_active??!0?(E.article_c
1406ount??0)>0?s.jsxs(s.Fragment,{children:["This category is currently assigned to ",v9(E.article_count??0),". Existing articles will keep the category, but writers will not be able to assign it to new articles."]}):s.jsx(s.Fragment,{children:"Writers will no longer be able to assign this category to articles. You can reactivate it later."}):s.jsx(s.Fragment,{children:"Writers will be able to assign this category to articles again."}):"",confirmLabel:E&&(E.is_active??!0)?"Deactivate category":"Reactivate category",onConfirm:()=>{E&&le(E,!(E.is_active??!0))}}),s.jsx(xJ,{open:m,onOpenChange:ne=>{ne||fe()},children:s.jsxs(yJ,{side:"right",className:"flex w-full flex-col gap-0 border-admin-border bg-admin-surface p-0 sm:max-w-md [&>button]:hidden",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3 border-b border-admin-border px-5 py-4",children:[s.jsxs("div",{children:[s.jsx(vJ,{className:"font-heading text-lg font-semibold text-admin-text",children:b?"Edit category":"Add category"}),s.jsx(wJ,{className:"mt-1 text-sm text-admin-muted",children:b?"Update how this category appears to writers and readers.":"Create a topic writers can assign when they publish."})]}),s.jsx("button",{type:"button",className:yy,onClick:fe,disabled:$,"aria-label":"Close",children:s.jsx(cs,{size:16,"aria-hidden":"true"})})]}),s.jsxs("div",{className:"flex-1 space-y-4 overflow-y-auto px-5 py-4",children:[s.jsx(Xt,{id:"category-name",label:"Category name",error:V??void 0,children:s.jsx("input",{id:"category-name",className:Vt,value:v.name,onChange:ne=>{const Se=ne.target.value;N($e=>({...$e,name:Se,slug:S?$e.slug:w9(Se)}))},autoComplete:"off",required:!0,"aria-invalid":!!V,"aria-describedby":V?"category-name-error":void 0})}),s.jsx(Xt,{id:"category-slug",label:"URL slug",error:U??void 0,hint:Z?`News filter: /blog-news/?category=${Z}`:void 0,children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("span",{className:"text-sm text-admin-muted",children:"/"}),s.jsx("input",{id:"category-slug",className:Vt,value:S?v.slug:K,onChange:ne=>{j(!0),N(Se=>({...Se,slug:ne.target.value}))},autoComplete:"off","aria-invalid":!!U,"aria-describedby":U?"category-slug-error":void 0})]})}),s.jsx(Xt,{id:"category-description",label:"Description",aside:s.jsxs("span",{className:"text-xs tabular-nums text-admin-muted",children:[Le,"/",mV]}),children:s.jsx("textarea",{id:"category-description",className:`${Vt} min-h-[120px] resize-y py-2`,value:v.description,maxLength:mV,placeholder:"Briefly explain what kinds of articles belong in this category.",onChange:ne=>N(Se=>({...Se,description:ne.target.value})),rows:4})}),b?s.jsxs(s.Fragment,{children:[s.jsxs("fieldset",{children:[s.jsx("legend",{className:"mb-1.5 text-sm font-medium text-admin-text",children:"Status"}),s.jsx("div",{className:"inline-flex rounded-[10px] border border-admin-border bg-[#F5F7F8] p-0.5",children:[[!0,"Active"],[!1,"Inactive"]].map(([ne,Se])=>s.jsx("button",{type:"button",className:Fe("min-h-10 rounded-[8px] px-3 text-sm font-semibold",v.isActive===ne?"bg-hba-blue-1 text-white":"text-hba-blue-1 hover:bg-white"),"aria-pressed":v.isActive===ne,onClick:()=>N($e=>({...$e,isActive:ne})),children:Se},Se))})]}),Ke?s.jsxs("p",{className:"text-xs text-admin-muted",children:["Display order ",String(Ke).padStart(2,"0")," of ",t.length,". Drag rows in the list to change this."]}):null]}):null]}),s.jsxs("div",{className:"flex items-center justify-end gap-2 border-t border-admin-border px-5 py-4",children:[s.jsx("button",{type:"button",className:Et,onClick:fe,disabled:$,children:"Cancel"}),s.jsx("button",{type:"button",className:rr,onClick:()=>void Oe(),disabled:$||Y,children:$?s.jsxs(s.Fragment,{children:[s.jsx(pt,{className:"animate-spin",size:16,"aria-hidden":"true"}),"Savingâ¦"]}):b?"Save changes":"Add category"})]})]})})]})}function xV({term:t,index:e,total:r,canReorder:n,busy:a,onEdit:i,onMove:o,onToggle:l}){const c=t.is_active??!0;return s.jsxs("div",{className:"flex items-center justify-end gap-1",children:[s.jsx("button",{type:"button",className:yy,onClick:i,disabled:a,"aria-label":`Edit ${t.name}`,title:"Edit category",children:s.jsx(hf,{size:16,"aria-hidden":"true"})}),s.jsxs($v,{children:[s.jsx(_v,{asChild:!0,children:s.jsx("button",{type:"button",className:yy,disabled:a,"aria-label":`More actions for ${t.name}`,title:"More actions",children:a?s.jsx(pt,{size:16,className:"animate-spin","aria-hidden":"true"}):s.jsx(nS,{size:16,"aria-hidden":"true"})})}),s.jsxs(Av,{align:"end",className:"w-48 rounded-admin",children:[s.jsx(Za,{className:"min-h-10",onSelect:i,children:"Edit c
1406ategory"}),s.jsx(Za,{className:"min-h-10",disabled:!n||e<=0,onSelect:()=>o(t.id,"up"),children:"Move up"}),s.jsx(Za,{className:"min-h-10",disabled:!n||e===r-1,onSelect:()=>o(t.id,"down"),children:"Move down"}),s.jsx(Ev,{}),s.jsx(Za,{className:"min-h-10",onSelect:l,children:c?"Deactivate":"Reactivate"})]})]})]})}const yV=20;function XGe(t){return{owns:{text:"Owns this URL",tone:"active"},shadowed:{text:t.slugOwnerSourceType==="article"?"URL owned by a new article":"URL owned by a legacy article",tone:"pending"},unregistered:{text:"Not in slug registry",tone:"inactive"}}[t.slugOwnership]}function JGe(t){return t==="legacy"?"Legacy":"New"}function QGe(){const[t,e]=w.useState([]),[r,n]=w.useState(0),[a,i]=w.useState(1),[o,l]=w.useState(!0),[c,u]=w.useState({total:0,active:0,inactive:0,legacy:0,article:0}),[d,h]=w.useState(""),[m,g]=w.useState(""),[b,y]=w.useState("all"),[v,N]=w.useState("all"),[S,j]=w.useState(null),[$,C]=w.useState(null),[_,O]=w.useState(null),[E,P]=w.useState(""),[T,I]=w.useState(!1),[R,F]=w.useState(null),[L,q]=w.useState(null);w.useEffect(()=>{const U=window.setTimeout(()=>{g(d.trim()),i(1)},350);return()=>window.clearTimeout(U)},[d]);const G=w.useCallback(async()=>{l(!0);try{const U=await uLe({search:m,sourceType:b,isActive:v,page:a,limit:yV});e(U.items),n(U.total),u(U.stats)}catch(U){const Y=U instanceof At?U.message:"Could not load the article catalog.";te.error(Y),e([]),n(0)}finally{l(!1)}},[v,a,m,b]);w.useEffect(()=>{G()},[G]);const B=Math.max(1,Math.ceil(r/yV)),H=async(U,Y)=>{const de=`${U.sourceType}:${U.sourceId}`;j(de);try{const{item:ge}=await dLe({sourceType:U.sourceType,sourceId:U.sourceId,isActive:Y});e(fe=>{const Oe=fe.map(Ce=>Ce.sourceType===ge.sourceType&&Ce.sourceId===ge.sourceId?ge:Ce);return v==="true"&&!Y||v==="false"&&Y?Oe.filter(Ce=>!(Ce.sourceType===ge.sourceType&&Ce.sourceId===ge.sourceId)):Oe}),(v==="true"&&!Y||v==="false"&&Y)&&n(fe=>Math.max(0,fe-1)),u(fe=>({...fe,active:fe.active+(Y?1:-1),inactive:fe.inactive+(Y?-1:1)})),te.success(Y?"Article is active on the public site.":"Article hidden from the public site.")}catch(ge){te.error(ge instanceof At?ge.message:"Could not update visibility.")}finally{j(null),C(null)}};w.useEffect(()=>{if(!_){q(null),F(null);return}const U=E.trim();if(!U||U.toLowerCase()===_.slug.toLowerCase()){q(!0),F(null);return}let Y=!1;q(null);const de=window.setTimeout(()=>{yZ(U,{articleId:_.sourceType==="article"?_.articleId??void 0:void 0,legacyPostId:_.sourceType==="legacy"?_.legacyPostId??void 0:void 0}).then(ge=>{var fe;Y||(q(ge.available),F(ge.available?null:[ge.reason,(fe=ge.owner)!=null&&fe.label?`Used by: ${ge.owner.label}`:null].filter(Boolean).join(" ")))}).catch(()=>{Y||q(null)})},400);return()=>{Y=!0,window.clearTimeout(de)}},[_,E]);const K=async()=>{if(_){I(!0);try{const{item:U}=await hLe({sourceType:_.sourceType,sourceId:_.sourceId,slug:E});e(Y=>Y.map(de=>de.sourceType===U.sourceType&&de.sourceId===U.sourceId?U:de)),te.success(`URL is now /${U.slug}/`),O(null)}catch(U){F(U instanceof At?U.message:"Could not change that slug.")}finally{I(!1)}}},Z=w.useMemo(()=>[{id:"all",label:"All sources"},{id:"legacy",label:"Legacy"},{id:"article",label:"New"}],[]),V=w.useMemo(()=>[{id:"all",label:"All"},{id:"true",label:"Active"},{id:"false",label:"Inactive"}],[]);return s.jsxs("div",{className:"space-y-6",children:[s.jsx(Wn,{eyebrow:"Content",title:"Article URLs & visibility",description:"Turn articles on or off for the public site without changing editorial status. Change a slug here to move the live URL. Only one article can own a URL at a time."}),s.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-5",children:[s.jsx(Vl,{label:"All articles",value:c.total,icon:Gi}),s.jsx(Vl,{label:"Active",value:c.active,tone:"success"}),s.jsx(Vl,{label:"Inactive",value:c.inactive,tone:"muted"}),s.jsx(Vl,{label:"Legacy",value:c.legacy}),s.jsx(Vl,{label:"New",value:c.article,tone:"action"})]}),s.jsxs(nIe,{children:[s.jsx(qQ,{className:"sm:min-w-[16rem] sm:flex-1",placeholder:"Search title, slug, or author",value:d,onChange:U=>h(U.target.value)}),s.jsx("div",{className:"flex flex-wrap gap-2",children:Z.map(U=>s.jsx("button",{type:"button",onClick:()=>{y(U.id),i(1)},className:b===U.id?rr:Et,children:U.label},U.id))}),s.jsx("div",{className:"flex flex-wrap gap-2",children:V.map(U=>s.jsx("button",{type:"button",onClick:()=>{N(U.id),i(1)},className:v===U.id?rr:Et,children:U.label},U.id))})]}),o?s.jsxs("div",{className:`${jn} flex items-center justify-center gap-2 py-16 text-sm text-admin-muted`,children:[s.jsx(pt,{size:16,className:"animate-spin"}),"Loading articlesâ¦"]}):t.length===0?s.jsx(Mo,{title:"No articles match these filters",description:"Try a different search, or show both active and inactive records.",icon:Gi}):s.jsxs("div",{className:`${jn} overflow-hidden`,children:[s.jsx("ul",{className:"divide-y divide-admin-border",children:t.map(U=>{const Y=`${U.sourceType}:${U.sourceId}`,de=XGe(U),ge=S===Y;return s.jsxs("li",{className:"flex flex-col gap-3 px-4 py-4 sm:flex-row sm:items-start sm:justify-between",children:[s.jsxs("div",{className:"min-w-0 space-y-1.5",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsx("p",{className:"font-heading text-base font-semibold text-admin-text",children:U.title}),s.jsx(ih,{tone:U.sourceType==="legacy"?"info":"approved",children:JGe(U.sourceType)}),s.jsx(ih,{tone:U.isActive?"active":"inactive",children:U.isActive?"Active":"Inactive"}),U.sourceType==="article"?s.jsx(ih,{tone:U.status==="published"?"published":"draft",children:U.status.replace("_"," ")}):null]}),s.jsxs("p",{className:"font-mono text-sm text-hba-blue-1",children:["/",U.slug,"/"]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs text-admin-muted",children:[s.jsx(ih,{tone:de.tone,children:de.text}),U.authorName?s.jsx("span",{children:U.authorName}):null,s.jsx("span",{children:Pf(U.displayDate)})]})]}),s.jsxs("div",{className:"flex shrink-0 flex-wrap gap-2",children:[s.jsxs("button",{type:"button",className:Et,disabled:ge,onClick:()=>{O(U),P(U.slug),F(null)},children:[s.jsx(hf,{size:14}),"Edit slug"]}
1406),s.jsxs("button",{type:"button",className:Et,disabled:ge,onClick:()=>{U.isActive?C(U):H(U,!0)},children:[ge?s.jsx(pt,{size:14,className:"animate-spin"}):s.jsx(lx,{size:14}),U.isActive?"Deactivate":"Activate"]})]})]},Y)})}),s.jsx(WQ,{page:a,totalPages:B,onPageChange:i,disabled:o,label:"Article catalog pages"})]}),s.jsx(Tv,{open:!!$,onOpenChange:U=>{U||C(null)},title:"Hide this article from the public site?",description:$?s.jsxs(s.Fragment,{children:[s.jsxs("code",{children:["/",$.slug,"/"]})," will 404 for visitors and drop out of the sitemap. The slug stays reserved so another article cannot take it. Editorial status is unchanged."]}):"",confirmLabel:"Deactivate",destructive:!0,onConfirm:()=>{$&&H($,!1)}}),s.jsx(Hs,{open:!!_,title:"Change URL slug",description:"This changes the public address. The previous slug will stop working unless you add a redirect later.",onClose:()=>{T||O(null)},footer:s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",className:Et,disabled:T,onClick:()=>O(null),children:"Cancel"}),s.jsxs("button",{type:"button",className:rr,disabled:T||L===!1,onClick:()=>void K(),children:[T?s.jsx(pt,{size:14,className:"animate-spin"}):s.jsx(gU,{size:14}),"Save slug"]})]}),children:s.jsx(Xt,{id:"catalog-slug",label:"URL slug",error:R??void 0,children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("span",{className:"text-sm text-admin-muted",children:"/"}),s.jsx("input",{id:"catalog-slug",className:Vt,value:E,onChange:U=>P(U.target.value),disabled:T})]})})})]})}const qte="hba_admin_sidebar_collapsed";function ZGe(){try{return localStorage.getItem(qte)==="1"}catch{return!1}}const eKe=()=>{const t=$r(),e=qn(),[r,n]=w.useState(()=>fF(t.pathname)),[a,i]=w.useState(ZGe),o=zGe(),l=VGe(),c=l,u=BGe();w.useEffect(()=>{n(fF(t.pathname))},[t.pathname]),w.useEffect(()=>{try{localStorage.setItem(qte,a?"1":"0")}catch{}},[a]),w.useEffect(()=>{r==="plans"&&!o&&(n("analytics"),e("/admin",{replace:!0})),(r==="sobs"||r==="sob-audit")&&!l&&(n("analytics"),e("/admin",{replace:!0})),r==="homepage-images"&&!c&&(n("analytics"),e("/admin",{replace:!0})),(r==="article-authors"||r==="article-categories"||r==="article-catalog")&&!l&&(n("analytics"),e("/admin",{replace:!0})),r==="article-review"&&!u&&(n("authoring"),e("/admin/authoring",{replace:!0}))},[r,c,l,u,e,o]);const d=w.useMemo(()=>ERe({isSuperAdmin:o,canManageSobs:l,canManageHomepageImages:c,canReview:u}),[c,l,u,o]),h=b=>{n(b),e(_Re[b])},m=async()=>{await Ht.auth.signOut(),localStorage.removeItem("hba_access_token"),localStorage.removeItem("hba_user"),te.success("Logged out successfully!"),e("/login")},g=()=>{switch(r){case"analytics":return s.jsx(wo,{});case"submissions":return s.jsx(IDe,{});case"authoring":return s.jsx(pV,{});case"article-review":return u?s.jsx(UGe,{}):s.jsx(pV,{});case"article-authors":return l?s.jsx(GGe,{}):s.jsx(wo,{});case"article-categories":return l?s.jsx(YGe,{}):s.jsx(wo,{});case"article-catalog":return l?s.jsx(QGe,{}):s.jsx(wo,{});case"articles-validation":return s.jsx(pDe,{});case"youtube":return s.jsx(DIe,{});case"photos":return s.jsx(zIe,{});case"homepage-images":return c?s.jsx(PDe,{}):s.jsx(wo,{});case"file-library":return s.jsx(fDe,{});case"sobs":return l?s.jsx(_De,{}):s.jsx(wo,{});case"sob-audit":return l?s.jsx(MDe,{}):s.jsx(wo,{});case"reviews":return s.jsx(XIe,{});case"plans":return o?s.jsx(UIe,{}):s.jsx(wo,{});case"employees":return s.jsx(WIe,{});case"users":return s.jsx(GIe,{});case"security":return s.jsx(RDe,{});default:return s.jsx(wo,{})}};return s.jsx(tIe,{groups:d,activeTab:r,collapsed:a,onToggleCollapsed:()=>i(b=>!b),onNavigate:h,onLogout:()=>void m(),displayName:Ute(),roleLabel:HGe(),email:Vte(),initials:FGe(),children:g()})},N9=()=>{var m;const t=qn(),r=((m=$r().state)==null?void 0:m.from)??"/admin",[n,a]=w.useState(""),[i,o]=w.useState(""),[l,c]=w.useState(!1),[u,d]=w.useState(!1);w.useEffect(()=>{localStorage.getItem("hba_access_token")&&t(r,{replace:!0})},[t,r]);const h=async g=>{g.preventDefault(),d(!0);try{const{data:b,error:y}=await Ht.auth.signInWithPassword({email:n,password:i});if(y){te.error("Login failed: "+y.message),d(!1);return}if(b.session){const v=await Ht.auth.mfa.getAuthenticatorAssuranceLevel();if(!v.error&&v.data.nextLevel==="aal2"&&v.data.currentLevel!==v.data.nextLevel){localStorage.removeItem("hba_access_token"),localStorage.removeItem("hba_user"),t("/mfa",{state:{from:r},replace:!0});return}localStorage.setItem("hba_access_token",b.session.access_token),localStorage.setItem("hba_user",JSON.stringify(b.user)),te.success("Welcome back!"),t(r,{replace:!0})}}catch(b){te.error("An unexpected error occurred"),console.error("Login error:",b)}finally{d(!1)}};return s.jsxs("div",{className:"min-h-screen flex",children:[s.jsxs("div",{className:"hidden lg:flex lg:w-1/2 relative",children:[s.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:"url('https://images.unsplash.com/photo-1754951846610-8c172efb78c8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxyZW5vJTIwbmV2YWRhJTIwc3Vuc2V0JTIwc2llcnJhJTIwbW91bnRhaW5zfGVufDF8fHx8MTc3MTg5MzEzMXww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral')"},children:s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-black/60 via-black/40 to-black/60"})}),s.jsx("div",{className:"absolute top-8 left-8 z-10",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-12 h-12 bg-white rounded-lg flex items-center justify-center",children:s.jsx("span",{className:"text-2xl font-black text-hba-blue-1",children:"H"})}),s.jsxs("div",{className:"text-white",children:[s.jsx("div",{className:"font-black text-xl tracking-tight",children:"HBA"}),s.jsx("div",{className:"text-xs opacity-90",children:"Health Benefits Associates"})]})]})}),s.jsxs("div",{className:"absolute bottom-12 left-8 right-8 z-10 text-white",children:[s.jsxs("h2",{className:"text-4xl font-black mb-4 leading-tight",children:["Your Nevada Health",s.jsx("br",{}),"Insurance Experts"]}
1406),s.jsx("p",{className:"text-lg opacity-90 max-w-md",children:"Serving families and businesses across the Silver State with trusted, personalized insurance solutions."})]})]}),s.jsx("div",{className:"flex-1 flex items-center justify-center bg-white px-6 py-12",children:s.jsxs("div",{className:"w-full max-w-md",children:[s.jsx("div",{className:"lg:hidden mb-8 text-center",children:s.jsxs("div",{className:"inline-flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-12 h-12 bg-hba-blue-1 rounded-lg flex items-center justify-center",children:s.jsx("span",{className:"text-2xl font-black text-white",children:"H"})}),s.jsxs("div",{className:"text-left",children:[s.jsx("div",{className:"font-black text-xl tracking-tight text-hba-blue-1",children:"HBA"}),s.jsx("div",{className:"text-xs text-hba-grey-1",children:"Health Benefits Associates"})]})]})}),s.jsxs("div",{className:"mb-8",children:[s.jsx("h1",{className:"text-3xl font-bold text-hba-blue-1 mb-2",children:"Welcome Back"}),s.jsx("p",{className:"text-hba-grey-1",children:"Please sign in to your account."})]}),s.jsxs("form",{onSubmit:h,className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-hba-blue-1 mb-2",children:"Email Address"}),s.jsx("input",{id:"email",type:"email",value:n,onChange:g=>a(g.target.value),required:!0,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent outline-none transition-all",placeholder:"[email protected]"})]}),s.jsxs("div",{children:[s.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-hba-blue-1 mb-2",children:"Password"}),s.jsxs("div",{className:"relative",children:[s.jsx("input",{id:"password",type:l?"text":"password",value:i,onChange:g=>o(g.target.value),required:!0,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent outline-none transition-all pr-12",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"}),s.jsx("button",{type:"button",onClick:()=>c(!l),className:"absolute right-3 top-1/2 -translate-y-1/2 text-hba-grey-1 hover:text-hba-blue-1",children:l?s.jsx(aS,{size:20}):s.jsx(uc,{size:20})})]})]}),s.jsx("div",{className:"flex justify-end",children:s.jsx("button",{type:"button",onClick:()=>t("/forgot-password"),className:"text-sm text-hba-orange-1 hover:text-hba-orange-2 font-medium",children:"Forgot Password?"})}),s.jsx("button",{type:"submit",disabled:u,className:"w-full bg-hba-orange-1 hover:bg-hba-orange-2 text-white font-bold py-3 px-6 rounded-lg transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed",children:u?"Signing in...":"Login"})]})]})})]})},j9=()=>{const t=qn(),[e,r]=w.useState(""),[n,a]=w.useState(""),[i,o]=w.useState(!1),[l,c]=w.useState(!1),[u,d]=w.useState(!0);w.useEffect(()=>{let m=!1,g=!1;const b=(N,S)=>{if(!(m||g)){if(N){g=!0,d(!1);return}S&&(g=!0,d(!1),te.error("Invalid or expired invite link. Please request a new invite."),t("/login",{replace:!0}))}};Ht.auth.getSession().then(({data:{session:N}})=>b(N,!1));const{data:{subscription:y}}=Ht.auth.onAuthStateChange((N,S)=>{S&&b(S,!1)}),v=window.setTimeout(()=>{Ht.auth.getSession().then(({data:{session:N}})=>b(N,!0))},2500);return()=>{m=!0,y.unsubscribe(),window.clearTimeout(v)}},[t]);const h=async m=>{if(m.preventDefault(),e.length<6){te.error("Password must be at least 6 characters");return}if(e!==n){te.error("Passwords do not match");return}c(!0);try{const{error:g}=await Ht.auth.updateUser({password:e});if(g){te.error(g.message),c(!1);return}const{data:{session:b}}=await Ht.auth.getSession();b&&(localStorage.setItem("hba_access_token",b.access_token),localStorage.setItem("hba_user",JSON.stringify(b.user)),te.success("Password set successfully!"),t("/admin",{replace:!0}))}catch(g){te.error("Failed to set password"),console.error(g)}finally{c(!1)}};return u?s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"inline-block w-8 h-8 border-2 border-hba-orange-1 border-t-transparent roun
1406ded-full animate-spin mb-4"}),s.jsx("p",{className:"text-hba-grey-1",children:"Verifying your invite..."})]})}):s.jsxs("div",{className:"min-h-screen flex",children:[s.jsx("div",{className:"hidden lg:flex lg:w-1/2 relative bg-hba-blue-1 items-center justify-center",children:s.jsxs("div",{className:"text-center text-white p-8",children:[s.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-lg flex items-center justify-center mx-auto mb-6",children:s.jsx("span",{className:"text-3xl font-black text-white",children:"H"})}),s.jsx("h2",{className:"text-2xl font-bold mb-2",children:"HBA Admin Portal"}),s.jsx("p",{className:"text-white/90",children:"Set your password to get started"})]})}),s.jsx("div",{className:"flex-1 flex items-center justify-center bg-white px-6 py-12",children:s.jsxs("div",{className:"w-full max-w-md",children:[s.jsxs("div",{className:"lg:hidden mb-8 text-center",children:[s.jsx("div",{className:"w-12 h-12 bg-hba-blue-1 rounded-lg flex items-center justify-center mx-auto mb-4",children:s.jsx("span",{className:"text-2xl font-black text-white",children:"H"})}),s.jsx("h1",{className:"text-xl font-bold text-hba-blue-1",children:"HBA Admin"})]}),s.jsx("h1",{className:"text-2xl font-bold text-hba-blue-1 mb-2",children:"Set Your Password"}),s.jsx("p",{className:"text-hba-grey-1 mb-6",children:"Create a password for your account. Use at least 6 characters."}),s.jsxs("form",{onSubmit:h,className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-hba-blue-1 mb-2",children:"New Password *"}),s.jsxs("div",{className:"relative",children:[s.jsx("input",{id:"password",type:i?"text":"password",value:e,onChange:m=>r(m.target.value),required:!0,minLength:6,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent outline-none pr-12",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"}),s.jsx("button",{type:"button",onClick:()=>o(!i),className:"absolute right-3 top-1/2 -translate-y-1/2 text-hba-grey-1 hover:text-hba-blue-1",children:i?s.jsx(aS,{size:20}):s.jsx(uc,{size:20})})]})]}),s.jsxs("div",{children:[s.jsx("label",{htmlFor:"confirm",className:"block text-sm font-medium text-hba-blue-1 mb-2",children:"Confirm Password *"}),s.jsx("input",{id:"confirm",type:"password",value:n,onChange:m=>a(m.target.value),required:!0,minLength:6,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent outline-none",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),s.jsx("button",{type:"submit",disabled:l,className:"w-full bg-hba-orange-1 hover:bg-hba-orange-2 text-white font-bold py-3 px-6 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:l?"Setting password...":"Set Password & Continue"})]})]})})]})},k9=()=>{const t=qn(),[e,r]=w.useState(""),[n,a]=w.useState(!1),[i,o]=w.useState(!1),l=async c=>{c.preventDefault(),a(!0);try{const{error:u}=await Ht.auth.resetPasswordForEmail(e,{redirectTo:`${window.location.origin}/reset-password`});if(u){te.error(u.message);return}o(!0),te.success("Password reset email sent")}catch(u){console.error("Password reset request failed:",u),te.error("Failed to send reset email")}finally{a(!1)}};return s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 px-6 py-12",children:s.jsxs("div",{className:"w-full max-w-md bg-white border border-gray-200 rounded-lg p-8 shadow-sm",children:[s.jsxs("button",{type:"button",onClick:()=>t("/login"),className:"inline-flex items-center gap-2 text-sm text-hba-grey-1 hover:text-hba-blue-1 font-medium mb-8",children:[s.jsx(Wo,{size:16}),"Back to login"]}),s.jsx("div",{className:"w-12 h-12 bg-hba-blue-1 rounded-lg flex items-center justify-center text-white mb-6",children:s.jsx(Na,{size:24})}),s.jsx("h1",{className:"text-2xl font-bold text-hba-blue-1 mb-2",children:"Reset Password"}),s.jsx("p",{className:"text-hba-grey-1 mb-6",children:"Enter your admin email address and we will send a secure password reset link."}),i?s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"p-4 bg-green-50 border border-green-200 rounded-lg",children:s.jsxs("p",{className:"text-sm text-green-800",children:["If an account exists for ",e,", a password reset link has been sent."]})}),s.jsx("button",{type:"button",onClick:()=>
1406t("/login"),className:"w-full bg-hba-orange-1 hover:bg-hba-orange-2 text-white font-bold py-3 px-6 rounded-lg transition-colors",children:"Return to Login"})]}):s.jsxs("form",{onSubmit:l,className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{htmlFor:"reset-email",className:"block text-sm font-medium text-hba-blue-1 mb-2",children:"Email Address"}),s.jsx("input",{id:"reset-email",type:"email",value:e,onChange:c=>r(c.target.value),required:!0,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent outline-none transition-all",placeholder:"[email protected]"})]}),s.jsx("button",{type:"submit",disabled:n,className:"w-full bg-hba-orange-1 hover:bg-hba-orange-2 text-white font-bold py-3 px-6 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:n?"Sending...":"Send Reset Link"})]})]})})},S9=()=>{const t=qn(),[e,r]=w.useState(""),[n,a]=w.useState(""),[i,o]=w.useState(!1),[l,c]=w.useState(!1),[u,d]=w.useState(!0);w.useEffect(()=>{Ht.auth.getSession().then(({data:{session:m}})=>{d(!1),m||(te.error("Invalid or expired reset link. Please request a new password reset."),t("/forgot-password",{replace:!0}))})},[t]);const h=async m=>{if(m.preventDefault(),e.length<6){te.error("Password must be at least 6 characters");return}if(e!==n){te.error("Passwords do not match");return}c(!0);try{const{error:g}=await Ht.auth.updateUser({password:e});if(g){te.error(g.message);return}const{data:{session:b}}=await Ht.auth.getSession();b&&(localStorage.setItem("hba_access_token",b.access_token),localStorage.setItem("hba_user",JSON.stringify(b.user))),te.success("Password reset successfully"),t("/admin",{replace:!0})}catch(g){console.error("Password reset failed:",g),te.error("Failed to reset password")}finally{c(!1)}};return u?s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"inline-block w-8 h-8 border-2 border-hba-orange-1 border-t-transparent rounded-full animate-spin mb-4"}),s.jsx("p",{className:"text-hba-grey-1",children:"Verifying reset link..."})]})}):s.jsxs("div",{className:"min-h-screen flex",children:[s.jsx("div",{className:"hidden lg:flex lg:w-1/2 relative bg-hba-blue-1 items-center justify-center",children:s.jsxs("div",{className:"text-center text-white p-8",children:[s.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-lg flex items-center justify-center mx-auto mb-6",children:s.jsx("span",{className:"text-3xl font-black text-white",children:"H"})}),s.jsx("h2",{className:"text-2xl font-bold mb-2",children:"HBA Admin Portal"}),s.jsx("p",{className:"text-white/90",children:"Create a new password for your account"})]})}),s.jsx("div",{className:"flex-1 flex items-center justify-center bg-white px-6 py-12",children:s.jsxs("div",{className:"w-full max-w-md",children:[s.jsxs("div",{className:"lg:hidden mb-8 text-center",children:[s.jsx("div",{className:"w-12 h-12 bg-hba-blue-1 rounded-lg flex items-center justify-center mx-auto mb-4",children:s.jsx("span",{className:"text-2xl font-black text-white",children:"H"})}),s.jsx("h1",{className:"text-xl font-bold text-hba-blue-1",children:"HBA Admin"})]}),s.jsx("h1",{className:"text-2xl font-bold text-hba-blue-1 mb-2",children:"Choose a New Password"}),s.jsx("p",{className:"text-hba-grey-1 mb-6",children:"Use at least 6 characters. You will be signed in after the password is updated."}),s.jsxs("form",{onSubmit:h,className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{htmlFor:"new-password",className:"block text-sm font-medium text-hba-blue-1 mb-2",children:"New Password"}),s.jsxs("div",{className:"relative",children:[s.jsx("input",{id:"new-password",type:i?"text":"password",value:e,onChange:m=>r(m.target.value),required:!0,minLength:6,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent outline-none pr-12",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"}),s.jsx("button",{type:"button",onClick:()=>o(!i),className:"absolute right-3 top-1/2 -translate-y-1/2 text-hba-grey-1 hover:text-hba-blue-1",children:i?s.jsx(aS,{size:20}):s.jsx(uc,{size:20})})]})]}),s.jsxs("div",{children:[s.jsx("label",{htmlFor:"confirm-password",className:"block text-sm font-medium text-hba-blue-1 mb-2",children:"Confirm Password"}),s.jsx("input",{id:"confirm-password",type:"password",value:n,onChange:m=>a(m.target.value),required:!0,minLength:6,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent outline-none",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),s.jsx("button",{type:"submit",disabled:l,className:"w-full bg-hba-orange-1 hover:bg-hba-orange-2 text-white font-bold py-3 px-6 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:l?"Updating password...":"Update Password"})]})]})})]})},C9=()=>{var m;const t=qn(),r=((m=$r().state)==null?void 0:m.from)??"/admin",[n,a]=w.useState(""),[i,o]=w.useState(null),[l,c]=w.useState(!1),[u,d]=w.useState(!0);w.useEffect(()=>{let g=!0;return(async()=>{const{data:{session:y}}=await Ht.auth.getSession();if(!y){t("/login",{replace:!0});return}const{data:v,error:N}=await Ht.auth.mfa.listFactors();if(!g)return;if(N){te.error(N.message),t("/login",{replace:!0});return}const S=v.totp[0];if(!S){localStorage.setItem("hba_access_token",y.access_token),localStorage.setItem("hba_user",JSON.stringify(y.user)),t(r,{replace:!0});return}o(S.id),d(!1)})(),()=>{g=!1}},[r,t]);const h=async g=>{if(g.preventDefault(),!!i){c(!0);try{const b=await Ht.auth.mfa.challenge({factorId:i});if(b.error){te.error(b.error.message);return}const y=await Ht.auth.mfa.verify({factorId:i,challengeId:b.data.id,code:n});if(y.error){te.error(y.error.message);return}localStorage.setItem("hba_access_token",y.data.access_token),localStorage.setItem("hba_user",JSON.stringify(y.data.user)),te.success("Verification complete"),t(r,{replace:!0})}catch(b){console.error("MFA verification failed:",b),te.error("Failed to verify code")}finally{c(!1)}}};return u?s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"inline-block w-8 h-8 border-2 border-hba-orange-1 border-t-transparent roun
1406ded-full animate-spin mb-4"}),s.jsx("p",{className:"text-hba-grey-1",children:"Checking security settings..."})]})}):s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 px-6 py-12",children:s.jsxs("div",{className:"w-full max-w-md bg-white border border-gray-200 rounded-lg p-8 shadow-sm",children:[s.jsx("div",{className:"w-12 h-12 bg-hba-blue-1 rounded-lg flex items-center justify-center text-white mb-6",children:s.jsx(Rr,{size:24})}),s.jsx("h1",{className:"text-2xl font-bold text-hba-blue-1 mb-2",children:"Two-Factor Verification"}),s.jsx("p",{className:"text-hba-grey-1 mb-6",children:"Enter the 6-digit code from your authenticator app to continue."}),s.jsxs("form",{onSubmit:h,className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{htmlFor:"mfa-code",className:"block text-sm font-medium text-hba-blue-1 mb-2",children:"Authenticator Code"}),s.jsx("input",{id:"mfa-code",type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:n,onChange:g=>a(g.target.value.replace(/\D/g,"").slice(0,6)),required:!0,minLength:6,maxLength:6,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-hba-orange-1 focus:border-transparent outline-none tracking-[0.3em] text-center text-xl font-bold",placeholder:"000000"})]}),s.jsx("button",{type:"submit",disabled:l||n.length!==6,className:"w-full bg-hba-orange-1 hover:bg-hba-orange-2 text-white font-bold py-3 px-6 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:l?"Verifying...":"Verify & Continue"})]})]})})},Pb="hba_access_token";function tKe({children:t}){const e=qn(),r=$r(),[n,a]=w.useState(!0),[i,o]=w.useState(!1);return w.useEffect(()=>{let l=!0;return(async()=>{const u=localStorage.getItem(Pb),{data:{session:d}}=await Ht.auth.getSession();if(!d){if(localStorage.removeItem(Pb),localStorage.removeItem("hba_user"),!l)return;o(!1),e("/login",{state:{from:r.pathname},replace:!0}),a(!1);return}u!==d.access_token&&(localStorage.setItem(Pb,d.access_token),localStorage.setItem("hba_user",JSON.stringify(d.user)));const h=await Ht.auth.mfa.getAuthenticatorAssuranceLevel();if(!h.error&&h.data.nextLevel==="aal2"&&h.data.currentLevel!==h.data.nextLevel){if(localStorage.removeItem(Pb),localStorage.removeItem("hba_user"),!l)return;o(!1),e("/mfa",{state:{from:r.pathname},replace:!0}),a(!1);return}l&&(o(!0),a(!1))})(),()=>{l=!1}},[e,r.pathname]),n?s.jsx("div",{className:"admin-console flex min-h-screen items-center justify-center",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"mb-4 inline-block h-8 w-8 rounded-full border-2 border-admin-action border-t-transparent motion-safe:animate-spin"}),s.jsx("p",{className:"text-sm text-admin-muted",children:"Verifying sessionâ¦"})]})}):i?s.jsx(s.Fragment,{children:t}):null}function rKe(t){return t==="recovery"?"/reset-password":t==="invite"||t==="signup"?"/set-password":null}function Uc(){const t=qn();return w.useEffect(()=>{const e=x5e(),r=new URLSearchParams(window.location.hash.replace(/^#/,"")),n=new URLSearchParams(window.location.search),a=e.type??r.get("type")??n.get("type"),i=e.tokenHash??n.get("token_hash")??r.get("token_hash"),o=rKe(a);if(!o)return;let l=!1;const c=window.location.pathname.replace(/\/+$/,"")||"/",u=h=>{l||!h||(iT(),c!==o&&t(o,{replace:!0}))};i&&(a==="invite"||a==="recovery"||a==="signup")&&Ht.auth.verifyOtp({token_hash:i,type:a}).then(({data:{session:h}})=>u(h)),Ht.auth.getSession().then(({data:{session:h}})=>u(h));const{data:{subscription:d}}=Ht.auth.onAuthStateChange((h,m)=>{if(h==="PASSWORD_RECOVERY"){iT(),c!=="/reset-password"&&t("/reset-password",{replace:!0});return}(h==="SIGNED_IN"||h==="INITIAL_SESSION"||h==="TOKEN_REFRESHED")&&u(m)});return()=>{l=!0,d.unsubscribe()}},[t]),null}const nKe="https://images.unsplash.com/photo-1766067358138-4d307932a7f8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxOZXZhZGElMjBkZXNlcnQlMjBsYW5kc2NhcGUlMjBtb3VudGFpbnMlMjBkcmFtYXRpY3xlbnwxfHx8fDE3NzQ1NTMyNjh8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",aKe="https://images.unsplash.com/photo-1769636929231-3cd7f853d038?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxjb25maWRlbnQlMjBidXNpbmVzcyUyMG1hbiUyMHBvcnRyYWl0JTIwc3R1ZGlvJTIwZGFya3xlbnwxfHx8fDE3NzQ1NTMyNjh8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",vV="RENO ⢠HENDERSON ⢠SPARKS ⢠CARSON CITY ⢠FERNLEY ⢠TRUCKEE ⢠100% FREE GUIDANCE ⢠",sKe=[{icon:is,num:"01",title:"Medicare",description:"Turning 65? Our certified specialists decode Parts A, B, C, D, Supplements & Advantage plans so you don't have to.",href:"/medicare/",align:"ml-0 md:ml-0"},{icon:el,num:"02",title:"Small Business",description:"Attract top talent with competitive group health benefits. We compare every carrier in Nevada to find your best rate.",href:"/small-business-health-coverage-2/",align:"ml-0 md:ml-32 lg:ml-64"},{icon:foe,num:"03",title:"Individual & Family",description:"Self-employed or between jobs? We'll find the right plan and maximize your tax credits and subsidies.",href:"/services/",align:"ml-0 md:ml-12 lg:ml-24"}],iKe=[{name:"Margaret T.",initials:"MT",text:"Alex and his team made Medicare enrollment completely stress-free. Saved me over $200/month!",rotation:"rotate-2"},{name:"David R.",initials:"DR",text:"We were overwhelmed after retirement. HBA walked us through everything step by step. Truly a lifesaver.",rotation:"-rotate-3"},{name:"Robert S.",initials:"RS",text:"As a small business owner in Sparks, HBA found us an amazing group plan in less than a week. Professional and caring.",rotation:"rotate-1"},{name:"Patricia W.",initials:"PW",text:"Five stars isn't enough! The Las Vegas office treated me like family. They even followed up after activation.",rotation:"-rotate-2"},{name:"James F.",initials:"JF",text:"Clients for over 10 years. Every open enrollment they proactively reach out. That kind of service is rare.",rotation:"rotate-3"},{name:"Susan M.",initials:"SM",text:"I was paying way too much. HBA found better coverage at a lower price and a subsidy I didn't know I qualified for.",rotation:"-rotate-1"}],oKe=[{value:"30+",label:"YRS",top:"8%",left:"2%",rotate:"-rotate-6"},{value:"15K+",label:"CLIENTS",top:"5%",right:"4%",rotate:"rotate-3"},{value:"500+",label:"REVIEWS",bottom:"18%",left:"5%",rotate:"rotate-4"},{value:"$0",label:"COST",bottom:"12%",right:"2%",rotate:"-rotate-3"}];function lKe(){const t=w.useRef(null);return s.jsxs("div",{className:"min-h-screen bg-stone-100 overflow-x-hidden",style:{fontFamily:"'Inter', sans-serif"},children:[s.jsxs("div",{className:"bg-orange-500 text-slate-900 font-black text-sm uppercase tracking-widest overflow-hidden whitespace-nowrap select-none",children:[s.jsx("div",{className:"inline-flex animate-[marquee_20s_linear_infinite]",children:[...Array(4)].map((e,r)=>s.jsx("span",{className:"px-2",children:vV},r))}),s.jsx("div",{className:"inline-flex animate-[marquee_20s_linear_infinite]","aria-hidden":!0,
1406children:[...Array(4)].map((e,r)=>s.jsx("span",{className:"px-2",children:vV},r))})]}),s.jsx("style",{children:` 1407 @keyframes marquee { 1408 0% { transform: translateX(0); } 1409 100% { transform: translateX(-50%); } 1410 } 1411 `}),s.jsxs("section",{className:"relative min-h-[90vh] md:min-h-screen flex items-end px-4 sm:px-8 lg:px-16 pb-16 pt-24 md:pt-32 overflow-hidden",children:[s.jsxs("div",{className:"relative z-20 w-full",children:[s.jsxs("h1",{className:"text-[12vw] sm:text-[10vw] md:text-[8.5vw] lg:text-[7.5vw] font-black text-slate-900 leading-[0.88] tracking-tighter uppercase",children:["Navigating",s.jsx("br",{}),s.jsx("span",{className:"text-orange-500",children:"Health"}),s.jsx("br",{}),"Insurance",s.jsx("span",{className:"text-orange-500",children:"."})]}),s.jsxs("p",{className:"mt-6 md:mt-8 text-slate-600 text-lg sm:text-xl max-w-md leading-relaxed font-medium",children:["Nevada's trusted independent brokerage.",s.jsx("br",{className:"hidden sm:block"}),"Zero cost. Zero bias. Every carrier."]}),s.jsxs("div",{className:"mt-6 flex flex-wrap gap-4",children:[s.jsxs("a",{href:"/locations",className:"inline-flex items-center gap-2 bg-slate-900 text-white font-bold text-base px-7 py-4 border-4 border-slate-900 shadow-[6px_6px_0px_0px_#ea580c] hover:shadow-[2px_2px_0px_0px_#ea580c] hover:translate-x-1 hover:translate-y-1 transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-orange-500",children:["Find Your Office ",s.jsx(Xe,{className:"w-5 h-5"})]}),s.jsx("a",{href:"#services",className:"inline-flex items-center gap-2 bg-transparent text-slate-900 font-bold text-base px-7 py-4 border-4 border-slate-900 shadow-[6px_6px_0px_0px_#0f172a] hover:shadow-[2px_2px_0px_0px_#0f172a] hover:translate-x-1 hover:translate-y-1 transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-900",children:"Our Services"})]})]}),s.jsx("div",{className:"absolute top-[10%] right-[-5%] md:right-[2%] w-[60%] sm:w-[50%] md:w-[45%] lg:w-[40%] z-10",children:s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute inset-0 border-4 border-slate-900 translate-x-4 translate-y-4 bg-orange-500/20"}),s.jsx(Dt,{src:nKe,alt:"Dramatic Nevada landscape",className:"relative w-full aspect-[4/5] object-cover border-4 border-slate-900 grayscale-[30%
1411] contrast-[1.1]"})]})}),oKe.map(e=>s.jsxs("div",{className:`hidden md:flex absolute z-30 bg-white border-4 border-slate-900 shadow-[5px_5px_0px_0px_#0f172a] px-4 py-3 flex-col items-center ${e.rotate}`,style:{top:e.top,bottom:e.bottom,left:e.left,right:e.right},children:[s.jsx("span",{className:"text-2xl font-black text-slate-900 leading-none",children:e.value}),s.jsx("span",{className:"text-[10px] font-bold text-orange-500 uppercase tracking-widest mt-1",children:e.label})]},e.label))]}),s.jsxs("section",{id:"services",className:"bg-stone-100 px-4 sm:px-8 lg:px-16 py-20 md:py-28",children:[s.jsxs("div",{className:"mb-16",children:[s.jsx("p",{className:"text-orange-500 font-black text-sm uppercase tracking-[0.3em] mb-3",children:"What We Do"}),s.jsxs("h2",{className:"text-5xl sm:text-6xl md:text-7xl font-black text-slate-900 tracking-tighter leading-[0.9] uppercase",children:["Unbiased",s.jsx("br",{}),"Expert",s.jsx("br",{}),"Guidance",s.jsx("span",{className:"text-orange-500",children:"."})]})]}),s.jsx("div",{className:"space-y-8 md:space-y-12",children:sKe.map(e=>s.jsx("a",{href:e.href,className:`group block max-w-2xl ${e.align} bg-white border-4 border-slate-900 shadow-[8px_8px_0px_0px_#0f172a] hover:shadow-[4px_4px_0px_0px_#0f172a] hover:translate-x-1 hover:translate-y-1 md:hover:-rotate-1 transition-all duration-200 focus:outline-none focus-visible:ring-4 focus-visible:ring-orange-500`,children:s.jsxs("div",{className:"flex flex-col sm:flex-row",children:[s.jsxs("div",{className:"bg-slate-900 text-white p-6 sm:p-8 flex flex-col items-center justify-center sm:min-w-[120px]",children:[s.jsx(e.icon,{className:"w-8 h-8 mb-2 text-orange-400"}),s.jsx("span",{className:"text-3xl font-black",children:e.num})]}),s.jsxs("div",{className:"p-6 sm:p-8 flex-1",children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsx("h3",{className:"text-2xl sm:text-3xl font-black text-slate-900 uppercase tracking-tight",children:e.title}),s.jsx(tU,{className:"w-6 h-6 text-slate-400 group-hover:text-orange-500 group-hover:translate-x-1 group-hover:-translate-y-1 transition-all shrink-0 ml-4"})]}),s.jsx("p",{className:"text-slate-600 text-base leading-relaxed",children:e.description})]})]})},e.title))})]}),s.jsxs("section",{className:"bg-slate-900 py-20 md:py-28",children:[s.jsxs("div",{className:"px-4 sm:px-8 lg:px-16 mb-12",children:[s.jsx("p",{className:"text-orange-400 font-black text-sm uppercase tracking-[0.3em] mb-3",children:"Wall of Love"}),s.jsxs("h2",{className:"text-5xl sm:text-6xl md:text-7xl font-black text-white tracking-tighter leading-[0.9] uppercase",children:["What They",s.jsx("br",{}),"Say",s.jsx("span",{className:"text-orange-500",children:"."})]})]}),s.jsxs("div",{ref:t,className:"flex gap-6 overflow-x-auto px-4 sm:px-8 lg:px-16 pb-4",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:[s.jsx("style",{children:"div::-webkit-scrollbar { display: none; }"}),iKe.map(e=>s.jsxs("div",{className:`shrink-0 w-[300px] sm:w-[340px] bg-amber-50 border-4 border-slate-900 shadow-[6px_6px_0px_0px_#ea580c] p-6 ${e.rotation} hover:rotate-0 transition-transform duration-300`,children:[s.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(5)].map((r,n)=>s.jsx(Un,{className:"w-5 h-5 fill-orange-500 text-orange-500"},n))}),s.jsxs("p",{className:"text-slate-800 text-sm leading-relaxed mb-6 italic font-medium",children:['"',e.text,'"']}),s.jsxs("div",{className:"flex items-center gap-3 border-t-2 border-slate-900/10 pt-4",children:[s.jsx("div",{className:"w-10 h-10 bg-slate-900 text-white flex items-center justify-center font-black text-sm border-2 border-slate-900",children:e.initials}),s.jsx("span",{className:"font-bold text-slate-900 text-sm",children:e.name})]})]},e.name))]})]}),s.jsx("section",{className:"relative bg-stone-100 overflow-hidden",children:s.jsxs("div",{className:"px-4 sm:px-8 lg:px-16 py-20 md:py-28",children:[s.jsx("div",{className:"absolute top-10 left-4 sm:left-8 lg:left-16 text-[30vw] font-black text-slate-900/[0.04] leading-none select-none pointer-events-none","aria-hidden":!0,
1411children:"â"}),s.jsxs("div",{className:"relative z-10 grid md:grid-cols-[1fr_auto] gap-12 items-end",children:[s.jsxs("div",{className:"max-w-2xl",children:[s.jsx("p",{className:"text-orange-500 font-black text-sm uppercase tracking-[0.3em] mb-6",children:"From The Founder"}),s.jsx("h2",{className:"text-4xl sm:text-5xl md:text-6xl font-black text-slate-900 tracking-tighter leading-[0.95] mb-8",children:"As a 4th generation Nevadan, we're here for our community."}),s.jsx("p",{className:"text-slate-600 text-lg leading-relaxed mb-6 max-w-xl",children:"Health insurance shouldn't be confusing or stressful. For over three decades, our family has been helping Nevada families and businesses navigate their options â always free, always unbiased, always with your best interest at heart."}),s.jsx("p",{className:"text-slate-600 text-lg leading-relaxed mb-10 max-w-xl",children:"We believe everyone deserves an advocate who will sit down, listen, and find the right plan. That's what we do."}),s.jsxs("div",{className:"border-t-4 border-slate-900 pt-4 inline-block",children:[s.jsx("p",{className:"font-black text-slate-900 text-xl uppercase tracking-tight",children:"Alex Sampson"}),s.jsx("p",{className:"text-orange-500 font-bold text-sm uppercase tracking-widest",children:"CEO, Health Benefits Associates"})]})]}),s.jsxs("div",{className:"relative w-full md:w-[380px] lg:w-[440px] md:-mr-16 lg:-mr-16 md:-mb-28",children:[s.jsx("div",{className:"absolute inset-0 border-4 border-slate-900 translate-x-4 translate-y-4 bg-orange-500/15 hidden md:block"}),s.jsx(Dt,{src:aKe,alt:"Alex Sampson, CEO",className:"relative w-full aspect-[3/4] object-cover object-top border-4 border-slate-900 grayscale-[20%]"})]})]})]})}),s.jsxs("footer",{className:"bg-slate-900 px-4 sm:px-8 lg:px-16 pt-20 pb-8 overflow-hidden relative",children:[s.jsxs("div",{className:"relative",children:[s.jsxs("h2",{className:"text-[18vw] sm:text-[16vw] md:text-[14vw] font-black text-white/[0.06] uppercase leading-[0.85] tracking-tighter select-none pointer-events-none","aria-hidden":!0,children:["Let's",s.jsx("br",{}),"Talk."]}),s.jsxs("div",{className:"absolute inset-0 flex flex-col justify-center",children:[s.jsx("p",{className:"text-orange-500 font-black text-sm uppercase tracking-[0.3em] mb-6",children:"Get In Touch"}),s.jsxs("h3",{className:"text-4xl sm:text-5xl md:text-6xl font-black text-white tracking-tighter leading-[0.95] uppercase mb-8",children:["Let's Talk",s.jsx("span",{className:"text-orange-500",children:"."})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("a",{href:"tel:7758281216",className:"flex items-center gap-3 text-orange-400 hover:text-orange-300 transition-colors group",children:[s.jsx(Ut,{className:"w-6 h-6"}),s.jsx("span",{className:"text-2xl sm:text-3xl md:text-4xl font-black tracking-tight",children:"(775) 828-1216"})]}),s.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-3 text-orange-400 hover:text-orange-300 transition-colors group",children:[s.jsx(Na,{className:"w-6 h-6"}),s.jsx("span",{className:"text-2xl sm:text-3xl md:text-4xl font-black tracking-tight",children:"[email protected]"})]})]}),s.jsx("div",{className:"mt-10",children:s.jsxs("a",{href:"/reno-health-insurance-broker/",className:"inline-flex items-center gap-3 bg-orange-500 text-slate-900 font-black text-lg px-8 py-4 border-4 border-orange-500 shadow-[6px_6px_0px_0px_#fff] hover:shadow-[2px_2px_0px_0px_#fff] hover:translate-x-1 hover:translate-y-1 transition-all uppercase tracking-wide focus:outline-none focus-visible:ring-2 focus-visible:ring-white",children:["Get Free Guidance ",s.jsx(Xe,{className:"w-5 h-5"})]})})]})]}),s.jsxs("div",{className:"mt-20 pt-6 border-t border-white/10 flex flex-wrap items-center justify-between gap-4 text-sm text-slate-500",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 bg-orange-500 flex items-center justify-center border-2 border-orange-500",children:s.jsx("span",{className:"text-slate-900 font-black text-xs",children:"HBA"})}),s.jsxs("span",{children:["© ",new Date().getFullYear()," Health Benefits Associates"]})]}),s.jsxs("div",{className:"flex gap-6 text-slate-500",children:[s.jsx("a",{href:"/locations",className:"hover:text-white transition-colors font-medium",children:"Locations"}),s.jsx("a",{href:"/our-team/",className:"hover:text-white transition-colors font-medium",children:"Team"}),s.jsx("a",{href:"/blog-news/",className:"hover:text-white transition-colors font-medium",children:"News"}),s.jsx("a",{href:"/faqs/",className:"hover:text-white transition-colors font-medium",children:"FAQs"})]})]})]}),s.jsxs("nav",{className:"fixed bottom-6 left-1/2 -translate-x-1/2 z-50 bg-slate-900/95 backdrop-blur-md border-2 border-slate-700 shadow-[0_4px_30px_rgba(0,0,0,0.4)] px-3 sm:px-5 py-2.5 flex items-center gap-2 sm:gap-4",children:[s.jsx("a",{href:"/home-page-alternate",className:"flex items-center gap-2 pr-2 sm:pr-4 border-r border-slate-700",children:s.jsx("div",{className:"w-7 h-7 bg-orange-500 flex items-center justify-center",children:s.jsx("span",{className:"text-slate-900 font-black text-[10px]",children:"HBA"})})}),s.jsx("div",{className:"hidden sm:flex items-center gap-1",children:["Medicare","Business","Indiv
1411idual"].map(e=>s.jsx("a",{href:`/${e==="Business"?"small-business":e.toLowerCase()}`,className:"text-slate-300 hover:text-white text-xs font-bold uppercase tracking-wider px-2.5 py-1.5 hover:bg-white/10 transition-colors focus:outline-none focus-visible:ring-1 focus-visible:ring-orange-500",children:e},e))}),s.jsxs("a",{href:"/reno-health-insurance-broker/",className:"bg-orange-500 hover:bg-orange-600 text-slate-900 font-black text-xs uppercase tracking-wider px-4 py-2 transition-colors flex items-center gap-1.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-white",children:["Let's Talk ",s.jsx(Vn,{className:"w-3.5 h-3.5"})]})]})]})}const wV="https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/team/cj-weaver/d91af7d7-b679-4018-94aa-679359cda19f.png",cKe="https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/team/alex-sampson/7580bc31-0a01-4103-8893-60bb6bdc4dd0.webp",NV="https://images.unsplash.com/photo-1763630837260-6f82f1ca9206?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxzZW5pb3IlMjBjb3VwbGUlMjByZWxheGVkJTIwaGFwcHklMjBwYXJrJTIwd2Fsa2luZ3xlbnwxfHx8fDE3NzQ1NTUzMzV8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",uKe="https://images.unsplash.com/photo-1772178957184-abed6cd73f68?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxmYW1pbHklMjBtdWx0aXBsZSUyMGdlbmVyYXRpb25zJTIwaGFwcHklMjBvdXRkb29yc3xlbnwxfHx8fDE3NzQ1NTUzMjd8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",dKe="https://images.unsplash.com/photo-1687422808278-d17b09489ed1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxzbWFsbCUyMGJ1c2luZXNzJTIwb3duZXIlMjBzbWlsaW5nJTIwc2hvcHxlbnwxfHx8fDE3NzQ1NTUzMzV8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",hKe="https://images.unsplash.com/photo-1773227060703-b31bd307e218?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxzZW5pb3IlMjB3b21hbiUyMHNtaWxpbmclMjByZXRpcmVtZW50JTIwaGVhbHRoeXxlbnwxfHx8fDE3NzQ1NTUzMjd8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",fKe=[{icon:Fs,value:30,suffix:"+",label:"Years of Experience",prefix:""},{icon:sn,value:15e3,suffix:"+",label:"Clients Served",prefix:""},{icon:Un,value:500,suffix:"+",label:"5-Star Reviews",prefix:""},{icon:H0,value:0,suffix:"",label:"Cost to You",prefix:"$"}],ix=[{city:"Reno",address:"6170 Mae Anne Ave, Suite 4",phone:"(775) 828-1216"},{city:"Sparks",address:"1605 E Lincoln Way, Suite B",phone:"(775) 828-1216"},{city:"Carson City",address:"1775 Snyder Ave, Suite A",phone:"(775) 828-1216"},{city:"Fernley",address:"815 N Center St, Suite 1",phone:"(775) 828-1216"},{city:"Las Vegas",address:"170 S Green Valley Pkwy",phone:"(702) 710-5227"},{city:"Truckee",address:"10015 Palisades Dr, Suite 7",phone:"(775) 828-1216"}],pKe=[{icon:Ki,title:"Medicare",desc:"Turning 65 or already on Medicare? We help you compare Medicare Advantage, Supplement, and Part D plans to find the best fit for your needs and budget.",link:"/medicare/",img:hKe},{icon:sn,title:"Individual & Family",desc:"Whether you're self-employed, between jobs, or just need coverage, we help you find affordable health plans that cover your doctors and prescriptions.",link:"/services/",img:uKe},{icon:uf,title:"Small Business",desc:"Attract and retain employees with competitive group health benefits. We compare options and handle the paperwork so you can focus on your business.",link:"/small-business-health-coverage-2/",img:dKe}],mKe=[{icon:Ut,title:"Talk with a Local Advisor",desc:"Call us, visit an office, or schedule a time that works for you. We're here to listen."},{icon:oU,title:"Review Your Needs",desc:"We'll look at your doctors, prescriptions, and budget to understand what matters most."},{icon:er,title:"Compare Your Options",desc:"See a clear side-by-side comparison so you can make an informed decision."},{icon:lce,title:"Enroll with Confidence",desc:"We handle the enrollment process and stay available for questions year-round."}],gKe=[{name:"Patricia M.",city:"Reno, NV",text:"I was so overwhelmed trying to figure out Medicare on my own. My advisor at HBA walked me through everything and I ended up saving money on my plan.",stars:5},{name:"Robert & Linda T.",city:"Las Vegas, NV",text:"We've been with HBA for over ten years. Every year they check our plans and make sure we still have the best options. It's like having a friend in the business.",stars:5},{name:"James K.",city:"Carson City, NV",text:"As a small business owner, I needed help finding affordable group coverage for my team. HBA made the whole process easy and saved us thousands.",stars:5},{name:"Susan D.",city:"Sparks, NV",text:"I helped my mother find Medicare coverage through HBA. The team was so patient and kind. They treated her like family. Highly recommend.",stars:5}];function bKe(t,e=2e3,r=!0){const[n,a]=w.useState(0),i=w.useRef(null),o=tl(i,{once:!0,margin:"-50px"}),l=w.useRef(!1);return w.useEffect(()=>{if(!r||!o||l.current)return;if(l.current=!0,t===0){a(0);return}const c=performance.now(),u=d=>{const h=d-c,m=Math.min(h/e,1),g=1-Math.pow(1-m,3);a(Math.round(g*t)),m<1&&requestAnimationFrame(u)};requestAnimationFrame(u)},[o,t,e,r]),{count:n,ref:i}}function xKe({icon:t,value:e,suffix:r,prefix:n,label:a}){const{count:i,ref:o}=bKe(e,e>1e3?2400:1800),l=e>
1411=1e3?i.toLocaleString():i.toString();return s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-full bg-white/10 mb-3",children:s.jsx(t,{className:"w-6 h-6 text-hba-orange-1"})}),s.jsxs("p",{ref:o,className:"text-3xl lg:text-4xl xl:text-5xl font-extrabold text-white tabular-nums",children:[n,l,r]}),s.jsx("p",{className:"text-sm lg:text-base text-white/60 font-medium mt-1",children:a})]})}function yKe(){const t=[...ix,...ix,...ix];return s.jsxs("div",{className:"overflow-hidden relative",children:[s.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-20 bg-gradient-to-r from-hba-blue-1 to-transparent z-10"}),s.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-20 bg-gradient-to-l from-hba-blue-1 to-transparent z-10"}),s.jsx(Nt.div,{className:"flex gap-5 w-max",animate:{x:["0%","-33.333%"]},transition:{duration:30,ease:"linear",repeat:1/0},children:t.map((e,r)=>s.jsx("div",{className:"flex-shrink-0 bg-white/[0.07] backdrop-blur-sm border border-white/10 rounded-xl px-6 py-4 min-w-[240px] hover:bg-white/[0.12] transition-colors",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-9 h-9 rounded-full bg-hba-orange-1/20 flex items-center justify-center flex-shrink-0",children:s.jsx(tr,{className:"w-4 h-4 text-hba-orange-1"})}),s.jsxs("div",{children:[s.jsx("p",{className:"font-bold text-white text-base",children:e.city}),s.jsx("p",{className:"text-white/50 text-xs leading-snug",children:e.address})]})]})},`${e.city}-${r}`))})]})}function So({children:t,className:e="",delay:r=0}){const n=w.useRef(null),a=tl(n,{once:!0,margin:"-80px"});return s.jsx(Nt.div,{ref:n,initial:{opacity:0,y:40},animate:a?{opacity:1,y:0}:{},transition:{duration:.7,ease:[.22,1,.36,1],delay:r},className:e,children:t})}function vKe(){return s.jsxs("div",{className:"min-h-screen bg-white font-sans text-foreground",children:[s.jsxs("header",{className:"sticky top-0 z-50 bg-white border-b border-gray-100 shadow-sm",children:[s.jsx("div",{className:"bg-hba-blue-1 text-white",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-2.5 flex justify-between items-center text-sm",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsxs("a",{href:"tel:7758281216",className:"flex items-center gap-2 hover:text-hba-orange-1 transition-colors font-semibold",children:[s.jsx(Ut,{className:"w-4 h-4"}),"(775) 828-1216"]}),s.jsxs("span",{className:"hidden sm:flex items-center gap-2 text-white/70",children:[s.jsx(tr,{className:"w-4 h-4"}),"6 Nevada Offices"]})]}),s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"bg-hba-orange-1 hover:bg-hba-orange-2 text-white px-5 py-1.5 rounded-md font-semibold text-sm transition-colors",children:"Talk to a Local Advisor"})]})}),s.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-4 flex items-center justify-between",children:[s.jsx(ue,{to:"/",className:"flex-shrink-0",children:s.jsx(Dt,{src:wV,alt:"Health Benefits Associates",className:"h-12"})}),s.jsxs("nav",{className:"hidden md:flex items-center gap-8 text-base font-semibold text-hba-blue-1",children:[s.jsx(ue,{to:"/medicare/",className:"hover:text-hba-orange-1 transition-colors",children:"Medicare"}),s.jsx(ue,{to:"/services/",className:"hover:text-hba-orange-1 transition-colors",children:"Individual & Family"}),s.jsx(ue,{to:"/small-business-health-coverage-2/",className:"hover:text-hba-orange-1 transition-colors",children:"Small Business"}),s.jsx(ue,{to:"/locations",className:"hover:text-hba-orange-1 transition-colors",children:"Locations"}),s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"hover:text-hba-orange-1 transition-colors",children:"Contact"})]})]})]}),s.jsxs("section",{className:"relative overflow-hidden bg-hba-blue-1",children:[s.jsxs("div",{className:"absolute inset-0",children:[s.jsx(Dt,{src:NV,alt:"",className:"w-full h-full object-cover opacity-15"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-hba-blue-1/80 via-hba-blue-1/95 to-hba-blue-1"})]}),s.jsx("div",{className:"absolute top-0 right-0 w-[800px] h-[800px] bg-hba-orange-1/5 rounded-full blur-[200px] -translate-y-1/3 translate-x-1/4"}),s.jsxs("div",{className:"relative z-10",children:[s.jsx("div",{className:"max-w-7xl mx-auto px-6 pt-20 lg:pt-28 pb-16",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[s.jsxs("div",{className:"max-w-xl",children:[s.jsxs(Nt.div,{initial:{opacity:0,y:20}
1411,animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"inline-flex items-center gap-2 bg-white/10 backdrop-blur-sm text-white px-4 py-2 rounded-full text-sm font-semibold mb-7 border border-white/10",children:[s.jsx(is,{className:"w-4 h-4 text-hba-orange-1"}),"Trusted Nevada Brokerage Since 1990"]}),s.jsxs(Nt.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.25},className:"text-4xl lg:text-5xl xl:text-[3.5rem] font-extrabold leading-[1.12] text-white mb-6",children:["Local Nevada Health Insurance Guidance,"," ",s.jsx("span",{className:"text-hba-orange-1",children:"at No Cost to You"})]}),s.jsx(Nt.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.45},className:"text-lg lg:text-xl text-white/70 leading-relaxed mb-10",children:"We help Medicare beneficiaries, families, and small businesses understand their options and choose coverage with confidence â with real advisors across Nevada."}),s.jsxs(Nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.6},className:"flex flex-col sm:flex-row gap-4",children:[s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"group inline-flex items-center justify-center gap-2 bg-hba-orange-1 hover:bg-hba-orange-2 text-white text-lg font-bold px-8 py-4 rounded-xl transition-all shadow-lg shadow-orange-900/30 hover:shadow-xl hover:shadow-orange-900/40 hover:-translate-y-0.5",children:["Talk to a Local Advisor",s.jsx(Xe,{className:"w-5 h-5 group-hover:translate-x-0.5 transition-transform"})]}),s.jsxs(ue,{to:"/locations",className:"inline-flex items-center justify-center gap-2 bg-white/10 hover:bg-white/20 text-white border border-white/20 text-lg font-bold px-8 py-4 rounded-xl transition-all hover:-translate-y-0.5 backdrop-blur-sm",children:[s.jsx(tr,{className:"w-5 h-5"}),"Find Your Nearest Office"]})]})]}),s.jsxs(Nt.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.8,delay:.3,ease:[.22,1,.36,1]},className:"relative hidden lg:block",children:[s.jsx("div",{className:"rounded-2xl overflow-hidden shadow-2xl shadow-black/20 ring-1 ring-white/10",children:s.jsx(Dt,{src:NV,alt:"Happy seniors enjoying retirement",className:"w-full h-[460px] object-cover"})}),s.jsxs(Nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.9},className:"absolute -bottom-5 -left-5 bg-white rounded-xl shadow-2xl p-4 flex items-center gap-3 border border-gray-100",children:[s.jsx("div",{className:"bg-green-50 rounded-full p-2.5",children:s.jsx(is,{className:"w-6 h-6 text-green-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"font-bold text-hba-blue-1 text-sm",children:"Licensed & Trusted"}),s.jsx("p",{className:"text-gray-400 text-xs",children:"Nevada Division of Insurance"})]})]}),s.jsxs(Nt.div,{initial:{opacity:0,y:-15},animate:{opacity:1,y:0},transition:{duration:.6,delay:1.1},className:"absolute -top-4 -right-4 bg-white rounded-xl shadow-2xl px-4 py-3 flex items-center gap-2 border border-gray-100",children:[s.jsx("div",{className:"flex gap-0.5",children:[...Array(5)].map((t,e)=>s.jsx(Un,{className:"w-4 h-4 text-yellow-400 fill-yellow-400"},e))}),s.jsx("span",{className:"text-xs font-bold text-hba-blue-1",children:"500+ Reviews"})]})]})]})}),s.jsxs(Nt.div,{initial:{opacity:0}
1411,animate:{opacity:1},transition:{duration:.8,delay:.8},className:"py-8 border-t border-white/[0.06]",children:[s.jsx("div",{className:"max-w-7xl mx-auto px-6 mb-5",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-full bg-hba-orange-1/20 flex items-center justify-center",children:s.jsx(tr,{className:"w-4 h-4 text-hba-orange-1"})}),s.jsx("p",{className:"text-white/50 text-sm font-semibold uppercase tracking-widest",children:"6 Offices Across Nevada"})]})}),s.jsx(yKe,{})]}),s.jsx("div",{className:"border-t border-white/[0.06] bg-white/[0.03]",children:s.jsx("div",{className:"max-w-7xl mx-auto px-6 py-14",children:s.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 lg:gap-12",children:fKe.map((t,e)=>s.jsx(Nt.div,{initial:{opacity:0,y:25},animate:{opacity:1,y:0},transition:{duration:.6,delay:1+e*.12},children:s.jsx(xKe,{...t})},t.label))})})})]})]}),s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[s.jsx(So,{children:s.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-16",children:[s.jsx("p",{className:"text-hba-orange-1 font-bold text-sm uppercase tracking-widest mb-3",children:"How We Can Help"}),s.jsx("h2",{className:"text-3xl lg:text-4xl font-extrabold text-hba-blue-1 mb-4",children:"Coverage Options Made Simple"}),s.jsx("p",{className:"text-lg text-gray-500 leading-relaxed",children:"No jargon, no pressure. We guide you through the process step by step."})]})}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:pKe.map((t,e)=>s.jsx(So,{delay:e*.1,children:s.jsxs(ue,{to:t.link,className:"group block bg-white border border-gray-100 rounded-2xl overflow-hidden shadow-sm hover:shadow-xl transition-all duration-300 hover:-translate-y-1",children:[s.jsx("div",{className:"h-52 overflow-hidden",children:s.jsx(Dt,{src:t.img,alt:t.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),s.jsxs("div",{className:"p-7",children:[s.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-xl bg-hba-orange-1/10 mb-4",children:s.jsx(t.icon,{className:"w-6 h-6 text-hba-orange-1"})}),s.jsx("h3",{className:"text-xl font-bold text-hba-blue-1 mb-3",children:t.title}),s.jsx("p",{className:"text-gray-600 leading-relaxed mb-5 text-base",children:t.desc}),s.jsxs("span",{className:"inline-flex items-center gap-1 text-hba-orange-1 font-bold group-hover:gap-2 transition-all",children:["Learn More ",s.jsx(Vn,{className:"w-4 h-4"})]})]})]})},t.title))})]})}),s.jsx("section",{className:"bg-slate-50 py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[s.jsx(So,{children:s.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-16",children:[s.jsx("p",{className:"text-hba-orange-1 font-bold text-sm uppercase tracking-widest mb-3",children:"Simple & Supportive"}),s.jsx("h2",{className:"text-3xl lg:text-4xl font-extrabold text-hba-blue-1 mb-4",children:"How It Works"}),s.jsx("p",{className:"text-lg text-gray-500 leading-relaxed",children:"Getting the right coverage shouldn't be complicated. Here's how we make it easy."})]})}),s.jsxs("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[s.jsx("div",{className:"hidden md:block absolute top-14 left-[12.5%] right-[12.5%] h-0.5 bg-gray-200"}),mKe.map((t,e)=>s.jsx(So,{delay:e*.1,children:s.jsxs("div",{className:"relative text-center",children:[s.jsx("div",{className:"relative z-10 inline-flex items-center justify-center w-16 h-16 rounded-full bg-hba-blue-1 text-white text-xl font-bold mb-5 shadow-lg",children:e+1}),s.jsx("h3",{className:"text-lg font-bold text-hba-blue-1 mb-3",children:t.title}),s.jsx("p",{className:"text-gray-500 leading-relaxed",children:t.desc})]})},t.title))]})]})}),s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[s.jsx(So,{children:s.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-16",children:[s.jsx("p",{className:"text-hba-orange-1 font-bold text-sm uppercase tracking-widest mb-3",children:"Real Feedback"}),s.jsx("h2",{className:"text-3xl lg:text-4xl font-extrabold text-hba-blue-1 mb-4",children:"From Nevadans We've Helped"}),s.jsxs("div",{className:"flex items-center justify-center gap-1 mt-4",children:[[...Array(5)].map((t,e)=>s.jsx(Un,{className:"w-6 h-6 text-yellow-400 fill-yellow-400"},e)),s.jsx("span",{className:"ml-2 text-gray-500 font-medium",children:"500+ Google Reviews"})]})]})}),s.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:gKe.map((t,e)=>s.jsx(So,{delay:e*.08,children:s.jsxs("div",{className:"bg-white rounded-xl p-8 border border-gray-100 shadow-sm hover:shadow-md transition-shadow",children:[s.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(t.stars)].map((r,n)=>s.jsx(Un,{className:"w-5 h-5 text-yellow-400 fill-yellow-400"},n))}),s.jsxs("p",{className:"text-gray-700 text-lg leading-relaxed mb-6 italic",children:['"',t.text,'"']}),s.jsxs("div",{children:[s.jsx("p",{className:"font-bold text-hba-blue-1",children:t.name}),s.jsx("p",{className:"text-gray-400 text-sm",children:t.city})]})]})},t.name))})]})}),s.jsx("section",{className:"bg-slate-50 py-20 lg:py-28",children:s.jsx("div",{className:"max-w-7xl mx-auto px-6",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[s.jsx(So,{children:s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"rounded-2xl overflow-hidden shadow-xl",children:s.jsx(Dt,{src:cKe,alt:"Alex Sampson â Health Benefits Associates",className:"w-full h-[520px] object-cover object-top"})}),s.jsxs("div",{className:"absolute -bottom-5 -right-5 bg-hba-blue-1 text-white rounded-xl px-6 py-4 shadow-xl",children:[s.jsx("p",{className:"font-bold text-lg",children:"Est. 1990"}),s.jsx("p",{className:"text-white/70 text-sm",children:"Reno, Nevada"})]})]})}),s.jsx(So,{delay:.15,children:s.jsxs("div",{className:"max-w-lg",children:[s.jsx("p",{className:"text-hba-orange-1 font-bold text-sm uppercase tracking-widest mb-3",children:"Local Leadership"}),s.jsx("h2",{className:"text-3xl lg:text-4xl font-extrabold text-hba-blue-1 mb-6",children:"A Local Team You Can Count On"}),s.jsx("p",{className:"text-lg text-gray-600 leading-relaxed mb-6",children:"Health Benefits Associates was built on a simple belief: Nevadans deserve someone local they can trust for health insurance guidance. For over 30 years, our team has been part of this community â advising neighbors, friends, and families across the state."}),s.jsx("p",{className:"text-lg text-gray-600 leading-relaxed mb-8",children:"Led by Alex Sampson, our advisors are licensed, experienced, and committed to helping you find coverage that truly fits â at no cost to you, ever."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-6",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-green-50 flex items-center justify-center",children:s.jsx(er,{className:"w-5 h-5 text-green-600"})}),s.jsx("span",{className:"font-semibold text-hba-blue-1",children:"Licensed Advisors"})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-green-50 flex items-center justify-center",children:s.jsx(er,{className:"w-5 h-5 text-green-600"})}),s.jsx("span",{className:"font-semibold text-hba-blue-1",children:"Year-Round Support"})]})]})]})})]})})}),s.jsxs("section",{className:"bg-hba-blue-1 py-20 lg:py-24 relative overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-hba-blue-1 via-hba-blue-2 to-hba-blue-1"}),s.jsx("div",{className:"absolute top-0 left-1/2 w-[600px] h-[600px] bg-hba-orange-1/5 rounded-full blur-[180px] -translate-x-1/2 -translate-y-1/2"}),s.jsx(So,{className:"relative z-10",children:s.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl xl:text-5xl font-extrabold text-white mb-6 leading-tight",children:"Get Local Help at No Cost to You"}),s.jsx("p",{className:"text-xl text-white/70 leading-relaxed mb-10 max-w-2xl mx-auto",children:"Whether you're exploring Medicare, shopping for family coverage, or comparing group plans for your business â a local Nevada advisor is ready to help."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:[s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"group inline-flex items-center justify-center gap-2 bg-hba-orange-1 hover:bg-hba-orange-2 text-white text-lg font-bold px-10 py-5 rounded-xl transition-all shadow-lg hover:shadow-xl hover:-translate-y-0.5",children:["Talk to a Nevada Advisor",s.jsx(Xe,{className:"w-5 h-5 group-hover:translate-x-0.5 transition-transform"})]}),s.jsxs("a",{href:"tel:7758281216",className:"inline-flex items-center justify-center gap-2 bg-white/10 hover:bg-white/20 text-white border border-white/20 text-lg font-bold px-10 py-5 rounded-xl transition-all hover:-translate-y-0.5",children:[s.jsx(Ut,{className:"w-5 h-5"}),"(775) 828-1216"]})]}),s.jsx("p",{className:"text-white/50 text-sm",children:"Available Monday â Friday, 8:00 AM â 5:00 PM ⢠Walk-ins welcome at all 6 locations"})]})})]}),s.jsx("footer",{className:"bg-hba-blue-1 border-t border-white/10 pt-16 pb-8",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[s.jsxs("div",{className:"grid md:grid-cols-4 gap-12 mb-14",children:[s.jsxs("div",{children:[s.jsx(Dt,{src:wV,alt:"Health Benefits Associates",className:"h-10 brightness-0 invert mb-5"}),s.jsx("p",{className:"text-white/60 text-sm leading-relaxed",children:"Local Nevada health insurance guidance for Medicare, individuals, families, and small businesses."})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"text-white font-bold text-sm uppercase tracking-widest mb-5",children:"Services"}),s.jsxs("ul",{className:"space-y-3",children:[s.jsx("li",{children:s.jsx(ue,{to:"/medicare/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"Medicare"})}),s.jsx("li",{children:s.jsx(ue,{to:"/services/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"Individual & Family"})}),s.jsx("li",{children:s.jsx(ue,{to:"/small-business-health-coverage-2/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"Small Business"})}),s.jsx("li",{children:s.jsx(ue,{to:"/find-a-doctor/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"Find a Doctor"})})]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"text-white font-bold text-sm uppercase tracking-widest mb-5",children:"Locations"}),s.jsx("ul",{className:"space-y-3",children:ix.map(t=>s.jsx("li",{children:s.jsx(ue,{to:"/locations",className:"text-white/60 hover:text-white transition-colors text-sm",children:t.city})},t.city))})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"text-white font-bold text-sm uppercase tracking-widest mb-5",children:"Contact"}),s.jsxs("ul",{className:"space-y-3",children:[s.jsx("li",{children:s.jsxs("a",{href:"tel:7758281216",className:"text-white/60 hover:text-white transition-colors text-sm flex items-center gap-2",children:[s.jsx(Ut,{className:"w-4 h-4"})," (775) 828-1216"]})}),s.jsx("li",{children:s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"Contact Us"})}),s.jsx("li",{children:s.jsx(ue,{to:"/our-team/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"Our Team"})}),s.jsx("li",{children:s.jsx("a",{href:"/blog-news/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"News"})})]})]})]}),s.jsx("div",{className:"border-t border-white/10 pt-8 text-center",children:s.jsxs("p",{className:"text-white/40 text-sm",children:["© ",new Date().getFullYear()," Health Benefits Associates. All rights reserved."]})})]})})]})}const wKe="https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/team/cj-weaver/d91af7d7-b679-4018-94aa-679359cda19f.png",NKe="https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/team/alex-sampson/7580bc31-0a01-4103-8893-60bb6bdc4dd0.webp",jKe={Reno:"https://images.unsplash.com/photo-1644790674147-f50605e294cc?w=900&q=80&auto=format&fit=crop",Sparks:"https://images.unsplash.com/photo-1568605114967-8130f3a36994?w=900&q=80&auto=format&fit=crop","Carson City":"https://images.unsplash.com/photo-1605542202587-5849be5054a4?w=900&q=80&auto=format&fit=crop",Fernley:"https://images.unsplash.com/photo-1685502659945-721d57e46b4d?w=900&q=80&auto=format&fit=crop","Las Vegas":"https://images.unsplash.com/photo-1580587771525-78b9dba3b914?w=900&q=80&auto=format&fit=crop",Truckee:"https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=900&q=80&auto=format&fit=crop"},kKe="https://images.unsplash.com/photo-1736939666660-d4c776e0532c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxwcm9mZXNzaW9uYWwlMjB3b21hbiUyMGNvbnN1bHRpbmclMjBjbGllbnQlMjBtb2Rlcm4lMjBvZmZpY2UlMjB3YXJtfGVufDF8fHx8MTc3NDU2NjMwMXww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",SKe="https://images.unsplash.com/photo-1591453214154-c95db71dbd83?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHx3YXJtJTIwcHJvZmVzc2lvbmFsJTIwYWR2aXNvciUyMG1lZXRpbmclMjBoYW5kc2hha2UlMjB0cnVzdHxlbnwxfHx8fDE3NzQ1NjYyOTh8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",CKe="https://images.unsplash.com/photo-1746021375258-79fa1464ca1f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxtb2Rlcm4lMjBvZmZpY2UlMjByZWNlcHRpb24lMjBkZXNrJTIwd2VsY29taW5nJTIwcHJvZmVzc2lvbmFsfGVufDF8fHx8MTc3NDU2NjI5N3ww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",$Ke=[{icon:Fs,value:30,suffix:"+",label:"Years of Experience",prefix:""},{icon:sn,value:15e3,suffix:"+",label:"Clients Served",prefix:""},{icon:Un,value:500,suffix:"+",label:"5-Star Reviews",prefix:""},{icon:H0,value:0,suffix:"",label:"Cost to You",prefix:"$"}],jV=[{city:"Reno",address:"6170 Mae Anne Ave, Suite 4",phone:"(775) 828-1216"},{city:"Sparks",address:"1605 E Lincoln Way, Suite B",phone:"(775) 828-1216"},{city:"Carson City",address:"1775 Snyder Ave, Suite A",phone:"(775) 828-1216"},{city:"Fernley",address:"815 N Center St, Suite 1",phone:"(775) 828-1216"},{city:"Las Vegas",address:"170 S Green Valley Pkwy",phone:"(702) 710-5227"},{city:"Truckee",address:"10015 Palisades Dr, Suite 7",phone:"(775) 828-1216"}
1411],$9=["Hometown Health","Prominence","Aetna","UnitedHealthcare","Senior Care Plus","Renown Health","Humana","Anthem Blue Cross"],_Ke=[{icon:Ki,title:"Medicare",desc:"Turning 65 or already on Medicare? We compare Medicare Advantage, Supplement, and Part D plans to find the best fit for your needs and budget.",link:"/medicare/",img:SKe},{icon:sn,title:"Individual & Family",desc:"Self-employed, between jobs, or need coverage? We help find affordable plans that cover your doctors and prescriptions.",link:"/services/",img:kKe},{icon:uf,title:"Small Business",desc:"Attract and retain employees with competitive group benefits. We compare options and handle paperwork so you can focus on your business.",link:"/small-business-health-coverage-2/",img:CKe}],AKe=[{name:"Patricia M.",city:"Reno, NV",text:"I was so overwhelmed trying to figure out Medicare on my own. My advisor at HBA walked me through everything and I ended up saving money on my plan.",stars:5},{name:"Robert & Linda T.",city:"Las Vegas, NV",text:"We've been with HBA for over ten years. Every year they check our plans and make sure we still have the best options. It's like having a friend in the business.",stars:5},{name:"James K.",city:"Carson City, NV",text:"As a small business owner, I needed help finding affordable group coverage for my team. HBA made the whole process easy and saved us thousands.",stars:5},{name:"Susan D.",city:"Sparks, NV",text:"I helped my mother find Medicare coverage through HBA. The team was so patient and kind. They treated her like family. Highly recommend.",stars:5}];function EKe(t,e=2e3){const[r,n]=w.useState(0),a=w.useRef(null),i=tl(a,{once:!0,margin:"-50px"}),o=w.useRef(!1);return w.useEffect(()=>{if(!i||o.current)return;if(o.current=!0,t===0){n(0);return}const l=performance.now(),c=u=>{const d=Math.min((u-l)/e,1),h=1-Math.pow(1-d,3);n(Math.round(h*t)),d<1&&requestAnimationFrame(c)};requestAnimationFrame(c)},[i,t,e]),{count:r,ref:a}}function Oi({children:t,className:e="",delay:r=0}){const n=w.useRef(null),a=tl(n,{once:!0,margin:"-60px"});return s.jsx(Nt.div,{ref:n,initial:{opacity:0,y:36},animate:a?{opacity:1,y:0}:{},transition:{duration:.65,ease:[.22,1,.36,1],delay:r},className:e,children:t})}function OKe({city:t,img:e,delay:r}){return s.jsxs(Nt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5,delay:r,ease:[.22,1,.36,1]},className:"group relative aspect-[5/3] w-full overflow-hidden rounded-none transition-shadow duration-500 ease-out hover:shadow-[inset_0_0_0_1px_rgba(255,255,255,0.12)]",children:[s.jsx("div",{className:"absolute inset-0 overflow-hidden bg-slate-900/20",children:s.jsx(Dt,{src:e,alt:t,className:"h-full w-full object-cover brightness-[0.97] contrast-[1.02] saturate-[0.55] transition-all duration-700 ease-out group-hover:scale-[1.04] group-hover:brightness-100 group-hover:contrast-100 group-hover:saturate-100"})}),s.jsx("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-hba-blue-1/88 via-hba-blue-1/15 to-transparent opacity-95 transition-opacity duration-700 ease-out group-hover:from-hba-blue-1/75 group-hover:via-hba-blue-1/10"}),s.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-2.5 sm:p-3",children:s.jsx("span",{className:"block text-[0.8125rem] sm:text-sm font-semibold tracking-wide text-white drop-shadow-md [text-shadow:0_1px_2px_rgba(0,0,0,0.35)]",children:t})})]})}function PKe(){const t=[...$9,...$9,...$9];return s.jsxs("div",{className:"relative overflow-hidden",children:[s.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 z-10 w-20 bg-gradient-to-r from-white to-transparent sm:w-28"}),s.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 z-10 w-20 bg-gradient-to-l from-white to-transparent sm:w-28"}),s.jsx(Nt.div,{className:"flex w-max items-center gap-14 md:gap-16",animate:{x:["0%","-33.333%"]},transition:{duration:28,ease:"linear",repeat:1/0},children:t.map((e,r)=>s.jsx("div",{className:"flex-shrink-0 select-none whitespace-nowrap text-lg font-bold tracking-wide text-gray-300 sm:text-xl",children:e},`${e}-${r}`))})]})}function MKe({icon:t,value:e,suffix:r,prefix:n,label:a}){const{count:i,ref:o}=EKe(e,e>1e3?2e3:1400),l=e>
1411=1e3?i.toLocaleString():i.toString();return s.jsxs("div",{className:"flex gap-2.5 rounded-xl border border-slate-200/80 bg-white/90 px-3 py-2.5 shadow-sm",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-hba-orange-1/12",children:s.jsx(t,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0})}),s.jsxs("div",{className:"min-w-0",children:[s.jsxs("p",{ref:o,className:"text-lg font-extrabold leading-none tracking-tight text-hba-blue-1 tabular-nums sm:text-xl",children:[n,l,r]}),s.jsx("p",{className:"mt-0.5 text-[0.6875rem] font-medium leading-snug text-slate-600 sm:text-xs",children:a})]})]})}function TKe(){return s.jsxs("div",{className:"min-h-screen bg-white font-sans text-foreground",children:[s.jsx("section",{className:"bg-gradient-to-b from-slate-50/90 via-white to-white overflow-hidden",children:s.jsx("div",{className:"max-w-7xl mx-auto px-6 pt-3 sm:pt-4 lg:pt-5 pb-12 lg:pb-14",children:s.jsx("div",{className:"overflow-hidden rounded-xl border border-slate-200/70 bg-white shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_40px_-12px_rgba(15,23,42,0.08)]",children:s.jsxs("div",{className:"grid md:grid-cols-5 md:items-stretch",children:[s.jsxs("div",{className:"md:col-span-2 flex min-h-0 flex-col gap-5 bg-gradient-to-b from-white via-slate-50/40 to-white p-6 sm:p-7 lg:p-8 border-b md:border-b-0 md:border-r border-slate-200/70",children:[s.jsxs(Nt.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.45,delay:.05},className:"inline-flex w-fit items-center gap-2 rounded-full border border-slate-200/80 bg-white/90 px-3 py-1.5 text-xs font-semibold text-hba-blue-1 shadow-sm sm:text-[0.8125rem]",children:[s.jsx(is,{className:"h-3.5 w-3.5 shrink-0 text-hba-orange-1","aria-hidden":!0}),"Serving Nevada from 6 Local Offices"]}),s.jsxs(Nt.h1,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.65,delay:.12},className:"text-hba-blue-1",children:[s.jsx("span",{className:"block text-lg font-bold leading-snug text-hba-blue-1 sm:text-xl",children:"Navigating Health Insurance with"}),s.jsx("span",{className:"mt-1 block text-[2.125rem] font-extrabold leading-[1.08] tracking-tight text-hba-orange-1 sm:text-5xl lg:text-[2.75rem]",children:"Zero-Cost"}),s.jsx("span",{className:"mt-1 block text-lg font-bold leading-snug text-hba-blue-1 sm:text-xl",children:"Expert Guidance"})]}),s.jsx(Nt.p,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.55,delay:.22},className:"max-w-md text-[0.9375rem] leading-relaxed text-slate-700 sm:text-base",children:"You are not a case number to us â you are a neighbor. Real Nevada advisors take time to listen, explain your options in plain language, and help you move forward with confidence. Our guidance costs you nothing, and we will never rush you into a plan that does not fit your life."}),s.jsx(Nt.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},className:"grid grid-cols-2 gap-2.5 sm:gap-3",role:"list","aria-label":"Health Benefits Associates at a glance",children:$Ke.map(t=>s.jsx("div",{role:"listitem",children:s.jsx(MKe,{...t})},t.label))}),s.jsxs(Nt.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,delay:.38},className:"flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center",children:[s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"group inline-flex min-h-[48px] flex-1 items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-5 py-3.5 text-base font-bold text-white shadow-md shadow-orange-200/30 transition hover:bg-hba-orange-2 hover:shadow-lg sm:flex-none sm:px-7",children:["Talk to a Local Advisor",s.jsx(Xe,{className:"h-5 w-5 transition-transform group-hover:translate-x-0.5","aria-hidden":!0})]}),s.jsxs(ue,{to:"/locations",className:"inline-flex min-h-[48px] flex-1 items-center justify-center gap-2 rounded-xl border-2 border-slate-200 bg-white px-5 py-3.5 text-base font-semibold text-hba-blue-1 transition hover:border-hba-blue-1/40 hover:bg-slate-50 sm:flex-none sm:px-6",children:[s.jsx(tr,{className:"h-5 w-5 shrink-0 text-hba-orange-1","aria-hidden":!0}),"Find Your Nearest Office"]})]})]}),s.jsx("div",{className:"md:col-span-3 min-w-0 bg-gradient-to-br from-slate-100/80 to-slate-50/50 p-2 sm:p-2.5 md:p-3",children:s.jsx("div",{className:"grid h-full grid-cols-2 grid-rows-3 gap-px overflow-hidden rounded-lg bg-slate-300/80 ring-1 ring-slate-200/90",children:jV.map((t,e)=>s.jsx(ue,{to:"/locations",className:"block min-w-0 bg-white focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-100",children:s.jsx(OKe,{city:t.city,img:jKe[t.city],delay:.1+e*.05})},t.city))})})]})})})}),s.jsx("section",{className:"border-b border-gray-100 bg-white py-10 lg:py-12",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[s.jsx(Oi,{children:s.jsxs("div",{className:"mx-auto mb-8 max-w-2xl text-center lg:mb-9",children:[s.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-gray-400",children:"Helping You Navigate Options Across Trusted Carriers"}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-slate-600 sm:text-[0.9375rem]",children:"We help you compare plans across trusted carriers â independent guidance, not a push toward one product."})]})}),s.jsx(PKe,{})]})}),s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[s.jsx(Oi,{children:s.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-16",children:[s.jsx("p",{className:"text-hba-orange-1 font-bold text-sm uppercase tracking-widest mb-3",children:"How We Can Help"}),s.jsx("h2",{className:"text-3xl lg:text-4xl font-extrabold text-hba-blue-1 mb-4",children:"Coverage Options Made Simple"}),s.jsx("p",{className:"text-lg text-gray-500 leading-relaxed",children:"No jargon, no pressure. We guide you through the process step by step."})]})}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:_Ke.map((t,e)=>s.jsx(Oi,{delay:e*.1,children:s.jsxs(ue,{to:t.link,className:"group block bg-white border border-gray-100 rounded-2xl overflow-hidden shadow-sm hover:shadow-xl transition-all duration-300 hover:-translate-y-1 h-full",children:[s.jsx("div",{className:"h-52 overflow-hidden",children:s.jsx(Dt,{src:t.img,alt:t.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),s.jsxs("div",{className:"p-7",children:[s.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-xl bg-hba-orange-1/10 mb-4",children:s.jsx(t.icon,{className:"w-6 h-6 text-hba-orange-1"})}),s.jsx("h3",{className:"text-xl font-bold text-hba-blue-1 mb-3",children:t.title}),s.jsx("p",{className:"text-gray-600 leading-relaxed mb-5 text-base",children:t.desc}),s.jsxs("span",{className:"inline-flex items-center gap-1 text-hba-orange-1 font-bold group-hover:gap-2 transition-all",children:["Learn More ",s.jsx(Vn,{className:"w-4 h-4"})]})]})]})},t.title))})]})}),s.jsx("section",{className:"bg-slate-50 py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[s.jsx(Oi,{children:s.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-16",children:[s.jsx("p",{className:"text-hba-orange-1 font-bold text-sm uppercase tracking-widest mb-3",children:"Simple & Supportive"}),s.jsx("h2",{className:"text-3xl lg:text-4xl font-extrabold text-hba-blue-1 mb-4",children:"How It Works"}),s.jsx("p",{className:"text-lg text-gray-500 leading-relaxed",children:"Getting the right coverage shouldn't be complicated. Here's how we make it easy."})]})}),s.jsxs("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[s.jsx("div",{className:"hidden md:block absolute top-14 left-[12.5%] right-[12.5%] h-0.5 bg-gray-200"}),[{title:"Talk with a Local Advisor",desc:"Call us, visit an office, or schedule a time that works for you."},{title:"Review Your Needs",desc:"We look at your doctors, prescriptions, and budget to understand what matters."},{title:"Compare Your Options",desc:"See a clear side-by-side comparison so you can make an informed decision."},{title:"Enroll with Confidence",desc:"We handle enrollment and stay available for questions year-round."}].map((t,e)=>s.jsx(Oi,{delay:e*.1,children:s.jsxs("div",{className:"relative text-center",children:[s.jsx("div",{className:"relative z-10 inline-flex items-center justify-center w-16 h-16 rounded-full bg-hba-blue-1 text-white text-xl font-bold mb-5 shadow-lg",children:e+1}),s.jsx("h3",{className:"text-lg font-bold text-hba-blue-1 mb-3",children:t.title}),s.jsx("p",{className:"text-gray-500 leading-relaxed",children:t.desc})]})},t.title))]})]})}),s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[s.jsx(Oi,{children:s.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-16",children:[s.jsx("p",{className:"text-hba-orange-1 font-bold text-sm uppercase tracking-widest mb-3",children:"Real Feedback"}),s.jsx("h2",{className:"text-3xl lg:text-4xl font-extrabold text-hba-blue-1 mb-4",children:"From Nevadans We've Helped"}),s.jsxs("div",{className:"flex items-center justify-center gap-1 mt-4",children:[[...Array(5)].map((t,e)=>s.jsx(Un,{className:"w-6 h-6 text-yellow-400 fill-yellow-400"},e)),s.jsx("span",{className:"ml-2 text-gray-500 font-medium",children:"500+ Google Reviews"})]})]})}),s.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:AKe.map((t,e)=>s.jsx(Oi,{delay:e*.08,children:s.jsxs("div",{className:"bg-white rounded-xl p-8 border border-gray-100 shadow-sm hover:shadow-md transition-shadow",children:[s.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(t.stars)].map((r,n)=>s.jsx(Un,{className:"w-5 h-5 text-yellow-400 fill-yellow-400"},n))}),s.jsxs("p",{className:"text-gray-700 text-lg leading-relaxed mb-6 italic",children:['"',t.text,'"']}),s.jsxs("div",{children:[s.jsx("p",{className:"font-bold text-hba-blue-1",children:t.name}),s.jsx("p",{className:"text-gray-400 text-sm",children:t.city})]})]})},t.name))})]})}),s.jsx("section",{className:"bg-slate-50 py-20 lg:py-28",children:s.jsx("div",{className:"max-w-7xl mx-auto px-6",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[s.jsx(Oi,{children:s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"rounded-2xl overflow-hidden shadow-xl",children:s.jsx(Dt,{src:NKe,alt:"Alex Sampson â Health Benefits Associates",className:"w-full h-[520px] object-cover object-top"})}),s.jsxs("div",{className:"absolute -bottom-5 -right-5 bg-hba-blue-1 text-white rounded-xl px-6 py-4 shadow-xl",children:[s.jsx("p",{className:"font-bold text-lg",children:"Est. 1990"}),s.jsx("p",{className:"text-white/70 text-sm",children:"Reno, Nevada"})]})]})}),s.jsx(Oi,{delay:.15,children:s.jsxs("div",{className:"max-w-lg",children:[s.jsx("p",{className:"text-hba-orange-1 font-bold text-sm uppercase tracking-widest mb-3",children:"Local Leadership"}),s.jsx("h2",{className:"text-3xl lg:text-4xl font-extrabold text-hba-blue-1 mb-6",children:"A Local Team You Can Count On"}),s.jsx("p",{className:"text-lg text-gray-600 leading-relaxed mb-6",children:"Health Benefits Associates was built on a simple belief: Nevadans deserve someone local they can trust for health insurance guidance. For over 30 years, our team has been part of this community â advising neighbors, friends, and families across the state."}),s.jsxs("blockquote",{className:"border-l-4 border-hba-orange-1 pl-6 my-8",children:[s.jsx("p",{className:"text-xl text-hba-blue-1 font-medium italic leading-relaxed mb-3",children:`"As a 4th generation Nevadan, we're here for our community. Our team looks forward to helping you or your business find the right options and be a consistent resource."`}),s.jsx("cite",{className:"text-sm text-gray-500 not-italic font-semibold",children:"â Alex Sampson, Health Benefits Associates"})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-6",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-green-50 flex items-center justify-center",children:s.jsx(er,{className:"w-5 h-5 text-green-600"})}),s.jsx("span",{className:"font-semibold text-hba-blue-1",children:"Licensed Advisors"})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-green-50 flex items-center justify-center",children:s.jsx(er,{className:"w-5 h-5 text-green-600"})}),s.jsx("span",{className:"font-semibold text-hba-blue-1",children:"Year-Round Support"})]})]})]})})]})})}),s.jsxs("section",{className:"bg-hba-blue-1 py-20 lg:py-24 relative overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-hba-blue-1 via-hba-blue-2 to-hba-blue-1"}),s.jsx("div",{className:"absolute top-0 left-1/2 w-[600px] h-[600px] bg-hba-orange-1/5 rounded-full blur-[180px] -translate-x-1/2 -translate-y-1/2"}),s.jsx(Oi,{className:"relative z-10",children:s.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl xl:text-5xl font-extrabold text-white mb-6 leading-tight",children:"Get Local Help at No Cost to You"}),s.jsx("p",{className:"text-xl text-white/70 leading-relaxed mb-10 max-w-2xl mx-auto",children:"Whether you're exploring Medicare, shopping for family coverage, or comparing group plans â a local Nevada advisor is ready to help."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:[s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"group inline-flex items-center justify-center gap-2 bg-hba-orange-1 hover:bg-hba-orange-2 text-white text-lg font-bold px-10 py-5 rounded-xl transition-all shadow-lg hover:shadow-xl hover:-translate-y-0.5",children:["Talk to a Nevada Advisor",s.jsx(Xe,{className:"w-5 h-5 group-hover:translate-x-0.5 transition-transform"})]}),s.jsxs("a",{href:"tel:7758281216",className:"inline-flex items-center justify-center gap-2 bg-white/10 hover:bg-white/20 text-white border border-white/20 text-lg font-bold px-10 py-5 rounded-xl transition-all hover:-translate-y-0.5",children:[s.jsx(Ut,{className:"w-5 h-5"})," (775) 828-1216"]})]}),s.jsx("p",{className:"text-white/50 text-sm",children:"Available Monday â Friday, 8:00 AM â 5:00 PM ⢠Walk-ins welcome at all 6 locations"})]})})]}),s.jsx("footer",{className:"bg-hba-blue-1 border-t border-white/10 pt-16 pb-8",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[s.jsxs("div",{className:"grid md:grid-cols-4 gap-12 mb-14",children:[s.jsxs("div",{children:[s.jsx(Dt,{src:wKe,alt:"Health Benefits Associates",className:"h-10 brightness-0 invert mb-5"}),s.jsx("p",{className:"text-white/60 text-sm leading-relaxed",children:"Local Nevada health insurance guidance for Medicare, individuals, families, and small businesses."})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"text-white font-bold text-sm uppercase tracking-widest mb-5",children:"Services"}),s.jsxs("ul",{className:"space-y-3",children:[s.jsx("li",{children:s.jsx(ue,{to:"/medicare/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"Medicare"})}),s.jsx("li",{children:s.jsx(ue,{to:"/services/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"Individual & Family"})}),s.jsx("li",{children:s.jsx(ue,{to:"/small-business-health-coverage-2/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"Small Business"})}),s.jsx("li",{children:s.jsx(ue,{to:"/find-a-doctor/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"Find a Doctor"})})]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"text-white font-bold text-sm uppercase tracking-widest mb-5",children:"Locations"}),s.jsx("ul",{className:"space-y-3",children:jV.map(t=>s.jsx("li",{children:s.jsx(ue,{to:"/locations",className:"text-white/60 hover:text-white transition-colors text-sm",children:t.city})},t.city))})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"text-white font-bold text-sm uppercase tracking-widest mb-5",children:"Contact"}),s.jsxs("ul",{className:"space-y-3",children:[s.jsx("li",{children:s.jsxs("a",{href:"tel:7758281216",className:"text-white/60 hover:text-white transition-colors text-sm flex items-center gap
1411-2",children:[s.jsx(Ut,{className:"w-4 h-4"})," (775) 828-1216"]})}),s.jsx("li",{children:s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"Contact Us"})}),s.jsx("li",{children:s.jsx(ue,{to:"/our-team/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"Our Team"})}),s.jsx("li",{children:s.jsx("a",{href:"/blog-news/",className:"text-white/60 hover:text-white transition-colors text-sm",children:"News"})})]})]})]}),s.jsx("div",{className:"border-t border-white/10 pt-8 text-center",children:s.jsxs("p",{className:"text-white/40 text-sm",children:["© ",new Date().getFullYear()," Health Benefits Associates. All rights reserved."]})})]})})]})}const kV=[{name:"Humana",src:Gr.homepageHumana,widthClass:"w-52 sm:w-60",scale:1.42},{name:"Anthem",src:Gr.homepageAnthem,widthClass:"w-44 sm:w-52",scale:1.12},{name:"Cigna",src:Gr.homepageCigna,widthClass:"w-44 sm:w-52",scale:1.08},{name:"Prominence Health Plan",src:Gr.homepageProminence,widthClass:"w-52 sm:w-60",scale:1.08},{name:"Hometown Health",src:Gr.homepageHometownHealth,widthClass:"w-52 sm:w-60",scale:1.45},{name:"Kaiser Permanente",src:Gr.homepageKaiserPermanente,widthClass:"w-56 sm:w-64",scale:1.1},{name:"Renown Health",src:Gr.homepageRenownHealth,widthClass:"w-52 sm:w-60",scale:1.58},{name:"Senior Care Plus",src:Gr.homepageSeniorCarePlus,widthClass:"w-52 sm:w-60",scale:1.12},{name:"UnitedHealthcare",src:Gr.homepageUnitedHealthcare,widthClass:"w-52 sm:w-60",scale:.94}];function Wte(){return s.jsx("section",{className:"border-b border-gray-100 bg-white py-10 lg:py-12",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-6",children:[s.jsxs("div",{className:"mx-auto mb-8 max-w-2xl text-center lg:mb-9",children:[s.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-gray-400",children:"Helping You Navigate Options Across Trusted Carriers"}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-slate-600 sm:text-[0.9375rem]",children:"We help you compare plans across trusted carriers - independent guidance, not a push toward one product."})]}),s.jsx("div",{className:"rocket-marquee overflow-hidden",children:s.jsx("div",{className:"rocket-marquee-track items-center",children:[...kV,...kV].map((t,e)=>s.jsx("div",{className:`inline-flex h-20 ${t.widthClass} flex-shrink-0 items-center justify-center overflow-hidden rounded-2xl border border-slate-200 bg-white px-6 py-4 shadow-sm sm:h-24`,children:s.jsx("img",{src:t.src,alt:`${t.name} logo`,className:"max-h-full max-w-full object-contain",style:{transform:`scale(${t.scale})`},loading:"lazy"})},`${t.name}-${e}`))})})]})})}const RKe={ArrowRightIcon:Xe,ClockIcon:tS,UserGroupIcon:sn,StarIcon:Un,CurrencyDollarIcon:H0,MapPinIcon:tr,ShieldCheckIcon:Rr,MagnifyingGlassIcon:Ls,ClipboardDocumentCheckIcon:eS,ArrowPathIcon:ky,ShieldExclamationIcon:Sy,CheckBadgeIcon:rU,CheckIcon:vh,PhoneIcon:Ut};function as({name:t,size:e=20,className:r,style:n}){const a=RKe[t];return s.jsx(a,{size:e,className:r,style:n,strokeWidth:2})}function IKe(){return s.jsxs("div",{className:"rocket-home-page relative overflow-x-hidden",children:[s.jsx(BKe,{}),s.jsx(DKe,{}),s.jsx(D_,{}),s.jsx(Gte,{}),s.jsx(Kte,{}),s.jsx(Yte,{})]})}const SV=["Anthem Blue Cross","UnitedHealthcare","Aetna","Cigna","Humana","Prominence","Renown Health"];function DKe(){return s.jsx("section",{className:"border-b border-gray-100 bg-white py-10 lg:py-12",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[s.jsxs("div",{className:"mx-auto mb-8 max-w-2xl text-center lg:mb-9",children:[s.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-gray-400",children:"Helping You Navigate Options Across Trusted Carriers"}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-slate-600 sm:text-[0.9375rem]",children:"We help you compare plans across trusted carriers â independent guidance, not a push toward one product."})]}),s.jsx("div",{className:"rocket-marquee overflow-hidden",children:s.jsx("div",{className:"rocket-marquee-track",children:[...SV,...SV].map((t,e)=>s.jsx("div",{className:"inline-flex items-center rounded-full border border-slate-200 bg-white px-5 py-3 text-sm font-semibold text-slate-700 shadow-sm",children:t},`${t}-${e}`))})})]})})}const Xc=[{id:"reno",label:"Reno",x:132,y:198,delay:.8,href:"/renolocation/",labelOffsetX:18,labelOffsetY:-22},{id:"henderson",label:"Las Vegas",x:177,y:302,delay:1,href:"/hendersonlocation/",labelOffsetX:10,labelOffsetY:-8},{id:"sparks",label:"Sparks",x:138,y:192,delay:1.2,href:"/sparkslocation/",labelOffsetX:10,labelOffsetY:-34},{id:"carson",label:"Carson City",x:130,y:226,delay:1.4,href:"/carsonlocation/",labelOffsetX:10,labelOffsetY:4},{id:"fernley",label:"Fernley",x:152,y:207,delay:1.6,href:"/fernleylocation/",labelOffsetX:12,labelOffsetY:-8},{id:"truckee",label:"Truckee, CA",x:117,y:208,delay:1.8,href:"/truckee-medicare/",labelOffsetX:-102,labelOffsetY:-6}],LKe=[{icon:"ClockIcon",value:"30+",label:"Years of Experience"},{icon:"UserGroupIcon",value:"15,000+",label:"Clients Served"},{icon:"StarIcon",value:"500+",label:"5-Star Reviews"},{icon:"CurrencyDollarIcon",value:"$0",label:"Cost to You"}];function BKe(){const t=w.useRef(null),e=w.useRef([]);return w.useEffect(()=>{var n;const r=(n=t.current)==null?void 0:n.querySelectorAll(".rocket-line-reveal > span");r==null||r.forEach((a,i)=>{setTimeout(()=>{a.style.transform="translateY(0)",a.style.transition="transform 0.9s cubic-bezier(0.16, 1, 0.3, 1)"},300+i*180)}),e.current.forEach((a,i)=>{a&&setTimeout(()=>{a.style.opacity="1",a.style.transform="translateY(0) scale(1)",a.style.transition="opacity 0.4s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)"},Xc[i].delay*1e3)})},[]),s.jsxs("section",{className:"relative min-h-screen flex flex-col overflow-hidden",children:[s.jsxs("div",{className:"absolute inset-0 z-0",children:[s.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(160deg, #f0f4f6 0%, #e4edf1 35%, #d6e4ea 65%, #c8dae2 100%)"}}
1411),s.jsx("div",{className:"absolute",style:{top:"0%",right:"0%",width:"60%",height:"70%",background:"radial-gradient(ellipse at top right, rgba(236,129,76,0.10) 0%, rgba(245,149,101,0.06) 40%, transparent 70%)"}}),s.jsx("div",{className:"absolute",style:{bottom:"0",left:"0",width:"100%",height:"45%",background:"linear-gradient(to top, rgba(54,74,86,0.12) 0%, transparent 100%)"}})]}),s.jsx("div",{className:"hidden lg:grid fixed inset-0 grid-cols-8 pointer-events-none px-10 z-0",children:Array.from({length:8}).map((r,n)=>s.jsx("div",{className:"rocket-grid-line",style:{borderColor:"rgba(54,74,86,0.06)"}},n))}),s.jsxs("div",{className:"relative z-10 flex flex-col lg:flex-row items-center justify-between max-w-[1400px] mx-auto w-full px-6 md:px-10 pt-36 pb-20 min-h-screen gap-12 lg:gap-0",children:[s.jsxs("div",{className:"flex-1 max-w-2xl",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx("div",{className:"w-[2px] h-4",style:{background:"#ec814c"}}),s.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] font-bold",style:{color:"rgba(40,60,68,0.6)"},children:"Nevada · Northern California"})]}),s.jsx("div",{ref:t,className:"mb-6",children:s.jsxs("h1",{className:"rocket-font-display font-bold leading-tight tracking-tight",style:{fontSize:"clamp(2rem, 4.5vw, 3.5rem)"},children:[s.jsxs("span",{className:"rocket-line-reveal",children:[s.jsx("span",{style:{color:"#283c44"},children:"Navigating Health Insurance with "}),s.jsx("span",{style:{color:"#ec814c",fontSize:"clamp(2.4rem, 5.5vw, 4.2rem)",lineHeight:"1.1",display:"inline"},children:"Zero-Cost"})]}),s.jsx("span",{className:"rocket-line-reveal block",children:s.jsx("span",{style:{color:"#283c44"},children:"Expert Guidance"})})]})}),s.jsx("p",{className:"text-lg leading-relaxed mb-8 rocket-font-body",style:{color:"rgba(40,60,68,0.65)",maxWidth:"520px"},children:"You are not a case number to us â you are a neighbor. Real Nevada advisors take time to listen, explain your options in plain language, and help you move forward with confidence."}),s.jsx("div",{className:"grid grid-cols-2 gap-3 mb-8",style:{maxWidth:"520px"},children:LKe.map(r=>s.jsxs("div",{className:"flex items-center gap-3 rounded-xl px-4 py-3",style:{background:"rgba(255,255,255,0.72)",border:"1px solid rgba(236,129,76,0.15)",backdropFilter:"blur(8px)"},children:[s.jsx(as,{name:r.icon,size:18,style:{color:"#ec814c",flexShrink:0}}),s.jsxs("div",{children:[s.jsx("p",{className:"rocket-font-display font-bold text-xl leading-none",style:{color:"#283c44"},children:r.value}),s.jsx("p",{className:"text-[10px] uppercase tracking-wider mt-0.5 font-semibold",style:{color:"rgba(40,60,68,0.5)"},children:r.label})]})]},r.label))}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",style:{maxWidth:"520px"},children:[s.jsxs("a",{href:"#rocket-quote",className:"inline-flex items-center justify-center gap-2 px-7 py-4 font-bold text-sm rounded-xl transition-all duration-300 hover:scale-[1.02]",style:{background:"#ec814c",color:"#fff",boxShadow:"0 4px 20px rgba(236,129,76,0.35)"},children:["Talk to a Local Advisor",s.jsx(as,{name:"ArrowRightIcon",size:16})]}),s.jsxs("a",{href:"#rocket-services",className:"inline-flex items-center justify-center gap-2 px-7 py-4 font-bold text-sm rounded-xl transition-all duration-300 hover:scale-[1.02]",style:{background:"rgba(255,255,255,0.8)",color:"#283c44",border:"1.5px solid rgba(40,60,68,0.18)"},children:[s.jsx(as,{name:"MapPinIcon",size:16,style:{color:"#ec814c"}}),"Find Your Nearest Office"]})]})]}),s.jsx("div",{className:"flex-1 flex items-center justify-center relative w-full",style:{minWidth:0},children:s.jsx(HKe,{pinsRef:e})})]})]})}function HKe({pinsRef:t}){const e={x:80,y:135,w:190,h:210},r="M 150 155 L 235 155 L 235 295 C 235 301 232 306 228 309 C 226 311 224 313 224 317 L 224 331 L 210 333 L 128 245 L 128 155 Z",n="M 96 152 L 108 158 L 119 172 L 120 206 L 124 245 L 138 282 L 161 316 L 187 343 L 205 352",a=[{...Xc.find(i=>i.id==="reno"),x:133,y:202,labelOffsetX:10,labelOffsetY:-10},{...Xc.find(i=>i.id==="sparks"),x:140,y:198,labelOffsetX:12,labelOffsetY:-16},{...Xc.find(i=>i.id==="carson"),x:130,y:223,labelOffsetX:12,labelOffsetY:4},{...Xc.find(i=>i.id==="fernley"),x:154,y:212,labelOffsetX:12,labelOffsetY:-6},{...Xc.find(i=>i.id==="truckee"),x:112,y:207,labelOffsetX:-84,labelOffsetY:-6},{...Xc.find(i=>i.id==="henderson"),x:201,y:300,labelOffsetX:12,labelOffsetY:-6}
1411].filter(Boolean);return s.jsxs("div",{className:"relative w-full",style:{maxWidth:"720px",padding:"20px 30px"},children:[s.jsx("div",{className:"absolute",style:{top:"50%",left:"56%",transform:"translate(-50%, -50%)",width:"82%",height:"82%",background:"radial-gradient(ellipse at center, rgba(236,129,76,0.18) 0%, rgba(245,149,101,0.08) 50%, transparent 75%)",filter:"blur(45px)",pointerEvents:"none",zIndex:0}}),s.jsxs("div",{className:"absolute flex items-center gap-2",style:{top:"10px",left:"30px",zIndex:5},children:[s.jsx("div",{style:{width:"18px",height:"1px",background:"#ec814c",opacity:.7}}),s.jsx("span",{style:{fontSize:"9px",fontWeight:700,letterSpacing:"0.25em",textTransform:"uppercase",color:"rgba(40,60,68,0.55)"},children:"Service Region"})]}),s.jsxs("div",{className:"relative",style:{overflow:"visible",zIndex:1},children:[s.jsxs("svg",{viewBox:`${e.x} ${e.y} ${e.w} ${e.h}`,xmlns:"http://www.w3.org/2000/svg",className:"w-full h-auto",style:{display:"block",overflow:"visible"},children:[s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"rocket-nevada-fill-grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[s.jsx("stop",{offset:"0%",stopColor:"#f59565",stopOpacity:"0.76"}),s.jsx("stop",{offset:"45%",stopColor:"#ec814c",stopOpacity:"0.66"}),s.jsx("stop",{offset:"100%",stopColor:"#c96030",stopOpacity:"0.54"})]}),s.jsxs("linearGradient",{id:"rocket-nevada-highlight",x1:"0%",y1:"0%",x2:"70%",y2:"100%",children:[s.jsx("stop",{offset:"0%",stopColor:"#fff",stopOpacity:"0.22"}),s.jsx("stop",{offset:"100%",stopColor:"#fff",stopOpacity:"0"})]}),s.jsxs("linearGradient",{id:"rocket-ca-fill-grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[s.jsx("stop",{offset:"0%",stopColor:"#364a56",stopOpacity:"0.12"}),s.jsx("stop",{offset:"100%",stopColor:"#283c44",stopOpacity:"0.07"})]}),s.jsxs("filter",{id:"rocket-nevada-glow",x:"-70%",y:"-70%",width:"240%",height:"240%",children:[s.jsx("feGaussianBlur",{stdDeviation:"7",result:"blur1"}),s.jsx("feColorMatrix",{in:"blur1",type:"matrix",values:"1 0.45 0 0 0.85 0.25 0.25 0 0 0.28 0 0 0 0 0 0 0 0 0.55 0",result:"coloredBlur"}),s.jsxs("feMerge",{children:[s.jsx("feMergeNode",{in:"coloredBlur"}),s.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),s.jsx("clipPath",{id:"rocket-nevada-clip",children:s.jsx("path",{d:r})})]}),s.jsx("path",{d:n,fill:"none",stroke:"rgba(54,74,86,0.26)",strokeWidth:"1.5",strokeLinejoin:"round",strokeLinecap:"round"}),s.jsx("text",{x:"139",y:"279",textAnchor:"middle",fill:"rgba(40,60,68,0.18)",fontSize:"6.5",fontWeight:"700",letterSpacing:"0.08em",children:"CALIFORNIA"}),s.jsx("path",{d:r,fill:"rgba(236,129,76,0.22)",filter:"url(#rocket-nevada-glow)"}),s.jsx("path",{d:r,fill:"url(#rocket-nevada-fill-grad)",stroke:"rgba(245,149,101,1)",strokeWidth:"1.8",strokeLinejoin:"round",strokeLinecap:"round"}),s.jsx("path",{d:r,fill:"url(#rocket-nevada-highlight)",clipPath:"url(#rocket-nevada-clip)"}),s.jsx("path",{d:r,fill:"none",stroke:"rgba(255,220,185,0.62)",strokeWidth:"0.8",strokeLinejoin:"round",strokeLinecap:"round"}),s.jsx("text",{x:"181",y:"253",textAnchor:"middle",fill:"rgba(255,255,255,0.92)",fontSize:"8.5",fontWeight:"800",letterSpacing:"0.18em",children:"NEVADA"})]}),a.map((i,o)=>s.jsx(ue,{to:i.href,className:"absolute group",style:{left:`${(i.x-e.x)/e.w*100}%`,top:`${(i.y-e.y)/e.h*100}%`,zIndex:10},children:s.jsxs("div",{ref:l=>{t.current[o]=l},style:{transform:"translateY(-20px) scale(0)",opacity:0},children:[s.jsx("div",{className:"absolute rounded-full rocket-ripple-ring",style:{width:"30px",height:"30px",top:"-11px",left:"-11px",border:"1.5px solid rgba(236,129,76,0.45)",animationDelay:`${i.delay+.5}s`}}),s.jsx("div",{className:"relative flex items-center justify-center rounded-full transition-transform duration-200 group-hover:scale-110",style:{width:"22px",height:"22px",background:"rgba(255,255,255,0.96)",boxShadow:"0 4px 14px rgba(40,60,68,0.18)",border:"1px solid rgba(236,129,76,0.22)"},children:s.jsx(as,{name:"MapPinIcon",size:14,style:{color:i.id==="truckee"?"#6f7f87":"#ec814c"}})}),s.jsx("div",{style:{position:"absolute",left:i.labelOffsetX>=0?`${i.labelOffsetX+10}
1411px`:"auto",right:i.labelOffsetX<0?`${Math.abs(i.labelOffsetX)-2}px`:"auto",top:`${i.labelOffsetY}px`,whiteSpace:"nowrap",pointerEvents:"none",background:"rgba(255,255,255,0.96)",border:"1px solid rgba(236,129,76,0.22)",borderRadius:"7px",padding:"4px 10px",fontSize:"9px",fontWeight:"700",color:"#283c44",letterSpacing:"0.04em",lineHeight:"1.4",boxShadow:"0 4px 14px rgba(40,60,68,0.14)"},children:i.label})]})},i.id))]}),s.jsx("div",{className:"absolute -bottom-4 -left-4 md:-left-6 bg-white rounded-2xl p-4",style:{minWidth:"160px",boxShadow:"0 8px 32px rgba(40,60,68,0.15)",zIndex:5},children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center",style:{background:"rgba(236,129,76,0.1)"},children:s.jsx(as,{name:"MapPinIcon",size:18,style:{color:"#ec814c"}})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider font-semibold",style:{color:"rgba(40,60,68,0.5)"},children:"Service Area"}),s.jsx("p",{className:"text-[15px] rocket-font-display font-bold leading-tight",style:{color:"#283c44"},children:"6 Cities"})]})]})}),s.jsx("div",{className:"absolute -top-4 -right-4 md:-right-6 rounded-2xl p-4",style:{minWidth:"150px",background:"#283c44",boxShadow:"0 8px 32px rgba(40,60,68,0.25)",zIndex:5},children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center",style:{background:"rgba(236,129,76,0.2)"},children:s.jsx(as,{name:"ShieldCheckIcon",size:18,style:{color:"#f59565"}})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider font-semibold",style:{color:"rgba(255,255,255,0.5)"},children:"Top Carriers"}),s.jsx("p",{className:"text-[15px] rocket-font-display font-bold text-white leading-tight",children:"20+ Plans"})]})]})})]})}const FKe=[{id:"compare",icon:"MagnifyingGlassIcon",title:"Plan Comparison",description:"We compare every available plan in your county â not just the ones that pay the highest commission."},{id:"enroll",icon:"ClipboardDocumentCheckIcon",title:"Enrollment Support",description:"From application to confirmation, we guide you through every step so you are never left wondering if you are covered."},{id:"review",icon:"ArrowPathIcon",title:"Annual Plan Review",description:"Plans change every year. We proactively contact clients before open enrollment to review their fit."},{id:"claims",icon:"ShieldExclamationIcon",title:"Claims Advocacy",description:"When claims get denied, we help you navigate carrier processes and push for resolution."}],zKe=[{id:"individual",title:"Individual & Family",subtitle:"ACA Marketplace Plans",description:"Find the right plan for you and your family. We compare carriers to find coverage that fits your doctors, prescriptions, and budget.",features:["Marketplace & off-exchange plans","Subsidy eligibility check","Year-round SEP guidance","Prescription coverage review"],image:"https://images.unsplash.com/photo-1616543065781-8266a66a4f03",imageAlt:"Family sitting together outdoors in bright sunlight",accent:"#ec814c",colSpan:"lg:col-span-2",featured:!1,href:"/services/"},{id:"medicare",title:"Medicare",subtitle:"Parts A, B, C & D",description:"Navigate Medicare with confidence. We help you compare Medicare Advantage, Supplement, and Part D plans from top Nevada carriers.",features:["Medicare Advantage","Medigap Supplements","Part D drug plans","Annual plan review"],image:"https://img.rocket.new/generatedImages/rocket_gen_img_11689cd4a-1772098948028.png",imageAlt:"Senior couple smiling and reviewing documents together",accent:"#283c44",colSpan:"lg:col-span-1",featured:!0,href:"/medicare/"},{id:"group",title:"Group Benefits",subtitle:"Employer Health Plans",description:"Attract and retain top talent with competitive group health benefits. We design packages that work for your business and your team.",features:["Small & large group","Fully insured & self-funded","Benefits administration","Open enrollment support"],image:"https://img.rocket.new/generatedImages/rocket_gen_img_17dc798b2-1773767657346.png",imageAlt:"Professional team in a modern office collaborating together",accent:"#364a56",colSpan:"lg:col-span-1",featured:!1,href:"/small-business-health-coverage-2/"},{id:"dental",title:"Dental & Vision",subtitle:"Supplemental Coverage",description:"Complete your coverage with dental and vision plans. From basic preventive care to more comprehensive benef
1411its.",features:["Preventive & restorative dental","Orthodontics coverage","Vision exams & eyewear","No waiting periods available"],image:"https://images.unsplash.com/photo-1704455306251-b4634215d98f",imageAlt:"Bright dental office with modern equipment and natural lighting",accent:"#ec814c",colSpan:"lg:col-span-2",featured:!1,href:"/dental-insurance/"}];function Gte(){const t=w.useRef(null);return w.useEffect(()=>{const e=new IntersectionObserver(r=>{r.forEach(n=>{if(!n.isIntersecting)return;n.target.querySelectorAll(".rocket-scroll-reveal-hidden").forEach((i,o)=>{setTimeout(()=>i.classList.add("rocket-revealed"),o*120)}),e.unobserve(n.target)})},{threshold:.1});return t.current&&e.observe(t.current),()=>e.disconnect()},[]),s.jsx("section",{ref:t,id:"rocket-plans",className:"py-24 px-6 md:px-10 rocket-bg-cream",children:s.jsxs("div",{className:"max-w-7xl mx-auto",children:[s.jsxs("div",{className:"mb-16",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-[2px] h-4",style:{background:"#ec814c"}}),s.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] font-bold",style:{color:"#899aa4"},children:"Insurance Plans"})]}),s.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-6",children:[s.jsxs("h2",{className:"rocket-font-display font-bold leading-tight",style:{fontSize:"clamp(2rem, 4vw, 3.2rem)",color:"#283c44"},children:["Coverage for every",s.jsx("br",{}),"stage of life"]}),s.jsx("p",{className:"max-w-sm leading-relaxed text-base",style:{color:"#899aa4"},children:"We work with major carriers to find the right coverage for your situation, not to steer you into one product."})]})]}),s.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:zKe.map((e,r)=>s.jsxs(ue,{to:e.href,className:`rocket-scroll-reveal-hidden relative overflow-hidden rounded-[2rem] group cursor-pointer ${e.colSpan}`,style:{transitionDelay:`${r*.08}s`,minHeight:"320px",border:e.featured?"1px solid rgba(40,60,68,0.2)":"1px solid rgba(40,60,68,0.08)",background:e.featured?"#283c44":"#FFFFFF"},children:[e.featured?s.jsxs("div",{className:"absolute inset-0",children:[s.jsx("img",{src:e.image,alt:e.imageAlt,className:"w-full h-full object-cover opacity-20 group-hover:opacity-30 transition-opacity duration-500"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#283c44]/60 via-[#283c44]/80 to-[#283c44]/95"})]}):s.jsxs("div",{className:"absolute top-0 right-0 w-48 h-48 overflow-hidden rounded-bl-[4rem] opacity-0 group-hover:opacity-100 transition-all duration-500",children:[s.jsx("img",{src:e.image,alt:e.imageAlt,className:"w-full h-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-bl from-transparent to-white/90"})]}),s.jsxs("div",{className:"relative z-10 p-8 flex flex-col h-full gap-4",children:[s.jsx("div",{children:s.jsx("span",{className:"inline-block text-[10px] font-bold uppercase tracking-[0.2em] px-3 py-1 rounded-full",style:{background:e.featured?"rgba(236,129,76,0.2)":`${e.accent}20`,color:e.featured?"#f59565":e.accent}
1411,children:e.subtitle})}),s.jsx("h3",{className:`rocket-font-display font-bold leading-tight ${e.featured?"text-white":""}`,style:{fontSize:"clamp(1.4rem, 2.5vw, 1.9rem)",color:e.featured?void 0:"#283c44"},children:e.title}),s.jsx("p",{className:`text-sm leading-relaxed ${e.featured?"text-white/60":""}`,style:{color:e.featured?void 0:"#899aa4"},children:e.description}),s.jsx("ul",{className:"flex flex-col gap-2 mt-auto",children:e.features.map(n=>s.jsxs("li",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0",style:{background:`${e.accent}20`},children:s.jsx(as,{name:"CheckIcon",size:10,style:{color:e.accent}})}),s.jsx("span",{className:`text-[13px] font-medium ${e.featured?"text-white/70":""}`,style:{color:e.featured?void 0:"rgba(40,60,68,0.7)"},children:n})]},n))}),s.jsxs("span",{className:"mt-4 inline-flex items-center gap-2 text-sm font-bold uppercase tracking-[0.12em] border-b pb-1 transition-all duration-200 w-fit",style:{color:e.featured?"#f59565":"#283c44",borderColor:e.featured?"rgba(236,129,76,0.3)":"rgba(40,60,68,0.2)"},children:["Explore Coverage",s.jsx(as,{name:"ArrowRightIcon",size:14})]})]})]},e.id))})]})})}function Kte({showCta:t=!0}){const e=w.useRef(null);return w.useEffect(()=>{const r=new IntersectionObserver(n=>{n.forEach(a=>{if(!a.isIntersecting)return;a.target.querySelectorAll(".rocket-scroll-reveal-hidden").forEach((o,l)=>{setTimeout(()=>o.classList.add("rocket-revealed"),l*120)}),r.unobserve(a.target)})},{threshold:.1});return e.current&&r.observe(e.current),()=>r.disconnect()},[]),s.jsx("section",{ref:e,id:"rocket-services",className:"py-24 px-6 md:px-10 rocket-bg-beige",children:s.jsx("div",{className:"max-w-7xl mx-auto",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-16 items-center",children:[s.jsxs("div",{className:"lg:col-span-5 relative rocket-scroll-reveal-hidden",children:[s.jsxs("div",{className:"relative rounded-[2rem] overflow-hidden group",style:{aspectRatio:"4/5"},children:[s.jsx("img",{src:"https://img.rocket.new/generatedImages/rocket_gen_img_1b16922be-1772420009137.png",alt:"Insurance advisor reviewing health plan documents",className:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"}),s.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, rgba(40,60,68,0.6) 0%, transparent 100%)"}}),s.jsx("div",{className:"absolute bottom-8 left-8 right-8",children:s.jsxs("div",{className:"bg-white/10 backdrop-blur-md rounded-2xl p-5 border border-white/15",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-xl flex items-center justify-center",style:{background:"#ec814c"},children:s.jsx(as,{name:"CheckBadgeIcon",size:16,className:"text-white"})}),s.jsx("span",{className:"text-white font-bold text-sm",children:"Licensed in Nevada & California"})]}),s.jsx("p",{className:"text-white/60 text-xs leading-relaxed",children:"Certified independent broker â we represent you, not the insurance company."})]})})]}),s.jsxs("div",{className:"absolute -top-6 -right-6 md:-right-10 rounded-2xl p-5",style:{background:"#283c44",boxShadow:"0 20px 60px rgba(40,60,68,0.18)"},children:[s.jsx("div",{className:"text-3xl rocket-font-display font-bold text-white mb-1",children:"18+"}),s.jsx("p",{className:"text-[10px] font-bold uppercase tracking-widest text-white/40",children:"Years in Nevada"})]})]}),s.jsxs("div",{className:"lg:col-span-7",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[s.jsx("div",{className:"w-[2px] h-4",style:{background:"#ec814c"}}),s.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] font-bold",style:{color:"#899aa4"},children:"What We Do"})]}),s.jsxs("h2",{className:"rocket-font-display font-bold leading-tight mb-4",style:{fontSize:"clamp(1.8rem, 3.5vw, 3rem)",color:"#283c44"},children:["More than a broker.",s.jsx("br",{}),s.jsx("span",{style:{color:"#ec814c"},children:"Your health insurance guide."})]}),s.jsx("p",{className:"leading-relaxed mb-12 max-w-lg",style:{color:"#899aa4"},children:"Most brokers sell you a plan and disappear. We build long-term relationships and stay available when clients actually need help."}),s.jsx("div",{className:"space-y-8",children:FKe.map((r,n)=>s.jsxs("div",{className:"rocket-scroll-reveal-hidden flex gap-5 group cursor-default",style:{transitionDelay:`${n*.1}s`},children:[s.jsx("div",{className:"w-12 h-12 rounded-2xl flex items-center justify-center flex-shrink-0 transition-all duration-300 group-hover:bg-[#ec814c] group-hover:shadow-[0_0_40px_rgba(236,129,76,0.25)]",style:{background:"rgba(40,60,68,0.07)"},children:s.jsx(as,{name:r.icon,size:20,style:{color:"#283c44"}})}),s.jsxs("div",{className:"flex-1",children:[s.jsx("h3",{className:"rocket-font-display font-bold text-lg mb-2",style:{color:"#283c44"},children:r.title}),s.jsx("p",{className:"text-sm leading-relaxed",style:{color:"#899aa4"},children:r.description})]})]},r.id))}),t?s.jsx("div",{className:"mt-12 pt-8",style:{borderTop:"1px solid rgba(40,60,68,0.08)"},children:s.jsxs("a",{href:"#rocket-quote",className:"inline-flex items-center gap-2 px-8 py-4 rounded-full font-bold text-sm uppercase tracking-[0.15em] text-white transition-all duration-300 hover:bg-[#ec814c] hover:shadow-[0_0_40px_rgba(236,129,76,0.25)]",style:{background:"#283c44"},children:["Work With Us",s.jsx(as,{name:"ArrowRightIcon",size:16})]})}):null]})]})})})}const VKe=[{id:1,quote:"Health Benefits Associates saved our family over $4,200 a year on our premiums. They knew exactly which Reno-area carriers had the best network for our doctors.",name:"Marcus Delgado",role:"Small Business Owner",city:"Reno, NV",avatar:"https://img.rocket.new/generatedImages/rocket_gen_img_1c5f0df6d-1765049407852.png",saving:"$4,200/yr saved",savingColor:"#00A878",accent:"teal"},{id:2,quote:"When I turned 65, I was overwhelmed by Medicare options. My advisor walked me through every plan and found me coverage for under $40 a month.",name:"Patricia Nguyen",role:"Retired Teacher",city:"Carson City, NV",avatar:"https://img.rocket.new/generatedImages/rocket_gen_img_12b48922a-1766323260826.png",saving:"$0 broker fee",savingColor:"#D97706",accent:"amber"},{id:3,quote:"HBA designed a benefits package that helped us recruit better talent. Three hires specifically mentioned our health benefits as the reason they joined.",name:"Darnell Washington",role:"CEO, Cascade Logistics",city:"Sparks, NV",avatar:"https://img.rocket.new/generatedImages/rocket_gen_img_1
1411dd854dd3-1766126793228.png",saving:"22 employees covered",savingColor:"#00A878",accent:"teal"},{id:4,quote:"I moved from California to Fernley and had no idea how Nevada insurance worked. HBA found me the same quality coverage for 22% less than what I was paying.",name:"Sophia Reinholt",role:"Registered Nurse",city:"Fernley, NV",avatar:"https://img.rocket.new/generatedImages/rocket_gen_img_14497812a-1770037736077.png",saving:"22% less premium",savingColor:"#D97706",accent:"amber"},{id:5,quote:"I've been with HBA for 9 years. Every year they call me before open enrollment to review my plan. That proactive service is rare.",name:"James Trevino",role:"Contractor",city:"Las Vegas, NV",avatar:"https://img.rocket.new/generatedImages/rocket_gen_img_1dc64ab65-1763293842844.png",saving:"9 years of trust",savingColor:"#00A878",accent:"teal"}],UKe={reno:"Reno, NV","carson-city-minden":"Carson City / Minden, NV",sparks:"Sparks, NV",fernley:"Fernley, NV",henderson:"Las Vegas, NV",truckee:"Truckee, CA"};function qKe(t,e){return UKe[t]??e??t}function WKe(t){const e=[...t];for(let r=e.length-1;r>0;r--){const n=Math.floor(Math.random()*(r+1));[e[r],e[n]]=[e[n],e[r]]}return e}function CV(){return s.jsx("div",{className:"flex gap-0.5",children:[...Array(5)].map((t,e)=>s.jsx("svg",{className:"w-3 h-3",fill:"#ec814c",viewBox:"0 0 20 20",children:s.jsx("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})},e))})}function GKe(t){const e=t.trim().split(/\s+/).filter(Boolean);return e.length?e.slice(0,2).map(r=>r.charAt(0).toUpperCase()).join(""):"?"}function $V({src:t,name:e,color:r}){const[n,a]=w.useState(!1);return w.useEffect(()=>{a(!1)},[t]),!t||n?s.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-full text-xs font-black text-white",style:{background:`linear-gradient(135deg, ${r}, #1e2e35)`,boxShadow:`0 0 0 2px ${r}50`},"aria-label":e,children:GKe(e)}):s.jsx("img",{src:t,alt:e,referrerPolicy:"no-referrer",className:"h-9 w-9 rounded-full object-cover",style:{boxShadow:`0 0 0 2px ${r}50`},onError:()=>a(!0)})}function D_({layout:t="slider"}={}){const e=t==="masonry",r=w.useRef(null),n=w.useRef(null),[a,i]=w.useState(!1),[o,l]=w.useState([]);w.useEffect(()=>{const d=new IntersectionObserver(([h])=>{h.isIntersecting&&(i(!0),d.disconnect())},{threshold:.1});return r.current&&d.observe(r.current),()=>d.disconnect()},[]),w.useEffect(()=>{fetch(ut(`/api/reviews/recent?limit=${e?5:60}`)).then(d=>d.ok?d.json():[]).then(d=>{const h=Array.isArray(d)?d:[];l(WKe(h))}).catch(()=>l([]))},[e]);const c=o.length?o.map((d,h)=>({id:d.id,quote:d.review_text??"Great service and clear guidance.",name:d.reviewer_name??"Anonymous",role:"Client",city:qKe(d.office_code,d.office_city),avatar:d.reviewer_profile_photo_url,saving:`${Math.max(1,Math.min(5,d.rating||5))}/5 stars`,savingColor:h%2===0?"#00A878":"#D97706",accent:h%2===0?"teal":"amber"})):VKe,u=d=>{var h;(h=n.current)==null||h.scrollBy({left:d==="left"?-420:420,behavior:"smooth"})};return s.jsxs("section",{ref:r,id:"rocket-testimonials",className:"py-24 px-6 md:px-10 rocket-bg-navy-dark overflow-hidden relative",children:[s.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none",style:{width:"900px",height:"500px",background:"radial-gradient(ellipse, rgba(236,129,76,0.05) 0%, transparent 70%)"}}),s.jsxs("div",{className:"max-w-6xl mx-auto relative z-10",children:[s.jsxs("div",{className:"mb-14",style:{opacity:a?1:0,transform:a?"translateY(0)":"translateY(20px)",transition:"opacity 0.6s ease, transform 0.6s ease"},children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-[2px] h-4",style:{background:"#ec814c"}}),s.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] font-bold",style:{color:"rgba(255,255,255,0.4)"},children:"Client Stories"})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-end sm:justify-between gap-4",children:[s.jsxs("h2",{className:"rocket-font-display font-bold text-white leading-tight",style:{fontSize:"clamp(1.8rem, 4vw, 3rem)"},children:["Real people. ",s.jsx("span",{style:{color:"#ec814c"},children:"Real savings."})]}),s.jsxs("div",{className:"flex flex-col items-start gap-4 sm:items-end",children:[s.jsx("p",{className:"text-white/35 text-sm max-w-xs sm:text-right",children:"Trusted by Nevada families across Reno, Sparks, Carson City and beyond."}),e?null:s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{type:"button",onClick:()=>u("left"),className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-white/10 bg-white/8 text-white shadow-sm transition hover:border-[#ec814c]/40 hover:text-[#ec814c]","aria-label":"Previous reviews",children:s.jsx(Fu,{className:"h-5 w-5","aria-hidden":!0})}),s.jsx("button",{type:"button",onClick:()=>u("right"),className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-white/10 bg-white/8 text-white shadow-sm transition hover:border-[#ec814c]/40 hover:text-[#ec814c]","aria-label":"Next reviews",children:s.jsx(Vn,{className:"h-5 w-5","aria-hidden":!0})})]})]})]})]}),e?s.jsx("div",{className:"columns-1 gap-4 sm:columns-2 lg:columns-3",children:c.map((d,h)=>s.jsx("div",{className:"relative mb-4 break-inside-avoid group",style:{opacity:a?1:0,transform:a?"translateY(0)":"translateY(28px)",transition:`opacity 0.55s cubic-bezier(0.22,1,0.36,1) ${h*90}ms, transform 0.55s cubic-bezier(0.22,1,0.36,1) ${h*90}ms`},children:s.jsxs("div",{className:"relative flex flex-col justify-between overflow-hidden rounded-2xl border border-white/8 p-6",style:{background:d.accent==="teal"?"linear-gradient(145deg, rgba(236,129,76,0.07) 0%, rgba(30,46,53,0.88) 60%)":"linear-gradient(145deg, rgba(245,149,101,0.08) 0%, rgba(30,46,53,0.88) 60%)",backdropFilter:"blur(12px)"},children:[s.jsx("div",{className:"absolute -top-8 -right-8 w-24 h-24 rounded-full pointer-events-none",style:{background:d.accent==="teal"?"radial-gradient(circle, rgba(236,129,76,0.18) 0%, transparent 70%)":"radial-gradient(circle, rgba(245,149,101,0.18) 0%, transparent 70%)"}}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-start justify-between mb-4",children:[s.jsx(CV,{}),s.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider px-2.5 py-1 rounded-full",style:{color:d.savingColor,background:d.accent==="teal"?"rgba(236,129,76,0.12)":"rgba(245,149,101,0.12)",border:`1px solid ${d.savingColor}30`},children:d.saving})]}),s.jsx("svg",{className:"w-6 h-6 mb-2 opacity-20",fill:d.savingColor,viewBox:"0 0 24 24",children:s.jsx("path",{d:"M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z"})}),s.jsxs("p",{className:"text-white/75 leading-relaxed text-[0.9rem]",children:['"',d.quote,'"']})]}),s.jsxs("div",{className:"flex items-center gap-3 mt-5 pt-4 border-t border-white/8",children:[s.jsxs("div",{className:"relative",children:[s.jsx($V,{src:d.avatar,name:d.name,color:d.savingColor}),s.jsx("span",{className:"absolute -bottom-0.5 -right-0.5 w-2.5 h-2.5 rounded-full border-2",style:{background:d.savingColor,borderColor:"#1e2e35"}})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-white font-semibold text-sm leading-tight",children:d.name}),s.jsxs("p",{className:"text-white/40 text-[11px] mt-0.5",children:[d.role," · ",d.city]})]})]})]})},d.id))}):s.jsx("div",{ref:n,className:"flex snap-x snap-mandatory gap-5 overflow-x-auto scroll-smooth py-8 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:c.map((d,h)=>s.jsx("div",{className:"relative min-w-[82%] snap-start sm:min-w-[420px] lg:min-w-[23.5%]",style:{opacity:a?1:0,transform:a?"translateY(0)":"translateY(28px)",transition:`opacity 0.55s cubic-bezier(0.22,1,0.36,1) ${Math.min(h,8)*70}ms, transform 0.55s cubic-bezier(0.22,1,0.36,1) ${Math.min(h,8)*70}ms`},children:s.jsxs("div",{tabIndex:0,className:"group/review relative flex h-full flex-col justify-between overflow-hidden rounded-2xl border border-white/8 p-6 transition duration-300 hover:z-20 hover:-translate-y-3 hover:scale-[1.04] hover:border-[#ec814c]/30 hover:shadow-[0_28px_70px_-24px_rgba(0,0,0,0.46)] focus:z-20 focus:-translate-y-3 focus:scale-[1.04] focus:border-[#ec814c]/30 focus:shadow-[0_28px_70px_-24px_rgba(0,0,0,0.46)] focus:outline-none focus:ring-2 focus:ring-[#ec814c]/40",style:{background:d.accent==="teal"?"linear-gradient(145deg, rgba(236,129,76,0.07) 0%, rgba(30,46,53,0.88) 60%)":"linear-gradient(145deg, rgba(245,149,101,0.08) 0%, rgba(30,46,53,0.88) 60%)",backdropFilter:"blur(12px)"},children:[s.jsx("div",{className:"absolute -top-8 -right-8 w-24 h-24 rounded-full pointer-events-none",style:{background:d.accent==="teal"?"radial-gradient(circle, rgba(236,129,76,0.18) 0%, transparent 70%)":"radial-gradient(circle, rgba(245,149,101,0.18) 0%, transparent 70%)"}}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-start justify-between mb-4",children:[s.jsx(CV,{}),s.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider px-2.5 py-1 rounded-full",style:{color:d.savingColor,background:d.accent==="teal"?"rgba(236,129,76,0.12)":"rgba(245,149,101,0.12)",border:`1px solid ${d.savingColor}30`},children:d.saving})]}),s.jsx("svg",{className:"w-6 h-6 mb-2 opacity-20",fill:d.savingColor,viewBox:"0 0 24 24",children:s.jsx("path",{d:"M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z"})}),s.jsxs("p",{className:"line-clamp-5 text-white/75 leading-relaxed text-[0.9rem] transition-all duration-300 group-hover/review:line-clamp-none group-focus/review:line-clamp-none",children:['"',d.quote,'"']})]}),s.jsxs("div",{className:"flex items-center gap-3 mt-5 pt-4 border-t border-white/8",children:[s.jsxs("div",{className:"relative",children:[s.jsx($V,{src:d.avatar,name:d.name,color:d.savingColor}),s.jsx("span",{className:"absolute -bottom-0.5 -right-0.5 w-2.5 h-2.5 rounded-full border-2",style:{background:d.savingColor,borderColor:"#1e2e35"}})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-white font-semibold text-sm leading-tight",children:d.name}),s.jsxs("p",{className:"text-white/40 text-[11px] mt-0.5",children:[d.role," · ",d.city]})]})]})]})},d.id))})]})]})}function Yte(){const t=w.useRef(null),[e,r]=w.useState(!1),[n,a]=w.useState("");return w.useEffect(()=>{const i=new IntersectionObserver(o=>{o.forEach(l=>{if(!l.isIntersecting)return;l.target.querySelectorAll(".rocket-scroll-reveal-hidden").forEach((u,d)=>{setTimeout(()=>u.classList.add("rocket-revealed"),d*100)}),i.unobserve(l.target)})},{threshold:.15});return t.current&&i.observe(t.current),()=>i.disconnect()},[]),s.jsxs("section",{ref:t,id:"rocket-quote",className:"py-24 px-6 md:px-10 rocket-bg-navy-dark relative overflow-hidden",children:[s.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 pointer-events-none",style:{background:"radial-gradient(circle, rgba(236,129,76,0.08) 0%, transparent 70%)"}}),s.jsx("div",{className:"absolute bottom-0 left-0 w-80 h-80 pointer-events-none",style:{background:"radial-gradient(circle, rgba(40,60,68,0.3) 0%, transparent 70%)"}}),s.jsx("div",{className:"max-w-7xl mx-auto relative z-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[s.jsxs("div",{className:"rocket-scroll-reveal-hidden",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[s.jsx("div",{className:"w-[2px] h-4",style:{background:"#ec814c"}}),s.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] font-bold",style:{color:"rgba(255,255,255,0.4)"},children:"Free Consultation"})]}),s.jsxs("h2",{className:"rocket-font-display font-bold text-white leading-tight mb-6",style:{fontSize:"clamp(2rem, 4vw, 3.5rem)"},children:["Get your free",s.jsx("br",{}),s.jsx("span",{style:{color:"#ec814c"},children:"Nevada health"}),s.jsx("br",{}),"insurance quote."]}),s.jsx("p",{className:"text-white/55 leading-relaxed mb-10 text-base max-w-md",children:"No pressure. No spam. Just a quick conversation with a local Nevada expert who can show you what you qual
1411ify for."}),s.jsx("div",{className:"space-y-4",children:[{icon:"ShieldCheckIcon",text:"Licensed Nevada & California broker"},{icon:"CurrencyDollarIcon",text:"No cost to you â we are paid by carriers"},{icon:"PhoneIcon",text:"Local office: (775) 828-1216"}].map(i=>s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:"rgba(236,129,76,0.15)"},children:s.jsx(as,{name:i.icon,size:16,style:{color:"#ec814c"}})}),s.jsx("span",{className:"text-white/60 text-sm",children:i.text})]},i.text))})]}),s.jsx("div",{className:"rocket-scroll-reveal-hidden",style:{transitionDelay:"0.15s"},children:e?s.jsxs("div",{className:"rounded-[2rem] p-12 text-center backdrop-blur-sm",style:{background:"rgba(40,60,68,0.6)",border:"1px solid rgba(236,129,76,0.2)"},children:[s.jsx("div",{className:"w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-6",style:{background:"rgba(236,129,76,0.2)"},children:s.jsx(as,{name:"CheckIcon",size:32,style:{color:"#ec814c"}})}),s.jsx("h3",{className:"rocket-font-display font-bold text-white text-2xl mb-3",children:"We'll be in touch!"}),s.jsxs("p",{className:"text-white/55 leading-relaxed",children:["Thanks, ",n.split(" ")[0]||"there",". A local advisor will follow up shortly."]})]}):s.jsx(Sh,{title:"Contact Advisory",showMessage:!0,onSuccess:i=>{a(i.name),r(!0)}})})]})})]})}const KKe=[Ya.renoLandscape,Ya.nevadaWilderness,Ya.heroVictorHughes,Ya.heroDanielAkre,Ya.heroKiraLaktionov,Ya.heroBryceBoehler],YKe="https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/2026/05/alex-final-copy-1778264919769.png",XKe=[{icon:Fs,value:30,suffix:"+",label:"Years of Experience",prefix:""},{icon:sn,value:15e3,suffix:"+",label:"Clients Served",prefix:""},{icon:Un,value:500,suffix:"+",label:"5-Star Reviews",prefix:""},{icon:H0,value:0,suffix:"",label:"Cost to You",prefix:"$"}],JKe=[{city:"Reno",slug:"reno",address:"6170 Mae Anne Ave, Suite 4",phone:"(775) 828-1216"},{city:"Las Vegas",slug:"henderson",address:"170 S Green Valley Pkwy",phone:"(702) 710-5227"},{city:"Sparks",slug:"sparks",address:"1605 E Lincoln Way, Suite B",phone:"(775) 828-1216"},{city:"Carson City",slug:"carson-city",address:"1775 Snyder Ave, Suite A",phone:"(775) 828-1216"},{city:"Fernley",slug:"fernley",address:"815 N Center St, Suite 1",phone:"(775) 828-1216"},{city:"Truckee",slug:"truckee",address:"10015 Palisades Dr, Suite 7",phone:"(775) 828-1216"}];function QKe(t,e=2e3){const[r,n]=w.useState(0),a=w.useRef(null),i=tl(a,{once:!0,margin:"-50px"}),o=w.useRef(!1);return w.useEffect(()=>{if(!i||o.current)return;if(o.current=!0,t===0){n(0);return}const l=performance.now(),c=u=>{const d=Math.min((u-l)/e,1),h=1-Math.pow(1-d,3);n(Math.round(h*t)),d<1&&requestAnimationFrame(c)};requestAnimationFrame(c)},[i,t,e]),{count:r,ref:a}}function Bp({children:t,className:e="",delay:r=0}){const n=w.useRef(null),a=tl(n,{once:!0,margin:"-60px"});return s.jsx(Nt.div,{ref:n,initial:{opacity:0,y:36},animate:a?{opacity:1,y:0}:{},transition:{duration:.65,ease:[.22,1,.36,1],delay:r},className:e,children:t})}function ZKe({icon:t,value:e,suffix:r,prefix:n,label:a}){const{count:i,ref:o}=QKe(e,e>1e3?2e3:1400),l=e>=1e3?i.toLocaleString():i.toString();return s.jsx("div",{className:"flex min-h-[4.5rem] flex-col justify-center border-l-[3px] border-hba-orange-1/45 bg-gradient-to-br from-slate-50/90 to-white/80 px-3 py-2.5 pl-3.5 sm:min-h-[4.75rem] sm:px-3.5 sm:py-3",children:s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(t,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1 opacity-90","aria-hidden":!0}),s.jsxs("div",{className:"min-w-0",children:[s.jsxs("p",{ref:o,className:"text-[1.125rem] font-extrabold leading-none tracking-tight text-hba-blue-1 tabular-nums sm:text-xl",children:[n,l,r]}),s.jsx("p",{className:"mt-1 text-[0.7rem] font-medium uppercase tracking-wide text-slate-600 sm:text-[0.75rem]",children:a})]})]})})}function eYe({city:t,img:e,delay:r}){return s.jsxs(Nt.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.45,delay:r,ease:[.22,1,.36,1]},className:"group relative aspect-[5/3] w-full overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0",children:s.jsx(Dt,{src:e,alt:t,className:"h-full w-full object-cover brightness-[0.96] saturate-[0.5] transition-all duration-[650ms] ease-out group-hover:scale-[1.035] group-hover:brightness-[1.02] group-hover:saturate-100"})}),s.jsx("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-hba-blue-1/82 via-hba-blue-1/12 to-transparent transition-opacity duration-500 group-hover:from-hba-blue-1/68 group-hover:via-hba-blue-1/8"}),s.jsx("div",{className:"absolute inset-x-0 bottom-0 p-2.5 sm:p-3",children:s.jsx("span",{className:"text-base font-semibold tracking-wide text-white drop-shadow-sm sm:text-lg",children:t})})]})}function tYe({backgroundSrc:t}){return s.jsxs("div",{className:"pointer-events-none absolute inset-0 z-[1] overflow-hidden","aria-hidden":!0,
1411children:[s.jsx("div",{className:"absolute inset-0",children:s.jsx(Dt,{src:t,alt:"",className:"h-full w-full min-h-[280px] object-cover object-[center_65%] sm:object-[center_60%]"},t)}),s.jsx("div",{className:"absolute inset-0",style:{background:["linear-gradient(90deg, rgb(255 255 255 / 0.94) 0%, rgb(248 250 252 / 0.82) 36%, rgb(255 255 255 / 0.42) 52%, rgb(255 255 255 / 0.08) 72%, transparent 100%)","linear-gradient(180deg, rgb(255 255 255 / 0.88) 0%, rgb(255 255 255 / 0.35) 28%, transparent 52%, rgb(15 23 42 / 0.06) 100%)"].join(", ")}}),s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2",style:{width:"min(1600px, 145vw)",height:"min(380px, 48vh)",background:"radial-gradient(ellipse 78% 56% at 50% 0%, rgb(248 250 252 / 0.55), transparent 72%)"}}),s.jsx("div",{className:"absolute inset-x-0 top-0 h-[42%] max-h-[320px]",style:{background:"linear-gradient(to bottom, rgb(255 255 255 / 0.92) 0%, rgb(255 255 255 / 0.5) 55%, transparent 100%)"}})]})}const _V="radial-gradient(ellipse 92% 98% at 50% 40%, #000 40%, rgba(0,0,0,0.9) 54%, rgba(0,0,0,0.64) 68%, rgba(0,0,0,0.3) 82%, rgba(0,0,0,0.08) 92%, transparent 100%)";function rYe(){const[t,e]=w.useState([]);w.useEffect(()=>{fetch(ut("/api/homepage/location-images")).then(a=>a.ok?a.json():[]).then(a=>e(Array.isArray(a)?a:[])).catch(()=>e([]))},[]);const r=new Map(t.map(a=>[a.location_slug,a])),n=a=>{const i=r.get(a);return i?j0(i.image_url,i.updated_at):GS[a]};return s.jsxs("div",{className:"min-h-screen bg-white font-sans text-foreground",children:[s.jsxs("section",{className:"relative isolate min-h-0 overflow-hidden bg-slate-50/80",children:[s.jsx(tYe,{backgroundSrc:KKe[0]}),s.jsx("div",{className:"relative z-[2] mx-auto max-w-[min(100%,1440px)] px-3 pt-2 pb-11 sm:px-4 sm:pt-3 sm:pb-12 lg:px-5 lg:pt-4 lg:pb-14",children:s.jsxs("div",{className:"grid items-stretch gap-8 lg:grid-cols-12 lg:gap-6 xl:gap-10",children:[s.jsxs("div",{className:"flex flex-col gap-4 sm:gap-5 lg:col-span-5 lg:max-w-xl xl:max-w-none xl:pr-4",children:[s.jsx("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:s.jsxs(Nt.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.4},className:"inline-flex w-fit items-center gap-2 text-[0.8125rem] font-semibold text-hba-blue-1 sm:text-sm",children:[s.jsx("span",{className:"flex h-7 w-7 items-center justify-center rounded-md bg-hba-orange-1/12",children:s.jsx(is,{className:"h-3.5 w-3.5 text-hba-orange-1","aria-hidden":!0})}),"Serving Nevada from 6 Local Offices"]})}),s.jsxs(Nt.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.55,delay:.06},className:"text-balance text-hba-blue-1",children:[s.jsx("span",{className:"block text-[1.125rem] font-bold leading-snug sm:text-xl lg:text-[1.35rem]",children:"Navigating Health Insurance with"}),s.jsx("span",{className:"mt-1 block text-[clamp(2.25rem,5vw,3.25rem)] font-extrabold leading-[1.05] tracking-tight text-hba-orange-1",children:"Zero-Cost"}),s.jsx("span",{className:"mt-1 block text-[1.125rem] font-bold leading-snug sm:text-xl lg:text-[1.35rem]",children:"Expert Guidance"})]}),s.jsx(Nt.p,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,delay:.12},className:"max-w-prose text-[0.9375rem] leading-[1.65] text-slate-700 sm:text-base",children:"You're not a case number to us â you're a neighbor. Our local brokers take time to listen, explain your options in plain language, and help you move forward with confidence. We compare all options to find a plan that best fits your needs."}),s.jsx(Nt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.45,delay:.18},className:"grid grid-cols-2 gap-2 sm:gap-2.5",role:"list","aria-label":"Health Benefits Associates at a glance",children:XKe.map(a=>s.jsx("div",{role:"listitem",children:s.jsx(ZKe,{...a})},a.label))}),s.jsxs(Nt.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.45,delay:.24},className:"flex flex-col gap-3 pt-1 sm:flex-row sm:flex-wrap sm:items-stretch",children:[s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"group inline-flex min-h-[48px] flex-1 items-center justify-center gap-2 rounded-lg bg-hba-orange-1 px-5 py-3.5 text-base font-semibold text-white shadow-sm transition hover:bg-hba-orange-2 sm:flex-none sm:px-7",children:["Talk to a Local Advisor",s.jsx(Xe,{className:"h-5 w-5 transition-transform group-hover:translate-x-0.5","aria-hidden":!0})]}),s.jsxs(ue,{to:"/locations",className:"inline-flex min-h-[48px] flex-1 items-center justify-center gap-2 rounded-lg border border-slate-300/90 bg-white px-5 py-3.5 text-base font-semibold text-hba-blue-1 transition hover:border-hba-blue-1/35 hover:bg-slate-50/80 sm:flex-none sm:px-6",children:[s.jsx(tr,{className:"h-5 w-5 shrink-0 text-hba-orange-1","aria-hidden":!0}),"Find Your Nearest Office"]})]})]}),s.jsxs("div",{className:"min-h-0 lg:col-span-7 lg:flex lg:flex-col lg:justify-center",children:[s.jsx("div",{className:"mb-3 sm:mb-3.5",children:s.jsx("p",{className:"text-[0.6875rem] font-medium uppercase tracking-[0.14em] text-slate-500 sm:text-xs",children:"Office locations"})}),s.jsx("div",{className:"grid grid-cols-2 grid-rows-3 gap-[3px] bg-slate-300/35 sm:gap-1 lg:min-h-[min(52vh,520px)]",children:JKe.map((a,i)=>s.jsx(ue,{to:`/locations/${a.slug}`,className:"relative min-w-0 overflow-hidden bg-slate-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1 focus-visible:ring-offset-2",children:s.jsx(eYe,{city:a.city,img:n(a.slug),delay:.08+i*.04})},a.city))})]})]})})]}),s.jsx(Wte,{}),s.jsx(vW,{}),s.jsx("section",{className:"bg-slate-50 py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[s.jsx(Bp,{children:s.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-16",children:[s.jsx("p",{className:"text-hba-orange-1 font-bold text-sm uppercase tracking-widest mb-3",children:"Simple & Supportive"}),s.jsx("h2",{className:"text-3xl lg:text-4xl font-extrabold text-hba-blue-1 mb-4",children:"How It Works"}),s.jsx("p",{className:"text-lg text-gray-500 leading-relaxed",children:"Getting the right coverage shouldn't be complicated. Here's how we make it easy."})]})}),s.jsxs("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[s.jsx("div",{className:"hidden md:block absolute top-14 left-[12.5%] right-[12.5%] h-0.5 bg-gray-200"}),[{title:"Talk with a Local Advisor",desc:"Call us, visit an office, or schedule a time that works for you."},{title:"Review Your Needs",desc:"We look at your doctors, prescriptions, and budget to understand what matters."},{title:"Compare Your Options",desc:"See a clear side-by-side comparison so you can make an informed decision."},{title:"Enroll with Confidence",desc:"We handle enrollment and stay available for questions year-round."}].map((a,i)=>s.jsx(Bp,{delay:i*.1,children:s.jsxs("div",{className:"relative text-center",children:[s.jsx("div",{className:"relative z-10 inline-flex items-center justify-center w-16 h-16 rounded-full bg-hba-blue-1 text-white text-xl font-bold mb-5 shadow-lg",children:i+1}),s.jsx("h3",{className:"text-lg font-bold text-hba-blue-1 mb-3",children:a.title}),s.jsx("p",{className:"text-gray-500 leading-relaxed",children:a.desc})]})},a.title))]})]})}),s.jsx(D_,{layout:"masonry"}),s.jsxs("section",{className:"relative overflow-hidden bg-[#e8e4df] py-16 md:py-20 lg:py-24",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#e8e4df] via-[#ebe7e2] to-[#e5e1dc] opacity-70"}),s.jsxs("div",{className:"absolute inset-y-0 right-0 w-full lg:w-[58%]",children:[s.jsx(Dt,{src:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/2026/07/reno-2-location-1783355843190.jpg",alt:"",className:"h-full w-full object-cover object-center opacity-35","aria-hidden":!0}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#e8e4df] via-[#e8e4df]/50 to-[#0d2f46]/45"}),s.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_78%_3
14110%,rgba(255,255,255,0.42),transparent_28%),radial-gradient(circle_at_65%_60%,rgba(4,58,89,0.2),transparent_42%)]"})]}),s.jsx("div",{className:"relative z-10 mx-auto max-w-7xl px-6",children:s.jsxs("div",{className:"grid items-center gap-10 lg:grid-cols-[minmax(0,1fr)_420px] lg:gap-8",children:[s.jsx(Bp,{children:s.jsxs("div",{className:"max-w-2xl",children:[s.jsx("p",{className:"mb-3 text-hba-orange-1 font-bold text-sm uppercase tracking-widest",children:"Local Leadership"}),s.jsx("h2",{className:"text-3xl lg:text-4xl font-extrabold text-hba-blue-1 mb-6",children:"A Local Team You Can Count On"}),s.jsx("p",{className:"text-lg text-gray-700 leading-relaxed mb-6",children:"Health Benefits Associates was built on a simple belief: Nevadans deserve someone local they can trust for health insurance guidance. For over 30 years, our team has been part of this community â advising neighbors, friends, and families across the state."}),s.jsxs("blockquote",{className:"border-l-4 border-hba-orange-1 pl-6 my-8",children:[s.jsx("p",{className:"text-xl text-hba-blue-1 font-medium italic leading-relaxed mb-3",children:`"As a 4th generation Nevadan, we're here for our community. Our team looks forward to helping you or your business find the right options and be a consistent resource."`}),s.jsx("cite",{className:"text-sm text-gray-500 not-italic font-semibold",children:"â Alex Sampson, Health Benefits Associates"})]})]})}),s.jsx(Bp,{delay:.12,children:s.jsxs("div",{className:"relative mx-auto flex w-full max-w-[430px] justify-center lg:justify-end",children:[s.jsx("div",{className:"absolute -inset-x-10 bottom-10 top-12 rounded-[3rem] bg-gradient-to-br from-white/45 via-white/10 to-hba-orange-1/15 blur-3xl"}),s.jsx("div",{className:"absolute inset-x-8 bottom-8 top-10 rounded-[2.5rem] border border-white/30 bg-white/10 backdrop-blur-[2px]"}),s.jsxs("div",{className:"relative h-[480px] w-[340px] overflow-hidden sm:h-[560px] sm:w-[390px]",children:[s.jsx("div",{className:"pointer-events-none absolute inset-x-6 inset-y-5 z-10 rounded-[48%] bg-white/10 blur-2xl"}),s.jsx("div",{className:"pointer-events-none absolute inset-x-10 bottom-0 z-30 h-24 rounded-t-full bg-gradient-to-t from-[#e8e4df] via-[#e8e4df]/70 to-transparent blur-xl"}),s.jsx(Dt,{src:YKe,alt:"Alex Sampson â Health Benefits Associates",className:"relative z-20 h-full w-full object-cover object-top",style:{transform:"translateY(1%) scale(1.02)",transformOrigin:"center top",maskImage:_V,WebkitMaskImage:_V,filter:"drop-shadow(0 24px 36px rgba(4, 58, 89, 0.22))"}})]})]})})]})})]}),s.jsxs("section",{className:"bg-hba-blue-1 py-20 lg:py-24 relative overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-hba-blue-1 via-hba-blue-2 to-hba-blue-1"}),s.jsx("div",{className:"absolute top-0 left-1/2 w-[600px] h-[600px] bg-hba-orange-1/5 rounded-full blur-[180px] -translate-x-1/2 -translate-y-1/2"}),s.jsx(Bp,{className:"relative z-10",children:s.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl xl:text-5xl font-extrabold text-white mb-6 leading-tight",children:"Get Local Help at No Cost to You"}),s.jsx("p",{className:"text-xl text-white/70 leading-relaxed mb-10 max-w-2xl mx-auto",children:"Whether you're exploring Medicare, shopping for family coverage, or comparing group plans â a local Nevada advisor is ready to help."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:[s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"group inline-flex items-center justify-center gap-2 bg-hba-orange-1 hover:bg-hba-orange-2 text-white text-lg font-bold px-10 py-5 rounded-xl transition-all shadow-lg hover:shadow-xl hover:-translate-y-0.5",children:["Talk to a Nevada Advisor",s.jsx(Xe,{className:"w-5 h-5 group-hover:translate-x-0.5 transition-transform"})]}),s.jsxs("a",{href:"tel:7758281216",className:"inline-flex items-center justify-center gap-2 bg-white/10 hover:bg-white/20 text-white border border-white/20 text-lg font-bold px-10 py-5 rounded-xl transition-all hover:-translate-y-0.5",children:[s.jsx(Ut,{className:"w-5 h-5"})," (775) 828-1216"]})]}),s.jsx("p",{className:"text-white/50 text-sm",children:"Available Monday â Friday, 8:00 AM â 5:00 PM ⢠Walk-ins welcome at all 6 locations"})]})})]})]})}const nYe=[Ya.renoLandscape,Ya.nevadaWilderness,Ya.heroVictorHughes,Ya.heroDanielAkre,Ya.heroKiraLaktionov,Ya.heroBryceBoehler],aYe="https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/2026/05/alex-final-copy-1778264919769.png",AV="radial-gradient(ellipse 92% 98% at 50% 40%, #000 40%, rgba(0,0,0,0.9) 54%, rgba(0,0,0,0.64) 68%, rgba(0,0,0,0.3) 82%, rgba(0,0,0,0.08) 92%, transparent 100%)",sYe=[{icon:Fs,value:30,suffix:"+",label:"Years of Experience",prefix:""},{icon:sn,value:15e3,suffix:"+",label:"Clients Served",prefix:""},{icon:Un,value:500,suffix:"+",label:"5-Star Reviews",prefix:""},{icon:H0,value:0,suffix:"",label:"Cost to You",prefix:"$"}],iYe=[{city:"Reno",slug:"reno"},{city:"Las Vegas",slug:"henderson"},{city:"Sparks",slug:"sparks"},{city:"Carson City",slug:"carson-city"},{city:"Fernley",slug:"fernley"},{city:"Truckee",slug:"truckee"}];function oYe(t,e=2e3){const[r,n]=w.useState(0),a=w.useRef(null),i=tl(a,{once:!0,margin:"-50px"}),o=w.useRef(!1);return w.useEffect(()=>{if(!i||o.current)return;if(o.current=!0,t===0){n(0);return}const l=performance.now(),c=u=>{const d=Math.min((u-l)/e,1),h=1-Math.pow(1-d,3);n(Math.round(h*t)),d<1&&requestAnimationFrame(c)};requestAnimationFrame(c)},[i,t,e]),{count:r,ref:a}}function lYe({icon:t,value:e,suffix:r,prefix:n,label:a}){const{count:i,ref:o}=oYe(e,e>1e3?2e3:1400),l=e>
1411=1e3?i.toLocaleString():i.toString();return s.jsx("div",{className:"flex min-h-[4.5rem] flex-col justify-center border-l-[3px] border-hba-orange-1/45 bg-gradient-to-br from-slate-50/90 to-white/80 px-3 py-2.5 pl-3.5 sm:min-h-[4.75rem] sm:px-3.5 sm:py-3",children:s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(t,{className:"mt-0.5 h-4 w-4 shrink-0 text-hba-orange-1 opacity-90","aria-hidden":!0}),s.jsxs("div",{className:"min-w-0",children:[s.jsxs("p",{ref:o,className:"text-[1.125rem] font-extrabold leading-none tracking-tight text-hba-blue-1 tabular-nums sm:text-xl",children:[n,l,r]}),s.jsx("p",{className:"mt-1 text-[0.7rem] font-medium uppercase tracking-wide text-slate-600 sm:text-[0.75rem]",children:a})]})]})})}function EV({children:t,className:e="",delay:r=0}){const n=w.useRef(null),a=tl(n,{once:!0,margin:"-60px"});return s.jsx(Nt.div,{ref:n,initial:{opacity:0,y:36},animate:a?{opacity:1,y:0}:{},transition:{duration:.65,ease:[.22,1,.36,1],delay:r},className:e,children:t})}function cYe({city:t,img:e,delay:r}){return s.jsxs(Nt.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.45,delay:r,ease:[.22,1,.36,1]},className:"group relative aspect-[5/3] w-full overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0",children:s.jsx(Dt,{src:e,alt:t,className:"h-full w-full object-cover brightness-[0.96] saturate-[0.5] transition-all duration-[650ms] ease-out group-hover:scale-[1.035] group-hover:brightness-[1.02] group-hover:saturate-100"})}),s.jsx("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-hba-blue-1/82 via-hba-blue-1/12 to-transparent transition-opacity duration-500 group-hover:from-hba-blue-1/68 group-hover:via-hba-blue-1/8"}),s.jsx("div",{className:"absolute inset-x-0 bottom-0 p-2.5 sm:p-3",children:s.jsx("span",{className:"text-base font-semibold tracking-wide text-white drop-shadow-sm sm:text-lg",children:t})})]})}function uYe({backgroundSrc:t}){return s.jsxs("div",{className:"pointer-events-none absolute inset-0 z-[1] overflow-hidden","aria-hidden":!0,children:[s.jsx("div",{className:"absolute inset-0",children:s.jsx(Dt,{src:t,alt:"",className:"h-full w-full min-h-[280px] object-cover object-[center_65%] sm:object-[center_60%]"},t)}),s.jsx("div",{className:"absolute inset-0",style:{background:["linear-gradient(90deg, rgb(255 255 255 / 0.94) 0%, rgb(248 250 252 / 0.82) 36%, rgb(255 255 255 / 0.42) 52%, rgb(255 255 255 / 0.08) 72%, transparent 100%)","linear-gradient(180deg, rgb(255 255 255 / 0.88) 0%, rgb(255 255 255 / 0.35) 28%, transparent 52%, rgb(15 23 42 / 0.06) 100%)"].join(", ")}}),s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2",style:{width:"min(1600px, 145vw)",height:"min(380px, 48vh)",background:"radial-gradient(ellipse 78% 56% at 50% 0%, rgb(248 250 252 / 0.55), transparent 72%)"}}),s.jsx("div",{className:"absolute inset-x-0 top-0 h-[42%] max-h-[320px]",style:{background:"linear-gradient(to bottom, rgb(255 255 255 / 0.92) 0%, rgb(255 255 255 / 0.5) 55%, transparent 100%)"}})]})}function dYe(){return s.jsxs("section",{className:"relative overflow-hidden bg-[#e8e4df] py-16 md:py-20 lg:py-24",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#e8e4df] via-[#ebe7e2] to-[#e5e1dc] opacity-70"}),s.jsxs("div",{className:"absolute inset-y-0 right-0 w-full lg:w-[58%]",children:[s.jsx(Dt,{src:"https://kevtdoylwwkkbpkgevhu.supabase.co/storage/v1/object/public/hba-public-files/images/2026/07/reno-2-location-1783355843190.jpg",alt:"",className:"h-full w-full object-cover object-center opacity-35","aria-hidden":!0}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#e8e4df] via-[#e8e4df]/50 to-[#0d2f46]/45"}),s.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_78%_30%,rgba(255,255,255,0.42),transparent_28%),radial-gradient(circle_at_65%_60%,rgba(4,58,89,0.2),transparent_42%)]"})]}),s.jsx("div",{className:"relative z-10 mx-auto max-w-7xl px-6",children:s.jsxs("div",{className:"grid items-center gap-10 lg:grid-cols-[minmax(0,1fr)_420px] lg:gap-8",children:[s.jsx(EV,{children:s.jsxs("div",{className:"max-w-2xl",children:[s.jsx("p",{className:"mb-3 text-sm font-bold uppercase tracking-widest text-hba-orange-1",children:"Local Leadership"}),s.jsx("h2",{className:"mb-6 text-3xl font-extrabold text-hba-blue-1 lg:text-4xl",children:"A Local Team You Can Count On"}),s.jsx("p",{className:"mb-6 text-lg leading-relaxed text-gray-700",children:"Health Benefits Associates was built on a simple belief: Nevadans deserve someone local they can trust for health insurance guidance. For over 30 years, our team has been part of this community - advising neighbors, friends, and families across the state."}),s.jsxs("blockquote",{className:"my-8 border-l-4 border-hba-orange-1 pl-6",children:[s.jsx("p",{className:"mb-3 text-xl font-medium italic leading-relaxed text-hba-blue-1",children:`"As a 4th generation Nevadan, we're here for our community. Our team looks forward to helping you or your business find the right options and be a consistent resource."`}),s.jsx("cite",{className:"text-sm font-semibold not-italic text-gray-500",children:"- Alex Sampson, Health Benefits Associates"})]})]})}),s.jsx(EV,{delay:.12,children:s.jsxs("div",{className:"relative mx-auto flex w-full max-w-[430px] justify-center lg:justify-end",children:[s.jsx("div",{className:"absolute -inset-x-10 bottom-10 top-12 rounded-[3rem] bg-gradient-to-br from-white/45 via-white/10 to-hba-orange-1/15 blur-3xl"}),s.jsx("div",{className:"absolute inset-x-8 bottom-8 top-10 rounded-[2.5rem] border border-white/30 bg-white/10 backdrop-blur-[2px]"}),s.jsxs("div",{className:"relative h-[480px] w-[340px] overflow-hidden rounded-b-[18%] sm:h-[560px] sm:w-[390px]",children:[s.jsx("div",{className:"pointer-events-none absolute inset-x-6 inset-y-5 z-10 rounded-[48%] bg-white/10 blur-2xl"}),s.jsx("div",{className:"pointer-events-none absolute inset-x-10 bottom-0 z-30 h-24 rounded-t-full bg-gradient-to-t from-[#e8e4df] via-[#e8e4df]/70 to-transparent blur-xl"}),s.jsx(Dt,{src:aYe,alt:"Alex Sampson - Health Benefits Associates",className:"relative z-20 h-full w-full object-cover object-top",style:{transform:"translateY(1%) scale(1.02)",transformOrigin:"center top",maskImage:AV,WebkitMaskImage:AV,filter:"drop-shadow(0 24px 36px rgba(4, 58, 89, 0.22))"}})]})]})})]})})]})}function hYe(){const[t,e]=w.useState([]);w.useEffect(()=>{fetch(ut("/api/homepage/location-images")).then(a=>a.ok?a.json():[]).then(a=>e(Array.isArray(a)?a:[])).catch(()=>e([]))},[]);const r=new Map(t.map(a=>[a.location_slug,a])),n=a=>{const i=r.get(a);
1411return i?j0(i.image_url,i.updated_at):GS[a]};return s.jsxs("section",{className:"relative isolate min-h-0 overflow-hidden bg-slate-50/80",children:[s.jsx(uYe,{backgroundSrc:nYe[0]}),s.jsx("div",{className:"relative z-[2] mx-auto max-w-[min(100%,1440px)] px-3 pt-2 pb-11 sm:px-4 sm:pt-3 sm:pb-12 lg:px-5 lg:pt-4 lg:pb-14",children:s.jsxs("div",{className:"grid items-stretch gap-8 lg:grid-cols-12 lg:gap-6 xl:gap-10",children:[s.jsxs("div",{className:"flex flex-col gap-4 sm:gap-5 lg:col-span-5 lg:max-w-xl xl:max-w-none xl:pr-4",children:[s.jsx("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:s.jsxs(Nt.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.4},className:"inline-flex w-fit items-center gap-2 text-[0.8125rem] font-semibold text-hba-blue-1 sm:text-sm",children:[s.jsx("span",{className:"flex h-7 w-7 items-center justify-center rounded-md bg-hba-orange-1/12",children:s.jsx(is,{className:"h-3.5 w-3.5 text-hba-orange-1","aria-hidden":!0})}),"Serving Nevada from 6 Local Offices"]})}),s.jsxs(Nt.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.55,delay:.06},className:"text-balance text-hba-blue-1",children:[s.jsx("span",{className:"block text-[1.125rem] font-bold leading-snug sm:text-xl lg:text-[1.35rem]",children:"Navigating Health Insurance with"}),s.jsx("span",{className:"mt-1 block text-[clamp(2.25rem,5vw,3.25rem)] font-extrabold leading-[1.05] tracking-tight text-hba-orange-1",children:"Zero-Cost"}),s.jsx("span",{className:"mt-1 block text-[1.125rem] font-bold leading-snug sm:text-xl lg:text-[1.35rem]",children:"Expert Guidance"})]}),s.jsx(Nt.p,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,delay:.12},className:"max-w-prose text-[0.9375rem] leading-[1.65] text-slate-700 sm:text-base",children:"You're not a case number to us - you're a neighbor. Our local brokers take time to listen, explain your options in plain language, and help you move forward with confidence. We compare all options to find a plan that best fits your needs."}),s.jsx(Nt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.45,delay:.18},className:"grid grid-cols-2 gap-2 sm:gap-2.5",role:"list","aria-label":"Health Benefits Associates at a glance",children:sYe.map(a=>s.jsx("div",{role:"listitem",children:s.jsx(lYe,{...a})},a.label))}),s.jsxs(Nt.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.45,delay:.24},className:"flex flex-col gap-3 pt-1 sm:flex-row sm:flex-wrap sm:items-stretch",children:[s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"group inline-flex min-h-[48px] flex-1 items-center justify-center gap-2 rounded-lg bg-hba-orange-1 px-5 py-3.5 text-base font-semibold text-white shadow-sm transition hover:bg-hba-orange-2 sm:flex-none sm:px-7",children:["Talk to a Local Advisor",s.jsx(Xe,{className:"h-5 w-5 transition-transform group-hover:translate-x-0.5","aria-hidden":!0})]}),s.jsxs(ue,{to:"/locations",className:"inline-flex min-h-[48px] flex-1 items-center justify-center gap-2 rounded-lg border border-slate-300/90 bg-white px-5 py-3.5 text-base font-semibold text-hba-blue-1 transition hover:border-hba-blue-1/35 hover:bg-slate-50/80 sm:flex-none sm:px-6",children:[s.jsx(tr,{className:"h-5 w-5 shrink-0 text-hba-orange-1","aria-hidden":!0}),"Find Your Nearest Office"]})]})]}),s.jsxs("div",{className:"min-h-0 lg:col-span-7 lg:flex lg:flex-col lg:justify-center",children:[s.jsx("div",{className:"mb-3 sm:mb-3.5",children:s.jsx("p",{className:"text-[0.6875rem] font-medium uppercase tracking-[0.14em] text-slate-500 sm:text-xs",children:"Office locations"})}),s.jsx("div",{className:"grid grid-cols-2 grid-rows-3 gap-[3px] bg-slate-300/35 sm:gap-1 lg:min-h-[min(52vh,520px)]",children:iYe.map((a,i)=>s.jsx(ue,{to:`/locations/${a.slug}`,className:"relative min-w-0 overflow-hidden bg-slate-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-hba-orange-1 focus-visible:ring-offset-2",children:s.jsx(cYe,{city:a.city,img:n(a.slug),delay:.08+i*.04})},a.city))})]})]})})]})}function fYe(){return s.jsxs("div",{className:"rocket-home-page relative overflow-x-hidden bg-white font-sans text-foreground",children:[s.jsx(hYe,{}),s.jsx(Wte,{}),s.jsx(Gte,{}),s.jsx(D_,{}),s.jsx(Kte,{showCta:!1}),s.jsx(dYe,{}),s.jsx(Yte,{})]})}const Mb=[{id:"reno",city:"Reno",state:"NV",region:"Northern Nevada",address:"3716 Lakeside Dr Suite #100, Reno, NV 89509",phone:"(775) 828-1216",phoneHref:"tel:+17758281216",email:"[email protected]",hours:"Appointments Available 8â4:30",badge:"Local Office",href:"/renolocation/",imageUrl:"https://images.unsplash.com/photo-1500469387336-f15406ae8194",imageAlt:"Reno skyline with the Truckee River and Sierra Nevada mountains in the background at dusk",tagline:"The Biggest Little City in the World",color:"#ec814c"},{id:"henderson",city:"Las Vegas",state:"NV",region:"Southern Nevada",address:"9550 S. Eastern Ave Suite 253, Las Vegas, NV 89123",phone:"(702) 963
1411-0123",phoneHref:"tel:+17029630123",email:"[email protected]",hours:"Appointments Available 8â4:30",badge:"By Appointment Only",href:"/hendersonlocation/",imageUrl:"https://images.unsplash.com/photo-1716250429287-928fd3555063",imageAlt:"Las Vegas valley skyline visible in the distance against a desert sky",tagline:"Greater Las Vegas Area Coverage",color:"#e07040"},{id:"sparks",city:"Sparks",state:"NV",region:"Northern Nevada",address:"437 Pyramid Way, Sparks, NV 89431",phone:"(775) 828-5701",phoneHref:"tel:+17758285701",email:"[email protected]",hours:"Appointments Available 8â4:30",badge:"Local Office",href:"/sparkslocation/",imageUrl:"https://images.unsplash.com/photo-1699135875655-37d6dbe5d0a6",imageAlt:"Sparks Nevada neighborhood with wide open desert landscape and mountain range visible in the distance",tagline:"Your Neighbor in Northern Nevada",color:"#d4693a"},{id:"carson-city",city:"Carson City",state:"NV",region:"State Capital",address:"405 N. Roop St, Carson City, NV 89701",phone:"(775) 362-3300",phoneHref:"tel:+17753623300",email:"[email protected]",hours:"Appointments Available 8â4:30",badge:"Local Office",href:"/carsonlocation/",imageUrl:"https://img.rocket.new/generatedImages/rocket_gen_img_1a864065c-1777657072026.png",imageAlt:"Carson City Nevada state capital building surrounded by pine trees and the Sierra Nevada mountain range",tagline:"Nevada's Capital, Your Local Advisor",color:"#b85c2e"},{id:"fernley",city:"Fernley",state:"NV",region:"Lyon County",address:"460 W Main St Unit 101, Fernley, NV 89408",phone:"(775) 828-0001",phoneHref:"tel:+17758280001",email:"[email protected]",hours:"Appointments Available 8â4:30",badge:"Local Office",href:"/fernleylocation/",imageUrl:"https://images.unsplash.com/photo-1594073631831-bbad0eb2335c",imageAlt:"Fernley Nevada high desert landscape with sagebrush plains and distant mountain ridgeline under blue sky",tagline:"Serving the High Desert Community",color:"#c96030"},{id:"truckee",city:"Truckee",state:"CA",region:"Northern California",address:"10098 Jibboom St #201B, Truckee, CA 96161",phone:"(530) 563-7780",phoneHref:"tel:+15305637780",email:"[email protected]",hours:"Appointments Available 8â4:30",badge:"By Appointment Only",href:"/truckee-medicare/",imageUrl:"https://images.unsplash.com/photo-1680590346335-f9d70b76f03e",imageAlt:"Truckee California mountain town surrounded by Sierra Nevada peaks and pine forest",tagline:"Sierra Nevada Mountain Community",color:"#a85228"}],pYe=[{icon:tr,value:"6",label:"Local Offices"},{icon:tS,value:"30+",label:"Years Serving Nevada"},{icon:sn,value:"15,000+",label:"Clients Helped"},{icon:er,value:"$0",label:"Cost to You"}],mYe=[{left:"8%",top:"12%",size:2.4},{left:"15%",top:"8%",size:1.6},{left:"22%",top:"18%",size:2},{left:"35%",top:"6%",size:2.8},{left:"48%",top:"14%",size:1.8},{left:"58%",top:"5%",size:2.2},{left:"70%",top:"10%",size:1.4},{left:"80%",top:"16%",size:2.6},{left:"90%",top:"7%",size:1.8},{left:"95%",top:"20%",size:2}];function OV(){const[t,e]=w.useState("reno"),[r,n]=w.useState(!0),[a,i]=w.useState(!1),[o,l]=w.useState(!1),c=w.useRef(null),u=w.useMemo(()=>Mb.find(h=>h.id===t)??Mb[0],[t]);w.useEffect(()=>{const h=window.setTimeout(()=>i(!0),100);return()=>window.clearTimeout(h)},[]),w.useEffect(()=>{const h=new IntersectionObserver(([g])=>{g.isIntersecting&&l(!0)},{threshold:.2}),m=c.current;return m&&h.observe(m),()=>h.disconnect()},[]);const d=h=>{h!==t&&(n(!1),window.setTimeout(()=>{e(h),n(!0)},220))};return s.jsxs("div",{"data-analytics-location":"location_page",className:"min-h-screen overflow-x-hidden bg-[#faf6f0]",children:[s.jsxs("section",{className:"relative flex min-h-[72vh] items-center justify-center overflow-hidden px-6 pt-[88px]",children:[s.jsxs("div",{className:"absolute inset-0 z-0",children:[s.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(155deg, #1a2e36 0%, #283c44 40%, #1e3540 70%, #0f1f26 100%)"}}),s.jsx("div",{className:"absolute",style:{bottom:0,left:"50%",transform:"translateX(-50%)",width:"120%",height:"55%",background:"radial-gradient(ellipse at bottom center, rgba(236,129,76,0.28) 0%, rgba(212,105,58,0.14) 40%, transparent 70%)"}}),s.jsx("div",{className:"absolute left-0 right-0",style:{bottom:"28%",height:"1px",background:"linear-gradient(90deg, transparent 0%, rgba(236,129,76,0.3) 30%, rgba(245,149,101,0.5) 50%, rgba(236,129,76,0.3) 70%, transparent 100%)"}}),s.jsxs("svg",{className:"absolute bottom-0 left-0 w-full",viewBox:"0 0 1440 220",preserveAspectRatio:"none",style:{height:"220px"},children:[s.jsx("path",{d:"M0,220 L0,160 L80,110 L160,140 L260,80 L360,120 L440,70 L540,100 L620,50 L700,90 L780,40 L860,75 L960,30 L1060,65 L1140,20 L1240,55 L1320,90 L1440,60 L1440,220 Z",fill:"rgba(15,31,38,0.85)"}),s.jsx("path",{d:"M0,220 L0,180 L120,150 L220,165 L320,130 L420,155 L520,120 L620,140 L720,100 L820,130 L920,95 L1020,120 L1120,85 L1220,110 L1340,130 L1440,115 L1440,220 Z",fill:"rgba(10,24,30,0.95)"})]}),mYe.map((h,m)=>s.jsx("div",{className:"absolute rounded-full",style:{left:h.left,top:h.top,width:`${h.size}px`,height:`${h.size}px`,background:"rgba(255,255,255,0.7)",boxShadow:"0 0 4px rgba(255,255,255,0.4)"}},m))]}),s.jsxs("div",{className:"relative z-10 mx-auto max-w-3xl px-6 text-center",style:{opacity:a?1:0,transform:a?"translateY(0)":"translateY(28px)",transition:"opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1)"},children:[s.jsxs("div",{className:"mb-6 inline-flex items-center gap-2 rounded-full px-4 py-2",style:{background:"rgba(236,129,76,0.15)",border:"1px solid rgba(236,129,76,0.3)"},children:[s.jsx(tr,{className:"h-3.5 w-3.5 text-[#ec814c]"}),s.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.2em] text-[#ec814c]",children:"Nevada & Northern California"})]}),s.jsxs("h1",{className:"mb-5 font-display font-bold leading-tight text-white",style:{fontSize:"clamp(2.4rem, 6vw, 4.2rem)"},children:["Find a Local Office",s.jsx("br",{}),s.jsx("span",{className:"text-[#ec814c]",children:"Near You"})]}),s.jsx("p",{className:"mx-auto mb-10 max-w-[520px] text-lg leading-relaxed",style:{color:"rgba(255,255,255,0.65)"},children:"Local insurance guidance across Nevada and nearby California. Real advisors. Real offices. Zero cost to you."}),s.jsxs("div",{className:"flex flex-col justify-center gap-4 sm:flex-row",children:[s.jsxs("a",{href:"tel:+17758281216",className:"inline-flex items-center justify-center gap-2 rounded-xl px-8 py-4 text-sm font-bold transition-all duration-300 hover:scale-[1.03]",style:{background:"#ec814c",color:"#fff",boxShadow:"0 4px 24px rgba(236,129,76,0.4)"},children:[s.jsx(Ut,{className:"h-4 w-4"}),"Call Now â (775) 828-1216"]}),s.jsxs("a",{href:"#locations",className:"inline-flex items-center justify-center gap-2 rounded-xl px-8 py-4 text-sm font-bold transition-all duration-300 hover:scale-[1.03]",style:{background:"rgba(255,255,255,0.08)",color:"#fff",border:"1px solid rgba(255,255,255,0.2)"},children:[s.jsx(tle,{className:"h-4 w-4"}),"Find Nearest Office"]})]}),s.jsx("div",{className:"mt-12 flex flex-wrap items-center justify-center gap-6",children:Mb.map(h=>s.jsx("button",{type:"button",onClick:()=>{var m;d(h.id),(m=document.getElementById("locations"))==null||m.scrollIntoView({behavior:"smooth"})},className:"text-xs font-semibold uppercase tracking-wider transition-colors duration-200",style:{color:t===h.id?"#ec814c":"rgba(255,255,255,0.4)"},children:h.city}
1411,h.id))})]})]}),s.jsx("section",{id:"locations",className:"px-6 py-20 md:px-10",children:s.jsxs("div",{className:"mx-auto max-w-7xl",children:[s.jsxs("div",{className:"mb-12 flex items-center gap-3",children:[s.jsx("div",{className:"h-5 w-[2px] bg-[#ec814c]"}),s.jsx("span",{className:"text-[11px] font-bold uppercase tracking-[0.3em] text-[#899aa4]",children:"Our Offices"})]}),s.jsxs("div",{className:"overflow-hidden rounded-3xl border border-[rgba(40,60,68,0.08)] lg:flex",style:{boxShadow:"0 24px 64px rgba(40,60,68,0.12)"},children:[s.jsxs("div",{className:"shrink-0 bg-white lg:w-[38%]",children:[s.jsx("div",{className:"border-b border-[rgba(40,60,68,0.07)] p-6",children:s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.25em] text-[#899aa4]",children:"Select a Location"})}),s.jsx("ul",{className:"divide-y divide-[rgba(40,60,68,0.06)]",children:Mb.map((h,m)=>{const g=h.id===t;return s.jsx("li",{children:s.jsxs("button",{type:"button",onMouseEnter:()=>d(h.id),onClick:()=>d(h.id),className:"group flex w-full items-center gap-4 px-6 py-5 text-left transition-all duration-200",style:{background:g?"rgba(236,129,76,0.06)":"transparent",borderLeft:g?"3px solid #ec814c":"3px solid transparent"},children:[s.jsx("span",{className:"w-6 shrink-0 text-center font-display text-xs font-bold",style:{color:g?"#ec814c":"rgba(40,60,68,0.25)"},children:String(m+1).padStart(2,"0")}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"font-display text-base font-bold leading-tight",style:{color:g?"#283c44":"rgba(40,60,68,0.75)"},children:h.city}),s.jsx("span",{className:"rounded px-1.5 py-0.5 text-[10px] font-bold",style:{background:g?"rgba(236,129,76,0.12)":"rgba(40,60,68,0.06)",color:g?"#ec814c":"#899aa4"},children:h.state})]}),s.jsx("p",{className:"mt-0.5 truncate text-xs",style:{color:g?"#ec814c":"#899aa4"},children:h.region})]}),s.jsx(Vn,{className:"h-4 w-4 shrink-0 transition-transform duration-200",style:{color:g?"#ec814c":"rgba(40,60,68,0.2)",transform:g?"translateX(2px)":"translateX(0)"}})]})},h.id)})}),s.jsxs("div",{className:"border-t border-[rgba(40,60,68,0.07)] bg-[rgba(40,60,68,0.02)] p-6",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ut,{className:"h-3.5 w-3.5 text-[#ec814c]"}),s.jsx("a",{href:"tel:+17758281216",className:"text-sm font-bold text-[#283c44] transition-colors",children:"(775) 828-1216"})]}),s.jsx("p",{className:"mt-1 text-xs text-[#899aa4]",children:"All locations share this number"})]})]}),s.jsxs("div",{className:"relative min-h-[520px] flex-1 overflow-hidden",children:[s.jsxs("div",{className:"absolute inset-0 z-0",style:{opacity:r?1:0,transition:"opacity 0.35s ease"},children:[s.jsx(Dt,{src:u.imageUrl,alt:u.imageAlt,className:"h-full w-full object-cover",style:{filter:"brightness(0.45) saturate(0.9)"}}),s.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, rgba(15,25,32,0.97) 0%, rgba(15,25,32,0.75) 45%, rgba(15,25,32,0.3) 100%)"}}),s.jsx("div",{className:"absolute bottom-0 left-0 right-0",style:{height:"40%",background:`linear-gradient(to top, ${u.color}22 0%, transparent 100%)`}})]}),s.jsxs("div",{className:"relative z-10 flex h-full min-h-[520px] flex-col justify-end p-8 md:p-10",style:{opacity:r?1:0,transform:r?"translateY(0)":"translateY(12px)",transition:"opacity 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1)"},children:[s.jsxs("div",{className:"mb-auto flex items-start justify-between pt-2",children:[s.jsx("span",{className:"rounded-full px-3 py-1.5 text-xs font-bold uppercase tracking-[0.2em]",style:{background:"rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.7)",backdropFilter:"blur(8px)"},children:u.region}),s.jsx("span",{className:"rounded-full px-3 py-1.5 text-xs font-bold uppercase tracking-[0.15em]",style:{background:`${u.color}33`,color:u.color,border:`1px solid ${u.color}55`},children:u.badge})]}),s.jsxs("div",{className:"mt-8",children:[s.jsx("h2",{className:"mb-2 font-display font-bold leading-tight text-white",style:{fontSize:"clamp(2rem, 4vw, 3rem)"},children:u.city}),s.jsx("p",{className:"mb-6 text-sm",style:{color:u.color},children:u.tagline}),s.jsxs("div",{className:"mb-8 grid grid-cols-1 gap-3 sm:grid-cols-2",children:[s.jsxs("div",{className:"flex items-start gap-3 rounded-xl p-3",style:{background:"rgba(255,255,255,0.07)",backdropFilter:"blur(8px)"},children:[s.jsx(tr,{className:"mt-0.5 h-4 w-4 shrink-0 text-[#ec814c]"}),s.jsxs("div",{children:[s.jsx("p",{className:"mb-0.5 text-[10px] font-bold uppercase tracking-wider text-white/40",children:"Address"}),s.jsx("p",{className:"text-sm font-semibold text-white",children:u.address})]})]}),s.jsxs("div",{className:"flex items-start gap-3 rounded-xl p-3",style:{background:"rgba(255,255,255,0.07)",backdropFilter:"blur(8px)"},children:[s.jsx(Ut,{className:"mt-0.5 h-4 w-4 shrink-0 text-[#ec814c]"}),s.jsxs("div",{children:[s.jsx("p",{className:"mb-0.5 text-[10px] font-bold uppercase tracking-wider text-white/40",children:"Phone"}),s.jsx("a",{href:u.phoneHref,className:"text-sm font-semibold text-white transition-colors",children:u.phone})]})]}),s.jsxs("div",{className:"flex items-start gap-3 rounded-xl p-3",style:{background:"rgba(255,255,255,0.07)",backdropFilter:"blur(8px)"},children:[s.jsx(Na,{className:"mt-0.5 h-4 w-4 shrink-0 text-[#ec814c]"}),s.jsxs("div",{children:[s.jsx("p",{className:"mb-0.5 text-[10px] font-bold uppercase tracking-wider text-white/40",children:"Email"}),s.jsx("a",{href:`mailto:${u.email}`,className:"text-sm font-semibold text-white transition-colors",children:u.email})]})]}),s.jsxs("div",{className:"flex items-start gap-3 rounded-xl p-3",style:{background:"rgba(255,255,255,0.07)",backdropFilter:"blur(8px)"},children:[s.jsx(tS,{className:"mt-0.5 h-4 w-4 shrink-0 text-[#ec814c]"}),s.jsxs("div",{children:[s.jsx("p",{className:"mb-0.5 text-[10px] font-bold uppercase tracking-wider text-white/40",children:"Hours"}),s.jsx("p",{className:"text-sm font-semibold text-white",children:u.hours})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row",children:[s.jsxs(ue,{to:u.href,className:"inline-flex items-center justify-center gap-2 rounded-xl px-6 py-3.5 text-sm font-bold transition-all duration-300 hover:scale-[1.02]",style:{background:"#ec814c",color:"#fff",boxShadow:"0 4px 20px rgba(236,129,76,0.4)"},children:[s.jsx(Xe,{className:"h-4 w-4"}),"View Office Details"]}
1411),s.jsxs("a",{href:u.phoneHref,className:"inline-flex items-center justify-center gap-2 rounded-xl border border-white/20 px-6 py-3.5 text-sm font-bold text-white transition-all duration-300 hover:scale-[1.02]",style:{background:"rgba(255,255,255,0.1)",backdropFilter:"blur(8px)"},children:[s.jsx(Ut,{className:"h-4 w-4"}),"Call This Office"]})]})]})]})]})]})]})}),s.jsx("section",{ref:c,className:"bg-white px-6 py-20 md:px-10",children:s.jsx("div",{className:"mx-auto max-w-7xl",children:s.jsx("div",{className:"overflow-hidden rounded-3xl",style:{background:"linear-gradient(135deg, #283c44 0%, #1a2e36 50%, #0f1f26 100%)",opacity:o?1:0,transform:o?"translateY(0)":"translateY(24px)",transition:"opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1)"},children:s.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-2",children:[s.jsxs("div",{className:"flex flex-col justify-center p-10 md:p-14",children:[s.jsxs("div",{className:"mb-6 flex items-center gap-3",children:[s.jsx("div",{className:"h-[2px] w-8 bg-[#ec814c]"}),s.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.3em] text-[rgba(236,129,76,0.8)]",children:"Locally Rooted"})]}),s.jsx("h2",{className:"mb-6 font-display font-bold leading-tight text-white",style:{fontSize:"clamp(1.8rem, 3.5vw, 2.8rem)"},children:"Serving Northern Nevada & the Greater Las Vegas Area"}),s.jsx("p",{className:"mb-4 text-base leading-relaxed text-white/60",children:"For over 30 years, Health Benefits Associates has helped Nevadans navigate the complexities of health insurance, from Medicare Supplement plans to individual and family coverage."}),s.jsx("p",{className:"text-base leading-relaxed text-white/60",children:"We're not a call center. We're your neighbors, with real offices, real advisors, and a deep understanding of the communities we serve."})]}),s.jsx("div",{className:"grid grid-cols-2 gap-5 border-white/10 p-10 md:border-l md:p-14",children:pYe.map(h=>{const m=h.icon;return s.jsxs("div",{className:"flex flex-col gap-3 rounded-2xl border border-white/10 bg-white/5 p-5",children:[s.jsx(m,{className:"h-5.5 w-5.5 text-[#ec814c]"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-display text-2xl font-bold text-white",children:h.value}),s.jsx("p",{className:"mt-1 text-xs font-semibold uppercase tracking-wider text-white/40",children:h.label})]})]},h.label)})})]})})})}),s.jsx("section",{className:"bg-[#faf6f0] px-6 py-24 md:px-10",children:s.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[s.jsx("div",{className:"mb-8 inline-flex h-14 w-14 items-center justify-center rounded-2xl",style:{background:"rgba(236,129,76,0.1)",border:"1px solid rgba(236,129,76,0.2)"},children:s.jsx(tr,{className:"h-6.5 w-6.5 text-[#ec814c]"})}),s.jsxs("h2",{className:"mb-4 font-display font-bold leading-tight text-[#283c44]",style:{fontSize:"clamp(1.9rem, 4vw, 3rem)"},children:["Not sure which office",s.jsx("br",{}),"is right for you?"]}),s.jsx("p",{className:"mx-auto mb-10 max-w-[480px] text-lg leading-relaxed text-[rgba(40,60,68,0.6)]",children:"Call us and we'll connect you with a local advisor who understands your area, at zero cost to you."}),s.jsxs("div",{className:"flex flex-col justify-center gap-4 sm:flex-row",children:[s.jsxs("a",{href:"tel:+17758281216",className:"inline-flex items-center justify-center gap-2 rounded-xl px-8 py-4 text-sm font-bold transition-all duration-300 hover:scale-[1.03]",style:{background:"#ec814c",color:"#fff",boxShadow:"0 4px 24px rgba(236,129,76,0.35)"},children:[s.jsx(Ut,{className:"h-4 w-4"}),"Call (775) 828-1216"]}),s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center justify-center gap-2 rounded-xl px-8 py-4 text-sm font-bold transition-all duration-300 hover:scale-[1.03]",style:{background:"#283c44",color:"#fff",boxShadow:"0 4px 24px rgba(40,60,68,0.2)"},children:[s.jsx(Na,{className:"h-4 w-4"}),"Send a Message"]})]}),s.jsx("p",{className:"mt-8 text-sm text-[rgba(40,60,68,0.4)]",children:"Free consultations · No obligation · Local advisors"})]})})]})}const gYe=(()=>
1411{const t=new Date,e=t.toLocaleString("en-US",{month:"long"});return`${t.getDate()} ${e}, ${t.getFullYear()}`})(),_9=[{id:"coverage-other-insurance",category:"Coverage Requirements",question:"Other insurance⦠does this avoid the fine?",answer:["First of all, to avoid the penalty you need insurance that qualifies as minimum essential coverage. Therefore, if youâre covered by any of the following in 2014, youâre considered covered and donât have to pay a penalty:"],bullets:["Any Marketplace plan, as well as any individual insurance plan you already have.","Any employer plan (including COBRA), with or without âgrandfatheredâ status. This also includes retiree plans","Medicare","Medicaid, The Childrenâs Health Insurance Program (CHIP)","TRICARE (for current service members and military retirees, their families, as well as survivors)","Veterans health care programs (including the Veterans Health Care Program, VA Civilian Health and Medical Program (CHAMPVA), or Spina Bifida Health Care Benefits Program)","Peace Corps Volunteer plans","Self-funded health coverage offered to students by universities, including policy years that begin on or before Dec. 31, 2014"],closing:"Other plans may also qualify. Ask your health coverage provider."},{id:"fine-nevada-2014",category:"Penalties",question:"What is the fine for not having health insurance in Nevada?",answer:["Many individuals have asked us, âIs there a fine for not having health insurance?â"],afterBullets:[`Technically speaking, the federal government still keeps track of whether you have a qualified health insurance plan. Insurance carriers typically send you a 1095 tax document indicating if your plan was qualified during the year. While the federal mandate to carry health insurance still exists, the current penalty, as of ${gYe}, is $0. This means you are not fined for not having a qualified health insurance plan. The fine changed to $0 on January 1st, 2019.`,"Although the fine is $0, we do not recommend forgoing a qualified health plan or going uninsured altogether. Because you cannot purchase a plan at any time without a qualified life event, individuals who go uninsured are taking a serious gamble with their finances. Many people also purchase non-qualified policies because they are less expensive. These plans may seem like a good choice at first but they rarely pay claims. Our office receives countless calls every year, outside of open enrollment, from individuals that purchased non-qualified plans and now want to buy qualified insurance because their current policy has denied every claim. Unfortunately, we have to give them the bad news that they will not be able to buy a health insurance plan until the beginning of next year because of the lack of a qualified life event. Examples of these types of plans to avoid are short term plans or health sharing ministry plans."]},{id:"costs-life-changes",category:"Costs",question:"What can reduce my cost for health insurance in Nevada?",answer:["Once you have Marketplace coverage, you must report certain life changes. Consequently, this information may change the coverage or savings youâre eligible for. Therefore you must report a change if you:"],bullets:["Get married or divorced, have a child or adopt a child, or place a child for adoption, as well as have a change in income.","Get health coverage through a job or a program like Medicare or Medicaid","Change your place of residence","Have a change in disability status, gain or lose a dependent, as well as become pregnant","Experience other changes that may affect your income and household size","Other changes to report: change in tax filing status; change of citizenship or immigration status; incarceration or release from incarceration; change in status as an American Indian/Alaska Native or tribal status; correction to name, date of birth, or Social Security number."]},{id:"qle-nevada",category:"Qualifying Life Events",question:"What is a qualified life event in Nevada?",answerEyebrow:"Qualified Life Event",answer:["In order to buy a Marketplace health insurance plan mid-year, you must have a Qualified Life Event (QLE) within the past 60 days. Qualifying Life Events create Special Enrollment Periods allowing a limited amount of time to enroll in a new health plan without having to wait for coverage to begin. QLEâs are categorized
1411in to 3 general categories:"],groups:[{title:"Have you lost health coverage?",text:"This needs to be an INVOLUNTARY loss of health coverage. Weâre sorry to say, not paying your premium or calling and canceling your insurance is not a qualified life event. Therefore, loss of coverage also includes ineligibility for Medicaid, CHIP (for children), losing coverage through a job or COBRA and aging off of your parentâs health coverage at age 26."},{title:"Did you recently move to another state or outside your plans service area?",text:"In Nevada, we have 4 service areas. 1. Clark and Nye county (Las Vegas) 2. Washoe County (Reno) 3. Carson City, Douglas, Lyon and Storey (Carson) 4. All others (Rural) If you move within the service area, eg. from Douglas to Carson City or Sparks to Reno, you do NOT qualify for a Special Enrollment Period. Also, if you move between service areas, eg, Carson to Winnemucca or Reno to Fernley, this DOES create a Qualified Life Event. Service areas end at the state line, so a move from one state to another is a Qualified Life Event. Additionally, gaining citizenship or lawful presence in the US, as well as a release from incarceration, are both considered to be Qualified Life Events."},{title:"Did you change the size of your family?",text:"Were you recently married or divorced? Did you have a baby or Did you recently adopt a child? Or did someone in the family die and as a result youâre no longer eligible for coverage? These are all Qualified Life Events."}]},{id:"coverage-outside-oep",category:"Enrollment",question:"How can I get coverage outside of open enrollment?",answer:["Outside of open enrollment, you can enroll in a private insurance plan only if you have certain life events that give you a special enrollment period. Therefore, you can apply for Medicaid or the Childrenâs Health Insurance Program (CHIP) anytime. If youâre qualified you can enroll right away."]},{id:"plan-ends-pre2014-sep",category:"Enrollment",question:"Can I sign up for insurance mid-year if my plan ends?",answerEyebrow:"Short answer â YES!",answer:["The termination of a pre-2014 plan opens up a 30 day Special Enrollment Period window to enroll in a new health insurance plan. As a result, this new plan can be with Nevada Health Link or outside of the Exchange."],afterBullets:["45 CFR § 147.104(b)(2) Limited open enrollment periods","A health insurance issuer in the individual market must provide a limited open enrollment period for the events described in §155.420(d) of this subchapter, excluding paragraphs (d)(3) (concerning citizenship status), (d)(8) (concerning Indians), and (d)(9) (concerning exceptional circumstances). In addition, a health insurance issuer in the individual market must provide, with respect to individuals enrolled in non-calendar year individual health insurance policies, a limited open enrollment period beginning on the date that is 30 calendar days prior to the date the policy year ends in 2014. Health insurance coverage in the individual market or in a market in which the state has merged the individual and small group risk pools must be offered on a calendar year basis. This means that anyone who is currently on an individual plan (from any carrier), that ends prior to 12/31/2014 must be offered a 30 day special enrollment period to enroll in individual coverage."],references:[{label:"Read 45 CFR § 147.104 on the Electronic Code of Federal Regulations",href:"https://www.ecfr.gov/current/title-45/subchapter-B/part-147/section-147.104/"}],historicPenaltyContext:!0}],bYe=[{title:"Individual Insurance",description:"Compare ACA-compliant Nevada plans alongside broker-supported guidance.",href:"/major-medical-insurance-plans/"},{title:"Open Enrollment",description:"Learn how annual enrollment works and when to revisit coverage.",href:"/nevada-individual-open-enrollment-2/"},{title:"Short Term Plans",description:"Understand bridging coverageâlimitations, durations, eligibility.",href:"/short-term-health-insurance/"},{title:"Contact Us",description:"Arrange insurance guidanceânot medical, tax, or legal adviceâwith a statewide team.",href:"/reno-health-insurance-broker/"}];function xYe(){return s.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-2 rounded-xl border border-amber-200/90 bg-amber-50 px-4 py-2 text-xs font-bold leading-snug text-amber-900",children:[s.jsx(koe,{className:"h-4 w-4 shrink-0 text-amber-700","aria-hidden":!0}),s.jsxs("span",{children:["Historical context â references below describe early ACA tax/filing-era rules from years such as"," ",s.jsx("strong",{className:"font-black",children:"2014â2018"}),". Federal mandates, IRS forms, affordability programs, and exemption standards change frequently. Confirm current applicability with IRS instructions, Nevada Health Link notices, insurance carriers, or an HBA broker."]})]})}function yYe({item:t}){var e,r;return s.jsxs("div",{className:"space-y-4 pb-6 pr-8 text-[0.965rem] leading-relaxed text-hba-grey-1 md:text-base",children:[t.historicPenaltyContext?s.jsx(xYe,{}):null,t.answerEyebrow?s.jsx("p",{className:"text-[11px] font-black uppercase tracking-[0.28em] text-hba-orange-1",children:t.answerEyebrow}):null,t.answer.map((n,a)=>s.jsx("p",{children:n},`${t.id}-a-${a}
1411`)),t.bullets?s.jsx("ul",{className:"list-none space-y-2.5 pl-0 md:pl-1",children:t.bullets.map((n,a)=>s.jsxs("li",{className:"flex gap-3",children:[s.jsx("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-hba-orange-1","aria-hidden":!0}),s.jsx("span",{children:n})]},`${t.id}-b-${a}`))}):null,(e=t.afterBullets)==null?void 0:e.map((n,a)=>s.jsx("p",{className:n.startsWith("45 CFR §")?"font-black text-hba-blue-1":void 0,children:n},`${t.id}-post-${a}`)),t.groups?s.jsx("div",{className:"space-y-4",children:t.groups.map(n=>s.jsxs("div",{className:"rounded-xl border border-hba-blue-1/10 bg-white/80 px-4 py-3 md:px-5 md:py-4",children:[s.jsx("p",{className:"font-black text-hba-blue-1",children:n.title}),s.jsx("p",{className:"mt-2 text-sm leading-relaxed text-hba-grey-1 md:text-[0.965rem]",children:n.text})]},n.title))}):null,t.closing?s.jsx("p",{className:"text-hba-blue-2",children:t.closing}):null,t.noteTitle&&t.note!=null?s.jsxs("aside",{className:"rounded-xl border border-hba-blue-1/15 bg-hba-blue-1/[0.04] p-4 md:p-5",children:[s.jsx("p",{className:"font-black text-hba-blue-1",children:t.noteTitle}),s.jsx("div",{className:"mt-3 space-y-3 text-sm leading-relaxed text-hba-grey-1 md:text-[0.965rem]",children:typeof t.note=="string"?s.jsx("p",{children:t.note}):t.note})]}):null,(r=t.references)!=null&&r.length?s.jsx("ul",{className:"list-none space-y-2 border-t border-dashed border-hba-blue-1/15 pt-4",children:t.references.map(n=>s.jsx("li",{children:s.jsx("a",{href:n.href,target:"_blank",rel:"noopener noreferrer",className:"font-bold text-hba-orange-1 underline decoration-2 underline-offset-2 hover:text-hba-orange-2",children:n.label})},n.href))}):null]})}function A9(){const t=w.useMemo(()=>{const a=new Set(_9.map(i=>i.category));return["All",...Array.from(a)]},[]),[e,r]=w.useState("All"),n=w.useMemo(()=>e==="All"?_9:_9.filter(a=>a.category===e),[e]);return w.useEffect(()=>{document.title="FAQs | Health Benefits Associates"},[]),s.jsxs("div",{className:"bg-[#eef2f5] pb-24",children:[s.jsxs("section",{className:"relative overflow-hidden border-b border-hba-blue-1/10 bg-gradient-to-b from-slate-50 via-white to-[#e8eef3] pb-20 pt-24 text-hba-blue-1 md:pb-24 md:pt-28",children:[s.jsxs("div",{className:"pointer-events-none absolute inset-0",children:[s.jsx("div",{className:"absolute -right-16 top-0 h-72 w-72 rounded-full bg-hba-orange-1/15 blur-[80px]"}),s.jsx("div",{className:"absolute bottom-0 left-0 h-64 w-64 rounded-full bg-hba-blue-1/10 blur-[70px]"})]}),s.jsxs("div",{className:"relative mx-auto flex max-w-5xl flex-col px-4 text-center",children:[s.jsxs("span",{className:"mx-auto mb-6 inline-flex items-center gap-2 rounded-full border border-hba-blue-1/15 bg-white px-4 py-2 text-[10px] font-black uppercase tracking-[0.3em] text-hba-blue-1 shadow-sm",children:[s.jsx(is,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),"Insurance Guidance · Compare Plans · Nevada Focused"]}),s.jsx("h1",{className:"text-[2.125rem] font-black leading-[1.1] tracking-tight text-hba-blue-1 drop-shadow-none md:text-[2.875rem]",children:"Frequently Asked Questions"}),s.jsx("p",{className:"mx-auto mt-6 max-w-3xl text-base leading-relaxed text-hba-grey-1 md:text-lg",children:"Find answers to common questions about Nevada health insurance, enrollment, penalties, qualifying life events, and coverage changes."}),s.jsxs("div",{className:"mt-10 flex flex-col justify-center gap-4 sm:flex-row sm:flex-wrap",children:[s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-7 py-3.5 text-sm font-black uppercase tracking-wider text-white shadow-md shadow-orange-200/80 transition hover:bg-hba-orange-2",children:[s.jsx(Na,{className:"h-5 w-5","aria-hidden":!0}),"Contact Us"]}),s.jsxs(ue,{to:"/major-medical-insurance-plans/",className:"inline-flex items-center justify-center gap-2 rounded-xl border-2 border-hba-blue-1/20 bg-white px-7 py-3.5 text-sm font-black uppercase tracking-wider text-hba-blue-1 shadow-sm transition hover:border-hba-orange-1/40 hover:bg-slate-50",children:[s.jsx(ls,{className:"h-5 w-5 text-hba-orange-1","aria-hidden":!0}),"Explore Individual Plans"]})]}),s.jsxs("p",{className:"mx-auto mt-10 max-w-2xl text-sm font-medium leading-relaxed text-hba-grey-1",children:["If you have questions after reading the topics below,"," ",s.jsx(ue,{to:"/reno-health-insurance-broker/",className:"font-black text-hba-orange-1 underline-offset-4 hover:underline",children:"contact our office for more information"}),"."]})]})]}),s.jsx("section",{className:"relative z-10 -mt-14 mx-auto max-w-6xl px-4",children:s.jsxs("div",{className:"rounded-[1.75rem] border border-hba-blue-1/10 bg-white p-6 shadow-[0_30px_80px_-40px_rgba(18,52,79,0.45)] md:p-10",children:[s.jsx("div",{className:"flex flex-col gap-6 md:flex-row md:items-start md:gap-10",children:s.jsxs("div",{className:"flex flex-1 items-start gap-4",children:[s.jsx("div",{className:"mt-1 rounded-xl bg-hba-orange-1/15 p-3 text-hba-orange-1",children:s.jsx(aU,{className:"h-7 w-7","aria-hidden":!0})}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-lg font-black text-hba-blue-1 md:text-xl",children:"Insurance educationân
1411ot medical or legal advice"}),s.jsxs("p",{className:"mt-3 text-[0.98rem] leading-relaxed text-hba-grey-1",children:["Health Benefits Associates is an ",s.jsx("strong",{className:"text-hba-blue-2",children:"insurance brokerage"}),". Licensed professionals help shoppers ",s.jsx("strong",{className:"text-hba-blue-2",children:"compare plans"}),", interpret benefit documents, and coordinate meetings with insurers. We are"," ",s.jsx("strong",{className:"text-hba-blue-2",children:"not"})," clinicians, attorneys, accountants, hospitals, carriers, or government agenciesâalways confirm official sources for rulings impacting your filings."]})]})]})}),s.jsxs("aside",{className:"mt-8 rounded-2xl border border-hba-blue-1/15 bg-slate-50 p-6 md:p-7",children:[s.jsx("p",{className:"text-sm font-black uppercase tracking-[0.2em] text-hba-orange-1",children:"Disclaimer"}),s.jsxs("p",{className:"mt-4 text-[0.98rem] leading-relaxed text-hba-blue-2",children:["This page provides ",s.jsx("strong",{children:"general information only"}),". Insurance rules, carrier availability, tax treatment, and eligibility can change. Your situation may differ from the examples below. To review your options with case-specific insurance guidance, contact our office or consult official resources such as Nevada Health Link and the Nevada Division of Insurance."]})]})]})}),s.jsxs("section",{className:"mx-auto mt-16 max-w-6xl px-4 md:mt-20",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("h2",{className:"text-3xl font-black tracking-tight text-hba-blue-1 md:text-[2.15rem]",children:"Some Common Questions About Nevada Health Insurance"}),s.jsx("div",{className:"mx-auto mt-3 h-1 w-40 rounded-full bg-gradient-to-r from-hba-orange-1 via-hba-orange-1 to-hba-blue-1","aria-hidden":!0}),s.jsx("p",{className:"mx-auto mt-6 max-w-3xl text-base leading-relaxed text-hba-grey-1",children:"Choose a topic to narrow the list. Tap a question to expand broker-friendly explanations with reminders about historic versus current rules."})]}),s.jsx("div",{className:"mt-8 flex flex-wrap justify-center gap-2 md:mt-10",children:t.map(a=>s.jsx("button",{type:"button",onClick:()=>r(a),className:Fe("rounded-full border px-4 py-2 text-xs font-black uppercase tracking-wider transition md:text-[11px]",e===a?"border-hba-orange-1 bg-hba-orange-1 text-white shadow-md shadow-orange-200/60":"border-hba-blue-1/15 bg-white text-hba-blue-1 hover:border-hba-orange-1/40 hover:text-hba-orange-1"),children:a},a))}),s.jsxs("div",{className:"mt-8 rounded-[1.75rem] border border-hba-blue-1/10 bg-white p-4 shadow-sm md:p-8",children:[s.jsx(HW,{type:"multiple",className:"w-full space-y-1",children:n.map(a=>s.jsxs(FW,{value:a.id,className:"overflow-hidden rounded-2xl border border-hba-blue-1/10 border-b-0 bg-slate-50/80 px-4 transition data-[state=open]:bg-white data-[state=open]:shadow-md md:px-6",children:[s.jsx(zW,{className:"items-start gap-4 py-5 text-left text-base font-black text-hba-blue-1 hover:no-underline md:text-lg [&>svg]:mt-1 [&>svg]:text-hba-orange-1",children:s.jsxs("span",{className:"flex flex-1 flex-col gap-2 text-left",children:[s.jsx("span",{className:"text-[10px] font-black uppercase tracking-[0.25em] text-hba-orange-1",children:a.category}),s.jsx("span",{className:"leading-snug",children:a.question})]})}),s.jsx(VW,{className:"border-t border-dashed border-hba-blue-1/10 pt-1 text-hba-grey-1",children:s.jsx(yYe,{item:a})})]},a.id))}),n.length===0?s.jsx("p",{className:"py-10 text-center text-hba-grey-1",children:"No questions match this filter."}):null]})]}),s.jsxs("section",{className:"mx-auto mt-16 max-w-6xl px-4 md:mt-20",children:[s.jsx("h2",{className:"text-center text-2xl font-black text-hba-blue-1 md:text-3xl",children:"Related Help"}),s.jsx("p",{className:"mx-auto mt-3 max-w-2xl text-center text-base text-hba-grey-1",children:"Ready to move from reading to action? Visit these pages for deeper topics, then contact a broker for personalized insurance guidance."}),s.jsx("div",{className:"mt-10 grid grid-cols-1 gap-5 sm:grid-cols-2",children:bYe.map(a=>s.jsxs(ue,{to:a.href,className:"group flex h-full flex-col rounded-2xl border border-hba-blue-1/10 bg-white p-6 shadow-sm transition hover:-translate-y-0.5 hover:border-hba-orange-1/40 hover:shadow-lg md:p-7",children:[s.jsx("p",{className:"text-lg font-black text-hba-blue-1",children:a.title}),s.jsx("p",{className:"mt-3 flex-1 text-sm leading-relaxed text-hba-grey-1",children:a.description}),s.jsxs("span",{className:"mt-5 inline-flex items-center gap-2 text-xs font-black uppercase tracking-widest text-hba-orange-1",children:["Explore",s.jsx(Xe,{className:"h-4 w-4 transition group-hover:translate-x-1","aria-hidden":!0})]})]},a.href))})]}),s.jsx("section",{className:"mx-auto mt-20 max-w-5xl px-4",children:s.jsxs("div",{className:"relative overflow-hidden rounded-[2rem] border border-hba-blue-1/15 bg-gradient-to-br from-white via-slate-50 to-slate-100 p-10 text-center shadow-[0_24px_60px_-32px_rgba(18,52,79,0.45)] md:p-14",children:[s.jsx("div",{className:"pointer-events-none absolute -right-8 top-8 h-32 w-32 rounded-full bg-hba-orange-1/20 blur-2xl"}),s.jsx("div",{className:"pointer-events-none absolute bottom-8 left-6 h-24 w-24 rounded-full bg-hba-blue-1/15 blur-xl"}),s.jsx("h2",{className:"relative text-[1.875rem] font-black text-hba-blue-1 md:text-[2.25rem]",children:"Still Have Questions?"}),s.jsx("p",{className:"relative mx-auto mt-5 max-w-2xl text-base leading-relaxed text-hba-grey-1 md:text-lg",children:"Our local insurance brokers can help you understand your options and guide you toward coverage that fits your situation."}),s.jsxs("div",{className:"relative mt-8 flex flex-col justify-center gap-4 sm:flex-row",children:[s.jsxs(ue,{to:"/reno-health-insurance-broker/",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-hba-orange-1 px-8 py-4 font-black uppercase tracking-wider text-white transition hover:bg-hba-orange-2",children:["Contact Us",s.jsx(Xe,{className:"h-5 w-5","aria-hidden":!0})]}),s.jsxs("a",{href:"tel:7758281216",className:"inline-flex items-center justify-center gap-2 rounded-xl border-2 border-hba-blue-1/25 bg-white px-8 py-4 font-black uppercase tracking-wider text-hba-blue-1 transition hover:border-hba-orange-1/45",children:[s.jsx(Ut,{className:"h-5 w-5 text-hba-orange-1","aria-hidden":!0}),"Call (775) 828-1216"]})]})]})})]})}function Xte(){const t=$r();return z.useEffect(()=>{const e=document.title,r=document.createElement("meta");return r.name="robots",r.content="noindex, follow",r.setAttribute("data-hba-404-seo","true"),document.title="Page Not Found | Health Benefits Associates",document.head.appendChild(r),()=>{document.title=e,document.head.querySelectorAll('[data-hba-404-seo="true"]').forEach(n=>n.remove())}},[]),s.jsx("div",{className:"bg-white",children:s.jsxs("section",{className:"relative overflow-hidden border-b border-hba-blue-1/10 bg-[#f5f8fb]",children:[s.jsx("div",{className:"absolute inset-x-0 top-0 h-2 bg-hba-orange-1","aria-hidden":!0}),s.jsxs("div",{className:"mx-auto grid min-h-[68vh] max-w-7xl items-center gap-10 px-4 py-20 md:grid-cols-[1fr_0.85fr] md:py-28",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.24em] text-hba-orange-1",children:"Error 404"}),s.jsx("h1",{className:"mt-5 max-w-3xl text-5xl font-black uppercase leading-[0.95] tracking-tight text-hba-blue-1 md:text-7xl",children:"Page not found"}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg font-medium leading-relaxed text-slate-700 md:text-xl",children:"The page you requested is unavailable or may have moved. Return to the home page to continue browsing Health Benefits Associates."}),s.jsxs("div",{className:"mt-9 flex flex-col gap-4 sm:flex-row",children:[s.jsxs(ue,{to:"/",className:"inline-flex min-h-12 items-center justify-center gap-2 rounded-lg bg-hba-orange-1 px-6 py-3 text-sm font-black uppercase tracking-[0.14em] text-white transition hover:bg-hba-orange-2 focus:outline-none focus:ring-4 focus:ring-hba-orange-1/25",children:[s.jsx(hU,{className:"h-4 w-4","aria-hidden":!0}),"Home Page"]}),s.jsxs("a",{href:"tel:7758281216",className:"inline-flex min-h-12 items-center justify-center gap-2 rounded-lg border border-hba-blue-1/20 bg-white px-6 py-3 text-sm font-black uppercase tracking-[0.14em] text-hba-blue-1 transition hover:border-hba-blue-1 hover:bg-hba-blue-1 hover:text-white focus:outline-none focus:ring-4 focus:ring-hba-blue-1/15",children:[s.jsx(Ut,{className:"h-4 w-4","aria-hidden":!0}),"Call HBA"]})]})]}),s.jsxs("div",{className:"rounded-lg border border-hba-blue-1/10 bg-white p-6 shadow-sm md:p-8",children:[s.jsx("div",{className:"text-[6.5rem] font-black leading-none tracking-tight text-hba-blue-1 md:text-[9rem]",children:"404"}),s.jsxs("div",{className:"mt-5 border-t border-slate-200 pt-5",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.2em] text-slate-500",children:"Requested path"}),s.jsx("p",{className:"mt-3 break-words rounded-lg bg-slate-50 px-4 py-3 text-sm font-bold text-hba-blue-1",children:t.pathname})]})]})]})]})})}const PV=["#EC814C","#F29A6B","#2A3C46","#4B6775","#30c7f2","#f255a3","#8adf5a","#f5de43"],vYe=5e3;function wYe(){const t=z.useRef(null);return z.useEffect(()=>{const e=t.current;if(!e)return;const r=e.getContext("2d");if(!r)return;let n=0,a=performance.now(),i=window.innerWidth,o=window.innerHeight;const l=()=>{const d=window.devicePixelRatio||1;i=window.innerWidth,o=window.innerHeight,e.width=i*d,e.height=o*d,e.style.width=`${i}px`,e.style.height=`${o}px`,r.setTransform(d,0,0,d,0,0)},c=Array.from({length:170},()=>({x:Math.random()*i,y:-40-Math.random()*o*.45,size:5+Math.random()*7,color:P
1411V[Math.floor(Math.random()*PV.length)],drift:-1.8+Math.random()*3.6,speed:2.4+Math.random()*4.8,rotation:Math.random()*Math.PI,rotationSpeed:-.12+Math.random()*.24,shape:Math.random()>.35?"rect":"circle"})),u=d=>{const h=d-a;if(r.clearRect(0,0,i,o),c.forEach(m=>{m.y+=m.speed,m.x+=m.drift+Math.sin((h+m.y)*.006)*.7,m.rotation+=m.rotationSpeed,m.y>o+30&&(m.y=-30,m.x=Math.random()*i),r.save(),r.translate(m.x,m.y),r.rotate(m.rotation),r.fillStyle=m.color,m.shape==="circle"?(r.beginPath(),r.arc(0,0,m.size*.42,0,Math.PI*2),r.fill()):r.fillRect(-m.size/2,-m.size/3,m.size,m.size*.55),r.restore()}),h<vYe){n=requestAnimationFrame(u);return}r.clearRect(0,0,i,o)};return l(),a=performance.now(),n=requestAnimationFrame(u),window.addEventListener("resize",l),()=>{cancelAnimationFrame(n),window.removeEventListener("resize",l),r.clearRect(0,0,i,o)}},[]),s.jsx("canvas",{ref:t,className:"pointer-events-none fixed inset-0 z-[60]","aria-hidden":!0})}function MV(){return z.useEffect(()=>{const t=document.title,e=document.createElement("meta");return e.name="robots",e.content="noindex, nofollow",e.setAttribute("data-hba-renewal-success-seo","true"),document.title="Renewal Complete | Health Benefits Associates",document.head.appendChild(e),()=>{document.title=t,document.head.querySelectorAll('[data-hba-renewal-success-seo="true"]').forEach(r=>r.remove())}},[]),s.jsxs("div",{className:"relative isolate overflow-hidden bg-white",children:[s.jsx(wYe,{}),s.jsxs("section",{className:"mx-auto flex min-h-[72vh] max-w-7xl flex-col items-center justify-center px-4 py-20 text-center md:py-28",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.24em] text-hba-orange-1",children:"Renewal Complete"}),s.jsx("h1",{className:"mt-5 max-w-5xl text-4xl font-black uppercase leading-tight tracking-[0.02em] text-hba-blue-1 md:text-6xl",children:"Thank You for Confirming Your Intent to Renew"}),s.jsx("div",{className:"mt-9 flex h-28 w-28 items-center justify-center rounded-lg border-[10px] border-hba-blue-1 bg-white text-hba-blue-1 shadow-sm md:h-32 md:w-32",children:s.jsx(er,{className:"h-16 w-16 stroke-[3] md:h-20 md:w-20","aria-hidden":!0})}),s.jsx("p",{className:"mt-10 max-w-4xl text-base font-medium leading-relaxed text-slate-700 md:text-lg",children:"There is nothing else you need to do. As long as you do not make any changes, your policy will automatically renew on January 1st. If you have any additional questions, please contact your broker. Your broker will contact you if they need anything additional."}),s.jsxs("div",{className:"mt-10 flex flex-col gap-4 sm:flex-row",children:[s.jsxs(ue,{to:"/",className:"inline-flex min-h-12 items-center justify-center gap-2 rounded-lg bg-hba-orange-1 px-6 py-3 text-sm font-black uppercase tracking-[0.14em] text-white transition hover:bg-hba-orange-2 focus:outline-none focus:ring-4 focus:ring-hba-orange-1/25",children:[s.jsx(hU,{className:"h-4 w-4","aria-hidden":!0}),"Home Page"]}),s.jsxs("a",{href:"tel:7758281216",className:"inline-flex min-h-12 items-center justify-center gap-2 rounded-lg border border-hba-blue-1/20 bg-white px-6 py-3 text-sm font-black uppercase tracking-[0.14em] text-hba-blue-1 transition hover:border-hba-blue-1 hover:bg-hba-blue-1 hover:text-white focus:outline-none focus:ring-4 focus:ring-hba-blue-1/15",children:[s.jsx(Ut,{className:"h-4 w-4","aria-hidden":!0}),"Call Us"]}),s.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex min-h-12 items-center justify-center gap-2 rounded-lg border border-hba-blue-1/20 bg-white px-6 py-3 text-sm font-black uppercase tracking-[0.14em] text-hba-blue-1 transition hover:border-hba-blue-1 hover:bg-hba-blue-1 hover:text-white focus:outline-none focus:ring-4 focus:ring-hba-blue-1/15",children:[s.jsx(Na,{className:"h-4 w-4","aria-hidden":!0}),"Email Us"]})]})]})]})}const L_="https://healthbenefits.net",NYe=`${L_}/blog-news/`;function jYe(t){const e=t.replace(/^\/+|\/+$/g,"");return`${L_}/${e}/`}function kYe(t){const e=new Date(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function SYe({article:t}){const e=t.categories[0],r=`/${t.slug}`;return s.jsxs("article",{className:"group flex h-full flex-col overflow-hidden rounded-lg border border-hba-blue-1/10 bg-white shadow-sm transition hover:-translate-y-1 hover:border-hba-orange-1/40 hover:shadow-lg",children:[s.jsx(ue,{to:r,className:"block bg-hba-blue-1/[0.04]",children:t.featured_image_url?s.jsx("img",{src:t.featured_image_url,alt:"",className:"aspect-[16/9] w-full object-cover transition duration-300 group-hover:scale-[1.02]",loading:"lazy"}):s.jsx("div",{className:"flex aspect-[16/9] w-full items-center justify-center bg-hba-blue-1/[0.07] px-6 text-center text-xs font-black uppercase tracking-[0.18em] text-hba-blue-2",children:"Health Benefits Associates"})}),s.jsxs("div",{className:"flex flex-1 flex-col p-5",children:[e?s.jsx(ue,{to:`/blog-news/?category=${encodeURIComponent(e.slug)}`,className:"mb-3 w-fit text-[11px] font-black uppercase tracking-[0.18em] text-hba-orange-1 hover:text-hba-orange-2",children:e.name}):null,s.jsx("h2",{className:"text-xl font-black leading-tight tracking-tight text-hba-blue-1",children:s.jsx(ue,{to:r,className:"transition hover:text-hba-orange-1",children:t.title})}),s.jsx("p",{className:"mt-3 line-clamp-3 text-sm leading-relaxed text-hba-blue-2",children:t.excerpt}),s.jsxs("div",{className:"mt-auto flex flex-wrap items-center gap-x-4 gap-y-2 pt-5 text-xs font-bold text-hba-grey-1",children:[s.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[s.jsx(df,{className:"h-3.5 w-3.5 text-hba-orange-1","aria-hidden":!0}),kYe(t.post_date)]}),t.author_name?s.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[s.jsx(hS,{className:"h-3.5 w-3.5 text-hba-orange-1","aria-hidden":!0}),t.author_name]}):null]})]})]})}function CYe({search:t,category:e,categories:r,onSearchChange:n,onCategoryChange:a,onSubmit:i}){return s.jsxs("form",{className:"grid gap-3 rounded-lg border border-hba-blue-1/10 bg-white p-4 shadow-sm md:grid-cols-[1fr_260px_auto]",onSubmit:o=>{o.preventDefault(),i()},children:[s.jsxs("label",{className:"relative block",children:[s.jsx("span",{className:"sr-only",children:"Search articles"}),s.jsx(Ls,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-hba-grey-1"}),s.jsx("input",{value:t,onChange:o=>n(o.target.value),placeholder:"Search articles",className:"h-12 w-full rounded-lg border border-gray-300 bg-white pl-10 pr-4 text-sm text-hba-blue-1 outline-none transition focus:border-hba-orange-1 focus:ring-2 focus:ring-hba-orange-1/20"})]}),s.jsxs("label",{className:"block",children:[s.jsx("span",{className:"sr-only",children:"Filter by category"}
1411),s.jsxs("select",{value:e,onChange:o=>a(o.target.value),className:"h-12 w-full rounded-lg border border-gray-300 bg-white px-3 text-sm font-bold text-hba-blue-1 outline-none transition focus:border-hba-orange-1 focus:ring-2 focus:ring-hba-orange-1/20",children:[s.jsx("option",{value:"",children:"All categories"}),r.map(o=>s.jsxs("option",{value:o.slug,children:[o.name," (",o.count,")"]},o.taxonomy_id))]})]}),s.jsx("button",{type:"submit",className:"inline-flex h-12 items-center justify-center rounded-lg bg-hba-orange-1 px-6 text-sm font-black uppercase tracking-[0.12em] text-white transition hover:bg-hba-orange-2",children:"Search"})]})}function $Ye({page:t,total:e,limit:r,onPageChange:n}){const a=Math.max(1,Math.ceil(e/r));if(a<=1)return null;const i=Array.from({length:a},(o,l)=>l+1).filter(o=>o===1||o===a||Math.abs(o-t)<=1);return s.jsxs("nav",{className:"flex flex-wrap items-center justify-center gap-2","aria-label":"Article pagination",children:[s.jsx("button",{type:"button",onClick:()=>n(t-1),disabled:t<=1,className:"inline-flex h-10 w-10 items-center justify-center rounded-lg border border-hba-blue-1/15 text-hba-blue-1 transition hover:border-hba-orange-1 disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Previous page",children:s.jsx(Fu,{className:"h-4 w-4"})}),i.map((o,l)=>{const c=i[l-1],u=c!=null&&o-c>1;return s.jsxs(z.Fragment,{children:[u?s.jsx("span",{className:"px-1 text-sm text-hba-grey-1",children:"..."}):null,s.jsx("button",{type:"button",onClick:()=>n(o),className:o===t?"inline-flex h-10 min-w-10 items-center justify-center rounded-lg bg-hba-blue-1 px-3 text-sm font-black text-white":"inline-flex h-10 min-w-10 items-center justify-center rounded-lg border border-hba-blue-1/15 px-3 text-sm font-black text-hba-blue-1 transition hover:border-hba-orange-1",children:o})]},o)}),s.jsx("button",{type:"button",onClick:()=>n(t+1),disabled:t>=a,className:"inline-flex h-10 w-10 items-center justify-center rounded-lg border border-hba-blue-1/15 text-hba-blue-1 transition hover:border-hba-orange-1 disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Next page",children:s.jsx(Vn,{className:"h-4 w-4"})})]})}const TV=12;function _Ye(){const[t,e]=wse(),r=Math.max(1,Number(t.get("page")??"1")||1),n=t.get("search")??"",a=t.get("category")??"",[i,o]=w.useState(n),[l,c]=w.useState([]),[u,d]=w.useState(null),[h,m]=w.useState(!0),[g,b]=w.useState(""),y=w.useMemo(()=>{const j=new URLSearchParams;return j.set("page",String(r)),j.set("limit",String(TV)),n.trim()&&j.set("search",n.trim()),a.trim()&&j.set("category",a.trim()),j.toString()},[a,r,n]);w.useEffect(()=>{document.title="News | Health Benefits Associates"},[]),w.useEffect(()=>{o(n)},[n]),w.useEffect(()=>{let j=!1;return fetch(ut("/api/articles/categories")).then($=>{if(!$.ok)throw new Error("Failed to load categories");return $.json()}).then($=>{j||c($)}).catch(()=>{j||c([])}),()=>{j=!0}},[]),w.useEffect(()=>{let j=!1;return m(!0),b(""),fetch(ut(`/api/articles?${y}`)).then($=>{if(!$.ok)throw new Error("Failed to load articles");return $.json()}).then($=>{j||d($)}).catch($=>{j||b($.message||"Failed to load articles")}).finally(()=>{j||m(!1)}),()=>{j=!0}},[y]);const v=j=>{const $=new URLSearchParams(t),C=j.page??r,_=j.search??n,O=j.category??a;C>1?$.set("page",String(C)):$.delete("page"),_.trim()?$.set("search",_.trim()):$.delete("search"),O.trim()?$.set("category",O.trim()):$.delete("category"),e($)},N=(u==null?void 0:u.articles)??[],S=(u==null?void 0:u.total)??0;return s.jsxs("div",{className:"bg-[#f5f6f8]",children:[s.jsx("section",{className:"border-b border-hba-blue-1/10 bg-white py-14 md:py-20",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-4",children:[s.jsx("p",{className:"text-xs font-black uppercase tracking-[0.24em] text-hba-orange-1",children:"News"}),s.jsx("h1",{className:"mt-3 max-w-4xl text-4xl font-black tracking-tight text-hba-blue-1 md:text-5xl",children:"Health Insurance Articles"}),s.jsx("p",{className:"mt-5 max-w-3xl text-lg leading-relaxed text-hba-blue-2",children:"Browse Health Benefits Associates articles imported from the legacy WordPress site."})]})}),s.jsxs("section",{className:"mx-auto max-w-7xl px-4 py-10 md:py-14",children:[s.jsx(CYe,{search:i,category:a,categories:l,onSearchChange:o,onCategoryChange:j=>v({page:1,category:j}),onSubmit:()=>v({page:1,search:i})}),s.jsxs("div",{className:"mt-6 flex items-center justify-between gap-3 text-sm text-hba-grey-1",children:[s.jsx("p",{children:h?"Loading articles...":`${S.toLocaleStr
1411ing()} articles`}),a?s.jsx("button",{type:"button",onClick:()=>v({page:1,category:""}),className:"text-sm font-black uppercase tracking-[0.1em] text-hba-orange-1 hover:text-hba-orange-2",children:"Clear category"}):null]}),g?s.jsx("div",{className:"mt-8 rounded-lg border border-red-200 bg-red-50 p-5 text-sm font-bold text-red-700",children:g}):null,!g&&h?s.jsx("div",{className:"mt-8 grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((j,$)=>s.jsx("div",{className:"h-80 animate-pulse rounded-lg bg-white shadow-sm"},$))}):null,!g&&!h&&N.length===0?s.jsx("div",{className:"mt-8 rounded-lg border border-hba-blue-1/10 bg-white p-8 text-center text-hba-blue-2",children:"No articles matched your filters."}):null,!g&&!h&&N.length>0?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"mt-8 grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:N.map(j=>s.jsx(SYe,{article:j},j.id))}),s.jsx("div",{className:"mt-10",children:s.jsx($Ye,{page:r,total:S,limit:TV,onPageChange:j=>v({page:j})})})]}):null]})]})}function AYe({html:t}){function e(r){var i;const n=r.target;if(!(n instanceof HTMLImageElement))return;n.classList.add("hba-article-content__broken-image");const a=n.closest("a, figure, p");a&&((i=a.textContent)==null?void 0:i.trim())===n.alt.trim()&&a.classList.add("hba-article-content__broken-image-wrapper")}return s.jsx("div",{className:"hba-article-content",onErrorCapture:e,dangerouslySetInnerHTML:{__html:t}})}function EYe({previousArticle:t,nextArticle:e}){return!t&&!e?null:s.jsxs("nav",{className:"grid gap-4 border-t border-hba-blue-1/10 pt-8 md:grid-cols-2","aria-label":"Adjacent articles",children:[t?s.jsxs(ue,{to:`/${t.slug}`,className:"group rounded-lg border border-hba-blue-1/10 bg-white p-5 shadow-sm transition hover:border-hba-orange-1/50 hover:shadow-md",children:[s.jsxs("span",{className:"flex items-center gap-2 text-xs font-black uppercase tracking-[0.16em] text-hba-orange-1",children:[s.jsx(Wo,{className:"h-4 w-4"}),"Previous Article"]}),s.jsx("span",{className:"mt-3 block text-lg font-black leading-tight text-hba-blue-1 group-hover:text-hba-orange-1",children:t.title})]}):s.jsx("div",{}),e?s.jsxs(ue,{to:`/${e.slug}`,className:"group rounded-lg border border-hba-blue-1/10 bg-white p-5 text-left shadow-sm transition hover:border-hba-orange-1/50 hover:shadow-md md:text-right",children:[s.jsxs("span",{className:"flex items-center gap-2 text-xs font-black uppercase tracking-[0.16em] text-hba-orange-1 md:justify-end",children:["Next Article",s.jsx(Xe,{className:"h-4 w-4"})]}),s.jsx("span",{className:"mt-3 block text-lg font-black leading-tight text-hba-blue-1 group-hover:text-hba-orange-1",children:e.title})]}):null]})}const Qp="data-hba-article-seo";function ei(t,e,r){if(!r)return;const n=document.createElement("meta");n.setAttribute(t,e),n.content=r,n.setAttribute(Qp,"true"),document.head.appendChild(n)}function OYe({article:t}){return w.useEffect(()=>{const e=t.seoTitle||`${t.title} | Health Benefits Associates`,r=t.seoDescription||t.excerpt||t.title,n=t.seoRobots||"index, follow",a=t.canonicalUrl||`https://healthbenefits.net/${encodeURIComponent(t.slug)}`,i=t.ogTitle||e,o=t.ogDescription||r,l=t.twitterTitle||i,c=t.twitterDescription||o,u=document.title;document.head.querySelectorAll(`[${Qp}]`).forEach(g=>g.remove()),document.title=e,ei("name","description",r),ei("name","robots",n),ei("property","og:type","article"),ei("property","og:title",i),ei("property","og:description",o),ei("property","og:url",a),ei("property","og:image",t.ogImage),ei("name","twitter:card","summary_large_image"),ei("name","twitter:title",l),ei("name","twitter:description",c),ei("name","twitter:image",t.twitterImage);const d=document.createElement("link");d.rel="canonical",d.href=a,d.setAttribute(Qp,"true"),document.head.appendChild(d);const h={"@context":"https://schema.org","@type":"Article",headline:t.title,description:r,datePublished:t.post_date,dateModified:t.modified_at||t.post_date,author:t.author_name?{"@type":"Person",name:t.author_name,...t.author_job_title?{jobTitle:t.author_job_title}:{}}:{"@type":"Organization",name:"Health Benefits Associates"},publisher:{"@type":"Organization",name:"Health Benefits Associates"},mainEntityOfPage:a};t.ogImage&&(h.image=t.ogImage);
1411const m=document.createElement("script");return m.type="application/ld+json",m.textContent=JSON.stringify(h).replace(/</g,"\\u003c"),m.setAttribute(Qp,"true"),document.head.appendChild(m),()=>{document.head.querySelectorAll(`[${Qp}]`).forEach(g=>g.remove()),document.title===e&&(document.title=u)}},[t]),null}function PYe(t){const e=new Date(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function MYe(){const{slug:t}=Hu(),[e,r]=w.useState(null),[n,a]=w.useState(!0),[i,o]=w.useState(""),[l,c]=w.useState(!1);if(w.useEffect(()=>{if(!t)return;let m=!1;return a(!0),r(null),o(""),c(!1),fetch(ut(`/api/articles/${encodeURIComponent(t)}`)).then(g=>{if(g.status===404)throw new Error("Article not found");if(!g.ok)throw new Error("Failed to load article");return g.json()}).then(g=>{m||r(g)}).catch(g=>{if(!m){if(g.message==="Article not found"){c(!0);return}o(g.message||"Failed to load article")}}).finally(()=>{m||a(!1)}),()=>{m=!0}},[t]),n)return s.jsx("div",{className:"bg-[#f5f6f8] py-20",children:s.jsxs("div",{className:"mx-auto max-w-4xl px-4",children:[s.jsx("div",{className:"h-10 w-2/3 animate-pulse rounded-lg bg-white"}),s.jsx("div",{className:"mt-6 h-96 animate-pulse rounded-lg bg-white"})]})});if(l)return s.jsx(Xte,{});if(i||!e)return s.jsx("div",{className:"bg-[#f5f6f8] py-20",children:s.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center",children:[s.jsx("h1",{className:"text-4xl font-black text-hba-blue-1",children:i||"Article not found"}),s.jsx(ue,{to:"/blog-news/",className:"mt-6 inline-flex rounded-lg bg-hba-orange-1 px-6 py-3 text-sm font-black uppercase tracking-[0.12em] text-white transition hover:bg-hba-orange-2",children:"Back to News"})]})});const{article:u,previousArticle:d,nextArticle:h}=e;return s.jsxs(s.Fragment,{children:[s.jsx(OYe,{article:u}),s.jsx("div",{className:"bg-[#f5f6f8]",children:s.jsxs("article",{children:[s.jsx("header",{className:"border-b border-hba-blue-1/10 bg-white py-12 md:py-16",children:s.jsxs("div",{className:"mx-auto max-w-5xl px-4",children:[s.jsx(ue,{to:"/blog-news/",className:"text-xs font-black uppercase tracking-[0.18em] text-hba-orange-1 hover:text-hba-orange-2",children:"News"}),s.jsx("h1",{className:"mt-4 max-w-4xl text-4xl font-black tracking-tight text-hba-blue-1 md:text-5xl",children:u.title}),s.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-5 gap-y-2 text-sm font-bold text-hba-blue-2",children:[s.jsxs("span",{className:"inline-flex items-center gap-2",children:[s.jsx(hS,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),u.author_name]}),s.jsxs("span",{className:"inline-flex items-center gap-2",children:[s.jsx(df,{className:"h-4 w-4 text-hba-orange-1","aria-hidden":!0}),PYe(u.post_date)]})]}),u.categories.length>0?s.jsx("div",{className:"mt-6 flex flex-wrap gap-2",children:u.categories.map(m=>s.jsx(ue,{to:`/blog-news/?category=${encodeURIComponent(m.slug)}`,className:"rounded-full border border-hba-orange-1/25 bg-hba-orange-1/10 px-3 py-1 text-xs font-black uppercase tracking-[0.12em] text-hba-orange-1",children:m.name},m.taxonomy_id))}):null]})}),u.featured_image_url?s.jsx("div",{className:"bg-white",children:s.jsx("div",{className:"mx-auto max-w-5xl px-4 pb-8",children:s.jsx("img",{src:u.featured_image_url,alt:"",className:"max-h-[520px] w-full rounded-lg object-cover shadow-lg"})})}):null,s.jsxs("div",{className:"mx-auto max-w-5xl px-4 py-10 md:py-14",children:[s.jsxs("div",{className:"rounded-lg border border-hba-blue-1/10 bg-white px-5 py-8 shadow-sm md:px-10 md:py-12",children:[s.jsx(AYe,{html:u.content}),u.tags.length>0?s.jsx("div",{className:"mt-10 flex flex-wrap gap-2 border-t border-hba-blue-1/10 pt-6",children:u.tags.map(m=>s.jsx("span",{className:"rounded-full bg-hba-blue-1/[0.06] px-3 py-1 text-xs font-bold text-hba-blue-2",children:m.name},m.taxonomy_id))}):null]}),s.jsx("div",{className:"mt-8",children:s.jsx(EYe,{previousArticle:d,nextArticle:h})})]})]})})]})}const qc=()=>{const{pathname:t}=$r();return z.useEffect(()=>{window.scrollTo(0,0)},[t]),null},TYe=()=>{const t=$r();return z.useEffect(()=>{Om()&&dbe(`${t.pathname}${t.search}`)},[t.pathname,t.search]),z.useEffect(()=>{if(Om())return gbe()},[]),null},Tb=({title:t})=>s.jsxs("div",{className:"py-32 max-w-7xl mx-auto px-4 text-center",children:[s.jsx("h1",{className:"text-4xl font-black text-hba-blue uppercase mb-8",children:t}),s.jsxs("p",{className:"text-xl text-gray-500 max-w-2xl mx-auto leading-relaxed",children:["This page is under construction. Please contact us at (775) 828-1216 for more information regarding ",t.toLowerCase(),"."]})]}),Jte=new Set(["/","/reno-insurance-broker/","/reno-health-insurance-broker/","/services/","/major-medical-insurance-plans/","/medicare/","/blog-news/","/our-team/","/faqs/","/find-a-doctor/","/renolocation/","/sparkslocation/","/carsonlocation/","/fernleylocation/","/hendersonlocation/","/tru
1411ckee-medicare/","/dental-insurance/","/vision-insurance-2/","/life-insurance/","/travel-insurance-reno/","/short-term-health-insurance/","/hometown-health/","/nevada-individual-open-enrollment-2/","/qualified-life-events/","/small-business-health-coverage-2/","/bann-association-health-plan/","/compliance-for-insurance-plans/","/aetna-medicare-advantage/","/prominence-medicare-advantage/","/kaiser/","/nevada-medicare-advantage-enrollment-period/","/medicare-prescription-drug-plans/","/nevada-part-d-annual-enrollment/","/group-quote-request/","/medicare-quote-request/","/privacy-policy-2/","/accessibility-statement/","/sms-terms-and-conditions/"]),Qte=t=>t==="/"?"/":`${t.replace(/\/+$/g,"")}/`,RYe=(t,e,r)=>`${t}${e}${r}`,ft=({to:t})=>{const e=$r();return s.jsx(ch,{to:RYe(t,e.search,e.hash),replace:!0})},IYe=()=>{const t=$r();return z.useEffect(()=>{document.head.querySelectorAll('[data-hba-static-seo="true"]').forEach(i=>i.remove());const e=Qte(t.pathname);if(!Jte.has(e))return;const r=`${L_}${e}`,n=document.createElement("link");n.rel="canonical",n.href=r,n.setAttribute("data-hba-static-seo","true"),document.head.appendChild(n);const a=document.createElement("meta");return a.setAttribute("property","og:url"),a.content=r,a.setAttribute("data-hba-static-seo","true"),document.head.appendChild(a),()=>{document.head.querySelectorAll('[data-hba-static-seo="true"]').forEach(i=>i.remove())}},[t.pathname]),null},DYe=({to:t})=>{const e=Hu();return z.useEffect(()=>{const r=typeof t=="function"?t(e):t;window.location.replace(r)},[t,e]),null},LYe=({slug:t})=>t?jYe(t):NYe,BYe=()=>{const{slug:t}=Hu(),e=$r(),r=t?`/${encodeURIComponent(t)}${e.search}${e.hash}`:`/blog-news/${e.search}${e.hash}`;return s.jsx(ch,{to:r,replace:!0})},HYe=()=>{const{slug:t}=Hu();return s.jsx(ft,{to:t?`/our-team/${encodeURIComponent(t)}`:"/our-team/"})},FYe=()=>{const t=$r(),e=t.pathname.replace(/\/+$/,"")||"/",r=e.startsWith("/admin"),n=e==="/login",a=e==="/set-password",i=e==="/forgot-password",o=e==="/reset-password",l=e==="/mfa",c=Qte(t.pathname);return t.pathname!=="/"&&!t.pathname.endsWith("/")&&Jte.has(c)?s.jsx(ft,{to:c}):a?s.jsxs(s.Fragment,{children:[s.jsx(Uc,{}),s.jsx(qc,{}),s.jsx(j9,{})]}):i?s.jsxs(s.Fragment,{children:[s.jsx(Uc,{}),s.jsx(qc,{}),s.jsx(k9,{})]}):o?s.jsxs(s.Fragment,{children:[s.jsx(Uc,{}),s.jsx(qc,{}),s.jsx(S9,{})]}):l?s.jsxs(s.Fragment,{children:[s.jsx(Uc,{}),s.jsx(qc,{}),s.jsx(C9,{})]}):r?s.jsxs(s.Fragment,{children:[s.jsx(Uc,{}),s.jsxs(tKe,{children:[s.jsx(qc,{}),s.jsx(eKe,{})]})]}):n?s.jsxs(s.Fragment,{children:[s.jsx(Uc,{}),s.jsx(qc,{}),s.jsx(N9,{})]}):s.jsxs(s.Fragment,{children:[s.jsx(Uc,{}),s.jsx(qc,{}),s.jsxs("div",{className:"min-h-screen flex flex-col font-sans selection:bg-amber-200 selection:text-gray-900",children:[s.jsx(Qpe,{}),s.jsx(IYe,{}),s.jsx("main",{className:"flex-grow",children:s.jsxs(qae,{children:[s.jsx(je,{path:"/",element:s.jsx(rYe,{})}),s.jsx(je,{path:"/old-homepage",element:s.jsx(Sme,{})}),s.jsx(je,{path:"/medicare/",element:s.jsx(Xme,{})}),s.jsx(je,{path:"/medicare/quote",element:s.jsx(ft,{to:"/medicare-quote-request/"})}),s.jsx(je,{path:"/medicare-quote-request/",element:s.jsx(a0e,{})}),s.jsx(je,{path:"/medicare/signing-up",element:s.jsx(ft,{to:"/medicare/"})}),s.jsx(je,{path:"/medicare/prominence",element:s.jsx(ft,{to:"/prominence-medicare-advantage/"})}),s.jsx(je,{path:"/medicare/renown",element:s.jsx(ft,{to:"/kaiser/"})}),s.jsx(je,{path:"/medicare/aetna",element:s.jsx(ft,{to:"/aetna-medicare-advantage/"})}),s.jsx(je,{path:"/medicare/aep",element:s.jsx(ft,{to:"/nevada-medicare-advantage-enrollment-period/"})}),s.jsx(je,{path:"/medicare/prescriptions",element:s.jsx(ft,{to:"/medicare-prescription-drug-plans/"})}),s.jsx(je,{path:"/medicare/part-d",element:s.jsx(ft,{to:"/nevada-part-d-annual-enrollment/"})}),s.jsx(je,{path:"/prominence-medicare-advantage/",element:s.jsx(d0e,{})}),s.jsx(je,{path:"/prominence-medicare",element:s.jsx(ft,{to:"/prominence-medicare-advantage/"})}),s.jsx(je,{path:"/kaiser/",element:s.jsx(m0e,{})}),s.jsx(je,{path:"/renown-medicare-2/",element:s.jsx(ft,{to:"/kaiser/"})}),s.jsx(je,{path:"/renown-medicare",element:s.jsx(ft,{to:"/kaiser/"})}),s.jsx(je,{path:"/aetna-medicare-advantage/",element:s.jsx(v0e,{})}),s.jsx(je,{path:"/aetna-medicare",element:s.jsx(ft,{to:"/aetna-medicare-advantage/"})}),s.jsx(je,{path:"/medicare-annual-enrollment",element:s.jsx(ft,{to:"/nevada-medicare-advantage-enrollment-period/"})}),s.jsx(je,{path:"/medicare-special-enrollment",element:s.jsx(Tb,{title:"Medicare Special Enrollment Period"})}),s.jsx(je,{path:"/medicare/sep",element:s.jsx(ft,{to:"/medicare-special-enrollment"})}),s.jsx(je,{path:"/medicare-prescriptions",element:s.jsx(ft,{to:"/medicare-prescription-drug-plans/"})}),s.jsx(je,{path:"/medicare-prescription-drug-plans/",element:s.jsx(f1e,{})}),s.jsx(je,{path:"/welcome-health-quest",element:s.jsx(L1e,{})}),s.jsx(je,{path:"/medicare-part-d-annual-enrollment",element:s.jsx(ft,{to:"/nevada-part-d-annual-enrollment/"})}),s.jsx(je,{path:"/nevada-part-d-annual-enrollment/",element:s.jsx(v1e,{})}),s.jsx(je,{path:"/medicare-advantage-enrollment-period",element:s.jsx(ft,{to:"/nevada-medicare-advantage-enrollment-period/"})}),s.jsx(je,{path:"/nevada-medicare-advantage-enrollment-period/",element:s.jsx(n1e,{})}),s.jsx(je,{path:"/services/",element:s.jsx(CM,{})}
1411),s.jsx(je,{path:"/individual",element:s.jsx(ft,{to:"/services/"})}),s.jsx(je,{path:"/major-medical-insurance-plans/",element:s.jsx(CM,{})}),s.jsx(je,{path:"/individual-insurance",element:s.jsx(ft,{to:"/major-medical-insurance-plans/"})}),s.jsx(je,{path:"/individual/individual-insurance",element:s.jsx(ft,{to:"/major-medical-insurance-plans/"})}),s.jsx(je,{path:"/hometown-health/",element:s.jsx(mxe,{})}),s.jsx(je,{path:"/individual/hometown-health",element:s.jsx(ft,{to:"/hometown-health/"})}),s.jsx(je,{path:"/nevada-individual-open-enrollment-2/",element:s.jsx(Sxe,{})}),s.jsx(je,{path:"/open-enrollment",element:s.jsx(ft,{to:"/nevada-individual-open-enrollment-2/"})}),s.jsx(je,{path:"/individual/open-enrollment",element:s.jsx(ft,{to:"/nevada-individual-open-enrollment-2/"})}),s.jsx(je,{path:"/qualified-life-events/",element:s.jsx(A9,{})}),s.jsx(je,{path:"/ifp-quote",element:s.jsx(O2e,{})}),s.jsx(je,{path:"/contact-us",element:s.jsx(ft,{to:"/reno-health-insurance-broker/"})}),s.jsx(je,{path:"/dental-insurance/",element:s.jsx(Ixe,{})}),s.jsx(je,{path:"/individual/dental-insurance",element:s.jsx(ft,{to:"/dental-insurance/"})}),s.jsx(je,{path:"/vision-insurance-2/",element:s.jsx(qxe,{})}),s.jsx(je,{path:"/vision-insurance",element:s.jsx(ft,{to:"/vision-insurance-2/"})}),s.jsx(je,{path:"/individual/vision-insurance",element:s.jsx(ft,{to:"/vision-insurance-2/"})}),s.jsx(je,{path:"/life-insurance/",element:s.jsx(Qxe,{})}),s.jsx(je,{path:"/individual/life-insurance",element:s.jsx(ft,{to:"/life-insurance/"})}),s.jsx(je,{path:"/travel-insurance-reno/",element:s.jsx(c2e,{})}),s.jsx(je,{path:"/travel-insurance",element:s.jsx(ft,{to:"/travel-insurance-reno/"})}),s.jsx(je,{path:"/individual/travel-insurance",element:s.jsx(ft,{to:"/travel-insurance-reno/"})}),s.jsx(je,{path:"/short-term-health-insurance/",element:s.jsx(j2e,{})}),s.jsx(je,{path:"/individual/short-term-plans",element:s.jsx(ft,{to:"/short-term-health-insurance/"})}),s.jsx(je,{path:"/hmo-vs-ppo",element:s.jsx(Tb,{title:"HMO vs PPO"})}),s.jsx(je,{path:"/health-savings-account",element:s.jsx(Tb,{title:"Health Savings Account in Nevada"})}),s.jsx(je,{path:"/small-business-insurance",element:s.jsx(ft,{to:"/small-business-health-coverage-2/"})}),s.jsx(je,{path:"/individual/:slug",element:s.jsx(Xbe,{})}),s.jsx(je,{path:"/insurance-plan/compare-plans",element:s.jsx(H2e,{})}),s.jsx(je,{path:"/group-quote-request/",element:s.jsx(i0e,{})}),s.jsx(je,{path:"/small-business/group-quote",element:s.jsx(ft,{to:"/group-quote-request/"})}),s.jsx(je,{path:"/small-business-health-coverage-2/",element:s.jsx(iM,{})}),s.jsx(je,{path:"/small-business",element:s.jsx(ft,{to:"/small-business-health-coverage-2/"})}),s.jsx(je,{path:"/small-business/bann",element:s.jsx(ft,{to:"/bann-association-health-plan/"})}),s.jsx(je,{path:"/bann-association-health-plan/",element:s.jsx(Zge,{})}),s.jsx(je,{path:"/compliance-for-insurance-plans/",element:s.jsx(rbe,{})}),s.jsx(je,{path:"/small-business/compliance",element:s.jsx(ft,{to:"/compliance-for-insurance-plans/"})}),s.jsx(je,{path:"/small-business/*",element:s.jsx(iM,{})}),s.jsx(je,{path:"/locations",element:s.jsx(OV,{})}),s.jsx(je,{path:"/old-locations-page",element:s.jsx(lbe,{})}),s.jsx(je,{path:"/alternate-locations-page",element:s.jsx(OV,{})}),s.jsx(je,{path:"/renolocation/",element:s.jsx(Lc,{})}),s.jsx(je,{path:"/sparkslocation/",element:s.jsx(Lc,{})}),s.jsx(je,{path:"/carsonlocation/",element:s.jsx(Lc,{})}),s.jsx(je,{path:"/hendersonlocation/",element:s.jsx(Lc,{})}),s.jsx(je,{path:"/fernleylocation/",element:s.jsx(Lc,{})}),s.jsx(je,{path:"/truckee-medicare/",element:s.jsx(Lc,{})}),s.jsx(je,{path:"/locations/reno",element:s.jsx(ft,{to:"/renolocation/"})}),s.jsx(je,{path:"/locations/sparks",element:s.jsx(ft,{to:"/sparkslocation/"})}),s.jsx(je,{path:"/locations/carson-city",element:s.jsx(ft,{to:"/carsonlocation/"})}),s.jsx(je,{path:"/locations/henderson",element:s.jsx(ft,{to:"/hendersonlocation/"})}),s.jsx(je,{path:"/locations/fernley",element:s.jsx(ft,{to:"/fernleylocation/"})}),s.jsx(je,{path:"/locations/truckee",element:s.jsx(ft,{to:"/truckee-medicare/"})}),s.jsx(je,{path:"/locations/:slug",element:s.jsx(Lc,{})}),s.jsx(je,{path:"/reno-health-insurance-broker/",element:s.jsx(xbe,{})}),s.jsx(je,{path:"/contact",element:s.jsx(ft,{to:"/reno-health-insurance-broker/"})}),s.jsx(je,{path:"/team",element:s.jsx(ft,{to:"/our-team/"})}),s.jsx(je,{path:"/reno-insurance-broker/",element:s.jsx(kM,{})}),s.jsx(je,{path:"/about",element:s.jsx(ft,{to:"/reno-insurance-broker/"})}),s.jsx(je,{path:"/our-team/",element:s.jsx(kM,{})}),s.jsx(je,{path:"/about/team",element:s.jsx(ft,{to:"/our-team/"})}),s.jsx(je,{path:"/about-draft",element:s.jsx(vbe,{})}),s.jsx(je,{path:"/our-team/:slug",element:s.jsx(Nbe,{})}),s.jsx(je,{path:"/about/team/:slug",element:s.jsx(HYe,{})}),s.jsx(je,{path:"/blog-news/",element:s.jsx(_Ye,{})}),s.jsx(je,{path:"/news",element:s.jsx(ft,{to:"/blog-news/"})}),s.jsx(je,{path:"/news/:slug",element:s.jsx(BYe,{})}),s.jsx(je,{path:"/article/dental-coverage",element:s.jsx(ft,{to:"/dental-insurance/"})}),s.jsx(je,{path:"/article/vision-coverage",element:s.jsx(ft,{to:"/vision-insurance-2/"})}),s.jsx(je,{path:"/article/:slug",element:s.jsx(DYe,{to:LYe})}),s.jsx(je,{path:"/faqs/",element:s.jsx(A9,{})}),s.jsx(je,{path:"/medicarefaq/",element:s.jsx(A9,{})}),s.jsx(je,{path:"/reviews",element:s.jsx(Tb,{title:"Client Reviews"})}),s.jsx(je,{path:"/privacy",element:s.jsx(ft,{to:"/privacy-policy-2/"})}),s.jsx(je,{path:"/privacy-policy-2/",element:s.jsx(Tbe,{})}),s.jsx(je,{path:"/privacy-policy",element:s.jsx(ft,{to:"/privacy-policy-2/"})}),s.jsx(je,{path:"/terms",element:s.jsx(ft,{to:"/accessibility-statement/"})}),s.jsx(je,{path:"/accessibility-statement/",element:s.jsx(Rbe,{})}),s.jsx(je,{path:"/renewal-success",element:s.jsx(MV,{})}),s.jsx(je,{path:"/renewal-success/",element:s.jsx(MV,{})}),s.jsx(je,{path:"/sms-terms-and-conditions/",element:s.jsx(Ibe,{})}),s.jsx(je,{path:"/sms-terms-and-conditions",element:s.jsx(ft,{to:"/sms-terms-and-conditions/"})}),s.jsx(je,{path:"/login",element:s.jsx(N9,{})}),s.jsx(je,{path:"/login/",element:s.jsx(N9,{})}),s.jsx(je,{path:"/signup",element:s.jsx(ch,{to:"/login",replace:!0})}),s.jsx(je,{path:"/signup/",element:s.jsx(ch,{to:"/login",replace:!0})}),s.jsx(je,{path:"/set-password",element:s.jsx(j9,{})}),s.jsx(je,{path:"/set-password/",element:s.jsx(j9,{})}),s.jsx(je,{path:"/forgot-password",element:s.jsx(k9,{})}),s.jsx(je,{path:"/forgot-password/",element:s.jsx(k9,{})}),s.jsx(je,{path:"/reset-password",element:s.jsx(S9,{})}),s.jsx(je,{path:"/reset-password/",element:s.jsx(S9,{})}),s.jsx(je,{path:"/mfa",element:s.jsx(C9,{})}),s.jsx(je,{path:"/mfa/",element:s.jsx(C9,{})}),s.jsx(je,{path:"/find-a-doctor/",element:s.jsx(Mbe,{})}
1411),s.jsx(je,{path:"/individual/find-a-doctor",element:s.jsx(ft,{to:"/find-a-doctor/"})}),s.jsx(je,{path:"/home-page-alternate",element:s.jsx(lKe,{})}),s.jsx(je,{path:"/home-page-draft1",element:s.jsx(vKe,{})}),s.jsx(je,{path:"/home-page-draft2",element:s.jsx(TKe,{})}),s.jsx(je,{path:"/home-page-draft-3",element:s.jsx(ch,{to:"/",replace:!0})}),s.jsx(je,{path:"/final-homepage",element:s.jsx(fYe,{})}),s.jsx(je,{path:"/rocket-home-page",element:s.jsx(IKe,{})}),s.jsx(je,{path:"/:slug",element:s.jsx(MYe,{})}),s.jsx(je,{path:"*",element:s.jsx(Xte,{})})]})}),s.jsx(eme,{})]})]})};function zYe(){return s.jsxs(gse,{children:[s.jsx(TYe,{}),s.jsx(FYe,{}),s.jsx(zge,{position:"top-center",expand:!0,richColors:!0})]})}ube();Gne.createRoot(document.getElementById("root")).render(s.jsx(zYe,{}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.