PageSourceSearch

https://leansynergysolutions.com/assets/index-DhzHEJUt.js

js leansynergysolutions.com collected 2026-10-09 00:15:45 UTC 1,553,953 bytes, 1,075 lines download raw bytes

vendor: 4,529 bytes, lines 1-9
1var ZL=Object.defineProperty;var ON=e=>{throw TypeError(e)};var e5=(e,t,n)=>t in e?ZL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Rt=(e,t,n)=>e5(e,typeof t!="symbol"?t+"":t,n),Ig=(e,t,n)=>t.has(e)||ON("Cannot "+n);var se=(e,t,n)=>(Ig(e,t,"read from private field"),n?n.call(e):t.get(e)),nt=(e,t,n)=>t.has(e)?ON("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Fe=(e,t,n,s)=>(Ig(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),dt=(e,t,n)=>(Ig(e,t,"access private method"),n);var Ff=(e,t,n,s)=>({set _(i){Fe(e,t,i,n)},get _(){return se(e,t,s)}});function t5(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(s,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Bf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lg={exports:{}},au={},Mg={exports:{}},mt={};/**
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 RN;function n5(){if(RN)return mt;RN=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;function m(P){return P===null||typeof P!="object"?null:(P=f&&P[f]||P["@@iterator"],typeof P=="function"?P:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,b={};function x(P,V,W){this.props=P,this.context=V,this.refs=b,this.updater=W||g}x.prototype.isReactComponent={},x.prototype.setState=function(P,V){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,V,"setState")},x.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function v(){}v.prototype=x.prototype;function N(P,V,W){this.props=P,this.context=V,this.refs=b,this.updater=W||g}var S=N.prototype=new v;S.constructor=N,j(S,x.prototype),S.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,O={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function A(P,V,W){var Z,X={},H=null,G=null;if(V!=null)for(Z in V.ref!==void 0&&(G=V.ref),V.key!==void 0&&(H=""+V.key),V)k.call(V,Z)&&!C.hasOwnProperty(Z)&&(X[Z]=V[Z]);var te=arguments.length-2;if(te===1)X.children=W;else if(1<te){for(var re=Array(te),ue=0;ue<te;ue++)re[ue]=arguments[ue+2];X.children=re}if(P&&P.defaultProps)for(Z in te=P.defaultProps,te)X[Z]===void 0&&(X[Z]=te[Z]);return{$$typeof:e,type:P,key:H,ref:G,props:X,_owner:O.current}}function B(P,V){return{$$typeof:e,type:P.type,key:V,ref:P.ref,props:P.props,_owner:P._owner}}function I(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function L(P){var V={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(W){return V[W]})}var D=/\/+/g;function R(P,V){return typeof P=="object"&&P!==null&&P.key!=null?L(""+P.key):V.toString(36)}function U(P,V,W,Z,X){var H=typeof P;(H==="undefined"||H==="boolean")&&(P=null);var G=!1;if(P===null)G=!0;
vendor: 4,209 bytes, line 9
9else switch(H){case"string":case"number":G=!0;break;case"object":switch(P.$$typeof){case e:case t:G=!0}}if(G)return G=P,X=X(G),P=Z===""?"."+R(G,0):Z,w(X)?(W="",P!=null&&(W=P.replace(D,"$&/")+"/"),U(X,V,W,"",function(ue){return ue})):X!=null&&(I(X)&&(X=B(X,W+(!X.key||G&&G.key===X.key?"":(""+X.key).replace(D,"$&/")+"/")+P)),V.push(X)),1;if(G=0,Z=Z===""?".":Z+":",w(P))for(var te=0;te<P.length;te++){H=P[te];var re=Z+R(H,te);G+=U(H,V,W,re,X)}else if(re=m(P),typeof re=="function")for(P=re.call(P),te=0;!(H=P.next()).done;)H=H.value,re=Z+R(H,te++),G+=U(H,V,W,re,X);else if(H==="object")throw V=String(P),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return G}function $(P,V,W){if(P==null)return P;var Z=[],X=0;return U(P,Z,"","",function(H){return V.call(W,H,X++)}),Z}function Y(P){if(P._status===-1){var V=P._result;V=V(),V.then(function(W){(P._status===0||P._status===-1)&&(P._status=1,P._result=W)},function(W){(P._status===0||P._status===-1)&&(P._status=2,P._result=W)}),P._status===-1&&(P._status=0,P._result=V)}if(P._status===1)return P._result.default;throw P._result}var K={current:null},Q={transition:null},q={ReactCurrentDispatcher:K,ReactCurrentBatchConfig:Q,ReactCurrentOwner:O};function F(){throw Error("act(...) is not supported in production builds of React.")}return mt.Children={map:$,forEach:function(P,V,W){$(P,function(){V.apply(this,arguments)},W)},count:function(P){var V=0;return $(P,function(){V++}),V},toArray:function(P){return $(P,function(V){return V})||[]},only:function(P){if(!I(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},mt.Component=x,mt.Fragment=n,mt.Profiler=i,mt.PureComponent=N,mt.StrictMode=s,mt.Suspense=d,mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,mt.act=F,mt.cloneElement=function(P,V,W){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var Z=j({},P.props),X=P.key,H=P.ref,G=P._owner;if(V!=null){if(V.ref!==void 0&&(H=V.ref,G=O.current),V.key!==void 0&&(X=""+V.key),P.type&&P.type.defaultProps)var te=P.type.defaultProps;for(re in V)k.call(V,re)&&!C.hasOwnProperty(re)&&(Z[re]=V[re]===void 0&&te!==void 0?te[re]:V[re])}var re=arguments.length-2;if(re===1)Z.children=W;else if(1<re){te=Array(re);for(var ue=0;ue<re;ue++)te[ue]=arguments[ue+2];Z.children=te}return{$$typeof:e,type:P.type,key:X,ref:H,props:Z,_owner:G}},mt.createContext=function(P){return P={$$typeof:l,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:o,_context:P},P.Consumer=P},mt.createElement=A,mt.createFactory=function(P){var V=A.bind(null,P);return V.type=P,V},mt.createRef=function(){return{current:null}},mt.forwardRef=function(P){return{$$typeof:c,render:P}},mt.isValidElement=I,mt.lazy=function(P){return{$$typeof:p,_payload:{_status:-1,_result:P},_init:Y}},mt.memo=function(P,V){return{$$typeof:h,type:P,compare:V===void 0?null:V}},mt.startTransition=function(P){var V=Q.transition;Q.transition={};try{P()}finally{Q.transition=V}},mt.unstable_act=F,mt.useCallback=function(P,V){return K.current.useCallback(P,V)},mt.useContext=function(P){return K.current.useContext(P)},mt.useDebugValue=function(){},mt.useDeferredValue=function(P){return K.current.useDeferredValue(P)},mt.useEffect=function(P,V){return K.current.useEffect(P,V)},mt.useId=function(){return K.current.useId()},mt.useImperativeHandle=function(P,V,W){return K.current.useImperativeHandle(P,V,W)},mt.useInsertionEffect=function(P,V){return K.current.useInsertionEffect(P,V)},mt.useLayoutEffect=function(P,V){return K.current.useLayoutEffect(P,V)},mt.useMemo=function(P,V){return K.current.useMemo(P,V)},mt.useReducer=function(P,V,W){return K.current.useReducer(P,V,W)},mt.useRef=function(P){return K.current.useRef(P)},mt.useState=function(P){return K.current.useState(P)},mt.useSyncExternalStore=function(P,V,W){return K.current.useSyncExternalStore(P,V,W)},mt.useTransition=function(){return K.current.useTransition()},mt.version="18.3.1",mt}var PN;
vendor: 6,874 bytes, lines 9-33
9function md(){return PN||(PN=1,Mg.exports=n5()),Mg.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 DN;function r5(){if(DN)return au;DN=1;var e=md(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function l(c,d,h){var p,f={},m=null,g=null;h!==void 0&&(m=""+h),d.key!==void 0&&(m=""+d.key),d.ref!==void 0&&(g=d.ref);for(p in d)s.call(d,p)&&!o.hasOwnProperty(p)&&(f[p]=d[p]);if(c&&c.defaultProps)for(p in d=c.defaultProps,d)f[p]===void 0&&(f[p]=d[p]);return{$$typeof:t,type:c,key:m,ref:g,props:f,_owner:i.current}}return au.Fragment=n,au.jsx=l,au.jsxs=l,au}var IN;function s5(){return IN||(IN=1,Lg.exports=r5()),Lg.exports}var r=s5(),E=md();const ve=dm(E),fm=t5({__proto__:null,default:ve},[E]);var Uf={},Fg={exports:{}},ir={},Bg={exports:{}},Ug={};/**
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 LN;function i5(){return LN||(LN=1,(function(e){function t(Q,q){var F=Q.length;Q.push(q);e:for(;0<F;){var P=F-1>>>1,V=Q[P];if(0<i(V,q))Q[P]=q,Q[F]=V,F=P;else break e}}function n(Q){return Q.length===0?null:Q[0]}function s(Q){if(Q.length===0)return null;var q=Q[0],F=Q.pop();if(F!==q){Q[0]=F;e:for(var P=0,V=Q.length,W=V>>>1;P<W;){var Z=2*(P+1)-1,X=Q[Z],H=Z+1,G=Q[H];if(0>i(X,F))H<V&&0>i(G,X)?(Q[P]=G,Q[H]=F,P=H):(Q[P]=X,Q[Z]=F,P=Z);else if(H<V&&0>i(G,F))Q[P]=G,Q[H]=F,P=H;else break e}}return q}function i(Q,q){var F=Q.sortIndex-q.sortIndex;return F!==0?F:Q.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],h=[],p=1,f=null,m=3,g=!1,j=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(Q){for(var q=n(h);q!==null;){if(q.callback===null)s(h);else if(q.startTime<=Q)s(h),q.sortIndex=q.expirationTime,t(d,q);else break;q=n(h)}}function w(Q){if(b=!1,S(Q),!j)if(n(d)!==null)j=!0,Y(k);else{var q=n(h);q!==null&&K(w,q.startTime-Q)}}function k(Q,q){j=!1,b&&(b=!1,v(A),A=-1),g=!0;var F=m;try{for(S(q),f=n(d);f!==null&&(!(f.expirationTime>q)||Q&&!L());){var P=f.callback;if(typeof P=="function"){f.callback=null,m=f.priorityLevel;var V=P(f.expirationTime<=q);q=e.unstable_now(),typeof V=="function"?f.callback=V:f===n(d)&&s(d),S(q)}else s(d);f=n(d)}if(f!==null)var W=!0;else{var Z=n(h);Z!==null&&K(w,Z.startTime-q),W=!1}return W}finally{f=null,m=F,g=!1}}var O=!1,C=null,A=-1,B=5,I=-1;function L(){return!(e.unstable_now()-I<B)}function D(){if(C!==null){var Q=e.unstable_now();I=Q;var q=!0;try{q=C(!0,Q)}finally{q?R():(O=!1,C=null)}}else O=!1}var R;if(typeof N=="function")R=function(){N(D)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,$=U.port2;U.port1.onmessage=D,R=function(){$.postMessage(null)}}else R=function(){x(D,0)};function Y(Q){C=Q,O||(O=!0,R())}function K(Q,q){A=x(function(){Q(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Q){Q.callback=null},e.unstable_continueExecution=function(){j||g||(j=!0,Y(k))},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<Q?Math.floor(1e3/Q):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(Q){switch(m){case 1:case 2:case 3:var q=3;break;default:q=m}var F=m;m=q;try{return Q()}finally{m=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Q,q){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var F=m;m=Q;try{return q()}finally{m=F}},e.unstable_scheduleCallback=function(Q,q,F){var P=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?P+F:P):F=P,Q){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=F+V,Q={id:p++,callback:q,priorityLevel:Q,startTime:F,expirationTime:V,sortIndex:-1},F>P?(Q.sortIndex=F,t(h,Q),n(d)===null&&Q===n(h)&&(b?(v(A),A=-1):b=!0,K(w,F-P))):(Q.sortIndex=V,t(d,Q),j||g||(j=!0,Y(k))),Q},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(Q){var q=m;return function(){var F=m;m=q;try{return Q.apply(this,arguments)}finally{m=F}}}})(Ug)),Ug}var MN;function o5(){return MN||(MN=1,Bg.exports=i5()),Bg.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 FN;function a5(){if(FN)return ir;FN=1;var e=md(),t=o5();function n(a){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+a,y=1;y<arguments.length;y++)u+="&args[]="+encodeURIComponent(arguments[y]);return"Minified React error #"+a+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function o(a,u){l(a,u),l(a+"Capture",u)}function l(a,u){for(i[a]=u,a=0;a<u.length;a++)s.add(u[a])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,h=/^[: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]*$/,p={},f={};function m(a){return d.call(f,a)?!0:d.call(p,a)?!1:h.test(a)?f[a]=!0:(p[a]=!0,!1)}function g(a,u,y,_){if(y!==null&&y.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return _?!1:y!==null?!y.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function j(a,u,y,_){if(u===null||typeof u>"u"||g(a,u,y,_))return!0;
vendor: 13,600 bytes, lines 33-37
33if(_)return!1;if(y!==null)switch(y.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function b(a,u,y,_,T,M,z){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=_,this.attributeNamespace=T,this.mustUseProperty=y,this.propertyName=a,this.type=u,this.sanitizeURL=M,this.removeEmptyString=z}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){x[a]=new b(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var u=a[0];x[u]=new b(u,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){x[a]=new b(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){x[a]=new b(a,2,!1,a,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(a){x[a]=new b(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){x[a]=new b(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){x[a]=new b(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){x[a]=new b(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){x[a]=new b(a,5,!1,a.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function N(a){return a[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(a){var u=a.replace(v,N);x[u]=new b(u,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var u=a.replace(v,N);x[u]=new b(u,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var u=a.replace(v,N);x[u]=new b(u,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){x[a]=new b(a,1,!1,a.toLowerCase(),null,!1,!1)}),x.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){x[a]=new b(a,1,!1,a.toLowerCase(),null,!0,!0)});function S(a,u,y,_){var T=x.hasOwnProperty(u)?x[u]:null;(T!==null?T.type!==0:_||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(j(u,y,T,_)&&(y=null),_||T===null?m(u)&&(y===null?a.removeAttribute(u):a.setAttribute(u,""+y)):T.mustUseProperty?a[T.propertyName]=y===null?T.type===3?!1:"":y:(u=T.attributeName,_=T.attributeNamespace,y===null?a.removeAttribute(u):(T=T.type,y=T===3||T===4&&y===!0?"":""+y,_?a.setAttributeNS(_,u,y):a.setAttribute(u,y))))}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),O=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),L=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),Q=Symbol.iterator;function q(a){return a===null||typeof a!="object"?null:(a=Q&&a[Q]||a["@@iterator"],typeof a=="function"?a:null)}var F=Object.assign,P;function V(a){if(P===void 0)try{throw Error()}catch(y){var u=y.stack.trim().match(/\n( *(at )?)/);P=u&&u[1]||""}return`
34`+P+a}var W=!1;function Z(a,u){if(!a||W)return"";W=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(pe){var _=pe}Reflect.construct(a,[],u)}else{try{u.call()}catch(pe){_=pe}a.call(u.prototype)}else{try{throw Error()}catch(pe){_=pe}a()}}catch(pe){if(pe&&_&&typeof pe.stack=="string"){for(var T=pe.stack.split(`
35`),M=_.stack.split(`
36`),z=T.length-1,ne=M.length-1;1<=z&&0<=ne&&T[z]!==M[ne];)ne--;for(;1<=z&&0<=ne;z--,ne--)if(T[z]!==M[ne]){if(z!==1||ne!==1)do if(z--,ne--,0>ne||T[z]!==M[ne]){var oe=`
37`+T[z].replace(" at new "," at ");return a.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",a.displayName)),oe}while(1<=z&&0<=ne);break}}}finally{W=!1,Error.prepareStackTrace=y}return(a=a?a.displayName||a.name:"")?V(a):""}function X(a){switch(a.tag){case 5:return V(a.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return a=Z(a.type,!1),a;case 11:return a=Z(a.type.render,!1),a;case 1:return a=Z(a.type,!0),a;default:return""}}function H(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case C:return"Fragment";case O:return"Portal";case B:return"Profiler";case A:return"StrictMode";case R:return"Suspense";case U:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case L:return(a.displayName||"Context")+".Consumer";case I:return(a._context.displayName||"Context")+".Provider";case D:var u=a.render;return a=a.displayName,a||(a=u.displayName||u.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case $:return u=a.displayName||null,u!==null?u:H(a.type)||"Memo";case Y:u=a._payload,a=a._init;try{return H(a(u))}catch{}}return null}function G(a){var u=a.type;switch(a.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=u.render,a=a.displayName||a.name||"",u.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(u);case 8:return u===A?"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 u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function te(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function re(a){var u=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function ue(a){var u=re(a)?"checked":"value",y=Object.getOwnPropertyDescriptor(a.constructor.prototype,u),_=""+a[u];if(!a.hasOwnProperty(u)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var T=y.get,M=y.set;return Object.defineProperty(a,u,{configurable:!0,get:function(){return T.call(this)},set:function(z){_=""+z,M.call(this,z)}}),Object.defineProperty(a,u,{enumerable:y.enumerable}),{getValue:function(){return _},setValue:function(z){_=""+z},stopTracking:function(){a._valueTracker=null,delete a[u]}}}}function ye(a){a._valueTracker||(a._valueTracker=ue(a))}function be(a){if(!a)return!1;var u=a._valueTracker;if(!u)return!0;var y=u.getValue(),_="";return a&&(_=re(a)?a.checked?"true":"false":a.value),a=_,a!==y?(u.setValue(a),!0):!1}function Te(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function ie(a,u){var y=u.checked;return F({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??a._wrapperState.initialChecked})}function De(a,u){var y=u.defaultValue==null?"":u.defaultValue,_=u.checked!=null?u.checked:u.defaultChecked;y=te(u.value!=null?u.value:y),a._wrapperState={initialChecked:_,initialValue:y,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function Ye(a,u){u=u.checked,u!=null&&S(a,"checked",u,!1)}function He(a,u){Ye(a,u);var y=te(u.value),_=u.type;if(y!=null)_==="number"?(y===0&&a.value===""||a.value!=y)&&(a.value=""+y):a.value!==""+y&&(a.value=""+y);else if(_==="submit"||_==="reset"){a.removeAttribute("value");return}u.hasOwnProperty("value")?he(a,u.type,y):u.hasOwnProperty("defaultValue")&&he(a,u.type,te(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(a.defaultChecked=!!u.defaultChecked)}function ce(a,u,y){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var _=u.type;if(!(_!=="submit"&&_!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+a._wrapperState.initialValue,y||u===a.value||(a.value=u),a.defaultValue=u}y=a.name,y!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,y!==""&&(a.name=y)}function he(a,u,y){(u!=="number"||Te(a.ownerDocument)!==a)&&(y==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+y&&(a.defaultValue=""+y))}var Ae=Array.isArray;function J(a,u,y,_){if(a=a.options,u){u={};for(var T=0;T<y.length;T++)u["$"+y[T]]=!0;for(y=0;y<a.length;y++)T=u.hasOwnProperty("$"+a[y].value),a[y].selected!==T&&(a[y].selected=T),T&&_&&(a[y].defaultSelected=!0)}else{for(y=""+te(y),u=null,T=0;T<a.length;T++){if(a[T].value===y){a[T].selected=!0,_&&(a[T].defaultSelected=!0);return}u!==null||a[T].disabled||(u=a[T])}u!==null&&(u.selected=!0)}}function ee(a,u){if(u.dangerouslySetInnerHTML!=null)throw Error(n(91));return F({},u,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function de(a,u){var y=u.value;if(y==null){if(y=u.children,u=u.defaultValue,y!=null){if(u!=null)throw Error(n(92));if(Ae(y)){if(1<y.length)throw Error(n(93));y=y[0]}u=y}u==null&&(u=""),y=u}a._wrapperState={initialValue:te(y)}}function je(a,u){var y=te(u.value),_=te(u.defaultValue);y!=null&&(y=""+y,y!==a.value&&(a.value=y),u.defaultValue==null&&a.defaultValue!==y&&(a.defaultValue=y)),_!=null&&(a.defaultValue=""+_)}function we(a){var u=a.textContent;u===a._wrapperState.initialValue&&u!==""&&u!==null&&(a.value=u)}function _e(a){switch(a){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 qe(a,u){return a==null||a==="http://www.w3.org/1999/xhtml"?_e(u):a==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var Qe,ht=(function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,y,_,T){MSApp.execUnsafeLocalFunction(function(){return a(u,y,_,T)})}:a})(function(a,u){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=u;else{for(Qe=Qe||document.createElement("div"),Qe.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=Qe.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}});function at(a,u){if(u){var y=a.firstChild;if(y&&y===a.lastChild&&y.nodeType===3){y.nodeValue=u;return}}a.textContent=u}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},_n=["Webkit","ms","Moz","O"];Object.keys(Dt).forEach(function(a){_n.forEach(function(u){u=u+a.charAt(0).toUpperCase()+a.substring(1),Dt[u]=Dt[a]})});function Ka(a,u,y){return u==null||typeof u=="boolean"||u===""?"":y||typeof u!="number"||u===0||Dt.hasOwnProperty(a)&&Dt[a]?(""+u).trim():u+"px"}function Ci(a,u){a=a.style;for(var y in u)if(u.hasOwnProperty(y)){var _=y.indexOf("--")===0,T=Ka(y,u[y],_);y==="float"&&(y="cssFloat"),_?a.setProperty(y,T):a[y]=T}}var Ti=F({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 Ai(a,u){if(u){if(Ti[a]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(n(137,a));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(n(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(n(61))}if(u.style!=null&&typeof u.style!="object")throw Error(n(62))}}function Oi(a,u){if(a.indexOf("-")===-1)return typeof u.is=="str
37ing";switch(a){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 Xs=null;function Hn(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var _c=null,Ri=null,Zs=null;function kc(a){if(a=Wc(a)){if(typeof _c!="function")throw Error(n(280));var u=a.stateNode;u&&(u=Xd(u),_c(a.stateNode,a.type,u))}}function ct(a){Ri?Zs?Zs.push(a):Zs=[a]:Ri=a}function Kt(){if(Ri){var a=Ri,u=Zs;if(Zs=Ri=null,kc(a),u)for(a=0;a<u.length;a++)kc(u[a])}}function cn(a,u){return a(u)}function Rn(){}var Pi=!1;function nn(a,u,y){if(Pi)return a(u,y);Pi=!0;try{return cn(a,u,y)}finally{Pi=!1,(Ri!==null||Zs!==null)&&(Rn(),Kt())}}function pn(a,u){var y=a.stateNode;if(y===null)return null;var _=Xd(y);if(_===null)return null;y=_[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(_=!_.disabled)||(a=a.type,_=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!_;break e;default:a=!1}if(a)return null;if(y&&typeof y!="function")throw Error(n(231,u,typeof y));return y}var Di=!1;if(c)try{var kn={};Object.defineProperty(kn,"passive",{get:function(){Di=!0}}),window.addEventListener("test",kn,kn),window.removeEventListener("test",kn,kn)}catch{Di=!1}function pr(a,u,y,_,T,M,z,ne,oe){var pe=Array.prototype.slice.call(arguments,3);try{u.apply(y,pe)}catch(Ee){this.onError(Ee)}}var Ii=!1,Pr=null,Ec=!1,ep=null,oI={onError:function(a){Ii=!0,Pr=a}};function aI(a,u,y,_,T,M,z,ne,oe){Ii=!1,Pr=null,pr.apply(oI,arguments)}function lI(a,u,y,_,T,M,z,ne,oe){if(aI.apply(this,arguments),Ii){if(Ii){var pe=Pr;Ii=!1,Pr=null}else throw Error(n(198));Ec||(Ec=!0,ep=pe)}}function Uo(a){var u=a,y=a;if(a.alternate)for(;u.return;)u=u.return;else{a=u;do u=a,(u.flags&4098)!==0&&(y=u.return),a=u.return;while(a)}return u.tag===3?y:null}function e1(a){if(a.tag===13){var u=a.memoizedState;if(u===null&&(a=a.alternate,a!==null&&(u=a.memoizedState)),u!==null)return u.dehydrated}return null}function t1(a){if(Uo(a)!==a)throw Error(n(188))}function cI(a){var u=a.alternate;if(!u){if(u=Uo(a),u===null)throw Error(n(188));return u!==a?null:a}for(var y=a,_=u;;){var T=y.return;if(T===null)break;var M=T.alternate;if(M===null){if(_=T.return,_!==null){y=_;continue}break}if(T.child===M.child){for(M=T.child;M;){if(M===y)return t1(T),a;if(M===_)return t1(T),u;M=M.sibling}throw Error(n(188))}if(y.return!==_.return)y=T,_=M;else{for(var z=!1,ne=T.child;ne;){if(ne===y){z=!0,y=T,_=M;break}if(ne===_){z=!0,_=T,y=M;break}ne=ne.sibling}if(!z){for(ne=M.child;ne;){if(ne===y){z=!0,y=M,_=T;break}if(ne===_){z=!0,_=M,y=T;break}ne=ne.sibling}if(!z)throw Error(n(189))}}if(y.alternate!==_)throw Error(n(190))}if(y.tag!==3)throw Error(n(188));return y.stateNode.current===y?a:u}function n1(a){return a=cI(a),a!==null?r1(a):null}function r1(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var u=r1(a);if(u!==null)return u;a=a.sibling}return null}var s1=t.unstable_scheduleCallback,i1=t.unstable_cancelCallback,uI=t.unstable_shouldYield,dI=t.unstable_requestPaint,Jt=t.unstable_now,fI=t.unstable_getCurrentPriorityLevel,tp=t.unstable_ImmediatePriority,o1=t.unstable_UserBlockingPriority,Rd=t.unstable_NormalPriority,hI=t.unstable_LowPriority,a1=t.unstable_IdlePriority,Pd=null,Ns=null;function mI(a){if(Ns&&typeof Ns.onCommitFiberRoot=="function")try{Ns.onCommitFiberRoot(Pd,a,void 0,(a.current.flags&128)===128)}catch{}}var Xr=Math.clz32?Math.clz32:yI,pI=Math.log,gI=Math.LN2;function yI(a){return a>>>=0,a===0?32:31-(pI(a)/gI|0)|0}var Dd=64,Id=4194304;function Cc(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function Ld(a,u){var y=a.pendingLanes;if(y===0)return 0;var _=0,T=a.suspendedLanes,M=a.pingedLanes,z=y&268435455;if(z!==0){var ne=z&~T;ne!==0?_=Cc(ne):(M&=z,M!==0&&(_=Cc(M)))}else z=y&~T,z!==0?_=Cc(z):M!==0&&(_=Cc(M));if(_===0)return 0;if(u!==0&&u!==_&&(u&T)===0&&(T=_&-_,M=u&-u,T>=M||T===16&&(M&4194240)!==0))return u;if((_&4)!==0&&(_|=y&16),u=a.entangledLanes,u!==0)for(a=a.entanglements,u&=_;0<u;)y=31-Xr(u),T=1<<y,_|=a[y],u&=~T;return _}function xI(a,u){switch(a){case 1:case 2:case 4:return u+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 u+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 vI(a,u){for(var y=a.suspendedLanes,_=a.pingedLanes,T=a.expirationTimes,M=a.pendingLanes;0<M;){var z=31-Xr(M),ne=1<<z,oe=T[z];oe===-1?((ne&y)===0||(ne&_)!==0)&&(T[z]=xI(ne,u)):oe<=u&&(a.expiredLanes|=ne),M&=~ne}}function np(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function l1(){var a=Dd;return Dd<<=1,(Dd&4194240)===0&&(Dd=64),a}function rp(a){for(var u=[],y=0;31>y;y++)u.push(a);return u}function Tc(a,u,y){a.pendingLanes|=u,u!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,u=31-Xr(u),a[u]=y}function bI(a,u){var y=a.pendingLanes&~u;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=u,a.mutableReadLanes&=u,a.entangledLanes&=u,u=a.entanglements;var _=a.eventTimes;for(a=a.expirationTimes;0<y;){var T=31-Xr(y),M=1<<T;u[T]=0,_[T]=-1,a[T]=-1,y&=~M}}function sp(a,u){var y=a.entangledLanes|=u;for(a=a.entanglements;y;){var _=31-Xr(y),T=1<<_;T&u|a[_]&u&&(a[_]|=u),y&=~T}}var Ct=0;function c1(a){return a&=-a,1<a?4<a?(a&268435455)!==0?16:536870912:4:1}var u1,ip,d1,f1,h1,op=!1,Md=[],Li=null,Mi=null,Fi=null,Ac=new Map,Oc=new Map,Bi=[],wI="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 m1(a,u){switch(a){case"focusin":case"focusout":Li=null;break;case"dragenter":case"dragleave":Mi=null;break;case"mouseover":case"mouseout":Fi=null;break;case"pointerover":case"pointerout":Ac.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oc.delete(u.pointerId)}}function Rc(a,u,y,_,T,M){return a===null||a.nativeEvent!==M?(a={blockedOn:u,domEventName:y,eventSystemFlags:_,nativeEvent:M,targetContainers:[T]},u!==null&&(u=Wc(u),u!==null&&ip(u)),a):(a.eventSystemFlags|=_,u=a.targetContainers,T!==null&&u.indexOf(T)===-1&&u.push(T),a)}function jI(a,u,y,_,T){switch(u){case"focusin":return Li=Rc(Li,a,u,y,_,T),!0;case"dragenter":return Mi=Rc(Mi,a,u,y,_,T),!0;case"mouseover":return Fi=Rc(Fi,a,u,y,_,T),!0;case"pointerover":var M=T.pointerId;return Ac.set(M,Rc(Ac.get(M)||null,a,u,y,_,T)),!0;case"gotpointercapture":return M=T.pointerId,Oc.set(M,Rc(Oc.get(M)||null,a,u,y,_,T)),!0}return!1}function p1(a){var u=qo(a.target);if(u!==null){var y=Uo(u);if(y!==null){if(u=y.tag,u===13){if(u=e1(y),u!==null){a.blockedOn=u,h1(a.priority,function(){d1(y)});return}}else if(u===3&&y.stateNode.current.memoizedState.isDehydrated){a.blockedOn=y.tag===3?y.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Fd(a){if(a.blockedOn!==null)return!1;for(var u=a.targetContainers;0<u.length;){var y=lp(a.domEventName,a.eventSystemFlags,u[0],a.nativeEvent);if(y===null){y=a.nativeEvent;var _=new y.constructor(y.type,y);Xs=_,y.target.dispatchEvent(_),Xs=null}else return u=Wc(y),u!==null&&ip(u),a.blockedOn=y,!1;u.shift()}return!0}function g1(a,u,y){Fd(a)&&y.delete(u)}function NI(){op=!1,Li!==null&&Fd(Li)&&(Li=null),Mi!==null&&Fd(Mi)&&(Mi=null),Fi!==null&&Fd(Fi)&&(Fi=null),Ac.forEac
vendor: 25,397 bytes, lines 37-38
37h(g1),Oc.forEach(g1)}function Pc(a,u){a.blockedOn===u&&(a.blockedOn=null,op||(op=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,NI)))}function Dc(a){function u(T){return Pc(T,a)}if(0<Md.length){Pc(Md[0],a);for(var y=1;y<Md.length;y++){var _=Md[y];_.blockedOn===a&&(_.blockedOn=null)}}for(Li!==null&&Pc(Li,a),Mi!==null&&Pc(Mi,a),Fi!==null&&Pc(Fi,a),Ac.forEach(u),Oc.forEach(u),y=0;y<Bi.length;y++)_=Bi[y],_.blockedOn===a&&(_.blockedOn=null);for(;0<Bi.length&&(y=Bi[0],y.blockedOn===null);)p1(y),y.blockedOn===null&&Bi.shift()}var Ja=w.ReactCurrentBatchConfig,Bd=!0;function SI(a,u,y,_){var T=Ct,M=Ja.transition;Ja.transition=null;try{Ct=1,ap(a,u,y,_)}finally{Ct=T,Ja.transition=M}}function _I(a,u,y,_){var T=Ct,M=Ja.transition;Ja.transition=null;try{Ct=4,ap(a,u,y,_)}finally{Ct=T,Ja.transition=M}}function ap(a,u,y,_){if(Bd){var T=lp(a,u,y,_);if(T===null)_p(a,u,_,Ud,y),m1(a,_);else if(jI(T,a,u,y,_))_.stopPropagation();else if(m1(a,_),u&4&&-1<wI.indexOf(a)){for(;T!==null;){var M=Wc(T);if(M!==null&&u1(M),M=lp(a,u,y,_),M===null&&_p(a,u,_,Ud,y),M===T)break;T=M}T!==null&&_.stopPropagation()}else _p(a,u,_,null,y)}}var Ud=null;function lp(a,u,y,_){if(Ud=null,a=Hn(_),a=qo(a),a!==null)if(u=Uo(a),u===null)a=null;else if(y=u.tag,y===13){if(a=e1(u),a!==null)return a;a=null}else if(y===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;a=null}else u!==a&&(a=null);return Ud=a,null}function y1(a){switch(a){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(fI()){case tp:return 1;case o1:return 4;case Rd:case hI:return 16;case a1:return 536870912;default:return 16}default:return 16}}var Ui=null,cp=null,qd=null;function x1(){if(qd)return qd;var a,u=cp,y=u.length,_,T="value"in Ui?Ui.value:Ui.textContent,M=T.length;for(a=0;a<y&&u[a]===T[a];a++);var z=y-a;for(_=1;_<=z&&u[y-_]===T[M-_];_++);return qd=T.slice(a,1<_?1-_:void 0)}function Vd(a){var u=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&u===13&&(a=13)):a=u,a===10&&(a=13),32<=a||a===13?a:0}function $d(){return!0}function v1(){return!1}function gr(a){function u(y,_,T,M,z){this._reactName=y,this._targetInst=T,this.type=_,this.nativeEvent=M,this.target=z,this.currentTarget=null;for(var ne in a)a.hasOwnProperty(ne)&&(y=a[ne],this[ne]=y?y(M):M[ne]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?$d:v1,this.isPropagationStopped=v1,this}return F(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var y=this.nativeEvent;y&&(y.preventDefault?y.preventDefault():typeof y.returnValue!="unknown"&&(y.returnValue=!1),this.isDefaultPrevented=$d)},stopPropagation:function(){var y=this.nativeEvent;y&&(y.stopPropagation?y.stopPropagation():typeof y.cancelBubble!="unknown"&&(y.cancelBubble=!0),this.isPropagationStopped=$d)},persist:function(){},isPersistent:$d}),u}var Qa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},up=gr(Qa),Ic=F({},Qa,{view:0,detail:0}),kI=gr(Ic),dp,fp,Lc,zd=F({},Ic,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mp,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Lc&&(Lc&&a.type==="mousemove"?(dp=a.screenX-Lc.screenX,fp=a.screenY-Lc.screenY):fp=dp=0,Lc=a),dp)},movementY:function(a){return"movementY"in a?a.movementY:fp}}),b1=gr(zd),EI=F({},zd,{dataTransfer:0}),CI=gr(EI),TI=F({},Ic,{relatedTarget:0}),hp=gr(TI),AI=F({},Qa,{animationName:0,elapsedTime:0,pseudoElement:0}),OI=gr(AI),RI=F({},Qa,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),PI=gr(RI),DI=F({},Qa,{data:0}),w1=gr(DI),II={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LI={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"},MI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FI(a){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(a):(a=MI[a])?!!u[a]:!1}function mp(){return FI}var BI=F({},Ic,{key:function(a){if(a.key){var u=II[a.key]||a.key;if(u!=="Unidentified")return u}return a.type==="keypress"?(a=Vd(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?LI[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mp,charCode:function(a){return a.type==="keypress"?Vd(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Vd(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),UI=gr(BI),qI=F({},zd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),j1=gr(qI),VI=F({},Ic,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mp}),$I=gr(VI),zI=F({},Qa,{propertyName:0,elapsedTime:0,pseudoElement:0}),HI=gr(zI),WI=F({},zd,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),GI=gr(WI),YI=[9,13,27,32],pp=c&&"CompositionEvent"in window,Mc=null;c&&"documentMode"in document&&(Mc=document.documentMode);var KI=c&&"TextEvent"in window&&!Mc,N1=c&&(!pp||Mc&&8<Mc&&11>=Mc),S1=" ",_1=!1;function k1(a,u){switch(a){case"keyup":return YI.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E1(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Xa=!1;function JI(a,u){switch(a){case"compositionend":return E1(u);case"keypress":return u.which!==32?null:(_1=!0,S1);case"textInput":return a=u.data,a===S1&&_1?null:a;default:return null}}function QI(a,u){if(Xa)return a==="compositionend"||!pp&&k1(a,u)?(a=x1(),qd=cp=Ui=null,Xa=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return N1&&u.locale!=="ko"?null:u.data;default:return null}}var XI={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 C1(a){var u=a&&a.nodeName&&a.nodeName.toLowerCase();return u==="input"?!!XI[a.type]:u==="textarea"}function T1(a,u,y,_){ct(_),u=Kd(u,"onChange"),0<u.length&&(y=new up("onChange","change",null,y,_),a.push({event:y,listeners:u}))}var Fc=null,Bc=null;function ZI(a){G1(a,0)}function Hd(a){var u=rl(a);if(be(u))return a}function eL(a,u){if(a==="change")return u}var A1=!1;if(c){var gp;if(c){var yp="oninput"in document;if(!yp){var O1=document.createElement("div");O1.setAttribute("oninput","return;"),yp=typeof O1.oninput=="function"}gp=yp}else gp=!1;A1=gp&&(!document.documentMode||9<document.documentMode)}function R1(){Fc&&(Fc.detachEvent("onpropertychange",P1),Bc=Fc=null)}function P1(a){if(a.propertyName==="value"&&Hd(Bc)){var u=[];T1(u,Bc,a,Hn(a)),nn(ZI,u)}}function tL(a,u,y){a==="focusin"?(R1(),Fc=u,Bc=y,Fc.attachEvent("onpropertychange",P1)):a==="focusout"&&R1()}function nL(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Hd(Bc)}function rL(a,u){if(a==="click")return Hd(u)}function sL(a,u){if(a==="input"||a==="change")return Hd(u)}function iL(a,u){return a===u&&(a!==0||1/a===1/u)||a!==a&&u!==u}var Zr=typeof Object.is=="function"?Object.is:iL;function Uc(a,u){if(Zr(a,u))return!0;if(typeof a!="object"||a===null||typeof u!="object"||u===null)return!1;var y=Object.keys(a),_=Object.keys(u);if(y.length!==_.length)return!1;for(_=0;_<y.length;_++){var T=y[_];if(!d.call(u,T)||!Zr(a[T],u[T]))return!1}return!0}function D1(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function I1(a,u){var y=D1(a);a=0;for(var _;y;){if(y.nodeType===3){if(_=a+y.textContent.length,a<=u&&_>=u)return{node:y,offset:u-a};a=_}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=D1(y)}}function L1(a,u){return a&&u?a===u?!0:a&&a.nodeType===3?!1:u&&u.nodeType===3?L1(a,u.parentNode):"contains"in a?a.contains(u):a.compareDocumentPosition?!!(a.compareDocumentPosition(u)&16):!1:!1}function M1(){for(var a=window,u=Te();u instanceof a.HTMLIFrameElement;){try{var y=typeof u.contentWindow.location.href=="string"}catch{y=!1}if(y)a=u.contentWindow;else break;u=Te(a.document)}return u}function xp(a){var u=a&&a.nodeName&&a.nodeName.toLowerCase();return u&&(u==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||u==="textarea"||a.contentEditable==="true")}function oL(a){var u=M1(),y=a.focusedElem,_=a.selectionRange;if(u!==y&&y&&y.ownerDocument&&L1(y.ownerDocument.documentElement,y)){if(_!==null&&xp(y)){if(u=_.start,a=_.end,a===void 0&&(a=u),"selectionStart"in y)y.selectionStart=u,y.selectionEnd=Math.min(a,y.value.length);else if(a=(u=y.ownerDocument||document)&&u.defaultView||window,a.getSelection){a=a.getSelection();var T=y.textContent.length,M=Math.min(_.start,T);_=_.end===void 0?M:Math.min(_.end,T),!a.extend&&M>_&&(T=_,_=M,M=T),T=I1(y,M);var z=I1(y,_);T&&z&&(a.rangeCount!==1||a.anchorNode!==T.node||a.anchorOffset!==T.offset||a.focusNode!==z.node||a.focusOffset!==z.offset)&&(u=u.createRange(),u.setStart(T.node,T.offset),a.removeAllRanges(),M>_?(a.addRange(u),a.extend(z.node,z.offset)):(u.setEnd(z.node,z.offset),a.addRange(u)))}}for(u=[],a=y;a=a.parentNode;)a.nodeType===1&&u.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<u.length;y++)a=u[y],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var aL=c&&"documentMode"in document&&11>=document.documentMode,Za=null,vp=null,qc=null,bp=!1;function F1(a,u,y){var _=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;bp||Za==null||Za!==Te(_)||(_=Za,"selectionStart"in _&&xp(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),qc&&Uc(qc,_)||(qc=_,_=Kd(vp,"onSelect"),0<_.length&&(u=new up("onSelect","select",null,u,y),a.push({event:u,listeners:_}),u.target=Za)))}function Wd(a,u){var y={};return y[a.toLowerCase()]=u.toLowerCase(),y["Webkit"+a]="webkit"+u,y["Moz"+a]="moz"+u,y}var el={animationend:Wd("Animation","AnimationEnd"),animationiteration:Wd("Animation","AnimationIteration"),animationstart:Wd("Animation","AnimationStart"),transitionend:Wd("Transition","TransitionEnd")},wp={},B1={};c&&(B1=document.createElement("div").style,"AnimationEvent"in window||(delete el.animationend.animation,delete el.animationiteration.animation,delete el.animationstart.animation),"TransitionEvent"in window||delete el.transitionend.transition);function Gd(a){if(wp[a])return wp[a];if(!el[a])return a;var u=el[a],y;for(y in u)if(u.hasOwnProperty(y)&&y in B1)return wp[a]=u[y];return a}var U1=Gd("animationend"),q1=Gd("animationiteration"),V1=Gd("animationstart"),$1=Gd("transitionend"),z1=new Map,H1="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 qi(a,u){z1.set(a,u),o(u,[a])}for(var jp=0;jp<H1.length;jp++){var Np=H1[jp],lL=Np.toLowerCase(),cL=Np[0].toUpperCase()+Np.slice(1);qi(lL,"on"+cL)}qi(U1,"onAnimationEnd"),qi(q1,"onAnimationIteration"),qi(V1,"onAnimationStart"),qi("dblclick","onDoubleClick"),qi("focusin","onFocus"),qi("focusout","onBlur"),qi($1,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vc="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(" "),uL=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vc));function W1(a,u,y){var _=a.type||"unknown-event";a.currentTarget=y,lI(_,u,void 0,a),a.currentTarget=null}function G1(a,u){u=(u&4)!==0;for(var y=0;y<a.length;y++){var _=a[y],T=_.event;_=_.listeners;e:{var M=void 0;if(u)for(var z=_.length-1;0<=z;z--){var ne=_[z],oe=ne.instance,pe=ne.currentTarget;if(ne=ne.listener,oe!==M&&T.isPropagationStopped())break e;W1(T,ne,pe),M=oe}else for(z=0;z<_.length;z++){if(ne=_[z],oe=ne.instance,pe=ne.currentTarget,ne=ne.listener,oe!==M&&T.isPropagationStopped())break e;W1(T,ne,pe),M=oe}}}if(Ec)throw a=ep,Ec=!1,ep=null,a}function It(a,u){var y=u[Op];y===void 0&&(y=u[Op]=new Set);var _=a+"__bubble";y.has(_)||(Y1(u,a,2,!1),y.add(_))}function Sp(a,u,y){var _=0;u&&(_|=4),Y1(y,a,_,u)}var Yd="_reactListening"+Math.random().toString(36).slice(2);function $c(a){if(!a[Yd]){a[Yd]=!0,s.forEach(function(y){y!=="selectionchange"&&(uL.has(y)||Sp(y,!1,a),Sp(y,!0,a))});var u=a.nodeType===9?a:a.ownerDocument;u===null||u[Yd]||(u[Yd]=!0,Sp("selectionchange",!1,u))}}function Y1(a,u,y,_){switch(y1(u)){case 1:var T=SI;break;case 4:T=_I;break;default:T=ap}y=T.bind(null,u,y,a),T=void 0,!Di||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(T=!0),_?T!==void 0?a.addEventListener(u,y,{capture:!0,passive:T}):a.addEventListener(u,y,!0):T!==void 0?a.addEventListener(u,y,{passive:T}):a.addEventListener(u,y,!1)}function _p(a,u,y,_,T){var M=_;if((u&1)===0&&(u&2)===0&&_!==null)e:for(;;){if(_===null)return;var z=_.tag;if(z===3||z===4){var ne=_.stateNode.containerInfo;if(ne===T||ne.nodeType===8&&ne.parentNode===T)break;if(z===4)for(z=_.return;z!==null;){var oe=z.tag;if((oe===3||oe===4)&&(oe=z.stateNode.containerInfo,oe===T||oe.nodeType===8&&oe.parentNode===T))return;z=z.return}for(;ne!==null;){if(z=qo(ne),z===null)return;if(oe=z.tag,oe===5||oe===6){_=M=z;continue e}ne=ne.parentNode}}_=_.return}nn(function(){var pe=M,Ee=Hn(y),Ce=[];e:{var ke=z1.get(a);if(ke!==void 0){var Ve=up,We=a;switch(a){case"keypress":if(Vd(y)===0)break e;case"keydown":case"keyup":Ve=UI;break;case"focusin":We="focus",Ve=hp;break;case"focusout":We="blur",Ve=hp;break;case"beforeblur":case"afterblur":Ve=hp;break;case"click":if(y.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ve=b1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ve=CI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ve=$I;break;case U1:case q1:case V1:Ve=OI;break;case $1:Ve=HI;break;case"scroll":Ve=kI;break;case"wheel":Ve=GI;break;case"copy":case"cut":case"paste":Ve=PI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ve=j1}var Je=(u&4)!==0,Qt=!Je&&a==="scroll",fe=Je?ke!==null?ke+"Capture":null:ke;Je=[];for(var le=pe,me;le!==null;){me=le;var Re=me.stateNode;if(me.tag===5&&Re!==null&&(me=Re,fe!==null&&(Re=pn(le,fe),Re!=null&&Je.push(zc(le,Re,me)))),Qt)break;le=le.return}0<Je.length&&(ke=new Ve(ke,We,null,y,Ee),Ce.push({event:ke,listeners:Je}))}}if((u&7)===0){e:{if(ke=a==="mouseover"||a==="pointerover",Ve=a==="mouseout"||a==="pointerout",ke&&y!==Xs&&(We=y.relatedTarget||y.fromElement)&&(qo(We)||We[ei]))break e;if((Ve||ke)&&(ke=Ee.window===Ee?Ee:(ke=Ee.ownerDocument)?ke.defaultView||ke.parentWindow:window,Ve?(We=y.relatedTarget||y.toElement,Ve=pe,We=We?qo(We):null,We!==null&&(Qt=Uo(We),We!==Qt||We.tag!==5&&We.tag!==6)&&(We=null)):(Ve=null,We=pe),Ve!==We)){if(Je=b1,Re="onMouseLeave",fe="onMouseEnter",le="mouse",(a==="pointerout"||a==="pointerover")&&(Je=j1,Re="onPointerLeave",fe="onPointerEnter",le="pointer"),Qt=Ve==null?ke:rl(Ve),me=We==null?ke:rl(We),ke=new Je(Re,le+"leave",Ve,y,Ee),ke.target=Qt,ke.relatedTarget=me,Re=null,qo(Ee)===pe&&(Je=new Je(fe,le+"enter",We,y,Ee),Je.target=me,Je.relatedTarget=Qt,Re=Je),Qt=Re,Ve&&We)t:{for(Je=Ve,fe=We,le=0,me=Je;me;me=tl(me))le++;for(me=0,Re=fe;Re;Re=tl(Re))me++;for(;0<le-me;)Je=tl(Je),le--;for(;0<me-le;)fe=tl(fe),me--;for(;le--;){if(Je===fe||fe!==null&&Je===fe.alternate)break t;Je=tl(Je),fe=tl(fe)}Je=null}else Je=null;Ve!==null&&K1(Ce,ke,Ve,Je,!1),We!==null&&Qt!==null&&K1(Ce,Qt,We,Je,!0)}}e:{if(ke=pe?rl(pe):window,Ve=ke.nodeName&&ke.nodeName.toLowerCase(),Ve==="select"||Ve==="input"&&ke.type==="file")var Ze=eL;else if(C1(ke))if(A1)Ze=sL;else{Ze=nL;var rt=tL}else(Ve=ke.nodeName)&&Ve.toLowerCase()==="input"&&(ke.type==="checkbox"||ke.type==="radio")&&(Ze=rL);if(Ze&&(Ze=Ze(a,pe))){T1(Ce,Ze,y,Ee);break e}rt&&rt(a,ke,pe),a==="focusout"&&(rt=ke._wrapperState)&&rt.controlled&&ke.type==="number"&&he(ke,"number",ke.value)}switch(rt=pe?rl(pe):window,a){case"focusin":(C1(rt)||rt.contentEditable==="true")&&(Za=rt,vp=pe,qc=null);break;case"focusout":qc=vp=Za=null;break;case"mousedown":bp=!0;break;case"contextmenu":case"mouseup":case"dragend":bp=!1,F1(Ce,y,Ee);break;case"selectionchange":if(aL)break;case"keydown":case"keyup":F1(Ce,y,Ee)}var st;if(pp)e:{switch(a){case"compositionstart":var lt="onCompositionStart";break e;case"compositionend":lt="onCompositionEnd";break e;case"compositionupdate":lt="onCompositionUpdate";break e}lt=void 0}else Xa?k1(a,y)&&(lt="onCompositionEnd"):a==="keydown"&&y.keyCode===229&&(lt="onCompositionStart");lt&&(N1&&y.locale!=="ko"&&(Xa||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&Xa&&(st=x1()):(Ui=Ee,cp="value"in Ui?Ui.value:Ui.textContent,Xa=!0)),rt=Kd(pe,lt),0<rt.length&&(lt=new w1(lt,a,null,y,Ee),Ce.push({event:lt,listeners:rt}),st?lt.data=st:(st=E1(y),st!==null&&(lt.data=st)))),(st=KI?JI(a,y):QI(a,y))&&(pe=Kd(pe,"onBeforeInput"),0<pe.length&&(Ee=new w1("onBeforeInput","beforeinput",null,y,Ee),Ce.push({event:Ee,listeners:pe}),Ee.data=st))}G1(Ce,u)})}function zc(a,u,y){return{instance:a,listener:u,currentTarget:y}}function Kd(a,u){for(var y=u+"Capture",_=[];a!==null;){var T=a,M=T.stateNode;T.tag===5&&M!==null&&(T=M,M=pn(a,y),M!=null&&_.unshift(zc(a,M,T)),M=pn(a,u),M!=null&&_.push(zc(a,M,T))),a=a.return}return _}function tl(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function K1(a,u,y,_,T){for(var M=u._reactName,z=[];y!==null&&y!==_;){var ne=y,oe=ne.alternate,pe=ne.stateNode;if(oe!==null&&oe===_)break;ne.tag===5&&pe!==null&&(ne=pe,T?(oe=pn(y,M),oe!=null&&z.unshift(zc(y,oe,ne))):T||(oe=pn(y,M),oe!=null&&z.push(zc(y,oe,ne)))),y=y.return}z.length!==0&&a.push({event:u,listeners:z})}var dL=/\r\n?/g,fL=/\u0000|\uFFFD/g;function J1(a){return(typeof a=="string"?a:""+a).replace(dL,`
38`).replace(fL,"")}function Jd(a,u,y){if(u=J1(u),J1(a)!==u&&y)throw Error(n(425))}function Qd(){}var kp=null,Ep=null;function Cp(a,u){return a==="textarea"||a==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Tp=typeof setTimeout=="function"?setTimeout:void 0,hL=typeof clearTimeout=="function"?clearTimeout:void 0,Q1=typeof Promise=="function"?Promise:void 0,mL=typeof queueMicrotask=="function"?queueMicrotask:typeof Q1<"u"?function(a){return Q1.resolve(null).then(a).catch(pL)}:Tp;function pL(a){setTimeout(function(){throw a})}function Ap(a,u){var y=u,_=0;do{var T=y.nextSibling;if(a.removeChild(y),T&&T.nodeType===8)if(y=T.data,y==="/$"){if(_===0){a.removeChild(T),Dc(u);return}_--}else y!=="$"&&y!=="$?"&&y!=="$!"||_++;y=T}while(y);Dc(u)}function Vi(a){for(;a!=null;a=a.nextSibling){var u=a.nodeType;if(u===1||u===3)break;if(u===8){if(u=a.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return a}function X1(a){a=a.previousSibling;for(var u=0;a;){if(a.nodeType===8){var y=a.data;if(y==="$"||y==="$!"||y==="$?"){if(u===0)return a;u--}else y==="/$"&&u++}a=a.previousSibling}return null}var nl=Math.random().toString(36).slice(2),Ss="__reactFiber$"+nl,Hc="__reactProps$"+nl,ei="__reactContainer$"+nl,Op="__reactEvents$"+nl,gL="__reactListeners$"+nl,yL="__reactHandles$"+nl;function qo(a){var u=a[Ss];if(u)return u;for(var y=a.parentNode;y;){if(u=y[ei]||y[Ss]){if(y=u.alternate,u.child!==null||y!==null&&y.child!==null)for(a=X1(a);a!==null;){if(y=a[Ss])return y;a=X1(a)}return u}a=y,y=a.parentNode}return null}function Wc(a){return a=a[Ss]||a[ei],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function rl(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(n(33))}function Xd(a){return a[Hc]||null}var Rp=[],sl=-1;function $i(a){return{current:a}}function Lt(a){0>sl||(a.current=Rp[sl],Rp[sl]=null,sl--)}function Ot(a,u){sl++,Rp[sl]=a.current,a.current=u}var zi={},Pn=$i(zi),er=$i(!1),Vo=zi;function il(a,u){var y=a.type.contextTypes;if(!y)return zi;var _=a.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===u)return _.__reactInternalMemoizedMaskedChildContext;var T={},M;for(M in y)T[M]=u[M];return _&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=u,a.__reactInternalMemoizedMaskedChildContext=T),T}function tr(a){return a=a.childContextTypes,a!=null}function Zd(){Lt(er),Lt(Pn)}function Z1(a,u,y){if(Pn.current!==zi)throw Error(n(168));Ot(Pn,u),Ot(er,y)}function ej(a,u,y){var _=a.stateNode;if(u=u.childContextTypes,typeof _.getChildContext!="function")return y;_=_.getChildContext();for(var T in _)if(!(T in u))throw Error(n(108,G(a)||"Unknown",T));return F({},y,_)}function ef(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||zi,Vo=Pn.current,Ot(Pn,a),Ot(er,er.current),!0}function tj(a,u,y){var _=a.stateNode;if(!_)throw Error(n(169));y?(a=ej(a,u,Vo),_.__reactInternalMemoizedMergedChildContext=a,Lt(er),Lt(Pn),Ot(Pn,a)):Lt(er),Ot(er,y)}var ti=null,tf=!1,Pp=!1;function nj(a){ti===null?ti=[a]:ti.push(a)}function xL(a){tf=!0,nj(a)}function Hi(){if(!Pp&&ti!==null){Pp=!0;var a=0,u=Ct;try{var y=ti;for(Ct=1;a<y.length;a++){var _=y[a];do _=_(!0);while(_!==null)}ti=null,tf=!1}catch(T){throw ti!==null&&(ti=ti.slice(a+1)),s1(tp,Hi),T}finally{Ct=u,Pp=!1}}return null}var ol=[],al=0,nf=null,rf=0,Dr=[],Ir=0,$o=null,ni=1,ri="";function zo(a,u){ol[al++]=rf,ol[al++]=nf,nf=a,rf=u}function rj(a,u,y){Dr[Ir++]=ni,Dr[Ir++]=ri,Dr[Ir++]=$o,$o=a;var _=ni;a=ri;var T=32-Xr(_)-1;_&=~(1<<T),y+=1;var M=32-Xr(u)+T;if(30<M){var z=T-T%5;M=(_&(1<<z)-1).toString(32),_>>=z,T-=z,ni=1<<32-Xr(u)+T|y<<T|_,ri=M+a}else ni=1<<M|y<<T|_,ri=a}function Dp(a){a.return!==null&&(zo(a,1),rj(a,1,0))}function Ip(a){for(;a===nf;)nf=ol[--al],ol[al]=null,rf=ol[--al],ol[al]=null;for(;a===$o;)$o=Dr[--Ir],Dr[Ir]=null,ri=Dr[--Ir],Dr[Ir]=null,ni=Dr[--Ir],Dr[Ir]=null}var yr=null,xr=null,Bt=!1,es=null;function sj(a,u){var y=Br(5,null,null,0);
vendor: 4,851 bytes, line 38
38y.elementType="DELETED",y.stateNode=u,y.return=a,u=a.deletions,u===null?(a.deletions=[y],a.flags|=16):u.push(y)}function ij(a,u){switch(a.tag){case 5:var y=a.type;return u=u.nodeType!==1||y.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(a.stateNode=u,yr=a,xr=Vi(u.firstChild),!0):!1;case 6:return u=a.pendingProps===""||u.nodeType!==3?null:u,u!==null?(a.stateNode=u,yr=a,xr=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(y=$o!==null?{id:ni,overflow:ri}:null,a.memoizedState={dehydrated:u,treeContext:y,retryLane:1073741824},y=Br(18,null,null,0),y.stateNode=u,y.return=a,a.child=y,yr=a,xr=null,!0):!1;default:return!1}}function Lp(a){return(a.mode&1)!==0&&(a.flags&128)===0}function Mp(a){if(Bt){var u=xr;if(u){var y=u;if(!ij(a,u)){if(Lp(a))throw Error(n(418));u=Vi(y.nextSibling);var _=yr;u&&ij(a,u)?sj(_,y):(a.flags=a.flags&-4097|2,Bt=!1,yr=a)}}else{if(Lp(a))throw Error(n(418));a.flags=a.flags&-4097|2,Bt=!1,yr=a}}}function oj(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;yr=a}function sf(a){if(a!==yr)return!1;if(!Bt)return oj(a),Bt=!0,!1;var u;if((u=a.tag!==3)&&!(u=a.tag!==5)&&(u=a.type,u=u!=="head"&&u!=="body"&&!Cp(a.type,a.memoizedProps)),u&&(u=xr)){if(Lp(a))throw aj(),Error(n(418));for(;u;)sj(a,u),u=Vi(u.nextSibling)}if(oj(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(317));e:{for(a=a.nextSibling,u=0;a;){if(a.nodeType===8){var y=a.data;if(y==="/$"){if(u===0){xr=Vi(a.nextSibling);break e}u--}else y!=="$"&&y!=="$!"&&y!=="$?"||u++}a=a.nextSibling}xr=null}}else xr=yr?Vi(a.stateNode.nextSibling):null;return!0}function aj(){for(var a=xr;a;)a=Vi(a.nextSibling)}function ll(){xr=yr=null,Bt=!1}function Fp(a){es===null?es=[a]:es.push(a)}var vL=w.ReactCurrentBatchConfig;function Gc(a,u,y){if(a=y.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(y._owner){if(y=y._owner,y){if(y.tag!==1)throw Error(n(309));var _=y.stateNode}if(!_)throw Error(n(147,a));var T=_,M=""+a;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===M?u.ref:(u=function(z){var ne=T.refs;z===null?delete ne[M]:ne[M]=z},u._stringRef=M,u)}if(typeof a!="string")throw Error(n(284));if(!y._owner)throw Error(n(290,a))}return a}function of(a,u){throw a=Object.prototype.toString.call(u),Error(n(31,a==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":a))}function lj(a){var u=a._init;return u(a._payload)}function cj(a){function u(fe,le){if(a){var me=fe.deletions;me===null?(fe.deletions=[le],fe.flags|=16):me.push(le)}}function y(fe,le){if(!a)return null;for(;le!==null;)u(fe,le),le=le.sibling;return null}function _(fe,le){for(fe=new Map;le!==null;)le.key!==null?fe.set(le.key,le):fe.set(le.index,le),le=le.sibling;return fe}function T(fe,le){return fe=Zi(fe,le),fe.index=0,fe.sibling=null,fe}function M(fe,le,me){return fe.index=me,a?(me=fe.alternate,me!==null?(me=me.index,me<le?(fe.flags|=2,le):me):(fe.flags|=2,le)):(fe.flags|=1048576,le)}function z(fe){return a&&fe.alternate===null&&(fe.flags|=2),fe}function ne(fe,le,me,Re){return le===null||le.tag!==6?(le=Tg(me,fe.mode,Re),le.return=fe,le):(le=T(le,me),le.return=fe,le)}function oe(fe,le,me,Re){var Ze=me.type;return Ze===C?Ee(fe,le,me.props.children,Re,me.key):le!==null&&(le.elementType===Ze||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===Y&&lj(Ze)===le.type)?(Re=T(le,me.props),Re.ref=Gc(fe,le,me),Re.return=fe,Re):(Re=Af(me.type,me.key,me.props,null,fe.mode,Re),Re.ref=Gc(fe,le,me),Re.return=fe,Re)}function pe(fe,le,me,Re){return le===null||le.tag!==4||le.stateNode.containerInfo!==me.containerInfo||le.stateNode.implementation!==me.implementation?(le=Ag(me,fe.mode,Re),le.return=fe,le):(le=T(le,me.children||[]),le.return=fe,le)}function Ee(fe,le,me,Re,Ze){return le===null||le.tag!==7?(le=Xo(me,fe.mode,Re,Ze),le.return=fe,le):(le=T(le,me),le.return=fe,le)}function Ce(fe,le,me){if(typeof le=="string"&&le!==""||typeof le=="number")return le=Tg(""+le,fe.mode,me),le.return=fe,le;if(typeof le=="object"&&le!==null){switch(le.$$typeof){case k:return me=Af(le.type,le.key,le.props,null,fe.mode,me),me.ref=Gc(fe,null,le),me.return=fe,me;case O:return le=Ag(le,fe.mode,me),le.return=fe,le;case Y:var Re=le._init;return Ce(fe,Re(le._payload),me)}if(Ae(le)||q(le))return le=Xo(le,fe.mode,me,null),le.return=fe,le;of(fe,le)}return null}function ke(fe,le,me,Re){var Ze=le!==null?le.key:null;if(typeof me=="string"&&me!==""||typeof me=="number")return Ze!==null?null:ne(fe,le,""+me,Re);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case k:return me.key===Ze?oe(fe,le,me,Re):null;case O:return me.key===Ze?pe(fe,le,me,Re):null;case Y:return Ze=me._init,ke(fe,le,Ze(me._payload),Re)}if(Ae(me)||q(me))return Ze!==null?null:Ee(fe,le,me,Re,null);of(fe,me)}return null}function Ve(fe,le,me,Re,Ze){if(typeof Re=="string"&&Re!==""||typeof Re=="number")return fe=fe.get(me)||null,
vendor: 9,807 bytes, line 38
38ne(le,fe,""+Re,Ze);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case k:return fe=fe.get(Re.key===null?me:Re.key)||null,oe(le,fe,Re,Ze);case O:return fe=fe.get(Re.key===null?me:Re.key)||null,pe(le,fe,Re,Ze);case Y:var rt=Re._init;return Ve(fe,le,me,rt(Re._payload),Ze)}if(Ae(Re)||q(Re))return fe=fe.get(me)||null,Ee(le,fe,Re,Ze,null);of(le,Re)}return null}function We(fe,le,me,Re){for(var Ze=null,rt=null,st=le,lt=le=0,xn=null;st!==null&&lt<me.length;lt++){st.index>lt?(xn=st,st=null):xn=st.sibling;var wt=ke(fe,st,me[lt],Re);if(wt===null){st===null&&(st=xn);break}a&&st&&wt.alternate===null&&u(fe,st),le=M(wt,le,lt),rt===null?Ze=wt:rt.sibling=wt,rt=wt,st=xn}if(lt===me.length)return y(fe,st),Bt&&zo(fe,lt),Ze;if(st===null){for(;lt<me.length;lt++)st=Ce(fe,me[lt],Re),st!==null&&(le=M(st,le,lt),rt===null?Ze=st:rt.sibling=st,rt=st);return Bt&&zo(fe,lt),Ze}for(st=_(fe,st);lt<me.length;lt++)xn=Ve(st,fe,lt,me[lt],Re),xn!==null&&(a&&xn.alternate!==null&&st.delete(xn.key===null?lt:xn.key),le=M(xn,le,lt),rt===null?Ze=xn:rt.sibling=xn,rt=xn);return a&&st.forEach(function(eo){return u(fe,eo)}),Bt&&zo(fe,lt),Ze}function Je(fe,le,me,Re){var Ze=q(me);if(typeof Ze!="function")throw Error(n(150));if(me=Ze.call(me),me==null)throw Error(n(151));for(var rt=Ze=null,st=le,lt=le=0,xn=null,wt=me.next();st!==null&&!wt.done;lt++,wt=me.next()){st.index>lt?(xn=st,st=null):xn=st.sibling;var eo=ke(fe,st,wt.value,Re);if(eo===null){st===null&&(st=xn);break}a&&st&&eo.alternate===null&&u(fe,st),le=M(eo,le,lt),rt===null?Ze=eo:rt.sibling=eo,rt=eo,st=xn}if(wt.done)return y(fe,st),Bt&&zo(fe,lt),Ze;if(st===null){for(;!wt.done;lt++,wt=me.next())wt=Ce(fe,wt.value,Re),wt!==null&&(le=M(wt,le,lt),rt===null?Ze=wt:rt.sibling=wt,rt=wt);return Bt&&zo(fe,lt),Ze}for(st=_(fe,st);!wt.done;lt++,wt=me.next())wt=Ve(st,fe,lt,wt.value,Re),wt!==null&&(a&&wt.alternate!==null&&st.delete(wt.key===null?lt:wt.key),le=M(wt,le,lt),rt===null?Ze=wt:rt.sibling=wt,rt=wt);return a&&st.forEach(function(XL){return u(fe,XL)}),Bt&&zo(fe,lt),Ze}function Qt(fe,le,me,Re){if(typeof me=="object"&&me!==null&&me.type===C&&me.key===null&&(me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case k:e:{for(var Ze=me.key,rt=le;rt!==null;){if(rt.key===Ze){if(Ze=me.type,Ze===C){if(rt.tag===7){y(fe,rt.sibling),le=T(rt,me.props.children),le.return=fe,fe=le;break e}}else if(rt.elementType===Ze||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===Y&&lj(Ze)===rt.type){y(fe,rt.sibling),le=T(rt,me.props),le.ref=Gc(fe,rt,me),le.return=fe,fe=le;break e}y(fe,rt);break}else u(fe,rt);rt=rt.sibling}me.type===C?(le=Xo(me.props.children,fe.mode,Re,me.key),le.return=fe,fe=le):(Re=Af(me.type,me.key,me.props,null,fe.mode,Re),Re.ref=Gc(fe,le,me),Re.return=fe,fe=Re)}return z(fe);case O:e:{for(rt=me.key;le!==null;){if(le.key===rt)if(le.tag===4&&le.stateNode.containerInfo===me.containerInfo&&le.stateNode.implementation===me.implementation){y(fe,le.sibling),le=T(le,me.children||[]),le.return=fe,fe=le;break e}else{y(fe,le);break}else u(fe,le);le=le.sibling}le=Ag(me,fe.mode,Re),le.return=fe,fe=le}return z(fe);case Y:return rt=me._init,Qt(fe,le,rt(me._payload),Re)}if(Ae(me))return We(fe,le,me,Re);if(q(me))return Je(fe,le,me,Re);of(fe,me)}return typeof me=="string"&&me!==""||typeof me=="number"?(me=""+me,le!==null&&le.tag===6?(y(fe,le.sibling),le=T(le,me),le.return=fe,fe=le):(y(fe,le),le=Tg(me,fe.mode,Re),le.return=fe,fe=le),z(fe)):y(fe,le)}return Qt}var cl=cj(!0),uj=cj(!1),af=$i(null),lf=null,ul=null,Bp=null;function Up(){Bp=ul=lf=null}function qp(a){var u=af.current;Lt(af),a._currentValue=u}function Vp(a,u,y){for(;a!==null;){var _=a.alternate;if((a.childLanes&u)!==u?(a.childLanes|=u,_!==null&&(_.childLanes|=u)):_!==null&&(_.childLanes&u)!==u&&(_.childLanes|=u),a===y)break;a=a.return}}function dl(a,u){lf=a,Bp=ul=null,a=a.dependencies,a!==null&&a.firstContext!==null&&((a.lanes&u)!==0&&(nr=!0),a.firstContext=null)}function Lr(a){var u=a._currentValue;if(Bp!==a)if(a={context:a,memoizedValue:u,next:null},ul===null){if(lf===null)throw Error(n(308));ul=a,lf.dependencies={lanes:0,firstContext:a}}else ul=ul.next=a;return u}var Ho=null;function $p(a){Ho===null?Ho=[a]:Ho.push(a)}function dj(a,u,y,_){var T=u.interleaved;return T===null?(y.next=y,$p(u)):(y.next=T.next,T.next=y),u.interleaved=y,si(a,_)}function si(a,u){a.lanes|=u;var y=a.alternate;for(y!==null&&(y.lanes|=u),y=a,a=a.return;a!==null;)a.childLanes|=u,y=a.alternate,y!==null&&(y.childLanes|=u),y=a,a=a.return;return y.tag===3?y.stateNode:null}var Wi=!1;function zp(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fj(a,u){a=a.updateQueue,u.updateQueue===a&&(u.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function ii(a,u){return{eventTime:a,lane:u,tag:0,payload:null,callback:null,next:null}}function Gi(a,u,y){var _=a.updateQueue;if(_===null)return null;if(_=_.shared,(yt&2)!==0){var T=_.pending;return T===null?u.next=u:(u.next=T.next,T.next=u),_.pending=u,si(a,y)}return T=_.interleaved,T===null?(u.next=u,$p(_)):(u.next=T.next,T.next=u),_.interleaved=u,si(a,y)}function cf(a,u,y){if(u=u.updateQueue,u!==null&&(u=u.shared,(y&4194240)!==0)){var _=u.lanes;_&=a.pendingLanes,y|=_,u.lanes=y,sp(a,y)}}function hj(a,u){var y=a.updateQueue,_=a.alternate;if(_!==null&&(_=_.updateQueue,y===_)){var T=null,M=null;if(y=y.firstBaseUpdate,y!==null){do{var z={eventTime:y.eventTime,lane:y.lane,tag:y.tag,payload:y.payload,callback:y.callback,next:null};M===null?T=M=z:M=M.next=z,y=y.next}while(y!==null);M===null?T=M=u:M=M.next=u}else T=M=u;y={baseState:_.baseState,firstBaseUpdate:T,lastBaseUpdate:M,shared:_.shared,effects:_.effects},a.updateQueue=y;return}a=y.lastBaseUpdate,a===null?y.firstBaseUpdate=u:a.next=u,y.lastBaseUpdate=u}function uf(a,u,y,_){var T=a.updateQueue;Wi=!1;var M=T.firstBaseUpdate,z=T.lastBaseUpdate,ne=T.shared.pending;if(ne!==null){T.shared.pending=null;var oe=ne,pe=oe.next;oe.next=null,z===null?M=pe:z.next=pe,z=oe;var Ee=a.alternate;Ee!==null&&(Ee=Ee.updateQueue,ne=Ee.lastBaseUpdate,ne!==z&&(ne===null?Ee.firstBaseUpdate=pe:ne.next=pe,Ee.lastBaseUpdate=oe))}if(M!==null){var Ce=T.baseState;z=0,Ee=pe=oe=null,ne=M;do{var ke=ne.lane,Ve=ne.eventTime;if((_&ke)===ke){Ee!==null&&(Ee=Ee.next={eventTime:Ve,lane:0,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null});e:{var We=a,Je=ne;switch(ke=u,Ve=y,Je.tag){case 1:if(We=Je.payload,typeof We=="function"){Ce=We.call(Ve,Ce,ke);break e}Ce=We;break e;case 3:We.flags=We.flags&-65537|128;case 0:if(We=Je.payload,ke=typeof We=="function"?We.call(Ve,Ce,ke):We,ke==null)break e;Ce=F({},Ce,ke);break e;case 2:Wi=!0}}ne.callback!==null&&ne.lane!==0&&(a.flags|=64,ke=T.effects,ke===null?T.effects=[ne]:ke.push(ne))}else Ve={eventTime:Ve,lane:ke,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},Ee===null?(pe=Ee=Ve,oe=Ce):Ee=Ee.next=Ve,z|=ke;if(ne=ne.next,ne===null){if(ne=T.shared.pending,ne===null)break;ke=ne,ne=ke.next,ke.next=null,T.lastBaseUpdate=ke,T.shared.pending=null}}while(!0);if(Ee===null&&(oe=Ce),T.baseState=oe,T.firstBaseUpdate=pe,T.lastBaseUpdate=Ee,u=T.shared.interleaved,u!==null){T=u;do z|=T.lane,T=T.next;while(T!==u)}else M===null&&(T.shared.lanes=0);Yo|=z,a.lanes=z,a.memoizedState=Ce}}function mj(a,u,y){if(a=u.effects,u.effects=null,a!==null)for(u=0;u<a.length;u++){var _=a[u],T=_.callback;if(T!==null){if(_.callback=null,_=y,typeof T!="function")throw Error(n(191,T));T.call(_)}}}var Yc={},_s=$i(Yc),Kc=$i(Yc),Jc=$i(Yc);function Wo(a){if(a===Yc)throw Error(n(174));return a}function Hp(a,u){switch(Ot(Jc,u),Ot(Kc,a),Ot(_s,Yc),a=u.nodeType,a){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:qe(null,"");break;default:a=a===8?u.parentNode:u,u=a.namespaceURI||null,a=a.tagName,u=qe(u,a)}Lt(_s),Ot(_s,u)}function fl(){Lt(_s),Lt(Kc),Lt(Jc)}function pj(a){Wo(Jc.current);var u=Wo(_s.current),y=qe(u,a.type);u!==y&&(Ot(Kc,a),Ot(_s,y))}function Wp(a){Kc.current===a&&(Lt(_s),Lt(Kc))}var qt=$i(0);function df(a){for(var u=a;u!==null;){if(u.tag===13){var y=u.memoizedState;if(y!==null&&(y=y.dehydrated,y===null||y.data==="$?"||y.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Gp=[];function Yp(){for(var a=0;a<Gp.length;a++)Gp[a]._workInProgressVersionPrimary=null;Gp.length=0}var ff=w.ReactCurrentDispatcher,Kp=w.ReactCurrentBatchConfig,Go=0,Vt=null,un=null,gn=null,hf=!1,Qc=!1,Xc=0,bL=0;function Dn(){throw Error(n(321))}function Jp(a,u){if(u===null)return!1;for(var y=0;y<u.length&&y<a.length;y++)if(!Zr(a[y],u[y]))return!1;return!0}function Qp(a,u,y,_,T,M){if(Go=M,Vt=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,ff.current=a===null||a.memoizedState===null?SL:_L,a=y(_,T),Qc){M=0;do{if(Qc=!1,Xc=0,25<=M)throw Error(n(301));M+=1,gn=un=null,u.updateQueue=null,ff.current=kL,a=y(_,T)}while(Qc)}if(ff.current=gf,u=un!==null&&un.next!==null,Go=0,gn=un=Vt=null,hf=!1,u)throw Error(n(300));return a}function Xp(){var a=Xc!==0;return Xc=0,a}function ks(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gn===null?Vt.memoizedState=gn=a:gn=gn.next=a,gn}function Mr(){if(un===null){var a=Vt.alternate;a=a!==null?a.memoizedState:null}else a=un.next;var u=gn===null?Vt.memoizedState:gn.next;if(u!==null)gn=u,un=a;else{if(a===null)throw Error(n(310));un=a,a={memoizedState:un.memoizedState,baseState:un.baseState,baseQueue:un.baseQueue,queue:un.queue,next:null},gn===null?Vt.memoizedState=gn=a:gn=gn.next=a}return gn}function Zc(a,u){return typeof u=="function"?u(a):u}
vendor: 5,842 bytes, line 38
38function Zp(a){var u=Mr(),y=u.queue;if(y===null)throw Error(n(311));y.lastRenderedReducer=a;var _=un,T=_.baseQueue,M=y.pending;if(M!==null){if(T!==null){var z=T.next;T.next=M.next,M.next=z}_.baseQueue=T=M,y.pending=null}if(T!==null){M=T.next,_=_.baseState;var ne=z=null,oe=null,pe=M;do{var Ee=pe.lane;if((Go&Ee)===Ee)oe!==null&&(oe=oe.next={lane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),_=pe.hasEagerState?pe.eagerState:a(_,pe.action);else{var Ce={lane:Ee,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null};oe===null?(ne=oe=Ce,z=_):oe=oe.next=Ce,Vt.lanes|=Ee,Yo|=Ee}pe=pe.next}while(pe!==null&&pe!==M);oe===null?z=_:oe.next=ne,Zr(_,u.memoizedState)||(nr=!0),u.memoizedState=_,u.baseState=z,u.baseQueue=oe,y.lastRenderedState=_}if(a=y.interleaved,a!==null){T=a;do M=T.lane,Vt.lanes|=M,Yo|=M,T=T.next;while(T!==a)}else T===null&&(y.lanes=0);return[u.memoizedState,y.dispatch]}function eg(a){var u=Mr(),y=u.queue;if(y===null)throw Error(n(311));y.lastRenderedReducer=a;var _=y.dispatch,T=y.pending,M=u.memoizedState;if(T!==null){y.pending=null;var z=T=T.next;do M=a(M,z.action),z=z.next;while(z!==T);Zr(M,u.memoizedState)||(nr=!0),u.memoizedState=M,u.baseQueue===null&&(u.baseState=M),y.lastRenderedState=M}return[M,_]}function gj(){}function yj(a,u){var y=Vt,_=Mr(),T=u(),M=!Zr(_.memoizedState,T);if(M&&(_.memoizedState=T,nr=!0),_=_.queue,tg(bj.bind(null,y,_,a),[a]),_.getSnapshot!==u||M||gn!==null&&gn.memoizedState.tag&1){if(y.flags|=2048,eu(9,vj.bind(null,y,_,T,u),void 0,null),yn===null)throw Error(n(349));(Go&30)!==0||xj(y,u,T)}return T}function xj(a,u,y){a.flags|=16384,a={getSnapshot:u,value:y},u=Vt.updateQueue,u===null?(u={lastEffect:null,stores:null},Vt.updateQueue=u,u.stores=[a]):(y=u.stores,y===null?u.stores=[a]:y.push(a))}function vj(a,u,y,_){u.value=y,u.getSnapshot=_,wj(u)&&jj(a)}function bj(a,u,y){return y(function(){wj(u)&&jj(a)})}function wj(a){var u=a.getSnapshot;a=a.value;try{var y=u();return!Zr(a,y)}catch{return!0}}function jj(a){var u=si(a,1);u!==null&&ss(u,a,1,-1)}function Nj(a){var u=ks();return typeof a=="function"&&(a=a()),u.memoizedState=u.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Zc,lastRenderedState:a},u.queue=a,a=a.dispatch=NL.bind(null,Vt,a),[u.memoizedState,a]}function eu(a,u,y,_){return a={tag:a,create:u,destroy:y,deps:_,next:null},u=Vt.updateQueue,u===null?(u={lastEffect:null,stores:null},Vt.updateQueue=u,u.lastEffect=a.next=a):(y=u.lastEffect,y===null?u.lastEffect=a.next=a:(_=y.next,y.next=a,a.next=_,u.lastEffect=a)),a}function Sj(){return Mr().memoizedState}function mf(a,u,y,_){var T=ks();Vt.flags|=a,T.memoizedState=eu(1|u,y,void 0,_===void 0?null:_)}function pf(a,u,y,_){var T=Mr();_=_===void 0?null:_;var M=void 0;if(un!==null){var z=un.memoizedState;if(M=z.destroy,_!==null&&Jp(_,z.deps)){T.memoizedState=eu(u,y,M,_);return}}Vt.flags|=a,T.memoizedState=eu(1|u,y,M,_)}function _j(a,u){return mf(8390656,8,a,u)}function tg(a,u){return pf(2048,8,a,u)}function kj(a,u){return pf(4,2,a,u)}function Ej(a,u){return pf(4,4,a,u)}function Cj(a,u){if(typeof u=="function")return a=a(),u(a),function(){u(null)};if(u!=null)return a=a(),u.current=a,function(){u.current=null}}function Tj(a,u,y){return y=y!=null?y.concat([a]):null,pf(4,4,Cj.bind(null,u,a),y)}function ng(){}function Aj(a,u){var y=Mr();u=u===void 0?null:u;var _=y.memoizedState;return _!==null&&u!==null&&Jp(u,_[1])?_[0]:(y.memoizedState=[a,u],a)}function Oj(a,u){var y=Mr();u=u===void 0?null:u;var _=y.memoizedState;return _!==null&&u!==null&&Jp(u,_[1])?_[0]:(a=a(),y.memoizedState=[a,u],a)}function Rj(a,u,y){return(Go&21)===0?(a.baseState&&(a.baseState=!1,nr=!0),a.memoizedState=y):(Zr(y,u)||(y=l1(),Vt.lanes|=y,Yo|=y,a.baseState=!0),u)}function wL(a,u){var y=Ct;Ct=y!==0&&4>y?y:4,a(!0);var _=Kp.transition;Kp.transition={};try{a(!1),u()}finally{Ct=y,Kp.transition=_}}function Pj(){return Mr().memoizedState}function jL(a,u,y){var _=Qi(a);if(y={lane:_,action:y,hasEagerState:!1,eagerState:null,next:null},Dj(a))Ij(u,y);else if(y=dj(a,u,y,_),y!==null){var T=Gn();ss(y,a,_,T),Lj(y,u,_)}}function NL(a,u,y){var _=Qi(a),T={lane:_,action:y,hasEagerState:!1,eagerState:null,next:null};if(Dj(a))Ij(u,T);else{var M=a.alternate;if(a.lanes===0&&(M===null||M.lanes===0)&&(M=u.lastRenderedReducer,M!==null))try{var z=u.lastRenderedState,ne=M(z,y);if(T.hasEagerState=!0,T.eagerState=ne,Zr(ne,z)){var oe=u.interleaved;oe===null?(T.next=T,$p(u)):(T.next=oe.next,oe.next=T),u.interleaved=T;return}}catch{}finally{}y=dj(a,u,T,_),y!==null&&(T=Gn(),ss(y,a,_,T),Lj(y,u,_))}}function Dj(a){var u=a.alternate;return a===Vt||u!==null&&u===Vt}function Ij(a,u){Qc=hf=!0;var y=a.pending;y===null?u.next=u:(u.next=y.next,y.next=u),a.pending=u}function Lj(a,u,y){if((y&4194240)!==0){var _=u.lanes;_&=a.pendingLanes,y|=_,u.lanes=y,sp(a,y)}}var gf={readContext:Lr,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useInsertionEffect:Dn,useLayoutEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useMutableSource:Dn,useSyncExternalStore:Dn,useId:Dn,unstable_isNewReconciler:!1},SL={readContext:Lr,useCallback:function(a,u){return ks().memoizedState=[a,u===void 0?null:u],a},useContext:Lr,useEffect:_j,useImperativeHandle:function(a,u,y){return y=y!=null?y.concat([a]):null,mf(4194308,4,Cj.bind(null,u,a),y)},useLayoutEffect:function(a,u){return mf(4194308,4,a,u)},useInsertionEffect:function(a,u){return mf(4,2,a,u)},useMemo:function(a,u){var y=ks();return u=u===void 0?null:u,a=a(),y.memoizedState=[a,u],a},useReducer:function(a,u,y){var _=ks();return u=y!==void 0?y(u):u,_.memoizedState=_.baseState=u,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:u},_.queue=a,a=a.dispatch=jL.bind(null,Vt,a),[_.memoizedState,a]}
vendor: 4,712 bytes, lines 38-40
38,useRef:function(a){var u=ks();return a={current:a},u.memoizedState=a},useState:Nj,useDebugValue:ng,useDeferredValue:function(a){return ks().memoizedState=a},useTransition:function(){var a=Nj(!1),u=a[0];return a=wL.bind(null,a[1]),ks().memoizedState=a,[u,a]},useMutableSource:function(){},useSyncExternalStore:function(a,u,y){var _=Vt,T=ks();if(Bt){if(y===void 0)throw Error(n(407));y=y()}else{if(y=u(),yn===null)throw Error(n(349));(Go&30)!==0||xj(_,u,y)}T.memoizedState=y;var M={value:y,getSnapshot:u};return T.queue=M,_j(bj.bind(null,_,M,a),[a]),_.flags|=2048,eu(9,vj.bind(null,_,M,y,u),void 0,null),y},useId:function(){var a=ks(),u=yn.identifierPrefix;if(Bt){var y=ri,_=ni;y=(_&~(1<<32-Xr(_)-1)).toString(32)+y,u=":"+u+"R"+y,y=Xc++,0<y&&(u+="H"+y.toString(32)),u+=":"}else y=bL++,u=":"+u+"r"+y.toString(32)+":";return a.memoizedState=u},unstable_isNewReconciler:!1},_L={readContext:Lr,useCallback:Aj,useContext:Lr,useEffect:tg,useImperativeHandle:Tj,useInsertionEffect:kj,useLayoutEffect:Ej,useMemo:Oj,useReducer:Zp,useRef:Sj,useState:function(){return Zp(Zc)},useDebugValue:ng,useDeferredValue:function(a){var u=Mr();return Rj(u,un.memoizedState,a)},useTransition:function(){var a=Zp(Zc)[0],u=Mr().memoizedState;return[a,u]},useMutableSource:gj,useSyncExternalStore:yj,useId:Pj,unstable_isNewReconciler:!1},kL={readContext:Lr,useCallback:Aj,useContext:Lr,useEffect:tg,useImperativeHandle:Tj,useInsertionEffect:kj,useLayoutEffect:Ej,useMemo:Oj,useReducer:eg,useRef:Sj,useState:function(){return eg(Zc)},useDebugValue:ng,useDeferredValue:function(a){var u=Mr();return un===null?u.memoizedState=a:Rj(u,un.memoizedState,a)},useTransition:function(){var a=eg(Zc)[0],u=Mr().memoizedState;return[a,u]},useMutableSource:gj,useSyncExternalStore:yj,useId:Pj,unstable_isNewReconciler:!1};function ts(a,u){if(a&&a.defaultProps){u=F({},u),a=a.defaultProps;for(var y in a)u[y]===void 0&&(u[y]=a[y]);return u}return u}function rg(a,u,y,_){u=a.memoizedState,y=y(_,u),y=y==null?u:F({},u,y),a.memoizedState=y,a.lanes===0&&(a.updateQueue.baseState=y)}var yf={isMounted:function(a){return(a=a._reactInternals)?Uo(a)===a:!1},enqueueSetState:function(a,u,y){a=a._reactInternals;var _=Gn(),T=Qi(a),M=ii(_,T);M.payload=u,y!=null&&(M.callback=y),u=Gi(a,M,T),u!==null&&(ss(u,a,T,_),cf(u,a,T))},enqueueReplaceState:function(a,u,y){a=a._reactInternals;var _=Gn(),T=Qi(a),M=ii(_,T);M.tag=1,M.payload=u,y!=null&&(M.callback=y),u=Gi(a,M,T),u!==null&&(ss(u,a,T,_),cf(u,a,T))},enqueueForceUpdate:function(a,u){a=a._reactInternals;var y=Gn(),_=Qi(a),T=ii(y,_);T.tag=2,u!=null&&(T.callback=u),u=Gi(a,T,_),u!==null&&(ss(u,a,_,y),cf(u,a,_))}};function Mj(a,u,y,_,T,M,z){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(_,M,z):u.prototype&&u.prototype.isPureReactComponent?!Uc(y,_)||!Uc(T,M):!0}function Fj(a,u,y){var _=!1,T=zi,M=u.contextType;return typeof M=="object"&&M!==null?M=Lr(M):(T=tr(u)?Vo:Pn.current,_=u.contextTypes,M=(_=_!=null)?il(a,T):zi),u=new u(y,M),a.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=yf,a.stateNode=u,u._reactInternals=a,_&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=T,a.__reactInternalMemoizedMaskedChildContext=M),u}function Bj(a,u,y,_){a=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(y,_),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(y,_),u.state!==a&&yf.enqueueReplaceState(u,u.state,null)}function sg(a,u,y,_){var T=a.stateNode;T.props=y,T.state=a.memoizedState,T.refs={},zp(a);var M=u.contextType;typeof M=="object"&&M!==null?T.context=Lr(M):(M=tr(u)?Vo:Pn.current,T.context=il(a,M)),T.state=a.memoizedState,M=u.getDerivedStateFromProps,typeof M=="function"&&(rg(a,u,M,y),T.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(u=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),u!==T.state&&yf.enqueueReplaceState(T,T.state,null),uf(a,y,T,_),T.state=a.memoizedState),typeof T.componentDidMount=="function"&&(a.flags|=4194308)}function hl(a,u){try{var y="",_=u;do y+=X(_),_=_.return;while(_);var T=y}catch(M){T=`
39Error generating stack: `+M.message+`
40`+M.stack}return{value:a,source:u,stack:T,digest:null}}function ig(a,u,y){return{value:a,source:null,stack:y??null,digest:u??null}}function og(a,u){try{console.error(u.value)}catch(y){setTimeout(function(){throw y})}}var EL=typeof WeakMap=="function"?WeakMap:Map;function Uj(a,u,y){y=ii(-1,y),y.tag=3,y.payload={element:null};var _=u.value;
vendor: 38,705 bytes, line 40
40return y.callback=function(){Sf||(Sf=!0,wg=_),og(a,u)},y}function qj(a,u,y){y=ii(-1,y),y.tag=3;var _=a.type.getDerivedStateFromError;if(typeof _=="function"){var T=u.value;y.payload=function(){return _(T)},y.callback=function(){og(a,u)}}var M=a.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(y.callback=function(){og(a,u),typeof _!="function"&&(Ki===null?Ki=new Set([this]):Ki.add(this));var z=u.stack;this.componentDidCatch(u.value,{componentStack:z!==null?z:""})}),y}function Vj(a,u,y){var _=a.pingCache;if(_===null){_=a.pingCache=new EL;var T=new Set;_.set(u,T)}else T=_.get(u),T===void 0&&(T=new Set,_.set(u,T));T.has(y)||(T.add(y),a=qL.bind(null,a,u,y),u.then(a,a))}function $j(a){do{var u;if((u=a.tag===13)&&(u=a.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return a;a=a.return}while(a!==null);return null}function zj(a,u,y,_,T){return(a.mode&1)===0?(a===u?a.flags|=65536:(a.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(u=ii(-1,1),u.tag=2,Gi(y,u,1))),y.lanes|=1),a):(a.flags|=65536,a.lanes=T,a)}var CL=w.ReactCurrentOwner,nr=!1;function Wn(a,u,y,_){u.child=a===null?uj(u,null,y,_):cl(u,a.child,y,_)}function Hj(a,u,y,_,T){y=y.render;var M=u.ref;return dl(u,T),_=Qp(a,u,y,_,M,T),y=Xp(),a!==null&&!nr?(u.updateQueue=a.updateQueue,u.flags&=-2053,a.lanes&=~T,oi(a,u,T)):(Bt&&y&&Dp(u),u.flags|=1,Wn(a,u,_,T),u.child)}function Wj(a,u,y,_,T){if(a===null){var M=y.type;return typeof M=="function"&&!Cg(M)&&M.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(u.tag=15,u.type=M,Gj(a,u,M,_,T)):(a=Af(y.type,null,_,u,u.mode,T),a.ref=u.ref,a.return=u,u.child=a)}if(M=a.child,(a.lanes&T)===0){var z=M.memoizedProps;if(y=y.compare,y=y!==null?y:Uc,y(z,_)&&a.ref===u.ref)return oi(a,u,T)}return u.flags|=1,a=Zi(M,_),a.ref=u.ref,a.return=u,u.child=a}function Gj(a,u,y,_,T){if(a!==null){var M=a.memoizedProps;if(Uc(M,_)&&a.ref===u.ref)if(nr=!1,u.pendingProps=_=M,(a.lanes&T)!==0)(a.flags&131072)!==0&&(nr=!0);else return u.lanes=a.lanes,oi(a,u,T)}return ag(a,u,y,_,T)}function Yj(a,u,y){var _=u.pendingProps,T=_.children,M=a!==null?a.memoizedState:null;if(_.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ot(pl,vr),vr|=y;else{if((y&1073741824)===0)return a=M!==null?M.baseLanes|y:y,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:a,cachePool:null,transitions:null},u.updateQueue=null,Ot(pl,vr),vr|=a,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=M!==null?M.baseLanes:y,Ot(pl,vr),vr|=_}else M!==null?(_=M.baseLanes|y,u.memoizedState=null):_=y,Ot(pl,vr),vr|=_;return Wn(a,u,T,y),u.child}function Kj(a,u){var y=u.ref;(a===null&&y!==null||a!==null&&a.ref!==y)&&(u.flags|=512,u.flags|=2097152)}function ag(a,u,y,_,T){var M=tr(y)?Vo:Pn.current;return M=il(u,M),dl(u,T),y=Qp(a,u,y,_,M,T),_=Xp(),a!==null&&!nr?(u.updateQueue=a.updateQueue,u.flags&=-2053,a.lanes&=~T,oi(a,u,T)):(Bt&&_&&Dp(u),u.flags|=1,Wn(a,u,y,T),u.child)}function Jj(a,u,y,_,T){if(tr(y)){var M=!0;ef(u)}else M=!1;if(dl(u,T),u.stateNode===null)vf(a,u),Fj(u,y,_),sg(u,y,_,T),_=!0;else if(a===null){var z=u.stateNode,ne=u.memoizedProps;z.props=ne;var oe=z.context,pe=y.contextType;typeof pe=="object"&&pe!==null?pe=Lr(pe):(pe=tr(y)?Vo:Pn.current,pe=il(u,pe));var Ee=y.getDerivedStateFromProps,Ce=typeof Ee=="function"||typeof z.getSnapshotBeforeUpdate=="function";Ce||typeof z.UNSAFE_componentWillReceiveProps!="function"&&typeof z.componentWillReceiveProps!="function"||(ne!==_||oe!==pe)&&Bj(u,z,_,pe),Wi=!1;var ke=u.memoizedState;z.state=ke,uf(u,_,z,T),oe=u.memoizedState,ne!==_||ke!==oe||er.current||Wi?(typeof Ee=="function"&&(rg(u,y,Ee,_),oe=u.memoizedState),(ne=Wi||Mj(u,y,ne,_,ke,oe,pe))?(Ce||typeof z.UNSAFE_componentWillMount!="function"&&typeof z.componentWillMount!="function"||(typeof z.componentWillMount=="function"&&z.componentWillMount(),typeof z.UNSAFE_componentWillMount=="function"&&z.UNSAFE_componentWillMount()),typeof z.componentDidMount=="function"&&(u.flags|=4194308)):(typeof z.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=_,u.memoizedState=oe),z.props=_,z.state=oe,z.context=pe,_=ne):(typeof z.componentDidMount=="function"&&(u.flags|=4194308),_=!1)}else{z=u.stateNode,fj(a,u),ne=u.memoizedProps,pe=u.type===u.elementType?ne:ts(u.type,ne),z.props=pe,Ce=u.pendingProps,ke=z.context,oe=y.contextType,typeof oe=="object"&&oe!==null?oe=Lr(oe):(oe=tr(y)?Vo:Pn.current,oe=il(u,oe));var Ve=y.getDerivedStateFromProps;(Ee=typeof Ve=="function"||typeof z.getSnapshotBeforeUpdate=="function")||typeof z.UNSAFE_componentWillReceiveProps!="function"&&typeof z.componentWillReceiveProps!="function"||(ne!==Ce||ke!==oe)&&Bj(u,z,_,oe),Wi=!1,ke=u.memoizedState,z.state=ke,uf(u,_,z,T);var We=u.memoizedState;ne!==Ce||ke!==We||er.current||Wi?(typeof Ve=="function"&&(rg(u,y,Ve,_),We=u.memoizedState),(pe=Wi||Mj(u,y,pe,_,ke,We,oe)||!1)?(Ee||typeof z.UNSAFE_componentWillUpdate!="function"&&typeof z.componentWillUpdate!="function"||(typeof z.componentWillUpdate=="function"&&z.componentWillUpdate(_,We,oe),typeof z.UNSAFE_componentWillUpdate=="function"&&z.UNSAFE_componentWillUpdate(_,We,oe)),typeof z.componentDidUpdate=="function"&&(u.flags|=4),typeof z.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof z.componentDidUpdate!="function"||ne===a.memoizedProps&&ke===a.memoizedState||(u.flags|=4),typeof z.getSnapshotBeforeUpdate!="function"||ne===a.memoizedProps&&ke===a.memoizedState||(u.flags|=1024),u.memoizedProps=_,u.memoizedState=We),z.props=_,z.state=We,z.context=oe,_=pe):(typeof z.componentDidUpdate!="function"||ne===a.memoizedProps&&ke===a.memoizedState||(u.flags|=4),typeof z.getSnapshotBeforeUpdate!="function"||ne===a.memoizedProps&&ke===a.memoizedState||(u.flags|=1024),_=!1)}return lg(a,u,y,_,M,T)}function lg(a,u,y,_,T,M){Kj(a,u);var z=(u.flags&128)!==0;if(!_&&!z)return T&&tj(u,y,!1),oi(a,u,M);_=u.stateNode,CL.current=u;var ne=z&&typeof y.getDerivedStateFromError!="function"?null:_.render();return u.flags|=1,a!==null&&z?(u.child=cl(u,a.child,null,M),u.child=cl(u,null,ne,M)):Wn(a,u,ne,M),u.memoizedState=_.state,T&&tj(u,y,!0),u.child}function Qj(a){var u=a.stateNode;u.pendingContext?Z1(a,u.pendingContext,u.pendingContext!==u.context):u.context&&Z1(a,u.context,!1),Hp(a,u.containerInfo)}function Xj(a,u,y,_,T){return ll(),Fp(T),u.flags|=256,Wn(a,u,y,_),u.child}var cg={dehydrated:null,treeContext:null,retryLane:0};function ug(a){return{baseLanes:a,cachePool:null,transitions:null}}function Zj(a,u,y){var _=u.pendingProps,T=qt.current,M=!1,z=(u.flags&128)!==0,ne;if((ne=z)||(ne=a!==null&&a.memoizedState===null?!1:(T&2)!==0),ne?(M=!0,u.flags&=-129):(a===null||a.memoizedState!==null)&&(T|=1),Ot(qt,T&1),a===null)return Mp(u),a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?((u.mode&1)===0?u.lanes=1:a.data==="$!"?u.lanes=8:u.lanes=1073741824,null):(z=_.children,a=_.fallback,M?(_=u.mode,M=u.child,z={mode:"hidden",children:z},(_&1)===0&&M!==null?(M.childLanes=0,M.pendingProps=z):M=Of(z,_,0,null),a=Xo(a,_,y,null),M.return=u,a.return=u,M.sibling=a,u.child=M,u.child.memoizedState=ug(y),u.memoizedState=cg,a):dg(u,z));if(T=a.memoizedState,T!==null&&(ne=T.dehydrated,ne!==null))return TL(a,u,z,_,ne,T,y);if(M){M=_.fallback,z=u.mode,T=a.child,ne=T.sibling;var oe={mode:"hidden",children:_.children};return(z&1)===0&&u.child!==T?(_=u.child,_.childLanes=0,_.pendingProps=oe,u.deletions=null):(_=Zi(T,oe),_.subtreeFlags=T.subtreeFlags&14680064),ne!==null?M=Zi(ne,M):(M=Xo(M,z,y,null),M.flags|=2),M.return=u,_.return=u,_.sibling=M,u.child=_,_=M,M=u.child,z=a.child.memoizedState,z=z===null?ug(y):{baseLanes:z.baseLanes|y,cachePool:null,transitions:z.transitions},M.memoizedState=z,M.childLanes=a.childLanes&~y,u.memoizedState=cg,_}return M=a.child,a=M.sibling,_=Zi(M,{mode:"visible",children:_.children}),(u.mode&1)===0&&(_.lanes=y),_.return=u,_.sibling=null,a!==null&&(y=u.deletions,y===null?(u.deletions=[a],u.flags|=16):y.push(a)),u.child=_,u.memoizedState=null,_}function dg(a,u){return u=Of({mode:"visible",children:u},a.mode,0,null),u.return=a,a.child=u}function xf(a,u,y,_){return _!==null&&Fp(_),cl(u,a.child,null,y),a=dg(u,u.pendingProps.children),a.flags|=2,u.memoizedState=null,a}function TL(a,u,y,_,T,M,z){if(y)return u.flags&256?(u.flags&=-257,_=ig(Error(n(422))),xf(a,u,z,_)):u.memoizedState!==null?(u.child=a.child,u.flags|=128,null):(M=_.fallback,T=u.mode,_=Of({mode:"visible",children:_.children},T,0,null),M=Xo(M,T,z,null),M.flags|=2,_.return=u,M.return=u,_.sibling=M,u.child=_,(u.mode&1)!==0&&cl(u,a.child,null,z),u.child.memoizedState=ug(z),u.memoizedState=cg,M);if((u.mode&1)===0)return xf(a,u,z,null);if(T.data==="$!"){if(_=T.nextSibling&&T.nextSibling.dataset,_)var ne=_.dgst;return _=ne,M=Error(n(419)),_=ig(M,_,void 0),xf(a,u,z,_)}if(ne=(z&a.childLanes)!==0,nr||ne){if(_=yn,_!==null){switch(z&-z){case 4:T=2;break;case 16:T=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:T=32;break;case 536870912:T=268435456;break;default:T=0}T=(T&(_.suspendedLanes|z))!==0?0:T,T!==0&&T!==M.retryLane&&(M.retryLane=T,si(a,T),ss(_,a,T,-1))}return Eg(),_=ig(Error(n(421))),xf(a,u,z,_)}return T.data==="$?"?(u.flags|=128,u.child=a.child,u=VL.bind(null,a),T._reactRetry=u,null):(a=M.treeContext,xr=Vi(T.nextSibling),yr=u,Bt=!0,es=null,a!==null&&(Dr[Ir++]=ni,Dr[Ir++]=ri,Dr[Ir++]=$o,ni=a.id,ri=a.overflow,$o=u),u=dg(u,_.children),u.flags|=4096,u)}function eN(a,u,y){a.lanes|=u;var _=a.alternate;_!==null&&(_.lanes|=u),Vp(a.return,u,y)}function fg(a,u,y,_,T){var M=a.memoizedState;M===null?a.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:_,tail:y,tailMode:T}:(M.isBackwards=u,M.rendering=null,M.renderingStartTime=0,M.last=_,M.tail=y,M.tailMode=T)}function tN(a,u,y){var _=u.pendingProps,T=_.revealOrder,M=_.tail;if(Wn(a,u,_.children,y),_=qt.current,(_&2)!==0)_=_&1|2,u.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=u.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&eN(a,y,u);else if(a.tag===19)eN(a,y,u);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===u)break e;for(;a.sibling===null;){if(a.return===null||a.return===u)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}_&=1}if(Ot(qt,_),(u.mode&1)===0)u.memoizedState=null;else switch(T){case"forwards":for(y=u.child,T=null;y!==null;)a=y.alternate,a!==null&&df(a)===null&&(T=y),y=y.sibling;y=T,y===null?(T=u.child,u.child=null):(T=y.sibling,y.sibling=null),fg(u,!1,T,y,M);break;case"backwards":for(y=null,T=u.child,u.child=null;T!==null;){if(a=T.alternate,a!==null&&df(a)===null){u.child=T;break}a=T.sibling,T.sibling=y,y=T,T=a}fg(u,!0,y,null,M);break;case"together":fg(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function vf(a,u){(u.mode&1)===0&&a!==null&&(a.alternate=null,u.alternate=null,u.flags|=2)}function oi(a,u,y){if(a!==null&&(u.dependencies=a.dependencies),Yo|=u.lanes,(y&u.childLanes)===0)return null;if(a!==null&&u.child!==a.child)throw Error(n(153));if(u.child!==null){for(a=u.child,y=Zi(a,a.pendingProps),u.child=y,y.return=u;a.sibling!==null;)a=a.sibling,y=y.sibling=Zi(a,a.pendingProps),y.return=u;y.sibling=null}return u.child}function AL(a,u,y){switch(u.tag){case 3:Qj(u),ll();break;case 5:pj(u);break;case 1:tr(u.type)&&ef(u);break;case 4:Hp(u,u.stateNode.containerInfo);break;case 10:var _=u.type._context,T=u.memoizedProps.value;Ot(af,_._currentValue),_._currentValue=T;break;case 13:if(_=u.memoizedState,_!==null)return _.dehydrated!==null?(Ot(qt,qt.current&1),u.flags|=128,null):(y&u.child.childLanes)!==0?Zj(a,u,y):(Ot(qt,qt.current&1),a=oi(a,u,y),a!==null?a.sibling:null);Ot(qt,qt.current&1);break;case 19:if(_=(y&u.childLanes)!==0,(a.flags&128)!==0){if(_)return tN(a,u,y);u.flags|=128}if(T=u.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),Ot(qt,qt.current),_)break;return null;case 22:case 23:return u.lanes=0,Yj(a,u,y)}return oi(a,u,y)}var nN,hg,rN,sN;nN=function(a,u){for(var y=u.child;y!==null;){if(y.tag===5||y.tag===6)a.appendChild(y.stateNode);else if(y.tag!==4&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===u)break;for(;y.sibling===null;){if(y.return===null||y.return===u)return;y=y.return}y.sibling.return=y.return,y=y.sibling}},hg=function(){},rN=function(a,u,y,_){var T=a.memoizedProps;if(T!==_){a=u.stateNode,Wo(_s.current);var M=null;switch(y){case"input":T=ie(a,T),_=ie(a,_),M=[];break;case"select":T=F({},T,{value:void 0}),_=F({},_,{value:void 0}),M=[];break;case"textarea":T=ee(a,T),_=ee(a,_),M=[];break;default:typeof T.onClick!="function"&&typeof _.onClick=="function"&&(a.onclick=Qd)}Ai(y,_);var z;y=null;for(pe in T)if(!_.hasOwnProperty(pe)&&T.hasOwnProperty(pe)&&T[pe]!=null)if(pe==="style"){var ne=T[pe];for(z in ne)ne.hasOwnProperty(z)&&(y||(y={}),y[z]="")}else pe!=="dangerouslySetInnerHTML"&&pe!=="children"&&pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&pe!=="autoFocus"&&(i.hasOwnProperty(pe)?M||(M=[]):(M=M||[]).push(pe,null));for(pe in _){var oe=_[pe];if(ne=T!=null?T[pe]:void 0,_.hasOwnProperty(pe)&&oe!==ne&&(oe!=null||ne!=null))if(pe==="style")if(ne){for(z in ne)!ne.hasOwnProperty(z)||oe&&oe.hasOwnProperty(z)||(y||(y={}),y[z]="");for(z in oe)oe.hasOwnProperty(z)&&ne[z]!==oe[z]&&(y||(y={}),y[z]=oe[z])}else y||(M||(M=[]),M.push(pe,y)),y=oe;else pe==="dangerouslySetInnerHTML"?(oe=oe?oe.__html:void 0,ne=ne?ne.__html:void 0,oe!=null&&ne!==oe&&(M=M||[]).push(pe,oe)):pe==="children"?typeof oe!="string"&&typeof oe!="number"||(M=M||[]).push(pe,""+oe):pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&(i.hasOwnProperty(pe)?(oe!=null&&pe==="onScroll"&&It("scroll",a),M||ne===oe||(M=[])):(M=M||[]).push(pe,oe))}y&&(M=M||[]).push("style",y);var pe=M;(u.updateQueue=pe)&&(u.flags|=4)}},sN=function(a,u,y,_){y!==_&&(u.flags|=4)};function tu(a,u){if(!Bt)switch(a.tailMode){case"hidden":u=a.tail;for(var y=null;u!==null;)u.alternate!==null&&(y=u),u=u.sibling;y===null?a.tail=null:y.sibling=null;break;case"collapsed":y=a.tail;for(var _=null;y!==null;)y.alternate!==null&&(_=y),y=y.sibling;_===null?u||a.tail===null?a.tail=null:a.tail.sibling=null:_.sibling=null}}function In(a){var u=a.alternate!==null&&a.alternate.child===a.child,y=0,_=0;if(u)for(var T=a.child;T!==null;)y|=T.lanes|T.childLanes,_|=T.subtreeFlags&14680064,_|=T.flags&14680064,T.return=a,T=T.sibling;else for(T=a.child;T!==null;)y|=T.lanes|T.childLanes,_|=T.subtreeFlags,_|=T.flags,T.return=a,T=T.sibling;return a.subtreeFlags|=_,a.childLanes=y,u}function OL(a,u,y){var _=u.pendingProps;switch(Ip(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return In(u),null;case 1:return tr(u.type)&&Zd(),In(u),null;case 3:return _=u.stateNode,fl(),Lt(er),Lt(Pn),Yp(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(a===null||a.child===null)&&(sf(u)?u.flags|=4:a===null||a.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,es!==null&&(Sg(es),es=null))),hg(a,u),In(u),null;case 5:Wp(u);var T=Wo(Jc.current);if(y=u.type,a!==null&&u.stateNode!=null)rN(a,u,y,_,T),a.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!_){if(u.stateNode===null)throw Error(n(166));return In(u),null}if(a=Wo(_s.current),sf(u)){_=u.stateNode,y=u.type;var M=u.memoizedProps;switch(_[Ss]=u,_[Hc]=M,a=(u.mode&1)!==0,y){case"dialog":It("cancel",_),It("close",_);break;case"iframe":case"object":case"embed":It("load",_);break;case"video":case"audio":for(T=0;T<Vc.length;T++)It(Vc[T],_);break;case"source":It("error",_);break;case"img":case"image":case"link":It("error",_),It("load",_);break;case"details":It("toggle",_);break;case"input":De(_,M),It("invalid",_);break;case"select":_._wrapperState={wasMultiple:!!M.multiple},It("invalid",_);break;case"textarea":de(_,M),It("invalid",_)}Ai(y,M),T=null;for(var z in M)if(M.hasOwnProperty(z)){var ne=M[z];z==="children"?typeof ne=="string"?_.textContent!==ne&&(M.suppressHydrationWarning!==!0&&Jd(_.textContent,ne,a),T=["children",ne]):typeof ne=="number"&&_.textContent!==""+ne&&(M.suppressHydrationWarning!==!0&&Jd(_.textContent,ne,a),T=["children",""+ne]):i.hasOwnProperty(z)&&ne!=null&&z==="onScroll"&&It("scroll",_)}switch(y){case"input":ye(_),ce(_,M,!0);break;case"textarea":ye(_),we(_);break;case"select":case"option":break;default:typeof M.onClick=="function"&&(_.onclick=Qd)}_=T,u.updateQueue=_,_!==null&&(u.flags|=4)}else{z=T.nodeType===9?T:T.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=_e(y)),a==="http://www.w3.org/1999/xhtml"?y==="script"?(a=z.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof _.is=="string"?a=z.createElement(y,{is:_.is}):(a=z.createElement(y),y==="select"&&(z=a,_.multiple?z.multiple=!0:_.size&&(z.size=_.size))):a=z.createElementNS(a,y),a[Ss]=u,a[Hc]=_,nN(a,u,!1,!1),u.stateNode=a;e:{switch(z=Oi(y,_),y){case"dialog":It("cancel",a),It("close",a),T=_;break;case"iframe":case"object":case"embed":It("load",a),T=_;break;case"video":case"audio":for(T=0;T<Vc.length;T++)It(Vc[T],a);T=_;break;case"source":It("error",a),T=_;break;case"img":case"image":case"link":It("error",a),It("load",a),T=_;break;case"details":It("toggle",a),T=_;break;case"input":De(a,_),T=ie(a,_),It("invalid",a);break;case"option":T=_;break;case"select":a._wrapperState={wasMultiple:!!_.multiple},T=F({},_,{value:void 0}),It("invalid",a);break;case"textarea":de(a,_),T=ee(a,_),It("invalid",a);break;default:T=_}Ai(y,T),ne=T;for(M in ne)if(ne.hasOwnProperty(M)){var oe=ne[M];M==="style"?Ci(a,oe):M==="dangerouslySetInnerHTML"?(oe=oe?oe.__html:void 0,oe!=null&&ht(a,oe)):M==="children"?typeof oe=="string"?(y!=="textarea"||oe!=="")&&at(a,oe):typeof oe=="number"&&at(a,""+oe):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(i.hasOwnProperty(M)?oe!=null&&M==="onScroll"&&It("scroll",a):oe!=null&&S(a,M,oe,z))}switch(y){case"input":ye(a),ce(a,_,!1);break;case"textarea":ye(a),we(a);break;case"option":_.value!=null&&a.setAttribute("value",""+te(_.value));break;case"select":a.multiple=!!_.multiple,M=_.value,M!=null?J(a,!!_.multiple,M,!1):_.defaultValue!=null&&J(a,!!_.multiple,_.defaultValue,!0);break;default:typeof T.onClick=="function"&&(a.onclick=Qd)}switch(y){case"button":case"input":case"select":case"textarea":_=!!_.autoFocus;break e;case"img":_=!0;break e;default:_=!1}}_&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return In(u),null;case 6:if(a&&u.stateNode!=null)sN(a,u,a.memoizedProps,_);else{if(typeof _!="string"&&u.stateNode===null)throw Error(n(166));if(y=Wo(Jc.current),Wo(_s.current),sf(u)){if(_=u.stateNode,y=u.memoizedProps,_[Ss]=u,(M=_.nodeValue!==y)&&(a=yr,a!==null))switch(a.tag){case 3:Jd(_.nodeValue,y,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Jd(_.nodeValue,y,(a.mode&1)!==0)}M&&(u.flags|=4)}else _=(y.nodeType===9?y:y.ownerDocument).createTextNode(_),_[Ss]=u,u.stateNode=_}return In(u),null;case 13:if(Lt(qt),_=u.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Bt&&xr!==null&&(u.mode&1)!==0&&(u.flags&128)===0)aj(),ll(),u.flags|=98560,M=!1;else if(M=sf(u),_!==null&&_.dehydrated!==null){if(a===null){if(!M)throw Error(n(318));if(M=u.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(n(317));M[Ss]=u}else ll(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;In(u),M=!1}else es!==null&&(Sg(es),es=null),M=!0;if(!M)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=y,u):(_=_!==null,_!==(a!==null&&a.memoizedState!==null)&&_&&(u.child.flags|=8192,(u.mode&1)!==0&&(a===null||(qt.current&1)!==0?dn===0&&(dn=3):Eg())),u.updateQueue!==null&&(u.flags|=4),In(u),null);case 4:return fl(),hg(a,u),a===null&&$c(u.stateNode.containerInfo),In(u),null;case 10:return qp(u.type._context),In(u),null;case 17:return tr(u.type)&&Zd(),In(u),null;case 19:if(Lt(qt),M=u.memoizedState,M===null)return In(u),null;if(_=(u.flags&128)!==0,z=M.rendering,z===null)if(_)tu(M,!1);else{if(dn!==0||a!==null&&(a.flags&128)!==0)for(a=u.child;a!==null;){if(z=df(a),z!==null){for(u.flags|=128,tu(M,!1),_=z.updateQueue,_!==null&&(u.updateQueue=_,u.flags|=4),u.subtreeFlags=0,_=y,y=u.child;y!==null;)M=y,a=_,M.flags&=14680066,z=M.alternate,z===null?(M.childLanes=0,M.lanes=a,M.child=null,M.subtreeFlags=0,M.memoizedProps=null,M.memoizedState=null,M.updateQueue=null,M.dependencies=null,M.stateNode=null):(M.childLanes=z.childLanes,M.lanes=z.lanes,M.child=z.child,M.subtreeFlags=0,M.deletions=null,M.memoizedProps=z.memoizedProps,M.memoizedState=z.memoizedState,M.updateQueue=z.updateQueue,M.type=z.type,a=z.dependencies,M.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),y=y.sibling;return Ot(qt,qt.current&1|2),u.child}a=a.sibling}M.tail!==null&&Jt()>gl&&(u.flags|=128,_=!0,tu(M,!1),u.lanes=4194304)}else{if(!_)if(a=df(z),a!==null){if(u.flags|=128,_=!0,y=a.updateQueue,y!==null&&(u.updateQueue=y,u.flags|=4),tu(M,!0),M.tail===null&&M.tailMode==="hidden"&&!z.alternate&&!Bt)return In(u),null}else 2*Jt()-M.renderingStartTime>gl&&y!==1073741824&&(u.flags|=128,_=!0,tu(M,!1),u.lanes=4194304);M.isBackwards?(z.sibling=u.child,u.child=z):(y=M.last,y!==null?y.sibling=z:u.child=z,M.last=z)}return M.tail!==null?(u=M.tail,M.rendering=u,M.tail=u.sibling,M.renderingStartTime=Jt(),u.sibling=null,y=qt.current,Ot(qt,_?y&1|2:y&1),u):(In(u),null);case 22:case 23:return kg(),_=u.memoizedState!==null,a!==null&&a.memoizedState!==null!==_&&(u.flags|=8192),_&&(u.mode&1)!==0?(vr&1073741824)!==0&&(In(u),u.subtreeFlags&6&&(u.flags|=8192)):In(u),null;case 24:return null;case 25:return null}throw Error(n(156,u.tag))}function RL(a,u){switch(Ip(u),u.tag){case 1:return tr(u.type)&&Zd(),a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 3:return fl(),Lt(er),Lt(Pn),Yp(),a=u.flags,(a&65536)!==0&&(a&128)===0?(u.flags=a&-65537|128,u):null;case 5:return Wp(u),null;case 13:if(Lt(qt),a=u.memoizedState,a!==null&&a.dehydrated!==null){if(u.alternate===null)throw Error(n(340));ll()}return a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 19:return Lt(qt),null;case 4:return fl(),null;case 10:return qp(u.type._context),null;case 22:case 23:return kg(),null;case 24:return null;default:return null}}var bf=!1,Ln=!1,PL=typeof WeakSet=="function"?WeakSet:Set,ze=null;function ml(a,u){var y=a.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(_){Ht(a,u,_)}else y.current=null}function mg(a,u,y){try{y()}catch(_){Ht(a,u,_)}}var iN=!1;function DL(a,u){if(kp=Bd,a=M1(),xp(a)){if("selectionStart"in a)var y={start:a.selectionStart,end:a.selectionEnd};else e:{y=(y=a.ownerDocument)&&y.defaultView||window;var _=y.getSelection&&y.getSelection();if(_&&_.rangeCount!==0){y=_.anchorNode;var T=_.anchorOffset,M=_.focusNode;_=_.focusOffset;try{y.nodeType,M.nodeType}catch{y=null;break e}var z=0,ne=-1,oe=-1,pe=0,Ee=0,Ce=a,ke=null;t:for(;;){for(var Ve;Ce!==y||T!==0&&Ce.nodeType!==3||(ne=z+T),Ce!==M||_!==0&&Ce.nodeType!==3||(oe=z+_),Ce.nodeType===3&&(z+=Ce.nodeValue.length),(Ve=Ce.firstChild)!==null;)ke=Ce,Ce=Ve;for(;;){if(Ce===a)break t;if(ke===y&&++pe===T&&(ne=z),ke===M&&++Ee===_&&(oe=z),(Ve=Ce.nextSibling)!==null)break;Ce=ke,ke=Ce.parentNode}Ce=Ve}y=ne===-1||oe===-1?null:{start:ne,end:oe}}else y=null}y=y||{start:0,end:0}}else y=null;for(Ep={focusedElem:a,selectionRange:y},Bd=!1,ze=u;ze!==null;)if(u=ze,a=u.child,(u.subtreeFlags&1028)!==0&&a!==null)a.return=u,ze=a;else for(;ze!==null;){u=ze;try{var We=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(We!==null){var Je=We.memoizedProps,Qt=We.memoizedState,fe=u.stateNode,le=fe.getSnapshotBeforeUpdate(u.elementType===u.type?Je:ts(u.type,Je),Qt);fe.__reactInternalSnapshotBeforeUpdate=le}break;case 3:var me=u.stateNode.containerInfo;me.nodeType===1?me.textContent="":me.nodeType===9&&me.documentElement&&me.removeChild(me.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Re){Ht(u,u.return,Re)}if(a=u.sibling,a!==null){a.return=u.return,ze=a;break}ze=u.return}return We=iN,iN=!1,We}function nu(a,u,y){var _=u.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var T=_=_.next;do{if((T.tag&a)===a){var M=T.destroy;T.destroy=void 0,M!==void 0&&mg(u,y,M)}T=T.next}while(T!==_)}}function wf(a,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var y=u=u.next;do{if((y.tag&a)===a){var _=y.create;y.destroy=_()}y=y.next}while(y!==u)}}function pg(a){var u=a.ref;if(u!==null){var y=a.stateNode;switch(a.tag){case 5:a=y;break;default:a=y}typeof u=="function"?u(a):u.current=a}}function oN(a){var u=a.alternate;u!==null&&(a.alternate=null,oN(u)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(u=a.stateNode,u!==null&&(delete u[Ss],delete u[Hc],delete u[Op],delete u[gL],delete u[yL])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function aN(a){return a.tag===5||a.tag===3||a.tag===4}function lN(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||aN(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function gg(a,u,y){var _=a.tag;if(_===5||_===6)a=a.stateNode,u?y.nodeType===8?y.parentNode.insertBefore(a,u):y.insertBefore(a,u):(y.nodeType===8?(u=y.parentNode,u.insertBefore(a,y)):(u=y,u.appendChild(a)),y=y._reactRootContainer,y!=null||u.onclick!==null||(u.onclick=Qd));else if(_!==4&&(a=a.child,a!==null))for(gg(a,u,y),a=a.sibling;a!==null;)gg(a,u,y),a=a.sibling}function yg(a,u,y){var _=a.tag;if(_===5||_===6)a=a.stateNode,u?y.insertBefore(a,u):y.appendChild(a);else if(_!==4&&(a=a.child,a!==null))for(yg(a,u,y),a=a.sibling;a!==null;)yg(a,u,y),a=a.sibling}var En=null,ns=!1;function Yi(a,u,y){for(y=y.child;y!==null;)cN(a,u,y),y=y.sibling}function cN(a,u,y){if(Ns&&typeof Ns.onCommitFiberUnmount=="function")try{Ns.onCommitFiberUnmount(Pd,y)}catch{}switch(y.tag){case 5:Ln||ml(y,u);case 6:var _=En,T=ns;En=null,Yi(a,u,y),En=_,ns=T,En!==null&&(ns?(a=En,y=y.stateNode,a.nodeType===8?a.parentNode.removeChild(y):a.removeChild(y)):En.removeChild(y.stateNode));break;case 18:En!==null&&(ns?(a=En,y=y.stateNode,a.nodeType===8?Ap(a.parentNode,y):a.nodeType===1&&Ap(a,y),Dc(a)):Ap(En,y.stateNode));break;case 4:_=En,T=ns,En=y.stateNode.containerInfo,ns=!0,Yi(a,u,y),En=_,ns=T;break;case 0:case 11:case 14:case 15:if(!Ln&&(_=y.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){T=_=_.next;do{var M=T,z=M.destroy;M=M.tag,z!==void 0&&((M&2)!==0||(M&4)!==0)&&mg(y,u,z),T=T.next}while(T!==_)}Yi(a,u,y);break;case 1:if(!Ln&&(ml(y,u),_=y.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=y.memoizedProps,_.state=y.memoizedState,_.componentWillUnmount()}catch(ne){Ht(y,u,ne)}Yi(a,u,y);break;case 21:Yi(a,u,y);break;case 22:y.mode&1?(Ln=(_=Ln)||y.memoizedState!==null,Yi(a,u,y),Ln=_):Yi(a,u,y);break;default:Yi(a,u,y)}}function uN(a){var u=a.updateQueue;if(u!==null){a.updateQueue=null;var y=a.stateNode;y===null&&(y=a.stateNode=new PL),u.forEach(function(_){var T=$L.bind(null,a,_);y.has(_)||(y.add(_),_.then(T,T))})}}function rs(a,u){var y=u.deletions;if(y!==null)for(var _=0;_<y.length;_++){var T=y[_];try{var M=a,z=u,ne=z;e:for(;ne!==null;){switch(ne.tag){case 5:En=ne.stateNode,ns=!1;break e;case 3:En=ne.stateNode.containerInfo,ns=!0;break e;case 4:En=ne.stateNode.containerInfo,ns=!0;break e}ne=ne.return}if(En===null)throw Error(n(160));cN(M,z,T),En=null,ns=!1;var oe=T.alternate;oe!==null&&(oe.return=null),T.return=null}catch(pe){Ht(T,u,pe)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)dN(u,a),u=u.sibling}function dN(a,u){var y=a.alternate,_=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(rs(u,a),Es(a),_&4){try{nu(3,a,a.return),wf(3,a)}catch(Je){Ht(a,a.return,Je)}try{nu(5,a,a.return)}catch(Je){Ht(a,a.return,Je)}}break;case 1:rs(u,a),Es(a),_&512&&y!==null&&ml(y,y.return);break;case 5:if(rs(u,a),Es(a),_&512&&y!==null&&ml(y,y.return),a.flags&32){var T=a.stateNode;try{at(T,"")}catch(Je){Ht(a,a.return,Je)}}if(_&4&&(T=a.stateNode,T!=null)){var M=a.memoizedProps,z=y!==null?y.memoizedProps:M,ne=a.type,oe=a.updateQueue;if(a.updateQueue=null,oe!==null)try{ne==="input"&&M.type==="radio"&&M.name!=null&&Ye(T,M),Oi(ne,z);var pe=Oi(ne,M);for(z=0;z<oe.length;z+=2){var Ee=oe[z],Ce=oe[z+1];Ee==="style"?Ci(T,Ce):Ee==="dangerouslySetInnerHTML"?ht(T,Ce):Ee==="children"?at(T,Ce):S(T,Ee,Ce,pe)}switch(ne){case"input":He(T,M);break;case"textarea":je(T,M);break;case"select":var ke=T._wrapperState.wasMultiple;T._wrapperState.wasMultiple=!!M.multiple;var Ve=M.value;Ve!=null?J(T,!!M.multiple,Ve,!1):ke!==!!M.multiple&&(M.defaultValue!=null?J(T,!!M.multiple,M.defaultValue,!0):J(T,!!M.multiple,M.multiple?[]:"",!1))}T[Hc]=M}catch(Je){Ht(a,a.return,Je)}}break;case 6:if(rs(u,a),Es(a),_&4){if(a.stateNode===null)throw Error(n(162));T=a.stateNode,M=a.memoizedProps;try{T.nodeValue=M}catch(Je){Ht(a,a.return,Je)}}break;case 3:if(rs(u,a),Es(a),_&4&&y!==null&&y.memoizedState.isDehydrated)try{Dc(u.containerInfo)}catch(Je){Ht(a,a.return,Je)}break;case 4:rs(u,a),Es(a);break;case 13:rs(u,a),Es(a),T=a.child,T.flags&8192&&(M=T.memoizedState!==null,T.stateNode.isHidden=M,!M||T.alternate!==null&&T.alternate.memoizedState!==null||(bg=Jt())),_&4&&uN(a);break;case 22:if(Ee=y!==null&&y.memoizedState!==null,a.mode&1?(Ln=(pe=Ln)||Ee,rs(u,a),Ln=pe):rs(u,a),Es(a),_&8192){if(pe=a.memoizedState!==null,(a.stateNode.isHidden=pe)&&!Ee&&(a.mode&1)!==0)for(ze=a,Ee=a.child;Ee!==null;){for(Ce=ze=Ee;ze!==null;){switch(ke=ze,Ve=ke.child,ke.tag){case 0:case 11:case 14:case 15:nu(4,ke,ke.return);break;case 1:ml(ke,ke.return);var We=ke.stateNode;if(typeof We.componentWillUnmount=="function"){_=ke,y=ke.return;try{u=_,We.props=u.memoizedProps,We.state=u.memoizedState,We.componentWillUnmount()}catch(Je){Ht(_,y,Je)}}break;case 5:ml(ke,ke.return);break;case 22:if(ke.memoizedState!==null){mN(Ce);continue}}Ve!==null?(Ve.return=ke,ze=Ve):mN(Ce)}Ee=Ee.sibling}e:for(Ee=null,Ce=a;;){if(Ce.tag===5){if(Ee===null){Ee=Ce;try{T=Ce.stateNode,pe?(M=T.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none"):(ne=Ce.stateNode,oe=Ce.memoizedProps.style,z=oe!=null&&oe.hasOwnProperty("display")?oe.display:null,ne.style.display=Ka("display",z))}catch(Je){Ht(a,a.return,Je)}}}else if(Ce.tag===6){if(Ee===null)try{Ce.stateNode.nodeValue=pe?"":Ce.memoizedProps}catch(Je){Ht(a,a.return,Je)}}else if((Ce.tag!==22&&Ce.tag!==23||Ce.memoizedState===null||Ce===a)&&Ce.child!==null){Ce.child.return=Ce,Ce=Ce.child;continue}if(Ce===a)break e;for(;Ce.sibling===null;){if(Ce.return===null||Ce.return===a)break e;Ee===Ce&&(Ee=null),Ce=Ce.return}Ee===Ce&&(Ee=null),Ce.sibling.return=Ce.return,Ce=Ce.sibling}}break;case 19:rs(u,a),Es(a),_&4&&uN(a);break;case 21:break;default:rs(u,a),Es(a)}}function Es(a){var u=a.flags;if(u&2){try{e:{for(var y=a.return;y!==null;){if(aN(y)){var _=y;break e}y=y.return}throw Error(n(160))}switch(_.tag){case 5:var T=_.stateNode;_.flags&32&&(at(T,""),_.flags&=-33);var M=lN(a);yg(a,M,T);break;case 3:case 4:var z=_.stateNode.containerInfo,ne=lN(a);gg(a,ne,z);break;default:throw Error(n(161))}}catch(oe){Ht(a,a.return,oe)}a.flags&=-3}u&4096&&(a.flags&=-4097)}function IL(a,u,y){ze=a,fN(a)}function fN(a,u,y){for(var _=(a.mode&1)!==0;ze!==null;){var T=ze,M=T.child;if(T.tag===22&&_){var z=T.memoizedState!==null||bf;if(!z){var ne=T.alternate,oe=ne!==null&&ne.memoizedState!==null||Ln;ne=bf;var pe=Ln;if(bf=z,(Ln=oe)&&!pe)for(ze=T;ze!==null;)z=ze,oe=z.child,z.tag===22&&z.memoizedState!==null?pN(T):oe!==null?(oe.return=z,ze=oe):pN(T);for(;M!==null;)ze=M,fN(M),M=M.sibling;ze=T,bf=ne,Ln=pe}hN(a)}else(T.subtreeFlags&8772)!==0&&M!==null?(M.return=T,ze=M):hN(a)}}function hN(a){for(;ze!==null;){var u=ze;if((u.flags&8772)!==0){var y=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:Ln||wf(5,u);break;case 1:var _=u.stateNode;if(u.flags&4&&!Ln)if(y===null)_.componentDidMount();else{var T=u.elementType===u.type?y.memoizedProps:ts(u.type,y.memoizedProps);_.componentDidUpdate(T,y.memoizedState,_.__reactInternalSnapshotBeforeUpdate)}var M=u.updateQueue;M!==null&&mj(u,M,_);break;case 3:var z=u.updateQueue;if(z!==null){if(y=null,u.child!==null)switch(u.child.tag){case 5:y=u.child.stateNode;break;case 1:y=u.child.stateNode}mj(u,z,y)}break;case 5:var ne=u.stateNode;if(y===null&&u.flags&4){y=ne;var oe=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":oe.autoFocus&&y.focus();break;case"img":oe.src&&(y.src=oe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var pe=u.alternate;if(pe!==null){var Ee=pe.memoizedState;if(Ee!==null){var Ce=Ee.dehydrated;Ce!==null&&Dc(Ce)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ln||u.flags&512&&pg(u)}catch(ke){Ht(u,u.return,ke)}}if(u===a){ze=null;break}if(y=u.sibling,y!==null){y.return=u.return,ze=y;break}ze=u.return}}function mN(a){for(;ze!==null;){var u=ze;if(u===a){ze=null;break}var y=u.sibling;if(y!==null){y.return=u.return,ze=y;break}ze=u.return}}function pN(a){for(;ze!==null;){var u=ze;try{switch(u.tag){case 0:case 11:case 15:var y=u.return;try{wf(4,u)}catch(oe){Ht(u,y,oe)}break;case 1:var _=u.stateNode;if(typeof _.componentDidMount=="function"){var T=u.return;try{_.componentDidMount()}catch(oe){Ht(u,T,oe)}}var M=u.return;try{pg(u)}catch(oe){Ht(u,M,oe)}break;case 5:var z=u.return;try{pg(u)}catch(oe){Ht(u,z,oe)}}}catch(oe){Ht(u,u.return,oe)}if(u===a){ze=null;break}var ne=u.sibling;if(ne!==null){ne.return=u.return,ze=ne;break}ze=u.return}}var LL=Math.ceil,jf=w.ReactCurrentDispatcher,xg=w.ReactCurrentOwner,Fr=w.ReactCurrentBatchConfig,yt=0,yn=null,rn=null,Cn=0,vr=0,pl=$i(0),dn=0,ru=null,Yo=0,Nf=0,vg=0,su=null,rr=null,bg=0,gl=1/0,ai=null,Sf=!1,wg=null,Ki=null,_f=!1,Ji=null,kf=0,iu=0,jg=null,Ef=-1,Cf=0;function Gn(){return(yt&6)!==0?Jt():Ef!==-1?Ef:Ef=Jt()}function Qi(a){return(a.mode&1)===0?1:(yt&2)!==0&&Cn!==0?Cn&-Cn:vL.transition!==null?(Cf===0&&(Cf=l1()),Cf):(a=Ct,a!==0||(a=window.event,a=a===void 0?16:y1(a.type)),a)}function ss(a,u,y,_){if(50<iu)throw iu=0,jg=null,Error(n(185));Tc(a,y,_),((yt&2)===0||a!==yn)&&(a===yn&&((yt&2)===0&&(Nf|=y),dn===4&&Xi(a,Cn)),sr(a,_),y===1&&yt===0&&(u.mode&1)===0&&(gl=Jt()+500,tf&&Hi()))}function sr(a,u){var y=a.callbackNode;vI(a,u);var _=Ld(a,a===yn?Cn:0);if(_===0)y!==null&&i1(y),a.callbackNode=null,a.callbackPriority=0;else if(u=_&-_,a.callbackPriority!==u){if(y!=null&&i1(y),u===1)a.tag===0?xL(yN.bind(null,a)):nj(yN.bind(null,a)),mL(function(){(yt&6)===0&&Hi()}),y=null;else{switch(c1(_)){case 1:y=tp;break;case 4:y=o1;break;case 16:y=Rd;break;case 536870912:y=a1;break;default:y=Rd}y=_N(y,gN.bind(null,a))}a.callbackPriority=u,a.callbackNode=y}}function gN(a,u){if(Ef=-1,Cf=0,(yt&6)!==0)throw Error(n(327));var y=a.callbackNode;if(yl()&&a.callbackNode!==y)return null;var _=Ld(a,a===yn?Cn:0);if(_===0)return null;if((_&30)!==0||(_&a.expiredLanes)!==0||u)u=Tf(a,_);else{u=_;var T=yt;yt|=2;var M=vN();(yn!==a||Cn!==u)&&(ai=null,gl=Jt()+500,Jo(a,u));do try{BL();break}catch(ne){xN(a,ne)}while(!0);Up(),jf.current=M,yt=T,rn!==null?u=0:(yn=null,Cn=0,u=dn)}if(u!==0){if(u===2&&(T=np(a),T!==0&&(_=T,u=Ng(a,T))),u===1)throw y=ru,Jo(a,0),Xi(a,_),sr(a,Jt()),y;if(u===6)Xi(a,_);else{if(T=a.current.alternate,(_&30)===0&&!ML(T)&&(u=Tf(a,_),u===2&&(M=np(a),M!==0&&(_=M,u=Ng(a,M))),u===1))throw y=ru,Jo(a,0),Xi(a,_),sr(a,Jt()),y;switch(a.finishedWork=T,a.finishedLanes=_,u){case 0:case 1:throw Error(n(345));case 2:Qo(a,rr,ai);break;case 3:if(Xi(a,_),(_&130023424)===_&&(u=bg+500-Jt(),10<u)){if(Ld(a,0)!==0)break;if(T=a.suspendedLanes,(T&_)!==_){Gn(),a.pingedLanes|=a.suspendedLanes&T;break}a.timeoutHandle=Tp(Qo.bind(null,a,rr,ai),u);break}Qo(a,rr,ai);break;case 4:if(Xi(a,_),(_&4194240)===_)break;for(u=a.eventTimes,T=-1;0<_;){var z=31-Xr(_);M=1<<z,z=u[z],z>T&&(T=z),_&=~M}if(_=T,_=Jt()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*LL(_/1960))-_,10<_){a.timeoutHandle=Tp(Qo.bind(null,a,rr,ai),_);break}Qo(a,rr,ai);break;case 5:Qo(a,rr,ai);break;default:throw Error(n(329))}}}return sr(a,Jt()),a.callbackNode===y?gN.bind(null,a):null}function Ng(a,u){var y=su;return a.current.memoizedState.isDehydrated&&(Jo(a,u).flags|=256),a=Tf(a,u),a!==2&&(u=rr,rr=y,u!==null&&Sg(u)),a}function Sg(a){rr===null?rr=a:rr.push.apply(rr,a)}function ML(a){for(var u=a;;){if(u.flags&16384){var y=u.updateQueue;if(y!==null&&(y=y.stores,y!==null))for(var _=0;_<y.length;_++){var T=y[_],M=T.getSnapshot;T=T.value;try{if(!Zr(M(),T))return!1}catch{return!1}}}if(y=u.child,u.subtreeFlags&16384&&y!==null)y.return=u,u=y;else{if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function Xi(a,u){for(u&=~vg,u&=~Nf,a.suspendedLanes|=u,a.pingedLanes&=~u,a=a.expirationTimes;0<u;){var y=31-Xr(u),_=1<<y;a[y]=-1,u&=~_}}function yN(a){if((yt&6)!==0)throw Error(n(327));yl();var u=Ld(a,0);if((u&1)===0)return sr(a,Jt()),null;var y=Tf(a,u);if(a.tag!==0&&y===2){var _=np(a);_!==0&&(u=_,y=Ng(a,_))}if(y===1)throw y=ru,Jo(a,0),Xi(a,u),sr(a,Jt()),y;if(y===6)throw Error(n(345));return a.finishedWork=a.current.alternate,a.finishedLanes=u,Qo(a,rr,ai),sr(a,Jt()),null}function _g(a,u){var y=yt;yt|=1;try{return a(u)}finally{yt=y,yt===0&&(gl=Jt()+500,tf&&Hi())}}function Ko(a){Ji!==null&&Ji.tag===0&&(yt&6)===0&&yl();var u=yt;yt|=1;var y=Fr.transition,_=Ct;try{if(Fr.transition=null,Ct=1,a)return a()}finally{Ct=_,Fr.transition=y,yt=u,(yt&6)===0&&Hi()}}function kg(){vr=pl.current,Lt(pl)}function Jo(a,u){a.finishedWork=null,a.finishedLanes=0;var y=a.timeoutHandle;if(y!==-1&&(a.timeoutHandle=-1,hL(y)),rn!==null)for(y=rn.return;y!==null;){var _=y;switch(Ip(_),_.tag){case 1:_=_.type.childContextTypes,_!=null&&Zd();break;case 3:fl(),Lt(er),Lt(Pn),Yp();break;case 5:Wp(_);break;case 4:fl();break;case 13:Lt(qt);break;case 19:Lt(qt);break;case 10:qp(_.type._context);break;case 22:case 23:kg()}y=y.return}if(yn=a,rn=a=Zi(a.current,null),Cn=vr=u,dn=0,ru=null,vg=Nf=Yo=0,rr=su=null,Ho!==null){for(u=0;u<Ho.length;u++)if(y=Ho[u],_=y.interleaved,_!==null){y.interleaved=null;var T=_.next,M=y.pending;if(M!==null){var z=M.next;M.next=T,_.next=z}y.pending=_}Ho=null}return a}function xN(a,u){do{var y=rn;try{if(Up(),ff.current=gf,hf){for(var _=Vt.memoizedState;_!==null;){var T=_.queue;T!==null&&(T.pending=null),_=_.next}hf=!1}if(Go=0,gn=un=Vt=null,Qc=!1,Xc=0,xg.current=null,y===null||y.return===null){dn=1,ru=u,rn=null;break}e:{var M=a,z=y.return,ne=y,oe=u;if(u=Cn,ne.flags|=32768,oe!==null&&typeof oe=="object"&&typeof oe.then=="function"){var pe=oe,Ee=ne,Ce=Ee.tag;if((Ee.mode&1)===0&&(Ce===0||Ce===11||Ce===15)){var ke=Ee.alternate;
vendor: 8,088 bytes, line 40
40ke?(Ee.updateQueue=ke.updateQueue,Ee.memoizedState=ke.memoizedState,Ee.lanes=ke.lanes):(Ee.updateQueue=null,Ee.memoizedState=null)}var Ve=$j(z);if(Ve!==null){Ve.flags&=-257,zj(Ve,z,ne,M,u),Ve.mode&1&&Vj(M,pe,u),u=Ve,oe=pe;var We=u.updateQueue;if(We===null){var Je=new Set;Je.add(oe),u.updateQueue=Je}else We.add(oe);break e}else{if((u&1)===0){Vj(M,pe,u),Eg();break e}oe=Error(n(426))}}else if(Bt&&ne.mode&1){var Qt=$j(z);if(Qt!==null){(Qt.flags&65536)===0&&(Qt.flags|=256),zj(Qt,z,ne,M,u),Fp(hl(oe,ne));break e}}M=oe=hl(oe,ne),dn!==4&&(dn=2),su===null?su=[M]:su.push(M),M=z;do{switch(M.tag){case 3:M.flags|=65536,u&=-u,M.lanes|=u;var fe=Uj(M,oe,u);hj(M,fe);break e;case 1:ne=oe;var le=M.type,me=M.stateNode;if((M.flags&128)===0&&(typeof le.getDerivedStateFromError=="function"||me!==null&&typeof me.componentDidCatch=="function"&&(Ki===null||!Ki.has(me)))){M.flags|=65536,u&=-u,M.lanes|=u;var Re=qj(M,ne,u);hj(M,Re);break e}}M=M.return}while(M!==null)}wN(y)}catch(Ze){u=Ze,rn===y&&y!==null&&(rn=y=y.return);continue}break}while(!0)}function vN(){var a=jf.current;return jf.current=gf,a===null?gf:a}function Eg(){(dn===0||dn===3||dn===2)&&(dn=4),yn===null||(Yo&268435455)===0&&(Nf&268435455)===0||Xi(yn,Cn)}function Tf(a,u){var y=yt;yt|=2;var _=vN();(yn!==a||Cn!==u)&&(ai=null,Jo(a,u));do try{FL();break}catch(T){xN(a,T)}while(!0);if(Up(),yt=y,jf.current=_,rn!==null)throw Error(n(261));return yn=null,Cn=0,dn}function FL(){for(;rn!==null;)bN(rn)}function BL(){for(;rn!==null&&!uI();)bN(rn)}function bN(a){var u=SN(a.alternate,a,vr);a.memoizedProps=a.pendingProps,u===null?wN(a):rn=u,xg.current=null}function wN(a){var u=a;do{var y=u.alternate;if(a=u.return,(u.flags&32768)===0){if(y=OL(y,u,vr),y!==null){rn=y;return}}else{if(y=RL(y,u),y!==null){y.flags&=32767,rn=y;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{dn=6,rn=null;return}}if(u=u.sibling,u!==null){rn=u;return}rn=u=a}while(u!==null);dn===0&&(dn=5)}function Qo(a,u,y){var _=Ct,T=Fr.transition;try{Fr.transition=null,Ct=1,UL(a,u,y,_)}finally{Fr.transition=T,Ct=_}return null}function UL(a,u,y,_){do yl();while(Ji!==null);if((yt&6)!==0)throw Error(n(327));y=a.finishedWork;var T=a.finishedLanes;if(y===null)return null;if(a.finishedWork=null,a.finishedLanes=0,y===a.current)throw Error(n(177));a.callbackNode=null,a.callbackPriority=0;var M=y.lanes|y.childLanes;if(bI(a,M),a===yn&&(rn=yn=null,Cn=0),(y.subtreeFlags&2064)===0&&(y.flags&2064)===0||_f||(_f=!0,_N(Rd,function(){return yl(),null})),M=(y.flags&15990)!==0,(y.subtreeFlags&15990)!==0||M){M=Fr.transition,Fr.transition=null;var z=Ct;Ct=1;var ne=yt;yt|=4,xg.current=null,DL(a,y),dN(y,a),oL(Ep),Bd=!!kp,Ep=kp=null,a.current=y,IL(y),dI(),yt=ne,Ct=z,Fr.transition=M}else a.current=y;if(_f&&(_f=!1,Ji=a,kf=T),M=a.pendingLanes,M===0&&(Ki=null),mI(y.stateNode),sr(a,Jt()),u!==null)for(_=a.onRecoverableError,y=0;y<u.length;y++)T=u[y],_(T.value,{componentStack:T.stack,digest:T.digest});if(Sf)throw Sf=!1,a=wg,wg=null,a;return(kf&1)!==0&&a.tag!==0&&yl(),M=a.pendingLanes,(M&1)!==0?a===jg?iu++:(iu=0,jg=a):iu=0,Hi(),null}function yl(){if(Ji!==null){var a=c1(kf),u=Fr.transition,y=Ct;try{if(Fr.transition=null,Ct=16>a?16:a,Ji===null)var _=!1;else{if(a=Ji,Ji=null,kf=0,(yt&6)!==0)throw Error(n(331));var T=yt;for(yt|=4,ze=a.current;ze!==null;){var M=ze,z=M.child;if((ze.flags&16)!==0){var ne=M.deletions;if(ne!==null){for(var oe=0;oe<ne.length;oe++){var pe=ne[oe];for(ze=pe;ze!==null;){var Ee=ze;switch(Ee.tag){case 0:case 11:case 15:nu(8,Ee,M)}var Ce=Ee.child;if(Ce!==null)Ce.return=Ee,ze=Ce;else for(;ze!==null;){Ee=ze;var ke=Ee.sibling,Ve=Ee.return;if(oN(Ee),Ee===pe){ze=null;break}if(ke!==null){ke.return=Ve,ze=ke;break}ze=Ve}}}var We=M.alternate;if(We!==null){var Je=We.child;if(Je!==null){We.child=null;do{var Qt=Je.sibling;Je.sibling=null,Je=Qt}while(Je!==null)}}ze=M}}if((M.subtreeFlags&2064)!==0&&z!==null)z.return=M,ze=z;else e:for(;ze!==null;){if(M=ze,(M.flags&2048)!==0)switch(M.tag){case 0:case 11:case 15:nu(9,M,M.return)}var fe=M.sibling;if(fe!==null){fe.return=M.return,ze=fe;break e}ze=M.return}}var le=a.current;for(ze=le;ze!==null;){z=ze;var me=z.child;if((z.subtreeFlags&2064)!==0&&me!==null)me.return=z,ze=me;else e:for(z=le;ze!==null;){if(ne=ze,(ne.flags&2048)!==0)try{switch(ne.tag){case 0:case 11:case 15:wf(9,ne)}}catch(Ze){Ht(ne,ne.return,Ze)}if(ne===z){ze=null;break e}var Re=ne.sibling;if(Re!==null){Re.return=ne.return,ze=Re;break e}ze=ne.return}}if(yt=T,Hi(),Ns&&typeof Ns.onPostCommitFiberRoot=="function")try{Ns.onPostCommitFiberRoot(Pd,a)}catch{}_=!0}return _}finally{Ct=y,Fr.transition=u}}return!1}function jN(a,u,y){u=hl(y,u),u=Uj(a,u,1),a=Gi(a,u,1),u=Gn(),a!==null&&(Tc(a,1,u),sr(a,u))}function Ht(a,u,y){if(a.tag===3)jN(a,a,y);else for(;u!==null;){if(u.tag===3){jN(u,a,y);break}else if(u.tag===1){var _=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(Ki===null||!Ki.has(_))){a=hl(y,a),a=qj(u,a,1),u=Gi(u,a,1),a=Gn(),u!==null&&(Tc(u,1,a),sr(u,a));break}}u=u.return}}function qL(a,u,y){var _=a.pingCache;_!==null&&_.delete(u),u=Gn(),a.pingedLanes|=a.suspendedLanes&y,yn===a&&(Cn&y)===y&&(dn===4||dn===3&&(Cn&130023424)===Cn&&500>Jt()-bg?Jo(a,0):vg|=y),sr(a,u)}function NN(a,u){u===0&&((a.mode&1)===0?u=1:(u=Id,Id<<=1,(Id&130023424)===0&&(Id=4194304)));var y=Gn();a=si(a,u),a!==null&&(Tc(a,u,y),sr(a,y))}function VL(a){var u=a.memoizedState,y=0;u!==null&&(y=u.retryLane),NN(a,y)}function $L(a,u){var y=0;switch(a.tag){case 13:var _=a.stateNode,T=a.memoizedState;T!==null&&(y=T.retryLane);break;case 19:_=a.stateNode;break;default:throw Error(n(314))}_!==null&&_.delete(u),NN(a,y)}var SN;SN=function(a,u,y){if(a!==null)if(a.memoizedProps!==u.pendingProps||er.current)nr=!0;else{if((a.lanes&y)===0&&(u.flags&128)===0)return nr=!1,AL(a,u,y);nr=(a.flags&131072)!==0}else nr=!1,Bt&&(u.flags&1048576)!==0&&rj(u,rf,u.index);switch(u.lanes=0,u.tag){case 2:var _=u.type;vf(a,u),a=u.pendingProps;var T=il(u,Pn.current);dl(u,y),T=Qp(null,u,_,a,T,y);var M=Xp();return u.flags|=1,typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,tr(_)?(M=!0,ef(u)):M=!1,u.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,zp(u),T.updater=yf,u.stateNode=T,T._reactInternals=u,sg(u,_,a,y),u=lg(null,u,_,!0,M,y)):(u.tag=0,Bt&&M&&Dp(u),Wn(null,u,T,y),u=u.child),u;case 16:_=u.elementType;e:{switch(vf(a,u),a=u.pendingProps,T=_._init,_=T(_._payload),u.type=_,T=u.tag=HL(_),a=ts(_,a),T){case 0:u=ag(null,u,_,a,y);break e;case 1:u=Jj(null,u,_,a,y);break e;case 11:u=Hj(null,u,_,a,y);break e;case 14:u=Wj(null,u,_,ts(_.type,a),y);break e}throw Error(n(306,_,""))}return u;case 0:return _=u.type,T=u.pendingProps,T=u.elementType===_?T:ts(_,T),ag(a,u,_,T,y);case 1:return _=u.type,T=u.pendingProps,T=u.elementType===_?T:ts(_,T),Jj(a,u,_,T,y);case 3:e:{if(Qj(u),a===null)throw Error(n(387));_=u.pendingProps,M=u.memoizedState,T=M.element,fj(a,u),uf(u,_,null,y);var z=u.memoizedState;if(_=z.element,M.isDehydrated)if(M={element:_,isDehydrated:!1,cache:z.cache,pendingSuspenseBoundaries:z.pendingSuspenseBoundaries,transitions:z.transitions},u.updateQueue.baseState=M,u.memoizedState=M,u.flags&256){T=hl(Error(n(423)),u),u=Xj(a,u,_,y,T);break e}else if(_!==T){T=hl(Error(n(424)),u),u=Xj(a,u,_,y,T);break e}else for(xr=Vi(u.stateNode.containerInfo.firstChild),yr=u,Bt=!0,es=null,y=uj(u,null,_,y),u.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(ll(),_===T){u=oi(a,u,y);break e}Wn(a,u,_,y)}u=u.child}return u;case 5:return pj(u),a===null&&Mp(u),_=u.type,T=u.pendingProps,M=a!==null?a.memoizedProps:null,z=T.children,Cp(_,T)?z=null:M!==null&&Cp(_,M)&&(u.flags|=32),Kj(a,u),Wn(a,u,z,y),u.child;case 6:return a===null&&Mp(u),null;case 13:return Zj(a,u,y);case 4:return Hp(u,u.stateNode.containerInfo),_=u.pendingProps,a===null?u.child=cl(u,null,_,y):Wn(a,u,_,y),u.child;case 11:return _=u.type,T=u.pendingProps,T=u.elementType===_?T:ts(_,T),Hj(a,u,_,T,y);case 7:return Wn(a,u,u.pendingProps,y),u.child;case 8:return Wn(a,u,u.pendingProps.children,y),u.child;case 12:return Wn(a,u,u.pendingProps.children,y),u.child;
vendor: 11,932 bytes, line 40
40case 10:e:{if(_=u.type._context,T=u.pendingProps,M=u.memoizedProps,z=T.value,Ot(af,_._currentValue),_._currentValue=z,M!==null)if(Zr(M.value,z)){if(M.children===T.children&&!er.current){u=oi(a,u,y);break e}}else for(M=u.child,M!==null&&(M.return=u);M!==null;){var ne=M.dependencies;if(ne!==null){z=M.child;for(var oe=ne.firstContext;oe!==null;){if(oe.context===_){if(M.tag===1){oe=ii(-1,y&-y),oe.tag=2;var pe=M.updateQueue;if(pe!==null){pe=pe.shared;var Ee=pe.pending;Ee===null?oe.next=oe:(oe.next=Ee.next,Ee.next=oe),pe.pending=oe}}M.lanes|=y,oe=M.alternate,oe!==null&&(oe.lanes|=y),Vp(M.return,y,u),ne.lanes|=y;break}oe=oe.next}}else if(M.tag===10)z=M.type===u.type?null:M.child;else if(M.tag===18){if(z=M.return,z===null)throw Error(n(341));z.lanes|=y,ne=z.alternate,ne!==null&&(ne.lanes|=y),Vp(z,y,u),z=M.sibling}else z=M.child;if(z!==null)z.return=M;else for(z=M;z!==null;){if(z===u){z=null;break}if(M=z.sibling,M!==null){M.return=z.return,z=M;break}z=z.return}M=z}Wn(a,u,T.children,y),u=u.child}return u;case 9:return T=u.type,_=u.pendingProps.children,dl(u,y),T=Lr(T),_=_(T),u.flags|=1,Wn(a,u,_,y),u.child;case 14:return _=u.type,T=ts(_,u.pendingProps),T=ts(_.type,T),Wj(a,u,_,T,y);case 15:return Gj(a,u,u.type,u.pendingProps,y);case 17:return _=u.type,T=u.pendingProps,T=u.elementType===_?T:ts(_,T),vf(a,u),u.tag=1,tr(_)?(a=!0,ef(u)):a=!1,dl(u,y),Fj(u,_,T),sg(u,_,T,y),lg(null,u,_,!0,a,y);case 19:return tN(a,u,y);case 22:return Yj(a,u,y)}throw Error(n(156,u.tag))};function _N(a,u){return s1(a,u)}function zL(a,u,y,_){this.tag=a,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Br(a,u,y,_){return new zL(a,u,y,_)}function Cg(a){return a=a.prototype,!(!a||!a.isReactComponent)}function HL(a){if(typeof a=="function")return Cg(a)?1:0;if(a!=null){if(a=a.$$typeof,a===D)return 11;if(a===$)return 14}return 2}function Zi(a,u){var y=a.alternate;return y===null?(y=Br(a.tag,u,a.key,a.mode),y.elementType=a.elementType,y.type=a.type,y.stateNode=a.stateNode,y.alternate=a,a.alternate=y):(y.pendingProps=u,y.type=a.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=a.flags&14680064,y.childLanes=a.childLanes,y.lanes=a.lanes,y.child=a.child,y.memoizedProps=a.memoizedProps,y.memoizedState=a.memoizedState,y.updateQueue=a.updateQueue,u=a.dependencies,y.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},y.sibling=a.sibling,y.index=a.index,y.ref=a.ref,y}function Af(a,u,y,_,T,M){var z=2;if(_=a,typeof a=="function")Cg(a)&&(z=1);else if(typeof a=="string")z=5;else e:switch(a){case C:return Xo(y.children,T,M,u);case A:z=8,T|=8;break;case B:return a=Br(12,y,u,T|2),a.elementType=B,a.lanes=M,a;case R:return a=Br(13,y,u,T),a.elementType=R,a.lanes=M,a;case U:return a=Br(19,y,u,T),a.elementType=U,a.lanes=M,a;case K:return Of(y,T,M,u);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case I:z=10;break e;case L:z=9;break e;case D:z=11;break e;case $:z=14;break e;case Y:z=16,_=null;break e}throw Error(n(130,a==null?a:typeof a,""))}return u=Br(z,y,u,T),u.elementType=a,u.type=_,u.lanes=M,u}function Xo(a,u,y,_){return a=Br(7,a,_,u),a.lanes=y,a}function Of(a,u,y,_){return a=Br(22,a,_,u),a.elementType=K,a.lanes=y,a.stateNode={isHidden:!1},a}function Tg(a,u,y){return a=Br(6,a,null,u),a.lanes=y,a}function Ag(a,u,y){return u=Br(4,a.children!==null?a.children:[],a.key,u),u.lanes=y,u.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},u}function WL(a,u,y,_,T){this.tag=u,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rp(0),this.expirationTimes=rp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rp(0),this.identifierPrefix=_,this.onRecoverableError=T,this.mutableSourceEagerHydrationData=null}function Og(a,u,y,_,T,M,z,ne,oe){return a=new WL(a,u,y,ne,oe),u===1?(u=1,M===!0&&(u|=8)):u=0,M=Br(3,null,null,u),a.current=M,M.stateNode=a,M.memoizedState={element:_,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},zp(M),a}function GL(a,u,y){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:_==null?null:""+_,children:a,containerInfo:u,implementation:y}}function kN(a){if(!a)return zi;a=a._reactInternals;e:{if(Uo(a)!==a||a.tag!==1)throw Error(n(170));var u=a;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(tr(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(n(171))}if(a.tag===1){var y=a.type;if(tr(y))return ej(a,y,u)}return u}function EN(a,u,y,_,T,M,z,ne,oe){return a=Og(y,_,!0,a,T,M,z,ne,oe),a.context=kN(null),y=a.current,_=Gn(),T=Qi(y),M=ii(_,T),M.callback=u??null,Gi(y,M,T),a.current.lanes=T,Tc(a,T,_),sr(a,_),a}function Rf(a,u,y,_){var T=u.current,M=Gn(),z=Qi(T);return y=kN(y),u.context===null?u.context=y:u.pendingContext=y,u=ii(M,z),u.payload={element:a},_=_===void 0?null:_,_!==null&&(u.callback=_),a=Gi(T,u,z),a!==null&&(ss(a,T,z,M),cf(a,T,z)),z}function Pf(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function CN(a,u){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var y=a.retryLane;a.retryLane=y!==0&&y<u?y:u}}function Rg(a,u){CN(a,u),(a=a.alternate)&&CN(a,u)}function YL(){return null}var TN=typeof reportError=="function"?reportError:function(a){console.error(a)};function Pg(a){this._internalRoot=a}Df.prototype.render=Pg.prototype.render=function(a){var u=this._internalRoot;if(u===null)throw Error(n(409));Rf(a,u,null,null)},Df.prototype.unmount=Pg.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var u=a.containerInfo;Ko(function(){Rf(null,a,null,null)}),u[ei]=null}};function Df(a){this._internalRoot=a}Df.prototype.unstable_scheduleHydration=function(a){if(a){var u=f1();a={blockedOn:null,target:a,priority:u};for(var y=0;y<Bi.length&&u!==0&&u<Bi[y].priority;y++);Bi.splice(y,0,a),y===0&&p1(a)}};function Dg(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function If(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function AN(){}function KL(a,u,y,_,T){if(T){if(typeof _=="function"){var M=_;_=function(){var pe=Pf(z);M.call(pe)}}var z=EN(u,_,a,0,null,!1,!1,"",AN);return a._reactRootContainer=z,a[ei]=z.current,$c(a.nodeType===8?a.parentNode:a),Ko(),z}for(;T=a.lastChild;)a.removeChild(T);if(typeof _=="function"){var ne=_;_=function(){var pe=Pf(oe);ne.call(pe)}}var oe=Og(a,0,!1,null,null,!1,!1,"",AN);return a._reactRootContainer=oe,a[ei]=oe.current,$c(a.nodeType===8?a.parentNode:a),Ko(function(){Rf(u,oe,y,_)}),oe}function Lf(a,u,y,_,T){var M=y._reactRootContainer;if(M){var z=M;if(typeof T=="function"){var ne=T;T=function(){var oe=Pf(z);ne.call(oe)}}Rf(u,z,a,T)}else z=KL(y,u,a,T,_);return Pf(z)}u1=function(a){switch(a.tag){case 3:var u=a.stateNode;if(u.current.memoizedState.isDehydrated){var y=Cc(u.pendingLanes);y!==0&&(sp(u,y|1),sr(u,Jt()),(yt&6)===0&&(gl=Jt()+500,Hi()))}break;case 13:Ko(function(){var _=si(a,1);if(_!==null){var T=Gn();ss(_,a,1,T)}}),Rg(a,1)}},ip=function(a){if(a.tag===13){var u=si(a,134217728);if(u!==null){var y=Gn();ss(u,a,134217728,y)}Rg(a,134217728)}},d1=function(a){if(a.tag===13){var u=Qi(a),y=si(a,u);if(y!==null){var _=Gn();ss(y,a,u,_)}Rg(a,u)}},f1=function(){return Ct},h1=function(a,u){var y=Ct;try{return Ct=a,u()}finally{Ct=y}},_c=function(a,u,y){switch(u){case"input":if(He(a,y),u=y.name,y.type==="radio"&&u!=null){for(y=a;y.parentNode;)y=y.parentNode;for(y=y.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<y.length;u++){var _=y[u];if(_!==a&&_.form===a.form){var T=Xd(_);if(!T)throw Error(n(90));be(_),He(_,T)}}}break;case"textarea":je(a,y);break;case"select":u=y.value,u!=null&&J(a,!!y.multiple,u,!1)}},cn=_g,Rn=Ko;var JL={usingClientEntryPoint:!1,Events:[Wc,rl,Xd,ct,Kt,_g]},ou={findFiberByHostInstance:qo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},QL={bundleType:ou.bundleType,version:ou.version,rendererPackageName:ou.rendererPackageName,rendererConfig:ou.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=n1(a),a===null?null:a.stateNode},findFiberByHostInstance:ou.findFiberByHostInstance||YL,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 Mf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mf.isDisabled&&Mf.supportsFiber)try{Pd=Mf.inject(QL),Ns=Mf}catch{}}return ir.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JL,ir.createPortal=function(a,u){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dg(u))throw Error(n(200));return GL(a,u,null,y)},ir.createRoot=function(a,u){if(!Dg(a))throw Error(n(299));var y=!1,_="",T=TN;return u!=null&&(u.unstable_strictMode===!0&&(y=!0),u.identifierPrefix!==void 0&&(_=u.identifierPrefix),u.onRecoverableError!==void 0&&(T=u.onRecoverableError)),u=Og(a,1,!1,null,null,y,!1,_,T),a[ei]=u.current,$c(a.nodeType===8?a.parentNode:a),new Pg(u)},ir.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var u=a._reactInternals;if(u===void 0)throw typeof a.render=="function"?Error(n(188)):(a=Object.keys(a).join(","),Error(n(268,a)));return a=n1(u),a=a===null?null:a.stateNode,a},ir.flushSync=function(a){return Ko(a)},ir.hydrate=function(a,u,y){if(!If(u))throw Error(n(200));return Lf(null,a,u,!0,y)},ir.hydrateRoot=function(a,u,y){if(!Dg(a))throw Error(n(405));var _=y!=null&&y.hydratedSources||null,T=!1,M="",z=TN;if(y!=null&&(y.unstable_strictMode===!0&&(T=!0),y.identifierPrefix!==void 0&&(M=y.identifierPrefix),y.onRecoverableError!==void 0&&(z=y.onRecoverableError)),u=EN(u,null,a,1,y??null,T,!1,M,z),a[ei]=u.current,$c(a),_)for(a=0;a<_.length;a++)y=_[a],T=y._getVersion,T=T(y._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[y,T]:u.mutableSourceEagerHydrationData.push(y,T);return new Df(u)},ir.render=function(a,u,y){if(!If(u))throw Error(n(200));return Lf(null,a,u,!1,y)},ir.unmountComponentAtNode=function(a){if(!If(a))throw Error(n(40));return a._reactRootContainer?(Ko(function(){Lf(null,null,a,!1,function(){a._reactRootContainer=null,a[ei]=null})}),!0):!1},ir.unstable_batchedUpdates=_g,ir.unstable_renderSubtreeIntoContainer=function(a,u,y,_){if(!If(y))throw Error(n(200));if(a==null||a._reactInternals===void 0)throw Error(n(38));return Lf(a,u,y,!1,_)},ir.version="18.3.1-next-f1338f8080-20240426",ir}var BN;function zb(){if(BN)return Fg.exports;BN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Fg.exports=a5(),Fg.exports}var UN;function l5(){if(UN)return Uf;UN=1;var e=zb();return Uf.createRoot=e.createRoot,Uf.hydrateRoot=e.hydrateRoot,Uf}var c5=l5();const u5=dm(c5),d5=20,f5=1e6,yi={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let qg=0;function h5(){return qg=(qg+1)%Number.MAX_VALUE,qg.toString()}
40const Vg=new Map,qN=e=>{if(Vg.has(e))return;const t=setTimeout(()=>{Vg.delete(e),Au({type:yi.REMOVE_TOAST,toastId:e})},f5);Vg.set(e,t)},m5=(e,t)=>{switch(t.type){case yi.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,d5)};case yi.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case yi.DISMISS_TOAST:{const{toastId:n}=t;return n?qN(n):e.toasts.forEach(s=>{qN(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,open:!1}:s)}}case yi.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},fh=[];let hh={toasts:[]};function Au(e){hh=m5(hh,e),fh.forEach(t=>{t(hh)})}function p5({...e}){const t=h5(),n=i=>Au({type:yi.UPDATE_TOAST,toast:{...i,id:t}}),s=()=>Au({type:yi.DISMISS_TOAST,toastId:t});return Au({type:yi.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:i=>{i||s()}}}),{id:t,dismiss:s,update:n}}function g5(){const[e,t]=E.useState(hh);return E.useEffect(()=>(fh.push(t),()=>{const n=fh.indexOf(t);n>-1&&fh.splice(n,1)}),[e]),{...e,toast:p5,dismiss:n=>Au({type:yi.DISMISS_TOAST,toastId:n})}}function MT(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=MT(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function FT(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=MT(e))&&(s&&(s+=" "),s+=t);return s}const VN=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,$N=FT,hm=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return $N(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,l=Object.keys(i).map(h=>{const p=n==null?void 0:n[h],f=o==null?void 0:o[h];if(p===null)return null;const m=VN(p)||VN(f);return i[h][m]}),c=n&&Object.entries(n).reduce((h,p)=>{let[f,m]=p;return m===void 0||(h[f]=m),h},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((h,p)=>{let{class:f,className:m,...g}=p;return Object.entries(g).every(j=>{let[b,x]=j;return Array.isArray(x)?x.includes({...o,...c}[b]):{...o,...c}[b]===x})?[...h,f,m]:h},[]);return $N(e,l,d,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.475.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const y5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),BT=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var x5={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"};/**
51 * @license lucide-react v0.475.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const v5=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:i="",children:o,iconNode:l,...c},d)=>E.createElement("svg",{ref:d,...x5,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:BT("lucide",i),...c},[...l.map(([h,p])=>E.createElement(h,p)),...Array.isArray(o)?o:[o]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const Oe=(e,t)=>{const n=E.forwardRef(({className:s,...i},o)=>E.createElement(v5,{ref:o,iconNode:t,className:BT(`lucide-${y5(e)}`,s),...i}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const b5=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],mh=Oe("ArchiveRestore",b5);/**
66 * @license lucide-react v0.475.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const w5=[["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"}]],Is=Oe("Archive",w5);/**
71 * @license lucide-react v0.475.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const j5=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],UT=Oe("ArrowDown",j5);/**
76 * @license lucide-react v0.475.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const N5=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],oc=Oe("ArrowLeft",N5);/**
81 * @license lucide-react v0.475.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const S5=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Al=Oe("ArrowRight",S5);/**
86 * @license lucide-react v0.475.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const _5=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],qT=Oe("ArrowUp",_5);/**
91 * @license lucide-react v0.475.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const k5=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],E5=Oe("Award",k5);/**
96 * @license lucide-react v0.475.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const C5=[["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"}]],T5=Oe("BadgeDollarSign",C5);/**
101 * @license lucide-react v0.475.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const A5=[["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"}]],VT=Oe("BookOpen",A5);/**
106 * @license lucide-react v0.475.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const O5=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}
110],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],zN=Oe("BrainCircuit",O5);/**
111 * @license lucide-react v0.475.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const R5=[["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"}]],Gr=Oe("Briefcase",R5);/**
116 * @license lucide-react v0.475.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const P5=[["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"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],ka=Oe("Building2",P5);/**
121 * @license lucide-react v0.475.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const D5=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]],I5=Oe("Building",D5);/**
126 * @license lucide-react v0.475.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const L5=[["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"}]],$T=Oe("Calendar",L5);/**
131 * @license lucide-react v0.475.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const M5=[["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"}]],F5=Oe("ChartColumn",M5);/**
136 * @license lucide-react v0.475.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const B5=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ea=Oe("Check",B5);/**
141 * @license lucide-react v0.475.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const U5=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ca=Oe("ChevronDown",U5);/**
146 * @license lucide-react v0.475.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const q5=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],zT=Oe("ChevronUp",q5);/**
151 * @license lucide-react v0.475.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const V5=[["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"}]],Po=Oe("CircleAlert",V5);/**
156 * @license lucide-react v0.475.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const $5=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ta=Oe("CircleCheckBig",$5);/**
161 * @license lucide-react v0.475.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const z5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Uu=Oe("CircleCheck",z5);/**
166 * @license lucide-react v0.475.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const H5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],W5=Oe("CircleStop",H5);/**
171 * @license lucide-react v0.475.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const G5=[["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"}]],yo=Oe("CircleX",G5);/**
176 * @license lucide-react v0.475.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const Y5=[["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"}]],HT=Oe("ClipboardList",Y5);/**
181 * @license lucide-react v0.475.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const K5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],WT=Oe("Clock",K5);/**
186 * @license lucide-react v0.475.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const J5=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],Q5=Oe("CloudUpload",J5);/**
191 * @license lucide-react v0.475.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const X5=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],vu=Oe("Cloud",X5);/**
196 * @license lucide-react v0.475.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const Z5=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],HN=Oe("Code",Z5);/**
201 * @license lucide-react v0.475.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const eM=[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]],GT=Oe("Cog",eM);/**
206 * @license lucide-react v0.475.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const tM=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],YT=Oe("Compass",tM);/**
211 * @license lucide-react v0.475.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const nM=[["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"}]],rM=Oe("Copy",nM);/**
216 * @license lucide-react v0.475.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const sM=[["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"}]],iM=Oe("DollarSign",sM);/**
221 * @license lucide-react v0.475.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const oM=[["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"}]],Yr=Oe("Download",oM);/**
226 * @license lucide-react v0.475.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const aM=[["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"}]],lM=Oe("ExternalLink",aM);/**
231 * @license lucide-react v0.475.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const cM=[["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"}]],Aa=Oe("Eye",cM);/**
236 * @license lucide-react v0.475.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const uM=[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]],Hb=Oe("Factory",uM);/**
241 * @license lucide-react v0.475.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const dM=[["path",{d:"M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z",key:"484a7f"}],["path",{d:"M12 12v.01",key:"u5ubse"}]],fM=Oe("Fan",dM);/**
246 * @license lucide-react v0.475.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const hM=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3 15 2 2 4-4",key:"1lhrkk"}]],mM=Oe("FileCheck2",hM);/**
251 * @license lucide-react v0.475.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const pM=[["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"}]],WN=Oe("FileSpreadsheet",pM);/**
256 * @license lucide-react v0.475.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const gM=[["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"}]],Kr=Oe("FileText",gM);/**
261 * @license lucide-react v0.475.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const yM=[["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"}]],xM=Oe("FolderTree",yM);/**
266 * @license lucide-react v0.475.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const vM=[["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"}]],bM=Oe("GripVertical",vM);/**
271 * @license lucide-react v0.475.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const wM=[["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"}]],KT=Oe("Handshake",wM);/**
276 * @license lucide-react v0.475.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const jM=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["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"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}
280]],GN=Oe("HardDrive",jM);/**
281 * @license lucide-react v0.475.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const NM=[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]],JT=Oe("HardHat",NM);/**
286 * @license lucide-react v0.475.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const SM=[["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"}]],pd=Oe("HeartPulse",SM);/**
291 * @license lucide-react v0.475.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const _M=[["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"}]],kM=Oe("Heart",_M);/**
296 * @license lucide-react v0.475.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const EM=[["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"}]],CM=Oe("ImagePlus",EM);/**
301 * @license lucide-react v0.475.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const TM=[["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"}]],AM=Oe("Layers",TM);/**
306 * @license lucide-react v0.475.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const OM=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],RM=Oe("LayoutDashboard",OM);/**
311 * @license lucide-react v0.475.0 - ISC
312 *
313 * This source code is licensed under the ISC license.
314 * See the LICENSE file in the root directory of this source tree.
315 */const PM=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],QT=Oe("Lightbulb",PM);/**
316 * @license lucide-react v0.475.0 - ISC
317 *
318 * This source code is licensed under the ISC license.
319 * See the LICENSE file in the root directory of this source tree.
320 */const DM=[["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"}]],IM=Oe("Link2",DM);/**
321 * @license lucide-react v0.475.0 - ISC
322 *
323 * This source code is licensed under the ISC license.
324 * See the LICENSE file in the root directory of this source tree.
325 */const LM=[["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"}]],XT=Oe("Linkedin",LM);/**
326 * @license lucide-react v0.475.0 - ISC
327 *
328 * This source code is licensed under the ISC license.
329 * See the LICENSE file in the root directory of this source tree.
330 */const MM=[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],FM=Oe("ListPlus",MM);/**
331 * @license lucide-react v0.475.0 - ISC
332 *
333 * This source code is licensed under the ISC license.
334 * See the LICENSE file in the root directory of this source tree.
335 */const BM=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],mm=Oe("LoaderCircle",BM);/**
336 * @license lucide-react v0.475.0 - ISC
337 *
338 * This source code is licensed under the ISC license.
339 * See the LICENSE file in the root directory of this source tree.
340 */const UM=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ac=Oe("Lock",UM);/**
341 * @license lucide-react v0.475.0 - ISC
342 *
343 * This source code is licensed under the ISC license.
344 * See the LICENSE file in the root directory of this source tree.
345 */const qM=[["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"}]],Wb=Oe("LogOut",qM);/**
346 * @license lucide-react v0.475.0 - ISC
347 *
348 * This source code is licensed under the ISC license.
349 * See the LICENSE file in the root directory of this source tree.
350 */const VM=[["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"}]],ko=Oe("Mail",VM);/**
351 * @license lucide-react v0.475.0 - ISC
352 *
353 * This source code is licensed under the ISC license.
354 * See the LICENSE file in the root directory of this source tree.
355 */const $M=[["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"}]],$a=Oe("MapPin",$M);/**
356 * @license lucide-react v0.475.0 - ISC
357 *
358 * This source code is licensed under the ISC license.
359 * See the LICENSE file in the root directory of this source tree.
360 */const zM=[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]],za=Oe("Medal",zM);/**
361 * @license lucide-react v0.475.0 - ISC
362 *
363 * This source code is licensed under the ISC license.
364 * See the LICENSE file in the root directory of this source tree.
365 */const HM=[["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"}]],WM=Oe("Menu",HM);/**
366 * @license lucide-react v0.475.0 - ISC
367 *
368 * This source code is licensed under the ISC license.
369 * See the LICENSE file in the root directory of this source tree.
370 */const GM=[["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"}]],bu=Oe("MessageSquare",GM);/**
371 * @license lucide-react v0.475.0 - ISC
372 *
373 * This source code is licensed under the ISC license.
374 * See the LICENSE file in the root directory of this source tree.
375 */const YM=[["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"}]],wa=Oe("Pencil",YM);/**
376 * @license lucide-react v0.475.0 - ISC
377 *
378 * This source code is licensed under the ISC license.
379 * See the LICENSE file in the root directory of this source tree.
380 */const KM=[["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"}]],pm=Oe("Phone",KM);/**
381 * @license lucide-react v0.475.0 - ISC
382 *
383 * This source code is licensed under the ISC license.
384 * See the LICENSE file in the root directory of this source tree.
385 */const JM=[["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-.
3851-.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"}]],kv=Oe("Plane",JM);/**
386 * @license lucide-react v0.475.0 - ISC
387 *
388 * This source code is licensed under the ISC license.
389 * See the LICENSE file in the root directory of this source tree.
390 */const QM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],xs=Oe("Plus",QM);/**
391 * @license lucide-react v0.475.0 - ISC
392 *
393 * This source code is licensed under the ISC license.
394 * See the LICENSE file in the root directory of this source tree.
395 */const XM=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],ZM=Oe("Power",XM);/**
396 * @license lucide-react v0.475.0 - ISC
397 *
398 * This source code is licensed under the ISC license.
399 * See the LICENSE file in the root directory of this source tree.
400 */const e6=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],gd=Oe("Printer",e6);/**
401 * @license lucide-react v0.475.0 - ISC
402 *
403 * This source code is licensed under the ISC license.
404 * See the LICENSE file in the root directory of this source tree.
405 */const t6=[["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"}]],Ql=Oe("RefreshCw",t6);/**
406 * @license lucide-react v0.475.0 - ISC
407 *
408 * This source code is licensed under the ISC license.
409 * See the LICENSE file in the root directory of this source tree.
410 */const n6=[["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"}]],ZT=Oe("Save",n6);/**
411 * @license lucide-react v0.475.0 - ISC
412 *
413 * This source code is licensed under the ISC license.
414 * See the LICENSE file in the root directory of this source tree.
415 */const r6=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Ha=Oe("Search",r6);/**
416 * @license lucide-react v0.475.0 - ISC
417 *
418 * This source code is licensed under the ISC license.
419 * See the LICENSE file in the root directory of this source tree.
420 */const s6=[["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"}]],$g=Oe("Send",s6);/**
421 * @license lucide-react v0.475.0 - ISC
422 *
423 * This source code is licensed under the ISC license.
424 * See the LICENSE file in the root directory of this source tree.
425 */const i6=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],eA=Oe("Server",i6);/**
426 * @license lucide-react v0.475.0 - ISC
427 *
428 * This source code is licensed under the ISC license.
429 * See the LICENSE file in the root directory of this source tree.
430 */const o6=[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],a6=Oe("Settings2",o6);/**
431 * @license lucide-react v0.475.0 - ISC
432 *
433 * This source code is licensed under the ISC license.
434 * See the LICENSE file in the root directory of this source tree.
435 */const l6=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],c6=Oe("Settings",l6);/**
436 * @license lucide-react v0.475.0 - ISC
437 *
438 * This source code is licensed under the ISC license.
439 * See the LICENSE file in the root directory of this source tree.
440 */const u6=[["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
440y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],gm=Oe("ShieldCheck",u6);/**
441 * @license lucide-react v0.475.0 - ISC
442 *
443 * This source code is licensed under the ISC license.
444 * See the LICENSE file in the root directory of this source tree.
445 */const d6=[["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"}]],Si=Oe("Shield",d6);/**
446 * @license lucide-react v0.475.0 - ISC
447 *
448 * This source code is licensed under the ISC license.
449 * See the LICENSE file in the root directory of this source tree.
450 */const f6=[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]],tA=Oe("Shuffle",f6);/**
451 * @license lucide-react v0.475.0 - ISC
452 *
453 * This source code is licensed under the ISC license.
454 * See the LICENSE file in the root directory of this source tree.
455 */const h6=[["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"}]],qu=Oe("Star",h6);/**
456 * @license lucide-react v0.475.0 - ISC
457 *
458 * This source code is licensed under the ISC license.
459 * See the LICENSE file in the root directory of this source tree.
460 */const m6=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],p6=Oe("Tag",m6);/**
461 * @license lucide-react v0.475.0 - ISC
462 *
463 * This source code is licensed under the ISC license.
464 * See the LICENSE file in the root directory of this source tree.
465 */const g6=[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19",key:"1cbfv1"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z",key:"135mg7"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor",key:"5pm5xn"}]],y6=Oe("Tags",g6);/**
466 * @license lucide-react v0.475.0 - ISC
467 *
468 * This source code is licensed under the ISC license.
469 * See the LICENSE file in the root directory of this source tree.
470 */const x6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Vu=Oe("Target",x6);/**
471 * @license lucide-react v0.475.0 - ISC
472 *
473 * This source code is licensed under the ISC license.
474 * See the LICENSE file in the root directory of this source tree.
475 */const v6=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["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"}]],ws=Oe("Trash2",v6);/**
476 * @license lucide-react v0.475.0 - ISC
477 *
478 * This source code is licensed under the ISC license.
479 * See the LICENSE file in the root directory of this source tree.
480 */const b6=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],YN=Oe("TrendingUp",b6);/**
481 * @license lucide-react v0.475.0 - ISC
482 *
483 * This source code is licensed under the ISC license.
484 * See the LICENSE file in the root directory of this source tree.
485 */const w6=[["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"}]],Ev=Oe("TriangleAlert",w6);/**
486 * @license lucide-react v0.475.0 - ISC
487 *
488 * This source code is licensed under the ISC license.
489 * See the LICENSE file in the root directory of this source tree.
490 */const j6=[["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"}]],yd=Oe("Upload",j6);/**
491 * @license lucide-react v0.475.0 - ISC
492 *
493 * This source code is licensed under the ISC license.
494 * See the LICENSE file in the root directory of this source tree.
495 */const N6=[["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"}
vendor: 4,156 bytes, lines 495-525
495],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]],Cv=Oe("UserCheck",N6);/**
496 * @license lucide-react v0.475.0 - ISC
497 *
498 * This source code is licensed under the ISC license.
499 * See the LICENSE file in the root directory of this source tree.
500 */const S6=[["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:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],nA=Oe("UserMinus",S6);/**
501 * @license lucide-react v0.475.0 - ISC
502 *
503 * This source code is licensed under the ISC license.
504 * See the LICENSE file in the root directory of this source tree.
505 */const _6=[["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"}]],ja=Oe("UserPlus",_6);/**
506 * @license lucide-react v0.475.0 - ISC
507 *
508 * This source code is licensed under the ISC license.
509 * See the LICENSE file in the root directory of this source tree.
510 */const k6=[["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"}]],wn=Oe("Users",k6);/**
511 * @license lucide-react v0.475.0 - ISC
512 *
513 * This source code is licensed under the ISC license.
514 * See the LICENSE file in the root directory of this source tree.
515 */const E6=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],rA=Oe("Wrench",E6);/**
516 * @license lucide-react v0.475.0 - ISC
517 *
518 * This source code is licensed under the ISC license.
519 * See the LICENSE file in the root directory of this source tree.
520 */const C6=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ar=Oe("X",C6);/**
521 * @license lucide-react v0.475.0 - ISC
522 *
523 * This source code is licensed under the ISC license.
524 * See the LICENSE file in the root directory of this source tree.
525 */const T6=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Oa=Oe("Zap",T6),A6=(e,t)=>{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},O6=(e,t)=>({classGroupId:e,validator:t}),sA=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Rh="-",KN=[],R6="arbitrary..",P6=e=>{const t=I6(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return D6(l);const c=l.split(Rh),d=c[0]===""&&c.length>1?1:0;return iA(c,d,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const d=s[l],h=n[l];return d?h?A6(h,d):d:h||KN}return n[l]||KN}}},iA=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const h=iA(e,t+1,o);if(h)return h}const l=n.validators;if(l===null)return;const c=t===0?e.join(Rh):e.slice(t).join(Rh),d=l.length;for(let h=0;h<d;h++){const p=l[h];if(p.validator(c))return p.classGroupId}},D6=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?R6+s:void 0})(),I6=e=>{const{theme:t,classGroups:n}=e;return L6(n,t)},L6=(e,t)=>{const n=sA();for(const s in e){const i=e[s];Gb(i,n,s,t)}return n},Gb=(e,t,n,s)=>{const i=e.length;for(let o=0;o<i;o++){const l=e[o];M6(l,t,n,s)}},M6=(e,t,n,s)=>{if(typeof e=="string"){F6(e,t,n);return}if(typeof e=="function"){B6(e,t,n,s);return}U6(e,t,n,s)},F6=(e,t,n)=>{const s=e===""?t:oA(t,e);s.classGroupId=n},B6=(e,t,n,s)=>{if(q6(e)){Gb(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(O6(n,e))},U6=(e,t,n,s)=>{const i=Object.entries(e),o=i.length;for(let l=0;l<o;l++){const[c,d]=i[l];Gb(d,oA(t,c),n,s)}},oA=(e,t)=>{let n=e;const s=t.split(Rh),i=s.length;for(let o=0;o<i;o++){const l=s[o];let c=n.nextPart.get(l);c||(c=sA(),n.nextPart.set(l,c)),n=c}return n},q6=e=>
vendor: 5,411 bytes, line 525
525"isThemeGetter"in e&&e.isThemeGetter===!0,V6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const i=(o,l)=>{n[o]=l,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=s[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},Tv="!",JN=":",$6=[],QN=(e,t,n,s,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:i}),z6=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=i=>{const o=[];let l=0,c=0,d=0,h;const p=i.length;for(let b=0;b<p;b++){const x=i[b];if(l===0&&c===0){if(x===JN){o.push(i.slice(d,b)),d=b+1;continue}if(x==="/"){h=b;continue}}x==="["?l++:x==="]"?l--:x==="("?c++:x===")"&&c--}const f=o.length===0?i:i.slice(d);let m=f,g=!1;f.endsWith(Tv)?(m=f.slice(0,-1),g=!0):f.startsWith(Tv)&&(m=f.slice(1),g=!0);const j=h&&h>d?h-d:void 0;return QN(o,g,m,j)};if(t){const i=t+JN,o=s;s=l=>l.startsWith(i)?o(l.slice(i.length)):QN($6,!1,l,void 0,!0)}if(n){const i=s;s=o=>n({className:o,parseClassName:i})}return s},H6=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],c=l[0]==="[",d=t.has(l);c||d?(i.length>0&&(i.sort(),s.push(...i),i=[]),s.push(l)):i.push(l)}return i.length>0&&(i.sort(),s.push(...i)),s}},W6=e=>({cache:V6(e.cacheSize),parseClassName:z6(e),sortModifiers:H6(e),...P6(e)}),G6=/\s+/,Y6=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:i,sortModifiers:o}=t,l=[],c=e.trim().split(G6);let d="";for(let h=c.length-1;h>=0;h-=1){const p=c[h],{isExternal:f,modifiers:m,hasImportantModifier:g,baseClassName:j,maybePostfixModifierPosition:b}=n(p);if(f){d=p+(d.length>0?" "+d:d);continue}let x=!!b,v=s(x?j.substring(0,b):j);if(!v){if(!x){d=p+(d.length>0?" "+d:d);continue}if(v=s(j),!v){d=p+(d.length>0?" "+d:d);continue}x=!1}const N=m.length===0?"":m.length===1?m[0]:o(m).join(":"),S=g?N+Tv:N,w=S+v;if(l.indexOf(w)>-1)continue;l.push(w);const k=i(v,x);for(let O=0;O<k.length;++O){const C=k[O];l.push(S+C)}d=p+(d.length>0?" "+d:d)}return d},K6=(...e)=>{let t=0,n,s,i="";for(;t<e.length;)(n=e[t++])&&(s=aA(n))&&(i&&(i+=" "),i+=s);return i},aA=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=aA(e[s]))&&(n&&(n+=" "),n+=t);return n},J6=(e,...t)=>{let n,s,i,o;const l=d=>{const h=t.reduce((p,f)=>f(p),e());return n=W6(h),s=n.cache.get,i=n.cache.set,o=c,c(d)},c=d=>{const h=s(d);if(h)return h;const p=Y6(d,n);return i(d,p),p};return o=l,(...d)=>o(K6(...d))},Q6=[],fn=e=>{const t=n=>n[e]||Q6;return t.isThemeGetter=!0,t},lA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,X6=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Z6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eF=/\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$/,tF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,to=e=>X6.test(e),ft=e=>!!e&&!Number.isNaN(Number(e)),no=e=>!!e&&Number.isInteger(Number(e)),zg=e=>e.endsWith("%")&&ft(e.slice(0,-1)),li=e=>Z6.test(e),uA=()=>!0,sF=e=>eF.test(e)&&!tF.test(e),Yb=()=>!1,iF=e=>nF.test(e),oF=e=>rF.test(e),aF=e=>!Ge(e)&&!Ke(e),lF=e=>Do(e,hA,Yb),Ge=e=>lA.test(e),Zo=e=>Do(e,mA,sF),XN=e=>Do(e,gF,ft),cF=e=>Do(e,gA,uA),uF=e=>Do(e,pA,Yb),ZN=e=>Do(e,dA,Yb),dF=e=>Do(e,fA,oF),qf=e=>Do(e,yA,iF),Ke=e=>cA.test(e),lu=e=>Wa(e,mA),fF=e=>Wa(e,pA),eS=e=>Wa(e,dA),hF=e=>Wa(e,hA),mF=e=>Wa(e,fA),Vf=e=>Wa(e,yA,!0),pF=e=>Wa(e,gA,!0),Do=(e,t,n)=>{const s=lA.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},Wa=(e,t,n=!1)=>{const s=cA.exec(e);return s?s[1]?t(s[1]):n:!1},dA=e=>e==="position"||e==="percentage",fA=e=>e==="image"||e==="url",hA=e=>e==="length"||e==="size"||e==="bg-size",mA=e=>e==="length",gF=e=>e==="number",pA=e=>e==="family-name",gA=e=>e==="number"||e==="weight",yA=e=>e==="shadow",yF=()=>{const e=fn("color"),t=fn("font"),n=fn("text"),s=fn("font-weight"),i=fn("tracking"),o=fn("leading"),l=fn("breakpoint"),c=fn("container"),d=fn("spacing"),h=fn("radius"),p=fn("shadow"),f=fn("inset-shadow"),m=fn("text-shadow"),g=fn("drop-shadow"),j=fn("blur"),b=fn("perspective"),x=fn("aspect"),v=fn("ease"),N=fn("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),Ke,Ge],O=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],A=()=>[Ke,Ge,d],B=()=>[to,"full","auto",...A()],I=()=>[no,"none","subgrid",Ke,Ge],L=()=>["auto",{span:["full",no,Ke,Ge]},no,Ke,Ge],D=()=>[no,"auto",Ke,Ge],R=()=>["auto","min","max","fr",Ke,Ge],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...A()],K=()=>[to,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],Q=()=>[to,"screen","full","dvw","lvw","svw","min","max","fit",...A()],q=()=>[to,"screen","full","lh","dvh","lvh","svh","min","max","fit",...A()],F=()=>[e,Ke,Ge],P=()=>[...w(),eS,ZN,{position:[Ke,Ge]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>
vendor: 7,212 bytes, line 525
525["auto","cover","contain",hF,lF,{size:[Ke,Ge]}],Z=()=>[zg,lu,Zo],X=()=>["","none","full",h,Ke,Ge],H=()=>["",ft,lu,Zo],G=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[ft,zg,eS,ZN],ue=()=>["","none",j,Ke,Ge],ye=()=>["none",ft,Ke,Ge],be=()=>["none",ft,Ke,Ge],Te=()=>[ft,Ke,Ge],ie=()=>[to,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[li],breakpoint:[li],color:[uA],container:[li],"drop-shadow":[li],ease:["in","out","in-out"],font:[aF],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[li],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[li],shadow:[li],spacing:["px",ft],text:[li],"text-shadow":[li],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",to,Ge,Ke,x]}],container:["container"],columns:[{columns:[ft,Ge,Ke,c]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:k()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[no,"auto",Ke,Ge]}],basis:[{basis:[to,"full","auto",c,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ft,to,"auto","initial","none",Ge]}],grow:[{grow:["",ft,Ke,Ge]}],shrink:[{shrink:["",ft,Ke,Ge]}],order:[{order:[no,"first","last","none",Ke,Ge]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pbs:[{pbs:A()}],pbe:[{pbe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mbs:[{mbs:Y()}],mbe:[{mbe:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...q()]}],"min-block-size":[{"min-block":["auto",...q()]}],"max-block-size":[{"max-block":["none",...q()]}],w:[{w:[c,"screen",...K()]}],"min-w":[{"min-w":[c,"screen","none",...K()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,lu,Zo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,pF,cF]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zg,Ge]}],"font-family":[{font:[fF,uF,t]}],"font-features":[{"font-features":[Ge]}],"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:[i,Ke,Ge]}],"line-clamp":[{"line-clamp":[ft,"none",Ke,XN]}],leading:[{leading:[o,...A()]}],"list-image":[{"list-image":["none",Ke,Ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ke,Ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:[ft,"from-font","auto",Ke,Zo]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[ft,"auto",Ke,Ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ke,Ge]}],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",Ke,Ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},no,Ke,Ge],radial:["",Ke,Ge],conic:[no,Ke,Ge]},mF,dF]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:Z()}
vendor: 7,367 bytes, line 525
525],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-bs":[{"border-bs":H()}],"border-w-be":[{"border-be":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...G(),"hidden","none"]}],"divide-style":[{divide:[...G(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...G(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ft,Ke,Ge]}],"outline-w":[{outline:["",ft,lu,Zo]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",p,Vf,qf]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",f,Vf,qf]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[ft,Zo]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",m,Vf,qf]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[ft,Ke,Ge]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"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":[ft]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Ke,Ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[ft]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ke,Ge]}],filter:[{filter:["","none",Ke,Ge]}],blur:[{blur:ue()}],brightness:[{brightness:[ft,Ke,Ge]}],contrast:[{contrast:[ft,Ke,Ge]}],"drop-shadow":[{"drop-shadow":["","none",g,Vf,qf]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",ft,Ke,Ge]}],"hue-rotate":[{"hue-rotate":[ft,Ke,Ge]}],invert:[{invert:["",ft,Ke,Ge]}],saturate:[{saturate:[ft,Ke,Ge]}],sepia:[{sepia:["",ft,Ke,Ge]}],"backdrop-filter":[{"backdrop-filter":["","none",Ke,Ge]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[ft,Ke,Ge]}],"backdrop-contrast":[{"backdrop-contrast":[ft,Ke,Ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ft,Ke,Ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ft,Ke,Ge]}],"backdrop-invert":[{"backdrop-invert":["",ft,Ke,Ge]}],"backdrop-opacity":[{"backdrop-opacity":[ft,Ke,Ge]}],"backdrop-saturate":[{"backdrop-saturate":[ft,Ke,Ge]}],"backdrop-sepia":[{"backdrop-sepia":["",ft,Ke,Ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ke,Ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ft,"initial",Ke,Ge]}],ease:[{ease:["linear","initial",v,Ke,Ge]}],delay:[{delay:[ft,Ke,Ge]}],animate:[{animate:["none",N,Ke,Ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,Ke,Ge]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[Ke,Ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}
vendor: 6,955 bytes, line 525
525],"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",Ke,Ge]}],"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":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mbs":[{"scroll-mbs":A()}],"scroll-mbe":[{"scroll-mbe":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pbs":[{"scroll-pbs":A()}],"scroll-pbe":[{"scroll-pbe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",Ke,Ge]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[ft,lu,Zo,XN]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},xF=J6(yF);function ut(...e){return xF(FT(e))}const xA=E.forwardRef(({...e},t)=>r.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));xA.displayName="ToastProvider";const vA=E.forwardRef(({...e},t)=>r.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));vA.displayName="ToastViewport";const vF=hm("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),bA=E.forwardRef(({className:e,variant:t,...n},s)=>r.jsx("div",{ref:s,className:ut(vF({variant:t}),e),...n}));bA.displayName="Toast";const bF=E.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:ut("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));bF.displayName="ToastAction";const wA=E.forwardRef(({className:e,...t},n)=>r.jsx("button",{ref:n,className:ut("absolute right-2 top-2 rounded-md p-1 text-foreground
525/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:r.jsx(Ar,{className:"h-4 w-4"})}));wA.displayName="ToastClose";const jA=E.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:ut("text-sm font-semibold",e),...t}));jA.displayName="ToastTitle";const NA=E.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:ut("text-sm opacity-90",e),...t}));NA.displayName="ToastDescription";function wF(){const{toasts:e}=g5();return r.jsxs(xA,{children:[e.map(function({id:t,title:n,description:s,action:i,...o}){return r.jsxs(bA,{...o,children:[r.jsxs("div",{className:"grid gap-1",children:[n&&r.jsx(jA,{children:n}),s&&r.jsx(NA,{children:s})]}),i,r.jsx(wA,{})]},t)}),r.jsx(vA,{})]})}var Ga=zb();const Kb=dm(Ga);function jF(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const NF=e=>{switch(e){case"success":return kF;case"info":return CF;case"warning":return EF;case"error":return TF;default:return null}},SF=Array(12).fill(0),_F=({visible:e,className:t})=>ve.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ve.createElement("div",{className:"sonner-spinner"},SF.map((n,s)=>ve.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),kF=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ve.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"})),EF=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ve.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"})),CF=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ve.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"})),TF=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ve.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"})),AF=ve.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"},ve.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ve.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),OF=()=>{const[e,t]=ve.useState(document.hidden);return ve.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Av=1;class RF{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:s,...i}=t,o=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Av++,l=this.toasts.find(d=>d.id===o),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),l?this.toasts=this.toasts.map(d=>d.id===o?(this.publish({...d,...t,id:o,title:s}
vendor: 3,209 bytes, line 525
525),{...d,...t,id:o,dismissible:c,title:s}):d):this.addToast({title:s,...i,dismissible:c,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(s=>s({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let s;n.loading!==void 0&&(s=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let o=s!==void 0,l;const c=i.then(async h=>{if(l=["resolve",h],ve.isValidElement(h))o=!1,this.create({id:s,type:"default",message:h});else if(DF(h)&&!h.ok){o=!1;const f=typeof n.error=="function"?await n.error(`HTTP error! status: ${h.status}`):n.error,m=typeof n.description=="function"?await n.description(`HTTP error! status: ${h.status}`):n.description,j=typeof f=="object"&&!ve.isValidElement(f)?f:{message:f};this.create({id:s,type:"error",description:m,...j})}else if(h instanceof Error){o=!1;const f=typeof n.error=="function"?await n.error(h):n.error,m=typeof n.description=="function"?await n.description(h):n.description,j=typeof f=="object"&&!ve.isValidElement(f)?f:{message:f};this.create({id:s,type:"error",description:m,...j})}else if(n.success!==void 0){o=!1;const f=typeof n.success=="function"?await n.success(h):n.success,m=typeof n.description=="function"?await n.description(h):n.description,j=typeof f=="object"&&!ve.isValidElement(f)?f:{message:f};this.create({id:s,type:"success",description:m,...j})}}).catch(async h=>{if(l=["reject",h],n.error!==void 0){o=!1;const p=typeof n.error=="function"?await n.error(h):n.error,f=typeof n.description=="function"?await n.description(h):n.description,g=typeof p=="object"&&!ve.isValidElement(p)?p:{message:p};this.create({id:s,type:"error",description:f,...g})}}).finally(()=>{o&&(this.dismiss(s),s=void 0),n.finally==null||n.finally.call(n)}),d=()=>new Promise((h,p)=>c.then(()=>l[0]==="reject"?p(l[1]):h(l[1])).catch(p));return typeof s!="string"&&typeof s!="number"?{unwrap:d}:Object.assign(s,{unwrap:d})},this.custom=(t,n)=>{const s=(n==null?void 0:n.id)||Av++;return this.create({jsx:t(s),id:s,...n}),s},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const lr=new RF,PF=(e,t)=>{const n=(t==null?void 0:t.id)||Av++;return lr.addToast({title:e,...t,id:n}),n},DF=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",IF=PF,LF=()=>lr.toasts,MF=()=>lr.getActiveToasts(),Ne=Object.assign(IF,{success:lr.success,info:lr.info,warning:lr.warning,error:lr.error,custom:lr.custom,message:lr.message,promise:lr.promise,dismiss:lr.dismiss,loading:lr.loading},{getHistory:LF,getToasts:MF});jF
vendor: 14,873 bytes, line 525
525("[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;--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}@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 
vendor: 544 bytes, line 525
525$f(e){return e.label!==void 0}const FF=3,BF="24px",UF="16px",tS=4e3,qF=356,VF=14,$F=45,zF=200;function Cs(...e){return e.filter(Boolean).join(" ")}function HF(e){const[t,n]=e.split("-"),s=[];return t&&s.push(t),n&&s.push(n),s}const WF=e=>{var t,n,s,i,o,l,c,d,h;const{invert:p,toast:f,unstyled:m,interacting:g,setHeights:j,visibleToasts:b,heights:x,index:v,toasts:N,expanded:S,removeToast:w,defaultRichColors:k,closeButton:O,style:C,cancelButtonStyle:A,actionButtonStyle:B,className:I="",descriptionClassName:L="",duration:D,position:R,gap:U,exp
vendor: 11,498 bytes, line 525
525andByDefault:$,classNames:Y,icons:K,closeButtonAriaLabel:Q="Close toast"}=e,[q,F]=ve.useState(null),[P,V]=ve.useState(null),[W,Z]=ve.useState(!1),[X,H]=ve.useState(!1),[G,te]=ve.useState(!1),[re,ue]=ve.useState(!1),[ye,be]=ve.useState(!1),[Te,ie]=ve.useState(0),[De,Ye]=ve.useState(0),He=ve.useRef(f.duration||D||tS),ce=ve.useRef(null),he=ve.useRef(null),Ae=v===0,J=v+1<=b,ee=f.type,de=f.dismissible!==!1,je=f.className||"",we=f.descriptionClassName||"",_e=ve.useMemo(()=>x.findIndex(ct=>ct.toastId===f.id)||0,[x,f.id]),qe=ve.useMemo(()=>{var ct;return(ct=f.closeButton)!=null?ct:O},[f.closeButton,O]),Qe=ve.useMemo(()=>f.duration||D||tS,[f.duration,D]),ht=ve.useRef(0),at=ve.useRef(0),Dt=ve.useRef(0),_n=ve.useRef(null),[Ka,Ci]=R.split("-"),Ti=ve.useMemo(()=>x.reduce((ct,Kt,cn)=>cn>=_e?ct:ct+Kt.height,0),[x,_e]),Ai=OF(),Oi=f.invert||p,Xs=ee==="loading";at.current=ve.useMemo(()=>_e*U+Ti,[_e,Ti]),ve.useEffect(()=>{He.current=Qe},[Qe]),ve.useEffect(()=>{Z(!0)},[]),ve.useEffect(()=>{const ct=he.current;if(ct){const Kt=ct.getBoundingClientRect().height;return Ye(Kt),j(cn=>[{toastId:f.id,height:Kt,position:f.position},...cn]),()=>j(cn=>cn.filter(Rn=>Rn.toastId!==f.id))}},[j,f.id]),ve.useLayoutEffect(()=>{if(!W)return;const ct=he.current,Kt=ct.style.height;ct.style.height="auto";const cn=ct.getBoundingClientRect().height;ct.style.height=Kt,Ye(cn),j(Rn=>Rn.find(nn=>nn.toastId===f.id)?Rn.map(nn=>nn.toastId===f.id?{...nn,height:cn}:nn):[{toastId:f.id,height:cn,position:f.position},...Rn])},[W,f.title,f.description,j,f.id,f.jsx,f.action,f.cancel]);const Hn=ve.useCallback(()=>{H(!0),ie(at.current),j(ct=>ct.filter(Kt=>Kt.toastId!==f.id)),setTimeout(()=>{w(f)},zF)},[f,w,j,at]);ve.useEffect(()=>{if(f.promise&&ee==="loading"||f.duration===1/0||f.type==="loading")return;let ct;return S||g||Ai?(()=>{if(Dt.current<ht.current){const Rn=new Date().getTime()-ht.current;He.current=He.current-Rn}Dt.current=new Date().getTime()})():(()=>{He.current!==1/0&&(ht.current=new Date().getTime(),ct=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),Hn()},He.current))})(),()=>clearTimeout(ct)},[S,g,f,ee,Ai,Hn]),ve.useEffect(()=>{f.delete&&(Hn(),f.onDismiss==null||f.onDismiss.call(f,f))},[Hn,f.delete]);function _c(){var ct;if(K!=null&&K.loading){var Kt;return ve.createElement("div",{className:Cs(Y==null?void 0:Y.loader,f==null||(Kt=f.classNames)==null?void 0:Kt.loader,"sonner-loader"),"data-visible":ee==="loading"},K.loading)}return ve.createElement(_F,{className:Cs(Y==null?void 0:Y.loader,f==null||(ct=f.classNames)==null?void 0:ct.loader),visible:ee==="loading"})}const Ri=f.icon||(K==null?void 0:K[ee])||NF(ee);var Zs,kc;return ve.createElement("li",{tabIndex:0,ref:he,className:Cs(I,je,Y==null?void 0:Y.toast,f==null||(t=f.classNames)==null?void 0:t.toast,Y==null?void 0:Y.default,Y==null?void 0:Y[ee],f==null||(n=f.classNames)==null?void 0:n[ee]),"data-sonner-toast":"","data-rich-colors":(Zs=f.richColors)!=null?Zs:k,"data-styled":!(f.jsx||f.unstyled||m),"data-mounted":W,"data-promise":!!f.promise,"data-swiped":ye,"data-removed":X,"data-visible":J,"data-y-position":Ka,"data-x-position":Ci,"data-index":v,"data-front":Ae,"data-swiping":G,"data-dismissible":de,"data-type":ee,"data-invert":Oi,"data-swipe-out":re,"data-swipe-direction":P,"data-expanded":!!(S||$&&W),"data-testid":f.testId,style:{"--index":v,"--toasts-before":v,"--z-index":N.length-v,"--offset":`${X?Te:at.current}px`,"--initial-height":$?"auto":`${De}px`,...C,...f.style},onDragEnd:()=>{te(!1),F(null),_n.current=null},onPointerDown:ct=>{ct.button!==2&&(Xs||!de||(ce.current=new Date,ie(at.current),ct.target.setPointerCapture(ct.pointerId),ct.target.tagName!=="BUTTON"&&(te(!0),_n.current={x:ct.clientX,y:ct.clientY})))},onPointerUp:()=>{var ct,Kt,cn;if(re||!de)return;_n.current=null;const Rn=Number(((ct=he.current)==null?void 0:ct.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Pi=Number(((Kt=he.current)==null?void 0:Kt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),nn=new Date().getTime()-((cn=ce.current)==null?void 0:cn.getTime()),pn=q==="x"?Rn:Pi,Di=Math.abs(pn)/nn;if(Math.abs(pn)>=$F||Di>.11){ie(at.current),f.onDismiss==null||f.onDismiss.call(f,f),V(q==="x"?Rn>0?"right":"left":Pi>0?"down":"up"),Hn(),ue(!0);return}else{var kn,pr;(kn=he.current)==null||kn.style.setProperty("--swipe-amount-x","0px"),(pr=he.current)==null||pr.style.setProperty("--swipe-amount-y","0px")}be(!1),te(!1),F(null)},onPointerMove:ct=>{var Kt,cn,Rn;if(!_n.current||!de||((Kt=window.getSelection())==null?void 0:Kt.toString().length)>0)return;const nn=ct.clientY-_n.current.y,pn=ct.clientX-_n.current.x;var Di;const kn=(Di=e.swipeDirections)!=null?Di:HF(R);!q&&(Math.abs(pn)>1||Math.abs(nn)>1)&&F(Math.abs(pn)>Math.abs(nn)?"x":"y");let pr={x:0,y:0};const Ii=Pr=>1/(1.5+Math.abs(Pr)/20);if(q==="y"){if(kn.includes("top")||kn.includes("bottom"))if(kn.includes("top")&&nn<0||kn.includes("bottom")&&nn>0)pr.y=nn;else{const Pr=nn*Ii(nn);pr.y=Math.abs(Pr)<Math.abs(nn)?Pr:nn}}else if(q==="x"&&(kn.includes("left")||kn.includes("right")))if(kn.includes("left")&&pn<0||kn.includes("right")&&pn>0)pr.x=pn;else{const Pr=pn*Ii(pn);pr.x=Math.abs(Pr)<Math.abs(pn)?Pr:pn}(Math.abs(pr.x)>0||Math.abs(pr.y)>0)&&be(!0),(cn=he.current)==null||cn.style.setProperty("--swipe-amount-x",`${pr.x}px`),(Rn=he.current)==null||Rn.style.setProperty("--swipe-amount-y",`${pr.y}px`)}},qe&&!f.jsx&&ee!=="loading"?ve.createElement("button",{"aria-label":Q,"data-disabled":Xs,"data-close-button":!0,onClick:Xs||!de?()=>{}:()=>{Hn(),f.onDismiss==null||f.onDismiss.call(f,f)},className:Cs(Y==null?void 0:Y.closeButton,f==null||(s=f.classNames)==null?void 0:s.closeButton)},(kc=K==null?void 0:K.close)!=null?kc:AF):null,(ee||f.icon||f.promise)&&f.icon!==null&&((K==null?void 0:K[ee])!==null||f.icon)?ve.createElement("div",{"data-icon":"",className:Cs(Y==null?void 0:Y.icon,f==null||(i=f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||_c():null,f.type!=="loading"?Ri:null):null,ve.createElement("div",{"data-content":"",className:Cs(Y==null?void 0:Y.content,f==null||(o=f.classNames)==null?void 0:o.content)},ve.createElement("div",{"data-title":"",className:Cs(Y==null?void 0:Y.title,f==null||(l=f.classNames)==null?void 0:l.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?ve.createElement("div",{"data-description":"",className:Cs(L,we,Y==null?void 0:Y.description,f==null||(c=f.classNames)==null?void 0:c.description)},typeof f.description=="function"?f.description():f.description):null),ve.isValidElement(f.cancel)?f.cancel:f.cancel&&$f(f.cancel)?ve.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||A,onClick:ct=>{$f(f.cancel)&&de&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,ct),Hn())},className:Cs(Y==null?void 0:Y.cancelButton,f==null||(d=f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,ve.isValidElement(f.action)?f.action:f.action&&$f(f.action)?ve.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||B,onClick:ct=>{$f(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,ct),!ct.defaultPrevented&&Hn())},className:Cs(Y==null?void 0:Y.actionButton,f==null||(h=f.classNames)==null?void 0:h.actionButton)},f.action.label):null)};function nS(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function GF(e,t){const n={};return[e,t].forEach((s,i)=>{const o=i===1,l=o?"--mobile-offset":"--offset",c=o?UF:BF;function d(h){["top","right","bottom","left"].forEach(p=>{n[`${l}-${p}`]=typeof h=="number"?`${h}px`:h})}typeof s=="number"||typeof s=="string"?d(s):typeof s=="object"?["top","right","bottom","left"].forEach(h=>{s[h]===void 0?n[`${l}-${h}`]=c:n[`${l}-${h}`]=typeof s[h]=="number"?`${s[h]}px`:s[h]}):d(c)}),n}const YF=ve.forwardRef(function(t,n){const{id:s,invert:i,position:o="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:d,className:h,offset:p,mobileOffset:f,theme:m="light",richColors:g,duration:j,style:b,visibleToasts:x=FF,toastOptions:v,dir:N=nS(),gap:S=VF,icons:w,containerAriaLabel:k="Notifications"}=t,[O,C]=ve.useState([]),A=ve.useMemo(()=>s?O.filter(W=>W.toasterId===s):O.filter(W=>!W.toasterId),[O,s]),B=ve.useMemo(()=>Array.from(new Set([o].concat(A.filter(W=>W.position).map(W=>W.position)))),[A,o]),[I,L]=ve.useState([]),[D,R]=ve.useState(!1),[U,$]=ve.useState(!1),[Y,K]=ve.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Q=ve.useRef(null),q=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=ve.useRef(null),P=ve.useRef(!1),V=ve.useCallback(W=>{C(Z=>{var X;return(X=Z.find(H=>H.id===W.id))!=null&&X.delete||lr.dismiss(W.id),Z.filter(({id:H})=>H!==W.id)})},[]);return ve.useEffect(()=>lr.subscribe(W=>{if(W.dismiss){requestAnimationFrame(()=>{C(Z=>Z.map(X=>X.id===W.id?{...X,delete:!0}:X))});return}setTimeout(()=>{Kb.flushSync(()=>{C(Z=>{const X=Z.findIndex(H=>H.id===W.id);return X!==-1?[...Z.slice(0,X),{...Z[X],...W},...Z.slice(X+1)]:[W,...Z]})})})}),[O]),ve.useEffect(()=>{if(m!=="system"){K(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;const W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:Z})=>{K(Z?"dark":"light")})}catch{W.addListener(({matches:X})=>{try{K(X?"dark":"light")}catch(H){console.error(H)}})}},[m]),ve.useEffect(()=>{O.length<=1&&R(!1)},[O]),ve.useEffect(()=>{const W=Z=>{var X;if(l.every(te=>Z[te]||Z.code===te)){var G;R(!0),(G=Q.current)==null||G.focus()}Z.code==="Escape"&&(document.activeElement===Q.current||(X=Q.current)!=null&&X.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[l]),ve.useEffect(()=>{if(Q.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,P.current=!1)}},[Q.current]),ve.createElement("section",{ref:n,"aria-label":`${k} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((W,Z)=>{var X;const[H,G]=W.split("-");return A.length?ve.createElement("ol",{key:W,dir:N==="auto"?nS():N,tabIndex:-1,ref:Q,className:h,"data-sonner-toaster":!0,"data-sonner-theme":Y,"data-y-position":H,"data-x-position":G,style:{"--front-toast-height":`${((X=I[0])==null?void 0:X.height)||0}px`,"--width":`${qF}px`,"--gap":`${S}px`,...b,...GF(p,f)},onBlur:te=>{P.current&&!te.currentTarget.contains(te.relatedTarget)&&(P.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||P.current||(P.current=!0,F.current=te.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{U||R(!1)},onDragEnd:()=>R(!1),onPointerDown:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},A.filter(te=>!te.position&&Z===0||te.position===W).map((te,re)=>{var ue,ye;return ve.createElement(WF,{key:te.id,icons:w,index:re,toast:te,defaultRichColors:g,duration:(ue=v==null?void 0:v.duration)!=null?ue:j,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:i,visibleToasts:x,closeButton:(ye
525=v==null?void 0:v.closeButton)!=null?ye:d,interacting:U,position:W,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:V,toasts:A.filter(be=>be.position==te.position),heights:I.filter(be=>be.position==te.position),setHeights:L,expandByDefault:c,gap:S,expanded:D,swipeDirections:t.swipeDirections})})):null}))});var lc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},KF={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ao,$b,_T,JF=(_T=class{constructor(){nt(this,ao,KF);nt(this,$b,!1)}setTimeoutProvider(e){Fe(this,ao,e)}setTimeout(e,t){return se(this,ao).setTimeout(e,t)}clearTimeout(e){se(this,ao).clearTimeout(e)}setInterval(e,t){return se(this,ao).setInterval(e,t)}clearInterval(e){se(this,ao).clearInterval(e)}},ao=new WeakMap,$b=new WeakMap,_T),la=new JF;function QF(e){setTimeout(e,0)}var Ra=typeof window>"u"||"Deno"in globalThis;function Zn(){}function XF(e,t){return typeof e=="function"?e(t):e}function Ov(e){return typeof e=="number"&&e>=0&&e!==1/0}function SA(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bo(e,t){return typeof e=="function"?e(t):e}function zr(e,t){return typeof e=="function"?e(t):e}function rS(e,t){const{type:n="all",exact:s,fetchStatus:i,predicate:o,queryKey:l,stale:c}=e;if(l){if(s){if(t.queryHash!==Jb(l,t.options))return!1}else if(!$u(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||i&&i!==t.state.fetchStatus||o&&!o(t))}function sS(e,t){const{exact:n,status:s,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Pa(t.options.mutationKey)!==Pa(o))return!1}else if(!$u(t.options.mutationKey,o))return!1}return!(s&&t.state.status!==s||i&&!i(t))}function Jb(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pa)(e)}function Pa(e){return JSON.stringify(e,(t,n)=>Rv(n)?Object.keys(n).sort().reduce((s,i)=>(s[i]=n[i],s),{}):n)}function $u(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>$u(e[n],t[n])):!1}var ZF=Object.prototype.hasOwnProperty;function _A(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=iS(e)&&iS(t);if(!s&&!(Rv(e)&&Rv(t)))return t;const o=(s?e:Object.keys(e)).length,l=s?t:Object.keys(t),c=l.length,d=s?new Array(c):{};let h=0;for(let p=0;p<c;p++){const f=s?p:l[p],m=e[f],g=t[f];if(m===g){d[f]=m,(s?p<o:ZF.call(e,f))&&h++;continue}if(m===null||g===null||typeof m!="object"||typeof g!="object"){d[f]=g;continue}const j=_A(m,g,n+1);d[f]=j,j===m&&h++}return o===c&&h===o?e:d}function Ph(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function iS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Rv(e){if(!oS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!oS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function oS(e){return Object.prototype.toString.call(e)==="[object Object]"}function eB(e){return new Promise(t=>{la.setTimeout(t,e)})}function Pv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?_A(e,t):t}function tB(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function nB(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var Qb=Symbol();function kA(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Qb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Xb(e,t){return typeof e=="function"?e(...t):!!e}function rB(e,t,n){let s=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),s||(s=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var fa,lo,Bl,kT,sB=(kT=class extends lc{constructor(){super();nt(this,fa);nt(this,lo);nt(this,Bl);Fe(this,Bl,t=>{if(!Ra&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){se(this,lo)||this.setEventListener(se(this,Bl))}onUnsubscribe(){var t;this.hasListeners()||((t=se(this,lo))==null||t.call(this),Fe(this,lo,void 0))}setEventListener(t){var n;Fe(this,Bl,t),(n=se(this,lo))==null||n.call(this),Fe(this,lo,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){se(this,fa)!==t&&(Fe(this,fa,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,626 bytes, line 525
525this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof se(this,fa)=="boolean"?se(this,fa):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},fa=new WeakMap,lo=new WeakMap,Bl=new WeakMap,kT),Zb=new sB;function Dv(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function s(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{s({status:"fulfilled",value:i}),e(i)},n.reject=i=>{s({status:"rejected",reason:i}),t(i)},n}var iB=QF;function oB(){let e=[],t=0,n=c=>{c()},s=c=>{c()},i=iB;const o=c=>{t?e.push(c):i(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&i(()=>{s(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{o(()=>{c(...d)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{i=c}}}var mn=oB(),Ul,co,ql,ET,aB=(ET=class extends lc{constructor(){super();nt(this,Ul,!0);nt(this,co);nt(this,ql);Fe(this,ql,t=>{if(!Ra&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){se(this,co)||this.setEventListener(se(this,ql))}onUnsubscribe(){var t;this.hasListeners()||((t=se(this,co))==null||t.call(this),Fe(this,co,void 0))}setEventListener(t){var n;Fe(this,ql,t),(n=se(this,co))==null||n.call(this),Fe(this,co,t(this.setOnline.bind(this)))}setOnline(t){se(this,Ul)!==t&&(Fe(this,Ul,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return se(this,Ul)}},Ul=new WeakMap,co=new WeakMap,ql=new WeakMap,ET),Dh=new aB;function lB(e){return Math.min(1e3*2**e,3e4)}function EA(e){return(e??"online")==="online"?Dh.isOnline():!0}var Iv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function CA(e){let t=!1,n=0,s;const i=Dv(),o=()=>i.status!=="pending",l=b=>{var x;if(!o()){const v=new Iv(b);m(v),(x=e.onCancel)==null||x.call(e,v)}},c=()=>{t=!0},d=()=>{t=!1},h=()=>Zb.isFocused()&&(e.networkMode==="always"||Dh.isOnline())&&e.canRun(),p=()=>EA(e.networkMode)&&e.canRun(),f=b=>{o()||(s==null||s(),i.resolve(b))},m=b=>{o()||(s==null||s(),i.reject(b))},g=()=>new Promise(b=>{var x;s=v=>{(o()||h())&&b(v)},(x=e.onPause)==null||x.call(e)}).then(()=>{var b;s=void 0,o()||(b=e.onContinue)==null||b.call(e)}),j=()=>{if(o())return;let b;const x=n===0?e.initialPromise:void 0;try{b=x??e.fn()}catch(v){b=Promise.reject(v)}Promise.resolve(b).then(f).catch(v=>{var O;if(o())return;const N=e.retry??(Ra?0:3),S=e.retryDelay??lB,w=typeof S=="function"?S(n,v):S,k=N===!0||typeof N=="number"&&n<N||typeof N=="function"&&N(n,v);if(t||!k){m(v);return}n++,(O=e.onFail)==null||O.call(e,n,v),eB(w).then(()=>h()?void 0:g()).then(()=>{t?m(v):j()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(s==null||s(),i),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?j():g().then(j),i)}}var ha,CT,TA=(CT=class{constructor(){nt(this,ha)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ov(this.gcTime)&&Fe(this,ha,la.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ra?1/0:300*1e3))}clearGcTimeout(){se(this,ha)&&(la.clearTimeout(se(this,ha)),Fe(this,ha,void 0))}},ha=new WeakMap,CT),ma,Vl,$r,pa,vn,cd,ga,us,fi,TT,cB=(TT=class extends TA{constructor(t){super();nt(this,us);nt(this,ma);nt(this,Vl);nt(this,$r);nt(this,pa);nt(this,vn);nt(this,cd);nt(this,ga);Fe(this,ga,!1),Fe(this,cd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Fe(this,pa,t.client),Fe(this,$r,se(this,pa).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Fe(this,ma,lS(this.options)),this.state=t.state??se(this,ma),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=se(this,vn))==null?void 0:t.promise}setOptions(t){if(this.options={...se(this,cd),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=lS(this.options);n.data!==void 0&&(this.setState(aS(n.data,n.dataUpdatedAt)),Fe(this,ma,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&se(this,$r).remove(this)}setData(t,n){const s=Pv(this.state.data,t,this.options);return dt(this,us,fi).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){dt(this,us,fi).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,i;const n=(s=se(this,vn))==null?void 0:s.promise;
525return(i=se(this,vn))==null||i.cancel(t),n?n.then(Zn).catch(Zn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(se(this,ma))}isActive(){return this.observers.some(t=>zr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qb||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>bo(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!SA(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=se(this,vn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=se(this,vn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),se(this,$r).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(se(this,vn)&&(se(this,ga)?se(this,vn).cancel({revert:!0}):se(this,vn).cancelRetry()),this.scheduleGc()),se(this,$r).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||dt(this,us,fi).call(this,{type:"invalidate"})}async fetch(t,n){var d,h,p,f,m,g,j,b,x,v,N,S;if(this.state.fetchStatus!=="idle"&&((d=se(this,vn))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(se(this,vn))return se(this,vn).continueRetry(),se(this,vn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(k=>k.options.queryFn);w&&this.setOptions(w.options)}const s=new AbortController,i=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(Fe(this,ga,!0),s.signal)})},o=()=>{const w=kA(this.options,n),O=(()=>{const C={client:se(this,pa),queryKey:this.queryKey,meta:this.meta};return i(C),C})();return Fe(this,ga,!1),this.options.persister?this.options.persister(w,O,this):w(O)},c=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:se(this,pa),state:this.state,fetchFn:o};return i(w),w})();(h=this.options.behavior)==null||h.onFetch(c,this),Fe(this,Vl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=c.fetchOptions)==null?void 0:p.meta))&&dt(this,us,fi).call(this,{type:"fetch",meta:(f=c.fetchOptions)==null?void 0:f.meta}),Fe(this,vn,CA({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:w=>{w instanceof Iv&&w.revert&&this.setState({...se(this,Vl),fetchStatus:"idle"}),s.abort()},onFail:(w,k)=>{dt(this,us,fi).call(this,{type:"failed",failureCount:w,error:k})},onPause:()=>{dt(this,us,fi).call(this,{type:"pause"})},onContinue:()=>{dt(this,us,fi).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const w=await se(this,vn).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(g=(m=se(this,$r).config).onSuccess)==null||g.call(m,w,this),(b=(j=se(this,$r).config).onSettled)==null||b.call(j,w,this.state.error,this),w}catch(w){if(w instanceof Iv){if(w.silent)return se(this,vn).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw dt(this,us,fi).call(this,{type:"error",error:w}),(v=(x=se(this,$r).config).onError)==null||v.call(x,w,this),(S=(N=se(this,$r).config).onSettled)==null||S.call(N,this.state.data,w,this),w}finally{this.scheduleGc()}}},ma=new WeakMap,Vl=new WeakMap,$r=new WeakMap,pa=new WeakMap,vn=new WeakMap,cd=new WeakMap,ga=new WeakMap,us=new WeakSet,fi=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...AA(s.data,this.options),fetchMeta:t.meta??null};case"success":const i={...s,...aS(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Fe(this,Vl,t.manual?i:void 0),i;case"error":const o=t.error;
vendor: 4,880 bytes, line 525
525return{...s,error:o,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),mn.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),se(this,$r).notify({query:this,type:"updated",action:t})})},TT);function AA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:EA(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function aS(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function lS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var or,pt,ud,Qn,ya,$l,hi,uo,dd,zl,Hl,xa,va,fo,Wl,Et,wu,Lv,Mv,Fv,Bv,Uv,qv,Vv,OA,AT,uB=(AT=class extends lc{constructor(t,n){super();nt(this,Et);nt(this,or);nt(this,pt);nt(this,ud);nt(this,Qn);nt(this,ya);nt(this,$l);nt(this,hi);nt(this,uo);nt(this,dd);nt(this,zl);nt(this,Hl);nt(this,xa);nt(this,va);nt(this,fo);nt(this,Wl,new Set);this.options=n,Fe(this,or,t),Fe(this,uo,null),Fe(this,hi,Dv()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(se(this,pt).addObserver(this),cS(se(this,pt),this.options)?dt(this,Et,wu).call(this):this.updateResult(),dt(this,Et,Bv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $v(se(this,pt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $v(se(this,pt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,dt(this,Et,Uv).call(this),dt(this,Et,qv).call(this),se(this,pt).removeObserver(this)}setOptions(t){const n=this.options,s=se(this,pt);if(this.options=se(this,or).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof zr(this.options.enabled,se(this,pt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");dt(this,Et,Vv).call(this),se(this,pt).setOptions(this.options),n._defaulted&&!Ph(this.options,n)&&se(this,or).getQueryCache().notify({type:"observerOptionsUpdated",query:se(this,pt),observer:this});const i=this.hasListeners();i&&uS(se(this,pt),s,this.options,n)&&dt(this,Et,wu).call(this),this.updateResult(),i&&(se(this,pt)!==s||zr(this.options.enabled,se(this,pt))!==zr(n.enabled,se(this,pt))||bo(this.options.staleTime,se(this,pt))!==bo(n.staleTime,se(this,pt)))&&dt(this,Et,Lv).call(this);const o=dt(this,Et,Mv).call(this);i&&(se(this,pt)!==s||zr(this.options.enabled,se(this,pt))!==zr(n.enabled,se(this,pt))||o!==se(this,fo))&&dt(this,Et,Fv).call(this,o)}getOptimisticResult(t){const n=se(this,or).getQueryCache().build(se(this,or),t),s=this.createResult(n,t);return fB(this,s)&&(Fe(this,Qn,s),Fe(this,$l,this.options),Fe(this,ya,se(this,pt).state)),s}getCurrentResult(){return se(this,Qn)}trackResult(t,n){return new Proxy(t,{get:(s,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&se(this,hi).status==="pending"&&se(this,hi).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,i))})}trackProp(t){se(this,Wl).add(t)}getCurrentQuery(){return se(this,pt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=se(this,or).defaultQueryOptions(t),s=se(this,or).getQueryCache().build(se(this,or),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return dt(this,Et,wu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),se(this,Qn)))}createResult(t,n){var B;const s=se(this,pt),i=this.options,o=se(this,Qn),l=se(this,ya),c=se(this,$l),h=t!==s?t.state:se(this,ud),{state:p}=t;let f={...p},m=!1,g;if(n._optimisticResults){const I=this.hasListeners(),L=!I&&cS(t,n),D=I&&uS(t,s,n,i);(L||D)&&(f={...f,...AA(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:j,errorUpdatedAt:b,status:x}=f;g=f.data;let v=!1;if(n.placeholderData!==void 0&&g===void 0&&x==="pending"){let I;o!=null&&o.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(I=o.data,v=!0):I=typeof n.placeholderData=="function"?n.placeholderData((B=se(this,Hl))==null?void 0:B.state.data,se(this,Hl)):n.placeholderData,I!==void 0&&(x="success",g=Pv(o==null?void 0:o.data,I,n),m=!0)}
vendor: 1,641 bytes, line 525
525if(n.select&&g!==void 0&&!v)if(o&&g===(l==null?void 0:l.data)&&n.select===se(this,dd))g=se(this,zl);else try{Fe(this,dd,n.select),g=n.select(g),g=Pv(o==null?void 0:o.data,g,n),Fe(this,zl,g),Fe(this,uo,null)}catch(I){Fe(this,uo,I)}se(this,uo)&&(j=se(this,uo),g=se(this,zl),b=Date.now(),x="error");const N=f.fetchStatus==="fetching",S=x==="pending",w=x==="error",k=S&&N,O=g!==void 0,A={status:x,fetchStatus:f.fetchStatus,isPending:S,isSuccess:x==="success",isError:w,isInitialLoading:k,isLoading:k,data:g,dataUpdatedAt:f.dataUpdatedAt,error:j,errorUpdatedAt:b,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>h.dataUpdateCount||f.errorUpdateCount>h.errorUpdateCount,isFetching:N,isRefetching:N&&!S,isLoadingError:w&&!O,isPaused:f.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:w&&O,isStale:e0(t,n),refetch:this.refetch,promise:se(this,hi),isEnabled:zr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const I=A.data!==void 0,L=A.status==="error"&&!I,D=$=>{L?$.reject(A.error):I&&$.resolve(A.data)},R=()=>{const $=Fe(this,hi,A.promise=Dv());D($)},U=se(this,hi);switch(U.status){case"pending":t.queryHash===s.queryHash&&D(U);break;case"fulfilled":(L||A.data!==U.value)&&R();break;case"rejected":(!L||A.error!==U.reason)&&R();break}}return A}updateResult(){const t=se(this,Qn),n=this.createResult(se(this,pt),this.options);if(Fe(this,ya,se(this,pt).state),Fe(this,$l,this.options),se(this,ya).data!==void 0&&Fe(this,Hl,se(this,pt)),Ph(n,t))return;Fe(this,Qn,n);const s=()=>
vendor: 7,179 bytes, line 525
525{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!se(this,Wl).size)return!0;const l=new Set(o??se(this,Wl));return this.options.throwOnError&&l.add("error"),Object.keys(se(this,Qn)).some(c=>{const d=c;return se(this,Qn)[d]!==t[d]&&l.has(d)})};dt(this,Et,OA).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&dt(this,Et,Bv).call(this)}},or=new WeakMap,pt=new WeakMap,ud=new WeakMap,Qn=new WeakMap,ya=new WeakMap,$l=new WeakMap,hi=new WeakMap,uo=new WeakMap,dd=new WeakMap,zl=new WeakMap,Hl=new WeakMap,xa=new WeakMap,va=new WeakMap,fo=new WeakMap,Wl=new WeakMap,Et=new WeakSet,wu=function(t){dt(this,Et,Vv).call(this);let n=se(this,pt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Zn)),n},Lv=function(){dt(this,Et,Uv).call(this);const t=bo(this.options.staleTime,se(this,pt));if(Ra||se(this,Qn).isStale||!Ov(t))return;const s=SA(se(this,Qn).dataUpdatedAt,t)+1;Fe(this,xa,la.setTimeout(()=>{se(this,Qn).isStale||this.updateResult()},s))},Mv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(se(this,pt)):this.options.refetchInterval)??!1},Fv=function(t){dt(this,Et,qv).call(this),Fe(this,fo,t),!(Ra||zr(this.options.enabled,se(this,pt))===!1||!Ov(se(this,fo))||se(this,fo)===0)&&Fe(this,va,la.setInterval(()=>{(this.options.refetchIntervalInBackground||Zb.isFocused())&&dt(this,Et,wu).call(this)},se(this,fo)))},Bv=function(){dt(this,Et,Lv).call(this),dt(this,Et,Fv).call(this,dt(this,Et,Mv).call(this))},Uv=function(){se(this,xa)&&(la.clearTimeout(se(this,xa)),Fe(this,xa,void 0))},qv=function(){se(this,va)&&(la.clearInterval(se(this,va)),Fe(this,va,void 0))},Vv=function(){const t=se(this,or).getQueryCache().build(se(this,or),this.options);if(t===se(this,pt))return;const n=se(this,pt);Fe(this,pt,t),Fe(this,ud,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},OA=function(t){mn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(se(this,Qn))}),se(this,or).getQueryCache().notify({query:se(this,pt),type:"observerResultsUpdated"})})},AT);function dB(e,t){return zr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function cS(e,t){return dB(e,t)||e.state.data!==void 0&&$v(e,t,t.refetchOnMount)}function $v(e,t,n){if(zr(t.enabled,e)!==!1&&bo(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&e0(e,t)}return!1}function uS(e,t,n,s){return(e!==t||zr(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&e0(e,n)}function e0(e,t){return zr(t.enabled,e)!==!1&&e.isStaleByTime(bo(t.staleTime,e))}function fB(e,t){return!Ph(e.getCurrentResult(),t)}function dS(e){return{onFetch:(t,n)=>{var p,f,m,g,j;const s=t.options,i=(m=(f=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],l=((j=t.state.data)==null?void 0:j.pageParams)||[];let c={pages:[],pageParams:[]},d=0;const h=async()=>{let b=!1;const x=S=>{rB(S,()=>t.signal,()=>b=!0)},v=kA(t.options,t.fetchOptions),N=async(S,w,k)=>{if(b)return Promise.reject();if(w==null&&S.pages.length)return Promise.resolve(S);const C=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:w,direction:k?"backward":"forward",meta:t.options.meta};return x(L),L})(),A=await v(C),{maxPages:B}=t.options,I=k?nB:tB;return{pages:I(S.pages,A,B),pageParams:I(S.pageParams,w,B)}};if(i&&o.length){const S=i==="backward",w=S?hB:fS,k={pages:o,pageParams:l},O=w(s,k);c=await N(k,O,S)}else{const S=e??o.length;do{const w=d===0?l[0]??s.initialPageParam:fS(s,c);if(d>0&&w==null)break;c=await N(c,w),d++}while(d<S)}return c};t.options.persister?t.fetchFn=()=>{var b,x;return(x=(b=t.options).persister)==null?void 0:x.call(b,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function fS(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function hB(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var fd,As,Fn,ba,Os,ro,OT,mB=(OT=class extends TA{constructor(t){super();nt(this,Os);nt(this,fd);nt(this,As);nt(this,Fn);nt(this,ba);Fe(this,fd,t.client),this.mutationId=t.mutationId,Fe(this,Fn,t.mutationCache),Fe(this,As,[]),this.state=t.state||RA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){se(this,As).includes(t)||(se(this,As).push(t),this.clearGcTimeout(),se(this,Fn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Fe(this,As,se(this,As).filter(n=>n!==t)),this.scheduleGc(),se(this,Fn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){se(this,As).length||(this.state.status==="pending"?this.scheduleGc():se(this,Fn).remove(this))}continue(){var t;return((t=se(this,ba))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,c,d,h,p,f,m,g,j,b,x,v,N,S,w,k,O,C;const n=()=>{dt(this,Os,ro).call(this,{type:"continue"})},s={client:se(this,fd),meta:this.options.meta,mutationKey:this.options.mutationKey};Fe(this,ba,CA({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(A,B)=>{dt(this,Os,ro).call(this,{type:"failed",failureCount:A,error:B})},onPause:()=>{dt(this,Os,ro).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>se(this,Fn).canRun(this)}));const i=this.state.status==="pending",o=!se(this,ba).canStart();try{if(i)n();else{dt(this,Os,ro).call(this,{type:"pending",variables:t,isPaused:o}),se(this,Fn).config.onMutate&&await se(this,Fn).config.onMutate(t,this,s);const B=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t,s));B!==this.state.context&&dt(this,Os,ro).call(this,{type:"pending",context:B,variables:t,isPaused:o})}const A=await se(this,ba).start();return await((h=(d=se(this,Fn).config).onSuccess)==null?void 0:h.call(d,A,t,this.state.context,this,s)),await((f=(p=this.options).onSuccess)==null?void 0:f.call(p,A,t,this.state.context,s)),await((g=(m=se(this,Fn).config).onSettled)==null?void 0:g.call(m,A,null,this.state.variables,this.state.context,this,s)),await((b=(j=this.options).onSettled)==null?void 0:b.call(j,A,null,t,this.state.context,s)),dt(this,Os,ro).call(this,{type:"success",data:A}),A}catch(A){try{await((v=(x=se(this,Fn).config).onError)==null?void 0:v.call(x,A,t,this.state.context,this,s))}catch(B){Promise.reject(B)}try{await((S=(N=this.options).onError)==null?void 0:S.call(N,A,t,this.state.context,s))}catch(B){Promise.reject(B)}try{await((k=(w=se(this,Fn).config).onSettled)==null?void 0:k.call(w,void 0,A,this.state.variables,this.state.context,this,s))}catch(B){Promise.reject(B)}try{await((C=(O=this.options).onSettled)==null?void 0:C.call(O,void 0,A,t,this.state.context,s))}catch(B){Promise.reject(B)}throw dt(this,Os,ro).call(this,{type:"error",error:A}),A}finally{se(this,Fn).runNext(this)}}}
525,fd=new WeakMap,As=new WeakMap,Fn=new WeakMap,ba=new WeakMap,Os=new WeakSet,ro=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),mn.batch(()=>{se(this,As).forEach(s=>{s.onMutationUpdate(t)}),se(this,Fn).notify({mutation:this,type:"updated",action:t})})},OT);function RA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var mi,ds,hd,RT,pB=(RT=class extends lc{constructor(t={}){super();nt(this,mi);nt(this,ds);nt(this,hd);this.config=t,Fe(this,mi,new Set),Fe(this,ds,new Map),Fe(this,hd,0)}build(t,n,s){const i=new mB({client:t,mutationCache:this,mutationId:++Ff(this,hd)._,options:t.defaultMutationOptions(n),state:s});return this.add(i),i}add(t){se(this,mi).add(t);const n=zf(t);if(typeof n=="string"){const s=se(this,ds).get(n);s?s.push(t):se(this,ds).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(se(this,mi).delete(t)){const n=zf(t);if(typeof n=="string"){const s=se(this,ds).get(n);if(s)if(s.length>1){const i=s.indexOf(t);i!==-1&&s.splice(i,1)}else s[0]===t&&se(this,ds).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=zf(t);if(typeof n=="string"){const s=se(this,ds).get(n),i=s==null?void 0:s.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var s;const n=zf(t);if(typeof n=="string"){const i=(s=se(this,ds).get(n))==null?void 0:s.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){mn.batch(()=>{se(this,mi).forEach(t=>{this.notify({type:"removed",mutation:t})}),se(this,mi).clear(),se(this,ds).clear()})}getAll(){return Array.from(se(this,mi))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>sS(n,s))}findAll(t={}){return this.getAll().filter(n=>sS(t,n))}notify(t){mn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return mn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Zn))))}},mi=new WeakMap,ds=new WeakMap,hd=new WeakMap,RT);function zf(e){var t;return(t=e.options.scope)==null?void 0:t.id}var pi,ho,ar,gi,bi,ph,zv,PT,gB=(PT=class extends lc{constructor(n,s){super();nt(this,bi);nt(this,pi);nt(this,ho);nt(this,ar);nt(this,gi);Fe(this,pi,n),this.setOptions(s),this.bindMethods(),dt(this,bi,ph).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const s=this.options;this.options=se(this,pi).defaultMutationOptions(n),Ph(this.options,s)||se(this,pi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:se(this,ar),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&Pa(s.mutationKey)!==Pa(this.options.mutationKey)?this.reset():((i=se(this,ar))==null?void 0:i.state.status)==="pending"&&se(this,ar).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=se(this,ar))==null||n.removeObserver(this)}onMutationUpdate(n){dt(this,bi,ph).call(this),dt(this,bi,zv).call(this,n)}getCurrentResult(){return se(this,ho)}reset(){var n;(n=se(this,ar))==null||n.removeObserver(this),Fe(this,ar,void 0),dt(this,bi,ph).call(this),dt(this,bi,zv).call(this)}mutate(n,s){var i;return Fe(this,gi,s),(i=se(this,ar))==null||i.removeObserver(this),Fe(this,ar,se(this,pi).getMutationCache().build(se(this,pi),this.options)),se(this,ar).addObserver(this),se(this,ar).execute(n)}},pi=new WeakMap,ho=new WeakMap,ar=new WeakMap,gi=new WeakMap,bi=new WeakSet,ph=function(){var s;const n=((s=se(this,ar))==null?void 0:s.state)??RA();Fe(this,ho,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},zv=function(n){mn.batch(()=>{var s,i,o,l,c,d,h,p;if(se(this,gi)&&this.hasListeners()){const f=se(this,ho).variables,m=se(this,ho).context,g={client:se(this,pi),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(s=se(this,gi)).onSuccess)==null||i.call(s,n.data,f,m,g)}catch(j){Promise.reject(j)}try{(l=(o=se(this,gi)).onSettled)==null||l.call(o,n.data,null,f,m,g)}catch(j){Promise.reject(j)}}else if((n==null?void 0:n.type)==="error"){try{(d=(c=se(this,gi)).onError)==null||d.call(c,n.error,f,m,g)}catch(j){Promise.reject(j)}try{(p=(h=se(this,gi)).onSettled)==null||p.call(h,void 0,n.error,f,m,g)}catch(j){Promise.reject(j)}}}
vendor: 6,237 bytes, line 525
525this.listeners.forEach(f=>{f(se(this,ho))})})},PT),Rs,DT,yB=(DT=class extends lc{constructor(t={}){super();nt(this,Rs);this.config=t,Fe(this,Rs,new Map)}build(t,n,s){const i=n.queryKey,o=n.queryHash??Jb(i,n);let l=this.get(o);return l||(l=new cB({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){se(this,Rs).has(t.queryHash)||(se(this,Rs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=se(this,Rs).get(t.queryHash);n&&(t.destroy(),n===t&&se(this,Rs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){mn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return se(this,Rs).get(t)}getAll(){return[...se(this,Rs).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>rS(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>rS(t,s)):n}notify(t){mn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){mn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){mn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Rs=new WeakMap,DT),Wt,mo,po,Gl,Yl,go,Kl,Jl,IT,xB=(IT=class{constructor(e={}){nt(this,Wt);nt(this,mo);nt(this,po);nt(this,Gl);nt(this,Yl);nt(this,go);nt(this,Kl);nt(this,Jl);Fe(this,Wt,e.queryCache||new yB),Fe(this,mo,e.mutationCache||new pB),Fe(this,po,e.defaultOptions||{}),Fe(this,Gl,new Map),Fe(this,Yl,new Map),Fe(this,go,0)}mount(){Ff(this,go)._++,se(this,go)===1&&(Fe(this,Kl,Zb.subscribe(async e=>{e&&(await this.resumePausedMutations(),se(this,Wt).onFocus())})),Fe(this,Jl,Dh.subscribe(async e=>{e&&(await this.resumePausedMutations(),se(this,Wt).onOnline())})))}unmount(){var e,t;Ff(this,go)._--,se(this,go)===0&&((e=se(this,Kl))==null||e.call(this),Fe(this,Kl,void 0),(t=se(this,Jl))==null||t.call(this),Fe(this,Jl,void 0))}isFetching(e){return se(this,Wt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return se(this,mo).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=se(this,Wt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=se(this,Wt).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(bo(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return se(this,Wt).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),i=se(this,Wt).get(s.queryHash),o=i==null?void 0:i.state.data,l=XF(t,o);if(l!==void 0)return se(this,Wt).build(this,s).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return mn.batch(()=>se(this,Wt).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=se(this,Wt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=se(this,Wt);mn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=se(this,Wt);return mn.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=mn.batch(()=>se(this,Wt).findAll(e).map(i=>i.cancel(n)));return Promise.all(s).then(Zn).catch(Zn)}invalidateQueries(e,t={}){return mn.batch(()=>(se(this,Wt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=mn.batch(()=>se(this,Wt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Zn)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(s).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=se(this,Wt).build(this,t);return n.isStaleByTime(bo(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e.behavior=dS(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e.behavior=dS(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Dh.isOnline()?se(this,mo).resumePausedMutations():Promise.resolve()}getQueryCache(){return se(this,Wt)}getMutationCache(){return se(this,mo)}getDefaultOptions(){return se(this,po)}setDefaultOptions(e){Fe(this,po,e)}setQueryDefaults(e,t){se(this,Gl).set(Pa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...se(this,Gl).values()],n={};return t.forEach(s=>{$u(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){se(this,Yl).set(Pa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...se(this,Yl).values()],n={};return t.forEach(s=>{$u(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...se(this,po).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jb(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Qb&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...se(this,po).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){se(this,Wt).clear(),se(this,mo).clear()}},Wt=new WeakMap,mo=new WeakMap,po=new WeakMap,Gl=new WeakMap,Yl=new WeakMap,go=new WeakMap,Kl=new WeakMap,Jl=new WeakMap,IT),PA=E.createContext(void 0),DA=e=>{const t=E.useContext(PA);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},vB=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),r.jsx(PA.Provider,{value:e,children:t})),IA=E.createContext(!1),bB=()=>E.useContext(IA);IA.Provider;function wB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
525var jB=E.createContext(wB()),NB=()=>E.useContext(jB),SB=(e,t,n)=>{const s=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Xb(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},_B=e=>{E.useEffect(()=>{e.clearReset()},[e])},kB=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&e.data===void 0||Xb(n,[e.error,s])),EB=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...i)=>n(s(...i)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},CB=(e,t)=>e.isLoading&&e.isFetching&&!t,TB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,hS=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function AB(e,t,n){var m,g,j,b;const s=bB(),i=NB(),o=DA(),l=o.defaultQueryOptions(e);(g=(m=o.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||g.call(m,l);const c=o.getQueryCache().get(l.queryHash);l._optimisticResults=s?"isRestoring":"optimistic",EB(l),SB(l,i,c),_B(i);const d=!o.getQueryCache().get(l.queryHash),[h]=E.useState(()=>new t(o,l)),p=h.getOptimisticResult(l),f=!s&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(x=>{const v=f?h.subscribe(mn.batchCalls(x)):Zn;return h.updateResult(),v},[h,f]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),E.useEffect(()=>{h.setOptions(l)},[l,h]),TB(l,p))throw hS(l,h,i);if(kB({result:p,errorResetBoundary:i,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw p.error;if((b=(j=o.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||b.call(j,l,p),l.experimental_prefetchInRender&&!Ra&&CB(p,s)){const x=d?hS(l,h,i):c==null?void 0:c.promise;x==null||x.catch(Zn).finally(()=>{h.updateResult()})}return l.notifyOnChangeProps?p:h.trackResult(p)}function LA(e,t){return AB(e,uB)}function Ws(e,t){const n=DA(),[s]=E.useState(()=>new gB(n,e));E.useEffect(()=>{s.setOptions(e)},[s,e]);const i=E.useSyncExternalStore(E.useCallback(l=>s.subscribe(mn.batchCalls(l)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),o=E.useCallback((l,c)=>{s.mutate(l,c).catch(Zn)},[s]);if(i.error&&Xb(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}const OB=new xB({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});/**
526 * @remix-run/router v1.23.2
527 *
528 * Copyright (c) Remix Software Inc.
529 *
530 * This source code is licensed under the MIT license found in the
531 * LICENSE.md file in the root directory of this source tree.
532 *
533 * @license MIT
534 */function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},zu.apply(this,arguments)}var xo;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(xo||(xo={}));const mS="popstate";function RB(e){e===void 0&&(e={});function t(s,i){let{pathname:o,search:l,hash:c}=s.location;return Hv("",{pathname:o,search:l,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(s,i){return typeof i=="string"?i:Ih(i)}return DB(t,n,null,e)}function en(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function t0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function PB(){return Math.random().toString(36).substr(2,8)}function pS(e,t){return{usr:e.state,key:e.key,idx:t}}function Hv(e,t,n,s){return n===void 0&&(n=null),zu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?cc(t):t,{state:n,key:t&&t.key||s||PB()})}function Ih(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function cc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function DB(e,t,n,s){s===void 0&&(s={});let{window:i=document.defaultView,v5Compat:o=!1}=s,l=i.history,c=xo.Pop,d=null,h=p();h==null&&(h=0,l.replaceState(zu({},l.state,{idx:h}),""));function p(){return(l.state||{idx:null}).idx}function f(){c=xo.Pop;
vendor: 13,301 bytes, lines 534-543
534let x=p(),v=x==null?null:x-h;h=x,d&&d({action:c,location:b.location,delta:v})}function m(x,v){c=xo.Push;let N=Hv(b.location,x,v);h=p()+1;let S=pS(N,h),w=b.createHref(N);try{l.pushState(S,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(w)}o&&d&&d({action:c,location:b.location,delta:1})}function g(x,v){c=xo.Replace;let N=Hv(b.location,x,v);h=p();let S=pS(N,h),w=b.createHref(N);l.replaceState(S,"",w),o&&d&&d({action:c,location:b.location,delta:0})}function j(x){let v=i.location.origin!=="null"?i.location.origin:i.location.href,N=typeof x=="string"?x:Ih(x);return N=N.replace(/ $/,"%20"),en(v,"No window.location.(origin|href) available to create URL for href: "+N),new URL(N,v)}let b={get action(){return c},get location(){return e(i,l)},listen(x){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(mS,f),d=x,()=>{i.removeEventListener(mS,f),d=null}},createHref(x){return t(i,x)},createURL:j,encodeLocation(x){let v=j(x);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:g,go(x){return l.go(x)}};return b}var gS;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gS||(gS={}));function IB(e,t,n){return n===void 0&&(n="/"),LB(e,t,n)}function LB(e,t,n,s){let i=typeof t=="string"?cc(t):t,o=n0(i.pathname||"/",n);if(o==null)return null;let l=MA(e);MB(l);let c=null;for(let d=0;c==null&&d<l.length;++d){let h=KB(o);c=WB(l[d],h)}return c}function MA(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let i=(o,l,c)=>{let d={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};d.relativePath.startsWith("/")&&(en(d.relativePath.startsWith(s),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(s.length));let h=wo([s,d.relativePath]),p=n.concat(d);o.children&&o.children.length>0&&(en(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),MA(o.children,t,p,h)),!(o.path==null&&!o.index)&&t.push({path:h,score:zB(h,o.index),routesMeta:p})};return e.forEach((o,l)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))i(o,l);else for(let d of FA(o.path))i(o,l,d)}),t}function FA(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(s.length===0)return i?[o,""]:[o];let l=FA(s.join("/")),c=[];return c.push(...l.map(d=>d===""?o:[o,d].join("/"))),i&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function MB(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:HB(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const FB=/^:[\w-]+$/,BB=3,UB=2,qB=1,VB=10,$B=-2,yS=e=>e==="*";function zB(e,t){let n=e.split("/"),s=n.length;return n.some(yS)&&(s+=$B),t&&(s+=UB),n.filter(i=>!yS(i)).reduce((i,o)=>i+(FB.test(o)?BB:o===""?qB:VB),s)}function HB(e,t){return e.length===t.length&&e.slice(0,-1).every((s,i)=>s===t[i])?e[e.length-1]-t[t.length-1]:0}function WB(e,t,n){let{routesMeta:s}=e,i={},o="/",l=[];for(let c=0;c<s.length;++c){let d=s[c],h=c===s.length-1,p=o==="/"?t:t.slice(o.length)||"/",f=GB({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},p),m=d.route;if(!f)return null;Object.assign(i,f.params),l.push({params:i,pathname:wo([o,f.pathname]),pathnameBase:e8(wo([o,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(o=wo([o,f.pathnameBase]))}return l}function GB(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=YB(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],l=o.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:s.reduce((h,p,f)=>{let{paramName:m,isOptional:g}=p;if(m==="*"){let b=c[f]||"";l=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const j=c[f];return g&&!j?h[m]=void 0:h[m]=(j||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:l,pattern:e}}function YB(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),t0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(s.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),s]}function KB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return t0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function n0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}const JB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,QB=e=>JB.test(e);function XB(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:i=""}=typeof e=="string"?cc(e):e,o;if(n)if(QB(n))o=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),t0(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?o=xS(n.substring(1),"/"):o=xS(n,t)}else o=t;return{pathname:o,search:t8(s),hash:n8(i)}}function xS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Hg(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ZB(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function r0(e,t){let n=ZB(e);return t?n.map((s,i)=>i===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function s0(e,t,n,s){s===void 0&&(s=!1);let i;typeof e=="string"?i=cc(e):(i=zu({},e),en(!i.pathname||!i.pathname.includes("?"),Hg("?","pathname","search",i)),en(!i.pathname||!i.pathname.includes("#"),Hg("#","pathname","hash",i)),en(!i.search||!i.search.includes("#"),Hg("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,c;if(l==null)c=n;else{let f=t.length-1;if(!s&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}c=f>=0?t[f]:"/"}let d=XB(i,c),h=l&&l!=="/"&&l.endsWith("/"),p=(o||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||p)&&(d.pathname+="/"),d}const wo=e=>e.join("/").replace(/\/\/+/g,"/"),e8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),t8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,n8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function r8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const BA=["post","put","patch","delete"];new Set(BA);const s8=["get",...BA];new Set(s8);/**
535 * React Router v6.30.3
536 *
537 * Copyright (c) Remix Software Inc.
538 *
539 * This source code is licensed under the MIT license found in the
540 * LICENSE.md file in the root directory of this source tree.
541 *
542 * @license MIT
543 */function Hu(){return Hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Hu.apply(this,arguments)}const i0=E.createContext(null),i8=E.createContext(null),Io=E.createContext(null),ym=E.createContext(null),Gs=E.createContext({outlet:null,matches:[],isDataRoute:!1}),UA=E.createContext(null);function o8(e,t){let{relative:n}=t===void 0?{}:t;uc()||en(!1);let{basename:s,navigator:i}=E.useContext(Io),{hash:o,pathname:l,search:c}=VA(e,{relative:n}),d=l;return s!=="/"&&(d=l==="/"?s:wo([s,l])),i.createHref({pathname:d,search:c,hash:o})}function uc(){return E.useContext(ym)!=null}function _i(){return uc()||en(!1),E.useContext(ym).location}function qA(e){E.useContext(Io).static||E.useLayoutEffect(e)}function o0(){let{isDataRoute:e}=E.useContext(Gs);return e?w8():a8()}function a8(){uc()||en(!1);let e=E.useContext(i0),{basename:t,future:n,navigator:s}=E.useContext(Io),{matches:i}=E.useContext(Gs),{pathname:o}=_i(),l=JSON.stringify(r0(i,n.v7_relativeSplatPath)),c=E.useRef(!1);return qA(()=>{c.current=!0}),E.useCallback(function(h,p){if(p===void 0&&(p={}),!c.current)return;if(typeof h=="number"){s.go(h);return}let f=s0(h,JSON.parse(l),o,p.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:wo([t,f.pathname])),(p.replace?s.replace:s.push)(f,p.state,p)},[t,s,l,o,e])}const l8=E.createContext(null);function c8(e){let t=E.useContext(Gs).outlet;return t&&E.createElement(l8.Provider,{value:e},t)}function xm(){let{matches:e}=E.useContext(Gs),t=e[e.length-1];return t?t.params:{}}function VA(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=E.useContext(Io),{matches:i}=E.useContext(Gs),{pathname:o}=_i(),l=JSON.stringify(r0(i,s.v7_relativeSplatPath));return E.useMemo(()=>s0(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function u8(e,t){return d8(e,t)}function d8(e,t,n,s){uc()||en(!1);let{navigator:i}=E.useContext(Io),{matches:o}=E.useContext(Gs),l=o[o.length-1],c=l?l.params:{};l&&l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let h=_i(),p;if(t){var f;let x=typeof t=="string"?cc(t):t;d==="/"||(f=x.pathname)!=null&&f.startsWith(d)||en(!1),p=x}else p=h;let m=p.pathname||"/",g=m;if(d!=="/"){let x=d.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let j=IB(e,{pathname:g}),b=g8(j&&j.map(x=>Object.assign({},x,{params:Object.assign({},c,x.params),pathname:wo([d,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?d:wo([d,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,s);return t&&b?E.createElement(ym.Provider,{value:{location:Hu({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:xo.Pop}},b):b}function f8(){let e=b8(),t=r8(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,null)}const h8=E.createElement(f8,null);class m8 extends E.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(Gs.Provider,{value:this.props.routeContext},E.createElement(UA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function p8(e){let{routeContext:t,match:n,children:s}=e,i=E.useContext(i0);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Gs.Provider,{value:t},s)}function g8(e,t,n,s){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=s)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,c=(i=n)==null?void 0:i.errors;if(c!=null){let p=l.findIndex(f=>f.route.id&&(c==null?void 0:c[f.route.id])!==void 0);p>=0||en(!1),l=l.slice(0,Math.min(l.length,p+1))}let d=!1,h=-1;if(n&&s&&s.v7_partialHydration)for(let p=0;p<l.length;p++){let f=l[p];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(h=p),f.route.id){let{loaderData:m,errors:g}=n,j=f.route.loader&&m[f.route.id]===void 0&&(!g||g[f.route.id]===void 0);if(f.route.lazy||j){d=!0,h>=0?l=l.slice(0,h+1):l=[l[0]];break}}}return l.reduceRight((p,f,m)=>{let g,j=!1,b=null,x=null;n&&(g=c&&f.route.id?c[f.route.id]:void 0,b=f.route.errorElement||h8,d&&(h<0&&m===0?(j8("route-fallback"),j=!0,x=null):h===m&&(j=!0,x=f.route.hydrateFallbackElement||null)));let v=t.concat(l.slice(0,m+1)),N=()=>{let S;return g?S=b:j?S=x:f.route.Component?S=E.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=p,E.createElement(p8,{match:f,routeContext:{outlet:p,matches:v,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?E.createElement(m8,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:N(),routeC
543ontext:{outlet:null,matches:v,isDataRoute:!0}}):N()},null)}var $A=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})($A||{}),zA=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(zA||{});function y8(e){let t=E.useContext(i0);return t||en(!1),t}function x8(e){let t=E.useContext(i8);return t||en(!1),t}function v8(e){let t=E.useContext(Gs);return t||en(!1),t}function HA(e){let t=v8(),n=t.matches[t.matches.length-1];return n.route.id||en(!1),n.route.id}function b8(){var e;let t=E.useContext(UA),n=x8(),s=HA();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function w8(){let{router:e}=y8($A.UseNavigateStable),t=HA(zA.UseNavigateStable),n=E.useRef(!1);return qA(()=>{n.current=!0}),E.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Hu({fromRouteId:t},o)))},[e,t])}const vS={};function j8(e,t,n){vS[e]||(vS[e]=!0)}function N8(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function S8(e){let{to:t,replace:n,state:s,relative:i}=e;uc()||en(!1);let{future:o,static:l}=E.useContext(Io),{matches:c}=E.useContext(Gs),{pathname:d}=_i(),h=o0(),p=s0(t,r0(c,o.v7_relativeSplatPath),d,i==="path"),f=JSON.stringify(p);return E.useEffect(()=>h(JSON.parse(f),{replace:n,state:s,relative:i}),[h,f,i,n,s]),null}function WA(e){return c8(e.context)}function $e(e){en(!1)}function _8(e){let{basename:t="/",children:n=null,location:s,navigationType:i=xo.Pop,navigator:o,static:l=!1,future:c}=e;uc()&&en(!1);let d=t.replace(/^\/*/,"/"),h=E.useMemo(()=>({basename:d,navigator:o,static:l,future:Hu({v7_relativeSplatPath:!1},c)}),[d,c,o,l]);typeof s=="string"&&(s=cc(s));let{pathname:p="/",search:f="",hash:m="",state:g=null,key:j="default"}=s,b=E.useMemo(()=>{let x=n0(p,d);return x==null?null:{location:{pathname:x,search:f,hash:m,state:g,key:j},navigationType:i}},[d,p,f,m,g,j,i]);return b==null?null:E.createElement(Io.Provider,{value:h},E.createElement(ym.Provider,{children:n,value:b}))}function bS(e){let{children:t,location:n}=e;return u8(Wv(t),n)}new Promise(()=>{});function Wv(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(s,i)=>{if(!E.isValidElement(s))return;let o=[...t,i];if(s.type===E.Fragment){n.push.apply(n,Wv(s.props.children,o));return}s.type!==$e&&en(!1),!s.props.index||!s.props.children||en(!1);let l={id:s.props.id||o.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(l.children=Wv(s.props.children,o)),n.push(l)}),n}/**
544 * React Router DOM v6.30.3
545 *
546 * Copyright (c) Remix Software Inc.
547 *
548 * This source code is licensed under the MIT license found in the
549 * LICENSE.md file in the root directory of this source tree.
550 *
551 * @license MIT
552 */function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Gv.apply(this,arguments)}function k8(e,t){if(e==null)return{};var n={},s=Object.keys(e),i,o;for(o=0;o<s.length;o++)i=s[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function E8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function C8(e,t){return e.button===0&&(!t||t==="_self")&&!E8(e)}function Yv(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let s=e[n];return t.concat(Array.isArray(s)?s.map(i=>[n,i]):[[n,s]])},[]))}function T8(e,t){let n=Yv(e);return t&&t.forEach((s,i)=>
552{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const A8=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],O8="6";try{window.__reactRouterVersion=O8}catch{}const R8="startTransition",wS=fm[R8];function P8(e){let{basename:t,children:n,future:s,window:i}=e,o=E.useRef();o.current==null&&(o.current=RB({window:i,v5Compat:!0}));let l=o.current,[c,d]=E.useState({action:l.action,location:l.location}),{v7_startTransition:h}=s||{},p=E.useCallback(f=>{h&&wS?wS(()=>d(f)):d(f)},[d,h]);return E.useLayoutEffect(()=>l.listen(p),[l,p]),E.useEffect(()=>N8(s),[s]),E.createElement(_8,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l,future:s})}const D8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",I8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Me=E.forwardRef(function(t,n){let{onClick:s,relative:i,reloadDocument:o,replace:l,state:c,target:d,to:h,preventScrollReset:p,viewTransition:f}=t,m=k8(t,A8),{basename:g}=E.useContext(Io),j,b=!1;if(typeof h=="string"&&I8.test(h)&&(j=h,D8))try{let S=new URL(window.location.href),w=h.startsWith("//")?new URL(S.protocol+h):new URL(h),k=n0(w.pathname,g);w.origin===S.origin&&k!=null?h=k+w.search+w.hash:b=!0}catch{}let x=o8(h,{relative:i}),v=L8(h,{replace:l,state:c,target:d,preventScrollReset:p,relative:i,viewTransition:f});function N(S){s&&s(S),S.defaultPrevented||v(S)}return E.createElement("a",Gv({},m,{href:j||x,onClick:b||o?s:N,ref:n,target:d}))});var jS;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jS||(jS={}));var NS;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(NS||(NS={}));function L8(e,t){let{target:n,replace:s,state:i,preventScrollReset:o,relative:l,viewTransition:c}=t===void 0?{}:t,d=o0(),h=_i(),p=VA(e,{relative:l});return E.useCallback(f=>{if(C8(f,n)){f.preventDefault();let m=s!==void 0?s:Ih(h)===Ih(p);d(e,{replace:m,state:i,preventScrollReset:o,relative:l,viewTransition:c})}},[h,d,p,s,i,n,e,o,l,c])}function M8(e){let t=E.useRef(Yv(e)),n=E.useRef(!1),s=_i(),i=E.useMemo(()=>T8(s.search,n.current?null:t.current),[s.search]),o=o0(),l=E.useCallback((c,d)=>{const h=Yv(typeof c=="function"?c(i):c);n.current=!0,o("?"+h,d)},[o,i]);return[i,l]}function GA(e,t){return function(){return e.apply(t,arguments)}}const{toString:F8}=Object.prototype,{getPrototypeOf:Eo}=Object,{iterator:xd,toStringTag:YA}=Symbol,Wu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),KA=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),JA=(e,t,n)=>e===Object.prototype||!n&&t===null,B8=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(KA(n))return!1;const s=Object.getOwnPropertyDescriptor(e,n);return!!s&&s.configurable&&s.writable===!0})},Gu=(e,t)=>{let n=e;const s=[];for(;n!=null;){if(s.indexOf(n)!==-1)return!1;s.push(n);const i=Eo(n);if(JA(n,i,n===e))return!1;if(Wu(n,t))return!0;n=i}return!1},U8=(e,t)=>e!=null&&Gu(e,t)?e[t]:void 0,q8=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=Eo(e);if(t===null&&B8(e))return e;const n=Object.create(null),s=Object.create(null),i=[];let o=e;for(;o!=null&&i.indexOf(o)===-1;){i.push(o);const l=o===e?t:Eo(o);if(JA(o,l,o===e))break;const c=Object.getOwnPropertyNames(o);Object.getOwnPropertySymbols&&c.push(...Object.getOwnPropertySymbols(o));for(const d of c)KA(d)||Wu(s,d)||(n[d]=e[d],s[d]=!0);o=l}return n},a0=(e=>t=>{const n=F8.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Qr=e=>(e=e.toLowerCase(),t=>a0(t)===e),vm=e=>t=>typeof t===e,{isArray:Da}=Array,Ia=vm("undefined");function dc(e){return e!==null&&!Ia(e)&&e.constructor!==null&&!Ia(e.constructor)&&fr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const QA=Qr("ArrayBuffer");function V8(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&QA(e.buffer),t}
vendor: 15,739 bytes, lines 552-554
552const $8=vm("string"),fr=vm("function"),XA=vm("number"),fc=e=>e!==null&&typeof e=="object",z8=e=>e===!0||e===!1,gh=e=>{if(!fc(e))return!1;const t=Eo(e);return(t===null||t===Object.prototype||Eo(t)===null)&&!Gu(e,YA)&&!Gu(e,xd)},H8=e=>{if(!fc(e)||dc(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},W8=Qr("Date"),G8=Qr("File"),Y8=e=>!!(e&&typeof e.uri<"u"),K8=e=>e&&typeof e.getParts<"u",J8=Qr("Blob"),Q8=Qr("FileList"),X8=Qr("Set"),Z8=e=>fc(e)&&fr(e.pipe);function eU(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const SS=eU(),_S=typeof SS.FormData<"u"?SS.FormData:void 0,tU=e=>{if(!e)return!1;if(_S&&e instanceof _S)return!0;const t=Eo(e);if(!t||t===Object.prototype||!fr(e.append))return!1;const n=a0(e);return n==="formdata"||n==="object"&&fr(e.toString)&&e.toString()==="[object FormData]"},nU=Qr("URLSearchParams"),[rU,sU,iU,oU]=["ReadableStream","Request","Response","Headers"].map(Qr),aU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),Da(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{if(dc(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),l=o.length;let c;for(s=0;s<l;s++)c=o[s],t.call(null,e[c],c,e)}}function ZA(e,t){if(dc(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const ca=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eO=e=>!Ia(e)&&e!==ca;function Kv(...e){const{caseless:t,skipUndefined:n}=eO(this)&&this||{},s={},i=(o,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const c=t&&typeof l=="string"&&ZA(s,l)||l,d=Wu(s,c)?s[c]:void 0;gh(d)&&gh(o)?s[c]=Kv(d,o):gh(o)?s[c]=Kv({},o):Da(o)?s[c]=o.slice():(!n||!Ia(o))&&(s[c]=o)};for(let o=0,l=e.length;o<l;o++){const c=e[o];if(!c||dc(c)||(vd(c,i),typeof c!="object"||Da(c)))continue;const d=Object.getOwnPropertySymbols(c);for(let h=0;h<d.length;h++){const p=d[h];vU.call(c,p)&&i(c[p],p)}}return s}const lU=(e,t,n,{allOwnKeys:s}={})=>(vd(t,(i,o)=>{n&&fr(i)?Object.defineProperty(e,o,{__proto__:null,value:GA(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),cU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uU=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},dU=(e,t,n,s)=>{let i,o,l;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)l=i[o],(!s||s(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&Eo(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},fU=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},hU=e=>{if(!e)return null;if(Da(e))return e;let t=e.length;if(!XA(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mU=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Eo(Uint8Array)),pU=(e,t)=>{const s=(e&&e[xd]).call(e);let i;for(;(i=s.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},gU=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},yU=Qr("HTMLFormElement"),xU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),{propertyIsEnumerable:vU}=Object.prototype,bU=Qr("RegExp"),tO=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};vd(n,(i,o)=>{let l;(l=t(i,o,e))!==!1&&(s[o]=l||i)}),Object.defineProperties(e,s)},wU=e=>{tO(e,(t,n)=>{if(fr(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if(fr(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jU=(e,t)=>{const n={},s=i=>{i.forEach(o=>{n[o]=!0})};return Da(e)?s(e):s(String(e).split(t)),n},NU=()=>{},SU=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function _U(e){return!!(e&&fr(e.append)&&e[YA]==="FormData"&&e[xd])}const kU=e=>{const t=new WeakSet,n=s=>{if(fc(s)){if(t.has(s))return;if(dc(s))return s;if(!("toJSON"in s)){t.add(s);let i;if(X8(s)){i=[];for(const o of s){const l=n(o);!Ia(l)&&i.push(l)}}else i=Da(s)?[]:{},vd(s,(o,l)=>{const c=n(o);!Ia(c)&&(i[l]=c)});return t.delete(s),i}}return s};return n(e)},EU=Qr("AsyncFunction"),CU=e=>e&&(fc(e)||fr(e))&&fr(e.then)&&fr(e.catch),nO=((e,t)=>e?setImmediate:t?((n,s)=>(ca.addEventListener("message",({source:i,data:o})=>{i===ca&&o===n&&s.length&&s.shift()()},!1),i=>{s.push(i),ca.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",fr(ca.postMessage)),TU=typeof queueMicrotask<"u"?queueMicrotask.bind(ca):typeof process<"u"&&process.nextTick||nO,rO=e=>e!=null&&fr(e[xd]),AU=e=>e!=null&&Gu(e,xd)&&rO(e),ae={isArray:Da,isArrayBuffer:QA,isBuffer:dc,isFormData:tU,isArrayBufferView:V8,isString:$8,isNumber:XA,isBoolean:z8,isObject:fc,isPlainObject:gh,isEmptyObject:H8,isReadableStream:rU,isRequest:sU,isResponse:iU,isHeaders:oU,isUndefined:Ia,isDate:W8,isFile:G8,isReactNativeBlob:Y8,isReactNative:K8,isBlob:J8,isRegExp:bU,isFunction:fr,isStream:Z8,isURLSearchParams:nU,isTypedArray:mU,isFileList:Q8,forEach:vd,merge:Kv,extend:lU,trim:aU,stripBOM:cU,inherits:uU,toFlatObject:dU,kindOf:a0,kindOfTest:Qr,endsWith:fU,toArray:hU,forEachEntry:pU,matchAll:gU,isHTMLForm:yU,hasOwnProperty:Wu,hasOwnProp:Wu,hasOwnInPrototypeChain:Gu,getSafeProp:U8,toSafeFlatObject:q8,reduceDescriptors:tO,freezeMethods:wU,toObjectSet:jU,toCamelCase:xU,noop:NU,toFiniteNumber:SU,findKey:ZA,global:ca,isContextDefined:eO,isSpecCompliantForm:_U,toJSONObject:kU,isAsyncFn:EU,isThenable:CU,setImmediate:nO,asap:TU,isIterable:rO,isSafeIterable:AU},OU=ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),RU=e=>{const t={};let n,s,i;return e&&e.split(`
553`).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),s=l.substring(i+1).trim();const c=ae.hasOwnProp(t,n);!n||c&&ae.hasOwnProp(OU,n)||(n==="set-cookie"?c?t[n].push(s):t[n]=[s]:t[n]=c?t[n]+", "+s:s)}),t};function PU(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const DU=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),IU=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function l0(e,t){return ae.isArray(e)?e.map(n=>l0(n,t)):PU(String(e).replace(t,""))}const LU=e=>l0(e,DU),MU=e=>l0(e,IU);function sO(e){const t=Object.create(null);return ae.forEach(e.toJSON(),(n,s)=>{t[s]=MU(n)}),t}const kS=Symbol("internals");function cu(e){return e&&String(e).trim().toLowerCase()}function yh(e){return e===!1||e==null?e:ae.isArray(e)?e.map(yh):LU(String(e))}function FU(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const BU=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Wg(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function UU(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let s=1;s<t;s++){const i=e.charCodeAt(s);if(i===34||i===92&&(s+=1,s>=t))return e;n+=e[s]}return n}function qU(e){const t=Object.create(null),n=String(e);let s=0,i=!1,o=!1;function l(c){const d=Wg(n.slice(s,c)),h=d.indexOf("=");if(h<1)return;const p=Wg(d.slice(0,h));if(!BU.test(p))return;const f=p.toLowerCase();if(f==="__proto__"||f==="constructor"||f==="prototype")return;const m=Wg(d.slice(h+1));t[f]=UU(m)}for(let c=0;c<n.length;c++){const d=n.charCodeAt(c);i?o?o=!1:d===92?o=!0:d===34&&(i=!1):d===34?i=!0:(d===44||d===59)&&(l(c),s=c+1)}return l(n.length),t}const VU=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Gg(e,t,n,s,i){if(ae.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!ae.isString(t)){if(ae.isString(s))return t.indexOf(s)!==-1;if(ae.isRegExp(s))return s.test(t)}}function $U(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function zU(e,t){const n=ae.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(i,o,l){return this[s].call(this,t,i,o,l)},configurable:!0})})}let qn=class{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function o(c,d,h){const p=cu(d);if(!p)return;const f=ae.findKey(i,p);(!f||i[f]===void 0||h===!0||h===void 0&&i[f]!==!1)&&(i[f||d]=yh(c))}const l=(c,d)=>ae.forEach(c,(h,p)=>o(h,p,d));if(ae.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ae.isString(t)&&(t=t.trim())&&!VU(t))l(RU(t),n);else if(ae.isObject(t)&&ae.isSafeIterable(t)){let c=Object.create(null),d,h;for(const p of t){if(!ae.isArray(p))throw new TypeError("Object iterator must return a key-value pair");h=p[0],ae.hasOwnProp(c,h)?(d=c[h],c[h]=ae.isArray(d)?[...d,p[1]]:[d,p[1]]):c[h]=p[1]}l(c,n)}else t!=null&&o(n,t,s);return this}get(t,n){if(t=cu(t),t){const s=ae.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return FU(i);if(ae.isFunction(n))return n.call(this,i,s);if(ae.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=cu(t),t){const s=ae.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Gg(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function o(l){if(l=cu(l),l){const c=ae.findKey(s,l);c&&(!n||Gg(s,s[c],c,n))&&(delete s[c],i=!0)}}return ae.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const o=n[s];(!t||Gg(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,s={};return ae.forEach(this,(i,o)=>{const l=ae.findKey(s,o);if(l){n[l]=yh(i),delete n[o];return}const c=t?$U(o):String(o).trim();c!==o&&delete n[o],n[c]=yh(i),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ae.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&ae.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
554`)}getSetCookie(){const t=this.get("set-cookie");return ae.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return qU(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[kS]=this[kS]={accessors:{}}).accessors,i=this.prototype;function o(l){const c=cu(l);s[c]||(zU(i,l),s[c]=!0)}return ae.isArray(t)?t.forEach(o):o(t),this}};qn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ae.reduceDescriptors(qn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});ae.freezeMethods(qn);const Lh="[REDACTED ****]";function HU(e){if(ae.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ae.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function WU(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),s=[],i=o=>{if(o===null||typeof o!="object"||ae.isBuffer(o))return o;if(s.indexOf(o)!==-1)return;o instanceof qn&&(o=o.toJSON()),s.push(o);let l;if(ae.isArray(o))l=[],o.forEach((c,d)=>{const h=i(c);ae.isUndefined(h)||(l[d]=h)});else{if(!ae.isPlainObject(o)&&HU(o))return s.pop(),o;l=Object.create(null);for(const[c,d]of Object.entries(o)){const h=n.has(c.toLowerCase())?Lh:i(d);ae.isUndefined(h)||(l[c]=h)}}return s.pop(),l};return i(e)}function ES(e){try{return String(e)}catch{return""}}function GU(e){return e.errors.map(n=>{try{return n&&n.message?ES(n.message):ES(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let Ie=class iO extends Error{static from(t,n,s,i,o,l){let c=t.message;!c&&ae.isArray(t.errors)&&t.errors.length&&(c=GU(t));const d=new iO(c,n||t.code,s,i,o);return Object.defineProperty(d,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),d.name=t.name,t.status!=null&&d.status==null&&(d.status=t.status),l&&Object.assign(d,l),d}constructor(t,n,s,i,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&ae.hasOwnProp(t,"redact")?t.redact:void 0,s=ae.isArray(n)&&n.length>0?WU(t,n):ae.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};Ie.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ie.ERR_BAD_OPTION="ERR_BAD_OPTION";Ie.ECONNABORTED="ECONNABORTED";Ie.ETIMEDOUT="ETIMEDOUT";Ie.ECONNREFUSED="ECONNREFUSED";Ie.ERR_NETWORK="ERR_NETWORK";Ie.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ie.ERR_DEPRECATED="ERR_DEPRECATED";Ie.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ie.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ie.ERR_CANCELED="ERR_CANCELED";Ie.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ie.ERR_INVALID_URL="ERR_INVALID_URL";Ie.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const YU=null,oO=100;function Jv(e){return ae.isPlainObject(e)||ae.isArray(e)}function aO(e){return ae.endsWith(e,"[]")?e.slice(0,-2):e}function Yg(e,t,n){return e?e.concat(t).map(function(i,o){return i=aO(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function KU(e){return ae.isArray(e)&&!e.some(Jv)}const JU=ae.toFlatObject(ae,{},null,function(t){return/^is[A-Z]/.test(t)});function bm(e,t,n){if(!ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const s=(N,S)=>{const w=ae.getSafeProp(n,N);return ae.isUndefined(w)?S:w},i=s("metaTokens",!0),o=s("visitor")||b,l=s("dots",!1),c=s("indexes",!1),d=s("Blob")||typeof Blob<"u"&&Blob,h=s("maxDepth",oO),p=d&&ae.isSpecCompliantForm(t),f=[];if(!ae.isFunction(o))throw new TypeError("visitor must be a function");function m(N){if(N===null)return"";if(ae.isDate(N))return N.toISOString();if(ae.isBoolean(N))return N.toString();if(!p&&ae.isBlob(N))throw new Ie("Blob is not supported. Use a Buffer instead.");if(ae.isArrayBuffer(N)||ae.isTypedArray(N)){if(p&&typeof d=="function")return new d([N]);throw new Ie("Blob is not supported. Use a Buffer instead.",Ie.ERR_NOT_SUPPORT)}return N}function g(N){if(N>h)throw new Ie("Object is too deeply nested ("+N+" levels). Max depth: "+h,Ie.ERR_FORM_DATA_DEPTH_EXCEEDED)}function j(N,S){if(h===1/0)return JSON.stringify(N);const w=[];return JSON.stringify(N,function(O,C){if(!ae.isObject(C))return C;for(;w.length&&w[w.length-1]!==this;)w.pop();return w.push(C),g(S+w.length-1),C})}function b(N,S,w){let k=N;if(ae.isReactNative(t)&&ae.isReactNativeBlob(N))return t.append(Yg(w,S,l),m(N)),!1;if(N&&!w&&typeof N=="object"){if(ae.endsWith(S,"{}"))S=i?S:S.slice(0,-2),N=j(N,1);else if(ae.isArray(N)&&KU(N)||(ae.isFileList(N)||ae.endsWith(S,"[]"))&&(k=ae.toArray(N)))return S=aO(S),k.forEac
554h(function(C,A){!(ae.isUndefined(C)||C===null)&&t.append(c===!0?Yg([S],A,l):c===null?S:S+"[]",m(C))}),!1}return Jv(N)?!0:(t.append(Yg(w,S,l),m(N)),!1)}const x=Object.assign(JU,{defaultVisitor:b,convertValue:m,isVisitable:Jv});function v(N,S,w=0){if(!ae.isUndefined(N)){if(g(w),f.indexOf(N)!==-1)throw new Error("Circular reference detected in "+S.join("."));f.push(N),ae.forEach(N,function(O,C){(!(ae.isUndefined(O)||O===null)&&o.call(t,O,ae.isString(C)?C.trim():C,S,x))===!0&&v(O,S?S.concat(C):[C],w+1)}),f.pop()}}if(!ae.isObject(e))throw new TypeError("data must be an object");return v(e),t}function CS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function c0(e,t){this._pairs=[],e&&bm(e,this,t)}const lO=c0.prototype;lO.append=function(t,n){this._pairs.push([t,n])};lO.toString=function(t){const n=t?s=>t.call(this,s,CS):CS;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function QU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function cO(e,t,n){if(!t)return e;e=e||"";const s=ae.isFunction(n)?{serialize:n}:n,i=ae.getSafeProp(s,"encode")||QU,o=ae.getSafeProp(s,"serialize");let l;if(o?l=o(t,s):l=ae.isURLSearchParams(t)?t.toString():new c0(t,s).toString(i),l){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}const uu=Symbol("internals");function uO(e){return e?e.length:0}function TS(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function du(e,t){const n=e.handlers,s=uO(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):s!==t.handlersLength&&(s?t.handlerEntries.forEach(function(o,l){n[o.index]!==o.handler&&t.handlerEntries.delete(l)}):t.handlerEntries.clear()),t.handlersLength=s}class AS{constructor(){this.handlers=[],this[uu]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,s){const i={fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null},o=this[uu];this.handlers==null&&(this.handlers=[]),du(this,o);const l=o.nextId++;return this.handlers.push(i),o.handlerEntries.set(l,{handler:i,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,l}eject(t){const n=this[uu];du(this,n);const s=n.handlerEntries.get(t);if(s){if(n.handlerEntries.delete(t),this.handlers[s.index]!==s.handler)return;this.handlers[s.index]=null,n.iterationDepth||(TS(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],du(this,this[uu]))}forEach(t){const n=this[uu];du(this,n),n.iterationDepth++;try{ae.forEach(this.handlers,function(i){i!==null&&t(i)})}finally{--n.iterationDepth||(du(this,n),TS(this.handlers),n.handlersLength=uO(this.handlers))}}}const u0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},XU=typeof URLSearchParams<"u"?URLSearchParams:c0,ZU=typeof FormData<"u"?FormData:null,eq=typeof Blob<"u"?Blob:null,tq={isBrowser:!0,classes:{URLSearchParams:XU,FormData:ZU,Blob:eq},protocols:["http","https","file","blob","url","data"]},d0=typeof window<"u"&&typeof document<"u",Qv=typeof navigator=="object"&&navigator||void 0,nq=d0&&(!Qv||["ReactNative","NativeScript","NS"].indexOf(Qv.product)<0),rq=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sq=d0&&window.location.href||"http://localhost",iq=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:d0,hasStandardBrowserEnv:nq,hasStandardBrowserWebWorkerEnv:rq,navigator:Qv,origin:sq},Symbol.toStringTag,{value:"Module"})),bn={...iq,...tq};function oq(e,t){return bm(e,new bn.classes.URLSearchParams,{visitor:function(n,s,i,o){return bn.isNode&&ae.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const OS=oO;function dO(e){if(e>OS)throw new Ie("FormData field is too deeply nested ("+e+" levels). Max depth: "+OS,Ie.ERR_FORM_DATA_DEPTH_EXCEEDED)}function aq(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let s;for(;(s=n.exec(e))!==null;)dO(t.length),t.push(s[0]==="[]"?"":s[1]||s[0]);return t}function lq(e){const t={},n=Object.keys(e);let s;const i=n.length;let o;for(s=0;s<i;s++)o=n[s],t[o]=e[o];return t}function fO(e){function t(n,s,i,o){dO(o);let l=n[o++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),d=o>=n.length;
vendor: 8,074 bytes, line 554
554return l=!l&&ae.isArray(i)?i.length:l,d?(ae.hasOwnProp(i,l)?i[l]=ae.isArray(i[l])?i[l].concat(s):[i[l],s]:i[l]=s,!c):((!ae.hasOwnProp(i,l)||!ae.isObject(i[l]))&&(i[l]=[]),t(n,s,i[l],o)&&ae.isArray(i[l])&&(i[l]=lq(i[l])),!c)}if(ae.isFormData(e)&&ae.isFunction(e.entries)){const n={};return ae.forEachEntry(e,(s,i)=>{t(aq(s),i,n,0)}),n}return null}const hO=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),xl=(e,t)=>e!=null&&ae.hasOwnProp(e,t)?e[t]:void 0;function cq(e,t,n){if(ae.isString(e))try{return(t||JSON.parse)(e),ae.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const bd={transitional:u0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,o=ae.isObject(t);if(o&&ae.isHTMLForm(t)&&(t=new FormData(t)),ae.isFormData(t))return i?JSON.stringify(fO(t)):t;if(ae.isArrayBuffer(t)||ae.isBuffer(t)||ae.isStream(t)||ae.isFile(t)||ae.isBlob(t)||ae.isReadableStream(t))return t;if(ae.isArrayBufferView(t))return t.buffer;if(ae.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){const d=xl(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return oq(t,d).toString();if((c=ae.isFileList(t))||s.indexOf("multipart/form-data")>-1){const h=xl(this,"env"),p=h&&h.FormData;return bm(c?{"files[]":t}:t,p&&new p,d)}}return o||i?(n.setContentType("application/json",!1),cq(t)):t}],transformResponse:[function(t){const n=xl(this,"transitional")||bd.transitional,s=n&&n.forcedJSONParsing,i=xl(this,"responseType"),o=i==="json";if(ae.isResponse(t)||ae.isReadableStream(t))return t;if(t&&ae.isString(t)&&(s&&!i||o)){const c=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,xl(this,"parseReviver"))}catch(d){if(c)throw d.name==="SyntaxError"?Ie.from(d,Ie.ERR_BAD_RESPONSE,this,null,xl(this,"response")):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bn.classes.FormData,Blob:bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ae.forEach(hO,e=>{bd.headers[e]={}});function Kg(e,t){const n=this||bd,s=t||n,i=qn.from(s.headers);let o=s.data;return ae.forEach(e,function(c){o=c.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function mO(e){return!!(e&&e.__CANCEL__)}let wd=class extends Ie{constructor(t,n,s){super(t??"canceled",Ie.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function pO(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Ie("Request failed with status code "+n.status,n.status>=400&&n.status<500?Ie.ERR_BAD_REQUEST:Ie.ERR_BAD_RESPONSE,n.config,n.request,n))}const uq=/[\t\n\r]/g;function gO(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(uq,"")}function Jg(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function dq(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,o=0,l;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),p=s[o];l||(l=h),n[i]=d,s[i]=h;let f=o,m=0;for(;f!==i;)m+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),h-l<t)return;const g=p&&h-p;return g?Math.round(m*1e3/g):void 0}}function fq(e,t){let n=0,s=1e3/t,i,o;const l=(p,f=Date.now())=>{n=f,i=null,o&&(clearTimeout(o),o=null),e(...p)};return[(...p)=>{const f=Date.now(),m=f-n;m>=s?l(p,f):(i=p,o||(o=setTimeout(()=>{o=null,l(i)},s-m)))},()=>i&&l(i),(...p)=>l(p)]}const Mh=(e,t,n=3)=>{let s=0;const i=dq(50,250);return fq(o=>{if(!o||!ae.isNumber(o.loaded))return;const l=o.loaded,c=o.lengthComputable?o.total:void 0,d=Math.max(0,c!=null?Math.min(l,c):l),h=Math.max(0,d-s),p=i(h);s=Math.max(s,d);const f={loaded:d,total:c,progress:c?d/c:void 0,bytes:h,rate:p||void 0,estimated:p&&c?(c-d)/p:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(f)},n)},RS=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},PS=(e,t=ae.asap)=>(...n)=>t(()=>e(...n)),hq=bn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,bn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(bn.origin),bn.navigator&&/(msie|trident)/i.test(bn.navigator.userAgent)):()=>!0,mq=bn.hasStandardBrowserEnv?{write(e,t,n,s,i,o,l){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];ae.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),ae.isString(s)&&c.push(`path=${s}`),ae.isString(i)&&c.push(`domain=${i}`),o===!0&&c.push("secure"),ae.isString(l)&&c.push(`SameSite=${l}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const s=t[n].replace(/^\s+/,""),i=s.indexOf("=");if(i!==-1&&s.slice(0,i)===e)try{return decodeURIComponent(s.slice(i+1))}catch{return s.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function pq(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gq(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const yq=/^https?:(?!\/\/)/i;function xq(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,s="")=>`${n}${s}${Lh}`)}function vq(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Lh}@`),n=t.indexOf("#"),i=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Lh}`);return n===-1?i:`${i}#${xq(t.slice(n+1))}`}function DS(e,t){if(typeof e=="string"){const n=gO(e);if(yq.test(n))throw new Ie(`Invalid URL ${JSON.stringify(vq(n))}: missing "//" after protocol`,Ie.ERR_INVALID_URL,t)}}function yO(e,t,n,s){DS(t,s);let i=!pq(t);return e&&(i||n===!1)?(DS(e,s),gq(e,t)):t}const IS=e=>e instanceof qn?{...e}:e,bq=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function La(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(p,f,m,g){return ae.isPlainObject(p)&&ae.isPlainObject(f)?ae.merge.call({caseless:g},p,f):ae.isPlainObject(f)?ae.merge({},f):ae.isArray(f)?f.slice():f}function i(p,f,m,g){if(ae.isUndefined(f)){if(!ae.isUndefined(p))return s(void 0,p,m,g)}else return s(p,f,m,g)}function o(p,f){if(!ae.isUndefined(f))return s(void 0,f)}function l(p,f){if(ae.isUndefined(f)){if(!ae.isUndefined(p))return s(void 0,p)}else return s(void 0,f)}function c(p){const f=ae.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ae.isUndefined(f))if(ae.isPlainObject(f)){if(ae.hasOwnProp(f,p))return f[p]}else return;const m=ae.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ae.isPlainObject(m)&&ae.hasOwnProp(m,p))return m[p]}function d(p,f,m){if(ae.hasOwnProp(t,m))return s(p,f);if(ae.hasOwnProp(e,m))return s(void 0,p)}const h={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutErrorMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:d,headers:(p,f,m)=>i(IS(p),IS(f),m,!0)};return ae.forEach(bq({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const m=ae.hasOwnProp(h,f)?h[f]:i,g=ae.hasOwnProp(e,f)?e[f]:void 0,j=ae.hasOwnProp(t,f)?t[f]:void 0,b=m(g,j,f);ae.isUndefined(b)&&m!==d||(n[f]=b)}),ae.hasOwnProp(t,"validateStatus")&&ae.isUndefined(t.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(ae.hasOwnProp(e,"validateStatus")?n.validateStatus=s(void 0,e.validateStatus):delete n.val
554idateStatus),n}const wq=["content-type","content-length"];function jq(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([s,i])=>{wq.includes(s.toLowerCase())&&e.set(s,i)})}const Nq=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function xO(e){const t=La({},e),n=m=>ae.hasOwnProp(t,m)?t[m]:void 0,s=n("data");let i=n("withXSRFToken");const o=n("xsrfHeaderName"),l=n("xsrfCookieName");let c=n("headers");const d=n("auth"),h=n("baseURL"),p=n("allowAbsoluteUrls"),f=n("url");if(t.headers=c=qn.from(c),t.url=cO(yO(h,f,p,t),n("params"),n("paramsSerializer")),d){const m=ae.getSafeProp(d,"username")||"",g=ae.getSafeProp(d,"password")||"";try{c.set("Authorization","Basic "+btoa(m+":"+(g?Nq(g):"")))}catch(j){throw Ie.from(j,Ie.ERR_BAD_OPTION_VALUE,e)}}if(ae.isFormData(s)){const m=ae.getSafeProp(s,"getHeaders");bn.hasStandardBrowserEnv||bn.hasStandardBrowserWebWorkerEnv||ae.isReactNative(s)?c.setContentType(void 0):ae.isFunction(m)&&jq(c,m.call(s),n("formDataHeaderPolicy"))}if(bn.hasStandardBrowserEnv&&(ae.isFunction(i)&&(i=i(t)),i===!0||i==null&&hq(t.url))){const g=o&&l&&mq.read(l);g&&c.set(o,g)}return t}const Sq=typeof XMLHttpRequest<"u",_q=Sq&&function(e){return new Promise(function(n,s){const i=xO(e);let o=i.data;const l=qn.from(i.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:h}=i,p,f,m,g,j,b;function x(){g&&g(),j&&j(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function N(w){if(!v)return;if(v.status===0&&(Jg(gO(i.url))||Jg(bn.origin))!=="file"&&!(v.responseURL&&v.responseURL.startsWith("file:"))){s(new Ie("Request aborted",Ie.ECONNABORTED,e,v)),x(),v=null;return}try{w?b&&b(w):j&&j()}catch(A){setTimeout(()=>{throw A})}if(!v)return;const k=qn.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),C={data:!c||c==="text"||c==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:k,config:e,request:v};pO(function(B){n(B),x()},function(B){s(B),x()},C),v=null}"onloadend"in v?v.onloadend=N:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.startsWith("file:"))||setTimeout(N)},v.onabort=function(){v&&(s(new Ie("Request aborted",Ie.ECONNABORTED,e,v)),x(),v=null)},v.onerror=function(k){const O=k&&k.message?k.message:"Network Error",C=new Ie(O,Ie.ERR_NETWORK,e,v);C.event=k||null,s(C),x(),v=null},v.ontimeout=function(){let k=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const O=i.transitional||u0;i.timeoutErrorMessage&&(k=i.timeoutErrorMessage),s(new Ie(k,O.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,e,v)),x(),v=null},o===void 0&&l.setContentType(null),"setRequestHeader"in v&&ae.forEach(sO(l),function(k,O){v.setRequestHeader(O,k)}),ae.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),c&&c!=="json"&&(v.responseType=i.responseType),h&&([m,j,b]=Mh(h,!0),v.addEventListener("progress",m)),d&&v.upload&&([f,g]=Mh(d),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(p=w=>{v&&(s(!w||w.type?new wd(null,e,v):w),v.abort(),x(),v=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const S=Jg(i.url);if(S&&!bn.protocols.includes(S)){s(new Ie("Unsupported protocol "+S+":",Ie.ERR_BAD_REQUEST,e)),x();return}v.send(o||null)})},kq=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const i=function(d){if(!s){s=!0,l();const h=d instanceof Error?d:this.reason;n.abort(h instanceof Ie?h:new wd(h instanceof Error?h.message:h))}};let o=t&&setTimeout(()=>{o=null,i(new Ie(`timeout of ${t}ms exceeded`,Ie.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),e=null)};e.forEach(d=>{if(!s){if(d.aborted){i.call(d);return}d.addEventListener("abort",i,{once:!0})}});const{signal:c}=n;return c.unsubscribe=()=>ae.asap(l),c},Eq=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,i;for(;s<n;)i=s+t,yield e.slice(s,i),s=i},Cq=async function*(e,t){for await(const n of Tq(e))yield*Eq(n,t)},Tq=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},LS=(e,t,n,s)=>{const i=Cq(e,t);let o=0,l,c=d=>{l||(l=!0,s&&s(d))};return new ReadableStream({async pull(d){try{const{done:h,value:p}=await i.next();if(h){c(),d.close();return}let f=p.byteLength;if(n){let m=o+=f;n(m)}d.enqueue(new Uint8Array(p))}catch(h){throw c(h),h}},cancel(d){return c(d),i.return()}},{highWaterMark:2})},MS=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,vO=(e,t,n)=>t+2<n&&MS(e.charCodeAt(t+1))&&MS(e.charCodeAt(t+2)),FS=e=>e<=57?e-48:(e&223)-55,Aq=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Oq=e=>e===9||e===10||e===12||e===13||e===32,Rq=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Pq=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Dq=e=>{const t=e.length;let n=0,s=0,i=!1;for(let o=0;o<t;o++){let l=e.charCodeAt(o);if(l===37&&vO(e,o,t)&&(l=FS(e.charCodeAt(o+1))*16+FS(e.charCodeAt(o+2)),o+=2),!Oq(l)){if(l===61){s++;continue}if(!Aq(l)||s>0){i=!0;continue}n++}}return i||s>2||s>0&&(n+s)%4!==0||n%4===1?Pq(e):Rq(n)},Iq=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const s=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(s))return t(i);let l=0;for(let c=0,d=i.length;c<d;c++){const h=i.charCodeAt(c);if(h===37&&vO(i,c,d))l+=1,c+=2;else if(h<128)l+=1;else if(h<2048)l+=2;else if(h>=55296&&h<=56319&&c+1<d){const p=i.charCodeAt(c+1);p>=56320&&p<=57343?(l+=4,c++):l+=3}else l+=3}return l};function Lq(e){const t=typeof e=="string"?e.indexOf("#"):-1;return Iq(t===-1?e:e.slice(0,t),Dq)}const f0="1.20.0",BS=64*1024,Mq={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Hf}=ae,Fq=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),US=e=>{if(!ae.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},qS=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Bq=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},Uq=e=>{const t=ae.global!==void 0&&ae.global!==null?ae.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=ae.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:o,Response:l}
vendor: 4,374 bytes, line 554
554=e,c=i?Hf(i):typeof fetch=="function",d=Hf(o),h=Hf(l);if(!c)return!1;const p=c&&Hf(n),f=c&&(typeof s=="function"?(v=>N=>v.encode(N))(new s):async v=>new Uint8Array(await new o(v).arrayBuffer())),m=d&&p&&qS(()=>{let v=!1;const N=new o(bn.origin,{body:new n,method:"POST",get duplex(){return v=!0,"half"}}),S=N.headers.has("Content-Type");return N.body!=null&&N.body.cancel(),v&&!S}),g=h&&p&&qS(()=>ae.isReadableStream(new l("").body)),j={stream:g&&(v=>v.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!j[v]&&(j[v]=(N,S)=>{let w=N&&N[v];if(w)return w.call(N);throw new Ie(`Response type '${v}' is not supported`,Ie.ERR_NOT_SUPPORT,S)})});const b=async v=>{if(v==null)return 0;if(ae.isBlob(v))return v.size;if(ae.isSpecCompliantForm(v))return(await new o(bn.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(ae.isArrayBufferView(v)||ae.isArrayBuffer(v))return v.byteLength;if(ae.isURLSearchParams(v)&&(v=v+""),ae.isString(v))return(await f(v)).byteLength},x=async(v,N)=>{const S=ae.toFiniteNumber(v.getContentLength());return S??b(N)};return async v=>{let{url:N,method:S,data:w,signal:k,cancelToken:O,timeout:C,onDownloadProgress:A,onUploadProgress:B,responseType:I,headers:L,withCredentials:D="same-origin",fetchOptions:R,maxContentLength:U,maxBodyLength:$,maxRedirects:Y}=xO(v);const K=ae.isNumber(U)&&U>-1,Q=ae.isNumber($)&&$>-1,q=G=>ae.hasOwnProp(v,G)?v[G]:void 0;let F=i||fetch;I=I?(I+"").toLowerCase():"text";let P=kq([k,O&&O.toAbortSignal()],C),V=null;const W=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let Z,X=null;const H=()=>new Ie("Request body larger than maxBodyLength limit",Ie.ERR_BAD_REQUEST,v,V);try{let G;const te=q("auth");if(te){const ce=ae.getSafeProp(te,"username")||"",he=ae.getSafeProp(te,"password")||"";G={username:ce,password:he}}if(Bq(N)){const ce=new URL(N,bn.origin);if(!G&&(ce.username||ce.password)){const he=US(ce.username),Ae=US(ce.password);G={username:he,password:Ae}}(ce.username||ce.password)&&(ce.username="",ce.password="",N=ce.href)}if(G&&(L.delete("authorization"),L.set("Authorization","Basic "+btoa(Fq((G.username||"")+":"+(G.password||""))))),K&&typeof N=="string"&&N.startsWith("data:")&&Lq(N)>U)throw new Ie("maxContentLength size of "+U+" exceeded",Ie.ERR_BAD_RESPONSE,v,V);if(Q&&S!=="get"&&S!=="head"){const ce=await b(w);if(typeof ce=="number"&&isFinite(ce)&&(Z=ce,ce>$))throw H()}const re=Q&&(ae.isReadableStream(w)||ae.isStream(w)),ue=(ce,he,Ae)=>LS(ce,BS,J=>{if(Q&&J>$)throw X=H();he&&he(J)},Ae);if(m&&S!=="get"&&S!=="head"&&(B||re)){if(Z=Z??await x(L,w),Z!==0||re){let ce=new o(N,{method:"POST",body:w,duplex:"half"}),he;if(ae.isFormData(w)&&(he=ce.headers.get("content-type"))&&L.setContentType(he),ce.body){const[Ae,J]=B&&RS(Z,Mh(PS(B)))||[];w=ue(ce.body,Ae,J)}}}else if(re&&!d&&p&&S!=="get"&&S!=="head")w=ue(w);else if(re&&d&&!m&&S!=="get"&&S!=="head")throw new Ie("Stream request bodies are not supported by the current fetch implementation",Ie.ERR_NOT_SUPPORT,v,V);ae.isString(D)||(D=D?"include":"omit");const ye=d&&"credentials"in o.prototype;if(ae.isFormData(w)){const ce=L.getContentType();ce&&/^multipart\/form-data/i.test(ce)&&!/boundary=/i.test(ce)&&L.delete("content-type")}L.set("User-Agent","axios/"+f0,!1);const be=R==null?R:Object.assign(Object.create(null),R);be&&(delete be.body,delete be.headers,delete be.method,delete be.signal,delete be.duplex,delete be.credentials);const Te=Object.assign(Object.create(null),be,{signal:P,method:S.toUpperCase(),headers:sO(L.normalize()),body:w,duplex:"half",credentials:ye?D:void 0});d&&(ae.forEach(Mq,(ce,he)=>{Te[he]===void 0&&(Te[he]=ce)}),Te.signal===void 0&&(Te.signal=null),Te.body===void 0&&(Te.body=null)),Y===0&&(Te.redirect="manual",be&&(be.redirect="manual")),V=d&&new o(N,Te);let ie=await(d?F(V,be):F(N,Te));const De=qn.from(ie.headers);if(K){const ce=ae.toFiniteNumber(De.getContentLength());if(ce!=null&&ce>U)throw new Ie("maxContentLength size of "+U+" exceeded",Ie.ERR_BAD_RESPONSE,v,V)}const Ye=g&&(I==="stream"||I==="response");if(g&&ie.body&&(A||K||Ye&&W)){const ce={};["status","statusText","headers"].forEach(je=>{ce[je]=ie[je]});const he=ae.toFiniteNumber(De.getContentLength()),[Ae,J]=A&&RS(he,Mh(PS(A),!0))||[];let ee=0;const de=je=>{if(K&&(ee=je,ee>U))throw new Ie("maxContentLength size of "+U+" exceeded",Ie.ERR_BAD_RESPONSE,v,V);Ae&&Ae(je)};ie=new l(LS(ie.body,BS,de,()=>{J&&J(),W&&W()}),ce)}I=I||"text";
vendor: 4,105 bytes, lines 554-556
554let He=await j[ae.findKey(j,I)||"text"](ie,v);if(K&&!g&&!Ye){let ce;if(He!=null&&(typeof He.byteLength=="number"?ce=He.byteLength:typeof He.size=="number"?ce=He.size:typeof He=="string"&&(ce=typeof s=="function"?new s().encode(He).byteLength:He.length)),typeof ce=="number"&&ce>U)throw new Ie("maxContentLength size of "+U+" exceeded",Ie.ERR_BAD_RESPONSE,v,V)}return!Ye&&W&&W(),await new Promise((ce,he)=>{pO(ce,he,{data:He,headers:qn.from(ie.headers),status:ie.status,statusText:ie.statusText,config:v,request:V})})}catch(G){if(W&&W(),P&&P.aborted&&P.reason instanceof Ie){const te=P.reason;throw te.config=v,V&&(te.request=V),G!==te&&Object.defineProperty(te,"cause",{__proto__:null,value:G,writable:!0,enumerable:!1,configurable:!0}),te}if(X)throw V&&!X.request&&(X.request=V),X;if(G instanceof Ie)throw V&&!G.request&&(G.request=V),G;if(G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)){const te=new Ie("Network Error",Ie.ERR_NETWORK,v,V,G&&G.response);throw Object.defineProperty(te,"cause",{__proto__:null,value:G.cause||G,writable:!0,enumerable:!1,configurable:!0}),te}throw Ie.from(G,G&&G.code,v,V,G&&G.response)}}},qq=new Map,bO=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:i}=t,o=[s,i,n];let l=o.length,c=l,d,h,p=qq;for(;c--;)d=o[c],h=p.get(d),h===void 0&&p.set(d,h=c?new Map:Uq(t)),p=h;return h};bO();const h0={http:YU,xhr:_q,fetch:{get:bO}};ae.forEach(h0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const VS=e=>`- ${e}`,Vq=e=>ae.isFunction(e)||e===null||e===!1;function $q(e,t){e=ae.isArray(e)?e:[e];const{length:n}=e;let s,i;const o={};for(let l=0;l<n;l++){s=e[l];let c;if(i=s,!Vq(s)&&(i=h0[(c=String(s)).toLowerCase()],i===void 0))throw new Ie(`Unknown adapter '${c}'`);if(i&&(ae.isFunction(i)||(i=i.get(t))))break;o[c||"#"+l]=i}if(!i){const l=Object.entries(o).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?l.length>1?`since :
555`+l.map(VS).join(`
556`):" "+VS(l[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+c,Ie.ERR_NOT_SUPPORT)}return i}const wO={getAdapter:$q,adapters:h0};function Qg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wd(null,e)}function Xg(e){const t=ae.toSafeFlatObject(e);return Qg(t),t.headers=qn.from(ae.getSafeProp(t,"headers")),t.data=Kg.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),wO.getAdapter(t.adapter||bd.adapter,t)(t).then(function(i){Qg(t),t.response=i;try{i.data=Kg.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=qn.from(i.headers),i},function(i){if(!mO(i)&&(Qg(t),i&&i.response)){t.response=i.response;try{i.response.data=Kg.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=qn.from(i.response.headers)}return Promise.reject(i)})}const wm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wm[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const $S={};wm.transitional=function(t,n,s){function i(o,l){return"[Axios v"+f0+"] Transitional option '"+o+"'"+l+(s?". "+s:"")}return(o,l,c)=>{if(t===!1)throw new Ie(i(l," has been removed"+(n?" in "+n:"")),Ie.ERR_DEPRECATED);return n&&!$S[l]&&($S[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,c):!0}};wm.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function zq(e,t,n){if(typeof e!="object"||e===null)throw new Ie("options must be an object",Ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const o=s[i],l=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(l){const c=e[o],d=c===void 0||l(c,o,e);if(d!==!0)throw new Ie("option "+o+" must be "+d,Ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ie("Unknown option "+o,Ie.ERR_BAD_OPTION)}}const xh={assertOptions:zq,validators:wm}
vendor: 4,324 bytes, lines 556-560
556,Mn=xh.validators;let Na=class{constructor(t){this.defaults=t||{},this.interceptors={request:new AS,response:new AS}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error)try{let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack;let l="";if(typeof o=="string"){const c=o.indexOf(`
557`);l=c===-1?"":o.slice(c+1)}if(!s.stack)s.stack=l;else if(l){const c=l.indexOf(`
558`),d=c===-1?-1:l.indexOf(`
559`,c+1),h=d===-1?"":l.slice(d+1);String(s.stack).endsWith(h)||(s.stack+=`
560`+l)}}catch{}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=La(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:o}=n;s!==void 0&&xh.assertOptions(s,{silentJSONParsing:Mn.transitional(Mn.boolean),forcedJSONParsing:Mn.transitional(Mn.boolean),clarifyTimeoutError:Mn.transitional(Mn.boolean),legacyInterceptorReqResOrdering:Mn.transitional(Mn.boolean),advertiseZstdAcceptEncoding:Mn.transitional(Mn.boolean),validateStatusUndefinedResolves:Mn.transitional(Mn.boolean)},!1),i!=null&&(ae.isFunction(i)?n.paramsSerializer={serialize:i}:xh.assertOptions(i,{encode:Mn.function,serialize:Mn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xh.assertOptions(n,{baseUrl:Mn.spelling("baseURL"),withXsrfToken:Mn.spelling("withXSRFToken")},!0),n.method=(ae.getSafeProp(n,"method")||ae.getSafeProp(this.defaults,"method")||"get").toLowerCase();let l=o&&ae.merge(o.common,o[n.method]);o&&ae.forEach(hO.concat("common"),j=>{delete o[j]}),n.headers=qn.concat(l,o);const c=[];let d=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(n)===!1)return;d=d&&b.synchronous;const x=n.transitional||u0;x&&x.legacyInterceptorReqResOrdering?c.unshift(b.fulfilled,b.rejected):c.push(b.fulfilled,b.rejected)});const h=[];this.interceptors.response.forEach(function(b){h.push(b.fulfilled,b.rejected)});let p,f=0,m;if(!d){const j=[Xg.bind(this),void 0];for(j.unshift(...c),j.push(...h),m=j.length,p=Promise.resolve(n);f<m;)p=p.then(j[f++],j[f++]);return p}m=c.length;let g=n;for(;f<m;){const j=c[f++],b=c[f++];try{g=j?j(g):g}catch(x){if(!b){p=Promise.reject(x);break}try{const v=b.call(this,x);ae.isThenable(v)&&(p=Promise.resolve(v).then(()=>Xg.call(this,g)))}catch(v){p=Promise.reject(v)}break}}if(!p)try{p=Xg.call(this,g)}catch(j){p=Promise.reject(j)}for(f=0,m=h.length;f<m;)p=p.then(h[f++],h[f++]);return p}getUri(t){t=La(this.defaults,t);const n=yO(t.baseURL,t.url,t.allowAbsoluteUrls,t);return cO(n,t.params,t.paramsSerializer)}};ae.forEach(["delete","get","head","options"],function(t){Na.prototype[t]=function(n,s){return this.request(La(s||{},{method:t,url:n,data:s&&ae.hasOwnProp(s,"data")?s.data:void 0}))}});ae.forEach(["post","put","patch","query"],function(t){function n(s){return function(o,l,c){return this.request(La(c||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}Na.prototype[t]=n(),t!=="query"&&(Na.prototype[t+"Form"]=n(!0))});let Hq=class jO{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(i=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](i);s._listeners=null}),this.promise.then=i=>{let o;const l=new Promise(c=>{s.subscribe(c),o=c}).then(i);return l.cancel=function(){s.unsubscribe(o)},l},t(function(o,l,c){s.reason||(s.reason=new wd(o,l,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new jO(function(i){t=i}),cancel:t}}};function Wq(e){return function(n){return e.apply(null,n)}}function Gq(e){return ae.isObject(e)&&e.isAxiosError===!0}const vh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
560setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(vh).forEach(([e,t])=>{vh[t]===void 0&&(vh[t]=e)});function NO(e){const t=new Na(e),n=GA(Na.prototype.request,t);return ae.extend(n,Na.prototype,t,{allOwnKeys:!0}),ae.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return NO(La(e,i))},n}const tn=NO(bd);tn.Axios=Na;tn.CanceledError=wd;tn.CancelToken=Hq;tn.isCancel=mO;tn.VERSION=f0;tn.toFormData=bm;tn.AxiosError=Ie;tn.Cancel=tn.CanceledError;tn.all=function(t){return Promise.all(t)};tn.spread=Wq;tn.isAxiosError=Gq;tn.mergeConfig=La;tn.AxiosHeaders=qn;tn.formToJSON=e=>fO(ae.isHTMLForm(e)?new FormData(e):e);tn.getAdapter=wO.getAdapter;tn.HttpStatusCode=vh;tn.default=tn;const{Axios:woe,AxiosError:joe,CanceledError:Noe,isCancel:Soe,CancelToken:_oe,VERSION:koe,all:Eoe,Cancel:Coe,isAxiosError:Toe,spread:Aoe,toFormData:Ooe,AxiosHeaders:Roe,HttpStatusCode:Poe,formToJSON:Doe,getAdapter:Ioe,mergeConfig:Loe,create:Moe}=tn,SO=typeof window>"u",zS=!SO&&window.self!==window.top,Yq=!SO&&typeof document>"u",_O=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Tn=[];for(let e=0;e<256;++e)Tn.push((e+256).toString(16).slice(1));function Kq(e,t=0){return(Tn[e[t+0]]+Tn[e[t+1]]+Tn[e[t+2]]+Tn[e[t+3]]+"-"+Tn[e[t+4]]+Tn[e[t+5]]+"-"+Tn[e[t+6]]+Tn[e[t+7]]+"-"+Tn[e[t+8]]+Tn[e[t+9]]+"-"+Tn[e[t+10]]+Tn[e[t+11]]+Tn[e[t+12]]+Tn[e[t+13]]+Tn[e[t+14]]+Tn[e[t+15]]).toLowerCase()}let Zg;const Jq=new Uint8Array(16);function Qq(){if(!Zg){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Zg=crypto.getRandomValues.bind(crypto)}return Zg(Jq)}const Xq=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),HS={randomUUID:Xq};function Zq(e,t,n){var i;e=e||{};const s=e.random??((i=e.rng)==null?void 0:i.call(e))??Qq();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Kq(s)}function eV(e,t,n){return HS.randomUUID&&!e?HS.randomUUID():Zq(e)}const fu=typeof window<"u"?window:{base44SharedInstances:{}};function tV(e,t){return fu.base44SharedInstances||(fu.base44SharedInstances={}),fu.base44SharedInstances[e]||(fu.base44SharedInstances[e]={instance:t()}),fu.base44SharedInstances[e].instance}const nV="__user_heartbeat_event__",rV="__initialization_event__",sV="__session_duration_event__",WS="analytics-enable",GS="base44_analytics_session_id",iV={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},oV="analytics",_t=tV(oV,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...iV,...gV()}})),aV=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:s,enabled:i})=>{var o;const{maxQueueSize:l,throttleTime:c,batchSize:d}=_t.config;if(!i||!(!((o=_t.config)===null||o===void 0)&&o.enabled)||Yq)return{track:()=>{},cleanup:()=>{}};let h;const p=`${t}/api/apps/${n}/analytics/track/batch`,f=async w=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:w}})},m=w=>{try{const k=JSON.stringify({events:w}),O=new Blob([k],{type:"application/json"});return typeof navigator>"u"||k.length>6e4||!navigator.sendBeacon(p,O)}catch{return!1}},g=async(w,k={})=>
560{if(w.length===0)return;const O=await pV(s),C=w.map(mV(O));try{(!k.isBeacon||!m(C))&&await f(C)}catch{}},j=()=>{KS(g,{throttleTime:c,batchSize:d})},b=w=>{if(_t.requestsQueue.length>=l)return;const k=hV();_t.requestsQueue.push({...w,...k}),j()},x=()=>{KS(g,{throttleTime:c,batchSize:d}),h=JS(b),dV()},v=()=>{YS(),h==null||h(),fV(b);const w=_t.requestsQueue.splice(0);g(w,{isBeacon:!0})},N=()=>{typeof window>"u"||(document.visibilityState==="hidden"?v():document.visibilityState==="visible"&&x())},S=()=>{YS(),h==null||h(),typeof window<"u"&&window.removeEventListener("visibilitychange",N)};return j(),h=JS(b),lV(b),typeof window<"u"&&window.addEventListener("visibilitychange",N),{track:b,cleanup:S}};function YS(){_t.isProcessing=!1}async function KS(e,t){if(_t.isProcessing)return;_t.isProcessing=!0;const{throttleTime:n=1e3,batchSize:s=30}=t??{};for(;_t.isProcessing&&_t.requestsQueue.length>0;){const i=_t.requestsQueue.splice(0,s);i.length&&await e(i),await new Promise(o=>setTimeout(o,n))}_t.isProcessing=!1}function JS(e){var t;if(typeof window>"u"||_t.isHeartBeatProcessing||((t=_t.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};_t.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:nV})},_t.config.heartBeatInterval);return()=>{clearInterval(n),_t.isHeartBeatProcessing=!1}}function lV(e){typeof window>"u"||_t.wasInitializationTracked||(_t.wasInitializationTracked=!0,e({eventName:rV,properties:{referrer:document==null?void 0:document.referrer,...uV()}}))}const cV=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_id","gclid","gbraid","wbraid","gad_source","gad_campaignid","fbclid","msclkid","ttclid","li_fat_id"];function uV(){try{const e=new URLSearchParams(window.location.search),t={};for(const n of cV){const s=e.get(n);s&&(t[n]=s.slice(0,500))}return t}catch{return{}}}function dV(){typeof window>"u"||_t.sessionStartTime!==null||(_t.sessionStartTime=new Date().toISOString())}function fV(e){if(typeof window>"u"||_t.sessionStartTime===null)return;const t=new Date().getTime()-new Date(_t.sessionStartTime).getTime();_t.sessionStartTime=null,e({eventName:sV,properties:{sessionDuration:t}})}function hV(){var e,t;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(t=(e=window.location)===null||e===void 0?void 0:e.pathname)!==null&&t!==void 0?t:null}}function mV(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let ju=null;function QS(){_t.sessionContext=null,ju=null}async function pV(e){if(!_t.sessionContext){if(!e.hasToken())return{user_id:null,session_id:Fh()};if(!ju){const s=Fh();ju=e.me().then(i=>({user_id:i.id,session_id:s})).catch(()=>({user_id:null,session_id:s}))}const t=ju,n=await t;return ju===t&&(_t.sessionContext=n),n}return _t.sessionContext}function gV(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(WS);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(WS);const s=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",s),{enabled:t==="true"}}function XS(){var e;return(e=_t.fallbackSessionId)!==null&&e!==void 0?e:_t.fallbackSessionId=_O()}function Fh(){if(typeof window>"u")return XS();try{const e=localStorage.getItem(GS);if(!e){const t=_O();return localStorage.setItem(GS,t),t}return e}catch{return XS()}}class yV extends Error{constructor(t,n,s,i,o){super(t),this.name="Base44Error",this.status=n,this.code=s,this.data=i,this.originalError=o}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function kl({baseURL:e,headers:t={},token:n,interceptResponses:s=!0,onError:i}){const o=tn.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(o.defaults.headers.common.Authorization=`Bearer ${n}`),o.interceptors.request.use(l=>{typeof window<"u"&&(window.location&&l.headers.set("X-Origin-URL",window.location.href),l.headers.get("Authorization")||l.headers.set("X-Base44-Anonymous-Id",Fh()));const c=eV();if(l.requestId=c,zS)try{window.parent.postMessage({type:"api-request-start",requestId:c,data:{url:e+l.url,method:l.method,body:l.data instanceof FormData?"[FormData object]":l.data}},"*")}catch{}return l}),s&&o.interceptors.response.use(l=>{var c;const d=(c=l.config)===null||c===void 0?void 0:c.requestId;try{zS&&d&&window.parent.postMessage({type:"api-request-end",requestId:d,data:{statusCode:l.status,response:l.data}},"*")}catch{}return l.data},l=>{var c,d,h,p,f,m,g,j,b,x,v,N;const S=(c=l.response)===null||c===void 0?void 0:c.data,w=((d=S==null?void 0:S.error)===null||d===void 0?void 0:d.message)||(S==null?void 0:S.message)||(S==null?void 0:S.detail)||l.message,k=new yV(w,(h=l.response)===null||h===void 0?void 0:h.status,(x=(m=(f=(p=S==null?void 0:S.error)===null||p===void 0?void 0:p.code)!==null&&f!==void 0?f:S==null?void 0:S.code)!==null&&m!==void 0?m:(b=(j=(g=l.response)===null||g===void 0?void 0:g.headers)===null||j===void 0?void 0:j.get)===null||b===void 0?void 0:b.call(j,"x-base44-connector-error"))!==null&&x!==void 0?x:(N=(v=l.response)===null||v===void 0?void 0:v.headers)===null||N===void 0?void 0:N["x-base44-connector-error"],S,l);return i==null||i(k),Promise.reject(k)}),o}function ZS(e){const{axios:t,appId:n,getSocket:s}=e;return new Proxy({},{get(i,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return bV(t,n,o,s)}})}function xV(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}const vV=100;function e_(e){return typeof e=="object"&&e!==null}function bV(e,t,n,s){const i=`/apps/${t}/entities/${n}`,o=d=>Array.isArray(d)?d.join(","):d,l=(d,h,p,f,m)=>{const g={};return m&&(g.q=JSON.stringify(m)),d&&(g.sort=d),h&&(g.limit=h),p&&(g.skip=p),f&&(g.fields=o(f)),e.get(i,{params:g})},c=(d,h)=>{const p={};return h&&(p.q=JSON.stringify(h)),p.limit=d.limit||vV,d.cursor&&(p.cursor=d.cursor),"distinct"in d?p.distinct=d.distinct:(d.sort&&(p.sort=d.sort),d.fields&&(p.fields=o(d.fields))),e.get(`${i}/v2/list`,{params:p})};return{async list(...d){const[h,p,f,m]=d;return e_(h)?c(h):l(h,p,f,m)},async filter(d,...h){const[p,f,m,g]=h;return e_(p)?c(p,d):l(p,f,m,g,d)},async get(d){return e.get(`${i}/${d}`)},async create(d){return e.post(i,d)},async update(d,h){return e.put(`${i}/${d}`,h)},async delete(d){return e.delete(`${i}/${d}`)},async deleteMany(d){return e.delete(i,{data:d})},async bulkCreate(d){return e.post(`${i}/bulk`,d)},async updateMany(d,h){return e.patch(`${i}/update-many`,{query:d,data:h})},async count(d){const h={};return d&&(h.q=JSON.stringify(d)),(await e.get(`${i}/count`,{params:h})).count},async aggregate(d){return e.post(`${i}
560/aggregate`,d)},async upsert(d,h){return e.post(`${i}/upsert`,{records:d,key:h.key})},async bulkUpdate(d){return e.put(`${i}/bulk`,d)},async importEntities(d){const h=new FormData;return h.append("file",d,d.name),e.post(`${i}/import`,h,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(d){const h=`entities:${t}:${n}`;return s().subscribeToRoom(h,{update_model:m=>{var g;const j=xV(m.data);if(j){j.type!=="delete"&&(!((g=j.data)===null||g===void 0)&&g._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${j.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${j.id}")\` to fetch the full record.`);try{d(j)}catch(b){console.error("[Base44 SDK] Subscription callback error:",b)}}}})}}}function wV(e,t){return{async call(n,s,i){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(s!=null&&s.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:o,queryParams:l,...c}=i??{},d={...c,...o&&{path_params:o},...l&&{query_params:l}};return await e.post(`/apps/${t}/integrations/custom/${n}/${s}`,d)}}}function t_(e,t){const n=wV(e,t);return new Proxy({},{get(s,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return i==="custom"?n:new Proxy({},{get(o,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return async c=>{if(typeof c=="string")throw new Error(`Integration ${l} must receive an object with named parameters, received: ${c}`);let d,h;return c instanceof FormData||c&&Object.values(c).some(p=>p instanceof File)?(d=new FormData,Object.keys(c).forEach(p=>{c[p]instanceof File?d.append(p,c[p],c[p].name):typeof c[p]=="object"&&c[p]!==null?d.append(p,JSON.stringify(c[p])):d.append(p,c[p])}),h="multipart/form-data"):(d=c,h="application/json"),i==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${l}`,d||c,{headers:{"Content-Type":h}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${l}`,d||c,{headers:{"Content-Type":h}})}}})}})}function jV(){return typeof window>"u"?!1:window!==window.parent}function NV(e,t,n){const o=Math.round(window.screenX+(window.outerWidth-500)/2),l=Math.round(window.screenY+(window.outerHeight-600)/2),c=window.open(e,"base44_auth",`width=500,height=600,left=${o},top=${l},resizable=yes,scrollbars=yes`);if(!c)return;const d=()=>{window.removeEventListener("message",h),clearInterval(p),c.closed||c.close()},h=f=>{var m;if(f.origin!==n||f.source!==c||!(!((m=f.data)===null||m===void 0)&&m.access_token))return;d();const g=new URL(t),{access_token:j,is_new_user:b}=f.data;g.searchParams.set("access_token",j),b!=null&&g.searchParams.set("is_new_user",String(b)),window.location.href=g.toString()},p=setInterval(()=>{c.closed&&d()},500);window.addEventListener("message",h)}function SV(e,t,n,s){let i=null;const o=()=>{i=null};let l=!!s.token;return{hasToken(){return l},async me(){const c=i??e.get(`/apps/${n}/entities/User/me`).finally(()=>{i===c&&(i=null)});return i=c,c},async updateMe(c){return e.put(`/apps/${n}/entities/User/me`,c)},redirectToLogin(c){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const d=c?new URL(c,window.location.origin).toString():window.location.href,h=`${s.appBaseUrl}/login?from_url=${encodeURIComponent(d)}`;window.location.href=h},loginWithProvider(c,d="/"){const h=new URL(d,window.location.origin).toString(),p=`app_id=${n}&from_url=${encodeURIComponent(h)}`;let f;c==="sso"?f=`/apps/${n}/auth/sso/login`:f=`/apps/auth${c==="google"?"":`/${c}`}/login`;const m=`${s.appBaseUrl}/api${f}?${p}`;if(jV()){const g=`${m}&popup_origin=${encodeURIComponent(window.location.origin)}`;return NV(g,h,window.location.origin)}window.location.href=m},logout(c){if(delete e.defaults.headers.common.Authorization,o(),QS(),l=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(p){console.error("Failed to remove token from localStorage:",p)}const d=c||window.location.href,h=`${s.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(d)}`;window.location.href=h}},setToken(c,d=!0){if(c&&(o(),QS(),l=!0,e.defaults.headers.common.Authorization=`Bearer ${c}`,t.defaults.headers.common.Authorization=`Bearer ${c}`,d&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",c),window.localStorage.setItem("token",c)}catch(h){console.error("Failed to save token to localStorage:",h)}},async loginViaEmailPassword(c,d,h){var p;try{const f=await e.post(`/apps/${n}/auth/login`,{email:c,password:d,...h&&{turnstile_token:h}}),{access_token:m,user:g}=f;return m&&this.setToken(m),{access_token:m,user:g}}catch(f){throw((p=f.response)===null||p===void 0?void 0:p.status)===401&&await this.logout(),f}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(c,d){return e.post(`/apps/${n}/users/invite-user`,{user_email:c,role:d})},register(c){return e.post(`/apps/${n}/auth/register`,c)},verifyOtp({email:c,otpCode:d}){return e.post(`/apps/${n}/auth/verify-otp`,{email:c,otp_code:d})},resendOtp(c){return e.post(`/apps/${n}/auth/resend-otp`,{email:c})},resetPasswordRequest(c){return e.post(`/apps/${n}/auth/reset-password-request`,{email:c})},resetPassword({resetToken:c,newPassword:d}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:c,new_password:d})},changePassword({userId:c,currentPassword:d,newPassword:h}){return e.post(`/apps/${n}/auth/change-password`,{user_id:c,current_password:d,new_password:h})}}}function _V(e,t){return{async getAccessToken(n){const s=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(s)},async getIdToken(n){const s=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(s)}}}const kV=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
560function EV(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var s;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const o=await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:o.access_token,connectionConfig:(s=o.connection_config)!==null&&s!==void 0?s:null}},async getWorkspaceConnection(n){var s;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const o=await e.get(`/apps/${t}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:o.access_token,connectionConfig:(s=o.connection_config)!==null&&s!==void 0?s:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var s;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const o=await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:o.access_token,connectionConfig:(s=o.connection_config)!==null&&s!==void 0?s:null}},async callApi(n,s){return kO(n,"Integration type"),CV(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,s)}}}function kO(e,t){if(!e||typeof e!="string")throw new Error(`${t} is required and must be a string`)}async function CV(e,t,n){var s,i,o,l,c,d,h,p,f;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");kO(n.path,"Request path");const m=(s=n.method)!==null&&s!==void 0?s:"GET";if(!kV.has(m))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const j=await e.post(t,{method:m,...n.host==null?{}:{host:n.host},path:n.path,query:(i=n.query)!==null&&i!==void 0?i:{},headers:(o=n.headers)!==null&&o!==void 0?o:{},body:(l=n.body)!==null&&l!==void 0?l:null});return{success:j.success,phase:j.phase,status:(c=j.status_code)!==null&&c!==void 0?c:null,data:j.data,dataBase64:(d=j.data_base64)!==null&&d!==void 0?d:null,contentType:(h=j.content_type)!==null&&h!==void 0?h:null,headers:(p=j.headers)!==null&&p!==void 0?p:{},creditsCharged:(f=j.credits_charged)!==null&&f!==void 0?f:0}}function TV(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function vo(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:s=!0,removeFromUrl:i=!0}=e;let o=null;if(typeof window<"u"&&window.location)try{const l=new URLSearchParams(window.location.search);if(o=l.get(n),o){if(s&&AV(o,{storageKey:t}),i){l.delete(n);const c=`${window.location.pathname}${l.toString()?`?${l.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}return o}}catch(l){console.error("Error retrieving token from URL:",l)}if(typeof window<"u"&&window.localStorage)try{return o=window.localStorage.getItem(t),o}catch(l){console.error("Error retrieving token from local storage:",l)}return null}function AV(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(s){return console.error("Error saving token to local storage:",s),!1}}function OV({axios:e,serviceRoleAxios:t,appId:n,serverUrl:s,functionsVersion:i,platformHeaders:o}){const l=new Headers(o),c=d=>{const h=d.defaults.headers.common.Authorization;return typeof h=="string"&&h.startsWith("Bearer ")?h:null};return async function(h,p={}){RV(h);const{fetch:f=fetch,...m}=p,g=new Headers(p.headers),j=(b,x)=>{x&&!g.has(b)&&g.set(b,x)};return j("Authorization",c(e)),j("Base44-Service-Authorization",c(t)),j("Base44-App-Id",n),j("Base44-Api-Url",s),j("Base44-Functions-Version",i),j("Base44-State",l.get("Base44-State")),j("X-Data-Env",l.get("X-Data-Env")),f(h,{...m,headers:g})}}function RV(e){if(typeof e!="string"||e==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!t.startsWith("/")||t.startsWith("//")||t.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${e}" is not a path on it — pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function n_(e,t,n){const s=(o,l)=>o?`${String(o).replace(/\/$/,"")}${l}`:l,i=o=>{const l=new Headers;if(n!=null&&n.getAuthHeaders){const c=n.getAuthHeaders();
560Object.entries(c).forEach(([d,h])=>{h!=null&&l.set(d,String(h))})}return o&&new Headers(o).forEach((c,d)=>{l.set(d,c)}),l};return{async invoke(o,l){if(typeof l=="string")throw new Error(`Function ${o} must receive an object with named parameters, received: ${l}`);let c,d;return l instanceof FormData||l&&Object.values(l).some(h=>h instanceof File)?(c=new FormData,Object.keys(l).forEach(h=>{l[h]instanceof File?c.append(h,l[h],l[h].name):typeof l[h]=="object"&&l[h]!==null?c.append(h,JSON.stringify(l[h])):c.append(h,l[h])}),d="multipart/form-data"):(c=l,d="application/json"),e.post(`/apps/${t}/functions/${o}`,c||l,{headers:{"Content-Type":d}})},async fetch(o,l={}){const d=`/functions${o.startsWith("/")?o:`/${o}`}`,h=i(l.headers),p={...l,headers:h};return await fetch(s(n==null?void 0:n.baseURL,d),p)}}}function r_({axios:e,getSocket:t,appId:n,serverUrl:s,token:i}){const o=`/apps/${n}/agents`,l={},c=()=>e.get(`${o}/conversations`),d=b=>e.get(`${o}/conversations/${b}`);return{getConversations:c,getConversation:d,listConversations:b=>e.get(`${o}/conversations`,{params:b}),createConversation:b=>e.post(`${o}/conversations`,b),addMessage:async(b,x)=>e.post(`${o}/conversations/v2/${b.id}/messages`,x),subscribeToConversation:(b,x)=>{const v=`/agent-conversations/${b}`,N=t(),S=d(b).then(w=>(l[b]=w,w));return N.subscribeToRoom(v,{connect:()=>{},update_model:async({data:w})=>{const k=JSON.parse(w);if(k._message){await S;const O=k._message,C=l[b];if(C){const A=C.messages||[],B=A.findIndex(L=>L.id===O.id),I=B!==-1?A.map((L,D)=>D===B?O:L):[...A,O];l[b]={...C,messages:I},x==null||x(l[b])}}}})},getWhatsAppConnectURL:b=>{const x=`${s}/api/apps/${n}/agents/${encodeURIComponent(b)}/whatsapp`,v=i??vo();return v?`${x}?token=${v}`:x},getTelegramConnectURL:b=>{const x=`${s}/api/apps/${n}/agents/${encodeURIComponent(b)}/telegram`,v=i??vo();return v?`${x}?token=${v}`:x}}}const s_={openai:"openai",typesafe:"typesafe"};function i_({serverUrl:e,token:t,appId:n,headers:s={}}){return{connection:({provider:o="openai"}={})=>{var l;if(!Object.prototype.hasOwnProperty.call(s_,o))throw new Error(`Unsupported AI Gateway provider: ${o}`);const c=s_[o];return{baseURL:`${e}/api/apps/${n}/ai/${c}/v1`,token:(l=t??vo())!==null&&l!==void 0?l:"",headers:{...s}}}}}function o_(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(s){await e.post(`${n}/log-user-in-app/${s}`)},async fetchLogs(s={}){return await e.get(n,{params:s})},async getStats(s={}){return await e.get(`${n}/stats`,{params:s})}}}function PV(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function DV(e,t){return{async inviteUser(n,s){if(s!=="user"&&s!=="admin")throw new Error(`Invalid role: "${s}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:s})}}}const zs=Object.create(null);zs.open="0";zs.close="1";zs.ping="2";zs.pong="3";zs.message="4";zs.upgrade="5";zs.noop="6";const bh=Object.create(null);Object.keys(zs).forEach(e=>{bh[zs[e]]=e});const Xv={type:"error",data:"parser error"},EO=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",CO=typeof ArrayBuffer=="function",TO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,m0=({type:e,data:t},n,s)=>EO&&t instanceof Blob?n?s(t):a_(t,s):CO&&(t instanceof ArrayBuffer||TO(t))?n?s(t):a_(new Blob([t]),s):s(zs[e]+(t||"")),a_=(e,t)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];t("b"+(s||""))},n.readAsDataURL(e)};function l_(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let ey;function IV(e,t){if(EO&&e.data instanceof Blob)return e.data.arrayBuffer().then(l_).then(t);if(CO&&(e.data instanceof ArrayBuffer||TO(e.data)))return t(l_(e.data));m0(e,!1,n=>{ey||(ey=new TextEncoder),t(ey.encode(n))})}const c_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<c_.length;e++)Nu[c_.charCodeAt(e)]=e;const LV=e=>{let t=e.length*.75,n=e.length,s,i=0,o,l,c,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const h=new ArrayBuffer(t),p=new Uint8Array(h);for(s=0;s<n;s+=4)o=Nu[e.charCodeAt(s)],l=Nu[e.charCodeAt(s+1)],c=Nu[e.charCodeAt(s+2)],d=Nu[e.charCodeAt(s+3)],p[i++]=o<<2|l>>4,p[i++]=(l&15)<<4|c>>2,p[i++]=(c&3)<<6|d&63;return h},MV=typeof ArrayBuffer=="function",p0=(e,t)=>{if(typeof e!="string")return{type:"message",data:AO(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:FV(e.substring(1),t)}:bh[n]?e.length>1?{type:bh[n],data:e.substring(1)}:{type:bh[n]}:Xv},FV=(e,t)=>{if(MV){const n=LV(e);return AO(n,t)}else return{base64:!0,data:e}},AO=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},OO="�",BV=(e,t)=>{const n=e.length,s=new Array(n);let i=0;e.forEach((o,l)=>{m0(o,!1,c=>{s[l]=c,++i===n&&t(s.join(OO))})})},UV=(e,t)=>{const n=e.split(OO),s=[];for(let i=0;i<n.length;i++){const o=p0(n[i],t);
vendor: 8,972 bytes, line 560
560if(s.push(o),o.type==="error")break}return s};function qV(){return new TransformStream({transform(e,t){IV(e,n=>{const s=n.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,s)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(s))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let ty;function Wf(e){return e.reduce((t,n)=>t+n.length,0)}function Gf(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let s=0;for(let i=0;i<t;i++)n[i]=e[0][s++],s===e[0].length&&(e.shift(),s=0);return e.length&&s<e[0].length&&(e[0]=e[0].slice(s)),n}function VV(e,t){ty||(ty=new TextDecoder);const n=[];let s=0,i=-1,o=!1;return new TransformStream({transform(l,c){for(n.push(l);;){if(s===0){if(Wf(n)<1)break;const d=Gf(n,1);o=(d[0]&128)===128,i=d[0]&127,i<126?s=3:i===126?s=1:s=2}else if(s===1){if(Wf(n)<2)break;const d=Gf(n,2);i=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),s=3}else if(s===2){if(Wf(n)<8)break;const d=Gf(n,8),h=new DataView(d.buffer,d.byteOffset,d.length),p=h.getUint32(0);if(p>Math.pow(2,21)-1){c.enqueue(Xv);break}i=p*Math.pow(2,32)+h.getUint32(4),s=3}else{if(Wf(n)<i)break;const d=Gf(n,i);c.enqueue(p0(o?d:ty.decode(d),t)),s=0}if(i===0||i>e){c.enqueue(Xv);break}}}})}const RO=4;function an(e){if(e)return $V(e)}function $V(e){for(var t in an.prototype)e[t]=an.prototype[t];return e}an.prototype.on=an.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};an.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};an.prototype.off=an.prototype.removeListener=an.prototype.removeAllListeners=an.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var s,i=0;i<n.length;i++)if(s=n[i],s===t||s.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};an.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(n){n=n.slice(0);for(var s=0,i=n.length;s<i;++s)n[s].apply(this,t)}return this};an.prototype.emitReserved=an.prototype.emit;an.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};an.prototype.hasListeners=function(e){return!!this.listeners(e).length};const jm=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Hr=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),zV="arraybuffer";function PO(e,...t){return t.reduce((n,s)=>(e.hasOwnProperty(s)&&(n[s]=e[s]),n),{})}const HV=Hr.setTimeout,WV=Hr.clearTimeout;function Nm(e,t){t.useNativeTimers?(e.setTimeoutFn=HV.bind(Hr),e.clearTimeoutFn=WV.bind(Hr)):(e.setTimeoutFn=Hr.setTimeout.bind(Hr),e.clearTimeoutFn=Hr.clearTimeout.bind(Hr))}const GV=1.33;function YV(e){return typeof e=="string"?KV(e):Math.ceil((e.byteLength||e.size)*GV)}function KV(e){let t=0,n=0;for(let s=0,i=e.length;s<i;s++)t=e.charCodeAt(s),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(s++,n+=4);return n}function DO(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function JV(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function QV(e){let t={},n=e.split("&");for(let s=0,i=n.length;s<i;s++){let o=n[s].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class XV extends Error{constructor(t,n,s){super(t),this.description=n,this.context=s,this.type="TransportError"}}class g0 extends an{constructor(t){super(),this.writable=!1,Nm(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,s){return super.emitReserved("error",new XV(t,n,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=p0(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=JV(t);return n.length?"?"+n:""}}class ZV extends g0{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};UV(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,BV(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=DO()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let IO=!1;try{IO=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const e7=IO;function t7(){}class n7 extends ZV{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let s=location.port;s||(s=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||s!==t.port}}doWrite(t,n){const s=this.request({method:"POST",data:t});s.on("success",n),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=t}}class Ms extends an{constructor(t,n,s){super(),this.createRequest=t,Nm(this,s),this._opts=s,this._method=s.method||"GET",this._uri=n,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var t;const n=PO(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(n);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Ms.requestsCount++,Ms.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=t7,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ms.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Ms.requestsCount=0;Ms.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",u_);else if(typeof addEventListener=="function"){const e="onpagehide"in Hr?"pagehide":"unload";addEventListener(e,u_,!1)}}
vendor: 4,463 bytes, line 560
560function u_(){for(let e in Ms.requests)Ms.requests.hasOwnProperty(e)&&Ms.requests[e].abort()}const r7=(function(){const e=LO({xdomain:!1});return e&&e.responseType!==null})();class s7 extends n7{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=r7&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ms(LO,this.uri(),t)}}function LO(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||e7))return new XMLHttpRequest}catch{}if(!t)try{return new Hr[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const MO=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class i7 extends g0{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,s=MO?{}:PO(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const s=t[n],i=n===t.length-1;m0(s,this.supportsBinary,o=>{try{this.doWrite(s,o)}catch{}i&&jm(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=DO()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const ny=Hr.WebSocket||Hr.MozWebSocket;class o7 extends i7{createSocket(t,n,s){return MO?new ny(t,n,s):n?new ny(t,n):new ny(t)}doWrite(t,n){this.ws.send(n)}}class a7 extends g0{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=VV(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(n).getReader(),i=qV();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{s.read().then(({done:c,value:d})=>{c||(this.onPacket(d),o())}).catch(c=>{})};o();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const s=t[n],i=n===t.length-1;this._writer.write(s).then(()=>{i&&jm(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const l7={websocket:o7,webtransport:a7,polling:s7},c7=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,u7=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Zv(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),s=e.indexOf("]");n!=-1&&s!=-1&&(e=e.substring(0,n)+e.substring(n,s).replace(/:/g,";")+e.substring(s,e.length));let i=c7.exec(e||""),o={},l=14;for(;l--;)o[u7[l]]=i[l]||"";return n!=-1&&s!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=d7(o,o.path),o.queryKey=f7(o,o.query),o}function d7(e,t){const n=/\/{2,9}/g,s=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&s.splice(0,1),t.slice(-1)=="/"&&s.splice(s.length-1,1),s}function f7(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(n[i]=o)}),n}const eb=typeof addEventListener=="function"&&typeof removeEventListener=="function",wh=[];eb&&addEventListener("offline",()=>
vendor: 12,643 bytes, line 560
560{wh.forEach(e=>e())},!1);class jo extends an{constructor(t,n){if(super(),this.binaryType=zV,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const s=Zv(t);n.hostname=s.host,n.secure=s.protocol==="https"||s.protocol==="wss",n.port=s.port,s.query&&(n.query=s.query)}else n.host&&(n.hostname=Zv(n.host).host);Nm(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=QV(this.opts.query)),eb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},wh.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=RO,n.transport=t,this.id&&(n.sid=this.id);const s=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&jo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",jo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(n+=YV(i)),s>0&&n>this._maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,jm(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,s){return this._sendPacket("message",t,n,s),this}send(t,n,s){return this._sendPacket("message",t,n,s),this}_sendPacket(t,n,s,i){if(typeof n=="function"&&(i=n,n=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:t,data:n,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},s=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():t()}):this.upgrading?s():t()),this}_onError(t){if(jo.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),eb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=wh.indexOf(this._offlineEventListener);s!==-1&&wh.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}jo.protocol=RO;class h7 extends jo{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),s=!1;jo.priorWebsocketSuccess=!1;const i=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!s)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;jo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function o(){s||(s=!0,p(),n.close(),n=null)}const l=f=>{const m=new Error("probe error: "+f);m.transport=n.name,o(),this.emitReserved("upgradeError",m)};function c(){l("transport closed")}function d(){l("socket closed")}function h(f){n&&f.name!==n.name&&o()}const p=()=>{n.removeListener("open",i),n.removeListener("error",l),n.removeListener("close",c),this.off("close",d),this.off("upgrading",h)};n.once("open",i),n.once("error",l),n.once("close",c),this.once("close",d),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{s||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let s=0;s<t.length;s++)~this.transports.indexOf(t[s])&&n.push(t[s]);return n}}let m7=class extends h7{constructor(t,n={}){const s=typeof t=="object"?t:n;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>l7[i]).filter(i=>!!i)),super(t,s)}};function p7(e,t="",n){let s=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),s=Zv(e)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+t,s.href=s.protocol+"://"+o+(n&&n.port===s.port?"":":"+s.port),s}const g7=typeof ArrayBuffer=="function",y7=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,FO=Object.prototype.toString,x7=typeof Blob=="function"||typeof Blob<"u"&&FO.call(Blob)==="[object BlobConstructor]",v7=typeof File=="function"||typeof File<"u"&&FO.call(File)==="[object FileConstructor]";function y0(e){return g7&&(e instanceof ArrayBuffer||y7(e))||x7&&e instanceof Blob||v7&&e instanceof File}function jh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,s=e.length;n<s;n++)if(jh(e[n]))return!0;return!1}if(y0(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return jh(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&jh(e[n]))return!0;return!1}function b7(e){const t=[],n=e.data,s=e;return s.data=tb(n,t),s.attachments=t.length,{packet:s,buffers:t}}function tb(e,t){if(!e)return e;if(y0(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let s=0;s<e.length;s++)n[s]=tb(e[s],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=tb(e[s],t));return n}return e}function w7(e,t){return e.data=nb(e.data,t),delete e.attachments,e}function nb(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=nb(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=nb(e[n],t));return e}const j7=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var gt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(gt||(gt={}));class N7{constructor(t){this.replacer=t}encode(t){return(t.type===gt.EVENT||t.type===gt.ACK)&&jh(t)?this.encodeAsBinary({type:t.type===gt.EVENT?gt.BINARY_EVENT:gt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===gt.BINARY_EVENT||t.type===gt.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=b7(t),s=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(s),i}}class x0 extends an{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const s=n.type===gt.BINARY_EVENT;s||n.type===gt.BINARY_ACK?(n.type=s?gt.EVENT:gt.ACK,this.reconstructor=new S7(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(y0(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const s={type:Number(t.charAt(0))};if(gt[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===gt.BINARY_EVENT||s.type===gt.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(o,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");s.attachments=Number(l)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););s.nsp=t.substring(o,n)}else s.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}s.id=Number(t.substring(o,n+1))}
vendor: 4,501 bytes, line 560
560if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(x0.isPayloadValid(s.type,o))s.data=o;else throw new Error("invalid payload")}return s}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case gt.CONNECT:return d_(n);case gt.DISCONNECT:return n===void 0;case gt.CONNECT_ERROR:return typeof n=="string"||d_(n);case gt.EVENT:case gt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&j7.indexOf(n[0])===-1);case gt.ACK:case gt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class S7{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=w7(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function d_(e){return Object.prototype.toString.call(e)==="[object Object]"}const _7=Object.freeze(Object.defineProperty({__proto__:null,Decoder:x0,Encoder:N7,get PacketType(){return gt}},Symbol.toStringTag,{value:"Module"}));function fs(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const k7=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class BO extends an{constructor(t,n,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[fs(t,"open",this.onopen.bind(this)),fs(t,"packet",this.onpacket.bind(this)),fs(t,"error",this.onerror.bind(this)),fs(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var s,i,o;if(k7.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const l={type:gt.EVENT,data:n};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const p=this.ids++,f=n.pop();this._registerAckCallback(p,f),l.id=p}const c=(i=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||i===void 0?void 0:i.writable,d=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!c||(d?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(t,n){var s;const i=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===t&&this.sendBuffer.splice(c,1);n.call(this,new Error("operation has timed out"))},i),l=(...c)=>{this.io.clearTimeoutFn(o),n.apply(this,c)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((s,i)=>{const o=(l,c)=>l?i(l):s(c);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>(this._queue[0],i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:gt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,087 bytes, line 560
560_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(s=>String(s.id)===t)){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case gt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case gt.EVENT:case gt.BINARY_EVENT:this.onevent(t);break;case gt.ACK:case gt.BINARY_ACK:this.onack(t);break;case gt.DISCONNECT:this.ondisconnect();break;case gt.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const s of n)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let s=!1;return function(...i){s||(s=!0,n.packet({type:gt.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:gt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let s=0;s<n.length;s++)if(t===n[s])return n.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let s=0;s<n.length;s++)if(t===n[s])return n.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const s of n)s.apply(this,t.data)}}}function hc(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}hc.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};hc.prototype.reset=function(){this.attempts=0};hc.prototype.setMin=function(e){this.ms=e};hc.prototype.setMax=function(e){this.max=e};hc.prototype.setJitter=function(e){this.jitter=e};class rb extends an{constructor(t,n){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Nm(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new hc({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||_7;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new m7(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=fs(n,"open",function(){s.onopen(),t&&t()}),o=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),t?t(c):this.maybeReconnectOnOpen()},l=fs(n,"error",o);if(this._timeout!==!1){const c=this._timeout,d=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},c);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(i),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(fs(t,"ping",this.onping.bind(this)),fs(t,"data",this.ondata.bind(this)),fs(t,"error",this.onerror.bind(this)),fs(t,"close",this.onclose.bind(this)),fs(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){jm(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new BO(this,t,n),this.nsps[t]=s),s}_destroy(t){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let s=0;s<n.length;s++)this.engine.write(n[s],t.options)}
560cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const hu={};function Nh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=p7(e,t.path||"/socket.io"),s=n.source,i=n.id,o=n.path,l=hu[i]&&o in hu[i].nsps,c=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let d;return c?d=new rb(s,t):(hu[i]||(hu[i]=new rb(s,t)),d=hu[i]),n.query&&!t.query&&(t.query=n.queryKey),d.socket(n.path,t)}Object.assign(Nh,{Manager:rb,Socket:BO,io:Nh,connect:Nh});const E7=250;function f_(e,t){var n;const s=(n=e.token)!==null&&n!==void 0?n:vo(),i={app_id:e.appId};s?i.token=s:i.anonymous_id=Fh();const o=Nh(e.serverUrl,{path:e.mountPath,transports:e.transports,query:i});return o.on("connect",async()=>{var l;return console.log("connect",o.id),(l=t.connect)===null||l===void 0?void 0:l.call(t)}),o.on("update_model",async l=>{var c;return(c=t.update_model)===null||c===void 0?void 0:c.call(t,l)}),o.on("error",async l=>{var c;return(c=t.error)===null||c===void 0?void 0:c.call(t,l)}),o.on("connect_error",async l=>{var c;return console.error("connect_error",l),(c=t.error)===null||c===void 0?void 0:c.call(t,l)}),o}function C7({config:e}){let t={...e};const n={},s={},i={connect:async()=>{const v=[];Object.keys(n).forEach(N=>{const S=m(N);S.length!==0&&(h(N),S.forEach(({connect:w})=>{const k=async()=>w==null?void 0:w();v.push(k())}))}),await Promise.all(v)},update_model:async v=>{const S=m(v.room).map(w=>{var k;return(k=w.update_model)===null||k===void 0?void 0:k.call(w,v)});await Promise.all(S)},error:async v=>{console.error("error",v);const N=Object.values(n).flat().map(S=>{var w;return(w=S.error)===null||w===void 0?void 0:w.call(S,v)});await Promise.all(N)}};let o=f_(e,i);function l(){c()}function c(){j(),o&&o.disconnect()}function d(v){l(),t={...t,...v},o=f_(t,i)}function h(v){o.emit("join",v)}function p(v){o.emit("leave",v)}async function f(v,N){var S;const w=JSON.stringify(N);return(S=i.update_model)===null||S===void 0?void 0:S.call(i,{room:v,data:w})}function m(v){var N;return(N=n[v])!==null&&N!==void 0?N:[]}function g(v){const N=s[v];N&&(clearTimeout(N),delete s[v])}function j(){Object.keys(s).forEach(v=>{var N,S;clearTimeout(s[v]),delete s[v],((S=(N=n[v])===null||N===void 0?void 0:N.length)!==null&&S!==void 0?S:0)===0&&delete n[v]})}function b(v){g(v),s[v]=setTimeout(()=>{var N,S;delete s[v],!(((S=(N=n[v])===null||N===void 0?void 0:N.length)!==null&&S!==void 0?S:0)>0)&&(p(v),delete n[v])},E7)}return{socket:o,subscribeToRoom:(v,N)=>{n[v]?g(v):(h(v),n[v]=[]),n[v].push(N);let S=!1;return()=>{var w,k;S||(S=!0,n[v]=(k=(w=n[v])===null||w===void 0?void 0:w.filter(O=>O!==N))!==null&&k!==void 0?k:[],n[v].length===0&&b(v))}},updateConfig:d,updateModel:f,disconnect:c}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
561  PartySocket requires a global 'EventTarget' class to be available!
562  You can polyfill this global by adding this to your code before any partysocket imports: 
563  
564  \`\`\`
565  import 'partysocket/event-target-polyfill';
566  \`\`\`
567  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
568`);
vendor: 5,074 bytes, line 568
568var UO=class extends Event{constructor(t,n){super("error",n);Rt(this,"message");Rt(this,"error");this.message=t.message,this.error=t}},qO=class extends Event{constructor(t=1e3,n="",s){super("close",s);Rt(this,"code");Rt(this,"reason");Rt(this,"wasClean",!0);this.code=t,this.reason=n}},ry={Event,ErrorEvent:UO,CloseEvent:qO};function T7(e,t){if(!e)throw new Error(t)}function A7(e){return new e.constructor(e.type,e)}function O7(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new qO(e.code||1999,e.reason||"unknown reason",e):"error"in e?new UO(e.error,e):new Event(e.type,e)}var LT,R7=typeof process<"u"&&typeof((LT=process.versions)==null?void 0:LT.node)<"u"&&typeof document>"u",Yf=R7?O7:A7,ea={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},h_=!1,P7=class sa extends EventTarget{constructor(n,s,i={}){super();Rt(this,"_ws");Rt(this,"_retryCount",-1);Rt(this,"_uptimeTimeout");Rt(this,"_connectTimeout");Rt(this,"_shouldReconnect",!0);Rt(this,"_connectLock",!1);Rt(this,"_binaryType","blob");Rt(this,"_closeCalled",!1);Rt(this,"_messageQueue",[]);Rt(this,"_url");Rt(this,"_protocols");Rt(this,"_options");Rt(this,"onclose",null);Rt(this,"onerror",null);Rt(this,"onmessage",null);Rt(this,"onopen",null);Rt(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:s=ea.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),s),T7(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(i=>{var o;return(o=this._ws)==null?void 0:o.send(i)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(Yf(n))});Rt(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(Yf(n))});Rt(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(Yf(n)),this._connect()});Rt(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(Yf(n))});this._url=n,this._protocols=s,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return sa.CONNECTING}get OPEN(){return sa.OPEN}get CLOSING(){return sa.CLOSING}get CLOSED(){return sa.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((s,i)=>(typeof i=="string"?s+=i.length:i instanceof Blob?s+=i.size:s+=i.byteLength,s),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?sa.CLOSED:sa.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,s){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,s)}reconnect(n,s){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,s),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:s=ea.maxEnqueuedMessages}=this._options;this._messageQueue.length<s&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=ea.reconnectionDelayGrowFactor,minReconnectionDelay:s=ea.minReconnectionDelay,maxReconnectionDelay:i=ea.maxReconnectionDelay}=this._options;let o=0;return this._retryCount>0&&(o=s*Math.pow(n,this._retryCount-1),o>i&&(o=i)),this._debug("next delay",o),o}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const s=n();if(!s)return Promise.resolve(null);if(typeof s=="string"||Array.isArray(s))return Promise.resolve(s);if(s.then)return s}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const s=n();if(typeof s=="string")return Promise.resolve(s);if(s.then)return s}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
568const{maxRetries:n=ea.maxRetries,connectionTimeout:s=ea.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([i,o])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!h_&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
569
570For example, if you're using node.js, run \`npm install ws\`, and then in your code:
571
572import PartySocket from 'partysocket';
573import WS from 'ws';
574
575const partysocket = new PartySocket({
576  host: "127.0.0.1:1999",
577  room: "test-room",
578  WebSocket: WS
579});
580
581`),h_=!0);const l=this._options.WebSocket||WebSocket;this._debug("connect",{url:i,protocols:o}),this._ws=o?new l(i,o):new l(i),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),s)}).catch(i=>{this._connectLock=!1,this._handleError(new ry.ErrorEvent(Error(i.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new ry.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,s){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,s),this._handleClose(new ry.CloseEvent(n,s,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*!
582 * Reconnecting WebSocket
583 * by Pedro Ladaria <[email protected]>
584 * https://github.com/pladaria/reconnecting-websocket
585 * License MIT
586 */const D7=1e3,I7=3e3,L7=new Set([405,409,422,503]),M7=new Set([400,403,404]);function F7(e){const t=e&&typeof e=="object"?e.status:void 0;return typeof t=="number"?t:void 0}function B7(e){return e instanceof Error?e:new Error(String(e))}class U7{constructor(t,n,s,i,o){var l;this.onClose=o,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(l=i==null?void 0:i.id)!==null&&l!==void 0?l:crypto.randomUUID();let c=s.transport==="proxy";const d=async()=>{var m;if(this.closed)throw new Error("Actor connection is closed");if(!c)try{const{websocket_url:g,token:j}=await s.mintConnectionToken(t,n,this.id),b=g.includes("?")?"&":"?";return`${g}${b}token=${encodeURIComponent(j)}`}catch(g){const j=F7(g);if(!(s.transport!=="direct"&&j!==void 0&&L7.has(j))){j!==void 0&&M7.has(j)&&this.close();try{(m=s.onMintError)===null||m===void 0||m.call(s,B7(g))}catch{}throw g}c=!0}return V7(s.host,t,n,this.id,s.appId,s.getAuthToken(),s.functionsVersion)},h=new P7(d);this.ws=h;let p=Date.now();const f=()=>{p=Date.now()};h.addEventListener("open",f),h.addEventListener("message",m=>{f();let g;try{g=JSON.parse(m.data)}catch{return}if((g&&typeof g=="object"?g.type:void 0)!=="__pong")for(const b of this.listeners)b(g)}),this.heartbeat=setInterval(()=>{if(Date.now()-p>I7){f(),h.readyState===h.OPEN&&h.reconnect();return}try{h.send(JSON.stringify({type:"__ping"}))}catch{}},D7)}subscribe(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}send(t){this.closed||this.ws.send(JSON.stringify(t))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function q7(e,t,n,s){let i=null;return{connect(o){if(i)return i;const l=new U7(e,t,n,o,()=>{s.delete(l),i===l&&(i=null)});return i=l,s.add(l),l}}}function V7(e,t,n,s,i,o,l){let c=e.replace(/^(http|https|ws|wss):\/\//,"");c.endsWith("/")&&(c=c.slice(0,-1));const d=c.startsWith("localhost:")||c.startsWith("127.0.0.1:")||c.startsWith("192.168.")||c.startsWith("10.")||c.startsWith("172.")&&c.split(".")[1]>="16"&&c.split(".")[1]<="31"||c.startsWith("[::ffff:7f00:1]:"),h=new URLSearchParams([["_pk",s],["app_id",i],["handler",t]]);return o&&h.append("token",o),l&&h.append("fv",l),`${d?"ws":"wss"}://${c}/parties/${t}/${n}?${h}`}function $7(e,t){return e&&!e.startsWith("/")?e:t??e}function z7(e){const t=new Set;return{module:new Proxy({}
586,{get(s,i){if(!(typeof i!="string"||i==="then"))return o=>q7(i,o,e,t)}}),closeAll:()=>{for(const s of[...t])s.close()}}}function H7(e){var t,n,s,i;const{serverUrl:o="https://base44.app",appId:l,analytics:c,token:d,serviceToken:h,requiresAuth:p=!1,appBaseUrl:f,options:m,functionsVersion:g,headers:j}=e,b=typeof f=="string"?f:"",x={serverUrl:o,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:l,token:d};let v=null;const N=()=>(v||(v=C7({config:x})),v),S={...j,"X-App-Id":String(l)},w=j==null?void 0:j["Base44-State"],k=w?{"Base44-State":w}:{},O=g?{...S,"Base44-Functions-Version":g}:S,C=kl({baseURL:`${o}/api`,headers:S,token:d,onError:m==null?void 0:m.onError}),A=kl({baseURL:`${o}/api`,headers:O,token:d,interceptResponses:!1,onError:m==null?void 0:m.onError}),B={...S,...d?{"on-behalf-of":`Bearer ${d}`}:{}},I=kl({baseURL:`${o}/api`,headers:B,token:h,onError:m==null?void 0:m.onError}),L=kl({baseURL:`${o}/api`,headers:O,token:h,interceptResponses:!1}),D=kl({baseURL:`${o}/api`,headers:S}),R=SV(C,A,l,{appBaseUrl:b,token:d});if(typeof window<"u"){const Q=d||vo();Q&&R.setToken(Q)}const U=z7({appId:l,host:$7(o,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:g,getAuthToken:()=>d||vo(),mintConnectionToken:async(Q,q,F)=>{const P=d||vo();return await D.post(`/apps/${l}/actors/${encodeURIComponent(Q)}/connection-token`,{room:q,connection_id:F},{headers:{...P?{Authorization:`Bearer ${P}`}:{},...g?{"Base44-Functions-Version":g}:{}}})},transport:m==null?void 0:m.actorsTransport,onMintError:m==null?void 0:m.onError}),$={entities:ZS({axios:C,appId:l,getSocket:N}),integrations:t_(C,l),connectors:TV(C,l),auth:R,functions:n_(A,l,{getAuthHeaders:()=>{const Q={},q=d||vo();return q&&(Q.Authorization=`Bearer ${q}`),Q},baseURL:(n=A.defaults)===null||n===void 0?void 0:n.baseURL}),agents:r_({axios:C,getSocket:N,appId:l,serverUrl:o,token:d}),aiGateway:i_({serverUrl:o,token:d,appId:l,headers:k}),appLogs:o_(C,l),app:PV(C,l),users:DV(C,l),analytics:aV({axiosClient:C,serverUrl:o,appId:l,userAuthModule:R,enabled:(s=c==null?void 0:c.enabled)!==null&&s!==void 0?s:!0}),actors:U.module,cleanup:()=>{$.analytics.cleanup(),U.closeAll(),v&&v.disconnect()}},Y={entities:ZS({axios:I,appId:l,getSocket:N}),integrations:t_(I,l),sso:_V(I,l),connectors:EV(I,l),functions:n_(L,l,{getAuthHeaders:()=>{const Q={};return h&&(Q.Authorization=`Bearer ${h}`),Q},baseURL:(i=L.defaults)===null||i===void 0?void 0:i.baseURL}),agents:r_({axios:I,getSocket:N,appId:l,serverUrl:o,token:d}),aiGateway:i_({serverUrl:o,token:h,appId:l,headers:k}),appLogs:o_(I,l),cleanup:()=>{v&&v.disconnect()}};return p&&typeof window<"u"&&setTimeout(async()=>{try{await $.auth.isAuthenticated()||$.auth.redirectToLogin(window.location.href)}catch(Q){console.error("Authentication check failed:",Q),$.auth.redirectToLogin(window.location.href)}},0),{...$,fetchWithAuth:OV({axios:C,serviceRoleAxios:I,appId:String(l),serverUrl:o,functionsVersion:g,platformHeaders:j}),setToken(Q){$.auth.setToken(Q),v&&v.updateConfig({token:Q}),x.token=Q},getConfig(){return{serverUrl:o,appId:l,requiresAuth:p}},get asServiceRole(){if(!h)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return Y}}}const VO=typeof window>"u",W7=VO?{localStorage:new Map}:window,Ou=W7.localStorage,G7=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),vl=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(VO)return t;const s=`base44_${G7(e)}`,i=new URLSearchParams(window.location.search),o=i.get(e);if(n){i.delete(e);const c=`${window.location.pathname}${i.toString()?`?${i.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}if(o)return Ou.setItem(s,o),o;if(t)return Ou.setItem(s,t),t;const l=Ou.getItem(s);return l||null},Y7=()=>(vl("clear_access_token")==="true"&&(Ou.removeItem("base44_access_token"),Ou.removeItem("token")),{appId:vl("app_id",{defaultValue:"6a1652b2216e8d40d018e580"}),token:vl("access_token",{removeFromUrl:!0}),fromUrl:vl("from_url",{defaultValue:window.location.href}),functionsVersion:vl("functions_version",{defaultValue:"prod"}),appBaseUrl:vl("app_base_url",{defaultValue:void 0})}),El={...Y7()},{appId:K7,token:J7,functionsVersion:Q7,appBaseUrl:X7}=El,ge=H7({appId:K7,token:J7,functionsVersion:Q7,serverUrl:"",requiresAuth:!1,appBaseUrl:X7});function m_({}){var i;const t=_i().pathname.substring(1),{data:n,isFetched:s}=LA({queryKey:["user"],queryFn:async()=>{try{return{user:await ge.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return r.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:r.jsx("div",{className:"max-w-md w-full",children:r.jsxs("div",{className:"text-center space-y-6",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),r.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),r.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",r.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),s&&n.isAuthenticated&&((i=n.user)==null?void 0:i.role)==="admin"&&r.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:r.jsxs("div",{className:"flex items-start space-x-3",children:[r.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:r.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),r.jsxs("div",{className:"text-left space-y-1",children:[r.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),r.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),r.jsx("div",{className:"pt-6",children:r.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[r.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const $O=E.createContext(),Z7=({children:e})=>{const[t,n]=E.useState(null),[s,i]=E.useState(!1),[o,l]=E.useState(!0),[c,d]=E.useState(!0),[h,p]=E.useState(null),[f,m]=E.useState(!1),[g,j]=E.useState(null);E.useEffect(()=>{b()},[]);const b=async()=>{var S,w;try{d(!0),p(null);const k=kl({baseURL:"/api/apps/public",headers:{"X-App-Id":El.appId},token:El.token,interceptResponses:!0});try{const O=await k.get(`/prod/public-settings/by-id/${El.appId}`);j(O),El.token?await x():(l(!1),i(!1),m(!0)),d(!1)}catch(O){if(console.error("App state check failed:",O),O.status===403&&((w=(S=O.data)==null?void 0:S.extra_data)!=null&&w.reason)){const C=O.data.extra_data.reason;if(C==="auth_required"){try{localStorage.removeItem("base44_access_token"),localStorage.removeItem("token")}catch{}l(!1),i(!1),m(!0)}else p(C==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:C,message:O.message})}else El.token?await x():(l(!1),i(!1),m(!0));d(!1)}}catch(k){console.error("Unexpected error:",k),p({type:"unknown",message:k.message||"An unexpected error occurred"}),d(!1),l(!1)}},x=async()=>{try{l(!0);const S=await ge.auth.me();n(S),i(!0),l(!1),m(!0)}catch(S){if(console.error("User auth check failed:",S),l(!1),i(!1),m(!0),S.status===401||S.status===403)try{localStorage.removeItem("base44_access_token"),localStorage.removeItem("token")}catch{}}},v=(S=!0)=>{n(null),i(!1),S?ge.auth.logout(window.location.href):ge.auth.logout()},N=()=>{ge.auth.redirectToLogin(window.location.href)};return r.jsx($O.Provider,{value:{user:t,isAuthenticated:s,isLoadingAuth:o,isLoadingPublicSettings:c,authError:h,appPublicSettings:g,authChecked:f,logout:v,navigateToLogin:N,checkUserAuth:x,checkAppState:b},children:e})},jd=()=>{const e=E.useContext($O);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},e$=()=>r.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:r.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:r.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),r.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),r.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),r.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[r.jsx("p",{children:"If you believe this is an error, you can:"}),r.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[r.jsx("li",{children:"Verify you are logged in with the correct account"}),r.jsx("li",{children:"Contact the app administrator for access"}),r.jsx("li",{children:"Try logging out and back in again"})]})]})]})})});function zO(){const{pathname:e}=_i();return E.useEffect(()=>{window.scrollTo(0,0)},[e]),null}const p_=[{label:"Home",path:"/"},{label:"About",children:[{label:"Who We Are",path:"/who-we-are",desc:"Our story, mission, and veteran-owned roots"},{label:"Meet Our Team",path:"/meet-our-team",desc:"Our incredible team dedicated to your success"},{label:"Our Partners",path:"/our-partners",desc:"Organizations we proudly work alongside"},{label:"Mission & Values",path:"/mission-values",desc:"The principles that guide everything we do"},{label:"Capability Statement",path:"/capability-statement",desc:"Core competencies and differentiators"},{label:"Testimonials",path:"/testimonials-page",desc:"Real stories from clients and candidates"}]},{label:"Employers",children:[{label:"Solutions",path:"/solutions",desc:"Workforce and recruiting services we offer"},{label:"GovCon / SDVOSB",path:"/govcon",desc:"Government contracting and SDVOSB support"},{label:"NASA SEWP VI",path:"/sewp-vi",desc:"Recruiting advantage for SEWP VI contractors"},{label:"Let's Talk",path:"/lets-talk",desc:"Schedule a call with our team"},{label:"Submit Testimonial",path:"/submit-testimonial",desc:"Share your experience working with us"}]},{label:"Job Seekers",children:[{label:"Search Jobs",path:"/jobs",desc:"Browse our current open positions"},{label:"Join Our Talent Network",path:"/lss-talent-network",desc:"Stay connected for future opportunities"},{label:"Join Our Team",path:"/join-our-team",desc:"Become an LSS recruiter partner"},{label:"Submit a Testimonial",path:"/submit-testimonial",desc:"Share your experience working with us"}]},{label:"Resources",children:[{label:"Veteran Resources",path:"/veteran-resources",desc:"Tools and support for veteran job seekers"},{label:"Blog",path:"/blog",desc:"Insights on hiring, careers, and industry"}]},{label:"Contact",path:"/contact"}];function v0(){const[e,t]=E.useState(!1),[n,s]=E.useState(null),{user:i}=jd();return r.jsxs("header",{className:"sticky top-0 z-50 shadow-md",children:[r.jsxs("div",{className:"bg-[#0B1F33]",children:[r.jsxs("div",{className:"max-w-7xl mx-auto px-4 flex items-center justify-between py-3 sm:py-4",children:[r.jsx("div",{className:"flex items-center gap-1.5 sm:gap-2",children:i?r.jsx(Me,{to:"/dashboard",className:"text-xs sm:text-sm font-semibold uppercase tracking-wider transition-colors px-3 sm:px-5 h-8 sm:h-10 rounded-full flex items-center justify-center border whitespace-nowrap",style:{borderColor:"rgba(255,255,255,0.3)",color:"#ababab"},onMouseEnter:o=>{o.currentTarget.style.borderColor="#fea71d",o.currentTarget.style.color="#fea71d"},onMouseLeave:o=>{o.currentTarget.style.borderColor="rgba(255,255,255,0.3)",o.currentTarget.style.color="#ababab"},children:"Team Access"}):r.jsx("button",{onClick:()=>ge.auth.redirectToLogin(window.location.pathname),className:"text-xs sm:text-sm font-semibold uppercase tracking-wider transition-colors px-3 sm:px-5 h-8 sm:h-10 rounded-full flex items-center justify-center border whitespace-nowrap",style:{borderColor:"rgba(255,255,255,0.3)",color:"#ababab"},onMouseEnter:o=>{o.currentTarget.style.borderColor="#fea71d",o.currentTarget.style.color="#fea71d"},onMouseLeave:o=>{o.currentTarget.style.borderColor="rgba(255,255,255,0.3)",o.currentTarget.style.color="#ababab"},children:"Login"})}),r.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[r.jsx(Me,{to:"/govcon",className:"hidden sm:flex text-xs sm:text-sm font-bold uppercase tracking-wider transition-colors px-3 sm:px-5 h-8 sm:h-10 rounded-full items-center justify-center border whitespace-nowrap",style:{borderColor:"#fea71d",color:"#fea71d"},onMouseEnter:o=>{o.currentTarget.style.backgroundColor="#fea71d",o.currentTarget.style.color="#0B1F33"},onMouseLeave:o=>{o.currentTarget.style.backgroundColor="transparent",o.currentTarget.style.color="#fea71d"},children:"GovCon"}),r.jsx(Me,{to:"/sewp-vi",className:"hidden sm:flex text-xs sm:text-sm font-bold uppercase tracking-wider transition-colors px-3 sm:px-5 h-8 sm:h-10 rounded-full items-center justify-center border whitespace-nowrap",style:{borderColor:"#fea71d",color:"#fea71d"},onMouseEnter:o=>{o.currentTarget.style.backgroundColor="#fea71d",o.currentTarget.style.color="#0B1F33"},onMouseLeave:o=>{o.currentTarget.style.backgroundColor="transparent",o.currentTarget.style.color="#fea71d"},children:"NASA SEWP VI"}),r.jsx(Me,{to:"/lss-talent-network",className:"hidden sm:flex text-xs sm:text-sm font-bold uppercase tracking-wider transition-colors px-3 sm:px-5 h-8 sm:h-10 rounded-full items-center justify-center border whitespace-nowrap",style:{borderColor:"#fea71d",color:"#fea71d"},onMouseEnter:o=>{o.currentTarget.style.backgroundColor="#fea71d",o.currentTarget.style.color="#0B1F33"},onMouseLeave:o=>{o.currentTarget.style.backgroundColor="transparent",o.currentTarget.style.color="#fea71d"},children:"Join Our Talent Network"}),r.jsx(Me,{to:"/jobs",className:"text-xs sm:text-sm font-bold uppercase tracking-wider transition-colors px-3 sm:px-5 h-8 sm:h-10 rounded-full flex items-center justify-center whitespace-nowrap",style:{backgroundColor:"#fea71d",color:"#0B1F33"},onMouseEnter:o=>{o.currentTarget.style.backgroundColor="#e6951a"},onMouseLeave:o=>{o.currentTarget.style.backgroundColor="#fea71d"},children:"Search Jobs →"})]})]}),r.jsxs("div",{className:"sm:hidden flex flex-col gap-2 px-4 pb-3",children:[r.jsx(Me,{to:"/govcon",className:"text-xs font-bold uppercase tracking-wider transition-colors px-3 h-9 rounded-full flex items-center justify-center w-full",style:{border:"1px solid #fea71d",color:"#fea71d"},children:"GovCon"}),r.jsx(Me,{to:"/sewp-vi",className:"text-xs font-bold uppercase tracking-wider transition-colors px-3 h-9 rounded-full flex items-center justify-center w-full",style:{border:"1px solid #fea71d",color:"#fea71d"},children:"NASA SEWP VI"}),r.jsx(Me,{to:"/lss-talent-network",className:"text-xs font-bold uppercase tracking-wider transition-colors px-3 h-9 rounded-full flex items-center justify-center w-full",style:{border:"1px solid #fea71d",color:"#fea71d"},children:"Join This Network"})]})]}),r.jsxs("nav",{className:"bg-white border-b border-gray-200",children:[r.jsxs("div",{className:"max-w-7xl mx-auto px-4 flex items-center justify-between py-3",children:[r.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 flex-shrink-0
586",children:[r.jsx(Me,{to:"/",className:"flex-shrink-0",children:r.jsx("img",{src:"https://i0.wp.com/leansynergysolutions.com/wp-content/uploads/2026/01/cropped-LSSLOGOFINAL-1-scaled-1.png",alt:"Lean Synergy Solutions",className:"h-10 sm:h-16 lg:h-24 w-auto"})}),r.jsx("a",{href:"https://www.seahawks.com/promotions/eleven-sports-media/small-business-program/",target:"_blank",rel:"noopener noreferrer",className:"flex-shrink-0","aria-label":"Seahawks Small Business Partner 2026",children:r.jsx("img",{src:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/df5e894d6_Seahawks_SBP2_267.jpg",alt:"Seahawks Small Business Partner 2026",className:"h-7 sm:h-10 lg:h-16 w-auto rounded"})})]}),r.jsx("div",{className:"hidden lg:flex items-center gap-1",children:p_.map(o=>o.children?r.jsxs("div",{className:"relative group",children:[r.jsxs("button",{className:"flex items-center gap-1 px-3 py-2 text-sm font-semibold text-[#0B1F33] hover:text-amber-500 transition-colors uppercase tracking-wide",children:[o.label," ",r.jsx(Ca,{className:"w-3.5 h-3.5"})]}),r.jsx("div",{className:"absolute hidden group-hover:block top-full left-0 bg-[#0B1F33] border border-[#0B1F33] rounded-lg shadow-xl py-2 min-w-64 z-50",children:o.children.map(l=>r.jsxs(Me,{to:l.path,className:"block px-4 py-2 text-sm text-white hover:text-amber-400 hover:bg-white/5 transition-colors rounded-md mx-1",children:[r.jsx("span",{className:"font-semibold block",children:l.label}),l.desc&&r.jsx("span",{className:"block text-xs text-white/60 mt-0.5 normal-case tracking-normal",children:l.desc})]},l.path))})]},o.label):r.jsx(Me,{to:o.path,className:"px-3 py-2 text-sm font-semibold text-[#0B1F33] hover:text-amber-500 transition-colors uppercase tracking-wide",children:o.label},o.path))}),r.jsx("button",{onClick:()=>t(!e),className:"lg:hidden text-[#0B1F33]",children:e?r.jsx(Ar,{className:"w-6 h-6"}):r.jsx(WM,{className:"w-6 h-6"})})]}),e&&r.jsx("div",{className:"lg:hidden border-t border-gray-200 bg-white max-h-[80vh] overflow-y-auto",children:p_.map(o=>o.children?r.jsxs("div",{children:[r.jsxs("button",{onClick:()=>s(n===o.label?null:o.label),className:"w-full flex items-center justify-between px-4 py-3 text-sm font-semibold text-[#0B1F33] uppercase tracking-wide",children:[o.label," ",r.jsx(Ca,{className:`w-4 h-4 transition-transform ${n===o.label?"rotate-180":""}`})]}),n===o.label&&r.jsx("div",{className:"bg-gray-50",children:o.children.map(l=>r.jsxs(Me,{to:l.path,onClick:()=>t(!1),className:"block px-8 py-2.5 hover:text-amber-500",children:[r.jsx("span",{className:"text-sm font-semibold text-[#0B1F33]/80 block",children:l.label}),l.desc&&r.jsx("span",{className:"block text-xs text-[#0B1F33]/50 mt-0.5",children:l.desc})]},l.path))})]},o.label):r.jsx(Me,{to:o.path,onClick:()=>t(!1),className:"block px-4 py-3 text-sm font-semibold text-[#0B1F33] uppercase tracking-wide hover:text-amber-500",children:o.label},o.path))})]})]})}const t$=[{label:"Who We Are",path:"/who-we-are"},{label:"Meet Our Team",path:"/meet-our-team"},{label:"Our Partners",path:"/our-partners"},{label:"Mission & Values",path:"/mission-values"},{label:"Capability Statement",path:"/capability-statement"},{label:"Testimonials",path:"/testimonials-page"}],n$=[{label:"Solutions",path:"/solutions"},{label:"GovCon / SDVOSB",path:"/govcon"},{label:"NASA SEWP VI",path:"/sewp-vi"},{label:"Let's Talk",path:"/lets-talk"},{label:"Partner With Us",path:"/partner-with-us"},{label:"Contact",path:"/contact"}],r$=[{label:"Search Jobs",path:"/jobs"},{label:"GovCon / SDVOSB",path:"/govcon"},{label:"Veteran Resources",path:"/veteran-resources"},{label:"Blog",path:"/blog"},{label:"Join Our Talent Network",path:"/lss-talent-network",button:!0}],s$=[{label:"LinkedIn",url:"https://www.linkedin.com/company/leansynergysolutions/",icon:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M4.98 3.5C4.98 4.88 3.87 6 2.5 6S.02 4.88.02 3.5C.02 2.12 1.13 1 2.5 1s2.48 1.12 2.48 2.5zM.5 8h4V24h-4V8zm7.5 0h3.83v2.19h.05C12.74 8.73 14.38 8 16.27 8 20.6 8 21.5 10.82 21.5 14.54V24h-4v-8.62c0-2.05-.04-4.69-2.86-4.69-2.86 0-3.3 2.24-3.3 4.54V24H8V8z"})})},{label:"Facebook",url:"https://www.facebook.com/leansynergysolutions/",icon:r.
586jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95C17.05 21.45 22 17.19 22 12z"})})},{label:"Instagram",url:"https://www.instagram.com/leansynergysolutions/",icon:r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",fill:"none",stroke:"currentColor",strokeWidth:"1.5",viewBox:"0 0 24 24",children:[r.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"}),r.jsx("circle",{cx:"12",cy:"12",r:"4"}),r.jsx("circle",{cx:"17.5",cy:"6.5",r:"1",fill:"currentColor",stroke:"none"})]})},{label:"YouTube",url:"https://www.youtube.com/@LeanSynergySolutions",icon:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M23.5 6.5s-.3-2-1.2-2.8c-1.1-1.2-2.4-1.2-3-1.3C16.8 2.2 12 2.2 12 2.2s-4.8 0-7.3.2c-.6.1-1.9.1-3 1.3C.8 4.5.5 6.5.5 6.5S.2 8.8.2 11.2v2.2c0 2.3.3 4.7.3 4.7s.3 2 1.2 2.8c1.1 1.2 2.6 1.1 3.3 1.2C7.2 22.2 12 22.2 12 22.2s4.8 0 7.3-.3c.6-.1 1.9-.1 3-1.3.9-.8 1.2-2.8 1.2-2.8s.3-2.3.3-4.7v-2.2c0-2.3-.3-4.6-.3-4.6zm-14 9.4V8.1l8.2 3.9-8.2 3.9z"})})}];function b0(){return r.jsxs("footer",{style:{backgroundColor:"#25395a"},children:[r.jsx("div",{className:"max-w-7xl mx-auto px-6 py-16",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-12",children:[r.jsxs("div",{className:"md:col-span-3",children:[r.jsx("img",{src:"https://i0.wp.com/leansynergysolutions.com/wp-content/uploads/2026/01/cropped-LSSLOGOFINAL-1-scaled-1.png",alt:"Lean Synergy Solutions",className:"h-14 w-auto mb-4 brightness-0 invert"}),r.jsxs("div",{className:"flex flex-wrap items-center gap-6 mb-6",children:[r.jsx("img",{src:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/9843db885_Service-DisabledVeteran-Owned-Certified.png",alt:"Service-Disabled Veteran-Owned Certified",className:"h-24 w-auto max-w-[160px] object-contain"}),r.jsx("img",{src:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/01cef2e5b_Veteran-OwnedCertified.png",alt:"Veteran-Owned Certified",className:"h-24 w-auto max-w-[160px] object-contain"}),r.jsx("a",{href:"https://www.seahawks.com/promotions/eleven-sports-media/small-business-program/",target:"_blank",rel:"noopener noreferrer","aria-label":"Seattle Seahawks Small Business Partner 2026",children:r.jsx("img",{src:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/6a1f39ff1_Seahawks_SBP1_266.jpg",alt:"Seattle Seahawks Small Business Partner 2026",className:"h-24 w-auto max-w-[160px] object-contain rounded"})})]}),r.jsx("p",{className:"text-sm leading-relaxed mb-6",style:{color:"#ababab"},children:"Nationwide recruiting and workforce solutions serving advanced manufacturing, aerospace & aviation, government & defense, critical infrastructure & data centers, and industrial & engineering organizations."}),r.jsx("p",{className:"text-xs font-bold uppercase tracking-widest text-white mb-3",children:"Follow Us"}),r.jsx("div",{className:"flex gap-3",children:s$.map(e=>r.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":e.label,className:"w-9 h-9 rounded-full flex items-center justify-center transition-colors",style:{border:"1px solid rgba(255,255,255,0.2)",color:"#ababab"},onMouseEnter:t=>{t.currentTarget.style.borderColor="#fea71d",t.currentTarget.style.color="#fea71d"},onMouseLeave:t=>{t.currentTarget.style.borderColor="rgba(255,255,255,0.2)",t.currentTarget.style.color="#ababab"},children:e.icon},e.label))})]}),r.jsxs("div",{className:"md:col-span-3",children:[r.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-white mb-5",style:{borderBottom:"1px solid rgba(254,167,29,0.4)",paddingBottom:"10px"},children:"About Us"}),r.jsx("ul",{className:"space-y-3",children:t$.map(e=>r.jsx("li",{children:r.jsx(Me,{to:e.path,className:"text-sm transition-colors",style:{color:"#ababab"},onMouseEnter:t=>t.currentTarget.style.color="#fea71d",onMouseLeave:t=>t.currentTarget.style.color="#ababab",children:e.label})},e.path))})]}),r.jsxs("div",{className:"md:col-span-3",children:[r.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-white mb-5",style:{borderBottom:"1px solid rgba(254,167,29,0.4)",paddingBottom:"10px"},children:"For Employers"}),r.jsx("ul",{className:"space-y-3",children:n$.map(e=>r.jsx("li",{children:r.jsx(Me,{to:e.path,className:"text-sm transition-colors",style:{color:"#ababab"},onMouseEnter:t=>t.currentTarget.style.color="#fea71d",onMouseLeave:t=>t.currentTarget.style.color="#ababab",children:e.label})},e.path))})]}),r.jsxs("div",{className:"md:col-span-3",children:[r.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-white mb-5",style:{borderBottom:"1px solid rgba(254,167,29,0.4)",paddingBottom:"10px"},children:"For Talent"}),r.jsx("ul",{className:"space-y-3",children:r$.map(e=>r.jsx("li",{children:e.button?r.jsx(Me,{to:e.path,className:"inline-block text-sm font-bold uppercase tracking-wide px-4 py-2 rounded",style:{backgroundColor:"#fea71d",color:"#0B1F33"},children:e.label}):r.jsx(Me,{to:e.path,className:"text-sm transition-colors",style:{color:"#ababab"},onMouseEnter:t=>t.currentTarget.style.color="#fea71d",onMouseLeave:t=>t.currentTarget.style.color="#ababab",children:e.label})},e.path))})]})]})}),r.jsx("div",{style:{borderTop:"1px solid rgba(255,255,255,0.1)",backgroundColor:"#1a2b42"},children:r.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-4 flex flex-col md:flex-row items-center justify-center gap-2 text-xs",style:{color:"#ababab"},children:[r.jsx("span",{children:"© 2026 Lean Synergy Solutions LLC. All Rights Reserved."}),r.jsx("span",{children:"·"}),r.jsx(Me,{to:"/privacy-policy",style:{color:"#ababab"},onMouseEnter:e=>e.currentTarget.style.color="#fea71d",onMouseLeave:e=>e.currentTarget.style.color="#ababab",children:"Privacy Policy"}),r.jsx("span",{children:"·"}),r.jsx(Me,{to:"/terms-and-conditions",style:{color:"#ababab"},onMouseEnter:e=>e.currentTarget.style.color="#fea71d",onMouseLeave:e=>e.currentTarget.style.color="#ababab",children:"Terms & Conditions"})]})})]})}function HO(){const[e,t]=E.useState(!1);E.useEffect(()=>{localStorage.getItem("cookies_accepted")||t(!0)},[]);const n=()=>{localStorage.setItem("cookies_accepted","true"),t(!1)};return e?r.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-50 p-4 md:p-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto bg-[#1a2b42] text-white rounded-xl shadow-2xl p-5 flex flex-col sm:flex-row items-start sm:items-center gap-4",style:{border:"1px solid rgba(255,255,255,0.1)"},children:[r.jsxs("div",{className:"flex-1 text-sm",style:{color:"#ababab"},children:["🍪 We use cookies to improve your experience on our site. By continuing to browse, you agree to our"," ",r.jsx(Me,{to:"/privacy-policy",className:"underline hover:text-amber-400 transition-colors",style:{color:"#fea71d"},children:"Privacy Policy"}),"."]}),r.jsxs("div",{className:"flex gap-3 flex-shrink-0",children:[r.jsx("button",{onClick:n,className:"px-5 py-2 rounded-full text-sm font-bold uppercase tracking-wide transition-colors",style:{backgroundColor:"#fea71d",color:"#0B1F33"},onMouseEnter:s=>s.currentTarget.style.backgroundColor="#e6951a",onMouseLeave:s=>s.currentTarget.style.backgroundColor="#fea71d",children:"Accept"}),r.jsx("button",{onClick:n,className:"px-5 py-2 rounded-full text-sm font-semibold transition-colors",style:{border:"1px solid rgba(255,255,255,0.2)",color:"#ababab"},onMouseEnter:s=>{s.currentTarget.style.borderColor="#fea71d",s.currentTarget.style.color="#fea71d"},onMouseLeave:s=>{s.currentTarget.style.borderColor="rgba(255,255,255,0.2)",s.currentTarget.style.color="#ababab"},children:"Dismiss"})]})]})}):null}
586const sb="https://leansynergysolutions.com",Bh="Lean Synergy Solutions",ib="https://media.base44.com/images/public/6a1652b2216e8d40d018e580/84d785d88_websitelogo2.png?v=2",WO="Lean Synergy Solutions is a veteran-owned recruiting and workforce solutions partner serving advanced manufacturing, aerospace & aviation, government & defense, critical infrastructure & data centers, and industrial & engineering organizations nationwide.",i$={"/":{title:"Lean Synergy Solutions | Veteran-Owned Recruiting & Workforce Solutions",description:WO},"/who-we-are":{title:"Who We Are | Lean Synergy Solutions",description:"Learn about Lean Synergy Solutions — a veteran-owned recruiting firm connecting skilled professionals with meaningful career opportunities in manufacturing, aerospace, defense, and industrial sectors nationwide."},"/meet-our-team":{title:"Meet Our Recruiting Team | Lean Synergy Solutions",description:"Meet the experienced recruiters and workforce solutions professionals at Lean Synergy Solutions dedicated to connecting talent with opportunity across manufacturing, aerospace, defense, and industrial sectors."},"/our-partners":{title:"Our Partners | Lean Synergy Solutions",description:"Explore our strategic partnerships with veteran organizations, talent solutions providers, and military-affiliated networks that strengthen our nationwide recruiting reach."},"/mission-values":{title:"Mission & Values | Lean Synergy Solutions",description:"Discover the mission and core values that guide Lean Synergy Solutions in delivering exceptional recruiting and workforce solutions for employers and job seekers."},"/testimonials-page":{title:"Client & Candidate Testimonials | Lean Synergy Solutions",description:"Read testimonials from employers and job seekers who partnered with Lean Synergy Solutions for their recruiting and workforce needs in manufacturing, aerospace, and defense."},"/solutions":{title:"Staffing & Recruiting Solutions | Lean Synergy Solutions",description:"Direct hire, contract, and workforce solutions for advanced manufacturing, aerospace, defense, data centers, and industrial engineering. Find the right talent with Lean Synergy Solutions."},"/lets-talk":{title:"Hire Talent — Let's Talk | Lean Synergy Solutions",description:"Ready to hire skilled talent? Contact Lean Synergy Solutions for customized recruiting and workforce solutions tailored to your industry and hiring needs."},"/contact":{title:"Contact Us | Lean Synergy Solutions",description:"Get in touch with Lean Synergy Solutions for recruiting, staffing, and workforce solutions. Reach our team for employer inquiries and job seeker support."},"/jobs":{title:"Search Jobs | Manufacturing, Aerospace & Defense Careers | Lean Synergy Solutions",description:"Browse open positions in advanced manufacturing, aerospace & aviation, government & defense, engineering, and skilled trades. Find your next career opportunity with Lean Synergy Solutions."},"/apply":{title:"Apply Now | Lean Synergy Solutions",description:"Submit your application to Lean Synergy Solutions. Apply for positions in manufacturing, aerospace, defense, engineering, and skilled trades nationwide."},"/govcon":{title:"GovCon / SDVOSB Solutions | Lean Synergy Solutions",description:"Service-Disabled Veteran-Owned Small Business (SDVOSB) government contracting solutions. Compliance-ready talent for federal agencies, defense contractors, and government partners."},"/partner-with-us":{title:"Partner With Us | Lean Synergy Solutions",description:"Partner with Lean Synergy Solutions to expand your recruiting reach and access skilled talent across manufacturing, aerospace, defense, and industrial sectors nationwide."},"/join-our-team":{title:"Become an Independent Recruiting Partner | Lean Synergy Solutions",description:"Build your own recruiting business as an independent 1099 recruiting partner with Lean Synergy Solutions. Get access to tools, job inventory, and support to grow your career."},"/lss-talent-network":{title:"Join Our Talent Network | Lean Synergy Solutions",description:"Join the Lean Synergy Solutions Talent Network. Upload your résumé once and get matched with manufacturing, aerospace, defense, and skilled-trades opportunities nationwide."},"/sewp-vi":{title:"NASA SEWP VI Government IT Solutions | Lean Synergy Solutions",description:"NASA SEWP VI government-wide acquisition contract solutions from Lean Synergy Solutions — compliance-ready IT, engineering, and mission-critical talent for federal agencies and prime contractors."},"/blog":{title:"Blog | Recruiting & Workforce Insights | Lean Synergy Solutions",description:"Insights and articles on recruiting, workforce solutions, veteran careers, manufacturing talent, and industry trends from Lean Synergy Solutions."},"/veteran-resources":{title:"Veteran Resources | Lean Synergy Solutions",description:"Resources for veterans transitioning to civilian careers, including resume assistance, career guidance, and veteran-friendly employer connections."},"/resources":{title:"Resources | Lean Synergy Solutions",description:"Helpful resources for job seekers and employers — career guidance, hiring tips, and workforce insights from Lean Synergy Solutions."},"/capability-statement":{title:"Capability Statement | Lean Synergy Solutions",description:"Review the capabilities and qualifications of Lean Synergy Solutions — a veteran-owned recruiting and workforce solutions provider serving multiple industries nationwide."},"/submit-testimonial":{title:"Submit a Testimonial | Lean Synergy Solutions",description:"Share your experience working with Lean Synergy Solutions. Submit your testimonial as a client or candidate."},"/privacy-policy":{title:"Privacy Policy | Lean Synergy Solutions",description:"Privacy policy for Lean Synergy Solutions website and services."},"/terms-and-conditions":{title:"Terms & Conditions | Lean Synergy Solutions",description:"Terms and conditions for Lean Synergy Solutions website and services."},"/sms-privacy-policy":{title:"SMS Privacy Policy | Lean Synergy Solutions",description:"SMS privacy policy for Lean Synergy Solutions."}},o$=["/dashboard","/LSSadmin"];function Ps(e,t){if(!t)return;let n=document.querySelector(`meta[name="${e}"]`);n||(n=document.createElement("meta"),n.setAttribute("name",e),document.head.appendChild(n)),n.setAttribute("content",t)}function hs(e,t){if(!t)return;let n=document.querySelector(`meta[property="${e}"]`);n||(n=document.createElement("meta"),n.setAttribute("property",e),document.head.appendChild(n)),n.setAttribute("content",t)}function GO(e,t){if(!t)return;let n=document.querySelector(`link[rel="${e}"]`);n||(n=document.createElement("link"),n.setAttribute("rel",e),document.head.appendChild(n)),n.setAttribute("href",t)}function a$(e){let t=document.getElementById("page-jsonld");t||(t=document.createElement("script"),t.setAttribute("type","application/ld+json"),t.setAttribute("id","page-jsonld"),document.head.appendChild(t)),t.textContent=JSON.stringify(e)}function l$(){const e=document.getElementById("page-jsonld");e&&(e.textContent="")}function YO(){const e=_i();return E.useEffect(()=>{const t=e.pathname,n=o$.some(c=>
586t.startsWith(c)),s=i$[t]||{},i=s.title||`${Bh} | Veteran-Owned Recruiting & Workforce Solutions`,o=s.description||WO,l=`${sb}${t}`;document.title=i,Ps("description",o),GO("canonical",l),Ps("robots",n?"noindex, nofollow":"index, follow"),hs("og:title",i),hs("og:description",o),hs("og:url",l),hs("og:type","website"),hs("og:site_name",Bh),hs("og:image",ib),Ps("twitter:card","summary_large_image"),Ps("twitter:title",i),Ps("twitter:description",o),Ps("twitter:image",ib),l$()},[e.pathname]),null}function w0({title:e,description:t,image:n,jsonLd:s,path:i,type:o="article"}){return E.useEffect(()=>{const l=e?`${e} | ${Bh}`:`${Bh}`,c=i?`${sb}${i}`:sb,d=n||ib;document.title=l,t&&Ps("description",t),i&&GO("canonical",c),hs("og:title",l),t&&hs("og:description",t),i&&hs("og:url",c),hs("og:type",o),hs("og:image",d),Ps("twitter:title",l),t&&Ps("twitter:description",t),Ps("twitter:image",d),s&&a$(s)},[e,t,n,s,i,o]),null}function g_(){return r.jsxs("div",{className:"min-h-screen flex flex-col bg-background text-foreground font-sans",children:[r.jsx(YO,{}),r.jsx(zO,{}),r.jsx(v0,{}),r.jsx("main",{className:"flex-1",children:r.jsx(WA,{})}),r.jsx(b0,{}),r.jsx(HO,{})]})}const Xl=[{name:'Jeremy "Monte" Montgomery',title:"Chief Operations Officer & Founder",linkedin:"https://www.linkedin.com/in/monte101/",slug:"jeremy-montgomery",initials:"JM",photo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/a63ed811d_ChatGPTImageJun24202601_45_03PM.png",bio:`Jeremy "Monte" Montgomery is the Co-Owner and Chief Operating Officer of Lean Synergy Solutions, a veteran-owned recruiting firm specializing in advanced manufacturing, critical infrastructure, and healthcare operations talent.
587
588With more than 20 years of recruiting and workforce development experience, Monte has built his career around connecting exceptional people with meaningful opportunities. Prior to entering the recruiting industry, he served 23 years in the United States Air Force, where he developed a deep appreciation for leadership, operational excellence, and the value of building high-performing teams.
589
590Monte is passionate about helping organizations find the people who keep America running. From the professionals who manufacture critical equipment, maintain essential infrastructure, and support healthcare operations, to the leaders who drive continuous improvement and growth, he believes great talent is the foundation of every successful organization. His work focuses on strengthening the industries that keep the lights on, the water flowing, communities operating, and businesses moving forward.
591
592A strong advocate for military veterans and military families, Monte has dedicated much of his work to helping veterans successfully transition into civilian careers while educating employers on the tremendous value veteran talent brings to the workforce. Through Lean Synergy Solutions, he continues to support organizations nationwide by delivering highly qualified professionals who lead with integrity, adaptability, and a commitment to excellence.`},{name:"Alexandra Montgomery",title:"Co-Chief Operations Officer & Co-Founder",linkedin:"https://www.linkedin.com/in/alexandra-montgomerywa/",slug:"alexandra-montgomery",initials:"AM",pronouns:"she",photo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/d55f8005d_AlexandraMontgomery.png",bio:`Alexandra is the Co-Chief Operations Officer and Co-Founder of Lean Synergy Solutions, where she oversees backend operations, systems, and process development that support the company's mission and long-term growth. As an Air Force veteran with experience in hospital management, MediEvac program management, disability case management, and healthcare IT, Alexandra brings a practical, service-minded approach to operations and problem solving.
593
594She holds a Master's degree in Health Sciences-Public Health and is passionate about veteran advocacy, health education, and supporting the overall wellness of veterans and military families. While she never expected to help build a staffing company, she has embraced the challenge of creating the structure, workflows, and behind-the-scenes systems that help the business operate effectively and support both clients and candidates.
595
596Outside of work, Alexandra enjoys spending time with her family and her dogs, photography, getting out in nature, and attending her daughter's rodeo events.`},{name:"Michael Malinowsky",title:"Director of Recruiting",linkedin:"https://www.linkedin.com/in/mikemalinowsky/",slug:"recruiter-michael-malinowsky",initials:"MM",pronouns:"he",photo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/e05ba1615_1736973677764.jpg",bio:`If you've spent any time in the talent space, you might know Mike Malinowsky by his moniker, 'The Genuine Recruiter.' Here at Lean Synergy Solutions, Mike brings that exact energy to our team every day, combining a strategic approach to hiring with a genuine, people-first attitude.
597
598
599
600For Mike, success starts with his faith, and he puts God first in everything he does. That foundation of integrity carries over directly from his 21-year career in the U.S. Army. After working in communications and IT, Mike found his true calling in Army recruiting, where he mastered the art of creative sourcing and building deep trust with candidates. After retiring from the military, he successfully transitioned those skills into corporate recruiting, specializing in the engineering, defense, and manufacturing sectors.
601
602
603
604At Lean Synergy Solutions, Mike is all about finding the perfect balance between cutting-edge hiring tech and authentic human connection. While he loves using modern tools to streamline the process, he firmly believes that automated systems should never replace real, honest conversations.
605
606
607
608When he's off the clock, Mike loves spending quality time with his family. He's happily married to his beautiful bride, Holly, and together they have three children and a French bulldog named Monty.`},{name:"Rick Bullard",title:"Director of Client Solutions",linkedin:"https://www.linkedin.com/in/rick-bullard-msgt-ret-ms-cscs-rscc-39198a1b4/",slug:"rick-bullard",initials:"RB",pronouns:"he",photo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/f04cd3bbf_RickBullard.jpg",bio:`Rick Bullard serves as Director of Client Solutions for Lean Synergy Solutions, where he helps companies strengthen their teams by connecting them with Lean Synergy's disciplined, veteran-first recruiting model. His focus is on building relationships with organizations that need people who show up with discipline, ownership, integrity, and pride.
609
610Rick and his wife Amber are both retired Air Force veterans and live in Castroville, Texas, with their two children, Seth and Madi. His recruiting background includes over a decade in Air Force recruiting, with assignments in Pittsburgh, Boise, Montgomery, and San Antonio. During that time, he earned the Senior Air Force Recruiting Badge seven times and was twice named Medical Service Corps Recruiter of the Year.
611
612Rick was also part of the original team selected to stand up Air Force Special Warfare recruiting, where he became the first liaison between Air Force Recruiting and Air Force Special Warfare. After retirement, he served as Head of Human Performance for the Air Force Special Warfare Preparatory Course.
613
614His background also includes launching businesses in human performance and medical sales, including work with products designed to help patients facing chronic wounds. Rick holds a bachelor's degree in Business Management and a master's degree in Exercise Science.`},{name:"Misty Duffney",title:"Recruiting Coordinator",linkedin:"https://www.linkedin.com/in/misty-duffney-6b477b40a/",slug:"misty-duffney",
614initials:"MD",pronouns:"she",photo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/99df05910_MistyRoberts.jpg",bio:`As a Recruiting Coordinator with Lean Synergy Solutions, I am excited to begin my career in the recruiting industry and contribute to connecting talented individuals with meaningful career opportunities. Although I am new to recruiting, I have quickly discovered a passion for helping people take the next step in their professional journey and serving as the link between qualified candidates and organizations where they can thrive.
615
616What I enjoy most about recruiting is getting to know candidates, understanding their goals, and helping them find opportunities that align with their skills and aspirations. There is nothing more rewarding than knowing I played a part in helping someone find a career that can positively impact their future. I am especially passionate about supporting veterans as they transition into civilian careers and helping them connect with opportunities that recognize the value of their experience and service.
617
618Outside of work, I live in Republic, Washington, where I enjoy homesteading with a variety of animals, including chickens, ducks, turkeys, guinea hens, and geese. I also enjoy gardening, crocheting, and spending time with a good book. My dedication, enthusiasm, and people-focused approach help me bring genuine care and energy to every candidate interaction.`},{name:"Zoe Montgomery",title:"Admin & Research Assistant",linkedin:null,slug:"zoe-montgomery",initials:"ZM",photo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/f70c6f87d_Zoe1-1102.webp",bio:`Zoe Montgomery serves as an Admin & Research Assistant at Lean Synergy Solutions, where she plays a vital role in supporting the company's operations. Currently finishing her degree in Elementary Education, Zoe brings tremendous value to the family business through her expert research capabilities and administrative excellence.
619
620
621
622While she doesn't recruit directly, Zoe's research expertise is instrumental in enabling the recruiting team to succeed. Her dedication to helping operate the family business while pursuing her education demonstrates her commitment to both her professional growth and her family's mission.`},{name:"Frank Hitchcock",title:"Senior Recruiting Partner",linkedin:"https://www.linkedin.com/in/frank-hitchcock/",slug:"recruiter-frank-hitchcock",initials:"FH",pronouns:"he",photo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/9978a4bc2_FH.jpg",bio:`Frank Hitchcock has spent most of his career helping people find opportunities and organizations find great talent. His recruiting journey started in the U.S. Air Force, where he served as a recruiter and later led recruiting operations across multiple states. Along the way, he gained experience building recruiting teams, developing talent strategies, and helping thousands of candidates take the next step in their careers.
623
624Today, Frank partners with companies across a variety of industries to identify, attract, and hire top talent. He enjoys the challenge of finding the right fit for both the candidate and the employer and believes great recruiting is built on relationships, trust, and honest communication.
625
626One area Frank is especially passionate about is helping veterans transition from military service into civilian careers. As a retired Air Force veteran himself, he understands both the challenges and opportunities that come with that transition and enjoys helping veterans showcase the value they bring to employers.
627
628When he's not recruiting, you'll likely find Frank on the golf course, enjoying a good cigar, spending time with family, or serving in his local church. He brings the same people-first approach to recruiting that has guided him throughout his career.`},{name:"James Shelton",title:"Senior Recruiting Partner",linkedin:"https://www.linkedin.com/in/james-shelton-1102a714/",slug:"recruiter-james-shelton",initials:"JS",pronouns:"he",photo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/9077ed858_JamesShelton.jpg"},{name:"Eddie Brock",title:"Senior Recruiting Partner",linkedin:"https://www.linkedin.com/in/eddiebrock18931942/",slug:"recruiter-eddie-brock",initials:"EB",pronouns:"he",photo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/87ce4d192_EddieBrock.jpg",bio:`Aloha, I'm Eddie Brock, a retired U.S. Navy Seabee Chief with 21 years of military service and more than 14 years of recruiting and talent acquisition experience.
629
630Since 2012, I've helped organizations find and hire the people who keep projects moving, teams growing, and missions on track. My recruiting experience spans military, construction, industrial, technical, and leadership roles, giving me the opportunity to work with everyone from skilled trades professionals and project managers to executives and transitioning service members.
631
632What I enjoy most about recruiting is building relationships. Every person has a story, a skill set, and a goal they're working toward. I take pride in helping people find opportunities that align with their strengths while helping organizations build teams that can succeed for the long haul.
633
634As a Navy veteran, I also have a passion for helping service members navigate the transition to civilian careers. Having spent years recruiting, mentoring, and leading people, I understand that a successful hire is about more than a resume—it's about finding the right fit for both the individual and the organization.
635
636My approach is simple: be honest, communicate clearly, and treat people with respect. That's how I've built relationships throughout my career, and it's the mindset I bring to Lean Synergy Solutions every day.`},{name:"Alex Potgeter",title:"Senior Recruiting Partner",linkedin:"https://www.linkedin.com/in/alexpotgeter/",slug:"recruiter-alex-potgeter",initials:"AP",pronouns:"he",photo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/df9bdce83_headsh
636ot.jpg",bio:`I am a talent acquisition professional and Army veteran with extensive experience identifying, developing, and recruiting high performing individuals. Throughout my military career, I helped people navigate life changing career decisions, guiding them toward opportunities that aligned with their goals, strengths, and long term aspirations.
637
638What drives me most about recruiting is the opportunity to make a lasting impact on people's lives. I believe every person has inherent value, but finding the right role can amplify that value for the individual, their family, and the organization they serve. Whether working with transitioning service members, recent graduates, or experienced professionals, I am passionate about connecting talent with meaningful opportunities that create mutual success.
639
640My background in leadership, mentorship, relationship building, and strategic recruiting has equipped me to understand both candidate and organizational needs. Today, I continue to focus on helping organizations find exceptional talent while empowering individuals to pursue careers that provide purpose, growth, and stability.`},{name:"Seth Bullard",title:"Junior Recruiting Partner",linkedin:"https://www.linkedin.com/in/seth-bullard-994522283/",slug:"recruiter-seth-bullard",initials:"SB",pronouns:"he",photo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/d1d8d807e_IMG_4068.jpg",bio:`As a Junior Recruiting Partner, Seth is passionate about placing people who are often overlooked on paper into roles where they can do their best work. At Lean Synergy Solutions, he advocates for both the candidate and the client in every search, focusing on building the right fit for long-term success.
641
642Seth earned his Bachelor of Business Administration in General Business from Stephen F. Austin State University. Before joining LSS, he built a graphic design and social media marketing service that helped overlooked high school and transfer portal football players earn college offers through targeted social media efforts that connected talented athletes with the right opportunities.
643
644A former Division I linebacker, Seth understands firsthand what it feels like to work hard for opportunities that do not always come easy. That experience continues to shape his approach to recruiting and relationship building.
645
646Outside the office, Seth enjoys lifting weights, playing fetch with his dog Juju, and watching F1 races with his dad. He is also a self-described mediocre pickleball player and a lifelong Pittsburgh Steelers fan. Seth is based in San Antonio, Texas.`},{name:"Tux",title:"Chief Stress Relief Officer",linkedin:null,slug:"tux",initials:"🐾",photo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/220708cb5_Tux.png",bio:"Tux proudly serves as the Chief Stress Reduction Officer at Lean Synergy Solutions. Specializing in naps, cuddles, snacks, and morale support, Tux is always ready to provide stress relief whenever needed. Whether he's enjoying a car ride, relaxing in the office, or making sure the team takes a moment to smile, Tux plays an important role in keeping spirits high and stress levels low."}],KO=E.createContext({});function c$(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const j0=E.createContext(null),JO=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function u$(e=!0){const t=E.useContext(j0);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=t,o=E.useId();E.useEffect(()=>{e&&i(o)},[e]);const l=E.useCallback(()=>e&&s&&s(o),[o,s,e]);return!n&&s?[!1,l]:[!0]}const N0=typeof window<"u",d$=N0?E.useLayoutEffect:E.useEffect,kr=e=>e;let QO=kr;function S0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Zl=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},xi=e=>e*1e3,vi=e=>e/1e3,f$={useManualTiming:!1};function h$(e){let t=new Set,n=new Set,s=!1,i=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(h){o.has(h)&&(d.schedule(h),e()),h(l)}const d={schedule:(h,p=!1,f=!1)=>{const g=f&&s?t:n;return p&&o.add(h),g.has(h)||g.add(h),h},cancel:h=>{n.delete(h),o.delete(h)},process:h=>{if(l=h,s){i=!0;return}s=!0,[t,n]=[n,t],t.forEach(c),t.clear(),s=!1,i&&(i=!1,d.process(h))}};return d}const Kf=["read","resolveKeyframes","update","preRender","render","postRender"],m$=40;function XO(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=Kf.reduce((v,N)=>(v[N]=h$(o),v),{}),{read:c,resolveKeyframes:d,update:h,preRender:p,render:f,postRender:m}=l,g=()=>{const v=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,m$),1),i.timestamp=v,i.isProcessing=!0,c.process(i),d.process(i),h.process(i),p.process(i),f.process(i),m.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(g))},j=()=>{n=!0,s=!0,i.isProcessing||e(g)};return{schedule:Kf.reduce((v,N)=>{const S=l[N];return v[N]=(w,k=!1,O=!1)=>(n||j(),S.schedule(w,k,O)),v},{}),cancel:v=>{for(let N=0;N<Kf.length;N++)l[Kf[N]].cancel(v)},state:i,steps:l}}const{schedule:Mt,cancel:Co,state:An,steps:sy}=XO(typeof requestAnimationFrame<"u"?requestAnimationFrame:kr,!0),ZO=E.createContext({strict:!1}),y_={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"]},ec={};for(const e in y_)ec[e]={isEnabled:t=>y_[e].some(n=>!!t[n])};function p$(e){for(const t in e)ec[t]={...ec[t],...e[t]}}const g$=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 Uh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||g$.has(e)}let eR=e=>!Uh(e);function y$(e){e&&(eR=t=>t.startsWith("on")?!Uh(t):e(t))}try{y$(require("@emotion/is-prop-valid").default)}catch{}function x$(e,t,n){const s={};for(const i in e)i==="values"&&typeof e.values=="object"||(eR(i)||n===!0&&Uh(i)||!t&&!Uh(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}function v$(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Sm=E.createContext({});function Yu(e){return typeof e=="string"||Array.isArray(e)}function _m(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const _0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],k0=["initial",..._0];function km(e){return _m(e.animate)||k0.some(t=>Yu(e[t]))}function tR(e){return!!(km(e)||e.variants)}function b$(e,t){if(km(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Yu(n)?n:void 0,animate:Yu(s)?s:void 0}}return e.inherit!==!1?t:{}}function w$(e){const{initial:t,animate:n}=b$(e,E.useContext(Sm));return E.useMemo(()=>({initial:t,animate:n}),[x_(t),x_(n)])}function x_(e){return Array.isArray(e)?e.join(" "):e}const j$=Symbol.for("motionComponentSymbol");function Ol(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function N$(e,t,n){return E.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):Ol(n)&&(n.current=s))},[t])}const E0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),S$="framerAppearId",nR="data-"+E0(S$),{schedule:C0}=XO(queueMicrotask,!1),rR=E.createContext({});function _$(e,t,n,s,i){var o,l;const{visualElement:c}=E.useContext(Sm),d=E.useContext(ZO),h=E.useContext(j0),p=E.useContext(JO).reducedMotion,f=E.useRef(null);s=s||d.renderer,!f.current&&s&&(f.current=s(e,{visualState:t,parent:c,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:p}));const m=f.current,g=E.useContext(rR);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&k$(f.current,n,i,g);const j=E.useRef(!1);E.useInsertionEffect(()=>{m&&j.current&&m.update(n,h)});const b=n[nR],x=E.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,b)));return d$(()=>{m&&(j.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),C0.render(m.render),x.current&&m.animationState&&m.animationState.animateChanges())}),E.useEffect(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,b)}),x.current=!1))}),m}function k$(e,t,n,s){const{layoutId:i,layout:o,drag:l,dragConstraints:c,layoutScroll:d,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:sR(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!l||c&&Ol(c),visualElement:e,animationType:typeof o=="str
646ing"?o:"both",initialPromotionConfig:s,layoutScroll:d,layoutRoot:h})}function sR(e){if(e)return e.options.allowProjection!==!1?e.projection:sR(e.parent)}function E$({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:i}){var o,l;e&&p$(e);function c(h,p){let f;const m={...E.useContext(JO),...h,layoutId:C$(h)},{isStatic:g}=m,j=w$(h),b=s(h,g);if(!g&&N0){T$();const x=A$(m);f=x.MeasureLayout,j.visualElement=_$(i,b,m,t,x.ProjectionNode)}return r.jsxs(Sm.Provider,{value:j,children:[f&&j.visualElement?r.jsx(f,{visualElement:j.visualElement,...m}):null,n(i,h,N$(b,j.visualElement,p),b,g,j.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(l=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&l!==void 0?l:""})`}`;const d=E.forwardRef(c);return d[j$]=i,d}function C$({layoutId:e}){const t=E.useContext(KO).id;return t&&e!==void 0?t+"-"+e:e}function T$(e,t){E.useContext(ZO).strict}function A$(e){const{drag:t,layout:n}=ec;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const O$=["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 T0(e){return typeof e!="string"||e.includes("-")?!1:!!(O$.indexOf(e)>-1||/[A-Z]/u.test(e))}function v_(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function A0(e,t,n,s){if(typeof t=="function"){const[i,o]=v_(s);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=v_(s);t=t(n!==void 0?n:e.custom,i,o)}return t}const ob=e=>Array.isArray(e),R$=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),P$=e=>ob(e)?e[e.length-1]||0:e,Un=e=>!!(e&&e.getVelocity);function Sh(e){const t=Un(e)?e.get():e;return R$(t)?t.toValue():t}function D$({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,i,o){const l={latestValues:I$(s,i,o,e),renderState:t()};return n&&(l.onMount=c=>n({props:s,current:c,...l}),l.onUpdate=c=>n(c)),l}const iR=e=>(t,n)=>{const s=E.useContext(Sm),i=E.useContext(j0),o=()=>D$(e,t,s,i);return n?o():c$(o)};function I$(e,t,n,s){const i={},o=s(e,{});for(const m in o)i[m]=Sh(o[m]);let{initial:l,animate:c}=e;const d=km(e),h=tR(e);t&&h&&!d&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const f=p?c:l;if(f&&typeof f!="boolean"&&!_m(f)){const m=Array.isArray(f)?f:[f];for(let g=0;g<m.length;g++){const j=A0(e,m[g]);if(j){const{transitionEnd:b,transition:x,...v}=j;for(const N in v){let S=v[N];if(Array.isArray(S)){const w=p?S.length-1:0;S=S[w]}S!==null&&(i[N]=S)}for(const N in b)i[N]=b[N]}}}return i}const mc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ya=new Set(mc),oR=e=>t=>typeof t=="string"&&t.startsWith(e),aR=oR("--"),L$=oR("var(--"),O0=e=>L$(e)?M$.test(e.split("/*")[0].trim()):!1,M$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,lR=(e,t)=>t&&typeof e=="number"?t.transform(e):e,wi=(e,t,n)=>n>t?t:n<e?e:n,pc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ku={...pc,transform:e=>wi(0,1,e)},Jf={...pc,default:1},Nd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),so=Nd("deg"),Fs=Nd("%"),ot=Nd("px"),F$=Nd("vh"),B$=Nd("vw"),b_={...Fs,parse:e=>Fs.parse(e)/100,transform:e=>Fs.transform(e*100)},U$={borderWidth:ot,borderTopWidth:ot,borderRightWidth:ot,borderBottomWidth:ot,borderLeftWidth:ot,borderRadius:ot,radius:ot,borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomRightRadius:ot,borderBottomLeftRadius:ot,width:ot,maxWidth:ot,height:ot,maxHeight:ot,top:ot,right:ot,bottom:ot,left:ot,padding:ot,paddingTop:ot,paddingRight:ot,paddingBottom:ot,paddingLeft:ot,margin:ot,marginTop:ot,marginRight:ot,marginBottom:ot,marginLeft:ot,backgroundPositionX:ot,backgroundPositionY:ot},q$={rotate:so,rotateX:so,rotateY:so,rotateZ:so,scale:Jf,scaleX:Jf,scaleY:Jf,scaleZ:Jf,skew:so,skewX:so,skewY:so,distance:ot,translateX:ot,translateY:ot,translateZ:ot,x:ot,y:ot,z:ot,perspective:ot,transformPerspective:ot,opacity:Ku,originX:b_,originY:b_,originZ:ot},w_={...pc,transform:Math.round},R0={...U$,...q$,zIndex:w_,size:ot,fillOpacity:Ku,strokeOpacity:Ku,numOctaves:w_},V$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$$=mc.length;function z$(e,t,n){let s="",i=!0;for(let o=0;o<$$;o++){const l=mc[o],c=e[l];
vendor: 4,079 bytes, line 646
646if(c===void 0)continue;let d=!0;if(typeof c=="number"?d=c===(l.startsWith("scale")?1:0):d=parseFloat(c)===0,!d||n){const h=lR(c,R0[l]);if(!d){i=!1;const p=V$[l]||l;s+=`${p}(${h}) `}n&&(t[l]=h)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}function P0(e,t,n){const{style:s,vars:i,transformOrigin:o}=e;let l=!1,c=!1;for(const d in t){const h=t[d];if(Ya.has(d)){l=!0;continue}else if(aR(d)){i[d]=h;continue}else{const p=lR(h,R0[d]);d.startsWith("origin")?(c=!0,o[d]=p):s[d]=p}}if(t.transform||(l||n?s.transform=z$(t,e.transform,n):s.transform&&(s.transform="none")),c){const{originX:d="50%",originY:h="50%",originZ:p=0}=o;s.transformOrigin=`${d} ${h} ${p}`}}const H$={offset:"stroke-dashoffset",array:"stroke-dasharray"},W$={offset:"strokeDashoffset",array:"strokeDasharray"};function G$(e,t,n=1,s=0,i=!0){e.pathLength=1;const o=i?H$:W$;e[o.offset]=ot.transform(-s);const l=ot.transform(t),c=ot.transform(n);e[o.array]=`${l} ${c}`}function j_(e,t,n){return typeof e=="string"?e:ot.transform(t+n*e)}function Y$(e,t,n){const s=j_(t,e.x,e.width),i=j_(n,e.y,e.height);return`${s} ${i}`}function D0(e,{attrX:t,attrY:n,attrScale:s,originX:i,originY:o,pathLength:l,pathSpacing:c=1,pathOffset:d=0,...h},p,f){if(P0(e,h,f),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:j}=e;m.transform&&(j&&(g.transform=m.transform),delete m.transform),j&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=Y$(j,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),s!==void 0&&(m.scale=s),l!==void 0&&G$(m,l,c,d,!1)}const I0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),cR=()=>({...I0(),attrs:{}}),L0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function uR(e,{style:t,vars:n},s,i){Object.assign(e.style,t,i&&i.getProjectionStyles(s));for(const o in n)e.style.setProperty(o,n[o])}const dR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function fR(e,t,n,s){uR(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(dR.has(i)?i:E0(i),t.attrs[i])}const qh={};function K$(e){Object.assign(qh,e)}function hR(e,{layout:t,layoutId:n}){return Ya.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!qh[e]||e==="opacity")}function M0(e,t,n){var s;const{style:i}=e,o={};for(const l in i)(Un(i[l])||t.style&&Un(t.style[l])||hR(l,e)||((s=n==null?void 0:n.getValue(l))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(o[l]=i[l]);return o}function mR(e,t,n){const s=M0(e,t,n);for(const i in e)if(Un(e[i])||Un(t[i])){const o=mc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=e[i]}return s}function J$(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const N_=["x","y","width","height","cx","cy","r"],Q$={useVisualState:iR({scrapeMotionValuesFromProps:mR,createRenderState:cR,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(Ya.has(c)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let c=0;c<N_.length;c++){const d=N_[c];e[d]!==t[d]&&(l=!0)}l&&Mt.read(()=>{J$(n,s),Mt.render(()=>{D0(s,i,L0(n.tagName),e.transformTemplate),fR(n,s)})})}})},X$={useVisualState:iR({scrapeMotionValuesFromProps:M0,createRenderState:I0})};function pR(e,t,n){for(const s in t)!Un(t[s])&&!hR(s,n)&&(e[s]=t[s])}function Z$({transformTemplate:e},t){return E.useMemo(()=>{const n=I0();return P0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function e9(e,t){const n=e.style||{},s={};return pR(s,n,e),Object.assign(s,Z$(e,t)),s}function t9(e,t){const n={},s=e9(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
646`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function n9(e,t,n,s){const i=E.useMemo(()=>{const o=cR();return D0(o,t,L0(s),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};pR(o,e.style,e),i.style={...o,...i.style}}return i}function r9(e=!1){return(n,s,i,{latestValues:o},l)=>{const d=(T0(n)?n9:t9)(s,o,l,n),h=x$(s,typeof n=="string",e),p=n!==E.Fragment?{...h,...d,ref:i}:{},{children:f}=s,m=E.useMemo(()=>Un(f)?f.get():f,[f]);return E.createElement(n,{...p,children:m})}}function s9(e,t){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const l={...T0(s)?Q$:X$,preloadedFeatures:e,useRender:r9(i),createVisualElement:t,Component:s};return E$(l)}}function gR(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function Em(e,t,n){const s=e.getProps();return A0(s,t,n!==void 0?n:s.custom,e)}const i9=S0(()=>window.ScrollTimeline!==void 0);class o9{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t,n){const s=this.animations.map(i=>{if(i9()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class a9 extends o9{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function F0(e,t){return e?e[t]||e.default||e:void 0}const ab=2e4;function yR(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<ab;)t+=n,s=e.next(t);return t>=ab?1/0:t}function B0(e){return typeof e=="function"}function S_(e,t){e.timeline=t,e.onfinish=null}const U0=e=>Array.isArray(e)&&typeof e[0]=="number",l9={linearEasing:void 0};function c9(e,t){const n=S0(e);return()=>{var s;return(s=l9[t])!==null&&s!==void 0?s:n()}}const Vh=c9(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 15,268 bytes, line 646
646,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xR=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)s+=e(Zl(0,i-1,o))+", ";return`linear(${s.substring(0,s.length-2)})`};function vR(e){return!!(typeof e=="function"&&Vh()||!e||typeof e=="string"&&(e in lb||Vh())||U0(e)||Array.isArray(e)&&e.every(vR))}const Su=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,lb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Su([0,.65,.55,1]),circOut:Su([.55,0,1,.45]),backIn:Su([.31,.01,.66,-.59]),backOut:Su([.33,1.53,.69,.99])};function bR(e,t){if(e)return typeof e=="function"&&Vh()?xR(e,t):U0(e)?Su(e):Array.isArray(e)?e.map(n=>bR(n,t)||lb.easeOut):lb[e]}const ls={x:!1,y:!1};function wR(){return ls.x||ls.y}function jR(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function NR(e,t){const n=jR(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function __(e){return t=>{t.pointerType==="touch"||wR()||e(t)}}function u9(e,t,n={}){const[s,i,o]=NR(e,n),l=__(c=>{const{target:d}=c,h=t(c);if(typeof h!="function"||!d)return;const p=__(f=>{h(f),d.removeEventListener("pointerleave",p)});d.addEventListener("pointerleave",p,i)});return s.forEach(c=>{c.addEventListener("pointerenter",l,i)}),o}const SR=(e,t)=>t?e===t?!0:SR(e,t.parentElement):!1,q0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,d9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function f9(e){return d9.has(e.tagName)||e.tabIndex!==-1}const _u=new WeakSet;function k_(e){return t=>{t.key==="Enter"&&e(t)}}function iy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const h9=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=k_(()=>{if(_u.has(n))return;iy(n,"down");const i=k_(()=>{iy(n,"up")}),o=()=>iy(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function E_(e){return q0(e)&&!wR()}function m9(e,t,n={}){const[s,i,o]=NR(e,n),l=c=>{const d=c.currentTarget;if(!E_(c)||_u.has(d))return;_u.add(d);const h=t(c),p=(g,j)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",m),!(!E_(g)||!_u.has(d))&&(_u.delete(d),typeof h=="function"&&h(g,{success:j}))},f=g=>{p(g,n.useGlobalTarget||SR(d,g.target))},m=g=>{p(g,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",m,i)};return s.forEach(c=>{!f9(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,i),c.addEventListener("focus",h=>h9(h,i),i)}),o}function p9(e){return e==="x"||e==="y"?ls[e]?null:(ls[e]=!0,()=>{ls[e]=!1}):ls.x||ls.y?null:(ls.x=ls.y=!0,()=>{ls.x=ls.y=!1})}const _R=new Set(["width","height","top","left","right","bottom",...mc]);let _h;function g9(){_h=void 0}const Bs={now:()=>(_h===void 0&&Bs.set(An.isProcessing||f$.useManualTiming?An.timestamp:performance.now()),_h),set:e=>{_h=e,queueMicrotask(g9)}};function V0(e,t){e.indexOf(t)===-1&&e.push(t)}function $0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class z0{constructor(){this.subscriptions=[]}add(t){return V0(this.subscriptions,t),()=>$0(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let o=0;o<i;o++){const l=this.subscriptions[o];l&&l(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function kR(e,t){return t?e*(1e3/t):0}const C_=30,y9=e=>!isNaN(parseFloat(e));class x9{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=Bs.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Bs.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=y9(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new z0);const s=this.events[t].add(n);return t==="change"?()=>{s(),Mt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Bs.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>C_)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,C_);return kR(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ju(e,t){return new x9(e,t)}function v9(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ju(n))}function b9(e,t){const n=Em(e,t);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const l in o){const c=P$(o[l]);v9(e,l,c)}}function w9(e){return!!(Un(e)&&e.add)}function cb(e,t){const n=e.getValue("willChange");if(w9(n))return n.add(t)}function ER(e){return e.props[nR]}const CR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,j9=1e-7,N9=12;function S9(e,t,n,s,i){let o,l,c=0;do l=t+(n-t)/2,o=CR(l,s,i)-e,o>0?n=l:t=l;while(Math.abs(o)>j9&&++c<N9);return l}function Sd(e,t,n,s){if(e===t&&n===s)return kr;const i=o=>S9(o,0,1,e,n);return o=>o===0||o===1?o:CR(i(o),t,s)}const TR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,AR=e=>t=>1-e(1-t),OR=Sd(.33,1.53,.69,.99),H0=AR(OR),RR=TR(H0),PR=e=>(e*=2)<1?.5*H0(e):.5*(2-Math.pow(2,-10*(e-1))),W0=e=>1-Math.sin(Math.acos(e)),DR=AR(W0),IR=TR(W0),LR=e=>/^0[^.\s]+$/u.test(e);function _9(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||LR(e):!0}const Ru=e=>Math.round(e*1e5)/1e5,G0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function k9(e){return e==null}const E9=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Y0=(e,t)=>n=>!!(typeof n=="string"&&E9.test(n)&&n.startsWith(e)||t&&!k9(n)&&Object.prototype.hasOwnProperty.call(n,t)),MR=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,o,l,c]=s.match(G0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},C9=e=>wi(0,255,e),oy={...pc,transform:e=>Math.round(C9(e))},ua={test:Y0("rgb","red"),parse:MR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+oy.transform(e)+", "+oy.transform(t)+", "+oy.transform(n)+", "+Ru(Ku.transform(s))+")"};function T9(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const ub={test:Y0("#"),parse:T9,transform:ua.transform},Rl={test:Y0("hsl","hue"),parse:MR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Fs.transform(Ru(t))+", "+Fs.transform(Ru(n))+", "+Ru(Ku.transform(s))+")"},Bn={test:e=>ua.test(e)||ub.test(e)||Rl.test(e),parse:e=>ua.test(e)?ua.parse(e):Rl.test(e)?Rl.parse(e):ub.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ua.transform(e):Rl.transform(e)},A9=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function O9(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(G0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(A9))===null||n===void 0?void 0:n.length)||0)>0}const FR="number",BR="color",R9="var",P9="var(",T_="${}",D9=/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 Qu(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(D9,d=>(Bn.test(d)?(s.color.push(o),i.push(BR),n.push(Bn.parse(d))):d.startsWith(P9)?(s.var.push(o),i.push(R9),n.push(d)):(s.number.push(o),i.push(FR),n.push(parseFloat(d))),++o,T_)).split(T_);return{values:n,split:c,indexes:s,types:i}}function UR(e){return Qu(e).values}function qR(e){const{split:t,types:n}=Qu(e),s=t.length;return i=>{let o="";for(let l=0;l<s;l++)if(o+=t[l],i[l]!==void 0){const c=n[l];c===FR?o+=Ru(i[l]):c===BR?o+=Bn.transform(i[l]):o+=i[l]}return o}}const I9=e=>typeof e=="number"?0:e;function L9(e){const t=UR(e);return qR(e)(t.map(I9))}const To={test:O9,parse:UR,createTransformer:qR,getAnimatableNone:L9},M9=new Set(["brightness","contrast","saturate","opacity"]);function F9(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(G0)||[];if(!s)return e;const i=n.replace(s,"");let o=M9.has(t)?1:0;return s!==n&&(o*=100),t+"("+o+i+")"}const B9=/\b([a-z-]*)\(.*?\)/gu,db={...To,getAnimatableNone:e=>{const t=e.match(B9);return t?t.map(F9).join(" "):e}},U9={...R0,color:Bn,backgroundColor:Bn,outlineColor:Bn,fill:Bn,stroke:Bn,borderColor:Bn,borderTopColor:Bn,borderRightColor:Bn,borderBottomColor:Bn,borderLeftColor:Bn,filter:db,WebkitFilter:db},K0=e=>U9[e];function VR(e,t){let n=K0(e);return n!==db&&(n=To),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const q9=new Set(["auto","none","0"]);function V9(e,t,n){let s=0,i;for(;s<e.length&&!i;){const o=e[s];typeof o=="string"&&!q9.has(o)&&Qu(o).values.length&&(i=e[s]),s++}if(i&&n)for(const o of t)e[o]=VR(n,i)}const A_=e=>e===pc||e===ot,O_=(e,t)=>parseFloat(e.split(", ")[t]),R_=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return O_(i[1],t);{const o=s.match(/^matrix\((.+)\)$/u);return o?O_(o[1],e):0}},$9=new Set(["x","y","z"]),z9=mc.filter(e=>!$9.has(e));function H9(e){const t=[];return z9.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const tc={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:R_(4,13),y:R_(5,14)};tc.translateX=tc.x;tc.translateY=tc.y;const Sa=new Set;let fb=!1,hb=!1;function $R(){if(hb){const e=Array.from(Sa).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=H9(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,l])=>{var c;(c=s.getValue(o))===null||c===void 0||c.set(l)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}hb=!1,fb=!1,Sa.forEach(e=>e.complete()),Sa.clear()}function zR(){Sa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(hb=!0)})}function W9(){zR(),$R()}class J0{constructor(t,n,s,i,o,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Sa.add(this),fb||(fb=!0,Mt.read(zR),Mt.resolveKeyframes($R))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const l=i==null?void 0:i.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(s&&n){const d=s.readValue(n,c);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=c),i&&l===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Sa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Sa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const HR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),G9=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Y9(e){const t=G9.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}function WR(e,t,n=1){const[s,i]=Y9(e);if(!s)return;const o=window.getComputedStyle(t).getPropertyValue(s);if(o){const l=o.trim();return HR(l)?parseFloat(l):l}return O0(i)?WR(i,t,n+1):i}const GR=e=>t=>t.test(e),K9={test:e=>e==="auto",parse:e=>e},YR=[pc,ot,Fs,so,B$,F$,K9],P_=e=>YR.find(GR(e));class KR extends J0{constructor(t,n,s,i,o){super(t,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let h=t[d];if(typeof h=="string"&&(h=h.trim(),O0(h))){const p=WR(h,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!_R.has(s)||t.length!==2)return;const[i,o]=t,l=P_(i),c=P_(o);if(l!==c)if(A_(l)&&A_(c))for(let d=0;d<t.length;d++){const h=t[d];typeof h=="string"&&(t[d]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)_9(t[i])&&s.push(i);s.length&&V9(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tc[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(s);o&&o.jump(this.measuredOrigin,!1);const l=i.length-1,c=i[l];i[l]=tc[s](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEac
vendor: 11,788 bytes, line 646
646h(([d,h])=>{n.getValue(d).set(h)}),this.resolveNoneKeyframes()}}const D_=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(To.test(e)||e==="0")&&!e.startsWith("url("));function J9(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Q9(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=D_(i,t),c=D_(o,t);return!l||!c?!1:J9(e)||(n==="spring"||B0(n))&&s}const X9=e=>e!==null;function Cm(e,{repeat:t,repeatType:n="loop"},s){const i=e.filter(X9),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}const Z9=40;class JR{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Bs.now(),this.options={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:l,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Z9?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&W9(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Bs.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:o,delay:l,onComplete:c,onUpdate:d,isGenerator:h}=this.options;if(!h&&!Q9(t,s,i,o))if(l)this.options.duration=0;else{d&&d(Cm(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const p=this.initPlayback(t,n);p!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...p},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const zt=(e,t,n)=>e+(t-e)*n;function ay(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ez({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,o=0,l=0;if(!t)i=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,d=2*n-c;i=ay(d,c,e+1/3),o=ay(d,c,e),l=ay(d,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:s}}function $h(e,t){return n=>n>0?t:e}const ly=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},tz=[ub,ua,Rl],nz=e=>tz.find(t=>t.test(e));function I_(e){const t=nz(e);if(!t)return!1;let n=t.parse(e);return t===Rl&&(n=ez(n)),n}const L_=(e,t)=>{const n=I_(e),s=I_(t);if(!n||!s)return $h(e,t);const i={...n};return o=>(i.red=ly(n.red,s.red,o),i.green=ly(n.green,s.green,o),i.blue=ly(n.blue,s.blue,o),i.alpha=zt(n.alpha,s.alpha,o),ua.transform(i))},rz=(e,t)=>n=>t(e(n)),_d=(...e)=>e.reduce(rz),mb=new Set(["none","hidden"]);function sz(e,t){return mb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function iz(e,t){return n=>zt(e,t,n)}function Q0(e){return typeof e=="number"?iz:typeof e=="string"?O0(e)?$h:Bn.test(e)?L_:lz:Array.isArray(e)?QR:typeof e=="object"?Bn.test(e)?L_:oz:$h}function QR(e,t){const n=[...e],s=n.length,i=e.map((o,l)=>Q0(o)(o,t[l]));return o=>{for(let l=0;l<s;l++)n[l]=i[l](o);return n}}function oz(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=Q0(e[i])(e[i],t[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function az(e,t){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],c=e.indexes[l][i[l]],d=(n=e.values[c])!==null&&n!==void 0?n:0;s[o]=d,i[l]++}return s}const lz=(e,t)=>{const n=To.createTransformer(t),s=Qu(e),i=Qu(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?mb.has(e)&&!i.values.length||mb.has(t)&&!s.values.length?sz(e,t):_d(QR(az(s,i),i.values),n):$h(e,t)};function XR(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?zt(e,t,n):Q0(e)(e,t)}const cz=5;function ZR(e,t,n){const s=Math.max(t-cz,0);return kR(n-e(s),t-s)}const Gt={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},cy=.001;function uz({duration:e=Gt.duration,bounce:t=Gt.bounce,velocity:n=Gt.velocity,mass:s=Gt.mass}){let i,o,l=1-t;l=wi(Gt.minDamping,Gt.maxDamping,l),e=wi(Gt.minDuration,Gt.maxDuration,vi(e)),l<1?(i=h=>{const p=h*l,f=p*e,m=p-n,g=pb(h,l),j=Math.exp(-f);return cy-m/g*j},o=h=>{const f=h*l*e,m=f*n+n,g=Math.pow(l,2)*Math.pow(h,2)*e,j=Math.exp(-f),b=pb(Math.pow(h,2),l);return(-i(h)+cy>0?-1:1)*((m-g)*j)/b}):(i=h=>{const p=Math.exp(-h*e),f=(h-n)*e+1;return-cy+p*f},o=h=>{const p=Math.exp(-h*e),f=(n-h)*(e*e);return p*f});const c=5/e,d=fz(i,o,c);if(e=xi(e),isNaN(d))return{stiffness:Gt.stiffness,damping:Gt.damping,duration:e};{const h=Math.pow(d,2)*s;return{stiffness:h,damping:l*2*Math.sqrt(s*h),duration:e}}}const dz=12;function fz(e,t,n){let s=n;for(let i=1;i<dz;i++)s=s-e(s)/t(s);return s}function pb(e,t){return e*Math.sqrt(1-t*t)}const hz=["duration","bounce"],mz=["stiffness","damping","mass"];function M_(e,t){return t.some(n=>e[n]!==void 0)}function pz(e){let t={velocity:Gt.velocity,stiffness:Gt.stiffness,damping:Gt.damping,mass:Gt.mass,isResolvedFromDuration:!1,...e};if(!M_(e,mz)&&M_(e,hz))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*wi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Gt.mass,stiffness:i,damping:o}}else{const n=uz(e);t={...t,...n,mass:Gt.mass},t.isResolvedFromDuration=!0}return t}function eP(e=Gt.visualDuration,t=Gt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:d,damping:h,mass:p,duration:f,velocity:m,isResolvedFromDuration:g}=pz({...n,velocity:-vi(n.velocity||0)}),j=m||0,b=h/(2*Math.sqrt(d*p)),x=l-o,v=vi(Math.sqrt(d/p)),N=Math.abs(x)<5;s||(s=N?Gt.restSpeed.granular:Gt.restSpeed.default),i||(i=N?Gt.restDelta.granular:Gt.restDelta.default);let S;if(b<1){const k=pb(v,b);S=O=>{const C=Math.exp(-b*v*O);return l-C*((j+b*v*x)/k*Math.sin(k*O)+x*Math.cos(k*O))}}else if(b===1)S=k=>l-Math.exp(-v*k)*(x+(j+v*x)*k);else{const k=v*Math.sqrt(b*b-1);S=O=>{const C=Math.exp(-b*v*O),A=Math.min(k*O,300);return l-C*((j+b*v*x)*Math.sinh(A)+k*x*Math.cosh(A))/k}}const w={calculatedDuration:g&&f||null,next:k=>{const O=S(k);if(g)c.done=k>=f;else{let C=0;b<1&&(C=k===0?xi(j):ZR(S,k,O));const A=Math.abs(C)<=s,B=Math.abs(l-O)<=i;c.done=A&&B}return c.value=c.done?l:O,c},toString:()=>{const k=Math.min(yR(w),ab),O=xR(C=>w.next(k*C).value,k,30);return k+"ms "+O}};return w}function F_({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:l,min:c,max:d,restDelta:h=.5,restSpeed:p}){const f=e[0],m={done:!1,value:f},g=A=>c!==void 0&&A<c||d!==void 0&&A>d,j=A=>c===void 0?d:d===void 0||Math.abs(c-A)<Math.abs(d-A)?c:d;let b=n*t;const x=f+b,v=l===void 0?x:l(x);v!==x&&(b=v-f);const N=A=>-b*Math.exp(-A/s),S=A=>v+N(A),w=A=>{const B=N(A),I=S(A);m.done=Math.abs(B)<=h,m.value=m.done?v:I};let k,O;const C=A=>{g(m.value)&&(k=A,O=eP({keyframes:[m.value,j(m.value)],velocity:ZR(S,A,m.value),damping:i,stiffness:o,restDelta:h,restSpeed:p}))};return C(0),{calculatedDuration:null,next:A=>{let B=!1;return!O&&k===void 0&&(B=!0,w(A),C(A)),k!==void 0&&A>=k?O.next(A-k):(!B&&w(A),m)}}}const gz=Sd(.42,0,1,1),yz=Sd(0,0,.58,1),tP=Sd(.42,0,.58,1),xz=e=>Array.isArray(e)&&typeof e[0]!="number",vz={linear:kr,easeIn:gz,easeInOut:tP,easeOut:yz,circIn:W0,circInOut:IR,circOut:DR,backIn:H0,backInOut:RR,backOut:OR,anticipate:PR},B_=e=>{if(U0(e)){QO(e.length===4);const[t,n,s,i]=e;return Sd(t,n,s,i)}else if(typeof e=="string")return vz[e];return e};function bz(e,t,n){const s=[],i=n||XR,o=e.length-1;for(let l=0;l<o;l++){let c=i(e[l],e[l+1]);if(t){const d=Array.isArray(t)?t[l]||kr:t;c=_d(d,c)}s.push(c)}return s}function wz(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const o=e.length;if(QO(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=bz(t,s,i),d=c.length,h=p=>{if(l&&p<e[0])return t[0];let f=0;if(d>1)for(;f<e.length-2&&!(p<e[f+1]);f++);const m=Zl(e[f],e[f+1],p);return c[f](m)};return n?p=>h(wi(e[0],e[o-1],p)):h}function jz(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=Zl(0,t,s);e.push(zt(n,1,i))}}function Nz(e){const t=[0];return jz(t,e.length-1),t}function Sz(e,t){return e.map(n=>n*t)}function _z(e,t){return e.map(()=>t||tP).splice(0,e.length-1)}function zh({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=xz(s)?s.map(B_):B_(s),o={done:!1,value:t[0]},l=Sz(n&&n.length===t.length?n:Nz(t),e),c=wz(l,t,{ease:Array.isArray(i)?i:_z(t,i)});return{calculatedDuration:e,next:d=>(o.value=c(d),o.done=d>=e,o)}}const kz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Mt.update(t,!0),stop:()=>Co(t),now:()=>An.isProcessing?An.timestamp:Bs.now()}},Ez={decay:F_,inertia:F_,tween:zh,keyframes:zh,spring:eP},Cz=e=>e/100;class X0 extends JR{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:d}=this.options;d&&d()};const{name:n,motionValue:s,element:i,keyframes:o}=this.options,l=(i==null?void 0:i.KeyframeResolver)||J0,c=(d,h)=>this.onKeyframesResolved(d,h);this.resolver=new l(o,c,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:l=0}=this.options,c=B0(n)?n:Ez[n]||zh;let d,h;c!==zh&&typeof t[0]!="number"&&(d=_d(Cz,XR(t[0],t[1])),t=[0,100]);const p=c({...this.options,keyframes:t});o==="mirror"&&(h=c({...this.options,keyframes:[...t].reverse(),velocity:-l})),p.calculatedDuration===null&&(p.calculatedDuration=yR(p));const{calculatedDuration:f}=p,m=f+i,g=m*(s+1)-i;return{generator:p,mirroredGenerator:h,mapPercentToKeyframes:d,calculatedDuration:f,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:l,mapPercentToKeyframes:c,keyframes:d,calculatedDuration:h,totalDuration:p,resolvedDuration:f}=s;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:j,repeatDelay:b,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-p/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-m*(this.speed>=0?1:-1),N=this.speed>=0?v<0:v>p;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let S=this.currentTime,w=o;if(g){const A=Math.min(this.currentTime,p)/f;let B=Math.floor(A),I=A%1;!I&&A>=1&&(I=1),I===1&&B--,B=Math.min(B,g+1),!!(B%2)&&(j==="reverse"?(I=1-I,b&&(I-=b/f)):j==="mirror"&&(w=l)),S=wi(0,1,I)*f}const k=N?{done:!1,value:d[0]}:w.next(S);c&&(k.value=c(k.value));let{done:O}=k;!N&&h!==null&&(O=this.speed>=0?this.currentTime>=p:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return C&&i!==void 0&&(k.value=Cm(d,this.options,i)),x&&x(k.value),C&&this.finish(),
vendor: 65,513 bytes, line 646
646k}get duration(){const{resolved:t}=this;return t?vi(t.calculatedDuration):0}get time(){return vi(this.currentTime)}set time(t){t=xi(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=vi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=kz,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Tz=new Set(["opacity","clipPath","filter","transform"]);function Az(e,t,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:l="loop",ease:c="easeInOut",times:d}={}){const h={[t]:n};d&&(h.offset=d);const p=bR(c,i);return Array.isArray(p)&&(h.easing=p),e.animate(h,{delay:s,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"})}const Oz=S0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Hh=10,Rz=2e4;function Pz(e){return B0(e.type)||e.type==="spring"||!vR(e.ease)}function Dz(e,t){const n=new X0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const i=[];let o=0;for(;!s.done&&o<Rz;)s=n.sample(o),i.push(s.value),o+=Hh;return{times:void 0,keyframes:i,duration:o-Hh,ease:"linear"}}const nP={anticipate:PR,backInOut:RR,circInOut:IR};function Iz(e){return e in nP}class U_ extends JR{constructor(t){super(t);const{name:n,motionValue:s,element:i,keyframes:o}=this.options;this.resolver=new KR(o,(l,c)=>this.onKeyframesResolved(l,c),n,s,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:i,ease:o,type:l,motionValue:c,name:d,startTime:h}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Vh()&&Iz(o)&&(o=nP[o]),Pz(this.options)){const{onComplete:f,onUpdate:m,motionValue:g,element:j,...b}=this.options,x=Dz(t,b);t=x.keyframes,t.length===1&&(t[1]=t[0]),s=x.duration,i=x.times,o=x.ease,l="keyframes"}const p=Az(c.owner.current,d,t,{...this.options,duration:s,times:i,ease:o});return p.startTime=h??this.calcStartTime(),this.pendingTimeline?(S_(p,this.pendingTimeline),this.pendingTimeline=void 0):p.onfinish=()=>{const{onComplete:f}=this.options;c.set(Cm(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:p,duration:s,times:i,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return vi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return vi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=xi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return kr;const{animation:s}=n;S_(s,t)}return kr}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:i,type:o,ease:l,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:p,onComplete:f,element:m,...g}=this.options,j=new X0({...g,keyframes:s,duration:i,type:o,ease:l,times:c,isGenerator:!0}),b=xi(this.time);h.setWithVelocity(j.sample(b-Hh).value,j.sample(b).value,Hh)}const{onStop:d}=this.options;d&&d(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:s,repeatDelay:i,repeatType:o,damping:l,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:h}=n.owner.getProps();return Oz()&&s&&Tz.has(s)&&!d&&!h&&!i&&o!=="mirror"&&l!==0&&c!=="inertia"}}const Lz={type:"spring",stiffness:500,damping:25,restSpeed:10},Mz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Fz={type:"keyframes",duration:.8},Bz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Uz=(e,{keyframes:t})=>t.length>2?Fz:Ya.has(e)?e.startsWith("scale")?Mz(t[1]):Lz:Bz;function qz({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:l,repeatDelay:c,from:d,elapsed:h,...p}){return!!Object.keys(p).length}const Z0=(e,t,n,s={},i,o)=>l=>{const c=F0(s,e)||{},d=c.delay||s.delay||0;let{elapsed:h=0}=s;h=h-xi(d);let p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:m=>{t.set(m),c.onUpdate&&c.onUpdate(m)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};qz(c)||(p={...p,...Uz(e,p)}),p.duration&&(p.duration=xi(p.duration)),p.repeatDelay&&(p.repeatDelay=xi(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let f=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const m=Cm(p.keyframes,c);if(m!==void 0)return Mt.update(()=>{p.onUpdate(m),p.onComplete()}),new a9([])}return!o&&U_.supports(p)?new U_(p):new X0(p)};function Vz({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function rP(e,t,{delay:n=0,transitionOverride:s,type:i}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:c,...d}=t;s&&(l=s);const h=[],p=i&&e.animationState&&e.animationState.getState()[i];for(const f in d){const m=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),g=d[f];if(g===void 0||p&&Vz(p,f))continue;const j={delay:n,...F0(l||{},f)};let b=!1;if(window.MotionHandoffAnimation){const v=ER(e);if(v){const N=window.MotionHandoffAnimation(v,f,Mt);N!==null&&(j.startTime=N,b=!0)}}cb(e,f),m.start(Z0(f,m,g,e.shouldReduceMotion&&_R.has(f)?{type:!1}:j,e,b));const x=m.animation;x&&h.push(x)}return c&&Promise.all(h).then(()=>{Mt.update(()=>{c&&b9(e,c)})}),h}function gb(e,t,n={}){var s;const i=Em(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const l=i?()=>Promise.all(rP(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:f,staggerDirection:m}=o;return $z(e,t,p+h,f,m,n)}:()=>Promise.resolve(),{when:d}=o;if(d){const[h,p]=d==="beforeChildren"?[l,c]:[c,l];return h().then(()=>p())}else return Promise.all([l(),c(n.delay)])}function $z(e,t,n=0,s=0,i=1,o){const l=[],c=(e.variantChildren.size-1)*s,d=i===1?(h=0)=>h*s:(h=0)=>c-h*s;return Array.from(e.variantChildren).sort(zz).forEach((h,p)=>{h.notify("AnimationStart",t),l.push(gb(h,t,{...o,delay:n+d(p)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(l)}function zz(e,t){return e.sortNodePosition(t)}function Hz(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(o=>gb(e,o,n));s=Promise.all(i)}else if(typeof t=="string")s=gb(e,t,n);else{const i=typeof t=="function"?Em(e,t,n.custom):t;s=Promise.all(rP(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const Wz=k0.length;function sP(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?sP(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Wz;n++){const s=k0[n],i=e.props[s];(Yu(i)||i===!1)&&(t[s]=i)}return t}const Gz=[..._0].reverse(),Yz=_0.length;function Kz(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Hz(e,n,s)))}function Jz(e){let t=Kz(e),n=q_(),s=!0;const i=d=>(h,p)=>{var f;const m=Em(e,p,d==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(m){const{transition:g,transitionEnd:j,...b}=m;h={...h,...b,...j}}return h};function o(d){t=d(e)}function l(d){const{props:h}=e,p=sP(e.parent)||{},f=[],m=new Set;let g={},j=1/0;for(let x=0;x<Yz;x++){const v=Gz[x],N=n[v],S=h[v]!==void 0?h[v]:p[v],w=Yu(S),k=v===d?N.isActive:null;k===!1&&(j=x);let O=S===p[v]&&S!==h[v]&&w;if(O&&s&&e.manuallyAnimateOnMount&&(O=!1),N.protectedKeys={...g},!N.isActive&&k===null||!S&&!N.prevProp||_m(S)||typeof S=="boolean")continue;const C=Qz(N.prevProp,S);let A=C||v===d&&N.isActive&&!O&&w||x>j&&w,B=!1;const I=Array.isArray(S)?S:[S];let L=I.reduce(i(v),{});k===!1&&(L={});const{prevResolvedValues:D={}}=N,R={...D,...L},U=K=>{A=!0,m.has(K)&&(B=!0,m.delete(K)),N.needsAnimating[K]=!0;const Q=e.getValue(K);Q&&(Q.liveStyle=!1)};for(const K in R){const Q=L[K],q=D[K];if(g.hasOwnProperty(K))continue;let F=!1;ob(Q)&&ob(q)?F=!gR(Q,q):F=Q!==q,F?Q!=null?U(K):m.add(K):Q!==void 0&&m.has(K)?U(K):N.protectedKeys[K]=!0}N.prevProp=S,N.prevResolvedValues=L,N.isActive&&(g={...g,...L}),s&&e.blockInitialAnimation&&(A=!1),A&&(!(O&&C)||B)&&f.push(...I.map(K=>({animation:K,options:{type:v}})))}if(m.size){const x={};m.forEach(v=>{const N=e.getBaseTarget(v),S=e.getValue(v);S&&(S.liveStyle=!0),x[v]=N??null}),f.push({animation:x})}let b=!!f.length;return s&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(b=!1),s=!1,b?t(f):Promise.resolve()}function c(d,h){var p;if(n[d].isActive===h)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(d,h)}),n[d].isActive=h;const f=l(d);for(const m in n)n[m].protectedKeys={};return f}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=q_(),s=!0}}}function Qz(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gR(t,e):!1}function ta(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function q_(){return{animate:ta(!0),whileInView:ta(),whileHover:ta(),whileTap:ta(),whileDrag:ta(),whileFocus:ta(),exit:ta()}}class Lo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Xz extends Lo{constructor(t){super(t),t.animationState||(t.animationState=Jz(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();_m(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Zz=0;class eH extends Lo{constructor(){super(...arguments),this.id=Zz++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const tH={animation:{Feature:Xz},exit:{Feature:eH}};function Xu(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function kd(e){return{point:{x:e.pageX,y:e.pageY}}}const nH=e=>t=>q0(t)&&e(t,kd(t));function Pu(e,t,n,s){return Xu(e,t,nH(n),s)}const V_=(e,t)=>Math.abs(e-t);function rH(e,t){const n=V_(e.x,t.x),s=V_(e.y,t.y);return Math.sqrt(n**2+s**2)}class iP{constructor(t,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=dy(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=rH(f.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:j}=f,{timestamp:b}=An;this.history.push({...j,timestamp:b});const{onStart:x,onMove:v}=this.handlers;m||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=uy(m,this.transformPagePoint),Mt.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:g,onSessionEnd:j,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=dy(f.type==="pointercancel"?this.lastMoveEventInfo:uy(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,x),j&&j(f,x)},!q0(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const l=kd(t),c=uy(l,this.transformPagePoint),{point:d}=c,{timestamp:h}=An;this.history=[{...d,timestamp:h}];const{onSessionStart:p}=n;p&&p(t,dy(c,this.history)),this.removeListeners=_d(Pu(this.contextWindow,"pointermove",this.handlePointerMove),Pu(this.contextWindow,"pointerup",this.handlePointerUp),Pu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Co(this.updatePoint)}}function uy(e,t){return t?{point:t(e.point)}:e}function $_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dy({point:e},t){return{point:e,delta:$_(e,oP(t)),offset:$_(e,sH(t)),velocity:iH(t,.1)}}function sH(e){return e[0]}function oP(e){return e[e.length-1]}function iH(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const i=oP(e);for(;n>=0&&(s=e[n],!(i.timestamp-s.timestamp>xi(t)));)n--;if(!s)return{x:0,y:0};const o=vi(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const l={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const aP=1e-4,oH=1-aP,aH=1+aP,lP=.01,lH=0-lP,cH=0+lP;function Or(e){return e.max-e.min}function uH(e,t,n){return Math.abs(e-t)<=n}function z_(e,t,n,s=.5){e.origin=s,e.originPoint=zt(t.min,t.max,e.origin),e.scale=Or(n)/Or(t),e.translate=zt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=oH&&e.scale<=aH||isNaN(e.scale))&&(e.scale=1),(e.translate>=lH&&e.translate<=cH||isNaN(e.translate))&&(e.translate=0)}function Du(e,t,n,s){z_(e.x,t.x,n.x,s?s.originX:void 0),z_(e.y,t.y,n.y,s?s.originY:void 0)}function H_(e,t,n){e.min=n.min+t.min,e.max=e.min+Or(t)}function dH(e,t,n){H_(e.x,t.x,n.x),H_(e.y,t.y,n.y)}function W_(e,t,n){e.min=t.min-n.min,e.max=e.min+Or(t)}function Iu(e,t,n){W_(e.x,t.x,n.x),W_(e.y,t.y,n.y)}function fH(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?zt(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?zt(n,e,s.max):Math.min(e,n)),e}function G_(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function hH(e,{top:t,left:n,bottom:s,right:i}){return{x:G_(e.x,n,i),y:G_(e.y,t,s)}}function Y_(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function mH(e,t){return{x:Y_(e.x,t.x),y:Y_(e.y,t.y)}}function pH(e,t){let n=.5;const s=Or(e),i=Or(t);return i>s?n=Zl(t.min,t.max-s,e.min):s>i&&(n=Zl(e.min,e.max-i,t.min)),wi(0,1,n)}function gH(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const yb=.35;function yH(e=yb){return e===!1?e=0:e===!0&&(e=yb),{x:K_(e,"left","right"),y:K_(e,"top","bottom")}}function K_(e,t,n){return{min:J_(e,t),max:J_(e,n)}}function J_(e,t){return typeof e=="number"?e:e[t]||0}const Q_=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pl=()=>({x:Q_(),y:Q_()}),X_=()=>({min:0,max:0}),Xt=()=>({x:X_(),y:X_()});function Vr(e){return[e("x"),e("y")]}function cP({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function xH({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function vH(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function fy(e){return e===void 0||e===1}function xb({scale:e,scaleX:t,scaleY:n}){return!fy(e)||!fy(t)||!fy(n)}function ia(e){return xb(e)||uP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function uP(e){return Z_(e.x)||Z_(e.y)}function Z_(e){return e&&e!=="0%"}function Wh(e,t,n){const s=e-n,i=t*s;return n+i}function e2(e,t,n,s,i){return i!==void 0&&(e=Wh(e,i,s)),Wh(e,n,s)+t}function vb(e,t=0,n=1,s,i){e.min=e2(e.min,t,n,s,i),e.max=e2(e.max,t,n,s,i)}function dP(e,{x:t,y:n}){vb(e.x,t.translate,t.scale,t.originPoint),vb(e.y,n.translate,n.scale,n.originPoint)}const t2=.999999999999,n2=1.0000000000001;function bH(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,l;for(let c=0;c<i;c++){o=n[c],l=o.projectionDelta;const{visualElement:d}=o.options;d&&d.props.style&&d.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Il(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,dP(e,l)),s&&ia(o.latestValues)&&Il(e,o.latestValues))}t.x<n2&&t.x>t2&&(t.x=1),t.y<n2&&t.y>t2&&(t.y=1)}function Dl(e,t){e.min=e.min+t,e.max=e.max+t}function r2(e,t,n,s,i=.5){const o=zt(e.min,e.max,i);vb(e,t,n,o,s)}function Il(e,t){r2(e.x,t.x,t.scaleX,t.scale,t.originX),r2(e.y,t.y,t.scaleY,t.scale,t.originY)}function fP(e,t){return cP(vH(e.getBoundingClientRect(),t))}function wH(e,t,n){const s=fP(e,n),{scroll:i}=t;return i&&(Dl(s.x,i.offset.x),Dl(s.y,i.offset.y)),s}const hP=({current:e})=>e?e.ownerDocument.defaultView:null,jH=new WeakMap;class NH{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Xt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=p=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(kd(p).point)},o=(p,f)=>{const{drag:m,dragPropagation:g,onDragStart:j}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=p9(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vr(x=>{let v=this.getAxisMotionValue(x).get()||0;if(Fs.test(v)){const{projection:N}=this.visualElement;if(N&&N.layout){const S=N.layout.layoutBox[x];S&&(v=Or(S)*(parseFloat(v)/100))}}this.originPoint[x]=v}),j&&Mt.postRender(()=>j(p,f)),cb(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(p,f)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:j,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:x}=f;if(g&&this.currentDirection===null){this.currentDirection=SH(x),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),b&&b(p,f)},c=(p,f)=>this.stop(p,f),d=()=>Vr(p=>{var f;return this.getAnimationState(p)==="paused"&&((f=this.getAxisMotionValue(p).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new iP(t,{onSessionStart:i,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:hP(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Mt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:i}=this.getProps();if(!s||!Qf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(l=fH(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ol(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=hH(i.layoutBox,n):this.constraints=!1,this.elastic=yH(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Vr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=gH(i.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ol(t))return!1;const s=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=wH(s,i.root,this.visualElement.getTransformPagePoint());let l=mH(i.layout.layoutBox,o);if(n){const c=n(xH(l));this.hasMutatedConstraints=!!c,c&&(l=cP(c))}return l}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},h=Vr(p=>{if(!Qf(p,n,this.currentDirection))return;let f=d&&d[p]||{};l&&(f={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,j={type:"inertia",velocity:s?t[p]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(p,j)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return cb(this.visualElement,t),s.start(Z0(t,s,0,n,this.visualElement,!1))}stopAnimation(){Vr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Vr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){Vr(n=>{const{drag:s}=this.getProps();if(!Qf(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:c}=i.layout.layoutBox[n];o.set(t[n]-zt(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Ol(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Vr(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const d=c.get();i[l]=pH({min:d,max:d},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Vr(l=>{if(!Qf(l,t,null))return;const c=this.getAxisMotionValue(l),{min:d,max:h}=this.constraints[l];c.set(zt(d,h,i[l]))})}addListeners(){if(!this.visualElement.current)return;jH.set(this.visualElement,this);const t=this.visualElement.current,n=Pu(t,"pointerdown",d=>{const{drag:h,dragListener:p=!0}=this.getProps();h&&p&&this.start(d)}),s=()=>{const{dragConstraints:d}=this.getProps();Ol(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Mt.read(s);const l=Xu(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Vr(p=>{const f=this.getAxisMotionValue(p);f&&(this.originPoint[p]+=d[p].translate,f.set(f.get()+d[p].translate))}),this.visualElement.render())}));return()=>{l(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:l=yb,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:l,dragMomentum:c}}}function Qf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function SH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _H extends Lo{constructor(t){super(t),this.removeGroupControls=kr,this.removeListeners=kr,this.controls=new NH(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kr}unmount(){this.removeGroupControls(),this.removeListeners()}}const s2=e=>(t,n)=>{e&&Mt.postRender(()=>e(t,n))};class kH extends Lo{constructor(){super(...arguments),this.removePointerDownListener=kr}onPointerDown(t){this.session=new iP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:s2(t),onStart:s2(n),onMove:s,onEnd:(o,l)=>{delete this.session,i&&Mt.postRender(()=>i(o,l))}}}mount(){this.removePointerDownListener=Pu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const kh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function i2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ot.test(e))e=parseFloat(e);else return e;const n=i2(e,t.target.x),s=i2(e,t.target.y);return`${n}% ${s}%`}},EH={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,i=To.parse(e);if(i.length>5)return s;const o=To.createTransformer(e),l=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,d=n.y.scale*t.y;i[0+l]/=c,i[1+l]/=d;const h=zt(c,d,.5);return typeof i[2+l]=="number"&&(i[2+l]/=h),typeof i[3+l]=="number"&&(i[3+l]/=h),o(i)}};class CH extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=t;K$(TH),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),kh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,l=s.projection;return l&&(l.isPresent=o,i||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||Mt.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),C0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function mP(e){const[t,n]=u$(),s=E.useContext(KO);return r.jsx(CH,{...e,layoutGroup:s,switchLayoutGroup:E.useContext(rR),isPresent:t,safeToRemove:n})}const TH={borderRadius:{...mu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mu,borderTopRightRadius:mu,borderBottomLeftRadius:mu,borderBottomRightRadius:mu,boxShadow:EH};function AH(e,t,n){const s=Un(e)?e:Ju(e);return s.start(Z0("",s,t,n)),s.animation}function OH(e){return e instanceof SVGElement&&e.tagName!=="svg"}const RH=(e,t)=>e.depth-t.depth;class PH{constructor(){this.children=[],this.isDirty=!1}add(t){V0(this.children,t),this.isDirty=!0}remove(t){$0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(RH),this.isDirty=!1,this.children.forEach(t)}}function DH(e,t){const n=Bs.now(),s=({timestamp:i})=>{const o=i-n;o>=t&&(Co(s),e(o-t))};return Mt.read(s,!0),()=>Co(s)}const pP=["TopLeft","TopRight","BottomLeft","BottomRight"],IH=pP.length,o2=e=>typeof e=="string"?parseFloat(e):e,a2=e=>typeof e=="number"||ot.test(e);function LH(e,t,n,s,i,o){i?(e.opacity=zt(0,n.opacity!==void 0?n.opacity:1,MH(s)),e.opacityExit=zt(t.opacity!==void 0?t.opacity:1,0,FH(s))):o&&(e.opacity=zt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let l=0;l<IH;l++){const c=`border${pP[l]}Radius`;let d=l2(t,c),h=l2(n,c);if(d===void 0&&h===void 0)continue;d||(d=0),h||(h=0),d===0||h===0||a2(d)===a2(h)?(e[c]=Math.max(zt(o2(d),o2(h),s),0),(Fs.test(h)||Fs.test(d))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=zt(t.rotate||0,n.rotate||0,s))}function l2(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const MH=gP(0,.5,DR),FH=gP(.5,.95,kr);function gP(e,t,n){return s=>s<e?0:s>t?1:n(Zl(e,t,s))}function c2(e,t){e.min=t.min,e.max=t.max}function Ur(e,t){c2(e.x,t.x),c2(e.y,t.y)}function u2(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function d2(e,t,n,s,i){return e-=t,e=Wh(e,1/n,s),i!==void 0&&(e=Wh(e,1/i,s)),e}function BH(e,t=0,n=1,s=.5,i,o=e,l=e){if(Fs.test(t)&&(t=parseFloat(t),t=zt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=zt(o.min,o.max,s);e===o&&(c-=t),e.min=d2(e.min,t,n,c,i),e.max=d2(e.max,t,n,c,i)}function f2(e,t,[n,s,i],o,l){BH(e,t[n],t[s],t[i],t.scale,o,l)}const UH=["x","scaleX","originX"],qH=["y","scaleY","originY"];function h2(e,t,n,s){f2(e.x,t,UH,n?n.x:void 0,s?s.x:void 0),f2(e.y,t,qH,n?n.y:void 0,s?s.y:void 0)}function m2(e){return e.translate===0&&e.scale===1}function yP(e){return m2(e.x)&&m2(e.y)}function p2(e,t){return e.min===t.min&&e.max===t.max}function VH(e,t){return p2(e.x,t.x)&&p2(e.y,t.y)}function g2(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xP(e,t){return g2(e.x,t.x)&&g2(e.y,t.y)}function y2(e){return Or(e.x)/Or(e.y)}function x2(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class $H{constructor(){this.members=[]}add(t){V0(this.members,t),t.scheduleRender()}remove(t){if($0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function zH(e,t,n){let s="";const i=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((i||o||l)&&(s=`translate3d(${i}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:p,rotateX:f,rotateY:m,skewX:g,skewY:j}=n;h&&(s=`perspective(${h}px) ${s}`),p&&(s+=`rotate(${p}deg) `),f&&(s+=`rotateX(${f}deg) `),m&&(s+=`rotateY(${m}deg) `),g&&(s+=`skewX(${g}deg) `),j&&(s+=`skewY(${j}deg) `)}const c=e.x.scale*t.x,d=e.y.scale*t.y;return(c!==1||d!==1)&&(s+=`scale(${c}, ${d})`),s||"none"}const oa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ku=typeof window<"u"&&window.MotionDebug!==void 0,hy=["","X","Y","Z"],HH={visibility:"hidden"},v2=1e3;let WH=0;function my(e,t,n,s){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),s&&(s[e]=0))}function vP(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=ER(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Mt,!(i||o))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&vP(s)}function bP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(l={},c=t==null?void 0:t()){this.id=WH++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ku&&(oa.totalNodes=oa.resolvedTargetDeltas=oa.recalculatedProjection=0),this.nodes.forEach(KH),this.nodes.forEach(eW),this.nodes.forEach(tW),this.nodes.forEach(JH),ku&&window.MotionDebug.record(oa)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new PH)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new z0),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const d=this.eventHandlers.get(l);d&&d.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=OH(l),this.instance=l;const{layoutId:d,layout:h,visualElement:p}=this.options;if(p&&!p.current&&p.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(h||d)&&(this.isLayoutDirty=!0),e){let f;const m=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=DH(m,250),kh.hasAnimatedSinceResize&&(kh.hasAnimatedSinceResize=!1,this.nodes.forEach(w2))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&p&&(d||h)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||p.getDefaultTransition()||oW,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=p.getProps(),N=!this.targetLayout||!xP(this.targetLayout,j)||g,S=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||m&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const w={...F0(b,"layout"),onPlay:x,onComplete:v};(p.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else m||w2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Co(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(nW),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&vP(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const f=this.path[p];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;if(c===void 0&&!d)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(b2);return}this.isUpdating||this.nodes.forEach(XH),this.isUpdating=!1,this.nodes.forEach(ZH),this.nodes.forEach(GH),this.nodes.forEach(YH),this.clearAllSnapshots();const c=Bs.now();An.delta=wi(0,1e3/60,c-An.timestamp),An.timestamp=c,An.isProcessing=!0,sy.update.process(An),sy.preRender.process(An),sy.render.process(An),An.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,C0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(QH),this.sharedNodes.forEach(rW)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Mt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Mt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Xt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c){const d=s(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!yP(this.projectionDelta),d=this.getTransformTemplate(),h=d?d(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;l&&(c||ia(this.latestValues)||p)&&(i(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return l&&(d=this.removeTransform(d)),aW(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:c}=this.options;if(!c)return Xt();const d=c.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(lW))){const{scroll:p}=this.root;p&&(Dl(d.x,p.offset.x),Dl(d.y,p.offset.y))}return d}removeElementScroll(l){var c;const d=Xt();if(Ur(d,l),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return d;for(let h=0;h<this.path.length;h++){const p=this.path[h],{scroll:f,options:m}=p;p!==this.root&&f&&m.layoutScroll&&(f.wasRoot&&Ur(d,l),Dl(d.x,f.offset.x),Dl(d.y,f.offset.y))}return d}applyTransform(l,c=!1){const d=Xt();Ur(d,l);for(let h=0;h<this.path.length;h++){const p=this.path[h];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Il(d,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),ia(p.latestValues)&&Il(d,p.latestValues)}return ia(this.latestValues)&&Il(d,this.latestValues),d}removeTransform(l){const c=Xt();Ur(c,l);for(let d=0;d<this.path.length;d++){const h=this.path[d];if(!h.instance||!ia(h.latestValues))continue;xb(h.latestValues)&&h.updateSnapshot();const p=Xt(),f=h.measurePageBox();Ur(p,f),h2(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,p)}return ia(this.latestValues)&&h2(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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!==An.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var c;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==d;if(!(l||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:m}=this.options;if(!(!this.layout||!(f||m))){if(this.resolvedRelativeTargetAt=An.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xt(),this.relativeTargetOrigin=Xt(),Iu(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Ur(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Xt(),this.targetWithTransforms=Xt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),dH(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ur(this.target,this.layout.layoutBox),dP(this.target,this.targetDelta)):Ur(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xt(),this.relativeTargetOrigin=Xt(),Iu(this.relativeTargetOrigin,this.target,g.target),Ur(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ku&&oa.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||xb(this.parent.latestValues)||uP(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var l;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let h=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(h=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===An.timestamp&&(h=!1),h)return;const{layout:p,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||f))return;Ur(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;bH(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=Xt());const{target:j}=c;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(u2(this.prevProjectionDelta.x,this.projectionDelta.x),u2(this.prevProjectionDelta.y,this.projectionDelta.y)),Du(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!x2(this.projectionDelta.x,this.prevProjectionDelta.x)||!x2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j)),ku&&oa.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),l){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Pl(),this.projectionDelta=Pl(),this.projectionDeltaWithTransform=Pl()}setAnimationOrigin(l,c=!1){const d=this.snapshot,h=d?d.latestValues:{},p={...this.latestValues},f=Pl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const m=Xt(),g=d?d.source:void 0,j=this.layout?this.layout.source:void 0,b=g!==j,x=this.getStack(),v=!x||x.members.length<=1,N=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(iW));this.animationProgress=0;let S;this.mixTargetDelta=w=>{const k=w/1e3;j2(f.x,l.x,k),j2(f.y,l.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Iu(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sW(this.relativeTarget,this.relativeTargetOrigin,m,k),S&&VH(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Xt()),Ur(S,this.relativeTarget)),b&&(this.animationValues=p,LH(p,h,this.latestValues,k,N,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Co(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mt.update(()=>{kh.hasAnimatedSinceResize=!0,this.currentAnimation=AH(0,v2,{...l,onUpdate:c=>{this.mixTargetDelta(c),l.onUpdate&&l.onUpdate(c)},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(v2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:d,layout:h,latestValues:p}=l;if(!(!c||!d||!h)){if(this!==l&&this.layout&&h&&wP(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||Xt();const f=Or(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+f;const m=Or(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+m}Ur(c,d),Il(c,p),Du(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new $H),this.sharedNodes.get(l).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:c}=this.options;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:c}=this.options;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:d}=l;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const h={};d.z&&my("z",l,h,this.animationValues);for(let p=0;p<hy.length;p++)my(`rotate${hy[p]}`,l,h,this.animationValues),my(`skew${hy[p]}`,l,h,this.animationValues);l.render();for(const p in h)l.setStaticValue(p,h[p]),this.animationValues&&(this.animationValues[p]=h[p]);l.scheduleRender()}getProjectionStyles(l){var c,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return HH;const h={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=Sh(l==null?void 0:l.pointerEvents)||"",h.transform=p?p(this.latestValues,""):"none",h;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Sh(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!ia(this.latestValues)&&(b.transform=p?p({},""):"none",this.hasProjected=!1),b}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),h.transform=zH(this.projectionDeltaWithTransform,this.treeScale,m),p&&(h.transform=p(m,h.transform));const{x:g,y:j}=this.projectionDelta;h.transformOrigin=`${g.origin*100}% ${j.origin*100}% 0`,f.animationValues?h.opacity=f===this?(d=(c=m.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:h.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const b in qh){if(m[b]===void 0)continue;const{correct:x,applyTo:v}=qh[b],N=h.transform==="none"?m[b]:x(m[b],f);if(v){const S=v.length;for(let w=0;w<S;w++)h[v[w]]=N}else h[b]=N}return this.options.layoutId&&(h.pointerEvents=f===this?Sh(l==null?void 0:l.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(b2),this.root.sharedNodes.clear()}}}function GH(e){e.updateLayout()}function YH(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=e.layout,{animationType:o}=e.options,l=n.source!==e.layout.source;o==="size"?Vr(f=>{const m=l?n.measuredBox[f]:n.layoutBox[f],g=Or(m);m.min=s[f].min,m.max=m.min+g}):wP(o,n.layoutBox,s)&&Vr(f=>{const m=l?n.measuredBox[f]:n.layoutBox[f],g=Or(s[f]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const c=Pl();Du(c,s,n.layoutBox);const d=Pl();l?Du(d,e.applyTransform(i,!0),n.measuredBox):Du(d,s,n.layoutBox);const h=!yP(c);let p=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:g}=f;if(m&&g){const j=Xt();Iu(j,n.layoutBox,m.layoutBox);const b=Xt();Iu(b,s,g.layoutBox),xP(j,b)||(p=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=j,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:d,layoutDelta:c,hasLayoutChanged:h,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function KH(e){ku&&oa.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function JH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function QH(e){e.clearSnapshot()}function b2(e){e.clearMeasurements()}function XH(e){e.isLayoutDirty=!1}function ZH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function w2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function eW(e){e.resolveTargetDelta()}function tW(e){e.calcProjection()}function nW(e){e.resetSkewAndRotation()}function rW(e){e.removeLeadSnapshot()}function j2(e,t,n){e.translate=zt(t.translate,0,n),e.scale=zt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function N2(e,t,n,s){e.min=zt(t.min,n.min,s),e.max=zt(t.max,n.max,s)}function sW(e,t,n,s){N2(e.x,t.x,n.x,s),N2(e.y,t.y,n.y,s)}function iW(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const oW={duration:.45,ease:[.4,0,.1,1]},S2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_2=S2("applewebkit/")&&!S2("chrome/")?Math.round:kr;function k2(e){e.min=_2(e.min),e.max=_2(e.max)}function aW(e){k2(e.x),k2(e.y)}function wP(e,t,n){return e==="position"||e==="preserve-aspect"&&!uH(y2(t),y2(n),.2)}function lW(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const cW=bP({attachResizeListener:(e,t)=>Xu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),py={current:void 0},jP=bP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!py.current){const e=new cW({});e.mount(window),e.setOptions({layoutScroll:!0}),py.current=e}return py.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),uW={pan:{Feature:kH},drag:{Feature:_H,ProjectionNode:jP,MeasureLayout:mP}};function E2(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&Mt.postRender(()=>o(t,kd(t)))}class dW extends Lo{mount(){const{current:t}=this.node;t&&(this.unmount=u9(t,n=>(E2(this.node,n,"Start"),s=>E2(this.node,s,"End"))))}unmount(){}}class fW extends Lo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_d(Xu(this.node.current,"focus",()=>this.onFocus()),Xu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function C2(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&Mt.postRender(()=>o(t,kd(t)))}class hW extends Lo{mount(){const{current:t}=this.node;t&&(this.unmount=m9(t,n=>(C2(this.node,n,"Start"),(s,{success:i})=>C2(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const bb=new WeakMap,gy=new WeakMap,mW=e=>{const t=bb.get(e.target);t&&t(e)},pW=e=>{e.forEach(mW)};function gW({root:e,...t}){const n=e||document;gy.has(n)||gy.set(n,{});const s=gy.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(pW,{root:e,...t})),s[i]}function yW(e,t,n){const s=gW(t);return bb.set(e,n),s.observe(e),()=>{bb.delete(e),s.unobserve(e)}}const xW={some:0,all:1};class vW extends Lo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:xW[i]},c=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:p,onViewportLeave:f}=this.node.getProps(),m=h?p:f;m&&m(d)};return yW(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(bW(t,n))&&this.startObserver()}unmount(){}}function bW({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const wW={inView:{Feature:vW},tap:{Feature:hW},focus:{Feature:fW},hover:{Feature:dW}},jW={layout:{ProjectionNode:jP,MeasureLayout:mP}},wb={current:null},NP={current:!1};function NW(){if(NP.current=!0,!!N0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wb.current=e.matches;e.addListener(t),t()}else wb.current=!1}const SW=[...YR,Bn,To],_W=e=>SW.find(GR(e)),T2=new WeakMap;function kW(e,t,n){for(const s in t){const i=t[s],o=n[s];if(Un(i))e.addValue(s,i);else if(Un(o))e.addValue(s,Ju(i,{owner:e}));else if(o!==i)if(e.hasValue(s)){const l=e.getValue(s);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(s);e.addValue(s,Ju(l!==void 0?l:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const A2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class EW{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=J0,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=Bs.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Mt.render(this.render,!1,!0))};const{latestValues:d,renderState:h,onUpdate:p}=l;this.onUpdate=p,this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=km(n),this.isVariantNode=tR(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const j=m[g];d[g]!==void 0&&Un(j)&&j.set(d[g],!1)}}mount(t){this.current=t,T2.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),NP.current||NW(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wb.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){T2.delete(this.current),this.projection&&this.projection.unmount(),Co(this.notifyUpdate),Co(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=Ya.has(t),i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Mt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ec){const n=ec[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Xt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<A2.length;s++){const i=A2[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,l=t[o];l&&(this.propEventSubscriptions[i]=this.on(i,l))}this.prevMotionValues=kW(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Ju(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(HR(i)||LR(i))?i=parseFloat(i):!_W(i)&&To.test(n)&&(i=VR(t,n)),this.setBaseTarget(t,Un(i)?i.get():i)),Un(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const l=A0(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(i=l[t])}if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Un(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new z0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}
646class SP extends EW{constructor(){super(...arguments),this.KeyframeResolver=KR}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Un(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function CW(e){return window.getComputedStyle(e)}class TW extends SP{constructor(){super(...arguments),this.type="html",this.renderInstance=uR}readValueFromInstance(t,n){if(Ya.has(n)){const s=K0(n);return s&&s.default||0}else{const s=CW(t),i=(aR(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return fP(t,n)}build(t,n,s){P0(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return M0(t,n,s)}}class AW extends SP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Xt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ya.has(n)){const s=K0(n);return s&&s.default||0}return n=dR.has(n)?n:E0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return mR(t,n,s)}build(t,n,s){D0(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,i){fR(t,n,s,i)}mount(t){this.isSVGTag=L0(t.tagName),super.mount(t)}}const OW=(e,t)=>T0(e)?new AW(t):new TW(t,{allowProjection:e!==E.Fragment}),RW=s9({...tH,...wW,...uW,...jW},OW),ms=v$(RW),PW={some:0,all:1};function DW(e,t,{root:n,margin:s,amount:i="some"}={}){const o=jR(e),l=new WeakMap,c=h=>{h.forEach(p=>{const f=l.get(p.target);if(p.isIntersecting!==!!f)if(p.isIntersecting){const m=t(p);typeof m=="function"?l.set(p.target,m):d.unobserve(p.target)}else typeof f=="function"&&(f(p),l.delete(p.target))})},d=new IntersectionObserver(c,{root:n,rootMargin:s,threshold:typeof i=="number"?i:PW[i]});return o.forEach(h=>d.observe(h)),()=>d.disconnect()}function IW(e,{root:t,margin:n,amount:s,once:i=!1}={}){const[o,l]=E.useState(!1);return E.useEffect(()=>{if(!e.current||i&&o)return;const c=()=>(l(!0),i?void 0:()=>l(!1)),d={root:t&&t.current||void 0,margin:n,amount:s};return DW(e.current,c,d)},[t,e,n,i,s]),o}const et=({children:e,delay:t=0,className:n=""})=>r.jsx(ms.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.6,ease:"easeOut",delay:t},className:n,children:e}),on=({children:e,delay:t=0,className:n=""})=>r.jsx(ms.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.7,ease:[.16,1,.3,1],delay:t},className:n,children:e}),hr=({children:e,className:t=""})=>r.jsx(ms.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-60px"},variants:{visible:{transition:{staggerChildren:.1}},hidden:{}},className:t,children:e}),mr=({children:e,className:t=""})=>r.jsx(ms.div,{variants:{hidden:{opacity:0,y:24},visible:{opacity:1,y:0,transition:{duration:.55,ease:"easeOut"}}},className:t,children:e}),LW="https://media.base44.com/images/public/6a1652b2216e8d40d018e580/df5e894d6_Seahawks_SBP2_267.jpg",MW="https://www.seahawks.com/promotions/eleven-sports-media/small-business-program/";function FW(){return r.jsx("section",{className:"w-full bg-[#001532] py-12 px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto flex flex-col md:flex-row items-center gap-8 md:-ml-6",children:[r.jsx(et,{children:r.jsx("div",{className:"overflow-hidden flex-shrink-0 w-full max-w-[512px] md:w-[576
646px] lg:w-[640px]",children:r.jsx("img",{src:LW,alt:"Seattle Seahawks Small Business Partner 2026",className:"w-[105%] h-auto object-cover -m-[2.5%]"})})}),r.jsxs("div",{className:"text-center md:text-left flex-1",children:[r.jsx(et,{delay:.1,children:r.jsxs("h2",{className:"text-xl md:text-2xl font-extrabold text-white leading-tight",children:["We're excited to announce that ",r.jsx("span",{className:"text-[#69BE28]",children:"Lean Synergy Solutions"})," is now an official Small Business Partner of the Seattle Seahawks!"]})}),r.jsx(et,{delay:.2,children:r.jsx("p",{className:"mt-4 text-sm md:text-base text-white/90 leading-relaxed",children:"We're proud to join a community built around connection, excellence, and opportunity—and look forward to an exciting partnership and season ahead."})}),r.jsx(et,{delay:.3,children:r.jsx("p",{className:"mt-2 text-xl md:text-2xl font-bold text-[#69BE28]",children:"Go Hawks!"})}),r.jsx(et,{delay:.4,children:r.jsxs("p",{className:"mt-4 text-base text-white/85",children:["Find out more at the"," ",r.jsxs("a",{href:MW,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 font-semibold text-[#69BE28] hover:underline",children:["Seahawks Small Business Partner page",r.jsx(Al,{className:"w-4 h-4"})]}),"."]})})]})]})})}const BW=[{key:"manufacturing",title:"Advanced Manufacturing",image:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/8e6d9e0c4_generated_image.png"},{key:"aerospace",title:"Aerospace & Aviation",image:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/496136bcf_generated_image.png"},{key:"govcon",title:"Government & Defense",image:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/31b487ad7_generated_image.png"},{key:"datacenters",title:"Critical Infrastructure & Data Centers",image:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/fc8e13e1d_generated_image.png"},{key:"industrial",title:"Industrial & Engineering",image:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/b72dee5be_generated_image.png"},{key:"veteran",title:"Veteran & Military-Affiliated Talent Solutions",image:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/33526f377_generated_image.png"}],UW="https://media.base44.com/videos/public/6a1652b2216e8d40d018e580/fe2ba44aa_Hero_Video.mp4",qW="https://media.base44.com/videos/public/6a1652b2216e8d40d018e580/ea2590d18_Flag_Waving.mp4",VW="https://media.base44.com/videos/public/6a1652b2216e8d40d018e580/ad26c3625_NASA_Rocket_Launch.mp4",ew="https://media.base44.com/images/public/6a1652b2216e8d40d018e580/503ccd71c_generated_image.png",_P="https://media.base44.com/images/public/6a1652b2216e8d40d018e580/b61783676_generated_image.png",$W="https://media.base44.com/images/public/6a1652b2216e8d40d018e580/3498a5034_generated_image.png",zW="https://media.base44.com/images/public/6a1652b2216e8d40d018e580/4be55d13d_generated_image.png",HW="https://media.base44.com/images/public/6a1652b2216e8d40d018e580/9366f9fb5_generated_image.png",Xf=e=>{var t;return(t=BW.find(n=>n.key===e))==null?void 0:t.image},O2=[{name:"Military Onboard Solutions",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/3d8ee0573_MilitaryOnboardSolutions.webp",url:null},{name:"ProRec RS",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/83506ed94_ProREcRS.webp",url:null},{name:"Grassroots Talent Solutions",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/40020e2ae_GrassrootsTalentSolutions.webp",url:"https://grassrootstalent.com/"},{name:"MilCruit",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/49e1bdbbf_MilCruit.webp",url:"https://www.linkedin.com/company/milcruit"},{name:"Allegiant Vets",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/7cda57779_allegiantvets.webp",url:"https://www.allegiantvets.org/"},{name:"7 Eagle Group",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/0537c9319_7_eagle_group_logo_vector-black.webp",url:"https://7eagle.com/"},{name:"Veteran Service Brands",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/e60e4e6a8_VSB.webp",url:"https://www.veteranservicebrands.com/"},{name:"Veteran Trash Talk",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/720364321_VeteranTrashTalk.webp",url:"https://veterantrashtalk.com/"},{name:"N-Transition Resumes",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/f1a427c5d_NTransitionResumes.webp",url:null},{name:"Best Military Resume",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/01dab5b22_BestMilitaryResume.webp",url:"https://bestmilitaryresume.com/"},{name:"Seattle Seahawks Small Business Partner 2026",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/6a1f39ff1_Seahawks_SBP1_266.jpg",url:"https://www.seahawks.com/promotions/eleven-sports-media/small-business-program/"},{name:"Frago 22 Vets",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/1a13b8191_frago22_vets_blk4x.png",url:"https://frago22.com/"},{name:"PORTCO",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/2b304dd54_Portco_Logopng.webp",url:"https://portco.org/services-employment/mentor-protege-program/"}],WW=[{icon:Si,image:Xf("govcon"),title:"Federal & Defense",desc:"Federal agencies, defense contractors and mission-support environments."}
646,{icon:eA,image:Xf("datacenters"),title:"Critical Infrastructure",desc:"Energy, utilities, data centers, water, power generation and mission-critical facilities."},{icon:Hb,image:Xf("manufacturing"),title:"Manufacturing",desc:"Advanced manufacturing, industrial automation, engineering, maintenance, quality and skilled trades."},{icon:pd,image:HW,title:"Healthcare Infrastructure",desc:"The non-clinical technical and operational workforce behind healthcare — facilities, technology, imaging, coding, revenue cycle and support operations."},{icon:za,image:Xf("veteran"),title:"Veteran & Military-Affiliated Talent Solutions",desc:"Leadership-ready veteran and military-affiliated talent for mission-critical roles — sourced from the military-connected community first, then extended to anyone who meets the standard."}];function R2(){const e=E.useRef(null),[t,n]=E.useState(0);return E.useEffect(()=>{const s=()=>n(window.scrollY);return window.addEventListener("scroll",s,{passive:!0}),()=>window.removeEventListener("scroll",s)},[]),r.jsxs("div",{children:[r.jsxs("section",{ref:e,className:"relative min-h-[80vh] flex items-center justify-center overflow-hidden",children:[r.jsx("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-cover",style:{transform:`translateY(${t*.2}px)`},children:r.jsx("source",{src:UW,type:"video/mp4"})}),r.jsx("div",{className:"absolute inset-0 bg-white/55"}),r.jsxs("div",{className:"relative z-10 text-center px-6 py-20 max-w-6xl mx-auto",children:[r.jsx(on,{children:r.jsxs("h1",{className:"text-4xl md:text-6xl font-extrabold tracking-tight leading-tight text-[#0B1F33]",children:["Connecting Talent With Opportunity ",r.jsx("span",{className:"text-3xl md:text-4xl",children:"—"})," Building Workforce Solutions That Drive Long-Term Success"]})}),r.jsx(et,{delay:.2,children:r.jsx("p",{className:"mt-4 text-xl text-[#0B1F33]/80",children:"Lean Synergy Solutions is a veteran-owned recruiting and workforce solutions partner. We specialize where workforce shortages have real operational consequences — combining market knowledge, disciplined recruiting and flexible delivery models across Federal & Defense, Critical Infrastructure, Manufacturing, Healthcare Infrastructure, and a dedicated Veteran & Military-Affiliated talent network. With offices across the United States, we provide coverage in nearly every U.S. time zone."})}),r.jsx(et,{delay:.35,children:r.jsxs("div",{className:"mt-8 flex flex-col sm:flex-row gap-4 justify-center",children:[r.jsx(Me,{to:"/lets-talk",className:"bg-primary text-primary-foreground px-10 py-4 rounded font-bold uppercase tracking-wider text-base shadow-lg hover:shadow-xl hover:opacity-90 transition-all",children:"Hire Talent"}),r.jsx(Me,{to:"/jobs",className:"bg-primary text-primary-foreground px-10 py-4 rounded font-bold uppercase tracking-wider text-base shadow-lg hover:shadow-xl hover:opacity-90 transition-all",children:"Search Jobs"})]})})]})]}),r.jsx("section",{className:"py-20 px-6 bg-card",children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsx(on,{className:"text-center mb-12",children:r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Market Verticals We Serve"})}),r.jsx(hr,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:WW.map(s=>r.jsx(mr,{children:r.jsxs("div",{className:"bg-card rounded-lg overflow-hidden border border-border hover:border-primary/50 hover:shadow-lg transition-all h-full flex flex-col",children:[r.jsxs("div",{className:"relative h-40 overflow-hidden",children:[r.jsx("img",{src:s.image,alt:s.title,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),r.jsx(s.icon,{className:"absolute bottom-3 left-3 w-7 h-7 text-primary drop-shadow-lg"})]}),r.jsxs("div",{className:"p-5 flex-1",children:[r.jsx("h3",{className:"font-bold text-lg mb-2",children:s.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:s.desc})]})]})},s.title))})]})}),r.jsx("section",{className:"py-20 px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto grid md:grid-cols-2 gap-12 items-center",children:[r.jsx(et,{children:r.jsx("div",{className:"rounded-xl overflow-hidden shadow-xl",children:r.jsx("img",{src:ew,alt:"Professional partnership handshake",className:"w-full h-full object-cover"})})}),r.jsxs("div",{className:"text-center md:text-left",children:[r.jsx(on,{children:r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Your Trusted Partner in Talent Recruitment"})}),r.jsx(et,{delay:.15,children:r.jsx("p",{className:"mt-4 text-lg text-muted-foreground",children:"Our nationwide recruiting network spans nearly every U.S. time zone, giving clients responsive support and access to talent wherever they operate."})}),r.jsx(et,{delay:.2,children:r.jsx(Me,{to:"/who-we-are",className:"inline-block mt-6 bg-primary text-primary-foreground px-8 py-3 rounded font-bold uppercase text-sm hover:opacity-90 transition-opacity",children:"Learn More"})})]})]})}),r.jsxs("section",{className:"bg-primary py-14 px-6 text-center",children:[r.jsx(on,{children:r.jsx("h2",{className:"text-2xl md:text-3xl font-extrabold text-primary-foreground",children:"Your Future Awaits! Schedule A Call Today!!"})}),r.jsx(et,{delay:.2,children:r.jsx(Me,{to:"/contact",className:"inline-block mt-6 bg-primary-foreground text-primary px-8 py-3 rounded font-bold uppercase text-sm hover:opacity-90 transition-opacity",children:"Get Started"})})]}),r.jsxs("section",{className:"py-4 bg-card border-t border-border overflow-hidden",children:[r.jsx("h3",{className:"text-center text-base uppercase tracking-wider text-muted-foreground mb-4 font-semibold",children:"Our Trusted Partners"}),r.jsx("div",{className:"relative flex overflow-hidden",children:r.jsx("div",{className:"flex gap-8 animate-partners items-center",children:[...O2,...O2].map((s,i)=>r.jsx("a",{href:s.url||"#",target:s.url?"_blank":void 0,rel:"noopener noreferrer",className:`inline-flex items-center justify-center bg-transparent flex-shrink-0 ${s.name.includes("Seahawks")?"w-[432px] h-[288px]":"w-36 h-24"}`,children:r.jsx("img",{src:s.logo,alt:s.name,className:"max-h-full max-w-full object-contain"})},i))})})]}),r.jsx(FW,{})]})}
646function Nn({title:e,subtitle:t}){return r.jsx("section",{className:"bg-card py-8 md:py-12 border-b border-border",children:r.jsxs("div",{className:"max-w-5xl mx-auto px-6 text-center",children:[r.jsx(on,{children:r.jsx("h1",{className:"text-3xl md:text-5xl font-extrabold text-foreground tracking-tight",children:e})}),t&&r.jsx(et,{delay:.15,children:r.jsx("p",{className:"mt-4 text-lg text-muted-foreground max-w-2xl mx-auto",children:t})})]})})}const GW=[{icon:Vu,title:"Mission-First",desc:"We recruit for environments where the work matters."},{icon:YT,title:"Operational Depth",desc:"We learn the language, pressure and realities of the client environment."},{icon:za,title:"Military-Connected Roots",desc:"We go to the military-connected community first, then extend opportunity to anyone who meets the standard."},{icon:tA,title:"Built to Flex",desc:"One partner across direct hire, staffing, embedded recruiting and broader workforce needs."}];function P2(){return r.jsxs("div",{children:[r.jsx(Nn,{title:"Who We Are",subtitle:"One Workforce Partner. Five Ways to Solve the Problem."}),r.jsxs("section",{className:"max-w-6xl mx-auto px-6 py-16",children:[r.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center mb-16",children:[r.jsx(et,{children:r.jsx("div",{className:"rounded-xl overflow-hidden shadow-xl",children:r.jsx("img",{src:ew,alt:"Recruiting partnership",className:"w-full h-full object-cover"})})}),r.jsxs("div",{className:"space-y-5 text-muted-foreground leading-relaxed",children:[r.jsx("p",{children:"We are a U.S. Small Business Administration-certified Service-Disabled Veteran-Owned Small Business (SDVOSB) and Veteran-Owned Small Business (VOSB), and a veteran-led recruiting and workforce solutions partner. We specialize where workforce shortages have real operational consequences — combining market knowledge, disciplined recruiting and flexible delivery models."}),r.jsx("p",{children:"We build depth and credibility across four market verticals — Federal & Defense, Critical Infrastructure, Manufacturing, and Healthcare Infrastructure — plus a dedicated Veteran & Military-Affiliated talent network. Our recruiting model is built on real-world operational understanding: we know these environments because we recruit for them every day."})]})]}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{className:"space-y-5 text-muted-foreground leading-relaxed order-2 md:order-1",children:[r.jsx("p",{children:"At the core of our approach is a strong veteran and military-affiliated talent network. These candidates bring technical skill, discipline, leadership, and a safety-first mindset that performs in demanding environments. We also serve non-veteran candidates and are committed to helping all professionals find meaningful career pathways."}),r.jsx("p",{className:"font-semibold text-foreground",children:"Based in Spokane, WA. With offices across the United States, we provide coverage in nearly every U.S. time zone, allowing us to effectively support clients and candidates nationwide. 20+ years of combined experience."}),r.jsx("div",{className:"pt-4",children:r.jsx(Me,{to:"/lets-talk",className:"bg-primary text-primary-foreground px-8 py-3 rounded font-bold uppercase text-sm hover:opacity-90 transition-opacity",children:"Schedule a Call"})})]}),r.jsx(et,{delay:.1,className:"order-1 md:order-2",children:r.jsx("div",{className:"rounded-xl overflow-hidden shadow-xl",children:r.jsx("img",{src:zW,alt:"Veterans collaborating",className:"w-full h-full object-cover"})})})]})]}),r.jsx("section",{className:"bg-[#0B1F33] py-14 px-6 text-center",children:r.jsxs(et,{children:[r.jsx("h2",{className:"text-2xl md:text-3xl font-extrabold text-white mb-4",children:"One Client. One Front Door."}),r.jsx("p",{className:"text-white/85 max-w-2xl mx-auto leading-relaxed",children:"Your need determines the solution. LSS brings the right service line, delivery capability and market expertise to the table."})]})}),r.jsx("section",{className:"bg-card py-16 px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx(on,{className:"text-center mb-10",children:r.jsx("h2",{className:"text-2xl md:text-3xl font-bold",children:"Why LSS"})}),r.jsx(hr,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:GW.map(e=>r.jsx(mr,{children:r.jsxs("div",{className:"bg-background rounded-lg border border-border p-6 h-full flex flex-col",children:[r.jsx("div",{className:"w-11 h-11 rounded-md bg-primary/10 flex items-center justify-center mb-4",children:r.jsx(e.icon,{className:"w-6 h-6 text-primary"})}),r.jsx("h3",{className:"font-bold text-lg mb-2",children:e.title}),r.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})}
646,e.title))})]})})]})}function D2(){const[e,t]=E.useState([]),[n,s]=E.useState(!0),[i,o]=E.useState(null);return E.useEffect(()=>{(async()=>{try{const c=await ge.entities.TeamMember.list("sort_order",100);t((c||[]).filter(d=>d.published!==!1))}catch(c){console.error("Failed to load team members:",c),o(c.message||"Failed to load team members")}finally{s(!1)}})()},[]),r.jsxs("div",{children:[r.jsx(Nn,{title:"Meet Our Team",subtitle:"With more than 25 years of combined experience in recruiting, workforce solutions, military leadership, and business operations, the Lean Synergy Solutions team delivers disciplined, relationship-driven talent solutions built on integrity, accountability, and results. We understand that successful hiring is about more than filling positions — it's about building strong teams, lasting partnerships, and long-term success for both clients and candidates."}),r.jsx("section",{className:"max-w-7xl mx-auto px-6 py-16",children:n?r.jsxs("div",{className:"text-center py-12",children:[r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading team members..."})]}):i?r.jsxs("div",{className:"text-center py-12",children:[r.jsx(Po,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:i})]}):r.jsx(hr,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map(l=>{const c=r.jsxs("div",{className:"bg-card border border-border rounded-xl overflow-hidden hover:shadow-lg hover:border-primary/40 transition-all duration-300 h-full group",children:[r.jsxs("div",{className:"aspect-[4/3] w-full bg-muted overflow-hidden flex items-center justify-center",children:[l.photo?r.jsx("img",{src:l.photo,alt:l.name,className:`w-full h-full object-cover ${l.name==="Rick Bullard"?"object-[center_25%]":"object-top"} ${l.slug==="jeremy-montgomery"?"scale-125 translate-y-4 object-top":""} group-hover:scale-105 transition-transform duration-500`,onError:d=>{d.target.style.display="none",d.target.nextSibling.style.display="flex"}}):null,!l.photo&&r.jsx("span",{className:"text-5xl font-bold text-muted-foreground",children:l.initials}),l.photo&&r.jsx("span",{className:"text-5xl font-bold text-muted-foreground",style:{display:"none"},children:l.initials})]}),r.jsxs("div",{className:"p-5",children:[r.jsxs("div",{className:"flex items-start justify-between gap-2",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold text-[#0B1F33]",children:l.name}),r.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:l.title})]}),l.linkedin&&r.jsx("a",{href:l.linkedin,target:"_blank",rel:"noopener noreferrer",onClick:d=>d.stopPropagation(),className:"flex-shrink-0 mt-1 text-muted-foreground hover:text-primary transition-colors","aria-label":`${l.name} on LinkedIn`,children:r.jsx(XT,{className:"w-5 h-5"})})]}),l.slug&&r.jsx("p",{className:"text-xs text-primary font-semibold mt-3 uppercase",children:"View Profile →"})]})]});return r.jsx(mr,{children:l.slug?r.jsx(Me,{to:`/team/${l.slug}`,className:"block h-full",children:c}):c},l.name)})})})]})}var Ed=e=>e.type==="checkbox",da=e=>e instanceof Date,cr=e=>e==null;const kP=e=>typeof e=="object";var ln=e=>!cr(e)&&!Array.isArray(e)&&kP(e)&&!da(e),YW=e=>ln(e)&&e.target?Ed(e.target)?e.target.checked:e.target.value:e,KW=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,JW=(e,t)=>e.has(KW(t)),QW=e=>{const t=e.constructor&&e.constructor.prototype;return ln(t)&&t.hasOwnProperty("isPrototypeOf")},tw=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function hn(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(tw&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(ln(e)&&QW(e)))return e;const s=n?[]:Object.create(Object.getPrototypeOf(e));for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=hn(e[i]));return s}var Tm=e=>/^\w*$/.test(e),$t=e=>e===void 0,nw=e=>Array.isArray(e)?e.filter(Boolean):[],rw=e=>nw(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Xe=(e,t,n)=>{if(!t||!ln(e))return n;const s=(Tm(t)?[t]:rw(t)).reduce((i,o)=>cr(i)?i:i[o],e);return $t(s)||s===e?$t(e[t])?n:e[t]:s},Ts=e=>typeof e=="boolean",ps=e=>
646typeof e=="function",Ut=(e,t,n)=>{let s=-1;const i=Tm(t)?[t]:rw(t),o=i.length,l=o-1;for(;++s<o;){const c=i[s];let d=n;if(s!==l){const h=e[c];d=ln(h)||Array.isArray(h)?h:isNaN(+i[s+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=d,e=e[c]}};const I2={BLUR:"blur",FOCUS_OUT:"focusout"},gs={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ci={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},XW=ve.createContext(null);XW.displayName="HookFormControlContext";var ZW=(e,t,n,s=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const l=o;return t._proxyFormState[l]!==gs.all&&(t._proxyFormState[l]=!s||gs.all),e[l]}});return i};const eG=typeof window<"u"?ve.useLayoutEffect:ve.useEffect;var Sr=e=>typeof e=="string",tG=(e,t,n,s,i)=>Sr(e)?(s&&t.watch.add(e),Xe(n,e,i)):Array.isArray(e)?e.map(o=>(s&&t.watch.add(o),Xe(n,o))):(s&&(t.watchAll=!0),n),jb=e=>cr(e)||!kP(e);function oo(e,t,n=new WeakSet){if(jb(e)||jb(t))return Object.is(e,t);if(da(e)&&da(t))return Object.is(e.getTime(),t.getTime());const s=Object.keys(e),i=Object.keys(t);if(s.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const o of s){const l=e[o];if(!i.includes(o))return!1;if(o!=="ref"){const c=t[o];if(da(l)&&da(c)||ln(l)&&ln(c)||Array.isArray(l)&&Array.isArray(c)?!oo(l,c,n):!Object.is(l,c))return!1}}return!0}const nG=ve.createContext(null);nG.displayName="HookFormContext";var rG=(e,t,n,s,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:i||!0}}:{},Lu=e=>Array.isArray(e)?e:[e],L2=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}};function EP(e,t){const n={};for(const s in e)if(e.hasOwnProperty(s)){const i=e[s],o=t[s];if(i&&ln(i)&&o){const l=EP(i,o);ln(l)&&(n[s]=l)}else e[s]&&(n[s]=o)}return n}var Xn=e=>ln(e)&&!Object.keys(e).length,sw=e=>e.type==="file",Gh=e=>{if(!tw)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},CP=e=>e.type==="select-multiple",iw=e=>e.type==="radio",sG=e=>iw(e)||Ed(e),yy=e=>Gh(e)&&e.isConnected;function iG(e,t){const n=t.slice(0,-1).length;let s=0;for(;s<n;)e=$t(e)?s++:e[t[s++]];return e}function oG(e){for(const t in e)if(e.hasOwnProperty(t)&&!$t(e[t]))return!1;return!0}function sn(e,t){const n=Array.isArray(t)?t:Tm(t)?[t]:rw(t),s=n.length===1?e:iG(e,n),i=n.length-1,o=n[i];return s&&delete s[o],i!==0&&(ln(s)&&Xn(s)||Array.isArray(s)&&oG(s))&&sn(e,n.slice(0,-1)),e}var aG=e=>{for(const t in e)if(ps(e[t]))return!0;return!1};function TP(e){return Array.isArray(e)||ln(e)&&!aG(e)}function Nb(e,t={}){for(const n in e){const s=e[n];TP(s)?(t[n]=Array.isArray(s)?[]:{},Nb(s,t[n])):$t(s)||(t[n]=!0)}return t}function Cl(e,t,n){n||(n=Nb(t));for(const s in e){const i=e[s];if(TP(i))$t(t)||jb(n[s])?n[s]=Nb(i,Array.isArray(i)?[]:{}):Cl(i,cr(t)?{}:t[s],n[s]);else{const o=t[s];n[s]=!oo(i,o)}}return n}const M2={value:!1,isValid:!1},F2={value:!0,isValid:!0};var AP=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!$t(e[0].attributes.value)?$t(e[0].value)||e[0].value===""?F2:{value:e[0].value,isValid:!0}:F2:M2}return M2},OP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>$t(e)?e:t?e===""?NaN:e&&+e:n&&Sr(e)?new Date(e):s?s(e):e;const B2={isValid:!1,value:null};var RP=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,B2):B2;function U2(e){const t=e.ref;return sw(t)?t.files:iw(t)?RP(e.refs).value:CP(t)?[...t.selectedOptions].map(({value:n})=>n):Ed(t)?AP(e.refs).value:OP($t(t.value)?e.ref.value:t.value,e)}var lG=(e,t,n,s)=>{const i={};for(const o of e){const l=Xe(t,o);l&&Ut(i,o,l._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:s}},Yh=e=>e instanceof RegExp,pu=e=>$t(e)?e:Yh(e)?e.source:ln(e)?Yh(e.value)?e.value.source:e.value:e,q2=e=>({isOnSubmit:!e||e===gs.onSubmit,isOnBlur:e===gs.onBlur,isOnChange:e===gs.onChange,isOnAll:e===gs.all,isOnTouch:e===gs.onTouched});const V2="AsyncFunction";var cG=e=>!!e&&!!e.validate&&!!(ps(e.validate)&&e.validate.constructor.name===V2||ln(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===V2)),uG=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),$2=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Mu=(e,t,n,s)=>{for(const i of n||Object.keys(e)){const o=Xe(e,i);if(o){const{_f:l,...c}=o;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],i)&&!s)return!0;
vendor: 4,148 bytes, line 646
646if(l.ref&&t(l.ref,l.name)&&!s)return!0;if(Mu(c,t))break}else if(ln(c)&&Mu(c,t))break}}};function z2(e,t,n){const s=Xe(e,n);if(s||Tm(n))return{error:s,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),l=Xe(t,o),c=Xe(e,o);if(l&&!Array.isArray(l)&&n!==o)return{name:n};if(c&&c.type)return{name:o,error:c};if(c&&c.root&&c.root.type)return{name:`${o}.root`,error:c.root};i.pop()}return{name:n}}var dG=(e,t,n,s)=>{n(e);const{name:i,...o}=e;return Xn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(l=>t[l]===(!s||gs.all))},fG=(e,t,n)=>!e||!t||e===t||Lu(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s))),hG=(e,t,n,s,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?s.isOnBlur:i.isOnBlur)?!e:(n?s.isOnChange:i.isOnChange)?e:!0,mG=(e,t)=>!nw(Xe(e,t)).length&&sn(e,t),pG=(e,t,n)=>{const s=Lu(Xe(e,n));return Ut(s,"root",t[n]),Ut(e,n,s),e};function H2(e,t,n="validate"){if(Sr(e)||Array.isArray(e)&&e.every(Sr)||Ts(e)&&!e)return{type:n,message:Sr(e)?e:"",ref:t}}var bl=e=>ln(e)&&!Yh(e)?e:{value:e,message:""},W2=async(e,t,n,s,i,o)=>{const{ref:l,refs:c,required:d,maxLength:h,minLength:p,min:f,max:m,pattern:g,validate:j,name:b,valueAsNumber:x,mount:v}=e._f,N=Xe(n,b);if(!v||t.has(b))return{};const S=c?c[0]:l,w=D=>{i&&S.reportValidity&&(S.setCustomValidity(Ts(D)?"":D||""),S.reportValidity())},k={},O=iw(l),C=Ed(l),A=O||C,B=(x||sw(l))&&$t(l.value)&&$t(N)||Gh(l)&&l.value===""||N===""||Array.isArray(N)&&!N.length,I=rG.bind(null,b,s,k),L=(D,R,U,$=ci.maxLength,Y=ci.minLength)=>{const K=D?R:U;k[b]={type:D?$:Y,message:K,ref:l,...I(D?$:Y,K)}};if(o?!Array.isArray(N)||!N.length:d&&(!A&&(B||cr(N))||Ts(N)&&!N||C&&!AP(c).isValid||O&&!RP(c).isValid)){const{value:D,message:R}=Sr(d)?{value:!!d,message:d}:bl(d);if(D&&(k[b]={type:ci.required,message:R,ref:S,...I(ci.required,R)},!s))return w(R),k}if(!B&&(!cr(f)||!cr(m))){let D,R;const U=bl(m),$=bl(f);if(!cr(N)&&!isNaN(N)){const Y=l.valueAsNumber||N&&+N;cr(U.value)||(D=Y>U.value),cr($.value)||(R=Y<$.value)}else{const Y=l.valueAsDate||new Date(N),K=F=>new Date(new Date().toDateString()+" "+F),Q=l.type=="time",q=l.type=="week";Sr(U.value)&&N&&(D=Q?K(N)>K(U.value):q?N>U.value:Y>new Date(U.value)),Sr($.value)&&N&&(R=Q?K(N)<K($.value):q?N<$.value:Y<new Date($.value))}if((D||R)&&(L(!!D,U.message,$.message,ci.max,ci.min),!s))return w(k[b].message),k}if((h||p)&&!B&&(Sr(N)||o&&Array.isArray(N))){const D=bl(h),R=bl(p),U=!cr(D.value)&&N.length>+D.value,$=!cr(R.value)&&N.length<+R.value;if((U||$)&&(L(U,D.message,R.message),!s))return w(k[b].message),k}if(g&&!B&&Sr(N)){const{value:D,message:R}=bl(g);if(Yh(D)&&!N.match(D)&&(k[b]={type:ci.pattern,message:R,ref:l,...I(ci.pattern,R)},!s))return w(R),k}if(j){if(ps(j)){const D=await j(N,n),R=H2(D,S);if(R&&(k[b]={...R,...I(ci.validate,R.message)},!s))return w(R.message),k}else if(ln(j)){let D={};for(const R in j){if(!Xn(D)&&!s)break;const U=H2(await j[R](N,n),S,R);U&&(D={...U,...I(R,U.message)},w(U.message),s&&(k[b]=D))}if(!Xn(D)&&(k[b]={ref:S,...D},!s))return k}}return w(!0),k};const gG={mode:gs.onSubmit,reValidateMode:gs.onChange,shouldFocusError:!0};function yG(e={}){let t={...gG,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:ps(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},s={},i=ln(t.defaultValues)||ln(t.values)?hn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:hn(i),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,h=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={...p};let m={...f};const g={array:L2(),state:L2()},j=t.criteriaMode===gs.all,b=J=>ee=>{clearTimeout(h),h=setTimeout(J,ee)},x=async J=>{if(!l.keepIsValid&&!t.disabled&&(f.isValid||m.isValid||J)){let ee;t.resolver?(ee=Xn((await A()).errors),v()):ee=await I(s,!0),ee!==n.isValid&&g.state.next({isValid:ee})}},v=(J,ee)=>{!t.disabled&&(f.isValidating||f.validatingFields||m.isValidating||m.validatingFields)&&((J||Array.from(c.mount)).forEac
vendor: 3,210 bytes, line 646
646h(de=>{de&&(ee?Ut(n.validatingFields,de,ee):sn(n.validatingFields,de))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Xn(n.validatingFields)}))},N=(J,ee=[],de,je,we=!0,_e=!0)=>{if(je&&de&&!t.disabled){if(l.action=!0,_e&&Array.isArray(Xe(s,J))){const qe=de(Xe(s,J),je.argA,je.argB);we&&Ut(s,J,qe)}if(_e&&Array.isArray(Xe(n.errors,J))){const qe=de(Xe(n.errors,J),je.argA,je.argB);we&&Ut(n.errors,J,qe),mG(n.errors,J)}if((f.touchedFields||m.touchedFields)&&_e&&Array.isArray(Xe(n.touchedFields,J))){const qe=de(Xe(n.touchedFields,J),je.argA,je.argB);we&&Ut(n.touchedFields,J,qe)}(f.dirtyFields||m.dirtyFields)&&(n.dirtyFields=Cl(i,o)),g.state.next({name:J,isDirty:D(J,ee),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ut(o,J,ee)},S=(J,ee)=>{Ut(n.errors,J,ee),g.state.next({errors:n.errors})},w=J=>{n.errors=J,g.state.next({errors:n.errors,isValid:!1})},k=(J,ee,de,je)=>{const we=Xe(s,J);if(we){const _e=Xe(o,J,$t(de)?Xe(i,J):de);$t(_e)||je&&je.defaultChecked||ee?Ut(o,J,ee?_e:U2(we._f)):$(J,_e),l.mount&&!l.action&&x()}},O=(J,ee,de,je,we)=>{let _e=!1,qe=!1;const Qe={name:J};if(!t.disabled){if(!de||je){(f.isDirty||m.isDirty)&&(qe=n.isDirty,n.isDirty=Qe.isDirty=D(),_e=qe!==Qe.isDirty);const ht=oo(Xe(i,J),ee);qe=!!Xe(n.dirtyFields,J),ht?sn(n.dirtyFields,J):Ut(n.dirtyFields,J,!0),Qe.dirtyFields=n.dirtyFields,_e=_e||(f.dirtyFields||m.dirtyFields)&&qe!==!ht}if(de){const ht=Xe(n.touchedFields,J);ht||(Ut(n.touchedFields,J,de),Qe.touchedFields=n.touchedFields,_e=_e||(f.touchedFields||m.touchedFields)&&ht!==de)}_e&&we&&g.state.next(Qe)}return _e?Qe:{}},C=(J,ee,de,je)=>{const we=Xe(n.errors,J),_e=(f.isValid||m.isValid)&&Ts(ee)&&n.isValid!==ee;if(t.delayError&&de?(d=b(()=>S(J,de)),d(t.delayError)):(clearTimeout(h),d=null,de?Ut(n.errors,J,de):sn(n.errors,J)),(de?!oo(we,de):we)||!Xn(je)||_e){const qe={...je,..._e&&Ts(ee)?{isValid:ee}:{},errors:n.errors,name:J};n={...n,...qe},g.state.next(qe)}},A=async J=>(v(J,!0),await t.resolver(o,t.context,lG(J||c.mount,s,t.criteriaMode,t.shouldUseNativeValidation))),B=async J=>{const{errors:ee}=await A(J);if(v(J),J)for(const de of J){const je=Xe(ee,de);je?Ut(n.errors,de,je):sn(n.errors,de)}else n.errors=ee;return ee},I=async(J,ee,de={valid:!0})=>{for(const je in J){const we=J[je];if(we){const{_f:_e,...qe}=we;if(_e){const Qe=c.array.has(_e.name),ht=we._f&&cG(we._f);ht&&f.validatingFields&&v([_e.name],!0);const at=await W2(we,c.disabled,o,j,t.shouldUseNativeValidation&&!ee,Qe);if(ht&&f.validatingFields&&v([_e.name]),at[_e.name]&&(de.valid=!1,ee||e.shouldUseNativeValidation))break;!ee&&(Xe(at,_e.name)?Qe?pG(n.errors,at,_e.name):Ut(n.errors,_e.name,at[_e.name]):sn(n.errors,_e.name))}!Xn(qe)&&await I(qe,ee,de)}}return de.valid},L=()=>{for(const J of c.unMount){const ee=Xe(s,J);ee&&(ee._f.refs?ee._f.refs.every(de=>!yy(de)):!yy(ee._f.ref))&&te(J)}c.unMount=new Set},D=(J,ee)=>!t.disabled&&(J&&ee&&Ut(o,J,ee),!oo(P(),i)),R=(J,ee,de)=>tG(J,c,{...l.mount?o:$t(ee)?i:Sr(J)?{[J]:ee}:ee},de,ee),U=J=>nw(Xe(l.mount?o:i,J,t.shouldUnregister?Xe(i,J,[]):[])),$=(J,ee,de={})=>{const je=Xe(s,J);let we=ee;if(je){const _e=je._f;_e&&(!_e.disabled&&Ut(o,J,OP(ee,_e)),we=Gh(_e.ref)&&cr(ee)?"":ee,CP(_e.ref)?[..._e.ref.options].forEach(qe=>
vendor: 3,322 bytes, line 646
646qe.selected=we.includes(qe.value)):_e.refs?Ed(_e.ref)?_e.refs.forEach(qe=>{(!qe.defaultChecked||!qe.disabled)&&(Array.isArray(we)?qe.checked=!!we.find(Qe=>Qe===qe.value):qe.checked=we===qe.value||!!we)}):_e.refs.forEach(qe=>qe.checked=qe.value===we):sw(_e.ref)?_e.ref.value="":(_e.ref.value=we,_e.ref.type||g.state.next({name:J,values:hn(o)})))}(de.shouldDirty||de.shouldTouch)&&O(J,we,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&F(J)},Y=(J,ee,de)=>{for(const je in ee){if(!ee.hasOwnProperty(je))return;const we=ee[je],_e=J+"."+je,qe=Xe(s,_e);(c.array.has(J)||ln(we)||qe&&!qe._f)&&!da(we)?Y(_e,we,de):$(_e,we,de)}},K=(J,ee,de={})=>{const je=Xe(s,J),we=c.array.has(J),_e=hn(ee);Ut(o,J,_e),we?(g.array.next({name:J,values:hn(o)}),(f.isDirty||f.dirtyFields||m.isDirty||m.dirtyFields)&&de.shouldDirty&&g.state.next({name:J,dirtyFields:Cl(i,o),isDirty:D(J,_e)})):je&&!je._f&&!cr(_e)?Y(J,_e,de):$(J,_e,de),$2(J,c)?g.state.next({...n,name:J,values:hn(o)}):g.state.next({name:l.mount?J:void 0,values:hn(o)})},Q=async J=>{l.mount=!0;const ee=J.target;let de=ee.name,je=!0;const we=Xe(s,de),_e=ht=>{je=Number.isNaN(ht)||da(ht)&&isNaN(ht.getTime())||oo(ht,Xe(o,de,ht))},qe=q2(t.mode),Qe=q2(t.reValidateMode);if(we){let ht,at;const Dt=ee.type?U2(we._f):YW(J),_n=J.type===I2.BLUR||J.type===I2.FOCUS_OUT,Ka=!uG(we._f)&&!t.resolver&&!Xe(n.errors,de)&&!we._f.deps||hG(_n,Xe(n.touchedFields,de),n.isSubmitted,Qe,qe),Ci=$2(de,c,_n);Ut(o,de,Dt),_n?(!ee||!ee.readOnly)&&(we._f.onBlur&&we._f.onBlur(J),d&&d(0)):we._f.onChange&&we._f.onChange(J);const Ti=O(de,Dt,_n),Ai=!Xn(Ti)||Ci;if(!_n&&g.state.next({name:de,type:J.type,values:hn(o)}),Ka)return(f.isValid||m.isValid)&&(t.mode==="onBlur"?_n&&x():_n||x()),Ai&&g.state.next({name:de,...Ci?{}:Ti});if(!_n&&Ci&&g.state.next({...n}),t.resolver){const{errors:Oi}=await A([de]);if(v([de]),_e(Dt),je){const Xs=z2(n.errors,s,de),Hn=z2(Oi,s,Xs.name||de);ht=Hn.error,de=Hn.name,at=Xn(Oi)}}else v([de],!0),ht=(await W2(we,c.disabled,o,j,t.shouldUseNativeValidation))[de],v([de]),_e(Dt),je&&(ht?at=!1:(f.isValid||m.isValid)&&(at=await I(s,!0)));je&&(we._f.deps&&(!Array.isArray(we._f.deps)||we._f.deps.length>0)&&F(we._f.deps),C(de,at,ht,Ti))}},q=(J,ee)=>{if(Xe(n.errors,ee)&&J.focus)return J.focus(),1},F=async(J,ee={})=>{let de,je;const we=Lu(J);if(t.resolver){const _e=await B($t(J)?J:we);de=Xn(_e),je=J?!we.some(qe=>Xe(_e,qe)):de}else J?(je=(await Promise.all(we.map(async _e=>{const qe=Xe(s,_e);return await I(qe&&qe._f?{[_e]:qe}:qe)}))).every(Boolean),!(!je&&!n.isValid)&&x()):je=de=await I(s);return g.state.next({...!Sr(J)||(f.isValid||m.isValid)&&de!==n.isValid?{}:{name:J},...t.resolver||!J?{isValid:de}:{},errors:n.errors}),ee.shouldFocus&&!je&&Mu(s,q,J?we:c.mount),je},P=(J,ee)=>{let de={...l.mount?o:i};return ee&&(de=EP(ee.dirtyFields?n.dirtyFields:n.touchedFields,de)),$t(J)?de:Sr(J)?Xe(de,J):J.map(je=>Xe(de,je))},V=(J,ee)=>({invalid:!!Xe((ee||n).errors,J),isDirty:!!Xe((ee||n).dirtyFields,J),error:Xe((ee||n).errors,J),isValidating:!!Xe(n.validatingFields,J),isTouched:!!Xe((ee||n).touchedFields,J)}),W=J=>{J&&Lu(J).forEach(ee=>sn(n.errors,ee)),g.state.next({errors:J?n.errors:{}})},Z=(J,ee,de)=>{const je=(Xe(s,J,{_f:{}})._f||{}).ref,we=Xe(n.errors,J)||{},{ref:_e,message:qe,type:Qe,...ht}=we;Ut(n.errors,J,{...ht,...ee,ref:je}),g.state.next({name:J,errors:n.errors,isValid:!1}
vendor: 4,799 bytes, line 646
646),de&&de.shouldFocus&&je&&je.focus&&je.focus()},X=(J,ee)=>ps(J)?g.state.subscribe({next:de=>"values"in de&&J(R(void 0,ee),de)}):R(J,ee,!0),H=J=>g.state.subscribe({next:ee=>{fG(J.name,ee.name,J.exact)&&dG(ee,J.formState||f,ce,J.reRenderRoot)&&J.callback({values:{...o},...n,...ee,defaultValues:i})}}).unsubscribe,G=J=>(l.mount=!0,m={...m,...J.formState},H({...J,formState:{...p,...J.formState}})),te=(J,ee={})=>{for(const de of J?Lu(J):c.mount)c.mount.delete(de),c.array.delete(de),ee.keepValue||(sn(s,de),sn(o,de)),!ee.keepError&&sn(n.errors,de),!ee.keepDirty&&sn(n.dirtyFields,de),!ee.keepTouched&&sn(n.touchedFields,de),!ee.keepIsValidating&&sn(n.validatingFields,de),!t.shouldUnregister&&!ee.keepDefaultValue&&sn(i,de);g.state.next({values:hn(o)}),g.state.next({...n,...ee.keepDirty?{isDirty:D()}:{}}),!ee.keepIsValid&&x()},re=({disabled:J,name:ee})=>{if(Ts(J)&&l.mount||J||c.disabled.has(ee)){const we=c.disabled.has(ee)!==!!J;J?c.disabled.add(ee):c.disabled.delete(ee),we&&l.mount&&!l.action&&x()}},ue=(J,ee={})=>{let de=Xe(s,J);const je=Ts(ee.disabled)||Ts(t.disabled);return Ut(s,J,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:J}},name:J,mount:!0,...ee}}),c.mount.add(J),de?re({disabled:Ts(ee.disabled)?ee.disabled:t.disabled,name:J}):k(J,!0,ee.value),{...je?{disabled:ee.disabled||t.disabled}:{},...t.progressive?{required:!!ee.required,min:pu(ee.min),max:pu(ee.max),minLength:pu(ee.minLength),maxLength:pu(ee.maxLength),pattern:pu(ee.pattern)}:{},name:J,onChange:Q,onBlur:Q,ref:we=>{if(we){ue(J,ee),de=Xe(s,J);const _e=$t(we.value)&&we.querySelectorAll&&we.querySelectorAll("input,select,textarea")[0]||we,qe=sG(_e),Qe=de._f.refs||[];if(qe?Qe.find(ht=>ht===_e):_e===de._f.ref)return;Ut(s,J,{_f:{...de._f,...qe?{refs:[...Qe.filter(yy),_e,...Array.isArray(Xe(i,J))?[{}]:[]],ref:{type:_e.type,name:J}}:{ref:_e}}}),k(J,!1,void 0,_e)}else de=Xe(s,J,{}),de._f&&(de._f.mount=!1),(t.shouldUnregister||ee.shouldUnregister)&&!(JW(c.array,J)&&l.action)&&c.unMount.add(J)}}},ye=()=>t.shouldFocusError&&Mu(s,q,c.mount),be=J=>{Ts(J)&&(g.state.next({disabled:J}),Mu(s,(ee,de)=>{const je=Xe(s,de);je&&(ee.disabled=je._f.disabled||J,Array.isArray(je._f.refs)&&je._f.refs.forEach(we=>{we.disabled=je._f.disabled||J}))},0,!1))},Te=(J,ee)=>async de=>{let je;de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let we=hn(o);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:_e,values:qe}=await A();v(),n.errors=_e,we=hn(qe)}else await I(s);if(c.disabled.size)for(const _e of c.disabled)sn(we,_e);if(sn(n.errors,"root"),Xn(n.errors)){g.state.next({errors:{}});try{await J(we,de)}catch(_e){je=_e}}else ee&&await ee({...n.errors},de),ye(),setTimeout(ye);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Xn(n.errors)&&!je,submitCount:n.submitCount+1,errors:n.errors}),je)throw je},ie=(J,ee={})=>{Xe(s,J)&&($t(ee.defaultValue)?K(J,hn(Xe(i,J))):(K(J,ee.defaultValue),Ut(i,J,hn(ee.defaultValue))),ee.keepTouched||sn(n.touchedFields,J),ee.keepDirty||(sn(n.dirtyFields,J),n.isDirty=ee.defaultValue?D(J,hn(Xe(i,J))):D()),ee.keepError||(sn(n.errors,J),f.isValid&&x()),g.state.next({...n}))},De=(J,ee={})=>{const de=J?hn(J):i,je=hn(de),we=Xn(J),_e=we?i:je;if(ee.keepDefaultValues||(i=de),!ee.keepValues){if(ee.keepDirtyValues){const qe=new Set([...c.mount,...Object.keys(Cl(i,o))]);for(const Qe of Array.from(qe)){const ht=Xe(n.dirtyFields,Qe),at=Xe(o,Qe),Dt=Xe(_e,Qe);ht&&!$t(at)?Ut(_e,Qe,at):!ht&&!$t(Dt)&&K(Qe,Dt)}}else{if(tw&&$t(J))for(const qe of c.mount){const Qe=Xe(s,qe);if(Qe&&Qe._f){const ht=Array.isArray(Qe._f.refs)?Qe._f.refs[0]:Qe._f.ref;if(Gh(ht)){const at=ht.closest("form");if(at){at.reset();break}}}}if(ee.keepFieldsRef)for(const qe of c.mount)K(qe,Xe(_e,qe));else s={}}o=t.shouldUnregister?ee.keepDefaultValues?hn(i):{}:hn(_e),g.array.next({values:{..._e}}),g.state.next({values:{..._e}})}c={mount:ee.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!f.isValid||!!ee.keepIsValid||!!ee.keepDirtyValues||!t.shouldUnregister&&!Xn(_e),l.watch=!!t.shouldUnregister,l.keepIsValid=!!ee.keepIsValid,l.action=!1,ee.keepErrors||(n.errors={}),g.state.next({submitCount:ee.keepSubmitCount?n.submitCount:0,isDirty:we?!1:ee.keepDirty?n.isDirty:!!(ee.keepDefaultValues&&!oo(J,i)),isSubmitted:ee.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:we?{}:ee.keepDirtyValues?ee.keepDefaultValues&&o?Cl(i,o):n.dirtyFields:ee.keepDefaultValues&&J?Cl(i,J):ee.keepDirty?n.dirtyFields:{},touchedFields:ee.keepTouched?n.touchedFields:{},errors:ee.keepErrors?n.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ye=(J,ee)=>De(ps(J)?J(o):J,{...t.resetOptions,...ee}),He=(J,ee={})=>{const de=Xe(s,J),je=de&&de._f;if(je){const we=je.refs?je.refs[0]:je.ref;
vendor: 5,500 bytes, line 646
646we.focus&&setTimeout(()=>{we.focus(),ee.shouldSelect&&ps(we.select)&&we.select()})}},ce=J=>{n={...n,...J}},Ae={control:{register:ue,unregister:te,getFieldState:V,handleSubmit:Te,setError:Z,_subscribe:H,_runSchema:A,_updateIsValidating:v,_focusError:ye,_getWatch:R,_getDirty:D,_setValid:x,_setFieldArray:N,_setDisabledField:re,_setErrors:w,_getFieldArray:U,_reset:De,_resetDefaultValues:()=>ps(t.defaultValues)&&t.defaultValues().then(J=>{Ye(J,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:L,_disableForm:be,_subjects:g,_proxyFormState:f,get _fields(){return s},get _formValues(){return o},get _state(){return l},set _state(J){l=J},get _defaultValues(){return i},get _names(){return c},set _names(J){c=J},get _formState(){return n},get _options(){return t},set _options(J){t={...t,...J}}},subscribe:G,trigger:F,register:ue,handleSubmit:Te,watch:X,setValue:K,getValues:P,reset:Ye,resetField:ie,clearErrors:W,unregister:te,setError:Z,setFocus:He,getFieldState:V};return{...Ae,formControl:Ae}}function Mo(e={}){const t=ve.useRef(void 0),n=ve.useRef(void 0),[s,i]=ve.useState({isDirty:!1,isValidating:!1,isLoading:ps(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ps(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:s},e.defaultValues&&!ps(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...c}=yG(e);t.current={...c,formState:s}}const o=t.current.control;return o._options=e,eG(()=>{const l=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState}),reRenderRoot:!0});return i(c=>({...c,isReady:!0})),o._formState.isReady=!0,l},[o]),ve.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ve.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),ve.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),ve.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),ve.useEffect(()=>{if(o._proxyFormState.isDirty){const l=o._getDirty();l!==s.isDirty&&o._subjects.state.next({isDirty:l})}},[o,s.isDirty]),ve.useEffect(()=>{var l;e.values&&!oo(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),!((l=o._options.resetOptions)===null||l===void 0)&&l.keepIsValid||o._setValid(),n.current=e.values,i(c=>({...c}))):o._resetDefaultValues()},[o,e.values]),ve.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=ve.useMemo(()=>ZW(s,o),[o,s]),t.current}const Se=E.forwardRef(({className:e,type:t,...n},s)=>r.jsx("input",{type:t,className:ut("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:s,...n}));Se.displayName="Input";const Yt=E.forwardRef(({className:e,...t},n)=>r.jsx("textarea",{className:ut("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Yt.displayName="Textarea";function G2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gc(...e){return t=>{let n=!1;const s=e.map(i=>{const o=G2(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():G2(e[i],null)}}}}function Ft(...e){return E.useCallback(gc(...e),e)}var xG=Symbol.for("react.lazy"),Kh=fm[" use ".trim().toString()];function vG(e){return typeof e=="object"&&e!==null&&"then"in e}function PP(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===xG&&"_payload"in e&&vG(e._payload)}function DP(e){const t=wG(e),n=E.forwardRef((s,i)=>{let{children:o,...l}=s;PP(o)&&typeof Kh=="function"&&(o=Kh(o._payload));const c=E.Children.toArray(o),d=c.find(NG);if(d){const h=d.props.children,p=c.map(f=>f===d?E.Children.count(h)>1?E.Children.only(null):E.isValidElement(h)?h.props.children:null:f);return r.jsx(t,{...l,ref:i,children:E.isValidElement(h)?E.cloneElement(h,void 0,p):null})}return r.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var bG=DP("Slot");function wG(e){const t=E.forwardRef((n,s)=>{let{children:i,...o}=n;if(PP(i)&&typeof Kh=="function"&&(i=Kh(i._payload)),E.isValidElement(i)){const l=_G(i),c=SG(o,i.props);return i.type!==E.Fragment&&(c.ref=s?gc(s,l):l),E.cloneElement(i,c)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jG=Symbol("radix.slottable");function NG(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jG}function SG(e,t){const n={...t};for(const s in t){const i=e[s],o=t[s];/^on[A-Z]/.test(s)?i&&o?n[s]=(...c)=>{const d=o(...c);return i(...c),d}:i&&(n[s]=i):s==="style"?n[s]={...i,...o}
646:s==="className"&&(n[s]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function _G(e){var s,i;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const kG=hm("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),xe=E.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...i},o)=>{const l=s?bG:"button";return r.jsx(l,{className:ut(kG({variant:t,size:n,className:e})),ref:o,...i})});xe.displayName="Button";function EG({recruiter:e,onClose:t}){const[n,s]=E.useState(!1),{register:i,handleSubmit:o,formState:{errors:l}}=Mo(),c=Ws({mutationFn:async d=>{const h=`${d.first_name} ${d.last_name}`;await ge.functions.invoke("sendRecruiterInquiry",{full_name:h,email:d.email,phone:d.phone,company:d.company,how_heard:d.how_heard,message:d.message,emailTo:e.emailTo,recruiterName:e.firstName})},onSuccess:()=>s(!0)});return r.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-start justify-center z-50 p-4 overflow-y-auto",onClick:t,children:r.jsxs("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-2xl my-8 relative",onClick:d=>d.stopPropagation(),children:[r.jsx("button",{onClick:t,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-600 z-10",children:r.jsx(Ar,{className:"w-5 h-5"})}),r.jsxs("div",{className:"bg-[#0B1F33] rounded-t-xl px-8 py-6 text-white",children:[r.jsx("h2",{className:"text-xl font-extrabold mb-2",children:"Build a Stronger Team with Veteran-Driven Recruiting"}),r.jsx("p",{className:"text-sm text-white/80 leading-relaxed",children:e.modalDescription}),r.jsx("p",{className:"text-sm text-white/80 mt-3 leading-relaxed",children:"Complete the form below to start a conversation about how Lean Synergy Solutions can support your hiring goals."}),r.jsxs("div",{className:"flex flex-wrap gap-4 mt-4",children:[e.phone&&r.jsxs("a",{href:`tel:${e.phone}`,className:"flex items-center gap-2 text-amber-400 hover:text-amber-300 text-sm font-semibold",children:[r.jsx(pm,{className:"w-4 h-4"})," ",e.phone]}),r.jsxs("a",{href:`mailto:${e.emailDisplay}`,className:"flex items-center gap-2 text-amber-400 hover:text-amber-300 text-sm font-semibold",children:[r.jsx(ko,{className:"w-4 h-4"})," ",e.emailDisplay]})]})]}),r.jsx("div",{className:"px-8 py-6",children:n?r.jsxs("div",{className:"text-center py-8",children:[r.jsx("h3",{className:"text-2xl font-extrabold text-[#0B1F33] mb-2",children:"Thank You!"}),r.jsxs("p",{className:"text-gray-500",children:["Thank you! ",e.firstName," from the Lean Synergy Solutions Team will be in touch with you shortly."]}),r.jsx("button",{onClick:t,className:"mt-6 bg-[#0B1F33] text-white px-8 py-2 rounded font-bold hover:bg-[#0B1F33] transition-colors",children:"Close"})]}):r.jsxs("form",{onSubmit:o(d=>c.mutate(d)),className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(Se,{placeholder:"First Name *",...i("first_name",{required:!0}),className:"border-gray-300"}),l.first_name&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{children:[r.jsx(Se,{placeholder:"Last Name *",...i("last_name",{required:!0}),className:"border-gray-300"}),l.last_name&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]})]}),r.jsxs("div",{children:[r.jsx(Se,{placeholder:"Phone Number *",...i("phone",{required:!0}),className:"border-gray-300"}),l.phone&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{children:[r.jsx(Se,{type:"email",placeholder:"Email Address *",...i("email",{required:!0}),className:"border-gray-300"}),l.email&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{children:[r.jsx(Se,{placeholder:"Company Name *",...i("company",{required:!0}),className:"border-gray-300"}),l.company&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsx("div",{children:r.jsxs("select",{...i("how_heard"),className:"w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm text-gray-700 focus:outline-none focus:ring-2 focus:ring-amber-400",children:[r.jsx("option",{value:"",children:"How Did You Hear About Us?"}),r.jsx("option",{value:"Google Search",children:"Google Search"}),r.jsx("option",{value:"Referral",children:"Referral"}),r.jsx("option",{value:"LinkedIn",children:"LinkedIn"}),r.jsx("option",{value:"Social Media",children:"Social Media"}),r.jsx("option",{value:"Event/Conference",children:"Event / Conference"}),r.jsx("option",{value:"Other",children:"Other"})]})}),r.jsxs("div",{children:[r.jsx(Yt,{placeholder:"Message / How Can We Help You? *",rows:4,...i("message",{required:!0}),className:"border-gray-300"}),l.message&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx("input",{type:"checkbox",id:"agree",...i("agree",{required:!0}),className:"mt-1 accent-amber-500"}),r.jsxs("label",{htmlFor:"agree",className:"text-xs text-gray-600 leading-snug",children:["I agree to the ",r.jsx(Me,{to:"/terms-and-conditions",className:"underline hover:text-amber-500",children:"Terms & Conditions"})," and ",r.jsx(Me,{to:"/privacy-policy",className:"underline hover:text-amber-500",children:"Privacy Policy"})," *"]})]}),l.agree&&r.jsx("p",{className:"text-red-500 text-xs -mt-2",children:"You must agree before submitting."}),c.isError&&r.jsx("p",{className:"text-red-500 text-sm text-center",children:"Something went wrong. Please try again or c
646ontact us directly."}),r.jsx("div",{className:"flex justify-center",children:r.jsx(xe,{type:"submit",className:"bg-primary text-primary-foreground font-bold uppercase tracking-wide px-12",disabled:c.isPending,children:c.isPending?"Sending...":"Submit"})})]})})]})})}function At(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function CG(e,t){const n=E.createContext(t),s=o=>{const{children:l,...c}=o,d=E.useMemo(()=>c,Object.values(c));return r.jsx(n.Provider,{value:d,children:l})};s.displayName=e+"Provider";function i(o){const l=E.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[s,i]}function yc(e,t=[]){let n=[];function s(o,l){const c=E.createContext(l),d=n.length;n=[...n,l];const h=f=>{var v;const{scope:m,children:g,...j}=f,b=((v=m==null?void 0:m[e])==null?void 0:v[d])||c,x=E.useMemo(()=>j,Object.values(j));return r.jsx(b.Provider,{value:x,children:g})};h.displayName=o+"Provider";function p(f,m){var b;const g=((b=m==null?void 0:m[e])==null?void 0:b[d])||c,j=E.useContext(g);if(j)return j;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[h,p]}const i=()=>{const o=n.map(l=>E.createContext(l));return function(c){const d=(c==null?void 0:c[e])||o;return E.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return i.scopeName=e,[s,TG(i,...t)]}function TG(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=s.reduce((c,{useScope:d,scopeName:h})=>{const f=d(o)[`__scope${h}`];return{...c,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Vn=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},AG=fm[" useId ".trim().toString()]||(()=>{}),OG=0;function Ll(e){const[t,n]=E.useState(AG());return Vn(()=>{n(s=>s??String(OG++))},[e]),t?`radix-${t}`:""}var RG=fm[" useInsertionEffect ".trim().toString()]||Vn;function Zu({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[i,o,l]=PG({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:i;{const p=E.useRef(e!==void 0);E.useEffect(()=>{const f=p.current;f!==c&&console.warn(`${s} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=c},[c,s])}const h=E.useCallback(p=>{var f;if(c){const m=DG(p)?p(e):p;m!==e&&((f=l.current)==null||f.call(l,m))}else o(p)},[c,e,o,l]);return[d,h]}function PG({defaultProp:e,onChange:t}){const[n,s]=E.useState(e),i=E.useRef(n),o=E.useRef(t);return RG(()=>{o.current=t},[t]),E.useEffect(()=>{var l;i.current!==n&&((l=o.current)==null||l.call(o,n),i.current=n)},[n,i]),[n,s,o]}function DG(e){return typeof e=="function"}function IG(e){const t=LG(e),n=E.forwardRef((s,i)=>{const{children:o,...l}=s,c=E.Children.toArray(o),d=c.find(FG);if(d){const h=d.props.children,p=c.map(f=>f===d?E.Children.count(h)>1?E.Children.only(null):E.isValidElement(h)?h.props.children:null:f);return r.jsx(t,{...l,ref:i,children:E.isValidElement(h)?E.cloneElement(h,void 0,p):null})}return r.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function LG(e){const t=E.forwardRef((n,s)=>{const{children:i,...o}=n;if(E.isValidElement(i)){const l=UG(i),c=BG(o,i.props);return i.type!==E.Fragment&&(c.ref=s?gc(s,l):l),E.cloneElement(i,c)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var MG=Symbol("radix.slottable");function FG(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===MG}function BG(e,t){const n={...t};for(const s in t){const i=e[s],o=t[s];/^on[A-Z]/.test(s)?i&&o?n[s]=(...c)=>{const d=o(...c);return i(...c),d}:i&&(n[s]=i):s==="style"?n[s]={...i,...o}:s==="className"&&(n[s]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function UG(e){var s,i;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],St=qG.reduce((e,t)=>
vendor: 11,611 bytes, line 646
646{const n=IG(`Primitive.${t}`),s=E.forwardRef((i,o)=>{const{asChild:l,...c}=i,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:o})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function VG(e,t){e&&Ga.flushSync(()=>e.dispatchEvent(t))}function Ma(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function $G(e,t=globalThis==null?void 0:globalThis.document){const n=Ma(e);E.useEffect(()=>{const s=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var zG="DismissableLayer",Sb="dismissableLayer.update",HG="dismissableLayer.pointerDownOutside",WG="dismissableLayer.focusOutside",Y2,IP=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ow=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:c,...d}=e,h=E.useContext(IP),[p,f]=E.useState(null),m=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=E.useState({}),j=Ft(t,C=>f(C)),b=Array.from(h.layers),[x]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),v=b.indexOf(x),N=p?b.indexOf(p):-1,S=h.layersWithOutsidePointerEventsDisabled.size>0,w=N>=v,k=KG(C=>{const A=C.target,B=[...h.branches].some(I=>I.contains(A));!w||B||(i==null||i(C),l==null||l(C),C.defaultPrevented||c==null||c())},m),O=JG(C=>{const A=C.target;[...h.branches].some(I=>I.contains(A))||(o==null||o(C),l==null||l(C),C.defaultPrevented||c==null||c())},m);return $G(C=>{N===h.layers.size-1&&(s==null||s(C),!C.defaultPrevented&&c&&(C.preventDefault(),c()))},m),E.useEffect(()=>{if(p)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Y2=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),K2(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Y2)}},[p,m,n,h]),E.useEffect(()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),K2())},[p,h]),E.useEffect(()=>{const C=()=>g({});return document.addEventListener(Sb,C),()=>document.removeEventListener(Sb,C)},[]),r.jsx(St.div,{...d,ref:j,style:{pointerEvents:S?w?"auto":"none":void 0,...e.style},onFocusCapture:At(e.onFocusCapture,O.onFocusCapture),onBlurCapture:At(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:At(e.onPointerDownCapture,k.onPointerDownCapture)})});ow.displayName=zG;var GG="DismissableLayerBranch",YG=E.forwardRef((e,t)=>{const n=E.useContext(IP),s=E.useRef(null),i=Ft(t,s);return E.useEffect(()=>{const o=s.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),r.jsx(St.div,{...e,ref:i})});YG.displayName=GG;function KG(e,t=globalThis==null?void 0:globalThis.document){const n=Ma(e),s=E.useRef(!1),i=E.useRef(()=>{});return E.useEffect(()=>{const o=c=>{if(c.target&&!s.current){let d=function(){LP(HG,n,h,{discrete:!0})};const h={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=d,t.addEventListener("click",i.current,{once:!0})):d()}else t.removeEventListener("click",i.current);s.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function JG(e,t=globalThis==null?void 0:globalThis.document){const n=Ma(e),s=E.useRef(!1);return E.useEffect(()=>{const i=o=>{o.target&&!s.current&&LP(WG,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function K2(){const e=new CustomEvent(Sb);document.dispatchEvent(e)}function LP(e,t,n,{discrete:s}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),s?VG(i,o):i.dispatchEvent(o)}var xy="focusScope.autoFocusOnMount",vy="focusScope.autoFocusOnUnmount",J2={bubbles:!1,cancelable:!0},QG="FocusScope",aw=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=e,[c,d]=E.useState(null),h=Ma(i),p=Ma(o),f=E.useRef(null),m=Ft(t,b=>d(b)),g=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(s){let b=function(S){if(g.paused||!c)return;const w=S.target;c.contains(w)?f.current=w:io(f.current,{select:!0})},x=function(S){if(g.paused||!c)return;const w=S.relatedTarget;w!==null&&(c.contains(w)||io(f.current,{select:!0}))},v=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&io(c)};document.addEventListener("focusin",b),document.addEventListener("focusout",x);const N=new MutationObserver(v);return c&&N.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",x),N.disconnect()}}},[s,c,g.paused]),E.useEffect(()=>{if(c){X2.add(g);const b=document.activeElement;if(!c.contains(b)){const v=new CustomEvent(xy,J2);c.addEventListener(xy,h),c.dispatchEvent(v),v.defaultPrevented||(XG(rY(MP(c)),{select:!0}),document.activeElement===b&&io(c))}return()=>{c.removeEventListener(xy,h),setTimeout(()=>{const v=new CustomEvent(vy,J2);c.addEventListener(vy,p),c.dispatchEvent(v),v.defaultPrevented||io(b??document.body,{select:!0}),c.removeEventListener(vy,p),X2.remove(g)},0)}}},[c,h,p,g]);const j=E.useCallback(b=>{if(!n&&!s||g.paused)return;const x=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,v=document.activeElement;if(x&&v){const N=b.currentTarget,[S,w]=ZG(N);S&&w?!b.shiftKey&&v===w?(b.preventDefault(),n&&io(S,{select:!0})):b.shiftKey&&v===S&&(b.preventDefault(),n&&io(w,{select:!0})):v===N&&b.preventDefault()}},[n,s,g.paused]);return r.jsx(St.div,{tabIndex:-1,...l,ref:m,onKeyDown:j})});aw.displayName=QG;function XG(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(io(s,{select:t}),document.activeElement!==n)return}function ZG(e){const t=MP(e),n=Q2(t,e),s=Q2(t.reverse(),e);return[n,s]}function MP(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const i=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||i?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Q2(e,t){for(const n of e)if(!eY(n,{upTo:t}))return n}function eY(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function tY(e){return e instanceof HTMLInputElement&&"select"in e}function io(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tY(e)&&t&&e.select()}}var X2=nY();function nY(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Z2(e,t),e.unshift(t)},remove(t){var n;e=Z2(e,t),(n=e[0])==null||n.resume()}}}function Z2(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function rY(e){return e.filter(t=>t.tagName!=="A")}var sY="Portal",lw=E.forwardRef((e,t)=>{var c;const{container:n,...s}=e,[i,o]=E.useState(!1);Vn(()=>o(!0),[]);const l=n||i&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return l?Kb.createPortal(r.jsx(St.div,{...s,ref:t}),l):null});lw.displayName=sY;function iY(e,t){return E.useReducer((n,s)=>t[n][s]??n,e)}var Cd=e=>{const{present:t,children:n}=e,s=oY(t),i=typeof n=="function"?n({present:s.isPresent}):E.Children.only(n),o=Ft(s.ref,aY(i));return typeof n=="function"||s.isPresent?E.cloneElement(i,{ref:o}):null};Cd.displayName="Presence";function oY(e){const[t,n]=E.useState(),s=E.useRef(null),i=E.useRef(e),o=E.useRef("none"),l=e?"mounted":"unmounted",[c,d]=iY(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const h=Zf(s.current);o.current=c==="mounted"?h:"none"},[c]),Vn(()=>{const h=s.current,p=i.current;if(p!==e){const m=o.current,g=Zf(h);e?d("MOUNT"):g==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(p&&m!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,d]),Vn(()=>{if(t){let h;const p=t.ownerDocument.defaultView??window,f=g=>{const b=Zf(s.current).includes(CSS.escape(g.animationName));if(g.target===t&&b&&(d("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",h=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=g=>{g.target===t&&(o.current=Zf(s.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(h),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:E.useCallback(h=>{s.current=h?getComputedStyle(h):null,n(h)},[])}}function Zf(e){return(e==null?void 0:e.animationName)||"none"}function aY(e){var s,i;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var by=0;function FP(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ek()),document.body.insertAdjacentElement("beforeend",e[1]??ek()),by++,()=>{by===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),by--}},[])}function ek(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ds=function(){return Ds=Object.assign||function(t){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ds.apply(this,arguments)};function BP(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]]);return n}function lY(e,t,n){if(n||arguments.length===2)for(var s=0,i=t.length,o;s<i;s++)(o||!(s in t))&&(o||(o=Array.prototype.slice.call(t,0,s)),o[s]=t[s]);return e.concat(o||Array.prototype.slice.call(t))}var Eh="right-scroll-bar-position",Ch="width-before-scroll-bar",cY="with-scroll-bars-hidden",uY="--removed-body-scroll-bar-size";function wy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function dY(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var i=n.value;i!==s&&(n.value=s,n.callback(s,i))}}}})[0];return n.callback=t,n.facade}var fY=typeof window<"u"?E.useLayoutEffect:E.useEffect,tk=new WeakMap;function hY(e,t){var n=dY(null,function(s){return e.forEach(function(i){return wy(i,s)})});return fY(function(){var s=tk.get(n);if(s){var i=new Set(s),o=new Set(e),l=n.current;
vendor: 4,196 bytes, lines 646-661
646i.forEach(function(c){o.has(c)||wy(c,null)}),o.forEach(function(c){i.has(c)||wy(c,l)})}tk.set(n,e)},[e]),n}function mY(e){return e}function pY(e,t){t===void 0&&(t=mY);var n=[],s=!1,i={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var l=t(o,s);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(o){for(s=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){s=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(o),l=n}var d=function(){var p=l;l=[],p.forEach(o)},h=function(){return Promise.resolve().then(d)};h(),n={push:function(p){l.push(p),h()},filter:function(p){return l=l.filter(p),n}}}};return i}function gY(e){e===void 0&&(e={});var t=pY(null);return t.options=Ds({async:!0,ssr:!1},e),t}var UP=function(e){var t=e.sideCar,n=BP(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return E.createElement(s,Ds({},n))};UP.isSideCarExport=!0;function yY(e,t){return e.useMedium(t),UP}var qP=gY(),jy=function(){},Am=E.forwardRef(function(e,t){var n=E.useRef(null),s=E.useState({onScrollCapture:jy,onWheelCapture:jy,onTouchMoveCapture:jy}),i=s[0],o=s[1],l=e.forwardProps,c=e.children,d=e.className,h=e.removeScrollBar,p=e.enabled,f=e.shards,m=e.sideCar,g=e.noRelative,j=e.noIsolation,b=e.inert,x=e.allowPinchZoom,v=e.as,N=v===void 0?"div":v,S=e.gapMode,w=BP(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=m,O=hY([n,t]),C=Ds(Ds({},w),i);return E.createElement(E.Fragment,null,p&&E.createElement(k,{sideCar:qP,removeScrollBar:h,shards:f,noRelative:g,noIsolation:j,inert:b,setCallbacks:o,allowPinchZoom:!!x,lockRef:n,gapMode:S}),l?E.cloneElement(E.Children.only(c),Ds(Ds({},C),{ref:O})):E.createElement(N,Ds({},C,{className:d,ref:O}),c))});Am.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Am.classNames={fullWidth:Ch,zeroRight:Eh};var xY=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vY(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xY();return t&&e.setAttribute("nonce",t),e}function bY(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wY(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jY=function(){var e=0,t=null;return{add:function(n){e==0&&(t=vY())&&(bY(t,n),wY(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},NY=function(){var e=jY();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},VP=function(){var e=NY(),t=function(n){var s=n.styles,i=n.dynamic;return e(s,i),null};return t},SY={left:0,top:0,right:0,gap:0},Ny=function(e){return parseInt(e||"",10)||0},_Y=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Ny(n),Ny(s),Ny(i)]},kY=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return SY;var t=_Y(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},EY=VP(),Ml="data-scroll-locked",CY=function(e,t,n,s){var i=e.left,o=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
647  .`.concat(cY,` {
648   overflow: hidden `).concat(s,`;
649   padding-right: `).concat(c,"px ").concat(s,`;
650  }
651  body[`).concat(Ml,`] {
652    overflow: hidden `).concat(s,`;
653    overscroll-behavior: contain;
654    `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&`
655    padding-left: `.concat(i,`px;
656    padding-top: `).concat(o,`px;
657    padding-right: `).concat(l,`px;
658    margin-left:0;
659    margin-top:0;
660    margin-right: `).concat(c,"px ").concat(s,`;
661    `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(s,";
661")].filter(Boolean).join(""),`
662  }
663  
664  .`).concat(Eh,` {
665    right: `).concat(c,"px ").concat(s,`;
666  }
667  
668  .`).concat(Ch,` {
669    margin-right: `).concat(c,"px ").concat(s,`;
670  }
671  
672  .`).concat(Eh," .").concat(Eh,` {
673    right: 0 `).concat(s,`;
674  }
675  
676  .`).concat(Ch," .").concat(Ch,` {
677    margin-right: 0 `).concat(s,`;
678  }
679  
680  body[`).concat(Ml,`] {
681    `).concat(uY,": ").concat(c,`px;
682  }
683`)},nk=function(){var e=parseInt(document.body.getAttribute(Ml)||"0",10);return isFinite(e)?e:0},TY=function(){E.useEffect(function(){return document.body.setAttribute(Ml,(nk()+1).toString()),function(){var e=nk()-1;e<=0?document.body.removeAttribute(Ml):document.body.setAttribute(Ml,e.toString())}},[])},AY=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,i=s===void 0?"margin":s;TY();var o=E.useMemo(function(){return kY(i)},[i]);return E.createElement(EY,{styles:CY(o,!t,i,n?"":"!important")})},_b=!1;if(typeof window<"u")try{var eh=Object.defineProperty({},"passive",{get:function(){return _b=!0,!0}});window.addEventListener("test",eh,eh),window.removeEventListener("test",eh,eh)}catch{_b=!1}var wl=_b?{passive:!1}:!1,OY=function(e){return e.tagName==="TEXTAREA"},$P=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!OY(e)&&n[t]==="visible")},RY=function(e){return $P(e,"overflowY")},PY=function(e){return $P(e,"overflowX")},rk=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var i=zP(e,s);if(i){var o=HP(e,s),l=o[1],c=o[2];if(l>c)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},DY=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},IY=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},zP=function(e,t){return e==="v"?RY(t):PY(t)},HP=function(e,t){return e==="v"?DY(t):IY(t)},LY=function(e,t){return e==="h"&&t==="rtl"?-1:1},MY=function(e,t,n,s,i){var o=LY(e,window.getComputedStyle(t).direction),l=o*s,c=n.target,d=t.contains(c),h=!1,p=l>0,f=0,m=0;do{if(!c)break;var g=HP(e,c),j=g[0],b=g[1],x=g[2],v=b-x-o*j;(j||v)&&zP(e,c)&&(f+=v,m+=j);var N=c.parentNode;c=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(p&&Math.abs(f)<1||!p&&Math.abs(m)<1)&&(h=!0),h},th=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sk=function(e){return[e.deltaX,e.deltaY]},ik=function(e){return e&&"current"in e?e.current:e},FY=function(e,t){return e[0]===t[0]&&e[1]===t[1]},BY=function(e){return`
684  .block-interactivity-`.concat(e,` {pointer-events: none;}
685  .allow-interactivity-`).concat(e,` {pointer-events: all;}
686`)},UY=0,jl=[];function qY(e){var t=E.useRef([]),n=E.useRef([0,0]),s=E.useRef(),i=E.useState(UY++)[0],o=E.useState(VP)[0],l=E.useRef(e);E.useEffect(function(){l.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=lY([e.lockRef.current],(e.shards||[]).map(ik),!0).filter(Boolean);return b.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=E.useCallback(function(b,x){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!l.current.allowPinchZoom;var v=th(b),N=n.current,S="deltaX"in b?b.deltaX:N[0]-v[0],w="deltaY"in b?b.deltaY:N[1]-v[1],k,O=b.target,C=Math.abs(S)>Math.abs(w)?"h":"v";if("touches"in b&&C==="h"&&O.type==="range")return!1;var A=window.getSelection(),B=A&&A.anchorNode,I=B?B===O||B.contains(O):!1;if(I)return!1;var L=rk(C,O);if(!L)return!0;if(L?k=C:(k=C==="v"?"h":"v",L=rk(C,O)),!L)return!1;if(!s.current&&"changedTouches"in b&&(S||w)&&(s.current=k),!k)return!0;var D=s.current||k;return MY(D,x,b,D==="h"?S:w)},[]),d=E.useCallback(function(b){var x=b;if(!(!jl.length||jl[jl.length-1]!==o)){var v="deltaY"in x?sk(x):th(x),N=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&FY(k.delta,v)}
vendor: 4,079 bytes, line 686
686)[0];if(N&&N.should){x.cancelable&&x.preventDefault();return}if(!N){var S=(l.current.shards||[]).map(ik).filter(Boolean).filter(function(k){return k.contains(x.target)}),w=S.length>0?c(x,S[0]):!l.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),h=E.useCallback(function(b,x,v,N){var S={name:b,delta:x,target:v,should:N,shadowParent:VY(v)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(w){return w!==S})},1)},[]),p=E.useCallback(function(b){n.current=th(b),s.current=void 0},[]),f=E.useCallback(function(b){h(b.type,sk(b),b.target,c(b,e.lockRef.current))},[]),m=E.useCallback(function(b){h(b.type,th(b),b.target,c(b,e.lockRef.current))},[]);E.useEffect(function(){return jl.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",d,wl),document.addEventListener("touchmove",d,wl),document.addEventListener("touchstart",p,wl),function(){jl=jl.filter(function(b){return b!==o}),document.removeEventListener("wheel",d,wl),document.removeEventListener("touchmove",d,wl),document.removeEventListener("touchstart",p,wl)}},[]);var g=e.removeScrollBar,j=e.inert;return E.createElement(E.Fragment,null,j?E.createElement(o,{styles:BY(i)}):null,g?E.createElement(AY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function VY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const $Y=yY(qP,qY);var cw=E.forwardRef(function(e,t){return E.createElement(Am,Ds({},e,{ref:t,sideCar:$Y}))});cw.classNames=Am.classNames;var zY=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nl=new WeakMap,nh=new WeakMap,rh={},Sy=0,WP=function(e){return e&&(e.host||WP(e.parentNode))},HY=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=WP(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},WY=function(e,t,n,s){var i=HY(t,Array.isArray(e)?e:[e]);rh[n]||(rh[n]=new WeakMap);var o=rh[n],l=[],c=new Set,d=new Set(i),h=function(f){!f||c.has(f)||(c.add(f),h(f.parentNode))};i.forEach(h);var p=function(f){!f||d.has(f)||Array.prototype.forEach.call(f.children,function(m){if(c.has(m))p(m);else try{var g=m.getAttribute(s),j=g!==null&&g!=="false",b=(Nl.get(m)||0)+1,x=(o.get(m)||0)+1;Nl.set(m,b),o.set(m,x),l.push(m),b===1&&j&&nh.set(m,!0),x===1&&m.setAttribute(n,"true"),j||m.setAttribute(s,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return p(t),c.clear(),Sy++,function(){l.forEach(function(f){var m=Nl.get(f)-1,g=o.get(f)-1;Nl.set(f,m),o.set(f,g),m||(nh.has(f)||f.removeAttribute(s),nh.delete(f)),g||f.removeAttribute(n)}),Sy--,Sy||(Nl=new WeakMap,Nl=new WeakMap,nh=new WeakMap,rh={})}},GP=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),i=zY(e);return i?(s.push.apply(s,Array.from(i.querySelectorAll("[aria-live], script"))),WY(s,i,n,"aria-hidden")):function(){return null}};function GY(e){const t=YY(e),n=E.forwardRef((s,i)=>{const{children:o,...l}=s,c=E.Children.toArray(o),d=c.find(JY);if(d){const h=d.props.children,p=c.map(f=>f===d?E.Children.count(h)>1?E.Children.only(null):E.isValidElement(h)?h.props.children:null:f);return r.jsx(t,{...l,ref:i,children:E.isValidElement(h)?E.cloneElement(h,void 0,p):null})}return r.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function YY(e){const t=E.forwardRef((n,s)=>{const{children:i,...o}=n;if(E.isValidElement(i)){const l=XY(i),c=QY(o,i.props);return i.type!==E.Fragment&&(c.ref=s?gc(s,l):l),E.cloneElement(i,c)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var KY=Symbol("radix.slottable");function JY(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===KY}function QY(e,t){const n={...t};for(const s in t){const i=e[s],o=t[s];/^on[A-Z]/.test(s)?i&&o?n[s]=(...c)=>{const d=o(...c);return i(...c),d}:i&&(n[s]=i):s==="style"?n[s]={...i,...o}
vendor: 6,446 bytes, lines 686-690
686:s==="className"&&(n[s]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function XY(e){var s,i;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Om="Dialog",[YP]=yc(Om),[ZY,js]=YP(Om),KP=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:i,onOpenChange:o,modal:l=!0}=e,c=E.useRef(null),d=E.useRef(null),[h,p]=Zu({prop:s,defaultProp:i??!1,onChange:o,caller:Om});return r.jsx(ZY,{scope:t,triggerRef:c,contentRef:d,contentId:Ll(),titleId:Ll(),descriptionId:Ll(),open:h,onOpenChange:p,onOpenToggle:E.useCallback(()=>p(f=>!f),[p]),modal:l,children:n})};KP.displayName=Om;var JP="DialogTrigger",eK=E.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=js(JP,n),o=Ft(t,i.triggerRef);return r.jsx(St.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":fw(i.open),...s,ref:o,onClick:At(e.onClick,i.onOpenToggle)})});eK.displayName=JP;var uw="DialogPortal",[tK,QP]=YP(uw,{forceMount:void 0}),XP=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:i}=e,o=js(uw,t);return r.jsx(tK,{scope:t,forceMount:n,children:E.Children.map(s,l=>r.jsx(Cd,{present:n||o.open,children:r.jsx(lw,{asChild:!0,container:i,children:l})}))})};XP.displayName=uw;var Jh="DialogOverlay",ZP=E.forwardRef((e,t)=>{const n=QP(Jh,e.__scopeDialog),{forceMount:s=n.forceMount,...i}=e,o=js(Jh,e.__scopeDialog);return o.modal?r.jsx(Cd,{present:s||o.open,children:r.jsx(rK,{...i,ref:t})}):null});ZP.displayName=Jh;var nK=GY("DialogOverlay.RemoveScroll"),rK=E.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=js(Jh,n);return r.jsx(cw,{as:nK,allowPinchZoom:!0,shards:[i.contentRef],children:r.jsx(St.div,{"data-state":fw(i.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),Fa="DialogContent",e4=E.forwardRef((e,t)=>{const n=QP(Fa,e.__scopeDialog),{forceMount:s=n.forceMount,...i}=e,o=js(Fa,e.__scopeDialog);return r.jsx(Cd,{present:s||o.open,children:o.modal?r.jsx(sK,{...i,ref:t}):r.jsx(iK,{...i,ref:t})})});e4.displayName=Fa;var sK=E.forwardRef((e,t)=>{const n=js(Fa,e.__scopeDialog),s=E.useRef(null),i=Ft(t,n.contentRef,s);return E.useEffect(()=>{const o=s.current;if(o)return GP(o)},[]),r.jsx(t4,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:At(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:At(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&o.preventDefault()}),onFocusOutside:At(e.onFocusOutside,o=>o.preventDefault())})}),iK=E.forwardRef((e,t)=>{const n=js(Fa,e.__scopeDialog),s=E.useRef(!1),i=E.useRef(!1);return r.jsx(t4,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(s.current||(c=n.triggerRef.current)==null||c.focus(),o.preventDefault()),s.current=!1,i.current=!1},onInteractOutside:o=>{var d,h;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(s.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=o.target;((h=n.triggerRef.current)==null?void 0:h.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),t4=E.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=e,c=js(Fa,n),d=E.useRef(null),h=Ft(t,d);return FP(),r.jsxs(r.Fragment,{children:[r.jsx(aw,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:i,onUnmountAutoFocus:o,children:r.jsx(ow,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":fw(c.open),...l,ref:h,onDismiss:()=>c.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(oK,{titleId:c.titleId}),r.jsx(lK,{contentRef:d,descriptionId:c.descriptionId})]})]})}),dw="DialogTitle",n4=E.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=js(dw,n);return r.jsx(St.h2,{id:i.titleId,...s,ref:t})});n4.displayName=dw;var r4="DialogDescription",s4=E.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=js(r4,n);return r.jsx(St.p,{id:i.descriptionId,...s,ref:t})});s4.displayName=r4;var i4="DialogClose",o4=E.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=js(i4,n);return r.jsx(St.button,{type:"button",...s,ref:t,onClick:At(e.onClick,()=>i.onOpenChange(!1))})});o4.displayName=i4;function fw(e){return e?"open":"closed"}var a4="DialogTitleWarning",[Uoe,l4]=CG(a4,{contentName:Fa,titleName:dw,docsSlug:"dialog"}),oK=({titleId:e})=>{const t=l4(a4),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
687
688If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
689
690For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},aK="DialogDescriptionWarning",lK=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${l4(aK).contentName}}.`;return E.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},cK=KP,uK=XP,c4=ZP,u4=e4,d4=n4,f4=s4,dK=o4;const ki=cK,fK=uK,h4=E.forwardRef(({className:e,...t},n)=>r.jsx(c4,{ref:n,className:ut("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));h4.displayName=c4.displayName;const Ys=E.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(fK,{children:[r.jsx(h4,{}),r.jsxs(u4,{ref:s,className:ut("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,r.jsxs(dK,{className:"absolute right-4 top-4 roun
690ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[r.jsx(Ar,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ys.displayName=u4.displayName;const Ks=({className:e,...t})=>r.jsx("div",{className:ut("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ks.displayName="DialogHeader";const Js=E.forwardRef(({className:e,...t},n)=>r.jsx(d4,{ref:n,className:ut("text-lg font-semibold leading-none tracking-tight",e),...t}));Js.displayName=d4.displayName;const hw=E.forwardRef(({className:e,...t},n)=>r.jsx(f4,{ref:n,className:ut("text-sm text-muted-foreground",e),...t}));hw.displayName=f4.displayName;function hK({job:e,recruiterSlug:t,open:n,onOpenChange:s}){const[i,o]=E.useState(!1);if(!e)return null;const l=()=>{const d=`${window.location.origin}/team/${t}/job/${e.job_number}`;navigator.clipboard.writeText(d).then(()=>{o(!0),setTimeout(()=>o(!1),2e3)})},c=d=>{if(!d)return null;const h=["job title","position summary","key responsibilities","required qualifications","location requirements","compensation & benefits","compensation and benefits","responsibilities","qualifications","requirements","benefits"];return d.split(`
691`).map((f,m)=>{const g=f.trim();return h.some(b=>g.toLowerCase().includes(b))?r.jsx("p",{className:"text-foreground mt-4 mb-2 uppercase tracking-wide text-sm",children:g},m):g.startsWith("•")||g.startsWith("-")?r.jsx("p",{className:"ml-4 text-sm text-muted-foreground leading-relaxed",children:g},m):g===""?r.jsx("br",{},m):r.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-2",children:g},m)})};return r.jsx(ki,{open:n,onOpenChange:s,children:r.jsxs(Ys,{className:"max-w-3xl max-h-[85vh] flex flex-col",children:[r.jsxs(Ks,{children:[r.jsx(Js,{className:"text-xl font-bold",children:e.title||"Open Position"}),r.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-1 text-sm text-muted-foreground",children:[e.location&&r.jsxs("span",{className:"flex items-center gap-1",children:[r.jsx($a,{className:"w-4 h-4"})," ",e.location]}),e.job_number&&r.jsxs("span",{className:"flex items-center gap-1",children:[r.jsx(Gr,{className:"w-4 h-4"})," Job #",e.job_number]})]})]}),r.jsx("div",{className:"overflow-y-auto pr-2 -mr-2 flex-1",children:e.description&&r.jsx("div",{className:"text-sm leading-relaxed",children:c(e.description)})}),r.jsxs("div",{className:"border-t border-border pt-4 mt-4 space-y-2",children:[r.jsx(Me,{to:`/apply/${t}?job=${encodeURIComponent(e.title)}&job_number=${e.job_number||""}`,className:"block",children:r.jsx(xe,{className:"w-full",children:"Apply Now"})}),r.jsxs(xe,{variant:"outline",className:"w-full gap-2",onClick:l,children:[i?r.jsx(Ea,{className:"w-4 h-4"}):r.jsx(IM,{className:"w-4 h-4"}),i?"Link Copied!":"Copy Job Link"]})]})]})})}const mK={"recruiter-alex-potgeter":{phone:"804-350-2203",email:"[email protected]"},"recruiter-seth-bullard":{phone:"210-602-2190",email:"[email protected]"}
691,"recruiter-michael-malinowsky":{phone:"912-675-6232",email:"[email protected]"},"rick-bullard":{phone:"210-854-0134",email:"[email protected]"},"misty-duffney":{email:"[email protected]"},"recruiter-frank-hitchcock":{email:"[email protected]"},"recruiter-james-shelton":{email:"[email protected]"},"recruiter-eddie-brock":{email:"[email protected]"}},_y={"rick-bullard":{firstName:"Rick",phone:"210-854-0134",emailDisplay:"[email protected]",emailTo:"[email protected]",modalDescription:"Looking for people who bring discipline, ownership, integrity, and pride to the workplace? Rick Bullard, Director of Client Solutions at Lean Synergy Solutions, works directly with organizations to understand their hiring needs and connect them with disciplined, mission-focused talent through our veteran-first recruiting model."},"jeremy-montgomery":{firstName:"Monte",emailDisplay:"[email protected]",emailTo:"[email protected]",modalDescription:'Looking for people who bring discipline, ownership, integrity, and pride to the workplace? Jeremy "Monte" Montgomery, Co-Owner and Chief Operating Officer of Lean Synergy Solutions, works directly with organizations to connect them with exceptional talent through our veteran-first recruiting model.'}};function ok(){const{slug:e}=xm(),[t,n]=E.useState(null),[s,i]=E.useState(!0),[o,l]=E.useState([]),[c,d]=E.useState(!0),[h,p]=E.useState(!1),[f,m]=E.useState(null),g=E.useRef(null);E.useEffect(()=>{async function A(){i(!0);try{const I=(await ge.entities.TeamMember.list("sort_order",100)).find(L=>L.slug===e);n(I||null)}catch(B){console.error("Error fetching team member:",B)}finally{i(!1)}}A()},[e]),E.useEffect(()=>{async function A(){try{const B=await ge.functions.invoke("getRecruiterJobs",{recruiterSlug:e});l(B.data.jobs||[])}catch(B){console.error("Error fetching recruiter jobs:",B)}finally{d(!1)}}t?A():d(!1)},[e,t]);const j=()=>
691{if(g.current){const I=g.current.getBoundingClientRect().top+window.pageYOffset-80;window.scrollTo({top:I,behavior:"smooth"})}},b=()=>{const A=t.name.split(" "),B=A[0]||"",I=A.slice(1).join(" ")||"",L=(S==null?void 0:S.phone)||"",D=(S==null?void 0:S.email)||"",R=t.linkedin||"",U=`https://leansynergysolutions.com/team/${e}`,$=["BEGIN:VCARD","VERSION:3.0",`N:${I};${B};;;`,`FN:${t.name}`,"ORG:Lean Synergy Solutions",`TITLE:${t.title||""}`];L&&$.push(`TEL;TYPE=CELL:${L}`),D&&$.push(`EMAIL:${D}`),R&&$.push(`URL;type=LinkedIn:${R}`),$.push(`URL:${U}`),$.push("END:VCARD");const Y=$.join(`\r
692`),K=new Blob([Y],{type:"text/vcard;charset=utf-8"}),Q=URL.createObjectURL(K),q=`${B}${I?"-"+I:""}`.replace(/[^a-zA-Z0-9-]/g,""),F=document.createElement("a");F.href=Q,F.download=`${q}.vcf`,document.body.appendChild(F),F.click(),document.body.removeChild(F),URL.revokeObjectURL(Q)};if(s)return r.jsxs("div",{className:"py-20 text-center",children:[r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading profile..."})]});if(!t)return r.jsxs("div",{className:"py-20 text-center",children:[r.jsx("h1",{className:"text-2xl font-bold",children:"Team member not found"}),r.jsx(Me,{to:"/meet-our-team",className:"text-primary mt-4 inline-block hover:underline",children:"← Back to Meet Our Team"})]});const x=t.pronouns==="she"?"she":t.pronouns==="he"?"he":"they",v=x==="she"?"She":x==="he"?"He":"They",N=t.name.split(" ")[0],S=mK[t.slug],w=t.slug!=="zoe-montgomery"&&t.slug!=="alexandra-montgomery"&&t.slug!=="tux"&&t.slug!=="jeremy-montgomery"&&t.slug!=="rick-bullard"&&t.slug!=="misty-duffney",k=!!_y[t.slug],O=t.slug!=="zoe-montgomery"&&t.slug!=="alexandra-montgomery"&&t.slug!=="tux",C=["Federal & Defense","Critical Infrastructure","Manufacturing","Healthcare Infrastructure","Veteran & Military-Affiliated"];return r.jsxs("div",{className:"min-h-screen",children:[r.jsx(w0,{title:`${t.name} — ${t.title}`,description:t.bio?t.bio.substring(0,160):`${t.name} is a recruiting professional at Lean Synergy Solutions, connecting talent with opportunities across Federal & Defense, Critical Infrastructure, Manufacturing, Healthcare Infrastructure, and Veteran & Military-Affiliated talent solutions.`,image:t.photo,path:`/team/${e}`}),r.jsx("section",{className:"bg-white border-b border-border py-10 md:py-14",children:r.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[r.jsxs(Me,{to:"/meet-our-team",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground mb-8 transition-colors",children:[r.jsx(oc,{className:"w-4 h-4"})," Back to Meet Our Team"]}),r.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-8",children:[r.jsx("div",{className:"flex-shrink-0",children:r.jsx("div",{className:"w-36 h-36 md:w-44 md:h-44 rounded-full bg-muted ring-4 ring-border flex items-center justify-center text-4xl font-bold overflow-hidden shadow-md",children:t.photo?r.jsx("img",{src:t.photo,alt:t.name,className:"w-full h-full object-cover"}):t.initials})}),r.jsxs("div",{className:"text-center md:text-left",children:[r.jsx("h1",{className:"text-3xl md:text-4xl font-extrabold text-[#0B1F33] tracking-tight",children:t.name}),r.jsx("p",{className:"text-lg text-primary font-semibold mt-1",children:t.title}),r.jsxs("div",{className:"mt-4 flex flex-wrap gap-4 justify-center md:justify-start",children:[t.linkedin&&r.jsxs("a",{href:t.linkedin,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-sm text-[#0B1F33] hover:underline",children:[r.jsx(XT,{className:"w-4 h-4"})," LinkedIn"]}),(S==null?void 0:S.email)&&r.jsxs("a",{href:`mailto:${S.email}`,className:"inline-flex items-center gap-1.5 text-sm text-[#0B1F33] hover:underline",children:[r.jsx(ko,{className:"w-4 h-4"})," ",S.email]}),(S==null?void 0:S.phone)&&r.jsxs("a",{href:`tel:${S.phone}`,className:"inline-flex items-center gap-1.5 text-sm text-[#0B1F33] hover:underline",children:[r.jsx(pm,{className:"w-4 h-4"})," ",S.phone]}),r.jsxs("button",{onClick:b,className:"inline-flex items-center gap-1.5 text-sm text-[#0B1F33] hover:underline cursor-pointer",children:[r.jsx(ja,{className:"w-4 h-4"})," Save Contact"]})]}),w&&r.jsx("div",{className:"mt-6",children:r.jsxs("button",{onClick:j,className:"bg-[#0B1F33] text-white px-6 py-3 rounded font-bold uppercase text-sm hover:bg-[#0B1F33] transition-colors shadow",children:["Explore Jobs with ",N]})}),k&&r.jsx("div",{className:"mt-3",children:r.jsxs("button",{onClick:()=>p(!0),className:"bg-white border-2 border-[#0B1F33] text-[#0B1F33] px-6 py-3 rounded font-bold uppercase text-sm hover:bg-[#0B1F33] hover:text-white transition-colors",children:["Schedule a Call with ",_y[t.slug].firstName]})})]})]})]})}),r.jsx("section",{className:"py-12 bg-background",children:r.jsx("div",{className:"max-w-4xl mx-auto px-6",children:r.jsx("div",{className:"text-muted-foreground leading-relaxed space-y-4",children:t.bio?t.bio.split(/\n\n+/).map((A,B)=>r.jsx("p",{children:A},B)):r.jsxs(r.Fragment,{children:[r.jsxs("p",{children:[t.name," is a dedicated recruiting professional specializing in connecting top talent with mission-critical roles across Federal & Defense, Critical Infrastru
692cture, Manufacturing, Healthcare Infrastructure, and a dedicated Veteran & Military-Affiliated talent network. With a commitment to long-term placement success, ",v.toLowerCase()," takes a relationship-first approach to every search. ",N," is proud to be part of the Lean Synergy Solutions team."]}),r.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:C.map(A=>r.jsx("span",{className:"text-xs font-semibold bg-primary/10 text-[#0B1F33] px-3 py-1.5 rounded-full",children:A},A))})]})})})}),O&&r.jsx("section",{ref:g,className:"bg-muted border-t border-border py-12",children:r.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[r.jsxs("div",{className:"mb-8",children:[r.jsx("h2",{className:"text-2xl md:text-3xl font-extrabold text-[#0B1F33] text-center",children:"Current Career Opportunities"}),r.jsxs("p",{className:"text-muted-foreground text-center mt-1",children:["Managed by ",t.name]})]}),c?r.jsxs("div",{className:"flex items-center justify-center gap-2 text-muted-foreground py-8",children:[r.jsx("div",{className:"w-5 h-5 border-2 border-primary border-t-transparent rounded-full animate-spin"}),"Loading positions..."]}):o.length>0?r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:o.map(A=>r.jsxs("div",{onClick:()=>m(A),className:"bg-white border border-border rounded-lg p-5 cursor-pointer hover:border-primary hover:shadow-md transition-all",children:[r.jsx("h3",{className:"font-bold text-[#0B1F33] text-base leading-snug",children:A.title||"Open Position"}),r.jsxs("div",{className:"mt-3 space-y-1",children:[A.location&&r.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[r.jsx($a,{className:"w-3.5 h-3.5 flex-shrink-0"})," ",A.location]}),A.job_number&&r.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[r.jsx(Gr,{className:"w-3.5 h-3.5 flex-shrink-0"})," #",A.job_number]})]})]},A.id))}):r.jsx("div",{className:"text-center py-8",children:r.jsx(Me,{to:"/jobs",className:"text-primary hover:underline text-base font-semibold inline-block",children:"Browse all available positions →"})})]})}),h&&k&&r.jsx(EG,{recruiter:_y[t.slug],onClose:()=>p(!1)}),r.jsx(hK,{job:f,recruiterSlug:e,open:!!f,onOpenChange:A=>{A||m(null)}})]})}function ak(){var p;const{slug:e,jobNumber:t}=xm(),[n,s]=E.useState(null),[i,o]=E.useState(null),[l,c]=E.useState(!0);E.useEffect(()=>{async function f(){try{const[m,g]=await Promise.all([ge.functions.invoke("getRecruiterJobs",{recruiterSlug:e}),ge.entities.TeamMember.list("sort_order",100)]),j=(m.data.jobs||[]).find(b=>b.job_number===t);s(j||null),o(g.find(b=>b.slug===e)||null)}catch(m){console.error("Error fetching job:",m)}finally{c(!1)}}f()},[e,t]);const d=f=>{if(!f)return null;const m=["job title","position summary","key responsibilities","required qualifications","location requirements","compensation & benefits","compensation and benefits","responsibilities","qualifications","requirements","benefits"];return f.split(`
693`).map((j,b)=>{const x=j.trim();return m.some(N=>x.toLowerCase().includes(N))?r.jsx("p",{className:"text-foreground mt-4 mb-2 uppercase tracking-wide text-sm",children:x},b):x.startsWith("•")||x.startsWith("-")?r.jsx("p",{className:"ml-4 text-sm text-muted-foreground leading-relaxed",children:x},b):x===""?r.jsx("br",{},b):r.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-2",children:x},b)})};if(l)return r.jsxs("div",{className:"py-20 text-center",children:[r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading job details..."})]});if(!n)return r.jsxs("div",{className:"py-20 text-center",children:[r.jsx("h1",{className:"text-2xl font-bold",children:"Job not found"}),r.jsx(Me,{to:`/team/${e}`,className:"text-primary mt-4 inline-block hover:underline",children:"← Back to recruiter profile"})]});const h=(i==null?void 0:i.name)||"Recruiter";return r.jsxs("div",{className:"max-w-3xl mx-auto px-6 py-12",children:[r.jsx(w0,{title:`${n.title} — ${h} | Lean Synergy Solutions`,description:n.description?n.description.substring(0,160):`Apply for ${n.title} with ${h} at Lean Synergy Solutions.`,path:`/team/${e}/job/${t}`}),r.jsxs(Me,{to:`/team/${e}`,className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary mb-6",children:[r.jsx(oc,{className:"w-4 h-4"})," Back to ",h]}),r.jsxs("div",{className:"bg-card border border-border rounded-lg p-6",children:[r.jsxs("div",{className:"flex items-start justify-between gap-4 mb-4",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-extrabold",children:n.title||"Open Position"}),r.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-2 text-sm text-muted-foreground",children:[n.location&&r.jsxs("span",{className:"flex items-center gap-1",children:[r.jsx($a,{className:"w-4 h-4"})," ",n.location]}),n.job_number&&r.jsxs("span",{className:"flex items-center gap-1",children:[r.jsx(Gr,{className:"w-4 h-4"})," Job #",n.job_number]})]})]}
693),r.jsx(Me,{to:`/apply/${e}?job=${encodeURIComponent(n.title)}&job_number=${n.job_number||""}`,className:"flex-shrink-0",children:r.jsx(xe,{size:"sm",className:"gap-2",children:"Apply Now"})})]}),i&&r.jsxs("div",{className:"flex items-center gap-3 bg-muted rounded-lg p-3 mb-6",children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-muted flex items-center justify-center text-sm font-bold text-muted-foreground overflow-hidden flex-shrink-0",children:i.photo?r.jsx("img",{src:i.photo,alt:i.name,className:"w-full h-full object-cover"}):i.initials}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-semibold",children:i.name}),r.jsx("p",{className:"text-xs text-muted-foreground",children:i.title})]})]}),n.description&&r.jsx("div",{className:"text-sm leading-relaxed",children:d(n.description)}),r.jsx("div",{className:"border-t border-border pt-4 mt-6",children:r.jsx(Me,{to:`/apply/${e}?job=${encodeURIComponent(n.title)}&job_number=${n.job_number||""}`,children:r.jsxs(xe,{className:"w-full",children:["Apply Now with ",((p=i==null?void 0:i.name)==null?void 0:p.split(" ")[0])||"Recruiter"]})})})]})]})}const pK=[{name:"Military Onboard Solutions",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/3d8ee0573_MilitaryOnboardSolutions.webp",url:null},{name:"ProRec RS",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/83506ed94_ProREcRS.webp",url:null},{name:"Grassroots Talent Solutions",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/40020e2ae_GrassrootsTalentSolutions.webp",url:"https://grassrootstalent.com/"},{name:"MilCruit",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/49e1bdbbf_MilCruit.webp",url:"https://www.linkedin.com/company/milcruit"},{name:"Allegiant Vets",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/7cda57779_allegiantvets.webp",url:"https://www.allegiantvets.org/"},{name:"7 Eagle Group",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/0537c9319_7_eagle_group_logo_vector-black.webp",url:"https://7eagle.com/"},{name:"Veteran Service Brands",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/e60e4e6a8_VSB.webp",url:"https://www.veteranservicebrands.com/"},{name:"Veteran Trash Talk",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/720364321_VeteranTrashTalk.webp",url:"https://veterantrashtalk.com/"},{name:"N-Transition Resumes",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/f1a427c5d_NTransitionResumes.webp",url:null},{name:"Best Military Resume",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/01dab5b22_BestMilitaryResume.webp",url:"https://bestmilitaryresume.com/"},{name:"Frago 22 Vets",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/1a13b8191_frago22_vets_blk4x.png",url:"https://frago22.com/"},{name:"PORTCO",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/2b304dd54_Portco_Logopng.webp",url:"https://portco.org/services-employment/mentor-protege-program/"},{name:"Seahawks Small Business Partner 2026",logo:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/be6e7802b_Seahawks_SBP2_267.jpg",url:"https://www.seahawks.com/promotions/eleven-sports-media/small-business-program/",large:!0}];function lk(){return r.jsxs("div",{children:[r.jsx("section",{className:"bg-card py-8 md:py-12 border-b border-border",children:r.jsxs("div",{className:"max-w-5xl mx-auto px-6 text-center",children:[r.jsx("h1",{className:"text-3xl md:text-5xl font-extrabold text-foreground tracking-tight",children:"Our Partners"}),r.jsx("p",{className:"mt-4 text-lg text-muted-foreground max-w-2xl mx-auto",children:"We believe in the power of strategic partnerships. These organizations share our commitment to veterans, talent, and purpose-driven work."}),r.jsx(Me,{to:"/partner-with-us",className:"inline-block mt-6 bg-primary text-primary-foreground px-8 py-3 rounded font-bold uppercase tracking-wider text-sm hover:opacity-90 transition-opacity",children:"Partner with Us"})]})}),r.jsx("section",{className:"max-w-5xl mx-auto px-6 py-16",children:r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6",children:pK.map(e=>r.jsx("a",{href:e.url||"#",target:e.url?"_blank":void 0,rel:"noopener noreferrer",className:`bg-card rounded-lg p-6 text-center hover:bg-muted/50 transition-colors flex items-center justify-center ${e.large?"min-h-40":"min-h-24"}`,children:r.jsx("img",{src:e.logo,alt:e.name,className:`max-w-full object-contain ${e.large?"h-32":"max-h-full"}`})},e.name))})})]})}const gK=[{icon:wn,title:"Diversity, Equity & Inclusion",desc:"We believe diverse teams create stronger organizations."},{icon:QT,title:"Learning & Innovation",desc:"We embrace continuous improvement and evolving technologies to better serve our clients and candidates. We remain humble, adaptable, and committed to professional growth."},{icon:kM,title:"Passion",desc:"We take pride in helping veterans transition into civilian careers and supporting non-veterans in achieving their career goals. Every placement is an opportunity to uplift individuals and strengthen organizations."},{icon:KT,title:"Teamwork & Optimism",desc:"We believe collaboration, awareness, and optimism drive success. Whether with our clients, candidates, or partners, we leverage these values to achieve shared goals."}];function ck(){return r.jsxs("div",{children:[r.jsx(Nn,{title:"Mission & Values"}),r.jsxs("section",{className:"max-w-4xl mx-auto px-6 py-16",children:[r.jsx(et,{children:r.jsx("div",{className:"rounded-xl overflow-hidden shadow-xl mb-12",children:r.jsx("img",{src:_P,alt:"Veterans collaborating in the workplace",className:"w-full h-64 object-cover"})})}),r.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg text-center mb-12",children:"Our mission is to connect exceptional talent with opportunity — across the United States and abroad. As a veteran-led recruiting and permanent placement firm based in Spokane, Washington, we are deeply committed to supporting those who have served our 
693country while also serving the broader workforce."}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:gK.map(e=>r.jsxs("div",{className:"bg-card border border-border rounded-lg p-6",children:[r.jsx(e.icon,{className:"w-8 h-8 text-primary mb-3"}),r.jsx("h3",{className:"font-bold text-lg mb-2",children:e.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.desc})]},e.title))})]})]})}const yK=[{testimonial_text:"Lean Synergy Solutions found us a maintenance engineer in under two weeks — someone we'd been searching for on our own for 3 months. Incredible service.",full_name:"Operations Manager",role_company:"Manufacturing Co.",rating:5},{testimonial_text:"Jeremy and his team took the time to really understand what I was looking for, not just my resume. They found me a role that actually fits my background as a veteran.",full_name:"Candidate",role_company:"Industrial Technician",rating:5},{testimonial_text:"Professional, responsive, and they delivered exactly what they promised. We'll use them again.",full_name:"HR Director",role_company:"Data Center Operator",rating:5},{testimonial_text:"They didn't just send me resumes — they sent me the right people. That's a huge difference.",full_name:"Plant Manager",role_company:"Food Processing Co.",rating:5},{testimonial_text:"As a transitioning veteran, I felt lost until I connected with this team. They understood my skills and found me a great civilian role.",full_name:"Veteran Candidate",role_company:"Facilities Technician",rating:5},{testimonial_text:"Fast, professional, and genuinely caring. They treated me like a person, not a placement.",full_name:"Engineering Candidate",role_company:"Manufacturing Engineer",rating:5}];function uk(){const{data:e=[]}=LA({queryKey:["testimonials","approved"],queryFn:()=>ge.entities.Testimonial.filter({status:"approved"})}),t=e.length>0?e:yK,n=[...t,...t];return r.jsxs("div",{children:[r.jsx(Nn,{title:"Client and Talent Testimonials"}),r.jsxs("section",{className:"max-w-7xl mx-auto px-6 py-16",children:[r.jsx("div",{className:"relative overflow-hidden mb-12",style:{maskImage:"linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent)",WebkitMaskImage:"linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent)"},children:r.jsx("div",{className:"flex gap-6 w-max animate-testimonials-scroll",children:n.map((s,i)=>r.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 w-[340px] flex-shrink-0",children:[r.jsx("div",{className:"flex gap-0.5 mb-3",children:Array.from({length:s.rating||5}).map((o,l)=>r.jsx(qu,{className:"w-4 h-4 fill-primary text-primary"},l))}),r.jsxs("p",{className:"text-muted-foreground text-sm italic mb-4 line-clamp-4",children:['"',s.testimonial_text,'"']}),r.jsx("p",{className:"font-semibold text-sm",children:s.full_name}),r.jsx("p",{className:"text-xs text-muted-foreground",children:s.role_company})]},i))})}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:t.map((s,i)=>r.jsxs("div",{className:"bg-card border border-border rounded-lg p-6",children:[r.jsx("div",{className:"flex gap-0.5 mb-3",children:Array.from({length:s.rating||5}).map((o,l)=>r.jsx(qu,{className:"w-4 h-4 fill-primary text-primary"},l))}),r.jsxs("p",{className:"text-muted-foreground text-sm italic mb-4",children:['"',s.testimonial_text,'"']}),r.jsx("p",{className:"font-semibold text-sm",children:s.full_name}),r.jsx("p",{className:"text-xs text-muted-foreground",children:s.role_company})]},i))}),r.jsx("div",{className:"text-center mt-12",children:r.jsx(Me,{to:"/submit-testimonial",className:"bg-primary text-primary-foreground px-8 py-3 rounded font-bold uppercase text-sm hover:opacity-90 transition-opacity",children:"Share Your Experience"})})]})]})}function dk(e,[t,n]){return Math.min(n,Math.max(t,e))}function fk(e){const t=xK(e),n=E.forwardRef((s,i)=>{const{children:o,...l}=s,c=E.Children.toArray(o),d=c.find(bK);if(d){const h=d.props.children,p=c.map(f=>f===d?E.Children.count(h)>1?E.Children.only(null):E.isValidElement(h)?h.props.children:null:f);return r.jsx(t,{...l,ref:i,children:E.isValidElement(h)?E.cloneElement(h,void 0,p):null})}return r.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function xK(e){const t=E.forwardRef((n,s)=>{const{children:i,...o}=n;if(E.isValidElement(i)){const l=jK(i),c=wK(o,i.props);return i.type!==E.Fragment&&(c.ref=s?gc(s,l):l),E.cloneElement(i,c)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vK=Symbol("radix.slottable");function bK(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vK}function wK(e,t){const n={...t};for(const s in t){const i=e[s],o=t[s];/^on[A-Z]/.test(s)?i&&o?n[s]=(...c)=>{const d=o(...c);return i(...c),d}:i&&(n[s]=i):s==="style"?n[s]={...i,...o}
vendor: 4,296 bytes, line 693
693:s==="className"&&(n[s]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function jK(e){var s,i;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function NK(e){const t=e+"CollectionProvider",[n,s]=yc(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=b=>{const{scope:x,children:v}=b,N=ve.useRef(null),S=ve.useRef(new Map).current;return r.jsx(i,{scope:x,itemMap:S,collectionRef:N,children:v})};l.displayName=t;const c=e+"CollectionSlot",d=fk(c),h=ve.forwardRef((b,x)=>{const{scope:v,children:N}=b,S=o(c,v),w=Ft(x,S.collectionRef);return r.jsx(d,{ref:w,children:N})});h.displayName=c;const p=e+"CollectionItemSlot",f="data-radix-collection-item",m=fk(p),g=ve.forwardRef((b,x)=>{const{scope:v,children:N,...S}=b,w=ve.useRef(null),k=Ft(x,w),O=o(p,v);return ve.useEffect(()=>(O.itemMap.set(w,{ref:w,...S}),()=>void O.itemMap.delete(w))),r.jsx(m,{[f]:"",ref:k,children:N})});g.displayName=p;function j(b){const x=o(e+"CollectionConsumer",b);return ve.useCallback(()=>{const N=x.collectionRef.current;if(!N)return[];const S=Array.from(N.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((O,C)=>S.indexOf(O.ref.current)-S.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:l,Slot:h,ItemSlot:g},j,s]}var SK=E.createContext(void 0);function _K(e){const t=E.useContext(SK);return e||t||"ltr"}const kK=["top","right","bottom","left"],Ao=Math.min,Nr=Math.max,Qh=Math.round,sh=Math.floor,Us=e=>({x:e,y:e}),EK={left:"right",right:"left",bottom:"top",top:"bottom"},CK={start:"end",end:"start"};function kb(e,t,n){return Nr(e,Ao(t,n))}function ji(e,t){return typeof e=="function"?e(t):e}function Ni(e){return e.split("-")[0]}function xc(e){return e.split("-")[1]}function mw(e){return e==="x"?"y":"x"}function pw(e){return e==="y"?"height":"width"}const TK=new Set(["top","bottom"]);function Ls(e){return TK.has(Ni(e))?"y":"x"}function gw(e){return mw(Ls(e))}function AK(e,t,n){n===void 0&&(n=!1);const s=xc(e),i=gw(e),o=pw(i);let l=i==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Xh(l)),[l,Xh(l)]}function OK(e){const t=Xh(e);return[Eb(e),t,Eb(t)]}function Eb(e){return e.replace(/start|end/g,t=>CK[t])}const hk=["left","right"],mk=["right","left"],RK=["top","bottom"],PK=["bottom","top"];function DK(e,t,n){switch(e){case"top":case"bottom":return n?t?mk:hk:t?hk:mk;case"left":case"right":return t?RK:PK;default:return[]}}function IK(e,t,n,s){const i=xc(e);let o=DK(Ni(e),n==="start",s);return i&&(o=o.map(l=>l+"-"+i),t&&(o=o.concat(o.map(Eb)))),o}function Xh(e){return e.replace(/left|right|bottom|top/g,t=>EK[t])}function LK(e){return{top:0,right:0,bottom:0,left:0,...e}}function m4(e){return typeof e!="number"?LK(e):{top:e,right:e,bottom:e,left:e}}function Zh(e){const{x:t,y:n,width:s,height:i}=e;return{width:s,height:i,top:n,left:t,right:t+s,bottom:n+i,x:t,y:n}}function pk(e,t,n){let{reference:s,floating:i}=e;const o=Ls(t),l=gw(t),c=pw(l),d=Ni(t),h=o==="y",p=s.x+s.width/2-i.width/2,f=s.y+s.height/2-i.height/2,m=s[c]/2-i[c]/2;let g;switch(d){case"top":g={x:p,y:s.y-i.height};break;case"bottom":g={x:p,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:f};break;case"left":g={x:s.x-i.width,y:f};break;default:g={x:s.x,y:s.y}}switch(xc(t)){case"start":g[l]-=m*(n&&h?-1:1);break;case"end":g[l]+=m*(n&&h?-1:1);break}return g}async function MK(e,t){var n;t===void 0&&(t={});const{x:s,y:i,platform:o,rects:l,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:m=!1,padding:g=0}=ji(t,e),j=m4(g),x=c[m?f==="floating"?"reference":"floating":f],v=Zh(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:h,rootBoundary:p,strategy:d})),N=f==="floating"?{x:s,y:i,width:l.floating.width,height:l.floating.height}:l.reference,S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),w=await(o.isElement==null?void 0:o.isElement(S))?await(
vendor: 9,320 bytes, line 693
693o.getScale==null?void 0:o.getScale(S))||{x:1,y:1}:{x:1,y:1},k=Zh(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:S,strategy:d}):N);return{top:(v.top-k.top+j.top)/w.y,bottom:(k.bottom-v.bottom+j.bottom)/w.y,left:(v.left-k.left+j.left)/w.x,right:(k.right-v.right+j.right)/w.x}}const FK=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,c=o.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:f}=pk(h,s,d),m=s,g={},j=0;for(let x=0;x<c.length;x++){var b;const{name:v,fn:N}=c[x],{x:S,y:w,data:k,reset:O}=await N({x:p,y:f,initialPlacement:s,placement:m,strategy:i,middlewareData:g,rects:h,platform:{...l,detectOverflow:(b=l.detectOverflow)!=null?b:MK},elements:{reference:e,floating:t}});p=S??p,f=w??f,g={...g,[v]:{...g[v],...k}},O&&j<=50&&(j++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(h=O.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:p,y:f}=pk(h,m,d)),x=-1)}return{x:p,y:f,placement:m,strategy:i,middlewareData:g}},BK=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:i,rects:o,platform:l,elements:c,middlewareData:d}=t,{element:h,padding:p=0}=ji(e,t)||{};if(h==null)return{};const f=m4(p),m={x:n,y:s},g=gw(i),j=pw(g),b=await l.getDimensions(h),x=g==="y",v=x?"top":"left",N=x?"bottom":"right",S=x?"clientHeight":"clientWidth",w=o.reference[j]+o.reference[g]-m[g]-o.floating[j],k=m[g]-o.reference[g],O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let C=O?O[S]:0;(!C||!await(l.isElement==null?void 0:l.isElement(O)))&&(C=c.floating[S]||o.floating[j]);const A=w/2-k/2,B=C/2-b[j]/2-1,I=Ao(f[v],B),L=Ao(f[N],B),D=I,R=C-b[j]-L,U=C/2-b[j]/2+A,$=kb(D,U,R),Y=!d.arrow&&xc(i)!=null&&U!==$&&o.reference[j]/2-(U<D?I:L)-b[j]/2<0,K=Y?U<D?U-D:U-R:0;return{[g]:m[g]+K,data:{[g]:$,centerOffset:U-$-K,...Y&&{alignmentOffset:K}},reset:Y}}}),UK=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:i,middlewareData:o,rects:l,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:b=!0,...x}=ji(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=Ni(i),N=Ls(c),S=Ni(c)===c,w=await(d.isRTL==null?void 0:d.isRTL(h.floating)),k=m||(S||!b?[Xh(c)]:OK(c)),O=j!=="none";!m&&O&&k.push(...IK(c,b,j,w));const C=[c,...k],A=await d.detectOverflow(t,x),B=[];let I=((s=o.flip)==null?void 0:s.overflows)||[];if(p&&B.push(A[v]),f){const U=AK(i,l,w);B.push(A[U[0]],A[U[1]])}if(I=[...I,{placement:i,overflows:B}],!B.every(U=>U<=0)){var L,D;const U=(((L=o.flip)==null?void 0:L.index)||0)+1,$=C[U];if($&&(!(f==="alignment"?N!==Ls($):!1)||I.every(Q=>Ls(Q.placement)===N?Q.overflows[0]>0:!0)))return{data:{index:U,overflows:I},reset:{placement:$}};let Y=(D=I.filter(K=>K.overflows[0]<=0).sort((K,Q)=>K.overflows[1]-Q.overflows[1])[0])==null?void 0:D.placement;if(!Y)switch(g){case"bestFit":{var R;const K=(R=I.filter(Q=>{if(O){const q=Ls(Q.placement);return q===N||q==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(q=>q>0).reduce((q,F)=>q+F,0)]).sort((Q,q)=>Q[1]-q[1])[0])==null?void 0:R[0];K&&(Y=K);break}case"initialPlacement":Y=c;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};function gk(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yk(e){return kK.some(t=>e[t]>=0)}const qK=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:i="referenceHidden",...o}=ji(e,t);switch(i){case"referenceHidden":{const l=await s.detectOverflow(t,{...o,elementContext:"reference"}),c=gk(l,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:yk(c)}}}case"escaped":{const l=await s.detectOverflow(t,{...o,altBoundary:!0}),c=gk(l,n.floating);return{data:{escapedOffsets:c,escaped:yk(c)}}}default:return{}}}}},p4=new Set(["left","top"]);async function VK(e,t){const{placement:n,platform:s,elements:i}=e,o=await(s.isRTL==null?void 0:s.isRTL(i.floating)),l=Ni(n),c=xc(n),d=Ls(n)==="y",h=p4.has(l)?-1:1,p=o&&d?-1:1,f=ji(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:j}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof j=="number"&&(g=c==="end"?j*-1:j),d?{x:g*p,y:m*h}:{x:m*h,y:g*p}}const $K=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:i,y:o,placement:l,middlewareData:c}=t,d=await VK(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(s=c.arrow)!=null&&s.alignmentOffset?{}:{x:i+d.x,y:o+d.y,data:{...d,placement:l}}}}},zK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:i,platform:o}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:d={fn:v=>{let{x:N,y:S}=v;return{x:N,y:S}}},...h}=ji(e,t),p={x:n,y:s},f=await o.detectOverflow(t,h),m=Ls(Ni(i)),g=mw(m);let j=p[g],b=p[m];if(l){const v=g==="y"?"top":"left",N=g==="y"?"bottom":"right",S=j+f[v],w=j-f[N];j=kb(S,j,w)}if(c){const v=m==="y"?"top":"left",N=m==="y"?"bottom":"right",S=b+f[v],w=b-f[N];b=kb(S,b,w)}const x=d.fn({...t,[g]:j,[m]:b});return{...x,data:{x:x.x-n,y:x.y-s,enabled:{[g]:l,[m]:c}}}}}},HK=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:i,rects:o,middlewareData:l}=t,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=ji(e,t),p={x:n,y:s},f=Ls(i),m=mw(f);let g=p[m],j=p[f];const b=ji(c,t),x=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(d){const S=m==="y"?"height":"width",w=o.reference[m]-o.floating[S]+x.mainAxis,k=o.reference[m]+o.reference[S]-x.mainAxis;g<w?g=w:g>k&&(g=k)}if(h){var v,N;const S=m==="y"?"width":"height",w=p4.has(Ni(i)),k=o.reference[f]-o.floating[S]+(w&&((v=l.offset)==null?void 0:v[f])||0)+(w?0:x.crossAxis),O=o.reference[f]+o.reference[S]+(w?0:((N=l.offset)==null?void 0:N[f])||0)-(w?x.crossAxis:0);j<k?j=k:j>O&&(j=O)}return{[m]:g,[f]:j}}}},WK=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:i,rects:o,platform:l,elements:c}=t,{apply:d=()=>{},...h}=ji(e,t),p=await l.detectOverflow(t,h),f=Ni(i),m=xc(i),g=Ls(i)==="y",{width:j,height:b}=o.floating;let x,v;f==="top"||f==="bottom"?(x=f,v=m===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(v=f,x=m==="end"?"top":"bottom");const N=b-p.top-p.bottom,S=j-p.left-p.right,w=Ao(b-p[x],N),k=Ao(j-p[v],S),O=!t.middlewareData.shift;let C=w,A=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=S),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(C=N),O&&!m){const I=Nr(p.left,0),L=Nr(p.right,0),D=Nr(p.top,0),R=Nr(p.bottom,0);g?A=j-2*(I!==0||L!==0?I+L:Nr(p.left,p.right)):C=b-2*(D!==0||R!==0?D+R:Nr(p.top,p.bottom))}await d({...t,availableWidth:A,availableHeight:C});const B=await l.getDimensions(c.floating);return j!==B.width||b!==B.height?{reset:{rects:!0}}:{}}}};function Rm(){return typeof window<"u"}function vc(e){return g4(e)?(e.nodeName||"").toLowerCase():"#document"}function Er(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qs(e){var t;return(t=(g4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function g4(e){return Rm()?e instanceof Node||e instanceof Er(e).Node:!1}function vs(e){return Rm()?e instanceof Element||e instanceof Er(e).Element:!1}function Hs(e){return Rm()?e instanceof HTMLElement||e instanceof Er(e).HTMLElement:!1}function xk(e){return!Rm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Er(e).ShadowRoot}const GK=new Set(["inline","contents"]);function Td(e){const{overflow:t,overflowX:n,overflowY:s,display:i}=bs(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!GK.has(i)}const YK=new Set(["table","td","th"]);function KK(e){return YK.has(vc(e))}const JK=[":popover-open",":modal"];function Pm(e){return JK.some(t=>{try{return e.matches(t)}catch{return!1}})}const QK=["transform","translate","scale","rotate","perspective"],XK=["transform","translate","scale","rotate","perspective","filter"],ZK=["paint","layout","strict","content"];function yw(e){const t=xw(),n=vs(e)?bs(e):e;return QK.some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||XK.some(s=>(n.willChange||"").includes(s))||ZK.some(s=>(n.contain||"").includes(s))}function eJ(e){let t=Oo(e);for(;Hs(t)&&!nc(t);){if(yw(t))return t;if(Pm(t))return null;t=Oo(t)}return null}function xw(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tJ=new Set(["html","body","#document"]);function nc(e){return tJ.has(vc(e))}function bs(e){return Er(e).getComputedStyle(e)}function Dm(e){return vs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oo(e){if(vc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xk(e)&&e.host||Qs(e);return xk(t)?t.host:t}function y4(e){const t=Oo(e);return nc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hs(t)&&Td(t)?t:y4(t)}function ed(e,t,n){var s;
vendor: 13,796 bytes, line 693
693t===void 0&&(t=[]),n===void 0&&(n=!0);const i=y4(e),o=i===((s=e.ownerDocument)==null?void 0:s.body),l=Er(i);if(o){const c=Cb(l);return t.concat(l,l.visualViewport||[],Td(i)?i:[],c&&n?ed(c):[])}return t.concat(i,ed(i,[],n))}function Cb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function x4(e){const t=bs(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=Hs(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:s,c=Qh(n)!==o||Qh(s)!==l;return c&&(n=o,s=l),{width:n,height:s,$:c}}function vw(e){return vs(e)?e:e.contextElement}function Fl(e){const t=vw(e);if(!Hs(t))return Us(1);const n=t.getBoundingClientRect(),{width:s,height:i,$:o}=x4(t);let l=(o?Qh(n.width):n.width)/s,c=(o?Qh(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const nJ=Us(0);function v4(e){const t=Er(e);return!xw()||!t.visualViewport?nJ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rJ(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Er(e)?!1:t}function Ba(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=vw(e);let l=Us(1);t&&(s?vs(s)&&(l=Fl(s)):l=Fl(e));const c=rJ(o,n,s)?v4(o):Us(0);let d=(i.left+c.x)/l.x,h=(i.top+c.y)/l.y,p=i.width/l.x,f=i.height/l.y;if(o){const m=Er(o),g=s&&vs(s)?Er(s):s;let j=m,b=Cb(j);for(;b&&s&&g!==j;){const x=Fl(b),v=b.getBoundingClientRect(),N=bs(b),S=v.left+(b.clientLeft+parseFloat(N.paddingLeft))*x.x,w=v.top+(b.clientTop+parseFloat(N.paddingTop))*x.y;d*=x.x,h*=x.y,p*=x.x,f*=x.y,d+=S,h+=w,j=Er(b),b=Cb(j)}}return Zh({width:p,height:f,x:d,y:h})}function Im(e,t){const n=Dm(e).scrollLeft;return t?t.left+n:Ba(Qs(e)).left+n}function b4(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Im(e,n),i=n.top+t.scrollTop;return{x:s,y:i}}function sJ(e){let{elements:t,rect:n,offsetParent:s,strategy:i}=e;const o=i==="fixed",l=Qs(s),c=t?Pm(t.floating):!1;if(s===l||c&&o)return n;let d={scrollLeft:0,scrollTop:0},h=Us(1);const p=Us(0),f=Hs(s);if((f||!f&&!o)&&((vc(s)!=="body"||Td(l))&&(d=Dm(s)),Hs(s))){const g=Ba(s);h=Fl(s),p.x=g.x+s.clientLeft,p.y=g.y+s.clientTop}const m=l&&!f&&!o?b4(l,d):Us(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+p.x+m.x,y:n.y*h.y-d.scrollTop*h.y+p.y+m.y}}function iJ(e){return Array.from(e.getClientRects())}function oJ(e){const t=Qs(e),n=Dm(e),s=e.ownerDocument.body,i=Nr(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=Nr(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let l=-n.scrollLeft+Im(e);const c=-n.scrollTop;return bs(s).direction==="rtl"&&(l+=Nr(t.clientWidth,s.clientWidth)-i),{width:i,height:o,x:l,y:c}}const vk=25;function aJ(e,t){const n=Er(e),s=Qs(e),i=n.visualViewport;let o=s.clientWidth,l=s.clientHeight,c=0,d=0;if(i){o=i.width,l=i.height;const p=xw();(!p||p&&t==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}const h=Im(s);if(h<=0){const p=s.ownerDocument,f=p.body,m=getComputedStyle(f),g=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,j=Math.abs(s.clientWidth-f.clientWidth-g);j<=vk&&(o-=j)}else h<=vk&&(o+=h);return{width:o,height:l,x:c,y:d}}const lJ=new Set(["absolute","fixed"]);function cJ(e,t){const n=Ba(e,!0,t==="fixed"),s=n.top+e.clientTop,i=n.left+e.clientLeft,o=Hs(e)?Fl(e):Us(1),l=e.clientWidth*o.x,c=e.clientHeight*o.y,d=i*o.x,h=s*o.y;return{width:l,height:c,x:d,y:h}}function bk(e,t,n){let s;if(t==="viewport")s=aJ(e,n);else if(t==="document")s=oJ(Qs(e));else if(vs(t))s=cJ(t,n);else{const i=v4(e);s={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Zh(s)}function w4(e,t){const n=Oo(e);return n===t||!vs(n)||nc(n)?!1:bs(n).position==="fixed"||w4(n,t)}function uJ(e,t){const n=t.get(e);if(n)return n;let s=ed(e,[],!1).filter(c=>vs(c)&&vc(c)!=="body"),i=null;const o=bs(e).position==="fixed";let l=o?Oo(e):e;for(;vs(l)&&!nc(l);){const c=bs(l),d=yw(l);!d&&c.position==="fixed"&&(i=null),(o?!d&&!i:!d&&c.position==="static"&&!!i&&lJ.has(i.position)||Td(l)&&!d&&w4(e,l))?s=s.filter(p=>p!==l):i=c,l=Oo(l)}return t.set(e,s),s}function dJ(e){let{element:t,boundary:n,rootBoundary:s,strategy:i}=e;const l=[...n==="clippingAncestors"?Pm(t)?[]:uJ(t,this._c):[].concat(n),s],c=l[0],d=l.reduce((h,p)=>{const f=bk(t,p,i);return h.top=Nr(f.top,h.top),h.right=Ao(f.right,h.right),h.bottom=Ao(f.bottom,h.bottom),h.left=Nr(f.left,h.left),h},bk(t,c,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function fJ(e){const{width:t,height:n}=x4(e);return{width:t,height:n}}function hJ(e,t,n){const s=Hs(t),i=Qs(t),o=n==="fixed",l=Ba(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const d=Us(0);function h(){d.x=Im(i)}if(s||!s&&!o)if((vc(t)!=="body"||Td(i))&&(c=Dm(t)),s){const g=Ba(t,!0,o,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else i&&h();o&&!s&&i&&h();const p=i&&!s&&!o?b4(i,c):Us(0),f=l.left+c.scrollLeft-d.x-p.x,m=l.top+c.scrollTop-d.y-p.y;return{x:f,y:m,width:l.width,height:l.height}}function ky(e){return bs(e).position==="static"}function wk(e,t){if(!Hs(e)||bs(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qs(e)===n&&(n=n.ownerDocument.body),n}function j4(e,t){const n=Er(e);if(Pm(e))return n;if(!Hs(e)){let i=Oo(e);for(;i&&!nc(i);){if(vs(i)&&!ky(i))return i;i=Oo(i)}return n}let s=wk(e,t);for(;s&&KK(s)&&ky(s);)s=wk(s,t);return s&&nc(s)&&ky(s)&&!yw(s)?n:s||eJ(e)||n}const mJ=async function(e){const t=this.getOffsetParent||j4,n=this.getDimensions,s=await n(e.floating);return{reference:hJ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function pJ(e){return bs(e).direction==="rtl"}const gJ={convertOffsetParentRelativeRectToViewportRelativeRect:sJ,getDocumentElement:Qs,getClippingRect:dJ,getOffsetParent:j4,getElementRects:mJ,getClientRects:iJ,getDimensions:fJ,getScale:Fl,isElement:vs,isRTL:pJ};function N4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yJ(e,t){let n=null,s;const i=Qs(e);function o(){var c;clearTimeout(s),(c=n)==null||c.disconnect(),n=null}function l(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),o();const h=e.getBoundingClientRect(),{left:p,top:f,width:m,height:g}=h;if(c||t(),!m||!g)return;const j=sh(f),b=sh(i.clientWidth-(p+m)),x=sh(i.clientHeight-(f+g)),v=sh(p),S={rootMargin:-j+"px "+-b+"px "+-x+"px "+-v+"px",threshold:Nr(0,Ao(1,d))||1};let w=!0;function k(O){const C=O[0].intersectionRatio;if(C!==d){if(!w)return l();C?l(!1,C):s=setTimeout(()=>{l(!1,1e-7)},1e3)}C===1&&!N4(h,e.getBoundingClientRect())&&l(),w=!1}try{n=new IntersectionObserver(k,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,S)}n.observe(e)}return l(!0),o}function xJ(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,h=vw(e),p=i||o?[...h?ed(h):[],...ed(t)]:[];p.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const f=h&&c?yJ(h,n):null;let m=-1,g=null;l&&(g=new ResizeObserver(v=>{let[N]=v;N&&N.target===h&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),h&&!d&&g.observe(h),g.observe(t));let j,b=d?Ba(e):null;d&&x();function x(){const v=Ba(e);b&&!N4(b,v)&&n(),b=v,j=requestAnimationFrame(x)}return n(),()=>{var v;p.forEach(N=>{i&&N.removeEventListener("scroll",n),o&&N.removeEventListener("resize",n)}),f==null||f(),(v=g)==null||v.disconnect(),g=null,d&&cancelAnimationFrame(j)}}const vJ=$K,bJ=zK,wJ=UK,jJ=WK,NJ=qK,jk=BK,SJ=HK,_J=(e,t,n)=>{const s=new Map,i={platform:gJ,...n},o={...i.platform,_c:s};return FK(e,t,{...i,platform:o})};var kJ=typeof document<"u",EJ=function(){},Th=kJ?E.useLayoutEffect:EJ;function em(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!em(e[s],t[s]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,i[s]))return!1;for(s=n;s--!==0;){const o=i[s];if(!(o==="_owner"&&e.$$typeof)&&!em(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function S4(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nk(e,t){const n=S4(e);return Math.round(t*n)/n}function Ey(e){const t=E.useRef(e);return Th(()=>{t.current=e}),t}function CJ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:i,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:d,open:h}=e,[p,f]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=E.useState(s);em(m,s)||g(s);const[j,b]=E.useState(null),[x,v]=E.useState(null),N=E.useCallback(Q=>{Q!==O.current&&(O.current=Q,b(Q))},[]),S=E.useCallback(Q=>{Q!==C.current&&(C.current=Q,v(Q))},[]),w=o||j,k=l||x,O=E.useRef(null),C=E.useRef(null),A=E.useRef(p),B=d!=null,I=Ey(d),L=Ey(i),D=Ey(h),R=E.useCallback(()=>{if(!O.current||!C.current)return;const Q={placement:t,strategy:n,middleware:m};L.current&&(Q.platform=L.current),_J(O.current,C.current,Q).then(q=>{const F={...q,isPositioned:D.current!==!1};U.current&&!em(A.current,F)&&(A.current=F,Ga.flushSync(()=>{f(F)}))})},[m,t,n,L,D]);Th(()=>{h===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(Q=>({...Q,isPositioned:!1})))},[h]);const U=E.useRef(!1);Th(()=>(U.current=!0,()=>{U.current=!1}),[]),Th(()=>{if(w&&(O.current=w),k&&(C.current=k),w&&k){if(I.current)return I.current(w,k,R);R()}},[w,k,R,I,B]);const $=E.useMemo(()=>({reference:O,floating:C,setReference:N,setFloating:S}),[N,S]),Y=E.useMemo(()=>({reference:w,floating:k}),[w,k]),K=E.useMemo(()=>{const Q={position:n,left:0,top:0};if(!Y.floating)return Q;const q=Nk(Y.floating,p.x),F=Nk(Y.floating,p.y);return c?{...Q,transform:"translate("+q+"px, "+F+"px)",...S4(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:F}},[n,c,Y.floating,p.x,p.y]);return E.useMemo(()=>({...p,update:R,refs:$,elements:Y,floatingStyles:K}),[p,R,$,Y,K])}const TJ=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:i}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?jk({element:s.current,padding:i}).fn(n):{}:s?jk({element:s,padding:i}).fn(n):{}}}},AJ=(e,t)=>({...vJ(e),options:[e,t]}),OJ=(e,t)=>({...bJ(e),options:[e,t]}),RJ=(e,t)=>({...SJ(e),options:[e,t]}),PJ=(e,t)=>({...wJ(e),options:[e,t]}),DJ=(e,t)=>({...jJ(e),options:[e,t]}),IJ=(e,t)=>({...NJ(e),options:[e,t]}),LJ=(e,t)=>({...TJ(e),options:[e,t]});var MJ="Arrow",_4=E.forwardRef((e,t)=>{const{children:n,width:s=10,height:i=5,...o}=e;return r.jsx(St.svg,{...o,ref:t,width:s,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:r.jsx("polygon",{points:"0,0 30,0 15,10"})})});_4.displayName=MJ;var FJ=_4;function bw(e){const[t,n]=E.useState(void 0);return Vn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let l,c;if("borderBoxSize"in o){const d=o.borderBoxSize,h=Array.isArray(d)?d[0]:d;l=h.inlineSize,c=h.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var ww="Popper",[k4,E4]=yc(ww),[BJ,C4]=k4(ww),T4=e=>{const{__scopePopper:t,children:n}=e,[s,i]=E.useState(null);return r.jsx(BJ,{scope:t,anchor:s,onAnchorChange:i,children:n})};T4.displayName=ww;var A4="PopperAnchor",O4=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...i}=e,o=C4(A4,n),l=E.useRef(null),c=Ft(t,l),d=E.useRef(null);return E.useEffect(()=>{const h=d.current;d.current=(s==null?void 0:s.current)||l.current,h!==d.current&&o.onAnchorChange(d.current)}),s?null:r.jsx(St.div,{...i,ref:c})});O4.displayName=A4;var jw="PopperContent",[UJ,qJ]=k4(jw),R4=E.forwardRef((e,t)=>{var G,te,re,ue,ye,be;const{__scopePopper:n,side:s="bottom",sideOffset:i=0,align:o="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:j,...b}=e,x=C4(jw,n),[v,N]=E.useState(null),S=Ft(t,Te=>N(Te)),[w,k]=E.useState(null),O=bw(w),C=(O==null?void 0:O.width)??0,A=(O==null?void 0:O.height)??0,B=s+(o!=="center"?"-"+o:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},L=Array.isArray(h)?h:[h],D=L.length>0,R={padding:I,boundary:L.filter($J),altBoundary:D},{refs:U,floatingStyles:$,placement:Y,isPositioned:K,middlewareData:Q}=CJ({strategy:"fixed",placement:B,whileElementsMounted:(...Te)=>xJ(...Te,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[AJ({mainAxis:i+A,alignmentAxis:l}),d&&OJ({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?RJ():void 0,...R}),d&&PJ({...R}),DJ({...R,apply:({elements:Te,rects:ie,availableWidth:De,availableHeight:Ye})=>{const{width:He,height:ce}=ie.reference,he=Te.floating.style;he.setProperty("--radix-popper-available-width",`${De}px`),he.setProperty("--radix-popper-available-height",`${Ye}px`),he.setProperty("--radix-popper-anchor-width",`${He}px`),he.setProperty("--radix-popper-anchor-height",`${ce}px`)}}),w&&LJ({element:w,padding:c}),zJ({arrowWidth:C,arrowHeight:A}),m&&IJ({strategy:"referenceHidden",...R})]}),[q,F]=I4(Y),P=Ma(j);Vn(()=>{K&&(P==null||P())},[K,P]);const V=(G=Q.arrow)==null?void 0:G.x,W=(te=Q.arrow)==null?void 0:te.y,Z=((re=Q.arrow)==null?void 0:re.centerOffset)!==0,[X,H]=E.useState();return Vn(()=>{v&&H(window.getComputedStyle(v).zIndex)},[v]),r.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:K?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"
693--radix-popper-transform-origin":[(ue=Q.transformOrigin)==null?void 0:ue.x,(ye=Q.transformOrigin)==null?void 0:ye.y].join(" "),...((be=Q.hide)==null?void 0:be.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r.jsx(UJ,{scope:n,placedSide:q,onArrowChange:k,arrowX:V,arrowY:W,shouldHideArrow:Z,children:r.jsx(St.div,{"data-side":q,"data-align":F,...b,ref:S,style:{...b.style,animation:K?void 0:"none"}})})})});R4.displayName=jw;var P4="PopperArrow",VJ={top:"bottom",right:"left",bottom:"top",left:"right"},D4=E.forwardRef(function(t,n){const{__scopePopper:s,...i}=t,o=qJ(P4,s),l=VJ[o.placedSide];return r.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:r.jsx(FJ,{...i,ref:n,style:{...i.style,display:"block"}})})});D4.displayName=P4;function $J(e){return e!==null}var zJ=e=>({name:"transformOrigin",options:e,fn(t){var x,v,N;const{placement:n,rects:s,middlewareData:i}=t,l=((x=i.arrow)==null?void 0:x.centerOffset)!==0,c=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[h,p]=I4(n),f={start:"0%",center:"50%",end:"100%"}[p],m=(((v=i.arrow)==null?void 0:v.x)??0)+c/2,g=(((N=i.arrow)==null?void 0:N.y)??0)+d/2;let j="",b="";return h==="bottom"?(j=l?f:`${m}px`,b=`${-d}px`):h==="top"?(j=l?f:`${m}px`,b=`${s.floating.height+d}px`):h==="right"?(j=`${-d}px`,b=l?f:`${g}px`):h==="left"&&(j=`${s.floating.width+d}px`,b=l?f:`${g}px`),{data:{x:j,y:b}}}});function I4(e){const[t,n="center"]=e.split("-");return[t,n]}var HJ=T4,WJ=O4,GJ=R4,YJ=D4;function KJ(e){const t=JJ(e),n=E.forwardRef((s,i)=>{const{children:o,...l}=s,c=E.Children.toArray(o),d=c.find(XJ);if(d){const h=d.props.children,p=c.map(f=>f===d?E.Children.count(h)>1?E.Children.only(null):E.isValidElement(h)?h.props.children:null:f);return r.jsx(t,{...l,ref:i,children:E.isValidElement(h)?E.cloneElement(h,void 0,p):null})}return r.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function JJ(e){const t=E.forwardRef((n,s)=>{const{children:i,...o}=n;if(E.isValidElement(i)){const l=eQ(i),c=ZJ(o,i.props);return i.type!==E.Fragment&&(c.ref=s?gc(s,l):l),E.cloneElement(i,c)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var QJ=Symbol("radix.slottable");function XJ(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===QJ}function ZJ(e,t){const n={...t};for(const s in t){const i=e[s],o=t[s];/^on[A-Z]/.test(s)?i&&o?n[s]=(...c)=>{const d=o(...c);return i(...c),d}:i&&(n[s]=i):s==="style"?n[s]={...i,...o}:s==="className"&&(n[s]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function eQ(e){var s,i;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Nw(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var L4=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tQ="VisuallyHidden",nQ=E.forwardRef((e,t)=>r.jsx(St.span,{...e,ref:t,style:{...L4,...e.style}}));nQ.displayName=tQ;var rQ=[" ","Enter","ArrowUp","ArrowDown"],sQ=[" ","Enter"],Ua="Select",[Lm,Mm,iQ]=NK(Ua),[bc]=yc(Ua,[iQ,E4]),Fm=E4(),[oQ,Fo]=bc(Ua),[aQ,lQ]=bc(Ua),M4=e=>{const{__scopeSelect:t,children:n,open:s,defaultOpen:i,onOpenChange:o,value:l,defaultValue:c,onValueChange:d,dir:h,name:p,autoComplete:f,disabled:m,required:g,form:j}=e,b=Fm(t),[x,v]=E.useState(null),[N,S]=E.useState(null),[w,k]=E.useState(!1),O=_K(h),[C,A]=Zu({prop:s,defaultProp:i??!1,onChange:o,caller:Ua}),[B,I]=Zu({prop:l,defaultProp:c,onChange:d,caller:Ua}),L=E.useRef(null),D=x?j||!!x.closest("form"):!0,[R,U]=E.useState(new Set),$=Array.from(R).map(Y=>Y.props.value).join(";");return r.jsx(HJ,{...b,children:r.jsxs(oQ,{required:g,scope:t,trigger:x,onTriggerChange:v,valueNode:N,onValueNodeChange:S,valueNodeHasChildren:w,onValueNodeHasChildrenChange:k,contentId:Ll(),value:B,onValueChange:I,open:C,onOpenChange:A,dir:O,triggerPointerDownPosRef:L,disabled:m,children:[r.jsx(Lm.Provider,{scope:t,children:r.jsx(aQ,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(Y=>{U(K=>new Set(K).add(Y))},[]),onNativeOptionRemove:E.useCallback(Y=>{U(K=>{const Q=new Set(K);return Q.delete(Y),Q})},[]),children:n})}),D?r.jsxs(a3,{"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:f,value:
vendor: 15,234 bytes, line 693
693B,onChange:Y=>I(Y.target.value),disabled:m,form:j,children:[B===void 0?r.jsx("option",{value:""}):null,Array.from(R)]},$):null]})})};M4.displayName=Ua;var F4="SelectTrigger",B4=E.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:s=!1,...i}=e,o=Fm(n),l=Fo(F4,n),c=l.disabled||s,d=Ft(t,l.onTriggerChange),h=Mm(n),p=E.useRef("touch"),[f,m,g]=c3(b=>{const x=h().filter(S=>!S.disabled),v=x.find(S=>S.value===l.value),N=u3(x,b,v);N!==void 0&&l.onValueChange(N.value)}),j=b=>{c||(l.onOpenChange(!0),g()),b&&(l.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return r.jsx(WJ,{asChild:!0,...o,children:r.jsx(St.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":l3(l.value)?"":void 0,...i,ref:d,onClick:At(i.onClick,b=>{b.currentTarget.focus(),p.current!=="mouse"&&j(b)}),onPointerDown:At(i.onPointerDown,b=>{p.current=b.pointerType;const x=b.target;x.hasPointerCapture(b.pointerId)&&x.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(j(b),b.preventDefault())}),onKeyDown:At(i.onKeyDown,b=>{const x=f.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&m(b.key),!(x&&b.key===" ")&&rQ.includes(b.key)&&(j(),b.preventDefault())})})})});B4.displayName=F4;var U4="SelectValue",q4=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:i,children:o,placeholder:l="",...c}=e,d=Fo(U4,n),{onValueNodeHasChildrenChange:h}=d,p=o!==void 0,f=Ft(t,d.onValueNodeChange);return Vn(()=>{h(p)},[h,p]),r.jsx(St.span,{...c,ref:f,style:{pointerEvents:"none"},children:l3(d.value)?r.jsx(r.Fragment,{children:l}):o})});q4.displayName=U4;var cQ="SelectIcon",V4=E.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,...i}=e;return r.jsx(St.span,{"aria-hidden":!0,...i,ref:t,children:s||"▼"})});V4.displayName=cQ;var uQ="SelectPortal",$4=e=>r.jsx(lw,{asChild:!0,...e});$4.displayName=uQ;var qa="SelectContent",z4=E.forwardRef((e,t)=>{const n=Fo(qa,e.__scopeSelect),[s,i]=E.useState();if(Vn(()=>{i(new DocumentFragment)},[]),!n.open){const o=s;return o?Ga.createPortal(r.jsx(H4,{scope:e.__scopeSelect,children:r.jsx(Lm.Slot,{scope:e.__scopeSelect,children:r.jsx("div",{children:e.children})})}),o):null}return r.jsx(W4,{...e,ref:t})});z4.displayName=qa;var cs=10,[H4,Bo]=bc(qa),dQ="SelectContentImpl",fQ=KJ("SelectContent.RemoveScroll"),W4=E.forwardRef((e,t)=>{const{__scopeSelect:n,position:s="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:l,side:c,sideOffset:d,align:h,alignOffset:p,arrowPadding:f,collisionBoundary:m,collisionPadding:g,sticky:j,hideWhenDetached:b,avoidCollisions:x,...v}=e,N=Fo(qa,n),[S,w]=E.useState(null),[k,O]=E.useState(null),C=Ft(t,G=>w(G)),[A,B]=E.useState(null),[I,L]=E.useState(null),D=Mm(n),[R,U]=E.useState(!1),$=E.useRef(!1);E.useEffect(()=>{if(S)return GP(S)},[S]),FP();const Y=E.useCallback(G=>{const[te,...re]=D().map(be=>be.ref.current),[ue]=re.slice(-1),ye=document.activeElement;for(const be of G)if(be===ye||(be==null||be.scrollIntoView({block:"nearest"}),be===te&&k&&(k.scrollTop=0),be===ue&&k&&(k.scrollTop=k.scrollHeight),be==null||be.focus(),document.activeElement!==ye))return},[D,k]),K=E.useCallback(()=>Y([A,S]),[Y,A,S]);E.useEffect(()=>{R&&K()},[R,K]);const{onOpenChange:Q,triggerPointerDownPosRef:q}=N;E.useEffect(()=>{if(S){let G={x:0,y:0};const te=ue=>{var ye,be;G={x:Math.abs(Math.round(ue.pageX)-(((ye=q.current)==null?void 0:ye.x)??0)),y:Math.abs(Math.round(ue.pageY)-(((be=q.current)==null?void 0:be.y)??0))}},re=ue=>{G.x<=10&&G.y<=10?ue.preventDefault():S.contains(ue.target)||Q(!1),document.removeEventListener("pointermove",te),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",te),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",te),document.removeEventListener("pointerup",re,{capture:!0})}}},[S,Q,q]),E.useEffect(()=>{const G=()=>Q(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[Q]);const[F,P]=c3(G=>{const te=D().filter(ye=>!ye.disabled),re=te.find(ye=>ye.ref.current===document.activeElement),ue=u3(te,G,re);ue&&setTimeout(()=>ue.ref.current.focus())}),V=E.useCallback((G,te,re)=>{const ue=!$.current&&!re;(N.value!==void 0&&N.value===te||ue)&&(B(G),ue&&($.current=!0))},[N.value]),W=E.useCallback(()=>S==null?void 0:S.focus(),[S]),Z=E.useCallback((G,te,re)=>{const ue=!$.current&&!re;(N.value!==void 0&&N.value===te||ue)&&L(G)},[N.value]),X=s==="popper"?Tb:G4,H=X===Tb?{side:c,sideOffset:d,align:h,alignOffset:p,arrowPadding:f,collisionBoundary:m,collisionPadding:g,sticky:j,hideWhenDetached:b,avoidCollisions:x}:{};return r.jsx(H4,{scope:n,content:S,viewport:k,onViewportChange:O,itemRefCallback:V,selectedItem:A,onItemLeave:W,itemTextRefCallback:Z,focusSelectedItem:K,selectedItemText:I,position:s,isPositioned:R,searchRef:F,children:r.jsx(cw,{as:fQ,allowPinchZoom:!0,children:r.jsx(aw,{asChild:!0,trapped:N.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:At(i,G=>{var te;(te=N.trigger)==null||te.focus({preventScroll:!0}),G.preventDefault()}),children:r.jsx(ow,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:r.jsx(X,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:G=>G.preventDefault(),...v,...H,onPlaced:()=>U(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:At(v.onKeyDown,G=>{const te=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!te&&G.key.length===1&&P(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let ue=D().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(G.key)&&(ue=ue.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const ye=G.target,be=ue.indexOf(ye);ue=ue.slice(be+1)}setTimeout(()=>Y(ue)),G.preventDefault()}})})})})})})});W4.displayName=dQ;var hQ="SelectItemAlignedPosition",G4=E.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:s,...i}=e,o=Fo(qa,n),l=Bo(qa,n),[c,d]=E.useState(null),[h,p]=E.useState(null),f=Ft(t,C=>p(C)),m=Mm(n),g=E.useRef(!1),j=E.useRef(!0),{viewport:b,selectedItem:x,selectedItemText:v,focusSelectedItem:N}=l,S=E.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&h&&b&&x&&v){const C=o.trigger.getBoundingClientRect(),A=h.getBoundingClientRect(),B=o.valueNode.getBoundingClientRect(),I=v.getBoundingClientRect();if(o.dir!=="rtl"){const ye=I.left-A.left,be=B.left-ye,Te=C.left-be,ie=C.width+Te,De=Math.max(ie,A.width),Ye=window.innerWidth-cs,He=dk(be,[cs,Math.max(cs,Ye-De)]);c.style.minWidth=ie+"px",c.style.left=He+"px"}else{const ye=A.right-I.right,be=window.innerWidth-B.right-ye,Te=window.innerWidth-C.right-be,ie=C.width+Te,De=Math.max(ie,A.width),Ye=window.innerWidth-cs,He=dk(be,[cs,Math.max(cs,Ye-De)]);c.style.minWidth=ie+"px",c.style.right=He+"px"}const L=m(),D=window.innerHeight-cs*2,R=b.scrollHeight,U=window.getComputedStyle(h),$=parseInt(U.borderTopWidth,10),Y=parseInt(U.paddingTop,10),K=parseInt(U.borderBottomWidth,10),Q=parseInt(U.paddingBottom,10),q=$+Y+R+Q+K,F=Math.min(x.offsetHeight*5,q),P=window.getComputedStyle(b),V=parseInt(P.paddingTop,10),W=parseInt(P.paddingBottom,10),Z=C.top+C.height/2-cs,X=D-Z,H=x.offsetHeight/2,G=x.offsetTop+H,te=$+Y+G,re=q-te;if(te<=Z){const ye=L.length>0&&x===L[L.length-1].ref.current;c.style.bottom="0px";const be=h.clientHeight-b.offsetTop-b.offsetHeight,Te=Math.max(X,H+(ye?W:0)+be+K),ie=te+Te;c.style.height=ie+"px"}else{const ye=L.length>0&&x===L[0].ref.current;c.style.top="0px";const Te=Math.max(Z,$+b.offsetTop+(ye?V:0)+H)+re;c.style.height=Te+"px",b.scrollTop=te-Z+b.offsetTop}c.style.margin=`${cs}px 0`,c.style.minHeight=F+"px",c.style.maxHeight=D+"px",s==null||s(),requestAnimationFrame(()=>g.current=!0)}},[m,o.trigger,o.valueNode,c,h,b,x,v,o.dir,s]);Vn(()=>S(),[S]);const[w,k]=E.useState();Vn(()=>{h&&k(window.getComputedStyle(h).zIndex)},[h]);const O=E.useCallback(C=>{C&&j.current===!0&&(S(),N==null||N(),j.current=!1)},[S,N]);return r.jsx(pQ,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:O,children:r.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:r.jsx(St.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});G4.displayName=hQ;var mQ="SelectPopperPosition",Tb=E.forwardRef((e,t)=>{const{__scopeSelect:n,align:s="start",collisionPadding:i=cs,...o}=e,l=Fm(n);return r.jsx(GJ,{...l,...o,ref:t,align:s,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Tb.displayName=mQ;var[pQ,Sw]=bc(qa,{}),Ab="SelectViewport",Y4=E.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:s,...i}=e,o=Bo(Ab,n),l=Sw(Ab,n),c=Ft(t,o.onViewportChange),d=E.useRef(0);return r.jsxs(r.Fragment,{children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),r.jsx(Lm.Slot,{scope:n,children:r.jsx(St.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:At(i.onScroll,h=>{const p=h.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:m}=l;if(m!=null&&m.current&&f){const g=Math.abs(d.current-p.scrollTop);if(g>0){const j=window.innerHeight-cs*2,b=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),v=Math.max(b,x);if(v<j){const N=v+g,S=Math.min(j,N),w=N-S;f.style.height=S+"px",f.style.bottom==="0px"&&(p.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}d.current=p.scrollTop})})})]})});Y4.displayName=Ab;var K4="SelectGroup",[gQ,yQ]=bc(K4),xQ=E.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,i=Ll();return r.jsx(gQ,{scope:n,id:i,children:r.jsx(St.div,{role:"group","aria-labelledby":i,...s,ref:t})})});xQ.displayName=K4;var J4="SelectLabel",Q4=E.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,i=yQ(J4,n);return r.jsx(St.div,{id:i.id,...s,ref:t})});Q4.displayName=J4;var tm="SelectItem",[vQ,X4]=bc(tm),Z4=E.forwardRef((e,t)=>{const{__scopeSelect:n,value:s,disabled:i=!1,textValue:o,...l}=e,c=Fo(tm,n),d=Bo(tm,n),h=c.value===s,[p,f]=E.useState(o??""),[m,g]=E.useState(!1),j=Ft(t,N=>{var S;return(S=d.itemRefCallback)==null?void 0:S.call(d,N,s,i)}),b=Ll(),x=E.useRef("touch"),v=()=>{i||(c.onValueChange(s),c.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return r.jsx(vQ,{scope:n,value:s,disabled:i,textId:b,isSelected:h,onItemTextChange:E.useCallback(N=>{f(S=>S||((N==null?void 0:N.textContent)??"").trim())},[]),children:r.jsx(Lm.ItemSlot,{scope:n,value:s,disabled:i,textValue:p,children:r.jsx(St.div,{role:"option","aria-labelledby":b,"data-highlighted":m?"":void 0,"aria-selected":h&&m,"data-state":h?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:j,onFocus:At(l.onFocus,()=>g(!0)),onBlur:At(l.onBlur,()=>g(!1)),onClick:At(l.onClick,()=>{x.current!=="mouse"&&v()}),onPointerUp:At(l.onPointerUp,()=>{x.current==="mouse"&&v()}),onPointerDown:At(l.onPointerDown,N=>{x.current=N.pointerType}),onPointerMove:At(l.onPointerMove,N=>{var S;x.current=N.pointerType,i?(S=d.onItemLeave)==null||S.call(d):x.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:At(l.onPointerLeave,N=>{var S;N.currentTarget===document.activeElement&&((S=d.onItemLeave)==null||S.call(d))}),onKeyDown:At(l.onKeyDown,N=>{var w;((w=d.searchRef)==null?void 0:w.current)!==""&&N.key===" "||(sQ.includes(N.key)&&v(),N.key===" "&&N.preventDefault())})})})})});Z4.displayName=tm;var Eu="SelectItemText",e3=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:i,...o}=e,l=Fo(Eu,n),c=Bo(Eu,n),d=X4(Eu,n),h=lQ(Eu,n),[p,f]=E.useState(null),m=Ft(t,v=>f(v),d.onItemTextChange,v=>{var N;return(N=c.itemTextRefCallback)==null?void 0:N.call(c,v,d.value,d.disabled)}),g=p==null?void 0:p.textContent,j=E.useMemo(()=>r.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=h;return Vn(()=>(b(j),()=>x(j)),[b,x,j]),r.jsxs(r.Fragment,{children:[r.jsx(St.span,{id:d.textId,...o,ref:m}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Ga.createPortal(o.children,l.valueNode):null]})});e3.displayName=Eu;var t3="SelectItemIndicator",n3=E.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return X4(t3,n).isSelected?r.jsx(St.span,{"aria-hidden":!0,...s,ref:t}):null});n3.displayName=t3;var Ob="SelectScrollUpButton",r3=E.forwardRef((e,t)=>{const n=Bo(Ob,e.__scopeSelect),s=Sw(Ob,e.__scopeSelect),[i,o]=E.useState(!1),l=Ft(t,s.onScrollButtonChange);return Vn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const h=d.scrollTop>0;o(h)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?r.jsx(i3,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});r3.displayName=Ob;var Rb="SelectScrollDownButton",s3=E.forwardRef((e,t)=>{const n=Bo(Rb,e.__scopeSelect),s=Sw(Rb,e.__scopeSelect),[i,o]=E.useState(!1),l=Ft(t,s.onScrollButtonChange);return Vn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const h=d.scrollHeight-d.clientHeight,p=Math.ceil(d.scrollTop)<h;o(p)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?r.jsx(i3,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});s3.displayName=Rb;var i3=E.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:s,...i}=e,o=Bo("SelectScrollButton",n),l=E.useRef(null),c=Mm(n),d=E.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return E.useEffect(()=>()=>d(),[d]),Vn(()=>{var p;const h=c().find(f=>f.ref.current===document.activeElement);(p=h==null?void 0:h.ref.current)==null||p.scrollIntoView({block:"nearest"})},[c]),r.jsx(St.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:At(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(s,50))}),onPointerMove:At(i.onPointerMove,()=>{var h;(h=o.onItemLeave)==null||h.call(o),l.current===null&&(l.current=window.setInterval(s,50))}),onPointerLeave:At(i.onPointerLeave,()=>{d()})})}),bQ="SelectSeparator",o3=E.forwardRef((e,t)=>
693{const{__scopeSelect:n,...s}=e;return r.jsx(St.div,{"aria-hidden":!0,...s,ref:t})});o3.displayName=bQ;var Pb="SelectArrow",wQ=E.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,i=Fm(n),o=Fo(Pb,n),l=Bo(Pb,n);return o.open&&l.position==="popper"?r.jsx(YJ,{...i,...s,ref:t}):null});wQ.displayName=Pb;var jQ="SelectBubbleInput",a3=E.forwardRef(({__scopeSelect:e,value:t,...n},s)=>{const i=E.useRef(null),o=Ft(s,i),l=Nw(t);return E.useEffect(()=>{const c=i.current;if(!c)return;const d=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==t&&p){const f=new Event("change",{bubbles:!0});p.call(c,t),c.dispatchEvent(f)}},[l,t]),r.jsx(St.select,{...n,style:{...L4,...n.style},ref:o,defaultValue:t})});a3.displayName=jQ;function l3(e){return e===""||e===void 0}function c3(e){const t=Ma(e),n=E.useRef(""),s=E.useRef(0),i=E.useCallback(l=>{const c=n.current+l;t(c),(function d(h){n.current=h,window.clearTimeout(s.current),h!==""&&(s.current=window.setTimeout(()=>d(""),1e3))})(c)},[t]),o=E.useCallback(()=>{n.current="",window.clearTimeout(s.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(s.current),[]),[n,i,o]}function u3(e,t,n){const i=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=NQ(e,Math.max(o,0));i.length===1&&(l=l.filter(h=>h!==n));const d=l.find(h=>h.textValue.toLowerCase().startsWith(i.toLowerCase()));return d!==n?d:void 0}function NQ(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var SQ=M4,d3=B4,_Q=q4,kQ=V4,EQ=$4,f3=z4,CQ=Y4,h3=Q4,m3=Z4,TQ=e3,AQ=n3,p3=r3,g3=s3,y3=o3;const wr=SQ,jr=_Q,ur=E.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(d3,{ref:s,className:ut("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,r.jsx(kQ,{asChild:!0,children:r.jsx(Ca,{className:"h-4 w-4 opacity-50"})})]}));ur.displayName=d3.displayName;const x3=E.forwardRef(({className:e,...t},n)=>r.jsx(p3,{ref:n,className:ut("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(zT,{className:"h-4 w-4"})}));x3.displayName=p3.displayName;const v3=E.forwardRef(({className:e,...t},n)=>r.jsx(g3,{ref:n,className:ut("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(Ca,{className:"h-4 w-4"})}));v3.displayName=g3.displayName;const dr=E.forwardRef(({className:e,children:t,position:n="popper",...s},i)=>r.jsx(EQ,{children:r.jsxs(f3,{ref:i,className:ut("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...s,children:[r.jsx(x3,{}),r.jsx(CQ,{className:ut("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),r.jsx(v3,{})]})}));dr.displayName=f3.displayName;const OQ=E.forwardRef(({className:e,...t},n)=>r.jsx(h3,{ref:n,className:ut("px-2 py-1.5 text-sm font-semibold",e),...t}));OQ.displayName=h3.displayName;const it=E.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(m3,{ref:s,className:ut("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[r.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(AQ,{children:r.jsx(Ea,{className:"h-4 w-4"})})}),r.jsx(TQ,{children:t})]}));it.displayName=m3.displayName;const RQ=E.forwardRef(({className:e,...t},n)=>r.jsx(y3,{ref:n,className:ut("-mx-1 my-1 h-px bg-muted",e),...t}));RQ.displayName=y3.displayName;function Sk(){const[e,t]=E.useState(5),[n,s]=E.useState(!1),[i,o]=E.useState("client"),{register:l,handleSubmit:c,setValue:d,watch:h,formState:{errors:p}}=Mo({defaultValues:{type:"client"}}),f=Ws({mutationFn:m=>ge.entities.Testimonial.create({...m,rating:e,status:"pending",full_name:`${m.first_name} ${m.last_name}`}),onSuccess:()=>{window.scrollTo({top:0,behavior:"smooth"}),s(!0)}});return n?r.jsx("div",{children:r.jsx(Nn,{title:"Thank You!",subtitle:"Your testimonial has been received and will be reviewed before publishing."})}):r.jsxs("div",{children:[r.jsx(Nn,{title:"Share Your Experience",subtitle:"We'd love to hear from you. Whether you're a client or a candidate, your feedback helps us grow and helps others know what to expect."}),r.jsx("section",{className:"max-w-2xl mx-auto px-6 py-16",children:r.jsxs("form",{onSubmit:c(m=>f.mutate(m)),className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsx(Se,{placeholder:"First Name *",...l("first_name",{required:!0}),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Last Name *",...l("last_name",{required:!0}),className:"bg-muted border-border"})]}),r.jsx(Se,{type:"email",placeholder:"Email *",...l("email",{required:!0}),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Phone",...l("phone"),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Company",...l("company"),className:"bg-muted border-border"}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("label",{className:"text-sm font-semibold",children:"I am a *"}),r.jsxs(wr,{value:i,onValueChange:m=>{d("type",m),o(m)},children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"Select an option"})}),r.jsxs(dr,{children:[r.jsx(it,{value:"client",children:"Client (Employer)"}),r.jsx(it,{value:"candidate",children:"Candidate (Job Seeker)"})]})]})]}),i==="client"?r.jsxs(r.Fragment,{children:[r.jsx(Se,{placeholder:"Recruiter Name (optional)",...l("recruiter_name"),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Job Title Filled (optional)",...l("job_title"),className:"bg-muted border-border"}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("label",{className:"text-sm font-semibold",children:"How satisfied were you with the overall service? *"}),r.jsxs(wr,{onValueChange:m=>d("satisfaction_rating",m),children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"Select rating"})}),r.jsxs(dr,{children:[r.jsx(it,{value:"5",children:"Excellent"}),r.jsx(it,{value:"4",children:"Very Good"}),r.jsx(it,{value:"3",children:"Good"}),r.jsx(it,{value:"2",children:"Fair"}),r.jsx(it,{value:"1",children:"Poor"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("label",{className:"text-sm font-semibold",children:"How would you rate their communication? *"}),r.jsxs(wr,{onValueChange:m=>d("communication_rating",m),children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"Select rating"})}),r.jsxs(dr,{children:[r.jsx(it,{value:"5",children:"Excellent"}),r.jsx(it,{value:"4",children:"Very Good"}),r.jsx(it,{value:"3",children:"Good"}),r.jsx(it,{value:"2",children:"Fair"}),r.jsx(it,{value:"1",children:"Poor"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("label",{className:"text-sm font-semibold",children:"Did they understand your hiring needs? *"}),r.jsxs(wr,{onValueChange:m=>d("understanding_rating",m),children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"Select rating"})}),r.jsxs(dr,{children:[r.jsx(it,{value:"5",children:"Excellent"}),r.jsx(it,{value:"4",children:"Very Good"}),r.jsx(it,{value:"3",children:"Good"}),r.jsx(it,{value:"2",children:"Fair"}),r.jsx(it,{value:"1",children:"Poor"})]})]})]}),r.jsx(Yt,{placeholder:"What aspects of our service were most helpful? (
693optional)",rows:3,...l("helpful_aspects"),className:"bg-muted border-border"}),r.jsx(Yt,{placeholder:"What areas could we improve? (optional)",rows:3,...l("improvement_areas"),className:"bg-muted border-border"})]}):r.jsxs(r.Fragment,{children:[r.jsx(Se,{placeholder:"Recruiter Name (optional)",...l("recruiter_name"),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Job Title Applied For (optional)",...l("job_title"),className:"bg-muted border-border"}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("label",{className:"text-sm font-semibold",children:"How satisfied were you with the overall service? *"}),r.jsxs(wr,{onValueChange:m=>d("satisfaction_rating",m),children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"Select rating"})}),r.jsxs(dr,{children:[r.jsx(it,{value:"5",children:"Excellent"}),r.jsx(it,{value:"4",children:"Very Good"}),r.jsx(it,{value:"3",children:"Good"}),r.jsx(it,{value:"2",children:"Fair"}),r.jsx(it,{value:"1",children:"Poor"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("label",{className:"text-sm font-semibold",children:"How would you rate their communication? *"}),r.jsxs(wr,{onValueChange:m=>d("communication_rating",m),children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"Select rating"})}),r.jsxs(dr,{children:[r.jsx(it,{value:"5",children:"Excellent"}),r.jsx(it,{value:"4",children:"Very Good"}),r.jsx(it,{value:"3",children:"Good"}),r.jsx(it,{value:"2",children:"Fair"}),r.jsx(it,{value:"1",children:"Poor"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("label",{className:"text-sm font-semibold",children:"How likely are you to recommend us to others? *"}),r.jsxs(wr,{onValueChange:m=>d("recommend",m),children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"Select option"})}),r.jsxs(dr,{children:[r.jsx(it,{value:"yes",children:"Very Likely"}),r.jsx(it,{value:"maybe",children:"Somewhat Likely"}),r.jsx(it,{value:"no",children:"Not Likely"})]})]})]}),r.jsx(Yt,{placeholder:"What aspects of our service were most helpful? (optional)",rows:3,...l("helpful_aspects"),className:"bg-muted border-border"}),r.jsx(Yt,{placeholder:"What areas could we improve? (optional)",rows:3,...l("improvement_areas"),className:"bg-muted border-border"})]}),r.jsx(Yt,{placeholder:"Your Testimonial / Comments *",rows:5,...l("testimonial_text",{required:!0}),className:"bg-muted border-border"}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Overall Rating *"}),r.jsx("div",{className:"flex gap-1",children:[1,2,3,4,5].map(m=>r.jsx("button",{type:"button",onClick:()=>t(m),children:r.jsx(qu,{className:`w-6 h-6 ${m<=e?"fill-primary text-primary":"text-muted-foreground"}`})},m))})]}),r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx("input",{type:"checkbox",id:"agree",...l("agree",{required:!0}),className:"mt-1 accent-amber-500"}),r.jsxs("label",{htmlFor:"agree",className:"text-xs text-muted-foreground leading-snug",children:["I agree to the ",r.jsx(Me,{to:"/terms-and-conditions",className:"underline hover:text-primary",children:"Terms & Conditions"})," and ",r.jsx(Me,{to:"/privacy-policy",className:"underline hover:text-primary",children:"Privacy Policy"})," *"]})]}),p.agree&&r.jsx("p",{className:"text-red-500 text-xs -mt-2",children:"You must agree before submitting."}),r.jsx("div",{className:"flex justify-center pt-4",children:r.jsx(xe,{type:"submit",className:"bg-primary text-primary-foreground font-bold uppercase px-12",disabled:f.isPending,children:f.isPending?"Submitting...":"Submit"})})]})})]})}function _k(){return r.jsxs("div",{children:[r.jsx(Nn,{title:"SMS Privacy Policy"}),r.jsxs("section",{className:"max-w-3xl mx-auto px-6 py-16 text-muted-foreground leading-relaxed space-y-4",children:[r.jsx("p",{children:"Lean Synergy Solutions is committed to protecting your privacy. By opting in to receive SMS messages from us, you agree to the following terms:"}),r.jsxs("p",{children:[r.jsx("strong",{className:"text-foreground",children:"Message Frequency:"})," Message frequency may vary depending on your interactions with our team."]}),r.jsxs("p",{children:[r.jsx("strong",{className:"text-foreground",children:"Opt-Out:"})," You may opt out at any time by replying STOP to any message. After opting out, you will receive a confirmation message and no further messages will be sent."]}),r.jsxs("p",{children:[r.jsx("strong",{className:"text-foreground",children:"Help:"})," For help, reply HELP or contact us at info@leansynergysolutions.
693com or 509-464-9878."]}),r.jsxs("p",{children:[r.jsx("strong",{className:"text-foreground",children:"Data Usage:"})," Your phone number and message history will not be sold or shared with third parties for marketing purposes."]}),r.jsxs("p",{children:[r.jsx("strong",{className:"text-foreground",children:"Carrier Disclaimer:"})," Message and data rates may apply. Carriers are not liable for delayed or undelivered messages."]}),r.jsx("p",{children:"This policy applies to SMS communications from Lean Synergy Solutions LLC, 12402 N Division St PMB# 347, Spokane, WA 99218."})]})]})}function kk(){const[e,t]=E.useState(null),[n,s]=E.useState(!0);return E.useEffect(()=>{ge.entities.SiteDocument.list().then(i=>{if(i&&i.length>0){const o=i.find(l=>l.key&&l.key.toLowerCase().includes("capability_statement"));t(o||i[0])}}).finally(()=>s(!1))},[]),r.jsxs("div",{children:[r.jsx(Nn,{title:"Capability Statement",subtitle:"Workforce & Employment Solutions | Operations"}),r.jsx("section",{className:"py-16 px-6",style:{background:"linear-gradient(135deg, #25395a 0%, #1a2b42 100%)"},children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("div",{className:"w-20 h-20 rounded-full mx-auto mb-6 flex items-center justify-center",style:{backgroundColor:"rgba(254,167,29,0.15)"},children:r.jsx(Kr,{className:"w-10 h-10",style:{color:"#fea71d"}})}),r.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-white mb-4",children:"Lean Synergy Solutions Capability Statement"}),r.jsx("p",{className:"text-base md:text-lg max-w-2xl mx-auto mb-8",style:{color:"#ababab"},children:"A comprehensive overview of our SDVOSB certifications, core capabilities, industries served, and partnership models for federal agencies and prime contractors."}),n?r.jsx("div",{className:"w-8 h-8 border-4 border-amber-400 border-t-transparent rounded-full animate-spin mx-auto"}):e?r.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[r.jsxs("a",{href:e.file_url,target:"_blank",rel:"noopener noreferrer",download:!0,className:"inline-flex items-center gap-2 px-10 py-4 rounded font-bold uppercase tracking-wider text-sm shadow-lg transition-all hover:shadow-xl",style:{backgroundColor:"#fea71d",color:"#25395a"},children:[r.jsx(Yr,{className:"w-5 h-5"})," Download PDF"]}),r.jsx("a",{href:e.file_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-8 py-4 rounded font-semibold uppercase tracking-wider text-sm transition-all border-2",style:{borderColor:"rgba(255,255,255,0.3)",color:"#fff"},children:"View in Browser →"})]}):r.jsxs("div",{className:"flex flex-col items-center gap-4",children:[r.jsx("p",{style:{color:"#ababab"},children:"Our Capability Statement is available upon request."}),r.jsx(xe,{asChild:!0,children:r.jsx("a",{href:"/lets-talk",children:"Contact Us"})})]})]})}),r.jsx("section",{className:"py-16 px-6 bg-white",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h3",{className:"text-2xl font-bold text-center text-[#0B1F33] mb-12",children:"What's Inside"}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[{icon:Si,title:"SDVOSB Certified",desc:"Service-Disabled Veteran-Owned Small Business designation and certifications."},{icon:Gr,title:"Core Capabilities",desc:"Full-cycle recruitment, workforce solutions, and talent acquisition services."},{icon:wn,title:"Industries Served",desc:"Defense, aerospace, manufacturing, IT, healthcare, and federal sectors."},{icon:E5,title:"Partnership Models",desc:"Flexible contracting models for federal agencies and prime contractors."}].map((i,o)=>r.jsxs("div",{className:"text-center p-6 rounded-xl border border-gray-100 shadow-sm hover:shadow-md transition-shadow",children:[r.jsx("div",{className:"w-12 h-12 rounded-full mx-auto mb-4 flex items-center justify-center",style:{backgroundColor:"rgba(254,167,29,0.12)"},children:r.jsx(i.icon,{className:"w-6 h-6",style:{color:"#fea71d"}})}),r.jsx("h4",{className:"font-bold text-[#0B1F33] mb-2",children:i.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:i.desc})]},o))})]})}),r.jsx("section",{className:"py-16 px-6 bg-gray-50",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[r.jsx("h3",{className:"text-2xl font-bold text-[#0B1F33] mb-4",children:"Ready to Partner With Us?"}),r.jsx("p",{className:"text-muted-foreground mb-8",children:"Download our capability statement or reach out to discu
693ss how we can support your mission."}),r.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e&&r.jsxs("a",{href:e.file_url,target:"_blank",rel:"noopener noreferrer",download:!0,className:"inline-flex items-center gap-2 px-8 py-3 rounded font-bold uppercase text-sm transition-all",style:{backgroundColor:"#fea71d",color:"#25395a"},children:[r.jsx(Yr,{className:"w-4 h-4"})," Download Capability Statement"]}),r.jsx("a",{href:"/lets-talk",className:"inline-flex items-center gap-2 px-8 py-3 rounded font-bold uppercase text-sm border-2 transition-all",style:{borderColor:"#25395a",color:"#25395a"},children:"Contact Us"})]})]})})]})}const PQ=[{icon:Gr,title:"Permanent Placement",desc:"Direct-hire recruiting for critical, hard-to-fill and leadership roles."},{icon:WT,title:"Contract Staffing & Temp-to-Hire",desc:"Flexible workforce capacity for changing demand, projects and try-before-hire needs."},{icon:wn,title:"RPO / Embedded Recruiting",desc:"Dedicated recruiting capability embedded into your hiring operation."},{icon:AM,title:"Workforce Solutions",desc:"Structured talent support for mobilizations, site ramps, surge hiring and defined workforce projects."},{icon:QT,title:"Talent Advisory",desc:"Practical workforce insight, recruiting strategy and talent-market expertise delivered as a defined service."}],DQ=[{icon:Si,title:"Federal & Defense",desc:"Federal agencies, defense contractors and mission-support environments."},{icon:Oa,title:"Critical Infrastructure",desc:"Energy, utilities, data centers, water, power generation and mission-critical facilities."},{icon:Hb,title:"Manufacturing",desc:"Advanced manufacturing, industrial automation, engineering, maintenance, quality and skilled trades."},{icon:pd,title:"Healthcare Infrastructure",desc:"The non-clinical technical and operational workforce behind healthcare — facilities, technology, imaging, coding, revenue cycle and support operations."},{icon:za,title:"Veteran & Military-Affiliated Talent Solutions",desc:"Leadership-ready veteran and military-affiliated talent for mission-critical roles — sourced from the military-connected community first, then extended to anyone who meets the standard."}],IQ=[{icon:Vu,title:"Mission-First",desc:"We recruit for environments where the work matters."},{icon:YT,title:"Operational Depth",desc:"We learn the language, pressure and realities of the client environment."},{icon:za,title:"Military-Connected Roots",desc:"We go to the military-connected community first, then extend opportunity to anyone who meets the standard."},{icon:tA,title:"Built to Flex",desc:"One partner across direct hire, staffing, embedded recruiting and broader workforce needs."}];function Ek(){return r.jsxs("div",{children:[r.jsx(Nn,{title:"Solutions",subtitle:"Workforce Solutions Built Around the Mission"}),r.jsxs("section",{className:"max-w-4xl mx-auto px-6 py-16 text-center",children:[r.jsx(et,{children:r.jsx("h2",{className:"text-2xl md:text-3xl font-extrabold text-[#0B1F33] mb-6",children:"One workforce partner. Five ways to solve the problem."})}),r.jsx(et,{delay:.1,children:r.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg",children:"Lean Synergy Solutions helps organizations find, deploy and strengthen the talent that keeps critical operations moving. We specialize where workforce shortages have real operational consequences — combining market knowledge, disciplined recruiting and flexible delivery models."})})]}),r.jsx("section",{className:"bg-card py-16 px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx(on,{className:"text-center mb-3",children:r.jsx("h2",{className:"text-2xl md:text-3xl font-bold",children:"5 Service Lines"})}),r.jsx(et,{delay:.05,children:r.jsx("p",{className:"text-center text-muted-foreground mb-10",children:"How clients engage LSS"})}),r.jsx(hr,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:PQ.map(e=>r.jsx(mr,{children:r.jsxs("div",{className:"bg-background rounded-lg border border-border p-6 h-full flex flex-col hover:border-primary/50 hover:shadow-lg transition-all",children:[r.jsx("div",{className:"w-11 h-11 rounded-md bg-primary/10 flex items-center justify-center mb-4",children:r.jsx(e.icon,{className:"w-6 h-6 text-primary"})}),r.jsx("h3",{className:"font-bold text-lg mb-2",children:e.title}),r.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})}
693,e.title))})]})}),r.jsx("section",{className:"py-16 px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx(on,{className:"text-center mb-3",children:r.jsx("h2",{className:"text-2xl md:text-3xl font-bold",children:"4 Market Verticals"})}),r.jsx(et,{delay:.05,children:r.jsx("p",{className:"text-center text-muted-foreground mb-10",children:"Where we build depth and credibility"})}),r.jsx(hr,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:DQ.map(e=>r.jsx(mr,{children:r.jsxs("div",{className:"bg-card rounded-lg border border-border p-6 h-full flex flex-col hover:border-primary/50 hover:shadow-lg transition-all",children:[r.jsx("div",{className:"w-11 h-11 rounded-md bg-primary/10 flex items-center justify-center mb-4",children:r.jsx(e.icon,{className:"w-6 h-6 text-primary"})}),r.jsx("h3",{className:"font-bold text-lg mb-2",children:e.title}),r.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})},e.title))})]})}),r.jsx("section",{className:"bg-[#0B1F33] py-14 px-6 text-center",children:r.jsxs(et,{children:[r.jsx("h2",{className:"text-2xl md:text-3xl font-extrabold text-white mb-4",children:"One Client. One Front Door."}),r.jsx("p",{className:"text-white/85 max-w-2xl mx-auto leading-relaxed",children:"Your need determines the solution. LSS brings the right service line, delivery capability and market expertise to the table."})]})}),r.jsx("section",{className:"py-14 px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[r.jsx(on,{children:r.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Flexible Fee Structures"})}),r.jsx(et,{delay:.1,children:r.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg",children:"From mission-driven nonprofits to organizations with ongoing hiring volume, LSS can structure pricing around hiring volume, service model and business need — creating a partnership that fits the organization, not a one-size-fits-all fee."})})]})}),r.jsx("section",{className:"bg-card py-16 px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx(on,{className:"text-center mb-10",children:r.jsx("h2",{className:"text-2xl md:text-3xl font-bold",children:"Why Lean Synergy Solutions"})}),r.jsx(hr,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:IQ.map(e=>r.jsx(mr,{children:r.jsxs("div",{className:"bg-background rounded-lg border border-border p-6 h-full flex flex-col",children:[r.jsx("div",{className:"w-11 h-11 rounded-md bg-primary/10 flex items-center justify-center mb-4",children:r.jsx(e.icon,{className:"w-6 h-6 text-primary"})}),r.jsx("h3",{className:"font-bold text-lg mb-2",children:e.title}),r.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})},e.title))})]})}),r.jsxs("section",{className:"bg-primary py-14 px-6 text-center",children:[r.jsx(on,{children:r.jsx("h2",{className:"text-2xl md:text-3xl font-extrabold text-primary-foreground",children:"Tell us the workforce problem. We'll help determine the right path."})}),r.jsx(et,{delay:.2,children:r.jsx(Me,{to:"/lets-talk",className:"inline-block mt-6 bg-primary-foreground text-primary px-8 py-3 rounded font-bold uppercase text-sm hover:opacity-90 transition-opacity",children:"Let's Talk — Schedule A Call"})})]})]})}function Ck(){const[e,t]=E.useState(!1),{register:n,handleSubmit:s,formState:{errors:i}}=Mo(),o=Ws({mutationFn:async l=>{const c=`${l.first_name} ${l.last_name}`;await ge.entities.ContactSubmission.create({full_name:c,email:l.email,phone:l.phone,company:l.company,message:l.message,form_type:"lets-talk"});try{await ge.integrations.Core.SendEmail({to:"[email protected]",subject:`New Let's Talk Submission from ${c}`,body:`Name: ${c}
694Email: ${l.email}
695Phone: ${l.phone}
696Company: ${l.company}
697How Heard: ${l.how_heard||"N/A"}
698Message: ${l.message||"N/A"}`})}catch(d){console.error("Email notification failed:",d)}},onSuccess:()=>{window.scrollTo({top:0,behavior:"smooth"}),t(!0)},onError:()=>{alert("There was an issue submitting your form. Please try again or email us directly at info@leansynergysolutions.
698com.")}});return e?r.jsxs("div",{className:"max-w-2xl mx-auto px-6 py-24 text-center",children:[r.jsx("h2",{className:"text-3xl font-extrabold text-foreground mb-3",children:"Thank You!"}),r.jsx("p",{className:"text-muted-foreground text-lg",children:"Someone from the Lean Synergy Solutions Team will be in touch with you shortly."})]}):r.jsx("div",{children:r.jsx("section",{className:"max-w-6xl mx-auto px-6 py-16",children:r.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-start",children:[r.jsxs("div",{className:"bg-[#F5F5F5] rounded-xl shadow-md p-8",children:[r.jsxs("div",{className:"mb-6",children:[r.jsx("h1",{className:"text-2xl font-extrabold text-foreground mb-3",children:"Businesses Hiring: Start Here"}),r.jsxs("p",{className:"text-sm text-gray-600 leading-relaxed",children:["This form is only for businesses looking to engage Lean Synergy Solutions for consulting or workforce improvement services. If you are seeking employment opportunities,"," ",r.jsx("a",{href:"/jobs",target:"_blank",rel:"noopener noreferrer",className:"font-semibold underline",style:{color:"#f5a015"},children:"click here to view open positions"}),". If you're interested in partnership opportunities,"," ",r.jsx(Me,{to:"/partner-with-us",className:"font-semibold underline",style:{color:"#f5a015"},children:"click here to partner with us"}),"."]})]}),r.jsxs("form",{onSubmit:s(l=>o.mutate(l)),className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(Se,{placeholder:"First Name *",...n("first_name",{required:!0}),className:"bg-white border-gray-300"}),i.first_name&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{children:[r.jsx(Se,{placeholder:"Last Name *",...n("last_name",{required:!0}),className:"bg-white border-gray-300"}),i.last_name&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]})]}),r.jsxs("div",{children:[r.jsx(Se,{placeholder:"Phone Number *",...n("phone",{required:!0}),className:"bg-white border-gray-300"}),i.phone&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{children:[r.jsx(Se,{type:"email",placeholder:"Email Address *",...n("email",{required:!0}),className:"bg-white border-gray-300"}),i.email&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{children:[r.jsx(Se,{placeholder:"Company Name *",...n("company",{required:!0}),className:"bg-white border-gray-300"}),i.company&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsx("div",{children:r.jsxs("select",{...n("how_heard"),className:"w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm text-gray-700 focus:outline-none focus:ring-2 focus:ring-amber-400",children:[r.jsx("option",{value:"",children:"How Did You Hear About Us?"}),r.jsx("option",{value:"Google Search",children:"Google Search"}),r.jsx("option",{value:"Referral",children:"Referral"}),r.jsx("option",{value:"LinkedIn",children:"LinkedIn"}),r.jsx("option",{value:"Social Media",children:"Social Media"}),r.jsx("option",{value:"Event/Conference",children:"Event / Conference"}),r.jsx("option",{value:"Other",children:"Other"})]})}),r.jsxs("div",{children:[r.jsx(Yt,{placeholder:"Message / How Can We Help You? *",rows:4,...n("message",{required:!0}),className:"bg-white border-gray-300"}),i.message&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx("input",{type:"checkbox",id:"agree",...n("agree",{required:!0}),className:"mt-1 accent-amber-500"}),r.jsxs("label",{htmlFor:"agree",className:"text-xs text-gray-600 leading-snug",children:["I agree to the ",r.jsx(Me,{to:"/terms-and-conditions",className:"underline hover:text-amber-500",children:"Terms & Conditions"})," and ",r.jsx(Me,{to:"/privacy-policy",className:"underline hover:text-amber-500",children:"Privacy Policy"})," *"]})]}),i.agree&&r.jsx("p",{className:"text-red-500 text-xs -mt-2",children:"You must agree before submitting."}),r.jsx("div",{className:"flex justify-center",children:r.jsx(xe,{type:"submit",className:"bg-primary text-primary-foreground font-bold uppercase tracking-wide px-12",disabled:o.isPending,children:o.isPending?"Sending...":"Submit"})})]})]}),r.jsx("div",{className:"hidden md:block rounded-xl overflow-hidden shadow-lg h-full min-h-[400px]",children:r.jsx("img",{src:$W,alt:"Business casual professional meeting",className:"w-full h-full object-cover"})})]})})})}const LQ=[{title:"For Resumes",items:[{label:"Best Military Resume",desc:"Tools and guidance for translating military experience into strong civilian resumes.",href:"https://bestmilitaryresume.com/"}]},{title:"Podcasts",items:[{label:"Lessons Learned Podcast",desc:"Sharing insights from veterans and leaders.",href:"https://podcasts.apple.com/us/podcast/lessons-learned-for-vets/id1538834566"},{label:"Vet S.O.S",desc:"Stories and strategies for navigating post-service life.",href:"https://vetsospodcast.com/"},{label:"Veteran Trash Talk",desc:"Honest conversations about challenges and successes in the veteran community.",href:"https://veterantrashtalk.com/"}]},{title:"Training & Certifications",items:[{label:"Lean Alaska",desc:"Lean Six Sigma training programs.",href:"https://www.leanalaska.com/"},{label:"Vets2PM",desc:"Project management training tailored for veterans.",href:"https://vets2pm.com/"},{label:"Sigma Forces",desc:"Leadership and process improvement certifications.",href:"https://www.sigmaforces.com/"},{label:"SEI-Greenfeet Enterprises",desc:"Business training and certification opportunities.",href:"https://sei-nh.com/"},{label:"Boots2Books",desc:"Career development programs bridging military service and professional growth.",href:"https://boots2books.com/"},{label:"Act Now Education",desc:"Free training, certifications, and career advancement support.",href:"https://actnoweducation.org/"}]},{title:"Veteran Franchise Opportunities",items:[{label:"Veteran Service Brands",desc:"Veteran Exclusive Franchise Opportunities.",href:"https://www.veteranservicebrands.com/lp/four-brands-one-mission-lean-synergy-solutions/"}]},{title:"Mentorship",items:[{label:"7 Eagle Group",desc:"Connecting veterans with career and business mentors.",href:"https://7eagle.com/"},{label:"MilMentor",desc:"A structured mentorship platform supporting veterans' personal and professional goals.",href:"https://www.milmentor.com/"}]}];function Tk(){return r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"fixed inset-0 z-0 overflow-hidden pointer-events-none",children:r.jsx("video",{autoPlay:!0,muted:!0,loop:!0,playsInl
698ine:!0,className:"absolute inset-0 w-full h-full object-cover",style:{opacity:.5},children:r.jsx("source",{src:qW,type:"video/mp4"})})}),r.jsxs("div",{className:"relative z-10",children:[r.jsx(Nn,{title:"Veteran Resources"}),r.jsxs("section",{className:"max-w-3xl mx-auto px-6 py-12",children:[r.jsx("p",{className:"text-muted-foreground leading-relaxed mb-10 bg-background/70 rounded-lg p-4",children:"These resources are designed to help veterans successfully transition into civilian careers, develop new skills, and connect with mentors and peers. Explore resume tools, podcasts, training programs, certifications, and mentorship opportunities to support your professional growth."}),r.jsx("div",{className:"space-y-10",children:LQ.map(e=>r.jsxs("div",{className:"bg-background/70 rounded-lg p-5",children:[r.jsx("h3",{className:"text-lg font-bold text-foreground border-b border-border pb-2 mb-4",children:e.title}),r.jsx("ul",{className:"space-y-3",children:e.items.map(t=>r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("span",{className:"mt-1 w-2 h-2 rounded-full bg-primary flex-shrink-0"}),r.jsxs("span",{children:[r.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"font-bold text-[#0B1F33] hover:underline",children:t.label})," ","– ",r.jsx("span",{className:"text-muted-foreground",children:t.desc})]})]},t.label))})]},e.title))}),r.jsx("div",{className:"text-center mt-12",children:r.jsx(Me,{to:"/jobs",className:"bg-primary text-primary-foreground px-8 py-3 rounded font-bold uppercase text-sm hover:opacity-90 transition-opacity",children:"Search Open Jobs"})})]})]})]})}function Ak(){const[e,t]=E.useState([]),[n,s]=E.useState(!0);return E.useEffect(()=>{(async()=>{try{const o=await ge.entities.BlogPost.list("-date",200);t((o||[]).filter(l=>l.status!=="draft"))}catch(o){console.error("Failed to load blog posts:",o)}finally{s(!1)}})()},[]),r.jsxs("div",{children:[r.jsx(Nn,{title:"Blog"}),r.jsx("section",{className:"max-w-5xl mx-auto px-6 py-16",children:n?r.jsxs("div",{className:"text-center py-12",children:[r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading posts..."})]}):e.length===0?r.jsxs("div",{className:"text-center py-12",children:[r.jsx(Po,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"No blog posts yet."})]}):r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map(i=>r.jsxs("div",{className:"bg-card border border-border rounded-lg overflow-hidden hover:border-primary/50 transition-colors",children:[r.jsx("div",{className:"h-48 bg-muted overflow-hidden",children:i.photo?r.jsx("img",{src:i.photo,alt:i.title,className:"w-full h-full object-contain"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center text-4xl",children:"📝"})}),r.jsxs("div",{className:"p-5",children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:i.date?new Date(i.date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):""}),r.jsx("h3",{className:"font-bold mb-1 leading-snug",children:i.title}),i.author&&r.jsxs("p",{className:"text-xs text-muted-foreground mb-2",children:["By ",i.author]}),r.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:i.excerpt}),i.tags&&i.tags.length>0&&r.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:i.tags.map(o=>r.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full bg-muted text-muted-foreground",children:o},o))}),r.jsx(Me,{to:`/blog/${i.slug}`,className:"text-primary text-sm font-semibold hover:underline",children:"Read More →"})]})]},i.slug))})})]})}function Ok(){var l;const{slug:e}=xm(),[t,n]=E.useState(null),[s,i]=E.useState(!0);if(E.useEffect(()=>{(async()=>{try{const h=(await ge.entities.BlogPost.list("-date",200)||[]).find(p=>p.slug===e&&p.status!=="draft");n(h||null)}catch(d){console.error("Failed to load post:",d)}finally{i(!1)}})()},[e]),s)return r.jsxs("div",{className:"py-20 text-center",children:[r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent roun
698ded-full animate-spin mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading..."})]});if(!t)return r.jsxs("div",{className:"py-20 text-center",children:[r.jsx("h1",{className:"text-2xl font-bold",children:"Post not found"}),r.jsx(Me,{to:"/blog",className:"text-primary mt-4 inline-block hover:underline",children:"← Back to Blog"})]});const o={"@context":"https://schema.org","@type":"BlogPosting",headline:t.title,datePublished:t.date,author:{"@type":"Person",name:t.author||"Lean Synergy Solutions"},publisher:{"@type":"Organization",name:"Lean Synergy Solutions"}};return r.jsxs("div",{className:"max-w-3xl mx-auto px-6 py-16",children:[r.jsx(w0,{title:t.meta_title||t.title,description:t.meta_description||t.excerpt||((l=t.content)==null?void 0:l.substring(0,160)),image:t.photo,path:`/blog/${e}`,jsonLd:o}),r.jsxs(Me,{to:"/blog",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary mb-8",children:[r.jsx(oc,{className:"w-4 h-4"})," Back to Blog"]}),r.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:t.date?new Date(t.date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):""}),r.jsx("h1",{className:"text-3xl md:text-4xl font-extrabold mb-2",children:t.title}),t.author&&r.jsxs("p",{className:"text-sm text-muted-foreground mb-6",children:["By ",t.author]}),t.photo&&r.jsx("img",{src:t.photo,alt:t.title,className:`w-full rounded-lg mb-8 ${t.slug==="lean-synergy-solutions-announces-seattle-seahawks-small-business-partnership"?"h-auto":"h-72 object-contain"}`}),r.jsx("div",{className:"text-foreground leading-relaxed [&_a]:text-primary [&_a]:underline [&_p]:mb-4 [&_h1]:text-2xl [&_h1]:font-bold [&_h1]:mt-6 [&_h2]:text-xl [&_h2]:font-bold [&_h2]:mt-6 [&_h3]:text-lg [&_h3]:font-semibold [&_h3]:mt-4 [&_ul]:list-disc [&_ul]:ml-6 [&_ol]:list-decimal [&_ol]:ml-6 [&_li]:mb-1",style:{whiteSpace:"pre-wrap"},dangerouslySetInnerHTML:{__html:t.content}}),t.tags&&t.tags.length>0&&r.jsx("div",{className:"flex flex-wrap gap-2 mt-8 mb-4",children:t.tags.map(c=>r.jsx("span",{className:"text-xs px-2 py-1 rounded-full bg-muted text-muted-foreground",children:c},c))}),(()=>{const c=t.cta_search_jobs_enabled!==!1,d=t.cta_schedule_call_enabled===!0;if(!c&&!d)return null;const h=t.cta_search_jobs_link||"/jobs",p=t.cta_schedule_call_link||"/lets-talk",f=m=>/^https?:\/\//i.test(m);return r.jsxs("div",{className:"mt-12 border-t border-border pt-8 flex flex-wrap gap-4 justify-center text-center",children:[c&&(f(h)?r.jsx("a",{href:h,target:"_blank",rel:"noopener noreferrer",className:"bg-primary text-primary-foreground px-8 py-3 rounded font-bold uppercase text-sm hover:opacity-90 transition-opacity",children:"Search Open Jobs"}):r.jsx(Me,{to:h,className:"bg-primary text-primary-foreground px-8 py-3 rounded font-bold uppercase text-sm hover:opacity-90 transition-opacity",children:"Search Open Jobs"})),d&&(f(p)?r.jsx("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"border border-primary text-primary px-8 py-3 rounded font-bold uppercase text-sm hover:bg-primary/10 transition-colors",children:"Schedule a Call"}):r.jsx(Me,{to:p,className:"border border-primary text-primary px-8 py-3 rounded font-bold uppercase text-sm hover:bg-primary/10 transition-colors",children:"Schedule a Call"}))]})})()]})}function Rk(){return r.jsxs("div",{children:[r.jsx(Nn,{title:"Resources"}),r.jsx("section",{className:"max-w-4xl mx-auto px-6 py-16",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[r.jsxs("div",{className:"bg-card border border-border rounded-lg p-8 text-center hover:border-primary/50 transition-colors",children:[r.jsx(Si,{className:"w-12 h-12 text-primary mx-auto mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Veteran Resources"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Supporting veterans in career transition"}),r.jsx(Me,{to:"/veteran-resources",className:"bg-primary text-primary-foreground px-6 py-2.5 rounded font-bold uppercase text-sm hover:opacity-90 transition-opacity",children:"Explore"})]}),r.jsxs("div",{className:"bg-card border border-border rounded-lg p-8 text-center hover:border-primary/50 transition-colors",children:[r.jsx(VT,{className:"w-12 h-12 text-primary mx-auto mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Blog"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Insights on recruiting, hiring, and workforce trends"}),r.jsx(Me,{to:"/blog",className:"bg-primary text-primary-foreground px-6 py-2.5 rounded font-bold uppercase text-sm hover:opacity-90 transition-opacity",children:"Read More"})]})]})})]})}function MQ(e,t=2e3){if(e==null)return"";const n=String(e).replace(/[\r\n\t]/g," ").replace(/[^\x20-\x7E]/g,"").trim();return t?n.slice(0,t):n}function Pk(){const[e,t]=E.useState(!1),[n,s]=E.useState(""),[i,o]=E.useState(!1),{register:l,handleSubmit:c,setValue:d,watch:h,formState:{errors:p}}=Mo(),f=h("assistance"),[m,g]=E.useState(!1),j=async x=>{var N;const v=(N=x.target.files)==null?void 0:N[0];if(v){o(!0);try{const{file_uri:S}
698=await ge.integrations.Core.UploadPrivateFile({file:v});s(S)}catch{alert("Failed to upload resume. Please try again.")}finally{o(!1)}}},b=Ws({mutationFn:async x=>{if((x.assistance==="seeking-employment"||x.assistance==="veteran-seeking-employment")&&!n){alert("Please upload your resume so we can help you find employment.");return}await ge.entities.ContactSubmission.create({...x,form_type:"contact",user_type:x.assistance,full_name:`${x.first_name} ${x.last_name}`,resume_url:n||void 0});const v=N=>MQ(N);try{await ge.integrations.Core.SendEmail({to:"[email protected]",subject:`New Contact Form Submission from ${v(x.first_name)} ${v(x.last_name)}`,body:`Name: ${v(x.first_name)} ${v(x.last_name)}
699Email: ${v(x.email)}
700Phone: ${v(x.phone)||"N/A"}
701Company: ${v(x.company)||"N/A"}
702How Can We Assist: ${v(x.assistance)}${n?`
703Resume: ${n}`:""}`})}catch(N){console.error("Email notification failed:",N)}},onSuccess:()=>{window.scrollTo({top:0,behavior:"smooth"}),t(!0)},onError:()=>{alert("There was an issue submitting your form. Please try again or email us directly at [email protected].")}});return e?r.jsx("div",{children:r.jsx(Nn,{title:"Message Sent!",subtitle:"Thank you for reaching out. Someone from the Lean Synergy Solutions Team will be in touch with you shortly."})}):r.jsxs("div",{children:[r.jsx(Nn,{title:"Get In Touch"}),r.jsxs("section",{className:"max-w-6xl mx-auto px-6 py-16",children:[r.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-start",children:[r.jsx("div",{className:"hidden md:block rounded-xl overflow-hidden shadow-lg h-full min-h-[500px]",children:r.jsx("img",{src:ew,alt:"Get in touch with Lean Synergy Solutions",className:"w-full h-full object-cover"})}),r.jsxs("form",{onSubmit:c(x=>b.mutate(x)),className:"space-y-4","aria-label":"Contact form",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsx(Se,{placeholder:"First Name *",...l("first_name",{required:!0}),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Last Name *",...l("last_name",{required:!0}),className:"bg-muted border-border"})]}),r.jsx(Se,{type:"email",placeholder:"Email *",...l("email",{required:!0}),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Phone",...l("phone"),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Company",...l("company"),className:"bg-muted border-border"}),r.jsx("input",{type:"hidden",...l("assistance",{required:!0})}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("label",{className:"text-sm font-semibold",children:"How Can We Assist You *"}),r.jsxs(wr,{onValueChange:x=>{d("assistance",x),(x==="seeking-employment"||x==="veteran-seeking-employment")&&g(!0)},value:f,children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"Select an option"})}),r.jsxs(dr,{children:[r.jsx(it,{value:"veteran-seeking-employment",children:"I am a Veteran Seeking Employment"}),r.jsx(it,{value:"company-hiring",children:"My Company Is interested in hiring talent"}),r.jsx(it,{value:"seeking-employment",children:"Seeking Employment"}),r.jsx(it,{value:"govcon",children:"GovCon"}),r.jsx(it,{value:"sewp-vi",children:"NASA SEWP VI"}),r.jsx(it,{value:"other",children:"Other"})]})]})]}),(f==="seeking-employment"||f==="veteran-seeking-employment")&&r.jsxs("div",{className:"space-y-2",children:[r.jsx("label",{className:"text-sm font-semibold",children:"Upload Resume *"}),r.jsx("input",{type:"file",accept:".pdf,.doc,.docx",onChange:j,disabled:i,className:"block w-full text-sm text-muted-foreground file:mr-3 file:py-2 file:px-4 file:rounded-md file:border-0 file:bg-primary file:text-primary-foreground file:font-semibold file:cursor-pointer"}),i&&r.jsx("p",{className:"text-xs text-muted-foreground",children:"Uploading resume..."}),n&&!i&&r.jsx("p",{className:"text-xs text-green-600 font-medium",children:"Resume uploaded ✓"})]}),r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx("input",{type:"checkbox",id:"agree",...l("agree",{required:!0}),className:"mt-1 accent-amber-500"}),r.jsxs("label",{htmlFor:"agree",className:"text-xs text-muted-foreground leading-snug",children:["I agree to the ",r.jsx(Me,{to:"/terms-and-conditions",className:"underline hover:text-primary",children:"Terms & Conditions"})," and ",r.jsx(Me,{to:"/privacy-policy",className:"underline hover:text-primary",children:"Privacy Policy"})," *"]})]}),p.agree&&r.jsx("p",{className:"text-red-500 text-xs -mt-2",children:"You must agree before submitting."}),r.jsx("div",{className:"flex justify-center",children:r.jsx(xe,{type:"submit",className:"bg-primary text-primary-foreground font-bold uppercase tracking-wide px-12",disabled:b.isPending,children:b.isPending?"Sending...":"Send Message"})})]})]}),r.jsx(ki,{open:m,onOpenChange:g,children:r.jsxs(Ys,{className:"sm:max-w-md",children:[r.jsxs(Ks,{children:[r.jsx(Js,{className:"text-2xl font-bold text-[#0B1F33]",children:"Join The LSS Talent Network"}),r.jsx(hw,{className:"text-base text-muted-foreground",children:"As a job seeker, joining our Talent Network keeps you connected with future opportunities, matches you with relevant roles, and puts you in front of our recruiting team. It only takes a few minutes."})]}),r.jsxs("div",{className:"flex flex-col gap-3 mt-6",children:[r.jsx(Me,{to:"/lss-talent-network",onClick:()=>g(!1),className:"bg-primary text-primary-foreground font-bold uppercase tracking-wide px-6 py-3 rounded text-center text-sm hover:opacity-90 transition-opacity",children:"Join The LSS Talent Network"}),r.jsx(xe,{type:"button",variant:"outline",onClick:()=>g(!1),className:"font-semibold",children:"Maybe Later — Continue to Contact Form"})]})]})})]})]})}function Dk(){return E.useEffect(()=>{window.location.replace("https://jobs.crelate.com/portal/leansynergysolutions/")},[]),r.jsx("div",{className:"min-h-screen flex items-center justify-center",children:r.jsx("p",{className:"text-muted-foreground",children:"Redirecting to job listings..."})})}function b3({register:e,watch:t,setValue:n,errors:s}){return r.jsxs("div",{className:"border-t border-border pt-4 space-y-4",children:[r.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Additional Questions"}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted-foreground mb-1",children:"Are you at least 18 years of age or older? *"}),r.jsx("input",{type:"hidden",...e("is_18_or_older",{required:!0})}),r.jsxs(wr,{value:t("is_18_or_older"),onValueChange:i=>n("is_18_or_older",i),children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"Select..."})}),r.jsxs(dr,{children:[r.jsx(it,{value:"Yes",children:"Yes"}),r.jsx(it,{value:"No",children:"No"})]})]}),s.is_18_or_older&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"This field is required"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted-foreground mb-1",children:"Do you now or in the future will you require visa sponsorship? *"}),r.jsx("input",{type:"hidden",...e("requires_visa_sponsorship",{required:!0})}),r.jsxs(wr,{value:t("requires_visa_sponsorship"),onValueChange:i=>n("requires_visa_sponsorship",i),children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"Select..."})}),r.jsxs(dr,{children:[r.jsx(it,{value:"Yes",children:"Yes"}),r.jsx(it,{value:"No",children:"No"})]})]}),s.requires_visa_sponsorship&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"This field is required"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted-foreground mb-1",children:"When are you available to start working? *"}),r.jsx(Se,{placeholder:"e.g., Immediately, 2 weeks notice",...e("available_start_date",{required:!0}),className:"bg-muted border-border"}),s.available_start_date&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"This field is required"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted-foreground mb-1",children:"What is your preferred method of contact? *"}),r.jsx("input",{type:"hidden",...e("preferred_contact_method",{required:!0})}),r.jsxs(wr,{value:t("preferred_contact_method"),onValueChange:i=>n("preferred_contact_method",i),children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"Select..."})}),r.jsxs(dr,{children:[r.jsx(it,{value:"Email",children:"Email"}),r.jsx(it,{value:"Phone",children:"Phone"}),r.jsx(it,{value:"Text",children:"Text"})]})]}),s.preferred_contact_method&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"This field is required"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted-foreground mb-1",children:"When is the best time to contact you? *"}),r.jsx(Se,{placeholder:"e.g., Mornings, Afternoons, Weekdays after 3pm",...e("best_contact_time",{required:!0}),className:"bg-muted border-border"}),s.best_contact_time&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"This field is required"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted-foreground mb-1",children:"Where did you hear about this role? *"}),r.jsx("input",{type:"hidden",...e("how_heard",{required:!0})}),r.jsxs(wr,{value:t("how_heard"),onValueChange:i=>n("how_heard",i),children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"Select..."})}),r.jsxs(dr,{children:[r.jsx(it,{value:"LinkedIn",children:"LinkedIn"}),r.jsx(it,{value:"Referral",children:"Referral"}),r.jsx(it,{value:"Job Board",children:"Job Board"}),r.jsx(it,{value:"Google",children:"Google"}),r.jsx(it,{value:"Recruiter",children:"Recruiter"}),r.jsx(it,{value:"Other",children:"Other"})]})]}),s.how_heard&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"This field is required"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted-foreground mb-1",children:"If you were referred by someone to this role, please specify here."}),r.jsx(Se,{placeholder:"Referrer's name",...e("referral_details"),className:"bg-muted border-border"})]}),r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx("input",{type:"checkbox",id:"sms_consent",...e("sms_consent"),className:"mt-1 accent-amber-500"}),r.jsx("label",{htmlFor:"sms_consent",className:"text-xs text-muted-foreground leading-snug",children:"By checking this box, I consent to receive text messages from Lean Synergy Solutions regarding my application status, interview scheduling, and future career opportunities. I understand that message and data rates may apply, and message frequency may vary. I can opt-out at any time by replying 'STOP'."})]})]})}function Ik(){var B;const e=new URLSearchParams(window.location.search),t=e.get("ref")||sessionStorage.getItem("lss_ref")||"",n=e.get("job")||"",s=e.get("job_number")||"",[i,o]=E.useState(!1),[l,c]=E.useState(""),[d,h]=E.useState(!1),[p,f]=E.useState(""),[m,g]=E.useState(!1),j=t&&((B=Xl.find(I=>I.slug===t))==null?void 0:B.name)||"",[b,x]=E.useState(j),{register:v,handleSubmit:N,setValue:S,watch:w,formState:{errors:k}}=Mo({defaultValues:{job_title:n?n.replace(/-/g," "):"",job_number:s||"",agree:!1}}),O=Xl.filter(I=>I.title.includes("Recruiting")||I.title.includes("Recruiter")),C=async I=>{var R;const L=(R=I.target.files)==null?void 0:R[0];if(!L)return;h(!0);const{file_uri:D}
703=await ge.integrations.Core.UploadPrivateFile({file:L});f(D),h(!1)},A=Ws({mutationFn:async I=>{var U,$;const L=I.job_number||s;if(L&&(U=(await ge.functions.invoke("checkDuplicateApplication",{email:I.email,job_number:L})).data)!=null&&U.is_duplicate)throw g(!0),new Error("DUPLICATE");g(!1);const D=(($=O.find(Y=>Y.name===b))==null?void 0:$.slug)||"",R={...I,resume_url:p,referred_by:t||D||"direct",recruiter:b||"N/A",job_number:s||void 0};await ge.entities.Application.create(R)},onSuccess:()=>{window.scrollTo({top:0,behavior:"smooth"}),o(!0)}});return i?r.jsx("div",{children:r.jsx(Nn,{title:`Thank you, ${l}!`,subtitle:b?`Your application has been received. ${b} from the Lean Synergy Solutions Team will be in touch with you shortly.`:"Your application has been received. Someone from the Lean Synergy Solutions Team will be in touch with you shortly."})}):r.jsxs("div",{children:[r.jsx(Nn,{title:"Apply Now",subtitle:"Take the next step in your career. Fill out the form below and a recruiter will be in touch."}),r.jsxs("section",{className:"max-w-xl mx-auto px-6 py-16",children:[m&&r.jsxs("div",{className:"bg-amber-50 border border-amber-300 text-amber-800 rounded-lg p-4 text-sm",children:[r.jsx("p",{className:"font-semibold",children:"You've already applied for this job recently."}),r.jsx("p",{className:"mt-1",children:"Our records show you submitted an application for this position within the past week. A recruiter will be in touch with you soon. If you need to update your information, please reach out to us directly."})]}),r.jsxs("form",{onSubmit:N(I=>{c(I.first_name),A.mutate(I)}),className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsx(Se,{placeholder:"First Name *",...v("first_name",{required:!0}),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Last Name *",...v("last_name",{required:!0}),className:"bg-muted border-border"})]}),r.jsx(Se,{type:"email",placeholder:"Email *",...v("email",{required:!0}),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Phone *",...v("phone",{required:!0}),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Job Title Applying For *",...v("job_title",{required:!0}),className:"bg-muted border-border"}),s&&r.jsxs("div",{className:"bg-muted border border-border rounded px-3 py-2 text-sm",children:[r.jsx("span",{className:"text-muted-foreground",children:"Job Number:"})," ",r.jsx("span",{className:"font-semibold",children:s})]}),O.length>0&&r.jsx("div",{children:r.jsxs(wr,{value:b,onValueChange:x,children:[r.jsx(ur,{className:"bg-muted border-border",children:r.jsx(jr,{placeholder:"If you are working with a recruiter, which one?"})}),r.jsxs(dr,{children:[r.jsx(it,{value:null,children:"None / Not sure"}),O.map(I=>r.jsx(it,{value:I.name,children:I.name},I.name))]})]})}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted-foreground mb-1",children:"Resume Upload *"}),r.jsx("input",{type:"file",accept:".pdf,.doc,.docx",onChange:C,className:"text-sm text-muted-foreground"}),d&&r.jsx("p",{className:"text-xs text-primary mt-1",children:"Uploading..."}),p&&r.jsx("p",{className:"text-xs text-green-400 mt-1",children:"Resume uploaded ✓"})]}),r.jsx(Yt,{placeholder:"Brief Message / Cover Note (optional)",rows:3,...v("message"),className:"bg-muted border-border"}),r.jsx(b3,{register:v,watch:w,setValue:S,errors:k}),r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx("input",{type:"checkbox",id:"agree",...v("agree",{required:!0}),className:"mt-1 accent-amber-500"}),r.jsxs("label",{htmlFor:"agree",className:"text-xs text-muted-foreground leading-snug",children:["I agree to the ",r.jsx(Me,{to:"/terms-and-conditions",className:"underline hover:text-primary",children:"Terms & Conditions"})," and ",r.jsx(Me,{to:"/privacy-policy",className:"underline hover:text-primary",children:"Privacy Policy"})," *"]})]}),k.agree&&r.jsx("p",{className:"text-red-500 text-xs -mt-2",children:"You must agree before submitting."}),r.jsx(xe,{type:"submit",className:"w-full bg-primary text-primary-foreground font-bold uppercase",disabled:A.isPending||d||!p,children:A.isPending?"Submitting...":"Submit Application"})]})]})]})}function Lk(){const{recruiterSlug:e}
703=xm(),[t]=M8(),n=Xl.find(O=>O.slug===e),[s,i]=E.useState(!1),[o,l]=E.useState(""),[c,d]=E.useState(!1),[h,p]=E.useState(""),[f,m]=E.useState(!1),g=t.get("job")||"",j=t.get("job_number")||"",{register:b,handleSubmit:x,setValue:v,watch:N,formState:{errors:S}}=Mo({defaultValues:{job_title:g,job_number:j,agree:!1,recruiter:(n==null?void 0:n.name)||"",how_heard:"Recruiter"}});E.useEffect(()=>{},[g,j]);const w=async O=>{var B;const C=(B=O.target.files)==null?void 0:B[0];if(!C)return;d(!0);const{file_uri:A}=await ge.integrations.Core.UploadPrivateFile({file:C});p(A),d(!1)},k=Ws({mutationFn:async O=>{var B;const C=O.job_number||j;if(C&&(B=(await ge.functions.invoke("checkDuplicateApplication",{email:O.email,job_number:C})).data)!=null&&B.is_duplicate)throw m(!0),new Error("DUPLICATE");m(!1);const A={...O,resume_url:h,referred_by:e,recruiter:n==null?void 0:n.name};await ge.entities.Application.create(A)},onSuccess:()=>{window.scrollTo({top:0,behavior:"smooth"}),i(!0)}});return n?s?r.jsx("div",{children:r.jsx(Nn,{title:`Thank you, ${o}!`,subtitle:`Your application has been received. ${n.name} will be in touch with you shortly.`})}):r.jsxs("div",{children:[r.jsx(Nn,{title:`Connect with ${n.name.split(" ")[0]}`,subtitle:`Connect directly with ${n.name}. Submit the application below, and ${n.name.split(" ")[0]} will personally reach out to discuss your experience, answer your questions, and serve as your dedicated recruiter throughout the hiring process.`}),r.jsxs("section",{className:"max-w-xl mx-auto px-6 py-16",children:[r.jsxs(Me,{to:"/meet-our-team",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary mb-6",children:[r.jsx(oc,{className:"w-4 h-4"})," Back to Team"]}),r.jsx("div",{className:"bg-card border border-border rounded-lg p-6 mb-6",children:r.jsxs("div",{className:"flex items-center gap-4",children:[n.photo?r.jsx("img",{src:n.photo,alt:n.name,className:"w-16 h-16 rounded-full object-cover"}):r.jsx("div",{className:"w-16 h-16 rounded-full bg-muted flex items-center justify-center text-xl font-bold text-muted-foreground",children:n.initials}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-semibold text-foreground",children:n.name}),r.jsx("p",{className:"text-sm text-muted-foreground",children:n.title})]})]})}),f&&r.jsxs("div",{className:"bg-amber-50 border border-amber-300 text-amber-800 rounded-lg p-4 text-sm mb-4",children:[r.jsx("p",{className:"font-semibold",children:"You've already applied for this job recently."}),r.jsx("p",{className:"mt-1",children:"Our records show you submitted an application for this position within the past week. A recruiter will be in touch with you soon. If you need to update your information, please reach out to us directly."})]}),r.jsxs("form",{onSubmit:x(O=>{l(O.first_name),k.mutate(O)}),className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsx(Se,{placeholder:"First Name *",...b("first_name",{required:!0}),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Last Name *",...b("last_name",{required:!0}),className:"bg-muted border-border"})]}),r.jsx(Se,{type:"email",placeholder:"Email *",...b("email",{required:!0}),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Phone *",...b("phone",{required:!0}),className:"bg-muted border-border"}),r.jsx(Se,{placeholder:"Job Title Applying For *",...b("job_title",{required:!0}),readOnly:!!g,className:`bg-muted border-border ${g?"opacity-70 cursor-not-allowed bg-muted/60":""}`}),r.jsx(Se,{placeholder:"Job Number",...b("job_number"),readOnly:!!j,className:`bg-muted border-border ${j?"opacity-70 cursor-not-allowed bg-muted/60":""}`}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted-foreground mb-1",children:"Recruiter:"}),r.jsx(Se,{value:n.name,disabled:!0,className:"bg-muted border-border opacity-70 cursor-not-allowed"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm text-muted-foreground mb-1",children:"Resume Upload *"}),r.jsx("input",{type:"file",accept:".pdf,.doc,.docx",onChange:w,className:"text-sm text-muted-foreground"}),c&&r.jsx("p",{className:"text-xs text-primary mt-1",children:"Uploading..."}),h&&r.jsx("p",{className:"text-xs text-green-400 mt-1",children:"Resume uploaded ✓"})]}),r.jsx(Yt,{placeholder:"Brief Message / Cover Note (optional)",rows:3,...b("message"),className:"bg-muted border-border"}),r.jsx(b3,{register:b,watch:N,setValue:v,errors:S}),r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx("input",{type:"checkbox",id:"agree",...b("agree",{required:!0}),className:"mt-1 accent-amber-500"}),r.jsxs("label",{htmlFor:"agree",className:"text-xs text-muted-foreground leading-snug",children:["I agree to the ",r.jsx(Me,{to:"/terms-and-conditions",className:"underline hover:text-primary",children:"Terms & Conditions"})," and ",r.jsx(Me,{to:"/privacy-policy",className:"underline hover:text-primary",children:"Privacy Policy"})," *"]})]}),S.agree&&r.jsx("p",{className:"text-red-500 text-xs -mt-2",children:"You must agree before submitting."}),r.jsx(xe,{type:"submit",className:"w-full bg-primary text-primary-foreground font-bold uppercase",disabled:k.isPending||c||!h,children:k.isPending?"Submitting...":"Submit Application"})]})]})]}):r.jsx(S8,{to:"/apply",replace:!0})}function br(e){return e==null?"":String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function ih(e){if(!e)return"N/A";const t=new Date(e);
703return isNaN(t.getTime())?br(e):t.toLocaleString()}function Nt(e,t){return`
704    <tr>
705      <td class="label">${br(e)}</td>
706      <td>${br(t??"N/A")}</td>
707    </tr>`}function ui(e,t){return`
708    <section>
709      <h2>${br(e)}</h2>
710      ${t}
711    </section>`}function FQ(e){if(!e)return;const t=e._type==="recruiter-partner",n=t?e.full_name:`${e.first_name||""} ${e.last_name||""}`.trim(),s=t?"Independent Recruiting Partner Application":e.job_title?"Candidate Application":"General Application";let i="";i+=ui("Applicant",`
712    <table class="kv">
713      ${Nt("Full Name",n)}
714      ${Nt("Email",e.email)}
715      ${Nt("Phone",e.phone)}
716      ${Nt("Application Type",s)}
717      ${Nt("Date Submitted",ih(e.created_date))}
718    </table>`),t?(i+=ui("Recruiting Profile",`
719      <table class="kv">
720        ${Nt("City & State",e.city_state)}
721        ${Nt("LinkedIn Profile",e.linkedin_url)}
722        ${Nt("Recruiting Experience Level",e.experience_level)}
723        ${Nt("Recruiting Background",e.recruiting_background)}
724        ${Nt("Industries Recruited In",(e.industries||[]).join(", "))}
725        ${Nt("Comfortable with 1099 Commission-Only",e.comfortable_1099)}
726        ${Nt("Understands Not Employee Position",e.understands_no_benefits)}
727        ${Nt("Has Computer / Internet / Phone",e.has_equipment)}
728        ${Nt("Willing to Start with Free Tools",e.willing_free_tools)}
729      </table>`),e.recruiting_experience_description&&(i+=ui("Recruiting Experience Description",`<p>${br(e.recruiting_experience_description)}</p>`)),e.why_interested&&(i+=ui("Why Interested in Joining",`<p>${br(e.why_interested)}</p>`)),e.resume_url&&(i+=ui("Resume",`<p class="resume-link">Resume on file. Link: ${br(e.resume_url)}</p>`))):(i+=ui("Application Details",`
730      <table class="kv">
731        ${Nt("Job Title",e.job_title)}
732        ${Nt("Job Number",e.job_number)}
733        ${Nt("How They Heard About Us",e.how_heard)}
734        ${Nt("Recruiter",e.recruiter)}
735        ${Nt("Referred By",e.referred_by)}
736        ${Nt("18 or Older",e.is_18_or_older)}
737        ${Nt("Requires Visa Sponsorship",e.requires_visa_sponsorship)}
738        ${Nt("Available Start Date",e.available_start_date)}
739        ${Nt("Preferred Contact Method",e.preferred_contact_method)}
740        ${Nt("Best Time to Contact",e.best_contact_time)}
741        ${Nt("Referral Details",e.referral_details)}
742        ${Nt("SMS Consent",e.sms_consent?"Yes":"No")}
743      </table>`),e.message&&(i+=ui("Message from Applicant",`<p>${br(e.message)}</p>`)),e.resume_url&&(i+=ui("Resume",`<p class="resume-link">Resume on file. Link: ${br(e.resume_url)}</p>`)),i+=ui("Transmission & Access",`
744      <table class="kv">
745        ${Nt("Crelate Status",e.crelate_status)}
746        ${Nt("Crelate Sent At",ih(e.crelate_sent_at))}
747        ${Nt("Crelate Contact ID",e.crelate_contact_id)}
748        ${Nt("Resume Accessed By",e.resume_accessed_by)}
749        ${Nt("Resume Accessed At",ih(e.resume_accessed_at))}
750      </table>`));const o=`<!DOCTYPE html>
751<html lang="en">
752<head>
753  <meta charset="utf-8" />
754  <title>${br(n)} — ${br(s)}</title>
755  <style>
756    * { box-sizing: border-box; }
757    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: #1a1a1a; margin: 0; padding: 40px; line-height: 1.5; }
758    .doc-header { border-bottom: 3px solid #0B1F33; padding-bottom: 16px; margin-bottom: 24px; }
759    .doc-header .brand { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #0B1F33; margin: 0 0 4px; }
760    .doc-header h1 { font-size: 22px; margin: 0 0 4px; color: #0B1F33; }
761    .doc-header .meta { font-size: 12px; color: #666; margin: 0; }
762    section { margin-bottom: 24px; page-break-inside: avoid; }
763    h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #0B1F33; border-bottom: 1px solid #e2e8f0; padding-bottom: 6px; margin: 0 0 12px; }
764    table.kv { width: 100%; border-collapse: collapse; }
765    table.kv td { padding: 6px 10px; vertical-align: top; font-size: 13px; border-bottom: 1px solid #f1f5f9; }
766    table.kv td.label { width: 38%; font-weight: 600; color: #475569; background: #f8fafc; }
767    p { font-size: 13px; white-space: pre-wrap; margin: 0; }
768    .resume-link { word-break: break-all; color: #0B1F33; }
769    .footer { margin-top: 32px; padding-top: 12px; border-top: 1px solid #e2e8f0; font-size: 11px; color: #94a3b8; text-align: center; }
770    @media print { body { padding: 20px; } }
771  </style>
772</head>
773<body>
774  <div class="doc-header">
775    <p class="brand">Lean Synergy Solutions</p>
776    <h1>${br(s)}</h1>
777    <p class="meta">${br(n)} · Submitted ${ih(e.created_date)}</p>
778  </div>
779  ${i}
780  <div class="footer">Lean Synergy Solutions — Confidential Applicant Information</div>
781  <script>
782    window.onload = function () { window.print(); };
783  <\/script>
784</body>
785</html>`,l=window.open("","_blank","width=820,height=900");
785if(!l){alert("Please allow pop-ups to print the application.");return}l.document.open(),l.document.write(o),l.document.close()}function BQ(e){return e?!/^https?:\/\//i.test(e):!1}async function _w(e){if(!e)return;if(!BQ(e)){window.open(e,"_blank");return}const t=window.open("","_blank");try{const{signed_url:n}=await ge.integrations.Core.CreateFileSignedUrl({file_uri:e});t?t.location.href=n:window.location.href=n}catch(n){throw t&&t.close(),n}}function td({resumeUrl:e,size:t="sm",variant:n="outline",showLabel:s=!1,label:i="Résumé",title:o="View Résumé",icon:l=Yr,className:c="",...d}){const[h,p]=E.useState(!1),f=async m=>{var g;if((g=m==null?void 0:m.preventDefault)==null||g.call(m),!e){Ne.error("No resume attached");return}p(!0);try{await _w(e)}catch(j){Ne.error("Could not open résumé: "+(j.message||"Unknown error"))}finally{p(!1)}};return r.jsxs(xe,{size:t,variant:n,onClick:f,disabled:h||!e,title:o,className:c,...d,children:[h?r.jsx("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):r.jsx(l,{className:"w-4 h-4"}),s&&r.jsx("span",{className:"ml-2",children:i})]})}const UQ=hm("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Be({className:e,variant:t,...n}){return r.jsx("div",{className:ut(UQ({variant:t}),e),...n})}const w3=Xl.filter(e=>e.slug&&!["tux","zoe-montgomery","alexandra-montgomery"].includes(e.slug)),Mk=w3.reduce((e,t)=>(e[t.slug]=t.name,e),{});function qQ(){const[e,t]=E.useState([]),[n,s]=E.useState(!0),[i,o]=E.useState(null),[l,c]=E.useState(null),[d,h]=E.useState(null),[p,f]=E.useState(null),[m,g]=E.useState("");E.useEffect(()=>{j()},[]);async function j(){s(!0);try{const w=await ge.functions.invoke("getRecruiterJobs",{});t(w.data.jobs||[])}finally{s(!1)}}async function b(w){confirm(`Delete "${w.title}"? This cannot be undone.`)&&(c(w.id),await ge.entities.Job.delete(w.id),t(k=>k.filter(O=>O.id!==w.id)),c(null),Ne.success("Job deleted"))}function x(w){f(w.id),g(w.description||"")}async function v(w){o(w.id),await ge.entities.Job.update(w.id,{description:m}),t(k=>k.map(O=>O.id===w.id?{...O,description:m}:O)),f(null),g(""),o(null),Ne.success("Job description updated")}function N(){f(null),g("")}async function S(w,k){const O=w.assigned_recruiter_slugs||[],C=O.includes(k)?O.filter(A=>A!==k):[...O,k];o(w.id),await ge.entities.Job.update(w.id,{assigned_recruiter_slugs:C}),t(A=>A.map(B=>B.id===w.id?{...B,assigned_recruiter_slugs:C}:B)),o(null),Ne.success("Assignment updated")}return n?r.jsx("div",{className:"text-muted-foreground py-8 text-center",children:"Loading jobs..."}):e.length===0?r.jsx("div",{className:"text-muted-foreground py-8 text-center",children:"No active jobs found."}):r.jsx("div",{className:"space-y-4",children:e.map((w,k)=>{const O=w.assigned_recruiter_slugs||[];return r.jsxs("div",{className:"border border-border rounded-lg p-4 bg-card",children:[r.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[r.jsxs("div",{className:"flex-1",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsxs("span",{className:"text-sm font-bold text-primary min-w-[1.5rem]",children:[k+1,"."]}),r.jsx("h3",{className:"font-semibold text-foreground",children:w.title}),w.job_number&&r.jsxs("span",{className:"text-xs bg-muted px-2 py-1 rounded text-muted-foreground",children:["#",w.job_number]}),w.is_manual&&r.jsx("span",{className:"text-xs bg-amber-100 text-amber-700 px-2 py-1 rounded font-medium",children:"Manual"})]}),w.location&&r.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:w.location}),p===w.id?r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Description"}),r.jsx("textarea",{value:m,onChange:C=>g(C.target.value),className:"w-full min-h-[200px] p-3 text-sm bg-muted border-border rounded-lg resize-y",rows:10})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(xe,{size:"sm",onClick:()=>v(w),disabled:i===w.id,className:"gap-2",children:i===w.id?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"w-3 h-3 border-2 border-current border-t-transparent roun
785ded-full animate-spin"}),"Saving..."]}):r.jsx(r.Fragment,{children:"Save Changes"})}),r.jsx(xe,{size:"sm",variant:"outline",onClick:N,children:"Cancel"})]})]}):r.jsxs(r.Fragment,{children:[w.description&&r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-2",children:w.description.split(`
786`)[0]}),r.jsx("button",{onClick:()=>h(d===w.id?null:w.id),className:"text-xs text-primary flex items-center gap-1 hover:underline",children:d===w.id?r.jsxs(r.Fragment,{children:["Show less ",r.jsx(Ca,{className:"w-3 h-3"})]}):r.jsxs(r.Fragment,{children:["Show description ",r.jsx(Ca,{className:"w-3 h-3"})]})}),d===w.id&&r.jsx("div",{className:"mt-3 p-3 bg-muted rounded-lg max-h-64 overflow-y-auto",children:r.jsx("div",{className:"text-sm leading-relaxed space-y-2",children:w.description.split(`
787`).map((C,A)=>{const B=C.trim();return B===""?r.jsx("br",{},A):["job title","position summary","key responsibilities","required qualifications","location requirements","compensation","responsibilities","qualifications","requirements","benefits"].some(L=>B.toLowerCase().includes(L))?r.jsx("p",{className:"text-foreground uppercase tracking-wide text-xs mt-3 mb-1",children:B},A):B.startsWith("•")||B.startsWith("-")?r.jsx("p",{className:"ml-3 text-muted-foreground",children:B},A):r.jsx("p",{className:"text-muted-foreground",children:B},A)})})})]}),w.is_manual&&r.jsx("div",{className:"mt-3",children:r.jsx(xe,{size:"sm",variant:"outline",onClick:()=>x(w),className:"gap-2",children:"Edit Description"})})]})]}),r.jsxs("div",{className:"flex flex-wrap gap-2 items-center",children:[w.is_manual&&r.jsxs("button",{onClick:()=>b(w),disabled:l===w.id,className:"text-xs text-red-500 hover:text-red-700 border border-red-200 hover:border-red-400 rounded px-2 py-1 flex items-center gap-1 transition-colors",title:"Delete manual job",children:[r.jsx(ws,{className:"w-3 h-3"})," Delete"]}),O.length===0&&r.jsx("span",{className:"text-xs text-muted-foreground italic",children:"No recruiters assigned"}),O.map(C=>r.jsxs(Be,{variant:"secondary",className:"gap-1 pr-1",children:[Mk[C]||C,r.jsx("button",{onClick:()=>S(w,C),disabled:i===w.id,className:"ml-1 hover:text-destructive",children:r.jsx(Ar,{className:"w-3 h-3"})})]},C))]})]}),r.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:w3.filter(C=>!O.includes(C.slug)).map(C=>r.jsxs("button",{onClick:()=>S(w,C.slug),disabled:i===w.id,className:"text-xs text-muted-foreground border border-dashed border-border rounded px-2 py-1 hover:border-primary hover:text-primary transition-colors flex items-center gap-1",children:[r.jsx(xs,{className:"w-3 h-3"})," ",Mk[C.slug]]},C.slug))})]},w.id)})})}const VQ=["Monte","Alex","Seth","Michael","Rick","Misty","Eddie","Frank Hitchcock","James Shelton","Katherine Robertson"];function $Q(){const t=[["Recruiter Name","Job Numbers","Job Titles"],["Alex","25337|25340|25345","Manufacturing Engineer|Quality Technician|Welder"],["Eddie","25338|25341","Maintenance Technician|Electrical Engineer"],["Monte","25339","Quality Engineer"]].map(o=>o.map(l=>`"${l}"`).join(",")).join(`
788`),n=new Blob([t],{type:"text/csv"}),s=URL.createObjectURL(n),i=document.createElement("a");i.href=s,i.download="job_assignments_template.csv",i.click(),URL.revokeObjectURL(s)}function zQ(){var p,f,m;const[e,t]=E.useState(null),[n,s]=E.useState(null),[i,o]=E.useState(!1),[l,c]=E.useState(null),d=g=>{var b;const j=(b=g.target.files)==null?void 0:b[0];j&&(t(j),s(null),c(null))},h=async()=>{if(e){o(!0),c(null),s(null);try{const g=new FormData;g.append("file",e);const j=localStorage.getItem("base44_access_token"),b=await fetch("/api/functions/importJobAssignments",{method:"POST",headers:j?{Authorization:`Bearer ${j}`}:{},body:g,credentials:"include"}),x=await b.json();if(!b.ok)throw new Error(x.error||"Upload failed");s(x.results||x)}catch(g){c(g.message)}finally{o(!1)}}};return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"border border-border rounded-lg p-6 bg-card",children:[r.jsx("h3",{className:"font-semibold text-foreground text-lg mb-1",children:"Import Job Assignments from CSV"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-5",children:"Upload a CSV with one row per recruiter — their name, all active job numbers (pipe-separated), and job titles. The CSV is the source of truth: after import, each recruiter listed will be assigned exactly the jobs in their row, and any jobs not included for them will be removed."}),r.jsxs("div",{className:"bg-muted rounded-lg p-4 mb-5 text-sm",children:[r.jsx("p",{className:"font-semibold text-foreground mb-2",children:"Required CSV Format — one row per recruiter:"}),r.jsx("code",{className:"block text-xs bg-background border border-border rounded p-2 mb-3 font-mono whitespace-pre",children:`Recruiter Name, Job Numbers, Job Titles
789Alex, 25337|25340|25345, Manufacturing Engineer|Quality Tech|Welder
790Eddie, 25338|25341, Maintenance Technician|Electrical Engineer
791Monte, 25339, Quality Engineer`}),r.jsxs("ul",{className:"text-muted-foreground text-xs space-y-1 mb-2",children:[r.jsxs("li",{children:["• ",r.jsx("strong",{children:"Column 1:"})," Recruiter's name (see valid names below)"]}),r.jsxs("li",{children:["• ",r.jsx("strong",{children:"Column 2:"})," All active job numbers for that recruiter, separated by ",r.jsx("code",{children:"|"})]}),r.jsxs("li",{children:["• ",r.jsx("strong",{children:"Column 3:"})," Job titles in the same order (optional, for reference only)"]}
791)]}),r.jsx("p",{className:"text-muted-foreground mb-1",children:r.jsx("strong",{children:"Valid recruiter names:"})}),r.jsx("p",{className:"text-muted-foreground text-xs",children:VQ.join(", ")})]}),r.jsx("div",{className:"flex items-center gap-3 mb-4",children:r.jsxs(xe,{variant:"outline",size:"sm",onClick:$Q,className:"gap-2",children:[r.jsx(Yr,{className:"w-4 h-4"})," Download Template"]})}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Upload CSV File"}),r.jsx("input",{type:"file",accept:".csv",onChange:d,className:"block w-full text-sm text-muted-foreground file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-semibold file:bg-primary file:text-primary-foreground hover:file:bg-primary/90"}),e&&r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Selected: ",e.name]})]}),r.jsxs(xe,{onClick:h,disabled:!e||i,className:"w-full gap-2",children:[r.jsx(yd,{className:"w-4 h-4"}),i?"Importing...":"Import Assignments"]})]})]}),l&&r.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 flex items-center gap-2 text-red-700",children:[r.jsx(yo,{className:"w-5 h-5 flex-shrink-0"}),l]}),n&&r.jsxs("div",{className:"space-y-4",children:[((p=n.success)==null?void 0:p.length)>0&&r.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-lg p-4",children:[r.jsxs("div",{className:"flex items-center gap-2 text-green-700 font-semibold mb-2",children:[r.jsx(Ta,{className:"w-5 h-5"}),"Successfully Updated: ",n.success.length," jobs"]}),r.jsx("ul",{className:"text-sm text-green-600 space-y-1 max-h-40 overflow-y-auto",children:n.success.map((g,j)=>r.jsxs("li",{children:["Job #",g.jobNumber," — ",g.recruiters?`${g.recruiters} recruiter(s) assigned`:g.message]},j))})]}),((f=n.notFound)==null?void 0:f.length)>0&&r.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:[r.jsxs("div",{className:"flex items-center gap-2 text-yellow-700 font-semibold mb-2",children:[r.jsx(Po,{className:"w-5 h-5"}),"Jobs Not Found in Crelate: ",n.notFound.length]}),r.jsx("p",{className:"text-xs text-yellow-600 mb-2",children:"These job numbers were in your CSV but not found in the current job list. Sync jobs first, then re-import."}),r.jsx("ul",{className:"text-sm text-yellow-600 space-y-1 max-h-40 overflow-y-auto",children:n.notFound.map((g,j)=>r.jsxs("li",{children:["Job #",g.jobNumber]},j))})]}),((m=n.errors)==null?void 0:m.length)>0&&r.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4",children:[r.jsxs("div",{className:"flex items-center gap-2 text-red-700 font-semibold mb-2",children:[r.jsx(yo,{className:"w-5 h-5"}),"Errors: ",n.errors.length]}),r.jsx("ul",{className:"text-sm text-red-600 space-y-1 max-h-40 overflow-y-auto",children:n.errors.map((g,j)=>r.jsxs("li",{children:[g.jobNumber?`Job #${g.jobNumber}: `:"",g.error]},j))})]})]})]})}const xt=E.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:ut("rounded-xl border bg-card text-card-foreground shadow",e),...t}));xt.displayName="Card";const $n=E.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:ut("flex flex-col space-y-1.5 p-6",e),...t}));$n.displayName="CardHeader";const zn=E.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:ut("font-semibold leading-none tracking-tight",e),...t}));zn.displayName="CardTitle";const Rr=E.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:ut("text-sm text-muted-foreground",e),...t}));Rr.displayName="CardDescription";const vt=E.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:ut("p-6 pt-0",e),...t}));vt.displayName="CardContent";const HQ=E.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:ut("flex items-center p-6 pt-0",e),...t}));HQ.displayName="CardFooter";const Fk=Xl.filter(e=>e.slug!=="zoe-montgomery"&&e.slug!=="alexandra-montgomery"&&e.slug!=="tux");function WQ(){const[e,t]=E.useState({}),[n,s]=E.useState({}),[i,o]=E.useState({});E.useEffect(()=>{async function f(){try{const m=await ge.entities.Job.filter({status:"active"}),g={},j={};Fk.forEach(b=>{g[b.slug]=[],j[b.slug]=[]}),m.forEach(b=>
791{b.assigned_recruiter_slugs&&b.assigned_recruiter_slugs.forEach(x=>{g[x]&&b.job_number&&!g[x].includes(b.job_number)&&(g[x].push(b.job_number),j[x].push(b.job_number))})}),t(g),o(j)}catch(m){console.error("Error fetching assignments:",m)}}f()},[]);const l=Ws({mutationFn:async({recruiterSlug:f,jobNumbers:m})=>{const g=await ge.entities.Job.filter({status:"active"});for(const j of g){const b=j.assigned_recruiter_slugs||[];b.includes(f)&&await ge.entities.Job.update(j.id,{assigned_recruiter_slugs:b.filter(x=>x!==f)})}for(const j of m){const b=g.find(x=>x.job_number===j);if(b){const x=b.assigned_recruiter_slugs||[];await ge.entities.Job.update(b.id,{assigned_recruiter_slugs:[...x,f]})}}},onSuccess:(f,m)=>{o(g=>({...g,[m.recruiterSlug]:[...m.jobNumbers]})),Ne.success("Assignments updated")},onError:()=>{Ne.error("Failed to update assignments")}}),c=f=>{var g;const m=(g=n[f])==null?void 0:g.trim();m&&(t(j=>({...j,[f]:[...j[f]||[],m]})),s(j=>({...j,[f]:""})))},d=(f,m)=>{t(g=>({...g,[f]:(g[f]||[]).filter(j=>j!==m)}))},h=f=>{l.mutate({recruiterSlug:f,jobNumbers:e[f]||[]})},p=f=>{const m=e[f]||[],g=i[f]||[];if(m.length!==g.length)return!0;const j=[...m].sort(),b=[...g].sort();return j.some((x,v)=>x!==b[v])};return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Recruiter Job Assignments"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Assign job numbers to recruiters. Press Enter to add a job number, then click Save."})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Fk.map(f=>r.jsxs(xt,{children:[r.jsx($n,{className:"pb-3",children:r.jsx(zn,{className:"text-base",children:f.name})}),r.jsxs(vt,{className:"space-y-3",children:[r.jsxs("div",{className:"flex flex-wrap gap-2 min-h-[60px]",children:[(e[f.slug]||[]).map(m=>r.jsxs(Be,{variant:"secondary",className:"flex items-center gap-1",children:["#",m,r.jsx("button",{onClick:()=>d(f.slug,m),className:"hover:text-destructive",children:r.jsx(Ar,{className:"w-3 h-3"})})]},m)),(!e[f.slug]||e[f.slug].length===0)&&r.jsx("span",{className:"text-sm text-muted-foreground",children:"No jobs assigned"})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(Se,{placeholder:"Job #",value:n[f.slug]||"",onChange:m=>s(g=>({...g,[f.slug]:m.target.value})),onKeyPress:m=>{m.key==="Enter"&&c(f.slug)},className:"h-8 text-sm"}),r.jsx(xe,{size:"sm",variant:"outline",onClick:()=>c(f.slug),children:r.jsx(xs,{className:"w-4 h-4"})})]}),r.jsx(xe,{size:"sm",onClick:()=>h(f.slug),disabled:l.isPending||!p(f.slug),className:"w-full",children:l.isPending?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin mr-2"}),"Saving..."]}):p(f.slug)?r.jsxs(r.Fragment,{children:[r.jsx(ZT,{className:"w-4 h-4 mr-2"}),"Save Changes"]}):r.jsxs(r.Fragment,{children:[r.jsx(Ea,{className:"w-4 h-4 mr-2"}),"Saved"]})})]})]},f.slug))})]})}function Jn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var GQ=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bk=GQ,Uk=()=>Math.random().toString(36).substring(7).split("").join("."),YQ={INIT:`@@redux/INIT${Uk()}`,REPLACE:`@@redux/REPLACE${Uk()}`},qk=YQ;function KQ(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function j3(e,t,n){if(typeof e!="function")throw new Error(Jn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Jn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Jn(1));return n(j3)(e,t)}let s=e,i=t,o=new Map,l=o,c=0,d=!1;function h(){l===o&&(l=new Map,o.forEach((x,v)=>{l.set(v,x)}))}function p(){if(d)throw new Error(Jn(3));return i}function f(x){if(typeof x!="function")throw new Error(Jn(4));if(d)throw new Error(Jn(5));let v=!0;h();const N=c++;return l.set(N,x),function(){if(v){if(d)throw new Error(Jn(6));v=!1,h(),l.delete(N),o=null}}}function m(x){if(!KQ(x))throw new Error(Jn(7));if(typeof x.type>"u")throw new Error(Jn(8));if(typeof x.type!="string")throw new Error(Jn(17));if(d)throw new Error(Jn(9));try{d=!0,i=s(i,x)}finally{d=!1}return(o=l).forEach(N=>{N()}),x}function g(x){if(typeof x!="function")throw new Error(Jn(10));s=x,m({type:qk.REPLACE})}function j(){const x=f;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(Jn(11));function N(){const w=v;w.next&&w.next(p())}return N(),{unsubscribe:x(N)}},[Bk](){return this}}}return m({type:qk.INIT}),{dispatch:m,subscribe:f,getState:p,replaceReducer:g,[Bk]:j}}function Vk(e,t){return function(...n){return t(e.apply(this,n))}}function $k(e,t){if(typeof e=="function")return Vk(e,t);if(typeof e!="object"||e===null)throw new Error(Jn(16));const n={};for(const s in e){const i=e[s];typeof i=="function"&&(n[s]=Vk(i,t))}return n}function N3(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function JQ(...e){return t=>(n,s)=>{const i=t(n,s);let o=()=>{throw new Error(Jn(15))};const l={getState:i.getState,dispatch:(d,...h)=>o(d,...h)},c=e.map(d=>d(l));return o=N3(...c)(i.dispatch),{...i,dispatch:o}}}var Cy={exports:{}},Ty={};/**
792 * @license React
793 * use-sync-external-store-with-selector.production.js
794 *
795 * Copyright (c) Meta Platforms, Inc. and affiliates.
796 *
797 * This source code is licensed under the MIT license found in the
798 * LICENSE file in the root directory of this source tree.
799 */var zk;function QQ(){if(zk)return Ty;zk=1;var e=md();function t(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var n=typeof Object.is=="function"?Object.is:t,s=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,l=e.useMemo,c=e.useDebugValue;return Ty.useSyncExternalStoreWithSelector=function(d,h,p,f,m){var g=i(null);if(g.current===null){var j={hasValue:!1,value:null};g.current=j}else j=g.current;g=l(function(){function x(k){if(!v){if(v=!0,N=k,k=f(k),m!==void 0&&j.hasValue){var O=j.value;if(m(O,k))return S=O}return S=k}
799if(O=S,n(N,k))return O;var C=f(k);return m!==void 0&&m(O,C)?(N=k,O):(N=k,S=C)}var v=!1,N,S,w=p===void 0?null:p;return[function(){return x(h())},w===null?void 0:function(){return x(w())}]},[h,p,f,m]);var b=s(d,g[0],g[1]);return o(function(){j.hasValue=!0,j.value=b},[b]),c(b),b},Ty}var Hk;function XQ(){return Hk||(Hk=1,Cy.exports=QQ()),Cy.exports}XQ();var ZQ=E.version.startsWith("19"),eX=Symbol.for(ZQ?"react.transitional.element":"react.element"),tX=Symbol.for("react.portal"),nX=Symbol.for("react.fragment"),rX=Symbol.for("react.strict_mode"),sX=Symbol.for("react.profiler"),iX=Symbol.for("react.consumer"),oX=Symbol.for("react.context"),S3=Symbol.for("react.forward_ref"),aX=Symbol.for("react.suspense"),lX=Symbol.for("react.suspense_list"),kw=Symbol.for("react.memo"),cX=Symbol.for("react.lazy"),uX=S3,dX=kw;function fX(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case eX:switch(e=e.type,e){case nX:case sX:case rX:case aX:case lX:return e;default:switch(e=e&&e.$$typeof,e){case oX:case S3:case cX:case kw:return e;case iX:return e;default:return t}}case tX:return t}}}function hX(e){return fX(e)===kw}function mX(e,t,n,s,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:l}){let c=!1,d,h,p,f,m;function g(N,S){return d=N,h=S,p=e(d,h),f=t(s,h),m=n(p,f,h),c=!0,m}function j(){return p=e(d,h),t.dependsOnOwnProps&&(f=t(s,h)),m=n(p,f,h),m}function b(){return e.dependsOnOwnProps&&(p=e(d,h)),t.dependsOnOwnProps&&(f=t(s,h)),m=n(p,f,h),m}function x(){const N=e(d,h),S=!l(N,p);return p=N,S&&(m=n(p,f,h)),m}function v(N,S){const w=!o(S,h),k=!i(N,d,S,h);return d=N,h=S,w&&k?j():w?b():k?x():m}return function(S,w){return c?v(S,w):g(S,w)}}function pX(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:s,...i}){const o=t(e,i),l=n(e,i),c=s(e,i);return mX(o,l,c,e,i)}function gX(e,t){const n={};for(const s in e){const i=e[s];typeof i=="function"&&(n[s]=(...o)=>t(i(...o)))}return n}function Db(e){return function(n){const s=e(n);function i(){return s}return i.dependsOnOwnProps=!1,i}}function Wk(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function _3(e,t){return function(s,{displayName:i}){const o=function(c,d){return o.dependsOnOwnProps?o.mapToProps(c,d):o.mapToProps(c,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(c,d){o.mapToProps=e,o.dependsOnOwnProps=Wk(e);let h=o(c,d);return typeof h=="function"&&(o.mapToProps=h,o.dependsOnOwnProps=Wk(h),h=o(c,d)),h},o}}function Ew(e,t){return(n,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function yX(e){return e&&typeof e=="object"?Db(t=>gX(e,t)):e?typeof e=="function"?_3(e):Ew(e,"mapDispatchToProps"):Db(t=>({dispatch:t}))}function xX(e){return e?typeof e=="function"?_3(e):Ew(e,"mapStateToProps"):Db(()=>({}))}function vX(e,t,n){return{...n,...e,...t}}function bX(e){return function(n,{displayName:s,areMergedPropsEqual:i}){let o=!1,l;return function(d,h,p){const f=e(d,h,p);return o?i(f,l)||(l=f):(o=!0,l=f),l}}}function wX(e){return e?typeof e=="function"?bX(e):Ew(e,"mergeProps"):()=>vX}function jX(e){e()}function NX(){let e=null,t=null;return{clear(){e=null,t=null},notify(){jX(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let s=e;for(;s;)n.push(s),s=s.next;return n},subscribe(n){let s=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!s||e===null||(s=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Gk={notify(){},get:()=>[]};function k3(e,t){let n,s=Gk,i=0,o=!1;function l(b){p();const x=s.subscribe(b);let v=!1;return()=>{v||(v=!0,x(),f())}}function c(){s.notify()}function d(){j.onStateChange&&j.onStateChange()}function h(){return o}function p(){i++,n||(n=t?t.addNestedSub(d):e.subscribe(d),s=NX())}function f(){i--,n&&i===0&&(n(),n=void 0,s.clear(),s=Gk)}function m(){o||(o=!0,p())}function g(){o&&(o=!1,f())}const j={addNestedSub:l,notifyNestedSubs:c,handleChangeWrapper:d,isSubscribed:h,trySubscribe:m,tryUnsubscribe:g,getListeners:()=>s};return j}var SX=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_X=SX(),kX=()=>typeof navigator<"u"&&navigator.product==="ReactNative",EX=kX(),CX=()=>_X||EX?E.useLayoutEffect:E.useEffect,nm=CX();function Yk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Ay(e,t){if(Yk(e,t))return!0;
799if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Yk(e[n[i]],t[n[i]]))return!1;return!0}var TX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},AX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},OX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},RX={[uX]:OX,[dX]:E3};function Kk(e){return hX(e)?E3:RX[e.$$typeof]||TX}var PX=Object.defineProperty,DX=Object.getOwnPropertyNames,Jk=Object.getOwnPropertySymbols,IX=Object.getOwnPropertyDescriptor,LX=Object.getPrototypeOf,Qk=Object.prototype;function Ib(e,t){if(typeof t!="string"){if(Qk){const o=LX(t);o&&o!==Qk&&Ib(e,o)}let n=DX(t);Jk&&(n=n.concat(Jk(t)));const s=Kk(e),i=Kk(t);for(let o=0;o<n.length;++o){const l=n[o];if(!AX[l]&&!(i&&i[l])&&!(s&&s[l])){const c=IX(t,l);try{PX(e,l,c)}catch{}}}}return e}var Oy=Symbol.for("react-redux-context"),Ry=typeof globalThis<"u"?globalThis:{};function MX(){if(!E.createContext)return{};const e=Ry[Oy]??(Ry[Oy]=new Map);let t=e.get(E.createContext);return t||(t=E.createContext(null),e.set(E.createContext,t)),t}var C3=MX(),FX=[null,null];function BX(e,t,n){nm(()=>e(...t),n)}function UX(e,t,n,s,i,o){e.current=s,n.current=!1,i.current&&(i.current=null,o())}function qX(e,t,n,s,i,o,l,c,d,h,p){if(!e)return()=>{};let f=!1,m=null;const g=()=>{if(f||!c.current)return;const b=t.getState();let x,v;try{x=s(b,i.current)}catch(N){v=N,m=N}v||(m=null),x===o.current?l.current||h():(o.current=x,d.current=x,l.current=!0,p())};return n.onStateChange=g,n.trySubscribe(),g(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,m)throw m}}function VX(e,t){return e===t}function $X(e,t,n,{pure:s,areStatesEqual:i=VX,areOwnPropsEqual:o=Ay,areStatePropsEqual:l=Ay,areMergedPropsEqual:c=Ay,forwardRef:d=!1,context:h=C3}={}){const p=h,f=xX(e),m=yX(t),g=wX(n),j=!!e;return x=>{const v=x.displayName||x.name||"Component",N=`Connect(${v})`,S={shouldHandleStateChanges:j,displayName:N,wrappedComponentName:v,WrappedComponent:x,initMapStateToProps:f,initMapDispatchToProps:m,initMergeProps:g,areStatesEqual:i,areStatePropsEqual:l,areOwnPropsEqual:o,areMergedPropsEqual:c};function w(C){const[A,B,I]=E.useMemo(()=>{const{reactReduxForwardedRef:be,...Te}=C;return[C.context,be,Te]},[C]),L=E.useMemo(()=>{let be=p;return A!=null&&A.Consumer,be},[A,p]),D=E.useContext(L),R=!!C.store&&!!C.store.getState&&!!C.store.dispatch,U=!!D&&!!D.store,$=R?C.store:D.store,Y=U?D.getServerState:$.getState,K=E.useMemo(()=>pX($.dispatch,S),[$]),[Q,q]=E.useMemo(()=>{if(!j)return FX;const be=k3($,R?void 0:D.subscription),Te=be.notifyNestedSubs.bind(be);return[be,Te]},[$,R,D]),F=E.useMemo(()=>R?D:{...D,subscription:Q},[R,D,Q]),P=E.useRef(void 0),V=E.useRef(I),W=E.useRef(void 0),Z=E.useRef(!1),X=E.useRef(!1),H=E.useRef(void 0);nm(()=>(X.current=!0,()=>{X.current=!1}),[]);const G=E.useMemo(()=>()=>W.current&&I===V.current?W.current:K($.getState(),I),[$,I]),te=E.useMemo(()=>Te=>Q?qX(j,$,Q,K,V,P,Z,X,W,q,Te):()=>{},[Q]);BX(UX,[V,P,Z,I,W,q]);let re;try{re=E.useSyncExternalStore(te,G,Y?()=>K(Y(),I):G)}catch(be){throw H.current&&(be.message+=`
800The error may be correlated with this previous error:
801${H.current.stack}
802
803`),be}nm(()=>{H.current=void 0,W.current=void 0,P.current=re});const ue=E.useMemo(()=>E.createElement(x,{...re,ref:B}),[B,x,re]);return E.useMemo(()=>j?E.createElement(L.Provider,{value:F},ue):ue,[L,ue,F])}const O=E.memo(w);if(O.WrappedComponent=x,O.displayName=w.displayName=N,d){const A=E.forwardRef(function(I,L){return E.createElement(O,{...I,reactReduxForwardedRef:L})});return A.displayName=N,A.WrappedComponent=x,Ib(A,x)}return Ib(O,x)}}var T3=$X;function zX(e){const{children:t,context:n,serverState:s,store:i}=e,o=E.useMemo(()=>{const d=k3(i);return{store:i,subscription:d,getServerState:s?()=>s:void 0}},[i,s]),l=E.useMemo(()=>i.getState(),[i]);nm(()=>{const{subscription:d}=o;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),l!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[o,l]);const c=n||C3;return E.createElement(c.Provider,{value:o},t)}var HX=zX;function WX(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function A3(e,t){var n=E.useState(function(){return{inputs:t,result:e()}})[0],s=E.useRef(!0),i=E.useRef(n),o=s.current||!!(t&&i.current.inputs&&WX(t,i.current.inputs)),l=o?i.current:{inputs:t,result:e()};return E.useEffect(function(){s.current=!1,i.current=l},[l]),l.result}function GX(e,t){return A3(function(){return e},t)}var bt=A3,tt=GX,YX="Invariant failed";function KX(e,t){throw new Error(YX)}var ys=function(t){var n=t.top,s=t.right,i=t.bottom,o=t.left,l=s-o,c=i-n,d={top:n,right:s,bottom:i,left:o,width:l,height:c,x:o,y:n,center:{x:(s+o)/2,y:(i+n)/2}};return d}
803,Cw=function(t,n){return{top:t.top-n.top,left:t.left-n.left,bottom:t.bottom+n.bottom,right:t.right+n.right}},Xk=function(t,n){return{top:t.top+n.top,left:t.left+n.left,bottom:t.bottom-n.bottom,right:t.right-n.right}},JX=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},Py={top:0,right:0,bottom:0,left:0},Tw=function(t){var n=t.borderBox,s=t.margin,i=s===void 0?Py:s,o=t.border,l=o===void 0?Py:o,c=t.padding,d=c===void 0?Py:c,h=ys(Cw(n,i)),p=ys(Xk(n,l)),f=ys(Xk(p,d));return{marginBox:h,borderBox:ys(n),paddingBox:p,contentBox:f,margin:i,border:l,padding:d}},qr=function(t){var n=t.slice(0,-2),s=t.slice(-2);if(s!=="px")return 0;var i=Number(n);return isNaN(i)&&KX(),i},QX=function(){return{x:window.pageXOffset,y:window.pageYOffset}},rm=function(t,n){var s=t.borderBox,i=t.border,o=t.margin,l=t.padding,c=JX(s,n);return Tw({borderBox:c,border:i,margin:o,padding:l})},sm=function(t,n){return n===void 0&&(n=QX()),rm(t,n)},O3=function(t,n){var s={top:qr(n.marginTop),right:qr(n.marginRight),bottom:qr(n.marginBottom),left:qr(n.marginLeft)},i={top:qr(n.paddingTop),right:qr(n.paddingRight),bottom:qr(n.paddingBottom),left:qr(n.paddingLeft)},o={top:qr(n.borderTopWidth),right:qr(n.borderRightWidth),bottom:qr(n.borderBottomWidth),left:qr(n.borderLeftWidth)};return Tw({borderBox:t,margin:s,padding:i,border:o})},R3=function(t){var n=t.getBoundingClientRect(),s=window.getComputedStyle(t);return O3(n,s)},Zk=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function XX(e,t){return!!(e===t||Zk(e)&&Zk(t))}function ZX(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!XX(e[n],t[n]))return!1;return!0}function jn(e,t){t===void 0&&(t=ZX);var n=null;function s(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var l=e.apply(this,i);return n={lastResult:l,lastArgs:i,lastThis:this},l}return s.clear=function(){n=null},s}var nd=function(t){var n=[],s=null,i=function(){for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];n=c,!s&&(s=requestAnimationFrame(function(){s=null,t.apply(void 0,n)}))};return i.cancel=function(){s&&(cancelAnimationFrame(s),s=null)},i};function im(){return im=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},im.apply(null,arguments)}function P3(e,t){}P3.bind(null,"warn");P3.bind(null,"error");function No(){}function eZ(e,t){return{...e,...t}}function Wr(e,t,n){const s=t.map(i=>{const o=eZ(n,i.options);return e.addEventListener(i.eventName,i.fn,o),function(){e.removeEventListener(i.eventName,i.fn,o)}});return function(){s.forEach(o=>{o()})}}const tZ="Invariant failed";class om extends Error{}om.prototype.toString=function(){return this.message};function Pe(e,t){throw new om(tZ)}class nZ extends ve.Component{constructor(...t){super(...t),this.callbacks=null,this.unbind=No,this.onWindowError=n=>{const s=this.getCallbacks();s.isDragging()&&s.tryAbort(),n.error instanceof om&&n.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=n=>{this.callbacks=n}}componentDidMount(){this.unbind=Wr(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof om){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const rZ=`
804  Press space bar to start a drag.
805  When dragging you can use the arrow keys to move the item around and escape to cancel.
806  Some screen readers may require you to be in focus mode or to use your pass through key
807`,am=e=>e+1,sZ=e=>`
808  You have lifted an item in position ${am(e.source.index)}
809`,D3=(e,t)=>{const n=e.droppableId===t.droppableId,s=am(e.index),i=am(t.index);return n?`
810      You have moved the item from position ${s}
811      to position ${i}
812    `:`
813    You have moved the item from position ${s}
814    in list ${e.droppableId}
815    to list ${t.droppableId}
816    in position ${i}
817  `},I3=(e,t,n)=>t.droppableId===n.droppableId?`
818      The item ${e}
819      has been combined with ${n.draggableId}`:`
820      The item ${e}
821      in list ${t.droppableId}
822      has been combined with ${n.draggableId}
823      in list ${n.droppableId}
824    `,iZ=e=>{const t=e.destination;if(t)return D3(e.source,t);
824const n=e.combine;return n?I3(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},eE=e=>`
825  The item has returned to its starting position
826  of ${am(e.index)}
827`,oZ=e=>{if(e.reason==="CANCEL")return`
828      Movement cancelled.
829      ${eE(e.source)}
830    `;const t=e.destination,n=e.combine;return t?`
831      You have dropped the item.
832      ${D3(e.source,t)}
833    `:n?`
834      You have dropped the item.
835      ${I3(e.draggableId,e.source,n)}
836    `:`
837    The item has been dropped while not over a drop area.
838    ${eE(e.source)}
839  `},Ah={dragHandleUsageInstructions:rZ,onDragStart:sZ,onDragUpdate:iZ,onDragEnd:oZ},Sn={x:0,y:0},On=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),_r=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),So=(e,t)=>e.x===t.x&&e.y===t.y,wc=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Va=(e,t,n=0)=>e==="x"?{x:t,y:n}:{x:n,y:t},rd=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),tE=(e,t)=>Math.min(...t.map(n=>rd(e,n))),L3=e=>t=>({x:e(t.x),y:e(t.y)});var aZ=(e,t)=>{const n=ys({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n};const Ad=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),nE=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],lZ={top:0,right:0,bottom:0,left:0},cZ=(e,t)=>t?Ad(e,t.scroll.diff.displacement):e,uZ=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,dZ=(e,t)=>t&&t.shouldClipSubject?aZ(t.pageMarginBox,e):ys(e);var rc=({page:e,withPlaceholder:t,axis:n,frame:s})=>{const i=cZ(e.marginBox,s),o=uZ(i,n,t),l=dZ(o,s);return{page:e,withPlaceholder:t,active:l}},Aw=(e,t)=>{e.frame||Pe();const n=e.frame,s=_r(t,n.scroll.initial),i=wc(s),o={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:s,displacement:i},max:n.scroll.max}},l=rc({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:l}};const M3=jn(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),F3=jn(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),Bm=jn(e=>Object.values(e)),fZ=jn(e=>Object.values(e));var jc=jn((e,t)=>fZ(t).filter(s=>e===s.descriptor.droppableId).sort((s,i)=>s.descriptor.index-i.descriptor.index));function Ow(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Um(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var qm=jn((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),hZ=({isMovingForward:e,draggable:t,destination:n,insideDestination:s,previousImpact:i})=>{if(!n.isCombineEnabled||!Ow(i))return null;function l(g){const j={type:"COMBINE",combine:{draggableId:g,droppableId:n.descriptor.id}};return{...i,at:j}}const c=i.displaced.all,d=c.length?c[0]:null;if(e)return d?l(d):null;const h=qm(t,s);if(!d){if(!h.length)return null;const g=h[h.length-1];return l(g.descriptor.id)}const p=h.findIndex(g=>g.descriptor.id===d);p===-1&&Pe();const f=p-1;if(f<0)return null;const m=h[f];return l(m.descriptor.id)},Nc=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const B3={point:Sn,value:0},sd={invisible:{},visible:{},all:[]},mZ={displaced:sd,displacedBy:B3,at:null};var Jr=(e,t)=>n=>e<=n&&n<=t,U3=e=>{const t=Jr(e.top,e.bottom),n=Jr(e.left,e.right);return s=>{if(t(s.top)&&t(s.bottom)&&n(s.left)&&n(s.right))return!0;const o=t(s.top)||t(s.bottom),l=n(s.left)||n(s.right);if(o&&l)return!0;const d=s.top<e.top&&s.bottom>e.bottom,h=s.left<e.left&&s.right>e.right;return d&&h?!0:d&&l||h&&o}},pZ=e=>{const t=Jr(e.top,e.bottom),n=Jr(e.left,e.right);return s=>t(s.top)&&t(s.bottom)&&n(s.left)&&n(s.right)};const Rw={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},q3={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var gZ=e=>t=>{const n=Jr(t.top,t.bottom),s=Jr(t.left,t.right);return i=>e===Rw?n(i.top)&&n(i.bottom):s(i.left)&&s(i.right)};const yZ=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:Sn;return Ad(e,n)},xZ=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,vZ=(e,t,n)=>n(t)(e),Pw=({target:e,destination:t,viewport:n,withDroppableDisplacement:s,isVisibleThroughFrameFn:i})=>{const o=s?yZ(e,t):e;return xZ(o,t,i)&&vZ(o,n,i)},bZ=e=>Pw({...e,isVisibleThroughFrameFn:U3}),V3=e=>Pw({...e,isVisibleThroughFrameFn:pZ}),wZ=e=>Pw({...e,isVisibleThroughFrameFn:gZ(e.destination.axis)}),jZ=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;
839const{invisible:s,visible:i}=t;if(s[e])return!1;const o=i[e];return o?o.shouldAnimate:!0};function NZ(e,t){const n=e.page.marginBox,s={top:t.point.y,right:0,bottom:0,left:t.point.x};return ys(Cw(n,s))}function id({afterDragging:e,destination:t,displacedBy:n,viewport:s,forceShouldAnimate:i,last:o}){return e.reduce(function(c,d){const h=NZ(d,n),p=d.descriptor.id;if(c.all.push(p),!bZ({target:h,destination:t,viewport:s,withDroppableDisplacement:!0}))return c.invisible[d.descriptor.id]=!0,c;const m=jZ(p,o,i),g={draggableId:p,shouldAnimate:m};return c.visible[p]=g,c},{all:[],visible:{},invisible:{}})}function SZ(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function rE({insideDestination:e,inHomeList:t,displacedBy:n,destination:s}){const i=SZ(e,{inHomeList:t});return{displaced:sd,displacedBy:n,at:{type:"REORDER",destination:{droppableId:s.descriptor.id,index:i}}}}function lm({draggable:e,insideDestination:t,destination:n,viewport:s,displacedBy:i,last:o,index:l,forceShouldAnimate:c}){const d=Nc(e,n);if(l==null)return rE({insideDestination:t,inHomeList:d,displacedBy:i,destination:n});const h=t.find(j=>j.descriptor.index===l);if(!h)return rE({insideDestination:t,inHomeList:d,displacedBy:i,destination:n});const p=qm(e,t),f=t.indexOf(h),m=p.slice(f);return{displaced:id({afterDragging:m,destination:n,displacedBy:i,last:o,viewport:s.frame,forceShouldAnimate:c}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function Ro(e,t){return!!t.effected[e]}var _Z=({isMovingForward:e,destination:t,draggables:n,combine:s,afterCritical:i})=>{if(!t.isCombineEnabled)return null;const o=s.draggableId,c=n[o].descriptor.index;return Ro(o,i)?e?c:c-1:e?c+1:c},kZ=({isMovingForward:e,isInHomeList:t,insideDestination:n,location:s})=>{if(!n.length)return null;const i=s.index,o=e?i+1:i-1,l=n[0].descriptor.index,c=n[n.length-1].descriptor.index,d=t?c:c+1;return o<l||o>d?null:o},EZ=({isMovingForward:e,isInHomeList:t,draggable:n,draggables:s,destination:i,insideDestination:o,previousImpact:l,viewport:c,afterCritical:d})=>{const h=l.at;if(h||Pe(),h.type==="REORDER"){const f=kZ({isMovingForward:e,isInHomeList:t,location:h.destination,insideDestination:o});return f==null?null:lm({draggable:n,insideDestination:o,destination:i,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:f})}const p=_Z({isMovingForward:e,destination:i,displaced:l.displaced,draggables:s,combine:h.combine,afterCritical:d});return p==null?null:lm({draggable:n,insideDestination:o,destination:i,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:p})},CZ=({displaced:e,afterCritical:t,combineWith:n,displacedBy:s})=>{const i=!!(e.visible[n]||e.invisible[n]);return Ro(n,t)?i?Sn:wc(s.point):i?s.point:Sn},TZ=({afterCritical:e,impact:t,draggables:n})=>{const s=Um(t);s||Pe();const i=s.draggableId,o=n[i].page.borderBox.center,l=CZ({displaced:t.displaced,afterCritical:e,combineWith:i,displacedBy:t.displacedBy});return On(o,l)};const $3=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,AZ=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,Dw=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,sE=({axis:e,moveRelativeTo:t,isMoving:n})=>Va(e.line,t.marginBox[e.end]+$3(e,n),Dw(e,t.marginBox,n)),iE=({axis:e,moveRelativeTo:t,isMoving:n})=>Va(e.line,t.marginBox[e.start]-AZ(e,n),Dw(e,t.marginBox,n)),OZ=({axis:e,moveInto:t,isMoving:n})=>Va(e.line,t.contentBox[e.start]+$3(e,n),Dw(e,t.contentBox,n));var RZ=({impact:e,draggable:t,draggables:n,droppable:s,afterCritical:i})=>{const o=jc(s.descriptor.id,n),l=t.page,c=s.axis;if(!o.length)return OZ({axis:c,moveInto:s.page,isMoving:l});const{displaced:d,displacedBy:h}=e,p=d.all[0];if(p){const m=n[p];if(Ro(p,i))return iE({axis:c,moveRelativeTo:m.page,isMoving:l});const g=rm(m.page,h.point);return iE({axis:c,moveRelativeTo:g,isMoving:l})}const f=o[o.length-1];if(f.descriptor.id===t.descriptor.id)return l.borderBox.center;if(Ro(f.descriptor.id,i)){const m=rm(f.page,wc(i.displacedBy.point));return sE({axis:c,moveRelativeTo:m,isMoving:l})}return sE({axis:c,moveRelativeTo:f.page,isMoving:l})},Lb=(e,t)=>
839{const n=e.frame;return n?On(t,n.scroll.diff.displacement):t};const PZ=({impact:e,draggable:t,droppable:n,draggables:s,afterCritical:i})=>{const o=t.page.borderBox.center,l=e.at;return!n||!l?o:l.type==="REORDER"?RZ({impact:e,draggable:t,draggables:s,droppable:n,afterCritical:i}):TZ({impact:e,draggables:s,afterCritical:i})};var Vm=e=>{const t=PZ(e),n=e.droppable;return n?Lb(n,t):t},z3=(e,t)=>{const n=_r(t,e.scroll.initial),s=wc(n);return{frame:ys({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:s}}}};function oE(e,t){return e.map(n=>t[n])}function DZ(e,t){for(let n=0;n<t.length;n++){const s=t[n].visible[e];if(s)return s}return null}var IZ=({impact:e,viewport:t,destination:n,draggables:s,maxScrollChange:i})=>{const o=z3(t,On(t.scroll.current,i)),l=n.frame?Aw(n,On(n.frame.scroll.current,i)):n,c=e.displaced,d=id({afterDragging:oE(c.all,s),destination:n,displacedBy:e.displacedBy,viewport:o.frame,last:c,forceShouldAnimate:!1}),h=id({afterDragging:oE(c.all,s),destination:l,displacedBy:e.displacedBy,viewport:t.frame,last:c,forceShouldAnimate:!1}),p={},f={},m=[c,d,h];return c.all.forEach(j=>{const b=DZ(j,m);if(b){f[j]=b;return}p[j]=!0}),{...e,displaced:{all:c.all,invisible:p,visible:f}}},LZ=(e,t)=>On(e.scroll.diff.displacement,t),Iw=({pageBorderBoxCenter:e,draggable:t,viewport:n})=>{const s=LZ(n,e),i=_r(s,t.page.borderBox.center);return On(t.client.borderBox.center,i)},H3=({draggable:e,destination:t,newPageBorderBoxCenter:n,viewport:s,withDroppableDisplacement:i,onlyOnMainAxis:o=!1})=>{const l=_r(n,e.page.borderBox.center),d={target:Ad(e.page.borderBox,l),destination:t,withDroppableDisplacement:i,viewport:s};return o?wZ(d):V3(d)},MZ=({isMovingForward:e,draggable:t,destination:n,draggables:s,previousImpact:i,viewport:o,previousPageBorderBoxCenter:l,previousClientSelection:c,afterCritical:d})=>{if(!n.isEnabled)return null;const h=jc(n.descriptor.id,s),p=Nc(t,n),f=hZ({isMovingForward:e,draggable:t,destination:n,insideDestination:h,previousImpact:i})||EZ({isMovingForward:e,isInHomeList:p,draggable:t,draggables:s,destination:n,insideDestination:h,previousImpact:i,viewport:o,afterCritical:d});if(!f)return null;const m=Vm({impact:f,draggable:t,droppable:n,draggables:s,afterCritical:d});if(H3({draggable:t,destination:n,newPageBorderBoxCenter:m,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Iw({pageBorderBoxCenter:m,draggable:t,viewport:o}),impact:f,scrollJumpRequest:null};const j=_r(m,l),b=IZ({impact:f,viewport:o,destination:n,draggables:s,maxScrollChange:j});return{clientSelection:c,impact:b,scrollJumpRequest:j}};const Yn=e=>{const t=e.subject.active;return t||Pe(),t};var FZ=({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:s,viewport:i})=>{const o=n.subject.active;if(!o)return null;const l=n.axis,c=Jr(o[l.start],o[l.end]),d=Bm(s).filter(p=>p!==n).filter(p=>p.isEnabled).filter(p=>!!p.subject.active).filter(p=>U3(i.frame)(Yn(p))).filter(p=>{const f=Yn(p);return e?o[l.crossAxisEnd]<f[l.crossAxisEnd]:f[l.crossAxisStart]<o[l.crossAxisStart]}).filter(p=>{const f=Yn(p),m=Jr(f[l.start],f[l.end]);return c(f[l.start])||c(f[l.end])||m(o[l.start])||m(o[l.end])}).sort((p,f)=>{const m=Yn(p)[l.crossAxisStart],g=Yn(f)[l.crossAxisStart];return e?m-g:g-m}).filter((p,f,m)=>Yn(p)[l.crossAxisStart]===Yn(m[0])[l.crossAxisStart]);if(!d.length)return null;if(d.length===1)return d[0];const h=d.filter(p=>Jr(Yn(p)[l.start],Yn(p)[l.end])(t[l.line]));return h.length===1?h[0]:h.length>1?h.sort((p,f)=>Yn(p)[l.start]-Yn(f)[l.start])[0]:d.sort((p,f)=>{const m=tE(t,nE(Yn(p))),g=tE(t,nE(Yn(f)));return m!==g?m-g:Yn(p)[l.start]-Yn(f)[l.start]})[0]};const aE=(e,t)=>{const n=e.page.borderBox.center;return Ro(e.descriptor.id,t)?_r(n,t.displacedBy.point):n},BZ=(e,t)=>{const n=e.page.borderBox;return Ro(e.descriptor.id,t)?Ad(n,wc(t.displacedBy.point)):n};var UZ=({pageBorderBoxCenter:e,viewport:t,destination:n,insideDestination:s,afterCritical:i})=>s.filter(l=>V3({target:BZ(l,i),destination:n,viewport:t.frame,withDroppableDisplacement:!0})).sort((l,c)=>{const d=rd(e,Lb(n,aE(l,i))),h=rd(e,Lb(n,aE(c,i)));return d<h?-1:h<d?1:l.descriptor.index-c.descriptor.index})[0]||null,Od=jn(function(t,n){const s=n[t.line];return{value:s,point:Va(t.line,s)}});const qZ=(e,t,n)=>{const s=e.axis;
839if(e.descriptor.mode==="virtual")return Va(s.line,t[s.line]);const i=e.subject.page.contentBox[s.size],d=jc(e.descriptor.id,n).reduce((h,p)=>h+p.client.marginBox[s.size],0)+t[s.line]-i;return d<=0?null:Va(s.line,d)},W3=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),G3=(e,t,n)=>{const s=e.frame;Nc(t,e)&&Pe(),e.subject.withPlaceholder&&Pe();const i=Od(e.axis,t.displaceBy).point,o=qZ(e,i,n),l={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!s){const p=rc({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:e.frame});return{...e,subject:p}}const c=o?On(s.scroll.max,o):s.scroll.max,d=W3(s,c),h=rc({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:d});return{...e,subject:h,frame:d}},VZ=e=>{const t=e.subject.withPlaceholder;t||Pe();const n=e.frame;if(!n){const l=rc({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:l}}const s=t.oldFrameMaxScroll;s||Pe();const i=W3(n,s),o=rc({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return{...e,subject:o,frame:i}};var $Z=({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:n,draggable:s,draggables:i,destination:o,viewport:l,afterCritical:c})=>{if(!t){if(n.length)return null;const f={displaced:sd,displacedBy:B3,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},m=Vm({impact:f,draggable:s,droppable:o,draggables:i,afterCritical:c}),g=Nc(s,o)?o:G3(o,s,i);return H3({draggable:s,destination:g,newPageBorderBoxCenter:m,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?f:null}const d=e[o.axis.line]<=t.page.borderBox.center[o.axis.line],h=(()=>{const f=t.descriptor.index;return t.descriptor.id===s.descriptor.id||d?f:f+1})(),p=Od(o.axis,s.displaceBy);return lm({draggable:s,insideDestination:n,destination:o,viewport:l,displacedBy:p,last:sd,index:h})},zZ=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:n,isOver:s,draggables:i,droppables:o,viewport:l,afterCritical:c})=>{const d=FZ({isMovingForward:e,pageBorderBoxCenter:t,source:s,droppables:o,viewport:l});if(!d)return null;const h=jc(d.descriptor.id,i),p=UZ({pageBorderBoxCenter:t,viewport:l,destination:d,insideDestination:h,afterCritical:c}),f=$Z({previousPageBorderBoxCenter:t,destination:d,draggable:n,draggables:i,moveRelativeTo:p,insideDestination:h,viewport:l,afterCritical:c});if(!f)return null;const m=Vm({impact:f,draggable:n,droppable:d,draggables:i,afterCritical:c});return{clientSelection:Iw({pageBorderBoxCenter:m,draggable:n,viewport:l}),impact:f,scrollJumpRequest:null}},Cr=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const HZ=(e,t)=>{const n=Cr(e);return n?t[n]:null};var WZ=({state:e,type:t})=>{const n=HZ(e.impact,e.dimensions.droppables),s=!!n,i=e.dimensions.droppables[e.critical.droppable.id],o=n||i,l=o.axis.direction,c=l==="vertical"&&(t==="MOVE_UP"||t==="MOVE_DOWN")||l==="horizontal"&&(t==="MOVE_LEFT"||t==="MOVE_RIGHT");if(c&&!s)return null;const d=t==="MOVE_DOWN"||t==="MOVE_RIGHT",h=e.dimensions.draggables[e.critical.draggable.id],p=e.current.page.borderBoxCenter,{draggables:f,droppables:m}=e.dimensions;return c?MZ({isMovingForward:d,previousPageBorderBoxCenter:p,draggable:h,destination:o,draggables:f,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):zZ({isMovingForward:d,previousPageBorderBoxCenter:p,draggable:h,isOver:o,draggables:f,droppables:m,viewport:e.viewport,afterCritical:e.afterCritical})};function aa(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function Y3(e){const t=Jr(e.top,e.bottom),n=Jr(e.left,e.right);return function(i){return t(i.y)&&n(i.x)}}function GZ(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function YZ({pageBorderBox:e,draggable:t,candidates:n}){const s=t.page.borderBox.center,i=n.map(o=>{const l=o.axis,c=Va(o.axis.line,e.center[l.line],o.page.borderBox.center[l.crossAxisLine]);return{id:o.descriptor.id,distance:rd(s,c)}}).sort((o,l)=>l.distance-o.distance);return i[0]?i[0].id:null}function KZ({pageBorderBox:e,draggable:t,droppables:n}){const s=Bm(n).filter(i=>{if(!i.isEnabled)return!1;const o=i.subject.active;if(!o||!GZ(e,o))return!1;if(Y3(o)(e.center))return!0;const l=i.axis,c=o.center[l.crossAxisLine],d=e[l.crossAxisStart],h=e[l.crossAxisEnd],p=Jr(o[l.crossAxisStart],o[l.crossAxisEnd]),f=p(d),m=p(h);return!f&&!m?!0:f?d<c:h>c});return s.length?s.length===1?s[0].descriptor.id:YZ({pageBorderBox:e,draggable:t,candidates:s}):null}const K3=(e,t)=>ys(Ad(e,t));var JZ=(e,t)=>{const n=e.frame;return n?K3(t,n.scroll.diff.value):t};function J3({displaced:e,id:t}){return!!(e.visible[t]||e.invisible[t])}function QZ({draggable:e,closest:t,inHomeList:n}){return t?n&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}var XZ=({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:n,insideDestination:s,last:i,viewport:o,afterCritical:l})=>{const c=n.axis,d=Od(n.axis,t.displaceBy),h=d.value,p=e[c.start],f=e[c.end],g=qm(t,s).find(b=>{const x=b.descriptor.id,v=b.page.borderBox.center[c.line],N=Ro(x,l),S=J3({displaced:i,id:x});return N?S?f<=v:p<v-h:S?f<=v+h:p<v})||null,j=QZ({draggable:t,closest:g,inHomeList:Nc(t,n)});return lm({draggable:t,insideDestination:s,destination:n,viewport:o,last:i,displacedBy:d,index:j})};const ZZ=4;var eee=({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:n,destination:s,insideDestination:i,afterCritical:
839o})=>{if(!s.isCombineEnabled)return null;const l=s.axis,c=Od(s.axis,e.displaceBy),d=c.value,h=t[l.start],p=t[l.end],m=qm(e,i).find(j=>{const b=j.descriptor.id,x=j.page.borderBox,N=x[l.size]/ZZ,S=Ro(b,o),w=J3({displaced:n.displaced,id:b});return S?w?p>x[l.start]+N&&p<x[l.end]-N:h>x[l.start]-d+N&&h<x[l.end]-d-N:w?p>x[l.start]+d+N&&p<x[l.end]+d-N:h>x[l.start]+N&&h<x[l.end]-N});return m?{displacedBy:c,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:m.descriptor.id,droppableId:s.descriptor.id}}}:null},Q3=({pageOffset:e,draggable:t,draggables:n,droppables:s,previousImpact:i,viewport:o,afterCritical:l})=>{const c=K3(t.page.borderBox,e),d=KZ({pageBorderBox:c,draggable:t,droppables:s});if(!d)return mZ;const h=s[d],p=jc(h.descriptor.id,n),f=JZ(h,c);return eee({pageBorderBoxWithDroppableScroll:f,draggable:t,previousImpact:i,destination:h,insideDestination:p,afterCritical:l})||XZ({pageBorderBoxWithDroppableScroll:f,draggable:t,destination:h,insideDestination:p,last:i.displaced,viewport:o,afterCritical:l})},Lw=(e,t)=>({...e,[t.descriptor.id]:t});const tee=({previousImpact:e,impact:t,droppables:n})=>{const s=Cr(e),i=Cr(t);if(!s||s===i)return n;const o=n[s];if(!o.subject.withPlaceholder)return n;const l=VZ(o);return Lw(n,l)};var nee=({draggable:e,draggables:t,droppables:n,previousImpact:s,impact:i})=>{const o=tee({previousImpact:s,impact:i,droppables:n}),l=Cr(i);if(!l)return o;const c=n[l];if(Nc(e,c)||c.subject.withPlaceholder)return o;const d=G3(c,e,t);return Lw(o,d)},Fu=({state:e,clientSelection:t,dimensions:n,viewport:s,impact:i,scrollJumpRequest:o})=>{const l=s||e.viewport,c=n||e.dimensions,d=t||e.current.client.selection,h=_r(d,e.initial.client.selection),p={offset:h,selection:d,borderBoxCenter:On(e.initial.client.borderBoxCenter,h)},f={selection:On(p.selection,l.scroll.current),borderBoxCenter:On(p.borderBoxCenter,l.scroll.current),offset:On(p.offset,l.scroll.diff.value)},m={client:p,page:f};if(e.phase==="COLLECTING")return{...e,dimensions:c,viewport:l,current:m};const g=c.draggables[e.critical.draggable.id],j=i||Q3({pageOffset:f.offset,draggable:g,draggables:c.draggables,droppables:c.droppables,previousImpact:e.impact,viewport:l,afterCritical:e.afterCritical}),b=nee({draggable:g,impact:j,previousImpact:e.impact,draggables:c.draggables,droppables:c.droppables});return{...e,current:m,dimensions:{draggables:c.draggables,droppables:b},impact:j,viewport:l,scrollJumpRequest:o||null,forceShouldAnimate:o?!1:null}};function ree(e,t){return e.map(n=>t[n])}var X3=({impact:e,viewport:t,draggables:n,destination:s,forceShouldAnimate:i})=>{const o=e.displaced,l=ree(o.all,n),c=id({afterDragging:l,destination:s,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:i,last:o});return{...e,displaced:c}},Z3=({impact:e,draggable:t,droppable:n,draggables:s,viewport:i,afterCritical:o})=>{const l=Vm({impact:e,draggable:t,draggables:s,droppable:n,afterCritical:o});return Iw({pageBorderBoxCenter:l,draggable:t,viewport:i})},eD=({state:e,dimensions:t,viewport:n})=>{e.movementMode!=="SNAP"&&Pe();const s=e.impact,i=n||e.viewport,o=t||e.dimensions,{draggables:l,droppables:c}=o,d=l[e.critical.draggable.id],h=Cr(s);h||Pe();const p=c[h],f=X3({impact:s,viewport:i,destination:p,draggables:l}),m=Z3({impact:f,draggable:d,droppable:p,draggables:l,viewport:i,afterCritical:e.afterCritical});return Fu({impact:f,clientSelection:m,state:e,dimensions:o,viewport:i})},see=e=>({index:e.index,droppableId:e.droppableId}),tD=({draggable:e,home:t,draggables:n,viewport:s})=>{const i=Od(t.axis,e.displaceBy),o=jc(t.descriptor.id,n),l=o.indexOf(e);l===-1&&Pe();const c=o.slice(l+1),d=c.reduce((m,g)=>(m[g.descriptor.id]=!0,m),{}),h={inVirtualList:t.descriptor.mode==="virtual",displacedBy:i,effected:d};return{impact:{displaced:id({afterDragging:c,destination:t,displacedBy:i,last:null,viewport:s.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:see(e.descriptor)}},afterCritical:h}},iee=(e,t)=>({draggables:e.draggables,droppables:Lw(e.droppables,t)}),oee=({draggable:e,offset:t,initialWindowScroll:n})=>{const s=rm(e.client,t),i=sm(s,n);return{...e,placeholder:{...e.placeholder,client:s},client:s,page:i}},aee=e=>{const t=e.frame;return t||Pe(),t},lee=({additions:e,updatedDroppables:t,viewport:n})=>{const s=n.scroll.diff.value;return e.map(i=>{const o=i.descriptor.droppableId,l=t[o],d=aee(l).scroll.diff.value,h=On(s,d);return oee({draggable:i,offset:h,initialWindowScroll:n.scroll.initial})})},cee=({state:e,published:t})=>{const n=t.modified.map(v=>{const N=e.dimensions.droppables[v.droppableId];return Aw(N,v.scroll)}),s={...e.dimensions.droppables,...M3(n)},i=F3(lee({additions:t.additions,updatedDroppables:s,viewport:e.viewport})),o={...e.dimensions.draggables,...i};
839t.removals.forEach(v=>{delete o[v]});const l={droppables:s,draggables:o},c=Cr(e.impact),d=c?l.droppables[c]:null,h=l.draggables[e.critical.draggable.id],p=l.droppables[e.critical.droppable.id],{impact:f,afterCritical:m}=tD({draggable:h,home:p,draggables:o,viewport:e.viewport}),g=d&&d.isCombineEnabled?e.impact:f,j=Q3({pageOffset:e.current.page.offset,draggable:l.draggables[e.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:g,viewport:e.viewport,afterCritical:m}),b={...e,phase:"DRAGGING",impact:j,onLiftImpact:f,dimensions:l,afterCritical:m,forceShouldAnimate:!1};return e.phase==="COLLECTING"?b:{...b,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}};const Mb=e=>e.movementMode==="SNAP",Dy=(e,t,n)=>{const s=iee(e.dimensions,t);return!Mb(e)||n?Fu({state:e,dimensions:s}):eD({state:e,dimensions:s})};function Iy(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const lE={phase:"IDLE",completed:null,shouldFlush:!1};var uee=(e=lE,t)=>{if(t.type==="FLUSH")return{...lE,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&Pe();const{critical:n,clientSelection:s,viewport:i,dimensions:o,movementMode:l}=t.payload,c=o.draggables[n.draggable.id],d=o.droppables[n.droppable.id],h={selection:s,borderBoxCenter:c.client.borderBox.center,offset:Sn},p={client:h,page:{selection:On(h.selection,i.scroll.initial),borderBoxCenter:On(h.selection,i.scroll.initial),offset:On(h.selection,i.scroll.diff.value)}},f=Bm(o.droppables).every(b=>!b.isFixedOnPage),{impact:m,afterCritical:g}=tD({draggable:c,home:d,draggables:o.draggables,viewport:i});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:l,dimensions:o,initial:p,current:p,isWindowScrollAllowed:f,impact:m,afterCritical:g,onLiftImpact:m,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&Pe(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||Pe(),cee({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;aa(e)||Pe();const{client:n}=t.payload;return So(n,e.current.client.selection)?e:Fu({state:e,clientSelection:n,impact:Mb(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return Iy(e);aa(e)||Pe();const{id:n,newScroll:s}=t.payload,i=e.dimensions.droppables[n];if(!i)return e;const o=Aw(i,s);return Dy(e,o,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;aa(e)||Pe();const{id:n,isEnabled:s}=t.payload,i=e.dimensions.droppables[n];i||Pe(),i.isEnabled===s&&Pe();const o={...i,isEnabled:s};return Dy(e,o,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;aa(e)||Pe();const{id:n,isCombineEnabled:s}=t.payload,i=e.dimensions.droppables[n];i||Pe(),i.isCombineEnabled===s&&Pe();const o={...i,isCombineEnabled:s};return Dy(e,o,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;aa(e)||Pe(),e.isWindowScrollAllowed||Pe();const n=t.payload.newScroll;if(So(e.viewport.scroll.current,n))return Iy(e);const s=z3(e.viewport,n);return Mb(e)?eD({state:e,viewport:s}):Fu({state:e,viewport:s})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!aa(e))return e;const n=t.payload.maxScroll;if(So(n,e.viewport.scroll.max))return e;const s={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:s}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&Pe();const n=WZ({state:e,type:t.type});return n?Fu({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const n=t.payload.reason;return e.phase!=="COLLECTING"&&Pe(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:s,newHomeClientOffset:i}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||Pe(),{phase:"DROP_ANIMATING",completed:n,dropDuration:s,newHomeClientOffset:i,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};function kt(e,t){return e instanceof Object&&"type"in e&&e.type===t}const dee=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),fee=e=>({type:"LIFT",payload:e}),hee=e=>({type:"INITIAL_PUBLISH",payload:e}),mee=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),pee=()=>({type:"COLLECTION_STARTING",payload:null}),gee=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),yee=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),xee=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),nD=e=>({type:"MOVE",payload:e}),vee=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),bee=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),wee=()=>({type:"MOVE_UP",payload:null}),jee=()=>({type:"MOVE_DOWN",payload:null}),Nee=()=>({type:"MOVE_RIGHT",payload:null}),See=()=>({type:"MOVE_LEFT",payload:null}),Mw=()=>({type:"FLUSH",payload:null}),_ee=e=>({type:"DROP_ANIMATE",payload:e}
839),Fw=e=>({type:"DROP_COMPLETE",payload:e}),rD=e=>({type:"DROP",payload:e}),kee=e=>({type:"DROP_PENDING",payload:e}),sD=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var Eee=e=>({getState:t,dispatch:n})=>s=>i=>{if(!kt(i,"LIFT")){s(i);return}const{id:o,clientSelection:l,movementMode:c}=i.payload,d=t();d.phase==="DROP_ANIMATING"&&n(Fw({completed:d.completed})),t().phase!=="IDLE"&&Pe(),n(Mw()),n(dee({draggableId:o,movementMode:c}));const p={draggableId:o,scrollOptions:{shouldPublishImmediately:c==="SNAP"}},{critical:f,dimensions:m,viewport:g}=e.startPublishing(p);n(hee({critical:f,dimensions:m,clientSelection:l,movementMode:c,viewport:g}))},Cee=e=>()=>t=>n=>{kt(n,"INITIAL_PUBLISH")&&e.dragging(),kt(n,"DROP_ANIMATE")&&e.dropping(n.payload.completed.result.reason),(kt(n,"FLUSH")||kt(n,"DROP_COMPLETE"))&&e.resting(),t(n)};const Bw={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},od={opacity:{drop:0,combining:.7},scale:{drop:.75}},iD={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},na=`${iD.outOfTheWay}s ${Bw.outOfTheWay}`,Bu={fluid:`opacity ${na}`,snap:`transform ${na}, opacity ${na}`,drop:e=>{const t=`${e}s ${Bw.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${na}`,placeholder:`height ${na}, width ${na}, margin ${na}`},cE=e=>So(e,Sn)?void 0:`translate(${e.x}px, ${e.y}px)`,Fb={moveTo:cE,drop:(e,t)=>{const n=cE(e);if(n)return t?`${n} scale(${od.scale.drop})`:n}},{minDropTime:Bb,maxDropTime:oD}=iD,Tee=oD-Bb,uE=1500,Aee=.6;var Oee=({current:e,destination:t,reason:n})=>{const s=rd(e,t);if(s<=0)return Bb;if(s>=uE)return oD;const i=s/uE,o=Bb+Tee*i,l=n==="CANCEL"?o*Aee:o;return Number(l.toFixed(2))},Ree=({impact:e,draggable:t,dimensions:n,viewport:s,afterCritical:i})=>{const{draggables:o,droppables:l}=n,c=Cr(e),d=c?l[c]:null,h=l[t.descriptor.droppableId],p=Z3({impact:e,draggable:t,draggables:o,afterCritical:i,droppable:d||h,viewport:s});return _r(p,t.client.borderBox.center)},Pee=({draggables:e,reason:t,lastImpact:n,home:s,viewport:i,onLiftImpact:o})=>!n.at||t!=="DROP"?{impact:X3({draggables:e,impact:o,destination:s,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:n.at.type==="REORDER"?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:sd},didDropInsideDroppable:!0};const Dee=({getState:e,dispatch:t})=>n=>s=>{if(!kt(s,"DROP")){n(s);return}const i=e(),o=s.payload.reason;if(i.phase==="COLLECTING"){t(kee({reason:o}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&Pe(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||Pe();const c=i.critical,d=i.dimensions,h=d.draggables[i.critical.draggable.id],{impact:p,didDropInsideDroppable:f}=Pee({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),m=f?Ow(p):null,g=f?Um(p):null,j={index:c.draggable.index,droppableId:c.droppable.id},b={draggableId:h.descriptor.id,type:h.descriptor.type,source:j,reason:o,mode:i.movementMode,destination:m,combine:g},x=Ree({impact:p,draggable:h,dimensions:d,viewport:i.viewport,afterCritical:i.afterCritical}),v={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:p};if(!(!So(i.current.client.offset,x)||!!b.combine)){t(Fw({completed:v}));return}const S=Oee({current:i.current.client.offset,destination:x,reason:o});t(_ee({newHomeClientOffset:x,dropDuration:S,completed:v}))};var aD=()=>({x:window.pageXOffset,y:window.pageYOffset});function Iee(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function Lee({onWindowScroll:e}){function t(){e(aD())}const n=nd(t),s=Iee(n);let i=No;function o(){return i!==No}function l(){o()&&Pe(),i=Wr(window,[s])}function c(){o()||Pe(),n.cancel(),i(),i=No}return{start:l,stop:c,isActive:o}}const Mee=e=>kt(e,"DROP_COMPLETE")||kt(e,"DROP_ANIMATE")||kt(e,"FLUSH"),Fee=e=>{const t=Lee({onWindowScroll:n=>{e.dispatch(vee({newScroll:n}))}});return n=>s=>{!t.isActive()&&kt(s,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&Mee(s)&&t.stop(),n(s)}};var Bee=e=>{let t=!1,n=!1;const s=setTimeout(()=>{n=!0}),i=o=>{t||n||(t=!0,e(o),clearTimeout(s))};return i.wasCalled=()=>t,i},Uee=()=>{const e=[],t=i=>{const o=e.findIndex(c=>c.timerId===i);o===-1&&Pe();const[l]=e.splice(o,1);l.callback()};return{add:i=>{const o=setTimeout(()=>t(o)),l={timerId:o,callback:i};e.push(l)},flush:()=>
839{if(!e.length)return;const i=[...e];e.length=0,i.forEach(o=>{clearTimeout(o.timerId),o.callback()})}}};const qee=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,Vee=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,$ee=(e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,s=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&s},gu=(e,t)=>{t()},oh=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Ly(e,t,n,s){if(!e){n(s(t));return}const i=Bee(n);e(t,{announce:i}),i.wasCalled()||n(s(t))}var zee=(e,t)=>{const n=Uee();let s=null;const i=(f,m)=>{s&&Pe(),gu("onBeforeCapture",()=>{const g=e().onBeforeCapture;g&&g({draggableId:f,mode:m})})},o=(f,m)=>{s&&Pe(),gu("onBeforeDragStart",()=>{const g=e().onBeforeDragStart;g&&g(oh(f,m))})},l=(f,m)=>{s&&Pe();const g=oh(f,m);s={mode:m,lastCritical:f,lastLocation:g.source,lastCombine:null},n.add(()=>{gu("onDragStart",()=>Ly(e().onDragStart,g,t,Ah.onDragStart))})},c=(f,m)=>{const g=Ow(m),j=Um(m);s||Pe();const b=!$ee(f,s.lastCritical);b&&(s.lastCritical=f);const x=!qee(s.lastLocation,g);x&&(s.lastLocation=g);const v=!Vee(s.lastCombine,j);if(v&&(s.lastCombine=j),!b&&!x&&!v)return;const N={...oh(f,s.mode),combine:j,destination:g};n.add(()=>{gu("onDragUpdate",()=>Ly(e().onDragUpdate,N,t,Ah.onDragUpdate))})},d=()=>{s||Pe(),n.flush()},h=f=>{s||Pe(),s=null,gu("onDragEnd",()=>Ly(e().onDragEnd,f,t,Ah.onDragEnd))};return{beforeCapture:i,beforeStart:o,start:l,update:c,flush:d,drop:h,abort:()=>{if(!s)return;const f={...oh(s.lastCritical,s.mode),combine:null,destination:null,reason:"CANCEL"};h(f)}}},Hee=(e,t)=>{const n=zee(e,t);return s=>i=>o=>{if(kt(o,"BEFORE_INITIAL_CAPTURE")){n.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(kt(o,"INITIAL_PUBLISH")){const c=o.payload.critical;n.beforeStart(c,o.payload.movementMode),i(o),n.start(c,o.payload.movementMode);return}if(kt(o,"DROP_COMPLETE")){const c=o.payload.completed.result;n.flush(),i(o),n.drop(c);return}if(i(o),kt(o,"FLUSH")){n.abort();return}const l=s.getState();l.phase==="DRAGGING"&&n.update(l.critical,l.impact)}};const Wee=e=>t=>n=>{if(!kt(n,"DROP_ANIMATION_FINISHED")){t(n);return}const s=e.getState();s.phase!=="DROP_ANIMATING"&&Pe(),e.dispatch(Fw({completed:s.completed}))},Gee=e=>{let t=null,n=null;function s(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return i=>o=>{if((kt(o,"FLUSH")||kt(o,"DROP_COMPLETE")||kt(o,"DROP_ANIMATION_FINISHED"))&&s(),i(o),!kt(o,"DROP_ANIMATE"))return;const l={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(sD())}};n=requestAnimationFrame(()=>{n=null,t=Wr(window,[l])})}};var Yee=e=>()=>t=>n=>{(kt(n,"DROP_COMPLETE")||kt(n,"FLUSH")||kt(n,"DROP_ANIMATE"))&&e.stopPublishing(),t(n)},Kee=e=>{let t=!1;return()=>n=>s=>{if(kt(s,"INITIAL_PUBLISH")){t=!0,e.tryRecordFocus(s.payload.critical.draggable.id),n(s),e.tryRestoreFocusRecorded();return}if(n(s),!!t){if(kt(s,"FLUSH")){t=!1,e.tryRestoreFocusRecorded();return}if(kt(s,"DROP_COMPLETE")){t=!1;const i=s.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const Jee=e=>kt(e,"DROP_COMPLETE")||kt(e,"DROP_ANIMATE")||kt(e,"FLUSH");var Qee=e=>t=>n=>s=>{if(Jee(s)){e.stop(),n(s);return}if(kt(s,"INITIAL_PUBLISH")){n(s);const i=t.getState();i.phase!=="DRAGGING"&&Pe(),e.start(i);return}n(s),e.scroll(t.getState())};const Xee=e=>t=>n=>{if(t(n),!kt(n,"PUBLISH_WHILE_DRAGGING"))return;const s=e.getState();s.phase==="DROP_PENDING"&&(s.isWaiting||e.dispatch(rD({reason:s.reason})))},Zee=N3;var ete=({dimensionMarshal:e,focusMarshal:t,styleMarshal:n,getResponders:s,announce:i,autoScroller:o})=>j3(uee,Zee(JQ(Cee(n),Yee(e),Eee(e),Dee,Wee,Gee,Xee,Qee(o),Fee,Kee(t),Hee(s,i))));const My=()=>({additions:{},removals:{},modified:{}});function tte({registry:e,callbacks:t}){let n=My(),s=null;const i=()=>{s||(t.collectionStarting(),s=requestAnimationFrame(()=>{s=null;const{additions:d,removals:h,modified:p}=n,f=Object.keys(d).map(j=>e.draggable.getById(j).getDimension(Sn)).sort((j,b)=>j.descriptor.index-b.descriptor.index),m=Object.keys(p).map(j=>{const x=e.droppable.getById(j).callbacks.getScrollWhileDragging();return{droppableId:j,scroll:x}}),g={additions:f,removals:Object.keys(h),modified:m};n=My(),t.publish(g)}))};return{add:d=>{const h=d.descriptor.id;n.additions[h]=d,n.modified[d.descriptor.droppableId]=!0,n.removals[h]&&delete n.removals[h],i()},remove:d=>{const h=d.descriptor;n.removals[h.id]=!0,n.modified[h.droppableId]=!0,n.additions[h.id]&&delete n.additions[h.id],i()},stop:()=>{s&&(cancelAnimationFrame(s),s=null,n=My())}}}var lD=({scrollHeight:e,scrollWidth:t,height:n,width:s})=>{const i=_r({x:t,y:e},{x:s,y:n});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},cD=()=>{const e=document.documentElement;return e||Pe(),e},uD=()=>{const e=cD();return lD({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},nte=()=>{const e=aD(),t=uD(),n=e.y,s=e.x,i=cD(),o=i.clientWidth,l=i.clientHeight,c=s+o,d=n+l;return{frame:ys({top:n,left:s,right:c,bottom:d}),scroll:{initial:e,current:e,max:t,diff:{value:Sn,displacement:Sn}}}},rte=({critical:e,scrollOptions:t,registry:n})=>{const s=nte(),i=s.scroll.current,o=e.droppable,l=n.droppable.getAllByType(o.type).map(p=>p.callbacks.getDimensionAndWatchScroll(i,t)),c=n.draggable.getAllByType(e.draggable.type).map(p=>p.getDimension(i));return{dimensions:{draggables:F3(c),droppables:M3(l)},critical:e,viewport:s}};function dE(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var ste=(e,t)=>
839{let n=null;const s=tte({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=(m,g)=>{e.droppable.exists(m)||Pe(),n&&t.updateDroppableIsEnabled({id:m,isEnabled:g})},o=(m,g)=>{n&&(e.droppable.exists(m)||Pe(),t.updateDroppableIsCombineEnabled({id:m,isCombineEnabled:g}))},l=(m,g)=>{n&&(e.droppable.exists(m)||Pe(),t.updateDroppableScroll({id:m,newScroll:g}))},c=(m,g)=>{n&&e.droppable.getById(m).callbacks.scroll(g)},d=()=>{if(!n)return;s.stop();const m=n.critical.droppable;e.droppable.getAllByType(m.type).forEach(g=>g.callbacks.dragStopped()),n.unsubscribe(),n=null},h=m=>{n||Pe();const g=n.critical.draggable;m.type==="ADDITION"&&dE(e,g,m.value)&&s.add(m.value),m.type==="REMOVAL"&&dE(e,g,m.value)&&s.remove(m.value)};return{updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:c,updateDroppableScroll:l,startPublishing:m=>{n&&Pe();const g=e.draggable.getById(m.draggableId),j=e.droppable.getById(g.descriptor.droppableId),b={draggable:g.descriptor,droppable:j.descriptor},x=e.subscribe(h);return n={critical:b,unsubscribe:x},rte({critical:b,registry:e,scrollOptions:m.scrollOptions})},stopPublishing:d}},dD=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",ite=e=>{window.scrollBy(e.x,e.y)};const ote=jn(e=>Bm(e).filter(t=>!(!t.isEnabled||!t.frame))),ate=(e,t)=>ote(t).find(s=>(s.frame||Pe(),Y3(s.frame.pageMarginBox)(e)))||null;var lte=({center:e,destination:t,droppables:n})=>{if(t){const i=n[t];return i.frame?i:null}return ate(e,n)};const ad={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var cte=(e,t,n=()=>ad)=>{const s=n(),i=e[t.size]*s.startFromPercentage,o=e[t.size]*s.maxScrollAtPercentage;return{startScrollingFrom:i,maxScrollValueAt:o}},fD=({startOfRange:e,endOfRange:t,current:n})=>{const s=t-e;return s===0?0:(n-e)/s},Uw=1,ute=(e,t,n=()=>ad)=>{const s=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return s.maxPixelScroll;if(e===t.startScrollingFrom)return Uw;const o=1-fD({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),l=s.maxPixelScroll*s.ease(o);return Math.ceil(l)},dte=(e,t,n)=>{const s=n(),i=s.durationDampening.accelerateAt,o=s.durationDampening.stopDampeningAt,l=t,c=o,h=Date.now()-l;if(h>=o)return e;if(h<i)return Uw;const p=fD({startOfRange:i,endOfRange:c,current:h}),f=e*s.ease(p);return Math.ceil(f)},fE=({distanceToEdge:e,thresholds:t,dragStartTime:n,shouldUseTimeDampening:s,getAutoScrollerOptions:i})=>{const o=ute(e,t,i);return o===0?0:s?Math.max(dte(o,n,i),Uw):o},hE=({container:e,distanceToEdges:t,dragStartTime:n,axis:s,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const l=cte(e,s,o);return t[s.end]<t[s.start]?fE({distanceToEdge:t[s.end],thresholds:l,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o}):-1*fE({distanceToEdge:t[s.start],thresholds:l,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o})},fte=({container:e,subject:t,proposedScroll:n})=>{const s=t.height>e.height,i=t.width>e.width;return!i&&!s?n:i&&s?null:{x:i?0:n.x,y:s?0:n.y}};const hte=L3(e=>e===0?0:e);var hD=({dragStartTime:e,container:t,subject:n,center:s,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const l={top:s.y-t.top,right:t.right-s.x,bottom:t.bottom-s.y,left:s.x-t.left},c=hE({container:t,distanceToEdges:l,dragStartTime:e,axis:Rw,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),d=hE({container:t,distanceToEdges:l,dragStartTime:e,axis:q3,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),h=hte({x:d,y:c});if(So(h,Sn))return null;const p=fte({container:t,subject:n,proposedScroll:h});return p?So(p,Sn)?null:p:null};const mte=L3(e=>e===0?0:e>0?1:-1),qw=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return({current:t,max:n,change:s})=>{const i=On(t,s),o={x:e(i.x,n.x),y:e(i.y,n.y)};return So(o,Sn)?null:o}})(),mD=({max:e,current:t,change:n})=>{const s={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},i=mte(n),o=qw({max:s,current:t,change:i});return!o||i.x!==0&&o.x===0||i.y!==0&&o.y===0},Vw=(e,t)=>mD({current:e.scroll.current,max:e.scroll.max,change:t}),pte=(e,t)=>
839{if(!Vw(e,t))return null;const n=e.scroll.max,s=e.scroll.current;return qw({current:s,max:n,change:t})},$w=(e,t)=>{const n=e.frame;return n?mD({current:n.scroll.current,max:n.scroll.max,change:t}):!1},gte=(e,t)=>{const n=e.frame;return!n||!$w(e,t)?null:qw({current:n.scroll.current,max:n.scroll.max,change:t})};var yte=({viewport:e,subject:t,center:n,dragStartTime:s,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const l=hD({dragStartTime:s,container:e.frame,subject:t,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return l&&Vw(e,l)?l:null},xte=({droppable:e,subject:t,center:n,dragStartTime:s,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const l=e.frame;if(!l)return null;const c=hD({dragStartTime:s,container:l.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return c&&$w(e,c)?c:null},mE=({state:e,dragStartTime:t,shouldUseTimeDampening:n,scrollWindow:s,scrollDroppable:i,getAutoScrollerOptions:o})=>{const l=e.current.page.borderBoxCenter,d=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const f=e.viewport,m=yte({dragStartTime:t,viewport:f,subject:d,center:l,shouldUseTimeDampening:n,getAutoScrollerOptions:o});if(m){s(m);return}}const h=lte({center:l,destination:Cr(e.impact),droppables:e.dimensions.droppables});if(!h)return;const p=xte({dragStartTime:t,droppable:h,subject:d,center:l,shouldUseTimeDampening:n,getAutoScrollerOptions:o});p&&i(h.descriptor.id,p)},vte=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:n=()=>ad})=>{const s=nd(e),i=nd(t);let o=null;const l=h=>{o||Pe();const{shouldUseTimeDampening:p,dragStartTime:f}=o;mE({state:h,scrollWindow:s,scrollDroppable:i,dragStartTime:f,shouldUseTimeDampening:p,getAutoScrollerOptions:n})};return{start:h=>{o&&Pe();const p=Date.now();let f=!1;const m=()=>{f=!0};mE({state:h,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:m,scrollDroppable:m,getAutoScrollerOptions:n}),o={dragStartTime:p,shouldUseTimeDampening:f},f&&l(h)},stop:()=>{o&&(s.cancel(),i.cancel(),o=null)},scroll:l}},bte=({move:e,scrollDroppable:t,scrollWindow:n})=>{const s=(c,d)=>{const h=On(c.current.client.selection,d);e({client:h})},i=(c,d)=>{if(!$w(c,d))return d;const h=gte(c,d);if(!h)return t(c.descriptor.id,d),null;const p=_r(d,h);return t(c.descriptor.id,p),_r(d,p)},o=(c,d,h)=>{if(!c||!Vw(d,h))return h;const p=pte(d,h);if(!p)return n(h),null;const f=_r(h,p);return n(f),_r(h,f)};return c=>{const d=c.scrollJumpRequest;if(!d)return;const h=Cr(c.impact);h||Pe();const p=i(c.dimensions.droppables[h],d);if(!p)return;const f=c.viewport,m=o(c.isWindowScrollAllowed,f,p);m&&s(c,m)}},wte=({scrollDroppable:e,scrollWindow:t,move:n,getAutoScrollerOptions:s})=>{const i=vte({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:s}),o=bte({move:n,scrollWindow:t,scrollDroppable:e});return{scroll:d=>{if(!(s().disabled||d.phase!=="DRAGGING")){if(d.movementMode==="FLUID"){i.scroll(d);return}d.scrollJumpRequest&&o(d)}},start:i.start,stop:i.stop}};const sc="data-rfd",ic=(()=>{const e=`${sc}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),Ub=(()=>{const e=`${sc}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),jte=(()=>{const e=`${sc}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),pE={contextId:`${sc}-scroll-container-context-id`},Nte=e=>t=>`[${t}="${e}"]`,yu=(e,t)=>e.map(n=>{const s=n.styles[t];return s?`${n.selector} { ${s} }`:""}).join(" "),Ste="pointer-events: none;";var _te=e=>{const t=Nte(e),n=(()=>{const c=`
840      cursor: -webkit-grab;
841      cursor: grab;
842    `;return{selector:t(ic.contextId),styles:{always:`
843          -webkit-touch-callout: none;
844          -webkit-tap-highlight-color: rgba(0,0,0,0);
845          touch-action: manipulation;
846        `,resting:c,dragging:Ste,dropAnimating:c}}})(),s=(()=>{const c=`
847      transition: ${Bu.outOfTheWay};
848    `;return{selector:t(Ub.contextId),styles:{dragging:c,dropAnimating:c,userCancel:c}}})(),i={selector:t(jte.contextId),styles:{always:"overflow-anchor: none;"}}
848,l=[s,n,i,{selector:"body",styles:{dragging:`
849        cursor: grabbing;
850        cursor: -webkit-grabbing;
851        user-select: none;
852        -webkit-user-select: none;
853        -moz-user-select: none;
854        -ms-user-select: none;
855        overflow-anchor: none;
856      `}}];return{always:yu(l,"always"),resting:yu(l,"resting"),dragging:yu(l,"dragging"),dropAnimating:yu(l,"dropAnimating"),userCancel:yu(l,"userCancel")}};const Tr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect,Fy=()=>{const e=document.querySelector("head");return e||Pe(),e},gE=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function kte(e,t){const n=bt(()=>_te(e),[e]),s=E.useRef(null),i=E.useRef(null),o=tt(jn(f=>{const m=i.current;m||Pe(),m.textContent=f}),[]),l=tt(f=>{const m=s.current;m||Pe(),m.textContent=f},[]);Tr(()=>{!s.current&&!i.current||Pe();const f=gE(t),m=gE(t);return s.current=f,i.current=m,f.setAttribute(`${sc}-always`,e),m.setAttribute(`${sc}-dynamic`,e),Fy().appendChild(f),Fy().appendChild(m),l(n.always),o(n.resting),()=>{const g=j=>{const b=j.current;b||Pe(),Fy().removeChild(b),j.current=null};g(s),g(i)}},[t,l,o,n.always,n.resting,e]);const c=tt(()=>o(n.dragging),[o,n.dragging]),d=tt(f=>{if(f==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),h=tt(()=>{i.current&&o(n.resting)},[o,n.resting]);return bt(()=>({dragging:c,dropping:d,resting:h}),[c,d,h])}function pD(e,t){return Array.from(e.querySelectorAll(t))}var gD=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function $m(e){return e instanceof gD(e).HTMLElement}function Ete(e,t){const n=`[${ic.contextId}="${e}"]`,s=pD(document,n);if(!s.length)return null;const i=s.find(o=>o.getAttribute(ic.draggableId)===t);return!i||!$m(i)?null:i}function Cte(e){const t=E.useRef({}),n=E.useRef(null),s=E.useRef(null),i=E.useRef(!1),o=tt(function(m,g){const j={id:m,focus:g};return t.current[m]=j,function(){const x=t.current;x[m]!==j&&delete x[m]}},[]),l=tt(function(m){const g=Ete(e,m);g&&g!==document.activeElement&&g.focus()},[e]),c=tt(function(m,g){n.current===m&&(n.current=g)},[]),d=tt(function(){s.current||i.current&&(s.current=requestAnimationFrame(()=>{s.current=null;const m=n.current;m&&l(m)}))},[l]),h=tt(function(m){n.current=null;const g=document.activeElement;g&&g.getAttribute(ic.draggableId)===m&&(n.current=m)},[]);return Tr(()=>(i.current=!0,function(){i.current=!1;const m=s.current;m&&cancelAnimationFrame(m)}),[]),bt(()=>({register:o,tryRecordFocus:h,tryRestoreFocusRecorded:d,tryShiftRecord:c}),[o,h,d,c])}function Tte(){const e={draggables:{},droppables:{}},t=[];function n(f){return t.push(f),function(){const g=t.indexOf(f);g!==-1&&t.splice(g,1)}}function s(f){t.length&&t.forEach(m=>m(f))}function i(f){return e.draggables[f]||null}function o(f){const m=i(f);return m||Pe(),m}const l={register:f=>{e.draggables[f.descriptor.id]=f,s({type:"ADDITION",value:f})},update:(f,m)=>{const g=e.draggables[m.descriptor.id];g&&g.uniqueId===f.uniqueId&&(delete e.draggables[m.descriptor.id],e.draggables[f.descriptor.id]=f)},unregister:f=>{const m=f.descriptor.id,g=i(m);g&&f.uniqueId===g.uniqueId&&(delete e.draggables[m],e.droppables[f.descriptor.droppableId]&&s({type:"REMOVAL",value:f}))},getById:o,findById:i,exists:f=>!!i(f),getAllByType:f=>Object.values(e.draggables).filter(m=>m.descriptor.type===f)};function c(f){return e.droppables[f]||null}function d(f){const m=c(f);return m||Pe(),m}const h={register:f=>{e.droppables[f.descriptor.id]=f},unregister:f=>{const m=c(f.descriptor.id);m&&f.uniqueId===m.uniqueId&&delete e.droppables[f.descriptor.id]},getById:d,findById:c,exists:f=>!!c(f),getAllByType:f=>Object.values(e.droppables).filter(m=>m.descriptor.type===f)};function p(){e.draggables={},e.droppables={},t.length=0}return{draggable:l,droppable:h,subscribe:n,clean:p}}function Ate(){const e=bt(Tte,[]);return E.useEffect(()=>function(){e.clean()},[e]),e}var zw=ve.createContext(null),cm=()=>{const e=document.body;return e||Pe(),e};const Ote={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Rte=e=>`rfd-announcement-${e}`;function Pte(e){const t=bt(()=>Rte(e),[e]),n=E.useRef(null);return E.useEffect(function(){const o=document.createElement("div");return n.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),im(o.style,Ote),cm().appendChild(o),function(){setTimeout(function(){const d=cm();d.contains(o)&&d.removeChild(o),o===n.current&&(n.current=null)})}},[t]),tt(i=>{const o=n.current;if(o){o.textContent=i;return}},[])}const Dte={separator:"::"};function Hw(e,t=Dte){const n=ve.useId();return bt(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}function Ite({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}function Lte({contextId:e,text:t}){const n=Hw("hidden-text",{separator:"-"}),s=bt(()=>Ite({contextId:e,uniqueId:n}),[n,e]);return E.useEffect(function(){const o=document.createElement("div");return o.id=s,o.textContent=t,o.style.display="none",cm().appendChild(o),function(){const c=cm();c.contains(o)&&c.removeChild(o)}},[s,t]),s}var zm=ve.createContext(null);function yD(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),t}function Mte(){let e=null;function t(){return!!e}function n(l){return l===e}function s(l){e&&Pe();const c={abandon:l};return e=c,c}function i(){e||Pe(),e=null}function o(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:n,claim:s,release:i,tryAbandon:o}}function ld(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const Fte=9,Bte=13,Ww=27,xD=32,Ute=33,qte=34,Vte=35,$te=36,zte=37,Hte=38,Wte=39,Gte=40,Yte={[Bte]:!0,[Fte]:!0};var vD=e=>{Yte[e.keyCode]&&e.preventDefault()};const Hm=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(s=>`on${s}`in document)||e})(),bD=0,yE=5;function Kte(e,t){return Math.abs(t.x-e.x)>=yE||Math.abs(t.y-e.y)>=yE}const xE={type:"IDLE"};function Jte({cancel:e,completed:t,getPhase:n,setPhase:s}){return[{eventName:"mousemove",fn:i=>{const{button:o,clientX:l,clientY:c}=i;
856if(o!==bD)return;const d={x:l,y:c},h=n();if(h.type==="DRAGGING"){i.preventDefault(),h.actions.move(d);return}h.type!=="PENDING"&&Pe();const p=h.point;if(!Kte(p,d))return;i.preventDefault();const f=h.actions.fluidLift(d);s({type:"DRAGGING",actions:f})}},{eventName:"mouseup",fn:i=>{const o=n();if(o.type!=="DRAGGING"){e();return}i.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"mousedown",fn:i=>{n().type==="DRAGGING"&&i.preventDefault(),e()}},{eventName:"keydown",fn:i=>{if(n().type==="PENDING"){e();return}if(i.keyCode===Ww){i.preventDefault(),e();return}vD(i)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{n().type==="PENDING"&&e()}},{eventName:"webkitmouseforcedown",fn:i=>{const o=n();if(o.type==="IDLE"&&Pe(),o.actions.shouldRespectForcePress()){e();return}i.preventDefault()}},{eventName:Hm,fn:e}]}function Qte(e){const t=E.useRef(xE),n=E.useRef(No),s=bt(()=>({eventName:"mousedown",fn:function(f){if(f.defaultPrevented||f.button!==bD||f.ctrlKey||f.metaKey||f.shiftKey||f.altKey)return;const m=e.findClosestDraggableId(f);if(!m)return;const g=e.tryGetLock(m,l,{sourceEvent:f});if(!g)return;f.preventDefault();const j={x:f.clientX,y:f.clientY};n.current(),h(g,j)}}),[e]),i=bt(()=>({eventName:"webkitmouseforcewillbegin",fn:p=>{if(p.defaultPrevented)return;const f=e.findClosestDraggableId(p);if(!f)return;const m=e.findOptionsForDraggable(f);m&&(m.shouldRespectForcePress||e.canGetLock(f)&&p.preventDefault())}}),[e]),o=tt(function(){const f={passive:!1,capture:!0};n.current=Wr(window,[i,s],f)},[i,s]),l=tt(()=>{t.current.type!=="IDLE"&&(t.current=xE,n.current(),o())},[o]),c=tt(()=>{const p=t.current;l(),p.type==="DRAGGING"&&p.actions.cancel({shouldBlockNextClick:!0}),p.type==="PENDING"&&p.actions.abort()},[l]),d=tt(function(){const f={capture:!0,passive:!1},m=Jte({cancel:c,completed:l,getPhase:()=>t.current,setPhase:g=>{t.current=g}});n.current=Wr(window,m,f)},[c,l]),h=tt(function(f,m){t.current.type!=="IDLE"&&Pe(),t.current={type:"PENDING",point:m,actions:f},d()},[d]);Tr(function(){return o(),function(){n.current()}},[o])}function Xte(){}const Zte={[qte]:!0,[Ute]:!0,[$te]:!0,[Vte]:!0};function ene(e,t){function n(){t(),e.cancel()}function s(){t(),e.drop()}return[{eventName:"keydown",fn:i=>{if(i.keyCode===Ww){i.preventDefault(),n();return}if(i.keyCode===xD){i.preventDefault(),s();return}if(i.keyCode===Gte){i.preventDefault(),e.moveDown();return}if(i.keyCode===Hte){i.preventDefault(),e.moveUp();return}if(i.keyCode===Wte){i.preventDefault(),e.moveRight();return}if(i.keyCode===zte){i.preventDefault(),e.moveLeft();return}if(Zte[i.keyCode]){i.preventDefault();return}vD(i)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Hm,fn:n}]}function tne(e){const t=E.useRef(Xte),n=bt(()=>({eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==xD)return;const l=e.findClosestDraggableId(o);if(!l)return;const c=e.tryGetLock(l,p,{sourceEvent:o});if(!c)return;o.preventDefault();let d=!0;const h=c.snapLift();t.current();function p(){d||Pe(),d=!1,t.current(),s()}t.current=Wr(window,ene(h,p),{capture:!0,passive:!1})}}),[e]),s=tt(function(){const o={passive:!1,capture:!0};t.current=Wr(window,[n],o)},[n]);Tr(function(){return s(),function(){t.current()}},[s])}const By={type:"IDLE"},nne=120,rne=.15;function sne({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:n=>{n.preventDefault()}},{eventName:"keydown",fn:n=>{if(t().type!=="DRAGGING"){e();return}n.keyCode===Ww&&n.preventDefault(),e()}},{eventName:Hm,fn:e}]}function ine({cancel:e,completed:t,getPhase:n}){return[{eventName:"touchmove",options:{capture:!1},fn:s=>{const i=n();if(i.type!=="DRAGGING"){e();return}i.hasMoved=!0;const{clientX:o,clientY:l}=s.touches[0],c={x:o,y:l};s.preventDefault(),i.actions.move(c)}},{eventName:"touchend",fn:s=>{const i=n();if(i.type!=="DRAGGING"){e();return}s.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"touchcancel",fn:s=>{if(n().type!=="DRAGGING"){e();return}s.preventDefault(),e()}},{eventName:"touchforcechange",fn:s=>{const i=n();i.type==="IDLE"&&Pe();const o=s.touches[0];if(!o||!(o.force>=rne))return;const c=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){c&&e();return}
856if(c){if(i.hasMoved){s.preventDefault();return}e();return}s.preventDefault()}},{eventName:Hm,fn:e}]}function one(e){const t=E.useRef(By),n=E.useRef(No),s=tt(function(){return t.current},[]),i=tt(function(g){t.current=g},[]),o=bt(()=>({eventName:"touchstart",fn:function(g){if(g.defaultPrevented)return;const j=e.findClosestDraggableId(g);if(!j)return;const b=e.tryGetLock(j,c,{sourceEvent:g});if(!b)return;const x=g.touches[0],{clientX:v,clientY:N}=x,S={x:v,y:N};n.current(),f(b,S)}}),[e]),l=tt(function(){const g={capture:!0,passive:!1};n.current=Wr(window,[o],g)},[o]),c=tt(()=>{const m=t.current;m.type!=="IDLE"&&(m.type==="PENDING"&&clearTimeout(m.longPressTimerId),i(By),n.current(),l())},[l,i]),d=tt(()=>{const m=t.current;c(),m.type==="DRAGGING"&&m.actions.cancel({shouldBlockNextClick:!0}),m.type==="PENDING"&&m.actions.abort()},[c]),h=tt(function(){const g={capture:!0,passive:!1},j={cancel:d,completed:c,getPhase:s},b=Wr(window,ine(j),g),x=Wr(window,sne(j),g);n.current=function(){b(),x()}},[d,s,c]),p=tt(function(){const g=s();g.type!=="PENDING"&&Pe();const j=g.actions.fluidLift(g.point);i({type:"DRAGGING",actions:j,hasMoved:!1})},[s,i]),f=tt(function(g,j){s().type!=="IDLE"&&Pe();const b=setTimeout(p,nne);i({type:"PENDING",point:j,actions:g,longPressTimerId:b}),h()},[h,s,i,p]);Tr(function(){return l(),function(){n.current();const j=s();j.type==="PENDING"&&(clearTimeout(j.longPressTimerId),i(By))}},[s,l,i]),Tr(function(){return Wr(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const ane=["input","button","textarea","select","option","optgroup","video","audio"];function wD(e,t){if(t==null)return!1;if(ane.includes(t.tagName.toLowerCase()))return!0;const s=t.getAttribute("contenteditable");return s==="true"||s===""?!0:t===e?!1:wD(e,t.parentElement)}function lne(e,t){const n=t.target;return $m(n)?wD(e,n):!1}var cne=e=>ys(e.getBoundingClientRect()).center;function une(e){return e instanceof gD(e).Element}const dne=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(s=>s in Element.prototype)||e})();function jD(e,t){return e==null?null:e[dne](t)?e:jD(e.parentElement,t)}function fne(e,t){return e.closest?e.closest(t):jD(e,t)}function hne(e){return`[${ic.contextId}="${e}"]`}function mne(e,t){const n=t.target;if(!une(n))return null;const s=hne(e),i=fne(n,s);return!i||!$m(i)?null:i}function pne(e,t){const n=mne(e,t);return n?n.getAttribute(ic.draggableId):null}function gne(e,t){const n=`[${Ub.contextId}="${e}"]`,i=pD(document,n).find(o=>o.getAttribute(Ub.id)===t);return!i||!$m(i)?null:i}function yne(e){e.preventDefault()}function ah({expected:e,phase:t,isLockActive:n,shouldWarn:s}){return!(!n()||e!==t)}function ND({lockAPI:e,store:t,registry:n,draggableId:s}){if(e.isClaimed())return!1;const i=n.draggable.findById(s);return!(!i||!i.options.isEnabled||!dD(t.getState(),s))}function xne({lockAPI:e,contextId:t,store:n,registry:s,draggableId:i,forceSensorStop:o,sourceEvent:l}){if(!ND({lockAPI:e,store:n,registry:s,draggableId:i}))return null;const d=s.draggable.getById(i),h=gne(t,d.descriptor.id);if(!h||l&&!d.options.canDragInteractiveElements&&lne(h,l))return null;const p=e.claim(o||No);let f="PRE_DRAG";function m(){return d.options.shouldRespectForcePress}function g(){return e.isActive(p)}function j(k,O){ah({expected:k,phase:f,isLockActive:g,shouldWarn:!0})&&n.dispatch(O())}const b=j.bind(null,"DRAGGING");function x(k){function O(){e.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(O(),Pe()),n.dispatch(fee(k.liftActionArgs)),f="DRAGGING";function C(A,B={shouldBlockNextClick:!1}){if(k.cleanup(),B.shouldBlockNextClick){const I=Wr(window,[{eventName:"click",fn:yne,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(I)}O(),n.dispatch(rD({reason:A}))}return{isActive:()=>ah({expected:"DRAGGING",phase:f,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:m,drop:A=>C("DROP",A),cancel:A=>C("CANCEL",A),...k.actions}}function v(k){const O=nd(A=>{b(()=>nD({client:A}))});return{...x({liftActionArgs:{id:i,clientSelection:k,movementMode:"FLUID"},cleanup:()=>O.cancel(),actions:{move:O}}),move:O}}function N(){const k={moveUp:()=>b(wee),moveRight:()=>b(Nee),moveDown:()=>b(jee),moveLeft:()=>b(See)};return x({liftActionArgs:{id:i,clientSelection:cne(h),movementMode:"SNAP"}
856,cleanup:No,actions:k})}function S(){ah({expected:"PRE_DRAG",phase:f,isLockActive:g,shouldWarn:!0})&&e.release()}return{isActive:()=>ah({expected:"PRE_DRAG",phase:f,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:m,fluidLift:v,snapLift:N,abort:S}}const vne=[Qte,tne,one];function bne({contextId:e,store:t,registry:n,customSensors:s,enableDefaultSensors:i}){const o=[...i?vne:[],...s||[]],l=E.useState(()=>Mte())[0],c=tt(function(x,v){ld(x)&&!ld(v)&&l.tryAbandon()},[l]);Tr(function(){let x=t.getState();return t.subscribe(()=>{const N=t.getState();c(x,N),x=N})},[l,t,c]),Tr(()=>l.tryAbandon,[l.tryAbandon]);const d=tt(b=>ND({lockAPI:l,registry:n,store:t,draggableId:b}),[l,n,t]),h=tt((b,x,v)=>xne({lockAPI:l,registry:n,contextId:e,store:t,draggableId:b,forceSensorStop:x||null,sourceEvent:v&&v.sourceEvent?v.sourceEvent:null}),[e,l,n,t]),p=tt(b=>pne(e,b),[e]),f=tt(b=>{const x=n.draggable.findById(b);return x?x.options:null},[n.draggable]),m=tt(function(){l.isClaimed()&&(l.tryAbandon(),t.getState().phase!=="IDLE"&&t.dispatch(Mw()))},[l,t]),g=tt(()=>l.isClaimed(),[l]),j=bt(()=>({canGetLock:d,tryGetLock:h,findClosestDraggableId:p,findOptionsForDraggable:f,tryReleaseLock:m,isLockClaimed:g}),[d,h,p,f,m,g]);for(let b=0;b<o.length;b++)o[b](j)}const wne=e=>({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};Ga.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),jne=e=>({...ad,...e.autoScrollerOptions,durationDampening:{...ad.durationDampening,...e.autoScrollerOptions}});function xu(e){return e.current||Pe(),e.current}function Nne(e){const{contextId:t,setCallbacks:n,sensors:s,nonce:i,dragHandleUsageInstructions:o}=e,l=E.useRef(null),c=yD(e),d=tt(()=>wne(c.current),[c]),h=tt(()=>jne(c.current),[c]),p=Pte(t),f=Lte({contextId:t,text:o}),m=kte(t,i),g=tt(I=>{xu(l).dispatch(I)},[]),j=bt(()=>$k({publishWhileDragging:mee,updateDroppableScroll:gee,updateDroppableIsEnabled:yee,updateDroppableIsCombineEnabled:xee,collectionStarting:pee},g),[g]),b=Ate(),x=bt(()=>ste(b,j),[b,j]),v=bt(()=>wte({scrollWindow:ite,scrollDroppable:x.scrollDroppable,getAutoScrollerOptions:h,...$k({move:nD},g)}),[x.scrollDroppable,g,h]),N=Cte(t),S=bt(()=>ete({announce:p,autoScroller:v,dimensionMarshal:x,focusMarshal:N,getResponders:d,styleMarshal:m}),[p,v,x,N,d,m]);l.current=S;const w=tt(()=>{const I=xu(l);I.getState().phase!=="IDLE"&&I.dispatch(Mw())},[]),k=tt(()=>{const I=xu(l).getState();return I.phase==="DROP_ANIMATING"?!0:I.phase==="IDLE"?!1:I.isDragging},[]),O=bt(()=>({isDragging:k,tryAbort:w}),[k,w]);n(O);const C=tt(I=>dD(xu(l).getState(),I),[]),A=tt(()=>aa(xu(l).getState()),[]),B=bt(()=>({marshal:x,focus:N,contextId:t,canLift:C,isMovementAllowed:A,dragHandleUsageInstructionsId:f,registry:b}),[t,x,f,N,C,A,b]);return bne({contextId:t,store:S,registry:b,customSensors:s||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),E.useEffect(()=>w,[w]),ve.createElement(zm.Provider,{value:B},ve.createElement(HX,{context:zw,store:S},e.children))}function Sne(){return ve.useId()}function _ne(e){const t=Sne(),n=e.dragHandleUsageInstructions||Ah.dragHandleUsageInstructions;return ve.createElement(nZ,null,s=>ve.createElement(Nne,{nonce:e.nonce,contextId:t,setCallbacks:s,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const vE={dragging:5e3,dropAnimating:4500},kne=(e,t)=>t?Bu.drop(t.duration):e?Bu.snap:Bu.fluid,Ene=(e,t)=>
856{if(e)return t?od.opacity.drop:od.opacity.combining},Cne=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function Tne(e){const n=e.dimension.client,{offset:s,combineWith:i,dropping:o}=e,l=!!i,c=Cne(e),d=!!o,h=d?Fb.drop(s,l):Fb.moveTo(s);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:kne(c,o),transform:h,opacity:Ene(l,d),zIndex:d?vE.dropAnimating:vE.dragging,pointerEvents:"none"}}function Ane(e){return{transform:Fb.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function One(e){return e.type==="DRAGGING"?Tne(e):Ane(e)}function Rne(e,t,n=Sn){const s=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=O3(i,s),l=sm(o,n),c={client:o,tagName:t.tagName.toLowerCase(),display:s.display},d={x:o.marginBox.width,y:o.marginBox.height};return{descriptor:e,placeholder:c,displaceBy:d,client:o,page:l}}function Pne(e){const t=Hw("draggable"),{descriptor:n,registry:s,getDraggableRef:i,canDragInteractiveElements:o,shouldRespectForcePress:l,isEnabled:c}=e,d=bt(()=>({canDragInteractiveElements:o,shouldRespectForcePress:l,isEnabled:c}),[o,c,l]),h=tt(g=>{const j=i();return j||Pe(),Rne(n,j,g)},[n,i]),p=bt(()=>({uniqueId:t,descriptor:n,options:d,getDimension:h}),[n,h,d,t]),f=E.useRef(p),m=E.useRef(!0);Tr(()=>(s.draggable.register(f.current),()=>s.draggable.unregister(f.current)),[s.draggable]),Tr(()=>{if(m.current){m.current=!1;return}const g=f.current;f.current=p,s.draggable.update(p,g)},[p,s.draggable])}var Gw=ve.createContext(null);function um(e){const t=E.useContext(e);return t||Pe(),t}function Dne(e){e.preventDefault()}const Ine=e=>{const t=E.useRef(null),n=tt((O=null)=>{t.current=O},[]),s=tt(()=>t.current,[]),{contextId:i,dragHandleUsageInstructionsId:o,registry:l}=um(zm),{type:c,droppableId:d}=um(Gw),h=bt(()=>({id:e.draggableId,index:e.index,type:c,droppableId:d}),[e.draggableId,e.index,c,d]),{children:p,draggableId:f,isEnabled:m,shouldRespectForcePress:g,canDragInteractiveElements:j,isClone:b,mapped:x,dropAnimationFinished:v}=e;if(!b){const O=bt(()=>({descriptor:h,registry:l,getDraggableRef:s,canDragInteractiveElements:j,shouldRespectForcePress:g,isEnabled:m}),[h,l,s,j,g,m]);Pne(O)}const N=bt(()=>m?{tabIndex:0,role:"button","aria-describedby":o,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:Dne}:null,[i,o,f,m]),S=tt(O=>{x.type==="DRAGGING"&&x.dropping&&O.propertyName==="transform"&&Ga.flushSync(v)},[v,x]),w=bt(()=>{const O=One(x),C=x.type==="DRAGGING"&&x.dropping?S:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":f,style:O,onTransitionEnd:C},dragHandleProps:N}},[i,N,f,x,S,n]),k=bt(()=>({draggableId:h.id,type:h.type,source:{index:h.index,droppableId:h.droppableId}}),[h.droppableId,h.id,h.index,h.type]);return ve.createElement(ve.Fragment,null,p(w,x.snapshot,k))};var SD=(e,t)=>e===t,_D=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const Lne=e=>e.combine?e.combine.draggableId:null,Mne=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function Fne(){const e=jn((i,o)=>({x:i,y:o})),t=jn((i,o,l=null,c=null,d=null)=>({isDragging:!0,isClone:o,isDropAnimating:!!d,dropAnimation:d,mode:i,draggingOver:l,combineWith:c,combineTargetFor:null})),n=jn((i,o,l,c,d=null,h=null,p=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:d,combineWith:h,mode:o,offset:i,dimension:l,forceShouldAnimate:p,snapshot:t(o,c,d,h,null)}}));return(i,o)=>{if(ld(i)){if(i.critical.draggable.id!==o.draggableId)return null;const l=i.current.client.offset,c=i.dimensions.draggables[o.draggableId],d=Cr(i.impact),h=Mne(i.impact),p=i.forceShouldAnimate;return n(e(l.x,l.y),i.movementMode,c,o.isClone,d,h,p)}if(i.phase==="DROP_ANIMATING"){const l=i.completed;if(l.result.draggableId!==o.draggableId)return null;const c=o.isClone,d=i.dimensions.draggables[o.draggableId],h=l.result,p=h.mode,f=_D(h),m=Lne(h),j={duration:i.dropDuration,curve:Bw.drop,moveTo:i.newHomeClientOffset,opacity:m?od.opacity.drop:null,
856scale:m?od.scale.drop:null};return{mapped:{type:"DRAGGING",offset:i.newHomeClientOffset,dimension:d,dropping:j,draggingOver:f,combineWith:m,mode:p,forceShouldAnimate:null,snapshot:t(p,c,f,m,j)}}}return null}}function kD(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const Bne={mapped:{type:"SECONDARY",offset:Sn,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:kD(null)}};function Une(){const e=jn((l,c)=>({x:l,y:c})),t=jn(kD),n=jn((l,c=null,d)=>({mapped:{type:"SECONDARY",offset:l,combineTargetFor:c,shouldAnimateDisplacement:d,snapshot:t(c)}})),s=l=>l?n(Sn,l,!0):null,i=(l,c,d,h)=>{const p=d.displaced.visible[l],f=!!(h.inVirtualList&&h.effected[l]),m=Um(d),g=m&&m.draggableId===l?c:null;if(!p){if(!f)return s(g);if(d.displaced.invisible[l])return null;const x=wc(h.displacedBy.point),v=e(x.x,x.y);return n(v,g,!0)}if(f)return s(g);const j=d.displacedBy.point,b=e(j.x,j.y);return n(b,g,p.shouldAnimate)};return(l,c)=>{if(ld(l))return l.critical.draggable.id===c.draggableId?null:i(c.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){const d=l.completed;return d.result.draggableId===c.draggableId?null:i(c.draggableId,d.result.draggableId,d.impact,d.afterCritical)}return null}}const qne=()=>{const e=Fne(),t=Une();return(s,i)=>e(s,i)||t(s,i)||Bne},Vne={dropAnimationFinished:sD},$ne=T3(qne,Vne,null,{context:zw,areStatePropsEqual:SD})(Ine);function ED(e){return um(Gw).isUsingCloneFor===e.draggableId&&!e.isClone?null:ve.createElement($ne,e)}function zne(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,s=!!e.shouldRespectForcePress;return ve.createElement(ED,im({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:s}))}const CD=e=>t=>e===t,Hne=CD("scroll"),Wne=CD("auto"),bE=(e,t)=>t(e.overflowX)||t(e.overflowY),Gne=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return bE(n,Hne)||bE(n,Wne)},Yne=()=>!1,TD=e=>e==null?null:e===document.body?Yne()?e:null:e===document.documentElement?null:Gne(e)?e:TD(e.parentElement);var qb=e=>({x:e.scrollLeft,y:e.scrollTop});const AD=e=>e?window.getComputedStyle(e).position==="fixed"?!0:AD(e.parentElement):!1;var Kne=e=>{const t=TD(e),n=AD(e);return{closestScrollable:t,isFixedOnPage:n}},Jne=({descriptor:e,isEnabled:t,isCombineEnabled:n,isFixedOnPage:s,direction:i,client:o,page:l,closest:c})=>{const d=(()=>{if(!c)return null;const{scrollSize:m,client:g}=c,j=lD({scrollHeight:m.scrollHeight,scrollWidth:m.scrollWidth,height:g.paddingBox.height,width:g.paddingBox.width});return{pageMarginBox:c.page.marginBox,frameClient:g,scrollSize:m,shouldClipSubject:c.shouldClipSubject,scroll:{initial:c.scroll,current:c.scroll,max:j,diff:{value:Sn,displacement:Sn}}}})(),h=i==="vertical"?Rw:q3,p=rc({page:l,withPlaceholder:null,axis:h,frame:d});return{descriptor:e,isCombineEnabled:n,isFixedOnPage:s,axis:h,isEnabled:t,client:o,page:l,frame:d,subject:p}};const Qne=(e,t)=>{const n=R3(e);if(!t||e!==t)return n;const s=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,o=s+t.scrollHeight,l=i+t.scrollWidth,d=Cw({top:s,right:l,bottom:o,left:i},n.border);return Tw({borderBox:d,margin:n.margin,border:n.border,padding:n.padding})};var Xne=({ref:e,descriptor:t,env:n,windowScroll:s,direction:i,isDropDisabled:o,isCombine
856Enabled:l,shouldClipSubject:c})=>{const d=n.closestScrollable,h=Qne(e,d),p=sm(h,s),f=(()=>{if(!d)return null;const g=R3(d),j={scrollHeight:d.scrollHeight,scrollWidth:d.scrollWidth};return{client:g,page:sm(g,s),scroll:qb(d),scrollSize:j,shouldClipSubject:c}})();return Jne({descriptor:t,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:i,client:h,page:p,closest:f})};const Zne={passive:!1},ere={passive:!0};var wE=e=>e.shouldPublishImmediately?Zne:ere;const lh=e=>e&&e.env.closestScrollable||null;function tre(e){const t=E.useRef(null),n=um(zm),s=Hw("droppable"),{registry:i,marshal:o}=n,l=yD(e),c=bt(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),d=E.useRef(c),h=bt(()=>jn((w,k)=>{t.current||Pe();const O={x:w,y:k};o.updateDroppableScroll(c.id,O)}),[c.id,o]),p=tt(()=>{const w=t.current;return!w||!w.env.closestScrollable?Sn:qb(w.env.closestScrollable)},[]),f=tt(()=>{const w=p();h(w.x,w.y)},[p,h]),m=bt(()=>nd(f),[f]),g=tt(()=>{const w=t.current,k=lh(w);if(w&&k||Pe(),w.scrollOptions.shouldPublishImmediately){f();return}m()},[m,f]),j=tt((w,k)=>{t.current&&Pe();const O=l.current,C=O.getDroppableRef();C||Pe();const A=Kne(C),B={ref:C,descriptor:c,env:A,scrollOptions:k};t.current=B;const I=Xne({ref:C,descriptor:c,env:A,windowScroll:w,direction:O.direction,isDropDisabled:O.isDropDisabled,isCombineEnabled:O.isCombineEnabled,shouldClipSubject:!O.ignoreContainerClipping}),L=A.closestScrollable;return L&&(L.setAttribute(pE.contextId,n.contextId),L.addEventListener("scroll",g,wE(B.scrollOptions))),I},[n.contextId,c,g,l]),b=tt(()=>{const w=t.current,k=lh(w);return w&&k||Pe(),qb(k)},[]),x=tt(()=>{const w=t.current;w||Pe();const k=lh(w);t.current=null,k&&(m.cancel(),k.removeAttribute(pE.contextId),k.removeEventListener("scroll",g,wE(w.scrollOptions)))},[g,m]),v=tt(w=>{const k=t.current;k||Pe();const O=lh(k);O||Pe(),O.scrollTop+=w.y,O.scrollLeft+=w.x},[]),N=bt(()=>({getDimensionAndWatchScroll:j,getScrollWhileDragging:b,dragStopped:x,scroll:v}),[x,j,b,v]),S=bt(()=>({uniqueId:s,descriptor:c,callbacks:N}),[N,c,s]);Tr(()=>(d.current=S.descriptor,i.droppable.register(S),()=>{t.current&&x(),i.droppable.unregister(S)}),[N,c,x,S,o,i.droppable]),Tr(()=>{t.current&&o.updateDroppableIsEnabled(d.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Tr(()=>{t.current&&o.updateDroppableIsCombineEnabled(d.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Uy(){}const jE={width:0,height:0,margin:lZ},nre=({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>e||n==="close"?jE:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin},rre=({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>{const s=nre({isAnimatingOpenOnMount:e,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:s.width,height:s.height,marginTop:s.margin.top,marginRight:s.margin.right,marginBottom:s.margin.bottom,marginLeft:s.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:n!=="none"?Bu.placeholder:null}},sre=e=>{const t=E.useRef(null),n=tt(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:s,onTransitionEnd:i,onClose:o,contextId:l}=e,[c,d]=E.useState(e.animate==="open");E.useEffect(()=>c?s!=="open"?(n(),d(!1),Uy):t.current?Uy:(t.current=setTimeout(()=>{t.current=null,d(!1)}),n):Uy,[s,c,n]);const h=tt(f=>{f.propertyName==="height"&&(i(),s==="close"&&o())},[s,o,i]),p=rre({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return ve.createElement(e.placeholder.tagName,{style:p,"data-rfd-placeholder-context-id":l,onTransitionEnd:h,ref:e.innerRef})};var ire=ve.memo(sre);class ore extends ve.PureComponent{constructor(...t){super(...t),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}
856render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const are=e=>{const t=E.useContext(zm);t||Pe();const{contextId:n,isMovementAllowed:s}=t,i=E.useRef(null),o=E.useRef(null),{children:l,droppableId:c,type:d,mode:h,direction:p,ignoreContainerClipping:f,isDropDisabled:m,isCombineEnabled:g,snapshot:j,useClone:b,updateViewportMaxScroll:x,getContainerForClone:v}=e,N=tt(()=>i.current,[]),S=tt((L=null)=>{i.current=L},[]);tt(()=>o.current,[]);const w=tt((L=null)=>{o.current=L},[]),k=tt(()=>{s()&&x({maxScroll:uD()})},[s,x]);tre({droppableId:c,type:d,mode:h,direction:p,isDropDisabled:m,isCombineEnabled:g,ignoreContainerClipping:f,getDroppableRef:N});const O=bt(()=>ve.createElement(ore,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:L,data:D,animate:R})=>ve.createElement(ire,{placeholder:D,onClose:L,innerRef:w,animate:R,contextId:n,onTransitionEnd:k})),[n,k,e.placeholder,e.shouldAnimatePlaceholder,w]),C=bt(()=>({innerRef:S,placeholder:O,droppableProps:{"data-rfd-droppable-id":c,"data-rfd-droppable-context-id":n}}),[n,c,O,S]),A=b?b.dragging.draggableId:null,B=bt(()=>({droppableId:c,type:d,isUsingCloneFor:A}),[c,A,d]);function I(){if(!b)return null;const{dragging:L,render:D}=b,R=ve.createElement(ED,{draggableId:L.draggableId,index:L.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(U,$)=>D(U,$,L));return Kb.createPortal(R,v())}return ve.createElement(Gw.Provider,{value:B},l(C,j),I())};function lre(){return document.body||Pe(),document.body}const NE={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:lre},OD=e=>{let t={...e},n;for(n in NE)e[n]===void 0&&(t={...t,[n]:NE[n]});return t},qy=(e,t)=>e===t.droppable.type,SE=(e,t)=>t.draggables[e.draggable.id],cre=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=jn(o=>({draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}})),s=jn((o,l,c,d,h,p)=>{const f=h.descriptor.id;if(h.descriptor.droppableId===o){const j=p?{render:p,dragging:n(h.descriptor)}:null,b={isDraggingOver:c,draggingOverWith:c?f:null,draggingFromThisWith:f,isUsingPlaceholder:!0};return{placeholder:h.placeholder,shouldAnimatePlaceholder:!1,snapshot:b,useClone:j}}if(!l)return t;if(!d)return e;const g={isDraggingOver:c,draggingOverWith:f,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:h.placeholder,shouldAnimatePlaceholder:!0,snapshot:g,useClone:null}});return(o,l)=>{const c=OD(l),d=c.droppableId,h=c.type,p=!c.isDropDisabled,f=c.renderClone;if(ld(o)){const m=o.critical;if(!qy(h,m))return t;const g=SE(m,o.dimensions),j=Cr(o.impact)===d;return s(d,p,j,j,g,f)}if(o.phase==="DROP_ANIMATING"){const m=o.completed;if(!qy(h,m.critical))return t;const g=SE(m.critical,o.dimensions);return s(d,p,_D(m.result)===d,Cr(m.impact)===d,g,f)}if(o.phase==="IDLE"&&o.completed&&!o.shouldFlush){const m=o.completed;if(!qy(h,m.critical))return t;const g=Cr(m.impact)===d,j=!!(m.impact.at&&m.impact.at.type==="COMBINE"),b=m.critical.droppable.id===d;return g?j?e:t:b?e:t}return t}},ure={updateViewportMaxScroll:bee},dre=T3(cre,ure,(e,t,n)=>({...OD(n),...e,...t}),{context:zw,areStatePropsEqual:SD})(are);var fre=dre;const ch={name:"",title:"",slug:"",initials:"",pronouns:"",linkedin:"",bio:"",sort_order:99,photo:""};function hre(){const[e,t]=E.useState([]),[n,s]=E.useState(!0),[i,o]=E.useState(ch),[l,c]=E.useState(""),[d,h]=E.useState(!1),[p,f]=E.useState(!1),[m,g]=E.useState(null),[j,b]=E.useState(!1),[x,v]=E.useState(""),N=(R,U)=>o($=>({...$,[R]:U}));E.useEffect(()=>{S()},[]);const S=async()=>{s(!0);try{const R=await ge.entities.TeamMember.list("sort_order",100);t(R)}catch{Ne.error("Failed to load team members")}finally{s(!1)}},w=R=>{const U=R.target.value;o($=>({...$,name:U,initials:$.initials||U.split(" ").map(Y=>Y[0]).join("").toUpperCase().slice(0,2)}))},k=async R=>{var Y;const U=(Y=R.target.files)==null?void 0:Y[0];if(!U)return;h(!0);const{file_url:$}=await ge.integrations.Core.UploadFile({file:U});c($),h(!1),Ne.success("Photo uploaded")},O=()=>{o(ch),c(""),g(null),b(!1)},C=async R=>{if(R.preventDefault(),!i.name||!i.title||!i.slug){Ne.error("Name, title, and slug are required");return}f(!0);const U={...i,photo:l||i.photo||void 0,sort_order:Number(i.sort_order)||99};try{m?(await ge.entities.TeamMember.update(m,U),Ne.success(`${i.name} updated!`)):(await ge.entities.TeamMember.create(U),Ne.success(`${i.name} added to the team!`)),O(),S()}
856catch($){Ne.error($.message||"Failed to save team member")}finally{f(!1)}},A=R=>{o({...ch,...R}),c(R.photo||""),g(R.id),b(!0),window.scrollTo({top:0,behavior:"smooth"})},B=async R=>{const $=!(R.published!==!1);try{await ge.entities.TeamMember.update(R.id,{published:$}),t(Y=>Y.map(K=>K.id===R.id?{...K,published:$}:K)),Ne.success(`${R.name} is now ${$?"published":"unpublished"}`)}catch{Ne.error("Failed to update publish status")}},I=async R=>{if(confirm(`Delete ${R.name}? This cannot be undone.`))try{await ge.entities.TeamMember.delete(R.id),Ne.success(`${R.name} deleted`),S()}catch{Ne.error("Failed to delete")}},L=async R=>{if(!R.destination||R.source.index===R.destination.index)return;if(x){Ne.error("Clear the search before reordering");return}const U=Array.from(e),[$]=U.splice(R.source.index,1);U.splice(R.destination.index,0,$);const Y=U.map((K,Q)=>({...K,sort_order:Q+1}));t(Y);try{await ge.entities.TeamMember.bulkUpdate(Y.map(K=>({id:K.id,sort_order:K.sort_order}))),Ne.success("Team order updated")}catch{Ne.error("Failed to save order"),S()}},D=e.filter(R=>{var U,$;return!x||((U=R.name)==null?void 0:U.toLowerCase().includes(x.toLowerCase()))||(($=R.title)==null?void 0:$.toLowerCase().includes(x.toLowerCase()))});return r.jsxs("div",{className:"space-y-6",children:[j?r.jsxs(xt,{children:[r.jsx($n,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsxs(zn,{className:"flex items-center gap-2",children:[m?r.jsx(wa,{className:"w-5 h-5"}):r.jsx(ja,{className:"w-5 h-5"}),m?"Edit Team Member":"Add New Team Member"]}),r.jsx(Rr,{className:"mt-1",children:m?"Update the details below.":"New members appear on the Meet Our Team page."})]}),r.jsx(xe,{variant:"ghost",size:"icon",onClick:O,children:r.jsx(Ar,{className:"w-4 h-4"})})]})}),r.jsx(vt,{children:r.jsxs("form",{onSubmit:C,className:"space-y-5",children:[r.jsxs("div",{className:"flex items-center gap-5",children:[r.jsx("div",{className:"w-20 h-20 rounded-full bg-muted flex items-center justify-center overflow-hidden border border-border flex-shrink-0",children:l||i.photo?r.jsx("img",{src:l||i.photo,alt:"preview",className:"w-full h-full object-cover"}):r.jsx("span",{className:"text-2xl font-bold text-muted-foreground",children:i.initials||"?"})}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Profile Photo"}),r.jsxs("label",{className:"cursor-pointer inline-flex items-center gap-2 text-sm border border-border rounded-md px-3 py-2 hover:bg-muted transition-colors",children:[r.jsx(yd,{className:"w-4 h-4"}),d?"Uploading...":"Upload Photo",r.jsx("input",{type:"file",accept:"image/*",onChange:k,className:"hidden",disabled:d})]}),(l||i.photo)&&r.jsx("p",{className:"text-xs text-green-600 mt-1",children:"Photo uploaded ✓"})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Full Name *"}),r.jsx(Se,{value:i.name,onChange:w,placeholder:"e.g. Jane Smith",required:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Job Title *"}),r.jsx(Se,{value:i.title,onChange:R=>N("title",R.target.value),placeholder:"e.g. Senior Recruiting Partner",required:!0})]})]}),r.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"URL Slug *"}),r.jsx(Se,{value:i.slug,onChange:R=>N("slug",R.target.value),placeholder:"e.g. jane-smith",required:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Initials"}),r.jsx(Se,{value:i.initials,onChange:R=>N("initials",R.target.value),placeholder:"JS",maxLength:3})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Pronouns"}),r.jsx(Se,{value:i.pronouns,onChange:R=>N("pronouns",R.target.value),placeholder:"he / she / they"})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"LinkedIn URL"}),r.jsx(Se,{value:i.linkedin||"",onChange:R=>N("linkedin",R.target.value),placeholder:"https://linkedin.com/in/..."})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Sort Order"}),r.jsx(Se,{type:"number",value:i.sort_order,onChange:R=>N("sort_order",Number(R.target.value)),placeholder:"99"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Bio"}),r.jsx(Yt,{value:i.bio||"",onChange:R=>N("bio",R.target.value),placeholder:"Write the team member's bio here...",rows:8})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsxs(xe,{type:"submit",disabled:p||d,className:"gap-2",children:[m?r.jsx(wa,{className:"w-4 h-4"}):r.jsx(ja,{className:"w-4 h-4"}),p?"Saving...":m?"Update Member":"Add Team Member"]}),r.jsx(xe,{type:"button",variant:"outline",onClick:O,children:"Cancel"})]})]})})]}):r.jsxs(xe,{onClick:()=>{o(ch),c(""),g(null),b(!0)},className:"gap-2",children:[r.jsx(ja,{className:"w-4 h-4"})," Add New Team Member"]}),r.jsxs(xt,{children:[r.jsxs($n,{children:[r.jsxs(zn,{className:"flex items-center gap-2",children:[r.jsx(wn,{className:"w-5 h-5"})," Current Team Members"]}),r.jsx(Rr,{children:"Database team members — drag the grip handle to reorder, or edit/delete any member below."})]}),r.jsxs(vt,{children:[e.length>0&&r.jsxs("div",{className:"relative mb-4 max-w-sm",children:[r.jsx(Ha,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),r.jsx(Se,{placeholder:"Search members...",value:x,onChange:R=>v(R.target.value),className:"pl-10"})]}),n?r.jsxs("div",{className:"text-center py-8",children:[r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent roun
856ded-full animate-spin mx-auto mb-3"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading team members..."})]}):D.length===0?r.jsxs("div",{className:"text-center py-8",children:[r.jsx(wn,{className:"w-12 h-12 text-muted-foreground mx-auto mb-3"}),r.jsx("p",{className:"text-muted-foreground",children:x?"No members match your search.":'No team members in the database yet. Use "Add New Team Member" above to create one.'})]}):r.jsx(_ne,{onDragEnd:L,children:r.jsx(fre,{droppableId:"team-members",children:R=>r.jsxs("div",{ref:R.innerRef,...R.droppableProps,className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[D.map((U,$)=>r.jsx(zne,{draggableId:U.id,index:$,children:(Y,K)=>r.jsxs("div",{ref:Y.innerRef,...Y.draggableProps,className:`border border-border rounded-lg p-4 flex gap-3 bg-muted ${K.isDragging?"shadow-xl ring-2 ring-primary opacity-95 z-50":""}`,children:[r.jsx("div",{...Y.dragHandleProps,className:"flex items-center cursor-grab active:cursor-grabbing text-muted-foreground hover:text-foreground flex-shrink-0",children:r.jsx(bM,{className:"w-5 h-5"})}),r.jsx("div",{className:"w-14 h-14 rounded-full bg-muted flex items-center justify-center overflow-hidden flex-shrink-0",children:U.photo?r.jsx("img",{src:U.photo,alt:U.name,className:"w-full h-full object-cover"}):r.jsx("span",{className:"text-lg font-bold text-muted-foreground",children:U.initials||"?"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"font-semibold text-foreground truncate",children:U.name}),r.jsx("p",{className:"text-sm text-muted-foreground truncate",children:U.title}),U.linkedin&&r.jsx("a",{href:U.linkedin,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline",children:"LinkedIn"}),r.jsxs("div",{className:"flex items-center justify-between mt-2",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(xe,{variant:"outline",size:"sm",onClick:()=>A(U),className:"gap-1",children:[r.jsx(wa,{className:"w-3.5 h-3.5"})," Edit"]}),r.jsxs(xe,{variant:"outline",size:"sm",onClick:()=>I(U),className:"gap-1 text-destructive hover:text-destructive",children:[r.jsx(ws,{className:"w-3.5 h-3.5"})," Delete"]})]}),r.jsx("button",{onClick:()=>B(U),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors ${U.published===!1?"bg-muted":"bg-primary"}`,title:U.published===!1?"Unpublished — click to publish":"Published — click to unpublish","aria-label":U.published===!1?"Publish profile":"Unpublish profile",children:r.jsx("span",{className:`inline-block h-3.5 w-3.5 transform rounded-full bg-white shadow transition-transform ${U.published===!1?"translate-x-1":"translate-x-5"}`})})]}),r.jsx("p",{className:`text-xs mt-1.5 ${U.published===!1?"text-muted-foreground":"text-green-600"}`,children:U.published===!1?"Unpublished (hidden from team page)":"Published (visible on team page)"})]})]})},U.id)),R.placeholder]})})})]})]})]})}var Wm="Switch",[mre]=yc(Wm),[pre,gre]=mre(Wm),RD=E.forwardRef((e,t)=>{const{__scopeSwitch:n,name:s,checked:i,defaultChecked:o,required:l,disabled:c,value:d="on",onCheckedChange:h,form:p,...f}=e,[m,g]=E.useState(null),j=Ft(t,S=>g(S)),b=E.useRef(!1),x=m?p||!!m.closest("form"):!0,[v,N]=Zu({prop:i,defaultProp:o??!1,onChange:h,caller:Wm});return r.jsxs(pre,{scope:n,checked:v,disabled:c,children:[r.jsx(St.button,{type:"button",role:"switch","aria-checked":v,"aria-required":l,"data-state":LD(v),"data-disabled":c?"":void 0,disabled:c,value:d,...f,ref:j,onClick:At(e.onClick,S=>{N(w=>!w),x&&(b.current=S.isPropagationStopped(),b.current||S.stopPropagation())})}),x&&r.jsx(ID,{control:m,bubbles:!b.current,name:s,value:d,checked:v,required:l,disabled:c,form:p,style:{transform:"translateX(-100%)"}})]})});RD.displayName=Wm;var PD="SwitchThumb",DD=E.forwardRef((e,t)=>{const{__scopeSwitch:n,...s}=e,i=gre(PD,n);return r.jsx(St.span,{"data-state":LD(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t})});DD.displayName=PD;var yre="SwitchBubbleInput",ID=E.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:s=!0,...i},o)=>{const l=E.useRef(null),c=Ft(l,o),d=Nw(n),h=bw(t);return E.useEffect(()=>{const p=l.current;
856if(!p)return;const f=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(f,"checked").set;if(d!==n&&g){const j=new Event("click",{bubbles:s});g.call(p,n),p.dispatchEvent(j)}},[d,n,s]),r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:c,style:{...i.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ID.displayName=yre;function LD(e){return e?"checked":"unchecked"}var MD=RD,xre=DD;const Vb=E.forwardRef(({className:e,...t},n)=>r.jsx(MD,{className:ut("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:r.jsx(xre,{className:ut("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Vb.displayName=MD.displayName;var Vy,_E;function vre(){if(_E)return Vy;_E=1;function e(){this.__data__=[],this.size=0}return Vy=e,Vy}var $y,kE;function FD(){if(kE)return $y;kE=1;function e(t,n){return t===n||t!==t&&n!==n}return $y=e,$y}var zy,EE;function Gm(){if(EE)return zy;EE=1;var e=FD();function t(n,s){for(var i=n.length;i--;)if(e(n[i][0],s))return i;return-1}return zy=t,zy}var Hy,CE;function bre(){if(CE)return Hy;CE=1;var e=Gm(),t=Array.prototype,n=t.splice;function s(i){var o=this.__data__,l=e(o,i);if(l<0)return!1;var c=o.length-1;return l==c?o.pop():n.call(o,l,1),--this.size,!0}return Hy=s,Hy}var Wy,TE;function wre(){if(TE)return Wy;TE=1;var e=Gm();function t(n){var s=this.__data__,i=e(s,n);return i<0?void 0:s[i][1]}return Wy=t,Wy}var Gy,AE;function jre(){if(AE)return Gy;AE=1;var e=Gm();function t(n){return e(this.__data__,n)>-1}return Gy=t,Gy}var Yy,OE;function Nre(){if(OE)return Yy;OE=1;var e=Gm();function t(n,s){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,s])):i[o][1]=s,this}return Yy=t,Yy}var Ky,RE;function Ym(){if(RE)return Ky;RE=1;var e=vre(),t=bre(),n=wre(),s=jre(),i=Nre();function o(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var h=l[c];this.set(h[0],h[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=s,o.prototype.set=i,Ky=o,Ky}var Jy,PE;function Sre(){if(PE)return Jy;PE=1;var e=Ym();function t(){this.__data__=new e,this.size=0}return Jy=t,Jy}var Qy,DE;function _re(){if(DE)return Qy;DE=1;function e(t){var n=this.__data__,s=n.delete(t);return this.size=n.size,s}return Qy=e,Qy}var Xy,IE;function kre(){if(IE)return Xy;IE=1;function e(t){return this.__data__.get(t)}return Xy=e,Xy}var Zy,LE;function Ere(){if(LE)return Zy;LE=1;function e(t){return this.__data__.has(t)}return Zy=e,Zy}var ex,ME;function BD(){if(ME)return ex;ME=1;var e=typeof Bf=="object"&&Bf&&Bf.Object===Object&&Bf;return ex=e,ex}var tx,FE;function Ei(){if(FE)return tx;FE=1;var e=BD(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return tx=n,tx}var nx,BE;function Yw(){if(BE)return nx;BE=1;var e=Ei(),t=e.Symbol;return nx=t,nx}var rx,UE;function Cre(){if(UE)return rx;UE=1;var e=Yw(),t=Object.prototype,n=t.hasOwnProperty,s=t.toString,i=e?e.toStringTag:void 0;function o(l){var c=n.call(l,i),d=l[i];try{l[i]=void 0;var h=!0}catch{}var p=s.call(l);return h&&(c?l[i]=d:delete l[i]),p}return rx=o,rx}var sx,qE;function Tre(){if(qE)return sx;qE=1;var e=Object.prototype,t=e.toString;function n(s){return t.call(s)}return sx=n,sx}var ix,VE;function Km(){if(VE)return ix;VE=1;var e=Yw(),t=Cre(),n=Tre(),s="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function l(c){return c==null?c===void 0?i:s:o&&o in Object(c)?t(c):n(c)}return ix=l,ix}var ox,$E;function UD(){if($E)return ox;$E=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ox=e,ox}var ax,zE;function qD(){if(zE)return ax;zE=1;var e=Km(),t=UD(),n="[object AsyncFunction]",s="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function l(c){if(!t(c))return!1;var d=e(c);return d==s||d==i||d==n||d==o}return ax=l,ax}var lx,HE;function Are(){if(HE)return lx;HE=1;
vendor: 7,793 bytes, line 856
856var e=Ei(),t=e["__core-js_shared__"];return lx=t,lx}var cx,WE;function Ore(){if(WE)return cx;WE=1;var e=Are(),t=(function(){var s=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""})();function n(s){return!!t&&t in s}return cx=n,cx}var ux,GE;function VD(){if(GE)return ux;GE=1;var e=Function.prototype,t=e.toString;function n(s){if(s!=null){try{return t.call(s)}catch{}try{return s+""}catch{}}return""}return ux=n,ux}var dx,YE;function Rre(){if(YE)return dx;YE=1;var e=qD(),t=Ore(),n=UD(),s=VD(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,d=l.toString,h=c.hasOwnProperty,p=RegExp("^"+d.call(h).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(m){if(!n(m)||t(m))return!1;var g=e(m)?p:o;return g.test(s(m))}return dx=f,dx}var fx,KE;function Pre(){if(KE)return fx;KE=1;function e(t,n){return t==null?void 0:t[n]}return fx=e,fx}var hx,JE;function Sc(){if(JE)return hx;JE=1;var e=Rre(),t=Pre();function n(s,i){var o=t(s,i);return e(o)?o:void 0}return hx=n,hx}var mx,QE;function Kw(){if(QE)return mx;QE=1;var e=Sc(),t=Ei(),n=e(t,"Map");return mx=n,mx}var px,XE;function Jm(){if(XE)return px;XE=1;var e=Sc(),t=e(Object,"create");return px=t,px}var gx,ZE;function Dre(){if(ZE)return gx;ZE=1;var e=Jm();function t(){this.__data__=e?e(null):{},this.size=0}return gx=t,gx}var yx,eC;function Ire(){if(eC)return yx;eC=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return yx=e,yx}var xx,tC;function Lre(){if(tC)return xx;tC=1;var e=Jm(),t="__lodash_hash_undefined__",n=Object.prototype,s=n.hasOwnProperty;function i(o){var l=this.__data__;if(e){var c=l[o];return c===t?void 0:c}return s.call(l,o)?l[o]:void 0}return xx=i,xx}var vx,nC;function Mre(){if(nC)return vx;nC=1;var e=Jm(),t=Object.prototype,n=t.hasOwnProperty;function s(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return vx=s,vx}var bx,rC;function Fre(){if(rC)return bx;rC=1;var e=Jm(),t="__lodash_hash_undefined__";function n(s,i){var o=this.__data__;return this.size+=this.has(s)?0:1,o[s]=e&&i===void 0?t:i,this}return bx=n,bx}var wx,sC;function Bre(){if(sC)return wx;sC=1;var e=Dre(),t=Ire(),n=Lre(),s=Mre(),i=Fre();function o(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var h=l[c];this.set(h[0],h[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=s,o.prototype.set=i,wx=o,wx}var jx,iC;function Ure(){if(iC)return jx;iC=1;var e=Bre(),t=Ym(),n=Kw();function s(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return jx=s,jx}var Nx,oC;function qre(){if(oC)return Nx;oC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Nx=e,Nx}var Sx,aC;function Qm(){if(aC)return Sx;aC=1;var e=qre();function t(n,s){var i=n.__data__;return e(s)?i[typeof s=="string"?"string":"hash"]:i.map}return Sx=t,Sx}var _x,lC;function Vre(){if(lC)return _x;lC=1;var e=Qm();function t(n){var s=e(this,n).delete(n);return this.size-=s?1:0,s}return _x=t,_x}var kx,cC;function $re(){if(cC)return kx;cC=1;var e=Qm();function t(n){return e(this,n).get(n)}return kx=t,kx}var Ex,uC;function zre(){if(uC)return Ex;uC=1;var e=Qm();function t(n){return e(this,n).has(n)}return Ex=t,Ex}var Cx,dC;function Hre(){if(dC)return Cx;dC=1;var e=Qm();function t(n,s){var i=e(this,n),o=i.size;return i.set(n,s),this.size+=i.size==o?0:1,this}return Cx=t,Cx}var Tx,fC;function $D(){if(fC)return Tx;fC=1;var e=Ure(),t=Vre(),n=$re(),s=zre(),i=Hre();function o(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var h=l[c];this.set(h[0],h[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=s,o.prototype.set=i,Tx=o,Tx}var Ax,hC;function Wre(){if(hC)return Ax;hC=1;var e=Ym(),t=Kw(),n=$D(),s=200;function i(o,l){var c=this.__data__;if(c instanceof e){var d=c.__data__;if(!t||d.length<s-1)return d.push([o,l]),this.size=++c.size,this;c=this.__data__=new n(d)}return c.set(o,l),this.size=c.size,this}return Ax=i,Ax}var Ox,mC;function Gre(){if(mC)return Ox;mC=1;var e=Ym(),t=Sre(),n=_re(),s=kre(),i=Ere(),o=Wre();function l(c){var d=this.__data__=new e(c);this.size=d.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=s,l.prototype.has=i,l.prototype.set=o,Ox=l,Ox}var Rx,pC;function Yre(){if(pC)return Rx;pC=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Rx=t,Rx}var Px,gC;function Kre(){if(gC)return Px;gC=1;function e(t){return this.__data__.has(t)}return Px=e,Px}var Dx,yC;function Jre(){if(yC)return Dx;yC=1;var e=$D(),t=Yre(),n=Kre();function s(i){var o=-1,l=i==null?0:i.length;for(this.__data__=new e;++o<l;)this.add(i[o])}return s.prototype.add=s.prototype.push=t,s.prototype.has=n,Dx=s,Dx}var Ix,xC;function Qre(){if(xC)return Ix;xC=1;function e(t,n){for(var s=-1,i=t==null?0:t.length;++s<i;)if(n(t[s],s,t))return!0;return!1}return Ix=e,Ix}var Lx,vC;function Xre(){if(vC)return Lx;vC=1;function e(t,n){return t.has(n)}return Lx=e,Lx}var Mx,bC;function zD(){if(bC)return Mx;bC=1;var e=Jre(),t=Qre(),n=Xre(),s=1,i=2;function o(l,c,d,h,p,f){var m=d&s,g=l.length,j=c.length;if(g!=j&&!(m&&j>g))return!1;var b=f.get(l),x=f.get(c);if(b&&x)return b==c&&x==l;var v=-1,N=!0,S=d&i?new e:void 0;for(f.set(l,c),f.set(c,l);++v<g;){var w=l[v],k=c[v];if(h)var O=m?h(k,w,v,c,l,f):h(w,k,v,l,c,f);if(O!==void 0){if(O)continue;N=!1;break}if(S){if(!t(c,function(C,A){if(!n(S,A)&&(w===C||p(w,C,d,h,f)))return S.push(A)})){N=!1;break}}else if(!(w===k||p(w,k,d,h,f))){N=!1;break}}return f.delete(l),f.delete(c),N}return Mx=o,Mx}var Fx,wC;function Zre(){if(wC)return Fx;wC=1;var e=Ei(),t=e.Uint8Array;return Fx=t,Fx}var Bx,jC;function ese(){if(jC)return Bx;jC=1;function e(t){var n=-1,s=Array(t.size);return t.forEach(function(i,o){s[++n]=[o,i]}),s}return Bx=e,Bx}var Ux,NC;function tse(){if(NC)return Ux;NC=1;function e(t){var n=-1,s=Array(t.size);return t.forEach(function(i){s[++n]=i}),s}return Ux=e,Ux}var qx,SC;function nse(){if(SC)return qx;SC=1;var e=Yw(),t=Zre(),n=FD(),s=zD(),i=ese(),o=tse(),l=1,c=2,d="[object Boolean]",h="[object Date]",p="[object Error]",f="[object Map]",m="[object Number]",g="[object RegExp]",j="[object Set]",b="[object String]",x="[object Symbol]",v="[object ArrayBuffer]",N="[object DataView]",S=e?e.prototype:void 0,w=S?S.valueOf:void 0;function k(O,C,A,B,I,L,D){switch(A){case N:if(O.byteLength!=C.byteLength||O.byteOffset!=C.byteOffset)return!1;O=O.buffer,C=C.buffer;case v:return!(O.byteLength!=C.byteLength||!L(new t(O),new t(C)));case d:case h:case m:return n(+O,+C);case p:return O.name==C.name&&O.message==C.message;case g:case b:return O==C+"";case f:var R=i;case j:var U=B&l;if(R||(R=o),O.size!=C.size&&!U)return!1;var $=D.get(O);if($)return $==C;B|=c,D.set(O,C);var Y=s(R(O),R(C),B,I,L,D);return D.delete(O),Y;case x:if(w)return w.call(O)==w.call(C)}return!1}return qx=k,qx}var Vx,_C;function rse(){if(_C)return Vx;_C=1;function e(t,n){for(var s=-1,i=n.length,o=t.length;++s<i;)t[o+s]=n[s];return t}return Vx=e,Vx}var $x,kC;function Jw(){if(kC)return $x;kC=1;var e=Array.isArray;return $x=e,$x}var zx,EC;function sse(){if(EC)return zx;EC=1;var e=rse(),t=Jw();function n(s,i,o){var l=i(s);return t(s)?l:e(l,o(s))}return zx=n,zx}var Hx,CC;function ise(){if(CC)return Hx;CC=1;function e(t,n){for(var s=-1,i=t==null?0:t.length,o=0,l=[];++s<i;){var c=t[s];n(c,s,t)&&(l[o++]=c)}return l}return Hx=e,Hx}var Wx,TC;function ose(){if(TC)return Wx;TC=1;function e(){return[]}return Wx=e,Wx}var Gx,AC;function ase(){if(AC)return Gx;AC=1;var e=ise(),t=ose(),n=Object.prototype,s=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(l){return l==null?[]:(l=Object(l),e(i(l),function(c){return s.call(l,c)}))}:t;return Gx=o,Gx}var Yx,OC;
vendor: 4,472 bytes, line 856
856function lse(){if(OC)return Yx;OC=1;function e(t,n){for(var s=-1,i=Array(t);++s<t;)i[s]=n(s);return i}return Yx=e,Yx}var Kx,RC;function Xm(){if(RC)return Kx;RC=1;function e(t){return t!=null&&typeof t=="object"}return Kx=e,Kx}var Jx,PC;function cse(){if(PC)return Jx;PC=1;var e=Km(),t=Xm(),n="[object Arguments]";function s(i){return t(i)&&e(i)==n}return Jx=s,Jx}var Qx,DC;function use(){if(DC)return Qx;DC=1;var e=cse(),t=Xm(),n=Object.prototype,s=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(l){return t(l)&&s.call(l,"callee")&&!i.call(l,"callee")};return Qx=o,Qx}var Cu={exports:{}},Xx,IC;function dse(){if(IC)return Xx;IC=1;function e(){return!1}return Xx=e,Xx}Cu.exports;var LC;function HD(){return LC||(LC=1,(function(e,t){var n=Ei(),s=dse(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===i,c=l?n.Buffer:void 0,d=c?c.isBuffer:void 0,h=d||s;e.exports=h})(Cu,Cu.exports)),Cu.exports}var Zx,MC;function fse(){if(MC)return Zx;MC=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(s,i){var o=typeof s;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(s))&&s>-1&&s%1==0&&s<i}return Zx=n,Zx}var ev,FC;function WD(){if(FC)return ev;FC=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return ev=t,ev}var tv,BC;function hse(){if(BC)return tv;BC=1;var e=Km(),t=WD(),n=Xm(),s="[object Arguments]",i="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",f="[object Object]",m="[object RegExp]",g="[object Set]",j="[object String]",b="[object WeakMap]",x="[object ArrayBuffer]",v="[object DataView]",N="[object Float32Array]",S="[object Float64Array]",w="[object Int8Array]",k="[object Int16Array]",O="[object Int32Array]",C="[object Uint8Array]",A="[object Uint8ClampedArray]",B="[object Uint16Array]",I="[object Uint32Array]",L={};L[N]=L[S]=L[w]=L[k]=L[O]=L[C]=L[A]=L[B]=L[I]=!0,L[s]=L[i]=L[x]=L[o]=L[v]=L[l]=L[c]=L[d]=L[h]=L[p]=L[f]=L[m]=L[g]=L[j]=L[b]=!1;function D(R){return n(R)&&t(R.length)&&!!L[e(R)]}return tv=D,tv}var nv,UC;function mse(){if(UC)return nv;UC=1;function e(t){return function(n){return t(n)}}return nv=e,nv}var Tu={exports:{}};Tu.exports;var qC;function pse(){return qC||(qC=1,(function(e,t){var n=BD(),s=t&&!t.nodeType&&t,i=s&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===s,l=o&&n.process,c=(function(){try{var d=i&&i.require&&i.require("util").types;return d||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(Tu,Tu.exports)),Tu.exports}var rv,VC;function GD(){if(VC)return rv;VC=1;var e=hse(),t=mse(),n=pse(),s=n&&n.isTypedArray,i=s?t(s):e;return rv=i,rv}var sv,$C;function gse(){if($C)return sv;$C=1;var e=lse(),t=use(),n=Jw(),s=HD(),i=fse(),o=GD(),l=Object.prototype,c=l.hasOwnProperty;function d(h,p){var f=n(h),m=!f&&t(h),g=!f&&!m&&s(h),j=!f&&!m&&!g&&o(h),b=f||m||g||j,x=b?e(h.length,String):[],v=x.length;for(var N in h)(p||c.call(h,N))&&!(b&&(N=="length"||g&&(N=="offset"||N=="parent")||j&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||i(N,v)))&&x.push(N);return x}return sv=d,sv}var iv,zC;function yse(){if(zC)return iv;zC=1;var e=Object.prototype;function t(n){var s=n&&n.constructor,i=typeof s=="function"&&s.prototype||e;return n===i}return iv=t,iv}var ov,HC;function xse(){if(HC)return ov;HC=1;function e(t,n){return function(s){return t(n(s))}}return ov=e,ov}var av,WC;function vse(){if(WC)return av;WC=1;var e=xse(),t=e(Object.keys,Object);return av=t,av}var lv,GC;function bse(){if(GC)return lv;GC=1;var e=yse(),t=vse(),n=Object.prototype,s=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var l=[];for(var c in Object(o))s.call(o,c)&&c!="constructor"&&l.push(c);return l}return lv=i,lv}var cv,YC;function wse(){if(YC)return cv;YC=1;var e=qD(),t=WD();function n(s){return s!=null&&t(s.length)&&!e(s)}return cv=n,cv}var uv,KC;function jse(){if(KC)return uv;KC=1;var e=gse(),t=bse(),n=wse();function s(i){return n(i)?e(i):t(i)}return uv=s,uv}var dv,JC;function Nse(){if(JC)return dv;JC=1;var e=sse(),t=ase(),n=jse();function s(i){return e(i,n,t)}return dv=s,dv}var fv,QC;function Sse(){if(QC)return fv;QC=1;var e=Nse(),t=1,n=Object.prototype,s=n.hasOwnProperty;function i(o,l,c,d,h,p){var f=c&t,m=e(o),g=m.length,j=e(l),b=j.length;if(g!=b&&!f)return!1;for(var x=g;x--;){var v=m[x];if(!(f?v in l:s.call(l,v)))return!1}var N=p.get(o),S=p.get(l);if(N&&S)return N==l&&S==o;var w=!0;p.set(o,l),p.set(l,o);for(var k=f;++x<g;){v=m[x];var O=o[v],C=l[v];
vendor: 1,784 bytes, line 856
856if(d)var A=f?d(C,O,v,l,o,p):d(O,C,v,o,l,p);if(!(A===void 0?O===C||h(O,C,c,d,p):A)){w=!1;break}k||(k=v=="constructor")}if(w&&!k){var B=o.constructor,I=l.constructor;B!=I&&"constructor"in o&&"constructor"in l&&!(typeof B=="function"&&B instanceof B&&typeof I=="function"&&I instanceof I)&&(w=!1)}return p.delete(o),p.delete(l),w}return fv=i,fv}var hv,XC;function _se(){if(XC)return hv;XC=1;var e=Sc(),t=Ei(),n=e(t,"DataView");return hv=n,hv}var mv,ZC;function kse(){if(ZC)return mv;ZC=1;var e=Sc(),t=Ei(),n=e(t,"Promise");return mv=n,mv}var pv,eT;function Ese(){if(eT)return pv;eT=1;var e=Sc(),t=Ei(),n=e(t,"Set");return pv=n,pv}var gv,tT;function Cse(){if(tT)return gv;tT=1;var e=Sc(),t=Ei(),n=e(t,"WeakMap");return gv=n,gv}var yv,nT;function Tse(){if(nT)return yv;nT=1;var e=_se(),t=Kw(),n=kse(),s=Ese(),i=Cse(),o=Km(),l=VD(),c="[object Map]",d="[object Object]",h="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",g=l(e),j=l(t),b=l(n),x=l(s),v=l(i),N=o;return(e&&N(new e(new ArrayBuffer(1)))!=m||t&&N(new t)!=c||n&&N(n.resolve())!=h||s&&N(new s)!=p||i&&N(new i)!=f)&&(N=function(S){var w=o(S),k=w==d?S.constructor:void 0,O=k?l(k):"";if(O)switch(O){case g:return m;case j:return c;case b:return h;case x:return p;case v:return f}return w}),yv=N,yv}var xv,rT;function Ase(){if(rT)return xv;rT=1;var e=Gre(),t=zD(),n=nse(),s=Sse(),i=Tse(),o=Jw(),l=HD(),c=GD(),d=1,h="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function j(b,x,v,N,S,w){var k=o(b),O=o(x),C=k?p:i(b),A=O?p:i(x);C=C==h?f:C,A=A==h?f:A;var B=C==f,I=A==f,L=C==A;if(L&&l(b)){if(!l(x))return!1;k=!0,B=!1}if(L&&!B)return w||(w=new e),k||c(b)?t(b,x,v,N,S,w):n(b,x,C,v,N,S,w);if(!(v&d)){var D=B&&g.call(b,"__wrapped__"),R=I&&g.call(x,"__wrapped__");
vendor: 40,408 bytes, lines 856-874
856if(D||R){var U=D?b.value():b,$=R?x.value():x;return w||(w=new e),S(U,$,v,N,w)}}return L?(w||(w=new e),s(b,x,v,N,S,w)):!1}return xv=j,xv}var vv,sT;function Ose(){if(sT)return vv;sT=1;var e=Ase(),t=Xm();function n(s,i,o,l,c){return s===i?!0:s==null||i==null||!t(s)&&!t(i)?s!==s&&i!==i:e(s,i,o,l,n,c)}return vv=n,vv}var bv,iT;function Rse(){if(iT)return bv;iT=1;var e=Ose();function t(n,s){return e(n,s)}return bv=t,bv}var Oh={exports:{}};/*!
857 * Quill Editor v1.3.7
858 * https://quilljs.com/
859 * Copyright (c) 2014, Jason Chen
860 * Copyright (c) 2013, salesforce.com
861 */var Pse=Oh.exports,oT;function Dse(){return oT||(oT=1,(function(e,t){(function(s,i){e.exports=i()})(typeof self<"u"?self:Pse,function(){return(function(n){var s={};function i(o){if(s[o])return s[o].exports;var l=s[o]={i:o,l:!1,exports:{}};return n[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=n,i.c=s,i.d=function(o,l,c){i.o(o,l)||Object.defineProperty(o,l,{configurable:!1,enumerable:!0,get:c})},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="",i(i.s=109)})([(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=i(17),l=i(18),c=i(19),d=i(45),h=i(46),p=i(47),f=i(48),m=i(49),g=i(12),j=i(32),b=i(33),x=i(31),v=i(1),N={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:o.default,Format:l.default,Leaf:c.default,Embed:f.default,Scroll:d.default,Block:p.default,Inline:h.default,Text:m.default,Attributor:{Attribute:g.default,Class:j.default,Style:b.default,Store:x.default}};s.default=N}),(function(n,s,i){var o=this&&this.__extends||(function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,N){v.__proto__=N}||function(v,N){for(var S in N)N.hasOwnProperty(S)&&(v[S]=N[S])};return function(v,N){x(v,N);function S(){this.constructor=v}v.prototype=N===null?Object.create(N):(S.prototype=N.prototype,new S)}})();Object.defineProperty(s,"__esModule",{value:!0});var l=(function(x){o(v,x);function v(N){var S=this;return N="[Parchment] "+N,S=x.call(this,N)||this,S.message=N,S.name=S.constructor.name,S}return v})(Error);s.ParchmentError=l;var c={},d={},h={},p={};s.DATA_KEY="__blot";var f;(function(x){x[x.TYPE=3]="TYPE",x[x.LEVEL=12]="LEVEL",x[x.ATTRIBUTE=13]="ATTRIBUTE",x[x.BLOT=14]="BLOT",x[x.INLINE=7]="INLINE",x[x.BLOCK=11]="BLOCK",x[x.BLOCK_BLOT=10]="BLOCK_BLOT",x[x.INLINE_BLOT=6]="INLINE_BLOT",x[x.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",x[x.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",x[x.ANY=15]="ANY"})(f=s.Scope||(s.Scope={}));function m(x,v){var N=j(x);if(N==null)throw new l("Unable to create "+x+" blot");var S=N,w=x instanceof Node||x.nodeType===Node.TEXT_NODE?x:S.create(v);return new S(w,v)}s.create=m;function g(x,v){return v===void 0&&(v=!1),x==null?null:x[s.DATA_KEY]!=null?x[s.DATA_KEY].blot:v?g(x.parentNode,v):null}s.find=g;function j(x,v){v===void 0&&(v=f.ANY);var N;if(typeof x=="string")N=p[x]||c[x];else if(x instanceof Text||x.nodeType===Node.TEXT_NODE)N=p.text;else if(typeof x=="number")x&f.LEVEL&f.BLOCK?N=p.block:x&f.LEVEL&f.INLINE&&(N=p.inline);else if(x instanceof HTMLElement){var S=(x.getAttribute("class")||"").split(/\s+/);for(var w in S)if(N=d[S[w]],N)break;N=N||h[x.tagName]}return N==null?null:v&f.LEVEL&N.scope&&v&f.TYPE&N.scope?N:null}s.query=j;function b(){for(var x=[],v=0;v<arguments.length;v++)x[v]=arguments[v];if(x.length>1)return x.map(function(w){return b(w)});var N=x[0];if(typeof N.blotName!="string"&&typeof N.attrName!="string")throw new l("Invalid definition");if(N.blotName==="abstract")throw new l("Cannot register abstract class");if(p[N.blotName||N.attrName]=N,typeof N.keyName=="string")c[N.keyName]=N;else if(N.className!=null&&(d[N.className]=N),N.tagName!=null){Array.isArray(N.tagName)?N.tagName=N.tagName.map(function(w){return w.toUpperCase()}):N.tagName=N.tagName.toUpperCase();var S=Array.isArray(N.tagName)?N.tagName:[N.tagName];S.forEach(function(w){(h[w]==null||N.className==null)&&(h[w]=N)})}return N}s.register=b}),(function(n,s,i){var o=i(51),l=i(11),c=i(3),d=i(20),h="\0",p=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};p.prototype.insert=function(f,m){var g={};return f.length===0?this:(g.insert=f,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(g.attributes=m),this.push(g))},p.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},p.prototype.retain=function(f,m){if(f<=0)return this;var g={retain:f};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(g.attributes=m),this.push(g)},p.prototype.push=function(f){var m=this.ops.length,g=this.ops[m-1];if(f=c(!0,{},f),typeof g=="object"){if(typeof f.delete=="number"&&typeof g.delete=="number")return this.ops[m-1]={delete:g.delete+f.delete},this;if(typeof g.delete=="number"&&f.insert!=null&&(m-=1,g=this.ops[m-1],typeof g!="object"))return this.ops.unshift(f),this;if(l(f.attributes,g.attributes)){if(typeof f.insert=="string"&&typeof g.insert=="string")return this.ops[m-1]={insert:g.insert+f.insert},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof g.retain=="number")return this.ops[m-1]={retain:g.retain+f.retain},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this}}return m===this.ops.length?this.ops.push(f):this.ops.splice(m,0,f),this},p.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},p.prototype.filter=function(f){return this.ops.filter(f)},p.prototype.forEach=function(f){this.ops.forEach(f)},p.prototype.map=function(f){return this.ops.map(f)},p.prototype.partition=function(f){var m=[],g=[];return this.forEach(function(j){var b=f(j)?m:g;b.push(j)}),[m,g]},p.prototype.reduce=function(f,m){return this.ops.reduce(f,m)},p.prototype.changeLength=function(){return this.reduce(function(f,m){return m.insert?f+d.length(m):m.delete?f-m.delete:f},0)},p.prototype.length=function(){return this.reduce(function(f,m){return f+d.length(m)},0)},p.prototype.slice=function(f,m){f=f||0,typeof m!="number"&&(m=1/0);for(var g=[],j=d.iterator(this.ops),b=0;b<m&&j.hasNext();){var x;b<f?x=j.next(f-b):(x=j.next(m-b),g.push(x)),b+=d.length(x)}return new p(g)},p.prototype.compose=function(f){var m=d.iterator(this.ops),g=d.iterator(f.ops),j=[],b=g.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){for(var x=b.retain;m.peekType()==="insert"&&m.peekLength()<=x;)x-=m.peekLength(),j.push(m.next());b.retain-x>0&&g.next(b.retain-x)}for(var v=new p(j);m.hasNext()||g.hasNext();)if(g.peekType()==="insert")v.push(g.next());else if(m.peekType()==="delete")v.push(m.next());else{var N=Math.min(m.peekLength(),g.peekLength()),S=m.next(N),w=g.next(N);if(typeof w.retain=="number"){var k={};typeof S.retain=="number"?k.retain=N:k.insert=S.insert;var O=d.attributes.compose(S.attributes,w.attributes,typeof S.retain=="number");if(O&&(k.attributes=O),v.push(k),!g.hasNext()&&l(v.ops[v.ops.length-1],k)){var C=new p(m.rest());return v.concat(C).chop()}}else typeof w.delete=="number"&&typeof S.retain=="number"&&v.push(w)}return v.chop()},p.prototype.concat=function(f){var m=new p(this.ops.slice());return f.ops.length>0&&(m.push(f.ops[0]),m.ops=m.ops.concat(f.ops.slice(1))),m},p.prototype.diff=function(f,m){if(this.ops===f.ops)return new p;var g=[this,f].map(function(N){return N.map(function(S){if(S.insert!=null)return typeof S.insert=="string"?S.insert:h;var w=N===f?"on":"with";throw new Error("diff() called "+w+" non-document")}).join("")}),j=new p,b=o(g[0],g[1],m),x=d.iterator(this.ops),v=d.iterator(f.ops);return b.forEach(function(N){for(var S=N[1].length;S>0;){var w=0;switch(N[0]){case o.INSERT:w=Math.min(v.peekLength(),S),j.push(v.next(w));break;case o.DELETE:w=Math.min(S,x.peekLength()),x.next(w),j.delete(w);break;case o.EQUAL:w=Math.min(x.peekLength(),v.peekLength(),S);var k=x.next(w),O=v.next(w);l(k.insert,O.insert)?j.retain(w,d.attributes.diff(k.attributes,O.attributes)):j.push(O).delete(w);break}S-=w}}),j.chop()},p.prototype.eachLine=function(f,m){m=m||`
862`;for(var g=d.iterator(this.ops),j=new p,b=0;g.hasNext();){if(g.peekType()!=="insert")return;var x=g.peek(),v=d.length(x)-g.peekLength(),N=typeof x.insert=="string"?x.insert.indexOf(m,v)-v:-1;if(N<0)j.push(g.next());else if(N>0)j.push(g.next(N));else{if(f(j,g.next(1).attributes||{},b)===!1)return;b+=1,j=new p}}j.length()>0&&f(j,{},b)},p.prototype.transform=function(f,m){if(m=!!m,typeof f=="number")return this.transformPosition(f,m);for(var g=d.iterator(this.ops),j=d.iterator(f.ops),b=new p;g.hasNext()||j.hasNext();)if(g.peekType()==="insert"&&(m||j.peekType()!=="insert"))b.retain(d.length(g.next()));else if(j.peekType()==="insert")b.push(j.next());else{var x=Math.min(g.peekLength(),j.peekLength()),v=g.next(x),N=j.next(x);if(v.delete)continue;N.delete?b.push(N):b.retain(x,d.attributes.transform(v.attributes,N.attributes,m))}return b.chop()},p.prototype.transformPosition=function(f,m){m=!!m;for(var g=d.iterator(this.ops),j=0;g.hasNext()&&j<=f;){var b=g.peekLength(),x=g.peekType();if(g.next(),x==="delete"){f-=Math.min(b,f-j);continue}else x==="insert"&&(j<f||!m)&&(f+=b);j+=b}return f},n.exports=p}),(function(n,s){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=function(g){return typeof Array.isArray=="function"?Array.isArray(g):o.call(g)==="[object Array]"},h=function(g){if(!g||o.call(g)!=="[object Object]")return!1;var j=i.call(g,"constructor"),b=g.constructor&&g.constructor.prototype&&i.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!j&&!b)return!1;var x;for(x in g);return typeof x>"u"||i.call(g,x)},p=function(g,j){l&&j.name==="__proto__"?l(g,j.name,{enumerable:!0,configurable:!0,value:j.newValue,writable:!0}):g[j.name]=j.newValue},f=function(g,j){if(j==="__proto__")if(i.call(g,j)){if(c)return c(g,j).value}else return;return g[j]};n.exports=function m(){var g,j,b,x,v,N,S=arguments[0],w=1,k=arguments.length,O=!1;for(typeof S=="boolean"&&(O=S,S=arguments[1]||{},w=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});w<k;++w)if(g=arguments[w],g!=null)for(j in g)b=f(S,j),x=f(g,j),S!==x&&(O&&x&&(h(x)||(v=d(x)))?(v?(v=!1,N=b&&d(b)?b:[]):N=b&&h(b)?b:{},p(S,{name:j,newValue:m(O,N,x)})):typeof x<"u"&&p(S,{name:j,newValue:x}));return S}}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BlockEmbed=s.bubbleFormats=void 0;var o=(function(){function L(D,R){for(var U=0;U<R.length;U++){var $=R[U];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(D,$.key,$)}}return function(D,R,U){return R&&L(D.prototype,R),U&&L(D,U),D}})(),l=function L(D,R,U){D===null&&(D=Function.prototype);var $=Object.getOwnPropertyDescriptor(D,R);if($===void 0){var Y=Object.getPrototypeOf(D);return Y===null?void 0:L(Y,R,U)}else{if("value"in $)return $.value;var K=$.get;return K===void 0?void 0:K.call(U)}},c=i(3),d=S(c),h=i(2),p=S(h),f=i(0),m=S(f),g=i(16),j=S(g),b=i(6),x=S(b),v=i(7),N=S(v);function S(L){return L&&L.__esModule?L:{default:L}}function w(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")}function k(L,D){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:L}function O(L,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);L.prototype=Object.create(D&&D.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(L,D):L.__proto__=D)}var C=1,A=(function(L){O(D,L);function D(){return w(this,D),k(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return o(D,[{key:"attach",value:function(){l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"attach",this).call(this),this.attributes=new m.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new p.default().insert(this.value(),(0,d.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(U,$){var Y=m.default.query(U,m.default.Scope.BLOCK_ATTRIBUTE);Y!=null&&this.attributes.attribute(Y,$)}},{key:"formatAt",value:function(U,$,Y,K){this.format(Y,K)}},{key:"insertAt",value:function(U,$,Y){if(typeof $=="string"&&$.endsWith(`
863`)){var K=m.default.create(B.blotName);this.parent.insertBefore(K,U===0?this:this.next),K.insertAt(0,$.slice(0,-1))}else l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,U,$,Y)}}]),D})(m.default.Embed);A.scope=m.default.Scope.BLOCK_BLOT;var B=(function(L){O(D,L);function D(R){w(this,D);var U=k(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,R));return U.cache={},U}return o(D,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(m.default.Leaf).reduce(function(U,$){return $.length()===0?U:U.insert($.value(),I($))},new p.default).insert(`
864`,I(this))),this.cache.delta}},{key:"deleteAt",value:function(U,$){l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"deleteAt",this).call(this,U,$),this.cache={}}},{key:"formatAt",value:function(U,$,Y,K){$<=0||(m.default.query(Y,m.default.Scope.BLOCK)?U+$===this.length()&&this.format(Y,K):l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"formatAt",this).call(this,U,Math.min($,this.length()-U-1),Y,K),this.cache={})}},{key:"insertAt",value:function(U,$,Y){if(Y!=null)return l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,U,$,Y);if($.length!==0){var K=$.split(`
865`),Q=K.shift();Q.length>0&&(U<this.length()-1||this.children.tail==null?l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,Math.min(U,this.length()-1),Q):this.children.tail.insertAt(this.children.tail.length(),Q),this.cache={});var q=this;K.reduce(function(F,P){return q=q.split(F,!0),q.insertAt(0,P),P.length},U+Q.length)}}},{key:"insertBefore",value:function(U,$){var Y=this.children.head;l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertBefore",this).call(this,U,$),Y instanceof j.default&&Y.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"length",this).call(this)+C),this.cache.length}},{key:"moveChildren",value:function(U,$){l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"moveChildren",this).call(this,U,$),this.cache={}}},{key:"optimize",value:function(U){l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"optimize",this).call(this,U),this.cache={}}},{key:"path",value:function(U){return l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"path",this).call(this,U,!0)}},{key:"removeChild",value:function(U){l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"removeChild",this).call(this,U),this.cache={}}},{key:"split",value:function(U){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if($&&(U===0||U>=this.length()-C)){var Y=this.clone();return U===0?(this.parent.insertBefore(Y,this),this):(this.parent.insertBefore(Y,this.next),Y)}else{var K=l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"split",this).call(this,U,$);return this.cache={},K}}}]),D})(m.default.Block);B.blotName="block",B.tagName="P",B.defaultChild="break",B.allowedChildren=[x.default,m.default.Embed,N.default];function I(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return L==null||(typeof L.formats=="function"&&(D=(0,d.default)(D,L.formats())),L.parent==null||L.parent.blotName=="scroll"||L.parent.statics.scope!==L.statics.scope)?D:I(L.parent,D)}s.bubbleFormats=I,s.BlockEmbed=A,s.default=B}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.overload=s.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},l=(function(){function q(F,P){var V=[],W=!0,Z=!1,X=void 0;try{for(var H=F[Symbol.iterator](),G;!(W=(G=H.next()).done)&&(V.push(G.value),!(P&&V.length===P));W=!0);}catch(te){Z=!0,X=te}finally{try{!W&&H.return&&H.return()}finally{if(Z)throw X}}return V}return function(F,P){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return q(F,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function q(F,P){for(var V=0;V<P.length;V++){var W=P[V];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(F,W.key,W)}}return function(F,P,V){return P&&q(F.prototype,P),V&&q(F,V),F}})();i(50);var d=i(2),h=I(d),p=i(14),f=I(p),m=i(8),g=I(m),j=i(9),b=I(j),x=i(0),v=I(x),N=i(15),S=I(N),w=i(3),k=I(w),O=i(10),C=I(O),A=i(34),B=I(A);function I(q){return q&&q.__esModule?q:{default:q}}function L(q,F,P){return F in q?Object.defineProperty(q,F,{value:P,enumerable:!0,configurable:!0,writable:!0}):q[F]=P,q}function D(q,F){if(!(q instanceof F))throw new TypeError("Cannot call a class as a function")}var R=(0,C.default)("quill"),U=(function(){c(q,null,[{key:"debug",value:function(P){P===!0&&(P="log"),C.default.level(P)}},{key:"find",value:function(P){return P.__quill||v.default.find(P)}},{key:"import",value:function(P){return this.imports[P]==null&&R.error("Cannot import "+P+". Are you sure it was registered?"),this.imports[P]}},{key:"register",value:function(P,V){var W=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof P!="string"){var X=P.attrName||P.blotName;typeof X=="string"?this.register("formats/"+X,P,V):Object.keys(P).forEach(function(H){W.register(H,P[H],V)})}else this.imports[P]!=null&&!Z&&R.warn("Overwriting "+P+" with",V),this.imports[P]=V,(P.startsWith("blots/")||P.startsWith("formats/"))&&V.blotName!=="abstract"?v.default.register(V):P.startsWith("modules")&&typeof V.register=="function"&&V.register()}}]);function q(F){var P=this,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D(this,q),this.options=$(F,V),this.container=this.options.container,this.container==null)return R.error("Invalid Quill container",F);this.options.debug&&q.debug(this.options.debug);var W=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=v.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new S.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,function(X){X===g.default.events.TEXT_CHANGE&&P.root.classList.toggle("ql-blank",P.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(X,H){var G=P.selection.lastRange,te=G&&G.length===0?G.index:void 0;Y.call(P,function(){return P.editor.update(null,H,te)},X)});var Z=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+W+"<p><br></p></div>");this.setContents(Z),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return c(q,[{key:"addContainer",value:function(P){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof P=="string"){var W=P;P=document.createElement("div"),P.classList.add(W)}return this.container.insertBefore(P,V),P}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(P,V,W){var Z=this,X=K(P,V,W),H=l(X,4);return P=H[0],V=H[1],W=H[3],Y.call(this,function(){return Z.editor.deleteText(P,V)},W,P,-1*V)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(P),this.container.classList.toggle("ql-disabled",!P)}},{key:"focus",value:function(){var P=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=P,this.scrollIntoView()}},{key:"format",value:function(P,V){var W=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;return Y.call(this,function(){var X=W.getSelection(!0),H=new h.default;if(X==null)return H;if(v.default.query(P,v.default.Scope.BLOCK))H=W.editor.formatLine(X.index,X.length,L({},P,V));else{if(X.length===0)return W.selection.format(P,V),H;H=W.editor.formatText(X.index,X.length,L({},P,V))}return W.setSelection(X,g.default.sources.SILENT),H},Z)}},{key:"formatLine",value:function(P,V,W,Z,X){var H=this,G=void 0,te=K(P,V,W,Z,X),re=l(te,4);return P=re[0],V=re[1],G=re[2],X=re[3],Y.call(this,function(){return H.editor.formatLine(P,V,G)},X,P,0)}},{key:"formatText",value:function(P,V,W,Z,X){var H=this,G=void 0,te=K(P,V,W,Z,X),re=l(te,4);return P=re[0],V=re[1],G=re[2],X=re[3],Y.call(this,function(){return H.editor.formatText(P,V,G)},X,P,0)}},{key:"getBounds",value:function(P){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=void 0;typeof P=="number"?W=this.selection.getBounds(P,V):W=this.selection.getBounds(P.index,P.length);var Z=this.container.getBoundingClientRect();return{bottom:W.bottom-Z.top,height:W.height,left:W.left-Z.left,right:W.right-Z.left,top:W.top-Z.top,width:W.width}}},{key:"getContents",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-P,W=K(P,V),Z=l(W,2);return P=Z[0],V=Z[1],this.editor.getContents(P,V)}},{key:"getFormat",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof P=="number"?this.editor.getFormat(P,V):this.editor.getFormat(P.index,P.length)}},{key:"getIndex",value:function(P){return P.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(P){return this.scroll.leaf(P)}},{key:"getLine",value:function(P){return this.scroll.line(P)}},{key:"getLines",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof P!="number"?this.scroll.lines(P.index,P.length):this.scroll.lines(P,V)}},{key:"getModule",value:function(P){return this.theme.modules[P]}},{key:"getSelection",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return P&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-P,W=K(P,V),Z=l(W,2);return P=Z[0],V=Z[1],this.editor.getText(P,V)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(P,V,W){var Z=this,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:q.sources.API;return Y.call(this,function(){return Z.editor.insertEmbed(P,V,W)},X,P)}},{key:"insertText",value:function(P,V,W,Z,X){var H=this,G=void 0,te=K(P,0,W,Z,X),re=l(te,4);return P=re[0],G=re[2],X=re[3],Y.call(this,function(){return H.editor.insertText(P,V,G)},X,P,V.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(P,V,W){this.clipboard.dangerouslyPasteHTML(P,V,W)}},{key:"removeFormat",value:function(P,V,W){var Z=this,X=K(P,V,W),H=l(X,4);return P=H[0],V=H[1],W=H[3],Y.call(this,function(){return Z.editor.removeFormat(P,V)},W,P)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(P){var V=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API;return Y.call(this,function(){P=new h.default(P);var Z=V.getLength(),X=V.editor.deleteText(0,Z),H=V.editor.applyDelta(P),G=H.ops[H.ops.length-1];G!=null&&typeof G.insert=="string"&&G.insert[G.insert.length-1]===`
866`&&(V.editor.deleteText(V.getLength()-1,1),H.delete(1));var te=X.compose(H);return te},W)}},{key:"setSelection",value:function(P,V,W){if(P==null)this.selection.setRange(null,V||q.sources.API);else{var Z=K(P,V,W),X=l(Z,4);P=X[0],V=X[1],W=X[3],this.selection.setRange(new N.Range(P,V),W),W!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(P){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API,W=new h.default().insert(P);return this.setContents(W,V)}},{key:"update",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g.default.sources.USER,V=this.scroll.update(P);return this.selection.update(P),V}},{key:"updateContents",value:function(P){var V=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API;return Y.call(this,function(){return P=new h.default(P),V.editor.applyDelta(P,W)},W,!0)}}]),q})();U.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},U.events=g.default.events,U.sources=g.default.sources,U.version="1.3.7",U.imports={delta:h.default,parchment:v.default,"core/module":b.default,"core/theme":B.default};function $(q,F){if(F=(0,k.default)(!0,{container:q,modules:{clipboard:!0,keyboard:!0,history:!0}},F),!F.theme||F.theme===U.DEFAULTS.theme)F.theme=B.default;else if(F.theme=U.import("themes/"+F.theme),F.theme==null)throw new Error("Invalid theme "+F.theme+". Did you register it?");var P=(0,k.default)(!0,{},F.theme.DEFAULTS);[P,F].forEach(function(Z){Z.modules=Z.modules||{},Object.keys(Z.modules).forEach(function(X){Z.modules[X]===!0&&(Z.modules[X]={})})});var V=Object.keys(P.modules).concat(Object.keys(F.modules)),W=V.reduce(function(Z,X){var H=U.import("modules/"+X);return H==null?R.error("Cannot load "+X+" module. Are you sure you registered it?"):Z[X]=H.DEFAULTS||{},Z},{});return F.modules!=null&&F.modules.toolbar&&F.modules.toolbar.constructor!==Object&&(F.modules.toolbar={container:F.modules.toolbar}),F=(0,k.default)(!0,{},U.DEFAULTS,{modules:W},P,F),["bounds","container","scrollingContainer"].forEach(function(Z){typeof F[Z]=="string"&&(F[Z]=document.querySelector(F[Z]))}),F.modules=Object.keys(F.modules).reduce(function(Z,X){return F.modules[X]&&(Z[X]=F.modules[X]),Z},{}),F}function Y(q,F,P,V){if(this.options.strict&&!this.isEnabled()&&F===g.default.sources.USER)return new h.default;var W=P==null?null:this.getSelection(),Z=this.editor.delta,X=q();if(W!=null&&(P===!0&&(P=W.index),V==null?W=Q(W,X,F):V!==0&&(W=Q(W,P,V,F)),this.setSelection(W,g.default.sources.SILENT)),X.length()>0){var H,G=[g.default.events.TEXT_CHANGE,X,Z,F];if((H=this.emitter).emit.apply(H,[g.default.events.EDITOR_CHANGE].concat(G)),F!==g.default.sources.SILENT){var te;(te=this.emitter).emit.apply(te,G)}}return X}function K(q,F,P,V,W){var Z={};return typeof q.index=="number"&&typeof q.length=="number"?typeof F!="number"?(W=V,V=P,P=F,F=q.length,q=q.index):(F=q.length,q=q.index):typeof F!="number"&&(W=V,V=P,P=F,F=0),(typeof P>"u"?"undefined":o(P))==="object"?(Z=P,W=V):typeof P=="string"&&(V!=null?Z[P]=V:W=P),W=W||g.default.sources.API,[q,F,Z,W]}function Q(q,F,P,V){if(q==null)return null;var W=void 0,Z=void 0;if(F instanceof h.default){var X=[q.index,q.index+q.length].map(function(re){return F.transformPosition(re,V!==g.default.sources.USER)}),H=l(X,2);W=H[0],Z=H[1]}else{var G=[q.index,q.index+q.length].map(function(re){return re<F||re===F&&V===g.default.sources.USER?re:P>=0?re+P:Math.max(F,re+P)}),te=l(G,2);W=te[0],Z=te[1]}return new N.Range(W,Z-W)}s.expandConfig=$,s.overload=K,s.default=U}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function x(v,N){for(var S=0;S<N.length;S++){var w=N[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,N,S){return N&&x(v.prototype,N),S&&x(v,S),v}})(),l=function x(v,N,S){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,N);if(w===void 0){var k=Object.getPrototypeOf(v);return k===null?void 0:x(k,N,S)}else{if("value"in w)return w.value;var O=w.get;return O===void 0?void 0:O.call(S)}},c=i(7),d=f(c),h=i(0),p=f(h);function f(x){return x&&x.__esModule?x:{default:x}}function m(x,v){if(!(x instanceof v))throw new TypeError("Cannot call a class as a function")}function g(x,v){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:x}function j(x,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);x.prototype=Object.create(v&&v.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(x,v):x.__proto__=v)}var b=(function(x){j(v,x);function v(){return m(this,v),g(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"formatAt",value:function(S,w,k,O){if(v.compare(this.statics.blotName,k)<0&&p.default.query(k,p.default.Scope.BLOT)){var C=this.isolate(S,w);O&&C.wrap(k,O)}else l(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,S,w,k,O)}},{key:"optimize",value:function(S){if(l(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,S),this.parent instanceof v&&v.compare(this.statics.blotName,this.parent.statics.blotName)>0){var w=this.parent.isolate(this.offset(),this.length());this.moveChildren(w),w.wrap(this)}}}],[{key:"compare",value:function(S,w){var k=v.order.indexOf(S),O=v.order.indexOf(w);return k>=0||O>=0?k-O:S===w?0:S<w?-1:1}}]),v})(p.default.Inline);b.allowedChildren=[b,p.default.Embed,d.default],b.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],s.default=b}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=i(0),l=c(o);function c(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function h(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var f=(function(m){p(g,m);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(l.default.Text);s.default=f}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function N(S,w){for(var k=0;k<w.length;k++){var O=w[k];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(S,O.key,O)}}return function(S,w,k){return w&&N(S.prototype,w),k&&N(S,k),S}})(),l=function N(S,w,k){S===null&&(S=Function.prototype);var O=Object.getOwnPropertyDescriptor(S,w);if(O===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:N(C,w,k)}else{if("value"in O)return O.value;var A=O.get;return A===void 0?void 0:A.call(k)}},c=i(54),d=f(c),h=i(10),p=f(h);function f(N){return N&&N.__esModule?N:{default:N}}function m(N,S){if(!(N instanceof S))throw new TypeError("Cannot call a class as a function")}function g(N,S){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:N}function j(N,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);N.prototype=Object.create(S&&S.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(N,S):N.__proto__=S)}var b=(0,p.default)("quill:events"),x=["selectionchange","mousedown","mouseup","click"];x.forEach(function(N){document.addEventListener(N,function(){for(var S=arguments.length,w=Array(S),k=0;k<S;k++)w[k]=arguments[k];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(O){if(O.__quill&&O.__quill.emitter){var C;(C=O.__quill.emitter).handleDOM.apply(C,w)}})})});var v=(function(N){j(S,N);function S(){m(this,S);var w=g(this,(S.__proto__||Object.getPrototypeOf(S)).call(this));return w.listeners={},w.on("error",b.error),w}return o(S,[{key:"emit",value:function(){b.log.apply(b,arguments),l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(k){for(var O=arguments.length,C=Array(O>1?O-1:0),A=1;A<O;A++)C[A-1]=arguments[A];(this.listeners[k.type]||[]).forEach(function(B){var I=B.node,L=B.handler;(k.target===I||I.contains(k.target))&&L.apply(void 0,[k].concat(C))})}},{key:"listenDOM",value:function(k,O,C){this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push({node:O,handler:C})}}]),S})(d.default);v.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},v.sources={API:"api",SILENT:"silent",USER:"user"},s.default=v}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});function o(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var l=function c(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,c),this.quill=d,this.options=h};l.DEFAULTS={},s.default=l}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=["error","warn","log","info"],l="warn";function c(h){if(o.indexOf(h)<=o.indexOf(l)){for(var p,f=arguments.length,m=Array(f>1?f-1:0),g=1;g<f;g++)m[g-1]=arguments[g];(p=console)[h].apply(p,m)}}function d(h){return o.reduce(function(p,f){return p[f]=c.bind(console,f,h),p},{})}c.level=d.level=function(h){l=h},s.default=d}),(function(n,s,i){var o=Array.prototype.slice,l=i(52),c=i(53),d=n.exports=function(m,g,j){return j||(j={}),m===g?!0:m instanceof Date&&g instanceof Date?m.getTime()===g.getTime():!m||!g||typeof m!="object"&&typeof g!="object"?j.strict?m===g:m==g:f(m,g,j)};function h(m){return m==null}function p(m){return!(!m||typeof m!="object"||typeof m.length!="number"||typeof m.copy!="function"||typeof m.slice!="function"||m.length>0&&typeof m[0]!="number")}function f(m,g,j){var b,x;if(h(m)||h(g)||m.prototype!==g.prototype)return!1;if(c(m))return c(g)?(m=o.call(m),g=o.call(g),d(m,g,j)):!1;if(p(m)){if(!p(g)||m.length!==g.length)return!1;for(b=0;b<m.length;b++)if(m[b]!==g[b])return!1;return!0}try{var v=l(m),N=l(g)}catch{return!1}if(v.length!=N.length)return!1;for(v.sort(),N.sort(),b=v.length-1;b>=0;b--)if(v[b]!=N[b])return!1;for(b=v.length-1;b>=0;b--)if(x=v[b],!d(m[x],g[x],j))return!1;return typeof m==typeof g}}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=i(1),l=(function(){function c(d,h,p){p===void 0&&(p={}),this.attrName=d,this.keyName=h;var f=o.Scope.TYPE&o.Scope.ATTRIBUTE;p.scope!=null?this.scope=p.scope&o.Scope.LEVEL|f:this.scope=o.Scope.ATTRIBUTE,p.whitelist!=null&&(this.whitelist=p.whitelist)}return c.keys=function(d){return[].map.call(d.attributes,function(h){return h.name})},c.prototype.add=function(d,h){return this.canAdd(d,h)?(d.setAttribute(this.keyName,h),!0):!1},c.prototype.canAdd=function(d,h){var p=o.query(d,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return p==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},c.prototype.remove=function(d){d.removeAttribute(this.keyName)},c.prototype.value=function(d){var h=d.getAttribute(this.keyName);return this.canAdd(d,h)&&h?h:""},c})();s.default=l}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.Code=void 0;var o=(function(){function A(B,I){var L=[],D=!0,R=!1,U=void 0;try{for(var $=B[Symbol.iterator](),Y;!(D=(Y=$.next()).done)&&(L.push(Y.value),!(I&&L.length===I));D=!0);}catch(K){R=!0,U=K}finally{try{!D&&$.return&&$.return()}finally{if(R)throw U}}return L}return function(B,I){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return A(B,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=(function(){function A(B,I){for(var L=0;L<I.length;L++){var D=I[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(B,D.key,D)}}return function(B,I,L){return I&&A(B.prototype,I),L&&A(B,L),B}})(),c=function A(B,I,L){B===null&&(B=Function.prototype);var D=Object.getOwnPropertyDescriptor(B,I);if(D===void 0){var R=Object.getPrototypeOf(B);return R===null?void 0:A(R,I,L)}else{if("value"in D)return D.value;var U=D.get;return U===void 0?void 0:U.call(L)}},d=i(2),h=N(d),p=i(0),f=N(p),m=i(4),g=N(m),j=i(6),b=N(j),x=i(7),v=N(x);function N(A){return A&&A.__esModule?A:{default:A}}function S(A,B){if(!(A instanceof B))throw new TypeError("Cannot call a class as a function")}function w(A,B){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:A}function k(A,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);A.prototype=Object.create(B&&B.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(A,B):A.__proto__=B)}var O=(function(A){k(B,A);function B(){return S(this,B),w(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return B})(b.default);O.blotName="code",O.tagName="CODE";var C=(function(A){k(B,A);function B(){return S(this,B),w(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return l(B,[{key:"delta",value:function(){var L=this,D=this.domNode.textContent;return D.endsWith(`
867`)&&(D=D.slice(0,-1)),D.split(`
868`).reduce(function(R,U){return R.insert(U).insert(`
869`,L.formats())},new h.default)}},{key:"format",value:function(L,D){if(!(L===this.statics.blotName&&D)){var R=this.descendant(v.default,this.length()-1),U=o(R,1),$=U[0];$!=null&&$.deleteAt($.length()-1,1),c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"format",this).call(this,L,D)}}},{key:"formatAt",value:function(L,D,R,U){if(D!==0&&!(f.default.query(R,f.default.Scope.BLOCK)==null||R===this.statics.blotName&&U===this.statics.formats(this.domNode))){var $=this.newlineIndex(L);if(!($<0||$>=L+D)){var Y=this.newlineIndex(L,!0)+1,K=$-Y+1,Q=this.isolate(Y,K),q=Q.next;Q.format(R,U),q instanceof B&&q.formatAt(0,L-Y+D-K,R,U)}}}},{key:"insertAt",value:function(L,D,R){if(R==null){var U=this.descendant(v.default,L),$=o(U,2),Y=$[0],K=$[1];Y.insertAt(K,D)}}},{key:"length",value:function(){var L=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
870`)?L:L+1}},{key:"newlineIndex",value:function(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(D)return this.domNode.textContent.slice(0,L).lastIndexOf(`
871`);var R=this.domNode.textContent.slice(L).indexOf(`
872`);return R>-1?L+R:-1}},{key:"optimize",value:function(L){this.domNode.textContent.endsWith(`
873`)||this.appendChild(f.default.create("text",`
874`)),c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"optimize",this).call(this,L);var D=this.next;D!=null&&D.prev===this&&D.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===D.statics.formats(D.domNo
874de)&&(D.optimize(L),D.moveChildren(this),D.remove())}},{key:"replace",value:function(L){c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"replace",this).call(this,L),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(D){var R=f.default.find(D);R==null?D.parentNode.removeChild(D):R instanceof f.default.Embed?R.remove():R.unwrap()})}}],[{key:"create",value:function(L){var D=c(B.__proto__||Object.getPrototypeOf(B),"create",this).call(this,L);return D.setAttribute("spellcheck",!1),D}},{key:"formats",value:function(){return!0}}]),B})(g.default);C.blotName="code-block",C.tagName="PRE",C.TAB="  ",s.Code=O,s.default=C}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},l=(function(){function q(F,P){var V=[],W=!0,Z=!1,X=void 0;try{for(var H=F[Symbol.iterator](),G;!(W=(G=H.next()).done)&&(V.push(G.value),!(P&&V.length===P));W=!0);}catch(te){Z=!0,X=te}finally{try{!W&&H.return&&H.return()}finally{if(Z)throw X}}return V}return function(F,P){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return q(F,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function q(F,P){for(var V=0;V<P.length;V++){var W=P[V];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(F,W.key,W)}}return function(F,P,V){return P&&q(F.prototype,P),V&&q(F,V),F}})(),d=i(2),h=D(d),p=i(20),f=D(p),m=i(0),g=D(m),j=i(13),b=D(j),x=i(24),v=D(x),N=i(4),S=D(N),w=i(16),k=D(w),O=i(21),C=D(O),A=i(11),B=D(A),I=i(3),L=D(I);
vendor: 58,069 bytes, lines 874-886
874function D(q){return q&&q.__esModule?q:{default:q}}function R(q,F,P){return F in q?Object.defineProperty(q,F,{value:P,enumerable:!0,configurable:!0,writable:!0}):q[F]=P,q}function U(q,F){if(!(q instanceof F))throw new TypeError("Cannot call a class as a function")}var $=/^[ -~]*$/,Y=(function(){function q(F){U(this,q),this.scroll=F,this.delta=this.getDelta()}return c(q,[{key:"applyDelta",value:function(P){var V=this,W=!1;this.scroll.update();var Z=this.scroll.length();return this.scroll.batchStart(),P=Q(P),P.reduce(function(X,H){var G=H.retain||H.delete||H.insert.length||1,te=H.attributes||{};if(H.insert!=null){if(typeof H.insert=="string"){var re=H.insert;re.endsWith(`
875`)&&W&&(W=!1,re=re.slice(0,-1)),X>=Z&&!re.endsWith(`
876`)&&(W=!0),V.scroll.insertAt(X,re);var ue=V.scroll.line(X),ye=l(ue,2),be=ye[0],Te=ye[1],ie=(0,L.default)({},(0,N.bubbleFormats)(be));if(be instanceof S.default){var De=be.descendant(g.default.Leaf,Te),Ye=l(De,1),He=Ye[0];ie=(0,L.default)(ie,(0,N.bubbleFormats)(He))}te=f.default.attributes.diff(ie,te)||{}}else if(o(H.insert)==="object"){var ce=Object.keys(H.insert)[0];if(ce==null)return X;V.scroll.insertAt(X,ce,H.insert[ce])}Z+=G}return Object.keys(te).forEach(function(he){V.scroll.formatAt(X,G,he,te[he])}),X+G},0),P.reduce(function(X,H){return typeof H.delete=="number"?(V.scroll.deleteAt(X,H.delete),X):X+(H.retain||H.insert.length||1)},0),this.scroll.batchEnd(),this.update(P)}},{key:"deleteText",value:function(P,V){return this.scroll.deleteAt(P,V),this.update(new h.default().retain(P).delete(V))}},{key:"formatLine",value:function(P,V){var W=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(Z).forEach(function(X){if(!(W.scroll.whitelist!=null&&!W.scroll.whitelist[X])){var H=W.scroll.lines(P,Math.max(V,1)),G=V;H.forEach(function(te){var re=te.length();if(!(te instanceof b.default))te.format(X,Z[X]);else{var ue=P-te.offset(W.scroll),ye=te.newlineIndex(ue+G)-ue+1;te.formatAt(ue,ye,X,Z[X])}G-=re})}}),this.scroll.optimize(),this.update(new h.default().retain(P).retain(V,(0,C.default)(Z)))}},{key:"formatText",value:function(P,V){var W=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(Z).forEach(function(X){W.scroll.formatAt(P,V,X,Z[X])}),this.update(new h.default().retain(P).retain(V,(0,C.default)(Z)))}},{key:"getContents",value:function(P,V){return this.delta.slice(P,P+V)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(P,V){return P.concat(V.delta())},new h.default)}},{key:"getFormat",value:function(P){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=[],Z=[];V===0?this.scroll.path(P).forEach(function(H){var G=l(H,1),te=G[0];te instanceof S.default?W.push(te):te instanceof g.default.Leaf&&Z.push(te)}):(W=this.scroll.lines(P,V),Z=this.scroll.descendants(g.default.Leaf,P,V));var X=[W,Z].map(function(H){if(H.length===0)return{};for(var G=(0,N.bubbleFormats)(H.shift());Object.keys(G).length>0;){var te=H.shift();if(te==null)return G;G=K((0,N.bubbleFormats)(te),G)}return G});return L.default.apply(L.default,X)}},{key:"getText",value:function(P,V){return this.getContents(P,V).filter(function(W){return typeof W.insert=="string"}).map(function(W){return W.insert}).join("")}},{key:"insertEmbed",value:function(P,V,W){return this.scroll.insertAt(P,V,W),this.update(new h.default().retain(P).insert(R({},V,W)))}},{key:"insertText",value:function(P,V){var W=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V=V.replace(/\r\n/g,`
877`).replace(/\r/g,`
878`),this.scroll.insertAt(P,V),Object.keys(Z).forEach(function(X){W.scroll.formatAt(P,V.length,X,Z[X])}),this.update(new h.default().retain(P).insert(V,(0,C.default)(Z)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var P=this.scroll.children.head;return P.statics.blotName!==S.default.blotName||P.children.length>1?!1:P.children.head instanceof k.default}},{key:"removeFormat",value:function(P,V){var W=this.getText(P,V),Z=this.scroll.line(P+V),X=l(Z,2),H=X[0],G=X[1],te=0,re=new h.default;H!=null&&(H instanceof b.default?te=H.newlineIndex(G)-G+1:te=H.length()-G,re=H.delta().slice(G,G+te-1).insert(`
879`));var ue=this.getContents(P,V+te),ye=ue.diff(new h.default().insert(W).concat(re)),be=new h.default().retain(P).concat(ye);return this.applyDelta(be)}},{key:"update",value:function(P){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,Z=this.delta;if(V.length===1&&V[0].type==="characterData"&&V[0].target.data.match($)&&g.default.find(V[0].target)){var X=g.default.find(V[0].target),H=(0,N.bubbleFormats)(X),G=X.offset(this.scroll),te=V[0].oldValue.replace(v.default.CONTENTS,""),re=new h.default().insert(te),ue=new h.default().insert(X.value()),ye=new h.default().retain(G).concat(re.diff(ue,W));P=ye.reduce(function(be,Te){return Te.insert?be.insert(Te.insert,H):be.push(Te)},new h.default),this.delta=Z.compose(P)}else this.delta=this.getDelta(),(!P||!(0,B.default)(Z.compose(P),this.delta))&&(P=Z.diff(this.delta,W));return P}}]),q})();function K(q,F){return Object.keys(F).reduce(function(P,V){return q[V]==null||(F[V]===q[V]?P[V]=F[V]:Array.isArray(F[V])?F[V].indexOf(q[V])<0&&(P[V]=F[V].concat([q[V]])):P[V]=[F[V],q[V]]),P},{})}function Q(q){return q.reduce(function(F,P){if(P.insert===1){var V=(0,C.default)(P.attributes);return delete V.image,F.insert({image:P.attributes.image},V)}if(P.attributes!=null&&(P.attributes.list===!0||P.attributes.bullet===!0)&&(P=(0,C.default)(P),P.attributes.list?P.attributes.list="ordered":(P.attributes.list="bullet",delete P.attributes.bullet)),typeof P.insert=="string"){var W=P.insert.replace(/\r\n/g,`
880`).replace(/\r/g,`
881`);return F.insert(W,P.attributes)}return F.push(P)},new h.default)}s.default=Y}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.Range=void 0;var o=(function(){function A(B,I){var L=[],D=!0,R=!1,U=void 0;try{for(var $=B[Symbol.iterator](),Y;!(D=(Y=$.next()).done)&&(L.push(Y.value),!(I&&L.length===I));D=!0);}catch(K){R=!0,U=K}finally{try{!D&&$.return&&$.return()}finally{if(R)throw U}}return L}return function(B,I){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return A(B,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=(function(){function A(B,I){for(var L=0;L<I.length;L++){var D=I[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(B,D.key,D)}}return function(B,I,L){return I&&A(B.prototype,I),L&&A(B,L),B}})(),c=i(0),d=v(c),h=i(21),p=v(h),f=i(11),m=v(f),g=i(8),j=v(g),b=i(10),x=v(b);function v(A){return A&&A.__esModule?A:{default:A}}function N(A){if(Array.isArray(A)){for(var B=0,I=Array(A.length);B<A.length;B++)I[B]=A[B];return I}else return Array.from(A)}function S(A,B){if(!(A instanceof B))throw new TypeError("Cannot call a class as a function")}var w=(0,x.default)("quill:selection"),k=function A(B){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;S(this,A),this.index=B,this.length=I},O=(function(){function A(B,I){var L=this;S(this,A),this.emitter=I,this.scroll=B,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=d.default.create("cursor",this),this.lastRange=this.savedRange=new k(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){L.mouseDown||setTimeout(L.update.bind(L,j.default.sources.USER),1)}),this.emitter.on(j.default.events.EDITOR_CHANGE,function(D,R){D===j.default.events.TEXT_CHANGE&&R.length()>0&&L.update(j.default.sources.SILENT)}),this.emitter.on(j.default.events.SCROLL_BEFORE_UPDATE,function(){if(L.hasFocus()){var D=L.getNativeRange();D!=null&&D.start.node!==L.cursor.textNode&&L.emitter.once(j.default.events.SCROLL_UPDATE,function(){try{L.setNativeRange(D.start.node,D.start.offset,D.end.node,D.end.offset)}catch{}})}}),this.emitter.on(j.default.events.SCROLL_OPTIMIZE,function(D,R){if(R.range){var U=R.range,$=U.startNode,Y=U.startOffset,K=U.endNode,Q=U.endOffset;L.setNativeRange($,Y,K,Q)}}),this.update(j.default.sources.SILENT)}return l(A,[{key:"handleComposition",value:function(){var I=this;this.root.addEventListener("compositionstart",function(){I.composing=!0}),this.root.addEventListener("compositionend",function(){if(I.composing=!1,I.cursor.parent){var L=I.cursor.restore();if(!L)return;setTimeout(function(){I.setNativeRange(L.startNode,L.startOffset,L.endNode,L.endOffset)},1)}})}},{key:"handleDragging",value:function(){var I=this;this.emitter.listenDOM("mousedown",document.body,function(){I.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){I.mouseDown=!1,I.update(j.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(I,L){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[I])){this.scroll.update();var D=this.getNativeRange();if(!(D==null||!D.native.collapsed||d.default.query(I,d.default.Scope.BLOCK))){if(D.start.node!==this.cursor.textNode){var R=d.default.find(D.start.node,!1);if(R==null)return;if(R instanceof d.default.Leaf){var U=R.split(D.start.offset);R.parent.insertBefore(this.cursor,U)}else R.insertBefore(this.cursor,D.start.node);this.cursor.attach()}this.cursor.format(I,L),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(I){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=this.scroll.length();I=Math.min(I,D-1),L=Math.min(I+L,D-1)-I;var R=void 0,U=this.scroll.leaf(I),$=o(U,2),Y=$[0],K=$[1];if(Y==null)return null;var Q=Y.position(K,!0),q=o(Q,2);R=q[0],K=q[1];var F=document.createRange();if(L>0){F.setStart(R,K);var P=this.scroll.leaf(I+L),V=o(P,2);if(Y=V[0],K=V[1],Y==null)return null;var W=Y.position(K,!0),Z=o(W,2);return R=Z[0],K=Z[1],F.setEnd(R,K),F.getBoundingClientRect()}else{var X="left",H=void 0;return R instanceof Text?(K<R.data.length?(F.setStart(R,K),F.setEnd(R,K+1)):(F.setStart(R,K-1),F.setEnd(R,K),X="right"),H=F.getBoundingClientRect()):(H=Y.domNode.getBoundingClientRect(),K>0&&(X="right")),{bottom:H.top+H.height,height:H.height,left:H[X],right:H[X],top:H.top,width:0}}}},{key:"getNativeRange",value:function(){var I=document.getSelection();if(I==null||I.rangeCount<=0)return null;var L=I.getRangeAt(0);if(L==null)return null;var D=this.normalizeNative(L);return w.info("getNativeRange",D),D}},{key:"getRange",value:function(){var I=this.getNativeRange();if(I==null)return[null,null];var L=this.normalizedToRange(I);return[L,I]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(I){var L=this,D=[[I.start.node,I.start.offset]];I.native.collapsed||D.push([I.end.node,I.end.offset]);var R=D.map(function(Y){var K=o(Y,2),Q=K[0],q=K[1],F=d.default.find(Q,!0),P=F.offset(L.scroll);return q===0?P:F instanceof d.default.Container?P+F.length():P+F.index(Q,q)}),U=Math.min(Math.max.apply(Math,N(R)),this.scroll.length()-1),$=Math.min.apply(Math,[U].concat(N(R)));return new k($,U-$)}},{key:"normalizeNative",value:function(I){if(!C(this.root,I.startContainer)||!I.collapsed&&!C(this.root,I.endContainer))return null;var L={start:{node:I.startContainer,offset:I.startOffset},end:{node:I.endContainer,offset:I.endOffset},native:I};return[L.start,L.end].forEach(function(D){for(var R=D.node,U=D.offset;!(R instanceof Text)&&R.childNodes.length>0;)if(R.childNodes.length>U)R=R.childNodes[U],U=0;else if(R.childNodes.length===U)R=R.lastChild,U=R instanceof Text?R.data.length:R.childNodes.length+1;else break;D.node=R,D.offset=U}),L}},{key:"rangeToNative",value:function(I){var L=this,D=I.collapsed?[I.index]:[I.index,I.index+I.length],R=[],U=this.scroll.length();return D.forEach(function($,Y){$=Math.min(U-1,$);var K=void 0,Q=L.scroll.leaf($),q=o(Q,2),F=q[0],P=q[1],V=F.position(P,Y!==0),W=o(V,2);K=W[0],P=W[1],R.push(K,P)}),R.length<2&&(R=R.concat(R)),R}},{key:"scrollIntoView",value:function(I){var L=this.lastRange;if(L!=null){var D=this.getBounds(L.index,L.length);if(D!=null){var R=this.scroll.length()-1,U=this.scroll.line(Math.min(L.index,R)),$=o(U,1),Y=$[0],K=Y;if(L.length>0){var Q=this.scroll.line(Math.min(L.index+L.length,R)),q=o(Q,1);K=q[0]}if(!(Y==null||K==null)){var F=I.getBoundingClientRect();D.top<F.top?I.scrollTop-=F.top-D.top:D.bottom>F.bottom&&(I.scrollTop+=D.bottom-F.bottom)}}}}},{key:"setNativeRange",value:function(I,L){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:I,R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:L,U=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(w.info("setNativeRange",I,L,D,R),!(I!=null&&(this.root.parentNode==null||I.parentNode==null||D.parentNode==null))){var $=document.getSelection();if($!=null)if(I!=null){this.hasFocus()||this.root.focus();var Y=(this.getNativeRange()||{}).native;if(Y==null||U||I!==Y.startContainer||L!==Y.startOffset||D!==Y.endContainer||R!==Y.endOffset){I.tagName=="BR"&&(L=[].indexOf.call(I.parentNode.childNodes,I),I=I.parentNode),D.tagName=="BR"&&(R=[].indexOf.call(D.parentNode.childNodes,D),D=D.parentNode);var K=document.createRange();K.setStart(I,L),K.setEnd(D,R),$.removeAllRanges(),$.addRange(K)}}else $.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(I){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j.default.sources.API;if(typeof L=="string"&&(D=L,L=!1),w.info("setRange",I),I!=null){var R=this.rangeToNative(I);this.setNativeRange.apply(this,N(R).concat([L]))}else this.setNativeRange(null);this.update(D)}},{key:"update",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:j.default.sources.USER,L=this.lastRange,D=this.getRange(),R=o(D,2),U=R[0],$=R[1];if(this.lastRange=U,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,m.default)(L,this.lastRange)){var Y;!this.composing&&$!=null&&$.native.collapsed&&$.start.node!==this.cursor.textNode&&this.cursor.restore();var K=[j.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(L),I];if((Y=this.emitter).emit.apply(Y,[j.default.events.EDITOR_CHANGE].concat(K)),I!==j.default.sources.SILENT){var Q;(Q=this.emitter).emit.apply(Q,K)}}}}]),A})();function C(A,B){try{B.parentNode}catch{return!1}return B instanceof Text&&(B=B.parentNode),A.contains(B)}s.Range=k,s.default=O}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function j(b,x){for(var v=0;v<x.length;v++){var N=x[v];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,x,v){return x&&j(b.prototype,x),v&&j(b,v),b}})(),l=function j(b,x,v){b===null&&(b=Function.prototype);var N=Object.getOwnPropertyDescriptor(b,x);if(N===void 0){var S=Object.getPrototypeOf(b);return S===null?void 0:j(S,x,v)}else{if("value"in N)return N.value;var w=N.get;return w===void 0?void 0:w.call(v)}},c=i(0),d=h(c);function h(j){return j&&j.__esModule?j:{default:j}}function p(j,b){if(!(j instanceof b))throw new TypeError("Cannot call a class as a function")}function f(j,b){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:j}function m(j,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);j.prototype=Object.create(b&&b.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(j,b):j.__proto__=b)}var g=(function(j){m(b,j);function b(){return p(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"insertInto",value:function(v,N){v.children.length===0?l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertInto",this).call(this,v,N):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),b})(d.default.Embed);g.blotName="break",g.tagName="BR",s.default=g}),(function(n,s,i){var o=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,g){m.__proto__=g}||function(m,g){for(var j in g)g.hasOwnProperty(j)&&(m[j]=g[j])};return function(m,g){f(m,g);function j(){this.constructor=m}m.prototype=g===null?Object.create(g):(j.prototype=g.prototype,new j)}})();Object.defineProperty(s,"__esModule",{value:!0});var l=i(44),c=i(30),d=i(1),h=(function(f){o(m,f);function m(g){var j=f.call(this,g)||this;return j.build(),j}return m.prototype.appendChild=function(g){this.insertBefore(g)},m.prototype.attach=function(){f.prototype.attach.call(this),this.children.forEach(function(g){g.attach()})},m.prototype.build=function(){var g=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(j){try{var b=p(j);g.insertBefore(b,g.children.head||void 0)}catch(x){if(x instanceof d.ParchmentError)return;throw x}})},m.prototype.deleteAt=function(g,j){if(g===0&&j===this.length())return this.remove();this.children.forEachAt(g,j,function(b,x,v){b.deleteAt(x,v)})},m.prototype.descendant=function(g,j){var b=this.children.find(j),x=b[0],v=b[1];return g.blotName==null&&g(x)||g.blotName!=null&&x instanceof g?[x,v]:x instanceof m?x.descendant(g,v):[null,-1]},m.prototype.descendants=function(g,j,b){j===void 0&&(j=0),b===void 0&&(b=Number.MAX_VALUE);var x=[],v=b;return this.children.forEachAt(j,b,function(N,S,w){(g.blotName==null&&g(N)||g.blotName!=null&&N instanceof g)&&x.push(N),N instanceof m&&(x=x.concat(N.descendants(g,S,v))),v-=w}),x},m.prototype.detach=function(){this.children.forEach(function(g){g.detach()}),f.prototype.detach.call(this)},m.prototype.formatAt=function(g,j,b,x){this.children.forEachAt(g,j,function(v,N,S){v.formatAt(N,S,b,x)})},m.prototype.insertAt=function(g,j,b){var x=this.children.find(g),v=x[0],N=x[1];if(v)v.insertAt(N,j,b);else{var S=b==null?d.create("text",j):d.create(j,b);this.appendChild(S)}},m.prototype.insertBefore=function(g,j){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(b){return g instanceof b}))throw new d.ParchmentError("Cannot insert "+g.statics.blotName+" into "+this.statics.blotName);g.insertInto(this,j)},m.prototype.length=function(){return this.children.reduce(function(g,j){return g+j.length()},0)},m.prototype.moveChildren=function(g,j){this.children.forEach(function(b){g.insertBefore(b,j)})},m.prototype.optimize=function(g){if(f.prototype.optimize.call(this,g),this.children.length===0)if(this.statics.defaultChild!=null){var j=d.create(this.statics.defaultChild);this.appendChild(j),j.optimize(g)}else this.remove()},m.prototype.path=function(g,j){j===void 0&&(j=!1);var b=this.children.find(g,j),x=b[0],v=b[1],N=[[this,g]];return x instanceof m?N.concat(x.path(v,j)):(x!=null&&N.push([x,v]),N)},m.prototype.removeChild=function(g){this.children.remove(g)},m.prototype.replace=function(g){g instanceof m&&g.moveChildren(this),f.prototype.replace.call(this,g)},m.prototype.split=function(g,j){if(j===void 0&&(j=!1),!j){if(g===0)return this;if(g===this.length())return this.next}var b=this.clone();return this.parent.insertBefore(b,this.next),this.children.forEachAt(g,this.length(),function(x,v,N){x=x.split(v,j),b.appendChild(x)}),b},m.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},m.prototype.update=function(g,j){var b=this,x=[],v=[];g.forEach(function(N){N.target===b.domNode&&N.type==="childList"&&(x.push.apply(x,N.addedNodes),v.push.apply(v,N.removedNodes))}),v.forEach(function(N){if(!(N.parentNode!=null&&N.tagName!=="IFRAME"&&document.body.compareDocumentPosition(N)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var S=d.find(N);S!=null&&(S.domNode.parentNode==null||S.domNode.parentNode===b.domNode)&&S.detach()}}),x.filter(function(N){return N.parentNode==b.domNode}).sort(function(N,S){return N===S?0:N.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(N){var S=null;N.nextSibling!=null&&(S=d.find(N.nextSibling));var w=p(N);(w.next!=S||w.next==null)&&(w.parent!=null&&w.parent.removeChild(b),b.insertBefore(w,S||void 0))})},m})(c.default);function p(f){var m=d.find(f);if(m==null)try{m=d.create(f)}catch{m=d.create(d.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(j){m.domNode.appendChild(j)}),f.parentNode&&f.parentNode.replaceChild(m.domNode,f),m.attach()}return m}s.default=h}),(function(n,s,i){var o=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,g){m.__proto__=g}||function(m,g){for(var j in g)g.hasOwnProperty(j)&&(m[j]=g[j])};return function(m,g){f(m,g);function j(){this.constructor=m}m.prototype=g===null?Object.create(g):(j.prototype=g.prototype,new j)}})();Object.defineProperty(s,"__esModule",{value:!0});var l=i(12),c=i(31),d=i(17),h=i(1),p=(function(f){o(m,f);function m(g){var j=f.call(this,g)||this;return j.attributes=new c.default(j.domNode),j}return m.formats=function(g){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return g.tagName.toLowerCase()},m.prototype.format=function(g,j){var b=h.query(g);b instanceof l.default?this.attributes.attribute(b,j):j&&b!=null&&(g!==this.statics.blotName||this.formats()[g]!==j)&&this.replaceWith(g,j)},m.prototype.formats=function(){var g=this.attributes.values(),j=this.statics.formats(this.domNode);return j!=null&&(g[this.statics.blotName]=j),g},m.prototype.replaceWith=function(g,j){var b=f.prototype.replaceWith.call(this,g,j);return this.attributes.copy(b),b},m.prototype.update=function(g,j){var b=this;f.prototype.update.call(this,g,j),g.some(function(x){return x.target===b.domNode&&x.type==="attributes"})&&this.attributes.build()},m.prototype.wrap=function(g,j){var b=f.prototype.wrap.call(this,g,j);return b instanceof m&&b.statics.scope===this.statics.scope&&this.attributes.move(b),b},m})(d.default);s.default=p}),(function(n,s,i){var o=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var m in f)f.hasOwnProperty(m)&&(p[m]=f[m])};return function(p,f){h(p,f);function m(){this.constructor=p}p.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(s,"__esModule",{value:!0});var l=i(30),c=i(1),d=(function(h){o(p,h);function p(){return h!==null&&h.apply(this,arguments)||this}return p.value=function(f){return!0},p.prototype.index=function(f,m){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(m,1):-1},p.prototype.position=function(f,m){var g=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return f>0&&(g+=1),[this.parent.domNode,g]},p.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},p.scope=c.Scope.INLINE_BLOT,p})(l.default);s.default=d}),(function(n,s,i){var o=i(11),l=i(3),c={attributes:{compose:function(h,p,f){typeof h!="object"&&(h={}),typeof p!="object"&&(p={});var m=l(!0,{},p);f||(m=Object.keys(m).reduce(function(j,b){return m[b]!=null&&(j[b]=m[b]),j},{}));for(var g in h)h[g]!==void 0&&p[g]===void 0&&(m[g]=h[g]);return Object.keys(m).length>0?m:void 0},diff:function(h,p){typeof h!="object"&&(h={}),typeof p!="object"&&(p={});var f=Object.keys(h).concat(Object.keys(p)).reduce(function(m,g){return o(h[g],p[g])||(m[g]=p[g]===void 0?null:p[g]),m},{});return Object.keys(f).length>0?f:void 0},transform:function(h,p,f){if(typeof h!="object")return p;if(typeof p=="object"){if(!f)return p;var m=Object.keys(p).reduce(function(g,j){return h[j]===void 0&&(g[j]=p[j]),g},{});return Object.keys(m).length>0?m:void 0}}},iterator:function(h){return new d(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function d(h){this.ops=h,this.index=0,this.offset=0}d.prototype.hasNext=function(){return this.peekLength()<1/0},d.prototype.next=function(h){h||(h=1/0);var p=this.ops[this.index];if(p){var f=this.offset,m=c.length(p);if(h>=m-f?(h=m-f,this.index+=1,this.offset=0):this.offset+=h,typeof p.delete=="number")return{delete:h};var g={};return p.attributes&&(g.attributes=p.attributes),typeof p.retain=="number"?g.retain=h:typeof p.insert=="string"?g.insert=p.insert.substr(f,h):g.insert=p.insert,g}else return{retain:1/0}},d.prototype.peek=function(){return this.ops[this.index]},d.prototype.peekLength=function(){return this.ops[this.index]?c.length(this.ops[this.index])-this.offset:1/0},d.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},d.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,p=this.index,f=this.next(),m=this.ops.slice(this.index);return this.offset=h,this.index=p,[f].concat(m)}else return[]},n.exports=c}),(function(n,s){var i=(function(){function o(b,x){return x!=null&&b instanceof x}var l;try{l=Map}catch{l=function(){}}var c;try{c=Set}catch{c=function(){}}var d;try{d=Promise}catch{d=function(){}}function h(b,x,v,N,S){typeof x=="object"&&(v=x.depth,N=x.prototype,S=x.includeNonEnumerable,x=x.circular);var w=[],k=[],O=typeof Buffer<"u";typeof x>"u"&&(x=!0),typeof v>"u"&&(v=1/0);function C(A,B){if(A===null)return null;if(B===0)return A;var I,L;if(typeof A!="object")return A;if(o(A,l))I=new l;else if(o(A,c))I=new c;else if(o(A,d))I=new d(function(F,P){A.then(function(V){F(C(V,B-1))},function(V){P(C(V,B-1))})});else if(h.__isArray(A))I=[];else if(h.__isRegExp(A))I=new RegExp(A.source,j(A)),A.lastIndex&&(I.lastIndex=A.lastIndex);else if(h.__isDate(A))I=new Date(A.getTime());else{if(O&&Buffer.isBuffer(A))return Buffer.allocUnsafe?I=Buffer.allocUnsafe(A.length):I=new Buffer(A.length),A.copy(I),I;o(A,Error)?I=Object.create(A):typeof N>"u"?(L=Object.getPrototypeOf(A),I=Object.create(L)):(I=Object.create(N),L=N)}if(x){var D=w.indexOf(A);if(D!=-1)return k[D];w.push(A),k.push(I)}o(A,l)&&A.forEach(function(F,P){var V=C(P,B-1),W=C(F,B-1);I.set(V,W)}),o(A,c)&&A.forEach(function(F){var P=C(F,B-1);I.add(P)});for(var R in A){var U;L&&(U=Object.getOwnPropertyDescriptor(L,R)),!(U&&U.set==null)&&(I[R]=C(A[R],B-1))}if(Object.getOwnPropertySymbols)for(var $=Object.getOwnPropertySymbols(A),R=0;R<$.length;R++){var Y=$[R],K=Object.getOwnPropertyDescriptor(A,Y);K&&!K.enumerable&&!S||(I[Y]=C(A[Y],B-1),K.enumerable||Object.defineProperty(I,Y,{enumerable:!1}))}if(S)for(var Q=Object.getOwnPropertyNames(A),R=0;R<Q.length;R++){var q=Q[R],K=Object.getOwnPropertyDescriptor(A,q);K&&K.enumerable||(I[q]=C(A[q],B-1),Object.defineProperty(I,q,{enumerable:!1}))}return I}return C(b,v)}h.clonePrototype=function(x){if(x===null)return null;var v=function(){};return v.prototype=x,new v};function p(b){return Object.prototype.toString.call(b)}h.__objToStr=p;function f(b){return typeof b=="object"&&p(b)==="[object Date]"}h.__isDate=f;function m(b){return typeof b=="object"&&p(b)==="[object Array]"}h.__isArray=m;function g(b){return typeof b=="object"&&p(b)==="[object RegExp]"}h.__isRegExp=g;function j(b){var x="";return b.global&&(x+="g"),b.ignoreCase&&(x+="i"),b.multiline&&(x+="m"),x}return h.__getRegExpFlags=j,h})();typeof n=="object"&&n.exports&&(n.exports=i)}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function I(L,D){var R=[],U=!0,$=!1,Y=void 0;try{for(var K=L[Symbol.iterator](),Q;!(U=(Q=K.next()).done)&&(R.push(Q.value),!(D&&R.length===D));U=!0);}catch(q){$=!0,Y=q}finally{try{!U&&K.return&&K.return()}finally{if($)throw Y}}return R}return function(L,D){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return I(L,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=(function(){function I(L,D){for(var R=0;R<D.length;R++){var U=D[R];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,U.key,U)}}return function(L,D,R){return D&&I(L.prototype,D),R&&I(L,R),L}})(),c=function I(L,D,R){L===null&&(L=Function.prototype);var U=Object.getOwnPropertyDescriptor(L,D);if(U===void 0){var $=Object.getPrototypeOf(L);return $===null?void 0:I($,D,R)}else{if("value"in U)return U.value;var Y=U.get;return Y===void 0?void 0:Y.call(R)}},d=i(0),h=w(d),p=i(8),f=w(p),m=i(4),g=w(m),j=i(16),b=w(j),x=i(13),v=w(x),N=i(25),S=w(N);function w(I){return I&&I.__esModule?I:{default:I}}function k(I,L){if(!(I instanceof L))throw new TypeError("Cannot call a class as a function")}function O(I,L){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:I}function C(I,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);I.prototype=Object.create(L&&L.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(I,L):I.__proto__=L)}function A(I){return I instanceof g.default||I instanceof m.BlockEmbed}var B=(function(I){C(L,I);function L(D,R){k(this,L);var U=O(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,D));return U.emitter=R.emitter,Array.isArray(R.whitelist)&&(U.whitelist=R.whitelist.reduce(function($,Y){return $[Y]=!0,$},{})),U.domNode.addEventListener("DOMNodeInserted",function(){}),U.optimize(),U.enable(),U}return l(L,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(R,U){var $=this.line(R),Y=o($,2),K=Y[0],Q=Y[1],q=this.line(R+U),F=o(q,1),P=F[0];if(c(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"deleteAt",this).call(this,R,U),P!=null&&K!==P&&Q>0){if(K instanceof m.BlockEmbed||P instanceof m.BlockEmbed){this.optimize();return}if(K instanceof v.default){var V=K.newlineIndex(K.length(),!0);if(V>-1&&(K=K.split(V+1),K===P)){this.optimize();return}}else if(P instanceof v.default){var W=P.newlineIndex(0);W>-1&&P.split(W+1)}var Z=P.children.head instanceof b.default?null:P.children.head;K.moveChildren(P,Z),K.remove()}this.optimize()}},{key:"enable",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",R)}},{key:"formatAt",value:function(R,U,$,Y){this.whitelist!=null&&!this.whitelist[$]||(c(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"formatAt",this).call(this,R,U,$,Y),this.optimize())}},{key:"insertAt",value:function(R,U,$){if(!($!=null&&this.whitelist!=null&&!this.whitelist[U])){if(R>=this.length())if($==null||h.default.query(U,h.default.Scope.BLOCK)==null){var Y=h.default.create(this.statics.defaultChild);this.appendChild(Y),$==null&&U.endsWith(`
882`)&&(U=U.slice(0,-1)),Y.insertAt(0,U,$)}else{var K=h.default.create(U,$);this.appendChild(K)}else c(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"insertAt",this).call(this,R,U,$);this.optimize()}}},{key:"insertBefore",value:function(R,U){if(R.statics.scope===h.default.Scope.INLINE_BLOT){var $=h.default.create(this.statics.defaultChild);$.appendChild(R),R=$}c(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"insertBefore",this).call(this,R,U)}},{key:"leaf",value:function(R){return this.path(R).pop()||[null,-1]}},{key:"line",value:function(R){return R===this.length()?this.line(R-1):this.descendant(A,R)}},{key:"lines",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,$=function Y(K,Q,q){var F=[],P=q;return K.children.forEachAt(Q,q,function(V,W,Z){A(V)?F.push(V):V instanceof h.default.Container&&(F=F.concat(Y(V,W,P))),P-=Z}),F};return $(this,R,U)}},{key:"optimize",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(c(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"optimize",this).call(this,R,U),R.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,R,U))}},{key:"path",value:function(R){return c(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"path",this).call(this,R).slice(1)}},{key:"update",value:function(R){if(this.batch!==!0){var U=f.default.sources.USER;typeof R=="string"&&(U=R),Array.isArray(R)||(R=this.observer.takeRecords()),R.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,U,R),c(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"update",this).call(this,R.concat([])),R.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,U,R)}}}]),L})(h.default.Scroll);B.blotName="scroll",B.className="ql-editor",B.tagName="DIV",B.defaultChild="block",B.allowedChildren=[g.default,m.BlockEmbed,S.default],s.default=B}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.SHORTKEY=s.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},l=(function(){function H(G,te){var re=[],ue=!0,ye=!1,be=void 0;try{for(var Te=G[Symbol.iterator](),ie;!(ue=(ie=Te.next()).done)&&(re.push(ie.value),!(te&&re.length===te));ue=!0);}catch(De){ye=!0,be=De}finally{try{!ue&&Te.return&&Te.return()}finally{if(ye)throw be}}return re}return function(G,te){if(Array.isArray(G))return G;if(Symbol.iterator in Object(G))return H(G,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function H(G,te){for(var re=0;re<te.length;re++){var ue=te[re];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(G,ue.key,ue)}}return function(G,te,re){return te&&H(G.prototype,te),re&&H(G,re),G}})(),d=i(21),h=I(d),p=i(11),f=I(p),m=i(3),g=I(m),j=i(2),b=I(j),x=i(20),v=I(x),N=i(0),S=I(N),w=i(5),k=I(w),O=i(10),C=I(O),A=i(9),B=I(A);function I(H){return H&&H.__esModule?H:{default:H}}function L(H,G,te){return G in H?Object.defineProperty(H,G,{value:te,enumerable:!0,configurable:!0,writable:!0}):H[G]=te,H}function D(H,G){if(!(H instanceof G))throw new TypeError("Cannot call a class as a function")}function R(H,G){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G&&(typeof G=="object"||typeof G=="function")?G:H}function U(H,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof G);H.prototype=Object.create(G&&G.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),G&&(Object.setPrototypeOf?Object.setPrototypeOf(H,G):H.__proto__=G)}var $=(0,C.default)("quill:keyboard"),Y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",K=(function(H){U(G,H),c(G,null,[{key:"match",value:function(re,ue){return ue=X(ue),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ye){return!!ue[ye]!==re[ye]&&ue[ye]!==null})?!1:ue.key===(re.which||re.keyCode)}}]);function G(te,re){D(this,G);var ue=R(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,te,re));return ue.bindings={},Object.keys(ue.options.bindings).forEach(function(ye){ye==="list autofill"&&te.scroll.whitelist!=null&&!te.scroll.whitelist.list||ue.options.bindings[ye]&&ue.addBinding(ue.options.bindings[ye])}),ue.addBinding({key:G.keys.ENTER,shiftKey:null},V),ue.addBinding({key:G.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(ue.addBinding({key:G.keys.BACKSPACE},{collapsed:!0},q),ue.addBinding({key:G.keys.DELETE},{collapsed:!0},F)):(ue.addBinding({key:G.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},q),ue.addBinding({key:G.keys.DELETE},{collapsed:!0,suffix:/^.?$/},F)),ue.addBinding({key:G.keys.BACKSPACE},{collapsed:!1},P),ue.addBinding({key:G.keys.DELETE},{collapsed:!1},P),ue.addBinding({key:G.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},q),ue.listen(),ue}return c(G,[{key:"addBinding",value:function(re){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},be=X(re);if(be==null||be.key==null)return $.warn("Attempted to add invalid keyboard binding",be);typeof ue=="function"&&(ue={handler:ue}),typeof ye=="function"&&(ye={handler:ye}),be=(0,g.default)(be,ue,ye),this.bindings[be.key]=this.bindings[be.key]||[],this.bindings[be.key].push(be)}},{key:"listen",value:function(){var re=this;this.quill.root.addEventListener("keydown",function(ue){if(!ue.defaultPrevented){var ye=ue.which||ue.keyCode,be=(re.bindings[ye]||[]).filter(function(at){return G.match(ue,at)});if(be.length!==0){var Te=re.quill.getSelection();if(!(Te==null||!re.quill.hasFocus())){var ie=re.quill.getLine(Te.index),De=l(ie,2),Ye=De[0],He=De[1],ce=re.quill.getLeaf(Te.index),he=l(ce,2),Ae=he[0],J=he[1],ee=Te.length===0?[Ae,J]:re.quill.getLeaf(Te.index+Te.length),de=l(ee,2),je=de[0],we=de[1],_e=Ae instanceof S.default.Text?Ae.value().slice(0,J):"",qe=je instanceof S.default.Text?je.value().slice(we):"",Qe={collapsed:Te.length===0,empty:Te.length===0&&Ye.length()<=1,format:re.quill.getFormat(Te),offset:He,prefix:_e,suffix:qe},ht=be.some(function(at){if(at.collapsed!=null&&at.collapsed!==Qe.collapsed||at.empty!=null&&at.empty!==Qe.empty||at.offset!=null&&at.offset!==Qe.offset)return!1;if(Array.isArray(at.format)){if(at.format.every(function(Dt){return Qe.format[Dt]==null}))return!1}else if(o(at.format)==="object"&&!Object.keys(at.format).every(function(Dt){return at.format[Dt]===!0?Qe.format[Dt]!=null:at.format[Dt]===!1?Qe.format[Dt]==null:(0,f.default)(at.format[Dt],Qe.format[Dt])}))return!1;return at.prefix!=null&&!at.prefix.test(Qe.prefix)||at.suffix!=null&&!at.suffix.test(Qe.suffix)?!1:at.handler.call(re,Te,Qe)!==!0});ht&&ue.preventDefault()}}}})}}]),G})(B.default);K.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},K.DEFAULTS={bindings:{bold:Z("bold"),italic:Z("italic"),underline:Z("underline"),indent:{key:K.keys.TAB,format:["blockquote","indent","list"],handler:function(G,te){if(te.collapsed&&te.offset!==0)return!0;this.quill.format("indent","+1",k.default.sources.USER)}},outdent:{key:K.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(G,te){if(te.collapsed&&te.offset!==0)return!0;this.quill.format("indent","-1",k.default.sources.USER)}},"outdent backspace":{key:K.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(G,te){te.format.indent!=null?this.quill.format("indent","-1",k.default.sources.USER):te.format.list!=null&&this.quill.format("list",!1,k.default.sources.USER)}},"indent code-block":W(!0),"outdent code-block":W(!1),"remove tab":{key:K.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(G){this.quill.deleteText(G.index-1,1,k.default.sources.USER)}},tab:{key:K.keys.TAB,handler:function(G){this.quill.history.cutoff();var te=new b.default().retain(G.index).delete(G.length).insert("	");this.quill.updateContents(te,k.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index+1,k.default.sources.SILENT)}},"list empty enter":{key:K.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(G,te){this.quill.format("list",!1,k.default.sources.USER),te.format.indent&&this.quill.format("indent",!1,k.default.sources.USER)}},"checklist enter":{key:K.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(G){var te=this.quill.getLine(G.index),re=l(te,2),ue=re[0],ye=re[1],be=(0,g.default)({},ue.formats(),{list:"checked"}),Te=new b.default().retain(G.index).insert(`
883`,be).retain(ue.length()-ye-1).retain(1,{list:"unchecked"});this.quill.updateContents(Te,k.default.sources.USER),this.quill.setSelection(G.index+1,k.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:K.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(G,te){var re=this.quill.getLine(G.index),ue=l(re,2),ye=ue[0],be=ue[1],Te=new b.default().retain(G.index).insert(`
884`,te.format).retain(ye.length()-be-1).retain(1,{header:null});this.quill.updateContents(Te,k.default.sources.USER),this.quill.setSelection(G.index+1,k.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(G,te){var re=te.prefix.length,ue=this.quill.getLine(G.index),ye=l(ue,2),be=ye[0],Te=ye[1];if(Te>re)return!0;var ie=void 0;switch(te.prefix.trim()){case"[]":case"[ ]":ie="unchecked";break;case"[x]":ie="checked";break;case"-":case"*":ie="bullet";break;default:ie="ordered"}this.quill.insertText(G.index," ",k.default.sources.USER),this.quill.history.cutoff();var De=new b.default().retain(G.index-Te).delete(re+1).retain(be.length()-2-Te).retain(1,{list:ie});this.quill.updateContents(De,k.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index-re,k.default.sources.SILENT)}},"code exit":{key:K.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(G){var te=this.quill.getLine(G.index),re=l(te,2),ue=re[0],ye=re[1],be=new b.default().retain(G.index+ue.length()-ye-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(be,k.default.sources.USER)}},"embed left":Q(K.keys.LEFT,!1),"embed left shift":Q(K.keys.LEFT,!0),"embed right":Q(K.keys.RIGHT,!1),"embed right shift":Q(K.keys.RIGHT,!0)}};function Q(H,G){var te,re=H===K.keys.LEFT?"prefix":"suffix";return te={key:H,shiftKey:G,altKey:null},L(te,re,/^$/),L(te,"handler",function(ye){var be=ye.index;H===K.keys.RIGHT&&(be+=ye.length+1);var Te=this.quill.getLeaf(be),ie=l(Te,1),De=ie[0];return De instanceof S.default.Embed?(H===K.keys.LEFT?G?this.quill.setSelection(ye.index-1,ye.length+1,k.default.sources.USER):this.quill.setSelection(ye.index-1,k.default.sources.USER):G?this.quill.setSelection(ye.index,ye.length+1,k.default.sources.USER):this.quill.setSelection(ye.index+ye.length+1,k.default.sources.USER),!1):!0}),te}function q(H,G){if(!(H.index===0||this.quill.getLength()<=1)){var te=this.quill.getLine(H.index),re=l(te,1),ue=re[0],ye={};if(G.offset===0){var be=this.quill.getLine(H.index-1),Te=l(be,1),ie=Te[0];if(ie!=null&&ie.length()>1){var De=ue.formats(),Ye=this.quill.getFormat(H.index-1,1);ye=v.default.attributes.diff(De,Ye)||{}}}var He=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(G.prefix)?2:1;this.quill.deleteText(H.index-He,He,k.default.sources.USER),Object.keys(ye).length>0&&this.quill.formatLine(H.index-He,He,ye,k.default.sources.USER),this.quill.focus()}}function F(H,G){var te=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(G.suffix)?2:1;if(!(H.index>=this.quill.getLength()-te)){var re={},ue=0,ye=this.quill.getLine(H.index),be=l(ye,1),Te=be[0];if(G.offset>=Te.length()-1){var ie=this.quill.getLine(H.index+1),De=l(ie,1),Ye=De[0];if(Ye){var He=Te.formats(),ce=this.quill.getFormat(H.index,1);re=v.default.attributes.diff(He,ce)||{},ue=Ye.length()}}this.quill.deleteText(H.index,te,k.default.sources.USER),Object.keys(re).length>0&&this.quill.formatLine(H.index+ue-1,te,re,k.default.sources.USER)}}function P(H){var G=this.quill.getLines(H),te={};if(G.length>1){var re=G[0].formats(),ue=G[G.length-1].formats();te=v.default.attributes.diff(ue,re)||{}}this.quill.deleteText(H,k.default.sources.USER),Object.keys(te).length>0&&this.quill.formatLine(H.index,1,te,k.default.sources.USER),this.quill.setSelection(H.index,k.default.sources.SILENT),this.quill.focus()}function V(H,G){var te=this;H.length>0&&this.quill.scroll.deleteAt(H.index,H.length);var re=Object.keys(G.format).reduce(function(ue,ye){return S.default.query(ye,S.default.Scope.BLOCK)&&!Array.isArray(G.format[ye])&&(ue[ye]=G.format[ye]),ue},{});this.quill.insertText(H.index,`
885`,re,k.default.sources.USER),this.quill.setSelection(H.index+1,k.default.sources.SILENT),this.quill.focus(),Object.keys(G.format).forEach(function(ue){re[ue]==null&&(Array.isArray(G.format[ue])||ue!=="link"&&te.quill.format(ue,G.format[ue],k.default.sources.USER))})}function W(H){return{key:K.keys.TAB,shiftKey:!H,format:{"code-block":!0},handler:function(te){var re=S.default.query("code-block"),ue=te.index,ye=te.length,be=this.quill.scroll.descendant(re,ue),Te=l(be,2),ie=Te[0],De=Te[1];if(ie!=null){var Ye=this.quill.getIndex(ie),He=ie.newlineIndex(De,!0)+1,ce=ie.newlineIndex(Ye+De+ye),he=ie.domNode.textContent.slice(He,ce).split(`
886`);De=0,he.forEach(function(Ae,J){H?(ie.insertAt(He+De,re.TAB),De+=re.TAB.length,J===0?ue+=re.TAB.length:ye+=re.TAB.length):Ae.startsWith(re.TAB)&&(ie.deleteAt(He+De,re.TAB.length),De-=re.TAB.length,J===0?ue-=re.TAB.length:ye-=re.TAB.length),De+=Ae.length+1}),this.quill.update(k.default.sources.USER),this.quill.setSelection(ue,ye,k.default.sources.SILENT)}}}}function Z(H){return{key:H[0].toUpperCase(),shortKey:!0,handler:function(te,re){this.quill.format(H,!re.format[H],k.default.sources.USER)}}}function X(H){if(typeof H=="string"||typeof H=="number")return X({key:H});if((typeof H>"u"?"undefined":o(H))==="object"&&(H=(0,h.default)(H,!1)),typeof H.key=="string")if(K.keys[H.key.toUpperCase()]!=null)H.key=K.keys[H.key.toUpperCase()];else if(H.key.length===1)H.key=H.key.toUpperCase().charCodeAt(0);else return null;return H.shortKey&&(H[Y]=H.shortKey,delete H.shortKey),H}s.default=K,s.SHORTKEY=Y}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function v(N,S){var w=[],k=!0,O=!1,C=void 0;try{for(var A=N[Symbol.iterator](),B;!(k=(B=A.next()).done)&&(w.push(B.value),!(S&&w.length===S));k=!0);}catch(I){O=!0,C=I}finally{try{!k&&A.return&&A.return()}finally{if(O)throw C}}return w}return function(N,S){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return v(N,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=function v(N,S,w){N===null&&(N=Function.prototype);var k=Object.getOwnPropertyDescriptor(N,S);if(k===void 0){var O=Object.getPrototypeOf(N);return O===null?void 0:v(O,S,w)}else{if("value"in k)return k.value;var C=k.get;return C===void 0?void 0:C.call(w)}},c=(function(){function v(N,S){for(var w=0;w<S.length;w++){var k=S[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(N,k.key,k)}}return function(N,S,w){return S&&v(N.prototype,S),w&&v(N,w),N}})(),d=i(0),h=m(d),p=i(7),f=m(p);function m(v){return v&&v.__esModule?v:{default:v}}function g(v,N){if(!(v instanceof N))throw new TypeError("Cannot call a class as a function")}function j(v,N){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:v}function b(v,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);v.prototype=Object.create(N&&N.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(v,N):v.__proto__=N)}var x=(function(v){b(N,v),c(N,null,[{key:"value",value:function(){}}]);function N(S,w){g(this,N);var k=j(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,S));return k.selection=w,k.textNode=document.createTextNode(N.CONTENTS),k.domNode.appendChild(k.textNode),k._length=0,k}return c(N,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(w,k){if(this._length!==0)return l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,w,k);for(var O=this,C=0;O!=null&&O.statics.scope!==h.default.Scope.BLOCK_BLOT;)C+=O.offset(O.parent),O=O.parent;O!=null&&(this._length=N.CONTENTS.length,O.optimize(),O.formatAt(C,N.CONTENTS.length,w,k),this._length=0)}},{key:"index",value:function(w,k){return w===this.textNode?0:l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"index",this).call(this,w,k)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var w=this.textNode,k=this.selection.getNativeRange(),O=void 0,C=void 0,A=void 0;if(k!=null&&k.start.node===w&&k.end.node===w){var B=[w,k.start.offset,k.end.offset];O=B[0],C=B[1],A=B[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==N.CONTENTS){var I=this.textNode.data.split(N.CONTENTS).join("");this.next instanceof f.default?(O=this.next.domNode,this.next.insertAt(0,I),this.textNode.data=N.CONTENTS):(this.textNode.data=I,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(N.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),C!=null){var L=[C,A].map(function(R){return Math.max(0,Math.min(O.data.length,R-1))}),D=o(L,2);return C=D[0],A=D[1],{startNode:O,startOffset:C,endNode:O,endOffset:A}}}}},{key:"update",value:function(w,k){var O=this;if(w.some(function(A){return A.type==="characterData"&&A.target===O.textNode})){var C=this.restore();C&&(k.range=C)}}},{key:"value",value:function(){return""}}]),N})(h.default.Embed);x.blotName="cursor",x.className="ql-cursor",x.tagName="span",x.CONTENTS="\uFEFF",s.default=x}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=i(0),l=h(o),c=i(4),d=h(c);function h(j){return j&&j.__esModule?j:{default:j}}function p(j,b){if(!(j instanceof b))throw new TypeError("Cannot call a class as a function")}function f(j,b){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:j}function m(j,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);j.prototype=Object.create(b&&b.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(j,b):j.__proto__=b)}var g=(function(j){m(b,j);function b(){return p(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return b})(l.default.Container);g.allowedChildren=[d.default,c.BlockEmbed,g],s.default=g}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.ColorStyle=s.ColorClass=s.ColorAttributor=void 0;var o=(function(){function x(v,N){for(var S=0;S<N.length;S++){var w=N[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,N,S){return N&&x(v.prototype,N),S&&x(v,S),v}})(),l=function x(v,N,S){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,N);if(w===void 0){var k=Object.getPrototypeOf(v);return k===null?void 0:x(k,N,S)}else{if("value"in w)return w.value;var O=w.get;return O===void 0?void 0:O.call(S)}},c=i(0),d=h(c);function h(x){return x&&x.__esModule?x:{default:x}}function p(x,v){if(!(x instanceof v))throw new TypeError("Cannot call a class as a function")}function f(x,v){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:x}function m(x,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);x.prototype=Object.create(v&&v.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(x,v):x.__proto__=v)}var g=(function(x){m(v,x);function v(){return p(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"value",value:function(S){var w=l(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,S);return w.startsWith("rgb(")?(w=w.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+w.split(",").map(function(k){return("00"+parseInt(k).toString(16)).slice(-2)}).join("")):w}}]),v})(d.default.Attributor.Style),j=new d.default.Attributor.Class("color","ql-color",{scope:d.default.Scope.INLINE}),b=new g("color","color",{scope:d.default.Scope.INLINE});s.ColorAttributor=g,s.ColorClass=j,s.ColorStyle=b}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.sanitize=s.default=void 0;var o=(function(){function b(x,v){for(var N=0;N<v.length;N++){var S=v[N];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,v,N){return v&&b(x.prototype,v),N&&b(x,N),x}})(),l=function b(x,v,N){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,v);if(S===void 0){var w=Object.getPrototypeOf(x);return w===null?void 0:b(w,v,N)}else{if("value"in S)return S.value;var k=S.get;return k===void 0?void 0:k.call(N)}},c=i(6),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function p(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function f(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:b}function m(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var g=(function(b){m(x,b);function x(){return p(this,x),f(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,[{key:"format",value:function(N,S){if(N!==this.statics.blotName||!S)return l(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,N,S);S=this.constructor.sanitize(S),this.domNode.setAttribute("href",S)}}],[{key:"create",value:function(N){var S=l(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,N);return N=this.sanitize(N),S.setAttribute("href",N),S.setAttribute("rel","noopener noreferrer"),S.setAttribute("target","_blank"),S}},{key:"formats",value:function(N){return N.getAttribute("href")}},{key:"sanitize",value:function(N){return j(N,this.PROTOCOL_WHITELIST)?N:this.SANITIZED_URL}}]),x})(d.default);g.blotName="link",g.tagName="A",g.SANITIZED_URL="about:blank",g.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function j(b,x){var v=document.createElement("a");v.href=b;var N=v.href.slice(0,v.href.indexOf(":"));return x.indexOf(N)>-1}s.default=g,s.sanitize=j}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},l=(function(){function x(v,N){for(var S=0;S<N.length;S++){var w=N[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,N,S){return N&&x(v.prototype,N),S&&x(v,S),v}})(),c=i(23),d=f(c),h=i(107),p=f(h);function f(x){return x&&x.__esModule?x:{default:x}}function m(x,v){if(!(x instanceof v))throw new TypeError("Cannot call a class as a function")}var g=0;function j(x,v){x.setAttribute(v,x.getAttribute(v)!=="true")}var b=(function(){function x(v){var N=this;m(this,x),this.select=v,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){N.togglePicker()}),this.label.addEventListener("keydown",function(S){switch(S.keyCode){case d.default.keys.ENTER:N.togglePicker();break;case d.default.keys.ESCAPE:N.escape(),S.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return l(x,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),j(this.label,"aria-expanded"),j(this.options,"aria-hidden")}},{key:"buildItem",value:function(N){var S=this,w=document.createElement("span");return w.tabIndex="0",w.setAttribute("role","button"),w.classList.add("ql-picker-item"),N.hasAttribute("value")&&w.setAttribute("data-value",N.getAttribute("value")),N.textContent&&w.setAttribute("data-label",N.textContent),w.addEventListener("click",function(){S.selectItem(w,!0)}),w.addEventListener("keydown",function(k){switch(k.keyCode){case d.default.keys.ENTER:S.selectItem(w,!0),k.preventDefault();break;case d.default.keys.ESCAPE:S.escape(),k.preventDefault();break}}),w}},{key:"buildLabel",value:function(){var N=document.createElement("span");return N.classList.add("ql-picker-label"),N.innerHTML=p.default,N.tabIndex="0",N.setAttribute("role","button"),N.setAttribute("aria-expanded","false"),this.container.appendChild(N),N}},{key:"buildOptions",value:function(){var N=this,S=document.createElement("span");S.classList.add("ql-picker-options"),S.setAttribute("aria-hidden","true"),S.tabIndex="-1",S.id="ql-picker-options-"+g,g+=1,this.label.setAttribute("aria-controls",S.id),this.options=S,[].slice.call(this.select.options).forEach(function(w){var k=N.buildItem(w);S.appendChild(k),w.selected===!0&&N.selectItem(k)}),this.container.appendChild(S)}},{key:"buildPicker",value:function(){var N=this;[].slice.call(this.select.attributes).forEach(function(S){N.container.setAttribute(S.name,S.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var N=this;this.close(),setTimeout(function(){return N.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","fal
886se"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(N){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=this.container.querySelector(".ql-selected");if(N!==w&&(w!=null&&w.classList.remove("ql-selected"),N!=null&&(N.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(N.parentNode.children,N),N.hasAttribute("data-value")?this.label.setAttribute("data-value",N.getAttribute("data-value")):this.label.removeAttribute("data-value"),N.hasAttribute("data-label")?this.label.setAttribute("data-label",N.getAttribute("data-label")):this.label.removeAttribute("data-label"),S))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":o(Event))==="object"){var k=document.createEvent("Event");k.initEvent("change",!0,!0),this.select.dispatchEvent(k)}this.close()}}},{key:"update",value:function(){var N=void 0;if(this.select.selectedIndex>-1){var S=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];N=this.select.options[this.select.selectedIndex],this.selectItem(S)}else this.selectItem(null);var w=N!=null&&N!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",w)}}]),x})();s.default=b}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=i(0),l=$(o),c=i(5),d=$(c),h=i(4),p=$(h),f=i(16),m=$(f),g=i(25),j=$(g),b=i(24),x=$(b),v=i(35),N=$(v),S=i(6),w=$(S),k=i(22),O=$(k),C=i(7),A=$(C),B=i(55),I=$(B),L=i(42),D=$(L),R=i(23),U=$(R);function $(Y){return Y&&Y.__esModule?Y:{default:Y}}d.default.register({"blots/block":p.default,"blots/block/embed":h.BlockEmbed,"blots/break":m.default,"blots/container":j.default,"blots/cursor":x.default,"blots/embed":N.default,"blots/inline":w.default,"blots/scroll":O.default,"blots/text":A.default,"modules/clipboard":I.default,"modules/history":D.default,"modules/keyboard":U.default}),l.default.register(p.default,m.default,x.default,w.default,O.default,A.default),s.default=d.default}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=i(1),l=(function(){function c(d){this.domNode=d,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(c.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),c.create=function(d){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof d=="string"&&(d=d.toUpperCase(),parseInt(d).toString()===d&&(d=parseInt(d))),typeof d=="number"?h=document.createElement(this.tagName[d-1]):this.tagName.indexOf(d)>-1?h=document.createElement(d):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},c.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},c.prototype.clone=function(){var d=this.domNode.cloneNode(!1);return o.create(d)},c.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},c.prototype.deleteAt=function(d,h){var p=this.isolate(d,h);p.remove()},c.prototype.formatAt=function(d,h,p,f){var m=this.isolate(d,h);if(o.query(p,o.Scope.BLOT)!=null&&f)m.wrap(p,f);else if(o.query(p,o.Scope.ATTRIBUTE)!=null){var g=o.create(this.statics.scope);m.wrap(g),g.format(p,f)}},c.prototype.insertAt=function(d,h,p){var f=p==null?o.create("text",h):o.create(h,p),m=this.split(d);this.parent.insertBefore(f,m)},c.prototype.insertInto=function(d,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var p=null;d.children.insertBefore(this,h),h!=null&&(p=h.domNode),(this.domNode.parentNode!=d.domNode||this.domNode.nextSibling!=p)&&d.domNode.insertBefore(this.domNode,p),this.parent=d,this.attach()},c.prototype.isolate=function(d,h){var p=this.split(d);return p.split(h),p},c.prototype.length=function(){return 1},c.prototype.offset=function(d){return d===void 0&&(d=this.parent),this.parent==null||this==d?0:this.parent.children.offset(this)+this.parent.offset(d)},c.prototype.optimize=function(d){this.domNode[o.DATA_KEY]!=null&&delete this.domNode[o.DATA_KEY].mutations},c.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},c.prototype.replace=function(d){d.parent!=null&&(d.parent.insertBefore(this,d.next),d.remove())}
vendor: 94,007 bytes, lines 886-896
886,c.prototype.replaceWith=function(d,h){var p=typeof d=="string"?o.create(d,h):d;return p.replace(this),p},c.prototype.split=function(d,h){return d===0?this:this.next},c.prototype.update=function(d,h){},c.prototype.wrap=function(d,h){var p=typeof d=="string"?o.create(d,h):d;return this.parent!=null&&this.parent.insertBefore(p,this.next),p.appendChild(this),p},c.blotName="abstract",c})();s.default=l}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=i(12),l=i(32),c=i(33),d=i(1),h=(function(){function p(f){this.attributes={},this.domNode=f,this.build()}return p.prototype.attribute=function(f,m){m?f.add(this.domNode,m)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},p.prototype.build=function(){var f=this;this.attributes={};var m=o.default.keys(this.domNode),g=l.default.keys(this.domNode),j=c.default.keys(this.domNode);m.concat(g).concat(j).forEach(function(b){var x=d.query(b,d.Scope.ATTRIBUTE);x instanceof o.default&&(f.attributes[x.attrName]=x)})},p.prototype.copy=function(f){var m=this;Object.keys(this.attributes).forEach(function(g){var j=m.attributes[g].value(m.domNode);f.format(g,j)})},p.prototype.move=function(f){var m=this;this.copy(f),Object.keys(this.attributes).forEach(function(g){m.attributes[g].remove(m.domNode)}),this.attributes={}},p.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(m,g){return m[g]=f.attributes[g].value(f.domNode),m},{})},p})();s.default=h}),(function(n,s,i){var o=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var m in f)f.hasOwnProperty(m)&&(p[m]=f[m])};return function(p,f){h(p,f);function m(){this.constructor=p}p.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(s,"__esModule",{value:!0});var l=i(12);function c(h,p){var f=h.getAttribute("class")||"";return f.split(/\s+/).filter(function(m){return m.indexOf(p+"-")===0})}var d=(function(h){o(p,h);function p(){return h!==null&&h.apply(this,arguments)||this}return p.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(m){return m.split("-").slice(0,-1).join("-")})},p.prototype.add=function(f,m){return this.canAdd(f,m)?(this.remove(f),f.classList.add(this.keyName+"-"+m),!0):!1},p.prototype.remove=function(f){var m=c(f,this.keyName);m.forEach(function(g){f.classList.remove(g)}),f.classList.length===0&&f.removeAttribute("class")},p.prototype.value=function(f){var m=c(f,this.keyName)[0]||"",g=m.slice(this.keyName.length+1);return this.canAdd(f,g)?g:""},p})(l.default);s.default=d}),(function(n,s,i){var o=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var m in f)f.hasOwnProperty(m)&&(p[m]=f[m])};return function(p,f){h(p,f);function m(){this.constructor=p}p.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(s,"__esModule",{value:!0});var l=i(12);function c(h){var p=h.split("-"),f=p.slice(1).map(function(m){return m[0].toUpperCase()+m.slice(1)}).join("");return p[0]+f}var d=(function(h){o(p,h);function p(){return h!==null&&h.apply(this,arguments)||this}return p.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(m){var g=m.split(":");return g[0].trim()})},p.prototype.add=function(f,m){return this.canAdd(f,m)?(f.style[c(this.keyName)]=m,!0):!1},p.prototype.remove=function(f){f.style[c(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},p.prototype.value=function(f){var m=f.style[c(this.keyName)];return this.canAdd(f,m)?m:""},p})(l.default);s.default=d}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function d(h,p){for(var f=0;f<p.length;f++){var m=p[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,p,f){return p&&d(h.prototype,p),f&&d(h,f),h}})();function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}var c=(function(){function d(h,p){l(this,d),this.quill=h,this.options=p,this.modules={}}return o(d,[{key:"init",value:function(){var p=this;Object.keys(this.options.modules).forEach(function(f){p.modules[f]==null&&p.addModule(f)})}},{key:"addModule",value:function(p){var f=this.quill.constructor.import("modules/"+p);return this.modules[p]=new f(this.quill,this.options.modules[p]||{}),this.modules[p]}}]),d})();c.DEFAULTS={modules:{}},c.themes={default:c},s.default=c}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function v(N,S){for(var w=0;w<S.length;w++){var k=S[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(N,k.key,k)}}return function(N,S,w){return S&&v(N.prototype,S),w&&v(N,w),N}})(),l=function v(N,S,w){N===null&&(N=Function.prototype);var k=Object.getOwnPropertyDescriptor(N,S);if(k===void 0){var O=Object.getPrototypeOf(N);return O===null?void 0:v(O,S,w)}else{if("value"in k)return k.value;var C=k.get;return C===void 0?void 0:C.call(w)}},c=i(0),d=f(c),h=i(7),p=f(h);function f(v){return v&&v.__esModule?v:{default:v}}function m(v,N){if(!(v instanceof N))throw new TypeError("Cannot call a class as a function")}function g(v,N){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:v}function j(v,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);v.prototype=Object.create(N&&N.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(v,N):v.__proto__=N)}var b="\uFEFF",x=(function(v){j(N,v);function N(S){m(this,N);var w=g(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,S));return w.contentNode=document.createElement("span"),w.contentNode.setAttribute("contenteditable",!1),[].slice.call(w.domNode.childNodes).forEach(function(k){w.contentNode.appendChild(k)}),w.leftGuard=document.createTextNode(b),w.rightGuard=document.createTextNode(b),w.domNode.appendChild(w.leftGuard),w.domNode.appendChild(w.contentNode),w.domNode.appendChild(w.rightGuard),w}return o(N,[{key:"index",value:function(w,k){return w===this.leftGuard?0:w===this.rightGuard?1:l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"index",this).call(this,w,k)}},{key:"restore",value:function(w){var k=void 0,O=void 0,C=w.data.split(b).join("");if(w===this.leftGuard)if(this.prev instanceof p.default){var A=this.prev.length();this.prev.insertAt(A,C),k={startNode:this.prev.domNode,startOffset:A+C.length}}else O=document.createTextNode(C),this.parent.insertBefore(d.default.create(O),this),k={startNode:O,startOffset:C.length};else w===this.rightGuard&&(this.next instanceof p.default?(this.next.insertAt(0,C),k={startNode:this.next.domNode,startOffset:C.length}):(O=document.createTextNode(C),this.parent.insertBefore(d.default.create(O),this.next),k={startNode:O,startOffset:C.length}));return w.data=b,k}},{key:"update",value:function(w,k){var O=this;w.forEach(function(C){if(C.type==="characterData"&&(C.target===O.leftGuard||C.target===O.rightGuard)){var A=O.restore(C.target);A&&(k.range=A)}})}}]),N})(d.default.Embed);s.default=x}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.AlignStyle=s.AlignClass=s.AlignAttribute=void 0;var o=i(0),l=c(o);function c(m){return m&&m.__esModule?m:{default:m}}var d={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new l.default.Attributor.Attribute("align","align",d),p=new l.default.Attributor.Class("align","ql-align",d),f=new l.default.Attributor.Style("align","text-align",d);s.AlignAttribute=h,s.AlignClass=p,s.AlignStyle=f}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.BackgroundStyle=s.BackgroundClass=void 0;var o=i(0),l=d(o),c=i(26);function d(f){return f&&f.__esModule?f:{default:f}}var h=new l.default.Attributor.Class("background","ql-bg",{scope:l.default.Scope.INLINE}),p=new c.ColorAttributor("background","background-color",{scope:l.default.Scope.INLINE});s.BackgroundClass=h,s.BackgroundStyle=p}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.DirectionStyle=s.DirectionClass=s.DirectionAttribute=void 0;var o=i(0),l=c(o);function c(m){return m&&m.__esModule?m:{default:m}}var d={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},h=new l.default.Attributor.Attribute("direction","dir",d),p=new l.default.Attributor.Class("direction","ql-direction",d),f=new l.default.Attributor.Style("direction","direction",d);s.DirectionAttribute=h,s.DirectionClass=p,s.DirectionStyle=f}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.FontClass=s.FontStyle=void 0;var o=(function(){function v(N,S){for(var w=0;w<S.length;w++){var k=S[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(N,k.key,k)}}return function(N,S,w){return S&&v(N.prototype,S),w&&v(N,w),N}})(),l=function v(N,S,w){N===null&&(N=Function.prototype);var k=Object.getOwnPropertyDescriptor(N,S);if(k===void 0){var O=Object.getPrototypeOf(N);return O===null?void 0:v(O,S,w)}else{if("value"in k)return k.value;var C=k.get;return C===void 0?void 0:C.call(w)}},c=i(0),d=h(c);function h(v){return v&&v.__esModule?v:{default:v}}function p(v,N){if(!(v instanceof N))throw new TypeError("Cannot call a class as a function")}function f(v,N){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:v}function m(v,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);v.prototype=Object.create(N&&N.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(v,N):v.__proto__=N)}var g={scope:d.default.Scope.INLINE,whitelist:["serif","monospace"]},j=new d.default.Attributor.Class("font","ql-font",g),b=(function(v){m(N,v);function N(){return p(this,N),f(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return o(N,[{key:"value",value:function(w){return l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"value",this).call(this,w).replace(/["']/g,"")}}]),N})(d.default.Attributor.Style),x=new b("font","font-family",g);s.FontStyle=x,s.FontClass=j}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.SizeStyle=s.SizeClass=void 0;var o=i(0),l=c(o);function c(p){return p&&p.__esModule?p:{default:p}}var d=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});s.SizeClass=d,s.SizeStyle=h}),(function(n,s,i){n.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.getLastChangeIndex=s.default=void 0;var o=(function(){function S(w,k){for(var O=0;O<k.length;O++){var C=k[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}return function(w,k,O){return k&&S(w.prototype,k),O&&S(w,O),w}})(),l=i(0),c=m(l),d=i(5),h=m(d),p=i(9),f=m(p);function m(S){return S&&S.__esModule?S:{default:S}}function g(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function j(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function b(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var x=(function(S){b(w,S);function w(k,O){g(this,w);var C=j(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,k,O));return C.lastRecorded=0,C.ignoreChange=!1,C.clear(),C.quill.on(h.default.events.EDITOR_CHANGE,function(A,B,I,L){A!==h.default.events.TEXT_CHANGE||C.ignoreChange||(!C.options.userOnly||L===h.default.sources.USER?C.record(B,I):C.transform(B))}),C.quill.keyboard.addBinding({key:"Z",shortKey:!0},C.undo.bind(C)),C.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},C.redo.bind(C)),/Win/i.test(navigator.platform)&&C.quill.keyboard.addBinding({key:"Y",shortKey:!0},C.redo.bind(C)),C}return o(w,[{key:"change",value:function(O,C){if(this.stack[O].length!==0){var A=this.stack[O].pop();this.stack[C].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[O],h.default.sources.USER),this.ignoreChange=!1;var B=N(A[O]);this.quill.setSelection(B)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(O,C){if(O.ops.length!==0){this.stack.redo=[];var A=this.quill.getContents().diff(C),B=Date.now();if(this.lastRecorded+this.options.delay>B&&this.stack.undo.length>0){var I=this.stack.undo.pop();A=A.compose(I.undo),O=I.redo.compose(O)}else this.lastRecorded=B;this.stack.undo.push({redo:O,undo:A}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(O){this.stack.undo.forEach(function(C){C.undo=O.transform(C.undo,!0),C.redo=O.transform(C.redo,!0)}),this.stack.redo.forEach(function(C){C.undo=O.transform(C.undo,!0),C.redo=O.transform(C.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),w})(f.default);x.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function v(S){var w=S.ops[S.ops.length-1];return w==null?!1:w.insert!=null?typeof w.insert=="string"&&w.insert.endsWith(`
887`):w.attributes!=null?Object.keys(w.attributes).some(function(k){return c.default.query(k,c.default.Scope.BLOCK)!=null}):!1}function N(S){var w=S.reduce(function(O,C){return O+=C.delete||0,O},0),k=S.length()-w;return v(S)&&(k-=1),k}s.default=x,s.getLastChangeIndex=N}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BaseTooltip=void 0;var o=(function(){function V(W,Z){for(var X=0;X<Z.length;X++){var H=Z[X];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(W,H.key,H)}}return function(W,Z,X){return Z&&V(W.prototype,Z),X&&V(W,X),W}})(),l=function V(W,Z,X){W===null&&(W=Function.prototype);var H=Object.getOwnPropertyDescriptor(W,Z);if(H===void 0){var G=Object.getPrototypeOf(W);return G===null?void 0:V(G,Z,X)}else{if("value"in H)return H.value;var te=H.get;return te===void 0?void 0:te.call(X)}},c=i(3),d=B(c),h=i(2),p=B(h),f=i(8),m=B(f),g=i(23),j=B(g),b=i(34),x=B(b),v=i(59),N=B(v),S=i(60),w=B(S),k=i(28),O=B(k),C=i(61),A=B(C);function B(V){return V&&V.__esModule?V:{default:V}}function I(V,W){if(!(V instanceof W))throw new TypeError("Cannot call a class as a function")}function L(V,W){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:V}function D(V,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);V.prototype=Object.create(W&&W.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(V,W):V.__proto__=W)}var R=[!1,"center","right","justify"],U=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],$=[!1,"serif","monospace"],Y=["1","2","3",!1],K=["small",!1,"large","huge"],Q=(function(V){D(W,V);function W(Z,X){I(this,W);var H=L(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,Z,X)),G=function te(re){if(!document.body.contains(Z.root))return document.body.removeEventListener("click",te);H.tooltip!=null&&!H.tooltip.root.contains(re.target)&&document.activeElement!==H.tooltip.textbox&&!H.quill.hasFocus()&&H.tooltip.hide(),H.pickers!=null&&H.pickers.forEach(function(ue){ue.container.contains(re.target)||ue.close()})};return Z.emitter.listenDOM("click",document.body,G),H}return o(W,[{key:"addModule",value:function(X){var H=l(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"addModule",this).call(this,X);return X==="toolbar"&&this.extendToolbar(H),H}},{key:"buildButtons",value:function(X,H){X.forEach(function(G){var te=G.getAttribute("class")||"";te.split(/\s+/).forEach(function(re){if(re.startsWith("ql-")&&(re=re.slice(3),H[re]!=null))if(re==="direction")G.innerHTML=H[re][""]+H[re].rtl;else if(typeof H[re]=="string")G.innerHTML=H[re];else{var ue=G.value||"";ue!=null&&H[re][ue]&&(G.innerHTML=H[re][ue])}})})}},{key:"buildPickers",value:function(X,H){var G=this;this.pickers=X.map(function(re){if(re.classList.contains("ql-align"))return re.querySelector("option")==null&&P(re,R),new w.default(re,H.align);if(re.classList.contains("ql-background")||re.classList.contains("ql-color")){var ue=re.classList.contains("ql-background")?"background":"color";return re.querySelector("option")==null&&P(re,U,ue==="background"?"#ffffff":"#000000"),new N.default(re,H[ue])}else return re.querySelector("option")==null&&(re.classList.contains("ql-font")?P(re,$):re.classList.contains("ql-header")?P(re,Y):re.classList.contains("ql-size")&&P(re,K)),new O.default(re)});var te=function(){G.pickers.forEach(function(ue){ue.update()})};this.quill.on(m.default.events.EDITOR_CHANGE,te)}}]),W})(x.default);Q.DEFAULTS=(0,d.default)(!0,{},x.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var W=this,Z=this.container.querySelector("input.ql-image[type=file]");Z==null&&(Z=document.createElement("input"),Z.setAttribute("type","file"),Z.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),Z.classList.add("ql-image"),Z.addEventListener("change",function(){if(Z.files!=null&&Z.files[0]!=null){var X=new FileReader;X.onload=function(H){var G=W.quill.getSelection(!0);W.quill.updateContents(new p.default().retain(G.index).delete(G.length).insert({image:H.target.result}),m.default.sources.USER),W.quill.setSelection(G.index+1,m.default.sources.SILENT),Z.value=""},X.readAsDataURL(Z.files[0])}}),this.container.appendChild(Z)),Z.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var q=(function(V){D(W,V);function W(Z,X){I(this,W);var H=L(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,Z,X));return H.textbox=H.root.querySelector('input[type="text"]'),H.listen(),H}return o(W,[{key:"listen",value:function(){var X=this;this.textbox.addEventListener("keydown",function(H){j.default.match(H,"enter")?(X.save(),H.preventDefault()):j.default.match(H,"escape")&&(X.cancel(),H.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),H!=null?this.textbox.value=H:X!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+X)||""),this.root.setAttribute("data-mode",X)}},{key:"restoreFocus",value:function(){var X=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=X}},{key:"save",value:function(){var X=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var H=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",X,m.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",X,m.default.sources.USER)),this.quill.root.scrollTop=H;break}case"video":X=F(X);case"formula":{if(!X)break;var G=this.quill.getSelection(!0);if(G!=null){var te=G.index+G.length;this.quill.insertEmbed(te,this.root.getAttribute("data-mode"),X,m.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(te+1," ",m.default.sources.USER),this.quill.setSelection(te+2,m.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),W})(A.default);function F(V){var W=V.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||V.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return W?(W[1]||"https")+"://www.youtube.com/embed/"+W[2]+"?showinfo=0":(W=V.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(W[1]||"https")+"://player.vimeo.com/video/"+W[2]+"/":V}function P(V,W){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;W.forEach(function(X){var H=document.createElement("option");X===Z?H.setAttribute("selected","selected"):H.setAttribute("value",X),V.appendChild(H)})}s.BaseTooltip=q,s.default=Q}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function l(){this.head=this.tail=null,this.length=0}return l.prototype.append=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];this.insertBefore(c[0],null),c.length>1&&this.append.apply(this,c.slice(1))},l.prototype.contains=function(c){for(var d,h=this.iterator();d=h();)if(d===c)return!0;return!1},l.prototype.insertBefore=function(c,d){c&&(c.next=d,d!=null?(c.prev=d.prev,d.prev!=null&&(d.prev.next=c),d.prev=c,d===this.head&&(this.head=c)):this.tail!=null?(this.tail.next=c,c.prev=this.tail,this.tail=c):(c.prev=null,this.head=this.tail=c),this.length+=1)},l.prototype.offset=function(c){for(var d=0,h=this.head;h!=null;){if(h===c)return d;d+=h.length(),h=h.next}return-1},l.prototype.remove=function(c){this.contains(c)&&(c.prev!=null&&(c.prev.next=c.next),c.next!=null&&(c.next.prev=c.prev),c===this.head&&(this.head=c.next),c===this.tail&&(this.tail=c.prev),this.length-=1)},l.prototype.iterator=function(c){return c===void 0&&(c=this.head),function(){var d=c;return c!=null&&(c=c.next),d}},l.prototype.find=function(c,d){d===void 0&&(d=!1);for(var h,p=this.iterator();h=p();){var f=h.length();if(c<f||d&&c===f&&(h.next==null||h.next.length()!==0))return[h,c];c-=f}return[null,0]},l.prototype.forEach=function(c){for(var d,h=this.iterator();d=h();)c(d)},l.prototype.forEachAt=function(c,d,h){if(!(d<=0))for(var p=this.find(c),f=p[0],m=p[1],g,j=c-m,b=this.iterator(f);(g=b())&&j<c+d;){var x=g.length();c>j?h(g,c-j,Math.min(d,j+x-c)):h(g,0,Math.min(x,c+d-j)),j+=x}},l.prototype.map=function(c){return this.reduce(function(d,h){return d.push(c(h)),d},[])},l.prototype.reduce=function(c,d){for(var h,p=this.iterator();h=p();)d=c(d,h);return d},l})();s.default=o}),(function(n,s,i){var o=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,g){m.__proto__=g}||function(m,g){for(var j in g)g.hasOwnProperty(j)&&(m[j]=g[j])};return function(m,g){f(m,g);function j(){this.constructor=m}m.prototype=g===null?Object.create(g):(j.prototype=g.prototype,new j)}})();Object.defineProperty(s,"__esModule",{value:!0});var l=i(17),c=i(1),d={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,p=(function(f){o(m,f);function m(g){var j=f.call(this,g)||this;return j.scroll=j,j.observer=new MutationObserver(function(b){j.update(b)}),j.observer.observe(j.domNode,d),j.attach(),j}return m.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},m.prototype.deleteAt=function(g,j){this.update(),g===0&&j===this.length()?this.children.forEach(function(b){b.remove()}):f.prototype.deleteAt.call(this,g,j)},m.prototype.formatAt=function(g,j,b,x){this.update(),f.prototype.formatAt.call(this,g,j,b,x)},m.prototype.insertAt=function(g,j,b){this.update(),f.prototype.insertAt.call(this,g,j,b)},m.prototype.optimize=function(g,j){var b=this;g===void 0&&(g=[]),j===void 0&&(j={}),f.prototype.optimize.call(this,j);for(var x=[].slice.call(this.observer.takeRecords());x.length>0;)g.push(x.pop());for(var v=function(k,O){O===void 0&&(O=!0),!(k==null||k===b)&&k.domNode.parentNode!=null&&(k.domNode[c.DATA_KEY].mutations==null&&(k.domNode[c.DATA_KEY].mutations=[]),O&&v(k.parent))},N=function(k){k.domNode[c.DATA_KEY]==null||k.domNode[c.DATA_KEY].mutations==null||(k instanceof l.default&&k.children.forEach(N),k.optimize(j))},S=g,w=0;S.length>0;w+=1){if(w>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(S.forEach(function(k){var O=c.find(k.target,!0);O!=null&&(O.domNode===k.target&&(k.type==="childList"?(v(c.find(k.previousSibling,!1)),[].forEach.call(k.addedNodes,function(C){var A=c.find(C,!1);v(A,!1),A instanceof l.default&&A.children.forEach(function(B){v(B,!1)})})):k.type==="attributes"&&v(O.prev)),v(O))}),this.children.forEach(N),S=[].slice.call(this.observer.takeRecords()),x=S.slice();x.length>0;)g.push(x.pop())}},m.prototype.update=function(g,j){var b=this;j===void 0&&(j={}),g=g||this.observer.takeRecords(),g.map(function(x){var v=c.find(x.target,!0);return v==null?null:v.domNode[c.DATA_KEY].mutations==null?(v.domNode[c.DATA_KEY].mutations=[x],v):(v.domNode[c.DATA_KEY].mutations.push(x),null)}).forEach(function(x){x==null||x===b||x.domNode[c.DATA_KEY]==null||x.update(x.domNode[c.DATA_KEY].mutations||[],j)}),this.domNode[c.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[c.DATA_KEY].mutations,j),this.optimize(g,j)},m.blotName="scroll",m.defaultChild="block",m.scope=c.Scope.BLOCK_BLOT,m.tagName="DIV",m})(l.default);s.default=p}),(function(n,s,i){var o=this&&this.__extends||(function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var g in m)m.hasOwnProperty(g)&&(f[g]=m[g])};return function(f,m){p(f,m);function g(){this.constructor=f}f.prototype=m===null?Object.create(m):(g.prototype=m.prototype,new g)}})();Object.defineProperty(s,"__esModule",{value:!0});var l=i(18),c=i(1);function d(p,f){if(Object.keys(p).length!==Object.keys(f).length)return!1;for(var m in p)if(p[m]!==f[m])return!1;return!0}var h=(function(p){o(f,p);function f(){return p!==null&&p.apply(this,arguments)||this}return f.formats=function(m){if(m.tagName!==f.tagName)return p.formats.call(this,m)},f.prototype.format=function(m,g){var j=this;m===this.statics.blotName&&!g?(this.children.forEach(function(b){b instanceof l.default||(b=b.wrap(f.blotName,!0)),j.attributes.copy(b)}),this.unwrap()):p.prototype.format.call(this,m,g)},f.prototype.formatAt=function(m,g,j,b){if(this.formats()[j]!=null||c.query(j,c.Scope.ATTRIBUTE)){var x=this.isolate(m,g);x.format(j,b)}else p.prototype.formatAt.call(this,m,g,j,b)},f.prototype.optimize=function(m){p.prototype.optimize.call(this,m);var g=this.formats();if(Object.keys(g).length===0)return this.unwrap();var j=this.next;j instanceof f&&j.prev===this&&d(g,j.formats())&&(j.moveChildren(this),j.remove())},f.blotName="inline",f.scope=c.Scope.INLINE_BLOT,f.tagName="SPAN",f})(l.default);s.default=h}),(function(n,s,i){var o=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var m in f)f.hasOwnProperty(m)&&(p[m]=f[m])};return function(p,f){h(p,f);function m(){this.constructor=p}p.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(s,"__esModule",{value:!0});var l=i(18),c=i(1),d=(function(h){o(p,h);function p(){return h!==null&&h.apply(this,arguments)||this}return p.formats=function(f){var m=c.query(p.blotName).tagName;if(f.tagName!==m)return h.formats.call(this,f)},p.prototype.format=function(f,m){c.query(f,c.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!m?this.replaceWith(p.blotName):h.prototype.format.call(this,f,m))},p.prototype.formatAt=function(f,m,g,j){c.query(g,c.Scope.BLOCK)!=null?this.format(g,j):h.prototype.formatAt.call(this,f,m,g,j)},p.prototype.insertAt=function(f,m,g){if(g==null||c.query(m,c.Scope.INLINE)!=null)h.prototype.insertAt.call(this,f,m,g);else{var j=this.split(f),b=c.create(m,g);j.parent.insertBefore(b,j)}},p.prototype.update=function(f,m){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,f,m)},p.blotName="block",p.scope=c.Scope.BLOCK_BLOT,p.tagName="P",p})(l.default);s.default=d}),(function(n,s,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var f in p)p.hasOwnProperty(f)&&(h[f]=p[f])};return function(h,p){d(h,p);function f(){this.constructor=h}h.prototype=p===null?Object.create(p):(f.prototype=p.prototype,new f)}})();Object.defineProperty(s,"__esModule",{value:!0});var l=i(19),c=(function(d){o(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.formats=function(p){},h.prototype.format=function(p,f){d.prototype.formatAt.call(this,0,this.length(),p,f)},h.prototype.formatAt=function(p,f,m,g){p===0&&f===this.length()?this.format(m,g):d.prototype.formatAt.call(this,p,f,m,g)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h})(l.default);s.default=c}),(function(n,s,i){var o=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var m in f)f.hasOwnProperty(m)&&(p[m]=f[m])};return function(p,f){h(p,f);function m(){this.constructor=p}p.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(s,"__esModule",{value:!0});var l=i(19),c=i(1),d=(function(h){o(p,h);function p(f){var m=h.call(this,f)||this;return m.text=m.statics.value(m.domNode),m}return p.create=function(f){return document.createTextNode(f)},p.value=function(f){var m=f.data;return m.normalize&&(m=m.normalize()),m},p.prototype.deleteAt=function(f,m){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+m)},p.prototype.index=function(f,m){return this.domNode===f?m:-1},p.prototype.insertAt=function(f,m,g){g==null?(this.text=this.text.slice(0,f)+m+this.text.slice(f),this.domNode.data=this.text):h.prototype.insertAt.call(this,f,m,g)},p.prototype.length=function(){return this.text.length},p.prototype.optimize=function(f){h.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof p&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},p.prototype.position=function(f,m){return[this.domNode,f]},p.prototype.split=function(f,m){if(m===void 0&&(m=!1),!m){if(f===0)return this;if(f===this.length())return this.next}var g=c.create(this.domNode.splitText(f));return this.parent.insertBefore(g,this.next),this.text=this.statics.value(this.domNode),g},p.prototype.update=function(f,m){var g=this;f.some(function(j){return j.type==="characterData"&&j.target===g.domNode})&&(this.text=this.statics.value(this.domNode))},p.prototype.value=function(){return this.text},p.blotName="text",p.scope=c.Scope.INLINE_BLOT,p})(l.default);s.default=d}),(function(n,s,i){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(c,d){return arguments.length>1&&!this.contains(c)==!d?d:l.call(this,c)}}String.prototype.startsWith||(String.prototype.startsWith=function(c,d){return d=d||0,this.substr(d,c.length)===c}),String.prototype.endsWith||(String.prototype.endsWith=function(c,d){var h=this.toString();(typeof d!="number"||!isFinite(d)||Math.floor(d)!==d||d>h.length)&&(d=h.length),d-=c.length;var p=h.indexOf(c,d);return p!==-1&&p===d}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(d){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof d!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),p=h.length>>>0,f=arguments[1],m,g=0;g<p;g++)if(m=h[g],d.call(f,m,g,h))return m}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(n,s){var i=-1,o=1,l=0;function c(w,k,O){if(w==k)return w?[[l,w]]:[];(O<0||w.length<O)&&(O=null);var C=f(w,k),A=w.substring(0,C);w=w.substring(C),k=k.substring(C),C=m(w,k);var B=w.substring(w.length-C);w=w.substring(0,w.length-C),k=k.substring(0,k.length-C);var I=d(w,k);return A&&I.unshift([l,A]),B&&I.push([l,B]),j(I),O!=null&&(I=v(I,O)),I=N(I),I}function d(w,k){var O;if(!w)return[[o,k]];if(!k)return[[i,w]];var C=w.length>k.length?w:k,A=w.length>k.length?k:w,B=C.indexOf(A);if(B!=-1)return O=[[o,C.substring(0,B)],[l,A],[o,C.substring(B+A.length)]],w.length>k.length&&(O[0][0]=O[2][0]=i),O;if(A.length==1)return[[i,w],[o,k]];var I=g(w,k);if(I){var L=I[0],D=I[1],R=I[2],U=I[3],$=I[4],Y=c(L,R),K=c(D,U);return Y.concat([[l,$]],K)}return h(w,k)}function h(w,k){for(var O=w.length,C=k.length,A=Math.ceil((O+C)/2),B=A,I=2*A,L=new Array(I),D=new Array(I),R=0;R<I;R++)L[R]=-1,D[R]=-1;L[B+1]=0,D[B+1]=0;for(var U=O-C,$=U%2!=0,Y=0,K=0,Q=0,q=0,F=0;F<A;F++){for(var P=-F+Y;P<=F-K;P+=2){var V=B+P,W;P==-F||P!=F&&L[V-1]<L[V+1]?W=L[V+1]:W=L[V-1]+1;for(var Z=W-P;W<O&&Z<C&&w.charAt(W)==k.charAt(Z);)W++,Z++;if(L[V]=W,W>O)K+=2;else if(Z>C)Y+=2;else if($){var X=B+U-P;if(X>=0&&X<I&&D[X]!=-1){var H=O-D[X];if(W>=H)return p(w,k,W,Z)}}}for(var G=-F+Q;G<=F-q;G+=2){var X=B+G,H;G==-F||G!=F&&D[X-1]<D[X+1]?H=D[X+1]:H=D[X-1]+1;for(var te=H-G;H<O&&te<C&&w.charAt(O-H-1)==k.charAt(C-te-1);)H++,te++;if(D[X]=H,H>O)q+=2;else if(te>C)Q+=2;else if(!$){var V=B+U-G;if(V>=0&&V<I&&L[V]!=-1){var W=L[V],Z=B+W-V;if(H=O-H,W>=H)return p(w,k,W,Z)}}}}return[[i,w],[o,k]]}function p(w,k,O,C){var A=w.substring(0,O),B=k.substring(0,C),I=w.substring(O),L=k.substring(C),D=c(A,B),R=c(I,L);return D.concat(R)}function f(w,k){if(!w||!k||w.charAt(0)!=k.charAt(0))return 0;for(var O=0,C=Math.min(w.length,k.length),A=C,B=0;O<A;)w.substring(B,A)==k.substring(B,A)?(O=A,B=O):C=A,A=Math.floor((C-O)/2+O);return A}function m(w,k){if(!w||!k||w.charAt(w.length-1)!=k.charAt(k.length-1))return 0;for(var O=0,C=Math.min(w.length,k.length),A=C,B=0;O<A;)w.substring(w.length-A,w.length-B)==k.substring(k.length-A,k.length-B)?(O=A,B=O):C=A,A=Math.floor((C-O)/2+O);return A}function g(w,k){var O=w.length>k.length?w:k,C=w.length>k.length?k:w;if(O.length<4||C.length*2<O.length)return null;function A(K,Q,q){for(var F=K.substring(q,q+Math.floor(K.length/4)),P=-1,V="",W,Z,X,H;(P=Q.indexOf(F,P+1))!=-1;){var G=f(K.substring(q),Q.substring(P)),te=m(K.substring(0,q),Q.substring(0,P));V.length<te+G&&(V=Q.substring(P-te,P)+Q.substring(P,P+G),W=K.substring(0,q-te),Z=K.substring(q+G),X=Q.substring(0,P-te),H=Q.substring(P+G))}return V.length*2>=K.length?[W,Z,X,H,V]:null}var B=A(O,C,Math.ceil(O.length/4)),I=A(O,C,Math.ceil(O.length/2)),L;if(!B&&!I)return null;I?B?L=B[4].length>I[4].length?B:I:L=I:L=B;var D,R,U,$;w.length>k.length?(D=L[0],R=L[1],U=L[2],$=L[3]):(U=L[0],$=L[1],D=L[2],R=L[3]);var Y=L[4];return[D,R,U,$,Y]}function j(w){w.push([l,""]);for(var k=0,O=0,C=0,A="",B="",I;k<w.length;)switch(w[k][0]){case o:C++,B+=w[k][1],k++;break;case i:O++,A+=w[k][1],k++;break;case l:O+C>1?(O!==0&&C!==0&&(I=f(B,A),I!==0&&(k-O-C>0&&w[k-O-C-1][0]==l?w[k-O-C-1][1]+=B.substring(0,I):(w.splice(0,0,[l,B.substring(0,I)]),k++),B=B.substring(I),A=A.substring(I)),I=m(B,A),I!==0&&(w[k][1]=B.substring(B.length-I)+w[k][1],B=B.substring(0,B.length-I),A=A.substring(0,A.length-I))),O===0?w.splice(k-C,O+C,[o,B]):C===0?w.splice(k-O,O+C,[i,A]):w.splice(k-O-C,O+C,[i,A],[o,B]),k=k-O-C+(O?1:0)+(C?1:0)+1):k!==0&&w[k-1][0]==l?(w[k-1][1]+=w[k][1],w.splice(k,1)):k++,C=0,O=0,A="",B="";break}w[w.length-1][1]===""&&w.pop();var L=!1;for(k=1;k<w.length-1;)w[k-1][0]==l&&w[k+1][0]==l&&(w[k][1].substring(w[k][1].length-w[k-1][1].length)==w[k-1][1]?(w[k][1]=w[k-1][1]+w[k][1].substring(0,w[k][1].length-w[k-1][1].length),w[k+1][1]=w[k-1][1]+w[k+1][1],w.splice(k-1,1),L=!0):w[k][1].substring(0,w[k+1][1].length)==w[k+1][1]&&(w[k-1][1]+=w[k+1][1],w[k][1]=w[k][1].substring(w[k+1][1].length)+w[k+1][1],w.splice(k+1,1),L=!0)),k++;L&&j(w)}var b=c;b.INSERT=o,b.DELETE=i,b.EQUAL=l,n.exports=b;function x(w,k){if(k===0)return[l,w];for(var O=0,C=0;C<w.length;C++){var A=w[C];if(A[0]===i||A[0]===l){var B=O+A[1].length;if(k===B)return[C+1,w];if(k<B){w=w.slice();var I=k-O,L=[A[0],A[1].slice(0,I)],D=[A[0],A[1].slice(I)];return w.splice(C,1,L,D),[C+1,w]}else O=B}}throw new Error("cursor_pos is out of bounds!")}function v(w,k){var O=x(w,k),C=O[1],A=O[0],B=C[A],I=C[A+1];if(B==null)return w;if(B[0]!==l)return w;if(I!=null&&B[1]+I[1]===I[1]+B[1])return C.splice(A,2,I,B),S(C,A,2);if(I!=null&&I[1].indexOf(B[1])===0){C.splice(A,2,[I[0],B[1]],[0,B[1]]);var L=I[1].slice(B[1].length);return L.length>0&&C.splice(A+2,0,[I[0],L]),S(C,A,3)}else return w}function N(w){for(var k=!1,O=function(I){return I.charCodeAt(0)>=56320&&I.charCodeAt(0)<=57343},C=function(I){return I.charCodeAt(I.length-1)>=55296&&I.charCodeAt(I.length-1)<=56319},A=2;A<w.length;A+=1)w[A-2][0]===l&&C(w[A-2][1])&&w[A-1][0]===i&&O(w[A-1][1])&&w[A][0]===o&&O(w[A][1])&&(k=!0,w[A-1][1]=w[A-2][1].slice(-1)+w[A-1][1],w[A][1]=w[A-2][1].slice(-1)+w[A][1],w[A-2][1]=w[A-2][1].slice(0,-1));if(!k)return w;for(var B=[],A=0;A<w.length;A+=1)w[A][1].length>0&&B.push(w[A]);return B}function S(w,k,O){for(var C=k+O-1;C>=0&&C>=k-1;C--)if(C+1<w.length){var A=w[C],B=w[C+1];A[0]===B[1]&&w.splice(C,2,[A[0],A[1]+B[1]])}return w}}),(function(n,s){s=n.exports=typeof Object.keys=="function"?Object.keys:i,s.shim=i;function i(o){var l=[];for(var c in o)l.push(c);return l}}),(function(n,s){var i=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";s=n.exports=i?o:l,s.supported=o;function o(c){return Object.prototype.toString.call(c)=="[object Arguments]"}s.unsupported=l;function l(c){return c&&typeof c=="object"&&typeof c.length=="number"&&Object.prototype.hasOwnProperty.call(c,"callee")&&!Object.prototype.propertyIsEnumerable.call(c,"callee")||!1}}),(function(n,s){var i=Object.prototype.hasOwnProperty,o="~";function l(){}Object.create&&(l.prototype=Object.create(null),new l().__proto__||(o=!1));function c(h,p,f){this.fn=h,this.context=p,this.once=f||!1}function d(){this._events=new l,this._eventsCount=0}d.prototype.eventNames=function(){var p=[],f,m;if(this._eventsCount===0)return p;for(m in f=this._events)i.call(f,m)&&p.push(o?m.slice(1):m);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(f)):p},d.prototype.listeners=function(p,f){var m=o?o+p:p,g=this._events[m];if(f)return!!g;if(!g)return[];if(g.fn)return[g.fn];for(var j=0,b=g.length,x=new Array(b);j<b;j++)x[j]=g[j].fn;return x},d.prototype.emit=function(p,f,m,g,j,b){var x=o?o+p:p;if(!this._events[x])return!1;var v=this._events[x],N=arguments.length,S,w;if(v.fn){switch(v.once&&this.removeListener(p,v.fn,void 0,!0),N){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,f),!0;case 3:return v.fn.call(v.context,f,m),!0;case 4:return v.fn.call(v.context,f,m,g),!0;case 5:return v.fn.call(v.context,f,m,g,j),!0;case 6:return v.fn.call(v.context,f,m,g,j,b),!0}for(w=1,S=new Array(N-1);w<N;w++)S[w-1]=arguments[w];v.fn.apply(v.context,S)}else{var k=v.length,O;for(w=0;w<k;w++)switch(v[w].once&&this.removeListener(p,v[w].fn,void 0,!0),N){case 1:v[w].fn.call(v[w].context);break;case 2:v[w].fn.call(v[w].context,f);break;case 3:v[w].fn.call(v[w].context,f,m);break;case 4:v[w].fn.call(v[w].context,f,m,g);break;default:if(!S)for(O=1,S=new Array(N-1);O<N;O++)S[O-1]=arguments[O];v[w].fn.apply(v[w].context,S)}}return!0},d.prototype.on=function(p,f,m){var g=new c(f,m||this),j=o?o+p:p;return this._events[j]?this._events[j].fn?this._events[j]=[this._events[j],g]:this._events[j].push(g):(this._events[j]=g,this._eventsCount++),this},d.prototype.once=function(p,f,m){var g=new c(f,m||this,!0),j=o?o+p:p;return this._events[j]?this._events[j].fn?this._events[j]=[this._events[j],g]:this._events[j].push(g):(this._events[j]=g,this._eventsCount++),this},d.prototype.removeListener=function(p,f,m,g){var j=o?o+p:p;if(!this._events[j])return this;if(!f)return--this._eventsCount===0?this._events=new l:delete this._events[j],this;var b=this._events[j];if(b.fn)b.fn===f&&(!g||b.once)&&(!m||b.context===m)&&(--this._eventsCount===0?this._events=new l:delete this._events[j]);else{for(var x=0,v=[],N=b.length;x<N;x++)(b[x].fn!==f||g&&!b[x].once||m&&b[x].context!==m)&&v.push(b[x]);v.length?this._events[j]=v.length===1?v[0]:v:--this._eventsCount===0?this._events=new l:delete this._events[j]}return this},d.prototype.removeAllListeners=function(p){var f;return p?(f=o?o+p:p,this._events[f]&&(--this._eventsCount===0?this._events=new l:delete this._events[f])):(this._events=new l,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prototype.setMaxListeners=function(){return this},d.prefixed=o,d.EventEmitter=d,typeof n<"u"&&(n.exports=d)}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.matchText=s.matchSpacing=s.matchNewline=s.matchBlot=s.matchAttributor=s.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},l=(function(){function ce(he,Ae){var J=[],ee=!0,de=!1,je=void 0;try{for(var we=he[Symbol.iterator](),_e;!(ee=(_e=we.next()).done)&&(J.push(_e.value),!(Ae&&J.length===Ae));ee=!0);}catch(qe){de=!0,je=qe}finally{try{!ee&&we.return&&we.return()}finally{if(de)throw je}}return J}return function(he,Ae){if(Array.isArray(he))return he;if(Symbol.iterator in Object(he))return ce(he,Ae);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function ce(he,Ae){for(var J=0;J<Ae.length;J++){var ee=Ae[J];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(he,ee.key,ee)}}return function(he,Ae,J){return Ae&&ce(he.prototype,Ae),J&&ce(he,J),he}})(),d=i(3),h=D(d),p=i(2),f=D(p),m=i(0),g=D(m),j=i(5),b=D(j),x=i(10),v=D(x),N=i(9),S=D(N),w=i(36),k=i(37),O=i(13),C=D(O),A=i(26),B=i(38),I=i(39),L=i(40);function D(ce){return ce&&ce.__esModule?ce:{default:ce}}function R(ce,he,Ae){return he in ce?Object.defineProperty(ce,he,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):ce[he]=Ae,ce}function U(ce,he){if(!(ce instanceof he))throw new TypeError("Cannot call a class as a function")}function $(ce,he){if(!ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return he&&(typeof he=="object"||typeof he=="function")?he:ce}function Y(ce,he){if(typeof he!="function"&&he!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof he);ce.prototype=Object.create(he&&he.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}),he&&(Object.setPrototypeOf?Object.setPrototypeOf(ce,he):ce.__proto__=he)}var K=(0,v.default)("quill:clipboard"),Q="__ql-matcher",q=[[Node.TEXT_NODE,He],[Node.TEXT_NODE,ie],["br",ye],[Node.ELEMENT_NODE,ie],[Node.ELEMENT_NODE,ue],[Node.ELEMENT_NODE,De],[Node.ELEMENT_NODE,re],[Node.ELEMENT_NODE,Ye],["li",Te],["b",te.bind(te,"bold")],["i",te.bind(te,"italic")],["style",be]],F=[w.AlignAttribute,B.DirectionAttribute].reduce(function(ce,he){return ce[he.keyName]=he,ce},{}),P=[w.AlignStyle,k.BackgroundStyle,A.ColorStyle,B.DirectionStyle,I.FontStyle,L.SizeStyle].reduce(function(ce,he){return ce[he.keyName]=he,ce},{}),V=(function(ce){Y(he,ce);function he(Ae,J){U(this,he);var ee=$(this,(he.__proto__||Object.getPrototypeOf(he)).call(this,Ae,J));return ee.quill.root.addEventListener("paste",ee.onPaste.bind(ee)),ee.container=ee.quill.addContainer("ql-clipboard"),ee.container.setAttribute("contenteditable",!0),ee.container.setAttribute("tabindex",-1),ee.matchers=[],q.concat(ee.options.matchers).forEach(function(de){var je=l(de,2),we=je[0],_e=je[1];!J.matchVisual&&_e===De||ee.addMatcher(we,_e)}),ee}return c(he,[{key:"addMatcher",value:function(J,ee){this.matchers.push([J,ee])}},{key:"convert",value:function(J){if(typeof J=="string")return this.container.innerHTML=J.replace(/\>\r?\n +\</g,"><"),this.convert();var ee=this.quill.getFormat(this.quill.selection.savedRange.index);if(ee[C.default.blotName]){var de=this.container.innerText;return this.container.innerHTML="",new f.default().insert(de,R({},C.default.blotName,ee[C.default.blotName]))}var je=this.prepareMatching(),we=l(je,2),_e=we[0],qe=we[1],Qe=G(this.container,_e,qe);return X(Qe,`
888`)&&Qe.ops[Qe.ops.length-1].attributes==null&&(Qe=Qe.compose(new f.default().retain(Qe.length()-1).delete(1))),K.log("convert",this.container.innerHTML,Qe),this.container.innerHTML="",Qe}},{key:"dangerouslyPasteHTML",value:function(J,ee){var de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b.default.sources.API;if(typeof J=="string")this.quill.setContents(this.convert(J),ee),this.quill.setSelection(0,b.default.sources.SILENT);else{var je=this.convert(ee);this.quill.updateContents(new f.default().retain(J).concat(je),de),this.quill.setSelection(J+je.length(),b.default.sources.SILENT)}}},{key:"onPaste",value:function(J){var ee=this;if(!(J.defaultPrevented||!this.quill.isEnabled())){var de=this.quill.getSelection(),je=new f.default().retain(de.index),we=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(b.default.sources.SILENT),setTimeout(function(){je=je.concat(ee.convert()).delete(de.length),ee.quill.updateContents(je,b.default.sources.USER),ee.quill.setSelection(je.length()-de.length,b.default.sources.SILENT),ee.quill.scrollingContainer.scrollTop=we,ee.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var J=this,ee=[],de=[];return this.matchers.forEach(function(je){var we=l(je,2),_e=we[0],qe=we[1];switch(_e){case Node.TEXT_NODE:de.push(qe);break;case Node.ELEMENT_NODE:ee.push(qe);break;default:[].forEach.call(J.container.querySelectorAll(_e),function(Qe){Qe[Q]=Qe[Q]||[],Qe[Q].push(qe)});break}}),[ee,de]}}]),he})(S.default);V.DEFAULTS={matchers:[],matchVisual:!0};function W(ce,he,Ae){return(typeof he>"u"?"undefined":o(he))==="object"?Object.keys(he).reduce(function(J,ee){return W(J,ee,he[ee])},ce):ce.reduce(function(J,ee){return ee.attributes&&ee.attributes[he]?J.push(ee):J.insert(ee.insert,(0,h.default)({},R({},he,Ae),ee.attributes))},new f.default)}function Z(ce){if(ce.nodeType!==Node.ELEMENT_NODE)return{};var he="__ql-computed-style";return ce[he]||(ce[he]=window.getComputedStyle(ce))}function X(ce,he){for(var Ae="",J=ce.ops.length-1;J>=0&&Ae.length<he.length;--J){var ee=ce.ops[J];if(typeof ee.insert!="string")break;Ae=ee.insert+Ae}return Ae.slice(-1*he.length)===he}function H(ce){if(ce.childNodes.length===0)return!1;var he=Z(ce);return["block","list-item"].indexOf(he.display)>-1}function G(ce,he,Ae){return ce.nodeType===ce.TEXT_NODE?Ae.reduce(function(J,ee){return ee(ce,J)},new f.default):ce.nodeType===ce.ELEMENT_NODE?[].reduce.call(ce.childNodes||[],function(J,ee){var de=G(ee,he,Ae);return ee.nodeType===ce.ELEMENT_NODE&&(de=he.reduce(function(je,we){return we(ee,je)},de),de=(ee[Q]||[]).reduce(function(je,we){return we(ee,je)},de)),J.concat(de)},new f.default):new f.default}function te(ce,he,Ae){return W(Ae,ce,!0)}function re(ce,he){var Ae=g.default.Attributor.Attribute.keys(ce),J=g.default.Attributor.Class.keys(ce),ee=g.default.Attributor.Style.keys(ce),de={};return Ae.concat(J).concat(ee).forEach(function(je){var we=g.default.query(je,g.default.Scope.ATTRIBUTE);we!=null&&(de[we.attrName]=we.value(ce),de[we.attrName])||(we=F[je],we!=null&&(we.attrName===je||we.keyName===je)&&(de[we.attrName]=we.value(ce)||void 0),we=P[je],we!=null&&(we.attrName===je||we.keyName===je)&&(we=P[je],de[we.attrName]=we.value(ce)||void 0))}),Object.keys(de).length>0&&(he=W(he,de)),he}function ue(ce,he){var Ae=g.default.query(ce);if(Ae==null)return he;if(Ae.prototype instanceof g.default.Embed){var J={},ee=Ae.value(ce);ee!=null&&(J[Ae.blotName]=ee,he=new f.default().insert(J,Ae.formats(ce)))}else typeof Ae.formats=="function"&&(he=W(he,Ae.blotName,Ae.formats(ce)));return he}function ye(ce,he){return X(he,`
889`)||he.insert(`
890`),he}function be(){return new f.default}function Te(ce,he){var Ae=g.default.query(ce);if(Ae==null||Ae.blotName!=="list-item"||!X(he,`
891`))return he;for(var J=-1,ee=ce.parentNode;!ee.classList.contains("ql-clipboard");)(g.default.query(ee)||{}).blotName==="list"&&(J+=1),ee=ee.parentNode;return J<=0?he:he.compose(new f.default().retain(he.length()-1).retain(1,{indent:J}))}function ie(ce,he){return X(he,`
892`)||(H(ce)||he.length()>0&&ce.nextSibling&&H(ce.nextSibling))&&he.insert(`
893`),he}function De(ce,he){if(H(ce)&&ce.nextElementSibling!=null&&!X(he,`
894
895`)){var Ae=ce.offsetHeight+parseFloat(Z(ce).marginTop)+parseFloat(Z(ce).marginBottom);ce.nextElementSibling.offsetTop>ce.offsetTop+Ae*1.5&&he.insert(`
896`)}return he}function Ye(ce,he){var Ae={},J=ce.style||{};return J.fontStyle&&Z(ce).fontStyle==="italic"&&(Ae.italic=!0),J.fontWeight&&(Z(ce).fontWeight.startsWith("bold")||parseInt(Z(ce).fontWeight)>=700)&&(Ae.bold=!0),Object.keys(Ae).length>0&&(he=W(he,Ae)),parseFloat(J.textIndent||0)>0&&(he=new f.default().insert("	").concat(he)),he}function He(ce,he){var Ae=ce.data;if(ce.parentNode.tagName==="O:P")return he.insert(Ae.trim());if(Ae.trim().length===0&&ce.parentNode.classList.contains("ql-clipboard"))return he;if(!Z(ce.parentNode).whiteSpace.startsWith("pre")){var J=function(de,je){return je=je.replace(/[^\u00a0]/g,""),je.length<1&&de?" ":je};Ae=Ae.replace(/\r\n/g," ").replace(/\n/g," "),Ae=Ae.replace(/\s\s+/g,J.bind(J,!0)),(ce.previousSibling==null&&H(ce.parentNode)||ce.previousSibling!=null&&H(ce.previousSibling))&&(Ae=Ae.replace(/^\s+/,J.bind(J,!1))),(ce.nextSibling==null&&H(ce.parentNode)||ce.nextSibling!=null&&H(ce.nextSibling))&&(Ae=Ae.replace(/\s+$/,J.bind(J,!1)))}return he.insert(Ae)}s.default=V,s.matchAttributor=re,s.matchBlot=ue,s.matchNewline=ie,s.matchSpacing=De,s.matchText=He}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function j(b,x){for(var v=0;v<x.length;v++){var N=x[v];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,x,v){return x&&j(b.prototype,x),v&&j(b,v),b}})(),l=function j(b,x,v){b===null&&(b=Function.prototype);var N=Object.getOwnPropertyDescriptor(b,x);if(N===void 0){var S=Object.getPrototypeOf(b);return S===null?void 0:j(S,x,v)}else{if("value"in N)return N.value;var w=N.get;return w===void 0?void 0:w.call(v)}},c=i(6),d=h(c);function h(j){return j&&j.__esModule?j:{default:j}}function p(j,b){if(!(j instanceof b))throw new TypeError("Cannot call a class as a function")}function f(j,b){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:j}function m(j,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);j.prototype=Object.create(b&&b.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(j,b):j.__proto__=b)}var g=(function(j){m(b,j);function b(){return p(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"optimize",value:function(v){l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,v),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),b})(d.default);g.blotName="bold",g.tagName=["STRONG","B"],s.default=g}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.addControls=s.default=void 0;var o=(function(){function L(D,R){var U=[],$=!0,Y=!1,K=void 0;try{for(var Q=D[Symbol.iterator](),q;!($=(q=Q.next()).done)&&(U.push(q.value),!(R&&U.length===R));$=!0);}catch(F){Y=!0,K=F}finally{try{!$&&Q.return&&Q.return()}finally{if(Y)throw K}}return U}return function(D,R){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return L(D,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=(function(){function L(D,R){for(var U=0;U<R.length;U++){var $=R[U];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(D,$.key,$)}}return function(D,R,U){return R&&L(D.prototype,R),U&&L(D,U),D}})(),c=i(2),d=v(c),h=i(0),p=v(h),f=i(5),m=v(f),g=i(10),j=v(g),b=i(9),x=v(b);function v(L){return L&&L.__esModule?L:{default:L}}function N(L,D,R){return D in L?Object.defineProperty(L,D,{value:R,enumerable:!0,configurable:!0,writable:!0}):L[D]=R,L}function S(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")}function w(L,D){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:L}function k(L,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);L.prototype=Object.create(D&&D.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(L,D):L.__proto__=D)}var O=(0,j.default)("quill:toolbar"),C=(function(L){k(D,L);function D(R,U){S(this,D);var $=w(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,R,U));if(Array.isArray($.options.container)){var Y=document.createElement("div");B(Y,$.options.container),R.container.parentNode.insertBefore(Y,R.container),$.container=Y}else typeof $.options.container=="string"?$.container=document.querySelector($.options.container):$.container=$.options.container;if(!($.container instanceof HTMLElement)){var K;return K=O.error("Container required for toolbar",$.options),w($,K)}return $.container.classList.add("ql-toolbar"),$.controls=[],$.handlers={},Object.keys($.options.handlers).forEach(function(Q){$.addHandler(Q,$.options.handlers[Q])}),[].forEach.call($.container.querySelectorAll("button, select"),function(Q){$.attach(Q)}),$.quill.on(m.default.events.EDITOR_CHANGE,function(Q,q){Q===m.default.events.SELECTION_CHANGE&&$.update(q)}),$.quill.on(m.default.events.SCROLL_OPTIMIZE,function(){var Q=$.quill.selection.getRange(),q=o(Q,1),F=q[0];$.update(F)}),$}return l(D,[{key:"addHandler",value:function(U,$){this.handlers[U]=$}},{key:"attach",value:function(U){var $=this,Y=[].find.call(U.classList,function(Q){return Q.indexOf("ql-")===0});if(Y){if(Y=Y.slice(3),U.tagName==="BUTTON"&&U.setAttribute("type","button"),this.handlers[Y]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Y]==null){O.warn("ignoring attaching to disabled format",Y,U);return}if(p.default.query(Y)==null){O.warn("ignoring attaching to nonexistent format",Y,U);return}}var K=U.tagName==="SELECT"?"change":"click";U.addEventListener(K,function(Q){var q=void 0;if(U.tagName==="SELECT"){if(U.selectedIndex<0)return;var F=U.options[U.selectedIndex];F.hasAttribute("selected")?q=!1:q=F.value||!1}else U.classList.contains("ql-active")?q=!1:q=U.value||!U.hasAttribute("value"),Q.preventDefault();$.quill.focus();var P=$.quill.selection.getRange(),V=o(P,1),W=V[0];if($.handlers[Y]!=null)$.handlers[Y].call($,q);else if(p.default.query(Y).prototype instanceof p.default.Embed){if(q=prompt("Enter "+Y),!q)return;$.quill.updateContents(new d.default().retain(W.index).delete(W.length).insert(N({},Y,q)),m.default.sources.USER)}else $.quill.format(Y,q,m.default.sources.USER);$.update(W)}),this.controls.push([Y,U])}}},{key:"update",value:function(U){var $=U==null?{}:this.quill.getFormat(U);this.controls.forEach(function(Y){var K=o(Y,2),Q=K[0],q=K[1];if(q.tagName==="SELECT"){var F=void 0;if(U==null)F=null;else if($[Q]==null)F=q.querySelector("option[selected]");else if(!Array.isArray($[Q])){var P=$[Q];typeof P=="string"&&(P=P.replace(/\"/g,'\\"')),F=q.querySelector('option[value="'+P+'"]')}F==null?(q.value="",q.selectedIndex=-1):F.selected=!0}else if(U==null)q.classList.remove("ql-active");else if(q.hasAttribute("value")){var V=$[Q]===q.getAttribute("value")||$[Q]!=null&&$[Q].toString()===q.getAttribute("value")||$[Q]==null&&!q.getAttribute("value");q.classList.toggle("ql-active",V)}else q.classList.toggle("ql-active",$[Q]!=null)})}}]),D})(x.default);C.DEFAULTS={};function A(L,D,R){var U=document.createElement("button");U.setAttribute("type","button"),U.classList.add("ql-"+D),R!=null&&(U.value=R),L.appendChild(U)}function B(L,D){Array.isArray(D[0])||(D=[D]),D.forEach(function(R){var U=document.createElement("span");U.classList.add("ql-formats"),R.forEach(function($){if(typeof $=="string")A(U,$);else{var Y=Object.keys($)[0],K=$[Y];Array.isArray(K)?I(U,Y,K):A(U,Y,K)}}),L.appendChild(U)})}function I(L,D,R){var U=document.createElement("select");U.classList.add("ql-"+D),R.forEach(function($){var Y=document.createElement("option");$!==!1?Y.setAttribute("value",$):Y.setAttribute("selected","selected"),U.appendChild(Y)}),L.appendChild(U)}C.DEFAULTS={container:null,handlers:{clean:function(){var D=this,R=this.quill.getSelection();if(R!=null)if(R.length==0){var U=this.quill.getFormat();Object.keys(U).forEach(function($){p.default.query($,p.default.Scope.INLINE)!=null&&D.quill.format($,!1)})}else this.quill.removeFormat(R,m.default.sources.USER)},direction:function(D){var R=this.quill.getFormat().align;D==="rtl"&&R==null?this.quill.format("align","right",m.default.sources.USER):!D&&R==="right"&&this.quill.format("align",!1,m.default.sources.USER),this.quill.format("direction",D,m.default.sources.USER)},indent:function(D){var R=this.quill.getSelection(),U=this.quill.getFormat(R),$=parseInt(U.indent||0);if(D==="+1"||D==="-1"){var Y=D==="+1"?1:-1;U.direction==="rtl"&&(Y*=-1),this.quill.format("indent",$+Y,m.default.sources.USER)}},link:function(D){D===!0&&(D=prompt("Enter link URL:")),this.quill.format("link",D,m.default.sources.USER)},list:function(D){var R=this.quill.getSelection(),U=this.quill.getFormat(R);D==="check"?U.list==="checked"||U.list==="unchecked"?this.quill.format("list",!1,m.default.sources.USER):this.quill.format("list","unchecked",m.default.sources.USER):this.quill.format("list",D,m.default.sources.USER)}}},s.default=C,s.addControls=B}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function j(b,x){for(var v=0;v<x.length;v++){var N=x[v];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,x,v){return x&&j(b.prototype,x),v&&j(b,v),b}})(),l=function j(b,x,v){b===null&&(b=Function.prototype);var N=Object.getOwnPropertyDescriptor(b,x);if(N===void 0){var S=Object.getPrototypeOf(b);return S===null?void 0:j(S,x,v)}else{if("value"in N)return N.value;var w=N.get;return w===void 0?void 0:w.call(v)}},c=i(28),d=h(c);function h(j){return j&&j.__esModule?j:{default:j}}function p(j,b){if(!(j instanceof b))throw new TypeError("Cannot call a class as a function")}function f(j,b){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:j}function m(j,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);j.prototype=Object.create(b&&b.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(j,b):j.__proto__=b)}var g=(function(j){m(b,j);function b(x,v){p(this,b);var N=f(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,x));return N.label.innerHTML=v,N.container.classList.add("ql-color-picker"),[].slice.call(N.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(S){S.classList.add("ql-primary")}),N}return o(b,[{key:"buildItem",value:function(v){var N=l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"buildItem",this).call(this,v);return N.style.backgroundColor=v.getAttribute("value")||"",N}},{key:"selectItem",value:function(v,N){l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"selectItem",this).call(this,v,N);var S=this.label.querySelector(".ql-color-label"),w=v&&v.getAttribute("data-value")||"";S&&(S.tagName==="line"?S.style.stroke=w:S.style.fill=w)}}]),b})(d.default);s.default=g}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function j(b,x){for(var v=0;v<x.length;v++){var N=x[v];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,x,v){return x&&j(b.prototype,x),v&&j(b,v),b}})(),l=function j(b,x,v){b===null&&(b=Function.prototype);var N=Object.getOwnPropertyDescriptor(b,x);if(N===void 0){var S=Object.getPrototypeOf(b);return S===null?void 0:j(S,x,v)}else{if("value"in N)return N.value;var w=N.get;return w===void 0?void 0:w.call(v)}},c=i(28),d=h(c);function h(j){return j&&j.__esModule?j:{default:j}}function p(j,b){if(!(j instanceof b))throw new TypeError("Cannot call a class as a function")}function f(j,b){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:j}function m(j,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);j.prototype=Object.create(b&&b.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(j,b):j.__proto__=b)}var g=(function(j){m(b,j);function b(x,v){p(this,b);var N=f(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,x));return N.container.classList.add("ql-icon-picker"),[].forEach.call(N.container.querySelectorAll(".ql-picker-item"),function(S){S.innerHTML=v[S.getAttribute("data-value")||""]}),N.defaultItem=N.container.querySelector(".ql-selected"),N.selectItem(N.defaultItem),N}return o(b,[{key:"selectItem",value:function(v,N){l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"selectItem",this).call(this,v,N),v=v||this.defaultItem,this.label.innerHTML=v.innerHTML}}]),b})(d.default);s.default=g}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function d(h,p){for(var f=0;f<p.length;f++){var m=p[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,p,f){return p&&d(h.prototype,p),f&&d(h,f),h}})();function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}var c=(function(){function d(h,p){var f=this;l(this,d),this.quill=h,this.boundsContainer=p||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return o(d,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(p){var f=p.left+p.width/2-this.root.offsetWidth/2,m=p.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=m+"px",this.root.classList.remove("ql-flip");var g=this.boundsContainer.getBoundingClientRect(),j=this.root.getBoundingClientRect(),b=0;if(j.right>g.right&&(b=g.right-j.right,this.root.style.left=f+b+"px"),j.left<g.left&&(b=g.left-j.left,this.root.style.left=f+b+"px"),j.bottom>g.bottom){var x=j.bottom-j.top,v=p.bottom-p.top+x;this.root.style.top=m-v+"px",this.root.classList.add("ql-flip")}return b}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),d})();s.default=c}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function I(L,D){var R=[],U=!0,$=!1,Y=void 0;try{for(var K=L[Symbol.iterator](),Q;!(U=(Q=K.next()).done)&&(R.push(Q.value),!(D&&R.length===D));U=!0);}catch(q){$=!0,Y=q}finally{try{!U&&K.return&&K.return()}finally{if($)throw Y}}return R}return function(L,D){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return I(L,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=function I(L,D,R){L===null&&(L=Function.prototype);var U=Object.getOwnPropertyDescriptor(L,D);if(U===void 0){var $=Object.getPrototypeOf(L);return $===null?void 0:I($,D,R)}else{if("value"in U)return U.value;var Y=U.get;return Y===void 0?void 0:Y.call(R)}},c=(function(){function I(L,D){for(var R=0;R<D.length;R++){var U=D[R];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,U.key,U)}}return function(L,D,R){return D&&I(L.prototype,D),R&&I(L,R),L}})(),d=i(3),h=S(d),p=i(8),f=S(p),m=i(43),g=S(m),j=i(27),b=S(j),x=i(15),v=i(41),N=S(v);function S(I){return I&&I.__esModule?I:{default:I}}function w(I,L){if(!(I instanceof L))throw new TypeError("Cannot call a class as a function")}function k(I,L){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:I}function O(I,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);I.prototype=Object.create(L&&L.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(I,L):I.__proto__=L)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=(function(I){O(L,I);function L(D,R){w(this,L),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=C);var U=k(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,D,R));return U.quill.container.classList.add("ql-snow"),U}return c(L,[{key:"extendToolbar",value:function(R){R.container.classList.add("ql-snow"),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),N.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),N.default),this.tooltip=new B(this.quill,this.options.bounds),R.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(U,$){R.handlers.link.call(R,!$.format.link)})}}]),L})(g.default);A.DEFAULTS=(0,h.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(L){if(L){var D=this.quill.getSelection();if(D==null||D.length==0)return;var R=this.quill.getText(D);/^\S+@\S+\.\S+$/.test(R)&&R.indexOf("mailto:")!==0&&(R="mailto:"+R);var U=this.quill.theme.tooltip;U.edit("link",R)}else this.quill.format("link",!1)}}}}});var B=(function(I){O(L,I);function L(D,R){w(this,L);var U=k(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,D,R));return U.preview=U.root.querySelector("a.ql-preview"),U}return c(L,[{key:"listen",value:function(){var R=this;l(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(U){R.root.classList.contains("ql-editing")?R.save():R.edit("link",R.preview.textContent),U.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(U){if(R.linkRange!=null){var $=R.linkRange;R.restoreFocus(),R.quill.formatText($,"link",!1,f.default.sources.USER),delete R.linkRange}U.preventDefault(),R.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(U,$,Y){if(U!=null){if(U.length===0&&Y===f.default.sources.USER){var K=R.quill.scroll.descendant(b.default,U.index),Q=o(K,2),q=Q[0],F=Q[1];if(q!=null){R.linkRange=new x.Range(U.index-F,q.length());var P=b.default.formats(q.domNode);R.preview.textContent=P,R.preview.setAttribute("href",P),R.show(),R.position(R.quill.getBounds(R.linkRange));return}}else delete R.linkRange;R.hide()}})}},{key:"show",value:function(){l(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),L})(m.BaseTooltip);B.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),s.default=A}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=i(29),l=ee(o),c=i(36),d=i(38),h=i(64),p=i(65),f=ee(p),m=i(66),g=ee(m),j=i(67),b=ee(j),x=i(37),v=i(26),N=i(39),S=i(40),w=i(56),k=ee(w),O=i(68),C=ee(O),A=i(27),B=ee(A),I=i(69),L=ee(I),D=i(70),R=ee(D),U=i(71),$=ee(U),Y=i(72),K=ee(Y),Q=i(73),q=ee(Q),F=i(13),P=ee(F),V=i(74),W=ee(V),Z=i(75),X=ee(Z),H=i(57),G=ee(H),te=i(41),re=ee(te),ue=i(28),ye=ee(ue),be=i(59),Te=ee(be),ie=i(60),De=ee(ie),Ye=i(61),He=ee(Ye),ce=i(108),he=ee(ce),Ae=i(62),J=ee(Ae);function ee(de){return de&&de.__esModule?de:{default:de}}l.default.register({"attributors/attribute/direction":d.DirectionAttribute,"attributors/class/align":c.AlignClass,"attributors/class/background":x.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":d.DirectionClass,"attributors/class/font":N.FontClass,"attributors/class/size":S.SizeClass,"attributors/style/align":c.AlignStyle,"attributors/style/background":x.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":d.DirectionStyle,"attributors/style/font":N.FontStyle,"attributors/style/size":S.SizeStyle},!0),l.default.register({"formats/align":c.AlignClass,"formats/direction":d.DirectionClass,"formats/indent":h.IndentClass,"formats/background":x.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":N.FontClass,"formats/size":S.SizeClass,"formats/blockquote":f.default,"formats/code-block":P.default,"formats/header":g.default,"formats/list":b.default,"formats/bold":k.default,"formats/code":F.Code,"formats/italic":C.default,"formats/link":B.default,"formats/script":L.default,"formats/strike":R.default,"formats/underline":$.default,"formats/image":K.default,"formats/video":q.default,"formats/list/item":j.ListItem,"modules/formula":W.default,"modules/syntax":X.default,"modules/toolbar":G.default,"themes/bubble":he.default,"themes/snow":J.default,"ui/icons":re.default,"ui/picker":ye.default,"ui/icon-picker":De.default,"ui/color-picker":Te.default,"ui/tooltip":He.default},!0),s.default=l.default}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.IndentClass=void 0;var o=(function(){function b(x,v){for(var N=0;N<v.length;N++){var S=v[N];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,v,N){return v&&b(x.prototype,v),N&&b(x,N),x}})(),l=function b(x,v,N){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,v);if(S===void 0){var w=Object.getPrototypeOf(x);return w===null?void 0:b(w,v,N)}else{if("value"in S)return S.value;var k=S.get;return k===void 0?void 0:k.call(N)}},c=i(0),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function p(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function f(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:b}function m(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var g=(function(b){m(x,b);function x(){return p(this,x),f(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,[{key:"add",value:function(N,S){if(S==="+1"||S==="-1"){var w=this.value(N)||0;S=S==="+1"?w+1:w-1}return S===0?(this.remove(N),!0):l(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"add",this).call(this,N,S)}},{key:"canAdd",value:function(N,S){return l(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"canAdd",this).call(this,N,S)||l(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"canAdd",this).call(this,N,parseInt(S))}},{key:"value",value:function(N){return parseInt(l(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"value",this).call(this,N))||void 0}}]),x})(d.default.Attributor.Class),j=new g("indent","ql-indent",{scope:d.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});s.IndentClass=j}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=i(4),l=c(o);function c(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function h(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var f=(function(m){p(g,m);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(l.default);f.blotName="blockquote",f.tagName="blockquote",s.default=f}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function g(j,b){for(var x=0;x<b.length;x++){var v=b[x];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(j,v.key,v)}}return function(j,b,x){return b&&g(j.prototype,b),x&&g(j,x),j}})(),l=i(4),c=d(l);function d(g){return g&&g.__esModule?g:{default:g}}function h(g,j){if(!(g instanceof j))throw new TypeError("Cannot call a class as a function")}function p(g,j){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:g}function f(g,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);g.prototype=Object.create(j&&j.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(g,j):g.__proto__=j)}var m=(function(g){f(j,g);function j(){return h(this,j),p(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return o(j,null,[{key:"formats",value:function(x){return this.tagName.indexOf(x.tagName)+1}}]),j})(c.default);m.blotName="header",m.tagName=["H1","H2","H3","H4","H5","H6"],s.default=m}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.ListItem=void 0;var o=(function(){function w(k,O){for(var C=0;C<O.length;C++){var A=O[C];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(k,A.key,A)}}return function(k,O,C){return O&&w(k.prototype,O),C&&w(k,C),k}})(),l=function w(k,O,C){k===null&&(k=Function.prototype);var A=Object.getOwnPropertyDescriptor(k,O);if(A===void 0){var B=Object.getPrototypeOf(k);return B===null?void 0:w(B,O,C)}else{if("value"in A)return A.value;var I=A.get;return I===void 0?void 0:I.call(C)}},c=i(0),d=g(c),h=i(4),p=g(h),f=i(25),m=g(f);function g(w){return w&&w.__esModule?w:{default:w}}function j(w,k,O){return k in w?Object.defineProperty(w,k,{value:O,enumerable:!0,configurable:!0,writable:!0}):w[k]=O,w}function b(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")}function x(w,k){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:w}function v(w,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);w.prototype=Object.create(k&&k.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(w,k):w.__proto__=k)}var N=(function(w){v(k,w);function k(){return b(this,k),x(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return o(k,[{key:"format",value:function(C,A){C===S.blotName&&!A?this.replaceWith(d.default.create(this.statics.scope)):l(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"format",this).call(this,C,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():l(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,A){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,A),this):(this.parent.unwrap(),l(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"replaceWith",this).call(this,C,A))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:l(k.__proto__||Object.getPrototypeOf(k),"formats",this).call(this,C)}}]),k})(p.default);N.blotName="list-item",N.tagName="LI";var S=(function(w){v(k,w),o(k,null,[{key:"create",value:function(C){var A=C==="ordered"?"OL":"UL",B=l(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,A);return(C==="checked"||C==="unchecked")&&B.setAttribute("data-checked",C==="checked"),B}},{key:"formats",value:function(C){if(C.tagName==="OL")return"ordered";if(C.tagName==="UL")return C.hasAttribute("data-checked")?C.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function k(O){b(this,k);var C=x(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,O)),A=function(I){if(I.target.parentNode===O){var L=C.statics.formats(O),D=d.default.find(I.target);L==="checked"?D.format("list","unchecked"):L==="unchecked"&&D.format("list","checked")}};return O.addEventListener("touchstart",A),O.addEventListener("mousedown",A),C}return o(k,[{key:"format",value:function(C,A){this.children.length>0&&this.children.tail.format(C,A)}},{key:"formats",value:function(){return j({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,A){if(C instanceof N)l(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertBefore",this).call(this,C,A);else{var B=A==null?this.length():A.offset(this),I=this.split(B);I.parent.insertBefore(C,I)}}},{key:"optimize",value:function(C){l(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"optimize",this).call(this,C);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var A=d.default.create(this.statics.defaultChild);C.moveChildren(A),this.appendChild(A)}l(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"replace",this).call(this,C)}}]),k})(m.default);S.blotName="list",S.scope=d.default.Scope.BLOCK_BLOT,S.tagName=["OL","UL"],S.defaultChild="list-item",S.allowedChildren=[N],s.ListItem=N,s.default=S}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=i(56),l=c(o);function c(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function h(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var f=(function(m){p(g,m);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(l.default);f.blotName="italic",f.tagName=["EM","I"],s.default=f}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function j(b,x){for(var v=0;v<x.length;v++){var N=x[v];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,x,v){return x&&j(b.prototype,x),v&&j(b,v),b}})(),l=function j(b,x,v){b===null&&(b=Function.prototype);var N=Object.getOwnPropertyDescriptor(b,x);if(N===void 0){var S=Object.getPrototypeOf(b);return S===null?void 0:j(S,x,v)}else{if("value"in N)return N.value;var w=N.get;return w===void 0?void 0:w.call(v)}},c=i(6),d=h(c);function h(j){return j&&j.__esModule?j:{default:j}}function p(j,b){if(!(j instanceof b))throw new TypeError("Cannot call a class as a function")}function f(j,b){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:j}function m(j,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);j.prototype=Object.create(b&&b.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(j,b):j.__proto__=b)}var g=(function(j){m(b,j);function b(){return p(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,null,[{key:"create",value:function(v){return v==="super"?document.createElement("sup"):v==="sub"?document.createElement("sub"):l(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,v)}},{key:"formats",value:function(v){if(v.tagName==="SUB")return"sub";if(v.tagName==="SUP")return"super"}}]),b})(d.default);g.blotName="script",g.tagName=["SUB","SUP"],s.default=g}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=i(6),l=c(o);function c(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function h(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var f=(function(m){p(g,m);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(l.default);f.blotName="strike",f.tagName="S",s.default=f}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=i(6),l=c(o);function c(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function h(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var f=(function(m){p(g,m);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(l.default);f.blotName="underline",f.tagName="U",s.default=f}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function x(v,N){for(var S=0;S<N.length;S++){var w=N[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,N,S){return N&&x(v.prototype,N),S&&x(v,S),v}})(),l=function x(v,N,S){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,N);if(w===void 0){var k=Object.getPrototypeOf(v);return k===null?void 0:x(k,N,S)}else{if("value"in w)return w.value;var O=w.get;return O===void 0?void 0:O.call(S)}},c=i(0),d=p(c),h=i(27);function p(x){return x&&x.__esModule?x:{default:x}}function f(x,v){if(!(x instanceof v))throw new TypeError("Cannot call a class as a function")}function m(x,v){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:x}function g(x,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);x.prototype=Object.create(v&&v.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(x,v):x.__proto__=v)}var j=["alt","height","width"],b=(function(x){g(v,x);function v(){return f(this,v),m(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"format",value:function(S,w){j.indexOf(S)>-1?w?this.domNode.setAttribute(S,w):this.domNode.removeAttribute(S):l(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,S,w)}}],[{key:"create",value:function(S){var w=l(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,S);return typeof S=="string"&&w.setAttribute("src",this.sanitize(S)),w}},{key:"formats",value:function(S){return j.reduce(function(w,k){return S.hasAttribute(k)&&(w[k]=S.getAttribute(k)),w},{})}},{key:"match",value:function(S){return/\.(jpe?g|gif|png)$/.test(S)||/^data:image\/.+;base64/.test(S)}},{key:"sanitize",value:function(S){return(0,h.sanitize)(S,["http","https","data"])?S:"//:0"}},{key:"value",value:function(S){return S.getAttribute("src")}}]),v})(d.default.Embed);b.blotName="image",b.tagName="IMG",s.default=b}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o=(function(){function x(v,N){for(var S=0;S<N.length;S++){var w=N[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,N,S){return N&&x(v.prototype,N),S&&x(v,S),v}})(),l=function x(v,N,S){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,N);if(w===void 0){var k=Object.getPrototypeOf(v);return k===null?void 0:x(k,N,S)}else{if("value"in w)return w.value;var O=w.get;return O===void 0?void 0:O.call(S)}},c=i(4),d=i(27),h=p(d);function p(x){return x&&x.__esModule?x:{default:x}}function f(x,v){if(!(x instanceof v))throw new TypeError("Cannot call a class as a function")}function m(x,v){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:x}function g(x,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);x.prototype=Object.create(v&&v.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(x,v):x.__proto__=v)}var j=["height","width"],b=(function(x){g(v,x);function v(){return f(this,v),m(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"format",value:function(S,w){j.indexOf(S)>-1?w?this.domNode.setAttribute(S,w):this.domNode.removeAttribute(S):l(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,S,w)}}],[{key:"create",value:function(S){var w=l(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,S);return w.setAttribute("frameborder","0"),w.setAttribute("allowfullscreen",!0),w.setAttribute("src",this.sanitize(S)),w}},{key:"formats",value:function(S){return j.reduce(function(w,k){return S.hasAttribute(k)&&(w[k]=S.getAttribute(k)),w},{})}},{key:"sanitize",value:function(S){return h.default.sanitize(S)}},{key:"value",value:function(S){return S.getAttribute("src")}}]),v})(c.BlockEmbed);b.blotName="video",b.className="ql-video",b.tagName="IFRAME",s.default=b}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.FormulaBlot=void 0;var o=(function(){function S(w,k){for(var O=0;O<k.length;O++){var C=k[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}return function(w,k,O){return k&&S(w.prototype,k),O&&S(w,O),w}})(),l=function S(w,k,O){w===null&&(w=Function.prototype);var C=Object.getOwnPropertyDescriptor(w,k);if(C===void 0){var A=Object.getPrototypeOf(w);return A===null?void 0:S(A,k,O)}else{if("value"in C)return C.value;var B=C.get;return B===void 0?void 0:B.call(O)}},c=i(35),d=g(c),h=i(5),p=g(h),f=i(9),m=g(f);function g(S){return S&&S.__esModule?S:{default:S}}function j(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function b(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function x(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var v=(function(S){x(w,S);function w(){return j(this,w),b(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return o(w,null,[{key:"create",value:function(O){var C=l(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,O);return typeof O=="string"&&(window.katex.render(O,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",O)),C}},{key:"value",value:function(O){return O.getAttribute("data-value")}}]),w})(d.default);v.blotName="formula",v.className="ql-formula",v.tagName="SPAN";var N=(function(S){x(w,S),o(w,null,[{key:"register",value:function(){p.default.register(v,!0)}}]);function w(){j(this,w);var k=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return k}return w})(m.default);s.FormulaBlot=v,s.default=N}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.CodeToken=s.CodeBlock=void 0;var o=(function(){function O(C,A){for(var B=0;B<A.length;B++){var I=A[B];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(C,I.key,I)}}return function(C,A,B){return A&&O(C.prototype,A),B&&O(C,B),C}})(),l=function O(C,A,B){C===null&&(C=Function.prototype);var I=Object.getOwnPropertyDescriptor(C,A);if(I===void 0){var L=Object.getPrototypeOf(C);return L===null?void 0:O(L,A,B)}else{if("value"in I)return I.value;var D=I.get;return D===void 0?void 0:D.call(B)}},c=i(0),d=b(c),h=i(5),p=b(h),f=i(9),m=b(f),g=i(13),j=b(g);function b(O){return O&&O.__esModule?O:{default:O}}function x(O,C){if(!(O instanceof C))throw new TypeError("Cannot call a class as a function")}function v(O,C){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:O}function N(O,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);O.prototype=Object.create(C&&C.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(O,C):O.__proto__=C)}var S=(function(O){N(C,O);function C(){return x(this,C),v(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return o(C,[{key:"replaceWith",value:function(B){this.domNode.textContent=this.domNode.textContent,this.attach(),l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,B)}},{key:"highlight",value:function(B){var I=this.domNode.textContent;this.cachedText!==I&&((I.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=B(I),this.domNode.normalize(),this.attach()),this.cachedText=I)}}]),C})(j.default);S.className="ql-syntax";var w=new d.default.Attributor.Class("token","hljs",{scope:d.default.Scope.INLINE}),k=(function(O){N(C,O),o(C,null,[{key:"register",value:function(){p.default.register(w,!0),p.default.register(S,!0)}}]);function C(A,B){x(this,C);var I=v(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,A,B));if(typeof I.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var L=null;return I.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(L),L=setTimeout(function(){I.highlight(),L=null},I.options.interval)}),I.highlight(),I}return o(C,[{key:"highlight",value:function(){var B=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var I=this.quill.getSelection();
896this.quill.scroll.descendants(S).forEach(function(L){L.highlight(B.options.highlight)}),this.quill.update(p.default.sources.SILENT),I!=null&&this.quill.setSelection(I,p.default.sources.SILENT)}}}]),C})(m.default);k.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(O){var C=window.hljs.highlightAuto(O);return C.value}})(),interval:1e3},s.CodeBlock=S,s.CodeToken=w,s.default=k}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(n,s){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line>
896 <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(n,s){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(n,s){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(n,s){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(n,s){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BubbleTooltip=void 0;var o=function C(A,B,I){A===null&&(A=Function.prototype);var L=Object.getOwnPropertyDescriptor(A,B);if(L===void 0){var D=Object.getPrototypeOf(A);return D===null?void 0:C(D,B,I)}else{if("value"in L)return L.value;var R=L.get;return R===void 0?void 0:R.call(I)}},l=(function(){function C(A,B){for(var I=0;I<B.length;I++){var L=B[I];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(A,L.key,L)}}return function(A,B,I){return B&&C(A.prototype,B),I&&C(A,I),A}})(),c=i(3),d=x(c),h=i(8),p=x(h),f=i(43),m=x(f),g=i(15),j=i(41),b=x(j);function x(C){return C&&C.__esModule?C:{default:C}}function v(C,A){if(!(C instanceof A))throw new TypeError("Cannot call a class as a function")}function N(C,A){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:C}function S(C,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);C.prototype=Object.create(A&&A.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(C,A):C.__proto__=A)}var w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],k=(function(C){S(A,C);function A(B,I){v(this,A),I.modules.toolbar!=null&&I.modules.toolbar.container==null&&(I.modules.toolbar.container=w);var L=N(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,B,I));return L.quill.container.classList.add("ql-bubble"),L}return l(A,[{key:"extendToolbar",value:function(I){this.tooltip=new O(this.quill,this.options.bounds),this.tooltip.root.appendChild(I.container),this.buildButtons([].slice.call(I.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(I.container.querySelectorAll("select")),b.default)}}]),A})(m.default);k.DEFAULTS=(0,d.default)(!0,{},m.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var O=(function(C){S(A,C);function A(B,I){v(this,A);var L=N(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,B,I));return L.quill.on(p.default.events.EDITOR_CHANGE,function(D,R,U,$){if(D===p.default.events.SELECTION_CHANGE)if(R!=null&&R.length>0&&$===p.default.sources.USER){L.show(),L.root.style.left="0px",L.root.style.width="",L.root.style.width=L.root.offsetWidth+"px";var Y=L.quill.getLines(R.index,R.length);if(Y.length===1)L.position(L.quill.getBounds(R));else{var K=Y[Y.length-1],Q=L.quill.getIndex(K),q=Math.min(K.length()-1,R.index+R.length-Q),F=L.quill.getBounds(new g.Range(Q,q));L.position(F)}}else document.activeElement!==L.textbox&&L.quill.hasFocus()&&L.hide()}),L}return l(A,[{key:"listen",value:function(){var I=this;o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){I.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!I.root.classList.contains("ql-hidden")){var L=I.quill.getSelection();L!=null&&I.position(I.quill.getBounds(L))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(I){var L=o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,I),D=this.root.querySelector(".ql-tooltip-arrow");if(D.style.marginLeft="",L===0)return L;D.style.marginLeft=-1*L-D.offsetWidth/2+"px"}}]),A})(f.BaseTooltip);O.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),s.BubbleTooltip=O,s.default=k}),(function(n,s,i){n.exports=i(63)})]).default})})(Oh)),Oh.exports}var is,aT;function Ise(){if(aT)return is;aT=1;var e=is&&is.__extends||(function(){var p=function(f,m){return p=Object.
vendor: 7,399 bytes, line 896
896setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,j){g.__proto__=j}||function(g,j){for(var b in j)j.hasOwnProperty(b)&&(g[b]=j[b])},p(f,m)};return function(f,m){p(f,m);function g(){this.constructor=f}f.prototype=m===null?Object.create(m):(g.prototype=m.prototype,new g)}})(),t=is&&is.__assign||function(){return t=Object.assign||function(p){for(var f,m=1,g=arguments.length;m<g;m++){f=arguments[m];for(var j in f)Object.prototype.hasOwnProperty.call(f,j)&&(p[j]=f[j])}return p},t.apply(this,arguments)},n=is&&is.__spreadArrays||function(){for(var p=0,f=0,m=arguments.length;f<m;f++)p+=arguments[f].length;for(var g=Array(p),j=0,f=0;f<m;f++)for(var b=arguments[f],x=0,v=b.length;x<v;x++,j++)g[j]=b[x];return g},s=is&&is.__importDefault||function(p){return p&&p.__esModule?p:{default:p}},i=s(md()),o=s(zb()),l=s(Rse()),c=s(Dse()),d=(function(p){e(f,p);function f(m){var g=p.call(this,m)||this;g.dirtyProps=["modules","formats","bounds","theme","children"],g.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],g.state={generation:0},g.selection=null,g.onEditorChange=function(b,x,v,N){var S,w,k,O;b==="text-change"?(w=(S=g).onEditorChangeText)===null||w===void 0||w.call(S,g.editor.root.innerHTML,x,N,g.unprivilegedEditor):b==="selection-change"&&((O=(k=g).onEditorChangeSelection)===null||O===void 0||O.call(k,x,N,g.unprivilegedEditor))};var j=g.isControlled()?m.value:m.defaultValue;return g.value=j??"",g}return f.prototype.validateProps=function(m){var g;if(i.default.Children.count(m.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(i.default.Children.count(m.children)){var j=i.default.Children.only(m.children);if(((g=j)===null||g===void 0?void 0:g.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&m.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},f.prototype.shouldComponentUpdate=function(m,g){var j=this,b;if(this.validateProps(m),!this.editor||this.state.generation!==g.generation)return!0;if("value"in m){var x=this.getEditorContents(),v=(b=m.value,b??"");this.isEqualValue(v,x)||this.setEditorContents(this.editor,v)}return m.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,m.readOnly),n(this.cleanProps,this.dirtyProps).some(function(N){return!l.default(m[N],j.props[N])})},f.prototype.shouldComponentRegenerate=function(m){var g=this;return this.dirtyProps.some(function(j){return!l.default(m[j],g.props[j])})},f.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},f.prototype.componentWillUnmount=function(){this.destroyEditor()},f.prototype.componentDidUpdate=function(m,g){var j=this;if(this.editor&&this.shouldComponentRegenerate(m)){var b=this.editor.getContents(),x=this.editor.getSelection();this.regenerationSnapshot={delta:b,selection:x},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==g.generation){var v=this.regenerationSnapshot,b=v.delta,N=v.selection;delete this.regenerationSnapshot,this.instantiateEditor();var S=this.editor;S.setContents(b),h(function(){return j.setEditorSelection(S,N)})}},f.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},f.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},f.prototype.isControlled=function(){return"value"in this.props},f.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},f.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},f.prototype.createEditor=function(m,g){var j=new c.default(m,g);return g.tabIndex!=null&&this.setEditorTabIndex(j,g.tabIndex),this.hookEditor(j),j},f.prototype.hookEditor=function(m){this.unprivilegedEditor=this.makeUnprivilegedEditor(m),m.on("editor-change",this.onEditorChange)},f.prototype.unhookEditor=function(m){m.off("editor-change",this.onEditorChange)},f.prototype.getEditorContents=function(){return this.value},f.prototype.getEditorSelection=function(){return this.selection},f.prototype.isDelta=function(m){return m&&m.ops},f.prototype.isEqualValue=function(m,g){return this.isDelta(m)&&this.isDelta(g)?l.default(m.ops,g.ops):l.default(m,g)},f.prototype.setEditorContents=function(m,g){var j=this;this.value=g;var b=this.getEditorSelection();typeof g=="string"?m.setContents(m.clipboard.convert(g)):m.setContents(g),h(function(){return j.setEditorSelection(m,b)})},f.prototype.setEditorSelection=function(m,g){if(this.selection=g,g){var j=m.getLength();g.index=Math.max(0,Math.min(g.index,j-1)),g.length=Math.max(0,Math.min(g.length,j-1-g.index)),m.setSelection(g)}},f.prototype.setEditorTabIndex=function(m,g){var j,b;!((b=(j=m)===null||j===void 0?void 0:j.scroll)===null||b===void 0)&&b.domNode&&(m.scroll.domNode.tabIndex=g)},f.prototype.setEditorReadOnly=function(m,g){g?m.disable():m.enable()},f.prototype.makeUnprivilegedEditor=function(m){var g=m;return{getHTML:function(){return g.root.innerHTML},getLength:g.getLength.bind(g),getText:g.getText.bind(g),getContents:g.getContents.bind(g),getSelection:g.getSelection.bind(g),getBounds:g.getBounds.bind(g)}},f.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var m=o.default.findDOMNode(this.editingArea);if(!m)throw new Error("Cannot find element for editing area");if(m.nodeType===3)throw new Error("Editing area cannot be a text node");return m},f.prototype.renderEditingArea=function(){var m=this,g=this.props,j=g.children,b=g.preserveWhitespace,x=this.state.generation,v={key:x,ref:function(N){m.editingArea=N}};return i.default.Children.count(j)?i.default.cloneElement(i.default.Children.only(j),v):b?i.default.createElement("pre",t({},v)):i.default.createElement("div",t({},v))},f.prototype.render=function(){var m;return i.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(m=this.props.className,m??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},f.prototype.onEditorChangeText=function(m,g,j,b){var x,v;if(this.editor){var N=this.isDelta(this.value)?b.getContents():b.getHTML();N!==this.getEditorContents()&&(this.lastDeltaChangeSet=g,this.value=N,(v=(x=this.props).onChange)===null||v===void 0||v.call(x,m,g,j,b))}},f.prototype.onEditorChangeSelection=function(m,g,j){var b,x,v,N,S,w;if(this.editor){var k=this.getEditorSelection(),O=!k&&m,C=k&&!m;l.default(m,k)||(this.selection=m,(x=(b=this.props).onChangeSelection)===null||x===void 0||x.call(b,m,g,j),O?(N=(v=this.props).onFocus)===null||N===void 0||N.call(v,m,g,j):C&&((w=(S=this.props).onBlur)===null||w===void 0||w.call(S,k,g,j)))}}
896,f.prototype.focus=function(){this.editor&&this.editor.focus()},f.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},f.displayName="React Quill",f.Quill=c.default,f.defaultProps={theme:"snow",modules:{},readOnly:!1},f})(i.default.Component);function h(p){Promise.resolve().then(p)}return is=d,is}var Lse=Ise();const Mse=dm(Lse),Fse={title:"",slug:"",date:new Date().toISOString().split("T")[0],author:"Michael Malinowsky",tags:[],excerpt:"",content:"",photo:"",meta_title:"",meta_description:"",status:"published",cta_search_jobs_enabled:!0,cta_search_jobs_link:"/jobs",cta_schedule_call_enabled:!1,cta_schedule_call_link:"/lets-talk"},Bse=["Career Advice","Job Search","Interview Tips","Resume Tips","Industry Insights","Veterans","GovCon","Manufacturing","Engineering","Leadership","Workplace Culture","Hiring Trends","Compensation","Remote Work"];function lT(e){return e.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/[\s_]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function Use(){const[e,t]=E.useState([]),[n,s]=E.useState(!0),[i,o]=E.useState(null),[l,c]=E.useState(""),[d,h]=E.useState(!1),[p,f]=E.useState(!1),m=async C=>{if(C){f(!0);try{const{file_url:A}=await ge.integrations.Core.UploadFile({file:C});v("photo",A),Ne.success("Photo uploaded")}catch(A){Ne.error("Failed to upload photo: "+A.message)}finally{f(!1)}}},g=async()=>{s(!0);try{const C=await ge.entities.BlogPost.list("-date",200);t(C||[])}catch(C){Ne.error("Failed to load blog posts: "+C.message)}finally{s(!1)}};E.useEffect(()=>{g()},[]);const j=()=>{o({...Fse}),h(!1),c("")},b=C=>{o({...C,tags:C.tags||[],cta_search_jobs_enabled:C.cta_search_jobs_enabled!==void 0?C.cta_search_jobs_enabled:!0,cta_search_jobs_link:C.cta_search_jobs_link||"/jobs",cta_schedule_call_enabled:C.cta_schedule_call_enabled!==void 0?C.cta_schedule_call_enabled:!1,cta_schedule_call_link:C.cta_schedule_call_link||"/lets-talk"}),h(!0),c("")},x=()=>{o(null),c("")},v=(C,A)=>{o(B=>{const I={...B,[C]:A};return C==="title"&&!d&&(I.slug=lT(A)),C==="slug"&&(I.slug=lT(A)),I})},N=()=>h(!0),S=C=>{const A=(C!==void 0?C:l).trim();if(A){if(i.tags.includes(A)){C===void 0&&c("");return}o(B=>({...B,tags:[...B.tags,A]})),C===void 0&&c("")}},w=C=>{o(A=>({...A,tags:A.tags.filter(B=>B!==C)}))},k=async()=>{if(!i.title||!i.slug||!i.content){Ne.error("Title, slug, and content are required");return}const C={title:i.title,slug:i.slug,date:i.date||new Date().toISOString().split("T")[0],author:i.author||"Michael Malinowsky",tags:i.tags,excerpt:i.excerpt||i.content.substring(0,150)+"...",content:i.content,photo:i.photo||"",meta_title:i.meta_title||"",meta_description:i.meta_description||"",status:i.status,cta_search_jobs_enabled:i.cta_search_jobs_enabled!==!1,cta_search_jobs_link:i.cta_search_jobs_link||"/jobs",cta_schedule_call_enabled:i.cta_schedule_call_enabled===!0,cta_schedule_call_link:i.cta_schedule_call_link||"/lets-talk"};try{i.id?(await ge.entities.BlogPost.update(i.id,C),Ne.success("Post updated")):(await ge.entities.BlogPost.create(C),Ne.success("Post created")),o(null),g()}catch(A){Ne.error("Failed to save post: "+A.message)}},O=async C=>{if(window.confirm(`Delete "${C.title}"? This cannot be undone.`))try{await ge.entities.BlogPost.delete(C.id),t(A=>A.filter(B=>B.id!==C.id)),Ne.success("Post deleted")}catch(A){Ne.error("Failed to delete post: "+A.message)}};return i?r.jsxs(xt,{children:[r.jsxs($n,{children:[r.jsx(zn,{children:i.id?"Edit Post":"New Blog Post"}),r.jsx(Rr,{children:i.id?"Update the post details below":"Create a new blog post"})]}),r.jsx(vt,{children:r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"H1 Title *"}),r.jsx(Se,{value:i.title,onChange:C=>v("title",C.target.value),placeholder:"Post title"})]}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Slug *"}),r.jsx(Se,{value:i.slug,onChange:C=>v("slug",C.target.value),onFocus:N,placeholder:"url-slug"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Publish Date"}),r.jsx(Se,{type:"date",value:i.date,onChange:C=>v("date",C.target.value)})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Status"}),r.jsxs("select",{value:i.status,onChange:C=>v("status",C.target.value),className:"w-full h-9 rounded-md border border-input bg-transparent px-3 text-sm",children:[r.jsx("option",{value:"published",children:"Published"}),r.jsx("option",{value:"draft",children:"Draft"})]})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Author"}),r.jsx(Se,{value:i.author,onChange:C=>v("author",C.target.value),placeholder:"Author name"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Tags"}),r.jsxs("div",{className:"flex gap-2 mb-2",children:[r.jsx(Se,{value:l,onCh
896ange:C=>c(C.target.value),onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),S())},placeholder:"Type a tag and press Enter"}),r.jsxs(xe,{type:"button",variant:"outline",onClick:()=>S(),children:[r.jsx(xs,{className:"w-4 h-4"})," Add"]})]}),i.tags.length>0&&r.jsx("div",{className:"flex flex-wrap gap-2",children:i.tags.map(C=>r.jsxs(Be,{variant:"secondary",className:"gap-1 cursor-pointer",onClick:()=>w(C),children:[C," ",r.jsx(Ar,{className:"w-3 h-3"})]},C))}),(()=>{const A=[...new Set([...Bse,...e.flatMap(B=>B.tags||[])])].filter(B=>!i.tags.includes(B)).sort();return A.length===0?null:r.jsxs("div",{className:"mt-3",children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Suggested tags (click to add):"}),r.jsx("div",{className:"flex flex-wrap gap-1.5",children:A.map(B=>r.jsxs("button",{type:"button",onClick:()=>S(B),className:"text-xs px-2 py-1 rounded-full border border-border text-muted-foreground hover:border-primary hover:text-primary transition-colors",children:["+ ",B]},B))})]})})()]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-2",children:"Call-to-Action Buttons"}),r.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:"Show optional action buttons at the bottom of this post. Customize the link or use the default path."}),r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex flex-wrap items-center gap-3 p-3 rounded-lg border border-border",children:[r.jsx(Vb,{checked:!!i.cta_search_jobs_enabled,onCheckedChange:C=>v("cta_search_jobs_enabled",C)}),r.jsxs("div",{className:"flex-1 min-w-[160px]",children:[r.jsx("p",{className:"text-sm font-medium",children:"Search Jobs button"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Sends readers to your open jobs board."})]}),r.jsx(Se,{value:i.cta_search_jobs_link,onChange:C=>v("cta_search_jobs_link",C.target.value),placeholder:"/jobs",disabled:!i.cta_search_jobs_enabled,className:"max-w-[220px]"})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-3 p-3 rounded-lg border border-border",children:[r.jsx(Vb,{checked:!!i.cta_schedule_call_enabled,onCheckedChange:C=>v("cta_schedule_call_enabled",C)}),r.jsxs("div",{className:"flex-1 min-w-[160px]",children:[r.jsx("p",{className:"text-sm font-medium",children:"Schedule a Call button"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Sends readers to your scheduling page."})]}),r.jsx(Se,{value:i.cta_schedule_call_link,onChange:C=>v("cta_schedule_call_link",C.target.value),placeholder:"/lets-talk",disabled:!i.cta_schedule_call_enabled,className:"max-w-[220px]"})]})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Feature Image"}),r.jsxs("div",{className:"flex items-center gap-4",children:[i.photo&&r.jsx("img",{src:i.photo,alt:"Feature",className:"w-24 h-24 object-cover rounded-lg border border-border"}),r.jsxs("div",{className:"flex-1",children:[r.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer text-sm font-medium text-primary hover:underline",children:[p?r.jsxs(r.Fragment,{children:[r.jsx(mm,{className:"w-4 h-4 animate-spin"})," Uploading..."]}):r.jsxs(r.Fragment,{children:[r.jsx(CM,{className:"w-4 h-4"})," ",i.photo?"Change Image":"Upload Image"]}),r.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:C=>{var A;return m((A=C.target.files)==null?void 0:A[0])},disabled:p})]}),i.photo&&r.jsx("button",{type:"button",onClick:()=>v("photo",""),className:"block text-xs text-destructive hover:underline mt-2",children:"Remove image"})]})]})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-medium mb-1",children:["Meta Title ",r.jsx("span",{className:"text-muted-foreground font-normal",children:"(SEO)"})]}),r.jsx(Se,{value:i.meta_title,onChange:C=>v("meta_title",C.target.value),placeholder:"SEO title (defaults to H1 title if blank)"})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-medium mb-1",children:["Meta Description ",r.jsx("span",{className:"text-muted-foreground font-normal",children:"(SEO)"})]}),r.jsx(Yt,{value:i.meta_description,onChange:C=>v("meta_description",C.target.value),placeholder:"SEO meta description (defaults to excerpt if blank)",rows:2})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Excerpt"}),r.jsx(Yt,{value:i.excerpt,onChange:C=>v("excerpt",C.target.value),placeholder:"Short summary shown on the blog listing (auto-generated if left blank)",rows:3})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content *"}),r.jsx(Mse,{theme:"snow",value:i.content||"",onChange:C=>v("content",C),modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"}],["link"],["clean"]]},placeholder:"Write the full post content here... Select text and click the link icon to add a hyperlink (e.g. /contact).",style:{minHeight:"400px"}})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsxs(xe,{onClick:k,className:"gap-2",children:[r.jsx(ZT,{className:"w-4 h-4"})," ",i.id?"Update Post":"Publish Post"]}),r.jsxs(xe,{variant:"outline",onClick:x,className:"gap-2",children:[r.jsx(Ar,{className:"w-4 h-4"})," Cancel"]})]})]})})]}):r.jsxs(xt,{children:[r.jsx($n,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(zn,{children:"Blog Posts"}),r.jsx(Rr,{children:"Create, edit, and manage blog posts"})]}),r.jsxs(xe,{onClick:j,className:"gap-2",children:[r.jsx(xs,{className:"w-4 h-4"})," New Post"]})]})}),r.jsx(vt,{children:n?r.jsxs("div",{className:"text-center py-12",children:[r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent roun
896ded-full animate-spin mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading posts..."})]}):e.length===0?r.jsxs("div",{className:"text-center py-12",children:[r.jsx(Po,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:'No blog posts yet. Click "New Post" to create one.'})]}):r.jsx("div",{className:"space-y-3",children:e.map(C=>r.jsxs("div",{className:"flex items-start justify-between gap-4 p-4 rounded-lg border border-border hover:border-primary/30 transition-colors",children:[r.jsxs("div",{className:"flex-1 min-w-0 flex items-start gap-3",children:[C.photo&&r.jsx("img",{src:C.photo,alt:C.title,className:"w-12 h-12 object-cover rounded-lg border border-border flex-shrink-0"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx(Kr,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"}),r.jsx("p",{className:"font-semibold truncate",children:C.title}),C.status==="draft"&&r.jsx(Be,{variant:"outline",className:"text-amber-600",children:"Draft"})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mb-2",children:[C.date?new Date(C.date).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"No date"," · ",C.author||"Unknown"]}),C.tags&&C.tags.length>0&&r.jsx("div",{className:"flex flex-wrap gap-1",children:C.tags.map(A=>r.jsx(Be,{variant:"secondary",className:"text-xs",children:A},A))})]})]}),r.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>b(C),children:r.jsx(wa,{className:"w-4 h-4"})}),r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>O(C),className:"text-destructive hover:text-destructive",children:r.jsx(ws,{className:"w-4 h-4"})})]})]},C.id))})})]})}const cT=Xl.filter(e=>!["Tux","Zoe Montgomery"].includes(e.name)).map(e=>e.name),wv={first_name:"",last_name:"",full_name:"",email:"",phone:"",company:"",role_company:"",type:"client",testimonial_text:"",rating:5,recruiter_name:"",job_title:"",status:"approved"};function qse({testimonials:e,setTestimonials:t,loadingApps:n}){const[s,i]=E.useState(null),[o,l]=E.useState({}),[c,d]=E.useState(!1),[h,p]=E.useState(wv),f=async w=>{await ge.entities.Testimonial.update(w,{status:"approved"}),t(k=>k.map(O=>O.id===w?{...O,status:"approved"}:O)),Ne.success("Testimonial approved")},m=async w=>{await ge.entities.Testimonial.update(w,{status:"pending"}),t(k=>k.map(O=>O.id===w?{...O,status:"pending"}:O)),Ne.info("Testimonial moved back to pending")},g=async w=>{window.confirm("Delete this testimonial permanently?")&&(await ge.entities.Testimonial.delete(w),t(k=>k.filter(O=>O.id!==w)),Ne.success("Testimonial deleted"))},j=w=>{i(w.id),l({...w})},b=async()=>{try{const w=o.full_name||`${o.first_name||""} ${o.last_name||""}`.trim();await ge.entities.Testimonial.update(s,{first_name:o.first_name,last_name:o.last_name,full_name:w,email:o.email,phone:o.phone,company:o.company,role_company:o.role_company,type:o.type,testimonial_text:o.testimonial_text,rating:Number(o.rating),recruiter_name:o.recruiter_name,job_title:o.job_title}),t(k=>k.map(O=>O.id===s?{...o,full_name:w}:O)),Ne.success("Testimonial updated"),i(null)}catch(w){Ne.error("Update failed: "+w.message)}},x=async w=>{if(w.preventDefault(),!h.testimonial_text||!h.first_name&&!h.full_name){Ne.error("Name and testimonial text are required");return}const k=h.full_name||`${h.first_name} ${h.last_name}`.trim();try{const O=await ge.entities.Testimonial.create({...h,first_name:h.first_name||k.split(" ")[0]||"",last_name:h.last_name||k.split(" ").slice(1).join(" ")||"",full_name:k,rating:Number(h.rating),status:h.status});t(C=>[O,...C]),Ne.success("Testimonial added"),p(wv),d(!1)}catch(O){Ne.error("Failed to add: "+O.message)}},v=e.filter(w=>w.status==="pending"),N=e.filter(w=>w.status==="approved"),S=w=>r.jsx(xt,{className:w.status==="approved"?"border-green-200 bg-green-50":"border-amber-200",children:r.jsx(vt,{className:"p-4",children:r.jsxs("div",{className:"flex items-start justify-between gap-4",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("p",{className:"font-semibold truncate",children:w.full_name||`${w.first_name} ${w.last_name}`}),w.status==="approved"?r.jsx(Be,{className:"bg-green-600",children:"Approved"}):r.jsx(Be,{className:"bg-amber-500",children:"Pending"})]}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:[w.email,w.phone?` · ${w.phone}`:""]}),w.company&&r.jsx("p",{className:"text-sm text-muted-foreground",children:w.
896company}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:[w.type==="client"?"Client":"Candidate"," · Rating: ",[1,2,3,4,5].map(k=>r.jsx(qu,{className:`w-3 h-3 inline ${k<=w.rating?"fill-primary text-primary":"text-muted"}`},k))]}),w.recruiter_name&&r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Recruiter: ",w.recruiter_name]}),w.job_title&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Job: ",w.job_title]}),r.jsx("p",{className:"mt-2 text-sm bg-muted rounded p-3 whitespace-pre-wrap",children:w.testimonial_text}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["Submitted: ",w.created_date?new Date(w.created_date).toLocaleDateString():"Manual entry"]})]}),r.jsxs("div",{className:"flex gap-1 flex-shrink-0 flex-col",children:[r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>j(w),title:"Edit",children:r.jsx(wa,{className:"w-4 h-4"})}),w.status==="pending"?r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>f(w.id),title:"Approve",className:"text-green-600 hover:text-green-700",children:r.jsx(Ta,{className:"w-4 h-4"})}):r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>m(w.id),title:"Move to pending",children:r.jsx(yo,{className:"w-4 h-4"})}),r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>g(w.id),title:"Delete",className:"text-red-600 hover:text-red-700",children:r.jsx(ws,{className:"w-4 h-4"})})]})]})})},w.id);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(xt,{children:[r.jsxs($n,{className:"flex flex-row items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(zn,{children:"Testimonial Management"}),r.jsx(Rr,{children:"Review, edit, and manually add testimonials from clients and candidates"})]}),r.jsxs(xe,{onClick:()=>d(!c),className:"gap-2",children:[r.jsx(xs,{className:"w-4 h-4"})," Add Testimonial"]})]}),r.jsx(vt,{children:n?r.jsxs("div",{className:"text-center py-12",children:[r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading testimonials..."})]}):e.length===0?r.jsxs("div",{className:"text-center py-12",children:[r.jsx(Po,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"No testimonials yet. Add one manually or wait for submissions."})]}):r.jsxs("div",{className:"space-y-6",children:[v.length>0&&r.jsxs("div",{children:[r.jsx("h3",{className:"text-sm font-semibold mb-3 flex items-center gap-2",children:r.jsxs(Be,{className:"bg-amber-500",children:[v.length," Pending"]})}),r.jsx("div",{className:"space-y-3",children:v.map(S)})]}),N.length>0&&r.jsxs("div",{children:[r.jsx("h3",{className:"text-sm font-semibold mb-3 flex items-center gap-2",children:r.jsxs(Be,{className:"bg-green-600",children:[N.length," Approved"]})}),r.jsx("div",{className:"space-y-3",children:N.map(S)})]})]})})]}),c&&r.jsxs(xt,{children:[r.jsxs($n,{children:[r.jsx(zn,{children:"Add Testimonial Manually"}),r.jsx(Rr,{children:"For testimonials given directly to recruiters or collected offline"})]}),r.jsx(vt,{children:r.jsxs("form",{onSubmit:x,className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"First Name"}),r.jsx(Se,{value:h.first_name,onChange:w=>p({...h,first_name:w.target.value}),placeholder:"John"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Last Name"}),r.jsx(Se,{value:h.last_name,onChange:w=>p({...h,last_name:w.target.value}),placeholder:"Smith"})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Full Name (display) *"}),r.jsx(Se,{value:h.full_name,onChange:w=>p({...h,full_name:w.target.value}),placeholder:"John Smith",required:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Email"}),r.jsx(Se,{type:"email",value:h.email,onChange:w=>p({...h,email:w.target.value}),placeholder:"[email protected]"})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Phone"}),r.jsx(Se,{value:h.phone,onChange:w=>p({...h,phone:w.target.value}),placeholder:"(555) 123-4567"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Company"}),r.jsx(Se,{value:h.company,onChange:w=>p({...h,company:w.target.value}),placeholder:"Acme Corp"})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Role / Company (display)"}),r.jsx(Se,{value:h.role_company,onChange:w=>
896p({...h,role_company:w.target.value}),placeholder:"Operations Manager, Acme Corp"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Type"}),r.jsxs("select",{value:h.type,onChange:w=>p({...h,type:w.target.value}),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm",children:[r.jsx("option",{value:"client",children:"Client"}),r.jsx("option",{value:"candidate",children:"Candidate"})]})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Rating"}),r.jsxs("select",{value:h.rating,onChange:w=>p({...h,rating:Number(w.target.value)}),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm",children:[r.jsx("option",{value:5,children:"5 Stars"}),r.jsx("option",{value:4,children:"4 Stars"}),r.jsx("option",{value:3,children:"3 Stars"}),r.jsx("option",{value:2,children:"2 Stars"}),r.jsx("option",{value:1,children:"1 Star"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Recruiter"}),r.jsxs("select",{value:h.recruiter_name,onChange:w=>p({...h,recruiter_name:w.target.value}),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm",children:[r.jsx("option",{value:"",children:"— Select —"}),cT.map(w=>r.jsx("option",{value:w,children:w},w))]})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Job Title (optional)"}),r.jsx(Se,{value:h.job_title,onChange:w=>p({...h,job_title:w.target.value}),placeholder:"Maintenance Engineer"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Testimonial Text *"}),r.jsx(Yt,{value:h.testimonial_text,onChange:w=>p({...h,testimonial_text:w.target.value}),placeholder:"Paste or type the testimonial here...",rows:5,required:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Status"}),r.jsxs("select",{value:h.status,onChange:w=>p({...h,status:w.target.value}),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm",children:[r.jsx("option",{value:"approved",children:"Approved (publish immediately)"}),r.jsx("option",{value:"pending",children:"Pending (review later)"})]})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsxs(xe,{type:"submit",className:"gap-2",children:[r.jsx(xs,{className:"w-4 h-4"})," Save Testimonial"]}),r.jsx(xe,{type:"button",variant:"outline",onClick:()=>{p(wv),d(!1)},children:"Cancel"})]})]})})]}),r.jsx(ki,{open:!!s,onOpenChange:()=>i(null),children:r.jsxs(Ys,{className:"max-w-2xl max-h-[85vh] overflow-y-auto",children:[r.jsx(Ks,{children:r.jsx(Js,{children:"Edit Testimonial"})}),s&&r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"First Name"}),r.jsx(Se,{value:o.first_name||"",onChange:w=>l({...o,first_name:w.target.value})})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Last Name"}),r.jsx(Se,{value:o.last_name||"",onChange:w=>l({...o,last_name:w.target.value})})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Full Name (display)"}),r.jsx(Se,{value:o.full_name||"",onChange:w=>l({...o,full_name:w.target.value})})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Email"}),r.jsx(Se,{type:"email",value:o.email||"",onChange:w=>l({...o,email:w.target.value})})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Phone"}),r.jsx(Se,{value:o.phone||"",onChange:w=>l({...o,phone:w.target.value})})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Company"}),r.jsx(Se,{value:o.company||"",onChange:w=>l({...o,company:w.target.value})})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Role / Company (display)"}),r.jsx(Se,{value:o.role_company||"",onChange:w=>
896l({...o,role_company:w.target.value})})]})]}),r.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Type"}),r.jsxs("select",{value:o.type||"client",onChange:w=>l({...o,type:w.target.value}),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm",children:[r.jsx("option",{value:"client",children:"Client"}),r.jsx("option",{value:"candidate",children:"Candidate"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Rating"}),r.jsxs("select",{value:o.rating||5,onChange:w=>l({...o,rating:Number(w.target.value)}),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm",children:[r.jsx("option",{value:5,children:"5 Stars"}),r.jsx("option",{value:4,children:"4 Stars"}),r.jsx("option",{value:3,children:"3 Stars"}),r.jsx("option",{value:2,children:"2 Stars"}),r.jsx("option",{value:1,children:"1 Star"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Recruiter"}),r.jsxs("select",{value:o.recruiter_name||"",onChange:w=>l({...o,recruiter_name:w.target.value}),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm",children:[r.jsx("option",{value:"",children:"— None —"}),cT.map(w=>r.jsx("option",{value:w,children:w},w))]})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Job Title"}),r.jsx(Se,{value:o.job_title||"",onChange:w=>l({...o,job_title:w.target.value})})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Testimonial Text"}),r.jsx(Yt,{value:o.testimonial_text||"",onChange:w=>l({...o,testimonial_text:w.target.value}),rows:6})]}),o.helpful_aspects&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[r.jsx("strong",{children:"Helpful:"})," ",o.helpful_aspects]}),o.improvement_areas&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[r.jsx("strong",{children:"Improvements:"})," ",o.improvement_areas]}),r.jsxs("div",{className:"flex gap-3 justify-end",children:[r.jsx(xe,{variant:"outline",onClick:()=>i(null),children:"Cancel"}),r.jsx(xe,{onClick:b,children:"Save Changes"})]})]})]})})]})}const qs=E.forwardRef(({className:e,...t},n)=>r.jsx("div",{className:"relative w-full overflow-auto",children:r.jsx("table",{ref:n,className:ut("w-full caption-bottom text-sm",e),...t})}));qs.displayName="Table";const Vs=E.forwardRef(({className:e,...t},n)=>r.jsx("thead",{ref:n,className:ut("[&_tr]:border-b",e),...t}));Vs.displayName="TableHeader";const $s=E.forwardRef(({className:e,...t},n)=>r.jsx("tbody",{ref:n,className:ut("[&_tr:last-child]:border-0",e),...t}));$s.displayName="TableBody";const Vse=E.forwardRef(({className:e,...t},n)=>r.jsx("tfoot",{ref:n,className:ut("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Vse.displayName="TableFooter";const Zt=E.forwardRef(({className:e,...t},n)=>r.jsx("tr",{ref:n,className:ut("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Zt.displayName="TableRow";const Ue=E.forwardRef(({className:e,...t},n)=>r.jsx("th",{ref:n,className:ut("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Ue.displayName="TableHead";const Le=E.forwardRef(({className:e,...t},n)=>r.jsx("td",{ref:n,className:ut("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Le.displayName="TableCell";const $se=E.forwardRef(({className:e,...t},n)=>r.jsx("caption",{ref:n,className:ut("mt-4 text-sm text-muted-foreground",e),...t}));$se.displayName="TableCaption";function zse({partnerRequests:e,setPartnerRequests:t,loadingApps:n}){const[s,i]=E.useState(""),[o,l]=E.useState(null),c=(e||[]).filter(f=>{var g,j,b;const m=s.toLowerCase();return((g=f.full_name)==null?void 0:g.toLowerCase().includes(m))||((j=f.email)==null?void 0:j.toLowerCase().includes(m))||((b=f.company)==null?void 0:b.toLowerCase().includes(m))}),d=async f=>{const m=["Partnership Request",`Name: ${f.full_name}`,`Company: ${f.company||"N/A"}`,`Email: ${f.email}`,`Phone: ${f.phone||"N/A"}`,`Submitted: ${f.created_date?new Date(f.created_date).toLocaleStr
896ing():"N/A"}`,"","Message:",f.message||"N/A"].join(`
897`);try{await navigator.clipboard.writeText(m),Ne.success("Details copied to clipboard")}catch{Ne.error("Failed to copy — please select and copy manually")}},h=async f=>{try{await ge.entities.ContactSubmission.update(f.id,{archived:!0}),t(m=>m.map(g=>g.id===f.id?{...g,archived:!0}:g)),Ne.success("Partnership request archived")}catch(m){Ne.error("Failed to archive: "+m.message)}},p=async f=>{window.confirm(`Delete partnership request from ${f.full_name}?`)&&(await ge.entities.ContactSubmission.delete(f.id),t(m=>m.filter(g=>g.id!==f.id)),Ne.success("Partnership request deleted"))};return r.jsxs("div",{children:[r.jsx(xt,{className:"mb-6",children:r.jsx(vt,{className:"p-4",children:r.jsxs("div",{className:"relative flex-1",children:[r.jsx(Ha,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),r.jsx(Se,{placeholder:"Search by name, email, or company...",value:s,onChange:f=>i(f.target.value),className:"pl-10"})]})})}),n?r.jsxs("div",{className:"text-center py-12",children:[r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading partnership requests..."})]}):c.length===0?r.jsxs("div",{className:"text-center py-12",children:[r.jsx(ka,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"No partnership requests yet"})]}):r.jsx(xt,{children:r.jsx(vt,{className:"p-0 overflow-x-auto",children:r.jsxs(qs,{children:[r.jsx(Vs,{children:r.jsxs(Zt,{children:[r.jsx(Ue,{children:"Name"}),r.jsx(Ue,{children:"Email"}),r.jsx(Ue,{children:"Phone"}),r.jsx(Ue,{children:"Company"}),r.jsx(Ue,{children:"Submitted"}),r.jsx(Ue,{children:"Actions"})]})}),r.jsx($s,{children:c.map(f=>r.jsxs(Zt,{children:[r.jsx(Le,{className:"font-medium",children:f.full_name}),r.jsx(Le,{children:f.email}),r.jsx(Le,{children:f.phone}),r.jsx(Le,{children:f.company||"-"}),r.jsx(Le,{children:f.created_date?new Date(f.created_date).toLocaleDateString():"N/A"}),r.jsx(Le,{children:r.jsxs("div",{className:"flex gap-2",children:[r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>l(f),children:r.jsx(Aa,{className:"w-4 h-4"})}),r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>h(f),title:"Archive",children:r.jsx(Is,{className:"w-4 h-4"})}),r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>p(f),className:"text-destructive hover:text-destructive",children:r.jsx(ws,{className:"w-4 h-4"})})]})})]},f.id))})]})})}),r.jsx(ki,{open:!!o,onOpenChange:()=>l(null),children:r.jsxs(Ys,{className:"max-w-2xl",children:[r.jsx(Ks,{children:r.jsx(Js,{children:"Partnership Request Details"})}),o&&r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Full Name"}),r.jsx("p",{className:"text-muted-foreground",children:o.full_name})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Company"}),r.jsx("p",{className:"text-muted-foreground",children:o.company||"N/A"})]}),r.jsxs("div",{children:[r.jsxs("p",{className:"text-sm font-medium flex items-center gap-1",children:[r.jsx(ko,{className:"w-3 h-3"})," Email"]}),r.jsx("a",{href:`mailto:${o.email}`,className:"text-primary hover:underline",children:o.email})]}),r.jsxs("div",{children:[r.jsxs("p",{className:"text-sm font-medium flex items-center gap-1",children:[r.jsx(pm,{className:"w-3 h-3"})," Phone"]}),r.jsx("p",{className:"text-muted-foreground",children:o.phone||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Submitted On"}),r.jsx("p",{className:"text-muted-foreground",children:o.created_date?new Date(o.created_date).toLocaleString():"N/A"})]})]}),o.message&&r.jsxs("div",{children:[r.jsxs("p",{className:"text-sm font-medium mb-2 flex items-center gap-1",children:[r.jsx(bu,{className:"w-3 h-3"})," Message"]}),r.jsx("div",{className:"bg-muted p-4 rounded-lg",children:r.jsx("p",{className:"text-muted-foreground whitespace-pre-wrap",children:o.message})})]}),r.jsxs("div",{className:"flex gap-2 pt-2",children:[r.jsxs(xe,{onClick:()=>d(o),children:[r.jsx(rM,{className:"w-4 h-4 mr-2"})," Copy Details"]}
897),r.jsxs(xe,{variant:"outline",onClick:()=>window.open(`mailto:${o.email}?subject=Re: Partnership Request`),children:[r.jsx(ko,{className:"w-4 h-4 mr-2"})," Reply via Email"]})]})]})]})})]})}const uT={"veteran-seeking-employment":"Veteran Seeking Employment","company-hiring":"Company Hiring","seeking-employment":"Seeking Employment",employer:"Employer","job-seeker":"Job Seeker",other:"Other"};function Hse({contactForms:e,setContactForms:t,loadingApps:n}){const[s,i]=E.useState(""),[o,l]=E.useState(null),c=e.filter(p=>{var m,g,j;const f=s.toLowerCase();return((m=p.full_name)==null?void 0:m.toLowerCase().includes(f))||((g=p.email)==null?void 0:g.toLowerCase().includes(f))||((j=p.company)==null?void 0:j.toLowerCase().includes(f))}),d=async p=>{try{await ge.entities.ContactSubmission.update(p.id,{archived:!0}),t(f=>f.map(m=>m.id===p.id?{...m,archived:!0}:m)),Ne.success("Submission archived")}catch(f){Ne.error("Failed to archive: "+f.message)}},h=async p=>{window.confirm(`Delete submission from ${p.full_name}?`)&&(await ge.entities.ContactSubmission.delete(p.id),t(f=>f.filter(m=>m.id!==p.id)),Ne.success("Submission deleted"))};return n?r.jsxs("div",{className:"text-center py-12",children:[r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading contact form submissions..."})]}):r.jsxs("div",{children:[r.jsx(xt,{className:"mb-6",children:r.jsx(vt,{className:"p-4",children:r.jsxs("div",{className:"relative",children:[r.jsx(Ha,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),r.jsx(Se,{placeholder:"Search by name, email, or company...",value:s,onChange:p=>i(p.target.value),className:"pl-10"})]})})}),c.length===0?r.jsxs("div",{className:"text-center py-12",children:[r.jsx(ko,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"No contact form submissions yet"})]}):r.jsx(xt,{children:r.jsx(vt,{className:"p-0 overflow-x-auto",children:r.jsxs(qs,{children:[r.jsx(Vs,{children:r.jsxs(Zt,{children:[r.jsx(Ue,{children:"Name"}),r.jsx(Ue,{children:"Email"}),r.jsx(Ue,{children:"Phone"}),r.jsx(Ue,{children:"Company"}),r.jsx(Ue,{children:"Reason"}),r.jsx(Ue,{children:"Type"}),r.jsx(Ue,{children:"Submitted"}),r.jsx(Ue,{children:"Actions"})]})}),r.jsx($s,{children:c.map(p=>r.jsxs(Zt,{children:[r.jsx(Le,{className:"font-medium",children:p.full_name}),r.jsx(Le,{children:p.email}),r.jsx(Le,{children:p.phone||"-"}),r.jsx(Le,{children:p.company||"-"}),r.jsx(Le,{children:p.user_type?r.jsx(Be,{variant:"outline",children:uT[p.user_type]||p.user_type}):"-"}),r.jsx(Le,{children:p.form_type==="lets-talk"?r.jsx(Be,{className:"bg-[#0B1F33]",children:"Let's Talk"}):r.jsx(Be,{variant:"secondary",children:"Contact"})}),r.jsx(Le,{children:p.created_date?new Date(p.created_date).toLocaleDateString():"N/A"}),r.jsx(Le,{children:r.jsxs("div",{className:"flex gap-2",children:[r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>l(p),children:r.jsx(Aa,{className:"w-4 h-4"})}),r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>d(p),title:"Archive",children:r.jsx(Is,{className:"w-4 h-4"})}),r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>h(p),className:"text-destructive hover:text-destructive",children:r.jsx(ws,{className:"w-4 h-4"})})]})})]},p.id))})]})})}),r.jsx(ki,{open:!!o,onOpenChange:()=>l(null),children:r.jsxs(Ys,{className:"max-w-lg",children:[r.jsx(Ks,{children:r.jsx(Js,{children:"Contact Form Submission"})}),o&&r.jsxs("div",{className:"space-y-3 text-sm",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Name"}),r.jsx("p",{className:"text-muted-foreground",children:o.full_name})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Email"}),r.jsx("a",{href:`mailto:${o.email}`,className:"text-primary hover:underline",children:o.email})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Phone"}),r.jsx("p",{className:"text-muted-foreground",children:o.phone||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Company"}),r.jsx("p",{className:"text-muted-foreground",children:o.company||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Type"}),r.jsx("p",{className:"text-muted-foreground",children:o.form_type==="lets-talk"?"Let's Talk":"Contact"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Reason for Contact"}),r.jsx("p",{className:"text-muted-foreground",children:o.user_t
897ype?uT[o.user_type]||o.user_type:"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Submitted"}),r.jsx("p",{className:"text-muted-foreground",children:o.created_date?new Date(o.created_date).toLocaleString():"N/A"})]})]}),o.message&&r.jsxs("div",{children:[r.jsx("p",{className:"font-medium mb-1",children:"Message"}),r.jsx("div",{className:"bg-muted rounded p-3 text-muted-foreground whitespace-pre-wrap",children:o.message})]}),o.resume_url&&r.jsxs("div",{children:[r.jsx("p",{className:"font-medium mb-1",children:"Resume"}),r.jsxs("a",{href:o.resume_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-primary hover:underline",children:[r.jsx(Kr,{className:"w-4 h-4"}),"View Resume"]})]})]})]})})]})}function Wse(){const[e,t]=E.useState([]),[n,s]=E.useState(!0),[i,o]=E.useState(!1),[l,c]=E.useState({name:"",key:"",description:""}),[d,h]=E.useState(null),p=async()=>{s(!0);const g=await ge.entities.SiteDocument.list();t(g),s(!1)};E.useEffect(()=>{p()},[]);const f=async g=>{if(g.preventDefault(),!d||!l.name||!l.key){Ne.error("Name, key, and file are required");return}o(!0);const{file_url:j}=await ge.integrations.Core.UploadFile({file:d}),b=e.find(x=>x.key===l.key);b?(await ge.entities.SiteDocument.update(b.id,{...l,file_url:j}),Ne.success("Document updated")):(await ge.entities.SiteDocument.create({...l,file_url:j}),Ne.success("Document uploaded")),c({name:"",key:"",description:""}),h(null),g.target.reset(),await p(),o(!1)},m=async g=>{window.confirm(`Delete "${g.name}"?`)&&(await ge.entities.SiteDocument.delete(g.id),t(j=>j.filter(b=>b.id!==g.id)),Ne.success("Document deleted"))};return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(xt,{children:[r.jsxs($n,{children:[r.jsx(zn,{children:"Upload Document"}),r.jsx(Rr,{children:"Upload files that will be linked on the website (e.g. Capability Statement PDF). Use the same Key to replace an existing document."})]}),r.jsx(vt,{children:r.jsxs("form",{onSubmit:f,className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Document Name *"}),r.jsx(Se,{placeholder:"e.g. Capability Statement",value:l.name,onChange:g=>c({...l,name:g.target.value}),required:!0})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-medium mb-1",children:["Key * ",r.jsx("span",{className:"text-muted-foreground font-normal",children:"(unique ID, no spaces)"})]}),r.jsx(Se,{placeholder:"e.g. capability_statement",value:l.key,onChange:g=>c({...l,key:g.target.value.replace(/\s+/g,"_").toLowerCase()}),required:!0})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Description (optional)"}),r.jsx(Se,{placeholder:"e.g. SDVOSB Workforce & Employment Solutions",value:l.description,onChange:g=>c({...l,description:g.target.value})})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"File *"}),r.jsx("input",{type:"file",accept:".pdf,.doc,.docx,.png,.jpg",onChange:g=>h(g.target.files[0]),className:"block w-full text-sm text-muted-foreground file:mr-4 file:py-2 file:px-4 file:rounded file:border-0 file:text-sm file:font-semibold file:bg-primary file:text-primary-foreground hover:file:opacity-90",required:!0})]}),r.jsxs(xe,{type:"submit",disabled:i,className:"gap-2",children:[r.jsx(yd,{className:"w-4 h-4"}),i?"Uploading...":"Upload Document"]})]})})]}),r.jsxs(xt,{children:[r.jsx($n,{children:r.jsx(zn,{children:"Stored Documents"})}),r.jsx(vt,{children:n?r.jsx("p",{className:"text-muted-foreground text-sm",children:"Loading..."}):e.length===0?r.jsxs("div",{className:"text-center py-10 text-muted-foreground",children:[r.jsx(Kr,{className:"w-10 h-10 mx-auto mb-2 opacity-30"}),r.jsx("p",{children:"No documents uploaded yet."})]}):r.jsx("div",{className:"space-y-3",children:e.map(g=>r.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Kr,{className:"w-5 h-5 text-muted-foreground flex-shrink-0"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-sm",children:g.name}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Key: ",r.jsx("code",{className:"bg-muted px-1 rounded",children:g.key}),g.description?` — ${g.description}`:""]})]})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>window.open(g.file_url,"_blank"),children:r.jsx(lM,{className:"w-4 h-4"})}),r.jsx(xe,{variant:"outline",size:"sm",className:"text-destructive hover:text-destructive",onClick:()=>m(g),children:r.jsx(ws,{className:"w-4 h-4"})})]})]},g.id))})})]})]})}const uh=e=>{if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toISOString().slice(0,10)};function Gse({applications:e}){const t=new Date().toISOString().slice(0,10),[n,s]=E.useState(""),[i,o]=E.useState(t),[l,c]=E.useState(!1),d=E.useMemo(()=>l?e.filter(g=>{const j=uh(g.created_date);return!(!j||n&&j<n||i&&j>i)}).slice().sort((g,j)=>uh(j.created_date).localeCompare(uh(g.created_date))):[],[e,l,n,i]),h=()=>
897{if(!n){Ne.error("Please choose a start date.");return}if(i&&n>i){Ne.error("Start date must be before the end date.");return}c(!0)},p=g=>g==="sent"?{text:"Yes",className:"bg-green-600 text-white"}:g==="failed"?{text:"Failed",className:"bg-destructive text-destructive-foreground"}:{text:"Pending",className:""},f=()=>{const g=`${n||"start"} to ${i||"today"}`,j=d.map(v=>{const N=p(v.crelate_status);return`<tr>
898        <td>${v.first_name||""} ${v.last_name||""}</td>
899        <td>${v.job_number||""}</td>
900        <td>${v.job_title||"General Application"}</td>
901        <td>${v.created_date?new Date(v.created_date).toLocaleDateString():""}</td>
902        <td>${v.recruiter||""}</td>
903        <td>${N.text}</td>
904      </tr>`}).join(""),b=`<!doctype html><html><head><title>Applications Report — ${g}</title>
905      <style>
906        body { font-family: Inter, Arial, sans-serif; color: #1f2937; padding: 32px; }
907        h1 { font-size: 20px; margin: 0 0 4px; }
908        .meta { color: #6b7280; font-size: 13px; margin-bottom: 16px; }
909        table { width: 100%; border-collapse: collapse; font-size: 12px; }
910        th, td { border: 1px solid #d1d5db; padding: 6px 8px; text-align: left; }
911        th { background: #f3f4f6; }
912        tr:nth-child(even) td { background: #fafafa; }
913        @media print { body { padding: 0; } }
914      </style></head>
915      <body>
916        <h1>Applications Report</h1>
917        <div class="meta">Lean Synergy Solutions &middot; ${d.length} application(s) &middot; ${g}</div>
918        <table>
919          <thead><tr>
920            <th>Applicant Name</th><th>Job Number</th><th>Job Title</th>
921            <th>Date Applied</th><th>Recruiter</th><th>Sent to Crelate</th>
922          </tr></thead>
923          <tbody>${j}</tbody>
924        </table>
925        <script>window.onload = () => { window.print(); };<\/script>
926      </body></html>`,x=window.open("","_blank");if(!x){Ne.error("Please allow pop-ups to print the report.");return}x.document.write(b),x.document.close()},m=()=>{const g=["Applicant Name","Job Number","Job Title","Date Applied","Recruiter","Sent to Crelate"],j=d.map(w=>[`${w.first_name||""} ${w.last_name||""}`.trim(),w.job_number||"",w.job_title||"",w.created_date?new Date(w.created_date).toLocaleDateString():"",w.recruiter||"",p(w.crelate_status).text]),b=w=>`"${String(w).replace(/"/g,'""')}"`,x=[g,...j].map(w=>w.map(b).join(",")).join(`
927`),v=new Blob([x],{type:"text/csv;charset=utf-8;"}),N=URL.createObjectURL(v),S=document.createElement("a");S.href=N,S.download=`applications-report-${uh(Date.now())}.csv`,S.click(),URL.revokeObjectURL(N)};return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(xt,{children:[r.jsxs($n,{children:[r.jsx(zn,{children:"Reports"}),r.jsx(Rr,{children:"Generate an applications report for a date range."})]}),r.jsx(vt,{children:r.jsxs("div",{className:"flex flex-wrap items-end gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"From date"}),r.jsx(Se,{type:"date",value:n,max:i||t,onChange:g=>s(g.target.value)})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"To date"}),r.jsx(Se,{type:"date",value:i,min:n,max:t,onChange:g=>o(g.target.value)})]}),r.jsxs(xe,{onClick:h,className:"gap-2",children:[r.jsx(Kr,{className:"w-4 h-4"})," Applications Report"]})]})})]}),l&&r.jsx(xt,{children:r.jsxs(vt,{className:"p-0 overflow-x-auto",children:[r.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border",children:[r.jsxs("p",{className:"text-sm text-muted-foreground",children:[d.length," application",d.length===1?"":"s",n&&r.jsxs(r.Fragment,{children:[" from ",n]}),i&&r.jsxs(r.Fragment,{children:[" to ",i]})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(xe,{variant:"outline",size:"sm",onClick:f,disabled:d.length===0,className:"gap-2",children:[r.jsx(gd,{className:"w-4 h-4"})," Print"]}),r.jsxs(xe,{variant:"outline",size:"sm",onClick:m,disabled:d.length===0,className:"gap-2",children:[r.jsx(Yr,{className:"w-4 h-4"})," Export CSV"]})]})]}),d.length===0?r.jsxs("div",{className:"text-center py-12 text-muted-foreground",children:[r.jsx(Kr,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),"No applications in this date range."]}):r.jsxs(qs,{children:[r.jsx(Vs,{children:r.jsxs(Zt,{children:[r.jsx(Ue,{children:"Applicant Name"}),r.jsx(Ue,{children:"Job Number"}),r.jsx(Ue,{children:"Job Title"}),r.jsx(Ue,{children:"Date Applied"}),r.jsx(Ue,{children:"Recruiter"}),r.jsx(Ue,{children:"Sent to Crelate"})]})}),r.jsx($s,{children:d.map(g=>{const j=p(g.crelate_status);return r.jsxs(Zt,{children:[r.jsxs(Le,{className:"font-medium",children:[g.first_name," ",g.last_name]}),r.jsx(Le,{children:g.job_number||"-"}),r.jsx(Le,{children:g.job_title||r.jsx(Be,{variant:"secondary",children:"General"})}),r.jsx(Le,{children:g.created_date?new Date(g.created_date).toLocaleDateString():"-"}),r.jsx(Le,{children:g.recruiter||"-"}),r.jsx(Le,{children:r.jsx(Be,{className:j.className,variant:j.className?void 0:"outline",children:j.text})})]},g.id)})})]})]})})]})}const Yse={"veteran-seeking-employment":"Veteran Seeking Employment","company-hiring":"Company Hiring","seeking-employment":"Seeking Employment",employer:"Employer","job-seeker":"Job Seeker",other:"Other"};function jv({icon:e,title:t,count:n,children:s}){return r.jsxs(xt,{children:[r.jsx($n,{children:r.jsxs(zn,{className:"flex items-center gap-2 text-lg",children:[r.jsx(e,{className:"w-5 h-5"})," ",t,r.jsx(Be,{variant:"secondary",className:"ml-1",children:n})]})}),r.jsx(vt,{className:"p-0",children:s})]})}function Kse({archivedApplications:e,archivedContactForms:t,archivedPartnerRequests:n,onUnarchiveApplication:s,onUnarchiveC
927ontactForm:i,onUnarchivePartnerRequest:o,onViewApplication:l,onDownloadResume:c}){return r.jsxs("div",{className:"space-y-8",children:[r.jsxs("div",{children:[r.jsxs("h2",{className:"text-2xl font-bold text-foreground flex items-center gap-2",children:[r.jsx(Is,{className:"w-6 h-6"})," Archive"]}),r.jsx("p",{className:"text-muted-foreground mt-1",children:"Archived items are hidden from their main tabs. Use restore to move them back."})]}),r.jsx(jv,{icon:wn,title:"Applications",count:e.length,children:e.length===0?r.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No archived applications"}):r.jsx("div",{className:"overflow-x-auto",children:r.jsxs(qs,{children:[r.jsx(Vs,{children:r.jsxs(Zt,{children:[r.jsx(Ue,{children:"Name"}),r.jsx(Ue,{children:"Email"}),r.jsx(Ue,{children:"Type"}),r.jsx(Ue,{children:"Job Title"}),r.jsx(Ue,{children:"Applied"}),r.jsx(Ue,{children:"Actions"})]})}),r.jsx($s,{children:e.map(d=>r.jsxs(Zt,{children:[r.jsxs(Le,{className:"font-medium",children:[d.first_name," ",d.last_name]}),r.jsx(Le,{children:d.email}),r.jsx(Le,{children:d._type==="recruiter-partner"?r.jsx(Be,{className:"bg-[#0B1F33]",children:"1099 Partner"}):d.job_title?r.jsx(Be,{variant:"secondary",children:"Candidate"}):r.jsx(Be,{variant:"outline",children:"General"})}),r.jsx(Le,{children:d.job_title||"-"}),r.jsx(Le,{children:d.created_date?new Date(d.created_date).toLocaleDateString():"N/A"}),r.jsx(Le,{children:r.jsxs("div",{className:"flex gap-2",children:[l&&r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>l(d),children:r.jsx(Aa,{className:"w-4 h-4"})}),c&&d.resume_url&&r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>c(d),children:r.jsx(Yr,{className:"w-4 h-4"})}),r.jsxs(xe,{variant:"outline",size:"sm",onClick:()=>s(d),children:[r.jsx(mh,{className:"w-4 h-4"})," Restore"]})]})})]},d.id))})]})})}),r.jsx(jv,{icon:ko,title:"Contact Forms",count:t.length,children:t.length===0?r.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No archived contact forms"}):r.jsx("div",{className:"overflow-x-auto",children:r.jsxs(qs,{children:[r.jsx(Vs,{children:r.jsxs(Zt,{children:[r.jsx(Ue,{children:"Name"}),r.jsx(Ue,{children:"Email"}),r.jsx(Ue,{children:"Company"}),r.jsx(Ue,{children:"Reason"}),r.jsx(Ue,{children:"Type"}),r.jsx(Ue,{children:"Submitted"}),r.jsx(Ue,{children:"Actions"})]})}),r.jsx($s,{children:t.map(d=>r.jsxs(Zt,{children:[r.jsx(Le,{className:"font-medium",children:d.full_name}),r.jsx(Le,{children:d.email}),r.jsx(Le,{children:d.company||"-"}),r.jsx(Le,{children:d.user_type?r.jsx(Be,{variant:"outline",children:Yse[d.user_type]||d.user_type}):"-"}),r.jsx(Le,{children:d.form_type==="lets-talk"?r.jsx(Be,{className:"bg-[#0B1F33]",children:"Let's Talk"}):r.jsx(Be,{variant:"secondary",children:"Contact"})}),r.jsx(Le,{children:d.created_date?new Date(d.created_date).toLocaleDateString():"N/A"}),r.jsx(Le,{children:r.jsxs(xe,{variant:"outline",size:"sm",onClick:()=>i(d),children:[r.jsx(mh,{className:"w-4 h-4"})," Restore"]})})]},d.id))})]})})}),r.jsx(jv,{icon:ka,title:"Partnership Requests",count:n.length,children:n.length===0?r.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No archived partnership requests"}):r.jsx("div",{className:"overflow-x-auto",children:r.jsxs(qs,{children:[r.jsx(Vs,{children:r.jsxs(Zt,{children:[r.jsx(Ue,{children:"Name"}),r.jsx(Ue,{children:"Email"}),r.jsx(Ue,{children:"Phone"}),r.jsx(Ue,{children:"Company"}),r.jsx(Ue,{children:"Submitted"}),r.jsx(Ue,{children:"Actions"})]})}),r.jsx($s,{children:n.map(d=>r.jsxs(Zt,{children:[r.jsx(Le,{className:"font-medium",children:d.full_name}),r.jsx(Le,{children:d.email}),r.jsx(Le,{children:d.phone||"-"}),r.jsx(Le,{children:d.company||"-"}),r.jsx(Le,{children:d.created_date?new Date(d.created_date).toLocaleDateString():"N/A"}),r.jsx(Le,{children:r.jsxs(xe,{variant:"outline",size:"sm",onClick:()=>o(d),children:[r.jsx(mh,{className:"w-4 h-4"})," Restore"]})})]},d.id))})]})})})]})}function dT(){var Te;const{user:e,isLoadingAuth:t,navigateToLogin:n,logout:s}=jd(),i=(e==null?void 0:e.role)==="admin",[o,l]=E.useState(!1),[c,d]=E.useState(""),[h,p]=E.useState([]),[f,m]=E.useState(!1),[g,j]=E.useState(null),[b,x]=E.useState("applications"),[v,N]=E.useState(0),[S,w]=E.useState(!1),[k,O]=E.useState({title:"",job_number:"",location:"",description:"",link:""}),[C,A]=E.useState([]),[B,I]=E.useState([]),[L,D]=E.useState([]),[R,U]=E.useState([]),$=async()=>{m(!0);try{const ie=await ge.functions.invoke("getAdminApplications",{});p(ie.data.applications||[]),A(ie.data.testimonials||[]),I(ie.data.partnerRequests||[]),D(ie.data.contactForms||[]),U(ie.data.recruiterApplications||[])}finally{m(!1)}},Y=async()=>{var ie;try{const De=await ge.functions.invoke("getRecruiterJobs",{recruiterSlug:""});N(((ie=De.data.jobs)==null?void 0:ie.length)||0)}catch(De){console.error("Error fetching job count:",De)}};E.useEffect(()=>
927{i&&($(),Y())},[i]);const K=async()=>{l(!0);try{const ie=await ge.functions.invoke("syncCrelateJobs",{});Ne.success(`Synced ${ie.data.count} jobs from Crelate`),await Y()}catch(ie){Ne.error("Sync failed: "+ie.message)}finally{l(!1)}},Q=()=>{p([]),s()},q=async ie=>{if(!ie.resume_url){Ne.error("No resume attached");return}try{await _w(ie.resume_url)}catch(De){Ne.error("Could not open résumé: "+(De.message||"Unknown error"))}},F=ie=>{j(ie)},P=async ie=>{window.confirm(`Delete application from ${ie.first_name} ${ie.last_name}?`)&&(ie._type==="recruiter-partner"?(await ge.entities.RecruiterPartnerApplication.delete(ie.id),U(De=>De.filter(Ye=>Ye.id!==ie.id))):(await ge.entities.Application.delete(ie.id),p(De=>De.filter(Ye=>Ye.id!==ie.id))),Ne.success("Application deleted"))},V=async(ie,De=!0)=>{try{ie._type==="recruiter-partner"?(await ge.entities.RecruiterPartnerApplication.update(ie.id,{archived:De}),U(Ye=>Ye.map(He=>He.id===ie.id?{...He,archived:De}:He))):(await ge.entities.Application.update(ie.id,{archived:De}),p(Ye=>Ye.map(He=>He.id===ie.id?{...He,archived:De}:He))),Ne.success(De?"Application archived":"Application restored")}catch(Ye){Ne.error("Failed to update archive status: "+Ye.message)}},W=async ie=>{var De,Ye,He;if(ie._type!=="recruiter-partner"&&!(ie.crelate_status==="sent"&&!window.confirm("This application was already sent to Crelate. Send again?")))try{const ce=await ge.functions.invoke("sendApplicationToCrelate",{applicationId:ie.id,force:ie.crelate_status==="sent"});(De=ce.data)!=null&&De.success?(Ne.success((Ye=ce.data)!=null&&Ye.skipped?"Already in Crelate":"Sent to Crelate"),$()):Ne.error("Crelate send failed: "+(((He=ce.data)==null?void 0:He.error)||"Unknown error"))}catch(ce){Ne.error("Crelate send failed: "+ce.message)}},Z=Ws({mutationFn:async ie=>{await ge.entities.Job.create({...ie,status:"active",is_manual:!0,pub_date:new Date().toISOString().split("T")[0]})},onSuccess:()=>{Ne.success("Job created successfully"),O({title:"",job_number:"",location:"",description:"",link:""}),Y()},onError:ie=>{Ne.error("Failed to create job: "+ie.message)}}),X=ie=>{if(ie.preventDefault(),!k.title||!k.description){Ne.error("Title and description are required");return}Z.mutate(k)},H=R.map(ie=>{var De,Ye;return{...ie,_type:"recruiter-partner",first_name:((De=ie.full_name)==null?void 0:De.split(" ").slice(0,-1).join(" "))||ie.full_name,last_name:((Ye=ie.full_name)==null?void 0:Ye.split(" ").slice(-1).join(""))||"",job_title:"1099 Recruiting Partner",job_number:ie.experience_level||"",how_heard:ie.recruiting_background||"",recruiter:ie.city_state||""}}),G=[...h,...H],te=G.filter(ie=>!ie.archived),re=G.filter(ie=>ie.archived),ue=L.filter(ie=>ie.archived),ye=B.filter(ie=>ie.archived),be=te.filter(ie=>{var Ye,He,ce,he;return((Ye=ie.first_name)==null?void 0:Ye.toLowerCase().includes(c.toLowerCase()))||((He=ie.last_name)==null?void 0:He.toLowerCase().includes(c.toLowerCase()))||((ce=ie.email)==null?void 0:ce.toLowerCase().includes(c.toLowerCase()))||((he=ie.job_title)==null?void 0:he.toLowerCase().includes(c.toLowerCase()))});return t?r.jsx("div",{className:"min-h-screen flex items-center justify-center",children:r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin"})}):i?r.jsx("div",{className:"min-h-screen bg-background",children:r.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-8",children:[r.jsxs("div",{className:"flex items-center justify-between mb-8",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"LSS Site Management Dashboard"}),r.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage and review candidate submissions"})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsxs(Be,{variant:"outline",className:"text-sm",children:[be.length," Applications"]}),r.jsxs(Be,{variant:"outline",className:"text-sm",children:[v," Total Jobs"]}),r.jsxs(xe,{variant:"outline",onClick:K,disabled:o,className:"gap-2",children:[r.jsx(Ql,{className:`w-4 h-4 ${o?"animate-spin":""}`}),o?"Syncing...":"Sync Jobs"]}),r.jsxs(xe,{variant:"outline",onClick:Q,className:"gap-2",children:[r.jsx(Wb,{className:"w-4 h-4"})," Logout"]})]})]}),r.jsxs("div",{className:"flex gap-2 mb-6 border-b border-border",children:[r.jsxs("button",{onClick:()=>x("applications"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="applications"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(wn,{className:"w-4 h-4"})," Applications"]}),r.jsxs("button",{onClick:()=>x("jobs"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="jobs"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(Gr,{className:"w-4 h-4"})," Job List"]}),r.jsxs("button",{onClick:()=>x("import"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="import"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(yd,{className:"w-4 h-4"})," Import Assignments"]}),r.jsxs("button",{onClick:()=>x("recruiters"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="recruiters"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(wn,{className:"w-4 h-4"})," Assign Jobs"]}),r.jsxs("button",{onClick:()=>x("manual"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="manual"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(xs,{className:"w-4 h-4"})," Manual Job"]}),r.jsxs("button",{onClick:()=>x("team"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="team"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(wn,{className:"w-4 h-4"})," Team Members"]}),r.jsxs("button",{onClick:()=>x("testimonials"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="testimonials"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(qu,{className:"w-4 h-4"})," Testimonials",C.filter(ie=>ie.status==="pending").length>0&&r.jsx(Be,{className:"bg-amber-500 text-xs px-1.5 py-0",children:C.filter(ie=>ie.status==="pending").length})]}),r.jsxs("button",{onClick:()=>x("blog"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="blog"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(Kr,{className:"w-4 h-4"})," Blog Posts"]}),r.jsxs("button",{onClick:()=>x("contact-forms"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="contact-forms"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(ko,{className:"w-4 h-4"})," Contact Forms",L.filter(ie=>!ie.archived).length>0&&r.jsx(Be,{className:"bg-amber-500 text-xs px-1.5 py-0",children:L.filter(ie=>!ie.archived).length})]}),r.jsxs("button",{onClick:()=>x("partners"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="partners"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(ka,{className:"w-4 h-4"})," Partnership Requests",B.filter(ie=>!ie.archived).length>0&&r.jsx(Be,{className:"bg-amber-500 text-xs px-1.5 py-0",children:B.filter(ie=>!ie.archived).length})]}),r.jsxs("button",{onClick:()=>x("documents"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="documents"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(Kr,{className:"w-4 h-4"})," Documents"]}),r.jsxs("button",{onClick:()=>x("reports"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="reports"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(Kr,{className:"w-4 h-4"})," Reports"]}),r.jsxs("button",{onClick:()=>x("archive"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${b==="archive"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(Is,{className:"w-4 h-4"})," Archive",re.length+ue.length+ye.length>0&&r.jsx(Be,{className:"bg-muted-foreground text-xs px-1.5 py-0",children:re.length+ue.length+ye.length})]})]}),b==="contact-forms"&&r.jsx(Hse,{contactForms:L.filter(ie=>!ie.archived),setContactForms:D,loadingApps:f}),b==="partners"&&r.jsx(zse,{partnerRequests:B.filter(ie=>!ie.archived),setPartnerRequests:I,loadingApps:f}),b==="archive"&&r.jsx(Kse,{archivedApplications:re,archivedContactForms:ue,archivedPartnerRequests:ye,onUnarchiveApplication:ie=>
927V(ie,!1),onUnarchiveContactForm:async ie=>{try{await ge.entities.ContactSubmission.update(ie.id,{archived:!1}),D(De=>De.map(Ye=>Ye.id===ie.id?{...Ye,archived:!1}:Ye)),Ne.success("Contact form restored")}catch(De){Ne.error("Failed to restore: "+De.message)}},onUnarchivePartnerRequest:async ie=>{try{await ge.entities.ContactSubmission.update(ie.id,{archived:!1}),I(De=>De.map(Ye=>Ye.id===ie.id?{...Ye,archived:!1}:Ye)),Ne.success("Partnership request restored")}catch(De){Ne.error("Failed to restore: "+De.message)}},onViewApplication:F,onDownloadResume:q}),b==="documents"&&r.jsx(Wse,{}),b==="reports"&&r.jsx(Gse,{applications:h}),b==="team"&&r.jsx(hre,{}),b==="blog"&&r.jsx(Use,{}),b==="jobs"&&r.jsx(qQ,{}),b==="testimonials"&&r.jsx(qse,{testimonials:C,setTestimonials:A,loadingApps:f}),b==="import"&&r.jsx(zQ,{}),b==="recruiters"&&r.jsx(WQ,{}),b==="manual"&&r.jsxs(xt,{children:[r.jsxs($n,{children:[r.jsx(zn,{children:"Add Job Manually"}),r.jsx(Rr,{children:"Paste job information to create a new job posting"})]}),r.jsx(vt,{children:r.jsxs("form",{onSubmit:X,className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Job Title *"}),r.jsx(Se,{value:k.title,onChange:ie=>O({...k,title:ie.target.value}),placeholder:"e.g. Manufacturing Engineer",required:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Job Number"}),r.jsx(Se,{value:k.job_number,onChange:ie=>O({...k,job_number:ie.target.value}),placeholder:"e.g. JOB-12345"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Location"}),r.jsx(Se,{value:k.location,onChange:ie=>O({...k,location:ie.target.value}),placeholder:"e.g. Detroit, MI"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Job Description *"}),r.jsx(Yt,{value:k.description,onChange:ie=>O({...k,description:ie.target.value}),placeholder:"Paste the full job description here...",rows:12,required:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium mb-1",children:"Application Link (optional)"}),r.jsx(Se,{value:k.link,onChange:ie=>O({...k,link:ie.target.value}),placeholder:"https://..."})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsxs(xe,{type:"submit",className:"gap-2",children:[r.jsx(xs,{className:"w-4 h-4"})," Create Job"]}),r.jsx(xe,{type:"button",variant:"outline",onClick:()=>O({title:"",job_number:"",location:"",description:"",link:""}),children:"Clear Form"})]})]})})]}),b==="applications"&&r.jsxs(r.Fragment,{children:[r.jsx(xt,{className:"mb-6",children:r.jsx(vt,{className:"p-4",children:r.jsx("div",{className:"flex gap-3",children:r.jsxs("div",{className:"relative flex-1",children:[r.jsx(Ha,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),r.jsx(Se,{placeholder:"Search by name, email, or job title...",value:c,onChange:ie=>d(ie.target.value),className:"pl-10"})]})})})}),f?r.jsxs("div",{className:"text-center py-12",children:[r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading applications..."})]}):te.length===0?r.jsxs("div",{className:"text-center py-12",children:[r.jsx(Po,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"No active applications"})]}):r.jsx(xt,{children:r.jsx(vt,{className:"p-0 overflow-x-auto",children:r.jsxs(qs,{children:[r.jsx(Vs,{children:r.jsxs(Zt,{children:[r.jsx(Ue,{children:"Name"}),r.jsx(Ue,{children:"Email"}),r.jsx(Ue,{children:"Phone"}),r.jsx(Ue,{children:"Type"}),r.jsx(Ue,{children:"Job Title"}),r.jsx(Ue,{children:"Job #"}),r.jsx(Ue,{children:"How Heard"}),r.jsx(Ue,{children:"Recruiter"}),r.jsx(Ue,{children:"Applied"}),r.jsx(Ue,{children:"Accessed"}),r.jsx(Ue,{children:"Crelate"}),r.jsx(Ue,{children:"Actions"})]})}),r.jsx($s,{children:be.map(ie=>r.jsxs(Zt,{children:[r.jsxs(Le,{className:"font-medium",children:[ie.first_name," ",ie.last_name]}),r.jsx(Le,{children:ie.email}),r.jsx(Le,{children:ie.phone}),r.jsx(Le,{children:ie._type==="recruiter-partner"?r.jsx(Be,{className:"bg-[#0B1F33]",children:"1099 Partner"}):ie.job_title?r.jsx(Be,{variant:"secondary",children:"Candidate"}):r.jsx(Be,{variant:"outline",children:"General"})}),r.jsx(Le,{className:"font-medium",children:ie.job_title?r.jsx("span",{className:"text-foreground",children:ie.job_title}):r.jsx(Be,{variant:"secondary",children:"General Application"})}),r.jsx(Le,{children:ie.job_number||"-"}),r.jsx(Le,{children:ie.how_heard}),r.jsx(Le,{children:ie.recruiter||"-"}),r.jsx(Le,{children:ie.created_date?new Date(ie.created_date).toLocaleDateString():"N/A"}),r.jsx(Le,{children:ie.resume_accessed_at?r.jsxs("div",{className:"flex flex-col gap-1",children:[r.jsxs(Be,{className:"bg-green-600 text-white gap-1 w-fit",children:[r.jsx(Ta,{className:"w-3 h-3"})," Viewed"]}),r.jsx("span",{className:"text-xs text-muted-foreground",title:ie.resume_accessed_by||"",children:ie.resume_accessed_by||"Recruiter"}),r.jsx("span",{className:"text-xs text-muted-foreground",children:new Date(ie.resume_accessed_at).toLocaleDateString()})]}):r.jsxs(Be,{variant:"outline",className:"gap-1 w-fit",children:[r.jsx(yo,{className:"w-3 h-3"})," Not viewed"]})}),r.jsx(Le,{children:ie._type==="recruiter-partner"?r.jsx("span",{className:"text-xs text-muted-foreground",children:"—"}):ie.crelate_status==="sent"?r.jsxs("div",{className:"flex flex-col gap-1",children:[r.jsxs(Be,{className:"bg-green-600 text-white gap-1 w-fit",children:[r.jsx(vu,{className:"w-3 h-3"})," Sent"]}),r.jsx("span",{className:"text-xs text-muted-foreground",children:ie.crelate_sent_at?new Date(ie.crelate_sent_at).toLocaleDateString():""})]}):ie.crelate_status==="failed"?r.jsxs("div",{className:"flex flex-col gap-1",children:[r.jsxs(Be,{variant:"destructive",className:"gap-1 w-fit",children:[r.jsx(yo,{className:"w-3 h-3"})," Failed"]}),r.jsx("span",{className:"text-xs text-muted-foreground max-w-[160px] truncate",title:ie.crelate_error||"",children:ie.crelate_error||"Error"})]}):r.jsxs(Be,{variant:"outline",className:"gap-1 w-fit",children:[r.jsx(vu,{className:"w-3 h-3"})," Pending"]})}),r.jsx(Le,{children:r.jsxs("div",{className:"flex gap-2",children:[r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>F(ie),children:r.jsx(Aa,{className:"w-4 h-4"})}),r.jsx(td,{resumeUrl:ie.resume_url,size:"sm",variant:"outline",title:"View Résumé"}),ie._type!=="recruiter-partner"&&ie.crelate_status!=="sent"&&r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>W(ie),title:"Send to Crelate",children:r.jsx($g,{className:"w-4 h-4"})}),r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>V(ie,!0),title:"Archive",children:r.jsx(Is,{className:"w-4 h-4"})}),r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>P(ie),className:"text-destructive hover:text-destructive",children:r.jsx(ws,{className:"w-4 h-4"})})]})})]},ie.id))})]})})})]}),r.jsx(ki,{open:!!g,onOpenChange:()=>j(null),children:r.jsxs(Ys,{className:"max-w-2xl max-h-[90vh] flex flex-col p-0",children:[r.jsx(Ks,{className:"flex-shrink-0 px-6 py-4 pr-12 border-b",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(Js,{children:"Application Details"}),r.jsxs(xe,{variant:"outline",size:"sm",onClick:()=>FQ(g),children:[r.jsx(gd,{className:"w-4 h-4"})," Print"]})]})}),g&&r.jsxs("div",{className:"space-y-4 overflow-y-auto px-6 py-4 flex-1",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Full Name"}),r.jsxs("p",{className:"text-muted-foreground",children:[g.first_name," ",g.last_name]})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Email"}),r.jsx("a",{href:`mailto:${g.email}`,className:"text-primary hover:underline",children:g.email})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Phone"}),r.jsx("p",{className:"text-muted-foreground",children:g.phone})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Type"}),g._type==="recruiter-partner"?r.jsx(Be,{className:"bg-[#0B1F33]",children:"1099 Recruiting Partner"}):g.job_title?r.jsx(Be,{variant:"secondary",children:"Candidate Application"}):r.jsx(Be,{variant:"outline",children:"General Application"})]}),g._type==="recruiter-partner"?r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"City & State"}),r.jsx("p",{className:"text-muted-foreground",children:g.city_state||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"LinkedIn"}),g.linkedin_url?r.jsx("a",{href:g.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline text-sm break-all",children:g.linkedin_url}):r.jsx("p",{className:"text-muted-foreground",children:"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Experience Level"}),r.jsx("p",{className:"text-muted-foreground",children:g.experience_level||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Recruiting Backgroun
927d"}),r.jsx("p",{className:"text-muted-foreground",children:g.recruiting_background||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Industries"}),r.jsx("p",{className:"text-muted-foreground",children:((Te=g.industries)==null?void 0:Te.join(", "))||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Comfortable with 1099"}),r.jsx("p",{className:"text-muted-foreground",children:g.comfortable_1099||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Understands No Benefits"}),r.jsx("p",{className:"text-muted-foreground",children:g.understands_no_benefits||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Has Equipment"}),r.jsx("p",{className:"text-muted-foreground",children:g.has_equipment||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Willing to Use Free Tools"}),r.jsx("p",{className:"text-muted-foreground",children:g.willing_free_tools||"N/A"})]})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Job Title"}),g.job_title?r.jsx("p",{className:"text-foreground font-medium",children:g.job_title}):r.jsx(Be,{variant:"secondary",children:"General Application"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"How They Heard"}),r.jsx("p",{className:"text-muted-foreground",children:g.how_heard})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Recruiter"}),r.jsx("p",{className:"text-muted-foreground",children:g.recruiter||"Not specified"})]}),g.referred_by&&r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Referred By"}),r.jsx("p",{className:"text-muted-foreground",children:g.referred_by})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"18 or Older"}),r.jsx("p",{className:"text-muted-foreground",children:g.is_18_or_older||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Requires Visa Sponsorship"}),r.jsx("p",{className:"text-muted-foreground",children:g.requires_visa_sponsorship||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Available Start Date"}),r.jsx("p",{className:"text-muted-foreground",children:g.available_start_date||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Preferred Contact Method"}),r.jsx("p",{className:"text-muted-foreground",children:g.preferred_contact_method||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Best Time to Contact"}),r.jsx("p",{className:"text-muted-foreground",children:g.best_contact_time||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Referral Details"}),r.jsx("p",{className:"text-muted-foreground",children:g.referral_details||"N/A"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"SMS Consent"}),r.jsx("p",{className:"text-muted-foreground",children:g.sms_consent?"Yes":"No"})]})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:"Applied On"}),r.jsx("p",{className:"text-muted-foreground",children:g.created_date?new Date(g.created_date).toLocaleString():"N/A"})]}),r.jsxs("div",{className:"col-span-2",children:[r.jsx("p",{className:"text-sm font-medium",children:"Crelate Transmission"}),g._type==="recruiter-partner"?r.jsx("p",{className:"text-muted-foreground",children:"Not applicable (partner application)"}):g.crelate_status==="sent"?r.jsxs("div",{className:"flex flex-col gap-1",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs(Be,{className:"bg-green-600 text-white gap-1",children:[r.jsx(vu,{className:"w-3 h-3"})," Sent"]}),r.jsx("span",{className:"text-sm text-muted-foreground",children:g.crelate_sent_at?new Date(g.crelate_sent_at).toLocaleString():""})]}),g.crelate_contact_id&&r.jsxs("span",{className:"text-xs text-muted-foreground",children:["Contact ID: ",g.crelate_contact_id]})]}):g.crelate_status==="failed"?r.jsxs("div",{className:"flex flex-col gap-1",children:[r.jsxs(Be,{variant:"destructive",className:"gap-1 w-fit",children:[r.jsx(yo,{className:"w-3 h-3"})," Failed"]}),r.jsx("span",{className:"text-sm text-muted-foreground",children:g.crelate_error||"Unknown error"}),r.jsxs(xe,{variant:"outline",size:"sm",className:"w-fit mt-1",onClick:()=>W(g),children:[r.jsx($g,{className:"w-4 h-4"})," Retry Send"]})]}):r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs(Be,{variant:"outline",className:"gap-1",children:[r.jsx(vu,{className:"w-3 h-3"})," Not sent yet"]}),r.jsxs(xe,{variant:"outline",size:"sm",onClick:()=>W(g),children:[r.jsx($g,{className:"w-4 h-4"})," Send Now"]})]})]}),r.jsxs("div",{className:"col-span-2",children:[r.jsx("p",{className:"text-sm font-medium",children:"Recruiter Access"}),g.resume_accessed_at?r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs(Be,{className:"bg-green-600 text-white gap-1",children:[r.jsx(Ta,{className:"w-3 h-3"})," Viewed"]}),r.jsxs("span",{className:"text-sm text-muted-foreground",children:["by ",g.resume_accessed_by||"a recruiter"," on"," ",new Date(g.resume_accessed_at).toLocaleStr
927ing()]})]}):r.jsxs(Be,{variant:"outline",className:"gap-1",children:[r.jsx(yo,{className:"w-3 h-3"})," Not yet viewed"]})]})]}),g._type==="recruiter-partner"?r.jsxs(r.Fragment,{children:[g.recruiting_experience_description&&r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium mb-2",children:"Recruiting Experience Description"}),r.jsx("div",{className:"bg-muted p-4 rounded-lg",children:r.jsx("p",{className:"text-muted-foreground whitespace-pre-wrap",children:g.recruiting_experience_description})})]}),g.why_interested&&r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium mb-2",children:"Why Interested"}),r.jsx("div",{className:"bg-muted p-4 rounded-lg",children:r.jsx("p",{className:"text-muted-foreground whitespace-pre-wrap",children:g.why_interested})})]})]}):g.message&&r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium mb-2",children:"Message"}),r.jsx("div",{className:"bg-muted p-4 rounded-lg",children:r.jsx("p",{className:"text-muted-foreground whitespace-pre-wrap",children:g.message})})]}),g.resume_url&&r.jsx("div",{children:r.jsx(td,{resumeUrl:g.resume_url,showLabel:!0,label:"Download Resume"})})]})]})})]})}):r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:r.jsxs(xt,{className:"max-w-md w-full",children:[r.jsxs($n,{className:"text-center",children:[r.jsx(ac,{className:"w-12 h-12 text-primary mx-auto mb-4"}),r.jsx(zn,{className:"text-2xl",children:"Admin Access Required"}),r.jsx(Rr,{children:e?"Your account does not have admin privileges.":"Please log in with an admin account to access this dashboard."})]}),r.jsx(vt,{children:r.jsx(xe,{className:"w-full",onClick:()=>n(),children:"Log In"})})]})})}const Jse="https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80",Qse=[{icon:gm,label:"SBA VetCert SDVOSB"},{icon:za,label:"Veteran-Owned"},{icon:mM,label:"SAM Registered"},{icon:$a,label:"Nationwide Recruiting Network"}];function Xse(){const e=()=>{var n;(n=document.getElementById("govcon-contact"))==null||n.scrollIntoView({behavior:"smooth"})},t=()=>{ge.analytics.track({eventName:"capability_statement_download",properties:{source:"govcon_hero"}})};return r.jsxs("section",{className:"relative min-h-[80vh] flex items-center justify-center overflow-hidden",children:[r.jsx("div",{style:{backgroundImage:`url(${Jse})`,backgroundSize:"cover",backgroundPosition:"center"},className:"absolute inset-0"}),r.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(135deg, rgba(37,57,90,0.92) 0%, rgba(37,57,90,0.78) 100%)"}}),r.jsxs("div",{className:"relative z-10 text-center px-6 py-24 max-w-5xl mx-auto",children:[r.jsxs(on,{children:[r.jsx("p",{className:"text-sm md:text-base font-bold uppercase tracking-widest mb-4",style:{color:"#fea71d"},children:"Service-Disabled Veteran-Owned Small Business"}),r.jsx("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight leading-tight text-white",children:"Mission-Critical Workforce Solutions for Federal Agencies and Prime Contractors"})]}),r.jsx(et,{delay:.2,children:r.jsx("p",{className:"mt-6 text-base md:text-lg leading-relaxed max-w-3xl mx-auto",style:{color:"#d0d0d0"},children:"Lean Synergy Solutions is proudly certified through the SBA VetCert Program as a Service-Disabled Veteran-Owned Small Business (SDVOSB), delivering workforce solutions across Federal & Defense, Critical Infrastructure, Manufacturing, Healthcare Infrastructure, and a dedicated Veteran & Military-Affiliated talent network nationwide."})}),r.jsx(et,{delay:.35,children:r.jsx("div",{className:"mt-8 flex flex-wrap justify-center gap-3",children:Qse.map(n=>r.jsxs("span",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full text-xs md:text-sm font-semibold text-white",style:{border:"1px solid rgba(254,167,29,0.5)",backgroundColor:"rgba(254,167,29,0.1)"},children:[r.jsx(n.icon,{className:"w-4 h-4",style:{color:"#fea71d"}}),n.label]},n.label))})}),r.jsx(et,{delay:.45,children:r.jsxs("div",{className:"mt-8 flex flex-wrap justify-center gap-8 text-sm",children:[r.jsxs("div",{className:"text-white",children:[r.jsx("span",{className:"font-bold uppercase tracking-wide",style:{color:"#fea71d"},children:"UEI:"})," ",r.jsx("span",{style:{color:"#ababab"},children:"G1FAEU289UE3"})]}),r.jsxs("div",{className:"text-white",children:[r.jsx("span",{className:"font-bold uppercase tracking-wide",style:{color:"#fea71d"},children:"CAGE:"})," ",r.jsx("span",{style:{color:"#ababab"},children:"15J00"})]})]})}),r.jsx(et,{delay:.55,children:r.jsxs("div",{className:"mt-10 flex flex-col sm:flex-row gap-4 justify-center",children:[r.jsx("button",{onClick:e,className:"px-8 py-4 rounded font-bold uppercase tracking-wider text-sm shadow-lg transition-all hover:shadow-xl",style:{backgroundColor:"#fea71d",color:"#25395a"},children:r.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsx($T,{className:"w-4 h-4"})," Schedule a Capability Discussion"]})}),r.jsxs(Me,{to:"/capability-statement",onClick:t,className:"px-8 py-4 rounded font-bold uppercase tracking-wider text-sm shadow-lg transition-all hover:shadow-xl inline-flex items-center justify-center gap-2 text-white",style:{border:"2px s
927olid #fea71d",backgroundColor:"transparent"},children:[r.jsx(Yr,{className:"w-4 h-4"})," Download Capability Statement"]})]})})]})]})}const Zse=[{icon:ka,title:"Federal Workforce Expertise",desc:"Deep experience recruiting for advanced manufacturing, aerospace & aviation, government & defense, critical infrastructure & data centers, and industrial & engineering organizations."},{icon:Si,title:"Veteran-Led Leadership",desc:"Service-disabled veteran ownership bringing mission-driven discipline, accountability, and a commitment to federal contracting excellence."},{icon:$a,title:"Nationwide Recruiting Reach",desc:"With offices across the United States, we provide coverage in nearly every U.S. time zone, allowing us to effectively support clients and candidates nationwide."},{icon:WT,title:"Responsive Recruiting Support",desc:"Rapid workforce deployment and surge staffing capabilities, ensuring mission-critical positions are filled on schedule."}],eie=["SBA VetCert-certified SDVOSB","Supplier diversity objectives","Veteran leadership","Technical recruiting expertise","Rapid workforce deployment","Mission-critical hiring support"];function tie(){return r.jsx("section",{className:"py-20 px-6 bg-white",children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsx(on,{className:"text-center mb-4",children:r.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold",style:{color:"#25395a"},children:"Why Agencies and Prime Contractors Partner with Lean Synergy Solutions"})}),r.jsx(et,{delay:.15,children:r.jsx("p",{className:"text-center text-base md:text-lg max-w-3xl mx-auto mb-6",style:{color:"#666"},children:"As an SBA VetCert-certified SDVOSB, Lean Synergy Solutions helps federal agencies and prime contractors meet supplier diversity goals while accessing top-tier, mission-ready talent."})}),r.jsx(et,{delay:.25,children:r.jsx("div",{className:"flex flex-wrap justify-center gap-3 mb-12 max-w-3xl mx-auto",children:eie.map(e=>r.jsx("span",{className:"px-4 py-1.5 rounded-full text-xs font-semibold",style:{backgroundColor:"#f0f0f0",color:"#25395a"},children:e},e))})}),r.jsx(hr,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:Zse.map(e=>r.jsx(mr,{children:r.jsxs("div",{className:"rounded-xl p-6 border h-full text-center transition-all hover:shadow-lg",style:{backgroundColor:"#fafafa",borderColor:"#e0e0e0"},children:[r.jsx("div",{className:"w-14 h-14 rounded-full mx-auto mb-4 flex items-center justify-center",style:{backgroundColor:"rgba(37,57,90,0.1)"},children:r.jsx(e.icon,{className:"w-7 h-7",style:{color:"#25395a"}})}),r.jsx("h3",{className:"font-bold text-lg mb-2",style:{color:"#25395a"},children:e.title}),r.jsx("p",{className:"text-sm leading-relaxed",style:{color:"#666"},children:e.desc})]})},e.title))})]})})}const nie=[{icon:I5,title:"Federal Facilities Operations & Maintenance Staffing"},{icon:GT,title:"Engineering Recruitment"},{icon:JT,title:"Construction Workforce Solutions"},{icon:c6,title:"Industrial Automation & Controls Recruiting"},{icon:pd,title:"Healthcare Facility Operations Staffing"},{icon:Oa,title:"Power Generation Staffing"},{icon:rA,title:"Skilled Trades Recruitment"},{icon:Gr,title:"Project & Program Management Recruiting"},{icon:Si,title:"Defense Industry Talent Acquisition"},{icon:za,title:"Veteran Talent Recruitment"},{icon:wn,title:"Military Spouse Recruitment"},{icon:Cv,title:"Direct Hire Workforce Solutions"}];function rie(){return r.jsx("section",{className:"py-20 px-6",style:{backgroundColor:"#f5f5f5"},children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsxs(on,{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold",style:{color:"#25395a"},children:"Core Capabilities"}),r.jsx("div",{className:"w-20 h-1 mx-auto mt-4 rounded-full",style:{backgroundColor:"#fea71d"}})]}),r.jsx(hr,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:nie.map(e=>r.jsx(mr,{children:r.jsxs("div",{className:"bg-white rounded-lg p-5 border border-gray-200 hover:shadow-md transition-all h-full flex items-start gap-4",children:[r.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-lg flex items-center justify-center",style:{backgroundColor:"rgba(254,167,29,0.12)"},children:r.jsx(e.icon,{className:"w-5 h-5",style:{color:"#fea71d"}})}),r.jsx("h3",{className:"text-sm font-bold leading-snug pt-1",style:{color:"#25395a"},children:e.title})]})}
927,e.title))})]})})}const sie=[{icon:Si,title:"Federal & Defense"},{icon:eA,title:"Critical Infrastructure"},{icon:Hb,title:"Manufacturing"},{icon:pd,title:"Healthcare Infrastructure"},{icon:za,title:"Veteran & Military-Affiliated Talent"}];function iie(){return r.jsx("section",{className:"py-20 px-6 bg-white",children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsxs(on,{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold",style:{color:"#25395a"},children:"Industries Supported"}),r.jsx("div",{className:"w-20 h-1 mx-auto mt-4 rounded-full",style:{backgroundColor:"#fea71d"}})]}),r.jsx(hr,{className:"grid grid-cols-2 md:grid-cols-3 gap-6 max-w-4xl mx-auto",children:sie.map(e=>r.jsx(mr,{children:r.jsxs("div",{className:"rounded-lg p-6 text-center border-2 transition-all hover:shadow-lg h-full flex flex-col items-center justify-center",style:{borderColor:"#e0e0e0",backgroundColor:"#fafafa"},onMouseEnter:t=>{t.currentTarget.style.borderColor="#fea71d",t.currentTarget.style.backgroundColor="#fff"},onMouseLeave:t=>{t.currentTarget.style.borderColor="#e0e0e0",t.currentTarget.style.backgroundColor="#fafafa"},children:[r.jsx(e.icon,{className:"w-8 h-8 mb-3",style:{color:"#25395a"}}),r.jsx("h3",{className:"text-xs md:text-sm font-bold leading-snug",style:{color:"#25395a"},children:e.title})]})},e.title))})]})})}function oie({end:e,suffix:t="",label:n}){const s=E.useRef(null),i=IW(s,{once:!0,margin:"-50px"}),[o,l]=E.useState(0);return E.useEffect(()=>{if(!i)return;const c=2e3,d=performance.now(),h=p=>{const f=p-d,m=Math.min(f/c,1),g=1-Math.pow(1-m,3);l(Math.round(e*g)),m<1&&requestAnimationFrame(h)};requestAnimationFrame(h)},[i,e]),r.jsxs("div",{ref:s,className:"text-center",children:[r.jsxs("div",{className:"text-4xl md:text-5xl font-extrabold",style:{color:"#fea71d"},children:[o,t]}),r.jsx("div",{className:"text-sm mt-2 uppercase tracking-wide",style:{color:"#ababab"},children:n})]})}const fT=["SBA VetCert SDVOSB","Veteran-Owned Leadership","Mission-Critical Industry Focus","Nationwide Candidate Network","Technical Recruiting Expertise","Flexible Partnership Models","Prime Contractor Support","Rapid Response Hiring"],aie=[{end:50,suffix:"",label:"States Covered"},{end:1e3,suffix:"+",label:"Professionals Placed"},{end:5,suffix:"",label:"Core Industries Served"},{end:100,suffix:"%",label:"Veteran-Owned"}];function lie(){return r.jsx("section",{className:"py-20 px-6",style:{backgroundColor:"#25395a"},children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsxs(on,{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-white",children:"The Lean Synergy Advantage"}),r.jsx("div",{className:"w-20 h-1 mx-auto mt-4 rounded-full",style:{backgroundColor:"#fea71d"}})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 max-w-4xl mx-auto mb-16",children:[r.jsx(hr,{className:"space-y-3",children:fT.slice(0,4).map(e=>r.jsx(mr,{children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Uu,{className:"w-5 h-5 flex-shrink-0",style:{color:"#fea71d"}}),r.jsx("span",{className:"text-sm md:text-base text-white font-medium",children:e})]})},e))}),r.jsx(hr,{className:"space-y-3",children:fT.slice(4).map(e=>r.jsx(mr,{children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Uu,{className:"w-5 h-5 flex-shrink-0",style:{color:"#fea71d"}}),r.jsx("span",{className:"text-sm md:text-base text-white font-medium",children:e})]})},e))})]}),r.jsxs(et,{delay:.2,children:[r.jsx("p",{className:"text-center text-base md:text-lg max-w-3xl mx-auto mb-12",style:{color:"#d0d0d0"},children:"With offices across the United States, we provide coverage in nearly every U.S. time zone, allowing us to effectively support clients and candidates nationwide."}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 pt-8",style:{borderTop:"1px solid rgba(255,255,255,0.15)"},children:aie.map(e=>r.jsx(oie,{end:e.end,suffix:e.suffix,label:e.label},e.label))})]})]})})}const cie=[{icon:ka,title:"Facilities Managers"},{icon:fM,title:"HVAC/R Technicians"},{icon:Oa,title:"Power Generation Technicians"},{icon:a6,title:"Controls Engineers"},{icon:GT,title:"Building Automation Specialists"},{icon:JT,title:"Construction Superintendents"},{icon:Gr,title:"Project Managers"},{icon:rA,title:"Industrial Maintenance Technicians"},{icon:wn,title:"Manufacturing Leaders"},{icon:kv,title:"Aerospace Engineers"},{icon:pd,title:"Healthcare Facility Operations Personnel"},{icon:HT,title:"Program Managers"}];function uie(){return r.jsx("section",{className:"py-20 px-6",style:{backgroundColor:"#f5f5f5"},children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsxs(on,{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold",style:{color:"#25395a"},children:"Representative Talent Solutions"}),r.jsx("div",{className:"w-20 h-1 mx-auto mt-4 rounded-full",style:{backgroundColor:"#fea71d"}})]}),r.jsx(hr,{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:cie.map(e=>r.jsx(mr,{children:r.jsxs("div",{className:"bg-white rounded-lg p-5 border border-gray-200 hover:shadow-md transition-all h-full flex flex-col items-center text-center",children:[r.jsx("div",{className:"w-12 h-12 rounded-full mb-3 flex items-center justify-center",style:{backgroundColor:"rgba(37,57,90,0.08)"},children:r.jsx(e.icon,{className:"w-6 h-6",style:{color:"#25395a"}})}),r.jsx("h3",{className:"text-sm font-bold leading-snug",style:{color:"#25395a"},children:e.title})]})}
927,e.title))})]})})}const die=["Prime Contractors","Federal Integrators","Large Business Partners","Government Contractors","Subcontracting Teams"],fie=["Teaming opportunities","Proposal support","Workforce planning","Surge staffing","SDVOSB participation strategies","Recruiting support for contract awards"];function hie(){return r.jsx("section",{className:"py-20 px-6 bg-white",children:r.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{children:[r.jsxs(on,{children:[r.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full mb-4",style:{backgroundColor:"rgba(254,167,29,0.12)"},children:[r.jsx(KT,{className:"w-4 h-4",style:{color:"#fea71d"}}),r.jsx("span",{className:"text-xs font-bold uppercase tracking-wider",style:{color:"#fea71d"},children:"Partnership"})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold",style:{color:"#25395a"},children:"Partner With Lean Synergy Solutions"})]}),r.jsx(et,{delay:.15,children:r.jsx("p",{className:"mt-4 text-base leading-relaxed",style:{color:"#666"},children:"We welcome teaming and subcontracting partnerships with prime contractors, federal integrators, and large business partners seeking a reliable SDVOSB workforce solutions provider. From proposal support to surge staffing, we help you meet SDVOSB participation goals and deliver on contract requirements."})}),r.jsx(et,{delay:.25,children:r.jsx("div",{className:"mt-6 flex flex-wrap gap-2",children:die.map(e=>r.jsx("span",{className:"px-3 py-1.5 rounded text-xs font-semibold",style:{backgroundColor:"#25395a",color:"#fff"},children:e},e))})})]}),r.jsx(et,{delay:.2,children:r.jsxs("div",{className:"rounded-xl p-8",style:{backgroundColor:"#fafafa",border:"1px solid #e0e0e0"},children:[r.jsx("h3",{className:"font-bold text-lg mb-4",style:{color:"#25395a"},children:"What We Support"}),r.jsx("ul",{className:"space-y-3",children:fie.map(e=>r.jsxs("li",{className:"flex items-center gap-3",children:[r.jsx(Al,{className:"w-4 h-4 flex-shrink-0",style:{color:"#fea71d"}}),r.jsx("span",{className:"text-sm font-medium",style:{color:"#333"},children:e})]},e))}),r.jsx("button",{onClick:()=>{var e;return(e=document.getElementById("govcon-contact"))==null?void 0:e.scrollIntoView({behavior:"smooth"})},className:"mt-6 w-full px-6 py-3 rounded font-bold uppercase tracking-wide text-sm transition-all hover:shadow-lg",style:{backgroundColor:"#fea71d",color:"#25395a"},children:"Schedule a Capability Discussion"})]})})]})})}function mie(){const e=()=>{ge.analytics.track({eventName:"capability_statement_download",properties:{source:"govcon_callout"}})};return r.jsx("section",{className:"py-20 px-6",style:{background:"linear-gradient(135deg, #25395a 0%, #1a2b42 100%)"},children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx(et,{children:r.jsx("div",{className:"w-16 h-16 rounded-full mx-auto mb-6 flex items-center justify-center",style:{backgroundColor:"rgba(254,167,29,0.15)"},children:r.jsx(Kr,{className:"w-8 h-8",style:{color:"#fea71d"}})})}),r.jsx(on,{children:r.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold text-white",children:"Download Our Capability Statement"})}),r.jsx(et,{delay:.15,children:r.jsx("p",{className:"mt-4 text-base md:text-lg max-w-2xl mx-auto",style:{color:"#ababab"},children:"Access our full capability statement detailing our SDVOSB certifications, core capabilities, industries served, and partnership models for federal agencies and prime contractors."})}),r.jsx(et,{delay:.3,children:r.jsxs(Me,{to:"/capability-statement",onClick:e,className:"mt-8 inline-flex items-center gap-2 px-10 py-4 rounded font-bold uppercase tracking-wider text-sm shadow-lg transition-all hover:shadow-xl",style:{backgroundColor:"#fea71d",color:"#25395a"},children:[r.jsx(Yr,{className:"w-5 h-5"})," Download Capability Statement"]})})]})})}const pie=["Federal Agency","Prime Contractor","Subcontractor","Teaming Opportunity","Staffing Requirement","Other"];function gie(){const[e,t]=E.useState(!1),[n,s]=E.useState(null),{register:i,handleSubmit:o,formState:{errors:l}}=Mo(),c=Ws({mutationFn:async d=>{const h=d.name,p=`Partner Type: ${d.partner_type}
928Agency: ${d.agency||"N/A"}
929
930Project Description:
931${d.project_description||"N/A"}`;await ge.entities.ContactSubmission.create({full_name:h,email:d.email,phone:d.phone,company:d.company,message:p,form_type:"govcon",user_type:"employer",recruiter_name:"Monte"}),await ge.integrations.Core.SendEmail({to:"[email protected]",subject:`GovCon Inquiry — ${h} (${d.partner_type})`,body:`Name: ${h}
932Email: ${d.email}
933Phone: ${d.phone||"N/A"}
934Company: ${d.company||"N/A"}
935Agency: ${d.agency||"N/A"}
936Partner Type: ${d.partner_type}
937
938Project Description:
939${d.project_description||"N/A"}`}),ge.analytics.track({eventName:"govcon_contact_submit",properties:{partner_type:d.partner_type}})},onSuccess:()=>{var d;s(null),t(!0),(d=document.getElementById("govcon-contact"))==null||d.scrollIntoView({behavior:"smooth"})},onError:d=>{s((d==null?void 0:d.message)||"Something went wrong. Please try again or contact us directly.")}});return r.jsx("section",{id:"govcon-contact",className:"py-20 px-6 bg-white scroll-mt-20",children:r.jsxs("div",{className:"max-w-2xl mx-auto",children:[r.jsxs(on,{className:"text-center mb-4",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold",style:{color:"#25395a"},children:"Let's Discuss Your Workforce Requirements"}),r.jsx("div",{className:"w-20 h-1 mx-auto mt-4 rounded-full",style:{backgroundColor:"#fea71d"}})]}),r.jsx(et,{delay:.15,children:r.jsx("p",{className:"text-center text-base mb-8",style:{color:"#666"},children:"Tell us about your agency, contract, or project needs. We'll respond promptly to discuss how Lean Synergy Solutions can support your mission."})}),e?r.jsx(et,{children:r.jsxs("div",{className:"rounded-xl p-10 text-center",style:{backgroundColor:"#f5f5f5",border:"1px solid #e0e0e0"},children:[r.jsx("h3",{className:"text-2xl font-extrabold mb-2",style:{color:"#25395a"},children:"Thank You!"}),r.jsx("p",{style:{color:"#666"},children:"We've received your inquiry. Someone from the Lean Synergy Solutions Team will be in touch with you shortly."})]})}):r.jsx(et,{delay:.2,children:r.jsxs("form",{onSubmit:o(d=>c.mutate(d)),className:"space-y-4 rounded-xl p-8 shadow-md",style:{backgroundColor:"#fafafa",border:"1px solid #e0e0e0"},children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(Se,{placeholder:"Name *",...i("name",{required:!0}),className:"bg-white border-gray-300"}),l.name&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsx(Se,{placeholder:"Company",...i("company"),className:"bg-white border-gray-300"})]}),r.jsx(Se,{placeholder:"Agency",...i("agency"),className:"bg-white border-gray-300"}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(Se,{type:"email",placeholder:"Email *",...i("email",{required:!0}),className:"bg-white border-gray-300"}),l.email&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsx(Se,{placeholder:"Phone",...i("phone"),className:"bg-white border-gray-300"})]}),r.jsxs("div",{children:[r.jsxs("select",{...i("partner_type",{required:!0}),className:"w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm text-gray-700 focus:outline-none focus:ring-2 focus:ring-amber-400",children:[r.jsx("option",{value:"",children:"Select Partnership Type *"}),pie.map(d=>r.jsx("option",{value:d,children:d},d))]}),l.partner_type&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{children:[r.jsx(Yt,{placeholder:"Project Description *",rows:4,...i("project_description",{required:!0}),className:"bg-white border-gray-300"}),l.project_description&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx("input",{type:"checkbox",id:"govcon-agree",...i("agree",{required:!0}),className:"mt-1 accent-amber-500"}),r.jsxs("label",{htmlFor:"govcon-agree",className:"text-xs text-gray-600 leading-snug",children:["I agree to the ",r.jsx(Me,{to:"/terms-and-conditions",className:"underline hover:text-amber-500",children:"Terms & Conditions"})," and ",r.jsx(Me,{to:"/privacy-policy",className:"underline hover:text-amber-500",children:"Privacy Policy"})," *"]})]}),l.agree&&r.jsx("p",{className:"text-red-500 text-xs -mt-2",children:"You must agree before submitting."}),n&&r.jsx("p",{className:"text-red-600 text-sm text-center bg-red-50 border border-red-200 rounded-md p-3",children:n}),r.jsx("div",{className:"flex justify-center",children:r.jsx(xe,{type:"submit",className:"font-bold uppercase tracking-wide px-12",style:{backgroundColor:"#fea71d",color:"#25395a"},disabled:c.isPending,children:c.isPending?"Submitting...":"Request Information"})})]})})]})})}
939function yie(){return r.jsx("section",{className:"py-12 px-6",style:{backgroundColor:"#1a2b42"},children:r.jsxs("div",{className:"max-w-5xl mx-auto text-center",children:[r.jsxs("div",{className:"flex items-center justify-center gap-2 mb-3",children:[r.jsx(gm,{className:"w-5 h-5",style:{color:"#fea71d"}}),r.jsx("span",{className:"text-sm font-bold uppercase tracking-wider text-white",children:"Lean Synergy Solutions"})]}),r.jsx("p",{className:"text-xs mb-2",style:{color:"#ababab"},children:"SBA VetCert Service-Disabled Veteran-Owned Small Business (SDVOSB)"}),r.jsxs("div",{className:"flex flex-wrap justify-center gap-6 text-xs mb-6",style:{color:"#ababab"},children:[r.jsx("span",{children:"UEI: G1FAEU289UE3"}),r.jsx("span",{children:"CAGE: 15J00"}),r.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-1 hover:text-white transition-colors",children:[r.jsx(ko,{className:"w-3 h-3"})," [email protected]"]}),r.jsx("a",{href:"https://www.linkedin.com/company/leansynergysolutions/",target:"_blank",rel:"noopener noreferrer",className:"hover:text-white transition-colors",children:"LinkedIn"}),r.jsx(Me,{to:"/privacy-policy",className:"hover:text-white transition-colors",children:"Privacy Policy"})]}),r.jsx("p",{className:"text-sm font-semibold text-white",children:"Connecting Mission-Critical Organizations with Exceptional Talent."})]})})}function hT(){return E.useEffect(()=>{document.title="Government Contracting & SDVOSB | Lean Synergy Solutions";let e=document.querySelector('meta[name="description"]');e||(e=document.createElement("meta"),e.name="description",document.head.appendChild(e)),e.setAttribute("content","SBA VetCert-certified SDVOSB providing mission-critical workforce solutions for federal agencies, prime contractors, and defense contractors nationwide.")},[]),r.jsxs("div",{children:[r.jsx(Xse,{}),r.jsx(tie,{}),r.jsx(rie,{}),r.jsx(iie,{}),r.jsx(lie,{}),r.jsx(uie,{}),r.jsx(hie,{}),r.jsx(mie,{}),r.jsx(gie,{}),r.jsx(yie,{})]})}function mT(){const[e,t]=E.useState(!1),{register:n,handleSubmit:s,formState:{errors:i}}=Mo(),o=Ws({mutationFn:async l=>{const c=`${l.first_name} ${l.last_name}`;await ge.entities.ContactSubmission.create({full_name:c,email:l.email,phone:l.phone,company:l.company,message:l.message,form_type:"partner"});try{await ge.integrations.Core.SendEmail({to:"[email protected]",subject:`New Partner With Us Submission from ${c}`,body:`Name: ${c}
940Email: ${l.email}
941Phone: ${l.phone}
942Company: ${l.company}
943How Heard: ${l.how_heard||"N/A"}
944Message: ${l.message||"N/A"}`})}catch(d){console.error("Email notification failed:",d)}},onSuccess:()=>{window.scrollTo({top:0,behavior:"smooth"}),t(!0)},onError:l=>{console.error("Partner form error:",l),alert("There was an issue submitting your form. Please try again or email us directly at [email protected].")}});return e?r.jsxs("div",{className:"max-w-2xl mx-auto px-6 py-24 text-center",children:[r.jsx("h2",{className:"text-3xl font-extrabold text-foreground mb-3",children:"Thank You!"}),r.jsx("p",{className:"text-muted-foreground text-lg",children:"Someone from the Lean Synergy Solutions Team will be in touch with you shortly to review your submission."})]}):r.jsx("div",{children:r.jsx("section",{className:"max-w-4xl mx-auto px-6 py-16",children:r.jsxs("div",{className:"bg-[#F5F5F5] rounded-xl shadow-md p-8",children:[r.jsxs("div",{className:"mb-6",children:[r.jsx("h1",{className:"text-2xl font-extrabold text-foreground mb-3",children:"Partner With Us"}),r.jsx("p",{className:"text-sm text-gray-600 leading-relaxed",children:"Please complete this form to share your information and tell us more about how you'd like to work with us. Our team will review your submission and follow up if there is a potential partnership fit."})]}),r.jsxs("form",{onSubmit:s(l=>o.mutate(l)),className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(Se,{placeholder:"First Name *",...n("first_name",{required:!0}),className:"bg-white border-gray-300"}),i.first_name&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{children:[r.jsx(Se,{placeholder:"Last Name *",...n("last_name",{required:!0}),className:"bg-white border-gray-300"}),i.last_name&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]})]}),r.jsxs("div",{children:[r.jsx(Se,{placeholder:"Phone Number *",...n("phone",{required:!0}),className:"bg-white border-gray-300"}),i.phone&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{children:[r.jsx(Se,{type:"email",placeholder:"Email Address *",...n("email",{required:!0}),className:"bg-white border-gray-300"}),i.email&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{children:[r.jsx(Se,{placeholder:"Company Name *",...n("company",{required:!0}),className:"bg-white border-gray-300"}),i.company&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsx("div",{children:r.jsxs("select",{...n("how_heard"),className:"w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm text-gray-700 focus:outline-none focus:ring-2 focus:ring-amber-400",children:[r.jsx("option",{value:"",children:"How Did You Hear About Us?"}),r.jsx("option",{value:"Google Search",children:"Google Search"}),r.jsx("option",{value:"Referral",children:"Referral"}),r.jsx("option",{value:"LinkedIn",children:"LinkedIn"}),r.jsx("option",{value:"Social Media",children:"Social Media"}),r.jsx("option",{value:"Event/Conference",children:"Event / Conference"}),r.jsx("option",{value:"Other",children:"Other"})]})}),r.jsxs("div",{children:[r.jsx(Yt,{placeholder:"Message / Partnership Opp
944ortunity *",rows:4,...n("message",{required:!0}),className:"bg-white border-gray-300"}),i.message&&r.jsx("p",{className:"text-red-500 text-xs mt-1",children:"Required"})]}),r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx("input",{type:"checkbox",id:"agree",...n("agree",{required:!0}),className:"mt-1 accent-amber-500"}),r.jsxs("label",{htmlFor:"agree",className:"text-xs text-gray-600 leading-snug",children:["I agree to the ",r.jsx(Me,{to:"/terms-and-conditions",className:"underline hover:text-amber-500",children:"Terms & Conditions"})," and ",r.jsx(Me,{to:"/privacy-policy",className:"underline hover:text-amber-500",children:"Privacy Policy"})," *"]})]}),i.agree&&r.jsx("p",{className:"text-red-500 text-xs -mt-2",children:"You must agree before submitting."}),r.jsx("div",{className:"flex justify-center",children:r.jsx(xe,{type:"submit",className:"bg-primary text-primary-foreground font-bold uppercase tracking-wide px-12",disabled:o.isPending,children:o.isPending?"Sending...":"Submit"})})]})]})})})}function pT(){return r.jsxs("div",{className:"max-w-4xl mx-auto px-6 py-16",children:[r.jsxs(Me,{to:"/",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary mb-8",children:[r.jsx(oc,{className:"w-4 h-4"})," Back to Home"]}),r.jsx("h1",{className:"text-3xl md:text-4xl font-extrabold mb-2",children:"Privacy Policy"}),r.jsx("p",{className:"text-muted-foreground mb-2",children:"Lean Synergy Solutions"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-8",children:"Last Updated: June 4, 2026"}),r.jsxs("div",{className:"prose prose-slate max-w-none",children:[r.jsx("p",{className:"mb-4",children:'Lean Synergy Solutions ("LSS," "we," "us," or "our") is committed to protecting your privacy. This Privacy Policy explains how we collect, use, disclose, and safeguard your personal information when you visit our website, use our digital services, or interact with us in connection with our consulting and workforce improvement services (collectively, the "Services").'}),r.jsx("p",{className:"mb-4",children:"Please read this Privacy Policy carefully. By accessing or using our Services, you acknowledge that you have read, understood, and agree to the practices described in this policy. If you do not agree, please discontinue use of our Services."}),r.jsx("p",{className:"mb-4",children:"This Privacy Policy does not apply to: information collected by third-party websites or services that may be linked to or from our Services."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"1. INFORMATION WE COLLECT"}),r.jsx("p",{className:"mb-4",children:"We collect information in the following ways:"}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"1.1 Information You Provide Directly"}),r.jsx("p",{className:"mb-4",children:"We collect personal information you voluntarily submit to us, including through contact forms, job application forms, and other communications. This may include:"}),r.jsxs("ul",{className:"list-disc pl-6 mb-4 space-y-1",children:[r.jsx("li",{children:"Full name"}),r.jsx("li",{children:"Email address"}),r.jsx("li",{children:"Phone number"}),r.jsx("li",{children:"Company name and job title"}),r.jsx("li",{children:"Resume, work history, skills, and professional credentials"}),r.jsx("li",{children:"Messages, inquiries, or other content you submit to us"}),r.jsx("li",{children:"How you heard about us"})]}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"1.2 Information Collected Automatically"}),r.jsx("p",{className:"mb-4",children:"When you visit our website, we and our third-party service providers may automatically collect certain technical information, including:"}),r.jsxs("ul",{className:"list-disc pl-6 mb-4 space-y-1",children:[r.jsx("li",{children:"IP address and approximate geographic location"}),r.jsx("li",{children:"Browser type, version, and operating system"}),r.jsx("li",{children:"Pages visited, time spent on pages, and navigation paths"}),r.jsx("li",{children:"Referring URLs and exit pages"}),r.jsx("li",{children:"Device identifiers and usage data"}),r.jsx("li",{children:"Cookie identifiers and similar tracking data"})]}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"1.3 Information from Third-Party Tools"}),r.jsx("p",{className:"mb-4",children:"We use third-party tools on our website that may collect information about your activity, including:"}),r.jsxs("ul",{className:"list-disc pl-6 mb-4 space-y-1",children:[r.jsxs("li",{children:[r.jsx("strong",{children:"Google Analytics:"})," We use Google Analytics to understand how visitors use our website. Google Analytics collects data such as pages visited, session duration, and traffic sources. This data is aggregated and used to improve our Services. For more information, visit ",r.jsx("a",{href:"https://google.com/policies/privacy/partners",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"google.com/policies/privacy/partners"}),"."]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Social Media Pixels (e.g., LinkedIn, Facebook):"})," We may use social media tracking pixels that collect information about your interactions with our website and allow us to serve relevant advertising on social media platforms. These pixels are operated by the respective social media companies and are subject to their own privacy policies."]})]}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"1.4 Resume and Job Application Data"}),r.jsx("p",{className:"mb-4",children:"If you apply for a position through our careers portal or submit a resume, we collect the information contained in your application, including employment history, education, references, and any other information you choose to provide. This information is used to evaluate your qual
944ifications and facilitate the hiring process on behalf of Lean Synergy Solutions or our client organizations."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"2. HOW WE USE YOUR INFORMATION"}),r.jsx("p",{className:"mb-4",children:"Lean Synergy Solutions uses the information we collect for the following purposes:"}),r.jsxs("ul",{className:"list-disc pl-6 mb-4 space-y-1",children:[r.jsx("li",{children:"To respond to your inquiries and provide the Services you request"}),r.jsx("li",{children:"To evaluate and process job applications and connect candidates with employment opportunities"}),r.jsx("li",{children:"To communicate with you about our services, updates, and relevant opportunities"}),r.jsx("li",{children:"To send promotional or marketing communications, where you have opted in"}),r.jsx("li",{children:"To analyze and improve our website performance and user experience"}),r.jsx("li",{children:"To personalize content and advertising on our website and third-party platforms"}),r.jsx("li",{children:"To comply with applicable laws, regulations, and legal obligations"}),r.jsx("li",{children:"To protect the security and integrity of our Services"}),r.jsx("li",{children:"To enforce our Terms of Use and other agreements"})]}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"3. HOW WE SHARE YOUR INFORMATION"}),r.jsx("p",{className:"mb-4",children:"We do not sell your personal information. We may share your information in the following limited circumstances:"}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"3.1 Service Providers"}),r.jsx("p",{className:"mb-4",children:"We may share your information with trusted third-party vendors and service providers who assist us in operating our website, delivering our Services, and conducting our business (e.g., website hosting, analytics platforms, email service providers, applicant tracking systems). These parties are contractually obligated to use your information only as directed by us and in accordance with this Privacy Policy."}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"3.2 Client Organizations"}),r.jsx("p",{className:"mb-4",children:"If you apply for a position or are being considered for placement, we may share your resume and related application information with client organizations for whom we are recruiting. We will do so only in connection with the legitimate purpose of evaluating your candidacy."}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"3.3 Business Transfers"}),r.jsx("p",{className:"mb-4",children:"In the event of a merger, acquisition, sale of assets, or other business transaction, your personal information may be transferred as part of that transaction. We will notify you of any such change in ownership or control of your personal information."}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"3.4 Legal Requirements"}),r.jsx("p",{className:"mb-4",children:"We may disclose your information when required to do so by law, court order, or governmental authority, or when we believe disclosure is necessary to protect our rights, protect your safety or the safety of others, investigate fraud, or respond to a legal request."}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"3.5 With Your Consent"}),r.jsx("p",{className:"mb-4",children:"We may share your information with other third parties when you have given us your explicit consent to do so."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"4. COOKIES AND TRACKING TECHNOLOGIES"}),r.jsx("p",{className:"mb-4",children:"We use cookies, web beacons, pixels, and similar tracking technologies to collect information about your interactions with our website. Cookies are small data files stored on your device that help us recognize you and improve your experience."}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"4.1 Types of Cookies We Use"}),r.jsxs("ul",{className:"list-disc pl-6 mb-4 space-y-1",children:[r.jsxs("li",{children:[r.jsx("strong",{children:"Essential Cookies:"})," Necessary for the basic functioning of our website."]}
944),r.jsxs("li",{children:[r.jsx("strong",{children:"Analytics Cookies:"})," Used to understand how visitors interact with our site (e.g., Google Analytics)."]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Marketing/Advertising Cookies:"})," Used to deliver relevant advertising and track campaign effectiveness (e.g., LinkedIn Insight Tag, Meta Pixel)."]})]}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"4.2 Your Cookie Choices"}),r.jsxs("p",{className:"mb-4",children:["You can control cookies through your browser settings and, where applicable, through our cookie consent tool on the website. Please note that disabling certain cookies may affect the functionality of our Services. To opt out of Google Analytics tracking, visit ",r.jsx("a",{href:"https://tools.google.com/dlpage/gaoptout",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"tools.google.com/dlpage/gaoptout"}),"."]}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"5. DATA RETENTION"}),r.jsx("p",{className:"mb-4",children:"We retain personal information for as long as necessary to fulfill the purposes for which it was collected, including to comply with legal obligations, resolve disputes, and enforce our agreements. Specifically:"}),r.jsxs("ul",{className:"list-disc pl-6 mb-4 space-y-1",children:[r.jsx("li",{children:"Contact form inquiries are retained for up to 3 years."}),r.jsx("li",{children:"Resume and job application data is retained for up to 2 years from the date of submission, unless a longer period is required for an active placement or legal compliance."}),r.jsx("li",{children:"Website analytics data is retained in accordance with the data retention settings of the applicable third-party tools."})]}),r.jsx("p",{className:"mb-4",children:"When personal information is no longer needed, we take reasonable steps to securely delete or anonymize it."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"6. DATA SECURITY"}),r.jsx("p",{className:"mb-4",children:"We implement reasonable administrative, technical, and physical safeguards designed to protect your personal information from unauthorized access, disclosure, alteration, or destruction. However, no method of transmission over the internet or electronic storage is completely secure. We cannot guarantee absolute security and encourage you to take steps to protect your own information, such as using strong passwords and avoiding sharing sensitive information over unsecured networks."}),r.jsxs("p",{className:"mb-4",children:["If you believe your personal information has been compromised, please contact us immediately at ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"7. YOUR PRIVACY RIGHTS"}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"7.1 Washington State Residents"}),r.jsx("p",{className:"mb-4",children:"If you are a resident of Washington State, you may have the following rights under the Washington My Health MY Data Act and other applicable state privacy laws:"}),r.jsxs("ul",{className:"list-disc pl-6 mb-4 space-y-1",children:[r.jsx("li",{children:"The right to know what personal information we collect, use, and share about you"}),r.jsx("li",{children:"The right to access a copy of your personal information"}),r.jsx("li",{children:"The right to correct inaccurate personal information"}),r.jsx("li",{children:"The right to request deletion of your personal information, subject to certain exceptions"}),r.jsx("li",{children:"The right to opt out of the sale or sharing of your personal information (we do not sell personal information)"}),r.jsx("li",{children:"The right to opt out of targeted advertising"}),r.jsx("li",{children:"The right to non-discrimination for exercising your privacy rights"})]}),r.jsxs("p",{className:"mb-4",children:["To exercise any of these rights, please submit a request to ",r.jsx("a",{href:"mailto:info@leansynergysolutions.
944com",className:"text-primary hover:underline",children:"[email protected]"}),". We will respond to verified requests within 45 days, with the possibility of a 45-day extension when reasonably necessary."]}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"7.2 All Users"}),r.jsx("p",{className:"mb-4",children:"Regardless of your location, you may:"}),r.jsxs("ul",{className:"list-disc pl-6 mb-4 space-y-1",children:[r.jsx("li",{children:'Opt out of promotional email communications at any time by clicking the "unsubscribe" link in any marketing email or contacting us directly.'}),r.jsx("li",{children:"Opt out of promotional text messages by texting STOP to the applicable short code."}),r.jsx("li",{children:"Request that we update or correct inaccurate information we hold about you."})]}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"8. CHILDREN'S PRIVACY"}),r.jsxs("p",{className:"mb-4",children:["Our Services are not directed to individuals under the age of 16, and we do not knowingly collect personal information from children under 16. If we become aware that we have inadvertently collected personal information from a child under 16, we will take prompt steps to delete such information. If you believe we have collected information from a minor, please contact us at ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"9. THIRD-PARTY LINKS"}),r.jsx("p",{className:"mb-4",children:"Our website may contain links to third-party websites, platforms, or services that are not operated by Lean Synergy Solutions. This Privacy Policy does not apply to those third-party sites, and we are not responsible for their privacy practices. We encourage you to review the privacy policies of any third-party sites you visit."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"10. CAREERS PORTAL"}),r.jsx("p",{className:"mb-4",children:"If you apply for a position through our careers portal (currently hosted at jobs.crelate.com/portal/leansynergysolutions), please be aware that your application data is processed through Crelate, a third-party applicant tracking system. Your use of the careers portal is also subject to Crelate's privacy policy. We use the information you submit solely for recruiting and hiring purposes."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"11. CHANGES TO THIS PRIVACY POLICY"}),r.jsx("p",{className:"mb-4",children:'We may update this Privacy Policy from time to time to reflect changes in our practices, technology, legal requirements, or for other operational reasons. When we make material changes, we will update the "Last Updated" date at the top of this policy and, where appropriate, notify you by email or through a notice on our website. Your continued use of our Services after any update constitutes your acceptance of the revised policy.'}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"12. CONTACT US"}),r.jsx("p",{className:"mb-4",children:"If you have any questions, concerns, or requests regarding this Privacy Policy or our data practices, please contact us at:"}),r.jsxs("div",{className:"mb-8",children:[r.jsx("p",{className:"font-semibold",children:"Lean Synergy Solutions"}),r.jsx("p",{children:"12402 N Division St PMB 347"}),r.jsx("p",{children:"Spokane, WA 99218"}),r.jsxs("p",{children:["Email: ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]}),r.jsx("p",{className:"mb-8",children:"We are committed to working with you to resolve any concerns about your privacy in a fair and timely manner."})]})]})}function gT(){return r.jsxs("div",{className:"max-w-4xl mx-auto px-6 py-16",children:[r.jsxs(Me,{to:"/",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary mb-8",children:[r.jsx(oc,{className:"w-4 h-4"})," Back to Home"]}),r.jsx("h1",{className:"text-3xl md:text-4xl font-extrabold mb-2",children:"Terms of Use"}),r.jsx("p",{className:"text-muted-foreground mb-2",children:"Lean Synergy Solutions"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-8",children:"Last Updated: October 14, 2025"}),r.jsxs("div",{className:"prose prose-slate max-w-none",children:[r.jsx("p",{className:"mb-4",children:'The digital services that Lean Synergy Solutions ("LSS," "we," or "us") provide are subject to these Terms of Use (the "Terms"), including our websites, Wi-Fi, applications, and any other digital experiences we provide that link here (together, the "Services").'}),r.jsx("div",{className:"bg-primary/10 border-l-4 border-primary p-4 mb-6",children:r.jsx("p",{className:"font-semibold mb-2",children:"PLEASE READ THESE TERMS CAREFULLY BEFORE USING ANY SERVICES, AS THESE TERMS AFFECT YOUR LEGAL RIGHTS. BY AGREEING TO BE BOUND BY THE TERMS, YOU AGREE THAT ALL DISPUTES BETWEEN US WILL BE RESOLVED BY BINDING ARBITRATION, EXCEPT FOR CERTAIN LIMITED TYPES OF DISPUTES DESCRIBED IN SECTION 12 BELOW. YOUR AGREEMENT TO ARBITRATION MEANS YOU ARE GIVING UP THE RIGHT TO GO TO COURT AND THE RIGHT TO A TRIAL BY JURY, AN
944D INSTEAD, DISPUTES WILL BE DECIDED BY A NEUTRAL ARBITRATOR. YOU ALSO AGREE THAT ALL DISPUTES BETWEEN US, WHETHER IN COURT OR IN ARBITRATION, WILL BE BROUGHT ONLY ON AN INDIVIDUAL BASIS AND YOU WAIVE YOUR RIGHT TO BRING OR PARTICIPATE IN A CLASS ARBITRATION OR CLASS ACTION. PLEASE CLICK HERE TO READ SECTION 12 OF THIS AGREEMENT FOR MORE DETAILS."})}),r.jsx("p",{className:"mb-4",children:"By accessing, browsing, or using the Services, you acknowledge that you have read, understood, and agree to be bound by these Terms."}),r.jsxs("p",{className:"mb-4",children:["Please review the ",r.jsx(Me,{to:"/privacy-policy",className:"text-primary hover:underline",children:"Lean Synergy Solutions Privacy Policy"})," to learn about the personal information we collect, how we handle personal information, and how you can exercise your privacy rights. By accessing or using the Services, you consent to all actions that we take with respect to your personal information consistent with our Privacy Policy."]}),r.jsx("p",{className:"mb-4",children:"If you are a member of the Lean Synergy Solutions workforce, different terms and conditions may apply to your use of our Services."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"1. ACCEPTANCE & GENERAL TERMS"}),r.jsx("p",{className:"mb-4",children:"By accessing, browsing, or using the Services, you acknowledge that you have read, understood, and agree to be bound by these Terms. If you do not want to agree to these Terms do not use the Services."}),r.jsx("p",{className:"mb-4",children:'From time to time, we may change these Terms in our sole discretion. Changes are effective immediately when we post them and apply to all access to and use of the Services thereafter. You can always access the most current version of the Terms at the "Terms of Use" link we provide in the Services, including at the bottom of our websites. When we update the Terms, we will show the date it was last updated at the top of this page.'}),r.jsx("p",{className:"mb-4",children:"Your continued use of the Services following the posting of revised Terms means that you accept and agree to the changes. We recommend you check this page when you access the Services so you can be aware of any changes."}),r.jsx("p",{className:"mb-4",children:"These Terms are the sole and entire agreement between you and Lean Synergy Solutions regarding the Services, and supersede all prior and contemporaneous understandings, agreements, representations, and warranties, both written and oral, regarding the Services. Other terms and conditions may apply to our programs, events, or employment offers."}),r.jsx("p",{className:"mb-4",children:"Lean Synergy Solutions may, in its sole discretion, terminate or suspend your access to all or part of the Services for any reason, including, without limitation, breach of these Terms or your membership agreement. We may also impose limits on certain features and Services or restrict your access to parts or all of the Services without notice or liability."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"2. CHANGES TO THE SERVICES AND OPERATIONAL LIMITS"}),r.jsx("p",{className:"mb-4",children:"Lean Synergy Solutions provides the Services to you subject to certain limits, including, but not limited to, certain availability and operational limitations. Temporary or permanent interruptions in the Service may occur, and Lean Synergy Solutions will not be responsible or liable for such interruptions or any loss of data or communications resulting from such interruptions. Lean Synergy Solutions assumes no obligation to provide the Service, or to provide the Service to any certain level or specification, such as speed, bandwidth, strength, and range."}),r.jsx("p",{className:"mb-4",children:"We may change, suspend, or discontinue any aspect of the Services at any time, including the availability of any Services or Content. Information on the Services may not always be up to date. Lean Synergy Solutions will not have any liability for changes to the Services, the unavailability of the Services or any part of the Services, or for any out-of-date information on the Services. If you are not satisfied with the Services following such changes, your sole remedy is to stop use of those Services."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"3. USE OF THE SERVICES AND CONTENT"}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"3.1 Personal Use"}),r.jsx("p",{className:"mb-4",children:"These Terms allow you to use the Services for your personal, non-commercial use only. You are fully responsible for the device you use to access the Service and all activity undertaken through that device while it is accessing or using the Service, whether or not those activities were caused or authorized by you. We cannot and do not guarantee that any of the Services will be free from viruses or other code that may have contaminating or destructive elements. It is y
944our responsibility to use appropriate security measures when you access the Services and to secure your own device."}),r.jsx("p",{className:"mb-4",children:"We take reasonable steps to secure the Services but cannot and do not warrant or represent that the Service is secure or free from security risks. You acknowledge that we make no assurance or guaranty regarding the privacy or security of your information while accessing the Service, including our Wi-Fi. You agree to take appropriate steps to help your information and your device and to ensure the security of the Service for others. Such steps include but are not limited to:"}),r.jsxs("ul",{className:"list-disc pl-6 mb-4 space-y-1",children:[r.jsx("li",{children:"Installing and using up-to-date malware and virus protection on your device."}),r.jsx("li",{children:"Avoiding websites that convey malware and phishing emails."}),r.jsx("li",{children:"Installing the most recent security patches made available for your device, operating system, and apps."}),r.jsx("li",{children:"Notifying us immediately of any security issue you may detect with respect to the Service."})]}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"3.2 Content on the Services"}),r.jsx("p",{className:"mb-4",children:'The Services and its entire contents, including but not limited to all trademarks, logos, information, software, text, displays, images, video, and audio, and the design, selection, and arrangement thereof (together, the "Content"), are owned by Lean Synergy Solutions or its licensors, as applicable, and are protected by United States and international copyright, trademark, patent, trade secret, and other intellectual property and proprietary rights laws, as applicable. The posting of Content on the Services by Lean Synergy Solutions is not a waiver of any proprietary right in such Content and does not transfer or license any rights in any of the foregoing to a user of the Services or any other third party, except as expressly provided herein. You may download, print, or copy certain Content and other downloadable items displayed on the Services for your personal use only, provided that you keep all copyright and other notices contained in the Content and other downloadable items. Copying or storing Content for other purposes is expressly prohibited without prior written permission from Lean Synergy Solutions or the copyright holder found in the copyright notice contained in the Content.'}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"3.3 AI Features"}),r.jsx("p",{className:"mb-4",children:'The Services may have features that use or otherwise integrate artificial intelligence ("AI"). You authorize Lean Synergy Solutions and our service providers to store and use your input and any outputs of such features for the purposes of providing and improving the Services, enforcing the Terms and policies, and complying with applicable laws. Please review the output of such AI features; your use thereof is at your sole risk. Lean Synergy Solutions makes no representations or warranties and provides no indemnities with respect to output of such features.'}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"3.4 Prohibited Uses of the Services"}),r.jsx("p",{className:"mb-4",children:"You may not use the Services and Content to:"}),r.jsxs("ul",{className:"list-disc pl-6 mb-4 space-y-1",children:[r.jsx("li",{children:"Interfere with the operation, use, or enjoyment of the Service, or any other services, systems, products, or property."}),r.jsx("li",{children:"Harm or otherwise adversely impact the security of the Service or any user's device or information system."}),r.jsx("li",{children:"Violate any applicable federal, state, local, or international law or regulation or infringe any patent, trademark, trade secret, copyright, or other intellectual property or other rights of ours or any other person."}),r.jsx("li",{children:"Violate any individual's privacy rights or other legal rights."}),r.jsx("li",{children:"Engage in tortious conduct or any activity that is intentionally harmful to an individual or entity or that negligently or knowingly puts an individual or entity at risk of harm."}),r.jsx("li",{children:"Attempt (or aid in anyone else's attempt) to circumvent, reverse engineer, decrypt, or otherwise alter or interfere with the Services, Content, or any features of the Services."}),r.jsx("li",{children:"Disable, overburden, damage, or impair the Services, or interfere with, or restrict or inhibit, others' use of the Services."}),r.jsx("li",{children:'Transmit, or procure the sending of, any advertising or promotional material, including any "junk mail," "chain letter," "spam," or any other similar solicitation.'}),r.jsx("li",{children:"Impersonate or attempt to impersonate Lean Synergy Solutions, a Lean Synergy Solutions employee, another user, or any other person or entity."}),r.jsx("li",{children:"Use any robot, spider, or other automatic device, process, or means to access the Services for any purpose."}),r.jsx("li",{children:"Use the Services, Content, or any other materials on the Services for the development of any model, algorithm, or generative AI tool."}),r.jsx("li",{children:"Introduce any viruses, Trojan horses, worms, logic bombs, or other material that is malicious or technologically harmful to the Services."}),r.jsx("li",{children:"Attack the Services via a denial-of-service attack or otherwise attempt to interfere with the proper working of the Services."})]}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"4. LEAN SYNERGY SOLUTIONS ACCOUNTS"}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"4.1 Accounts"}),r.jsx("p",{className:"mb-4",children:"To access some parts of the Services, you may be asked to provide certain registration details or other information to create an account. You agree to provide correct, current, and complete information, and not create more than one account."}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"4.2 Account Use"}),r.jsx("p",{className:"mb-4",children:"You agree and understand that you are responsible for maintaining the confidentiality of your account username and password. Accordingly, you are responsible for any actions taken in connection with your account. You agree to notify us immediately of any unauthorized access to or use of your username or password or any other breach of security. We may disable your account at any time, including if, in our opinion, you have violated any provision of these Terms."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"5. THIRD PARTY LINKS"}),r.jsx("p",{className:"mb-4",children:"If the Services have links to other sites and resources provided by third parties, these links are provided for your convenience only. This includes links contained in advertisements, including banner advertisements and sponsored links. We have no control over the contents of those sites or resources and accept no responsibility for them or for any loss or damage that may arise from your use of them. If you decide to access any of the third-party sites and resources linked to this Services, you do so entirely at your own risk and subject to the terms and conditions of use for such services."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"6. COMMUNICATIONS"}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"6.1 Notices and Disclosures"}),r.jsx("p",{className:"mb-4",children:"You consent to receive communications from us electronically to the email address you provide. You agree that all notices, disclosures, and other communications related to the Services that we deliver to your email address will satisfy any legal requirement that such communications be in writing."}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"6.2 Promotional Communications"}),r.jsx("p",{className:"mb-4",children:"You may opt in to receive digital promotional messages to an email address or mobile number you provide to us. When you opt into any of these types of communications, you understand you will receive, and consent to, marketing, transactional, and other messages from us or our affiliates which may be sent by our marketing services providers. Message and data rates may apply. Messages may be sent using automated technology and message frequency varies. Your consent or opt-in to promotional messages is not required to make any purchase or participate in our promotions."}),r.jsx("p",{className:"mb-4",children:"Text the keyword STOP, END, CANCEL, UNSUBSCRIBE, QUIT, REVOKE, or OPT OUT to our short code to cancel. After texting STOP, END, CANCEL, UNSUBSCRIBE, QUIT, REVOKE, or OPT OUT to our short code you will receive one additional message confirming that your request has been processed. You can also text the keyword HELP to our short code for messaging support at any time."}),r.jsx("p",{className:"mb-4",children:"If you unsubscribe from promotional text message programs, you may continue to receive text messages from Lean Synergy Solutions containing important information and alerts."}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"6.3 Feedback"}),r.jsx("p",{className:"mb-4",children:"Any feedback you provide to Lean Synergy Solutions will be deemed to be non-confidential and n
944ot proprietary. Lean Synergy Solutions will be free to use and redistribute such information on an unrestricted basis, without any compensation to you."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"7. SOCIAL MEDIA"}),r.jsx("p",{className:"mb-4",children:"From time to time, we may engage with you on social media platforms. For example, we may reach out to you and ask for permission to use content you posted on social media platforms including photography, videos, captions, and or related content. Unless we agree in writing to different terms, when you agree to allow us to use your social media content: (a) we will have the worldwide and perpetual right, without payment to you, but not the obligation, to publish your social media content on the Services, in our physical locations, on social media platforms, and on our partner or distributors digital or physical properties in any form; and (b) you represent and warrant that: (i) you have the right to grant us the right to use your social media content as set forth in this Agreement and such use by us will not violate the rights of any third party; and (ii) any statements or testimonials that are included in your social media content are true and accurate and represent your current honest opinions, findings, beliefs, and/or experiences."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"8. WARRANTIES AND REPRESENTATIONS"}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"8.1 By You"}),r.jsx("p",{className:"mb-4",children:"By using the Services, you represent and warrant that: (a) all Lean Synergy Solutions account registration information you submit will be true, accurate, current, and complete; (b) you will maintain the accuracy of such information and promptly update such registration information as necessary; (c) you have the legal capacity and you agree to comply with these Terms; (d) you are at least 18 years old or have had your parent or guardian read and agree to these Terms before you use the Services; (e) you will not access the Services through automated or non-human means, whether through a bot, script or otherwise; and (f) you will not use the Services or Content for any illegal or unauthorized purpose or in a manner that violates any person's rights."}),r.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2",children:"8.2 By Lean Synergy Solutions"}),r.jsx("p",{className:"mb-4",children:'TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAWS, THE SERVICES AND ITS CONTENTS, AND ANY FEATURES, FUNCTIONALITY OR SERVICES ACCESSED THROUGH THE WEBSITE ARE PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS, WITHOUT ANY WARRANTIES OF ANY KIND, AND WE HEREBY EXPRESSLY DISCLAIM ALL WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, STATUTORY, OR OTHERWISE, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT, AN
944D FITNESS FOR A PARTICULAR PURPOSE. THE SERVICES AND CONTENT ARE MADE AVAILABLE SOLELY FOR YOUR CONVENIENCE AND GENERAL INFORMATIONAL PURPOSES. WE DO NOT WARRANT THE ACCURACY, COMPLETENESS, OR USEFULNESS OF THE SERVICES OR CONTENT. ANY RELIANCE YOU PLACE ON INFORMATION CONTAINED THEREIN IS STRICTLY AT YOUR OWN RISK.'}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"9. LIMITATION ON LIABILITY"}),r.jsx("p",{className:"mb-4",children:"TO THE FULLEST EXTENT PROVIDED BY LAW, IN NO EVENT WILL LEAN SYNERGY SOLUTIONS OR OUR AFFILIATES, OR OUR OR THEIR LICENSORS, SERVICE PROVIDERS, EMPLOYEES, AGENTS, OFFICERS, OWNERS, DIRECTORS, OR REPRESENTATIVES BE LIABLE FOR DAMAGES OF ANY KIND, UNDER ANY LEGAL THEORY, ARISING OUT OF OR IN CONNECTION WITH YOUR USE OF, OR INABILITY TO USE, THE SERVICES, ANY SERVICES LINKED TO IT, OR ANY CONTENT ON THE SERVICES, INCLUDING ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, INCLUDING BUT NOT LIMITED TO, PERSONAL INJURY, PAIN AND SUFFERING, EMOTIONAL DISTRESS, LOSS OF REVENUE, LOSS OF PROFITS, LOSS OF BUSINESS OR ANTICIPATED SAVINGS, LOSS OF USE, LOSS OF GOODWILL, OR LOSS OF DATA, WHETHER CAUSED BY TORT (INCLUDING NEGLIGENCE), BREACH OF CONTRACT, OR OTHERWISE, EVEN IF FORESEEABLE."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"10. INDEMNIFICATION"}),r.jsx("p",{className:"mb-4",children:"You agree to defend, indemnify, and hold harmless Lean Synergy Solutions, its affiliates, licensors, and service providers, and its and their respective officers, directors, employees, contractors, agents, licensors, suppliers, successors, and assigns for, from and against any claims, liabilities, damages, judgments, awards, losses, costs, expenses, or fees, including reasonable attorneys' fees, arising out of or relating to your violation of these Terms or your use of the Services."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"11. GOVERNING LAW; VENUE; LIMITATION ON ACTIONS"}),r.jsx("p",{className:"mb-4",children:"All matters relating to the Services, Content, and these Terms, and any dispute or claim arising therefrom or related thereto, shall be governed by the laws of the State of Washington without giving effect to any choice or conflict of law provision or rule. For all small claims court and any other controversy or claim for which arbitration as set forth in the Binding Arbitration and Class Action Waiver Section below is denied, the sole jurisdiction and venue for such litigation will be an appropriate federal or state court located in the State of Washington. You waive any and all objections to the exercise of jurisdiction over you by such courts and to venue in such courts. Any cause of action or claim you may have relating to these Terms, the Services, or the Content must be commenced within one (1) year after the cause of action arises or be forever barred."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"12. BINDING ARBITRATION AND CLASS ACTION WAIVER"}),r.jsx("p",{className:"mb-4",children:"Any dispute or claim that arises out of or that relates to the Services, Content, or these Terms, or to the interpretation or breach thereof, or to the existence, validity, or scope of these Terms or this Binding Arbitration and Class Action Waiver Section, except claims that can be brought to small claims court, will be resolved by arbitration in accordance with the then effective and appropriate arbitration rules of (and by filing a claim with) American Arbitration Association (AAA), and judgment upon the award rendered pursuant to such arbitration may be entered in any court having jurisdiction."}),r.jsx("div",{className:"bg-primary/10 border-l-4 border-primary p-4 my-4",children:r.jsx("p",{className:"font-semibold",children:"YOUR AGREEMENT TO ARBITRATION MEANS THAT FOR ALL CLAIMS OR DISPUTES (EXCEPT SMALL CLAIMS COURT CLAIMS AND ANY OTHER CONTROVERSY OR CLAIM FOR WHICH ARBITRATION IS DENIED) YOU ARE GIVING UP YOUR RIGHT TO FILE A LAWSUIT IN COURT AND THE RIGHT TO A TRIAL BY JURY. INSTEAD, YOU WILL HAVE A HEARING BEFORE A NEUTRAL ARBITRATOR."})}),r.jsx("p",{className:"mb-4",children:"Information concerning the arbitration must not be disclosed to any third party except the tribunal, the parties, their counsel, experts, witnesses, accountants and auditors, insurers, and any other person necessary to the conduct of the arbitration."}),r.jsx("p",{className:"mb-4",children:"In the event of a dispute, you or Lean Synergy Solutions must send to the other party a notice of dispute, which is a written statement that sets forth the name, address, and contact information of the party giving the notice, the facts giving rise to the dispute, and the relief requested. You must send any notice of dispute to the address below. We will send any notice of dispute to you at the contact information we have for you. You and Lean Synergy Solutions will attempt to resolve a dispute through informal negotiation within sixty (60) days from the date the notice of dispute is sent. After sixty (60) days, you or we may commence arbitration."}),r.jsxs("div",{className:"bg-card border border-border rounded-lg p-4 mb-4",children:[r.jsx("p",{className:"font-semibold mb-2",children:"You must send any notice of dispute to:"}),r.jsx("p",{className:"mb-1",children:"Lean Synergy Solutions"}),r.jsx("p",{className:"mb-1",children:"12402 N Division St PMB 347"}),r.jsx("p",{className:"mb-1",children:"Spokane, WA 99218"}),r.jsxs("p",{children:["Email: ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]}),r.jsx("div",{className:"bg-primary/10 border-l-4 border-primary p-4 my-4",children:r.jsx("p",{className:"font-semibold",children:"WE AGREE THAT ALL PROCEEDINGS TO RESOLVE, ARBITRATE, OR LITIGATE A DISPUTE OR CLAIM IN ANY FORUM WILL BE CONDUCTED ON AN INDIVIDUAL BASIS. NEITHER YOU NOR LEAN SYNERGY SOLUTIONS WILL SEEK TO HAVE A DISPUTE HEARD AS A CLASS ACTION, PRIVATE ATTORNEY GENERAL ACTION, OR IN ANY OTHER PROCEEDING IN WHICH EITHER PARTY ACTS OR PROPOSES TO ACT IN A REPRESENTATIVE CAPACITY."})}),r.jsx("p",{className:"mb-4",children:"The Terms are governed by and construed in accordance with the laws of the State of Washington and the laws of the United States, without giving effect to any conflict of law principles."}),r.jsx("p",{className:"mb-4",children:"If any provision of this Binding Arbitration and Class Action Waiver Section is found to be unlawful, void, or for any reason unenforceable, then that provision 
944will be deemed severable from this Section and will not affect the validity and enforceability of any remaining provisions of this Section or the Terms."}),r.jsx("p",{className:"mb-4",children:"All provisions of this Binding Arbitration and Class Action Waiver Section will survive termination of your membership or access to the Services."}),r.jsxs("p",{className:"mb-4",children:["You have the right to opt out and not be bound by the Binding Arbitration provisions of this section by sending written notice of your decision to opt out to ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),' with the subject line "ARBITRATION OPT-OUT." The notice must be sent within thirty (30) days of (a) Terms Last Updated Date; or (b) your first use of the Services, whichever is later. Otherwise, you shall be bound to arbitrate disputes in accordance with the terms of these paragraphs.']}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"13. MISCELLANEOUS"}),r.jsx("p",{className:"mb-4",children:"13.1 You hereby acknowledge and agree that you are not an employee, agent, or partner of Lean Synergy Solutions."}),r.jsx("p",{className:"mb-4",children:"13.2 You and Lean Synergy Solutions agree there are no third-party beneficiaries intended under these Terms."}),r.jsx("p",{className:"mb-4",children:"13.3 If any provision of these Terms is held by a court or other tribunal of competent jurisdiction to be invalid, illegal, or unenforceable for any reason, such provision shall be eliminated or limited to the minimum extent such that the remaining provisions of the Terms will continue in full force and effect."}),r.jsx("h2",{className:"text-2xl font-bold mt-8 mb-4",children:"14. CONTACT US"}),r.jsx("p",{className:"mb-4",children:"All feedback, comments, requests for technical support, and other communications relating to the Services or Content should be directed to:"}),r.jsxs("div",{className:"mb-8",children:[r.jsx("p",{className:"font-semibold",children:"Lean Synergy Solutions"}),r.jsx("p",{children:"12402 N Division St PMB 347"}),r.jsx("p",{children:"Spokane, WA 99218"}),r.jsxs("p",{children:["Email: ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]})]})]})}const xie=["Federal & Defense","Critical Infrastructure","Manufacturing","Healthcare Infrastructure","Veteran & Military-Affiliated","Other"];function yT(){const e=E.useRef(null),[t,n]=E.useState(!1),[s,i]=E.useState(!1),[o,l]=E.useState({full_name:"",email:"",phone:"",city_state:"",linkedin_url:"",experience_level:"",recruiting_background:"",industries:[],comfortable_1099:"",understands_no_benefits:"",has_equipment:"",willing_free_tools:"",recruiting_experience_description:"",why_interested:"",resume_url:""}),[c,d]=E.useState(null),[h,p]=E.useState(!1),f=()=>{var x;(x=e.current)==null||x.scrollIntoView({behavior:"smooth",block:"start"})},m=(x,v)=>l(N=>({...N,[x]:v})),g=x=>{l(v=>({...v,industries:v.industries.includes(x)?v.industries.filter(N=>N!==x):[...v.industries,x]}))},j=async x=>{const v=x.target.files[0];if(v){d(v),p(!0);try{const N=await ge.integrations.Core.UploadPrivateFile({file:v});m("resume_url",N.file_uri)}catch(N){console.error("Resume upload failed",N)}finally{p(!1)}}},b=async x=>{x.preventDefault(),i(!0),await ge.entities.RecruiterPartnerApplication.create(o),n(!0),i(!1),window.scrollTo({top:0,behavior:"smooth"})};return t?r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-6 py-20",children:r.jsxs("div",{className:"max-w-lg text-center",children:[r.jsx(Ta,{className:"w-16 h-16 text-amber-500 mx-auto mb-6"}),r.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Application Received"}),r.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Thank you for applying to become an Independent Recruiting Partner with Lean Synergy Solutions. Our team will review your information and contact you if your background appears aligned with our current recruiting partner needs."})]})}):r.jsxs("div",{className:"bg-background text-foreground",children:[r.jsx("section",{className:"bg-[#0B1F33] text-white py-16 px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("p",{className:"text-amber-400 text-sm font-bold uppercase tracking-widest mb-3",children:"Now Accepting Applications"}),r.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold leading-tight mb-6",children:"Independent Recruiting Partner"}),r.jsxs("div",{className:"flex flex-wrap justify-center gap-4 text-sm text-white/70 mb-8",children:[r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx(Gr,{className:"w-4 h-4 text-amber-400"})," Independent Contractor · 1099"]}),r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx($a,{className:"w-4 h-4 text-amber-400"})," Remote, United States"]}),r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx(iM,{className:"w-4 h-4 text-amber-400"})," Commission-Based"]}),r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx(wn,{className:"w-4 h-4 text-amber-400"})," Candidate Sourcing & Recruiting Only"]})]}),r.jsx("button",{onClick:f,className:"bg-amber-500 hover:bg-amber-400 text-[#0B1F33] font-bold px-10 py-4 rounded text-sm uppercase tracking-wider transition-colors",children:"Apply Now →"})]})}),r.jsx("section",{className:"py-16 px-6 bg-white",children:r.jsxs("div",{className:"max-w-3xl mx-auto 
944space-y-10",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33] uppercase tracking-wide mb-3",children:"About Lean Synergy Solutions"}),r.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Lean Synergy Solutions is a veteran-owned recruiting and workforce solutions partner specializing where workforce shortages have real operational consequences — across Federal & Defense, Critical Infrastructure, Manufacturing, Healthcare Infrastructure, and a dedicated Veteran & Military-Affiliated talent network."})]}),r.jsx("hr",{className:"border-border"}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33] uppercase tracking-wide mb-3",children:"The Opportunity"}),r.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Join Lean Synergy Solutions as an Independent Recruiting Partner and focus on what you do best — finding, engaging, and qualifying great candidates. Business development, client acquisition, contract negotiation, and fee collection are handled by our team. This opportunity is designed for recruiters who enjoy identifying and qualifying talent while focusing exclusively on candidate recruitment and relationship building."})]}),r.jsx("hr",{className:"border-border"}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33] uppercase tracking-wide mb-4",children:"What You'll Do"}),r.jsx("ul",{className:"space-y-2",children:["Source qualified candidates through job boards, networking, referrals, social media, and direct outreach","Conduct candidate outreach and initial qualification conversations","Screen candidates for experience, skills, compensation expectations, and overall fit","Present qualified candidates for open searches","Maintain accurate candidate records and recruiting activity","Build and maintain talent pipelines within assigned industries and specialties","Collaborate with Lean Synergy Solutions team members throughout the recruitment process"].map((x,v)=>r.jsxs("li",{className:"flex items-start gap-2.5 text-sm text-muted-foreground leading-relaxed",children:[r.jsx("span",{className:"text-amber-500 font-bold mt-0.5",children:"·"})," ",x]},v))})]}),r.jsx("hr",{className:"border-border"}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33] uppercase tracking-wide mb-4",children:"What We Provide"}),r.jsx("ul",{className:"space-y-2",children:["Active job requisitions across multiple industries","Business development and client relationship management handled by our team","Candidate ownership tracking","ATS access and recruiting infrastructure","Marketing and employer branding support","Flexible work schedule and remote environment","Unlimited earning potential based on successful placements","Collaborative, low-politics recruiting environment"].map((x,v)=>r.jsxs("li",{className:"flex items-start gap-2.5 text-sm text-muted-foreground leading-relaxed",children:[r.jsx(Ta,{className:"w-4 h-4 text-amber-500 mt-0.5 flex-shrink-0"})," ",x]},v))})]}),r.jsx("hr",{className:"border-border"}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33] uppercase tracking-wide mb-4",children:"What We're Looking For"}),r.jsx("ul",{className:"space-y-2",children:["Previous recruiting, staffing, talent acquisition, or candidate sourcing experience preferred","Strong communication and relationship-building skills","Ability to work independently and manage recruiting activity","Professional follow-up and candidate engagement skills","Access to a computer, internet connection, and phone","Willingness to start with free tools before unlocking paid ones based on performance","Self-motivated, organized, and goal-oriented mindset"].map((x,v)=>r.jsxs("li",{className:"flex items-start gap-2.5 text-sm text-muted-foreground leading-relaxed",children:[r.jsx("span",{className:"text-amber-500 font-bold mt-0.5",children:"·"})," ",x]},v))})]}),r.jsx("hr",{className:"border-border"}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33] uppercase tracking-wide mb-4",children:"This May Not Be the Right Fit If You Prefer"}),r.jsx("ul",{className:"space-y-2",children:["Guaranteed salary or hourly compensation","Employee benef
944its, paid time off, or traditional employment arrangements","Highly structured work environments with daily supervision","Extensive hands-on training programs"].map((x,v)=>r.jsxs("li",{className:"flex items-start gap-2.5 text-sm text-muted-foreground leading-relaxed",children:[r.jsx("span",{className:"text-gray-400 font-bold mt-0.5",children:"—"})," ",x]},v))})]}),r.jsx("hr",{className:"border-border"}),r.jsx("p",{className:"text-sm text-muted-foreground italic",children:"Qualified veterans and military spouses are encouraged to apply."})]})}),r.jsx("section",{ref:e,className:"py-20 px-6 bg-white",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsx("h2",{className:"text-2xl font-bold text-[#0B1F33] mb-2",children:"Apply Now"}),r.jsx("div",{className:"w-12 h-1 bg-amber-500 mb-8"}),r.jsxs("form",{onSubmit:b,className:"space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:"Full Name *"}),r.jsx("input",{required:!0,value:o.full_name,onChange:x=>m("full_name",x.target.value),className:"w-full border border-border rounded px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400",placeholder:"Jane Smith"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:"Email Address *"}),r.jsx("input",{required:!0,type:"email",value:o.email,onChange:x=>m("email",x.target.value),className:"w-full border border-border rounded px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400",placeholder:"[email protected]"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:"Phone Number *"}),r.jsx("input",{required:!0,value:o.phone,onChange:x=>m("phone",x.target.value),className:"w-full border border-border rounded px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400",placeholder:"(555) 000-0000"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:"City and State"}),r.jsx("input",{value:o.city_state,onChange:x=>m("city_state",x.target.value),className:"w-full border border-border rounded px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400",placeholder:"San Antonio, TX"})]}),r.jsxs("div",{className:"md:col-span-2",children:[r.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:"LinkedIn Profile URL"}),r.jsx("input",{value:o.linkedin_url,onChange:x=>m("linkedin_url",x.target.value),className:"w-full border border-border rounded px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400",placeholder:"https://linkedin.com/in/yourprofile"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:"Recruiting Experience Level"}),r.jsxs("select",{value:o.experience_level,onChange:x=>m("experience_level",x.target.value),className:"w-full border border-border rounded px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400 bg-white",children:[r.jsx("option",{value:"",children:"Select..."}),["No experience","Less than 1 year","1–3 years","3–5 years","5+ years"].map(x=>r.jsx("option",{children:x},x))]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:"Recruiting Background"}),r.jsxs("select",{value:o.recruiting_background,onChange:x=>m("recruiting_background",x.target.value),className:"w-full border border-border rounded px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400 bg-white",children:[r.jsx("option",{value:"",children:"Select..."}),["Staffing agency","Corporate talent acquisition","Independent recruiter","Candidate sourcing","Sales/business development","Other"].map(x=>r.jsx("option",{children:x},x))]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold text-foreground mb-2",children:"Industries Recruited In"}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:xie.map(x=>r.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[r.jsx("input",{type:"checkbox",checked:o.industries.includes(x),onChange:()=>g(x),className:"w-4 h-4 accent-amber-500 rounded"}),r.jsx("span",{className:"text-sm text-muted-foreground",children:x})]},x))})]}),[{field:"comfortable_1099",label:"Do you understand this is a 1099 commission-only opportunity?",options:["Yes","No","I have questions"]},{field:"understands_no_benefits",label:"Do you understand this is not an employee position and does not include benefits?",options:["Yes","No"]},{field:"has_equipment",label:"Do you have access to a computer, internet, and ph
944one?",options:["Yes","No"]},{field:"willing_free_tools",label:"Are you willing to begin with free sourcing tools before paid tools are unlocked based on performance?",options:["Yes","No","I have questions"]}].map(({field:x,label:v,options:N})=>r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:v}),r.jsxs("select",{value:o[x],onChange:S=>m(x,S.target.value),className:"w-full border border-border rounded px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400 bg-white",children:[r.jsx("option",{value:"",children:"Select..."}),N.map(S=>r.jsx("option",{children:S},S))]})]},x)),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:"Briefly describe your recruiting experience"}),r.jsx("textarea",{value:o.recruiting_experience_description,onChange:x=>m("recruiting_experience_description",x.target.value),rows:4,className:"w-full border border-border rounded px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400 resize-none",placeholder:"Describe your recruiting background, industries you've worked in, types of roles, etc."})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:"Why are you interested in joining Lean Synergy Solutions as an Independent Recruiting Partner?"}),r.jsx("textarea",{value:o.why_interested,onChange:x=>m("why_interested",x.target.value),rows:4,className:"w-full border border-border rounded px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400 resize-none",placeholder:"Tell us what excites you about this opportunity..."})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:"Upload Resume *"}),r.jsx("input",{type:"file",accept:".pdf,.doc,.docx",onChange:j,className:"w-full text-sm text-muted-foreground file:mr-4 file:py-2 file:px-4 file:rounded file:border-0 file:text-xs file:font-bold file:bg-[#0B1F33] file:text-white hover:file:bg-[#0B1F33] cursor-pointer"}),h&&r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Uploading resume..."}),o.resume_url&&!h&&r.jsx("p",{className:"text-xs text-green-600 mt-1",children:"✓ Resume uploaded"}),!o.resume_url&&!h&&r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"A resume is required to submit your application."})]}),r.jsx("button",{type:"submit",disabled:s||h||!o.resume_url,className:"w-full bg-amber-500 hover:bg-amber-400 disabled:opacity-60 text-[#0B1F33] font-bold py-4 rounded uppercase tracking-wider text-sm transition-colors",children:s?"Submitting...":"Submit Application"})]})]})}),r.jsx("section",{className:"py-10 px-6 bg-gray-50 border-t border-border",children:r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed text-center",children:[r.jsx("strong",{children:"Contractor Disclosure:"})," This is an independent contractor 1099 opportunity. Independent Recruiting Partners are not employees of Lean Synergy Solutions and are not eligible for employee benef
944its, including health insurance, retirement plans, paid time off, or other employee programs."]})})}),r.jsxs("footer",{className:"bg-[#0B1F33] text-white/60 py-6 px-6 text-center text-sm",children:["© ",new Date().getFullYear()," Lean Synergy Solutions. All rights reserved. Veteran-Owned Business."]})]})}const vie=".pdf,.doc,.docx";function bie({onFile:e,uploading:t,parsing:n,hasResume:s}){const i=E.useRef(null),[o,l]=E.useState(!1),c=()=>{var m;return(m=i.current)==null?void 0:m.click()},d=m=>{var j;m.preventDefault(),l(!1);const g=(j=m.dataTransfer.files)==null?void 0:j[0];g&&e(g)},h=m=>{m.preventDefault(),l(!0)},p=m=>{m.preventDefault(),l(!1)},f=t||n;return r.jsxs("div",{role:"button",tabIndex:0,onClick:c,onKeyDown:m=>(m.key==="Enter"||m.key===" ")&&c(),onDrop:d,onDragOver:h,onDragLeave:p,className:`group relative flex flex-col items-center justify-center text-center cursor-pointer rounded-lg border-2 border-dashed p-6 transition-colors focus:outline-none focus:ring-2 focus:ring-amber-400 ${o?"border-amber-400 bg-amber-400/10":s?"border-emerald-500/60 bg-emerald-500/5":"border-white/25 bg-white/5 hover:border-amber-400/70 hover:bg-white/10"}`,children:[r.jsx("input",{ref:i,type:"file",accept:vie,className:"hidden",onChange:m=>{var j;const g=(j=m.target.files)==null?void 0:j[0];g&&e(g),m.target.value=""}}),f?r.jsxs(r.Fragment,{children:[r.jsx(mm,{className:"w-8 h-8 text-amber-400 animate-spin mb-2"}),r.jsx("p",{className:"text-sm font-semibold text-white",children:t?"Uploading résumé...":"Reading your résumé..."}),r.jsx("p",{className:"text-xs text-white/60 mt-1",children:"Please keep this tab open."})]}):s?r.jsxs(r.Fragment,{children:[r.jsx(Uu,{className:"w-8 h-8 text-emerald-400 mb-2"}),r.jsx("p",{className:"text-sm font-semibold text-white",children:"Résumé uploaded"}),r.jsx("p",{className:"text-xs text-white/60 mt-1",children:"Click or drop a new file to replace it."})]}):r.jsxs(r.Fragment,{children:[r.jsx(Q5,{className:"w-8 h-8 text-amber-400 mb-2 group-hover:scale-110 transition-transform"}),r.jsx("p",{className:"text-sm font-semibold text-white",children:"Drag & drop your résumé here"}),r.jsxs("p",{className:"text-xs text-white/60 mt-1",children:["or ",r.jsx("span",{className:"text-amber-400 underline underline-offset-2",children:"browse your files"})]}),r.jsx("p",{className:"text-xs text-white/40 mt-2",children:"Accepted formats: PDF, DOC, DOCX"})]})]})}const wie=["Less than 1 year","1–2 years","3–5 years","6–10 years","11–15 years","16+ years"],jie=["Permanent / Direct Hire","Contract","Full-Time","Part-Time"],Nie=["On-Site","Hybrid","Remote","Open to Any"],Sie=["Up to 25%","Up to 50%","Up to 75%","Up to 100%"],_ie=["Yes","No","Depends on Opportunity"],kie=["Yes","No","Depends on Opportunity"],Eie=["Immediately","Within 2 Weeks","Within 30 Days","Within 60 Days","60+ Days","Currently Employed / Exploring Opportunities"],Nv=["Yes","No"],YD=["New","Talent Pool","Contacted","Engaged","Not Currently Available","Do Not Contact","Archived"],Cie="I authorize Lean Synergy Solutions to maintain my résumé and the information I provide in its Talent Network and to contact me regarding current or future employment opportunities that may match my qualifications and preferences. I understand that joining the Talent Network is not an application for a specific position and does not guarantee employment or consideration for any particular opportunity.",Tie="Specialized Talent Network Notice v1.0",Aie={first_name:"",last_name:"",email:"",phone:"",city:"",state:"",zip:"",linkedin_url:"",current_job_title:"",primary_occupation:"",years_experience:"",skills:"",certifications:"",security_clearance:"",employment_types:[],opportunity_types:[],work_arrangement:"",travel_willingness:"",travel_percentage:"",relocation_willingness:"",oconus_interest:"",availability:"",desired_compensation:"",work_authorized:"",requires_sponsorship:"",veteran_status:"",veteran_branch:"",recruiting_connects:[],resume_url:"",how_heard:"",how_heard_other:"",consent_status:!1,marketing_consent:!1},Oie=["Mike Malinowsky","Rick Bullard","Alex Potgetter","Seth Bullard","Frank Hitchcock","Eddie Brock","Misty Duffney",'Jeremy "Monte" Montgomery',"Alexandra Montgomery","LinkedIn","Facebook","Instagram","Google","Allegiant Vets","7 Eagle Group","Best Military Resume","Frago 22","Lean Synergy Website","MilCruit","NASA","Veteran Social","Service to Success","A
944ctNow Education","Lean Alaska","Other"],Rie=["Electrician","HVAC & Refrigeration","IT & Network Technology","Manufacturing & Engineering","Welding","Pipefitting","Construction Supervision & Management","General / Open to Opportunities"],Pie={Electrician:["electrician"],"HVAC & Refrigeration":["hvac","refrigeration"],"IT & Network Technology":["it / network","it & network"],"Manufacturing & Engineering":["manufacturing","engineering"],Welding:["welding","welder"],Pipefitting:["pipefitting","pipefitter"],"Construction Supervision & Management":["construction supervision","construction management","construction supervisor"],"General / Open to Opportunities":["general"]};function Die(e,t){const n=new Set;for(const s of e){const i=Pie[s]||[];for(const o of t){const l=`${o.name||""} ${o.display_name||""}`.toLowerCase();i.some(c=>l.includes(c))&&n.add(o.id)}}return Array.from(n)}const Sv=[{key:"veterans",label:"Veterans",specialized:!1},{key:"military_spouses",label:"Military spouses",specialized:!1},{key:"disabled_veterans",label:"Disabled veterans",specialized:!0,disclosureType:"disabled_veteran",match:["disabled"]},{key:"blind_visually_impaired",label:"Blind or visually impaired professionals",specialized:!0,disclosureType:"blind",match:["blind"]}],Iie={disabled_veteran:`Lean Synergy Solutions is committed to expanding employment opportunities for qualified individuals with disabilities, including disabled veterans.
945
946Participation in this optional recruiting outreach program is completely voluntary. Information regarding disability or disabled-veteran status is requested solely in connection with LSS's voluntary recruiting and affirmative-action efforts intended to benefit individuals with disabilities.
947
948You are not required to provide this information. Choosing not to participate or declining to provide disability-related information will not adversely affect your consideration for other employment opportunities through Lean Synergy Solutions.
949
950Disability-related information voluntarily provided through this program will be kept confidential, maintained separately from general application information, and used only in accordance with applicable law.`,blind:`Lean Synergy Solutions is committed to expanding employment opportunities for qualified individuals with disabilities, including those who are blind or visually impaired.
951
952Participation in this optional recruiting outreach program is completely voluntary. Information regarding disability or blind/visually-impaired status is requested solely in connection with LSS's voluntary recruiting and affirmative-action efforts intended to benefit individuals with disabilities.
953
954You are not required to provide this information. Choosing not to participate or declining to provide disability-related information will not adversely affect your consideration for other employment opportunities through Lean Synergy Solutions.
955
956Disability-related information voluntarily provided through this program will be kept confidential, maintained separately from general application information, and used only in accordance with applicable law.`};function Lie(e,t){for(const n of t){const s=`${n.name||""} ${n.display_name||""}`.toLowerCase();if((e.match||[]).some(i=>s.includes(i)))return n}return null}function Pt({label:e,required:t,children:n,hint:s}){return r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-semibold text-white mb-1.5",children:[r.jsxs("span",{className:"block mb-1",children:[e," ",t&&r.jsx("span",{className:"text-amber-500","aria-hidden":"true",children:"*"}),t&&r.jsx("span",{className:"sr-only",children:"(required)"})]}),n]}),s&&r.jsx("p",{className:"text-xs text-white/60 mt-1",children:s})]})}const Kn="w-full bg-white text-[#0B1F33] border border-border rounded px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400 focus-visible:ring-2 focus-visible:ring-amber-400",os=`${Kn} bg-white`;function Mie({pools:e=[],onDone:t,onClose:n}){const[s,i]=E.useState(Aie),[o,l]=E.useState(!1),[c,d]=E.useState(!1),[h,p]=E.useState(!1),[f,m]=E.useState(!1),[g,j]=E.useState(""),[b,x]=E.useState(""),[v,N]=E.useState(Oie),[S,w]=E.useState(null);E.useEffect(()=>{let R=!1;return(async()=>{try{const U=await ge.entities.HowHeardOption.list("display_order",200);!R&&U&&U.length&&N(U.map($=>$.label))}catch{}})(),()=>{R=!0}},[]);const k=(R,U)=>i($=>({...$,[R]:U})),O=R=>i(U=>({...U,employment_types:U.employment_types.includes(R)?U.employment_types.filter($=>$!==R):[...U.employment_types,R]})),C=R=>i(U=>({...U,opportunity_types:U.opportunity_types.includes(R)?U.opportunity_types.filter($=>$!==R):[...U.opportunity_types,R]})),A=R=>i(U=>({...U,recruiting_connects:U.recruiting_connects.includes(R)?U.recruiting_connects.filter($=>$!==R):[...U.recruiting_connects,R]})),B=e.filter(R=>R.is_specialized),I=async(R,U)=>{const $=await ge.entities.CandidateSpecializedMembership.filter({candidate_id:R,specialized_pool_id:U.id,status:"active"});if($&&$.length>0)return;const Y=new Date;await ge.entities.CandidateSpecializedMembership.create({candidate_id:R,specialized_pool_id:U.id,specialized_pool_name:U.display_name,voluntary_opt_in:!0,opt_in_date:Y.toISOString(),opt_in_time:Y.toLocaleTimeString(),consent_version:Tie,enrollment_method:"Self-service web form",status:"active"})},L=async R=>{var $;if(!R)return;l(!0),d(!1),p(!1),j("");let U;
956try{U=(await ge.integrations.Core.UploadPrivateFile({file:R})).file_uri,k("resume_url",U)}catch{j("Resume upload failed. Please try again."),l(!1);return}l(!1),d(!0);try{const Y=await ge.functions.invoke("parseResumeForForm",{file_uri:U}),K=($=Y==null?void 0:Y.data)==null?void 0:$.output;K&&typeof K=="object"&&(i(Q=>{const q={...Q};return Object.keys(K).forEach(F=>{const P=K[F];P&&String(P).trim()&&!Q[F]&&(q[F]=String(P).trim())}),q}),p(!0))}catch{}finally{d(!1)}},D=async R=>{if(R.preventDefault(),s.opportunity_types.length===0){j("Please select at least one type of opportunity that interests you.");return}if(!s.consent_status){j("Please provide your consent to join the Talent Network.");return}if(!s.resume_url){j("A résumé is required to join the Talent Network.");return}m(!0),j(""),x("");try{const U=Die(s.opportunity_types,e),$=s.opportunity_types.map(G=>({tag_name:G,category:"Talent Pool Interest",evidence:"Selected by candidate on the Talent Network signup form",confidence:"high"})),Y=Sv.filter(G=>s.recruiting_connects.includes(G.key)).map(G=>({tag_name:G.label,category:G.specialized?"Specialized Network Opt-In":"Optional Employment Connection",evidence:"Selected by candidate on the Talent Network signup form",confidence:"high"})),K=Sv.filter(G=>G.specialized&&s.recruiting_connects.includes(G.key)).map(G=>Lie(G,B)).filter(Boolean),Q=s.veteran_branch?[{tag_name:s.veteran_branch,category:"Branch of Service",evidence:"Selected by candidate on the Talent Network signup form",confidence:"high"}]:[],q=[...$,...Y,...Q];let P=(await ge.entities.TalentCandidate.filter({email:s.email}))[0];if(P||(P=(await ge.entities.TalentCandidate.filter({phone:s.phone}))[0]),P){const G=new Set(P.talent_pool_ids||[]);U.forEach(ue=>G.add(ue));const te=new Set((P.assigned_tags||[]).map(ue=>(ue.tag_name||"").toLowerCase())),re=[...P.assigned_tags||[]];for(const ue of q){const ye=ue.tag_name.toLowerCase();te.has(ye)||(re.push(ue),te.add(ye))}await ge.entities.TalentCandidate.update(P.id,{duplicate_flag:!0,talent_pool_ids:Array.from(G),assigned_tags:re,veteran_status:s.veteran_status||P.veteran_status||"",duplicate_note:`New submission attempt on ${new Date().toLocaleString()} — email: ${s.email}, phone: ${s.phone}, opportunities: ${s.opportunity_types.join(", ")}.`});for(const ue of K)await I(P.id,ue);x("An existing Talent Network profile may already exist for this email address or phone number. Our team has been notified and will review your information. You do not need to submit again."),t({duplicate:!0});return}const V=new Date,{marketing_consent:W,...Z}=s,X={...Z,talent_pool_ids:U,assigned_tags:q,consent_date:V.toISOString(),joined_date:V.toISOString(),status:"New",analysis_status:"pending"},H=await ge.entities.TalentCandidate.create(X);for(const G of K)await I(H.id,G);t({duplicate:!1})}catch(U){j("Submission failed: "+(U.message||"Unknown error"))}finally{m(!1)}};return r.jsxs("form",{onSubmit:D,className:"space-y-5",children:[b&&r.jsx("div",{className:"bg-amber-50 border border-amber-300 rounded p-3 text-sm text-amber-800",role:"status",children:b}),h&&r.jsx("div",{className:"bg-emerald-50 border border-emerald-300 rounded p-3 text-sm text-emerald-800",role:"status",children:"We pulled the details we could from your résumé to save you time — please review and complete any remaining fields."}),r.jsx(Pt,{label:"Upload Résumé",required:!0,hint:"Upload your résumé first and we'll pre-fill the form for you. Accepted formats: PDF, DOC, DOCX",children:r.jsx(bie,{onFile:L,uploading:o,parsing:c,hasResume:!!s.resume_url})}),r.jsxs("fieldset",{className:"border border-white/15 rounded-lg p-4 bg-white/5",children:[r.jsxs("legend",{className:"text-sm font-bold text-white px-1",children:["What types of opportunities interest you? ",r.jsx("span",{className:"text-amber-500","aria-hidden":"true",children:"*"}),r.jsx("span",{className:"sr-only",children:"(required)"})]}),r.jsx("p",{className:"text-xs text-white/60 mt-1 mb-3",children:"Select all that apply. We'll include your profile in each corresponding talent pool."}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:Rie.map(R=>r.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded border border-white/20 bg-white hover:bg-amber-50 transition-colors",children:[r.jsx("input",{type:"checkbox",checked:s.opportunity_types.includes(R),onChange:()=>C(R),className:"w-4 h-4 accent-amber-500 rounded focus:ring-2 focus:ring-amber-400"}),r.jsx("span",{className:"text-sm text-[#0B1F33]",children:R})]},R))})]}),r.jsxs("div",{className:"grid grid-cols-1 gap-4",children:[r.jsx(Pt,{label:"How did you hear about us?",required:!0,children:r.jsxs("select",{required:!0,value:s.how_heard,onChange:R=>k("how_heard",R.target.value),className:os,children:[r.jsx("option",{value:"",children:"Select..."}),v.map(R=>r.jsx("option",{value:R,children:R},R))]})}),s.how_heard==="Other"&&r.jsx(Pt,{label:"Please specify",children:r.jsx("input",{value:s.how_heard_other,onChange:R=>k("how_heard_other",R.target.value),className:Kn,placeholder:"Tell us how you heard about us"})})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsx(Pt,{label:"First Name",required:!0,children:r.jsx("input",{required:!0,value:s.first_name,onChange:R=>k("first_name",R.target.value),className:Kn,placeholder:"Jane"})}),r.jsx(Pt,{label:"Last Name",required:!0,children:r.jsx("input",{required:!0,value:s.last_name,onChange:R=>k("last_name",R.target.value),className:Kn,placeholder:"Smith"})}),r.jsx(Pt,{label:"Email Address",required:!0,children:r.jsx("input",{required:!0,type:"email",value:s.email,onChange:R=>k("email",R.target.value),className:Kn,placeholder:"[email protected]"})}),r.jsx(Pt,{label:"Phone Number",required:!0,children:r.jsx("input",{required:!0,value:s.phone,onChange:R=>k("phone",R.target.value),className:Kn,placeholder:"(555) 000-0000"})}),r.jsx(Pt,{label:"City",required:!0,children:r.jsx("input",{required:!0,value:s.city,onChange:R=>k("city",R.target.value),className:Kn,placeholder:"San Antonio"})}),r.jsx(Pt,{label:"State",required:!0,children:r.jsx("input",{required:!0,value:s.state,onChange:R=>k("state",R.target.value),className:Kn,placeholder:"TX"})}),r.jsx(Pt,{label:"ZIP Code",children:r.jsx("input",{value:s.zip,onChange:R=>k("zip",R.target.value),className:Kn,placeholder:"78201"})}),r.jsx(Pt,{label:"LinkedIn Profile URL",children:r.jsx("input",{value:s.linkedin_url,onChange:R=>k("linkedin_url",R.target.value),className:Kn,placeholder:"https://linkedin.com/in/yourprofile"})})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsx(Pt,{label:"Current / Most Recent Job Title",required:!0,children:r.jsx("input",{required:!0,value:s.current_job_title,onChange:R=>k("current_job_title",R.target.value),className:Kn,placeholder:"Journeyman Electrician"})}),r.jsx(Pt,{label:"Primary Occupation / Profession",required:!0,children:r.jsx("input",{required:!0,value:s.primary_occupation,onChange:R=>k("primary_occupation",R.target.value),className:Kn,placeholder:"Electrician"})}),r.jsx(Pt,{label:"Years of Relevant Experience",required:!0,children:r.jsxs("select",{required:!0,value:s.years_experience,onChange:R=>k("years_experience",R.target.value),className:os,children:[r.jsx("option",{value:"",children:"Select..."}),wie.map(R=>r.jsx("option",{children:R},R))]})}),r.jsx(Pt,{label:"Current Security Clearance",required:!0,children:r.jsxs("select",{required:!0,value:s.security_clearance,onChange:R=>k("security_clearance",R.target.value),className:os,children:[r.jsx("option",{value:"",children:"Select..."}),r.jsx("option",{children:"None"}),r.jsx("option",{children:"Public Trust"}),r.jsx("option",{children:"Secret"}),r.jsx("option",{children:"Top Secret"}),r.jsx("option",{children:"TS/SCI"}),r.jsx("option",{children:"Interim"}),r.jsx("option",{children:"Previously held, now inactive or expired"})]})}),r.jsx(Pt,{label:"Key Skills",required:!0,children:r.jsx("input",{required:!0,value:s.skills,onChange:R=>k("skills",R.target.value),className:Kn,placeholder:"e.g. PLC, conduit bending, motor controls"})}),r.jsx(Pt,{label:"Certifications / Licenses",required:!0,children:r.jsx("input",{required:!0,value:s.certifications,onChange:R=>k("certifications",R.target.value),className:Kn,placeholder:"e.g. Journeyman License, OSHA 30"})})]}),r.jsxs("fieldset",{children:[r.jsxs("legend",{className:"block text-sm font-semibold text-white mb-2",children:["Preferred Employment Type ",r.jsx("span",{className:"text-amber-500","aria-hidden":"true",children:"*"})]}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2",children:jie.map(R=>r.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[r.jsx("input",{type:"checkbox",checked:s.employment_types.includes(R),onChange:()=>O(R),className:"w-4 h-4 accent-amber-500 rounded focus:ring-2 focus:ring-amber-400"}),r.jsx("span",{className:"text-sm text-white/70",children:R})]},R))})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsx(Pt,{label:"Preferred Work Arrangement",required:!0,children:r.jsxs("select",{required:!0,value:s.work_arrangement,onChange:R=>k("work_arrangement",R.target.value),className:os,children:[r.jsx("option",{value:"",children:"Select..."}),Nie.map(R=>r.jsx("option",{children:R},R))]})}),r.jsx(Pt,{label:"Availability",required:!0,children:r.jsxs("select",{required:!0,value:s.availability,onChange:R=>k("availability",R.target.value),className:os,children:[r.jsx("option",{value:"",children:"Select..."}),Eie.map(R=>r.jsx("option",{children:R},R))]})}),r.jsx(Pt,{label:"Willing to Relocate?",required:!0,children:r.jsxs("select",{required:!0,value:s.relocation_willingness,onChange:R=>k("relocation_willingness",R.target.value),className:os,children:[r.jsx("option",{value:"",children:"Select..."}),_ie.map(R=>r.jsx("option",{children:R},R))]})}),r.jsx(Pt,{label:"Willing to Travel?",required:!0,children:r.jsxs("select",{required:!0,value:s.travel_willingness,onChange:R=>k("travel_willingness",R.target.value),className:os,children:[r.jsx("option",{value:"",children:"Select..."}),Nv.map(R=>r.jsx("option",{children:R},R))]})}),s.travel_willingness==="Yes"&&r.jsx(Pt,{label:"Preferred Maximum Travel",children:r.jsxs("select",{value:s.travel_percentage,onChange:R=>k("travel_percentage",R.target.value),className:os,children:[r.jsx("option",{value:"",children:"Select..."}),Sie.map(R=>r.jsx("option",{children:R},R))]})}),r.jsx(Pt,{label:"Interested in Overseas / OCONUS Opportunities?",required:!0,children:r.jsxs("select",{required:!0,value:s.oconus_interest,onChange:R=>
956k("oconus_interest",R.target.value),className:os,children:[r.jsx("option",{value:"",children:"Select..."}),kie.map(R=>r.jsx("option",{children:R},R))]})}),r.jsx(Pt,{label:"Desired Compensation",required:!0,hint:"What compensation range would you consider for your next opportunity?",children:r.jsx("input",{required:!0,value:s.desired_compensation,onChange:R=>k("desired_compensation",R.target.value),className:Kn,placeholder:"e.g. $75k–$90k"})})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsx(Pt,{label:"Are you legally authorized to work in the United States?",required:!0,children:r.jsxs("select",{required:!0,value:s.work_authorized,onChange:R=>k("work_authorized",R.target.value),className:os,children:[r.jsx("option",{value:"",children:"Select..."}),Nv.map(R=>r.jsx("option",{children:R},R))]})}),r.jsx(Pt,{label:"Will you now or in the future require employer sponsorship for employment authorization?",required:!0,children:r.jsxs("select",{required:!0,value:s.requires_sponsorship,onChange:R=>k("requires_sponsorship",R.target.value),className:os,children:[r.jsx("option",{value:"",children:"Select..."}),Nv.map(R=>r.jsx("option",{children:R},R))]})})]}),r.jsxs("fieldset",{className:"border-2 border-blue-400/50 rounded-lg p-5 bg-blue-600/20 shadow-lg shadow-blue-500/10",children:[r.jsx("h3",{className:"text-base font-bold text-white",children:"Optional Employment Connections"}),r.jsx("p",{className:"text-sm text-white/80 mt-2 mb-4",children:"LSS welcomes candidates from all backgrounds and encourages qualified veterans and military spouses to apply for employment opportunities. We also offer voluntary employment connections for veterans, military spouses, disabled veterans, and blind or visually impaired professionals."}),r.jsx("p",{className:"text-sm text-white/80 mb-4",children:"Select any options that apply to you and that you'd like to participate in. You may leave this section blank."}),r.jsx("div",{className:"space-y-2",children:Sv.map(R=>{const U=s.recruiting_connects.includes(R.key),$=s.recruiting_connects.includes("veterans"),Y=U&&(R.key==="veterans"||R.key==="disabled_veterans"&&!$);return r.jsxs("div",{className:"flex items-start gap-3 p-2.5 rounded-lg border border-white/20 bg-white",children:[r.jsx("input",{type:"checkbox",checked:U,onChange:()=>A(R.key),className:"w-4 h-4 mt-0.5 accent-amber-500 rounded focus:ring-2 focus:ring-amber-400 flex-shrink-0"}),r.jsxs("div",{className:"flex-1 text-sm text-[#0B1F33]",children:[R.specialized?r.jsx("button",{type:"button",onClick:()=>w(R.disclosureType),className:"font-semibold text-amber-600 underline decoration-amber-500 underline-offset-2 hover:text-amber-500 focus:outline-none focus:ring-2 focus:ring-amber-400 rounded",children:R.label}):r.jsx("span",{className:"font-semibold text-[#0B1F33]",children:R.label}),Y&&r.jsxs("div",{className:"mt-2",children:[r.jsxs("label",{className:"block text-xs font-semibold text-[#0B1F33] mb-1",children:["Branch of Service ",r.jsx("span",{className:"text-white/40 font-normal",children:"(optional)"})]}),r.jsxs("select",{value:s.veteran_branch,onChange:K=>k("veteran_branch",K.target.value),className:"w-full sm:w-64 bg-white text-[#0B1F33] border border-border rounded px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400",children:[r.jsx("option",{value:"",children:"Select branch..."}),r.jsx("option",{children:"Army"}),r.jsx("option",{children:"Navy"}),r.jsx("option",{children:"Air Force"}),r.jsx("option",{children:"Marine Corps"}),r.jsx("option",{children:"Space Force"}),r.jsx("option",{children:"Coast Guard"}),r.jsx("option",{children:"National Guard/Reserve"})]})]})]})]},R.key)})})]}),r.jsx("fieldset",{className:"border border-white/15 rounded-lg p-3",children:r.jsxs("legend",{className:"flex items-start gap-3 cursor-pointer w-full",children:[r.jsx("input",{type:"checkbox",checked:s.consent_status,onChange:R=>k("consent_status",R.target.checked),className:"w-4 h-4 accent-amber-500 rounded mt-0.5 flex-shrink-0 focus:ring-2 focus:ring-amber-400"}),r.jsx("span",{className:"text-xs text-white/70 leading-snug",children:Cie})]})}),r.jsxs("label",{className:"flex items-start gap-3 cursor-pointer -mt-2 px-3",children:[r.jsx("input",{type:"checkbox",checked:s.marketing_consent,onChange:R=>k("marketing_consent",R.target.checked),className:"w-4 h-4 accent-amber-500 rounded mt-0.5 flex-shrink-0 focus:ring-2 focus:ring-amber-400"}),r.jsx("span",{className:"text-xs text-white/70 leading-snug",children:"I agree to re
956ceive email newsletters, job opportunity alerts, and recruiting updates from Lean Synergy Solutions. I understand that this consent is optional and that I may unsubscribe at any time."})]}),g&&r.jsx("div",{className:"bg-red-50 border border-red-300 rounded p-3 text-sm text-red-700",role:"alert",children:g}),r.jsx("button",{type:"submit",disabled:f||o||!s.resume_url||!s.consent_status,className:"w-full bg-amber-500 hover:bg-amber-400 disabled:opacity-60 disabled:cursor-not-allowed text-[#0B1F33] font-bold py-4 rounded uppercase tracking-wider text-sm transition-colors focus:outline-none focus:ring-2 focus:ring-amber-400 focus:ring-offset-2",children:f?"Submitting...":"Join the Talent Network"}),S&&r.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",role:"dialog","aria-modal":"true",children:r.jsxs("div",{className:"bg-white rounded-lg shadow-xl max-w-lg w-full max-h-[90vh] overflow-y-auto p-6",children:[r.jsx("h3",{className:"text-lg font-bold text-[#0B1F33]",children:"Voluntary Participation Notice"}),r.jsx("div",{className:"text-sm text-foreground/90 leading-relaxed space-y-3 mt-3",children:(Iie[S]||"").split(`
957
958`).map((R,U)=>r.jsx("p",{children:R},U))}),r.jsx("button",{type:"button",onClick:()=>w(null),className:"w-full mt-5 bg-[#0B1F33] hover:bg-[#0B1F33]/90 text-white font-bold py-3 rounded uppercase tracking-wider text-sm transition-colors focus:outline-none focus:ring-2 focus:ring-amber-400 focus:ring-offset-2",children:"Close"})]})})]})}function xT(){const[e,t]=E.useState([]),[n,s]=E.useState(!0),[i,o]=E.useState(!1);E.useEffect(()=>{(async()=>{try{const h=await ge.entities.TalentPool.list("display_order",100);t(h)}catch(h){console.error("Failed to load talent pools",h)}finally{s(!1)}})()},[]);const l=()=>{o(!0),window.scrollTo({top:0,behavior:"smooth"})},c=()=>{const d=document.getElementById("profile-heading");if(!d)return;const h=document.querySelector("header"),p=h?h.getBoundingClientRect().height:0,f=d.getBoundingClientRect().top+window.scrollY-p-12;window.scrollTo({top:f,behavior:"smooth"})};return r.jsxs("div",{className:"bg-background text-foreground",children:[r.jsx(v0,{}),r.jsxs("section",{className:"relative bg-[#0B1F33] text-white overflow-hidden",children:[r.jsx("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-cover opacity-40",children:r.jsx("source",{src:"https://media.base44.com/videos/public/6a1652b2216e8d40d018e580/c2c57c6dd_Talent_Network_Hero.mp4",type:"video/mp4"})}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#0B1F33]/70 via-[#0B1F33]/60 to-[#0B1F33]/85"}),r.jsxs("div",{className:"relative max-w-5xl mx-auto px-6 py-20 md:py-28 text-center",children:[r.jsxs("h1",{className:"text-4xl md:text-6xl font-extrabold leading-tight mb-6",children:["Join the Lean Synergy",r.jsx("br",{className:"hidden md:block"})," Solutions Talent Network"]}),r.jsx("p",{className:"text-white/80 leading-relaxed max-w-2xl md:max-w-3xl mx-auto text-base md:text-lg px-2",children:"We're building talent pools of qualified professionals for federal contract work and opportunities across the industries we serve. We're connecting with professionals in IT and network technology, electrical, HVAC and refrigeration, welding, pipefitting, and construction supervision, along with other skilled fields."}),r.jsx("p",{className:"text-white/80 leading-relaxed max-w-2xl md:max-w-3xl mx-auto text-base md:text-lg mt-4 px-2",children:"Upload your résumé and select one or more talent pools that match your experience. Our team will reach out when an opportunity aligns with your skills and interests."}),r.jsx("div",{className:"mt-10 flex flex-col sm:flex-row gap-4 justify-center",children:r.jsxs("button",{type:"button",onClick:c,className:"inline-flex items-center justify-center gap-2 bg-amber-500 hover:bg-amber-400 text-[#0B1F33] font-bold px-8 py-3.5 rounded uppercase tracking-wider text-sm transition-colors",children:[r.jsx(wn,{className:"w-4 h-4"})," Join Our Talent Network"]})})]})]}),r.jsx("section",{id:"join-form",className:"bg-[#0B1F33] py-14 px-6 scroll-mt-4",children:r.jsxs("div",{className:"max-w-2xl mx-auto",children:[r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{id:"profile-heading",className:"text-xl md:text-2xl font-extrabold text-white mb-3 scroll-mt-4",children:"Build Your LSS Talent Network Profile"}),r.jsx("p",{className:"text-white/80 leading-relaxed",children:"We're glad you're here. Tell us about your experience, interests, and what you're looking for in your next opportunity. Your profile helps our recruiting team connect you with opportunities that align with your skills and goals."}),r.jsx("p",{className:"text-sm text-amber-400 italic leading-snug mt-3",children:"Joining the LSS Talent Network is not an application for a specific position and does not guarantee employment or consideration for any particular opportunity."})]}),r.jsx("div",{className:"border border-white/10 rounded-lg shadow-sm bg-[#0B1F33] p-6 md:p-8",children:n?r.jsx("div",{className:"flex items-center justify-center py-12",children:r.jsx("div",{className:"w-8 h-8 border-4 border-white/20 border-t-amber-400 rounded-full animate-spin"})}):r.jsx(Mie,{pools:e,onDone:l})})]})}),r.jsx(b0,{}),i&&r.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60",role:"dialog","aria-modal":"true",children:r.jsxs("div",{className:"bg-white rounded-lg shadow-xl max-w-lg w-full p-8 text-center",children:[r.jsx(Ta,{className:"w-14 h-14 text-amber-500 mx-auto mb-4"}),r.jsx("h2",{className:"text-2xl font-extrabold text-[#0B1F33] mb-4",children:"You're In!"}),r.jsx("p",{className:"text-[#0B1F33]/80 leading-relaxed mb-6",children:"Thank y
958ou for joining the Lean Synergy Solutions Talent Network. Your information and résumé have been added to our Talent Network. Our recruiting team may contact you when an opportunity aligns with your background and preferences. You do not need to rejoin the Talent Network for every future opportunity."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[r.jsxs(Me,{to:"/jobs",className:"inline-flex items-center justify-center gap-2 bg-amber-500 hover:bg-amber-400 text-[#0B1F33] font-bold px-6 py-3 rounded uppercase tracking-wider text-sm transition-colors",children:[r.jsx(Ha,{className:"w-4 h-4"})," View Opportunities"]}),r.jsx("button",{type:"button",onClick:()=>o(!1),className:"inline-flex items-center justify-center gap-2 border border-[#0B1F33] text-[#0B1F33] hover:bg-[#0B1F33] hover:text-white font-bold px-6 py-3 rounded uppercase tracking-wider text-sm transition-colors",children:"Close"})]})]})})]})}function di({label:e,value:t,icon:n,onClick:s}){return r.jsxs("button",{onClick:s,className:"text-left bg-white border border-border rounded-lg p-4 hover:border-amber-400 hover:shadow-sm transition-all",children:[r.jsxs("div",{className:"flex items-center justify-between mb-2",children:[r.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:e}),n&&r.jsx("span",{className:"text-amber-500",children:n})]}),r.jsx("p",{className:"text-2xl font-bold text-[#0B1F33]",children:t})]})}function Fie({candidates:e,pools:t,onFilter:n}){const s=e.length,i=Date.now(),o=e.filter(f=>f.joined_date&&i-new Date(f.joined_date).getTime()<=7*864e5).length,l=e.filter(f=>f.joined_date&&i-new Date(f.joined_date).getTime()<=30*864e5).length,c=f=>e.filter(m=>(m.talent_pool_ids||[]).includes(f)).length,d=(f,m)=>e.filter(g=>g[f]===m).length,h=e.filter(f=>f.security_clearance&&f.security_clearance.toLowerCase()!=="none"&&f.security_clearance.trim()!=="").length,p=t.filter(f=>f.status==="active").sort((f,m)=>f.display_order-m.display_order).map(f=>({pool:f,count:c(f.id)}));return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33] mb-3",children:"Overview"}),r.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:[r.jsx(di,{label:"Total Candidates",value:s,icon:r.jsx(wn,{className:"w-4 h-4"}),onClick:()=>n({})}),r.jsx(di,{label:"New (7 days)",value:o,icon:r.jsx(ja,{className:"w-4 h-4"}),onClick:()=>n({})}),r.jsx(di,{label:"New (30 days)",value:l,icon:r.jsx(ja,{className:"w-4 h-4"}),onClick:()=>n({})}),r.jsx(di,{label:"Active Clearance",value:h,icon:r.jsx(Si,{className:"w-4 h-4"}),onClick:()=>n({clearance:"secret"})})]})]}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33] mb-3",children:"Talent Pools"}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:p.map(({pool:f,count:m})=>r.jsx(di,{label:f.display_name,value:m,onClick:()=>n({pool:f.id})},f.id))})]}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33] mb-3",children:"Availability & Mobility"}),r.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:[r.jsx(di,{label:"Available Now",value:d("availability","Immediately"),icon:r.jsx(Oa,{className:"w-4 h-4"}),onClick:()=>n({availability:"Immediately"})}),r.jsx(di,{label:"Willing to Relocate",value:d("relocation_willingness","Yes"),icon:r.jsx($a,{className:"w-4 h-4"}),onClick:()=>n({relocation:"Yes"})}),r.jsx(di,{label:"Willing to Travel",value:d("travel_willingness","Yes"),icon:r.jsx(kv,{className:"w-4 h-4"}),onClick:()=>n({travel:"Yes"})}),r.jsx(di,{label:"OCONUS Interested",value:d("oconus_interest","Yes"),icon:r.jsx(kv,{className:"w-4 h-4"}),onClick:()=>n({oconus:"Yes"})})]})]})]})}function _a(e){return e==null?"":String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function vT(e){if(!e)return"N/A";const t=new Date(e);return isNaN(t.getTime())?_a(e):t.toLocaleString()}function jt(e,t){return`
959    <tr>
960      <td class="label">${_a(e)}</td>
961      <td>${_a(t??"N/A")}</td>
962    </tr>`}function ra(e,t){return`
963    <section>
964      <h2>${_a(e)}</h2>
965      ${t}
966    </section>`}function KD(e,t=[]){if(!e)return;const n=`${e.first_name||""} ${e.last_name||""}`.trim()||"Unknown Candidate",s=c=>{var d;return((d=t.find(h=>h.id===c))==null?void 0:d.display_name)||c};let i="";i+=ra("Contact & Location",`
967    <table class="kv">
968      ${jt("Full Name",n)}
969      ${jt("Email",e.email)}
970      ${jt("Phone",e.phone)}
971      ${jt("City",e.city)}
972      ${jt("State",e.state)}
973      ${jt("ZIP",e.zip)}
974      ${jt("LinkedIn Profile",e.linkedin_url)}
975    </table>
975`),i+=ra("Experience & Skills",`
976    <table class="kv">
977      ${jt("Current / Recent Job Title",e.current_job_title)}
978      ${jt("Primary Occupation",e.primary_occupation)}
979      ${jt("Years of Experience",e.years_experience)}
980      ${jt("Key Skills",e.skills)}
981      ${jt("Certifications / Licenses",e.certifications)}
982      ${jt("Security Clearance",e.security_clearance)}
983    </table>`),i+=ra("Work Preferences",`
984    <table class="kv">
985      ${jt("Preferred Employment Type",(e.employment_types||[]).join(", "))}
986      ${jt("Work Arrangement",e.work_arrangement)}
987      ${jt("Availability",e.availability)}
988      ${jt("Willing to Travel",e.travel_willingness)}
989      ${jt("Preferred Max Travel",e.travel_percentage)}
990      ${jt("Willing to Relocate",e.relocation_willingness)}
991      ${jt("OCONUS Interest",e.oconus_interest)}
992      ${jt("Desired Compensation",e.desired_compensation)}
993    </table>`),i+=ra("Work Authorization",`
994    <table class="kv">
995      ${jt("Authorized to Work in US",e.work_authorized)}
996      ${jt("Requires Sponsorship",e.requires_sponsorship)}
997    </table>`),(e.veteran_branch||e.veteran_mos)&&(i+=ra("Military Career Information",`
998      <table class="kv">
999        ${jt("Branch of Service",e.veteran_branch)}
1000        ${jt("Military Specialty (MOS / AFSC / Rating)",e.veteran_mos)}
1001      </table>`)),i+=ra("Talent Network Membership",`
1002    <table class="kv">
1003      ${jt("Talent Pool(s)",(e.talent_pool_ids||[]).map(s).join(", "))}
1004      ${jt("Status",e.status||"New")}
1005      ${jt("Consent Status",e.consent_status?"Granted":"Not granted")}
1006      ${jt("Consent Date",vT(e.consent_date))}
1007      ${jt("Date Joined",e.joined_date?new Date(e.joined_date).toLocaleDateString():"N/A")}
1008      ${jt("Duplicate Flag",e.duplicate_flag?"Yes":"No")}
1009      ${e.duplicate_note?jt("Duplicate Note",e.duplicate_note):""}
1010    </table>`),e.resume_url&&(i+=ra("Résumé",`<p class="resume-link">Résumé on file. Link: ${_a(e.resume_url)}</p>`));const o=`<!DOCTYPE html>
1011<html lang="en">
1012<head>
1013  <meta charset="utf-8" />
1014  <title>${_a(n)} — Talent Network Profile</title>
1015  <style>
1016    * { box-sizing: border-box; }
1017    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: #1a1a1a; margin: 0; padding: 40px; line-height: 1.5; }
1018    .doc-header { border-bottom: 3px solid #0B1F33; padding-bottom: 16px; margin-bottom: 24px; }
1019    .doc-header .brand { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #0B1F33; margin: 0 0 4px; }
1020    .doc-header h1 { font-size: 22px; margin: 0 0 4px; color: #0B1F33; }
1021    .doc-header .meta { font-size: 12px; color: #666; margin: 0; }
1022    section { margin-bottom: 24px; page-break-inside: avoid; }
1023    h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #0B1F33; border-bottom: 1px solid #e2e8f0; padding-bottom: 6px; margin: 0 0 12px; }
1024    table.kv { width: 100%; border-collapse: collapse; }
1025    table.kv td { padding: 6px 10px; vertical-align: top; font-size: 13px; border-bottom: 1px solid #f1f5f9; }
1026    table.kv td.label { width: 38%; font-weight: 600; color: #475569; background: #f8fafc; }
1027    p { font-size: 13px; white-space: pre-wrap; margin: 0; }
1028    .resume-link { word-break: break-all; color: #0B1F33; }
1029    .footer { margin-top: 32px; padding-top: 12px; border-top: 1px solid #e2e8f0; font-size: 11px; color: #94a3b8; text-align: center; }
1030    @media print { body { padding: 20px; } }
1031  </style>
1032</head>
1033<body>
1034  <div class="doc-header">
1035    <p class="brand">Lean Synergy Solutions</p>
1036    <h1>Talent Network Profile</h1>
1037    <p class="meta">${_a(n)} · Generated ${vT(new Date)}</p>
1038  </div>
1039  ${i}
1040  <div class="footer">Lean Synergy Solutions — Confidential Candidate Information</div>
1041  <script>
1042    window.onload = function () { window.print(); };
1043  <\/script>
1044</body>
1045</html>`,l=window.open("","_blank","width=820,height=900");if(!l){alert("Please allow pop-ups to print the candidate profile.");return}l.document.open(),l.document.write(o),l.document.close()}function Tt({label:e,value:t}){return r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-baseline gap-1 sm:gap-3 py-1.5 border-b border-border last:border-0",children:[r.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground sm:w-48 flex-shrink-0",children:e}),r.jsx("span",{className:"text-sm text-foreground break-words",children:t||"—"})]})}function Bie({candidate:e,pools:t,onClose:n,onChanged:s,authorizedSpecialized:i}){const[o,l]=E.useState([]),[c,d]=E.useState(""),[h,p]=E.useState(e.status||"New"),[f,m]=E.useState(e.talent_pool_ids||[]),[g,j]=E.useState(!1),[b,x]=E.useState([]),[v,N]=E.useState(!1),[,
1045S]=E.useReducer(D=>D+1,0);E.useEffect(()=>{(async()=>{try{const R=await ge.entities.CandidateNote.filter({candidate_id:e.id},"-created_date",200);l(R)}catch(R){console.error(R)}})()},[e.id]),E.useEffect(()=>{if(!i){x([]);return}(async()=>{try{const R=await ge.entities.CandidateSpecializedMembership.filter({candidate_id:e.id},"-opt_in_date",100);x(R)}catch(R){console.error(R)}})()},[e.id,i]);const w=D=>m(R=>R.includes(D)?R.filter(U=>U!==D):[...R,D]),k=async()=>{j(!0);try{await ge.entities.TalentCandidate.update(e.id,{status:h}),e.status=h,s==null||s(),Ne.success("Status updated")}catch(D){Ne.error("Failed: "+D.message)}finally{j(!1)}},O=async()=>{j(!0);try{await ge.entities.TalentCandidate.update(e.id,{talent_pool_ids:f}),e.talent_pool_ids=f,s==null||s(),Ne.success("Talent pools updated")}catch(D){Ne.error("Failed: "+D.message)}finally{j(!1)}},C=async()=>{if(c.trim())try{const D=await ge.auth.me().catch(()=>null),R=await ge.entities.CandidateNote.create({candidate_id:e.id,note_text:c.trim(),created_by_name:(D==null?void 0:D.full_name)||(D==null?void 0:D.email)||"Admin"});l(U=>[R,...U]),d(""),Ne.success("Note added")}catch(D){Ne.error("Failed: "+D.message)}},A=async D=>{if(window.confirm("Delete this note?"))try{await ge.entities.CandidateNote.delete(D),l(R=>R.filter(U=>U.id!==D))}catch(R){Ne.error("Failed: "+R.message)}},B=async D=>{if(window.confirm(`Withdraw this candidate's voluntary membership in ${D.specialized_pool_name}? Their general profile is preserved.`))try{await ge.entities.CandidateSpecializedMembership.update(D.id,{status:"withdrawn",withdrawal_date:new Date().toISOString(),withdrawal_reason:"Removed at candidate request (admin)"}),x(R=>R.filter(U=>U.id!==D.id)),s==null||s(),Ne.success("Specialized membership withdrawn")}catch(R){Ne.error("Failed: "+R.message)}},I=async()=>{N(!0);try{await ge.functions.invoke("analyzeCandidateResume",{candidate_id:e.id});const D=await ge.entities.TalentCandidate.get(e.id);Object.assign(e,D),S(),s==null||s(),Ne.success("Re-analysis complete")}catch(D){Ne.error("Re-analysis failed: "+(D.message||"Unknown error"))}finally{N(!1)}},L=(e.assigned_tags||[]).filter(D=>D.category==="Specialized Network Opt-In");return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3 pb-4 border-b border-border",children:[r.jsxs("div",{children:[r.jsxs("h3",{className:"text-xl font-bold text-[#0B1F33]",children:[e.first_name," ",e.last_name]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.primary_occupation||e.current_job_title||"—"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Be,{variant:e.duplicate_flag?"destructive":"secondary",children:e.duplicate_flag?"Possible Duplicate":e.status||"New"}),r.jsxs(xe,{size:"sm",variant:"outline",onClick:()=>KD(e,t),title:"Print or Save as PDF",children:[r.jsx(gd,{className:"w-4 h-4"})," ",r.jsx("span",{className:"ml-1 hidden sm:inline",children:"Download"})]}),e.resume_url&&r.jsx(td,{resumeUrl:e.resume_url,size:"sm",variant:"outline",showLabel:!0,label:"Résumé"})]})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-[#0B1F33] mb-2",children:"Contact & Location"}),r.jsx(Tt,{label:"Email",value:e.email}),r.jsx(Tt,{label:"Phone",value:e.phone}),r.jsx(Tt,{label:"City",value:e.city}),r.jsx(Tt,{label:"State",value:e.state}),r.jsx(Tt,{label:"ZIP",value:e.zip}),r.jsx(Tt,{label:"LinkedIn",value:e.linkedin_url?r.jsx("a",{href:e.linkedin_url,target:"_blank",rel:"noreferrer",className:"text-amber-600 underline",children:e.linkedin_url}):""}),r.jsx(Tt,{label:"How Did You Hear About Us",value:e.how_heard}),e.how_heard_other&&r.jsx(Tt,{label:"How Heard (Other)",value:e.how_heard_other})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-[#0B1F33] mb-2",children:"Experience & Skills"}),r.jsx(Tt,{label:"Current / Recent Title",value:e.current_job_title}),r.jsx(Tt,{label:"Primary Occupation",value:e.primary_occupation}),r.jsx(Tt,{label:"Years Experience",value:e.years_experience}),r.jsx(Tt,{label:"Key Skills",value:e.skills}),r.jsx(Tt,{label:"Certifications",value:e.certifications}),r.jsx(Tt,{label:"Security Clearance",value:e.security_clearance})]}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-2",children:[r.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-[#0B1F33]",children:"AI Tags"}),r.jsxs(xe,{size:"sm",variant:"outline",onClick:I,disabled:v,children:[r.jsx(Ql,{className:`w-3.5 h-3.5 ${v?"animate-spin":""}`}),v?"Analyzing...":"Re-analyze"]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-3",children:[r.jsx(Be,{variant:e.anal
1045ysis_status==="analyzed"?"secondary":e.analysis_status==="failed"?"destructive":"outline",className:"text-[10px]",children:e.analysis_status||"pending"}),e.taxonomy_version&&r.jsxs("span",{className:"text-xs text-muted-foreground",children:["Taxonomy: ",e.taxonomy_version]}),e.last_analyzed&&r.jsxs("span",{className:"text-xs text-muted-foreground",children:["Last: ",new Date(e.last_analyzed).toLocaleString()]})]}),(e.assigned_tags||[]).filter(D=>D.category!=="Specialized Network Opt-In").length>0?r.jsx("div",{className:"space-y-2",children:(e.assigned_tags||[]).filter(D=>D.category!=="Specialized Network Opt-In").map((D,R)=>r.jsxs("div",{className:"border border-border rounded p-2 bg-gray-50",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx(Be,{variant:"outline",className:"text-xs",children:D.tag_name}),r.jsx("span",{className:"text-xs text-muted-foreground",children:D.category}),r.jsx(Be,{variant:"outline",className:`text-[10px] ${D.confidence==="high"?"bg-green-100 text-green-800":D.confidence==="medium"?"bg-yellow-100 text-yellow-800":""}`,children:D.confidence})]}),D.evidence&&r.jsxs("p",{className:"text-xs text-muted-foreground italic",children:['"',D.evidence,'"']})]},R))}):r.jsx("p",{className:"text-sm text-muted-foreground",children:"No tags assigned yet."}),e.resume_text&&r.jsxs("details",{className:"mt-3",children:[r.jsx("summary",{className:"text-xs font-semibold text-muted-foreground cursor-pointer",children:"View extracted resume text"}),r.jsx("div",{className:"mt-2 max-h-60 overflow-y-auto bg-gray-50 border border-border rounded p-3",children:r.jsx("p",{className:"text-xs text-muted-foreground whitespace-pre-wrap",children:e.resume_text})})]})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-[#0B1F33] mb-2",children:"Work Preferences"}),r.jsx(Tt,{label:"Employment Type",value:(e.employment_types||[]).join(", ")}),r.jsx(Tt,{label:"Work Arrangement",value:e.work_arrangement}),r.jsx(Tt,{label:"Availability",value:e.availability}),r.jsx(Tt,{label:"Travel",value:e.travel_willingness+(e.travel_percentage?` (${e.travel_percentage})`:"")}),r.jsx(Tt,{label:"Relocation",value:e.relocation_willingness}),r.jsx(Tt,{label:"OCONUS Interest",value:e.oconus_interest}),r.jsx(Tt,{label:"Desired Compensation",value:e.desired_compensation})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-[#0B1F33] mb-2",children:"Work Authorization"}),r.jsx(Tt,{label:"Authorized to Work in US",value:e.work_authorized}),r.jsx(Tt,{label:"Requires Sponsorship",value:e.requires_sponsorship})]}),(e.veteran_branch||e.veteran_mos)&&r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-[#0B1F33] mb-2",children:"Military Career Information (Optional)"}),r.jsx(Tt,{label:"Branch of Service",value:e.veteran_branch}),r.jsx(Tt,{label:"Military Specialty",value:e.veteran_mos})]}),i?(b.length>0||L.length>0)&&r.jsxs("div",{className:"border-2 border-amber-300 rounded-lg p-4 bg-amber-50",children:[r.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-[#0B1F33] mb-2 flex items-center gap-2",children:"Specialized Talent Network Memberships (Restricted)"}),L.length>0&&r.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:L.map((D,R)=>r.jsx(Be,{variant:"outline",className:"text-xs bg-amber-100 border-amber-300 text-[#0B1F33]",children:D.tag_name},R))}),r.jsx("div",{className:"space-y-2",children:b.map(D=>r.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 border-b border-amber-200 last:border-0 pb-2 last:pb-0",children:[r.jsxs("div",{className:"text-sm",children:[r.jsx("p",{className:"font-semibold text-[#0B1F33]",children:D.specialized_pool_name}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Voluntarily opted in: ",D.opt_in_date?new Date(D.opt_in_date).toLocaleString():"—"," · ",D.consent_version||"—"]}
1045)]}),r.jsxs(xe,{size:"sm",variant:"outline",onClick:()=>B(D),children:[r.jsx(nA,{className:"w-4 h-4"})," Withdraw"]})]},D.id))})]}):r.jsxs("div",{className:"border border-border rounded-lg p-3 bg-gray-50 flex items-center gap-2 text-xs text-muted-foreground",children:[r.jsx(ac,{className:"w-4 h-4"})," Specialized Talent Network membership information is restricted to authorized personnel."]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-[#0B1F33] mb-2",children:"Consent"}),r.jsx(Tt,{label:"Consent Status",value:e.consent_status?"Granted":"Not granted"}),r.jsx(Tt,{label:"Consent Date",value:e.consent_date?new Date(e.consent_date).toLocaleString():"—"}),r.jsx(Tt,{label:"Date Joined",value:e.joined_date?new Date(e.joined_date).toLocaleDateString():"—"}),e.duplicate_note&&r.jsx(Tt,{label:"Duplicate Note",value:e.duplicate_note})]}),r.jsxs("div",{className:"border border-border rounded-lg p-4 bg-gray-50",children:[r.jsx("h4",{className:"text-sm font-bold text-[#0B1F33] mb-3",children:"Candidate Status"}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[r.jsx("select",{value:h,onChange:D=>p(D.target.value),className:"flex-1 border border-border rounded px-3 py-2 text-sm bg-white",children:YD.map(D=>r.jsx("option",{children:D},D))}),r.jsx(xe,{onClick:k,disabled:g||h===e.status,children:"Update Status"})]})]}),r.jsxs("div",{className:"border border-border rounded-lg p-4 bg-gray-50",children:[r.jsx("h4",{className:"text-sm font-bold text-[#0B1F33] mb-3",children:"Talent Pool Memberships"}),r.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:t.map(D=>r.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm",children:[r.jsx("input",{type:"checkbox",checked:f.includes(D.id),onChange:()=>w(D.id),className:"w-4 h-4 accent-amber-500 rounded"}),r.jsx("span",{children:D.display_name})]},D.id))}),r.jsx(xe,{onClick:O,disabled:g,children:"Save Memberships"})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-[#0B1F33] mb-2",children:"Internal Notes (not visible to candidate)"}),r.jsxs("div",{className:"flex gap-2 mb-3",children:[r.jsx(Yt,{value:c,onChange:D=>d(D.target.value),rows:2,placeholder:"Add an internal note...",className:"flex-1"}),r.jsxs(xe,{onClick:C,className:"self-start",children:[r.jsx(xs,{className:"w-4 h-4"})," Add"]})]}),r.jsxs("div",{className:"space-y-2 max-h-60 overflow-y-auto",children:[o.length===0&&r.jsx("p",{className:"text-sm text-muted-foreground",children:"No notes yet."}),o.map(D=>r.jsxs("div",{className:"border border-border rounded p-3 bg-white",children:[r.jsxs("div",{className:"flex items-start justify-between gap-2",children:[r.jsx("p",{className:"text-sm text-foreground whitespace-pre-wrap flex-1",children:D.note_text}),r.jsx("button",{onClick:()=>A(D.id),className:"text-muted-foreground hover:text-red-500 flex-shrink-0",children:r.jsx(ws,{className:"w-4 h-4"})})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[D.created_by_name," · ",new Date(D.created_date).toLocaleString()]})]},D.id))]})]})]})}const as="border border-border rounded px-2 py-1.5 text-sm bg-white";function Uie({candidates:e,pools:t,externalFilter:n,onArchived:s,authorizedSpecialized:i}){const[o,l]=E.useState(""),[c,d]=E.useState(""),[h,p]=E.useState(""),[f,m]=E.useState(""),[g,j]=E.useState(""),[b,x]=E.useState(""),[v,N]=E.useState(""),[S,w]=E.useState(""),[k,O]=E.useState(""),[C,A]=E.useState(""),[B,I]=E.useState(""),[L,D]=E.useState(""),[R,U]=E.useState(null);E.useEffect(()=>{n&&(n.pool&&d(n.pool),n.status&&A(n.status),n.availability&&j(n.availability),n.travel&&x(n.travel),n.relocation&&N(n.relocation),n.oconu
1045s&&w(n.oconus),n.clearance&&O(n.clearance),n.years&&I(n.years))},[n]);const $=q=>{var F;return((F=t.find(P=>P.id===q))==null?void 0:F.display_name)||q},Y=E.useMemo(()=>e.filter(q=>q.status!=="Archived").filter(q=>{var Te,ie,De,Ye,He,ce,he;const F=o.toLowerCase(),P=!F||`${q.first_name} ${q.last_name}`.toLowerCase().includes(F)||((Te=q.email)==null?void 0:Te.toLowerCase().includes(F))||((ie=q.primary_occupation)==null?void 0:ie.toLowerCase().includes(F))||((De=q.current_job_title)==null?void 0:De.toLowerCase().includes(F))||((Ye=q.skills)==null?void 0:Ye.toLowerCase().includes(F))||((He=q.city)==null?void 0:He.toLowerCase().includes(F)),V=!c||(q.talent_pool_ids||[]).includes(c),W=!h||((ce=q.state)==null?void 0:ce.toLowerCase())===h.toLowerCase(),Z=!f||((he=q.primary_occupation)==null?void 0:he.toLowerCase().includes(f.toLowerCase())),X=!g||q.availability===g,H=!b||q.travel_willingness===b,G=!v||q.relocation_willingness===v,te=!S||q.oconus_interest===S,re=!k||(q.security_clearance||"").toLowerCase().includes(k.toLowerCase()),ue=!C||q.status===C,ye=!B||q.years_experience===B,be=!L||q.analysis_status===L;return P&&V&&W&&Z&&X&&H&&G&&te&&re&&ue&&ye&&be}).sort((q,F)=>new Date(F.joined_date||0)-new Date(q.joined_date||0)),[e,o,c,h,f,g,b,v,S,k,C,B,L]),K=()=>{l(""),d(""),p(""),m(""),j(""),x(""),N(""),w(""),O(""),A(""),I(""),D("")},Q=async q=>{if(window.confirm(`Archive ${q.first_name} ${q.last_name}?`))try{await ge.entities.TalentCandidate.update(q.id,{status:"Archived"}),Ne.success("Candidate archived"),s==null||s()}catch(F){Ne.error("Failed: "+F.message)}};return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"bg-white border border-border rounded-lg p-4 space-y-3",children:[r.jsxs("div",{className:"relative",children:[r.jsx(Ha,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),r.jsx(Se,{value:o,onChange:q=>l(q.target.value),placeholder:"Search name, email, occupation, skills, city...",className:"pl-9"})]}),r.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-2",children:[r.jsxs("select",{value:c,onChange:q=>d(q.target.value),className:as,children:[r.jsx("option",{value:"",children:"All Pools"}),t.map(q=>r.jsx("option",{value:q.id,children:q.display_name},q.id))]}),r.jsx("input",{value:h,onChange:q=>p(q.target.value),placeholder:"State",className:as}),r.jsx("input",{value:f,onChange:q=>m(q.target.value),placeholder:"Occupation",className:as}),r.jsxs("select",{value:B,onChange:q=>I(q.target.value),className:as,children:[r.jsx("option",{value:"",children:"Any Experience"}),r.jsx("option",{children:"Less than 1 year"}),r.jsx("option",{children:"1–2 years"}),r.jsx("option",{children:"3–5 years"}),r.jsx("option",{children:"6–10 years"}),r.jsx("option",{children:"11–15 years"}),r.jsx("option",{children:"16+ years"})]}),r.jsxs("select",{value:g,onChange:q=>j(q.target.value),className:as,children:[r.jsx("option",{value:"",children:"Any Availability"}),r.jsx("option",{children:"Immediately"}),r.jsx("option",{children:"Within 2 Weeks"}),r.jsx("option",{children:"Within 30 Days"}),r.jsx("option",{children:"Within 60 Days"}),r.jsx("option",{children:"60+ Days"}),r.jsx("option",{children:"Currently Employed / Exploring Opportunities"})]}),r.jsxs("select",{value:b,onChange:q=>x(q.target.value),className:as,children:[r.jsx("option",{value:"",children:"Any Travel"}),r.jsx("option",{children:"Yes"}),r.jsx("option",{children:"No"})]}),r.jsxs("select",{value:v,onChange:q=>N(q.target.value),className:as,children:[r.jsx("option",{value:"",children:"Any Relocation"}),r.jsx("option",{children:"Yes"}),r.jsx("option",{children:"No"}),r.jsx("option",{children:"Depends on Opportunity"})]}),r.jsxs("select",{value:S,onChange:q=>w(q.target.value),className:as,children:[r.jsx("option",{value:"",children:"Any OCONUS"}),r.jsx("option",{children:"Yes"}),r.jsx("option",{children:"No"}),r.jsx("option",{children:"Depends on Opportunity"})]}),r.jsx("input",{value:k,onChange:q=>O(q.target.value),placeholder:"Clearance",className:as}),r.jsxs("select",{value:C,onChange:q=>A(q.target.value),className:as,children:[r.jsx("option",{value:"",children:"Any Status"}),YD.map(q=>r.jsx("option",{children:q},q))]}),r.jsxs("select",{value:L,onChange:q=>D(q.target.value),className:as,children:[r.jsx("option",{value:"",children:"Any Analysis"}),r.jsx("option",{value:"pending",children:"Pending"}),r.jsx("option",{value:"analyzed",children:"Analyzed"}),r.jsx("option",{value:"failed",children:"Failed"})]}),r.jsx(xe,{variant:"outline",onClick:K,children:"Clear"})]}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[Y.length," candidate",Y.length!==1?"s":""," (archived hidden)"]}
1045)]}),r.jsx("div",{className:"bg-white border border-border rounded-lg overflow-x-auto",children:r.jsxs(qs,{children:[r.jsx(Vs,{children:r.jsxs(Zt,{children:[r.jsx(Ue,{children:"Name"}),r.jsx(Ue,{children:"Occupation"}),r.jsx(Ue,{children:"Talent Pool(s)"}),r.jsx(Ue,{children:"City, State"}),r.jsx(Ue,{children:"Exp"}),r.jsx(Ue,{children:"Availability"}),r.jsx(Ue,{children:"Travel"}),r.jsx(Ue,{children:"Relocation"}),r.jsx(Ue,{children:"Clearance"}),r.jsx(Ue,{children:"Joined"}),r.jsx(Ue,{children:"Status"}),r.jsx(Ue,{children:"Crelate"}),r.jsx(Ue,{children:"AI Tags"}),r.jsx(Ue,{className:"text-right",children:"Actions"})]})}),r.jsxs($s,{children:[Y.length===0&&r.jsx(Zt,{children:r.jsx(Le,{colSpan:14,className:"text-center text-muted-foreground py-8",children:"No candidates match your filters."})}),Y.map(q=>r.jsxs(Zt,{className:"cursor-pointer hover:bg-amber-50/60 transition-colors",onClick:()=>U(q),children:[r.jsxs(Le,{className:"font-medium",children:[q.first_name," ",q.last_name,q.duplicate_flag&&r.jsx(Be,{variant:"destructive",className:"ml-2 text-[10px]",children:"DUP"})]}),r.jsx(Le,{className:"text-sm",children:q.primary_occupation||"—"}),r.jsx(Le,{className:"text-xs",children:(q.talent_pool_ids||[]).map($).join(", ")||"—"}),r.jsxs(Le,{className:"text-sm",children:[q.city,", ",q.state]}),r.jsx(Le,{className:"text-sm",children:q.years_experience||"—"}),r.jsx(Le,{className:"text-xs",children:q.availability||"—"}),r.jsx(Le,{className:"text-sm",children:q.travel_willingness||"—"}),r.jsx(Le,{className:"text-sm",children:q.relocation_willingness||"—"}),r.jsx(Le,{className:"text-xs",children:q.security_clearance||"—"}),r.jsx(Le,{className:"text-xs",children:q.joined_date?new Date(q.joined_date).toLocaleDateString():"—"}),r.jsx(Le,{children:r.jsx(Be,{variant:"secondary",children:q.status||"New"})}),r.jsx(Le,{className:"text-xs",children:q.crelate_status==="sent"?r.jsxs("div",{className:"flex flex-col gap-0.5",children:[r.jsx(Be,{variant:"secondary",className:"bg-green-100 text-green-800 text-[10px] w-fit",children:"Sent"}),r.jsx("span",{className:"text-[10px] text-muted-foreground",children:q.crelate_sent_at?new Date(q.crelate_sent_at).toLocaleDateString():""})]}):q.crelate_status==="failed"?r.jsx(Be,{variant:"destructive",className:"text-[10px] w-fit",children:"Failed"}):r.jsx(Be,{variant:"outline",className:"text-[10px] w-fit text-muted-foreground",children:"Pending"})}),r.jsx(Le,{className:"text-xs",onClick:F=>F.stopPropagation(),children:q.analysis_status==="analyzed"?r.jsxs("div",{className:"flex flex-col gap-0.5",children:[r.jsxs(Be,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-[10px] w-fit",children:[(q.assigned_tags||[]).length," tag",(q.assigned_tags||[]).length!==1?"s":""]}),r.jsxs("div",{className:"flex flex-wrap gap-0.5 max-w-[120px]",children:[(q.assigned_tags||[]).slice(0,3).map((F,P)=>r.jsx("span",{className:"text-[9px] bg-gray-100 px-1 py-0.5 rounded truncate",children:F.tag_name},P)),(q.assigned_tags||[]).length>3&&r.jsxs("span",{className:"text-[9px] text-muted-foreground",children:["+",(q.assigned_tags||[]).length-3]})]})]}):q.analysis_status==="failed"?r.jsx(Be,{variant:"destructive",className:"text-[10px] w-fit",children:"Failed"}):r.jsx(Be,{variant:"outline",className:"text-[10px] w-fit text-muted-foreground",children:"Pending"})}),r.jsx(Le,{className:"text-right",onClick:F=>F.stopPropagation(),children:r.jsxs("div",{className:"flex items-center justify-end gap-1",children:[r.jsx(xe,{size:"icon",variant:"ghost",onClick:()=>U(q),title:"View Profile",children:r.jsx(Aa,{className:"w-4 h-4"})}),r.jsx(xe,{size:"icon",variant:"ghost",onClick:()=>KD(q,t),title:"Print / Save as PDF",children:r.jsx(gd,{className:"w-4 h-4"})}),q.resume_url&&r.jsx(td,{resumeUrl:q.resume_url,size:"icon",variant:"ghost",title:"Résumé"}),r.jsx(xe,{size:"icon",variant:"ghost",onClick:()=>Q(q),title:"Archive",children:r.jsx(Is,{className:"w-4 h-4"})})]})})]},q.id))]})]})}),r.jsx(ki,{open:!!R,onOpenChange:q=>!q&&U(null),children:r.jsx(Ys,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:R&&r.jsxs(r.Fragment,{children:[r.jsx(Ks,{children:r.jsx(Js,{className:"text-[#0B1F33]",children:"Candidate Profile"})}),r.jsx(Bie,{candidate:R,pools:t,onClose:()=>U(null),authorizedSpecialized:i})]})})})]})}const _v={name:"",display_name:"",short_description:"",long_description:"",status:"active",is_public:!0,display_order:99,icon:"",is_specialized:!1};function qie({pools:e,candidates:t,onChanged:n}){const[s,i]=E.useState(null),[o,l]=E.useState(_v),[c,d]=E.useState(!1),h=x=>t.filter(v=>(v.talent_pool_ids||[]).includes(x)).length,p=()=>{l(_v),i("new")},f=x=>{l({..._v,...x}),i(x.id)},m=async x=>{if(x.preventDefault(),!o.name||!o.display_name||!o.short_description){Ne.error("Internal name, display name, and short description are required");return}d(!0);try{s==="new"?(await ge.entities.TalentPool.create(o),Ne.success("Talent pool created")):(await ge.entities.TalentPool.update(s,o),Ne.success("Talent pool updated")),i(null),n==null||n()}catch(v){Ne.error("Failed: "+v.message)}finally{d(!1)}},g=async x=>
1045{const v=x.status==="active"?"inactive":"active";try{await ge.entities.TalentPool.update(x.id,{status:v}),Ne.success(v==="active"?"Pool reactivated":"Pool deactivated"),n==null||n()}catch(N){Ne.error("Failed: "+N.message)}},j=async(x,v)=>{const N=[...e].sort((k,O)=>k.display_order-O.display_order),S=N.findIndex(k=>k.id===x.id),w=N[S+v];if(w)try{await ge.entities.TalentPool.update(x.id,{display_order:w.display_order}),await ge.entities.TalentPool.update(w.id,{display_order:x.display_order}),n==null||n()}catch(k){Ne.error("Failed: "+k.message)}},b=[...e].sort((x,v)=>x.display_order-v.display_order);return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33]",children:"Talent Pools"}),r.jsxs(xe,{onClick:p,children:[r.jsx(xs,{className:"w-4 h-4"})," New Talent Pool"]})]}),s&&r.jsxs("form",{onSubmit:m,className:"bg-white border border-border rounded-lg p-5 space-y-4",children:[r.jsx("h3",{className:"font-bold text-[#0B1F33]",children:s==="new"?"Create Talent Pool":"Edit Talent Pool"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold mb-1",children:"Internal Name *"}),r.jsx(Se,{value:o.name,onChange:x=>l({...o,name:x.target.value}),placeholder:"e.g. Electrician",required:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold mb-1",children:"Public Display Name *"}),r.jsx(Se,{value:o.display_name,onChange:x=>l({...o,display_name:x.target.value}),placeholder:"e.g. Electrician Talent Network",required:!0})]}),r.jsxs("div",{className:"md:col-span-2",children:[r.jsx("label",{className:"block text-sm font-semibold mb-1",children:"Short Description *"}),r.jsx(Yt,{value:o.short_description,onChange:x=>l({...o,short_description:x.target.value}),rows:2,required:!0})]}),r.jsxs("div",{className:"md:col-span-2",children:[r.jsx("label",{className:"block text-sm font-semibold mb-1",children:"Long Description (optional)"}),r.jsx(Yt,{value:o.long_description,onChange:x=>l({...o,long_description:x.target.value}),rows:3})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold mb-1",children:"Display Order"}),r.jsx(Se,{type:"number",value:o.display_order,onChange:x=>l({...o,display_order:Number(x.target.value)})})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold mb-1",children:"Icon / Image URL (optional)"}),r.jsx(Se,{value:o.icon,onChange:x=>l({...o,icon:x.target.value}),placeholder:"https://..."})]}),r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[r.jsxs("select",{value:o.status,onChange:x=>l({...o,status:x.target.value}),className:"border border-border rounded px-2 py-1.5 bg-white",children:[r.jsx("option",{value:"active",children:"Active"}),r.jsx("option",{value:"inactive",children:"Inactive"})]}),r.jsx("span",{children:"Status"})]}),r.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[r.jsx("input",{type:"checkbox",checked:o.is_public,onChange:x=>l({...o,is_public:x.target.checked}),className:"w-4 h-4 accent-amber-500 rounded"}),r.jsx("span",{children:"Public on website"})]}),r.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[r.jsx("input",{type:"checkbox",checked:!!o.is_specialized,onChange:x=>l({...o,is_specialized:x.target.checked}),className:"w-4 h-4 accent-amber-500 rounded"}),r.jsx("span",{children:"Specialized (disability-related)"})]})]})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(xe,{type:"submit",disabled:c,children:c?"Saving...":"Save"}),r.jsx(xe,{type:"button",variant:"outline",onClick:()=>i(null),children:"Cancel"})]})]}),r.jsx("div",{className:"bg-white border border-border rounded-lg overflow-x-auto",children:r.jsxs("table",{className:"w-full text-sm",children:[r.jsx("thead",{className:"bg-gray-50 border-b border-border",children:r.jsxs("tr",{children:[r.jsx("th",{className:"text-left p-3 font-semibold",children:"Order"}),r.jsx("th",{className:"text-left p-3 font-semibold",children:"Internal Name"}),r.jsx("th",{className:"text-left p-3 font-semibold",children:"Public Display Name"}),r.jsx("th",{className:"text-left p-3 font-semibold",children:"Status"}),r.jsx("th",{className:"text-left p-3 font-semibold",children:"Visibility"}),r.jsx("th",{className:"text-left p-3 font-semibold",children:"Candidates"}),r.jsx("th",{className:"text-left p-3 font-semibold",children:"Created"}),r.jsx("th",{className:"text-right p-3 font-semibold",children:"Actions"})]})}),r.jsx("tbody",{children:b.map((x,v)=>r.jsxs("tr",{className:"border-b border-border last:border-0",children:[r.jsx("td",{className:"p-3",children:r.jsxs("div",{className:"flex gap-1",children:[r.jsx("button",{onClick:()=>j(x,-1),disabled:v===0,className:"text-muted-foreground hover:text-amber-500 disabled:opacity-30",children:r.jsx(qT,{className:"w-4 h-4"})}),r.jsx("button",{onClick:()=>j(x,1),disabled:v===b.length-1,className:"text-muted-foreground hover:text-amber-500 disabled:opacity-30",children:r.jsx(UT,{className:"w-4 h-4"})})]})}),r.jsxs("td",{className:"p-3 font-medium",children:[x.name,x.is_specialized&&r.jsx(Be,{variant:"secondary",className:"ml-2 text-[10px]",children:"SPECIALIZED"})]}),r.jsx("td",{className:"p-3",children:x.display_name}),r.jsx("td",{className:"p-3",children:r.jsx(Be,{variant:x.status==="active"?"default":"secondary",children:x.status})}),r.jsx("td",{className:"p-3",children:x.is_public?"Public":"Internal"}),r.jsx("td",{className:"p-3",children:h(x.id)}),r.jsx("td",{className:"p-3 text-xs",children:x.created_date?new Date(x.created_date).toLocaleDateString():"—"}),r.jsx("td",{className:"p-3 text-right",children:r.jsxs("div",{className:"flex items-center justify-end gap-1",children:[r.jsx(xe,{size:"icon",variant:"ghost",onClick:()=>f(x),title:"Edit",children:r.jsx(wa,{className:"w-4 h-4"})}),r.jsx(xe,{size:"icon",variant:"ghost",onClick:()=>g(x),title:x.status==="active"?"Deactivate":"Reactivate",children:r.jsx(ZM,{className:"w-4 h-4"})})]})})]},x.id))})]})})]})}const Vie=[{id:"daily",label:"Daily"},{id:"weekly",label:"Weekly"},{id:"monthly",label:"Monthly"},{id:"custom",label:"Custom"}];function bT(e){const t=new Date,n=new Date(t);n.setHours(23,59,59,999);const s=new Date(t);return s.setHours(0,0,0,0),e==="daily"||(e==="weekly"?s.setDate(s.getDate()-6):e==="monthly"&&(s.setMonth(s.getMonth()-1),s.setDate(s.getDate()+1))),{start:s,end:n}}function dh(e){return`${e.getFullYear()}
1045-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function $ie(e){if(e==null)return"";const t=String(e);return/[",\n]/.test(t)?`"${t.replace(/"/g,'""')}"`:t}function zie({candidates:e,pools:t}){const[n,s]=E.useState("weekly"),i=E.useMemo(()=>bT("weekly"),[]),[o,l]=E.useState(dh(i.start)),[c,d]=E.useState(dh(i.end)),h=E.useMemo(()=>{const x={};return t.forEach(v=>{x[v.id]=v.display_name||v.name}),x},[t]),p=x=>{if(s(x),x!=="custom"){const{start:v,end:N}=bT(x);l(dh(v)),d(dh(N))}},f=E.useMemo(()=>{const x=new Date(o+"T00:00:00"),v=new Date(c+"T23:59:59");return e.filter(N=>{if(!N.joined_date)return!1;const S=new Date(N.joined_date);return S>=x&&S<=v}).sort((N,S)=>new Date(S.joined_date)-new Date(N.joined_date))},[e,o,c]),m=x=>x?new Date(x).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"",g=()=>{const x=["First Name","Last Name","Phone","Email","How Did You Hear About Us","Network Joined","Tags Assigned","Date Joined"],v=f.map(O=>{const C=(O.talent_pool_ids||[]).map(I=>h[I]).filter(Boolean).join("; "),A=(O.assigned_tags||[]).map(I=>I.tag_name).join("; "),B=[O.how_heard,O.how_heard_other].filter(Boolean).join(" — ");return[O.first_name||"",O.last_name||"",O.phone||"",O.email||"",B,C,A,O.joined_date?m(O.joined_date):""]}),N=[x,...v].map(O=>O.map($ie).join(",")).join(`
1046`),S=new Blob([N],{type:"text/csv;charset=utf-8;"}),w=URL.createObjectURL(S),k=document.createElement("a");k.href=w,k.download=`candidate-report_${o}_to_${c}.csv`,document.body.appendChild(k),k.click(),document.body.removeChild(k),URL.revokeObjectURL(w)},j=x=>String(x||"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),b=()=>{const x=window.open("","_blank","width=1100,height=750");if(!x)return;const v=f.map((N,S)=>{const w=(N.talent_pool_ids||[]).map(C=>h[C]).filter(Boolean).join(", "),k=(N.assigned_tags||[]).map(C=>C.tag_name).join(", "),O=[N.how_heard,N.how_heard_other].filter(Boolean).join(" — ");return`<tr>
1047        <td class="rn">${S+1}</td>
1048        <td>${j(N.first_name)} ${j(N.last_name)}</td>
1049        <td>${j(N.phone)}</td>
1050        <td>${j(N.email)}</td>
1051        <td>${j(O)}</td>
1052        <td>${j(w)}</td>
1053        <td>${j(k)}</td>
1054        <td>${N.joined_date?m(N.joined_date):""}</td>
1055      </tr>`}).join("");x.document.write(`<!DOCTYPE html><html><head><title>Standing Candidate Report</title>
1056      <style>
1057        body { font-family: 'Inter', Arial, sans-serif; margin: 24px; color: #0B1F33; }
1058        h2 { font-size: 18px; margin: 0 0 4px; }
1059        .meta { font-size: 12px; color: #64748b; margin: 0 0 16px; }
1060        table { border-collapse: collapse; width: 100%; font-size: 12px; }
1061        th, td { border: 1px solid #cbd5e1; padding: 5px 8px; text-align: left; vertical-align: top; }
1062        th { background: #f1f5f9; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #475569; }
1063        .rn { text-align: center; color: #94a3b8; width: 36px; background: #f8fafc; font-variant-numeric: tabular-nums; }
1064        tbody tr:nth-child(even) { background: #f8fafc; }
1065        @media print { body { margin: 12px; } }
1066      </style></head><body>
1067      <h2>Standing Candidate Report</h2>
1068      <p class="meta">${m(o)} — ${m(c)} · ${f.length} candidate${f.length!==1?"s":""}</p>
1069      <table>
1070        <thead><tr>
1071          <th class="rn">#</th><th>Name</th><th>Phone</th><th>Email</th><th>How Heard</th><th>Network Joined</th><th>Tags Assigned</th><th>Date Joined</th>
1072        </tr></thead>
1073        <tbody>${v||'<tr><td colspan="8" style="text-align:center;color:#94a3b8;padding:24px">No candidates in this date range.</td></tr>'}</tbody>
1074      </table>
1075      </body></html>`),x.document.close(),x.focus(),setTimeout(()=>x.print(),300)};return r.jsx("div",{className:"bg-white border border-border rounded-lg p-5",children:r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Kr,{className:"w-5 h-5 text-[#0B1F33]"}),r.jsx("h3",{className:"text-base font-bold text-[#0B1F33]",children:"Standing Candidate Report"})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(xe,{onClick:b,disabled:f.length===0,variant:"outline",className:"border-[#0B1F33] text-[#0B1F33] hover:bg-[#0B1F33]/5",children:[r.jsx(gd,{className:"w-4 h-4"})," Print"]}),r.jsxs(xe,{onClick:g,disabled:f.length===0,className:"bg-[#0B1F33] text-white hover:bg-[#0B1F33]/90",children:[r.jsx(Yr,{className:"w-4 h-4"})," Export CSV"]})]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[r.jsx("div",{className:"flex gap-1.5",children:Vie.map(x=>r.jsx("button",{onClick:()=>p(x.id),className:`px-4 py-1.5 rounded-full text-xs font-semibold transition-colors ${n===x.id?"bg-[#0B1F33] text-white":"bg-secondary text-secondary-foreground hover:bg-secondary/80"}`,children:x.label},x.id))}),r.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[r.jsx($T,{className:"w-4 h-4 text-muted-foreground"}),r.jsx("input",{type:"date",value:o,onChange:x=>{s("custom"),l(x.target.value)},className:"border border-input rounded-md px-2 py-1 text-sm bg-background"}),r.jsx("span",{className:"text-muted-foreground",children:"to"}),r.jsx("input",{type:"date",value:c,onChange:x=>{s("custom"),d(x.target.value)},className:"border border-input rounded-md px-2 py-1 text-sm bg-background"})]}),r.jsxs("span",{className:"text-sm text-muted-foreground ml-auto",children:[f.length," candidate",f.length!==1?"s":""," in range"]})]}),r.jsx("div",{className:"overflow-x-auto border border-slate-300 rounded-md bg-white",children:r.jsxs("table",{className:"w-full text-sm border-collapse",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"bg-slate-100 text-left text-xs font-bold text-slate-600 uppercase tracking-wide border-b border-slate-300",children:[r.jsx("th",{className:"px-2 py-2 text-center border-r border-slate-300 text-slate-400 w-10",children:"#"}),r.jsx("th",{className:"px-3 py-2 border-r border-slate-300",children:"Name"}),r.jsx("th",{className:"px-3 py-2 border-r border-slate-300",children:"Phone"}),r.jsx("th",{className:"px-3 py-2 border-r border-slate-300",children:"Email"}),r.jsx("th",{className:"px-3 py-2 border-r border-slate-300",children:"How Heard"}),r.jsx("th",{className:"px-3 py-2 border-r border-slate-300",children:"Network Joined"}),r.jsx("th",{className:"px-3 py-2 border-r border-slate-300",children:"Tags Assigned"}),r.jsx("th",{className:"px-3 py-2",children:"Date Joined"})]})}),r.jsx("tbody",{children:f.length===0?r.jsx("tr",{children:r.jsx("td",{colSpan:8,className:"px-3 py-8 text-center text-muted-foreground border-t border-slate-300",children:"No candidates j
1075oined in this date range."})}):f.map((x,v)=>{const N=(x.talent_pool_ids||[]).map(k=>h[k]).filter(Boolean).join(", "),S=(x.assigned_tags||[]).map(k=>k.tag_name),w=[x.how_heard,x.how_heard_other].filter(Boolean).join(" — ");return r.jsxs("tr",{className:`border-t border-slate-200 hover:bg-amber-50/40 ${v%2===1?"bg-slate-50/60":""}`,children:[r.jsx("td",{className:"px-2 py-2 text-center text-slate-400 text-xs border-r border-slate-200 tabular-nums",children:v+1}),r.jsxs("td",{className:"px-3 py-2 font-medium text-[#0B1F33] whitespace-nowrap border-r border-slate-200",children:[x.first_name," ",x.last_name]}),r.jsx("td",{className:"px-3 py-2 text-slate-600 whitespace-nowrap border-r border-slate-200 tabular-nums",children:x.phone||"—"}),r.jsx("td",{className:"px-3 py-2 text-slate-600 whitespace-nowrap border-r border-slate-200",children:x.email||"—"}),r.jsx("td",{className:"px-3 py-2 text-slate-600 border-r border-slate-200",children:w||"—"}),r.jsx("td",{className:"px-3 py-2 text-slate-600 border-r border-slate-200",children:N||"—"}),r.jsx("td",{className:"px-3 py-2 border-r border-slate-200",children:S.length===0?r.jsx("span",{className:"text-slate-300",children:"—"}):r.jsx("div",{className:"flex flex-wrap gap-1",children:S.map((k,O)=>r.jsx("span",{className:"inline-block bg-amber-100 text-amber-800 text-xs px-1.5 py-0.5 rounded border border-amber-200",children:k},O))})}),r.jsx("td",{className:"px-3 py-2 text-slate-600 whitespace-nowrap tabular-nums",children:m(x.joined_date)})]},x.id)})})]})})]})})}function Hie({candidates:e,pools:t}){const n=E.useMemo(()=>t.map(d=>({name:d.display_name,count:e.filter(h=>(h.talent_pool_ids||[]).includes(d.id)).length})).sort((d,h)=>h.count-d.count),[e,t]),s=E.useMemo(()=>{const d={};return e.forEach(h=>{const p=h.primary_occupation||"Unspecified";d[p]=(d[p]||0)+1}),Object.entries(d).map(([h,p])=>({name:h,count:p})).sort((h,p)=>p.count-h.count)}
1075,[e]),i=E.useMemo(()=>{const d={};return e.forEach(h=>{const p=h.state||"Unspecified";d[p]=(d[p]||0)+1}),Object.entries(d).map(([h,p])=>({name:h,count:p})).sort((h,p)=>p.count-h.count)},[e]),o=E.useMemo(()=>{const d={};return e.forEach(h=>{const p=h.availability||"Unspecified";d[p]=(d[p]||0)+1}),Object.entries(d).map(([h,p])=>({name:h,count:p})).sort((h,p)=>p.count-h.count)},[e]),l=E.useMemo(()=>{const d={};return e.forEach(h=>{if(!h.joined_date)return;const p=new Date(h.joined_date),f=`${p.getFullYear()}-${String(p.getMonth()+1).padStart(2,"0")}`;d[f]=(d[f]||0)+1}),Object.entries(d).map(([h,p])=>({name:h,count:p})).sort((h,p)=>h.name.localeCompare(p.name))},[e]),c=({title:d,rows:h})=>r.jsxs("div",{className:"bg-white border border-border rounded-lg p-4",children:[r.jsx("h3",{className:"text-sm font-bold text-[#0B1F33] mb-3",children:d}),h.length===0?r.jsx("p",{className:"text-sm text-muted-foreground",children:"No data yet."}):r.jsx("div",{className:"space-y-1.5 max-h-64 overflow-y-auto",children:h.map(p=>r.jsxs("div",{className:"flex items-center justify-between text-sm",children:[r.jsx("span",{className:"text-muted-foreground",children:p.name}),r.jsx("span",{className:"font-semibold text-[#0B1F33]",children:p.count})]},p.name))})]});return r.jsxs("div",{className:"space-y-4",children:[r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33]",children:"Reports"}),r.jsx(zie,{candidates:e,pools:t}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[r.jsx(c,{title:"Candidates by Talent Pool",rows:n}),r.jsx(c,{title:"Candidates by Occupation",rows:s}),r.jsx(c,{title:"Candidates by State",rows:i}),r.jsx(c,{title:"Candidates by Availability",rows:o}),r.jsx(c,{title:"Candidates by Month Joined",rows:l}),r.jsx(c,{title:"Talent Pool Growth",rows:l})]})]})}const Sl="border border-border rounded px-2 py-1.5 text-sm bg-white";function Wie({specializedPools:e,candidates:t,memberships:n,grants:s,isAuthorized:i,currentUser:o,onChanged:l}){var Q;const[c,d]=E.useState(((Q=e[0])==null?void 0:Q.id)||""),[h,p]=E.useState(""),[f,m]=E.useState(""),[g,j]=E.useState(""),[b,x]=E.useState(""),[v,N]=E.useState(""),[S,w]=E.useState(""),[k,O]=E.useState(""),[C,A]=E.useState(""),B=E.useMemo(()=>{const q={};return t.forEach(F=>{q[F.id]=F}),q},[t]),I=E.useMemo(()=>n.filter(q=>q.status==="active"),[n]),L=e.find(q=>q.id===c)||e[0],D=E.useMemo(()=>L?I.filter(q=>q.specialized_pool_id===L.id).map(q=>({membership:q,candidate:B[q.candidate_id]})).filter(q=>q.candidate).filter(q=>{var re,ue,ye,be,Te,ie;const F=q.candidate,P=h.toLowerCase(),V=!P||`${F.first_name} ${F.last_name}`.toLowerCase().includes(P)||((re=F.email)==null?void 0:re.toLowerCase().includes(P))||((ue=F.primary_occupation)==null?void 0:ue.toLowerCase().includes(P))||((ye=F.skills)==null?void 0:ye.toLowerCase().includes(P))||((be=F.city)==null?void 0:be.toLowerCase().includes(P)),W=!f||((Te=F.state)==null?void 0:Te.toLowerCase())===f.toLowerCase(),Z=!g||((ie=F.primary_occupation)==null?void 0:ie.toLowerCase().includes(g.toLowerCase())),X=!b||F.years_experience===b,H=!v||F.availability===v,G=!S||F.travel_willingness===S,te=!k||(F.security_clearance||"").toLowerCase().includes(k.toLowerCase());return V&&W&&Z&&X&&H&&G&&te}).sort((q,F)=>new Date(F.membership.opt_in_date||0)-new Date(q.membership.opt_in_date||0)):[],[L,I,B,h,f,g,b,v,S,k]),R=q=>{const F=Date.now();return I.filter(P=>P.specialized_pool_id===q&&P.opt_in_date&&F-new Date(P.opt_in_date).getTime()<=7*864e5).length},U=async q=>{if(window.confirm(`Remove ${q.candidate.first_name} ${q.candidate.last_name} from the ${L.display_name}? Their general Talent Network profile will be preserved.`))try{await ge.entities.CandidateSpecializedMembership.update(q.membership.id,{status:"withdrawn",withdrawal_date:new Date().toISOString(),withdrawal_reason:"Removed at candidate request (admin)"}),Ne.success("Membership withdrawn — general profile preserved"),l==null||l()}catch(F){Ne.error("Failed: "+F.message)}},$=async q=>{q.preventDefault();const F=C.trim().toLowerCase();if(F){if(s.some(P=>{var V;return((V=P.user_email)==null?void 0:V.toLowerCase())===F})){Ne.error("That user is already authorized");return}try{await ge.entities.SpecializedAccessGrant.create({user_email:F,granted_by:(o==null?void 0:o.email)||"admin",granted_date:new Date().toISOString()}),A(""),Ne.success("Access granted"),l==null||l()}catch(P){Ne.error("Failed: "+P.message)}}},Y=async q=>{if(window.confirm(`Revoke specialized access for ${q.user_email}?`))try{await ge.entities.SpecializedAccessGrant.delete(q.id),l==null||l()}catch(F){Ne.error("Failed: "+F.message)}},K=()=>{p(""),m(""),j(""),x(""),N(""),w(""),O("")};return i?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(gm,{className:"w-5 h-5 text-amber-500"}),r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33]",children:"Specialized Talent Networks"}),r.jsx(Be,{variant:"secondary",className:"text-[10px]",children:"RESTRICTED"})]}),r.jsxs("div",{className:"bg-white border border-border rounded-lg p-4",children:[r.jsx("h3",{className:"text-sm font-bold text-[#0B1F33] mb-3",children:"Authorized Personnel — View Sensitive Talent Network Membership"}),r.jsxs("form",{onSubmit:$,className:"flex gap-2 mb-3",children:[r.jsx(Se,{type:"email",value:C,onChange:q=>A(q.target.value),placeholder:"[email protected]",className:"max-w-xs"}),r.jsxs(xe,{type:"submit",children:[r.jsx(ja,{className:"w-4 h-4"})," Grant Access"]})]}),r.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.length===0&&r.jsx("p",{className:"text-xs text-muted-foreground",children:"No access grants yet. Any admin can currently view this area until grants are configured."}),s.map(q=>r.jsxs("span",{className:"inline-flex items-center gap-2 bg-gray-100 border border-border rounded-full pl-3 pr-1 py-1 text-xs",children:[q.user_email,r.jsx("button",{onClick:()=>Y(q),className:"text-muted-foreground hover:text-red-500","aria-label":`Revoke access for ${q.user_email}`,children:r.jsx(ws,{className:"w-3.5 h-3.5"})})]},q.id))]})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:e.map(q=>{const F=I.filter(P=>P.specialized_pool_id===q.id).length;return r.jsxs("button",{onClick:()=>d(q.id),className:`text-left bg-white border rounded-lg p-4 transition-all ${(L==null?void 0:L.id)===q.id?"border-amber-400 shadow-sm":"border-border hover:border-amber-300"}`,children:[r.jsx("p",{className:"text-sm font-bold text-[#0B1F33] mb-1",children:q.dis
1075play_name}),r.jsxs("div",{className:"flex gap-4 text-xs text-muted-foreground",children:[r.jsxs("span",{children:["Total Members: ",r.jsx("strong",{className:"text-[#0B1F33]",children:F})]}),r.jsxs("span",{children:["New (7 days): ",r.jsx("strong",{className:"text-[#0B1F33]",children:R(q.id)})]})]})]},q.id)})}),L&&r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"bg-white border border-border rounded-lg p-4 space-y-3",children:[r.jsxs("div",{className:"relative",children:[r.jsx(Ha,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),r.jsx(Se,{value:h,onChange:q=>p(q.target.value),placeholder:"Search name, email, occupation, skills, city...",className:"pl-9"})]}),r.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-2",children:[r.jsx("input",{value:f,onChange:q=>m(q.target.value),placeholder:"State",className:Sl}),r.jsx("input",{value:g,onChange:q=>j(q.target.value),placeholder:"Occupation",className:Sl}),r.jsxs("select",{value:b,onChange:q=>x(q.target.value),className:Sl,children:[r.jsx("option",{value:"",children:"Any Experience"}),r.jsx("option",{children:"Less than 1 year"}),r.jsx("option",{children:"1–2 years"}),r.jsx("option",{children:"3–5 years"}),r.jsx("option",{children:"6–10 years"}),r.jsx("option",{children:"11–15 years"}),r.jsx("option",{children:"16+ years"})]}),r.jsxs("select",{value:v,onChange:q=>N(q.target.value),className:Sl,children:[r.jsx("option",{value:"",children:"Any Availability"}),r.jsx("option",{children:"Immediately"}),r.jsx("option",{children:"Within 2 Weeks"}),r.jsx("option",{children:"Within 30 Days"}),r.jsx("option",{children:"Within 60 Days"}),r.jsx("option",{children:"60+ Days"}),r.jsx("option",{children:"Currently Employed / Exploring Opportunities"})]}),r.jsxs("select",{value:S,onChange:q=>w(q.target.value),className:Sl,children:[r.jsx("option",{value:"",children:"Any Travel"}),r.jsx("option",{children:"Yes"}),r.jsx("option",{children:"No"})]}),r.jsx("input",{value:k,onChange:q=>O(q.target.value),placeholder:"Clearance",className:Sl})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("p",{className:"text-xs text-muted-foreground",children:[D.length," member",D.length!==1?"s":""]}),r.jsx(xe,{variant:"outline",size:"sm",onClick:K,children:"Clear"})]})]}),r.jsx("div",{className:"bg-white border border-border rounded-lg overflow-x-auto",children:r.jsxs(qs,{children:[r.jsx(Vs,{children:r.jsxs(Zt,{children:[r.jsx(Ue,{children:"Candidate Name"}),r.jsx(Ue,{children:"Primary Occupation"}),r.jsx(Ue,{children:"Location"}),r.jsx(Ue,{children:"Availability"}),r.jsx(Ue,{children:"Joined"}),r.jsx(Ue,{children:"Consent Version"}),r.jsx(Ue,{className:"text-right",children:"Actions"})]})}),r.jsxs($s,{children:[D.length===0&&r.jsx(Zt,{children:r.jsx(Le,{colSpan:7,className:"text-center text-muted-foreground py-8",children:"No members match your filters."})}),D.map(q=>r.jsxs(Zt,{children:[r.jsxs(Le,{className:"font-medium",children:[q.candidate.first_name," ",q.candidate.last_name]}),r.jsx(Le,{className:"text-sm",children:q.candidate.primary_occupation||"—"}),r.jsxs(Le,{className:"text-sm",children:[q.candidate.city,", ",q.candidate.state]}),r.jsx(Le,{className:"text-xs",children:q.candidate.availability||"—"}),r.jsx(Le,{className:"text-xs",children:q.membership.opt_in_date?new Date(q.membership.opt_in_date).toLocaleDateString():"—"}),r.jsx(Le,{className:"text-xs",children:q.membership.consent_version||"—"}),r.jsx(Le,{className:"text-right",children:r.jsxs("div",{className:"flex items-center justify-end gap-1",children:[q.candidate.resume_url&&r.jsx(td,{resumeUrl:q.candidate.resume_url,size:"icon",variant:"ghost",title:"Résumé"}),r.jsx(xe,{size:"icon",variant:"ghost",onClick:()=>U(q),title:"Withdraw membership",children:r.jsx(nA,{className:"w-4 h-4"})})]})})]},q.membership.id))]})]})}),r.jsx("p",{className:"text-xs text-muted-foreground italic",children:"Membership in this specialized Talent Network is voluntary self-identification and must not be used as evidence of candidate quality, job qualification, or ability to perform a job."})]})]}):r.jsxs("div",{className:"bg-white border border-border rounded-lg p-8 text-center",children:[r.jsx(ac,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33] mb-2",children:"Restricted Area"}),r.jsxs("p",{className:"text-sm text-muted-foreground max-w-md mx-auto",children:["You do not have permission to view specialized Talent Network membership information. Contact an administrator with the ",r.jsx("strong",{children:"View Sensitive Talent Network Membership"})," permission to request access."]})]})}function Gie(){const[e,t]=E.useState([]),[n,s]=E.useState(!0),[i,o]=E.useState(""),[l,c]=E.useState(null),[d,h]=E.useState(""),[p,f]=E.useState(!1),m=async()=>{s(!0);try{const S=await ge.entities.HowHeardOption.list("display_order",200);t(S)}catch{Ne.error("Failed to load options")}finally{s(!1)}};E.useEffect(()=>{m()},[]);const g=async S=>{S.preventDefault();const w=i.trim();if(w){f(!0);try{await ge.entities.HowHeardOption.create({label:w,display_order:e.length+1}),o(""),Ne.success("Option added"),await m()}catch{Ne.error("Failed to add option")}finally{f(!1)}}},j=S=>{c(S.id),h(S.label)},b=()=>{c(null),h("")},x=async S=>{const w=d.trim();if(w){f(!0);try{await ge.entities.HowHeardOption.update(S.id,{label:w}),Ne.success("Option updated"),b(),await m()}catch{Ne.error("Failed to update option")}finally{f(!1)}}},v=async S=>{if(window.confirm(`Delete "${S.label}"?`)){f(!0);try{await ge.entities.HowHeardOption.delete(S.id),Ne.success("Option deleted"),await m()}catch{Ne.error("Failed to delete option")}finally{f(!1)}}},N=async(S,w)=>{const O=e.findIndex(A=>A.id===S.id)+w;if(O<0||O>=e.length)return;const C=e[O];f(!0);try{await ge.entities.HowHeardOption.bulkUpdate([{id:S.id,display_order:C.display_order},{id:C.id,display_order:S.display_order}]),await m()}catch{Ne.error("Failed to reorder")}finally{f(!1)}};return r.jsx("div",{className:"space-y-4",children:r.jsxs("div",{className:"bg-white border border-border rounded-lg p-4",children:[r.jsx("h2",{className:"text-lg font-bold text-[#0B1F33] mb-1",children:"How They Heard About Us"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:'Manage the dropdown options shown on each Talent Network form. The option labeled "Other" reveals a free-text field for candidates.'}),r.jsxs("form",{onSubmit:g,className:"flex gap-2 mb-4",children:[r.jsx(Se,{value:i,onChange:S=>o(S.target.value),placeholder:"Add a new option (e.g. Google)"}),r.jsxs(xe,{type:"submit",disabled:p||!i.trim(),children:[r.jsx(xs,{className:"w-4 h-4"})," Add"]})]}),n?r.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):e.length===0?r.jsx("p",{className:"text-sm text-muted-foreground",children:"No options yet. Add one above."}):r.jsx("ul",{className:"divide-y divide-border border border-border rounded-lg",children:e.map((S,w)=>r.jsx("li",{className:"flex items-center gap-2 p-3",children:l===S.id?r.jsxs(r.Fragment,{children:[r.jsx(Se,{value:d,onChange:k=>h(k.target.value),className:"flex-1",autoFocus:!0,onKeyDown:k=>{k.key==="Enter"&&x(S),k.key==="Escape"&&b()}}),r.jsx(xe,{size:"icon",onClick:()=>x(S),title:"Save",disabled:p,children:r.jsx(Ea,{className:"w-4 h-4"})}),r.jsx(xe,{size:"icon",variant:"ghost",onClick:b,title:"Cancel",children:r.jsx(Ar,{className:"w-4 h-4"})})]}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"flex-1 text-sm text-foreground",children:S.label}),r.jsx(xe,{size:"icon",variant:"ghost",onClick:()=>N(S,-1),disabled:w===0||p,title:"Move up",children:r.jsx(qT,{className:"w-4 h-4"})}),r.jsx(xe,{size:"icon",variant:"ghost",onClick:()=>N(S,1),disabled:w===e.length-1||p,title:"Move down",children:r.jsx(UT,{className:"w-4 h-4"})}),r.jsx(xe,{size:"icon",variant:"ghost",onClick:()=>j(S),disabled:p,title:"Edit",children:r.jsx(wa,{className:"w-4 h-4"})}),r.jsx(xe,{size:"icon",variant:"ghost",onClick:()=>v(S),disabled:p,title:"Delete",children:r.jsx(ws,{className:"w-4 h-4"})})]})},S.id))})]})})}function Yie({hasActiveTaxonomy:e}){const[t,n]=E.useState(0),[s,i]=E.useState(0),[o,l]=E.useState("pending"),[c,d]=E.useState(!1),[h,p]=E.useState(!1),[f,m]=E.useState({batches:0,succeeded:0,failed:0,processed:0}),[g,j]=E.useState([]),[b,x]=E.useState(!0),v=E.useCallback(async()=>{try{const k=(await ge.entities.TalentCandidate.list("-created_date",1e3)).filter(C=>C.resume_url&&C.resume_url.trim().length>0),O=k.filter(C=>C.analysis_status==="pending");i(k.length),n(O.length)}catch(w){console.error("Failed to load candidate counts",w)}finally{x(!1)}},[]);E.useEffect(()=>
1075{v()},[v]);const N=async()=>{if(!e){Ne.error("An active taxonomy is required before batch analysis.");return}d(!0),p(!1),m({batches:0,succeeded:0,failed:0,processed:0}),j([]);let w=0,k=0,O=0,C=0,A=[];try{for(;!h;){C++;const I=(await ge.functions.invoke("batchAnalyzeResumes",{mode:o,limit:3})).data;if(I.error){Ne.error(I.error);break}if(w+=I.succeeded,k+=I.failed,O+=I.processed,A=[...I.results,...A].slice(0,50),m({batches:C,succeeded:w,failed:k,processed:O}),j(A),I.processed===0||o==="pending"&&I.remaining_pending===0||o==="all"&&I.processed<3)break}}catch(B){Ne.error("Batch analysis error: "+(B.message||"Unknown error"))}finally{d(!1),await v()}},S=()=>{p(!0)};return r.jsxs("div",{className:"bg-white border border-border rounded-lg p-5",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[r.jsx(Oa,{className:"w-5 h-5 text-[#0B1F33]"}),r.jsx("h3",{className:"text-sm font-bold uppercase tracking-wide text-[#0B1F33]",children:"Batch Resume Analysis"})]}),e?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[r.jsxs("div",{className:"bg-gray-50 border border-border rounded-lg p-3 text-center",children:[r.jsx("p",{className:"text-2xl font-bold text-[#0B1F33]",children:b?"…":t}),r.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wide",children:"Pending Analysis"})]}),r.jsxs("div",{className:"bg-gray-50 border border-border rounded-lg p-3 text-center",children:[r.jsx("p",{className:"text-2xl font-bold text-[#0B1F33]",children:b?"…":s}),r.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wide",children:"Total with Resume"})]})]}),r.jsxs("div",{className:"flex gap-2 mb-4",children:[r.jsxs("button",{onClick:()=>l("pending"),disabled:c,className:`flex-1 px-3 py-2 rounded-md text-sm font-semibold border transition-colors ${o==="pending"?"bg-[#0B1F33] text-white border-[#0B1F33]":"bg-white text-muted-foreground border-border hover:bg-gray-50"}`,children:["Pending Only (",t,")"]}),r.jsxs("button",{onClick:()=>l("all"),disabled:c,className:`flex-1 px-3 py-2 rounded-md text-sm font-semibold border transition-colors ${o==="all"?"bg-[#0B1F33] text-white border-[#0B1F33]":"bg-white text-muted-foreground border-border hover:bg-gray-50"}`,children:["Re-analyze All (",s,")"]})]}),o==="all"&&r.jsxs("div",{className:"flex items-start gap-2 text-xs text-amber-700 bg-amber-50 border border-amber-200 rounded p-2.5 mb-4",children:[r.jsx(Ev,{className:"w-3.5 h-3.5 mt-0.5 shrink-0"}),r.jsxs("span",{children:["Re-analyzing all candidates will use one AI credit per resume. This processes ",s," candidates and may take several minutes."]})]}),r.jsxs("div",{className:"flex gap-2 mb-4",children:[c?r.jsxs(xe,{variant:"destructive",onClick:S,children:[r.jsx(W5,{className:"w-4 h-4"})," Stop After Current Batch"]}):r.jsxs(xe,{onClick:N,disabled:b||o==="pending"&&t===0||o==="all"&&s===0,className:"bg-[#0B1F33] hover:bg-[#0B1F33]/90",children:[r.jsx(Oa,{className:"w-4 h-4"}),o==="pending"?"Start Batch Analysis":"Start Re-analyze All"]}),r.jsxs(xe,{variant:"outline",onClick:v,disabled:c,children:[r.jsx(Ql,{className:"w-4 h-4"})," Refresh Counts"]})]}),(c||f.processed>0)&&r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex items-center gap-4 text-sm",children:[c&&r.jsx(Ql,{className:"w-4 h-4 animate-spin text-amber-500"}),r.jsx("span",{className:"font-semibold text-[#0B1F33]",children:c?`Processing batch ${f.batches}…`:"Complete"}),r.jsxs(Be,{className:"bg-green-100 text-green-800",children:[r.jsx(Uu,{className:"w-3 h-3 mr-1"})," ",f.succeeded," succeeded"]}),f.failed>0&&r.jsxs(Be,{className:"bg-red-100 text-red-800",children:[r.jsx(yo,{className:"w-3 h-3 mr-1"})," ",f.failed," failed"]}),r.jsxs("span",{className:"text-xs text-muted-foreground",children:[f.processed," processed in ",f.batches," batches"]})]}),g.length>0&&r.jsx("div",{className:"max-h-64 overflow-y-auto border border-border rounded-lg",children:r.jsxs("table",{className:"w-full text-xs",children:[r.jsx("thead",{className:"bg-gray-50 sticky top-0",children:r.jsxs("tr",{className:"border-b border-border",children:[r.jsx("th",{className:"text-left py-2 px-3 font-semibold text-muted-foreground",children:"Candidate"}),r.jsx("th",{className:"text-center py-2 px-3 font-semibold text-muted-foreground",children:"Tags"}),r.jsx("th",{className:"text-center py-2 px-3 font-semibold text-muted-foreground",children:"Status"})]})}),r.jsx("tbody",{children:g.map((w,k)=>r.jsxs("tr",{className:"border-b border-border/50",children:[r.jsx("td",{className:"py-1.5 px-3 font-medium text-[#0B1F33]",children:w.name||"Unknown"}),r.jsx("td",{className:"py-1.5 px-3 text-center",children:w.success?w.tags_assigned:"—"}),r.jsx("td",{className:"py-1.5 px-3 text-center",children:w.success?r.jsx(Be,{className:"bg-green-100 text-green-800 text-xs",children:"Analyzed"}):r.jsx("span",{className:"text-red-600 text-xs",title:w.error,children:w.error||"Failed"})})]},k))})]})})]})]}):r.jsxs("div",{className:"flex items-center gap-2 text-sm text-amber-700 bg-amber-50 border border-amber-300 rounded p-3",children:[r.jsx(Ev,{className:"w-4 h-4"})," An active taxonomy is required before running batch analysis."]})]})}function Kie(){const[e,t]=E.useState([]),[n,s]=E.useState([]),[i,o]=E.useState([]),[l,c]=E.useState(!0),[d,h]=E.useState(null),[p,f]=E.useState(!1),[m,g]=E.useState(null),[j,b]=E.useState(""),[x,v]=E.useState(""),[N,S]=E.useState(!1),[w,k]=E.useState(null),[O,C]=E.useState(!1),[A,B]=E.useState(null),[I,L]=E.useState(""),[D,R]=E.useState(!1),U=E.useCallback(async()=>{c(!0);try{const[P,V]=await Promise.all([ge.entities.TagTaxonomy.list("-upload_date",50),ge.entities.TagSop.list("-upload_date",50)]);t(P),o(V);const W=P.find(Z=>Z.active);if(W){const Z=await ge.entities.Tag.filter({taxonomy_version_id:W.id},"tag_name",5e3);s(Z)}else s([])}catch(P){console.error("Failed to load taxonomy data",P),Ne.error("Failed to load taxonomy data")}finally{c(!1)}},[]);E.useEffect(()=>{U()},[U]);const $=e.find(P=>P.active),Y=i.find(P=>P.active),K=async P=>{var W,Z;const V=P.target.files[0];if(V){h(V),f(!0),g(null);try{const{file_url:X}=await ge.integrations.Core.UploadPublicFile({file:V}),G=(await ge.functions.invoke("parseTaxonomySpreadsheet",{file_url:X})).data;if(G.error){Ne.error(G.error),f(!1);return}const te=G.tags||[];if(te.length===0){Ne.error('No tags found in the "Tag Style Sheet" tab.'),f(!1);return}g({tags:te,file_url:X,file_name:V.name}),Ne.success(`Parsed ${te.length} tags from "${G.sheet_name}" tab`)}catch(X){const H=((Z=(W=X==null?void 0:X.response)==null?void 0:W.data)==null?void 0:Z.error)||(X==null?void 0:X.message)||"Unknown error";Ne.error(H)}finally{f(!1)}}},Q=async()=>{var P,V;if(!m||!j.trim()){Ne.error("Enter a version label and upload a spreadsheet first.");return}S(!0);try{const W=await ge.auth.me().catch(()=>null),Z=(W==null?void 0:W.full_name)||(W==null?void 0:W.email)||"Admin",X=new Date().toISOString();$&&await ge.entities.TagTaxonomy.update($.id,{active:!1});const H=await ge.entities.TagTaxonomy.create({version:j.trim(),upload_date:X,uploaded_by:Z,active:!0,original_file_url:m.file_url,original_file_name:m.file_name,tag_count:m.tags.length,notes:x.trim()}),G=m.tags.map(re=>({tag_name:re.tag_name,category:re.category,taxonomy_version_id:H.id,taxonomy_version:H.version}));await ge.entities.Tag.bulkCreate(G),Ne.success(`Taxonomy "${H.version}
1075" activated with ${G.length} tags`),g(null),h(null),b(""),v("");const te=document.getElementById("tax-file-input");te&&(te.value=""),await U()}catch(W){const Z=((V=(P=W==null?void 0:W.response)==null?void 0:P.data)==null?void 0:V.error)||(W==null?void 0:W.message)||"Unknown error";Ne.error("Failed to save taxonomy: "+Z)}finally{S(!1)}},q=async P=>{var W;const V=P.target.files[0];if(V){k(V),C(!0),B(null);try{const{file_url:Z}=await ge.integrations.Core.UploadPublicFile({file:V}),X=await ge.integrations.Core.ExtractDataFromUploadedFile({file_url:Z,json_schema:{type:"object",properties:{sop_text:{type:"string"}}}}),H=((W=X==null?void 0:X.output)==null?void 0:W.sop_text)||"";if(!H.trim()){Ne.error("No SOP text found in file."),C(!1);return}B({sop_text:H,file_url:Z,file_name:V.name}),Ne.success("SOP text extracted")}catch(Z){Ne.error("Failed to parse SOP: "+Z.message)}finally{C(!1)}}},F=async()=>{if(!A||!I.trim()){Ne.error("Enter a version label and upload an SOP file first.");return}R(!0);try{const P=await ge.auth.me().catch(()=>null),V=(P==null?void 0:P.full_name)||(P==null?void 0:P.email)||"Admin",W=new Date().toISOString();Y&&await ge.entities.TagSop.update(Y.id,{active:!1}),await ge.entities.TagSop.create({version:I.trim(),upload_date:W,uploaded_by:V,active:!0,original_file_url:A.file_url,original_file_name:A.file_name,sop_text:A.sop_text}),Ne.success(`SOP "${I.trim()}" activated`),B(null),k(null),L("");const Z=document.getElementById("sop-file-input");Z&&(Z.value=""),await U()}catch(P){Ne.error("Failed to save SOP: "+P.message)}finally{R(!1)}};return l?r.jsx("div",{className:"text-center text-muted-foreground py-12",children:"Loading taxonomy data..."}):r.jsxs("div",{className:"space-y-8",children:[r.jsx(Yie,{hasActiveTaxonomy:!!$}),r.jsxs("div",{className:"bg-white border border-border rounded-lg p-5",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[r.jsx(p6,{className:"w-5 h-5 text-[#0B1F33]"}),r.jsx("h3",{className:"text-sm font-bold uppercase tracking-wide text-[#0B1F33]",children:"Active Taxonomy"})]}),$?r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[r.jsx(Be,{className:"bg-green-100 text-green-800",children:"Active"}),r.jsx("span",{className:"font-semibold text-[#0B1F33]",children:$.version}),r.jsxs("span",{className:"text-xs text-muted-foreground",children:[$.tag_count," tags · uploaded ",$.upload_date?new Date($.upload_date).toLocaleDateString():"—"," by ",$.uploaded_by||"—"]})]}),$.notes&&r.jsx("p",{className:"text-sm text-muted-foreground",children:$.notes}),$.original_file_url&&r.jsxs("a",{href:$.original_file_url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-xs text-amber-600 underline",children:[r.jsx(WN,{className:"w-3.5 h-3.5"})," ",$.original_file_name||"View original file"]}),r.jsxs("div",{className:"border-t border-border pt-3",children:[r.jsxs("p",{className:"text-xs font-semibold text-muted-foreground mb-2",children:["Approved Tags (",n.length,")"]}),r.jsx("div",{className:"flex flex-wrap gap-1.5 max-h-48 overflow-y-auto",children:n.map(P=>r.jsxs(Be,{variant:"outline",className:"text-xs",children:[P.tag_name,r.jsxs("span",{className:"text-muted-foreground ml-1",children:["· ",P.category]})]},P.id))})]})]}):r.jsxs("div",{className:"flex items-center gap-2 text-sm text-amber-700 bg-amber-50 border border-amber-300 rounded p-3",children:[r.jsx(Po,{className:"w-4 h-4"})," No active taxonomy. Upload a spreadsheet below to get started."]})]}),r.jsxs("div",{className:"bg-white border border-border rounded-lg p-5",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[r.jsx(yd,{className:"w-5 h-5 text-[#0B1F33]"}),r.jsx("h3",{className:"text-sm font-bold uppercase tracking-wide text-[#0B1F33]",children:$?"Replace with New Version":"Upload Taxonomy"})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded p-3 text-xs text-blue-800",children:[r.jsx("p",{className:"font-semibold mb-1",children:"Expected format:"}),r.jsxs("p",{children:["Excel file with a sheet named ",r.jsx("strong",{children:'"Tag Style Sheet"'}),'. Column A = tag name, Column B = category. First row should be headers (skipped automatically). Blank rows are skipped. Missing categories default to "Uncategorized".']})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-semibold mb-1.5",children:["Version Label ",r.jsx("span",{className:"text-amber-500",children:"*"})]}),r.jsx(Se,{value:j,onChange:P=>b(P.target.value),placeholder:"e.g. v1.0, 2026-09-23, etc."})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold mb-1.5",children:"Spreadsheet File"}),r.jsx("input",{id:"tax-file-input",type:"file",accept:".xlsx,.xls,.csv",onChange:K,className:"w-full text-sm text-muted-foreground file:mr-4 file:py-2 file:px-4 file:rounded file:border-0 file:text-xs file:font-bold file:bg-[#0B1F33] file:text-white hover:file:bg-[#0B1F33] cursor-pointer"}),p&&r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Parsing spreadsheet..."})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold mb-1.5",children:"Notes (optional)"}),r.jsx(Yt,{value:x,onChange:P=>v(P.target.value),rows:2,placeholder:"Internal notes about this taxonomy version..."})]}),m&&r.jsxs("div",{className:"border-2 border-amber-300 rounded-lg p-4 bg-amber-50",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsxs("h4",{className:"text-sm font-bold text-[#0B1F33]",children:["Preview — ",m.tags.length," tags found"]}
1075),r.jsx("button",{onClick:()=>{g(null),h(null);const P=document.getElementById("tax-file-input");P&&(P.value="")},className:"text-muted-foreground hover:text-red-500",children:r.jsx(Ar,{className:"w-4 h-4"})})]}),r.jsx("div",{className:"max-h-60 overflow-y-auto bg-white rounded border border-border p-3",children:r.jsxs("table",{className:"w-full text-xs",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"border-b border-border",children:[r.jsx("th",{className:"text-left py-1 pr-3",children:"Tag Name"}),r.jsx("th",{className:"text-left py-1",children:"Category"})]})}),r.jsxs("tbody",{children:[m.tags.slice(0,100).map((P,V)=>r.jsxs("tr",{className:"border-b border-border/50",children:[r.jsx("td",{className:"py-1 pr-3 font-medium",children:P.tag_name}),r.jsx("td",{className:"py-1 text-muted-foreground",children:P.category})]},V)),m.tags.length>100&&r.jsx("tr",{children:r.jsxs("td",{colSpan:2,className:"py-2 text-center text-muted-foreground",children:["...and ",m.tags.length-100," more"]})})]})]})}),r.jsxs("div",{className:"flex justify-end gap-2 mt-3",children:[r.jsx(xe,{variant:"outline",onClick:()=>{g(null),h(null);const P=document.getElementById("tax-file-input");P&&(P.value="")},children:"Cancel"}),r.jsxs(xe,{onClick:Q,disabled:N||!j.trim(),children:[N?r.jsx(Ql,{className:"w-4 h-4 animate-spin"}):r.jsx(Ea,{className:"w-4 h-4"}),$?"Deactivate Old & Activate New":"Activate Taxonomy"]})]})]})]})]}),r.jsxs("div",{className:"bg-white border border-border rounded-lg p-5",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[r.jsx(VT,{className:"w-5 h-5 text-[#0B1F33]"}),r.jsx("h3",{className:"text-sm font-bold uppercase tracking-wide text-[#0B1F33]",children:"Tagging SOP (Optional)"})]}),Y&&r.jsxs("div",{className:"mb-4 space-y-2",children:[r.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[r.jsx(Be,{className:"bg-green-100 text-green-800",children:"Active"}),r.jsx("span",{className:"font-semibold text-[#0B1F33]",children:Y.version}),r.jsxs("span",{className:"text-xs text-muted-foreground",children:["uploaded ",Y.upload_date?new Date(Y.upload_date).toLocaleDateString():"—"," by ",Y.uploaded_by||"—"]})]}),Y.original_file_url&&r.jsxs("a",{href:Y.original_file_url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-xs text-amber-600 underline",children:[r.jsx(WN,{className:"w-3.5 h-3.5"})," ",Y.original_file_name||"View original file"]}),r.jsx("div",{className:"bg-gray-50 border border-border rounded p-3 max-h-40 overflow-y-auto",children:r.jsx("p",{className:"text-xs text-muted-foreground whitespace-pre-wrap",children:Y.sop_text})})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-semibold mb-1.5",children:["Version Label ",r.jsx("span",{className:"text-amber-500",children:"*"})]}),r.jsx(Se,{value:I,onChange:P=>L(P.target.value),placeholder:"e.g. v1.0, 2026-09-23"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-semibold mb-1.5",children:"SOP File (Excel, CSV, or text)"}),r.jsx("input",{id:"sop-file-input",type:"file",accept:".xlsx,.xls,.csv,.txt,.md",onChange:q,className:"w-full text-sm text-muted-foreground file:mr-4 file:py-2 file:px-4 file:rounded file:border-0 file:text-xs file:font-bold file:bg-[#0B1F33] file:text-white hover:file:bg-[#0B1F33] cursor-pointer"}),O&&r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Extracting SOP text..."})]}),A&&r.jsxs("div",{className:"border-2 border-amber-300 rounded-lg p-4 bg-amber-50",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx("h4",{className:"text-sm font-bold text-[#0B1F33]",children:"Preview — SOP text extracted"}),r.jsx("button",{onClick:()=>{B(null),k(null);const P=document.getElementById("sop-file-input");P&&(P.value="")},className:"text-muted-foreground hover:text-red-500",children:r.jsx(Ar,{className:"w-4 h-4"})})]}),r.jsx("div",{className:"bg-white rounded border border-border p-3 max-h-40 overflow-y-auto",children:r.jsxs("p",{className:"text-xs text-muted-foreground whitespace-pre-wrap",children:[A.sop_text.substring(0,1e3),A.sop_text.length>1e3?"...":""]})}),r.jsxs("div",{className:"flex justify-end gap-2 mt-3",children:[r.jsx(xe,{variant:"outline",onClick:()=>{B(null),k(null);const P=document.getElementById("sop-file-input");P&&(P.value="")},children:"Cancel"}),r.jsxs(xe,{onClick:F,disabled:D||!I.trim(),children:[D?r.jsx(Ql,{className:"w-4 h-4 animate-spin"}):r.jsx(Ea,{className:"w-4 h-4"}),Y?"Deactivate Old & Activate New":"Activate SOP"]})]})]})]})]})]})}const Qw="lss_talent_admin_passcode_verified";function Jie(){try{return sessionStorage.getItem(Qw)==="true"}catch{return!1}}function Qie(){try{sessionStorage.removeItem(Qw)}catch{}}function Xie({onVerified:e}){const[t,n]=E.useState(""),[s,i]=E.useState(!1),[o,l]=E.useState(""),c=async d=>{var h;if(d.preventDefault(),!t){l("Please enter the passcode.");return}i(!0),l("");try{const p=await ge.functions.invoke("verifyAdminPasscode",{passcode:t});if((h=p==null?void 0:p.data)!=null&&h.verified){try{sessionStorage.setItem(Qw,"true")}catch{}e()}else l("Incorrect passcode. Please try again."),n("")}catch{l("Could not verify passcode. Please try again.")}finally{i(!1)}};return r.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center p-4",children:r.jsxs(xt,{className:"max-w-md w-full",children:[r.jsxs($n,{className:"text-center",children:[r.jsx(ac,{className:"w-12 h-12 text-[#0B1F33] mx-auto mb-4"}),r.jsx(zn,{className:"text-2xl text-[#0B1F33]",children:"Passcode Required"}),r.jsx(Rr,{children:"Enter the Talent Network admin passcode to continue."})]}),r.jsx(vt,{children:r.jsxs("form",{onSubmit:c,className:"space-y-4",children:[r.jsx("input",{type:"password",value:t,onChange:d=>n(d.target.value),placeholder:"Enter passcode",autoFocus:!0,autoComplete:"off",className:"w-full border border-border rounded px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-amber-400"}),o&&r.jsx("p",{className:"text-sm text-red-600",role:"alert",children:o}),r.jsx(xe,{type:"submit",disabled:s||!t,className:"w-full bg-[#0B1F33] hover:bg-[#0B1F33]/90 text-white",children:s?r.jsxs(r.Fragment,{children:[r.jsx(mm,{className:"w-4 h-4 animate-spin"})," Verifying..."]}):"Unlock"})]})})]})})}
1075const Zie=[{id:"dashboard",label:"Dashboard",icon:RM},{id:"candidates",label:"Candidates",icon:wn},{id:"pools",label:"Talent Pools",icon:xM},{id:"reports",label:"Reports",icon:F5},{id:"specialized",label:"Specialized Talent Networks",icon:gm},{id:"how-heard",label:"How They Heard",icon:FM},{id:"taxonomy",label:"Taxonomy",icon:y6}];function wT(){const{user:e,isLoadingAuth:t,navigateToLogin:n,logout:s}=jd(),i=(e==null?void 0:e.role)==="admin",[o,l]=E.useState("dashboard"),[c,d]=E.useState([]),[h,p]=E.useState([]),[f,m]=E.useState([]),[g,j]=E.useState([]),[b,x]=E.useState(!0),[v,N]=E.useState(null),[S,w]=E.useState(Jie()),k=async()=>{x(!0);try{const[I,L,D,R]=await Promise.all([ge.entities.TalentCandidate.list("-created_date",1e3),ge.entities.TalentPool.list("display_order",200),ge.entities.SpecializedAccessGrant.list("-created_date",200).catch(()=>[]),ge.entities.CandidateSpecializedMembership.list("-opt_in_date",1e3).catch(()=>[])]);d(I),p(L),m(D),j(R)}catch(I){console.error("Failed to load talent data",I)}finally{x(!1)}};E.useEffect(()=>{i&&k()},[i]);const O=h.filter(I=>!I.is_specialized),C=h.filter(I=>I.is_specialized),A=f.length===0||f.some(I=>{var L,D;return((L=I.user_email)==null?void 0:L.toLowerCase())===((D=e==null?void 0:e.email)==null?void 0:D.toLowerCase())});if(t)return r.jsx("div",{className:"min-h-screen flex items-center justify-center",children:r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin"})});if(!i)return r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:r.jsxs(xt,{className:"max-w-md w-full",children:[r.jsxs($n,{className:"text-center",children:[r.jsx(ac,{className:"w-12 h-12 text-primary mx-auto mb-4"}),r.jsx(zn,{className:"text-2xl",children:"Talent Network Admin"}),r.jsx(Rr,{children:e?"Your account does not have admin privileges.":"Please log in with an admin account to access the Talent Network Admin."})]}),r.jsx(vt,{children:r.jsx(xe,{className:"w-full",onClick:()=>n(),children:"Log In"})})]})});const B=I=>{N(I||{}),l("candidates")};return S?r.jsxs("div",{className:"min-h-screen bg-gray-50",children:[r.jsxs("div",{className:"bg-[#0B1F33] text-white",children:[r.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-xl font-bold",children:"Talent Network Admin"}),r.jsx("p",{className:"text-xs text-white/60",children:"Lean Synergy Solutions · Talent Database"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(xe,{variant:"outline",size:"sm",onClick:k,className:"border-white/30 text-white hover:bg-white/10",children:"Refresh"}),r.jsxs(xe,{variant:"outline",size:"sm",onClick:()=>{Qie(),s()},className:"border-white/30 text-white hover:bg-white/10",children:[r.jsx(Wb,{className:"w-4 h-4"})," Logout"]})]})]}),r.jsx("div",{className:"max-w-7xl mx-auto px-4 flex gap-1 overflow-x-auto",children:Zie.map(I=>{const L=I.icon;return r.jsxs("button",{onClick:()=>l(I.id),className:`flex items-center gap-2 px-4 py-3 text-sm font-semibold uppercase tracking-wide whitespace-nowrap border-b-2 transition-colors ${o===I.id?"border-amber-400 text-amber-400":"border-transparent text-white/70 hover:text-white"}`,children:[r.jsx(L,{className:"w-4 h-4"})," ",I.label]},I.id)})})]}),r.jsx("div",{className:"max-w-7xl mx-auto px-4 py-6",children:b?r.jsx("div",{className:"text-center text-muted-foreground py-12",children:"Loading talent network data..."}):r.jsxs(r.Fragment,{children:[o==="dashboard"&&r.jsx(Fie,{candidates:c,pools:O,onFilter:B}),o==="candidates"&&r.jsx(Uie,{candidates:c,pools:O,externalFilter:v,onArchived:k,authorizedSpecialized:A}),o==="pools"&&r.jsx(qie,{pools:h,candidates:c,onChanged:k}),o==="reports"&&r.jsx(Hie,{candidates:c,pools:O}),o==="specialized"&&r.jsx(Wie,{specializedPools:C,candidates:c,memberships:g,grants:f,isAuthorized:A,currentUser:e,onChanged:k}),o==="how-heard"&&r.jsx(Gie,{}),o==="taxonomy"&&r.jsx(Kie,{})]})})]}):r.jsx(Xie,{onVerified:()=>w(!0)})}var eoe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],toe=eoe.reduce((e,t)=>
vendor: 4,475 bytes, line 1075
1075{const n=DP(`Primitive.${t}`),s=E.forwardRef((i,o)=>{const{asChild:l,...c}=i,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:o})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),noe="Label",JD=E.forwardRef((e,t)=>r.jsx(toe.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));JD.displayName=noe;var QD=JD;const roe=hm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Tl=E.forwardRef(({className:e,...t},n)=>r.jsx(QD,{ref:n,className:ut(roe(),e),...t}));Tl.displayName=QD.displayName;var Zm="Checkbox",[soe]=yc(Zm),[ioe,Xw]=soe(Zm);function ooe(e){const{__scopeCheckbox:t,checked:n,children:s,defaultChecked:i,disabled:o,form:l,name:c,onCheckedChange:d,required:h,value:p="on",internal_do_not_use_render:f}=e,[m,g]=Zu({prop:n,defaultProp:i??!1,onChange:d,caller:Zm}),[j,b]=E.useState(null),[x,v]=E.useState(null),N=E.useRef(!1),S=j?!!l||!!j.closest("form"):!0,w={checked:m,disabled:o,setChecked:g,control:j,setControl:b,name:c,form:l,value:p,hasConsumerStoppedPropagationRef:N,required:h,defaultChecked:_o(i)?!1:i,isFormControl:S,bubbleInput:x,setBubbleInput:v};return r.jsx(ioe,{scope:t,...w,children:aoe(f)?f(w):s})}var XD="CheckboxTrigger",ZD=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...s},i)=>{const{control:o,value:l,disabled:c,checked:d,required:h,setControl:p,setChecked:f,hasConsumerStoppedPropagationRef:m,isFormControl:g,bubbleInput:j}=Xw(XD,e),b=Ft(i,p),x=E.useRef(d);return E.useEffect(()=>{const v=o==null?void 0:o.form;if(v){const N=()=>f(x.current);return v.addEventListener("reset",N),()=>v.removeEventListener("reset",N)}},[o,f]),r.jsx(St.button,{type:"button",role:"checkbox","aria-checked":_o(d)?"mixed":d,"aria-required":h,"data-state":sI(d),"data-disabled":c?"":void 0,disabled:c,value:l,...s,ref:b,onKeyDown:At(t,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:At(n,v=>{f(N=>_o(N)?!0:!N),j&&g&&(m.current=v.isPropagationStopped(),m.current||v.stopPropagation())})})});ZD.displayName=XD;var Zw=E.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:s,checked:i,defaultChecked:o,required:l,disabled:c,value:d,onCheckedChange:h,form:p,...f}=e;return r.jsx(ooe,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:c,required:l,onCheckedChange:h,name:s,form:p,value:d,internal_do_not_use_render:({isFormControl:m})=>r.jsxs(r.Fragment,{children:[r.jsx(ZD,{...f,ref:t,__scopeCheckbox:n}),m&&r.jsx(rI,{__scopeCheckbox:n})]})})});Zw.displayName=Zm;var eI="CheckboxIndicator",tI=E.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:s,...i}=e,o=Xw(eI,n);return r.jsx(Cd,{present:s||_o(o.checked)||o.checked===!0,children:r.jsx(St.span,{"data-state":sI(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});tI.displayName=eI;var nI="CheckboxBubbleInput",rI=E.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:s,hasConsumerStoppedPropagationRef:i,checked:o,defaultChecked:l,required:c,disabled:d,name:h,value:p,form:f,bubbleInput:m,setBubbleInput:g}=Xw(nI,e),j=Ft(n,g),b=Nw(o),x=bw(s);E.useEffect(()=>{const N=m;if(!N)return;const S=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(S,"checked").set,O=!i.current;if(b!==o&&k){const C=new Event("click",{bubbles:O});N.indeterminate=_o(o),k.call(N,_o(o)?!1:o),N.dispatchEvent(C)}},[m,b,o,i]);const v=E.useRef(_o(o)?!1:o);return r.jsx(St.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??v.current,required:c,disabled:d,name:h,value:p,form:f,...t,tabIndex:-1,ref:j,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});rI.displayName=nI;function aoe(e){return typeof e=="function"}function _o(e){return e==="indeterminate"}function sI(e){return _o(e)?"indeterminate":e?"checked":"unchecked"}const iI=E.forwardRef(({className:e,...t},n)=>r.jsx(Zw,{ref:n,className:ut("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:r.jsx(tI,{className:ut("flex items-center justify-center text-current"),children:r.jsx(Ea,{className:"h-4 w-4"})})}));iI.displayName=Zw.displayName;function loe({open:e,onOpenChange:t}
1075){const[n,s]=E.useState({full_name:"",email:"",phone:"",company:"",acknowledge:!1}),[i,o]=E.useState(!1),[l,c]=E.useState(!1),[d,h]=E.useState(""),p=g=>{s({...n,[g.target.name]:g.target.value})},f=async g=>{if(g.preventDefault(),h(""),!n.full_name||!n.email||!n.phone){h("Please fill in your name, email, and phone number.");return}if(!n.acknowledge){h("Please acknowledge that you would like information about this program.");return}o(!0);try{await ge.functions.invoke("sendSewpVIInquiry",n),c(!0)}catch{h("Something went wrong. Please try again or call us directly.")}finally{o(!1)}},m=g=>{g||(c(!1),h(""),s({full_name:"",email:"",phone:"",company:"",acknowledge:!1})),t(g)};return r.jsx(ki,{open:e,onOpenChange:m,children:r.jsx(Ys,{className:"sm:max-w-md",children:l?r.jsxs("div",{className:"flex flex-col items-center text-center py-8",children:[r.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/15 flex items-center justify-center mb-5",children:r.jsx(Uu,{className:"w-9 h-9 text-primary"})}),r.jsx("h2",{className:"text-2xl font-bold text-[#0B1F33]",children:"Thank You!"}),r.jsx("p",{className:"mt-3 text-muted-foreground",children:"Your inquiry has been received. A member of our team will reach out to you shortly to schedule a call."}),r.jsx(xe,{onClick:()=>m(!1),className:"mt-6 bg-primary text-primary-foreground",children:"Close"})]}):r.jsxs(r.Fragment,{children:[r.jsxs(Ks,{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("div",{className:"w-9 h-9 rounded-lg bg-primary/15 flex items-center justify-center",children:r.jsx(pm,{className:"w-5 h-5 text-primary"})}),r.jsx(Js,{className:"text-xl font-bold text-[#0B1F33]",children:"Schedule a Call"})]}),r.jsx(hw,{children:"Request information about the SEWP VI recruiting program and we'll reach out to schedule a conversation."})]}),r.jsxs("form",{onSubmit:f,className:"space-y-4 mt-2",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsx(Tl,{htmlFor:"full_name",children:"Full Name *"}),r.jsx(Se,{id:"full_name",name:"full_name",value:n.full_name,onChange:p,required:!0})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx(Tl,{htmlFor:"email",children:"Email *"}),r.jsx(Se,{id:"email",name:"email",type:"email",value:n.email,onChange:p,required:!0})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx(Tl,{htmlFor:"phone",children:"Phone Number *"}),r.jsx(Se,{id:"phone",name:"phone",type:"tel",value:n.phone,onChange:p,required:!0})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx(Tl,{htmlFor:"company",children:"Company"}),r.jsx(Se,{id:"company",name:"company",value:n.company,onChange:p})]}),r.jsxs("div",{className:"flex items-start gap-3 rounded-lg bg-primary/5 border border-primary/15 p-3",children:[r.jsx(iI,{id:"acknowledge",checked:n.acknowledge,onCheckedChange:g=>s({...n,acknowledge:g===!0}),className:"mt-0.5"}),r.jsx(Tl,{htmlFor:"acknowledge",className:"text-sm font-normal leading-snug cursor-pointer",children:"I would like to discuss the SEWP VI recruiting program."})]}),d&&r.jsx("p",{className:"text-sm text-destructive",children:d}),r.jsx(xe,{type:"submit",disabled:i,className:"w-full bg-primary text-primary-foreground hover:opacity-90",children:i?r.jsxs(r.Fragment,{children:[r.jsx(mm,{className:"w-4 h-4 mr-2 animate-spin"})," Submitting..."]}):"Request a Call"})]})]})})})}const coe="https://media.base44.com/images/public/6a1652b2216e8d40d018e580/580dc0216_image2.png";function uoe({open:e,onClose:t}){return E.useEffect(()=>{if(!e)return;const n=s=>s.key==="Escape"&&t();return window.addEventListener("keydown",n),document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",n),document.body.style.overflow=""}},[e,t]),e?r.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",onClick:t,children:r.jsxs("div",{className:"relative bg-white rounded-2xl shadow-2xl max-w-2xl w-full max-h-[85vh] overflow-y-auto",onClick:n=>n.stopPropagation(),children:[r.jsx("button",{onClick:t,className:"absolute top-4 right-4 w-9 h-9 rounded-full flex items-center justify-center bg-muted hover:bg-muted/70 transition-colors z-10","aria-label":"Close",children:r.jsx(Ar,{className:"w-5 h-5"})}),r.jsxs("div",{className:"p-8 md:p-10",children:[r.jsxs("div",{className:"flex flex-col items-center text-center mb-6",children:[r.jsx("img",{src:coe,alt:"SEWP VI astronaut duck",className:"w-24 h-24 object-contain mb-4"}),r.jsx("h2",{className:"text-2xl md:text-3xl font-extrabold text-[#0B1F33]",children:"The Story Behind the Duck"})]}),r.jsxs("div",{className:"space-y-4 text-base text-muted-foreground leading-relaxed",children:[r.jsx("p",{children:`The rubber duck is the long-running mascot of NASA's SEWP program. The joke is based on the old expression "easy as duck soup"—meaning something that's very easy to accomplish. The SEWP program adopted the duck/soup imagery to communicate its goal of making federal IT procurement easier and more streamlined. The duck has been part of SEWP branding for many years; NASA materials from well before SEWP VI show the rubber duck sitting in a bowl marked "SEWP."`}),r.jsx("p",{children:"With SEWP VI, they evolved the mascot into the image you see here: the SEWP duck becomes an astronaut. NASA's own SEWP VI systems use the astronaut-duck logo, so this isn't just something a contractor created—it is official SEWP VI imagery."}),r.jsxs("div",{className:"border-l-4 border-primary pl-5 py-2 my-6 bg-muted/40 rounded-r-lg",children:[r.jsx("p",{className:"font-semibold text-[#0B1F33] mb-2",children:"There are really three layers to it:"}),r.jsxs("p",{className:"mb-2",children:[r.jsx("span",{className:"font-semibold text-[#0B1F33]",children:'Duck → "Duck soup" → Easy procurement.'})," That's the original inside joke/brand concept."]}),r.jsxs("p",{className:"mb-2",children:[r.jsx("span",{className:"font-semibold text-[#0B1F33]",children:"Astronaut duck → NASA."}
1075)," For SEWP VI, putting the established SEWP mascot into a spacesuit ties the long-standing duck directly to NASA's identity."]}),r.jsxs("p",{children:[r.jsx("span",{className:"font-semibold text-[#0B1F33]",children:"SEWP VI → much broader procurement vehicle."})," That's particularly relevant to what we're doing with LSS. SEWP VI isn't merely an IT-product purchasing vehicle. NASA describes Categories B and C as covering enterprise-wide IT service solutions and mission-based services. The ordering period is scheduled for November 1, 2026 through October 31, 2036."]})]})]})]})]})}):null}const doe=[{icon:Si,title:"Cleared U.S. Veteran Talent Recruitment",accent:"from-emerald-500/20 to-emerald-600/5"},{icon:HN,title:"IT & Cyber Technical Delivery Recruitment",accent:"from-blue-500/20 to-blue-600/5"},{icon:HN,title:"Software Engineering, Hardware & Manufacturing Recruitment",accent:"from-indigo-500/20 to-indigo-600/5"},{icon:ac,title:"Cybersecurity Recruitment",accent:"from-red-500/20 to-red-600/5"},{icon:vu,title:"Cloud and Infrastructure Recruitment",accent:"from-sky-500/20 to-sky-600/5"},{icon:zN,title:"AI, Data, and Emerging Technology Recruiting",accent:"from-violet-500/20 to-violet-600/5"},{icon:Cv,title:"Human Services, Healthcare & Training Recruitment",accent:"from-rose-500/20 to-rose-600/5"},{icon:Vu,title:"Mission Support, Sales & Specialized Leadership Recruitment",accent:"from-amber-500/20 to-amber-600/5"},{icon:HT,title:"Program/Project Leadership & Business Operations Recruitment",accent:"from-teal-500/20 to-teal-600/5"},{icon:Cv,title:"Cleared Professional Recruitment",accent:"from-emerald-500/20 to-emerald-600/5"},{icon:Oa,title:"Rapid Scaling for Task Order Awards",accent:"from-yellow-500/20 to-yellow-600/5"},{icon:YN,title:"Strategic Workforce Planning and Talent Pipeline Development",accent:"from-teal-500/20 to-teal-600/5"},{icon:zN,title:"Military Occupation Code to LCAT Translation & Talent Acquisition",accent:"from-violet-500/20 to-violet-600/5"},{icon:Vu,title:"Ability One Qualified Talent Acquisition",accent:"from-amber-500/20 to-amber-600/5"},{icon:YN,title:"Pre-built Talent Pools in All Categories That Grow Every Day",accent:"from-teal-500/20 to-teal-600/5"}],foe=["Accelerate recruiting and hiring cycles","Access highly qualified and difficult-to-find candidates","Improve workforce readiness","Reduce time-to-fill for critical positions","Support rapid contract ramp-up requirements","Strengthen workforce continuity across task orders","Build long-term talent pipelines for future growth"],_l=({eyebrow:e,children:t,className:n="",align:s="center"})=>r.jsxs("div",{className:n,children:[e&&r.jsxs(ms.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.5,ease:"easeOut"},className:`flex items-center gap-3 mb-4 ${s==="center"?"justify-center":""}`,children:[r.jsx("span",{className:"h-px w-8 bg-primary/60"}),r.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.2em] text-primary",children:e}),r.jsx("span",{className:"h-px w-8 bg-primary/60"})]}),r.jsx(ms.h2,{initial:{opacity:0,y:48,filter:"blur(4px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{duration:.8,ease:[.16,1,.3,1]},className:`text-3xl md:text-4xl lg:text-5xl font-extrabold tracking-tight leading-[1.1] bg-gradient-to-br from-[#0B1F33] via-[#0B1F33] to-[#0B1F33] bg-clip-text text-transparent ${s==="center"?"text-center":"text-left"}`,children:t})]});function jT(){const e=E.useRef(null),[t,n]=E.useState(0),[s,i]=E.useState(!1),[o,l]=E.useState(!1);return E.useEffect(()=>{const c=()=>n(window.scrollY);return window.addEventListener("scroll",c,{passive:!0}),()=>window.removeEventListener("scroll",c)},[]),r.jsxs("div",{className:"bg-background",children:[r.jsx(v0,{}),r.jsxs("section",{ref:e,className:"relative min-h-[85vh] flex items-center justify-center overflow-hidden",children:[r.jsx("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-cover",style:{transform:`translateY(${t*.2}px) scale(1.05)`},children:r.jsx("source",{src:VW,type:"video/mp4"})}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-white/40 via-white/50 to-white/70"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0B1F33]/15 via-trans
1075parent to-[#0B1F33]/15"}),r.jsx("div",{className:"absolute -top-20 -left-20 w-96 h-96 bg-primary/20 rounded-full blur-3xl opacity-60"}),r.jsx("div",{className:"absolute -bottom-20 -right-20 w-96 h-96 bg-[#0B1F33]/20 rounded-full blur-3xl opacity-50"}),r.jsxs("div",{className:"relative z-10 text-center px-6 py-20 max-w-4xl mx-auto",children:[r.jsx(ms.h1,{initial:{opacity:0,y:50,filter:"blur(6px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.9,ease:[.16,1,.3,1],delay:.1},className:"text-4xl md:text-6xl lg:text-7xl font-extrabold tracking-tight leading-[1.05] bg-gradient-to-br from-[#0B1F33] via-[#0B1F33] to-[#0B1F33] bg-clip-text text-transparent drop-shadow-sm",children:"Recruiting Advantage for NASA SEWP VI Contractors"}),r.jsx(et,{delay:.3,children:r.jsx("p",{className:"mt-6 text-xl md:text-2xl text-[#0B1F33]/80 font-medium",children:"Winning the contract is only the first step. Building the right team is what drives long-term success."})}),r.jsx(et,{delay:.45,children:r.jsx("div",{className:"mt-10 flex justify-center",children:r.jsxs("button",{onClick:()=>i(!0),className:"group bg-primary text-primary-foreground px-10 py-4 rounded-lg font-bold uppercase tracking-wider text-base shadow-xl shadow-primary/30 hover:shadow-2xl hover:shadow-primary/40 hover:-translate-y-0.5 transition-all flex items-center gap-2",children:["Schedule a Call Today",r.jsx(Al,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})})})]}),r.jsx(ms.img,{src:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/580dc0216_image2.png",alt:"SEWP VI astronaut duck",initial:{opacity:0,x:-30,rotate:-8},animate:{opacity:1,x:0,rotate:0},transition:{duration:.8,ease:"easeOut",delay:.6},className:"absolute top-6 left-6 z-20 w-20 h-20 md:w-28 md:h-28 object-contain drop-shadow-2xl pointer-events-none"}),r.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-24 bg-gradient-to-t from-card to-transparent"})]}),r.jsxs("section",{className:"relative py-24 px-6 bg-card overflow-hidden",children:[r.jsx("div",{className:"absolute top-1/2 left-0 -translate-y-1/2 w-72 h-72 bg-primary/10 rounded-full blur-3xl op
1075acity-50"}),r.jsxs("div",{className:"relative max-w-4xl mx-auto text-center",children:[r.jsx(_l,{eyebrow:"Our Identity",children:"Who We Are"}),r.jsx(et,{delay:.2,children:r.jsxs("p",{className:"mt-8 text-lg md:text-xl text-muted-foreground leading-relaxed",children:["We are a certified ",r.jsx("span",{className:"font-semibold text-[#0B1F33]",children:"Service-Disabled Veteran-Owned Small Business (SDVOSB)"})," recruiting firm. We are part of the Military Veteran community. Our recruiting network and bench have been developed to primarily serve our country's massive Veteran population."]})})]})]}),r.jsxs("section",{className:"relative py-24 px-6 overflow-hidden",children:[r.jsx("div",{className:"absolute top-0 right-0 w-80 h-80 bg-[#0B1F33]/8 rounded-full blur-3xl"}),r.jsxs("div",{className:"relative max-w-6xl mx-auto grid md:grid-cols-2 gap-14 items-center",children:[r.jsx(et,{children:r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"absolute -inset-4 bg-gradient-to-br from-primary/20 to-[#0B1F33]/20 rounded-2xl blur-xl opacity-60"}),r.jsxs("div",{className:"relative rounded-2xl overflow-hidden shadow-2xl ring-1 ring-black/5",children:[r.jsx("img",{src:_P,alt:"Veteran team",className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#0B1F33]/40 via-transparent to-transparent"})]})]})}),r.jsxs("div",{children:[r.jsx(_l,{eyebrow:"The Challenge",align:"left",children:"The Real Challenge After Winning SEWP VI"}),r.jsx(et,{delay:.15,children:r.jsx("p",{className:"mt-6 text-lg text-muted-foreground leading-relaxed",children:"Winning a NASA SEWP VI task order is only the beginning. The real challenge begins after award—identifying, recruiting, hiring, and retaining the highly skilled professionals needed to successfully execute complex federal technology programs."})}),r.jsx(et,{delay:.25,children:r.jsx("p",{className:"mt-4 text-lg text-muted-foreground leading-relaxed",children:"The demand for software engineers, cybersecurity specialists, cloud architects, AI and data professionals, network engineers, program managers, and cleared personnel will be intense. Every SEWP VI prime contractor and subcontractor will be competing for the same limited pool of qualified candidates."})}),r.jsx(et,{delay:.35,children:r.jsx("p",{className:"mt-4 text-lg text-muted-foreground leading-relaxed",children:"The contractors that build the strongest recruiting and retention strategies will outperform competitors, deliver exceptional contract performance, and position themselves for long-term growth."})}),r.jsx(et,{delay:.45,children:r.jsx("div",{className:"mt-6 inline-flex items-center gap-2 bg-gradient-to-r from-primary/15 to-[#0B1F33]/10 border border-primary/20 rounded-lg px-5 py-3",children:r.jsx("span",{className:"text-lg font-semibold text-[#0B1F33]",children:"That's where Lean Synergy Solutions creates a competitive advantage."})})})]})]})]}),r.jsxs("section",{className:"relative py-24 px-6 bg-card overflow-hidden",children:[r.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-[600px] h-64 bg-primary/8 rounded-full blur-3xl"}),r.jsxs("div",{className:"relative max-w-4xl mx-auto",children:[r.jsx(_l,{eyebrow:"Speed Matters",children:"Recruit Top Talent Faster"}),r.jsx(et,{delay:.2,children:r.jsx("p",{className:"mt-8 text-lg text-muted-foreground leading-relaxed text-center max-w-3xl mx-auto",children:"Federal contractors must act quickly upon the award of task orders. Delays in recruiting critical personnel can impact program performance, customer satisfaction, and future growth opportunities."})}),r.jsx(et,{delay:.3,children:r.jsx("p",{className:"mt-4 text-lg text-muted-foreground leading-relaxed text-center max-w-3xl mx-auto",children:"Lean Synergy Solutions specializes in helping government contractors attract, recruit, and place highly qualified professionals across the technologies and disciplines most critical to SEWP VI success. Our recruiting team helps contractors access hard-to-find talent, accelerate hiring timelines, and reduce the burden on internal recruiting resources."})}),r.jsx(et,{delay:.4,children:r.jsxs("div",{className:"mt-12 max-w-2xl mx-auto bg-gray-300 rounded-2xl border border-gray-400 shadow-lg overflow-hidden flex flex-col sm:flex-row items-center gap-6 p-6",children:[r.jsx("img",{src:"https://media.base44.com/images/public/6a1652b2216e8d40d018e580/580dc0216_image2.png",alt:"SEWP VI astronaut duck",className:"w-28 h-28 sm:w-32 sm:h-32 object-contain flex-shrink-0"}),r.jsx("div",{className:"text-center sm:text-left",children:r.jsxs("p",{className:"text-base text-[#0B1F33] leading-relaxed",children:["There actually is a story behind the duck, and it goes back to the early days of NASA SEWP."," ",r.jsx("button",{onClick:()=>l(!0),className:"font-semibold text-primary hover:underline",children:"Click here to learn more"}),"."]})})]})})]})]}),r.jsxs("section",{className:"relative py-20 px-6 overflow-hidden",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#0B1F33] via-[#0B1F33] to-[#0B1F33]"}),r.jsx("div",{className:"absolute top-0 left-0 w-96 h-96 bg-primary/30 rounded-full blur-3xl op
1075acity-40"}),r.jsx("div",{className:"absolute bottom-0 right-0 w-96 h-96 bg-primary/20 rounded-full blur-3xl opacity-30"}),r.jsx("div",{className:"relative max-w-4xl mx-auto",children:r.jsx(ms.div,{initial:{opacity:0,y:40,scale:.97},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:[.16,1,.3,1]},className:"bg-white/10 backdrop-blur-md border border-white/20 rounded-2xl p-10 md:p-14 shadow-2xl",children:r.jsxs("div",{className:"flex flex-col items-center text-center",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-primary flex items-center justify-center mb-6 shadow-lg shadow-primary/40",children:r.jsx(T5,{className:"w-8 h-8 text-primary-foreground"})}),r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx("span",{className:"h-px w-8 bg-primary/60"}),r.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.2em] text-primary",children:"Payment Plan"}),r.jsx("span",{className:"h-px w-8 bg-primary/60"})]}),r.jsxs("h2",{className:"text-2xl md:text-4xl font-extrabold text-white",children:["Flexible up to 36-Month Recruiting Fee ",r.jsx("span",{className:"align-super text-base",children:"*"}),"Plan"]}),r.jsx("p",{className:"mt-6 text-lg md:text-xl text-white/90 leading-relaxed max-w-2xl font-semibold",children:"Secure the talent you need without a large recruiting fee due all at once."}),r.jsx("p",{className:"mt-6 text-base md:text-lg text-white/85 leading-relaxed max-w-2xl",children:"Lean Synergy Solutions offers SEWP VI contractors a flexible alternative to the traditional permanent-placement fee model. Instead of paying the full recruiting fee when your new hire starts, your placement fee is divided into 36 predictable, interest-free monthly payments."}),r.jsx("p",{className:"mt-4 text-base md:text-lg text-white/85 leading-relaxed max-w-2xl",children:"Your first payment begins when the candidate starts work, followed by equal monthly installments over the remainder of the 36-month term."}),r.jsx("p",{className:"mt-6 text-base md:text-lg text-white font-semibold leading-relaxed max-w-2xl",children:"Same permanent-placement recruiting. No large upfront fee. Better cash-flow alignment."}),r.jsx("p",{className:"mt-4 text-base md:text-lg text-white/85 leading-relaxed max-w-2xl",children:"Build the team you need now while spreading your recruiting investment across the life of the contract."}),r.jsx("p",{className:"mt-6 text-xs text-white/60 leading-relaxed max-w-2xl",children:"*Payment plan availability is subject to LS review and approval for new clients."})]})})})]}),r.jsxs("section",{className:"relative py-24 px-6 overflow-hidden",children:[r.jsx("div",{className:"absolute top-20 right-0 w-80 h-80 bg-primary/8 rounded-full blur-3xl"}),r.jsxs("div",{className:"relative max-w-7xl mx-auto",children:[r.jsx(_l,{eyebrow:"Our Capabilities",className:"mb-14",children:"Recruiting Solutions Designed for SEWP VI Contractors"}),r.jsx(hr,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:doe.map(c=>r.jsx(mr,{children:r.jsxs("div",{className:"group relative bg-card rounded-xl p-6 border border-border hover:border-primary/40 hover:shadow-2xl hover:shadow-primary/10 hover:-translate-y-1.5 transition-all duration-300 h-full flex flex-col items-start overflow-hidden",children:[r.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${c.accent} opacity-0 group-hover:opacity-100 transition-opacity duration-300`}),r.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-primary to-[#0B1F33] opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),r.jsx("div",{className:"relative w-14 h-14 rounded-xl bg-gradient-to-br from-primary/15 to-[#0B1F33]/10 flex items-center justify-center mb-5 shadow-sm group-hover:scale-110 group-hover:shadow-lg group-hover:shadow-primary/20 transition-all duration-300",children:r.jsx(c.icon,{className:"w-7 h-7 text-primary"})}),r.jsx("h3",{className:"relative font-bold text-base leading-snug",children:c.title})]})},c.title))}),r.jsx(et,{delay:.2,children:r.jsx("p",{className:"mt-12 text-center text-2xl md:text-3xl font-black text-[#0B1F33] max-w-3xl mx-auto italic animate-pulse drop-shadow-sm",children:"When the best candidates are evaluating multiple opportunities, speed, relationships, and recruiting expertise often determine who wins the talent competition."})}),r.jsx(et,{delay:.3,children:r.jsx("div",{className:"mt-10 flex justify-center",children:r.jsxs(Me,{to:"/lss-talent-network",className:"group bg-primary text-primary-foreground px-10 py-4 rounded-lg font-extrabold uppercase tracking-wider text-base shadow-xl animate-talent-pool-blink hover:opacity-90 transition-all flex items-center gap-2",children:["Join the LSS Talent Network",r.jsx(Al,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})})})]})]}),r.jsxs("section",{className:"relative py-24 px-6 bg-card overflow-hidden",children:[r.jsx("div",{className:"absolute top-1/3 left-0 w-72 h-72 bg-red-500/5 rounded-full blur-3xl"}),r.jsxs("div",{className:"relative max-w-6xl mx-auto grid md:grid-cols-2 gap-14 items-start",children:[r.jsxs("div",{className:"md:sticky md:top-24",children:[r.jsx(_l,{eyebrow:"Risk Mitigation",align:"left",children:"Reduce Hiring Risk and Improve Contract Performance"}),r.jsx(et,{delay:.15,children:r.jsxs("div",{className:"mt-6 inline-flex items-center gap-3 bg-red-500/10 border border-red-500/20 rounded-lg px-4 py-3",children:[r.jsx(Ev,{className:"w-5 h-5 text-red-500 flex-shrink-0"}),r.jsx("p",{className:"text-base text-muted-foreground",children:"Every unfilled position creates risk."})]})}),r.jsx(et,{delay:.25,children:r.jsx("p",{className:"mt-5 text-lg text-muted-foreground leading-relaxed",children:"Vacant roles can delay program execution, increase pressure on existing staff, impact customer satisfaction, and limit a contractor's ability to pursue new opportunities. Lean Synergy Solutions helps SEWP VI contractors:"})})]}),r.jsx(hr,{className:"grid gap-3",children:foe.map((c,d)=>r.jsx(mr,{children:r.jsxs("div",{className:"group flex items-start gap-4 bg-background rounded-xl p-5 border border-border hover:border-primary/40 hover:shadow-lg hover:-translate-y-0.5 transition-all duration-300",children:[r.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-lg bg-gradient-to-br from-primary/15 to-[#0B1F33]/10 flex items-center justify-center shadow-sm",children:r.jsx(Vu,{className:"w-5 h-5 text-primary"})}),r.jsxs("div",{children:[r.jsx("span",{className:"text-xs font-bold text-primary/70 block mb-0.5",children:String(d+1).padStart(2,"0")}),r.jsx("span",{className:"text-base font-medium",children:c})]})]})},c))})]})]}),r.jsxs("section",{className:"relative py-24 px-6 overflow-hidden",children:[r.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[500px] h-64 bg-[#0B1F33]/8 rounded-full blur-3xl"}),r.jsxs("div",{className:"relative max-w-4xl mx-auto text-center",children:[r.jsx(_l,{eyebrow:"Federal Focus",children:"Built for the Demands of Federal Contracting"}),r.jsx(et,{delay:.2,children:r.jsx("p",{className:"mt-8 text-lg text-muted-foreground leading-relaxed",children:"Federal contractors face unique workforce challenges. Contract awards often require immediate access to specialized technical talent, aggressive hiring schedules, and the ability to scale quickly."})}),r.jsx(et,{delay:.3,children:r.jsx("p",{className:"mt-4 text-lg text-muted-foreground leading-relaxed",children:"Organizations that cannot recruit and retain qualified personnel risk falling behind competitors and missing growth opportunities. Lean Synergy Solutions helps contractors develop workforce strategies that support sustainable growth, improve recruiting outcomes, and ensure operational readiness."})})]})]}),r.jsxs("section",{className:"relative py-20 px-6 overflow-hidden",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#0B1F33] via-[#0B1F33] to-[#0B1F33]"}),r.jsx("div",{className:"absolute top-0 left-1/4 w-96 h-96 bg-primary/25 rounded-full blur-3xl op
1075acity-50"}),r.jsx("div",{className:"absolute bottom-0 right-1/4 w-96 h-96 bg-primary/15 rounded-full blur-3xl opacity-40"}),r.jsxs("div",{className:"relative max-w-4xl mx-auto text-center",children:[r.jsxs(ms.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.5,ease:"easeOut"},className:"flex items-center gap-3 justify-center mb-4",children:[r.jsx("span",{className:"h-px w-8 bg-primary/60"}),r.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.2em] text-primary",children:"Your Advantage"}),r.jsx("span",{className:"h-px w-8 bg-primary/60"})]}),r.jsx(ms.h2,{initial:{opacity:0,y:48,filter:"blur(4px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{duration:.8,ease:[.16,1,.3,1]},className:"text-3xl md:text-5xl font-extrabold text-white",children:"Gain a Recruiting Advantage for SEWP VI"}),r.jsx(et,{delay:.2,children:r.jsx("p",{className:"mt-6 text-lg md:text-xl text-white/85 leading-relaxed max-w-2xl mx-auto",children:"The SEWP VI opportunity will create tremendous demand for highly skilled technology professionals. Contractors that establish effective recruiting partnerships and talent acquisition strategies will gain a significant advantage in contract execution and long-term growth."})}),r.jsx(et,{delay:.3,children:r.jsxs("p",{className:"mt-4 text-xl md:text-2xl font-semibold text-white/90 leading-relaxed max-w-2xl mx-auto italic",children:[r.jsx("span",{className:"text-primary font-extrabold not-italic",children:"Lean Synergy Solutions"})," helps transform recruiting from a staffing function into a strategic competitive advantage."]})}),r.jsx(et,{delay:.4,children:r.jsx("p",{className:"mt-8 text-xl md:text-2xl font-semibold text-primary italic",children:"Because winning the contract is only the first step. Building the right team is what drives long-term success."})}),r.jsx(et,{delay:.5,children:r.jsxs("div",{className:"mt-10 flex flex-col sm:flex-row gap-4 justify-center",children:[r.jsxs("button",{onClick:()=>i(!0),className:"group bg-primary text-primary-foreground px-10 py-4 rounded-lg font-bold uppercase tracking-wider text-base shadow-xl shadow-primary/30 hover:shadow-2xl hover:-translate-y-0.5 transition-all flex items-center gap-2 justify-center",children:["Schedule a Call Today",r.jsx(Al,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]}),r.jsxs(Me,{to:"/lss-talent-network",className:"group bg-primary text-primary-foreground px-10 py-4 rounded-lg font-extrabold uppercase tracking-wider text-lg shadow-xl animate-talent-pool-blink hover:opacity-90 transition-all flex items-center gap-2 justify-center",children:["Join the LSS Talent Network",r.jsx(Al,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})]})})]})]}),r.jsx(loe,{open:s,onOpenChange:i}),r.jsx(uoe,{open:o,onClose:()=>l(!1)}),r.jsx(b0,{})]})}function NT(){return r.jsxs("div",{className:"min-h-screen flex flex-col bg-background text-foreground font-sans",children:[r.jsx(YO,{}),r.jsx(zO,{}),r.jsx("main",{className:"flex-1",children:r.jsx(WA,{})}),r.jsx(HO,{})]})}const hoe={"[email protected]":"recruiter-alex-potgeter","[email protected]":"recruiter-seth-bullard","[email protected]":"recruiter-michael-malinowsky","[email protected]":"rick-bullard","[email protected]":"misty-duffney","[email protected]":"recruiter-frank-hitchcock","[email protected]":"recruiter-james-shelton","[email protected]":"katherine-robertson","[email protected]":"recruiter-eddie-brock","[email protected]":"jeremy-montgomery","[email protected]":"jeremy-montgomery"};function ST(){var Q,q;const{user:e,logout:t,isLoadingAuth:n,navigateToLogin:s}=jd();E.useEffect(()=>{!n&&!e&&s()},[n,e]);const[i,o]=E.useState("applications"),[l,c]=E.useState([]),[d,h]=E.useState([]),[p,f]=E.useState([]),[m,g]=E.useState([]),[j,b]=E.useState([]),[x,v]=E.useState(!0),[N,S]=E.useState(null),[w,k]=E.useState(null),[O,C]=E.useState(null),A=async F=>{if(F.resume_url){try{await ge.functions.invoke("trackResumeDownload",{applicationId:F.id})}catch(P){console.error("Resume tracking failed:",P)}await _w(F.resume_url)}},B=F=>{k(F);try{ge.functions.invoke("trackResumeDownload",{applicationId:F.id})}catch(P){console.error("Access tracking failed:",P)}},I=()=>{D&&ge.functions.invoke("getRecruiterDashboard",{recruiterSlug:D}).then(F=>{c(F.data.jobs||[]),h(F.data.applications||[]),f(F.data.archivedApplications||[]),g(F.data.messages||[]),b(F.data.govconInquiries||[])}).catch(F=>S(F.message))},L=async F=>{const P=!F.archived,V=Z=>Z.filter(X=>X.id!==F.id),W={...F,archived:P};P?(h(V),f(Z=>[W,...Z])):(f(V),h(Z=>[W,...Z]));try{await ge.functions.invoke("setApplicationArchived",{applicationId:F.id,archived:P})}catch(Z){console.error("Archive failed:",Z),S(Z.message||"Could not update archive status. Please try again."),I()}},D=e?hoe[(Q=e.email)==null?void 0:Q.toLowerCase()]:null,[R,U]=E.useState(((q=e==null?void 0:e.full_name)==null?void 0:q.split(" ")[0])||"Recruiter"),[$,Y]=E.useState(null);if(E.useEffect(()=>{D&&ge.entities.TeamMember.list("sort_order",100).then(F=>{const P=F.find(V=>V.slug===D);P&&(Y(P),U(P.name.split(" ")[0]))}).catch(()=>{})},[D]),E.useEffect(()=>{if(!D){v(!1);return}ge.functions.invoke("getRecruiterDashboard",{recruiterSlug:D}).then(F=>{c(F.data.jobs||[]),h(F.data.applications||[]),f(F.data.archivedApplications||[]),g(F.data.messages||[]),b(F.data.govconInquiries||[])}).catch(F=>S(F.message)).finally(()=>v(!1))},[D]),!e)return r.jsx("div",{className:"min-h-screen flex items-center justify-center",children:r.jsx("p",{className:"text-muted-foreground",children:"Please log in to access your dashboard."})});const K=D==="jeremy-montgomery";return D?r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-8",children:[r.jsxs("div",{className:"flex items-center justify-between mb-8",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[($==null?void 0:$.photo)&&r.jsx("img",{src:$.photo,alt:$.name,className:"w-12 h-12 rounded-full object-cover"}),r.jsxs("div",{children:[r.jsxs("h1",{className:"text-2xl font-bold",children:["Welcome back, ",R,"!"]}),r.jsxs("p",{className:"text-muted-foreground text-sm",children:[($==null?void 0:$.t
1075itle)||"Recruiter"," · ",e.email]})]})]}),r.jsxs(xe,{variant:"outline",onClick:()=>t(),className:"gap-2",children:[r.jsx(Wb,{className:"w-4 h-4"})," Log Out"]})]}),r.jsxs("div",{className:"grid grid-cols-3 gap-4 mb-8",children:[r.jsx(xt,{children:r.jsxs(vt,{className:"p-5 flex items-center gap-4",children:[r.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center",children:r.jsx(Gr,{className:"w-5 h-5 text-primary"})}),r.jsxs("div",{children:[r.jsx("p",{className:"text-2xl font-bold",children:l.length}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Active Jobs"})]})]})}),r.jsx(xt,{children:r.jsxs(vt,{className:"p-5 flex items-center gap-4",children:[r.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center",children:r.jsx(wn,{className:"w-5 h-5 text-primary"})}),r.jsxs("div",{children:[r.jsx("p",{className:"text-2xl font-bold",children:d.length}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Applications"})]})]})}),r.jsx(xt,{children:r.jsxs(vt,{className:"p-5 flex items-center gap-4",children:[r.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center",children:r.jsx(bu,{className:"w-5 h-5 text-primary"})}),r.jsxs("div",{children:[r.jsx("p",{className:"text-2xl font-bold",children:m.length}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Messages"})]})]})})]}),r.jsxs("div",{className:"flex gap-2 mb-6 border-b border-border",children:[r.jsxs("button",{onClick:()=>o("applications"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${i==="applications"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(wn,{className:"w-4 h-4"})," Applications (",d.length,")"]}),r.jsxs("button",{onClick:()=>o("archived"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${i==="archived"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(Is,{className:"w-4 h-4"})," Archived (",p.length,")"]}),r.jsxs("button",{onClick:()=>o("jobs"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${i==="jobs"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(Gr,{className:"w-4 h-4"})," My Jobs (",l.length,")"]}),r.jsxs("button",{onClick:()=>o("messages"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${i==="messages"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(bu,{className:"w-4 h-4"})," Messages (",m.length,")"]}),K&&r.jsxs("button",{onClick:()=>o("govcon"),className:`flex items-center gap-2 px-4 py-2 text-sm font-semibold border-b-2 transition-colors ${i==="govcon"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[r.jsx(ka,{className:"w-4 h-4"})," GovCon (",j.length,")"]})]}),x&&r.jsxs("div",{className:"text-center py-16",children:[r.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-3"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading your dashboard..."})]}),N&&r.jsx("div",{className:"bg-red-50 border border-red-200 text-red-700 rounded-lg p-4",children:N}),!x&&i==="applications"&&r.jsx(r.Fragment,{children:d.length===0?r.jsxs("div",{className:"text-center py-16 text-muted-foreground",children:[r.jsx(wn,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),r.jsx("p",{children:"No applications yet. Share your recruiter page to start receiving them."}),r.jsx(Me,{to:`/apply/${D}`,className:"text-primary text-sm font-semibold mt-2 inline-block hover:underline",children:"View your recruiter page →"})]}):r.jsx("div",{className:"space-y-3",children:d.map(F=>r.jsx(xt,{className:"hover:border-primary/40 transition-colors",children:r.jsx(vt,{className:"p-4",children:r.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[r.jsxs("div",{className:"flex-1",children:[r.jsxs("p",{className:"font-semibold",children:[F.first_name," ",F.last_name]}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:[F.email," · ",F.phone]}),r.jsxs("div",{className:"flex items-center gap-2 mt-1 flex-wrap",children:[F.job_title?r.jsx(Be,{variant:"secondary",className:"text-xs",children:F.job_title}):r.jsx(Be,{variant:"outline",className:"text-xs",children:"General Application"}),F.job_number&&r.jsxs("span",{className:"text-xs text-muted-foreground",children:["Job #",F.job_number]}),r.jsx("span",{className:"text-xs text-muted-foreground",children:F.created_date?new Date(F.created_date).toLocaleDateString():""})]})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>B(F),children:r.jsx(Aa,{className:"w-4 h-4"})}),F.resume_url&&r.jsxs(r.Fragment,{children:[r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>A(F),title:"Download Resume",children:r.jsx(Yr,{className:"w-4 h-4"})}),r.jsx(xe,{variant:"outline",size:"sm",title:"Save to Google Drive",onClick:()=>window.open("https://drive.google.com/drive/my-drive","_blank"),children:r.jsx(GN,{className:"w-4 h-4"})})]}),r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>L(F),title:"Archive application",children:r.jsx(Is,{className:"w-4 h-4"})})]})]})})},F.id))})}),!x&&i==="archived"&&r.jsx(r.Fragment,{children:p.length===0?r.jsxs("div",{className:"text-center py-16 text-muted-foreground",children:[r.jsx(Is,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),r.jsx("p",{children:"No archived applications. Archived applications will appear here after you process them."})]}):r.jsx("div",{className:"space-y-3",children:p.map(F=>r.jsx(xt,{className:"hover:border-primary/40 transition-colors opacity-80",children:r.jsx(vt,{className:"p-4",children:r.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[r.jsxs("div",{className:"flex-1",children:[r.jsxs("p",{className:"font-semibold",children:[F.first_name," ",F.last_name]}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:[F.email," · ",F.phone]}),r.jsxs("div",{className:"flex items-center gap-2 mt-1 flex-wrap",children:[F.job_title?r.jsx(Be,{variant:"secondary",className:"text-xs",children:F.job_title}):r.jsx(Be,{variant:"outline",className:"text-xs",children:"General Application"}),F.job_number&&r.jsxs("span",{className:"text-xs text-muted-foreground",children:["Job #",F.job_number]}),r.jsxs(Be,{className:"bg-muted text-muted-foreground text-xs gap-1",children:[r.jsx(Is,{className:"w-3 h-3"})," Archived"]})]})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>B(F),children:r.jsx(Aa,{className:"w-4 h-4"})}),F.resume_url&&r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>A(F),title:"Download Resume",children:r.jsx(Yr,{className:"w-4 h-4"})}),r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>L(F),title:"Restore application",children:r.jsx(mh,{className:"w-4 h-4"})})]})]})})},F.id))})}),!x&&i==="jobs"&&r.jsx(r.Fragment,{children:l.length===0?r.jsxs("div",{className:"text-center py-16 text-muted-foreground",children:[r.jsx(Gr,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),r.jsx("p",{children:"No active jobs assigned to you yet. Contact your admin."})]}):r.jsx("div",{className:"space-y-3",children:l.map(F=>r.jsx(xt,{className:"overflow-hidden",children:r.jsxs(vt,{className:"p-0",children:[r.jsx("button",{className:"w-full text-left p-4 hover:bg-muted/50 transition-colors",onClick:()=>C(O===F.id?null:F.id),children:r.jsxs("div",{className:"flex items-start justify-between gap-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold",children:F.title}),F.location&&r.jsx("p",{className:"text-sm text-muted-foreground",children:F.location}),F.job_number&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Job #",F.job_number]})]}),r.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[r.jsxs(Be,{variant:"secondary",className:"text-xs",children:[d.filter(P=>P.job_number===F.job_number).length," applicants"]}),O===F.id?r.jsx(zT,{className:"w-4 h-4"}):r.jsx(Ca,{className:"w-4 h-4"})]})]})}),O===F.id&&F.description&&r.jsx("div",{className:"border-t border-border p-4 bg-muted/30 text-sm text-muted-foreground whitespace-pre-line",children:F.description})]})},F.id))})}),!x&&i==="messages"&&r.jsx(r.Fragment,{children:m.length===0?r.jsxs("div",{className:"text-center py-16 text-muted-foreground",children:[r.jsx(bu,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),r.jsx("p",{children:"No messages yet. When someone submits a form from your profile, it will appear here."})]}):r.jsx("div",{className:"space-y-3",children:m.map(F=>r.jsx(xt,{children:r.jsx(vt,{className:"p-4",children:r.jsx("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"font-semibold",children:F.full_name}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:[F.email,F.phone?` · ${F.phone}`:""]}),F.company&&r.jsx("p",{className:"text-sm text-muted-foreground",children:F.company}),F.message&&r.jsx("p",{className:"mt-2 text-sm bg-muted rounded p-3 whitespace-pre-wrap",children:F.message}),r.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:F.created_date?new Date(F.created_date).toLocaleDateString():""})]})})})},F.id))})}),!x&&i==="govcon"&&K&&r.jsx(r.Fragment,{children:j.length===0?r.jsxs("div",{className:"text-center py-16 text-muted-foreground",children:[r.jsx(ka,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),r.jsx("p",{children:"No GovCon inquiries yet. They will appear here when submitted from the capability statement page."})]}):r.jsx("div",{className:"space-y-3",children:j.map(F=>r.jsx(xt,{children:r.jsx(vt,{className:"p-4",children:r.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"font-semibold",children:F.full_name}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:[F.email,F.phone?` · ${F.phone}`:""]}),F.company&&r.jsx("p",{className:"text-sm text-muted-foreground",children:F.company}),F.message&&r.jsx("p",{className:"mt-2 text-sm bg-muted rounded p-3 whitespace-pre-wrap",children:F.message}),r.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:F.created_date?new Date(F.created_date).toLocaleDateString():""})]}),F.email&&r.jsx(xe,{variant:"outline",size:"sm",onClick:()=>window.open(`mailto:${F.email}`),children:r.jsx(bu,{className:"w-4 h-4"})})]})})},F.id))})})]}),r.jsx(ki,{open:!!w,onOpenChange:()=>k(null),children:r.jsxs(Ys,{className:"max-w-lg",children:[r.jsx(Ks,{children:r.jsxs(Js,{children:["Application — ",w==null?void 0:w.first_name," ",w==null?void 0:w.last_name]})}),w&&r.jsxs("div",{className:"space-y-3 text-sm",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Email"}),r.jsx("p",{className:"text-muted-foreground",children:w.email})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Phone"}),r.jsx("p",{className:"text-muted-foreground",children:w.phone})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Job Title"}),r.jsx("p",{className:"text-muted-foreground",children:w.job_title||"—"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Job #"}),r.jsx("p",{className:"text-muted-foreground",children:w.job_number||"—"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"How Heard"}),r.jsx("p",{className:"text-muted-foreground",children:w.how_heard||"—"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Applied"}
1075),r.jsx("p",{className:"text-muted-foreground",children:w.created_date?new Date(w.created_date).toLocaleDateString():"—"})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-3 border-t border-border pt-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"18 or Older"}),r.jsx("p",{className:"text-muted-foreground",children:w.is_18_or_older||"—"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Visa Sponsorship"}),r.jsx("p",{className:"text-muted-foreground",children:w.requires_visa_sponsorship||"—"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Available Start"}),r.jsx("p",{className:"text-muted-foreground",children:w.available_start_date||"—"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Preferred Contact"}),r.jsx("p",{className:"text-muted-foreground",children:w.preferred_contact_method||"—"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Best Time to Contact"}),r.jsx("p",{className:"text-muted-foreground",children:w.best_contact_time||"—"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Referral Details"}),r.jsx("p",{className:"text-muted-foreground",children:w.referral_details||"—"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"SMS Consent"}),r.jsx("p",{className:"text-muted-foreground",children:w.sms_consent?"Yes":"No"})]})]}),w.message&&r.jsxs("div",{children:[r.jsx("p",{className:"font-medium mb-1",children:"Message"}),r.jsx("div",{className:"bg-muted rounded p-3 text-muted-foreground whitespace-pre-wrap",children:w.message})]}),w.resume_url&&r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(xe,{className:"flex-1",onClick:()=>A(w),children:[r.jsx(Yr,{className:"w-4 h-4 mr-2"})," Download Resume"]}),r.jsxs(xe,{variant:"outline",className:"flex-1",onClick:()=>window.open("https://drive.google.com/drive/my-drive","_blank"),children:[r.jsx(GN,{className:"w-4 h-4 mr-2"})," Open Google Drive"]})]})]})]})})]}):r.jsx("div",{className:"min-h-screen flex items-center justify-center p-6",children:r.jsx(xt,{className:"max-w-md w-full text-center",children:r.jsxs(vt,{className:"pt-8 pb-8",children:[r.jsx(Po,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),r.jsx("h2",{className:"text-xl font-bold mb-2",children:"No Dashboard Found"}),r.jsxs("p",{className:"text-muted-foreground text-sm mb-4",children:["Your account (",r.jsx("strong",{children:e.email}),") is not linked to a recruiter profile. Contact your administrator."]}),r.jsx(xe,{variant:"outline",onClick:()=>t(),children:"Log Out"})]})})})}const moe=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:s}=jd();return t||e?r.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:r.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})}):n?n.type==="user_not_registered"?r.jsx(e$,{}):n.type==="auth_required"?(s(),r.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:r.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})})):r.jsxs(bS,{children:[r.jsxs($e,{element:r.jsx(g_,{}),children:[r.jsx($e,{path:"/",element:r.jsx(R2,{})}),r.jsx($e,{path:"/who-we-are",element:r.jsx(P2,{})}),r.jsx($e,{path:"/meet-our-team",element:r.jsx(D2,{})}),r.jsx($e,{path:"/team/:slug",element:r.jsx(ok,{})}),r.jsx($e,{path:"/team/:slug/job/:jobNumber",element:r.jsx(ak,{})}),r.jsx($e,{path:"/our-partners",element:r.jsx(lk,{})}),r.jsx($e,{path:"/mission-values",element:r.jsx(ck,{})}),r.jsx($e,{path:"/testimonials-page",element:r.jsx(uk,{})}),r.jsx($e,{path:"/submit-testimonial",element:r.jsx(Sk,{})}),r.jsx($e,{path:"/sms-privacy-policy",element:r.jsx(_k,{})}),r.jsx($e,{path:"/capability-statement",element:r.jsx(kk,{})}),r.jsx($e,{path:"/solutions",element:r.jsx(Ek,{})}),r.jsx($e,{path:"/lets-talk",element:r.jsx(Ck,{})}),r.jsx($e,{path:"/veteran-resources",element:r.jsx(Tk,{})}),r.jsx($e,{path:"/blog",element:r.jsx(Ak,{})}),r.jsx($e,{path:"/blog/:slug",element:r.jsx(Ok,{})}),r.jsx($e,{path:"/resources",element:r.jsx(Rk,{})}),r.jsx($e,{path:"/contact",element:r.jsx(Pk,{})}),r.jsx($e,{path:"/jobs",element:r.jsx(Dk,{})}),r.jsx($e,{path:"/apply",element:r.jsx(Ik,{})}),r.jsx($e,{path:"/apply/:recruiterSlug",element:r.jsx(Lk,{})}),r.jsx($e,{path:"/LSSadmin/applications",element:r.jsx(dT,{})}),r.jsx($e,{path:"/govcon",element:r.jsx(hT,{})}),r.jsx($e,{path:"/partner-with-us",element:r.jsx(mT,{})}),r.jsx($e,{path:"/privacy-policy",element:r.jsx(pT,{})}),r.jsx($e,{path:"/terms-and-conditions",element:r.jsx(gT,{})}),r.jsx($e,{path:"/join-our-team",element:r.jsx(yT,{})}),r.jsx($e,{path:"/LSSadmin/talent-network",element:r.jsx(wT,{})}),r.jsx($e,{path:"/dashboard",element:r.jsx(ST,{})}),r.jsx($e,{path:"*",element:r.jsx(m_,{})})]}),r.jsxs($e,{element:r.jsx(NT,{}),children:[r.jsx($e,{path:"/lss-talent-network",element:r.jsx(xT,{})}),r.jsx($e,{path:"/sewp-vi",element:r.jsx(jT,{})})]})]}):r.jsxs(bS,{children:[r.jsxs($e,{element:r.jsx(g_,{}),children:[r.jsx($e,{path:"/",element:r.jsx(R2,{})}),r.jsx($e,{path:"/who-we-are",element:r.jsx(P2,{})}),r.jsx($e,{path:"/meet-our-team",element:r.jsx(D2,{})}),r.jsx($e,{path:"/team/:slug",element:r.jsx(ok,{})}),r.jsx($e,{path:"/team/:slug/job/:jobNumber",element:r.jsx(ak,{})}),r.jsx($e,{path:"/our-partners",element:r.jsx(lk,{})}),r.jsx($e,{path:"/mission-values",element:r.jsx(ck,{})}),r.jsx($e,{path:"/testimonials-page",element:r.jsx(uk,{})}),r.jsx($e,{path:"/submit-testimonial",element:r.jsx(Sk,{})}),r.jsx($e,{path:"/sms-privacy-policy",element:r.jsx(_k,{})}),r.jsx($e,{path:"/capability-statement",element:r.jsx(kk,{})}),r.jsx($e,{path:"/solutions",element:r.jsx(Ek,{})}),r.jsx($e,{path:"/lets-talk",element:r.jsx(Ck,{})}),r.jsx($e,{path:"/veteran-resources",element:r.jsx(Tk,{})}),r.jsx($e,{path:"/blog",element:r.jsx(Ak,{})}),r.jsx($e,{path:"/blog/:slug",element:r.jsx(Ok,{})}),r.jsx($e,{path:"/resources",element:r.jsx(Rk,{})}),r.jsx($e,{path:"/contact",element:r.jsx(Pk,{})}),r.jsx($e,{path:"/jobs",element:r.jsx(Dk,{})}),r.jsx($e,{path:"/apply",element:r.jsx(Ik,{})}),r.jsx($e,{path:"/apply/:recruiterSlug",element:r.jsx(Lk,{})}),r.jsx($e,{path:"/LSSadmin/applications",element:r.jsx(dT,{})}),r.jsx($e,{path:"/govcon",element:r.jsx(hT,{})}),r.jsx($e,{path:"/partner-with-us",element:r.jsx(mT,{})}),r.jsx($e,{path:"/privacy-policy",element:r.jsx(pT,{})}),r.jsx($e,{path:"/terms-and-conditions",element:r.jsx(gT,{})}),r.jsx($e,{path:"/join-our-team",element:r.jsx(yT,{})}),r.jsx($e,{path:"/LSSadmin/talent-network",element:r.jsx(wT,{})}),r.jsx($e,{path:"/dashboard",element:r.jsx(ST,{})}),r.jsx($e,{path:"*",element:r.jsx(m_,{})})]}),r.jsxs($e,{element:r.jsx(NT,{}),children:[r.jsx($e,{path:"/lss-talent-network",element:r.jsx(xT,{})}),r.jsx($e,{path:"/sewp-vi",element:r.jsx(jT,{})})]})]})};function poe(){return r.jsx(Z7,{children:r.jsxs(vB,{client:OB,children:[r.jsx(P8,{children:r.jsx(moe,{})}),r.jsx(wF,{}),r.jsx(YF,{richColors:!0,position:"top-right"})]})})}u5.createRoot(document.getElementById("root")).render(r.jsx(poe,{}));

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.