PageSourceSearch

https://enchanted-atlas--revdanemarks.replit.app/assets/index-hOvc9H2Z.js

js enchanted-atlas--revdanemarks.replit.app collected 2026-10-03 03:50:00 UTC 1,014,442 bytes, 552 lines download raw bytes

vendor: 6,236 bytes, lines 1-9
1var Ax=e=>{throw TypeError(e)};var um=(e,t,n)=>t.has(e)||Ax("Cannot "+n);var _=(e,t,n)=>(um(e,t,"read from private field"),n?n.call(e):t.get(e)),ge=(e,t,n)=>t.has(e)?Ax("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,s)=>(um(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),Ae=(e,t,n)=>(um(e,t,"access private method"),n);var mc=(e,t,n,s)=>({set _(i){ne(e,t,i,n)},get _(){return _(e,t,s)}});function YS(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 a=Object.getOwnPropertyDescriptor(s,i);a&&Object.defineProperty(e,i,a.get?a:{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 a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function s(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var mu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sb={exports:{}},md={},ib={exports:{}},Me={};/**
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 Gl=Symbol.for("react.element"),ZS=Symbol.for("react.portal"),QS=Symbol.for("react.fragment"),XS=Symbol.for("react.strict_mode"),JS=Symbol.for("react.profiler"),e4=Symbol.for("react.provider"),t4=Symbol.for("react.context"),n4=Symbol.for("react.forward_ref"),r4=Symbol.for("react.suspense"),s4=Symbol.for("react.memo"),i4=Symbol.for("react.lazy"),Rx=Symbol.iterator;function a4(e){return e===null||typeof e!="object"?null:(e=Rx&&e[Rx]||e["@@iterator"],typeof e=="function"?e:null)}var ab={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ob=Object.assign,lb={};function ao(e,t,n){this.props=e,this.context=t,this.refs=lb,this.updater=n||ab}ao.prototype.isReactComponent={};ao.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ao.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cb(){}cb.prototype=ao.prototype;function df(e,t,n){this.props=e,this.context=t,this.refs=lb,this.updater=n||ab}var mf=df.prototype=new cb;mf.constructor=df;ob(mf,ao.prototype);mf.isPureReactComponent=!0;var Ix=Array.isArray,ub=Object.prototype.hasOwnProperty,hf={current:null},db={key:!0,ref:!0,__self:!0,__source:!0};function mb(e,t,n){var s,i={},a=null,o=null;if(t!=null)for(s in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)ub.call(t,s)&&!db.hasOwnProperty(s)&&(i[s]=t[s]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(s in l=e.defaultProps,l)i[s]===void 0&&(i[s]=l[s]);return{$$typeof:Gl,type:e,key:a,ref:o,props:i,_owner:hf.current}}function o4(e,t){return{$$typeof:Gl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gl}function l4(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Lx=/\/+/g;function dm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?l4(""+e.key):t.toString(36)}function $c(e,t,n,s,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Gl:case ZS:o=!0}}if(o)return o=e,i=i(o),e=s===""?"."+dm(o,0):s,Ix(i)?(n="",e!=null&&(n=e.replace(Lx,"$&/")+"/"),$c(i,t,n,"",function(u){return u})):i!=null&&(pf(i)&&(i=o4(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Lx,"$&/")+"/")+e)),t.push(i)),1;if(o=0,s=s===""?".":s+":",Ix(e))for(var l=0;l<e.length;l++){a=e[l];var c=s+dm(a,l);o+=$c(a,t,n,c,i)}else if(c=a4(e),typeof c=="function")for(e=c.call(e),l=0;!(a=e.next()).done;)a=a.value,c=s+dm(a,l++),o+=$c(a,t,n,c,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function hc(e,t,n){if(e==null)return e;var s=[],i=0;return $c(e,s,"","",function(a){return t.call(n,a,i++)}),s}function c4(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var an={current:null},Bc={transition:null},u4={ReactCurrentDispatcher:an,ReactCurrentBatchConfig:Bc,ReactCurrentOwner:hf};function hb(){throw Error("act(...) is not supported in production builds of React.")}Me.Children={map:hc,forEach:function(e,t,n){hc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return hc(e,function(){t++}),t},toArray:function(e){return hc(e,function(t){return t})||[]},only:function(e){if(!pf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Me.Component=ao;Me.Fragment=QS;Me.Profiler=JS;Me.PureComponent=df;Me.StrictMode=XS;Me.Suspense=r4;
vendor: 4,847 bytes, lines 9-25
9Me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u4;Me.act=hb;Me.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=ob({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=hf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)ub.call(t,c)&&!db.hasOwnProperty(c)&&(s[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)s.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];s.children=l}return{$$typeof:Gl,type:e.type,key:i,ref:a,props:s,_owner:o}};Me.createContext=function(e){return e={$$typeof:t4,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:e4,_context:e},e.Consumer=e};Me.createElement=mb;Me.createFactory=function(e){var t=mb.bind(null,e);return t.type=e,t};Me.createRef=function(){return{current:null}};Me.forwardRef=function(e){return{$$typeof:n4,render:e}};Me.isValidElement=pf;Me.lazy=function(e){return{$$typeof:i4,_payload:{_status:-1,_result:e},_init:c4}};Me.memo=function(e,t){return{$$typeof:s4,type:e,compare:t===void 0?null:t}};Me.startTransition=function(e){var t=Bc.transition;Bc.transition={};try{e()}finally{Bc.transition=t}};Me.unstable_act=hb;Me.useCallback=function(e,t){return an.current.useCallback(e,t)};Me.useContext=function(e){return an.current.useContext(e)};Me.useDebugValue=function(){};Me.useDeferredValue=function(e){return an.current.useDeferredValue(e)};Me.useEffect=function(e,t){return an.current.useEffect(e,t)};Me.useId=function(){return an.current.useId()};Me.useImperativeHandle=function(e,t,n){return an.current.useImperativeHandle(e,t,n)};Me.useInsertionEffect=function(e,t){return an.current.useInsertionEffect(e,t)};Me.useLayoutEffect=function(e,t){return an.current.useLayoutEffect(e,t)};Me.useMemo=function(e,t){return an.current.useMemo(e,t)};Me.useReducer=function(e,t,n){return an.current.useReducer(e,t,n)};Me.useRef=function(e){return an.current.useRef(e)};Me.useState=function(e){return an.current.useState(e)};Me.useSyncExternalStore=function(e,t,n){return an.current.useSyncExternalStore(e,t,n)};Me.useTransition=function(){return an.current.useTransition()};Me.version="18.3.1";ib.exports=Me;var y=ib.exports;const Ie=dd(y),pb=YS({__proto__:null,default:Ie},[y]);/**
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 d4=y,m4=Symbol.for("react.element"),h4=Symbol.for("react.fragment"),p4=Object.prototype.hasOwnProperty,f4=d4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g4={key:!0,ref:!0,__self:!0,__source:!0};function fb(e,t,n){var s,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(s in t)p4.call(t,s)&&!g4.hasOwnProperty(s)&&(i[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)i[s]===void 0&&(i[s]=t[s]);return{$$typeof:m4,type:e,key:a,ref:o,props:i,_owner:f4.current}}md.Fragment=h4;md.jsx=fb;md.jsxs=fb;sb.exports=md;var r=sb.exports,gb={exports:{}},Tn={},xb={exports:{}},yb={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(D,q){var C=D.length;D.push(q);e:for(;0<C;){var de=C-1>>>1,Ee=D[de];if(0<i(Ee,q))D[de]=q,D[C]=Ee,C=de;else break e}}function n(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var q=D[0],C=D.pop();if(C!==q){D[0]=C;e:for(var de=0,Ee=D.length,E=Ee>>>1;de<E;){var Be=2*(de+1)-1,wt=D[Be],ze=Be+1,me=D[ze];if(0>i(wt,C))ze<Ee&&0>i(me,wt)?(D[de]=me,D[ze]=C,de=ze):(D[de]=wt,D[Be]=C,de=Be);else if(ze<Ee&&0>i(me,C))D[de]=me,D[ze]=C,de=ze;else break e}}return q}function i(D,q){var C=D.sortIndex-q.sortIndex;return C!==0?C:D.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,m=null,h=3,p=!1,v=!1,f=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(D){for(var q=n(u);q!==null;){if(q.callback===null)s(u);else if(q.startTime<=D)s(u),q.sortIndex=q.expirationTime,t(c,q);else break;q=n(u)}}
vendor: 9,417 bytes, lines 25-34
25function j(D){if(f=!1,w(D),!v)if(n(c)!==null)v=!0,Z(k);else{var q=n(u);q!==null&&ee(j,q.startTime-D)}}function k(D,q){v=!1,f&&(f=!1,g(R),R=-1),p=!0;var C=h;try{for(w(q),m=n(c);m!==null&&(!(m.expirationTime>q)||D&&!F());){var de=m.callback;if(typeof de=="function"){m.callback=null,h=m.priorityLevel;var Ee=de(m.expirationTime<=q);q=e.unstable_now(),typeof Ee=="function"?m.callback=Ee:m===n(c)&&s(c),w(q)}else s(c);m=n(c)}if(m!==null)var E=!0;else{var Be=n(u);Be!==null&&ee(j,Be.startTime-q),E=!1}return E}finally{m=null,h=C,p=!1}}var N=!1,T=null,R=-1,O=5,S=-1;function F(){return!(e.unstable_now()-S<O)}function L(){if(T!==null){var D=e.unstable_now();S=D;var q=!0;try{q=T(!0,D)}finally{q?B():(N=!1,T=null)}}else N=!1}var B;if(typeof x=="function")B=function(){x(L)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,G=z.port2;z.port1.onmessage=L,B=function(){G.postMessage(null)}}else B=function(){b(L,0)};function Z(D){T=D,N||(N=!0,B())}function ee(D,q){R=b(function(){D(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(D){D.callback=null},e.unstable_continueExecution=function(){v||p||(v=!0,Z(k))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(D){switch(h){case 1:case 2:case 3:var q=3;break;default:q=h}var C=h;h=q;try{return D()}finally{h=C}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,q){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var C=h;h=D;try{return q()}finally{h=C}},e.unstable_scheduleCallback=function(D,q,C){var de=e.unstable_now();switch(typeof C=="object"&&C!==null?(C=C.delay,C=typeof C=="number"&&0<C?de+C:de):C=de,D){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=C+Ee,D={id:d++,callback:q,priorityLevel:D,startTime:C,expirationTime:Ee,sortIndex:-1},C>de?(D.sortIndex=C,t(u,D),n(c)===null&&D===n(u)&&(f?(g(R),R=-1):f=!0,ee(j,C-de))):(D.sortIndex=Ee,t(c,D),v||p||(v=!0,Z(k))),D},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(D){var q=h;return function(){var C=h;h=q;try{return D.apply(this,arguments)}finally{h=C}}}})(yb);xb.exports=yb;var x4=xb.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 y4=y,En=x4;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var vb=new Set,ll={};function $i(e,t){Ba(e,t),Ba(e+"Capture",t)}function Ba(e,t){for(ll[e]=t,e=0;e<t.length;e++)vb.add(t[e])}var ts=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xh=Object.prototype.hasOwnProperty,v4=/^[: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]*$/,Ox={},Mx={};function w4(e){return xh.call(Mx,e)?!0:xh.call(Ox,e)?!1:v4.test(e)?Mx[e]=!0:(Ox[e]=!0,!1)}function b4(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function j4(e,t,n,s){if(t===null||typeof t>"u"||b4(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function on(e,t,n,s,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Dt[e]=new on(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Dt[t]=new on(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Dt[e]=new on(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Dt[e]=new on(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Dt[e]=new on(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Dt[e]=new on(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Dt[e]=new on(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Dt[e]=new on(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Dt[e]=new on(e,5,!1,e.toLowerCase(),null,!1,!1)});var ff=/[\-:]([a-z])/g;function gf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ff,gf);Dt[t]=new on(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ff,gf);Dt[t]=new on(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ff,gf);Dt[t]=new on(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Dt[e]=new on(e,1,!1,e.toLowerCase(),null,!1,!1)});Dt.xlinkHref=new on("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Dt[e]=new on(e,1,!1,e.toLowerCase(),null,!0,!0)});function xf(e,t,n,s){var i=Dt.hasOwnProperty(t)?Dt[t]:null;(i!==null?i.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(j4(t,n,i,s)&&(n=null),s||i===null?w4(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,s=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var ls=y4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,pc=Symbol.for("react.element"),ia=Symbol.for("react.portal"),aa=Symbol.for("react.fragment"),yf=Symbol.for("react.strict_mode"),yh=Symbol.for("react.profiler"),wb=Symbol.for("react.provider"),bb=Symbol.for("react.context"),vf=Symbol.for("react.forward_ref"),vh=Symbol.for("react.suspense"),wh=Symbol.for("react.suspense_list"),wf=Symbol.for("react.memo"),ws=Symbol.for("react.lazy"),jb=Symbol.for("react.offscreen"),Dx=Symbol.iterator;function No(e){return e===null||typeof e!="object"?null:(e=Dx&&e[Dx]||e["@@iterator"],typeof e=="function"?e:null)}var ht=Object.assign,mm;function zo(e){if(mm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);mm=t&&t[1]||""}return`
34`+mm+e}var hm=!1;function pm(e,t){if(!e||hm)return"";hm=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var s=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){s=u}e.call(t.prototype)}else{try{throw Error()}catch(u){s=u}e()}}
vendor: 4,643 bytes, lines 34-37
34catch(u){if(u&&s&&typeof u.stack=="string"){for(var i=u.stack.split(`
35`),a=s.stack.split(`
36`),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==a[l]){var c=`
37`+i[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{hm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zo(e):""}function N4(e){switch(e.tag){case 5:return zo(e.type);case 16:return zo("Lazy");case 13:return zo("Suspense");case 19:return zo("SuspenseList");case 0:case 2:case 15:return e=pm(e.type,!1),e;case 11:return e=pm(e.type.render,!1),e;case 1:return e=pm(e.type,!0),e;default:return""}}function bh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case aa:return"Fragment";case ia:return"Portal";case yh:return"Profiler";case yf:return"StrictMode";case vh:return"Suspense";case wh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bb:return(e.displayName||"Context")+".Consumer";case wb:return(e._context.displayName||"Context")+".Provider";case vf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wf:return t=e.displayName||null,t!==null?t:bh(e.type)||"Memo";case ws:t=e._payload,e=e._init;try{return bh(e(t))}catch{}}return null}function k4(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bh(t);case 8:return t===yf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Hs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function C4(e){var t=Nb(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){s=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(o){s=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fc(e){e._valueTracker||(e._valueTracker=C4(e))}function kb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Nb(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function hu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jh(e,t){var n=t.checked;return ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fx(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Hs(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Cb(e,t){t=t.checked,t!=null&&xf(e,"checked",t,!1)}function Nh(e,t){Cb(e,t);var n=Hs(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?kh(e,t.type,n):t.hasOwnProperty("defaultValue")&&kh(e,t.type,Hs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}
vendor: 11,365 bytes, line 37
37function kh(e,t,n){(t!=="number"||hu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Uo=Array.isArray;function ya(e,t,n,s){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Hs(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,s&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ch(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return ht({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ux(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(K(92));if(Uo(n)){if(1<n.length)throw Error(K(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Hs(n)}}function Sb(e,t){var n=Hs(t.value),s=Hs(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function Wx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Eb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Sh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Eb(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var gc,Tb=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(gc=gc||document.createElement("div"),gc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=gc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function cl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ko={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},S4=["Webkit","ms","Moz","O"];Object.keys(Ko).forEach(function(e){S4.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ko[t]=Ko[e]})});function Pb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ko.hasOwnProperty(e)&&Ko[e]?(""+t).trim():t+"px"}function _b(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,i=Pb(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,i):e[n]=i}}var E4=ht({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 Eh(e,t){if(t){if(E4[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function Th(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ph=null;function bf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _h=null,va=null,wa=null;function $x(e){if(e=Ql(e)){if(typeof _h!="function")throw Error(K(280));var t=e.stateNode;t&&(t=xd(t),_h(e.stateNode,e.type,t))}}function Ab(e){va?wa?wa.push(e):wa=[e]:va=e}function Rb(){if(va){var e=va,t=wa;if(wa=va=null,$x(e),t)for(e=0;e<t.length;e++)$x(t[e])}}function Ib(e,t){return e(t)}function Lb(){}var fm=!1;function Ob(e,t,n){if(fm)return e(t,n);fm=!0;try{return Ib(e,t,n)}finally{fm=!1,(va!==null||wa!==null)&&(Lb(),Rb())}}function ul(e,t){var n=e.stateNode;if(n===null)return null;var s=xd(n);if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(K(231,t,typeof n));return n}var Ah=!1;if(ts)try{var ko={};Object.defineProperty(ko,"passive",{get:function(){Ah=!0}}),window.addEventListener("test",ko,ko),window.removeEventListener("test",ko,ko)}catch{Ah=!1}function T4(e,t,n,s,i,a,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Go=!1,pu=null,fu=!1,Rh=null,P4={onError:function(e){Go=!0,pu=e}};function _4(e,t,n,s,i,a,o,l,c){Go=!1,pu=null,T4.apply(P4,arguments)}function A4(e,t,n,s,i,a,o,l,c){if(_4.apply(this,arguments),Go){if(Go){var u=pu;Go=!1,pu=null}else throw Error(K(198));fu||(fu=!0,Rh=u)}}function Bi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Mb(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Bx(e){if(Bi(e)!==e)throw Error(K(188))}function R4(e){var t=e.alternate;if(!t){if(t=Bi(e),t===null)throw Error(K(188));return t!==e?null:e}for(var n=e,s=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(s=i.return,s!==null){n=s;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Bx(i),e;if(a===s)return Bx(i),t;a=a.sibling}throw Error(K(188))}if(n.return!==s.return)n=i,s=a;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,s=a;break}if(l===s){o=!0,s=i,n=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===n){o=!0,n=a,s=i;break}if(l===s){o=!0,s=a,n=i;break}l=l.sibling}if(!o)throw Error(K(189))}}if(n.alternate!==s)throw Error(K(190))}if(n.tag!==3)throw Error(K(188));return n.stateNode.current===n?e:t}function Db(e){return e=R4(e),e!==null?Fb(e):null}function Fb(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Fb(e);if(t!==null)return t;e=e.sibling}return null}var zb=En.unstable_scheduleCallback,Hx=En.unstable_cancelCallback,I4=En.unstable_shouldYield,L4=En.unstable_requestPaint,bt=En.unstable_now,O4=En.unstable_getCurrentPriorityLevel,jf=En.unstable_ImmediatePriority,Ub=En.unstable_UserBlockingPriority,gu=En.unstable_NormalPriority,M4=En.unstable_LowPriority,Wb=En.unstable_IdlePriority,hd=null,_r=null;function D4(e){if(_r&&typeof _r.onCommitFiberRoot=="function")try{_r.onCommitFiberRoot(hd,e,void 0,(e.current.flags&128)===128)}catch{}}var or=Math.clz32?Math.clz32:U4,F4=Math.log,z4=Math.LN2;function U4(e){return e>>>=0,e===0?32:31-(F4(e)/z4|0)|0}var xc=64,yc=4194304;function Wo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xu(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?s=Wo(l):(a&=o,a!==0&&(s=Wo(a)))}else o=n&~i,o!==0?s=Wo(o):a!==0&&(s=Wo(a));if(s===0)return 0;if(t!==0&&t!==s&&!(t&i)&&(i=s&-s,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-or(t),i=1<<n,s|=e[n],t&=~i;return s}function W4(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $4(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-or(a),l=1<<o,c=i[o];c===-1?(!(l&n)||l&s)&&(i[o]=W4(l,t)):c<=t&&(e.expiredLanes|=l),a&=~l}}function Ih(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function $b(){var e=xc;return xc<<=1,!(xc&4194240)&&(xc=64),e}function gm(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Yl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-or(t),e[t]=n}function B4(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-or(n),a=1<<i;t[i]=0,s[i]=-1,e[i]=-1,n&=~a}}function Nf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-or(n),i=1<<s;i&t|e[s]&t&&(e[s]|=t),n&=~i}}var Qe=0;function Bb(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Hb,kf,Vb,qb,Kb,Lh=!1,vc=[],Ms=null,Ds=null,Fs=null,dl=new Map,ml=new Map,js=[],H4="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 Vx(e,t){switch(e){case"focusin":case"focusout":Ms=null;break;case"dragenter":case"dragleave":Ds=null;break;case"mouseover":case"mouseout":Fs=null;break;case"pointerover":case"pointerout":dl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ml.delete(t.pointerId)}}function Co(e,t,n,s,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ql(t),t!==null&&kf(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function V4(e,t,n,s,i){switch(t){case"focusin":return Ms=Co(Ms,e,t,n,s,i),!0;case"dragenter":return Ds=Co(Ds,e,t,n,s,i),!0;case"mouseover":return Fs=Co(Fs,e,t,n,s,i),!0;case"pointerover":var a=i.pointerId;return dl.set(a,Co(dl.get(a)||null,e,t,n,s,i)),!0;case"gotpointercapture":return a=i.pointerId,ml.set(a,Co(ml.get(a)||null,e,t,n,s,i)),!0}return!1}function Gb(e){var t=pi(e.target);if(t!==null){var n=Bi(t);
vendor: 12,570 bytes, line 37
37if(n!==null){if(t=n.tag,t===13){if(t=Mb(n),t!==null){e.blockedOn=t,Kb(e.priority,function(){Vb(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Oh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Ph=s,n.target.dispatchEvent(s),Ph=null}else return t=Ql(n),t!==null&&kf(t),e.blockedOn=n,!1;t.shift()}return!0}function qx(e,t,n){Hc(e)&&n.delete(t)}function q4(){Lh=!1,Ms!==null&&Hc(Ms)&&(Ms=null),Ds!==null&&Hc(Ds)&&(Ds=null),Fs!==null&&Hc(Fs)&&(Fs=null),dl.forEach(qx),ml.forEach(qx)}function So(e,t){e.blockedOn===t&&(e.blockedOn=null,Lh||(Lh=!0,En.unstable_scheduleCallback(En.unstable_NormalPriority,q4)))}function hl(e){function t(i){return So(i,e)}if(0<vc.length){So(vc[0],e);for(var n=1;n<vc.length;n++){var s=vc[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Ms!==null&&So(Ms,e),Ds!==null&&So(Ds,e),Fs!==null&&So(Fs,e),dl.forEach(t),ml.forEach(t),n=0;n<js.length;n++)s=js[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<js.length&&(n=js[0],n.blockedOn===null);)Gb(n),n.blockedOn===null&&js.shift()}var ba=ls.ReactCurrentBatchConfig,yu=!0;function K4(e,t,n,s){var i=Qe,a=ba.transition;ba.transition=null;try{Qe=1,Cf(e,t,n,s)}finally{Qe=i,ba.transition=a}}function G4(e,t,n,s){var i=Qe,a=ba.transition;ba.transition=null;try{Qe=4,Cf(e,t,n,s)}finally{Qe=i,ba.transition=a}}function Cf(e,t,n,s){if(yu){var i=Oh(e,t,n,s);if(i===null)Sm(e,t,s,vu,n),Vx(e,s);else if(V4(i,e,t,n,s))s.stopPropagation();else if(Vx(e,s),t&4&&-1<H4.indexOf(e)){for(;i!==null;){var a=Ql(i);if(a!==null&&Hb(a),a=Oh(e,t,n,s),a===null&&Sm(e,t,s,vu,n),a===i)break;i=a}i!==null&&s.stopPropagation()}else Sm(e,t,s,null,n)}}var vu=null;function Oh(e,t,n,s){if(vu=null,e=bf(s),e=pi(e),e!==null)if(t=Bi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Mb(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return vu=e,null}function Yb(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(O4()){case jf:return 1;case Ub:return 4;case gu:case M4:return 16;case Wb:return 536870912;default:return 16}default:return 16}}var Ls=null,Sf=null,Vc=null;function Zb(){if(Vc)return Vc;var e,t=Sf,n=t.length,s,i="value"in Ls?Ls.value:Ls.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(s=1;s<=o&&t[n-s]===i[a-s];s++);return Vc=i.slice(e,1<s?1-s:void 0)}function qc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wc(){return!0}function Kx(){return!1}function Pn(e){function t(n,s,i,a,o){this._reactName=n,this._targetInst=i,this.type=s,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?wc:Kx,this.isPropagationStopped=Kx,this}return ht(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=wc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wc)},persist:function(){},isPersistent:wc}),t}var oo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ef=Pn(oo),Zl=ht({},oo,{view:0,detail:0}),Y4=Pn(Zl),xm,ym,Eo,pd=ht({},Zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Eo&&(Eo&&e.type==="mousemove"?(xm=e.screenX-Eo.screenX,ym=e.screenY-Eo.screenY):ym=xm=0,Eo=e),xm)},movementY:function(e){return"movementY"in e?e.movementY:ym}}),Gx=Pn(pd),Z4=ht({},pd,{dataTransfer:0}),Q4=Pn(Z4),X4=ht({},Zl,{relatedTarget:0}),vm=Pn(X4),J4=ht({},oo,{animationName:0,elapsedTime:0,pseudoElement:0}),eE=Pn(J4),tE=ht({},oo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nE=Pn(tE),rE=ht({},oo,{data:0}),Yx=Pn(rE),sE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iE={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"},aE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=aE[e])?!!t[e]:!1}function Tf(){return oE}var lE=ht({},Zl,{key:function(e){if(e.key){var t=sE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?iE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tf,charCode:function(e){return e.type==="keypress"?qc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cE=Pn(lE),uE=ht({},pd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zx=Pn(uE),dE=ht({},Zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tf}),mE=Pn(dE),hE=ht({},oo,{propertyName:0,elapsedTime:0,pseudoElement:0}),pE=Pn(hE),fE=ht({},pd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gE=Pn(fE),xE=[9,13,27,32],Pf=ts&&"CompositionEvent"in window,Yo=null;ts&&"documentMode"in document&&(Yo=document.documentMode);var yE=ts&&"TextEvent"in window&&!Yo,Qb=ts&&(!Pf||Yo&&8<Yo&&11>=Yo),Qx=" ",Xx=!1;function Xb(e,t){switch(e){case"keyup":return xE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oa=!1;function vE(e,t){switch(e){case"compositionend":return Jb(t);case"keypress":return t.which!==32?null:(Xx=!0,Qx);case"textInput":return e=t.data,e===Qx&&Xx?null:e;default:return null}}function wE(e,t){if(oa)return e==="compositionend"||!Pf&&Xb(e,t)?(e=Zb(),Vc=Sf=Ls=null,oa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qb&&t.locale!=="ko"?null:t.data;default:return null}}var bE={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 Jx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bE[e.type]:t==="textarea"}function e0(e,t,n,s){Ab(s),t=wu(t,"onChange"),0<t.length&&(n=new Ef("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var Zo=null,pl=null;function jE(e){d0(e,0)}function fd(e){var t=ua(e);if(kb(t))return e}function NE(e,t){if(e==="change")return t}var t0=!1;if(ts){var wm;if(ts){var bm="oninput"in document;if(!bm){var ey=document.createElement("div");ey.setAttribute("oninput","return;"),bm=typeof ey.oninput=="function"}wm=bm}else wm=!1;t0=wm&&(!document.documentMode||9<document.documentMode)}function ty(){Zo&&(Zo.detachEvent("onpropertychange",n0),pl=Zo=null)}function n0(e){if(e.propertyName==="value"&&fd(pl)){var t=[];e0(t,pl,e,bf(e)),Ob(jE,t)}}function kE(e,t,n){e==="focusin"?(ty(),Zo=t,pl=n,Zo.attachEvent("onpropertychange",n0)):e==="focusout"&&ty()}function CE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fd(pl)}function SE(e,t){if(e==="click")return fd(t)}function EE(e,t){if(e==="input"||e==="change")return fd(t)}function TE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mr=typeof Object.is=="function"?Object.is:TE;function fl(e,t){if(mr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var i=n[s];if(!xh.call(t,i)||!mr(e[i],t[i]))return!1}return!0}function ny(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ry(e,t){var n=ny(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ny(n)}}function r0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?r0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function s0(){for(var e=window,t=hu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hu(e.document)}return t}function _f(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function PE(e){var t=s0(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&r0(n.ownerDocument.documentElement,n)){if(s!==null&&_f(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(s.start,i);s=s.end===void 0?a:Math.min(s.end,i),!e.extend&&a>s&&(i=s,s=a,a=i),i=ry(n,a);var o=ry(n,s);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>s?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var _E=ts&&"documentMode"in document&&11>=document.documentMode,la=null,Mh=null,Qo=null,Dh=!1;function sy(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dh||la==null||la!==hu(s)||(s=la,"selectionStart"in s&&_f(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:s.focusNode,focusOffset:s.focusOffset}),Qo&&fl(Qo,s)||(Qo=s,s=wu(Mh,"onSelect"),0<s.length&&(t=new Ef("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=la)))}function bc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ca={animationend:bc("Animation","AnimationEnd"),animationiteration:bc("Animation","AnimationIteration"),animationstart:bc("Animation","AnimationStart"),transitionend:bc("Transition","TransitionEnd")},jm={},i0={};ts&&(i0=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function gd(e){if(jm[e])return jm[e];if(!ca[e])return e;var t=ca[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in i0)return jm[e]=t[n];return e}var a0=gd("animationend"),o0=gd("animationiteration"),l0=gd("animationstart"),c0=gd("transitionend"),u0=new Map,iy="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 Js(e,t){u0.set(e,t),$i(t,[e])}for(var Nm=0;Nm<iy.length;Nm++){var km=iy[Nm],AE=km.toLowerCase(),RE=km[0].toUpperCase()+km.slice(1);Js(AE,"on"+RE)}Js(a0,"onAnimationEnd");Js(o0,"onAnimationIteration");Js(l0,"onAnimationStart");Js("dblclick","onDoubleClick");Js("focusin","onFocus");Js("focusout","onBlur");Js(c0,"onTransitionEnd");Ba("onMouseEnter",["mouseout","mouseover"]);Ba("onMouseLeave",["mouseout","mouseover"]);Ba("onPointerEnter",["pointerout","pointerover"]);Ba("onPointerLeave",["pointerout","pointerover"]);$i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$i("onBeforeInput",["compositionend","keypress","textInput","paste"]);$i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $o="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(" "),IE=new Set("cancel close invalid load scroll toggle".split(" ").concat($o));function ay(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,A4(s,t,void 0,e),e.currentTarget=null}function d0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],i=s.event;s=s.listeners;e:{var a=void 0;if(t)for(var o=s.length-1;0<=o;o--){var l=s[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==a&&i.isPropagationStopped())break e;ay(i,l,u),a=c}else for(o=0;o<s.length;o++){if(l=s[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==a&&i.isPropagationStopped())break e;ay(i,l,u),a=c}}}if(fu)throw e=Rh,fu=!1,Rh=null,e}function at(e,t){var n=t[$h];n===void 0&&(n=t[$h]=new Set);var s=e+"__bubble";n.has(s)||(m0(t,e,2,!1),n.add(s))}function Cm(e,t,n){var s=0;t&&(s|=4),m0(n,e,s,t)}var jc="_reactListening"+Math.random().toString(36).slice(2);function gl(e){if(!e[jc]){e[jc]=!0,vb.forEach(function(n){n!=="selectionchange"&&(IE.has(n)||Cm(n,!1,e),Cm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jc]||(t[jc]=!0,Cm("selectionchange",!1,t))}}function m0(e,t,n,s){switch(Yb(t)){case 1:var i=K4;break;case 4:i=G4;break;default:i=Cf}n=i.bind(null,t,n,e),i=void 0,!Ah||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),s?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Sm(e,t,n,s,i){var a=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var o=s.tag;if(o===3||o===4){var l=s.stateNode.containerInfo;
vendor: 2,527 bytes, line 37
37if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=s.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;l!==null;){if(o=pi(l),o===null)return;if(c=o.tag,c===5||c===6){s=a=o;continue e}l=l.parentNode}}s=s.return}Ob(function(){var u=a,d=bf(n),m=[];e:{var h=u0.get(e);if(h!==void 0){var p=Ef,v=e;switch(e){case"keypress":if(qc(n)===0)break e;case"keydown":case"keyup":p=cE;break;case"focusin":v="focus",p=vm;break;case"focusout":v="blur",p=vm;break;case"beforeblur":case"afterblur":p=vm;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Gx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Q4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=mE;break;case a0:case o0:case l0:p=eE;break;case c0:p=pE;break;case"scroll":p=Y4;break;case"wheel":p=gE;break;case"copy":case"cut":case"paste":p=nE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Zx}var f=(t&4)!==0,b=!f&&e==="scroll",g=f?h!==null?h+"Capture":null:h;f=[];for(var x=u,w;x!==null;){w=x;var j=w.stateNode;if(w.tag===5&&j!==null&&(w=j,g!==null&&(j=ul(x,g),j!=null&&f.push(xl(x,j,w)))),b)break;x=x.return}0<f.length&&(h=new p(h,v,null,n,d),m.push({event:h,listeners:f}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Ph&&(v=n.relatedTarget||n.fromElement)&&(pi(v)||v[ns]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(v=n.relatedTarget||n.toElement,p=u,v=v?pi(v):null,v!==null&&(b=Bi(v),v!==b||v.tag!==5&&v.tag!==6)&&(v=null)):(p=null,v=u),p!==v)){if(f=Gx,j="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(f=Zx,j="onPointerLeave",g="onPointerEnter",x="pointer"),b=p==null?h:ua(p),w=v==null?h:ua(v),h=new f(j,x+"leave",p,n,d),h.target=b,h.relatedTarget=w,j=null,pi(d)===u&&(f=new f(g,x+"enter",v,n,d),f.target=w,f.relatedTarget=b,j=f),b=j,p&&v)t:{for(f=p,g=v,x=0,w=f;w;w=Yi(w))x++;for(w=0,j=g;j;j=Yi(j))w++;for(;0<x-w;)f=Yi(f),x--;for(;0<w-x;)g=Yi(g),w--;for(;x--;){if(f===g||g!==null&&f===g.alternate)break t;f=Yi(f),g=Yi(g)}f=null}else f=null;p!==null&&oy(m,h,p,f,!1),v!==null&&b!==null&&oy(m,b,v,f,!0)}}
vendor: 5,082 bytes, lines 37-38
37e:{if(h=u?ua(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var k=NE;else if(Jx(h))if(t0)k=EE;else{k=CE;var N=kE}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=SE);if(k&&(k=k(e,u))){e0(m,k,n,d);break e}N&&N(e,h,u),e==="focusout"&&(N=h._wrapperState)&&N.controlled&&h.type==="number"&&kh(h,"number",h.value)}switch(N=u?ua(u):window,e){case"focusin":(Jx(N)||N.contentEditable==="true")&&(la=N,Mh=u,Qo=null);break;case"focusout":Qo=Mh=la=null;break;case"mousedown":Dh=!0;break;case"contextmenu":case"mouseup":case"dragend":Dh=!1,sy(m,n,d);break;case"selectionchange":if(_E)break;case"keydown":case"keyup":sy(m,n,d)}var T;if(Pf)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else oa?Xb(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Qb&&n.locale!=="ko"&&(oa||R!=="onCompositionStart"?R==="onCompositionEnd"&&oa&&(T=Zb()):(Ls=d,Sf="value"in Ls?Ls.value:Ls.textContent,oa=!0)),N=wu(u,R),0<N.length&&(R=new Yx(R,e,null,n,d),m.push({event:R,listeners:N}),T?R.data=T:(T=Jb(n),T!==null&&(R.data=T)))),(T=yE?vE(e,n):wE(e,n))&&(u=wu(u,"onBeforeInput"),0<u.length&&(d=new Yx("onBeforeInput","beforeinput",null,n,d),m.push({event:d,listeners:u}),d.data=T))}d0(m,t)})}function xl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wu(e,t){for(var n=t+"Capture",s=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=ul(e,n),a!=null&&s.unshift(xl(e,a,i)),a=ul(e,t),a!=null&&s.push(xl(e,a,i))),e=e.return}return s}function Yi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oy(e,t,n,s,i){for(var a=t._reactName,o=[];n!==null&&n!==s;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===s)break;l.tag===5&&u!==null&&(l=u,i?(c=ul(n,a),c!=null&&o.unshift(xl(n,c,l))):i||(c=ul(n,a),c!=null&&o.push(xl(n,c,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var LE=/\r\n?/g,OE=/\u0000|\uFFFD/g;function ly(e){return(typeof e=="string"?e:""+e).replace(LE,`
38`).replace(OE,"")}function Nc(e,t,n){if(t=ly(t),ly(e)!==t&&n)throw Error(K(425))}function bu(){}var Fh=null,zh=null;function Uh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wh=typeof setTimeout=="function"?setTimeout:void 0,ME=typeof clearTimeout=="function"?clearTimeout:void 0,cy=typeof Promise=="function"?Promise:void 0,DE=typeof queueMicrotask=="function"?queueMicrotask:typeof cy<"u"?function(e){return cy.resolve(null).then(e).catch(FE)}:Wh;function FE(e){setTimeout(function(){throw e})}function Em(e,t){var n=t,s=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(s===0){e.removeChild(i),hl(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=i}while(n);hl(t)}function zs(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function uy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var lo=Math.random().toString(36).slice(2),Er="__reactFiber$"+lo,yl="__reactProps$"+lo,ns="__reactContainer$"+lo,$h="__reactEvents$"+lo,zE="__reactListeners$"+lo,UE="__reactHandles$"+lo;function pi(e){var t=e[Er];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ns]||n[Er]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=uy(e);e!==null;){if(n=e[Er])return n;e=uy(e)}return t}e=n,n=e.parentNode}return null}function Ql(e){return e=e[Er]||e[ns],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ua(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function xd(e){return e[yl]||null}var Bh=[],da=-1;function ei(e){return{current:e}}function lt(e){0>da||(e.current=Bh[da],Bh[da]=null,da--)}function rt(e,t){da++,Bh[da]=e.current,e.current=t}var Vs={},Kt=ei(Vs),hn=ei(!1),Ti=Vs;function Ha(e,t){var n=e.type.contextTypes;if(!n)return Vs;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function pn(e){return e=e.childContextTypes,e!=null}function ju(){lt(hn),lt(Kt)}function dy(e,t,n){if(Kt.current!==Vs)throw Error(K(168));rt(Kt,t),rt(hn,n)}function h0(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var i in s)if(!(i in t))throw Error(K(108,k4(e)||"Unknown",i));return ht({},n,s)}function Nu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vs,Ti=Kt.current,rt(Kt,e),rt(hn,hn.current),!0}
vendor: 14,104 bytes, line 38
38function my(e,t,n){var s=e.stateNode;if(!s)throw Error(K(169));n?(e=h0(e,t,Ti),s.__reactInternalMemoizedMergedChildContext=e,lt(hn),lt(Kt),rt(Kt,e)):lt(hn),rt(hn,n)}var Gr=null,yd=!1,Tm=!1;function p0(e){Gr===null?Gr=[e]:Gr.push(e)}function WE(e){yd=!0,p0(e)}function ti(){if(!Tm&&Gr!==null){Tm=!0;var e=0,t=Qe;try{var n=Gr;for(Qe=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}Gr=null,yd=!1}catch(i){throw Gr!==null&&(Gr=Gr.slice(e+1)),zb(jf,ti),i}finally{Qe=t,Tm=!1}}return null}var ma=[],ha=0,ku=null,Cu=0,On=[],Mn=0,Pi=null,Qr=1,Xr="";function li(e,t){ma[ha++]=Cu,ma[ha++]=ku,ku=e,Cu=t}function f0(e,t,n){On[Mn++]=Qr,On[Mn++]=Xr,On[Mn++]=Pi,Pi=e;var s=Qr;e=Xr;var i=32-or(s)-1;s&=~(1<<i),n+=1;var a=32-or(t)+i;if(30<a){var o=i-i%5;a=(s&(1<<o)-1).toString(32),s>>=o,i-=o,Qr=1<<32-or(t)+i|n<<i|s,Xr=a+e}else Qr=1<<a|n<<i|s,Xr=e}function Af(e){e.return!==null&&(li(e,1),f0(e,1,0))}function Rf(e){for(;e===ku;)ku=ma[--ha],ma[ha]=null,Cu=ma[--ha],ma[ha]=null;for(;e===Pi;)Pi=On[--Mn],On[Mn]=null,Xr=On[--Mn],On[Mn]=null,Qr=On[--Mn],On[Mn]=null}var Nn=null,jn=null,ct=!1,nr=null;function g0(e,t){var n=Fn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function hy(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Nn=e,jn=zs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Nn=e,jn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pi!==null?{id:Qr,overflow:Xr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Fn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Nn=e,jn=null,!0):!1;default:return!1}}function Hh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Vh(e){if(ct){var t=jn;if(t){var n=t;if(!hy(e,t)){if(Hh(e))throw Error(K(418));t=zs(n.nextSibling);var s=Nn;t&&hy(e,t)?g0(s,n):(e.flags=e.flags&-4097|2,ct=!1,Nn=e)}}else{if(Hh(e))throw Error(K(418));e.flags=e.flags&-4097|2,ct=!1,Nn=e}}}function py(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Nn=e}function kc(e){if(e!==Nn)return!1;if(!ct)return py(e),ct=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Uh(e.type,e.memoizedProps)),t&&(t=jn)){if(Hh(e))throw x0(),Error(K(418));for(;t;)g0(e,t),t=zs(t.nextSibling)}if(py(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){jn=zs(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}jn=null}}else jn=Nn?zs(e.stateNode.nextSibling):null;return!0}function x0(){for(var e=jn;e;)e=zs(e.nextSibling)}function Va(){jn=Nn=null,ct=!1}function If(e){nr===null?nr=[e]:nr.push(e)}var $E=ls.ReactCurrentBatchConfig;function To(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(K(309));var s=n.stateNode}if(!s)throw Error(K(147,e));var i=s,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var l=i.refs;o===null?delete l[a]:l[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(K(284));if(!n._owner)throw Error(K(290,e))}return e}function Cc(e,t){throw e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fy(e){var t=e._init;return t(e._payload)}function y0(e){function t(g,x){if(e){var w=g.deletions;w===null?(g.deletions=[x],g.flags|=16):w.push(x)}}function n(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function s(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function i(g,x){return g=Bs(g,x),g.index=0,g.sibling=null,g}function a(g,x,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<x?(g.flags|=2,x):w):(g.flags|=2,x)):(g.flags|=1048576,x)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,x,w,j){return x===null||x.tag!==6?(x=Om(w,g.mode,j),x.return=g,x):(x=i(x,w),x.return=g,x)}function c(g,x,w,j){var k=w.type;return k===aa?d(g,x,w.props.children,j,w.key):x!==null&&(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ws&&fy(k)===x.type)?(j=i(x,w.props),j.ref=To(g,x,w),j.return=g,j):(j=Jc(w.type,w.key,w.props,null,g.mode,j),j.ref=To(g,x,w),j.return=g,j)}function u(g,x,w,j){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=Mm(w,g.mode,j),x.return=g,x):(x=i(x,w.children||[]),x.return=g,x)}function d(g,x,w,j,k){return x===null||x.tag!==7?(x=Si(w,g.mode,j,k),x.return=g,x):(x=i(x,w),x.return=g,x)}function m(g,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return x=Om(""+x,g.mode,w),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case pc:return w=Jc(x.type,x.key,x.props,null,g.mode,w),w.ref=To(g,null,x),w.return=g,w;case ia:return x=Mm(x,g.mode,w),x.return=g,x;case ws:var j=x._init;return m(g,j(x._payload),w)}if(Uo(x)||No(x))return x=Si(x,g.mode,w,null),x.return=g,x;Cc(g,x)}return null}function h(g,x,w,j){var k=x!==null?x.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return k!==null?null:l(g,x,""+w,j);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case pc:return w.key===k?c(g,x,w,j):null;case ia:return w.key===k?u(g,x,w,j):null;case ws:return k=w._init,h(g,x,k(w._payload),j)}if(Uo(w)||No(w))return k!==null?null:d(g,x,w,j,null);Cc(g,w)}return null}function p(g,x,w,j,k){if(typeof j=="string"&&j!==""||typeof j=="number")return g=g.get(w)||null,l(x,g,""+j,k);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case pc:return g=g.get(j.key===null?w:j.key)||null,c(x,g,j,k);case ia:return g=g.get(j.key===null?w:j.key)||null,u(x,g,j,k);case ws:var N=j._init;return p(g,x,w,N(j._payload),k)}if(Uo(j)||No(j))return g=g.get(w)||null,d(x,g,j,k,null);Cc(x,j)}return null}function v(g,x,w,j){for(var k=null,N=null,T=x,R=x=0,O=null;T!==null&&R<w.length;R++){T.index>R?(O=T,T=null):O=T.sibling;var S=h(g,T,w[R],j);if(S===null){T===null&&(T=O);break}e&&T&&S.alternate===null&&t(g,T),x=a(S,x,R),N===null?k=S:N.sibling=S,N=S,T=O}if(R===w.length)return n(g,T),ct&&li(g,R),k;if(T===null){for(;R<w.length;R++)T=m(g,w[R],j),T!==null&&(x=a(T,x,R),N===null?k=T:N.sibling=T,N=T);return ct&&li(g,R),k}for(T=s(g,T);R<w.length;R++)O=p(T,g,R,w[R],j),O!==null&&(e&&O.alternate!==null&&T.delete(O.key===null?R:O.key),x=a(O,x,R),N===null?k=O:N.sibling=O,N=O);return e&&T.forEach(function(F){return t(g,F)}),ct&&li(g,R),k}function f(g,x,w,j){var k=No(w);if(typeof k!="function")throw Error(K(150));if(w=k.call(w),w==null)throw Error(K(151));for(var N=k=null,T=x,R=x=0,O=null,S=w.next();T!==null&&!S.done;R++,S=w.next()){T.index>R?(O=T,T=null):O=T.sibling;var F=h(g,T,S.value,j);if(F===null){T===null&&(T=O);break}e&&T&&F.alternate===null&&t(g,T),x=a(F,x,R),N===null?k=F:N.sibling=F,N=F,T=O}if(S.done)return n(g,T),ct&&li(g,R),k;if(T===null){for(;!S.done;R++,S=w.next())S=m(g,S.value,j),S!==null&&(x=a(S,x,R),N===null?k=S:N.sibling=S,N=S);return ct&&li(g,R),k}for(T=s(g,T);!S.done;R++,S=w.next())S=p(T,g,R,S.value,j),S!==null&&(e&&S.alternate!==null&&T.delete(S.key===null?R:S.key),x=a(S,x,R),N===null?k=S:N.sibling=S,N=S);return e&&T.forEach(function(L){return t(g,L)}),ct&&li(g,R),k}function b(g,x,w,j){if(typeof w=="object"&&w!==null&&w.type===aa&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case pc:e:{for(var k=w.key,N=x;N!==null;){if(N.key===k){if(k=w.type,k===aa){if(N.tag===7){n(g,N.sibling),x=i(N,w.props.children),x.return=g,g=x;break e}}else if(N.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ws&&fy(k)===N.type){n(g,N.sibling),x=i(N,w.props),x.ref=To(g,N,w),x.return=g,g=x;break e}n(g,N);break}else t(g,N);N=N.sibling}w.type===aa?(x=Si(w.props.children,g.mode,j,w.key),x.return=g,g=x):(j=Jc(w.type,w.key,w.props,null,g.mode,j),j.ref=To(g,x,w),j.return=g,g=j)}return o(g);case ia:e:{for(N=w.key;x!==null;){if(x.key===N)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){n(g,x.sibling),x=i(x,w.children||[]),x.return=g,g=x;break e}else{n(g,x);break}else t(g,x);x=x.sibling}x=Mm(w,g.mode,j),x.return=g,g=x}return o(g);case ws:return N=w._init,b(g,x,N(w._payload),j)}if(Uo(w))return v(g,x,w,j);if(No(w))return f(g,x,w,j);Cc(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,x!==null&&x.tag===6?(n(g,x.sibling),x=i(x,w),x.return=g,g=x):(n(g,x),x=Om(w,g.mode,j),x.return=g,g=x),o(g)):n(g,x)}return b}var qa=y0(!0),v0=y0(!1),Su=ei(null),Eu=null,pa=null,Lf=null;function Of(){Lf=pa=Eu=null}function Mf(e){var t=Su.current;lt(Su),e._currentValue=t}function qh(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function ja(e,t){Eu=e,Lf=pa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mn=!0),e.firstContext=null)}function Bn(e){var t=e._currentValue;if(Lf!==e)if(e={context:e,memoizedValue:t,next:null},pa===null){if(Eu===null)throw Error(K(308));pa=e,Eu.dependencies={lanes:0,firstContext:e}}else pa=pa.next=e;return t}var fi=null;function Df(e){fi===null?fi=[e]:fi.push(e)}function w0(e,t,n,s){var i=t.interleaved;return i===null?(n.next=n,Df(t)):(n.next=i.next,i.next=n),t.interleaved=n,rs(e,s)}function rs(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var bs=!1;function Ff(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function b0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Us(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,Ve&2){var i=s.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),s.pending=t,rs(e,n)}return i=s.interleaved,i===null?(t.next=t,Df(s)):(t.next=i.next,i.next=t),s.interleaved=t,rs(e,n)}function Kc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Nf(e,n)}}function gy(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:s.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Tu(e,t,n,s){var i=e.updateQueue;bs=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?a=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(a!==null){var m=i.baseState;o=0,d=u=c=null,l=a;do{var h=l.lane,p=l.eventTime;if((s&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,f=l;switch(h=t,p=n,f.tag){case 1:if(v=f.payload,typeof v=="function"){m=v.call(p,m,h);break e}m=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=f.payload,h=typeof v=="function"?v.call(p,m,h):v,h==null)break e;m=ht({},m,h);break e;case 2:bs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[l]:h.push(l))}else p={eventTime:p,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,c=m):d=d.next=p,o|=h;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;h=l,l=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(d===null&&(c=m),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Ai|=o,e.lanes=o,e.memoizedState=m}}function xy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],i=s.callback;if(i!==null){if(s.callback=null,s=n,typeof i!="function")throw Error(K(191,i));i.call(s)}}}var Xl={},Ar=ei(Xl),vl=ei(Xl),wl=ei(Xl);function gi(e){if(e===Xl)throw Error(K(174));return e}function zf(e,t){switch(rt(wl,t),rt(vl,e),rt(Ar,Xl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Sh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Sh(t,e)}lt(Ar),rt(Ar,t)}function Ka(){lt(Ar),lt(vl),lt(wl)}function j0(e){gi(wl.current);var t=gi(Ar.current),n=Sh(t,e.type);t!==n&&(rt(vl,e),rt(Ar,n))}function Uf(e){vl.current===e&&(lt(Ar),lt(vl))}var dt=ei(0);function Pu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pm=[];function Wf(){for(var e=0;e<Pm.length;e++)Pm[e]._workInProgressVersionPrimary=null;Pm.length=0}var Gc=ls.ReactCurrentDispatcher,_m=ls.ReactCurrentBatchConfig,_i=0,mt=null,Et=null,_t=null,_u=!1,Xo=!1,bl=0,BE=0;function zt(){throw Error(K(321))}function $f(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mr(e[n],t[n]))return!1;return!0}function Bf(e,t,n,s,i,a){if(_i=a,mt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gc.current=e===null||e.memoizedState===null?KE:GE,e=n(s,i),Xo){a=0;
vendor: 4,882 bytes, line 38
38do{if(Xo=!1,bl=0,25<=a)throw Error(K(301));a+=1,_t=Et=null,t.updateQueue=null,Gc.current=YE,e=n(s,i)}while(Xo)}if(Gc.current=Au,t=Et!==null&&Et.next!==null,_i=0,_t=Et=mt=null,_u=!1,t)throw Error(K(300));return e}function Hf(){var e=bl!==0;return bl=0,e}function wr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?mt.memoizedState=_t=e:_t=_t.next=e,_t}function Hn(){if(Et===null){var e=mt.alternate;e=e!==null?e.memoizedState:null}else e=Et.next;var t=_t===null?mt.memoizedState:_t.next;if(t!==null)_t=t,Et=e;else{if(e===null)throw Error(K(310));Et=e,e={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},_t===null?mt.memoizedState=_t=e:_t=_t.next=e}return _t}function jl(e,t){return typeof t=="function"?t(e):t}function Am(e){var t=Hn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var s=Et,i=s.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}s.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,s=s.baseState;var l=o=null,c=null,u=a;do{var d=u.lane;if((_i&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),s=u.hasEagerState?u.eagerState:e(s,u.action);else{var m={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=m,o=s):c=c.next=m,mt.lanes|=d,Ai|=d}u=u.next}while(u!==null&&u!==a);c===null?o=s:c.next=l,mr(s,t.memoizedState)||(mn=!0),t.memoizedState=s,t.baseState=o,t.baseQueue=c,n.lastRenderedState=s}if(e=n.interleaved,e!==null){i=e;do a=i.lane,mt.lanes|=a,Ai|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Rm(e){var t=Hn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var s=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);mr(a,t.memoizedState)||(mn=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,s]}function N0(){}function k0(e,t){var n=mt,s=Hn(),i=t(),a=!mr(s.memoizedState,i);if(a&&(s.memoizedState=i,mn=!0),s=s.queue,Vf(E0.bind(null,n,s,e),[e]),s.getSnapshot!==t||a||_t!==null&&_t.memoizedState.tag&1){if(n.flags|=2048,Nl(9,S0.bind(null,n,s,i,t),void 0,null),At===null)throw Error(K(349));_i&30||C0(n,t,i)}return i}function C0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function S0(e,t,n,s){t.value=n,t.getSnapshot=s,T0(t)&&P0(e)}function E0(e,t,n){return n(function(){T0(t)&&P0(e)})}function T0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mr(e,n)}catch{return!0}}function P0(e){var t=rs(e,1);t!==null&&lr(t,e,1,-1)}function yy(e){var t=wr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:e},t.queue=e,e=e.dispatch=qE.bind(null,mt,e),[t.memoizedState,e]}function Nl(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function _0(){return Hn().memoizedState}function Yc(e,t,n,s){var i=wr();mt.flags|=e,i.memoizedState=Nl(1|t,n,void 0,s===void 0?null:s)}function vd(e,t,n,s){var i=Hn();s=s===void 0?null:s;var a=void 0;if(Et!==null){var o=Et.memoizedState;if(a=o.destroy,s!==null&&$f(s,o.deps)){i.memoizedState=Nl(t,n,a,s);return}}mt.flags|=e,i.memoizedState=Nl(1|t,n,a,s)}function vy(e,t){return Yc(8390656,8,e,t)}function Vf(e,t){return vd(2048,8,e,t)}function A0(e,t){return vd(4,2,e,t)}function R0(e,t){return vd(4,4,e,t)}function I0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function L0(e,t,n){return n=n!=null?n.concat([e]):null,vd(4,4,I0.bind(null,t,e),n)}function qf(){}function O0(e,t){var n=Hn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&$f(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function M0(e,t){var n=Hn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&$f(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function D0(e,t,n){return _i&21?(mr(n,t)||(n=$b(),mt.lanes|=n,Ai|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,mn=!0),e.memoizedState=n)}function HE(e,t){var n=Qe;Qe=n!==0&&4>n?n:4,e(!0);var s=_m.transition;_m.transition={};try{e(!1),t()}finally{Qe=n,_m.transition=s}}function F0(){return Hn().memoizedState}function VE(e,t,n){var s=$s(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},z0(e))U0(t,n);else if(n=w0(e,t,n,s),n!==null){var i=rn();lr(n,e,s,i),W0(n,t,s)}}
vendor: 9,141 bytes, lines 38-40
38function qE(e,t,n){var s=$s(e),i={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(z0(e))U0(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,n);if(i.hasEagerState=!0,i.eagerState=l,mr(l,o)){var c=t.interleaved;c===null?(i.next=i,Df(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=w0(e,t,i,s),n!==null&&(i=rn(),lr(n,e,s,i),W0(n,t,s))}}function z0(e){var t=e.alternate;return e===mt||t!==null&&t===mt}function U0(e,t){Xo=_u=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function W0(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Nf(e,n)}}var Au={readContext:Bn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},KE={readContext:Bn,useCallback:function(e,t){return wr().memoizedState=[e,t===void 0?null:t],e},useContext:Bn,useEffect:vy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yc(4194308,4,I0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yc(4,2,e,t)},useMemo:function(e,t){var n=wr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=wr();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=VE.bind(null,mt,e),[s.memoizedState,e]},useRef:function(e){var t=wr();return e={current:e},t.memoizedState=e},useState:yy,useDebugValue:qf,useDeferredValue:function(e){return wr().memoizedState=e},useTransition:function(){var e=yy(!1),t=e[0];return e=HE.bind(null,e[1]),wr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=mt,i=wr();if(ct){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),At===null)throw Error(K(349));_i&30||C0(s,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,vy(E0.bind(null,s,a,e),[e]),s.flags|=2048,Nl(9,S0.bind(null,s,a,n,t),void 0,null),n},useId:function(){var e=wr(),t=At.identifierPrefix;if(ct){var n=Xr,s=Qr;n=(s&~(1<<32-or(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=bl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=BE++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},GE={readContext:Bn,useCallback:O0,useContext:Bn,useEffect:Vf,useImperativeHandle:L0,useInsertionEffect:A0,useLayoutEffect:R0,useMemo:M0,useReducer:Am,useRef:_0,useState:function(){return Am(jl)},useDebugValue:qf,useDeferredValue:function(e){var t=Hn();return D0(t,Et.memoizedState,e)},useTransition:function(){var e=Am(jl)[0],t=Hn().memoizedState;return[e,t]},useMutableSource:N0,useSyncExternalStore:k0,useId:F0,unstable_isNewReconciler:!1},YE={readContext:Bn,useCallback:O0,useContext:Bn,useEffect:Vf,useImperativeHandle:L0,useInsertionEffect:A0,useLayoutEffect:R0,useMemo:M0,useReducer:Rm,useRef:_0,useState:function(){return Rm(jl)},useDebugValue:qf,useDeferredValue:function(e){var t=Hn();return Et===null?t.memoizedState=e:D0(t,Et.memoizedState,e)},useTransition:function(){var e=Rm(jl)[0],t=Hn().memoizedState;return[e,t]},useMutableSource:N0,useSyncExternalStore:k0,useId:F0,unstable_isNewReconciler:!1};function Jn(e,t){if(e&&e.defaultProps){t=ht({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Kh(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:ht({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var wd={isMounted:function(e){return(e=e._reactInternals)?Bi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=rn(),i=$s(e),a=Jr(s,i);a.payload=t,n!=null&&(a.callback=n),t=Us(e,a,i),t!==null&&(lr(t,e,i,s),Kc(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=rn(),i=$s(e),a=Jr(s,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Us(e,a,i),t!==null&&(lr(t,e,i,s),Kc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rn(),s=$s(e),i=Jr(n,s);i.tag=2,t!=null&&(i.callback=t),t=Us(e,i,s),t!==null&&(lr(t,e,s,n),Kc(t,e,s))}};function wy(e,t,n,s,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,a,o):t.prototype&&t.prototype.isPureReactComponent?!fl(n,s)||!fl(i,a):!0}function $0(e,t,n){var s=!1,i=Vs,a=t.contextType;return typeof a=="object"&&a!==null?a=Bn(a):(i=pn(t)?Ti:Kt.current,s=t.contextTypes,a=(s=s!=null)?Ha(e,i):Vs),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=wd,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function by(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&wd.enqueueReplaceState(t,t.state,null)}function Gh(e,t,n,s){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ff(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Bn(a):(a=pn(t)?Ti:Kt.current,i.context=Ha(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Kh(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&wd.enqueueReplaceState(i,i.state,null),Tu(e,n,i,s),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ga(e,t){try{var n="",s=t;do n+=N4(s),s=s.return;while(s);var i=n}catch(a){i=`
39Error generating stack: `+a.message+`
40`+a.stack}return{value:e,source:t,stack:i,digest:null}}function Im(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Yh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ZE=typeof WeakMap=="function"?WeakMap:Map;function B0(e,t,n){n=Jr(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){Iu||(Iu=!0,ip=s),Yh(e,t)},n}function H0(e,t,n){n=Jr(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var i=t.value;n.payload=function(){return s(i)},n.callback=function(){Yh(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Yh(e,t),typeof s!="function"&&(Ws===null?Ws=new Set([this]):Ws.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function jy(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new ZE;var i=new Set;s.set(t,i)}else i=s.get(t),i===void 0&&(i=new Set,s.set(t,i));i.has(n)||(i.add(n),e=uT.bind(null,e,t,n),t.then(e,e))}function Ny(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ky(e,t,n,s,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Jr(-1,1),t.tag=2,Us(n,t,1))),n.lanes|=1),e)}var QE=ls.ReactCurrentOwner,mn=!1;function en(e,t,n,s){t.child=e===null?v0(t,null,n,s):qa(t,e.child,n,s)}function Cy(e,t,n,s,i){n=n.render;var a=t.ref;return ja(t,i),s=Bf(e,t,n,s,a,i),n=Hf(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ss(e,t,i)):(ct&&n&&Af(t),t.flags|=1,en(e,t,s,i),t.child)}function Sy(e,t,n,s,i){if(e===null){var a=n.type;return typeof a=="function"&&!eg(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,V0(e,t,a,s,i)):(e=Jc(n.type,null,s,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:fl,n(o,s)&&e.ref===t.ref)return ss(e,t,i)}return t.flags|=1,e=Bs(a,s),e.ref=t.ref,e.return=t,t.child=e}function V0(e,t,n,s,i){if(e!==null){var a=e.memoizedProps;if(fl(a,s)&&e.ref===t.ref)if(mn=!1,t.pendingProps=s=a,(e.lanes&i)!==0)e.flags&131072&&(mn=!0);else return t.lanes=e.lanes,ss(e,t,i)}return Zh(e,t,n,s,i)}function q0(e,t,n){var s=t.pendingProps,i=s.children,a=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},rt(ga,wn),wn|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,rt(ga,wn),wn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=a!==null?a.baseLanes:n,rt(ga,wn),wn|=s}else a!==null?(s=a.baseLanes|n,t.memoizedState=null):s=n,rt(ga,wn),wn|=s;return en(e,t,i,n),t.child}function K0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 8,359 bytes, line 40
40function Zh(e,t,n,s,i){var a=pn(n)?Ti:Kt.current;return a=Ha(t,a),ja(t,i),n=Bf(e,t,n,s,a,i),s=Hf(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ss(e,t,i)):(ct&&s&&Af(t),t.flags|=1,en(e,t,n,i),t.child)}function Ey(e,t,n,s,i){if(pn(n)){var a=!0;Nu(t)}else a=!1;if(ja(t,i),t.stateNode===null)Zc(e,t),$0(t,n,s),Gh(t,n,s,i),s=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Bn(u):(u=pn(n)?Ti:Kt.current,u=Ha(t,u));var d=n.getDerivedStateFromProps,m=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";m||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==s||c!==u)&&by(t,o,s,u),bs=!1;var h=t.memoizedState;o.state=h,Tu(t,s,o,i),c=t.memoizedState,l!==s||h!==c||hn.current||bs?(typeof d=="function"&&(Kh(t,n,d,s),c=t.memoizedState),(l=bs||wy(t,n,l,s,h,c,u))?(m||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=c),o.props=s,o.state=c,o.context=u,s=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{o=t.stateNode,b0(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Jn(t.type,l),o.props=u,m=t.pendingProps,h=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=Bn(c):(c=pn(n)?Ti:Kt.current,c=Ha(t,c));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==m||h!==c)&&by(t,o,s,c),bs=!1,h=t.memoizedState,o.state=h,Tu(t,s,o,i);var v=t.memoizedState;l!==m||h!==v||hn.current||bs?(typeof p=="function"&&(Kh(t,n,p,s),v=t.memoizedState),(u=bs||wy(t,n,u,s,h,v,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(s,v,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(s,v,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=v),o.props=s,o.state=v,o.context=c,s=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),s=!1)}return Qh(e,t,n,s,a,i)}function Qh(e,t,n,s,i,a){K0(e,t);var o=(t.flags&128)!==0;if(!s&&!o)return i&&my(t,n,!1),ss(e,t,a);s=t.stateNode,QE.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&o?(t.child=qa(t,e.child,null,a),t.child=qa(t,null,l,a)):en(e,t,l,a),t.memoizedState=s.state,i&&my(t,n,!0),t.child}function G0(e){var t=e.stateNode;t.pendingContext?dy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&dy(e,t.context,!1),zf(e,t.containerInfo)}function Ty(e,t,n,s,i){return Va(),If(i),t.flags|=256,en(e,t,n,s),t.child}var Xh={dehydrated:null,treeContext:null,retryLane:0};function Jh(e){return{baseLanes:e,cachePool:null,transitions:null}}function Y0(e,t,n){var s=t.pendingProps,i=dt.current,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),rt(dt,i&1),e===null)return Vh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=s.children,e=s.fallback,a?(s=t.mode,a=t.child,o={mode:"hidden",children:o},!(s&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Nd(o,s,0,null),e=Si(e,s,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Jh(n),t.memoizedState=Xh,e):Kf(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return XE(e,t,o,s,l,i,n);if(a){a=s.fallback,o=t.mode,i=e.child,l=i.sibling;var c={mode:"hidden",children:s.children};return!(o&1)&&t.child!==i?(s=t.child,s.childLanes=0,s.pendingProps=c,t.deletions=null):(s=Bs(i,c),s.subtreeFlags=i.subtreeFlags&14680064),l!==null?a=Bs(l,a):(a=Si(a,o,n,null),a.flags|=2),a.return=t,s.return=t,s.sibling=a,t.child=s,s=a,a=t.child,o=e.child.memoizedState,o=o===null?Jh(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Xh,s}return a=e.child,e=a.sibling,s=Bs(a,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Kf(e,t){return t=Nd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Sc(e,t,n,s){return s!==null&&If(s),qa(t,e.child,null,n),e=Kf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function XE(e,t,n,s,i,a,o){if(n)return t.flags&256?(t.flags&=-257,s=Im(Error(K(422))),Sc(e,t,o,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=s.fallback,i=t.mode,s=Nd({mode:"visible",children:s.children},i,0,null),a=Si(a,i,o,null),a.flags|=2,s.return=t,a.return=t,s.sibling=a,t.child=s,t.mode&1&&qa(t,e.child,null,o),t.child.memoizedState=Jh(o),t.memoizedState=Xh,a);if(!(t.mode&1))return Sc(e,t,o,null);if(i.data==="$!"){if(s=i.nextSibling&&i.nextSibling.dataset,s)var l=s.dgst;return s=l,a=Error(K(419)),s=Im(a,s,void 0),Sc(e,t,o,s)}if(l=(o&e.childLanes)!==0,mn||l){if(s=At,s!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(s.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,rs(e,i),lr(s,e,i,-1))}return Jf(),s=Im(Error(K(421))),Sc(e,t,o,s)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=dT.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,jn=zs(i.nextSibling),Nn=t,ct=!0,nr=null,e!==null&&(On[Mn++]=Qr,On[Mn++]=Xr,On[Mn++]=Pi,Qr=e.id,Xr=e.overflow,Pi=t),t=Kf(t,s.children),t.flags|=4096,t)}function Py(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),qh(e.return,t,n)}function Lm(e,t,n,s,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=s,a.tail=n,a.tailMode=i)}function Z0(e,t,n){var s=t.pendingProps,i=s.revealOrder,a=s.tail;if(en(e,t,s.children,n),s=dt.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Py(e,n,t);else if(e.tag===19)Py(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(rt(dt,s),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Pu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Lm(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Pu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Lm(t,!0,n,null,a);break;case"together":Lm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ss(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ai|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,n=Bs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}
vendor: 5,270 bytes, line 40
40function JE(e,t,n){switch(t.tag){case 3:G0(t),Va();break;case 5:j0(t);break;case 1:pn(t.type)&&Nu(t);break;case 4:zf(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,i=t.memoizedProps.value;rt(Su,s._currentValue),s._currentValue=i;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(rt(dt,dt.current&1),t.flags|=128,null):n&t.child.childLanes?Y0(e,t,n):(rt(dt,dt.current&1),e=ss(e,t,n),e!==null?e.sibling:null);rt(dt,dt.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return Z0(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),rt(dt,dt.current),s)break;return null;case 22:case 23:return t.lanes=0,q0(e,t,n)}return ss(e,t,n)}var Q0,ep,X0,J0;Q0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ep=function(){};X0=function(e,t,n,s){var i=e.memoizedProps;if(i!==s){e=t.stateNode,gi(Ar.current);var a=null;switch(n){case"input":i=jh(e,i),s=jh(e,s),a=[];break;case"select":i=ht({},i,{value:void 0}),s=ht({},s,{value:void 0}),a=[];break;case"textarea":i=Ch(e,i),s=Ch(e,s),a=[];break;default:typeof i.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=bu)}Eh(n,s);var o;n=null;for(u in i)if(!s.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ll.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in s){var c=s[u];if(l=i!=null?i[u]:void 0,s.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(a=a||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ll.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&at("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};J0=function(e,t,n,s){n!==s&&(t.flags|=4)};function Po(e,t){if(!ct)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,s|=i.subtreeFlags&14680064,s|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,s|=i.subtreeFlags,s|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function eT(e,t,n){var s=t.pendingProps;switch(Rf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(t),null;case 1:return pn(t.type)&&ju(),Ut(t),null;case 3:return s=t.stateNode,Ka(),lt(hn),lt(Kt),Wf(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(kc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nr!==null&&(lp(nr),nr=null))),ep(e,t),Ut(t),null;case 5:Uf(t);var i=gi(wl.current);if(n=t.type,e!==null&&t.stateNode!=null)X0(e,t,n,s,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(K(166));return Ut(t),null}if(e=gi(Ar.current),kc(t)){s=t.stateNode,n=t.type;var a=t.memoizedProps;switch(s[Er]=t,s[yl]=a,e=(t.mode&1)!==0,n){case"dialog":at("cancel",s),at("close",s);break;case"iframe":case"object":case"embed":at("load",s);break;case"video":case"audio":for(i=0;i<$o.length;i++)at($o[i],s);break;case"source":at("error",s);break;case"img":case"image":case"link":at("error",s),at("load",s);break;case"details":at("toggle",s);break;case"input":Fx(s,a),at("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!a.multiple},at("invalid",s);break;case"textarea":Ux(s,a),at("invalid",s)}Eh(n,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="children"?typeof l=="string"?s.textContent!==l&&(a.suppressHydrationWarning!==!0&&Nc(s.textContent,l,e),i=["children",l]):typeof l=="number"&&s.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&Nc(s.textContent,l,e),i=["children",""+l]):ll.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&at("scroll",s)}switch(n){case"input":fc(s),zx(s,a,!0);break;case"textarea":fc(s),Wx(s);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(s.onclick=bu)}s=i,t.updateQueue=s,s!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Eb(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=o.createElement(n,{is:s.is}):(e=o.createElement(n),n==="select"&&(o=e,s.multiple?o.multiple=!0:s.size&&(o.size=s.size))):e=o.createElementNS(e,n),e[Er]=t,e[yl]=s,Q0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Th(n,s),n){case"dialog":at("cancel",e),at("close",e),i=s;break;case"iframe":case"object":case"embed":at("load",e),i=s;break;case"video":case"audio":for(i=0;i<$o.length;i++)at($o[i],e);i=s;break;case"source":at("error",e),i=s;break;case"img":case"image":case"link":at("error",e),at("load",e),i=s;break;case"details":at("toggle",e),i=s;break;case"input":Fx(e,s),i=jh(e,s),at("invalid",e);break;case"option":i=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},i=ht({},s,{value:void 0}),at("invalid",e);break;case"textarea":Ux(e,s),i=Ch(e,s),at("invalid",e);break;default:i=s}Eh(n,i),l=i;for(a in l)if(l.hasOwnProperty(a)){var c=l[a];a==="style"?_b(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Tb(e,c)):a==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&cl(e,c):typeof c=="number"&&cl(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(ll.hasOwnProperty(a)?c!=null&&a==="onScroll"&&at("scroll",e):c!=null&&xf(e,a,c,o))}switch(n){case"input":fc(e),zx(e,s,!1);break;case"textarea":fc(e),Wx(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Hs(s.value));break;case"select":e.multiple=!!s.multiple,a=s.value,a!=null?ya(e,!!s.multiple,a,!1):s.defaultValue!=null&&ya(e,!!s.multiple,s.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=bu)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ut(t),null;case 6:if(e&&t.stateNode!=null)J0(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(K(166));if(n=gi(wl.current),gi(Ar.current),kc(t)){if(s=t.stateNode,n=t.memoizedProps,s[Er]=t,(a=s.nodeValue!==n)&&(e=Nn,e!==null))switch(e.tag){case 3:Nc(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Nc(s.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[Er]=t,t.stateNode=s}return Ut(t),null;case 13:if(lt(dt),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ct&&jn!==null&&t.mode&1&&!(t.flags&128))x0(),Va(),t.flags|=98560,a=!1;else if(a=kc(t),s!==null&&s.dehydrated!==null){if(e===null){if(!a)throw Error(K(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(K(317));a[Er]=t}else Va(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ut(t),a=!1}else nr!==null&&(lp(nr),nr=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||dt.current&1?Pt===0&&(Pt=3):Jf())),t.updateQueue!==null&&(t.flags|=4),Ut(t),null);case 4:return Ka(),ep(e,t),e===null&&gl(t.stateNode.containerInfo),Ut(t),null;case 10:return Mf(t.type._context),Ut(t),null;case 17:return pn(t.type)&&ju(),Ut(t),null;case 19:if(lt(dt),a=t.memoizedState,a===null)return Ut(t),null;if(s=(t.flags&128)!==0,o=a.rendering,o===null)if(s)Po(a,!1);else{if(Pt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Pu(e),o!==null){for(t.flags|=128,Po(a,!1),s=o.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)a=n,e=s,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return rt(dt,dt.current&1|2),t.child}e=e.sibling}a.tail!==null&&bt()>Ya&&(t.flags|=128,s=!0,Po(a,!1),t.lanes=4194304)}else{if(!s)if(e=Pu(o),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Po(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!ct)return Ut(t),null}else 2*bt()-a.renderingStartTime>Ya&&n!==1073741824&&(t.flags|=128,s=!0,Po(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=bt(),t.sibling=null,n=dt.current,rt(dt,s?n&1|2:n&1),t):(Ut(t),null);case 22:case 23:return Xf(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?wn&1073741824&&(Ut(t),t.subtreeFlags&6&&(t.flags|=8192)):Ut(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function tT(e,t){switch(Rf(t),t.tag){case 1:return pn(t.type)&&ju(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 24,774 bytes, line 40
40case 3:return Ka(),lt(hn),lt(Kt),Wf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Uf(t),null;case 13:if(lt(dt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));Va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return lt(dt),null;case 4:return Ka(),null;case 10:return Mf(t.type._context),null;case 22:case 23:return Xf(),null;case 24:return null;default:return null}}var Ec=!1,Ht=!1,nT=typeof WeakSet=="function"?WeakSet:Set,ae=null;function fa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){gt(e,t,s)}else n.current=null}function tp(e,t,n){try{n()}catch(s){gt(e,t,s)}}var _y=!1;function rT(e,t){if(Fh=yu,e=s0(),_f(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var i=s.anchorOffset,a=s.focusNode;s=s.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,m=e,h=null;t:for(;;){for(var p;m!==n||i!==0&&m.nodeType!==3||(l=o+i),m!==a||s!==0&&m.nodeType!==3||(c=o+s),m.nodeType===3&&(o+=m.nodeValue.length),(p=m.firstChild)!==null;)h=m,m=p;for(;;){if(m===e)break t;if(h===n&&++u===i&&(l=o),h===a&&++d===s&&(c=o),(p=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=p}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(zh={focusedElem:e,selectionRange:n},yu=!1,ae=t;ae!==null;)if(t=ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ae=e;else for(;ae!==null;){t=ae;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var f=v.memoizedProps,b=v.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?f:Jn(t.type,f),b);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(K(163))}}catch(j){gt(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,ae=e;break}ae=t.return}return v=_y,_y=!1,v}function Jo(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var i=s=s.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&tp(t,n,a)}i=i.next}while(i!==s)}}function bd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function np(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ej(e){var t=e.alternate;t!==null&&(e.alternate=null,ej(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Er],delete t[yl],delete t[$h],delete t[zE],delete t[UE])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function tj(e){return e.tag===5||e.tag===3||e.tag===4}function Ay(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rp(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bu));else if(s!==4&&(e=e.child,e!==null))for(rp(e,t,n),e=e.sibling;e!==null;)rp(e,t,n),e=e.sibling}function sp(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(sp(e,t,n),e=e.sibling;e!==null;)sp(e,t,n),e=e.sibling}var Lt=null,tr=!1;function hs(e,t,n){for(n=n.child;n!==null;)nj(e,t,n),n=n.sibling}function nj(e,t,n){if(_r&&typeof _r.onCommitFiberUnmount=="function")try{_r.onCommitFiberUnmount(hd,n)}catch{}switch(n.tag){case 5:Ht||fa(n,t);case 6:var s=Lt,i=tr;Lt=null,hs(e,t,n),Lt=s,tr=i,Lt!==null&&(tr?(e=Lt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Lt.removeChild(n.stateNode));break;case 18:Lt!==null&&(tr?(e=Lt,n=n.stateNode,e.nodeType===8?Em(e.parentNode,n):e.nodeType===1&&Em(e,n),hl(e)):Em(Lt,n.stateNode));break;case 4:s=Lt,i=tr,Lt=n.stateNode.containerInfo,tr=!0,hs(e,t,n),Lt=s,tr=i;break;case 0:case 11:case 14:case 15:if(!Ht&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){i=s=s.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&tp(n,t,o),i=i.next}while(i!==s)}hs(e,t,n);break;case 1:if(!Ht&&(fa(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(l){gt(n,t,l)}hs(e,t,n);break;case 21:hs(e,t,n);break;case 22:n.mode&1?(Ht=(s=Ht)||n.memoizedState!==null,hs(e,t,n),Ht=s):hs(e,t,n);break;default:hs(e,t,n)}}function Ry(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nT),t.forEach(function(s){var i=mT.bind(null,e,s);n.has(s)||(n.add(s),s.then(i,i))})}}function Qn(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var i=n[s];try{var a=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Lt=l.stateNode,tr=!1;break e;case 3:Lt=l.stateNode.containerInfo,tr=!0;break e;case 4:Lt=l.stateNode.containerInfo,tr=!0;break e}l=l.return}if(Lt===null)throw Error(K(160));nj(a,o,i),Lt=null,tr=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(u){gt(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)rj(t,e),t=t.sibling}function rj(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qn(t,e),vr(e),s&4){try{Jo(3,e,e.return),bd(3,e)}catch(f){gt(e,e.return,f)}try{Jo(5,e,e.return)}catch(f){gt(e,e.return,f)}}break;case 1:Qn(t,e),vr(e),s&512&&n!==null&&fa(n,n.return);break;case 5:if(Qn(t,e),vr(e),s&512&&n!==null&&fa(n,n.return),e.flags&32){var i=e.stateNode;try{cl(i,"")}catch(f){gt(e,e.return,f)}}if(s&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&Cb(i,a),Th(l,o);var u=Th(l,a);for(o=0;o<c.length;o+=2){var d=c[o],m=c[o+1];d==="style"?_b(i,m):d==="dangerouslySetInnerHTML"?Tb(i,m):d==="children"?cl(i,m):xf(i,d,m,u)}switch(l){case"input":Nh(i,a);break;case"textarea":Sb(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?ya(i,!!a.multiple,p,!1):h!==!!a.multiple&&(a.defaultValue!=null?ya(i,!!a.multiple,a.defaultValue,!0):ya(i,!!a.multiple,a.multiple?[]:"",!1))}i[yl]=a}catch(f){gt(e,e.return,f)}}break;case 6:if(Qn(t,e),vr(e),s&4){if(e.stateNode===null)throw Error(K(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(f){gt(e,e.return,f)}}break;case 3:if(Qn(t,e),vr(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{hl(t.containerInfo)}catch(f){gt(e,e.return,f)}break;case 4:Qn(t,e),vr(e);break;case 13:Qn(t,e),vr(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Zf=bt())),s&4&&Ry(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ht=(u=Ht)||d,Qn(t,e),Ht=u):Qn(t,e),vr(e),s&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(ae=e,d=e.child;d!==null;){for(m=ae=d;ae!==null;){switch(h=ae,p=h.child,h.tag){case 0:case 11:case 14:case 15:Jo(4,h,h.return);break;case 1:fa(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){s=h,n=h.return;try{t=s,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(f){gt(s,n,f)}}break;case 5:fa(h,h.return);break;case 22:if(h.memoizedState!==null){Ly(m);continue}}p!==null?(p.return=h,ae=p):Ly(m)}d=d.sibling}e:for(d=null,m=e;;){if(m.tag===5){if(d===null){d=m;try{i=m.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=m.stateNode,c=m.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=Pb("display",o))}catch(f){gt(e,e.return,f)}}}else if(m.tag===6){if(d===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(f){gt(e,e.return,f)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;d===m&&(d=null),m=m.return}d===m&&(d=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Qn(t,e),vr(e),s&4&&Ry(e);break;case 21:break;default:Qn(t,e),vr(e)}}function vr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(tj(n)){var s=n;break e}n=n.return}throw Error(K(160))}switch(s.tag){case 5:var i=s.stateNode;s.flags&32&&(cl(i,""),s.flags&=-33);var a=Ay(e);sp(e,a,i);break;case 3:case 4:var o=s.stateNode.containerInfo,l=Ay(e);rp(e,l,o);break;default:throw Error(K(161))}}catch(c){gt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sT(e,t,n){ae=e,sj(e)}function sj(e,t,n){for(var s=(e.mode&1)!==0;ae!==null;){var i=ae,a=i.child;if(i.tag===22&&s){var o=i.memoizedState!==null||Ec;if(!o){var l=i.alternate,c=l!==null&&l.memoizedState!==null||Ht;l=Ec;var u=Ht;if(Ec=o,(Ht=c)&&!u)for(ae=i;ae!==null;)o=ae,c=o.child,o.tag===22&&o.memoizedState!==null?Oy(i):c!==null?(c.return=o,ae=c):Oy(i);for(;a!==null;)ae=a,sj(a),a=a.sibling;ae=i,Ec=l,Ht=u}Iy(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,ae=a):Iy(e)}}function Iy(e){for(;ae!==null;){var t=ae;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ht||bd(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!Ht)if(n===null)s.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Jn(t.type,n.memoizedProps);s.componentDidUpdate(i,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&xy(t,a,s);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}xy(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var m=d.dehydrated;m!==null&&hl(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}Ht||t.flags&512&&np(t)}catch(h){gt(t,t.return,h)}}if(t===e){ae=null;break}if(n=t.sibling,n!==null){n.return=t.return,ae=n;break}ae=t.return}}function Ly(e){for(;ae!==null;){var t=ae;if(t===e){ae=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ae=n;break}ae=t.return}}function Oy(e){for(;ae!==null;){var t=ae;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bd(4,t)}catch(c){gt(t,n,c)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var i=t.return;try{s.componentDidMount()}catch(c){gt(t,i,c)}}var a=t.return;try{np(t)}catch(c){gt(t,a,c)}break;case 5:var o=t.return;try{np(t)}catch(c){gt(t,o,c)}}}catch(c){gt(t,t.return,c)}if(t===e){ae=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ae=l;break}ae=t.return}}var iT=Math.ceil,Ru=ls.ReactCurrentDispatcher,Gf=ls.ReactCurrentOwner,Un=ls.ReactCurrentBatchConfig,Ve=0,At=null,Ct=null,Ot=0,wn=0,ga=ei(0),Pt=0,kl=null,Ai=0,jd=0,Yf=0,el=null,dn=null,Zf=0,Ya=1/0,Kr=null,Iu=!1,ip=null,Ws=null,Tc=!1,Os=null,Lu=0,tl=0,ap=null,Qc=-1,Xc=0;function rn(){return Ve&6?bt():Qc!==-1?Qc:Qc=bt()}function $s(e){return e.mode&1?Ve&2&&Ot!==0?Ot&-Ot:$E.transition!==null?(Xc===0&&(Xc=$b()),Xc):(e=Qe,e!==0||(e=window.event,e=e===void 0?16:Yb(e.type)),e):1}function lr(e,t,n,s){if(50<tl)throw tl=0,ap=null,Error(K(185));Yl(e,n,s),(!(Ve&2)||e!==At)&&(e===At&&(!(Ve&2)&&(jd|=n),Pt===4&&Ns(e,Ot)),fn(e,s),n===1&&Ve===0&&!(t.mode&1)&&(Ya=bt()+500,yd&&ti()))}function fn(e,t){var n=e.callbackNode;$4(e,t);var s=xu(e,e===At?Ot:0);if(s===0)n!==null&&Hx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&Hx(n),t===1)e.tag===0?WE(My.bind(null,e)):p0(My.bind(null,e)),DE(function(){!(Ve&6)&&ti()}),n=null;else{switch(Bb(s)){case 1:n=jf;break;case 4:n=Ub;break;case 16:n=gu;break;case 536870912:n=Wb;break;default:n=gu}n=mj(n,ij.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ij(e,t){if(Qc=-1,Xc=0,Ve&6)throw Error(K(327));var n=e.callbackNode;if(Na()&&e.callbackNode!==n)return null;var s=xu(e,e===At?Ot:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=Ou(e,s);else{t=s;var i=Ve;Ve|=2;var a=oj();(At!==e||Ot!==t)&&(Kr=null,Ya=bt()+500,Ci(e,t));do try{lT();break}catch(l){aj(e,l)}while(!0);Of(),Ru.current=a,Ve=i,Ct!==null?t=0:(At=null,Ot=0,t=Pt)}if(t!==0){if(t===2&&(i=Ih(e),i!==0&&(s=i,t=op(e,i))),t===1)throw n=kl,Ci(e,0),Ns(e,s),fn(e,bt()),n;if(t===6)Ns(e,s);else{if(i=e.current.alternate,!(s&30)&&!aT(i)&&(t=Ou(e,s),t===2&&(a=Ih(e),a!==0&&(s=a,t=op(e,a))),t===1))throw n=kl,Ci(e,0),Ns(e,s),fn(e,bt()),n;switch(e.finishedWork=i,e.finishedLanes=s,t){case 0:case 1:throw Error(K(345));case 2:ci(e,dn,Kr);break;case 3:if(Ns(e,s),(s&130023424)===s&&(t=Zf+500-bt(),10<t)){if(xu(e,0)!==0)break;if(i=e.suspendedLanes,(i&s)!==s){rn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Wh(ci.bind(null,e,dn,Kr),t);break}ci(e,dn,Kr);break;case 4:if(Ns(e,s),(s&4194240)===s)break;for(t=e.eventTimes,i=-1;0<s;){var o=31-or(s);a=1<<o,o=t[o],o>i&&(i=o),s&=~a}if(s=i,s=bt()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*iT(s/1960))-s,10<s){e.timeoutHandle=Wh(ci.bind(null,e,dn,Kr),s);break}ci(e,dn,Kr);break;case 5:ci(e,dn,Kr);break;default:throw Error(K(329))}}}return fn(e,bt()),e.callbackNode===n?ij.bind(null,e):null}function op(e,t){var n=el;return e.current.memoizedState.isDehydrated&&(Ci(e,t).flags|=256),e=Ou(e,t),e!==2&&(t=dn,dn=n,t!==null&&lp(t)),e}function lp(e){dn===null?dn=e:dn.push.apply(dn,e)}function aT(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var i=n[s],a=i.getSnapshot;i=i.value;try{if(!mr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ns(e,t){for(t&=~Yf,t&=~jd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-or(t),s=1<<n;e[n]=-1,t&=~s}}function My(e){if(Ve&6)throw Error(K(327));Na();var t=xu(e,0);if(!(t&1))return fn(e,bt()),null;var n=Ou(e,t);if(e.tag!==0&&n===2){var s=Ih(e);s!==0&&(t=s,n=op(e,s))}if(n===1)throw n=kl,Ci(e,0),Ns(e,t),fn(e,bt()),n;if(n===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ci(e,dn,Kr),fn(e,bt()),null}function Qf(e,t){var n=Ve;Ve|=1;try{return e(t)}finally{Ve=n,Ve===0&&(Ya=bt()+500,yd&&ti())}}function Ri(e){Os!==null&&Os.tag===0&&!(Ve&6)&&Na();var t=Ve;Ve|=1;var n=Un.transition,s=Qe;try{if(Un.transition=null,Qe=1,e)return e()}finally{Qe=s,Un.transition=n,Ve=t,!(Ve&6)&&ti()}}function Xf(){wn=ga.current,lt(ga)}function Ci(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ME(n)),Ct!==null)for(n=Ct.return;n!==null;){var s=n;switch(Rf(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&ju();break;case 3:Ka(),lt(hn),lt(Kt),Wf();break;case 5:Uf(s);break;case 4:Ka();break;case 13:lt(dt);break;case 19:lt(dt);break;case 10:Mf(s.type._context);break;case 22:case 23:Xf()}n=n.return}if(At=e,Ct=e=Bs(e.current,null),Ot=wn=t,Pt=0,kl=null,Yf=jd=Ai=0,dn=el=null,fi!==null){for(t=0;t<fi.length;t++)if(n=fi[t],s=n.interleaved,s!==null){n.interleaved=null;var i=s.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,s.next=o}n.pending=s}fi=null}return e}function aj(e,t){do{var n=Ct;try{if(Of(),Gc.current=Au,_u){for(var s=mt.memoizedState;s!==null;){var i=s.queue;i!==null&&(i.pending=null),s=s.next}_u=!1}if(_i=0,_t=Et=mt=null,Xo=!1,bl=0,Gf.current=null,n===null||n.return===null){Pt=1,kl=t,Ct=null;break}e:{var a=e,o=n.return,l=n,c=t;if(t=Ot,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,m=d.tag;if(!(d.mode&1)&&(m===0||m===11||m===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=Ny(o);if(p!==null){p.flags&=-257,ky(p,o,l,a,t),p.mode&1&&jy(a,u,t),t=p,c=u;var v=t.updateQueue;if(v===null){var f=new Set;f.add(c),t.updateQueue=f}else v.add(c);break e}else{if(!(t&1)){jy(a,u,t),Jf();break e}c=Error(K(426))}}else if(ct&&l.mode&1){var b=Ny(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),ky(b,o,l,a,t),If(Ga(c,l));break e}}a=c=Ga(c,l),Pt!==4&&(Pt=2),el===null?el=[a]:el.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var g=B0(a,c,t);gy(a,g);break e;case 1:l=c;var x=a.type,w=a.stateNode;if(!(a.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Ws===null||!Ws.has(w)))){a.flags|=65536,t&=-t,a.lanes|=t;var j=H0(a,l,t);gy(a,j);break e}}a=a.return}while(a!==null)}cj(n)}catch(k){t=k,Ct===n&&n!==null&&(Ct=n=n.return);continue}break}while(!0)}function oj(){var e=Ru.current;return Ru.current=Au,e===null?Au:e}function Jf(){(Pt===0||Pt===3||Pt===2)&&(Pt=4),At===null||!(Ai&268435455)&&!(jd&268435455)||Ns(At,Ot)}function Ou(e,t){var n=Ve;Ve|=2;var s=oj();(At!==e||Ot!==t)&&(Kr=null,Ci(e,t));do try{oT();break}catch(i){aj(e,i)}while(!0);if(Of(),Ve=n,Ru.current=s,Ct!==null)throw Error(K(261));return At=null,Ot=0,Pt}function oT(){for(;Ct!==null;)lj(Ct)}function lT(){for(;Ct!==null&&!I4();)lj(Ct)}function lj(e){var t=dj(e.alternate,e,wn);e.memoizedProps=e.pendingProps,t===null?cj(e):Ct=t,Gf.current=null}function cj(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=tT(n,t),n!==null){n.flags&=32767,Ct=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Pt=6,Ct=null;return}}else if(n=eT(n,t,wn),n!==null){Ct=n;return}if(t=t.sibling,t!==null){Ct=t;return}Ct=t=e}while(t!==null);Pt===0&&(Pt=5)}function ci(e,t,n){var s=Qe,i=Un.transition;try{Un.transition=null,Qe=1,cT(e,t,n,s)}finally{Un.transition=i,Qe=s}return null}function cT(e,t,n,s){do Na();while(Os!==null);if(Ve&6)throw Error(K(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(K(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(B4(e,a),e===At&&(Ct=At=null,Ot=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Tc||(Tc=!0,mj(gu,function(){return Na(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=Un.transition,Un.transition=null;var o=Qe;Qe=1;var l=Ve;Ve|=4,Gf.current=null,rT(e,n),rj(n,e),PE(zh),yu=!!Fh,zh=Fh=null,e.current=n,sT(n),L4(),Ve=l,Qe=o,Un.transition=a}else e.current=n;if(Tc&&(Tc=!1,Os=e,Lu=i),a=e.pendingLanes,a===0&&(Ws=null),D4(n.stateNode),fn(e,bt()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],s(i.value,{componentStack:i.stack,digest:i.digest});if(Iu)throw Iu=!1,e=ip,ip=null,e;return Lu&1&&e.tag!==0&&Na(),a=e.pendingLanes,a&1?e===ap?tl++:(tl=0,ap=e):tl=0,ti(),null}function Na(){if(Os!==null){var e=Bb(Lu),t=Un.transition,n=Qe;try{if(Un.transition=null,Qe=16>e?16:e,Os===null)var s=!1;else{if(e=Os,Os=null,Lu=0,Ve&6)throw Error(K(331));var i=Ve;for(Ve|=4,ae=e.current;ae!==null;){var a=ae,o=a.child;if(ae.flags&16){var l=a.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(ae=u;ae!==null;){var d=ae;switch(d.tag){case 0:case 11:case 15:Jo(8,d,a)}var m=d.child;if(m!==null)m.return=d,ae=m;else for(;ae!==null;){d=ae;var h=d.sibling,p=d.return;if(ej(d),d===u){ae=null;break}if(h!==null){h.return=p,ae=h;break}ae=p}}}var v=a.alternate;if(v!==null){var f=v.child;if(f!==null){v.child=null;do{var b=f.sibling;f.sibling=null,f=b}while(f!==null)}}ae=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,ae=o;else e:for(;ae!==null;){if(a=ae,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Jo(9,a,a.return)}var g=a.sibling;if(g!==null){g.return=a.return,ae=g;break e}ae=a.return}}var x=e.current;for(ae=x;ae!==null;){o=ae;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,ae=w;else e:for(o=x;ae!==null;){if(l=ae,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:bd(9,l)}}catch(k){gt(l,l.return,k)}if(l===o){ae=null;break e}var j=l.sibling;if(j!==null){j.return=l.return,ae=j;break e}ae=l.return}}if(Ve=i,ti(),_r&&typeof _r.onPostCommitFiberRoot=="function")try{_r.onPostCommitFiberRoot(hd,e)}catch{}s=!0}return s}finally{Qe=n,Un.transition=t}}return!1}function Dy(e,t,n){t=Ga(n,t),t=B0(e,t,1),e=Us(e,t,1),t=rn(),e!==null&&(Yl(e,1,t),fn(e,t))}function gt(e,t,n){if(e.tag===3)Dy(e,e,n);else for(;t!==null;){if(t.tag===3){Dy(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Ws===null||!Ws.has(s))){e=Ga(n,e),e=H0(t,e,1),t=Us(t,e,1),e=rn(),t!==null&&(Yl(t,1,e),fn(t,e));break}}t=t.return}}function uT(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=rn(),e.pingedLanes|=e.suspendedLanes&n,At===e&&(Ot&n)===n&&(Pt===4||Pt===3&&(Ot&130023424)===Ot&&500>bt()-Zf?Ci(e,0):Yf|=n),fn(e,t)}function uj(e,t){t===0&&(e.mode&1?(t=yc,yc<<=1,!(yc&130023424)&&(yc=4194304)):t=1);var n=rn();e=rs(e,t),e!==null&&(Yl(e,t,n),fn(e,n))}function dT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),uj(e,n)}function mT(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(K(314))}s!==null&&s.delete(t),uj(e,n)}var dj;dj=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||hn.current)mn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return mn=!1,JE(e,t,n);mn=!!(e.flags&131072)}else mn=!1,ct&&t.flags&1048576&&f0(t,Cu,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Zc(e,t),e=t.pendingProps;var i=Ha(t,Kt.current);ja(t,n),i=Bf(null,t,s,e,i,n);var a=Hf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pn(s)?(a=!0,Nu(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ff(t),i.updater=wd,t.stateNode=i,i._reactInternals=t,Gh(t,s,e,n),t=Qh(null,t,s,!0,a,n)):(t.tag=0,ct&&a&&Af(t),en(null,t,i,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Zc(e,t),e=t.pendingProps,i=s._init,s=i(s._payload),t.type=s,i=t.tag=pT(s),e=Jn(s,e),i){case 0:t=Zh(null,t,s,e,n);break e;case 1:t=Ey(null,t,s,e,n);break e;case 11:t=Cy(null,t,s,e,n);break e;case 14:t=Sy(null,t,s,Jn(s.type,e),n);break e}throw Error(K(306,s,""))}return t;case 0:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Jn(s,i),Zh(e,t,s,i,n);case 1:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Jn(s,i),Ey(e,t,s,i,n);case 3:e:{if(G0(t),e===null)throw Error(K(387));s=t.pendingProps,a=t.memoizedState,i=a.element,b0(e,t),Tu(t,s,null,n);var o=t.memoizedState;if(s=o.element,a.isDehydrated)if(a={element:s,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ga(Error(K(423)),t),t=Ty(e,t,s,n,i);break e}else if(s!==i){i=Ga(Error(K(424)),t),t=Ty(e,t,s,n,i);break e}else for(jn=zs(t.stateNode.containerInfo.firstChild),Nn=t,ct=!0,nr=null,n=v0(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Va(),s===i){t=ss(e,t,n);break e}en(e,t,s,n)}t=t.child}return t;case 5:return j0(t),e===null&&Vh(t),s=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Uh(s,i)?o=null:a!==null&&Uh(s,a)&&(t.flags|=32),K0(e,t),en(e,t,o,n),t.child;case 6:return e===null&&Vh(t),null;case 13:return Y0(e,t,n);case 4:return zf(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=qa(t,null,s,n):en(e,t,s,n),t.child;case 11:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Jn(s,i),Cy(e,t,s,i,n);case 7:return en(e,t,t.pendingProps,n),t.child;case 8:return en(e,t,t.pendingProps.children,n),t.child;case 12:return en(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,rt(Su,s._currentValue),s._currentValue=o,a!==null)if(mr(a.value,o)){if(a.children===i.children&&!hn.current){t=ss(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var c=l.firstContext;c!==null;
vendor: 11,134 bytes, line 40
40){if(c.context===s){if(a.tag===1){c=Jr(-1,n&-n),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),qh(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(K(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),qh(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}en(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,s=t.pendingProps.children,ja(t,n),i=Bn(i),s=s(i),t.flags|=1,en(e,t,s,n),t.child;case 14:return s=t.type,i=Jn(s,t.pendingProps),i=Jn(s.type,i),Sy(e,t,s,i,n);case 15:return V0(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Jn(s,i),Zc(e,t),t.tag=1,pn(s)?(e=!0,Nu(t)):e=!1,ja(t,n),$0(t,s,i),Gh(t,s,i,n),Qh(null,t,s,!0,e,n);case 19:return Z0(e,t,n);case 22:return q0(e,t,n)}throw Error(K(156,t.tag))};function mj(e,t){return zb(e,t)}function hT(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fn(e,t,n,s){return new hT(e,t,n,s)}function eg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pT(e){if(typeof e=="function")return eg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vf)return 11;if(e===wf)return 14}return 2}function Bs(e,t){var n=e.alternate;return n===null?(n=Fn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Jc(e,t,n,s,i,a){var o=2;if(s=e,typeof e=="function")eg(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case aa:return Si(n.children,i,a,t);case yf:o=8,i|=8;break;case yh:return e=Fn(12,n,t,i|2),e.elementType=yh,e.lanes=a,e;case vh:return e=Fn(13,n,t,i),e.elementType=vh,e.lanes=a,e;case wh:return e=Fn(19,n,t,i),e.elementType=wh,e.lanes=a,e;case jb:return Nd(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wb:o=10;break e;case bb:o=9;break e;case vf:o=11;break e;case wf:o=14;break e;case ws:o=16,s=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=Fn(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t}function Si(e,t,n,s){return e=Fn(7,e,s,t),e.lanes=n,e}function Nd(e,t,n,s){return e=Fn(22,e,s,t),e.elementType=jb,e.lanes=n,e.stateNode={isHidden:!1},e}function Om(e,t,n){return e=Fn(6,e,null,t),e.lanes=n,e}function Mm(e,t,n){return t=Fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fT(e,t,n,s,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gm(0),this.expirationTimes=gm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gm(0),this.identifierPrefix=s,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function tg(e,t,n,s,i,a,o,l,c){return e=new fT(e,t,n,l,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Fn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ff(a),e}function gT(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ia,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function hj(e){if(!e)return Vs;e=e._reactInternals;e:{if(Bi(e)!==e||e.tag!==1)throw Error(K(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(K(171))}if(e.tag===1){var n=e.type;if(pn(n))return h0(e,n,t)}return t}function pj(e,t,n,s,i,a,o,l,c){return e=tg(n,s,!0,e,i,a,o,l,c),e.context=hj(null),n=e.current,s=rn(),i=$s(n),a=Jr(s,i),a.callback=t??null,Us(n,a,i),e.current.lanes=i,Yl(e,i,s),fn(e,s),e}function kd(e,t,n,s){var i=t.current,a=rn(),o=$s(i);return n=hj(n),t.context===null?t.context=n:t.pendingContext=n,t=Jr(a,o),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Us(i,t,o),e!==null&&(lr(e,i,o,a),Kc(e,i,o)),o}function Mu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Fy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ng(e,t){Fy(e,t),(e=e.alternate)&&Fy(e,t)}function xT(){return null}var fj=typeof reportError=="function"?reportError:function(e){console.error(e)};function rg(e){this._internalRoot=e}Cd.prototype.render=rg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));kd(e,t,null,null)};Cd.prototype.unmount=rg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ri(function(){kd(null,e,null,null)}),t[ns]=null}};function Cd(e){this._internalRoot=e}Cd.prototype.unstable_scheduleHydration=function(e){if(e){var t=qb();e={blockedOn:null,target:e,priority:t};for(var n=0;n<js.length&&t!==0&&t<js[n].priority;n++);js.splice(n,0,e),n===0&&Gb(e)}};function sg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Sd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function zy(){}function yT(e,t,n,s,i){if(i){if(typeof s=="function"){var a=s;s=function(){var u=Mu(o);a.call(u)}}var o=pj(t,s,e,0,null,!1,!1,"",zy);return e._reactRootContainer=o,e[ns]=o.current,gl(e.nodeType===8?e.parentNode:e),Ri(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof s=="function"){var l=s;s=function(){var u=Mu(c);l.call(u)}}var c=tg(e,0,!1,null,null,!1,!1,"",zy);return e._reactRootContainer=c,e[ns]=c.current,gl(e.nodeType===8?e.parentNode:e),Ri(function(){kd(t,c,n,s)}),c}function Ed(e,t,n,s,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var l=i;i=function(){var c=Mu(o);l.call(c)}}kd(t,o,e,i)}else o=yT(n,t,e,i,s);return Mu(o)}Hb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Wo(t.pendingLanes);n!==0&&(Nf(t,n|1),fn(t,bt()),!(Ve&6)&&(Ya=bt()+500,ti()))}break;case 13:Ri(function(){var s=rs(e,1);if(s!==null){var i=rn();lr(s,e,1,i)}}),ng(e,1)}};kf=function(e){if(e.tag===13){var t=rs(e,134217728);if(t!==null){var n=rn();lr(t,e,134217728,n)}ng(e,134217728)}};Vb=function(e){if(e.tag===13){var t=$s(e),n=rs(e,t);if(n!==null){var s=rn();lr(n,e,t,s)}ng(e,t)}};qb=function(){return Qe};Kb=function(e,t){var n=Qe;try{return Qe=e,t()}finally{Qe=n}};_h=function(e,t,n){switch(t){case"input":if(Nh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var i=xd(s);if(!i)throw Error(K(90));kb(s),Nh(s,i)}}}break;case"textarea":Sb(e,n);break;case"select":t=n.value,t!=null&&ya(e,!!n.multiple,t,!1)}};Ib=Qf;Lb=Ri;var vT={usingClientEntryPoint:!1,Events:[Ql,ua,xd,Ab,Rb,Qf]},_o={findFiberByHostInstance:pi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},wT={bundleType:_o.bundleType,version:_o.version,rendererPackageName:_o.rendererPackageName,rendererConfig:_o.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ls.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Db(e),e===null?null:e.stateNode},findFiberByHostInstance:_o.findFiberByHostInstance||xT,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 Pc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pc.isDisabled&&Pc.supportsFiber)try{hd=Pc.inject(wT),_r=Pc}catch{}}Tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vT;Tn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!sg(t))throw Error(K(200));return gT(e,t,null,n)};Tn.createRoot=function(e,t){if(!sg(e))throw Error(K(299));var n=!1,s="",i=fj;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=tg(e,1,!1,null,null,n,!1,s,i),e[ns]=t.current,gl(e.nodeType===8?e.parentNode:e),new rg(t)};Tn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=Db(t),e=e===null?null:e.stateNode,e};Tn.flushSync=function(e){return Ri(e)};Tn.hydrate=function(e,t,n){if(!Sd(t))throw Error(K(200));return Ed(null,e,t,!0,n)};Tn.hydrateRoot=function(e,t,n){if(!sg(e))throw Error(K(405));var s=n!=null&&n.hydratedSources||null,i=!1,a="",o=fj;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=pj(t,null,e,1,n??null,i,!1,a,o),e[ns]=t.current,gl(e),s)for(e=0;e<s.length;e++)n=s[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Cd(t)};Tn.render=function(e,t,n){if(!Sd(t))throw Error(K(200));return Ed(null,e,t,!1,n)};Tn.unmountComponentAtNode=function(e){if(!Sd(e))throw Error(K(40));return e._reactRootContainer?(Ri(function(){Ed(null,null,e,!1,function(){e._reactRootContainer=null,e[ns]=null})}),!0):!1};Tn.unstable_batchedUpdates=Qf;Tn.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!Sd(n))throw Error(K(200));if(e==null||e._reactInternals===void 0)throw Error(K(38));return Ed(e,t,n,!1,s)};Tn.version="18.3.1-next-f1338f8080-20240426";function gj(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gj)}catch(e){console.error(e)}}gj(),gb.exports=Tn;
40var Hi=gb.exports;const xj=dd(Hi);var yj,Uy=Hi;yj=Uy.createRoot,Uy.hydrateRoot;function bT(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,s,i,a,o=[],l="",c=e.split("/");for(c[0]||c.shift();i=c.shift();)n=i[0],n==="*"?(o.push(n),l+=i[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(s=i.indexOf("?",1),a=i.indexOf(".",1),o.push(i.substring(1,~s?s:~a?a:i.length)),l+=~s&&!~a?"(?:/([^/]+?))?":"/([^/]+?)",~a&&(l+=(~s?"?":"")+"\\"+i.substring(a))):l+="/"+i;return{keys:o,pattern:new RegExp("^"+l+(t?"(?=$|/)":"/?$"),"i")}}var vj={exports:{}},wj={};/**
41 * @license React
42 * use-sync-external-store-shim.production.min.js
43 *
44 * Copyright (c) Facebook, Inc. and its affiliates.
45 *
46 * This source code is licensed under the MIT license found in the
47 * LICENSE file in the root directory of this source tree.
48 */var Za=y;function jT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var NT=typeof Object.is=="function"?Object.is:jT,kT=Za.useState,CT=Za.useEffect,ST=Za.useLayoutEffect,ET=Za.useDebugValue;function TT(e,t){var n=t(),s=kT({inst:{value:n,getSnapshot:t}}),i=s[0].inst,a=s[1];return ST(function(){i.value=n,i.getSnapshot=t,Dm(i)&&a({inst:i})},[e,n,t]),CT(function(){return Dm(i)&&a({inst:i}),e(function(){Dm(i)&&a({inst:i})})},[e]),ET(n),n}function Dm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!NT(e,n)}catch{return!0}}function PT(e,t){return t()}var _T=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?PT:TT;wj.useSyncExternalStore=Za.useSyncExternalStore!==void 0?Za.useSyncExternalStore:_T;vj.exports=wj;var AT=vj.exports;const RT=pb.useInsertionEffect,IT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LT=IT?y.useLayoutEffect:y.useEffect,OT=RT||LT,bj=e=>{const t=y.useRef([e,(...n)=>t[0](...n)]).current;return OT(()=>{t[0]=e}),t[1]},MT="popstate",ig="pushState",ag="replaceState",DT="hashchange",Wy=[MT,ig,ag,DT],FT=e=>{for(const t of Wy)addEventListener(t,e);return()=>{for(const t of Wy)removeEventListener(t,e)}},jj=(e,t)=>AT.useSyncExternalStore(FT,e,t),zT=()=>location.search,UT=({ssrSearch:e=""}={})=>jj(zT,()=>e),$y=()=>location.pathname,WT=({ssrPath:e}={})=>jj($y,e?()=>e:$y),$T=(e,{replace:t=!1,state:n=null}={})=>history[t?ag:ig](n,"",e),BT=(e={})=>[WT(e),$T],By=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[By]>"u"){for(const e of[ig,ag]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),s=new Event(e);return s.arguments=arguments,dispatchEvent(s),n}}Object.defineProperty(window,By,{value:!0})}const HT=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",Nj=(e="")=>e==="/"?"":e,VT=(e,t)=>e[0]==="~"?e.slice(1):Nj(t)+e,qT=(e="",t)=>HT(Hy(Nj(e)),Hy(t)),Hy=e=>{try{return decodeURI(e)}catch{return e}},kj={hook:BT,searchHook:UT,parser:bT,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},Cj=y.createContext(kj),Jl=()=>y.useContext(Cj),Sj={},Ej=y.createContext(Sj),Tj=()=>y.useContext(Ej),Td=e=>{const[t,n]=e.hook(e);return[qT(e.base,t),bj((s,i)=>n(VT(s,e.base),i))]},Pd=()=>Td(Jl()),Pj=(e,t,n,s)=>{const{pattern:i,keys:a}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",s),o=i.exec(n)||[],[l,...c]=o;return l!==void 0?[!0,(()=>{const u=a!==!1?Object.fromEntries(a.map((m,h)=>[m,c[h]])):o.groups;let d={...c};return u&&Object.assign(d,u),d})(),...s?[l]:[]]:[!1,null]},KT=({children:e,...t})=>{var d,m;const n=Jl(),s=t.hook?kj:n;let i=s;const[a,o]=((d=t.ssrPath)==null?void 0:d.split("?"))??[];o&&(t.ssrSearch=o,t.ssrPath=a),t.hrefs=t.hrefs??((m=t.hook)==null?void 0:m.hrefs);let l=y.useRef({}),c=l.current,u=c;for(let h in s){const p=h==="base"?s[h]+(t[h]||""):t[h]||s[h];c===u&&p!==u[h]&&(l.current=u={...u}),u[h]=p,p!==s[h]&&(i=u)}return y.createElement(Cj.Provider,{value:i,children:e})},Vy=({children:e,component:t},n)=>t?y.createElement(t,{params:n}):typeof e=="function"?e(n):e,GT=e=>{let t=y.useRef(Sj),n=t.current;for(const s in e)e[s]!==n[s]&&(n=e);return Object.keys(e).length===0&&(n=e),t.current=n},je=({path:e,nest:t,match:n,...s})=>{const i=Jl(),[a]=Td(i),[o,l,c]=n??Pj(i.parser,e,a,t),u=GT({...Tj(),...l});if(!o)return null;const d=c?y.createElement(KT,{base:c},Vy(s,u)):Vy(s,u);return y.createElement(Ej.Provider,{value:u,children:d})},Q=y.forwardRef((e,t)=>
48{const n=Jl(),[s,i]=Td(n),{to:a="",href:o=a,onClick:l,asChild:c,children:u,className:d,replace:m,state:h,...p}=e,v=bj(b=>{b.ctrlKey||b.metaKey||b.altKey||b.shiftKey||b.button!==0||(l==null||l(b),b.defaultPrevented||(b.preventDefault(),i(o,e)))}),f=n.hrefs(o[0]==="~"?o.slice(1):n.base+o,n);return c&&y.isValidElement(u)?y.cloneElement(u,{onClick:v,href:f}):y.createElement("a",{...p,onClick:v,href:f,className:d!=null&&d.call?d(s===o):d,children:u,ref:t})}),_j=e=>Array.isArray(e)?e.flatMap(t=>_j(t&&t.type===y.Fragment?t.props.children:t)):[e],YT=({children:e,location:t})=>{const n=Jl(),[s]=Td(n);for(const i of _j(e)){let a=0;if(y.isValidElement(i)&&(a=Pj(n.parser,i.props.path,t||s,i.props.nest))[0])return y.cloneElement(i,{match:a})}return null};var co=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(){}},Ii=typeof window>"u"||"Deno"in globalThis;function Ln(){}function ZT(e,t){return typeof e=="function"?e(t):e}function cp(e){return typeof e=="number"&&e>=0&&e!==1/0}function Aj(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ka(e,t){return typeof e=="function"?e(t):e}function rr(e,t){return typeof e=="function"?e(t):e}function qy(e,t){const{type:n="all",exact:s,fetchStatus:i,predicate:a,queryKey:o,stale:l}=e;if(o){if(s){if(t.queryHash!==og(o,t.options))return!1}else if(!Cl(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||a&&!a(t))}function Ky(e,t){const{exact:n,status:s,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Li(t.options.mutationKey)!==Li(a))return!1}else if(!Cl(t.options.mutationKey,a))return!1}return!(s&&t.state.status!==s||i&&!i(t))}function og(e,t){return((t==null?void 0:t.queryKeyHashFn)||Li)(e)}function Li(e){return JSON.stringify(e,(t,n)=>up(n)?Object.keys(n).sort().reduce((s,i)=>(s[i]=n[i],s),{}):n)}function Cl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Cl(e[n],t[n])):!1}function Rj(e,t){if(e===t)return e;const n=Gy(e)&&Gy(t);if(n||up(e)&&up(t)){const s=n?e:Object.keys(e),i=s.length,a=n?t:Object.keys(t),o=a.length,l=n?[]:{};let c=0;for(let u=0;u<o;u++){const d=n?u:a[u];(!n&&s.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(l[d]=void 0,c++):(l[d]=Rj(e[d],t[d]),l[d]===e[d]&&e[d]!==void 0&&c++)}return i===o&&c===i?e:l}return t}function Du(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 Gy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function up(e){if(!Yy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Yy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Yy(e){return Object.prototype.toString.call(e)==="[object Object]"}function QT(e){return new Promise(t=>{setTimeout(t,e)})}function dp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Rj(e,t):t}function XT(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function JT(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var lg=Symbol();function Ij(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===lg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var yi,Cs,_a,Gw,eP=(Gw=class extends co{constructor(){super();ge(this,yi);ge(this,Cs);ge(this,_a);ne(this,_a,t=>{if(!Ii&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_(this,Cs)||this.setEventListener(_(this,_a))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,Cs))==null||t.call(this),ne(this,Cs,void 0))}setEventListener(t){var n;
vendor: 33,536 bytes, line 48
48ne(this,_a,t),(n=_(this,Cs))==null||n.call(this),ne(this,Cs,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){_(this,yi)!==t&&(ne(this,yi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _(this,yi)=="boolean"?_(this,yi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},yi=new WeakMap,Cs=new WeakMap,_a=new WeakMap,Gw),cg=new eP,Aa,Ss,Ra,Yw,tP=(Yw=class extends co{constructor(){super();ge(this,Aa,!0);ge(this,Ss);ge(this,Ra);ne(this,Ra,t=>{if(!Ii&&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(){_(this,Ss)||this.setEventListener(_(this,Ra))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,Ss))==null||t.call(this),ne(this,Ss,void 0))}setEventListener(t){var n;ne(this,Ra,t),(n=_(this,Ss))==null||n.call(this),ne(this,Ss,t(this.setOnline.bind(this)))}setOnline(t){_(this,Aa)!==t&&(ne(this,Aa,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return _(this,Aa)}},Aa=new WeakMap,Ss=new WeakMap,Ra=new WeakMap,Yw),Fu=new tP;function mp(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});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}function nP(e){return Math.min(1e3*2**e,3e4)}function Lj(e){return(e??"online")==="online"?Fu.isOnline():!0}var Oj=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Fm(e){return e instanceof Oj}function Mj(e){let t=!1,n=0,s=!1,i;const a=mp(),o=f=>{var b;s||(h(new Oj(f)),(b=e.abort)==null||b.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>cg.isFocused()&&(e.networkMode==="always"||Fu.isOnline())&&e.canRun(),d=()=>Lj(e.networkMode)&&e.canRun(),m=f=>{var b;s||(s=!0,(b=e.onSuccess)==null||b.call(e,f),i==null||i(),a.resolve(f))},h=f=>{var b;s||(s=!0,(b=e.onError)==null||b.call(e,f),i==null||i(),a.reject(f))},p=()=>new Promise(f=>{var b;i=g=>{(s||u())&&f(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var f;i=void 0,s||(f=e.onContinue)==null||f.call(e)}),v=()=>{if(s)return;let f;const b=n===0?e.initialPromise:void 0;try{f=b??e.fn()}catch(g){f=Promise.reject(g)}Promise.resolve(f).then(m).catch(g=>{var N;if(s)return;const x=e.retry??(Ii?0:3),w=e.retryDelay??nP,j=typeof w=="function"?w(n,g):w,k=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,g);if(t||!k){h(g);return}n++,(N=e.onFail)==null||N.call(e,n,g),QT(j).then(()=>u()?void 0:p()).then(()=>{t?h(g):v()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?v():p().then(v),a)}}function rP(){let e=[],t=0,n=l=>{l()},s=l=>{l()},i=l=>setTimeout(l,0);const a=l=>{t?e.push(l):i(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&i(()=>{s(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{a(()=>{l(...c)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{s=l},setScheduler:l=>{i=l}}}var Tt=rP(),vi,Zw,Dj=(Zw=class{constructor(){ge(this,vi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cp(this.gcTime)&&ne(this,vi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ii?1/0:5*60*1e3))}clearGcTimeout(){_(this,vi)&&(clearTimeout(_(this,vi)),ne(this,vi,void 0))}},vi=new WeakMap,Zw),Ia,La,In,$t,Hl,wi,er,Vr,Qw,sP=(Qw=class extends Dj{constructor(t){super();ge(this,er);ge(this,Ia);ge(this,La);ge(this,In);ge(this,$t);ge(this,Hl);ge(this,wi);ne(this,wi,!1),ne(this,Hl,t.defaultOptions),this.setOptions(t.options),this.observers=[],ne(this,In,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ne(this,Ia,iP(this.options)),this.state=t.state??_(this,Ia),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_(this,$t))==null?void 0:t.promise}setOptions(t){this.options={..._(this,Hl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,In).remove(this)}setData(t,n){const s=dp(this.state.data,t,this.options);return Ae(this,er,Vr).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){Ae(this,er,Vr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,i;const n=(s=_(this,$t))==null?void 0:s.promise;return(i=_(this,$t))==null||i.cancel(t),n?n.then(Ln).catch(Ln):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_(this,Ia))}isActive(){return this.observers.some(t=>rr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lg||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Aj(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,$t))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,$t))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_(this,In).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(_(this,$t)&&(_(this,wi)?_(this,$t).cancel({revert:!0}):_(this,$t).cancelRetry()),this.scheduleGc()),_(this,In).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ae(this,er,Vr).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_(this,$t))return _(this,$t).continueRetry(),_(this,$t).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(h=>h.options.queryFn);m&&this.setOptions(m.options)}const s=new AbortController,i=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(ne(this,wi,!0),s.signal)})},a=()=>{const m=Ij(this.options,n),h={queryKey:this.queryKey,meta:this.meta};return i(h),ne(this,wi,!1),this.options.persister?this.options.persister(m,h,this):m(h)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(c=this.options.behavior)==null||c.onFetch(o,this),ne(this,La,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&Ae(this,er,Vr).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const l=m=>{var h,p,v,f;Fm(m)&&m.silent||Ae(this,er,Vr).call(this,{type:"error",error:m}),Fm(m)||((p=(h=_(this,In).config).onError)==null||p.call(h,m,this),(f=(v=_(this,In).config).onSettled)==null||f.call(v,this.state.data,m,this)),this.scheduleGc()};return ne(this,$t,Mj({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:m=>{var h,p,v,f;if(m===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(b){l(b);return}(p=(h=_(this,In).config).onSuccess)==null||p.call(h,m,this),(f=(v=_(this,In).config).onSettled)==null||f.call(v,m,this.state.error,this),this.scheduleGc()},onError:l,onFail:(m,h)=>{Ae(this,er,Vr).call(this,{type:"failed",failureCount:m,error:h})},onPause:()=>{Ae(this,er,Vr).call(this,{type:"pause"})},onContinue:()=>{Ae(this,er,Vr).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),_(this,$t).start()}},Ia=new WeakMap,La=new WeakMap,In=new WeakMap,$t=new WeakMap,Hl=new WeakMap,wi=new WeakMap,er=new WeakSet,Vr=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,...Fj(s.data,this.options),fetchMeta:t.meta??null};case"success":return{...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Fm(i)&&i.revert&&_(this,La)?{..._(this,La),fetchStatus:"idle"}:{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),_(this,In).notify({query:this,type:"updated",action:t})})},Qw);function Fj(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Lj(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function iP(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 Nr,Xw,aP=(Xw=class extends co{constructor(t={}){super();ge(this,Nr);this.config=t,ne(this,Nr,new Map)}build(t,n,s){const i=n.queryKey,a=n.queryHash??og(i,n);let o=this.get(a);return o||(o=new sP({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){_(this,Nr).has(t.queryHash)||(_(this,Nr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_(this,Nr).get(t.queryHash);n&&(t.destroy(),n===t&&_(this,Nr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Tt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _(this,Nr).get(t)}getAll(){return[..._(this,Nr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>qy(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>qy(t,s)):n}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Nr=new WeakMap,Xw),kr,Qt,bi,Cr,ys,Jw,oP=(Jw=class extends Dj{constructor(t){super();ge(this,Cr);ge(this,kr);ge(this,Qt);ge(this,bi);this.mutationId=t.mutationId,ne(this,Qt,t.mutationCache),ne(this,kr,[]),this.state=t.state||zj(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_(this,kr).includes(t)||(_(this,kr).push(t),this.clearGcTimeout(),_(this,Qt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ne(this,kr,_(this,kr).filter(n=>n!==t)),this.scheduleGc(),_(this,Qt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_(this,kr).length||(this.state.status==="pending"?this.scheduleGc():_(this,Qt).remove(this))}continue(){var t;return((t=_(this,bi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,o,l,c,u,d,m,h,p,v,f,b,g,x,w,j,k,N,T;ne(this,bi,Mj({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,O)=>{Ae(this,Cr,ys).call(this,{type:"failed",failureCount:R,error:O})},onPause:()=>{Ae(this,Cr,ys).call(this,{type:"pause"})},onContinue:()=>{Ae(this,Cr,ys).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,Qt).canRun(this)}));const n=this.state.status==="pending",s=!_(this,bi).canStart();try{if(!n){Ae(this,Cr,ys).call(this,{type:"pending",variables:t,isPaused:s}),await((a=(i=_(this,Qt).config).onMutate)==null?void 0:a.call(i,t,this));const O=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));O!==this.state.context&&Ae(this,Cr,ys).call(this,{type:"pending",context:O,variables:t,isPaused:s})}const R=await _(this,bi).start();return await((u=(c=_(this,Qt).config).onSuccess)==null?void 0:u.call(c,R,t,this.state.context,this)),await((m=(d=this.options).onSuccess)==null?void 0:m.call(d,R,t,this.state.context)),await((p=(h=_(this,Qt).config).onSettled)==null?void 0:p.call(h,R,null,this.state.variables,this.state.context,this)),await((f=(v=this.options).onSettled)==null?void 0:f.call(v,R,null,t,this.state.context)),Ae(this,Cr,ys).call(this,{type:"success",data:R}),R}catch(R){try{throw await((g=(b=_(this,Qt).config).onError)==null?void 0:g.call(b,R,t,this.state.context,this)),await((w=(x=this.options).onError)==null?void 0:w.call(x,R,t,this.state.context)),await((k=(j=_(this,Qt).config).onSettled)==null?void 0:k.call(j,void 0,R,this.state.variables,this.state.context,this)),await((T=(N=this.options).onSettled)==null?void 0:T.call(N,void 0,R,t,this.state.context)),R}finally{Ae(this,Cr,ys).call(this,{type:"error",error:R})}}finally{_(this,Qt).runNext(this)}}},kr=new WeakMap,Qt=new WeakMap,bi=new WeakMap,Cr=new WeakSet,ys=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),Tt.batch(()=>{_(this,kr).forEach(s=>{s.onMutationUpdate(t)}),_(this,Qt).notify({mutation:this,type:"updated",action:t})})},Jw);function zj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vn,Vl,eb,lP=(eb=class extends co{constructor(t={}){super();ge(this,vn);ge(this,Vl);this.config=t,ne(this,vn,new Map),ne(this,Vl,Date.now())}build(t,n,s){const i=new oP({mutationCache:this,mutationId:++mc(this,Vl)._,options:t.defaultMutationOptions(n),state:s});return this.add(i),i}add(t){const n=_c(t),s=_(this,vn).get(n)??[];s.push(t),_(this,vn).set(n,s),this.notify({type:"added",mutation:t})}remove(t){var s;const n=_c(t);if(_(this,vn).has(n)){const i=(s=_(this,vn).get(n))==null?void 0:s.filter(a=>a!==t);i&&(i.length===0?_(this,vn).delete(n):_(this,vn).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var s;const n=(s=_(this,vn).get(_c(t)))==null?void 0:s.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var s;const n=(s=_(this,vn).get(_c(t)))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Tt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[..._(this,vn).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Ky(n,s))}findAll(t={}){return this.getAll().filter(n=>Ky(t,n))}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Tt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ln))))}},vn=new WeakMap,Vl=new WeakMap,eb);function _c(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Zy(e){return{onFetch:(t,n)=>{var d,m,h,p,v;const s=t.options,i=(h=(m=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:m.fetchMore)==null?void 0:h.direction,a=((p=t.state.data)==null?void 0:p.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let f=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},g=Ij(t.options,t.fetchOptions),x=async(w,j,k)=>{if(f)return Promise.reject();if(j==null&&w.pages.length)return Promise.resolve(w);const N={queryKey:t.queryKey,pageParam:j,direction:k?"backward":"forward",meta:t.options.meta};b(N);const T=await g(N),{maxPages:R}=t.options,O=k?JT:XT;return{pages:O(w.pages,T,R),pageParams:O(w.pageParams,j,R)}};if(i&&a.length){const w=i==="backward",j=w?cP:Qy,k={pages:a,pageParams:o},N=j(s,k);l=await x(k,N,w)}else{const w=e??a.length;do{const j=c===0?o[0]??s.initialPageParam:Qy(s,l);if(c>0&&j==null)break;l=await x(l,j),c++}while(c<w)}return l};t.options.persister?t.fetchFn=()=>{var f,b;return(b=(f=t.options).persister)==null?void 0:b.call(f,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Qy(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 cP(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 ft,Es,Ts,Oa,Ma,Ps,Da,Fa,tb,uP=(tb=class{constructor(e={}){ge(this,ft);ge(this,Es);ge(this,Ts);ge(this,Oa);ge(this,Ma);ge(this,Ps);ge(this,Da);ge(this,Fa);ne(this,ft,e.queryCache||new aP),ne(this,Es,e.mutationCache||new lP),ne(this,Ts,e.defaultOptions||{}),ne(this,Oa,new Map),ne(this,Ma,new Map),ne(this,Ps,0)}mount(){mc(this,Ps)._++,_(this,Ps)===1&&(ne(this,Da,cg.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,ft).onFocus())})),ne(this,Fa,Fu.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,ft).onOnline())})))}unmount(){var e,t;mc(this,Ps)._--,_(this,Ps)===0&&((e=_(this,Da))==null||e.call(this),ne(this,Da,void 0),(t=_(this,Fa))==null||t.call(this),ne(this,Fa,void 0))}isFetching(e){return _(this,ft).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _(this,Es).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,ft).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),s=_(this,ft).build(this,n);return e.revalidateIfStale&&s.isStaleByTime(ka(n.staleTime,s))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return _(this,ft).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=_(this,ft).get(s.queryHash),a=i==null?void 0:i.state.data,o=ZT(t,a);if(o!==void 0)return _(this,ft).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Tt.batch(()=>_(this,ft).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,ft).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_(this,ft);Tt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_(this,ft),s={type:"active",...e};return Tt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(s,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},s=Tt.batch(()=>_(this,ft).findAll(e).map(i=>i.cancel(n)));return Promise.all(s).then(Ln).catch(Ln)}invalidateQueries(e={},t={}){return Tt.batch(()=>{if(_(this,ft).findAll(e).forEach(s=>{s.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},s=Tt.batch(()=>_(this,ft).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Ln)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(s).then(Ln)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_(this,ft).build(this,t);return n.isStaleByTime(ka(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ln).catch(Ln)}fetchInfiniteQuery(e){return e.behavior=Zy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ln).catch(Ln)}ensureInfiniteQueryData(e){return e.behavior=Zy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Fu.isOnline()?_(this,Es).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,ft)}getMutationCache(){return _(this,Es)}getDefaultOptions(){return _(this,Ts)}setDefaultOptions(e){ne(this,Ts,e)}setQueryDefaults(e,t){_(this,Oa).set(Li(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._(this,Oa).values()];let n={};return t.forEach(s=>{Cl(e,s.queryKey)&&(n={...n,...s.defaultOptions})}),n}setMutationDefaults(e,t){_(this,Ma).set(Li(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._(this,Ma).values()];let n={};return t.forEach(s=>{Cl(e,s.mutationKey)&&(n={...n,...s.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._(this,Ts).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=og(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.enabled!==!0&&t.queryFn===lg&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._(this,Ts).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_(this,ft).clear(),_(this,Es).clear()}},ft=new WeakMap,Es=new WeakMap,Ts=new WeakMap,Oa=new WeakMap,Ma=new WeakMap,Ps=new WeakMap,Da=new WeakMap,Fa=new WeakMap,tb),cn,Ue,ql,Xt,ji,za,_s,Sr,Kl,Ua,Wa,Ni,ki,As,$a,Ye,Bo,hp,pp,fp,gp,xp,yp,vp,Uj,nb,dP=(nb=class extends co{constructor(t,n){super();ge(this,Ye);ge(this,cn);ge(this,Ue);ge(this,ql);ge(this,Xt);ge(this,ji);ge(this,za);ge(this,_s);ge(this,Sr);ge(this,Kl);ge(this,Ua);ge(this,Wa);ge(this,Ni);ge(this,ki);ge(this,As);ge(this,$a,new Set);this.options=n,ne(this,cn,t),ne(this,Sr,null),ne(this,_s,mp()),this.options.experimental_prefetchInRender||_(this,_s).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,Ue).addObserver(this),Xy(_(this,Ue),this.options)?Ae(this,Ye,Bo).call(this):this.updateResult(),Ae(this,Ye,gp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wp(_(this,Ue),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wp(_(this,Ue),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ae(this,Ye,xp).call(this),Ae(this,Ye,yp).call(this),_(this,Ue).removeObserver(this)}setOptions(t,n){const s=this.options,i=_(this,Ue);if(this.options=_(this,cn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof rr(this.options.enabled,_(this,Ue))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ae(this,Ye,vp).call(this),_(this,Ue).setOptions(this.options),s._defaulted&&!Du(this.options,s)&&_(this,cn).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,Ue),observer:this});const a=this.hasListeners();a&&Jy(_(this,Ue),i,this.options,s)&&Ae(this,Ye,Bo).call(this),this.updateResult(n),a&&(_(this,Ue)!==i||rr(this.options.enabled,_(this,Ue))!==rr(s.enabled,_(this,Ue))||ka(this.options.staleTime,_(this,Ue))!==ka(s.staleTime,_(this,Ue)))&&Ae(this,Ye,hp).call(this);const o=Ae(this,Ye,pp).call(this);a&&(_(this,Ue)!==i||rr(this.options.enabled,_(this,Ue))!==rr(s.enabled,_(this,Ue))||o!==_(this,As))&&Ae(this,Ye,fp).call(this,o)}getOptimisticResult(t){const n=_(this,cn).getQueryCache().build(_(this,cn),t),s=this.createResult(n,t);return hP(this,s)&&(ne(this,Xt,s),ne(this,za,this.options),ne(this,ji,_(this,Ue).state)),s}getCurrentResult(){return _(this,Xt)}trackResult(t,n){const s={};return Object.keys(t).forEach(i=>{Object.defineProperty(s,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),s}trackProp(t){_(this,$a).add(t)}getCurrentQuery(){return _(this,Ue)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=_(this,cn).defaultQueryOptions(t),s=_(this,cn).getQueryCache().build(_(this,cn),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return Ae(this,Ye,Bo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,Xt)))}createResult(t,n){var R;const s=_(this,Ue),i=this.options,a=_(this,Xt),o=_(this,ji),l=_(this,za),u=t!==s?t.state:_(this,ql),{state:d}=t;let m={...d},h=!1,p;if(n._optimisticResults){const O=this.hasListeners(),S=!O&&Xy(t,n),F=O&&Jy(t,s,n,i);(S||F)&&(m={...m,...Fj(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:v,errorUpdatedAt:f,status:b}=m;if(n.select&&m.data!==void 0)if(a&&m.data===(o==null?void 0:o.data)&&n.select===_(this,Kl))p=_(this,Ua);else try{ne(this,Kl,n.select),p=n.select(m.data),p=dp(a==null?void 0:a.data,p,n),ne(this,Ua,p),ne(this,Sr,null)}catch(O){ne(this,Sr,O)}else p=m.data;if(n.placeholderData!==void 0&&p===void 0&&b==="pending"){let O;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))O=a.data;else if(O=typeof n.placeholderData=="function"?n.placeholderData((R=_(this,Wa))==null?void 0:R.state.data,_(this,Wa)):n.placeholderData,n.select&&O!==void 0)try{O=n.select(O),ne(this,Sr,null)}catch(S){ne(this,Sr,S)}O!==void 0&&(b="success",p=dp(a==null?void 0:a.data,O,n),h=!0)}_(this,Sr)&&(v=_(this,Sr),p=_(this,Ua),f=Date.now(),b="error");const g=m.fetchStatus==="fetching",x=b==="pending",w=b==="error",j=x&&g,k=p!==void 0,T={status:b,fetchStatus:m.fetchStatus,isPending:x,isSuccess:b==="success",isError:w,isInitialLoading:j,isLoading:j,data:p,dataUpdatedAt:m.dataUpdatedAt,error:v,errorUpdatedAt:f,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>u.dataUpdateCount||m.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!x,isLoadingError:w&&!k,isPaused:m.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&k,isStale:ug(t,n),refetch:this.refetch,promise:_(this,_s)};if(this.options.experimental_prefetchInRender){const O=L=>{T.status==="error"?L.reject(T.error):T.data!==void 0&&L.resolve(T.data)},S=()=>{const L=ne(this,_s,T.promise=mp());O(L)},F=_(this,_s);switch(F.status){case"pending":t.queryHash===s.queryHash&&O(F);break;case"fulfilled":(T.status==="error"||T.data!==F.value)&&S();break;case"rejected":(T.status!=="error"||T.error!==F.reason)&&S();break}}return T}updateResult(t){const n=_(this,Xt),s=this.createResult(_(this,Ue),this.options);if(ne(this,ji,_(this,Ue).state),ne(this,za,this.options),_(this,ji).data!==void 0&&ne(this,Wa,_(this,Ue)),Du(s,n))return;ne(this,Xt,s);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!_(this,$a).size)return!0;const c=new Set(l??_(this,$a));return this.options.throwOnError&&c.add("error"),Object.keys(_(this,Xt)).some(u=>{const d=u;return _(this,Xt)[d]!==n[d]&&c.has(d)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),Ae(this,Ye,Uj).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ae(this,Ye,gp).call(this)}},cn=new WeakMap,Ue=new WeakMap,ql=new WeakMap,Xt=new WeakMap,ji=new WeakMap,za=new WeakMap,_s=new WeakMap,Sr=new WeakMap,Kl=new WeakMap,Ua=new WeakMap,Wa=new WeakMap,Ni=new WeakMap,ki=new WeakMap,As=new WeakMap,$a=new WeakMap,Ye=new WeakSet,Bo=function(t){Ae(this,Ye,vp).call(this);let n=_(this,Ue).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ln)),n},hp=function(){Ae(this,Ye,xp).call(this);const t=ka(this.options.staleTime,_(this,Ue));if(Ii||_(this,Xt).isStale||!cp(t))return;const s=Aj(_(this,Xt).dataUpdatedAt,t)+1;ne(this,Ni,setTimeout(()=>{_(this,Xt).isStale||this.updateResult()},s))},pp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,Ue)):this.options.refetchInterval)??!1},fp=function(t){Ae(this,Ye,yp).call(this),ne(this,As,t),!(Ii||rr(this.options.enabled,_(this,Ue))===!1||!cp(_(this,As))||_(this,As)===0)&&ne(this,ki,setInterval(()=>{(this.options.refetchIntervalInBackground||cg.isFocused())&&Ae(this,Ye,Bo).call(this)},_(this,As)))},gp=function(){Ae(this,Ye,hp).call(this),Ae(this,Ye,fp).call(this,Ae(this,Ye,pp).call(this))},xp=function(){_(this,Ni)&&(clearTimeout(_(this,Ni)),ne(this,Ni,void 0))},yp=function(){_(this,ki)&&(clearInterval(_(this,ki)),ne(this,ki,void 0))},vp=function(){const t=_(this,cn).getQueryCache().build(_(this,cn),this.options);if(t===_(this,Ue))return;const n=_(this,Ue);ne(this,Ue,t),ne(this,ql,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Uj=function(t){Tt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(_(this,Xt))}),_(this,cn).getQueryCache().notify({query:_(this,Ue),type:"observerResultsUpdated"})})},nb);function mP(e,t){return rr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Xy(e,t){return mP(e,t)||e.state.data!==void 0&&wp(e,t,t.refetchOnMount)}function wp(e,t,n){if(rr(t.enabled,e)!==!1){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&ug(e,t)}return!1}function Jy(e,t,n,s){return(e!==t||rr(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ug(e,n)}function ug(e,t){return rr(t.enabled,e)!==!1&&e.isStaleByTime(ka(t.staleTime,e))}function hP(e,t){return!Du(e.getCurrentResult(),t)}var Rs,Is,un,Zr,es,eu,bp,rb,pP=(rb=class extends co{constructor(n,s){super();ge(this,es);ge(this,Rs);ge(this,Is);ge(this,un);ge(this,Zr);ne(this,Rs,n),this.setOptions(s),this.bindMethods(),Ae(this,es,eu).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=_(this,Rs).defaultMutationOptions(n),Du(this.options,s)||_(this,Rs).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_(this,un),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&Li(s.mutationKey)!==Li(this.options.mutationKey)?this.reset():((i=_(this,un))==null?void 0:i.state.status)==="pending"&&_(this,un).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=_(this,un))==null||n.removeObserver(this)}onMutationUpdate(n){Ae(this,es,eu).call(this),Ae(this,es,bp).call(this,n)}getCurrentResult(){return _(this,Is)}reset(){var n;(n=_(this,un))==null||n.removeObserver(this),ne(this,un,void 0),Ae(this,es,eu).call(this),Ae(this,es,bp).call(this)}mutate(n,s){var i;return ne(this,Zr,s),(i=_(this,un))==null||i.removeObserver(this),ne(this,un,_(this,Rs).getMutationCache().build(_(this,Rs),this.options)),_(this,un).addObserver(this),_(this,un).execute(n)}},Rs=new WeakMap,Is=new WeakMap,un=new WeakMap,Zr=new WeakMap,es=new WeakSet,eu=function(){var s;const n=((s=_(this,un))==null?void 0:s.state)??zj();ne(this,Is,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},bp=function(n){Tt.batch(()=>{var s,i,a,o,l,c,u,d;if(_(this,Zr)&&this.hasListeners()){const m=_(this,Is).variables,h=_(this,Is).context;(n==null?void 0:n.type)==="success"?((i=(s=_(this,Zr)).onSuccess)==null||i.call(s,n.data,m,h),(o=(a=_(this,Zr)).onSettled)==null||o.call(a,n.data,null,m,h)):(n==null?void 0:n.type)==="error"&&((c=(l=_(this,Zr)).onError)==null||c.call(l,n.error,m,h),(d=(u=_(this,Zr)).onSettled)==null||d.call(u,void 0,n.error,m,h))}this.listeners.forEach(m=>{m(_(this,Is))})})},rb),Wj=y.createContext(void 0),$j=e=>{const t=y.useContext(Wj);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fP=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),r.jsx(Wj.Provider,{value:e,children:t})),Bj=y.createContext(!1),gP=()=>y.useContext(Bj);Bj.Provider;function xP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var yP=y.createContext(xP()),vP=()=>y.useContext(yP);function Hj(e,t){return typeof e=="function"?e(...t):!!e}function jp(){}var wP=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},bP=e=>{y.useEffect(()=>{e.clearReset()},[e])},jP=({result:e,errorResetBoundary:t,throwOnError:n,query:s})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&Hj(n,[e.error,s]),NP=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},kP=(e,t)=>
48e.isLoading&&e.isFetching&&!t,CP=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ev=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function SP(e,t,n){var d,m,h,p,v;const s=$j(),i=gP(),a=vP(),o=s.defaultQueryOptions(e);(m=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||m.call(d,o),o._optimisticResults=i?"isRestoring":"optimistic",NP(o),wP(o,a),bP(a);const l=!s.getQueryCache().get(o.queryHash),[c]=y.useState(()=>new t(s,o)),u=c.getOptimisticResult(o);if(y.useSyncExternalStore(y.useCallback(f=>{const b=i?jp:c.subscribe(Tt.batchCalls(f));return c.updateResult(),b},[c,i]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),y.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),CP(o,u))throw ev(o,c,a);if(jP({result:u,errorResetBoundary:a,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash)}))throw u.error;if((p=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||p.call(h,o,u),o.experimental_prefetchInRender&&!Ii&&kP(u,i)){const f=l?ev(o,c,a):(v=s.getQueryCache().get(o.queryHash))==null?void 0:v.promise;f==null||f.catch(jp).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?u:c.trackResult(u)}function dg(e,t){return SP(e,dP)}function EP(e,t){const n=$j(),[s]=y.useState(()=>new pP(n,e));y.useEffect(()=>{s.setOptions(e)},[s,e]);const i=y.useSyncExternalStore(y.useCallback(o=>s.subscribe(Tt.batchCalls(o)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=y.useCallback((o,l)=>{s.mutate(o,l).catch(jp)},[s]);if(i.error&&Hj(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}async function Vj(e){if(!e.ok){const t=await e.text()||e.statusText;throw new Error(`${e.status}: ${t}`)}}async function TP(e,t,n){const s=await fetch(t,{method:e,headers:n?{"Content-Type":"application/json"}:{},body:n?JSON.stringify(n):void 0,credentials:"include"});return await Vj(s),s}const PP=({on401:e})=>async({queryKey:t})=>{const n=await fetch(t.join("/"),{credentials:"include"});return e==="returnNull"&&n.status===401?null:(await Vj(n),await n.json())},_P=new uP({defaultOptions:{queries:{queryFn:PP({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),AP=1,RP=1e6;let zm=0;function IP(){return zm=(zm+1)%Number.MAX_SAFE_INTEGER,zm.toString()}const Um=new Map,tv=e=>{if(Um.has(e))return;const t=setTimeout(()=>{Um.delete(e),nl({type:"REMOVE_TOAST",toastId:e})},RP);Um.set(e,t)},LP=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,AP)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?tv(n):e.toasts.forEach(s=>{tv(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},tu=[];let nu={toasts:[]};function nl(e){nu=LP(nu,e),tu.forEach(t=>{t(nu)})}function OP({...e}){const t=IP(),n=i=>nl({type:"UPDATE_TOAST",toast:{...i,id:t}}),s=()=>nl({type:"DISMISS_TOAST",toastId:t});return nl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||s()}}}),{id:t,dismiss:s,update:n}}function _d(){const[e,t]=y.useState(nu);return y.useEffect(()=>(tu.push(t),()=>{const n=tu.indexOf(t);n>-1&&tu.splice(n,1)}),[e]),{...e,toast:OP,dismiss:n=>nl({type:"DISMISS_TOAST",toastId:n})}}function ie(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 nv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mg(...e){return t=>{let n=!1;const s=e.map(i=>{const a=nv(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():nv(e[i],null)}}}}function Ke(...e){return y.useCallback(mg(...e),e)}function MP(e,t){const n=y.createContext(t),s=a=>{const{children:o,...l}=a,c=y.useMemo(()=>l,Object.values(l));return r.jsx(n.Provider,{value:c,children:o})};s.displayName=e+"Provider";function i(a){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[s,i]}function qn(e,t=[]){let n=[];function s(a,o){const l=y.createContext(o),c=n.length;n=[...n,o];const u=m=>{var g;const{scope:h,children:p,...v}=m,f=((g=h==null?void 0:h[e])==null?void 0:g[c])||l,b=y.useMemo(()=>v,Object.values(v));return r.jsx(f.Provider,{value:b,children:p})};u.displayName=a+"Provider";function d(m,h){var f;const p=((f=h==null?void 0:h[e])==null?void 0:f[c])||l,v=y.useContext(p);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[u,d]}const i=()=>{const a=n.map(o=>y.createContext(o));return function(l){const c=(l==null?void 0:l[e])||a;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[s,DP(i,...t)]}function DP(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(i=>({useScope:i(),scopeName:i.scopeName}));
vendor: 9,944 bytes, line 48
48return function(a){const o=s.reduce((l,{useScope:c,scopeName:u})=>{const m=c(a)[`__scope${u}`];return{...l,...m}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Qa(e){const t=zP(e),n=y.forwardRef((s,i)=>{const{children:a,...o}=s,l=y.Children.toArray(a),c=l.find(WP);if(c){const u=c.props.children,d=l.map(m=>m===c?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...o,ref:i,children:y.isValidElement(u)?y.cloneElement(u,void 0,d):null})}return r.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var FP=Qa("Slot");function zP(e){const t=y.forwardRef((n,s)=>{const{children:i,...a}=n;if(y.isValidElement(i)){const o=BP(i),l=$P(a,i.props);return i.type!==y.Fragment&&(l.ref=s?mg(s,o):o),y.cloneElement(i,l)}return y.Children.count(i)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qj=Symbol("radix.slottable");function UP(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=qj,t}function WP(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qj}function $P(e,t){const n={...t};for(const s in t){const i=e[s],a=t[s];/^on[A-Z]/.test(s)?i&&a?n[s]=(...l)=>{a(...l),i(...l)}:i&&(n[s]=i):s==="style"?n[s]={...i,...a}:s==="className"&&(n[s]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function BP(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 uo(e){const t=e+"CollectionProvider",[n,s]=qn(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=f=>{const{scope:b,children:g}=f,x=Ie.useRef(null),w=Ie.useRef(new Map).current;return r.jsx(i,{scope:b,itemMap:w,collectionRef:x,children:g})};o.displayName=t;const l=e+"CollectionSlot",c=Qa(l),u=Ie.forwardRef((f,b)=>{const{scope:g,children:x}=f,w=a(l,g),j=Ke(b,w.collectionRef);return r.jsx(c,{ref:j,children:x})});u.displayName=l;const d=e+"CollectionItemSlot",m="data-radix-collection-item",h=Qa(d),p=Ie.forwardRef((f,b)=>{const{scope:g,children:x,...w}=f,j=Ie.useRef(null),k=Ke(b,j),N=a(d,g);return Ie.useEffect(()=>(N.itemMap.set(j,{ref:j,...w}),()=>void N.itemMap.delete(j))),r.jsx(h,{[m]:"",ref:k,children:x})});p.displayName=d;function v(f){const b=a(e+"CollectionConsumer",f);return Ie.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${m}]`));return Array.from(b.itemMap.values()).sort((N,T)=>w.indexOf(N.ref.current)-w.indexOf(T.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:u,ItemSlot:p},v,s]}var HP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],he=HP.reduce((e,t)=>{const n=Qa(`Primitive.${t}`),s=y.forwardRef((i,a)=>{const{asChild:o,...l}=i,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(c,{...l,ref:a})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function zu(e,t){e&&Hi.flushSync(()=>e.dispatchEvent(t))}function xt(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function VP(e,t=globalThis==null?void 0:globalThis.document){const n=xt(e);y.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 qP="DismissableLayer",Np="dismissableLayer.update",KP="dismissableLayer.pointerDownOutside",GP="dismissableLayer.focusOutside",rv,Kj=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mo=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:l,...c}=e,u=y.useContext(Kj),[d,m]=y.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=y.useState({}),v=Ke(t,T=>m(T)),f=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=f.indexOf(b),x=d?f.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,j=x>=g,k=ZP(T=>{const R=T.target,O=[...u.branches].some(S=>S.contains(R));!j||O||(i==null||i(T),o==null||o(T),T.defaultPrevented||l==null||l())},h),N=QP(T=>{const R=T.target;[...u.branches].some(S=>S.contains(R))||(a==null||a(T),o==null||o(T),T.defaultPrevented||l==null||l())},h);return VP(T=>{x===u.layers.size-1&&(s==null||s(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},h),y.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(rv=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),sv(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=rv)}},[d,h,n,u]),y.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),sv())},[d,u]),y.useEffect(()=>{const T=()=>p({});return document.addEventListener(Np,T),()=>document.removeEventListener(Np,T)},[]),r.jsx(he.div,{...c,ref:v,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:ie(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ie(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ie(e.onPointerDownCapture,k.onPointerDownCapture)})});mo.displayName=qP;var YP="DismissableLayerBranch",Gj=y.forwardRef((e,t)=>{const n=y.useContext(Kj),s=y.useRef(null),i=Ke(t,s);return y.useEffect(()=>{const a=s.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),r.jsx(he.div,{...e,ref:i})});Gj.displayName=YP;function ZP(e,t=globalThis==null?void 0:globalThis.document){const n=xt(e),s=y.useRef(!1),i=y.useRef(()=>{});return y.useEffect(()=>{const a=l=>{if(l.target&&!s.current){let c=function(){Yj(KP,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function QP(e,t=globalThis==null?void 0:globalThis.document){const n=xt(e),s=y.useRef(!1);return y.useEffect(()=>{const i=a=>{a.target&&!s.current&&Yj(GP,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function sv(){const e=new CustomEvent(Np);document.dispatchEvent(e)}function Yj(e,t,n,{discrete:s}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),s?zu(i,a):i.dispatchEvent(a)}var XP=mo,JP=Gj,pt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},e_="Portal",Ad=y.forwardRef((e,t)=>{var l;const{container:n,...s}=e,[i,a]=y.useState(!1);pt(()=>a(!0),[]);const o=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?xj.createPortal(r.jsx(he.div,{...s,ref:t}),o):null});Ad.displayName=e_;function t_(e,t){return y.useReducer((n,s)=>t[n][s]??n,e)}var Kn=e=>{const{present:t,children:n}=e,s=n_(t),i=typeof n=="function"?n({present:s.isPresent}):y.Children.only(n),a=Ke(s.ref,r_(i));return typeof n=="function"||s.isPresent?y.cloneElement(i,{ref:a}):null};Kn.displayName="Presence";function n_(e){const[t,n]=y.useState(),s=y.useRef({}),i=y.useRef(e),a=y.useRef("none"),o=e?"mounted":"unmounted",[l,c]=t_(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=Ac(s.current);a.current=l==="mounted"?u:"none"},[l]),pt(()=>{const u=s.current,d=i.current;if(d!==e){const h=a.current,p=Ac(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),pt(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,m=p=>{const f=Ac(s.current).includes(p.animationName);if(p.target===t&&f&&(c("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=p=>{p.target===t&&(a.current=Ac(s.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:y.useCallback(u=>{u&&(s.current=getComputedStyle(u)),n(u)},[])}}function Ac(e){return(e==null?void 0:e.animationName)||"none"}function r_(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 hr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[s,i]=s_({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:s,l=xt(n),c=y.useCallback(u=>{if(a){const m=typeof u=="function"?u(e):u;m!==e&&l(m)}else i(u)},[a,e,i,l]);return[o,c]}function s_({defaultProp:e,onChange:t}){const n=y.useState(e),[s]=n,i=y.useRef(s),a=xt(t);return y.useEffect(()=>{i.current!==s&&(a(s),i.current=s)},[s,i,a]),n}var i_="VisuallyHidden",ec=y.forwardRef((e,t)=>
48r.jsx(he.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ec.displayName=i_;var Zj=ec,hg="ToastProvider",[pg,a_,o_]=uo("Toast"),[Qj,o$]=qn("Toast",[o_]),[l_,Rd]=Qj(hg),Xj=e=>{const{__scopeToast:t,label:n="Notification",duration:s=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:o}=e,[l,c]=y.useState(null),[u,d]=y.useState(0),m=y.useRef(!1),h=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${hg}\`. Expected non-empty \`string\`.`),r.jsx(pg.Provider,{scope:t,children:r.jsx(l_,{scope:t,label:n,duration:s,swipeDirection:i,swipeThreshold:a,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:y.useCallback(()=>d(p=>p+1),[]),onToastRemove:y.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:h,children:o})})};Xj.displayName=hg;var Jj="ToastViewport",c_=["F8"],kp="toast.viewportPause",Cp="toast.viewportResume",e1=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:s=c_,label:i="Notifications ({hotkey})",...a}=e,o=Rd(Jj,n),l=a_(n),c=y.useRef(null),u=y.useRef(null),d=y.useRef(null),m=y.useRef(null),h=Ke(t,m,o.onViewportChange),p=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=o.toastCount>0;y.useEffect(()=>{const b=g=>{var w;s.length!==0&&s.every(j=>g[j]||g.code===j)&&((w=m.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[s]),y.useEffect(()=>{const b=c.current,g=m.current;if(v&&b&&g){const x=()=>{if(!o.isClosePausedRef.current){const N=new CustomEvent(kp);g.dispatchEvent(N),o.isClosePausedRef.current=!0}},w=()=>{if(o.isClosePausedRef.current){const N=new CustomEvent(Cp);g.dispatchEvent(N),o.isClosePausedRef.current=!1}},j=N=>{!b.contains(N.relatedTarget)&&w()},k=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",x),b.addEventListener("focusout",j),b.addEventListener("pointermove",x),b.addEventListener("pointerleave",k),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",x),b.removeEventListener("focusout",j),b.removeEventListener("pointermove",x),b.removeEventListener("pointerleave",k),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[v,o.isClosePausedRef]);const f=y.useCallback(({tabbingDirection:b})=>{const x=l().map(w=>{const j=w.ref.current,k=[j,...j_(j)];return b==="forwards"?k:k.reverse()});return(b==="forwards"?x.reverse():x).flat()},[l]);return y.useEffect(()=>{const b=m.current;if(b){const g=x=>{var k,N,T;const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const R=document.activeElement,O=x.shiftKey;if(x.target===b&&O){(k=u.current)==null||k.focus();return}const L=f({tabbingDirection:O?"backwards":"forwards"}),B=L.findIndex(z=>z===R);Wm(L.slice(B+1))?x.preventDefault():O?(N=u.current)==null||N.focus():(T=d.current)==null||T.focus()}};return b.addEventListener("keydown",g),()=>b.removeEventListener("keydown",g)}},[l,f]),r.jsxs(JP,{ref:c,role:"region","aria-label":i.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&r.jsx(Sp,{ref:u,onFocusFromOutsideViewport:()=>{const b=f({tabbingDirection:"forwards"});Wm(b)}}),r.jsx(pg.Slot,{scope:n,children:r.jsx(he.ol,{tabIndex:-1,...a,ref:h})}),v&&r.jsx(Sp,{ref:d,onFocusFromOutsideViewport:()=>{const b=f({tabbingDirection:"backwards"});Wm(b)}})]})});e1.displayName=Jj;var t1="ToastFocusProxy",Sp=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:s,...i}=e,a=Rd(t1,n);return r.jsx(ec,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const l=o.relatedTarget;!((u=a.viewport)!=null&&u.contains(l))&&s()}})});Sp.displayName=t1;var Id="Toast",u_="toast.swipeStart",d_="toast.swipeMove",m_="toast.swipeCancel",h_="toast.swipeEnd",n1=y.forwardRef((e,t)=>{const{forceMount:n,open:s,defaultOpen:i,onOpenChange:a,...o}=e,[l=!0,c]=hr({prop:s,defaultProp:i,onChange:a});return r.jsx(Kn,{present:n||l,children:r.jsx(g_,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:xt(e.onPause),onResume:xt(e.onResume),onSwipeStart:ie(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ie(e.onSwipeMove,u=>{const{x:d,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:ie(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ie(e.onSwipeEnd,u=>{const{x:d,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),c(!1)})})})});
48n1.displayName=Id;var[p_,f_]=Qj(Id,{onClose(){}}),g_=y.forwardRef((e,t)=>{const{__scopeToast:n,type:s="foreground",duration:i,open:a,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:m,onSwipeCancel:h,onSwipeEnd:p,...v}=e,f=Rd(Id,n),[b,g]=y.useState(null),x=Ke(t,z=>g(z)),w=y.useRef(null),j=y.useRef(null),k=i||f.duration,N=y.useRef(0),T=y.useRef(k),R=y.useRef(0),{onToastAdd:O,onToastRemove:S}=f,F=xt(()=>{var G;(b==null?void 0:b.contains(document.activeElement))&&((G=f.viewport)==null||G.focus()),o()}),L=y.useCallback(z=>{!z||z===1/0||(window.clearTimeout(R.current),N.current=new Date().getTime(),R.current=window.setTimeout(F,z))},[F]);y.useEffect(()=>{const z=f.viewport;if(z){const G=()=>{L(T.current),u==null||u()},Z=()=>{const ee=new Date().getTime()-N.current;T.current=T.current-ee,window.clearTimeout(R.current),c==null||c()};return z.addEventListener(kp,Z),z.addEventListener(Cp,G),()=>{z.removeEventListener(kp,Z),z.removeEventListener(Cp,G)}}},[f.viewport,k,c,u,L]),y.useEffect(()=>{a&&!f.isClosePausedRef.current&&L(k)},[a,k,f.isClosePausedRef,L]),y.useEffect(()=>(O(),()=>S()),[O,S]);const B=y.useMemo(()=>b?c1(b):null,[b]);return f.viewport?r.jsxs(r.Fragment,{children:[B&&r.jsx(x_,{__scopeToast:n,role:"status","aria-live":s==="foreground"?"assertive":"polite","aria-atomic":!0,children:B}),r.jsx(p_,{scope:n,onClose:F,children:Hi.createPortal(r.jsx(pg.ItemSlot,{scope:n,children:r.jsx(XP,{asChild:!0,onEscapeKeyDown:ie(l,()=>{f.isFocusedToastEscapeKeyDownRef.current||F(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(he.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":f.swipeDirection,...v,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ie(e.onKeyDown,z=>{z.key==="Escape"&&(l==null||l(z.nativeEvent),z.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:ie(e.onPointerDown,z=>{z.button===0&&(w.current={x:z.clientX,y:z.clientY})}),onPointerMove:ie(e.onPointerMove,z=>{if(!w.current)return;const G=z.clientX-w.current.x,Z=z.clientY-w.current.y,ee=!!j.current,D=["left","right"].includes(f.swipeDirection),q=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,C=D?q(0,G):0,de=D?0:q(0,Z),Ee=z.pointerType==="touch"?10:2,E={x:C,y:de},Be={originalEvent:z,delta:E};ee?(j.current=E,Rc(d_,m,Be,{discrete:!1})):iv(E,f.swipeDirection,Ee)?(j.current=E,Rc(u_,d,Be,{discrete:!1}),z.target.setPointerCapture(z.pointerId)):(Math.abs(G)>Ee||Math.abs(Z)>Ee)&&(w.current=null)}),onPointerUp:ie(e.onPointerUp,z=>{const G=j.current,Z=z.target;if(Z.hasPointerCapture(z.pointerId)&&Z.releasePointerCapture(z.pointerId),j.current=null,w.current=null,G){const ee=z.currentTarget,D={originalEvent:z,delta:G};iv(G,f.swipeDirection,f.swipeThreshold)?Rc(h_,p,D,{discrete:!0}):Rc(m_,h,D,{discrete:!0}),ee.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),x_=e=>{const{__scopeToast:t,children:n,...s}=e,i=Rd(Id,t),[a,o]=y.useState(!1),[l,c]=y.useState(!1);return w_(()=>o(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:r.jsx(Ad,{asChild:!0,children:r.jsx(ec,{...s,children:a&&r.jsxs(r.Fragment,{children:[i.label," ",n]})})})},y_="ToastTitle",r1=y.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(he.div,{...s,ref:t})});r1.displayName=y_;var v_="ToastDescription",s1=y.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(he.div,{...s,ref:t})});s1.displayName=v_;var i1="ToastAction",a1=y.forwardRef((e,t)=>{const{altText:n,...s}=e;return n.trim()?r.jsx(l1,{altText:n,asChild:!0,children:r.jsx(fg,{...s,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${i1}\`. Expected non-empty \`string\`.`),null)});a1.displayName=i1;var o1="ToastClose",fg=y.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e,i=f_(o1,n);return r.jsx(l1,{asChild:!0,children:r.jsx(he.button,{type:"button",...s,ref:t,onClick:ie(e.onClick,i.onClose)})})});fg.displayName=o1;var l1=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:s,...i}=e;return r.jsx(he.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...i,ref:t})});function c1(e){const t=[];
vendor: 7,405 bytes, lines 48-108
48return Array.from(e.childNodes).forEach(s=>{if(s.nodeType===s.TEXT_NODE&&s.textContent&&t.push(s.textContent),b_(s)){const i=s.ariaHidden||s.hidden||s.style.display==="none",a=s.dataset.radixToastAnnounceExclude==="";if(!i)if(a){const o=s.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...c1(s))}}),t}function Rc(e,t,n,{discrete:s}){const i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),s?zu(i,a):i.dispatchEvent(a)}var iv=(e,t,n=0)=>{const s=Math.abs(e.x),i=Math.abs(e.y),a=s>i;return t==="left"||t==="right"?a&&s>n:!a&&i>n};function w_(e=()=>{}){const t=xt(e);pt(()=>{let n=0,s=0;return n=window.requestAnimationFrame(()=>s=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(s)}},[t])}function b_(e){return e.nodeType===e.ELEMENT_NODE}function j_(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 Wm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var N_=Xj,u1=e1,d1=n1,m1=r1,h1=s1,p1=a1,f1=fg;function g1(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=g1(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function x1(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=g1(e))&&(s&&(s+=" "),s+=t);return s}const av=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ov=x1,ho=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return ov(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(u=>{const d=n==null?void 0:n[u],m=a==null?void 0:a[u];if(d===null)return null;const h=av(d)||av(m);return i[u][h]}),l=n&&Object.entries(n).reduce((u,d)=>{let[m,h]=d;return h===void 0||(u[m]=h),u},{}),c=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,d)=>{let{class:m,className:h,...p}=d;return Object.entries(p).every(v=>{let[f,b]=v;return Array.isArray(b)?b.includes({...a,...l}[f]):{...a,...l}[f]===b})?[...u,m,h]:u},[]);return ov(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
49 * @license lucide-react v0.453.0 - ISC
50 *
51 * This source code is licensed under the ISC license.
52 * See the LICENSE file in the root directory of this source tree.
53 */const k_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),y1=(...e)=>e.filter((t,n,s)=>!!t&&s.indexOf(t)===n).join(" ");/**
54 * @license lucide-react v0.453.0 - ISC
55 *
56 * This source code is licensed under the ISC license.
57 * See the LICENSE file in the root directory of this source tree.
58 */var C_={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"};/**
59 * @license lucide-react v0.453.0 - ISC
60 *
61 * This source code is licensed under the ISC license.
62 * See the LICENSE file in the root directory of this source tree.
63 */const S_=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:i="",children:a,iconNode:o,...l},c)=>y.createElement("svg",{ref:c,...C_,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:y1("lucide",i),...l},[...o.map(([u,d])=>y.createElement(u,d)),...Array.isArray(a)?a:[a]]));/**
64 * @license lucide-react v0.453.0 - ISC
65 *
66 * This source code is licensed under the ISC license.
67 * See the LICENSE file in the root directory of this source tree.
68 */const J=(e,t)=>{const n=y.forwardRef(({className:s,...i},a)=>y.createElement(S_,{ref:a,iconNode:t,className:y1(`lucide-${k_(e)}`,s),...i}));return n.displayName=`${e}`,n};/**
69 * @license lucide-react v0.453.0 - ISC
70 *
71 * This source code is licensed under the ISC license.
72 * See the LICENSE file in the root directory of this source tree.
73 */const tc=J("Accessibility",[["circle",{cx:"16",cy:"4",r:"1",key:"1grugj"}],["path",{d:"m18 19 1-7-6 1",key:"r0i19z"}],["path",{d:"m5 8 3-3 5.5 3-2.36 3.5",key:"9ptxx2"}],["path",{d:"M4.24 14.5a5 5 0 0 0 6.88 6",key:"10kmtu"}],["path",{d:"M13.76 17.5a5 5 0 0 0-6.88-6",key:"2qq6rc"}]]);/**
74 * @license lucide-react v0.453.0 - ISC
75 *
76 * This source code is licensed under the ISC license.
77 * See the LICENSE file in the root directory of this source tree.
78 */const Ep=J("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
79 * @license lucide-react v0.453.0 - ISC
80 *
81 * This source code is licensed under the ISC license.
82 * See the LICENSE file in the root directory of this source tree.
83 */const st=J("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
84 * @license lucide-react v0.453.0 - ISC
85 *
86 * This source code is licensed under the ISC license.
87 * See the LICENSE file in the root directory of this source tree.
88 */const lv=J("Award",[["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"}]]);/**
89 * @license lucide-react v0.453.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const Vn=J("BookOpen",[["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"}]]);/**
94 * @license lucide-react v0.453.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */const Ld=J("Brain",[["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:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["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:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
99 * @license lucide-react v0.453.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const _n=J("Briefcase",[["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"}]]);/**
104 * @license lucide-react v0.453.0 - ISC
105 *
106 * This source code is licensed under the ISC license.
107 * See the LICENSE file in the root directory of this source tree.
108 */const Tp=J("Building2",[["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"}
108],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
109 * @license lucide-react v0.453.0 - ISC
110 *
111 * This source code is licensed under the ISC license.
112 * See the LICENSE file in the root directory of this source tree.
113 */const Wn=J("Building",[["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"}]]);/**
114 * @license lucide-react v0.453.0 - ISC
115 *
116 * This source code is licensed under the ISC license.
117 * See the LICENSE file in the root directory of this source tree.
118 */const E_=J("Calendar",[["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"}]]);/**
119 * @license lucide-react v0.453.0 - ISC
120 *
121 * This source code is licensed under the ISC license.
122 * See the LICENSE file in the root directory of this source tree.
123 */const T_=J("ChartColumn",[["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"}]]);/**
124 * @license lucide-react v0.453.0 - ISC
125 *
126 * This source code is licensed under the ISC license.
127 * See the LICENSE file in the root directory of this source tree.
128 */const P_=J("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
129 * @license lucide-react v0.453.0 - ISC
130 *
131 * This source code is licensed under the ISC license.
132 * See the LICENSE file in the root directory of this source tree.
133 */const nc=J("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
134 * @license lucide-react v0.453.0 - ISC
135 *
136 * This source code is licensed under the ISC license.
137 * See the LICENSE file in the root directory of this source tree.
138 */const __=J("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
139 * @license lucide-react v0.453.0 - ISC
140 *
141 * This source code is licensed under the ISC license.
142 * See the LICENSE file in the root directory of this source tree.
143 */const A_=J("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
144 * @license lucide-react v0.453.0 - ISC
145 *
146 * This source code is licensed under the ISC license.
147 * See the LICENSE file in the root directory of this source tree.
148 */const R_=J("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
149 * @license lucide-react v0.453.0 - ISC
150 *
151 * This source code is licensed under the ISC license.
152 * See the LICENSE file in the root directory of this source tree.
153 */const gg=J("CircleAlert",[["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"}]]);/**
154 * @license lucide-react v0.453.0 - ISC
155 *
156 * This source code is licensed under the ISC license.
157 * See the LICENSE file in the root directory of this source tree.
158 */const ye=J("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
159 * @license lucide-react v0.453.0 - ISC
160 *
161 * This source code is licensed under the ISC license.
162 * See the LICENSE file in the root directory of this source tree.
163 */const v1=J("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
164 * @license lucide-react v0.453.0 - ISC
165 *
166 * This source code is licensed under the ISC license.
167 * See the LICENSE file in the root directory of this source tree.
168 */const Bt=J("CircleX",[["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"}]]);/**
169 * @license lucide-react v0.453.0 - ISC
170 *
171 * This source code is licensed under the ISC license.
172 * See the LICENSE file in the root directory of this source tree.
173 */const I_=J("ClipboardList",[["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"}]]);/**
174 * @license lucide-react v0.453.0 - ISC
175 *
176 * This source code is licensed under the ISC license.
177 * See the LICENSE file in the root directory of this source tree.
178 */const Xa=J("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
179 * @license lucide-react v0.453.0 - ISC
180 *
181 * This source code is licensed under the ISC license.
182 * See the LICENSE file in the root directory of this source tree.
183 */const Pp=J("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/**
184 * @license lucide-react v0.453.0 - ISC
185 *
186 * This source code is licensed under the ISC license.
187 * See the LICENSE file in the root directory of this source tree.
188 */const w1=J("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/**
189 * @license lucide-react v0.453.0 - ISC
190 *
191 * This source code is licensed under the ISC license.
192 * See the LICENSE file in the root directory of this source tree.
193 */const xg=J("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
194 * @license lucide-react v0.453.0 - ISC
195 *
196 * This source code is licensed under the ISC license.
197 * See the LICENSE file in the root directory of this source tree.
198 */const b1=J("Dog",[["path",{d:"M11.25 16.25h1.5L12 17z",key:"w7jh35"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309",key:"u7s9ue"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5",key:"v8hric"}]]);/**
199 * @license lucide-react v0.453.0 - ISC
200 *
201 * This source code is licensed under the ISC license.
202 * See the LICENSE file in the root directory of this source tree.
203 */const L_=J("Download",[["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"}]]);/**
204 * @license lucide-react v0.453.0 - ISC
205 *
206 * This source code is licensed under the ISC license.
207 * See the LICENSE file in the root directory of this source tree.
208 */const yg=J("ExternalLink",[["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"}]]);/**
209 * @license lucide-react v0.453.0 - ISC
210 *
211 * This source code is licensed under the ISC license.
212 * See the LICENSE file in the root directory of this source tree.
213 */const O_=J("Eye",[["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"}]]);/**
214 * @license lucide-react v0.453.0 - ISC
215 *
216 * This source code is licensed under the ISC license.
217 * See the LICENSE file in the root directory of this source tree.
218 */const M_=J("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/**
219 * @license lucide-react v0.453.0 - ISC
220 *
221 * This source code is licensed under the ISC license.
222 * See the LICENSE file in the root directory of this source tree.
223 */const Ge=J("FileText",[["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"}]]);/**
224 * @license lucide-react v0.453.0 - ISC
225 *
226 * This source code is licensed under the ISC license.
227 * See the LICENSE file in the root directory of this source tree.
228 */const D_=J("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
229 * @license lucide-react v0.453.0 - ISC
230 *
231 * This source code is licensed under the ISC license.
232 * See the LICENSE file in the root directory of this source tree.
233 */const cs=J("Gavel",[["path",{d:"m14.5 12.5-8 8a2.119 2.119 0 1 1-3-3l8-8",key:"15492f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m9 7 8 8",key:"5jnvq1"}],["path",{d:"m21 11-8-8",key:"z4y7zo"}]]);/**
234 * @license lucide-react v0.453.0 - ISC
235 *
236 * This source code is licensed under the ISC license.
237 * See the LICENSE file in the root directory of this source tree.
238 */const j1=J("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
239 * @license lucide-react v0.453.0 - ISC
240 *
241 * This source code is licensed under the ISC license.
242 * See the LICENSE file in the root directory of this source tree.
243 */const po=J("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
244 * @license lucide-react v0.453.0 - ISC
245 *
246 * This source code is licensed under the ISC license.
247 * See the LICENSE file in the root directory of this source tree.
248 */const F_=J("HandHelping",[["path",{d:"M11 12h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 14",key:"1j4xps"}],["path",{d:"m7 18 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"uospg8"}],["path",{d:"m2 13 6 6",key:"16e5sb"}]]);/**
249 * @license lucide-react v0.453.0 - ISC
250 *
251 * This source code is licensed under the ISC license.
252 * See the LICENSE file in the root directory of this source tree.
253 */const Vi=J("Handshake",[["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"}]]);/**
254 * @license lucide-react v0.453.0 - ISC
255 *
256 * This source code is licensed under the ISC license.
257 * See the LICENSE file in the root directory of this source tree.
258 */const Rt=J("Heart",[["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"}]]);/**
259 * @license lucide-react v0.453.0 - ISC
260 *
261 * This source code is licensed under the ISC license.
262 * See the LICENSE file in the root directory of this source tree.
263 */const Mt=J("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
264 * @license lucide-react v0.453.0 - ISC
265 *
266 * This source code is licensed under the ISC license.
267 * See the LICENSE file in the root directory of this source tree.
268 */const z_=J("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]]);/**
269 * @license lucide-react v0.453.0 - ISC
270 *
271 * This source code is licensed under the ISC license.
272 * See the LICENSE file in the root directory of this source tree.
273 */const Sl=J("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
274 * @license lucide-react v0.453.0 - ISC
275 *
276 * This source code is licensed under the ISC license.
277 * See the LICENSE file in the root directory of this source tree.
278 */const U_=J("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
279 * @license lucide-react v0.453.0 - ISC
280 *
281 * This source code is licensed under the ISC license.
282 * See the LICENSE file in the root directory of this source tree.
283 */const N1=J("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/**
284 * @license lucide-react v0.453.0 - ISC
285 *
286 * This source code is licensed under the ISC license.
287 * See the LICENSE file in the root directory of this source tree.
288 */const W_=J("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
289 * @license lucide-react v0.453.0 - ISC
290 *
291 * This source code is licensed under the ISC license.
292 * See the LICENSE file in the root directory of this source tree.
293 */const vg=J("Lightbulb",[["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"}]]);/**
294 * @license lucide-react v0.453.0 - ISC
295 *
296 * This source code is licensed under the ISC license.
297 * See the LICENSE file in the root directory of this source tree.
298 */const $_=J("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
299 * @license lucide-react v0.453.0 - ISC
300 *
301 * This source code is licensed under the ISC license.
302 * See the LICENSE file in the root directory of this source tree.
303 */const wg=J("Lock",[["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"}]]);/**
304 * @license lucide-react v0.453.0 - ISC
305 *
306 * This source code is licensed under the ISC license.
307 * See the LICENSE file in the root directory of this source tree.
308 */const Uu=J("Mail",[["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"}]]);/**
309 * @license lucide-react v0.453.0 - ISC
310 *
311 * This source code is licensed under the ISC license.
312 * See the LICENSE file in the root directory of this source tree.
313 */const bg=J("MapPin",[["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"}]]);/**
314 * @license lucide-react v0.453.0 - ISC
315 *
316 * This source code is licensed under the ISC license.
317 * See the LICENSE file in the root directory of this source tree.
318 */const B_=J("Menu",[["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"}]]);/**
319 * @license lucide-react v0.453.0 - ISC
320 *
321 * This source code is licensed under the ISC license.
322 * See the LICENSE file in the root directory of this source tree.
323 */const An=J("MessageSquare",[["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"}]]);/**
324 * @license lucide-react v0.453.0 - ISC
325 *
326 * This source code is licensed under the ISC license.
327 * See the LICENSE file in the root directory of this source tree.
328 */const H_=J("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
329 * @license lucide-react v0.453.0 - ISC
330 *
331 * This source code is licensed under the ISC license.
332 * See the LICENSE file in the root directory of this source tree.
333 */const Dr=J("Phone",[["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"}]]);/**
334 * @license lucide-react v0.453.0 - ISC
335 *
336 * This source code is licensed under the ISC license.
337 * See the LICENSE file in the root directory of this source tree.
338 */const V_=J("PiggyBank",[["path",{d:"M19 5c-1.5 0-2.8 1.4-3 2-3.5-1.5-11-.3-11 5 0 1.8 0 3 2 4.5V20h4v-2h3v2h4v-4c1-.5 1.7-1 2-2h2v-4h-2c0-1-.5-1.5-1-2V5z",key:"1ivx2i"}],["path",{d:"M2 9v1c0 1.1.9 2 2 2h1",key:"nm575m"}],["path",{d:"M16 11h.01",key:"xkw8gn"}]]);/**
339 * @license lucide-react v0.453.0 - ISC
340 *
341 * This source code is licensed under the ISC license.
342 * See the LICENSE file in the root directory of this source tree.
343 */const k1=J("Plane",[["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-.1-.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"}]]);/**
344 * @license lucide-react v0.453.0 - ISC
345 *
346 * This source code is licensed under the ISC license.
347 * See the LICENSE file in the root directory of this source tree.
348 */const q_=J("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
349 * @license lucide-react v0.453.0 - ISC
350 *
351 * This source code is licensed under the ISC license.
352 * See the LICENSE file in the root directory of this source tree.
353 */const cr=J("PoundSterling",[["path",{d:"M18 7c0-5.333-8-5.333-8 0",key:"1prm2n"}],["path",{d:"M10 7v14",key:"18tmcs"}],["path",{d:"M6 21h12",key:"4dkmi1"}],["path",{d:"M6 13h10",key:"ybwr4a"}]]);/**
354 * @license lucide-react v0.453.0 - ISC
355 *
356 * This source code is licensed under the ISC license.
357 * See the LICENSE file in the root directory of this source tree.
358 */const K_=J("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
359 * @license lucide-react v0.453.0 - ISC
360 *
361 * This source code is licensed under the ISC license.
362 * See the LICENSE file in the root directory of this source tree.
363 */const qe=J("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}
363],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
364 * @license lucide-react v0.453.0 - ISC
365 *
366 * This source code is licensed under the ISC license.
367 * See the LICENSE file in the root directory of this source tree.
368 */const jg=J("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
369 * @license lucide-react v0.453.0 - ISC
370 *
371 * This source code is licensed under the ISC license.
372 * See the LICENSE file in the root directory of this source tree.
373 */const Ng=J("Send",[["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"}]]);/**
374 * @license lucide-react v0.453.0 - ISC
375 *
376 * This source code is licensed under the ISC license.
377 * See the LICENSE file in the root directory of this source tree.
378 */const kg=J("Settings",[["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"}]]);/**
379 * @license lucide-react v0.453.0 - ISC
380 *
381 * This source code is licensed under the ISC license.
382 * See the LICENSE file in the root directory of this source tree.
383 */const Ze=J("Shield",[["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"}]]);/**
384 * @license lucide-react v0.453.0 - ISC
385 *
386 * This source code is licensed under the ISC license.
387 * See the LICENSE file in the root directory of this source tree.
388 */const C1=J("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
389 * @license lucide-react v0.453.0 - ISC
390 *
391 * This source code is licensed under the ISC license.
392 * See the LICENSE file in the root directory of this source tree.
393 */const G_=J("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
394 * @license lucide-react v0.453.0 - ISC
395 *
396 * This source code is licensed under the ISC license.
397 * See the LICENSE file in the root directory of this source tree.
398 */const Y_=J("Tag",[["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"}]]);/**
399 * @license lucide-react v0.453.0 - ISC
400 *
401 * This source code is licensed under the ISC license.
402 * See the LICENSE file in the root directory of this source tree.
403 */const Od=J("Target",[["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"}]]);/**
404 * @license lucide-react v0.453.0 - ISC
405 *
406 * This source code is licensed under the ISC license.
407 * See the LICENSE file in the root directory of this source tree.
408 */const Z_=J("Theater",[["path",{d:"M2 10s3-3 3-8",key:"3xiif0"}],["path",{d:"M22 10s-3-3-3-8",key:"ioaa5q"}],["path",{d:"M10 2c0 4.4-3.6 8-8 8",key:"16fkpi"}],["path",{d:"M14 2c0 4.4 3.6 8 8 8",key:"b9eulq"}],["path",{d:"M2 10s2 2 2 5",key:"1au1lb"}],["path",{d:"M22 10s-2 2-2 5",key:"qi2y5e"}],["path",{d:"M8 15h8",key:"45n4r"}],["path",{d:"M2 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1",key:"1vsc2m"}],["path",{d:"M14 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1",key:"hrha4u"}]]);/**
409 * @license lucide-react v0.453.0 - ISC
410 *
411 * This source code is licensed under the ISC license.
412 * See the LICENSE file in the root directory of this source tree.
413 */const S1=J("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 9,703 bytes, lines 413-443
413],["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"}]]);/**
414 * @license lucide-react v0.453.0 - ISC
415 *
416 * This source code is licensed under the ISC license.
417 * See the LICENSE file in the root directory of this source tree.
418 */const E1=J("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
419 * @license lucide-react v0.453.0 - ISC
420 *
421 * This source code is licensed under the ISC license.
422 * See the LICENSE file in the root directory of this source tree.
423 */const T1=J("TrendingUp",[["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"}]]);/**
424 * @license lucide-react v0.453.0 - ISC
425 *
426 * This source code is licensed under the ISC license.
427 * See the LICENSE file in the root directory of this source tree.
428 */const vt=J("TriangleAlert",[["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"}]]);/**
429 * @license lucide-react v0.453.0 - ISC
430 *
431 * This source code is licensed under the ISC license.
432 * See the LICENSE file in the root directory of this source tree.
433 */const P1=J("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
434 * @license lucide-react v0.453.0 - ISC
435 *
436 * This source code is licensed under the ISC license.
437 * See the LICENSE file in the root directory of this source tree.
438 */const _e=J("Users",[["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"}]]);/**
439 * @license lucide-react v0.453.0 - ISC
440 *
441 * This source code is licensed under the ISC license.
442 * See the LICENSE file in the root directory of this source tree.
443 */const Md=J("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Cg="-",Q_=e=>{const t=J_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const l=o.split(Cg);return l[0]===""&&l.length!==1&&l.shift(),_1(l,t)||X_(o)},getConflictingClassGroupIds:(o,l)=>{const c=n[o]||[];return l&&s[o]?[...c,...s[o]]:c}}},_1=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),i=s?_1(e.slice(1),s):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(Cg);return(o=t.validators.find(({validator:l})=>l(a)))==null?void 0:o.classGroupId},cv=/^\[(.+)\]$/,X_=e=>{if(cv.test(e)){const t=cv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},J_=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return tA(Object.entries(e.classGroups),n).forEach(([a,o])=>{_p(o,s,a,t)}),s},_p=(e,t,n,s)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:uv(t,i);a.classGroupId=n;return}if(typeof i=="function"){if(eA(i)){_p(i(s),t,n,s);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([a,o])=>{_p(o,uv(t,a),n,s)})})},uv=(e,t)=>{let n=e;return t.split(Cg).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},eA=e=>e.isThemeGetter,tA=(e,t)=>t?e.map(([n,s])=>{const i=s.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,l])=>[t+o,l])):a);return[n,i]}):e,nA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const i=(a,o)=>{n.set(a,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=s.get(a))!==void 0)return i(a,o),o},set(a,o){n.has(a)?n.set(a,o):i(a,o)}}},A1="!",rA=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,i=t[0],a=t.length,o=l=>{const c=[];let u=0,d=0,m;for(let b=0;b<l.length;b++){let g=l[b];if(u===0){if(g===i&&(s||l.slice(b,b+a)===t)){c.push(l.slice(d,b)),d=b+a;continue}if(g==="/"){m=b;continue}}g==="["?u++:g==="]"&&u--}const h=c.length===0?l:l.substring(d),p=h.startsWith(A1),v=p?h.substring(1):h,f=m&&m>d?m-d:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:f}};return n?l=>n({className:l,parseClassName:o}):o},sA=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},iA=e=>({cache:nA(e.cacheSize),parseClassName:rA(e),...Q_(e)}),aA=/\s+/,oA=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(aA);let l="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:p}=n(u);let v=!!p,f=s(v?h.substring(0,p):h);if(!f){if(!v){l=u+(l.length>0?" "+l:l);continue}if(f=s(h),!f){l=u+(l.length>0?" "+l:l);continue}v=!1}const b=sA(d).join(":"),g=m?b+A1:b,x=g+f;if(a.includes(x))continue;a.push(x);const w=i(f,v);for(let j=0;j<w.length;++j){const k=w[j];a.push(g+k)}l=u+(l.length>0?" "+l:l)}return l};function lA(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=R1(t))&&(s&&(s+=" "),s+=n);return s}const R1=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=R1(e[s]))&&(n&&(n+=" "),n+=t);return n};function cA(e,...t){let n,s,i,a=o;function o(c){const u=t.reduce((d,m)=>m(d),e());return n=iA(u),s=n.cache.get,i=n.cache.set,a=l,l(c)}function l(c){const u=s(c);if(u)return u;const d=oA(c,n);return i(c,d),d}return function(){return a(lA.apply(null,arguments))}}const it=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},I1=/^\[(?:([a-z-]+):)?(.+)\]$/i,uA=/^\d+\/\d+$/,dA=new Set(["px","full","screen"]),mA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hA=/\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$/,pA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Br=e=>Ca(e)||dA.has(e)||uA.test(e),ps=e=>fo(e,"length",kA),Ca=e=>!!e&&!Number.isNaN(Number(e)),$m=e=>fo(e,"number",Ca),Ao=e=>!!e&&Number.isInteger(Number(e)),xA=e=>e.endsWith("%")&&Ca(e.slice(0,-1)),Te=e=>I1.test(e),fs=e=>mA.test(e),yA=new Set(["length","size","percentage"]),vA=e=>fo(e,yA,L1),wA=e=>fo(e,"position",L1),bA=new Set(["image","url"]),jA=e=>fo(e,bA,SA),NA=e=>fo(e,"",CA),Ro=()=>!0,fo=(e,t,n)=>{const s=I1.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},kA=e=>hA.test(e)&&!pA.test(e),L1=()=>!1,CA=e=>fA.test(e),SA=e=>gA.test(e),EA=()=>{const e=it("colors"),t=it("spacing"),n=it("blur"),s=it("brightness"),i=it("borderColor"),a=it("borderRadius"),o=it("borderSpacing"),l=it("borderWidth"),c=it("contrast"),u=it("grayscale"),d=it("hueRotate"),m=it("invert"),h=it("gap"),p=it("gradientColorStops"),v=it("gradientColorStopPositions"),f=it("inset"),b=it("margin"),g=it("opacity"),x=it("padding"),w=it("saturate"),j=it("scale"),k=it("sepia"),N=it("skew"),T=it("space"),R=it("translate"),O=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",Te,t],L=()=>[Te,t],B=()=>["",Br,ps],z=()=>["auto",Ca,Te],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",Te],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],de=()=>[Ca,Te];return{cacheSize:500,separator:":",theme:{colors:[Ro],spacing:[Br,ps],blur:["none","",fs,Te],brightness:de(),borderColor:[e],borderRadius:["none","","full",fs,Te],borderSpacing:L(),borderWidth:B(),contrast:de(),grayscale:q(),hueRotate:de(),invert:q(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[xA,ps],inset:F(),margin:F(),opacity:de(),padding:L(),saturate:de(),scale:de(),sepia:q(),skew:de(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[fs]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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"],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:[...G(),Te]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}
vendor: 9,951 bytes, line 443
443],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ao,Te]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Te]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",Ao,Te]}],"grid-cols":[{"grid-cols":[Ro]}],"col-start-end":[{col:["auto",{span:["full",Ao,Te]},Te]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[Ro]}],"row-start-end":[{row:["auto",{span:[Ao,Te]},Te]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Te]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Te,t]}],"min-w":[{"min-w":[Te,t,"min","max","fit"]}],"max-w":[{"max-w":[Te,t,"none","full","min","max","fit","prose",{screen:[fs]},fs]}],h:[{h:[Te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fs,ps]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$m]}],"font-family":[{font:[Ro]}],"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:["tighter","tight","normal","wide","wider","widest",Te]}],"line-clamp":[{"line-clamp":["none",Ca,$m]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Br,Te]}],"list-image":[{"list-image":["none",Te]}],"list-style-type":[{list:["none","disc","decimal",Te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Br,ps]}],"underline-offset":[{"underline-offset":["auto",Br,Te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),wA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",vA]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jA]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:Z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[Br,Te]}],"outline-w":[{outline:[Br,ps]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Br,ps]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fs,NA]}],"shadow-color":[{shadow:[Ro]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ee()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",fs,Te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[m]}],saturate:[{saturate:[w]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Te]}],duration:[{duration:de()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:de()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[Ao,Te]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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"]}
vendor: 4,647 bytes, line 443
443],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",Te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Br,ps,$m]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},TA=cA(EA);function xe(...e){return TA(x1(e))}const PA=N_,O1=y.forwardRef(({className:e,...t},n)=>r.jsx(u1,{ref:n,className:xe("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),...t}));O1.displayName=u1.displayName;const _A=ho("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"}}),M1=y.forwardRef(({className:e,variant:t,...n},s)=>r.jsx(d1,{ref:s,className:xe(_A({variant:t}),e),...n}));M1.displayName=d1.displayName;const AA=y.forwardRef(({className:e,...t},n)=>r.jsx(p1,{ref:n,className:xe("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}));AA.displayName=p1.displayName;const D1=y.forwardRef(({className:e,...t},n)=>r.jsx(f1,{ref:n,className:xe("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,168 bytes, line 443
443/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(Md,{className:"h-4 w-4"})}));D1.displayName=f1.displayName;const F1=y.forwardRef(({className:e,...t},n)=>r.jsx(m1,{ref:n,className:xe("text-sm font-semibold",e),...t}));F1.displayName=m1.displayName;const z1=y.forwardRef(({className:e,...t},n)=>r.jsx(h1,{ref:n,className:xe("text-sm opacity-90",e),...t}));z1.displayName=h1.displayName;function RA(){const{toasts:e}=_d();return r.jsxs(PA,{children:[e.map(function({id:t,title:n,description:s,action:i,...a}){return r.jsxs(M1,{...a,children:[r.jsxs("div",{className:"grid gap-1",children:[n&&r.jsx(F1,{children:n}),s&&r.jsx(z1,{children:s})]}),i,r.jsx(D1,{})]},t)}),r.jsx(O1,{})]})}var IA=pb[" useId ".trim().toString()]||(()=>{}),LA=0;function $n(e){const[t,n]=y.useState(IA());return pt(()=>{e||n(s=>s??String(LA++))},[e]),e||(t?`radix-${t}`:"")}const OA=["top","right","bottom","left"],qs=Math.min,bn=Math.max,Wu=Math.round,Ic=Math.floor,Rr=e=>({x:e,y:e}),MA={left:"right",right:"left",bottom:"top",top:"bottom"},DA={start:"end",end:"start"};function Ap(e,t,n){return bn(e,qs(t,n))}function is(e,t){return typeof e=="function"?e(t):e}function as(e){return e.split("-")[0]}function go(e){return e.split("-")[1]}function Sg(e){return e==="x"?"y":"x"}function Eg(e){return e==="y"?"height":"width"}function Ks(e){return["top","bottom"].includes(as(e))?"y":"x"}function Tg(e){return Sg(Ks(e))}function FA(e,t,n){n===void 0&&(n=!1);const s=go(e),i=Tg(e),a=Eg(i);let o=i==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=$u(o)),[o,$u(o)]}function zA(e){const t=$u(e);return[Rp(e),t,Rp(t)]}function Rp(e){return e.replace(/start|end/g,t=>DA[t])}function UA(e,t,n){const s=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:s:t?s:i;case"left":case"right":return t?a:o;default:return[]}}function WA(e,t,n,s){const i=go(e);let a=UA(as(e),n==="start",s);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Rp)))),a}function $u(e){return e.replace(/left|right|bottom|top/g,t=>MA[t])}function $A(e){return{top:0,right:0,bottom:0,left:0,...e}}function U1(e){return typeof e!="number"?$A(e):{top:e,right:e,bottom:e,left:e}}function Bu(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 dv(e,t,n){let{reference:s,floating:i}=e;const a=Ks(t),o=Tg(t),l=Eg(o),c=as(t),u=a==="y",d=s.x+s.width/2-i.width/2,m=s.y+s.height/2-i.height/2,h=s[l]/2-i[l]/2;let p;switch(c){case"top":p={x:d,y:s.y-i.height};break;case"bottom":p={x:d,y:s.y+s.height};break;case"right":p={x:s.x+s.width,y:m};break;case"left":p={x:s.x-i.width,y:m};break;default:p={x:s.x,y:s.y}}switch(go(t)){case"start":p[o]-=h*(n&&u?-1:1);break;case"end":p[o]+=h*(n&&u?-1:1);break}return p}const BA=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,l=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:m}=dv(u,s,c),h=s,p={},v=0;for(let f=0;f<l.length;f++){const{name:b,fn:g}=l[f],{x,y:w,data:j,reset:k}=await g({x:d,y:m,initialPlacement:s,placement:h,strategy:i,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});d=x??d,m=w??m,p={...p,[b]:{...p[b],...j}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(u=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:d,y:m}=dv(u,h,c)),f=-1)}return{x:d,y:m,placement:h,strategy:i,middlewareData:p}};async function El(e,t){var n;t===void 0&&(t={});const{x:s,y:i,platform:a,rects:o,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:h=!1,padding:p=0}=is(t,e),v=U1(p),b=l[h?m==="floating"?"reference":"floating":m],g=Bu(await a.getClippingRect
vendor: 9,538 bytes, line 443
443({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),x=m==="floating"?{x:s,y:i,width:o.floating.width,height:o.floating.height}:o.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),j=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Bu(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:w,strategy:c}):x);return{top:(g.top-k.top+v.top)/j.y,bottom:(k.bottom-g.bottom+v.bottom)/j.y,left:(g.left-k.left+v.left)/j.x,right:(k.right-g.right+v.right)/j.x}}const HA=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:i,rects:a,platform:o,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=is(e,t)||{};if(u==null)return{};const m=U1(d),h={x:n,y:s},p=Tg(i),v=Eg(p),f=await o.getDimensions(u),b=p==="y",g=b?"top":"left",x=b?"bottom":"right",w=b?"clientHeight":"clientWidth",j=a.reference[v]+a.reference[p]-h[p]-a.floating[v],k=h[p]-a.reference[p],N=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let T=N?N[w]:0;(!T||!await(o.isElement==null?void 0:o.isElement(N)))&&(T=l.floating[w]||a.floating[v]);const R=j/2-k/2,O=T/2-f[v]/2-1,S=qs(m[g],O),F=qs(m[x],O),L=S,B=T-f[v]-F,z=T/2-f[v]/2+R,G=Ap(L,z,B),Z=!c.arrow&&go(i)!=null&&z!==G&&a.reference[v]/2-(z<L?S:F)-f[v]/2<0,ee=Z?z<L?z-L:z-B:0;return{[p]:h[p]+ee,data:{[p]:G,centerOffset:z-G-ee,...Z&&{alignmentOffset:ee}},reset:Z}}}),VA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:i,middlewareData:a,rects:o,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:f=!0,...b}=is(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const g=as(i),x=Ks(l),w=as(l)===l,j=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=h||(w||!f?[$u(l)]:zA(l)),N=v!=="none";!h&&N&&k.push(...WA(l,f,v,j));const T=[l,...k],R=await El(t,b),O=[];let S=((s=a.flip)==null?void 0:s.overflows)||[];if(d&&O.push(R[g]),m){const z=FA(i,o,j);O.push(R[z[0]],R[z[1]])}if(S=[...S,{placement:i,overflows:O}],!O.every(z=>z<=0)){var F,L;const z=(((F=a.flip)==null?void 0:F.index)||0)+1,G=T[z];if(G)return{data:{index:z,overflows:S},reset:{placement:G}};let Z=(L=S.filter(ee=>ee.overflows[0]<=0).sort((ee,D)=>ee.overflows[1]-D.overflows[1])[0])==null?void 0:L.placement;if(!Z)switch(p){case"bestFit":{var B;const ee=(B=S.filter(D=>{if(N){const q=Ks(D.placement);return q===x||q==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(q=>q>0).reduce((q,C)=>q+C,0)]).sort((D,q)=>D[1]-q[1])[0])==null?void 0:B[0];ee&&(Z=ee);break}case"initialPlacement":Z=l;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}};function mv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hv(e){return OA.some(t=>e[t]>=0)}const qA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...i}=is(e,t);switch(s){case"referenceHidden":{const a=await El(t,{...i,elementContext:"reference"}),o=mv(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:hv(o)}}}case"escaped":{const a=await El(t,{...i,altBoundary:!0}),o=mv(a,n.floating);return{data:{escapedOffsets:o,escaped:hv(o)}}}default:return{}}}}};async function KA(e,t){const{placement:n,platform:s,elements:i}=e,a=await(s.isRTL==null?void 0:s.isRTL(i.floating)),o=as(n),l=go(n),c=Ks(n)==="y",u=["left","top"].includes(o)?-1:1,d=a&&c?-1:1,m=is(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:v}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof v=="number"&&(p=l==="end"?v*-1:v),c?{x:p*d,y:h*u}:{x:h*u,y:p*d}}const GA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:i,y:a,placement:o,middlewareData:l}=t,c=await KA(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(s=l.arrow)!=null&&s.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},YA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:l={fn:b=>{let{x:g,y:x}=b;return{x:g,y:x}}},...c}=is(e,t),u={x:n,y:s},d=await El(t,c),m=Ks(as(i)),h=Sg(m);let p=u[h],v=u[m];if(a){const b=h==="y"?"top":"left",g=h==="y"?"bottom":"right",x=p+d[b],w=p-d[g];p=Ap(x,p,w)}if(o){const b=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=v+d[b],w=v-d[g];v=Ap(x,v,w)}const f=l.fn({...t,[h]:p,[m]:v});return{...f,data:{x:f.x-n,y:f.y-s,enabled:{[h]:a,[m]:o}}}}}},ZA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:i,rects:a,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=is(e,t),d={x:n,y:s},m=Ks(i),h=Sg(m);let p=d[h],v=d[m];const f=is(l,t),b=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(c){const w=h==="y"?"height":"width",j=a.reference[h]-a.floating[w]+b.mainAxis,k=a.reference[h]+a.reference[w]-b.mainAxis;p<j?p=j:p>k&&(p=k)}if(u){var g,x;const w=h==="y"?"width":"height",j=["top","left"].includes(as(i)),k=a.reference[m]-a.floating[w]+(j&&((g=o.offset)==null?void 0:g[m])||0)+(j?0:b.crossAxis),N=a.reference[m]+a.reference[w]+(j?0:((x=o.offset)==null?void 0:x[m])||0)-(j?b.crossAxis:0);v<k?v=k:v>N&&(v=N)}return{[h]:p,[m]:v}}}},QA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:i,rects:a,platform:o,elements:l}=t,{apply:c=()=>{},...u}=is(e,t),d=await El(t,u),m=as(i),h=go(i),p=Ks(i)==="y",{width:v,height:f}=a.floating;let b,g;m==="top"||m==="bottom"?(b=m,g=h===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(g=m,b=h==="end"?"top":"bottom");const x=f-d.top-d.bottom,w=v-d.left-d.right,j=qs(f-d[b],x),k=qs(v-d[g],w),N=!t.middlewareData.shift;let T=j,R=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(T=x),N&&!h){const S=bn(d.left,0),F=bn(d.right,0),L=bn(d.top,0),B=bn(d.bottom,0);p?R=v-2*(S!==0||F!==0?S+F:bn(d.left,d.right)):T=f-2*(L!==0||B!==0?L+B:bn(d.top,d.bottom))}await c({...t,availableWidth:R,availableHeight:T});const O=await o.getDimensions(l.floating);return v!==O.width||f!==O.height?{reset:{rects:!0}}:{}}}};function Dd(){return typeof window<"u"}function xo(e){return W1(e)?(e.nodeName||"").toLowerCase():"#document"}function kn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fr(e){var t;return(t=(W1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function W1(e){return Dd()?e instanceof Node||e instanceof kn(e).Node:!1}function pr(e){return Dd()?e instanceof Element||e instanceof kn(e).Element:!1}function Lr(e){return Dd()?e instanceof HTMLElement||e instanceof kn(e).HTMLElement:!1}function pv(e){return!Dd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof kn(e).ShadowRoot}function rc(e){const{overflow:t,overflowX:n,overflowY:s,display:i}=fr(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(i)}function XA(e){return["table","td","th"].includes(xo(e))}function Fd(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Pg(e){const t=_g(),n=pr(e)?fr(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function JA(e){let t=Gs(e);for(;Lr(t)&&!Ja(t);){if(Pg(t))return t;if(Fd(t))return null;t=Gs(t)}return null}function _g(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ja(e){return["html","body","#document"].includes(xo(e))}function fr(e){return kn(e).getComputedStyle(e)}function zd(e){return pr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gs(e){if(xo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pv(e)&&e.host||Fr(e);return pv(t)?t.host:t}function $1(e){const t=Gs(e);return Ja(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lr(t)&&rc(t)?t:$1(t)}function Tl(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=$1(e),a=i===((s=e.ownerDocument)==null?void 0:s.body),o=kn(i);if(a){const l=Ip(o);return t.concat(o,o.visualViewport||[],rc(i)?i:[],l&&n?Tl(l):[])}return t.concat(i,Tl(i,[],n))}function Ip(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function B1(e){const t=fr(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=Lr(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:s,l=Wu(n)!==a||Wu(s)!==o;return l&&(n=a,s=o),{width:n,height:s,$:l}}function Ag(e){return pr(e)?e:e.contextElement}function Sa(e){const t=Ag(e);if(!Lr(t))return Rr(1);const n=t.getBoundingClientRect(),{width:s,height:i,$:a}=B1(t);let o=(a?Wu(n.width):n.width)/s,l=(a?Wu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const eR=Rr(0);function H1(e){const t=kn(e);
vendor: 5,013 bytes, line 443
443return!_g()||!t.visualViewport?eR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==kn(e)?!1:t}function Oi(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Ag(e);let o=Rr(1);t&&(s?pr(s)&&(o=Sa(s)):o=Sa(e));const l=tR(a,n,s)?H1(a):Rr(0);let c=(i.left+l.x)/o.x,u=(i.top+l.y)/o.y,d=i.width/o.x,m=i.height/o.y;if(a){const h=kn(a),p=s&&pr(s)?kn(s):s;let v=h,f=Ip(v);for(;f&&s&&p!==v;){const b=Sa(f),g=f.getBoundingClientRect(),x=fr(f),w=g.left+(f.clientLeft+parseFloat(x.paddingLeft))*b.x,j=g.top+(f.clientTop+parseFloat(x.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,m*=b.y,c+=w,u+=j,v=kn(f),f=Ip(v)}}return Bu({width:d,height:m,x:c,y:u})}function Rg(e,t){const n=zd(e).scrollLeft;return t?t.left+n:Oi(Fr(e)).left+n}function V1(e,t,n){n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=s.left+t.scrollLeft-(n?0:Rg(e,s)),a=s.top+t.scrollTop;return{x:i,y:a}}function nR(e){let{elements:t,rect:n,offsetParent:s,strategy:i}=e;const a=i==="fixed",o=Fr(s),l=t?Fd(t.floating):!1;if(s===o||l&&a)return n;let c={scrollLeft:0,scrollTop:0},u=Rr(1);const d=Rr(0),m=Lr(s);if((m||!m&&!a)&&((xo(s)!=="body"||rc(o))&&(c=zd(s)),Lr(s))){const p=Oi(s);u=Sa(s),d.x=p.x+s.clientLeft,d.y=p.y+s.clientTop}const h=o&&!m&&!a?V1(o,c,!0):Rr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-c.scrollTop*u.y+d.y+h.y}}function rR(e){return Array.from(e.getClientRects())}function sR(e){const t=Fr(e),n=zd(e),s=e.ownerDocument.body,i=bn(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),a=bn(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+Rg(e);const l=-n.scrollTop;return fr(s).direction==="rtl"&&(o+=bn(t.clientWidth,s.clientWidth)-i),{width:i,height:a,x:o,y:l}}function iR(e,t){const n=kn(e),s=Fr(e),i=n.visualViewport;let a=s.clientWidth,o=s.clientHeight,l=0,c=0;if(i){a=i.width,o=i.height;const u=_g();(!u||u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:l,y:c}}function aR(e,t){const n=Oi(e,!0,t==="fixed"),s=n.top+e.clientTop,i=n.left+e.clientLeft,a=Lr(e)?Sa(e):Rr(1),o=e.clientWidth*a.x,l=e.clientHeight*a.y,c=i*a.x,u=s*a.y;return{width:o,height:l,x:c,y:u}}function fv(e,t,n){let s;if(t==="viewport")s=iR(e,n);else if(t==="document")s=sR(Fr(e));else if(pr(t))s=aR(t,n);else{const i=H1(e);s={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Bu(s)}function q1(e,t){const n=Gs(e);return n===t||!pr(n)||Ja(n)?!1:fr(n).position==="fixed"||q1(n,t)}function oR(e,t){const n=t.get(e);if(n)return n;let s=Tl(e,[],!1).filter(l=>pr(l)&&xo(l)!=="body"),i=null;const a=fr(e).position==="fixed";let o=a?Gs(e):e;for(;pr(o)&&!Ja(o);){const l=fr(o),c=Pg(o);!c&&l.position==="fixed"&&(i=null),(a?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rc(o)&&!c&&q1(e,o))?s=s.filter(d=>d!==o):i=l,o=Gs(o)}return t.set(e,s),s}function lR(e){let{element:t,boundary:n,rootBoundary:s,strategy:i}=e;const o=[...n==="clippingAncestors"?Fd(t)?[]:oR(t,this._c):[].concat(n),s],l=o[0],c=o.reduce((u,d)=>{const m=fv(t,d,i);return u.top=bn(m.top,u.top),u.right=qs(m.right,u.right),u.bottom=qs(m.bottom,u.bottom),u.left=bn(m.left,u.left),u},fv(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function cR(e){const{width:t,height:n}=B1(e);return{width:t,height:n}}function uR(e,t,n){const s=Lr(t),i=Fr(t),a=n==="fixed",o=Oi(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=Rr(0);if(s||!s&&!a)if((xo(t)!=="body"||rc(i))&&(l=zd(t)),s){const h=Oi(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&(c.x=Rg(i));const u=i&&!s&&!a?V1(i,l):Rr(0),d=o.left+l.scrollLeft-c.x-u.x,m=o.top+l.scrollTop-c.y-u.y;return{x:d,y:m,width:o.width,height:o.height}}function Bm(e){return fr(e).position==="static"}function gv(e,t){if(!Lr(e)||fr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fr(e)===n&&(n=n.ownerDocument.body),n}function K1(e,t){const n=kn(e);if(Fd(e))return n;if(!Lr(e)){let i=Gs(e);for(;i&&!Ja(i);){if(pr(i)&&!Bm(i))return i;i=Gs(i)}return n}let s=gv(e,t);for(;s&&XA(s)&&Bm(s);)s=gv(s,t);return s&&Ja(s)&&Bm(s)&&!Pg(s)?n:s||JA(e)||n}const dR=async function(e){const t=this.getOffsetParent||K1,n=this.getDimensions,s=await n(e.floating);return{reference:uR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function mR(e){return fr(e).direction==="rtl"}const hR={convertOffsetParentRelativeRectToViewportRelativeRect:nR,getDocumentElement:Fr,getClippingRect:lR,getOffsetParent:K1,getElementRects:dR,getClientRects:rR,getDimensions:cR,getScale:Sa,isElement:pr,isRTL:mR};function G1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pR(e,t){let n=null,s;const i=Fr(e);function a(){var l;clearTimeout(s),(l=n)==null||l.disconnect(),n=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:d,top:m,width:h,height:p}=u;if(l||t(),!h||!p)return;
vendor: 9,964 bytes, line 443
443const v=Ic(m),f=Ic(i.clientWidth-(d+h)),b=Ic(i.clientHeight-(m+p)),g=Ic(d),w={rootMargin:-v+"px "+-f+"px "+-b+"px "+-g+"px",threshold:bn(0,qs(1,c))||1};let j=!0;function k(N){const T=N[0].intersectionRatio;if(T!==c){if(!j)return o();T?o(!1,T):s=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!G1(u,e.getBoundingClientRect())&&o(),j=!1}try{n=new IntersectionObserver(k,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return o(!0),a}function fR(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,u=Ag(e),d=i||a?[...u?Tl(u):[],...Tl(t)]:[];d.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),a&&g.addEventListener("resize",n)});const m=u&&l?pR(u,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(g=>{let[x]=g;x&&x.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let v,f=c?Oi(e):null;c&&b();function b(){const g=Oi(e);f&&!G1(f,g)&&n(),f=g,v=requestAnimationFrame(b)}return n(),()=>{var g;d.forEach(x=>{i&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),m==null||m(),(g=p)==null||g.disconnect(),p=null,c&&cancelAnimationFrame(v)}}const gR=GA,xR=YA,yR=VA,vR=QA,wR=qA,xv=HA,bR=ZA,jR=(e,t,n)=>{const s=new Map,i={platform:hR,...n},a={...i.platform,_c:s};return BA(e,t,{...i,platform:a})};var ru=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Hu(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(!Hu(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 a=i[s];if(!(a==="_owner"&&e.$$typeof)&&!Hu(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Y1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yv(e,t){const n=Y1(e);return Math.round(t*n)/n}function Hm(e){const t=y.useRef(e);return ru(()=>{t.current=e}),t}function NR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:i,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,m]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=y.useState(s);Hu(h,s)||p(s);const[v,f]=y.useState(null),[b,g]=y.useState(null),x=y.useCallback(D=>{D!==N.current&&(N.current=D,f(D))},[]),w=y.useCallback(D=>{D!==T.current&&(T.current=D,g(D))},[]),j=a||v,k=o||b,N=y.useRef(null),T=y.useRef(null),R=y.useRef(d),O=c!=null,S=Hm(c),F=Hm(i),L=Hm(u),B=y.useCallback(()=>{if(!N.current||!T.current)return;const D={placement:t,strategy:n,middleware:h};F.current&&(D.platform=F.current),jR(N.current,T.current,D).then(q=>{const C={...q,isPositioned:L.current!==!1};z.current&&!Hu(R.current,C)&&(R.current=C,Hi.flushSync(()=>{m(C)}))})},[h,t,n,F,L]);ru(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,m(D=>({...D,isPositioned:!1})))},[u]);const z=y.useRef(!1);ru(()=>(z.current=!0,()=>{z.current=!1}),[]),ru(()=>{if(j&&(N.current=j),k&&(T.current=k),j&&k){if(S.current)return S.current(j,k,B);B()}},[j,k,B,S,O]);const G=y.useMemo(()=>({reference:N,floating:T,setReference:x,setFloating:w}),[x,w]),Z=y.useMemo(()=>({reference:j,floating:k}),[j,k]),ee=y.useMemo(()=>{const D={position:n,left:0,top:0};if(!Z.floating)return D;const q=yv(Z.floating,d.x),C=yv(Z.floating,d.y);return l?{...D,transform:"translate("+q+"px, "+C+"px)",...Y1(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:C}},[n,l,Z.floating,d.x,d.y]);return y.useMemo(()=>({...d,update:B,refs:G,elements:Z,floatingStyles:ee}),[d,B,G,Z,ee])}const kR=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?xv({element:s.current,padding:i}).fn(n):{}:s?xv({element:s,padding:i}).fn(n):{}}}},CR=(e,t)=>({...gR(e),options:[e,t]}),SR=(e,t)=>({...xR(e),options:[e,t]}),ER=(e,t)=>({...bR(e),options:[e,t]}),TR=(e,t)=>({...yR(e),options:[e,t]}),PR=(e,t)=>({...vR(e),options:[e,t]}),_R=(e,t)=>({...wR(e),options:[e,t]}),AR=(e,t)=>({...kR(e),options:[e,t]});var RR="Arrow",Z1=y.forwardRef((e,t)=>{const{children:n,width:s=10,height:i=5,...a}=e;return r.jsx(he.svg,{...a,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"})})});Z1.displayName=RR;var IR=Z1;function LR(e){const[t,n]=y.useState(void 0);return pt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,l;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,l=u.blockSize}else o=e.offsetWidth,l=e.offsetHeight;n({width:o,height:l})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var Ig="Popper",[Q1,Ud]=qn(Ig),[OR,X1]=Q1(Ig),J1=e=>{const{__scopePopper:t,children:n}=e,[s,i]=y.useState(null);return r.jsx(OR,{scope:t,anchor:s,onAnchorChange:i,children:n})};J1.displayName=Ig;var eN="PopperAnchor",tN=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...i}=e,a=X1(eN,n),o=y.useRef(null),l=Ke(t,o);return y.useEffect(()=>{a.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:r.jsx(he.div,{...i,ref:l})});tN.displayName=eN;var Lg="PopperContent",[MR,DR]=Q1(Lg),nN=y.forwardRef((e,t)=>{var me,De,et,Fe,Le,He;const{__scopePopper:n,side:s="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:v,...f}=e,b=X1(Lg,n),[g,x]=y.useState(null),w=Ke(t,It=>x(It)),[j,k]=y.useState(null),N=LR(j),T=(N==null?void 0:N.width)??0,R=(N==null?void 0:N.height)??0,O=s+(a!=="center"?"-"+a:""),S=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(u)?u:[u],L=F.length>0,B={padding:S,boundary:F.filter(zR),altBoundary:L},{refs:z,floatingStyles:G,placement:Z,isPositioned:ee,middlewareData:D}=NR({strategy:"fixed",placement:O,whileElementsMounted:(...It)=>fR(...It,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[CR({mainAxis:i+R,alignmentAxis:o}),c&&SR({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?ER():void 0,...B}),c&&TR({...B}),PR({...B,apply:({elements:It,rects:Zt,availableWidth:yr,availableHeight:Yn})=>{const{width:Zn,height:jo}=Zt.reference,Ur=It.floating.style;Ur.setProperty("--radix-popper-available-width",`${yr}px`),Ur.setProperty("--radix-popper-available-height",`${Yn}px`),Ur.setProperty("--radix-popper-anchor-width",`${Zn}px`),Ur.setProperty("--radix-popper-anchor-height",`${jo}px`)}}),j&&AR({element:j,padding:l}),UR({arrowWidth:T,arrowHeight:R}),h&&_R({strategy:"referenceHidden",...B})]}),[q,C]=iN(Z),de=xt(v);pt(()=>{ee&&(de==null||de())},[ee,de]);const Ee=(me=D.arrow)==null?void 0:me.x,E=(De=D.arrow)==null?void 0:De.y,Be=((et=D.arrow)==null?void 0:et.centerOffset)!==0,[wt,ze]=y.useState();return pt(()=>{g&&ze(window.getComputedStyle(g).zIndex)},[g]),r.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:ee?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:wt,"--radix-popper-transform-origin":[(Fe=D.transformOrigin)==null?void 0:Fe.x,(Le=D.transformOrigin)==null?void 0:Le.y].join(" "),...((He=D.hide)==null?void 0:He.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r.jsx(MR,{scope:n,placedSide:q,onArrowChange:k,arrowX:Ee,arrowY:E,shouldHideArrow:Be,children:r.jsx(he.div,{"data-side":q,"data-align":C,...f,ref:w,style:{...f.style,animation:ee?void 0:"none"}})})})});nN.displayName=Lg;var rN="PopperArrow",FR={top:"bottom",right:"left",bottom:"top",left:"right"},sN=y.forwardRef(function(t,n){const{__scopePopper:s,...i}=t,a=DR(rN,s),o=FR[a.placedSide];return r.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:r.jsx(IR,{...i,ref:n,style:{...i.style,display:"block"}})})});sN.displayName=rN;function zR(e){return e!==null}var UR=e=>({name:"transformOrigin",options:e,fn(t){var b,g,x;const{placement:n,rects:s,middlewareData:i}=t,o=((b=i.arrow)==null?void 0:b.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=iN(n),m={start:"0%",center:"50%",end:"100%"}[d],h=(((g=i.arrow)==null?void 0:g.x)??0)+l/2,p=(((x=i.arrow)==null?void 0:x.y)??0)+c/2;let v="",f="";return u==="bottom"?(v=o?m:`${h}px`,f=`${-c}px`):u==="top"?(v=o?m:`${h}px`,f=`${s.floating.height+c}px`):u==="right"?(v=`${-c}px`,f=o?m:`${p}px`):u==="left"&&(v=`${s.floating.width+c}px`,f=o?m:`${p}px`),{data:{x:v,y:f}}}});function iN(e){const[t,n="center"]=e.split("-");return[t,n]}var WR=J1,aN=tN,oN=nN,lN=sN,[Wd,l$]=qn("Tooltip",[Ud]),Og=Ud(),cN="TooltipProvider",$R=700,vv="tooltip.open",[BR,uN]=Wd(cN),dN=e=>{const{__scopeTooltip:t,delayDuration:n=$R,skipDelayDuration:s=300,disableHoverableContent:i=!1,children:a}=e,o=y.useRef(!0),l=y.useRef(!1),c=y.useRef(0);return y.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),r.jsx(BR,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 4,219 bytes, line 443
443o.current=!0,s)},[s]),isPointerInTransitRef:l,onPointerInTransitChange:y.useCallback(u=>{l.current=u},[]),disableHoverableContent:i,children:a})};dN.displayName=cN;var mN="Tooltip",[c$,$d]=Wd(mN),Lp="TooltipTrigger",HR=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,i=$d(Lp,n),a=uN(Lp,n),o=Og(n),l=y.useRef(null),c=Ke(t,l,i.onTriggerChange),u=y.useRef(!1),d=y.useRef(!1),m=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),r.jsx(aN,{asChild:!0,...o,children:r.jsx(he.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...s,ref:c,onPointerMove:ie(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:ie(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:ie(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:ie(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:ie(e.onBlur,i.onClose),onClick:ie(e.onClick,i.onClose)})})});HR.displayName=Lp;var VR="TooltipPortal",[u$,qR]=Wd(VR,{forceMount:void 0}),eo="TooltipContent",hN=y.forwardRef((e,t)=>{const n=qR(eo,e.__scopeTooltip),{forceMount:s=n.forceMount,side:i="top",...a}=e,o=$d(eo,e.__scopeTooltip);return r.jsx(Kn,{present:s||o.open,children:o.disableHoverableContent?r.jsx(pN,{side:i,...a,ref:t}):r.jsx(KR,{side:i,...a,ref:t})})}),KR=y.forwardRef((e,t)=>{const n=$d(eo,e.__scopeTooltip),s=uN(eo,e.__scopeTooltip),i=y.useRef(null),a=Ke(t,i),[o,l]=y.useState(null),{trigger:c,onClose:u}=n,d=i.current,{onPointerInTransitChange:m}=s,h=y.useCallback(()=>{l(null),m(!1)},[m]),p=y.useCallback((v,f)=>{const b=v.currentTarget,g={x:v.clientX,y:v.clientY},x=XR(g,b.getBoundingClientRect()),w=JR(g,x),j=e3(f.getBoundingClientRect()),k=n3([...w,...j]);l(k),m(!0)},[m]);return y.useEffect(()=>()=>h(),[h]),y.useEffect(()=>{if(c&&d){const v=b=>p(b,d),f=b=>p(b,c);return c.addEventListener("pointerleave",v),d.addEventListener("pointerleave",f),()=>{c.removeEventListener("pointerleave",v),d.removeEventListener("pointerleave",f)}}},[c,d,p,h]),y.useEffect(()=>{if(o){const v=f=>{const b=f.target,g={x:f.clientX,y:f.clientY},x=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),w=!t3(g,o);x?h():w&&(h(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,d,o,u,h]),r.jsx(pN,{...e,ref:a})}),[GR,YR]=Wd(mN,{isInside:!1}),ZR=UP("TooltipContent"),pN=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:s,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...l}=e,c=$d(eo,n),u=Og(n),{onClose:d}=c;return y.useEffect(()=>(document.addEventListener(vv,d),()=>document.removeEventListener(vv,d)),[d]),y.useEffect(()=>{if(c.trigger){const m=h=>{const p=h.target;p!=null&&p.contains(c.trigger)&&d()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[c.trigger,d]),r.jsx(mo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:m=>m.preventDefault(),onDismiss:d,children:r.jsxs(oN,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[r.jsx(ZR,{children:s}),r.jsx(GR,{scope:n,isInside:!0,children:r.jsx(Zj,{id:c.contentId,role:"tooltip",children:i||s})})]})})});hN.displayName=eo;var fN="TooltipArrow",QR=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,i=Og(n);return YR(fN,n).isInside?null:r.jsx(lN,{...i,...s,ref:t})});QR.displayName=fN;function XR(e,t){const n=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,s,i,a)){case a:return"left";case i:return"right";case n:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function JR(e,t,n=5){const s=[];
vendor: 4,413 bytes, line 443
443switch(t){case"top":s.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":s.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":s.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":s.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return s}function e3(e){const{top:t,right:n,bottom:s,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:s},{x:i,y:s}]}function t3(e,t){const{x:n,y:s}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const l=t[a].x,c=t[a].y,u=t[o].x,d=t[o].y;c>s!=d>s&&n<(u-l)*(s-c)/(d-c)+l&&(i=!i)}return i}function n3(e){const t=e.slice();return t.sort((n,s)=>n.x<s.x?-1:n.x>s.x?1:n.y<s.y?-1:n.y>s.y?1:0),r3(t)}function r3(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const i=e[s];for(;t.length>=2;){const a=t[t.length-1],o=t[t.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let s=e.length-1;s>=0;s--){const i=e[s];for(;n.length>=2;){const a=n[n.length-1],o=n[n.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var s3=dN,gN=hN;const i3=s3,a3=y.forwardRef(({className:e,sideOffset:t=4,...n},s)=>r.jsx(gN,{ref:s,sideOffset:t,className:xe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n}));a3.displayName=gN.displayName;const o3=()=>{const[e]=Pd(),t=y.useRef(e);y.useEffect(()=>{e!==t.current&&(t.current=e)},[e])},l3=ho("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium 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 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground border border-destructive-border",outline:" border [border-color:var(--button-outline)]  shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent"},size:{default:"min-h-9 px-4 py-2",sm:"min-h-8 rounded-md px-3 text-xs",lg:"min-h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),pe=y.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...i},a)=>{const o=s?FP:"button";return r.jsx(o,{className:xe(l3({variant:t,size:n,className:e})),ref:a,...i})});pe.displayName="Button";var Vm="focusScope.autoFocusOnMount",qm="focusScope.autoFocusOnUnmount",wv={bubbles:!1,cancelable:!0},c3="FocusScope",Mg=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[l,c]=y.useState(null),u=xt(i),d=xt(a),m=y.useRef(null),h=Ke(t,f=>c(f)),p=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(s){let f=function(w){if(p.paused||!l)return;const j=w.target;l.contains(j)?m.current=j:vs(m.current,{select:!0})},b=function(w){if(p.paused||!l)return;const j=w.relatedTarget;j!==null&&(l.contains(j)||vs(m.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&vs(l)};document.addEventListener("focusin",f),document.addEventListener("focusout",b);const x=new MutationObserver(g);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",b),x.disconnect()}}},[s,l,p.paused]),y.useEffect(()=>{if(l){jv.add(p);const f=document.activeElement;if(!l.contains(f)){const g=new CustomEvent(Vm,wv);l.addEventListener(Vm,u),l.dispatchEvent(g),g.defaultPrevented||(u3(f3(xN(l)),{select:!0}),document.activeElement===f&&vs(l))}return()=>{l.removeEventListener(Vm,u),setTimeout(()=>{const g=new CustomEvent(qm,wv);l.addEventListener(qm,d),l.dispatchEvent(g),g.defaultPrevented||vs(f??document.body,{select:!0}),l.removeEventListener(qm,d),jv.remove(p)}
vendor: 3,671 bytes, line 443
443,0)}}},[l,u,d,p]);const v=y.useCallback(f=>{if(!n&&!s||p.paused)return;const b=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,g=document.activeElement;if(b&&g){const x=f.currentTarget,[w,j]=d3(x);w&&j?!f.shiftKey&&g===j?(f.preventDefault(),n&&vs(w,{select:!0})):f.shiftKey&&g===w&&(f.preventDefault(),n&&vs(j,{select:!0})):g===x&&f.preventDefault()}},[n,s,p.paused]);return r.jsx(he.div,{tabIndex:-1,...o,ref:h,onKeyDown:v})});Mg.displayName=c3;function u3(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(vs(s,{select:t}),document.activeElement!==n)return}function d3(e){const t=xN(e),n=bv(t,e),s=bv(t.reverse(),e);return[n,s]}function xN(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 bv(e,t){for(const n of e)if(!m3(n,{upTo:t}))return n}function m3(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 h3(e){return e instanceof HTMLInputElement&&"select"in e}function vs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&h3(e)&&t&&e.select()}}var jv=p3();function p3(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Nv(e,t),e.unshift(t)},remove(t){var n;e=Nv(e,t),(n=e[0])==null||n.resume()}}}function Nv(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function f3(e){return e.filter(t=>t.tagName!=="A")}var Km=0;function yN(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kv()),document.body.insertAdjacentElement("beforeend",e[1]??kv()),Km++,()=>{Km===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Km--}},[])}function kv(){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 Tr=function(){return Tr=Object.assign||function(t){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Tr.apply(this,arguments)};function vN(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 g3(e,t,n){if(n||arguments.length===2)for(var s=0,i=t.length,a;s<i;s++)(a||!(s in t))&&(a||(a=Array.prototype.slice.call(t,0,s)),a[s]=t[s]);return e.concat(a||Array.prototype.slice.call(t))}var su="right-scroll-bar-position",iu="width-before-scroll-bar",x3="with-scroll-bars-hidden",y3="--removed-body-scroll-bar-size";function Gm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function v3(e,t){var n=y.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 w3=typeof window<"u"?y.useLayoutEffect:y.useEffect,Cv=new WeakMap;function b3(e,t){var n=v3(null,function(s){return e.forEach(function(i){return Gm(i,s)})});return w3(function(){var s=Cv.get(n);if(s){var i=new Set(s),a=new Set(e),o=n.current;
vendor: 4,155 bytes, lines 443-458
443i.forEach(function(l){a.has(l)||Gm(l,null)}),a.forEach(function(l){i.has(l)||Gm(l,o)})}Cv.set(n,e)},[e]),n}function j3(e){return e}function N3(e,t){t===void 0&&(t=j3);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(a){var o=t(a,s);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(a){for(s=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){s=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(a),o=n}var c=function(){var d=o;o=[],d.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return i}function k3(e){e===void 0&&(e={});var t=N3(null);return t.options=Tr({async:!0,ssr:!1},e),t}var wN=function(e){var t=e.sideCar,n=vN(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 y.createElement(s,Tr({},n))};wN.isSideCarExport=!0;function C3(e,t){return e.useMedium(t),wN}var bN=k3(),Ym=function(){},Bd=y.forwardRef(function(e,t){var n=y.useRef(null),s=y.useState({onScrollCapture:Ym,onWheelCapture:Ym,onTouchMoveCapture:Ym}),i=s[0],a=s[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,m=e.shards,h=e.sideCar,p=e.noIsolation,v=e.inert,f=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,x=e.gapMode,w=vN(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=h,k=b3([n,t]),N=Tr(Tr({},w),i);return y.createElement(y.Fragment,null,d&&y.createElement(j,{sideCar:bN,removeScrollBar:u,shards:m,noIsolation:p,inert:v,setCallbacks:a,allowPinchZoom:!!f,lockRef:n,gapMode:x}),o?y.cloneElement(y.Children.only(l),Tr(Tr({},N),{ref:k})):y.createElement(g,Tr({},N,{className:c,ref:k}),l))});Bd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bd.classNames={fullWidth:iu,zeroRight:su};var S3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function E3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=S3();return t&&e.setAttribute("nonce",t),e}function T3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function P3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _3=function(){var e=0,t=null;return{add:function(n){e==0&&(t=E3())&&(T3(t,n),P3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},A3=function(){var e=_3();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},jN=function(){var e=A3(),t=function(n){var s=n.styles,i=n.dynamic;return e(s,i),null};return t},R3={left:0,top:0,right:0,gap:0},Zm=function(e){return parseInt(e||"",10)||0},I3=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[Zm(n),Zm(s),Zm(i)]},L3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return R3;var t=I3(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])}},O3=jN(),Ea="data-scroll-locked",M3=function(e,t,n,s){var i=e.left,a=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
444  .`.concat(x3,` {
445   overflow: hidden `).concat(s,`;
446   padding-right: `).concat(l,"px ").concat(s,`;
447  }
448  body[`).concat(Ea,`] {
449    overflow: hidden `).concat(s,`;
450    overscroll-behavior: contain;
451    `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&`
452    padding-left: `.concat(i,`px;
453    padding-top: `).concat(a,`px;
454    padding-right: `).concat(o,`px;
455    margin-left:0;
456    margin-top:0;
457    margin-right: `).concat(l,"px ").concat(s,`;
458    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(s,";
458")].filter(Boolean).join(""),`
459  }
460  
461  .`).concat(su,` {
462    right: `).concat(l,"px ").concat(s,`;
463  }
464  
465  .`).concat(iu,` {
466    margin-right: `).concat(l,"px ").concat(s,`;
467  }
468  
469  .`).concat(su," .").concat(su,` {
470    right: 0 `).concat(s,`;
471  }
472  
473  .`).concat(iu," .").concat(iu,` {
474    margin-right: 0 `).concat(s,`;
475  }
476  
477  body[`).concat(Ea,`] {
478    `).concat(y3,": ").concat(l,`px;
479  }
480`)},Sv=function(){var e=parseInt(document.body.getAttribute(Ea)||"0",10);return isFinite(e)?e:0},D3=function(){y.useEffect(function(){return document.body.setAttribute(Ea,(Sv()+1).toString()),function(){var e=Sv()-1;e<=0?document.body.removeAttribute(Ea):document.body.setAttribute(Ea,e.toString())}},[])},F3=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,i=s===void 0?"margin":s;D3();var a=y.useMemo(function(){return L3(i)},[i]);return y.createElement(O3,{styles:M3(a,!t,i,n?"":"!important")})},Op=!1;if(typeof window<"u")try{var Lc=Object.defineProperty({},"passive",{get:function(){return Op=!0,!0}});window.addEventListener("test",Lc,Lc),window.removeEventListener("test",Lc,Lc)}catch{Op=!1}var Zi=Op?{passive:!1}:!1,z3=function(e){return e.tagName==="TEXTAREA"},NN=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!z3(e)&&n[t]==="visible")},U3=function(e){return NN(e,"overflowY")},W3=function(e){return NN(e,"overflowX")},Ev=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var i=kN(e,s);if(i){var a=CN(e,s),o=a[1],l=a[2];if(o>l)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},$3=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},B3=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},kN=function(e,t){return e==="v"?U3(t):W3(t)},CN=function(e,t){return e==="v"?$3(t):B3(t)},H3=function(e,t){return e==="h"&&t==="rtl"?-1:1},V3=function(e,t,n,s,i){var a=H3(e,window.getComputedStyle(t).direction),o=a*s,l=n.target,c=t.contains(l),u=!1,d=o>0,m=0,h=0;do{var p=CN(e,l),v=p[0],f=p[1],b=p[2],g=f-b-a*v;(v||g)&&kN(e,l)&&(m+=g,h+=v),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(Math.abs(m)<1||!i)||!d&&(Math.abs(h)<1||!i))&&(u=!0),u},Oc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Tv=function(e){return[e.deltaX,e.deltaY]},Pv=function(e){return e&&"current"in e?e.current:e},q3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},K3=function(e){return`
481  .block-interactivity-`.concat(e,` {pointer-events: none;}
482  .allow-interactivity-`).concat(e,` {pointer-events: all;}
483`)},G3=0,Qi=[];function Y3(e){var t=y.useRef([]),n=y.useRef([0,0]),s=y.useRef(),i=y.useState(G3++)[0],a=y.useState(jN)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var f=g3([e.lockRef.current],(e.shards||[]).map(Pv),!0).filter(Boolean);return f.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),f.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=y.useCallback(function(f,b){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!o.current.allowPinchZoom;var g=Oc(f),x=n.current,w="deltaX"in f?f.deltaX:x[0]-g[0],j="deltaY"in f?f.deltaY:x[1]-g[1],k,N=f.target,T=Math.abs(w)>Math.abs(j)?"h":"v";if("touches"in f&&T==="h"&&N.type==="range")return!1;var R=Ev(T,N);if(!R)return!0;if(R?k=T:(k=T==="v"?"h":"v",R=Ev(T,N)),!R)return!1;if(!s.current&&"changedTouches"in f&&(w||j)&&(s.current=k),!k)return!0;var O=s.current||k;return V3(O,b,f,O==="h"?w:j,!0)},[]),c=y.useCallback(function(f){var b=f;
vendor: 9,529 bytes, lines 483-487
483if(!(!Qi.length||Qi[Qi.length-1]!==a)){var g="deltaY"in b?Tv(b):Oc(b),x=t.current.filter(function(k){return k.name===b.type&&(k.target===b.target||b.target===k.shadowParent)&&q3(k.delta,g)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var w=(o.current.shards||[]).map(Pv).filter(Boolean).filter(function(k){return k.contains(b.target)}),j=w.length>0?l(b,w[0]):!o.current.noIsolation;j&&b.cancelable&&b.preventDefault()}}},[]),u=y.useCallback(function(f,b,g,x){var w={name:f,delta:b,target:g,should:x,shadowParent:Z3(g)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(j){return j!==w})},1)},[]),d=y.useCallback(function(f){n.current=Oc(f),s.current=void 0},[]),m=y.useCallback(function(f){u(f.type,Tv(f),f.target,l(f,e.lockRef.current))},[]),h=y.useCallback(function(f){u(f.type,Oc(f),f.target,l(f,e.lockRef.current))},[]);y.useEffect(function(){return Qi.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Zi),document.addEventListener("touchmove",c,Zi),document.addEventListener("touchstart",d,Zi),function(){Qi=Qi.filter(function(f){return f!==a}),document.removeEventListener("wheel",c,Zi),document.removeEventListener("touchmove",c,Zi),document.removeEventListener("touchstart",d,Zi)}},[]);var p=e.removeScrollBar,v=e.inert;return y.createElement(y.Fragment,null,v?y.createElement(a,{styles:K3(i)}):null,p?y.createElement(F3,{gapMode:e.gapMode}):null)}function Z3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Q3=C3(bN,Y3);var Dg=y.forwardRef(function(e,t){return y.createElement(Bd,Tr({},e,{ref:t,sideCar:Q3}))});Dg.classNames=Bd.classNames;var X3=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xi=new WeakMap,Mc=new WeakMap,Dc={},Qm=0,SN=function(e){return e&&(e.host||SN(e.parentNode))},J3=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=SN(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})},e5=function(e,t,n,s){var i=J3(t,Array.isArray(e)?e:[e]);Dc[n]||(Dc[n]=new WeakMap);var a=Dc[n],o=[],l=new Set,c=new Set(i),u=function(m){!m||l.has(m)||(l.add(m),u(m.parentNode))};i.forEach(u);var d=function(m){!m||c.has(m)||Array.prototype.forEach.call(m.children,function(h){if(l.has(h))d(h);else try{var p=h.getAttribute(s),v=p!==null&&p!=="false",f=(Xi.get(h)||0)+1,b=(a.get(h)||0)+1;Xi.set(h,f),a.set(h,b),o.push(h),f===1&&v&&Mc.set(h,!0),b===1&&h.setAttribute(n,"true"),v||h.setAttribute(s,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return d(t),l.clear(),Qm++,function(){o.forEach(function(m){var h=Xi.get(m)-1,p=a.get(m)-1;Xi.set(m,h),a.set(m,p),h||(Mc.has(m)||m.removeAttribute(s),Mc.delete(m)),p||m.removeAttribute(n)}),Qm--,Qm||(Xi=new WeakMap,Xi=new WeakMap,Mc=new WeakMap,Dc={})}},EN=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),i=X3(e);return i?(s.push.apply(s,Array.from(i.querySelectorAll("[aria-live]"))),e5(s,i,n,"aria-hidden")):function(){return null}},Fg="Dialog",[TN,d$]=qn(Fg),[t5,xr]=TN(Fg),PN=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,l=y.useRef(null),c=y.useRef(null),[u=!1,d]=hr({prop:s,defaultProp:i,onChange:a});return r.jsx(t5,{scope:t,triggerRef:l,contentRef:c,contentId:$n(),titleId:$n(),descriptionId:$n(),open:u,onOpenChange:d,onOpenToggle:y.useCallback(()=>d(m=>!m),[d]),modal:o,children:n})};PN.displayName=Fg;var _N="DialogTrigger",AN=y.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=xr(_N,n),a=Ke(t,i.triggerRef);return r.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Wg(i.open),...s,ref:a,onClick:ie(e.onClick,i.onOpenToggle)})});AN.displayName=_N;var zg="DialogPortal",[n5,RN]=TN(zg,{forceMount:void 0}),IN=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:i}=e,a=xr(zg,t);return r.jsx(n5,{scope:t,forceMount:n,children:y.Children.map(s,o=>r.jsx(Kn,{present:n||a.open,children:r.jsx(Ad,{asChild:!0,container:i,children:o})}))})};IN.displayName=zg;var Vu="DialogOverlay",LN=y.forwardRef((e,t)=>{const n=RN(Vu,e.__scopeDialog),{forceMount:s=n.forceMount,...i}=e,a=xr(Vu,e.__scopeDialog);return a.modal?r.jsx(Kn,{present:s||a.open,children:r.jsx(s5,{...i,ref:t})}):null});LN.displayName=Vu;var r5=Qa("DialogOverlay.RemoveScroll"),s5=y.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=xr(Vu,n);return r.jsx(Dg,{as:r5,allowPinchZoom:!0,shards:[i.contentRef],children:r.jsx(he.div,{"data-state":Wg(i.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),Mi="DialogContent",ON=y.forwardRef((e,t)=>{const n=RN(Mi,e.__scopeDialog),{forceMount:s=n.forceMount,...i}=e,a=xr(Mi,e.__scopeDialog);return r.jsx(Kn,{present:s||a.open,children:a.modal?r.jsx(i5,{...i,ref:t}):r.jsx(a5,{...i,ref:t})})});ON.displayName=Mi;var i5=y.forwardRef((e,t)=>{const n=xr(Mi,e.__scopeDialog),s=y.useRef(null),i=Ke(t,n.contentRef,s);return y.useEffect(()=>{const a=s.current;if(a)return EN(a)},[]),r.jsx(MN,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ie(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ie(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&a.preventDefault()}),onFocusOutside:ie(e.onFocusOutside,a=>a.preventDefault())})}),a5=y.forwardRef((e,t)=>{const n=xr(Mi,e.__scopeDialog),s=y.useRef(!1),i=y.useRef(!1);return r.jsx(MN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,a),a.defaultPrevented||(s.current||(l=n.triggerRef.current)==null||l.focus(),a.preventDefault()),s.current=!1,i.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(s.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),MN=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,l=xr(Mi,n),c=y.useRef(null),u=Ke(t,c);return yN(),r.jsxs(r.Fragment,{children:[r.jsx(Mg,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:i,onUnmountAutoFocus:a,children:r.jsx(mo,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Wg(l.open),...o,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(o5,{titleId:l.titleId}),r.jsx(c5,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Ug="DialogTitle",DN=y.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=xr(Ug,n);return r.jsx(he.h2,{id:i.titleId,...s,ref:t})});DN.displayName=Ug;var FN="DialogDescription",zN=y.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=xr(FN,n);return r.jsx(he.p,{id:i.descriptionId,...s,ref:t})});zN.displayName=FN;var UN="DialogClose",WN=y.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=xr(UN,n);return r.jsx(he.button,{type:"button",...s,ref:t,onClick:ie(e.onClick,()=>i.onOpenChange(!1))})});WN.displayName=UN;function Wg(e){return e?"open":"closed"}var $N="DialogTitleWarning",[m$,BN]=MP($N,{contentName:Mi,titleName:Ug,docsSlug:"dialog"}),o5=({titleId:e})=>{const t=BN($N),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
484
485If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
486
487For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},l5="DialogDescriptionWarning",c5=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${BN(l5).contentName}}.`;return y.useEffect(()=>{var a;const i=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},HN=PN,u5=AN,VN=IN,Hd=LN,Vd=ON,qd=DN,Kd=zN,qN=WN;const d5=HN,m5=u5,h5=VN,KN=y.forwardRef(({className:e,...t},n)=>r.jsx(Hd,{className:xe("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,ref:n}));KN.displayName=Hd.displayName;const p5=ho("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),GN=y.forwardRef(({side:e="right",className:t,children:n,...s},i)=>r.jsxs(h5,{children:[r.jsx(KN,{}),r.jsxs(Vd,{ref:i,className:xe(p5({side:e}),t),...s,children:[n,r.jsxs(qN,{className:"absolute right-4 top-4 roun
487ded-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-secondary",children:[r.jsx(Md,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));GN.displayName=Vd.displayName;const f5=y.forwardRef(({className:e,...t},n)=>r.jsx(qd,{ref:n,className:xe("text-lg font-semibold text-foreground",e),...t}));f5.displayName=qd.displayName;const g5=y.forwardRef(({className:e,...t},n)=>r.jsx(Kd,{ref:n,className:xe("text-sm text-muted-foreground",e),...t}));g5.displayName=Kd.displayName;var x5=y.createContext(void 0);function sc(e){const t=y.useContext(x5);return e||t||"ltr"}function YN(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var yo="NavigationMenu",[$g,ZN,y5]=uo(yo),[Mp,v5,w5]=uo(yo),[Bg,h$]=qn(yo,[y5,w5]),[b5,Gn]=Bg(yo),[j5,N5]=Bg(yo),QN=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:i,defaultValue:a,delayDuration:o=200,skipDelayDuration:l=300,orientation:c="horizontal",dir:u,...d}=e,[m,h]=y.useState(null),p=Ke(t,O=>h(O)),v=sc(u),f=y.useRef(0),b=y.useRef(0),g=y.useRef(0),[x,w]=y.useState(!0),[j="",k]=hr({prop:s,onChange:O=>{const S=O!=="",F=l>0;S?(window.clearTimeout(g.current),F&&w(!1)):(window.clearTimeout(g.current),g.current=window.setTimeout(()=>w(!0),l)),i==null||i(O)},defaultProp:a}),N=y.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>k(""),150)},[k]),T=y.useCallback(O=>{window.clearTimeout(b.current),k(O)},[k]),R=y.useCallback(O=>{j===O?window.clearTimeout(b.current):f.current=window.setTimeout(()=>{window.clearTimeout(b.current),k(O)},o)},[j,k,o]);return y.useEffect(()=>()=>{window.clearTimeout(f.current),window.clearTimeout(b.current),window.clearTimeout(g.current)},[]),r.jsx(JN,{scope:n,isRootMenu:!0,value:j,dir:v,orientation:c,rootNavigationMenu:m,onTriggerEnter:O=>{window.clearTimeout(f.current),x?R(O):T(O)},onTriggerLeave:()=>{window.clearTimeout(f.current),N()},onContentEnter:()=>window.clearTimeout(b.current),onContentLeave:N,onItemSelect:O=>{k(S=>S===O?"":O)},onItemDismiss:()=>k(""),children:r.jsx(he.nav,{"aria-label":"Main","data-orientation":c,dir:v,...d,ref:p})})});QN.displayName=yo;var XN="NavigationMenuSub",k5=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:i,defaultValue:a,orientation:o="horizontal",...l}=e,c=Gn(XN,n),[u="",d]=hr({prop:s,onChange:i,defaultProp:a});return r.jsx(JN,{scope:n,isRootMenu:!1,value:u,dir:c.dir,orientation:o,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:m=>d(m),onItemSelect:m=>d(m),onItemDismiss:()=>d(""),children:r.jsx(he.div,{"data-orientation":o,...l,ref:t})})});k5.displayName=XN;var JN=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:s,dir:i,orientation:a,children:o,value:l,onItemSelect:c,onItemDismiss:u,onTriggerEnter:d,onTriggerLeave:m,onContentEnter:h,onContentLeave:p}=e,[v,f]=y.useState(null),[b,g]=y.useState(new Map),[x,w]=y.useState(null);return r.jsx(b5,{scope:t,isRootMenu:n,rootNavigationMenu:s,value:l,previousValue:YN(l),baseId:$n(),dir:i,orientation:a,viewport:v,onViewportChange:f,indicatorTrack:x,onIndicatorTrackChange:w,onTriggerEnter:xt(d),onTriggerLeave:xt(m),onContentEnter:xt(h),onContentLeave:xt(p),onItemSelect:xt(c),onItemDismiss:xt(u),onViewportContentChange:y.useCallback((j,k)=>{g(N=>(N.set(j,k),new Map(N)))},[]),onViewportContentRemove:y.useCallback(j=>{g(k=>k.has(j)?(k.delete(j),new Map(k)):k)},[]),children:r.jsx($g.Provider,{scope:t,children:r.jsx(j5,{scope:t,items:b,children:o})})})},ek="NavigationMenuList",tk=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,i=Gn(ek,n),a=r.jsx(he.ul,{"data-orientation":i.orientation,...s,ref:t});return r.jsx(he.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:r.jsx($g.Slot,{scope:n,children:i.isRootMenu?r.jsx(dk,{asChild:!0,children:a}):a})})});tk.displayName=ek;var nk="NavigationMenuItem",[C5,rk]=Bg(nk),sk=y.forwardRef((e,t)=>
vendor: 4,247 bytes, line 487
487{const{__scopeNavigationMenu:n,value:s,...i}=e,a=$n(),o=s||a||"LEGACY_REACT_AUTO_VALUE",l=y.useRef(null),c=y.useRef(null),u=y.useRef(null),d=y.useRef(()=>{}),m=y.useRef(!1),h=y.useCallback((v="start")=>{if(l.current){d.current();const f=Fp(l.current);f.length&&qg(v==="start"?f:f.reverse())}},[]),p=y.useCallback(()=>{if(l.current){const v=Fp(l.current);v.length&&(d.current=R5(v))}},[]);return r.jsx(C5,{scope:n,value:o,triggerRef:c,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:m,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:r.jsx(he.li,{...i,ref:t})})});sk.displayName=nk;var Dp="NavigationMenuTrigger",ik=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:s,...i}=e,a=Gn(Dp,e.__scopeNavigationMenu),o=rk(Dp,e.__scopeNavigationMenu),l=y.useRef(null),c=Ke(l,o.triggerRef,t),u=hk(a.baseId,o.value),d=pk(a.baseId,o.value),m=y.useRef(!1),h=y.useRef(!1),p=o.value===a.value;return r.jsxs(r.Fragment,{children:[r.jsx($g.ItemSlot,{scope:n,value:o.value,children:r.jsx(mk,{asChild:!0,children:r.jsx(he.button,{id:u,disabled:s,"data-disabled":s?"":void 0,"data-state":Kg(p),"aria-expanded":p,"aria-controls":d,...i,ref:c,onPointerEnter:ie(e.onPointerEnter,()=>{h.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:ie(e.onPointerMove,qu(()=>{s||h.current||o.wasEscapeCloseRef.current||m.current||(a.onTriggerEnter(o.value),m.current=!0)})),onPointerLeave:ie(e.onPointerLeave,qu(()=>{s||(a.onTriggerLeave(),m.current=!1)})),onClick:ie(e.onClick,()=>{a.onItemSelect(o.value),h.current=p}),onKeyDown:ie(e.onKeyDown,v=>{const b={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];p&&v.key===b&&(o.onEntryKeyDown(),v.preventDefault())})})})}),p&&r.jsxs(r.Fragment,{children:[r.jsx(Zj,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:v=>{const f=o.contentRef.current,b=v.relatedTarget,g=b===l.current,x=f==null?void 0:f.contains(b);(g||!x)&&o.onFocusProxyEnter(g?"start":"end")}}),a.viewport&&r.jsx("span",{"aria-owns":d})]})]})});ik.displayName=Dp;var S5="NavigationMenuLink",_v="navigationMenu.linkSelect",ak=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:s,onSelect:i,...a}=e;return r.jsx(mk,{asChild:!0,children:r.jsx(he.a,{"data-active":s?"":void 0,"aria-current":s?"page":void 0,...a,ref:t,onClick:ie(e.onClick,o=>{const l=o.target,c=new CustomEvent(_v,{bubbles:!0,cancelable:!0});if(l.addEventListener(_v,u=>i==null?void 0:i(u),{once:!0}),zu(l,c),!c.defaultPrevented&&!o.metaKey){const u=new CustomEvent(au,{bubbles:!0,cancelable:!0});zu(l,u)}},{checkForDefaultPrevented:!1})})})});ak.displayName=S5;var Hg="NavigationMenuIndicator",ok=y.forwardRef((e,t)=>{const{forceMount:n,...s}=e,i=Gn(Hg,e.__scopeNavigationMenu),a=!!i.value;return i.indicatorTrack?xj.createPortal(r.jsx(Kn,{present:n||a,children:r.jsx(E5,{...s,ref:t})}),i.indicatorTrack):null});ok.displayName=Hg;var E5=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,i=Gn(Hg,n),a=ZN(n),[o,l]=y.useState(null),[c,u]=y.useState(null),d=i.orientation==="horizontal",m=!!i.value;y.useEffect(()=>{var f;const v=(f=a().find(b=>b.value===i.value))==null?void 0:f.ref.current;v&&l(v)},[a,i.value]);const h=()=>{o&&u({size:d?o.offsetWidth:o.offsetHeight,offset:d?o.offsetLeft:o.offsetTop})};return zp(o,h),zp(i.indicatorTrack,h),c?r.jsx(he.div,{"aria-hidden":!0,"data-state":m?"visible":"hidden","data-orientation":i.orientation,...s,ref:t,style:{position:"absolute",...d?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...s.style}}):null}),to="NavigationMenuContent",lk=y.forwardRef((e,t)=>{const{forceMount:n,...s}=e,i=Gn(to,e.__scopeNavigationMenu),a=rk(to,e.__scopeNavigationMenu),o=Ke(a.contentRef,t),l=a.value===i.value,c={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...s};return i.viewport?r.jsx(T5,{forceMount:n,...c,ref:o}):r.jsx(Kn,{present:n||l,children:r.jsx(ck,{"data-state":Kg(l),...c,ref:o,onPointerEnter:ie(e.onPointerEnter,i.onContentEnter),onPointerLeave:ie(e.onPointerLeave,qu(i.onContentLeave)),style:{pointerEvents:!l&&i.isRo
487otMenu?"none":void 0,...c.style}})})});lk.displayName=to;var T5=y.forwardRef((e,t)=>{const n=Gn(to,e.__scopeNavigationMenu),{onViewportContentChange:s,onViewportContentRemove:i}=n;return pt(()=>{s(e.value,{ref:t,...e})},[e,t,s]),pt(()=>()=>i(e.value),[e.value,i]),null}),au="navigationMenu.rootContentDismiss",ck=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,triggerRef:i,focusProxyRef:a,wasEscapeCloseRef:o,onRootContentClose:l,onContentFocusOutside:c,...u}=e,d=Gn(to,n),m=y.useRef(null),h=Ke(m,t),p=hk(d.baseId,s),v=pk(d.baseId,s),f=ZN(n),b=y.useRef(null),{onItemDismiss:g}=d;y.useEffect(()=>{const w=m.current;if(d.isRootMenu&&w){const j=()=>{var k;g(),l(),w.contains(document.activeElement)&&((k=i.current)==null||k.focus())};return w.addEventListener(au,j),()=>w.removeEventListener(au,j)}},[d.isRootMenu,e.value,i,g,l]);const x=y.useMemo(()=>{const j=f().map(S=>S.value);d.dir==="rtl"&&j.reverse();const k=j.indexOf(d.value),N=j.indexOf(d.previousValue),T=s===d.value,R=N===j.indexOf(s);if(!T&&!R)return b.current;const O=(()=>{if(k!==N){if(T&&N!==-1)return k>N?"from-end":"from-start";if(R&&k!==-1)return k>N?"to-start":"to-end"}return null})();return b.current=O,O},[d.previousValue,d.value,d.dir,f,s]);return r.jsx(dk,{asChild:!0,children:r.jsx(mo,{id:v,"aria-labelledby":p,"data-motion":x,"data-orientation":d.orientation,...u,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var j;const w=new Event(au,{bubbles:!0,cancelable:!0});(j=m.current)==null||j.dispatchEvent(w)},onFocusOutside:ie(e.onFocusOutside,w=>{var k;c();const j=w.target;(k=d.rootNavigationMenu)!=null&&k.contains(j)&&w.preventDefault()}),onPointerDownOutside:ie(e.onPointerDownOutside,w=>{var T;const j=w.target,k=f().some(R=>{var O;return(O=R.ref.current)==null?void 0:O.contains(j)}),N=d.isRootMenu&&((T=d.viewport)==null?void 0:T.contains(j));(k||N||!d.isRootMenu)&&w.preventDefault()}),onKeyDown:ie(e.onKeyDown,w=>{var N;const j=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!j){const T=Fp(w.currentTarget),R=document.activeElement,O=T.findIndex(L=>L===R),F=w.shiftKey?T.slice(0,O).reverse():T.slice(O+1,T.length);qg(F)?w.preventDefault():(N=a.current)==null||N.focus()}}),onEscapeKeyDown:ie(e.onEscapeKeyDown,w=>{o.current=!0})})})}),Vg="NavigationMenuViewport",uk=y.forwardRef((e,t)=>{const{forceMount:n,...s}=e,a=!!Gn(Vg,e.__scopeNavigationMenu).value;return r.jsx(Kn,{present:n||a,children:r.jsx(P5,{...s,ref:t})})});uk.displayName=Vg;var P5=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:s,...i}=e,a=Gn(Vg,n),o=Ke(t,a.onViewportChange),l=N5(to,e.__scopeNavigationMenu),[c,u]=y.useState(null),[d,m]=y.useState(null),h=c?(c==null?void 0:c.width)+"px":void 0,p=c?(c==null?void 0:c.height)+"px":void 0,v=!!a.value,f=v?a.value:a.previousValue;return zp(d,()=>{d&&u({width:d.offsetWidth,height:d.offsetHeight})}),r.jsx(he.div,{"data-state":Kg(v),"data-orientation":a.orientation,...i,ref:o,style:{pointerEvents:!v&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":p,...i.style},onPointerEnter:ie(e.onPointerEnter,a.onContentEnter),onPointerLeave:ie(e.onPointerLeave,qu(a.onContentLeave)),children:Array.from(l.items).map(([g,{ref:x,forceMount:w,...j}])=>{const k=f===g;return r.jsx(Kn,{present:w||k,children:r.jsx(ck,{...j,ref:mg(x,N=>{k&&N&&m(N)})})},g)})})}),_5="FocusGroup",dk=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,i=Gn(_5,n);return r.jsx(Mp.Provider,{scope:n,children:r.jsx(Mp.Slot,{scope:n,children:r.jsx(he.div,{dir:i.dir,...s,ref:t})})})}),Av=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],A5="FocusGroupItem",mk=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,i=v5(n),a=Gn(A5,n);return r.jsx(Mp.ItemSlot,{scope:n,children:r.jsx(he.button,{...s,ref:t,onKeyDown:ie(e.onKeyDown,o=>{if(["Home","End",...Av].includes(o.key)){let c=i().map(m=>m.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&c.reverse(),Av.includes(o.key)){const m=c.indexOf(o.currentTarget);c=c.slice(m+1)}setTimeout(()=>qg(c)),o.preventDefault()}})})})});function Fp(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 qg(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function R5(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function zp(e,t){const n=xt(t);pt(()=>{let s=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(s),i.unobserve(e)}}},[e,n])}function Kg(e){return e?"open":"closed"}function hk(e,t){return`${e}-trigger-${t}`}function pk(e,t){return`${e}-content-${t}`}function qu(e){return t=>t.pointerType==="mouse"?e(t):void 0}var fk=QN,gk=tk,I5=sk,xk=ik,L5=ak,yk=ok,vk=lk,wk=uk;const bk=y.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(fk,{ref:s,className:xe("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,r.jsx(Nk,{})]}));bk.displayName=fk.displayName;const jk=y.forwardRef(({className:e,...t},n)=>r.jsx(gk,{ref:n,className:xe("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));jk.displayName=gk.displayName;const Ji=I5,O5=ho("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),ui=y.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(xk,{ref:s,className:xe(O5(),"group",e),...n,children:[t," ",r.jsx(nc,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ui.displayName=xk.displayName;const di=y.forwardRef(({className:e,...t},n)=>r.jsx(vk,{ref:n,className:xe("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));di.displayName=vk.displayName;const ea=L5,Nk=y.forwardRef(({className:e,...t},n)=>r.jsx("div",{className:xe("absolute left-0 top-full flex justify-center"),children:r.jsx(wk,{className:xe("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));Nk.displayName=wk.displayName;const M5=y.forwardRef(({className:e,...t},n)=>r.jsx(yk,{ref:n,className:xe("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:r.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));M5.displayName=yk.displayName;
487const kk="/assets/NATIONAL-COMMUNITY-LAW-PROJECT-LOGO_FULLCOL_CLEAR-1_1765528606462-BAJEU9BZ.png",Ck=[{label:"How We Help You",href:"/how-we-support",icon:v1,description:"Understand our approach"},{label:"Our Services",href:"/services",icon:Ge,description:"Case preparation & support"},{label:"Legal Support Areas",href:"/support-areas",icon:qe,description:"18 areas of law we cover"},{label:"Pricing",href:"/pricing",icon:cr,description:"Transparent, affordable rates"},{label:"Complaint Management",href:"/complaint-management",icon:An,description:"Raise or defend complaints"},{label:"Mock Training",href:"/mock-training",icon:po,description:"Prepare for hearings"}],Sk=[{label:"White Label Support",href:"/business-services",icon:Tp,description:"Back-office legal support for SMEs"},{label:"Complaint Management",href:"/complaint-management",icon:An,description:"B2B dispute resolution"}],Ek=[{label:"About Us",href:"/about",icon:Rt,description:"Our mission and values"},{label:"Our Team",href:"/team",icon:_e,description:"Meet our leadership"},{label:"Join Our Team",href:"/join",icon:Vi,description:"Volunteer opportunities"},{label:"Photo Gallery",href:"/gallery",icon:z_,description:"Community events & activities"}],Tk=[{label:"Legal Guides",href:"/legal-guides",icon:Vn,description:"Free legal articles & information"},{label:"UK Legal System",href:"/legal-system",icon:cs,description:"How the courts work"},{label:"Legal Professions",href:"/legal-professions",icon:_n,description:"Solicitors, barristers & more"},{label:"Policies & Compliance",href:"/policies",icon:Ze,description:"Our policies and terms"}],Pk=[{label:"Legal Help Hub",href:"/legal-help-hub",icon:W_,description:"Your starting point for all legal help"},{label:"Vulnerable People",href:"/vulnerable-people",icon:Ze,description:"Safeguarding & specialist support"},{label:"Equality Act 2010",href:"/equality-act",icon:qe,description:"Discrimination rights & protection"},{label:"Fraud & Scam Awareness",href:"/fraud-scam-awareness",icon:vt,description:"Protect yourself from fraud"},{label:"Housing Protection",href:"/housing-protection",icon:Mt,description:"Tenant rights & eviction defence"},{label:"Litigants in Person",href:"/litigants-in-person",icon:cs,description:"Court & self
487-representation support"},{label:"Low-Income Support",href:"/low-income-support",icon:xg,description:"Benefits, debt & affordable help"}],_k=[{label:"Neurodivergence Club",href:"/neurodivergence-club",icon:Ld,description:"Coming soon - Support for neurodivergent individuals"},{label:"Disability Rights Club",href:"/disability-rights-club",icon:tc,description:"Coming soon - Workplace accessibility advocacy"},{label:"Financial Genius Club",href:"/financial-genius-club",icon:T1,description:"Coming soon - Peer-to-peer financial learning"}],D5=[{title:"Get Support",links:Ck},{title:"Legal Hubs",links:Pk},{title:"Business Services",links:Sk},{title:"About Us",links:Ek},{title:"Resources",links:Tk},{title:"Community Clubs",links:_k}];function Ne(){const[e]=Pd(),[t,n]=y.useState(!1),[s,i]=y.useState(null),a=o=>e===o;return r.jsx("header",{className:"sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:r.jsxs("div",{className:"mx-auto flex h-16 max-w-7xl items-center justify-between gap-4 px-4 md:px-6",children:[r.jsx(Q,{href:"/",className:"flex items-center gap-2",children:r.jsx("img",{src:kk,alt:"National Community Law Project",className:"h-12 w-auto","data-testid":"img-logo"})}),r.jsx(bk,{className:"hidden lg:flex",children:r.jsxs(jk,{children:[r.jsxs(Ji,{children:[r.jsx(ui,{"data-testid":"nav-get-support",children:"Get Support"}),r.jsx(di,{children:r.jsx("ul",{className:"grid w-[400px] gap-2 p-4 md:w-[500px] md:grid-cols-2",children:Ck.map(o=>r.jsx("li",{children:r.jsx(ea,{asChild:!0,children:r.jsxs(Q,{href:o.href,className:`block select-none rounded-md p-3 leading-none no-underline outline-none transition-colors hover-elevate ${a(o.href)?"bg-accent":""}`,"data-testid":`nav-support-${o.label.toLowerCase().replace(/\s+/g,"-")}`,children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(o.icon,{className:"h-4 w-4 text-primary"}),r.jsx("span",{className:"text-sm font-medium",children:o.label})]}),r.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:o.description})]})})},o.href))})})]}),r.jsxs(Ji,{children:[r.jsx(ui,{"data-testid":"nav-hubs",children:"Legal Hubs"}),r.jsx(di,{children:r.jsx("ul",{className:"grid w-[500px] gap-2 p-4 md:grid-cols-2",children:Pk.map(o=>r.jsx("li",{children:r.jsx(ea,{asChild:!0,children:r.jsxs(Q,{href:o.href,className:`block select-none rounded-md p-3 leading-none no-underline outline-none transition-colors hover-elevate ${a(o.href)?"bg-accent":""}`,"data-testid":`nav-hub-${o.label.toLowerCase().replace(/\s+/g,"-")}`,children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(o.icon,{className:"h-4 w-4 text-primary"}),r.jsx("span",{className:"text-sm font-medium",children:o.label})]}),r.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:o.description})]})})},o.href))})})]}),r.jsxs(Ji,{children:[r.jsx(ui,{"data-testid":"nav-business",children:"Business"}),r.jsx(di,{children:r.jsx("ul",{className:"grid w-[350px] gap-2 p-4",children:Sk.map(o=>r.jsx("li",{children:r.jsx(ea,{asChild:!0,children:r.jsxs(Q,{href:o.href,className:`block select-none rounded-md p-3 leading-none no-underline outline-none transition-colors hover-elevate ${a(o.href)?"bg-accent":""}`,"data-testid":`nav-business-${o.label.toLowerCase().replace(/\s+/g,"-")}`,children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(o.icon,{className:"h-4 w-4 text-primary"}),r.jsx("span",{className:"text-sm font-medium",children:o.label})]}),r.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:o.description})]})})},o.href))})})]}),r.jsxs(Ji,{children:[r.jsx(ui,{"data-testid":"nav-about",children:"About"}),r.jsx(di,{children:r.jsx("ul",{className:"grid w-[350px] gap-2 p-4",children:Ek.map(o=>r.jsx("li",{children:r.jsx(ea,{asChild:!0,children:r.jsxs(Q,{href:o.href,className:`block select-none rounded-md p-3 leading-none no-underline outline-none transition-colors hover-elevate ${a(o.href)?"bg-accent":""}`,"data-testid":`nav-about-${o.label.toLowerCase().replace(/\s+/g,"-")}`,children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(o.icon,{className:"h-4 w-4 text-primary"}),r.jsx("span",{className:"text-sm font-medium",children:o.label})]}),r.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:o.description})]})})},o.href))})})]}),r.jsxs(Ji,{children:[r.jsx(ui,{"data-testid":"nav-resources",children:"Resources"}),r.jsx(di,{children:r.jsx("ul",{className:"grid w-[350px] gap-2 p-4",children:Tk.map(o=>r.jsx("li",{children:r.jsx(ea,{asChild:!0,children:r.jsxs(Q,{href:o.href,className:`block select-none rounded-md p-3 leading-none no-underline outline-none transition-colors hover-elevate ${a(o.href)?"bg-accent":""}`,"data-testid":`nav-resources-${o.label.toLowerCase().replace(/\s+/g,"-")}`,children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(o.icon,{className:"h-4 w-4 text-primary"}),r.jsx("span",{className:"text-sm font-medium",children:o.label})]}),r.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:o.description})]})})},o.href))})})]}),r.jsxs(Ji,{children:[r.jsx(ui,{"data-testid":"nav-clubs",children:"Clubs"}),r.jsx(di,{children:r.jsx("ul",{className:"grid w-[400px] gap-2 p-4",children:_k.map(o=>r.jsx("li",{children:r.jsx(ea,{asChild:!0,children:r.jsxs(Q,{href:o.href,className:`block select-none rounded-md p-3 leading-none no-underline outline-none transition-colors hover-elevate ${a(o.href)?"bg-accent":""}`,"data-testid":`nav-clubs-${o.label.toLowerCase().replace(/\s+/g,"-")}`,children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(o.icon,{className:"h-4 w-4 text-primary"}),r.jsx("span",{className:"text-sm font-medium",children:o.label})]}),r.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:o.description})]})})},o.href))})})]})]})}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Q,{href:"/contact",className:"hidden sm:block",children:r.jsx(pe,{"data-testid":"button-get-support",children:"Contact Us"})}),r.jsxs(d5,{open:t,onOpenChange:n,children:[r.jsx(m5,{asChild:!0,className:"lg:hidden",children:r.jsx(pe,{variant:"ghost",size:"icon","data-testid":"button-mobile-menu",children:r.jsx(B_,{className:"h-5 w-5"})})}),r.jsx(GN,{side:"right",className:"w-80 overflow-y-auto",children:r.jsxs("div",{className:"flex flex-col gap-2 pt-8",children:[D5.map(o=>r.jsxs("div",{className:"border-b pb-2",children:[r.jsxs("button",{onClick:()=>i(s===o.title?null:o.title),className:"flex w-full items-center justify-between py-2 text-left font-semibold","data-testid":`mobile-group-${o.title.toLowerCase().replace(/\s+/g,"-")}`,children:[o.title,r.jsx(nc,{className:`h-4 w-4 transition-transform ${s===o.title?"rotate-180":""}`})]}),s===o.title&&r.jsx("div",{className:"ml-2 flex flex-col gap-1 pb-2",children:o.links.map(l=>r.jsx(Q,{href:l.href,onClick:()=>n(!1),children:r.jsxs(pe,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2","data-testid":`mobile-link-${l.label.toLowerCase().replace(/\s+/g,"-")}`,children:[r.jsx(l.icon,{className:"h-4 w-4"}),l.label]})},l.href))})]},o.title)),r.jsx(Q,{href:"/contact",onClick:()=>n(!1),children:r.jsx(pe,{className:"w-full mt-4","data-testid":"button-mobile-contact",children:"Contact Us"})})]})})]})]})]})})}const Xm="National Community Law Project CIC",F5="https://thenationalcommunitylawproject.com/og-image.png",z5={"@context":"https://schema.org","@type":"LegalService",name:"National Community Law Project CIC",alternateName:"NCLP",url:"https://thenationalcommunitylawproject.com",logo:"https://thenationalcommunitylawproject.com/logo.png",description:"Community legal support at £50/hour. We help with housing, employment, family law, discrimination, benef
487its, and more. Free 15-minute consultation.",foundingDate:"2021",legalName:"National Community Law Project CIC",identifier:"13353358",address:{"@type":"PostalAddress",streetAddress:"4th Floor, 14 Museum Place",addressLocality:"Cardiff",addressRegion:"Wales",postalCode:"CF10 3BH",addressCountry:"GB"},contactPoint:{"@type":"ContactPoint",telephone:"07476949692",contactType:"customer service",availableLanguage:"English"},sameAs:["https://uk.linkedin.com/company/community-law-project-uk-ltd","https://twitter.com/thecommunityla1"],priceRange:"£50/hour",openingHours:"Mo-Fr 09:00-17:00",areaServed:{"@type":"Country",name:"United Kingdom"}};function ke({title:e,description:t,keywords:n,canonicalUrl:s,ogImage:i,type:a="website",publishedDate:o}){return y.useEffect(()=>{const l=`${e} | ${Xm}`;document.title=l;const c=(p,v,f=!1)=>{const b=f?"property":"name";let g=document.querySelector(`meta[${b}="${p}"]`);g||(g=document.createElement("meta"),g.setAttribute(b,p),document.head.appendChild(g)),g.setAttribute("content",v)};c("description",t),n&&c("keywords",n),c("robots","index, follow"),c("author",Xm);const u=l,d=t,m=i||F5;if(c("og:title",u,!0),c("og:description",d,!0),c("og:type",a,!0),c("og:site_name",Xm,!0),c("og:image",m,!0),c("og:image:alt",e,!0),c("og:locale","en_GB",!0),s&&c("og:url",s,!0),c("twitter:card","summary_large_image"),c("twitter:title",u),c("twitter:description",d),c("twitter:image",m),c("twitter:site","@thecommunityla1"),o&&c("article:published_time",o,!0),s){let p=document.querySelector('link[rel="canonical"]');p||(p=document.createElement("link"),p.rel="canonical",document.head.appendChild(p)),p.href=s}let h=document.querySelector('script[data-schema="organisation"]');h||(h=document.createElement("script"),h.setAttribute("type","application/ld+json"),h.setAttribute("data-schema","organisation"),document.head.appendChild(h)),h.textContent=JSON.stringify(z5)},[e,t,n,s,i,a,o]),null}const U5="/assets/community_legal_support_scene-wsLuQeEj.png";function W5(){return r.jsxs("section",{className:"relative min-h-[70vh] flex items-center justify-center overflow-hidden",children:[r.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${U5})`}}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/70 via-black/60 to-black/80"}),r.jsxs("div",{className:"relative z-10 mx-auto max-w-4xl px-4 py-20 text-center",children:[r.jsxs("div",{className:"mb-6 inline-flex items-center gap-2 rounded-full bg-white/10 px-4 py-2 backdrop-blur-sm",children:[r.jsx(Rt,{className:"h-4 w-4 text-white"}),r.jsx("span",{className:"text-sm font-medium text-white","data-testid":"text-tagline",children:"Affordable Legal Support - £50/hour"})]}),r.jsx("h1",{className:"mb-6 text-4xl font-bold tracking-tight text-white md:text-5xl lg:text-6xl","data-testid":"text-hero-title",children:"Bridging the Gap Between People and Justice"}),r.jsx("p",{className:"mx-auto mb-8 max-w-2xl text-lg text-white/90 md:text-xl","data-testid":"text-hero-description",children:"The National Community Law Project CIC provides affordable legal support at just £50 per hour. We help individuals across the UK navigate the justice system with professional guidance."}),r.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 sm:flex-row",children:[r.jsx(Q,{href:"/contact",children:r.jsxs(pe,{size:"lg",className:"gap-2 bg-white text-black hover:bg-white/90","data-testid":"button-hero-support",children:["Get Legal Support",r.jsx(st,{className:"h-4 w-4"})]})}),r.jsx(Q,{href:"/about",children:r.jsx(pe,{size:"lg",variant:"outline",className:"border-white/30 bg-white/10 text-white backdrop-blur-sm hover:bg-white/20","data-testid":"button-hero-learn",children:"Learn More"})})]})]})]})}const $5=[{icon:_e,value:"90%",label:"UK population lacks access to local legal aid"},{icon:bg,value:"53M",label:"People without local education legal aid"},{icon:qe,value:"43.6%",label:"Cannot access housing legal aid locally"},{icon:po,value:"100+",label:"Team members trained annually"}];function B5(){return r.jsx("section",{className:"border-y bg-card py-12",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsx("div",{className:"grid grid-cols-2 gap-8 md:grid-cols-4",children:$5.map((e,t)=>r.jsxs("div",{className:"flex flex-col items-center text-center","data-testid":`stat-item-${t}`,children:[r.jsx(e.icon,{className:"mb-3 h-8 w-8 text-primary"}),r.jsx("span",{className:"mb-1 text-3xl font-bold text-foreground md:text-4xl","data-testid":`text-stat-value-${t}`,children:e.value}),r.jsx("span",{className:"text-sm text-muted-foreground","data-testid":`text-stat-label-${t}`,children:e.label})]},t))})})})}const W=y.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:xe("shadcn-card rounded-xl border bg-card border-card-border text-card-foreground shadow-sm",e),...t}));
487W.displayName="Card";const le=y.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:xe("flex flex-col space-y-1.5 p-6",e),...t}));le.displayName="CardHeader";const ce=y.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:xe("text-2xl font-semibold leading-none tracking-tight",e),...t}));ce.displayName="CardTitle";const ot=y.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:xe("text-sm text-muted-foreground",e),...t}));ot.displayName="CardDescription";const $=y.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:xe("p-6 pt-0",e),...t}));$.displayName="CardContent";const H5=y.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:xe("flex items-center p-6 pt-0",e),...t}));H5.displayName="CardFooter";const V5=[{icon:vt,stat:"90%",description:"of the UK population lacks access to local legal aid providers"},{icon:E1,stat:"28 Years",description:"since legal aid fees were last increased"},{icon:bg,stat:"Legal Aid Deserts",description:"Rural and post-industrial areas severely affected"}];function Ak(){return r.jsx("section",{className:"bg-card py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsxs("div",{className:"grid gap-12 lg:grid-cols-2 lg:items-center",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-about-title",children:"The Legal Aid Crisis"}),r.jsx("p",{className:"mb-6 text-lg text-muted-foreground","data-testid":"text-about-description",children:"Across England and Wales, millions of people face legal challenges without access to professional support. The Legal Aid, Sentencing and Punishment of Offenders Act 2012 removed entire areas of law from scope, creating vast geographic areas where legal advice is simply unavailable."}),r.jsx("p",{className:"text-muted-foreground",children:"These statistics represent more than numbers—they reflect families facing eviction without legal support, workers experiencing exploitation without recourse, and vulnerable individuals navigating complex systems without guidance."})]}),r.jsx("div",{className:"space-y-4",children:V5.map((e,t)=>r.jsx(W,{"data-testid":`card-crisis-${t}`,children:r.jsxs($,{className:"flex items-center gap-4 p-4",children:[r.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-destructive/10",children:r.jsx(e.icon,{className:"h-6 w-6 text-destructive"})}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xl font-bold",children:e.stat}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]})]})},t))})]})})})}const q5=[{icon:Ge,title:"Case Preparation",description:"Law students and graduates help compile case facts and supporting evidence to present to legal professionals."},{icon:_e,title:"Legal Guidance & Referrals",description:"We connect you with qualified solicitors and barristers who can provide the representation you need."},{icon:F_,title:"Welfare Benefits Advice",description:"Understand your entitlements and navigate social security application processes with our support."},{icon:Vn,title:"Community Legal Education",description:"Workshops on tenants' rights, employment law, immigration procedures, and welfare entitlements."},{icon:P1,title:"Peer Adviser Training",description:"We train community members to provide initial guidance and support within their networks."}];function Rk(){return r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-services-title",children:"How We Help"}),r.jsx("p",{className:"mx-auto max-w-2xl text-lg text-muted-foreground","data-testid":"text-services-subtitle",children:"We provide comprehensive support services at an affordable rate of £50 per hour to help individuals access justice."})]}),r.jsxs("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:[q5.map((e,t)=>r.jsxs(W,{className:"hover-elevate","data-testid":`card-service-${t}`,children:[r.jsxs(le,{children:[r.jsx("div",{className:"mb-2 flex h-12 w-12 items-center justify-center rounded-md bg-primary/10",children:r.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),r.jsx(ce,{className:"text-xl",children:e.title})]}),r.jsx($,{children:r.jsx(ot,{className:"text-base",children:e.description})})]},t)),r.jsx(W,{className:"flex flex-col items-center justify-center bg-primary text-primary-foreground","data-testid":"card-service-cta",children:r.jsxs($,{className:"flex flex-col items-center p-8 text-center",children:[r.jsx("h3",{className:"mb-3 text-xl font-semibold",children:"Need Legal Support?"}
487),r.jsx("p",{className:"mb-6 text-primary-foreground/80",children:"Get in touch with us today to discuss your situation."}),r.jsx(Q,{href:"/contact",children:r.jsxs(pe,{variant:"secondary",className:"gap-2","data-testid":"button-services-contact",children:["Contact Us",r.jsx(st,{className:"h-4 w-4"})]})})]})})]})]})})}const Rv=[{number:"01",icon:Dr,title:"Get in Touch",description:"Contact us through our website or phone. We'll listen to your situation and understand your legal needs."},{number:"02",icon:M_,title:"Case Preparation",description:"Our trained team helps you compile case facts and gather supporting evidence in a professional manner."},{number:"03",icon:_e,title:"Professional Referral",description:"We connect you with qualified solicitors and barristers who can provide the legal representation you need."}];function Ik(){return r.jsx("section",{className:"bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-how-title",children:"How It Works"}),r.jsx("p",{className:"mx-auto max-w-2xl text-lg text-muted-foreground","data-testid":"text-how-subtitle",children:"Our simple three-step process helps bridge the gap between you and the justice system."})]}),r.jsx("div",{className:"grid gap-8 md:grid-cols-3",children:Rv.map((e,t)=>r.jsxs("div",{className:"relative","data-testid":`step-${t}`,children:[r.jsxs("div",{className:"mb-4 flex items-center gap-4",children:[r.jsx("span",{className:"text-5xl font-bold text-primary/20",children:e.number}),r.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-primary",children:r.jsx(e.icon,{className:"h-6 w-6 text-primary-foreground"})})]}),r.jsx("h3",{className:"mb-2 text-xl font-semibold",children:e.title}),r.jsx("p",{className:"text-muted-foreground",children:e.description}),t<Rv.length-1&&r.jsx("div",{className:"absolute right-0 top-10 hidden h-0.5 w-16 bg-border lg:block"})]},t))}),r.jsx("div",{className:"mt-12 rounded-lg border bg-background p-6 text-center",children:r.jsxs("p",{className:"text-sm text-muted-foreground","data-testid":"text-disclaimer",children:[r.jsx("strong",{children:"Important:"})," We are NOT solicitors. Our service helps prepare your case and connects you with appropriate legal professionals. We do not provide legal advice."]})})]})})}const K5=[{icon:Mt,label:"Housing & Eviction"},{icon:Wn,label:"Homelessness"},{icon:_e,label:"Family Law"},{icon:_n,label:"Employment"},{icon:qe,label:"Equality Law"},{icon:Rt,label:"Disability Rights"},{icon:Pp,label:"Debt & Benefits"},{icon:C1,label:"Consumer Rights"},{icon:cs,label:"Civil Disputes"},{icon:Wn,label:"Public Law"},{icon:Ze,label:"Police Complaints"},{icon:Ld,label:"Mental Health"},{icon:k1,label:"Immigration"},{icon:N1,label:"Data Protection"},{icon:b1,label:"Animal Law"}];function G5(){return r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-support-title",children:"Areas We Support"}),r.jsx("p",{className:"mx-auto max-w-2xl text-lg text-muted-foreground","data-testid":"text-support-description",children:"Our trained team can assist with a wide range of legal issues. We help prepare your case and connect you with specialists."})]}),r.jsx("div",{className:"grid grid-cols-3 gap-3 sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-5",children:K5.map((e,t)=>r.jsxs("div",{className:"flex flex-col items-center gap-2 rounded-lg border bg-card p-3 text-center hover-elevate","data-testid":`support-area-${t}`,children:[r.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:r.jsx(e.icon,{className:"h-4 w-4 text-primary"})}),r.jsx("span",{className:"text-xs font-medium",children:e.label})]},t))}),r.jsx("div",{className:"mt-8 text-center",children:r.jsx(Q,{href:"/support-areas",children:r.jsxs(pe,{variant:"outline",className:"gap-2","data-testid":"button-view-all-areas",children:["View All Support Areas",r.jsx(st,{className:"h-4 w-4"})]})})})]})})}const Y5=ho("whitespace-nowrap 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 hover-elevate ",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow-xs",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow-xs",outline:" border [border-color:var(--badge-outline)] shadow-xs"}},defaultVariants:{variant:"default"}});function yt({className:e,variant:t,...n}){return r.jsx("div",{className:xe(Y5({variant:t}),e),...n})}const Z5=[{slug:"h01-landlord-threatens-eviction",title:"What to Do If Your Landlord Threatens Eviction",description:"Know y
487our rights and the legal steps landlords must follow before they can evict you.",category:"Housing",icon:Mt},{slug:"h07-stop-delay-eviction",title:"How to Stop or Delay an Eviction",description:"Practical steps you can take to defend against eviction and buy time to find solutions.",category:"Housing",icon:Mt},{slug:"unfair-dismissal-without-solicitor",title:"How to Challenge an Unfair Dismissal",description:"Step-by-step guide to taking your case to an employment tribunal without a solicitor.",category:"Employment",icon:_n},{slug:"small-claims-court-guide",title:"Small Claims Court Made Simple",description:"A UK-wide guide to making a claim, preparing evidence, and attending a hearing.",category:"Courts",icon:qe},{slug:"domestic-abuse-legal-protection",title:"Domestic Abuse and the Law",description:"Free legal routes to protection, including non-molestation orders and occupation orders.",category:"Safety",icon:Rt},{slug:"h08-council-duties-homelessness",title:"Council Duties If You're Facing Homelessness",description:"What your local council must legally do to help if you're at risk of becoming homeless.",category:"Housing",icon:Mt}],Q5={Housing:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",Employment:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",Courts:"bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-300",Safety:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300"};function X5(){return r.jsx("section",{className:"py-16 md:py-24 bg-muted/30",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsxs("div",{className:"mb-4 flex items-center justify-center gap-2",children:[r.jsx(Vn,{className:"h-6 w-6 text-primary"}),r.jsx("span",{className:"text-sm font-semibold uppercase tracking-wider text-primary",children:"Free Legal Guides"})]}),r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight md:text-4xl",children:"Know Your Rights"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"Expert legal guides written in plain English to help you understand your rights and navigate the UK legal system with confidence."})]}),r.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:Z5.map(e=>r.jsx(Q,{href:`/legal-guides/${e.slug}`,children:r.jsxs(W,{className:"h-full transition-all duration-200 hover-elevate cursor-pointer","data-testid":`card-article-${e.slug}`,children:[r.jsxs(le,{className:"pb-3",children:[r.jsxs("div",{className:"flex items-start justify-between gap-2 flex-wrap",children:[r.jsx(yt,{variant:"secondary",className:`${Q5[e.category]||""} no-default-hover-elevate no-default-active-elevate`,children:e.category}),r.jsx(e.icon,{className:"h-5 w-5 text-muted-foreground"})]}),r.jsx(ce,{className:"text-lg leading-tight mt-2",children:e.title})]}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})})]})},e.slug))}),r.jsx("div",{className:"mt-10 text-center",children:r.jsx(Q,{href:"/legal-guides",children:r.jsxs(pe,{size:"lg","data-testid":"button-view-all-articles",children:["View All Legal Guides",r.jsx(st,{className:"ml-2 h-4 w-4"})]})})})]})})}const J5="/assets/VID-20251024-WA0001_1765528004617-B0yaXYsn.mp4",e6="/assets/VID-20251024-WA0003_1765528004618-DRNyY6S_.mp4",t6="/assets/VID-20251024-WA0006_1765528004619-GFz5widS.mp4",n6="/assets/VID-20251024-WA0007_1765528004620-BtXQuVoR.mp4",r6="/assets/VID-20251024-WA0008_1765528004622-CPITUXHn.mp4",s6="/assets/VID-20251025-WA0002_1765528004623-BTJcPlPP.mp4",i6="/assets/VID-20251027-WA0004_1765528004625-CgaIJmch.mp4",a6="/assets/VID-20251028-WA0001_1765528004626-xuhr0r0c.mp4",o6="/assets/VID-20251028-WA0002_1765528004626-DLNMP5xU.mp4",l6="/assets/VID-20251109-WA0001_1765528004627-DheFzlDO.mp4",c6=[{id:4,video:n6},{id:5,video:r6},{id:6,video:s6},{id:7,video:i6},{id:8,video:a6},{id:9,video:o6},{id:10,video:l6},{id:1,video:J5},{id:2,video:e6},{id:3,video:t6}];function u6({video:e,id:t}){const[n,s]=y.useState(!1);return r.jsx(W,{className:"overflow-visible","data-testid":`card-testimonial-${t}`,children:r.jsx($,{className:"p-0",children:r.jsxs("div",{className:"relative aspect-video overflow-hidden rounded-md",children:[r.jsx("video",{src:e,className:"h-full w-full object-cover",controls:n,playsInl
487ine:!0,onPlay:()=>s(!0),onPause:()=>s(!1),"data-testid":`video-testimonial-${t}`}),!n&&r.jsx("button",{onClick:i=>{i.currentTarget.previousElementSibling.play()},className:"absolute inset-0 flex items-center justify-center bg-black/30 transition-colors hover:bg-black/40","data-testid":`button-play-${t}`,children:r.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-primary text-primary-foreground",children:r.jsx(q_,{className:"h-8 w-8 ml-1"})})})]})})})}function d6(){return r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-testimonials-title",children:"What Our Clients Say"}),r.jsx("p",{className:"mx-auto max-w-2xl text-lg text-muted-foreground","data-testid":"text-testimonials-subtitle",children:"Hear directly from individuals we've helped navigate the legal system."})]}),r.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:c6.map(e=>r.jsx(u6,{video:e.video,id:e.id},e.id))})]})})}const m6=[{id:6,title:"Law Students to Support Traveller Families Locked Out of Justice System",source:"LawNews.co.uk",date:"February 2026",excerpt:"The National Community Law Project (TNCLP) CIC has launched a pioneering project to provide essential legal support to traveller families who have traditionally been marginalized and 'locked out' of the UK justice system.",url:"/legal-guides/press-release-law-students-traveller-support"},{id:1,title:"Hear From The National Community Law Project CIC's Founders and Directors",source:"LawNews.co.uk",date:"March 2023",excerpt:"Dane Marks, Aaron Hunter, Hansam Yim and Daniel Onafuwa comment on their involvement in The National Community Law Project CIC and its importance in addressing the access to justice crisis.",url:"https://www.lawnews.co.uk/business/hear-from-the-national-community-law-project-cics-founders-and-directors/"},{id:2,title:"Third Six Pupil Sophie Howard to Judge Moot at Cardiff University",source:"St John's Chambers",date:"2023",excerpt:"Pupil barrister Sophie Howard judges a mooting competition at Cardiff University to raise funds for The National Community Law Project.",url:"https://www.stjohnschambers.co.uk/news/third-six-pupil-sophie-howard-to-judge-moot-at-cardiff-university-to-raise-funds-for-the-national-community-law-project"},{id:3,title:"New Mooting Event to Support Student-Led Charity",source:"Legal News Wales",date:"2023",excerpt:"A new mooting event has been organised to support The National Community Law Project, a student-led organisation addressing access to justice.",url:"https://www.legalnewswales.com/news/new-mooting-event-to-support-student-led-charity/"},{id:4,title:"Cardiff University Law Society",source:"LawNews.co.uk",date:"2023",excerpt:"Coverage of Cardiff University Law Society's partnership with The National Community Law Project CIC.",url:"https://www.lawnews.co.uk/tag/cardiff-university-law-society/"},{id:5,title:"Fundraising Mooting Competition at Cardiff University",source:"LawNews.co.uk",date:"2023",excerpt:"Cardiff University hosts a fundraising mooting competition in support of The National Community Law Project.",url:"https://www.lawnews.co.uk/charity/fundraising-mooting-competition-at-cardiff-university-for-the-national-community-law-project/"}],h6=[{id:1,title:"Legal Awards 2023 Winner",organization:"Acquisition International",year:"2023",description:"Recognised for excellence in providing accessible legal support and addressing the access to justice crisis in the UK.",url:"https://www.acquisition-international.com/winners/the-national-community-law-project-cic/"}],p6=[{id:1,title:"Companies House Registration",description:"View our official registration as a Community Interest Company (CIC No. 13353358)",source:"GOV.UK",icon:Wn,url:"https://find-and-update.company-information.service.gov.uk/company/13353358"},{id:2,title:"Support Our Mission",description:"Help us continue providing affordable legal support to those who need it most",source:"GoFundMe",icon:Rt,url:"https://www.gofundme.com/f/the-national-community-law-project-cic-appeal"}];function f6(){return r.jsx("section",{className:"bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-media-title",children:"Media & Press"}),r.jsx("p",{className:"mx-auto max-w-2xl text-lg text-muted-foreground","data-testid":"text-media-subtitle",children:"Read about our work and our mission to improve access to justice."})]}),r.jsxs("div",{className:"mb-12",children:[r.jsxs("h3",{className:"mb-6 text-xl font-semibold flex items-center gap-2",children:[r.jsx(H_,{className:"h-5 w-5"}),"Press Coverage"]}),r.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:m6.map(e=>r.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block",children:r.jsxs(W,{className:"h-full hover-elevate","data-testid":`card-press-${e.id}`,children:[r.jsxs(le,{className:"pb-2",children:[r.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[r.jsx(yt,{variant:"secondary",children:e.source}),r.jsx("span",{className:"text-sm text-muted-foreground",children:e.date})]}),r.jsx(ce,{className:"text-base leading-snug",children:e.title})]}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground line-clamp-3",children:e.excerpt})})]})},e.id))})]}),r.jsxs("div",{className:"grid gap-8 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsxs("h3",{className:"mb-4 text-xl font-semibold flex items-center gap-2",children:[r.jsx(lv,{className:"h-5 w-5"}),"Awards & Recognition"]}),r.jsx("div",{className:"space-y-4",children:h6.map(e=>r.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block",children:r.jsx(W,{className:"hover-elevate","data-testid":`card-award-${e.id}`,children:r.jsxs($,{className:"py-4",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[r.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-md bg-amber-500/10 dark:bg-amber-500/20",children:r.jsx(lv,{className:"h-6 w-6 text-amber-500"})}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:e.title}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(yt,{variant:"outline",className:"text-xs",children:e.organization}),r.jsx("span",{className:"text-sm text-muted-foreground",children:e.year})]})]})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]})})},e.id))})]}),r.jsxs("div",{children:[r.jsxs("h3",{className:"mb-4 text-xl font-semibold flex items-center gap-2",children:[r.jsx(Wn,{className:"h-5 w-5"}),"Official Links"]}),r.jsx("div",{className:"space-y-4",children:p6.map(e=>r.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block",children:r.jsx(W,{className:"hover-elevate","data-testid":`card-official-${e.id}`,children:r.jsxs($,{className:"flex items-center gap-4 py-4",children:[r.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-md bg-primary/10",children:r.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx("p",{className:"font-medium",children:e.title}),r.jsx(yt,{variant:"outline",className:"text-xs",children:e.source})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]}),r.jsx(yg,{className:"h-4 w-4 shrink-0 text-muted-foreground"})]})})},e.id))})]})]})]})})}const g6="/assets/professional_diverse_e7f0579d-DEhhxS1m.jpg",x6=[{icon:_n,text:"Real-world legal experience"},{icon:_e,text:"Client interaction across diverse issues"},{icon:j1,text:"Remote and flexible opportunities"},{icon:po,text:"Training in case management"}];function y6(){return r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsx("div",{className:"overflow-hidden rounded-lg border bg-card",children:r.jsxs("div",{className:"grid lg:grid-cols-2",children:[r.jsxs("div",{className:"relative min-h-[300px] lg:min-h-full",children:[r.jsx("img",{src:g6,alt:"Team meeting",className:"absolute inset-0 h-full w-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/60 to-transparent lg:bg-gradient-to-t"})]}),r.jsxs("div",{className:"p-8 lg:p-12",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-join-title",children:"Join Our Team"}),r.jsx("p",{className:"mb-6 text-lg text-muted-foreground","data-testid":"text-join-description",children:"Are you a law student or recent graduate? Join our team and gain invaluable experience while making a real difference in people's lives."}),r.jsx("div",{className:"mb-8 grid gap-4 sm:grid-cols-2",children:x6.map((e,t)=>r.jsxs("div",{className:"flex items-center gap-3","data-testid":`benefit-${t}`,children:[r.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:r.jsx(e.icon,{className:"h-5 w-5 text-primary"})}),r.jsx("span",{className:"text-sm font-medium",children:e.text})]},t))}),r.jsx(Q,{href:"/join",children:r.jsxs(pe,{size:"lg",className:"gap-2","data-testid":"button-join-apply",children:["Join Our Team",r.jsx(st,{className:"h-4 w-4"})]})})]})]})})})})}var Lk={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Iv=Ie.createContext&&Ie.createContext(Lk),v6=["attr","size","title"];function w6(e,t){if(e==null)return{};var n=b6(e,t),s,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)s=a[i],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function b6(e,t){if(e==null)return{};var n={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function Ku(){return Ku=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},Ku.apply(this,arguments)}function Lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,s)}return n}function Gu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
487t%2?Lv(Object(n),!0).forEach(function(s){j6(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lv(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function j6(e,t,n){return t=N6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N6(e){var t=k6(e,"string");return typeof t=="symbol"?t:t+""}function k6(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ok(e){return e&&e.map((t,n)=>Ie.createElement(t.tag,Gu({key:n},t.attr),Ok(t.child)))}function Mk(e){return t=>Ie.createElement(C6,Ku({attr:Gu({},e.attr)},t),Ok(e.child))}function C6(e){var t=n=>{var{attr:s,size:i,title:a}=e,o=w6(e,v6),l=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),Ie.createElement("svg",Ku({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,s,o,{className:c,style:Gu(Gu({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&Ie.createElement("title",null,a),e.children)};return Iv!==void 0?Ie.createElement(Iv.Consumer,null,n=>t(n)):t(Lk)}function S6(e){return Mk({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},child:[]}]})(e)}function E6(e){return Mk({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"},child:[]}]})(e)}const T6="/assets/12_dec_1765717597778-B81jPJ_r.png",P6="/assets/IoD-badges-2025-member-web_1765717597780-C-zFkLJv.png",_6="/assets/IoD_Code_of_Conduct_kitemark_1765717597780-DooMAO03.png",A6="/assets/WhatsApp_Image_2025-07-29_at_16.16.02_5a9effd5_1765717597781-Pqnht9B2.jpg",R6="/assets/RS51464_FSB_Member_Logo_Dark_Blue_1765717825373-FzRMntJF.png",Io={support:[{label:"How We Help",href:"/how-we-support"},{label:"Our Services",href:"/services"},{label:"Support Areas",href:"/support-areas"},{label:"Pricing",href:"/pricing"},{label:"Complaints",href:"/complaint-management"},{label:"Mock Training",href:"/mock-training"}],hubs:[{label:"Legal Help Hub",href:"/legal-help-hub"},{label:"Vulnerable People",href:"/vulnerable-people"},{label:"Equality Act 2010",href:"/equality-act"},{label:"Fraud & Scam Awareness",href:"/fraud-scam-awareness"},{label:"Housing Protection",href:"/housing-protection"},{label:"Litigants in Person",href:"/litigants-in-person"},{label:"Low-Income Support",href:"/low-income-support"}],business:[{label:"White Label Support",href:"/business-services"},{label:"Business Complaints",href:"/complaint-management"}],about:[{label:"About Us",href:"/about"},{label:"Our Team",href:"/team"},{label:"Join Our Team",href:"/join"},{label:"Contact Us",href:"/contact"}],resources:[{label:"UK Legal System",href:"/legal-system"},{label:"Legal Professions",href:"/legal-professions"},{label:"Privacy & Data",href:"/privacy-policy"},{label:"Safeguarding",href:"/safeguarding"},{label:"Policies & Compliance",href:"/policies"},{label:"Support Our Work",href:"https://www.gofundme.com/f/the-national-community-law-project-cic-appeal",external:!0}]};function Ce(){return r.jsx("footer",{className:"border-t bg-card",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-12 md:px-6 md:py-16",children:[r.jsxs("div",{className:"grid gap-8 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6",children:[r.jsxs("div",{className:"lg:col-span-1 xl:col-span-1",children:[r.jsx(Q,{href:"/",className:"mb-4 flex items-center gap-2",children:r.jsx("img",{src:kk,alt:"National Community Law Project",className:"h-16 w-auto","data-testid":"img-footer-logo"})}),r.jsx("p",{className:"mb-4 max-w-xs text-sm text-muted-foreground",children:"Bridging the gap between people and justice. Affordable legal support at £50/hour."}),r.jsxs("div",{className:"mb-4 space-y-1 text-sm text-muted-foreground",children:[r.jsxs("p",{children:[r.jsx("a",{href:"tel:07476949692",className:"hover:text-foreground","data-testid":"link-footer-phone",children:"07476 949692"}),r.jsx("span",{className:"text-xs",children:" (Call, WhatsApp or Text)"})]}),r.jsx("p",{children:r.jsx("a",{href:"mailto:[email protected]",className:"hover:text-foreground","data-testid":"link-footer-email",children:"[email protected]"})})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx("a",{href:"https://uk.linkedin.com/company/community-law-project-uk-ltd",target:"_blank",rel:"noopener noreferrer",children:r.jsx(pe,{variant:"ghost",size:"icon","data-testid":"link-linkedin",children:r.jsx(S6,{className:"h-4 w-4"})})}),r.jsx("a",{href:"https://twitter.com/thecommunityla1",target:"_blank",rel:"noopener noreferrer",children:r.jsx(pe,{variant:"ghost",size:"icon","data-testid":"link-twitter",children:r.jsx(E6,{className:"h-4 w-4"})})})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"mb-4 font-semibold",children:"Get Support"}),r.jsx("ul",{className:"space-y-2",children:Io.support.map((e,t)=>r.jsx("li",{children:r.jsx(Q,{href:e.href,className:"text-sm text-muted-foreground hover:text-foreground","data-testid":`link-footer-support-${e.label.toLowerCase().replace(/\s+/g,"-")}`,children:e.label})},t))})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"mb-4 font-semibold",children:"Legal Hubs"}),r.jsx("ul",{className:"space-y-2",children:Io.hubs.map((e,t)=>r.jsx("li",{children:r.jsx(Q,{href:e.href,className:"text-sm text-muted-foreground hover:text-foreground","data-testid":`link-footer-hub-${e.label.toLowerCase().replace(/\s+/g,"-")}`,children:e.label})},t))})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"mb-4 font-semibold",children:"Business Services"}),r.jsx("ul",{className:"space-y-2",children:Io.business.map((e,t)=>r.jsx("li",{children:r.jsx(Q,{href:e.href,className:"text-sm text-muted-foreground hover:text-foreground","data-testid":`link-footer-business-${e.label.toLowerCase().replace(/\s+/g,"-")}`,children:e.label})},t))})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"mb-4 font-semibold",children:"About Us"}),r.jsx("ul",{className:"space-y-2",children:Io.about.map((e,t)=>r.jsx("li",{children:r.jsx(Q,{href:e.href,className:"text-sm text-muted-foreground hover:text-foreground","data-testid":`link-footer-about-${e.label.toLowerCase().replace(/\s+/g,"-")}`,children:e.label})},t))})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"mb-4 font-semibold",children:"Resources"}),r.jsx("ul",{className:"space-y-2",children:Io.resources.map((e,t)=>r.jsx("li",{children:e.external?r.jsx("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-foreground","data-testid":`link-footer-resources-${e.label.toLowerCase().replace(/\s+/g,"-")}`,children:e.label}):r.jsx(Q,{href:e.href,className:"text-sm text-muted-foreground hover:text-foreground","data-testid":`link-footer-resources-${e.label.toLowerCase().replace(/\s+/g,"-")}`,children:e.label})},t))})]})]}),r.jsxs("div",{className:"mt-12 border-t pt-8",children:[r.jsx("h3",{className:"mb-6 text-center text-sm font-semibold",children:"Accreditations & Memberships"}),r.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-6",children:[r.jsx("img",{src:T6,alt:"Disability Confident Committed",className:"h-16 w-auto","data-testid":"img-disability-confident"}),r.jsx("img",{src:P6,alt:"Institute of Directors Member 2025",className:"h-16 w-auto","data-testid":"img-iod-member"}),r.jsx("img",{src:_6,alt:"IoD Code of Conduct",className:"h-16 w-auto","data-testid":"img-iod-code"}),r.jsx("img",{src:A6,alt:"Certified Social Enterprise",className:"h-16 w-auto","data-testid":"img-social-enterprise"}),r.jsx("img",{src:R6,alt:"FSB Member",className:"h-12 w-auto","data-testid":"img-fsb-member"})]})]}),r.jsxs("div",{className:"mt-8 flex flex-col items-center justify-between gap-4 border-t pt-8 md:flex-row",children:[r.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 text-xs text-muted-foreground md:justify-start",children:[r.jsx("span",{children:"Registered CIC #13353358"}),r.jsx("span",{className:"hidden md:inline",children:"|"}),r.jsx("span",{children:"Established April 2021"}),r.jsx("span",{className:"hidden md:inline",children:"|"}),r.jsx("span",{children:"4th Floor, 14 Museum Place, Cardiff, Wales, CF10 3BH"})]}),r.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 text-xs text-muted-foreground",children:[r.jsx(Q,{href:"/privacy-policy",className:"hover:text-foreground","data-testid":"link-footer-privacy",children:"Privacy"}),r.jsx(Q,{href:"/terms-conditions",className:"hover:text-foreground","data-testid":"link-footer-terms",children:"Terms"}),r.jsx(Q,{href:"/accessibility",className:"hover:text-foreground","data-testid":"link-footer-accessibility",children:"Accessibility"}),r.jsx(Q,{href:"/policies",className:"hover:text-foreground","data-testid":"link-footer-all-policies",children:"All Policies"})]})]}),r.jsx("div",{className:"mt-4 text-center",children:r.jsxs("p",{className:"text-xs text-muted-foreground","data-testid":"text-copyright",children:["© ",new Date().getFullYear()," National Community Law Project CIC. All rights reserved."]})})]})})}function I6(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Community Legal Information & Support - Not a Law Firm",description:"The National Community Law Project CIC provides affordable legal information, guidance, and practical support at £50/hour. We help with housing, employment, family law, benef
487its, discrimination and more. We are NOT a law firm—we provide community legal support.",keywords:"affordable legal help UK, legal information, community law project, housing law help, employment law support, family law guidance, benefits appeal, discrimination support, self-representation help, McKenzie Friend support",canonicalUrl:"https://thenationalcommunitylawproject.com/"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx(W5,{}),r.jsx(B5,{}),r.jsx(Ak,{}),r.jsx(Rk,{}),r.jsx(Ik,{}),r.jsx(G5,{}),r.jsx(X5,{}),r.jsx("section",{className:"bg-muted/30 py-16 md:py-24",children:r.jsxs("div",{className:"container px-4 md:px-6",children:[r.jsx("div",{className:"flex flex-col items-center justify-center space-y-4 text-center",children:r.jsxs("div",{className:"space-y-2",children:[r.jsx("h2",{className:"text-3xl font-bold tracking-tighter sm:text-5xl",children:"Latest News"}),r.jsx("p",{className:"max-w-[800px] text-muted-foreground md:text-xl/relaxed",children:"Stay updated with our latest initiatives, collaborations, and community impact projects."})]})}),r.jsx("div",{className:"mx-auto grid max-w-5xl items-center gap-8 py-12",children:r.jsxs("div",{className:"flex flex-col justify-center space-y-4 rounded-xl border bg-background p-8 shadow-sm transition-all hover:shadow-md",children:[r.jsxs("div",{className:"space-y-3",children:[r.jsx("div",{className:"inline-block rounded-full bg-primary/10 px-3 py-1 text-xs font-semibold text-primary",children:"Press Release"}),r.jsx("h3",{className:"text-2xl font-bold tracking-tight",children:"Law Students to Support Traveller Families Locked Out of Justice System"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"February 27, 2026"}),r.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"TNCLP CIC has launched a pioneering project bringing together law students and legal professionals to provide essential, affordable legal support to traveller families who have traditionally been marginalized by the UK justice system."})]}),r.jsx("div",{className:"pt-2",children:r.jsx("a",{href:"/legal-guides/press-release-law-students-traveller-support",className:"inline-flex h-11 items-center justify-center rounded-md bg-primary px-8 text-sm font-medium text-primary-foreground shadow transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:"Read Full Article"})})]})})]})}),r.jsx(d6,{}),r.jsx(f6,{}),r.jsx(y6,{})]}),r.jsx(Ce,{})]})}const L6=[{icon:Od,title:"Our Mission",description:"To bridge the gap between vulnerable individuals and the justice system by helping people who cannot afford legal representation compile case facts and connect them with appropriate legal professionals."},{icon:O_,title:"Our Vision",description:"A society where justice is accessible to all, regardless of economic circumstances or geographic location. We envision a future where no one faces legal challenges alone."},{icon:Rt,title:"Our Values",description:"Compassion, accessibility, and empowerment guide everything we do. We believe in treating every individual with dignity while providing professional, high-quality support."}];function O6(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"About Us - Community Interest Company for Legal Support",description:"Learn about the National Community Law Project CIC - a student and graduate-led initiative providing affordable legal support at £50/hour. Bridging the gap between people and justice since 2021.",keywords:"about community law project, CIC legal support, affordable legal help organisation, access to justice UK, community interest company legal services"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-16 text-primary-foreground md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-about-page-title",children:"About Us"}
487),r.jsx("p",{className:"text-lg text-primary-foreground/80","data-testid":"text-about-page-subtitle",children:"The National Community Law Project CIC is a student and graduate-led initiative addressing the crisis in access to justice across the United Kingdom."})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsx("div",{className:"grid gap-8 md:grid-cols-3",children:L6.map((e,t)=>r.jsx(W,{"data-testid":`card-value-${t}`,children:r.jsxs($,{className:"pt-6",children:[r.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",children:r.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),r.jsx("h3",{className:"mb-2 text-xl font-semibold",children:e.title}),r.jsx("p",{className:"text-muted-foreground",children:e.description})]})},t))})})}),r.jsx(Ak,{}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsx("h2",{className:"mb-8 text-center text-3xl font-bold tracking-tight md:text-4xl",children:"Our Approach"}),r.jsxs("div",{className:"prose prose-lg mx-auto dark:prose-invert",children:[r.jsx("p",{children:"We work at the grassroots level, embedding ourselves within communities rather than expecting people to travel to unfamiliar legal offices. Our services are delivered in community centres, libraries, faith buildings, and other accessible venues where people feel comfortable seeking support."}),r.jsx("p",{children:"Community legal education is central to our mission. We deliver workshops and information sessions that help people understand their rights and responsibilities, recognise legal problems early, and know where to seek appropriate help."}),r.jsx("p",{children:"As a Community Interest Company, we operate on the fundamental principle that justice should be accessible to all. Our asset lock ensures that any surplus generated by our activities is reinvested in expanding and improving our legal support services."})]})]})})]}),r.jsx(Ce,{})]})}const M6=["Individuals who cannot afford legal representation","Low-income families facing legal challenges","Vulnerable individuals navigating complex legal systems","Those without access to local legal aid providers","Anyone facing barriers to accessing justice"];function D6(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Our Services - Legal Information & Support (Not Legal Representation)",description:"Community legal information and practical support at £50/hour. We help you understand your rights, prepare documents, and represent yourself. We are NOT a law firm and cannot provide legal representation.",keywords:"legal information support UK, help representing yourself, document preparation, court procedure guidance, benefits appeal support, housing law information, employment law guidance",canonicalUrl:"https://thenationalcommunitylawproject.com/services"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-16 text-primary-foreground md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(yt,{variant:"secondary",className:"mb-4",children:"£50 per hour"}),r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-services-page-title",children:"Our Services"}),r.jsx("p",{className:"text-lg text-primary-foreground/80","data-testid":"text-services-page-subtitle",children:"Comprehensive legal support services at an affordable £50 per hour to help you navigate the justice system."})]})}),r.jsx(Rk,{}),r.jsx(Ik,{}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsxs("div",{className:"grid gap-8 lg:grid-cols-2",children:[r.jsxs(W,{children:[r.jsxs(le,{children:[r.jsx(ce,{children:"Who Can Use Our Services?"}),r.jsx(ot,{children:"Our services are available to anyone facing barriers to accessing legal support."})]}),r.jsx($,{children:r.jsx("ul",{className:"space-y-3",children:M6.map((e,t)=>r.jsxs("li",{className:"flex items-start gap-3","data-testid":`eligibility-${t}`,children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),r.jsx("span",{children:e})]},t))})})]}),r.jsxs(W,{children:[r.jsxs(le,{children:[r.jsx(ce,{children:"What We Don't Do"}),r.jsx(ot,{children:"It's important to understand our boundaries."})]}),r.jsxs($,{className:"space-y-4",children:[r.jsx("p",{className:"text-muted-foreground",children:"We are NOT solicitors and cannot provide legal advice. Our role is to:"}),r.jsxs("ul",{className:"list-disc space-y-2 pl-6 text-muted-foreground",children:[r.jsx("li",{children:"Help you prepare your case documentation"}),r.jsx("li",{children:"Connect you with qualified legal professionals"}),r.jsx("li",{children:"Provide information about your rights and options"}),r.jsx("li",{children:"Support you through the process of accessing justice"})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"For urgent legal matters requiring immediate professional advice, please contact a qualified solicitor directly."})]})]})]})})})]}),r.jsx(Ce,{})]})}
487const F6=[{category:"Housing & Homelessness",areas:[{icon:Mt,title:"Housing & Eviction Law",keywords:["eviction help near me","housing legal help","landlord dispute advice","housing disrepair legal help","homelessness legal support"],description:"Support for tenants facing eviction, disrepair issues, harassment, or housing disputes with landlords."},{icon:Wn,title:"Homelessness & Council Housing",keywords:["homeless legal advice","council housing refusal help","housing application rejected","homelessness prevention support","council housing complaint"],description:"Help with council housing applications, homelessness prevention, and challenging housing decisions."}]},{category:"Family & Personal",areas:[{icon:_e,title:"Family & Children Law",keywords:["family law legal advice","child arrangements help","domestic abuse legal support","parental rights advice","separation legal guidance"],description:"Support for family matters including separation, child arrangements, domestic abuse, and parental rights."},{icon:P1,title:"Elder Law & Safeguarding",keywords:["elder abuse legal help","care home complaint support","safeguarding legal advice","vulnerable adult legal support","elderly rights legal help"],description:"Protection and support for elderly individuals, care home issues, and safeguarding vulnerable adults."}]},{category:"Employment & Workplace",areas:[{icon:_n,title:"Employment Law",keywords:["employment law advice","unfair dismissal help","workplace discrimination support","employment contract dispute","employment rights advice"],description:"Help with unfair dismissal, workplace discrimination, wage disputes, and employment contract issues."},{icon:qe,title:"Equality & Discrimination Law",keywords:["discrimination legal help","equality act legal advice","discrimination at work help","racial discrimination legal support","equality rights legal advice"],description:"Support for discrimination cases under the Equality Act, including workplace and service discrimination."},{icon:Rt,title:"Disability Rights Law",keywords:["disability rights legal help","disability discrimination support","reasonable adjustments legal advice","disability discrimination at work","disabled access rights help"],description:"Advocacy for disability rights, reasonable adjustments, and challenging discrimination against disabled people."}]},{category:"Money & Consumer",areas:[{icon:Pp,title:"Debt & Money Law",keywords:["debt legal advice","bailiff legal help","creditor harassment help","debt dispute legal support","financial hardship legal advice"],description:"Help with debt problems, bailiff issues, creditor harassment, and financial hardship."},{icon:C1,title:"Consumer Rights Law",keywords:["consumer rights legal advice","faulty goods legal help","refund dispute support","consumer contract dispute","consumer law help"],description:"Support for consumer disputes, faulty goods, refund issues, and contract problems."},{icon:Pp,title:"Welfare Benefits Law",keywords:["benefits legal advice","PIP appeal help","universal credit dispute","benefits decision challenge","welfare rights support"],description:"Help understanding benefits entitlements, PIP appeals, Universal Credit disputes, and challenging decisions."}]},{category:"Civil & Public",areas:[{icon:cs,title:"Civil Disputes / Small Claims",keywords:["small claims legal help","civil dispute legal advice","contract dispute support","money owed legal help","legal advice for disputes"],description:"Support for small claims, contract disputes, money owed, and general civil matters."},{icon:Wn,title:"Public Law",keywords:["council decision legal challenge","judicial review legal help","council complaint legal support","public body legal challenge","maladministration complaint help"],description:"Help challenging council decisions, public body actions, and pursuing judicial review or maladministration complaints."},{icon:Ze,title:"Police Complaints & Public Authority Issues",keywords:["police complaint legal help","police misconduct support","complaint against police","rights after police incident","legal help police complaint"],description:"Support for complaints against police, misconduct issues, and understanding your rights after police incidents."}]},{category:"Health & Care",areas:[{icon:Ld,title:"Mental Health & Community Care Law",keywords:["mental health legal rights","sectioned mental health rights","community care legal advice","social services legal support","care assessment dispute"],description:"Support for mental health rights, sectioning issues, community care, and social services disputes."}]},{category:"Immigration & International",areas:[{icon:k1,title:"Immigration (Guidance / Non-Reserved)",keywords:["immigration legal guidance","visa refusal help","leave to remain support","immigration application help","home office decision challenge"],description:"Guidance on visa applications, leave to remain, and challenging Home Office decisions (non-reserved activities only)."}]},{category:"Business & Professional",areas:[{icon:Wn,title:"Business & 
487Commercial Law (Small Business)",keywords:["business legal advice","small business contract dispute","commercial lease legal help","business dispute support","licensing legal advice"],description:"Support for small businesses with contracts, commercial leases, disputes, and licensing issues."},{icon:vt,title:"Solicitor Disputes",keywords:["complaint against solicitor","solicitor overcharging dispute","legal ombudsman complaint help","solicitor negligence concern","dispute with solicitor"],description:"Help with complaints against solicitors, overcharging disputes, and Legal Ombudsman complaints."}]},{category:"Digital & Privacy",areas:[{icon:N1,title:"Data Protection & Online Harms",keywords:["data breach legal help","GDPR complaint support","misuse of personal data","online harassment legal help","privacy rights legal advice"],description:"Support for data breaches, GDPR issues, privacy rights, and online harassment."}]},{category:"Other Areas",areas:[{icon:b1,title:"Animal & Pet Law",keywords:["dangerous dog legal help","pet ownership dispute","landlord refusing pets","dog seizure legal advice","animal law legal support"],description:"Help with pet disputes, dangerous dog cases, landlord pet restrictions, and animal law issues."}]}];function z6(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Legal Support Areas - Housing, Employment, Family, Benefits & More",description:"Affordable legal support across housing law, employment disputes, family law, welfare benefits, consumer rights, disability discrimination, debt problems and more. Get help at £50/hour from the National Community Law Project CIC.",keywords:"housing legal help UK, employment law advice, family law support, welfare benefits appeal, consumer rights legal help, disability discrimination support, debt legal advice, eviction help, unfair dismissal support, PIP appeal help"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-16 text-primary-foreground md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-support-areas-title",children:"Support Areas"}),r.jsx("p",{className:"text-lg text-primary-foreground/80","data-testid":"text-support-areas-subtitle",children:"We provide support across a wide range of legal issues, helping you prepare your case and connecting you with specialists."})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsx("div",{className:"mb-12 text-center",children:r.jsx("p",{className:"mx-auto max-w-3xl text-lg text-muted-foreground",children:"Our trained team can assist with legal issues across many areas. We help prepare your case, provide legal information, and connect you with appropriate specialists. Browse our support areas below to find help for your situation."})}),r.jsx("div",{className:"space-y-16",children:F6.map((e,t)=>r.jsxs("div",{children:[r.jsx("h2",{className:"mb-6 text-2xl font-bold tracking-tight","data-testid":`text-category-${t}`,children:e.category}),r.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:e.areas.map((n,s)=>r.jsxs(W,{className:"h-full","data-testid":`card-support-area-${t}-${s}`,children:[r.jsx(le,{children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10",children:r.jsx(n.icon,{className:"h-5 w-5 text-primary"})}),r.jsx(ce,{className:"text-lg",children:n.title})]})}),r.jsxs($,{className:"space-y-4",children:[r.jsx(ot,{className:"text-base",children:n.description}),r.jsx("div",{className:"flex flex-wrap gap-1",children:n.keywords.slice(0,3).map((i,a)=>r.jsx(yt,{variant:"secondary",className:"text-xs",children:i},a))})]})]},s))})]},t))})]})}),r.jsx("section",{className:"bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Important Notice"}),r.jsx("p",{className:"mb-6 text-muted-foreground",children:"We are NOT solicitors and cannot provide legal advice, representation, or conduct litigation. Our role is to help you understand your situation, prepare documentation, and connect you with qualified legal professionals when needed."}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"For urgent legal matters requiring immediate professional advice, please contact a qualified solicitor directly."})]})})]}),r.jsx(Ce,{})]})}var Gg="Avatar",[U6,p$]=qn(Gg),[W6,Dk]=U6(Gg),Fk=y.forwardRef((e,t)=>
vendor: 4,443 bytes, lines 487-489
487{const{__scopeAvatar:n,...s}=e,[i,a]=y.useState("idle");return r.jsx(W6,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:r.jsx(he.span,{...s,ref:t})})});Fk.displayName=Gg;var zk="AvatarImage",Uk=y.forwardRef((e,t)=>{const{__scopeAvatar:n,src:s,onLoadingStatusChange:i=()=>{},...a}=e,o=Dk(zk,n),l=$6(s,a),c=xt(u=>{i(u),o.onImageLoadingStatusChange(u)});return pt(()=>{l!=="idle"&&c(l)},[l,c]),l==="loaded"?r.jsx(he.img,{...a,ref:t,src:s}):null});Uk.displayName=zk;var Wk="AvatarFallback",$k=y.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:s,...i}=e,a=Dk(Wk,n),[o,l]=y.useState(s===void 0);return y.useEffect(()=>{if(s!==void 0){const c=window.setTimeout(()=>l(!0),s);return()=>window.clearTimeout(c)}},[s]),o&&a.imageLoadingStatus!=="loaded"?r.jsx(he.span,{...i,ref:t}):null});$k.displayName=Wk;function Ov(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function $6(e,{referrerPolicy:t,crossOrigin:n}){const s=H6(),i=y.useRef(null),a=s?(i.current||(i.current=new window.Image),i.current):null,[o,l]=y.useState(()=>Ov(a,e));return pt(()=>{l(Ov(a,e))},[a,e]),pt(()=>{const c=m=>()=>{l(m)};if(!a)return;const u=c("loaded"),d=c("error");return a.addEventListener("load",u),a.addEventListener("error",d),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",d)}},[a,n,t]),o}function B6(){return()=>{}}function H6(){return y.useSyncExternalStore(B6,()=>!0,()=>!1)}var Bk=Fk,Hk=Uk,Vk=$k;const qk=y.forwardRef(({className:e,...t},n)=>r.jsx(Bk,{ref:n,className:xe(`
488      after:content-[''] after:block after:absolute after:inset-0 after:rounded-full after:pointer-events-none after:border after:border-black/10 dark:after:border-white/10
489      relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full`,e),...t}));qk.displayName=Bk.displayName;const V6=y.forwardRef(({className:e,...t},n)=>r.jsx(Hk,{ref:n,className:xe("aspect-square h-full w-full",e),...t}));V6.displayName=Hk.displayName;const Kk=y.forwardRef(({className:e,...t},n)=>r.jsx(Vk,{ref:n,className:xe("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Kk.displayName=Vk.displayName;const q6=[{name:"Dane Marks",role:"Co-Founder & Director",initials:"DM"}];function K6(){return r.jsx("section",{className:"bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-team-title",children:"Our Leadership Team"}),r.jsx("p",{className:"mx-auto max-w-2xl text-lg text-muted-foreground","data-testid":"text-team-subtitle",children:"Meet the dedicated individuals driving our mission to make justice accessible for everyone."})]}),r.jsx("div",{className:"flex justify-center",children:q6.map((e,t)=>r.jsx(W,{className:"text-center","data-testid":`card-team-${t}`,children:r.jsxs($,{className:"pt-6",children:[r.jsx(qk,{className:"mx-auto mb-4 h-20 w-20",children:r.jsx(Kk,{className:"bg-primary text-lg text-primary-foreground",children:e.initials})}),r.jsx("h3",{className:"mb-1 font-semibold",children:e.name}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.role})]})},t))}),r.jsxs("div",{className:"mt-12 text-center",children:[r.jsx("p",{className:"mb-4 text-muted-foreground",children:"Plus our dedicated team of law students and graduates from universities across the UK."}),r.jsx(yt,{variant:"secondary",className:"text-sm",children:"18-33 Active Team Members"})]})]})})}function G6(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Our Team - Legal Support Professionals",description:"Meet the dedicated team at National Community Law Project CIC. Our student and graduate-led team brings fresh perspectives and genuine commitment to making justice accessible for everyone.",keywords:"community law project team, legal support team UK, law graduates helping community, affordable legal help team"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-16 text-primary-foreground md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-team-page-title",children:"Our Team"}
vendor: 4,549 bytes, line 489
489),r.jsx("p",{className:"text-lg text-primary-foreground/80","data-testid":"text-team-page-subtitle",children:"Meet the dedicated individuals working to make justice accessible for everyone."})]})}),r.jsx(K6,{}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:r.jsx(W,{className:"bg-muted",children:r.jsxs($,{className:"py-8",children:[r.jsx(K_,{className:"mx-auto mb-4 h-8 w-8 text-primary"}),r.jsx("blockquote",{className:"text-center text-xl font-medium italic","data-testid":"text-quote",children:'"Our student and graduate-led model creates unique opportunities for innovation in legal service delivery whilst providing valuable learning experiences for future legal professionals."'}),r.jsx("p",{className:"mt-4 text-center text-muted-foreground",children:"— The National Community Law Project CIC"})]})})})}),r.jsx("section",{className:"bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight md:text-4xl",children:"Our Parent Organisation"}),r.jsx("p",{className:"mb-6 text-lg text-muted-foreground",children:"The National Community Law Project CIC operates under The National Community Project, an umbrella organisation that oversees four Community Interest Companies dedicated to supporting vulnerable communities across the UK."}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Company Registration: #13353358 | Established: April 23, 2021 | 4th Floor, 14 Museum Place, Cardiff, Wales, CF10 3BH"})]})})]}),r.jsx(Ce,{})]})}const zn=y.forwardRef(({className:e,type:t,...n},s)=>r.jsx("input",{type:t,className:xe("flex h-9 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:s,...n}));zn.displayName="Input";const Gd=y.forwardRef(({className:e,...t},n)=>r.jsx("textarea",{className:xe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Gd.displayName="Textarea";var Y6="Label",Gk=y.forwardRef((e,t)=>r.jsx(he.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())}}));Gk.displayName=Y6;var Yk=Gk;const Z6=ho("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Vt=y.forwardRef(({className:e,...t},n)=>r.jsx(Yk,{ref:n,className:xe(Z6(),e),...t}));Vt.displayName=Yk.displayName;function Mv(e,[t,n]){return Math.min(n,Math.max(t,e))}var Q6=[" ","Enter","ArrowUp","ArrowDown"],X6=[" ","Enter"],ic="Select",[Yd,Zd,J6]=uo(ic),[vo,f$]=qn(ic,[J6,Ud]),Qd=Ud(),[eI,ni]=vo(ic),[tI,nI]=vo(ic),Zk=e=>{const{__scopeSelect:t,children:n,open:s,defaultOpen:i,onOpenChange:a,value:o,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:m,disabled:h,required:p,form:v}=e,f=Qd(t),[b,g]=y.useState(null),[x,w]=y.useState(null),[j,k]=y.useState(!1),N=sc(u),[T=!1,R]=hr({prop:s,defaultProp:i,onChange:a}),[O,S]=hr({prop:o,defaultProp:l,onChange:c}),F=y.useRef(null),L=b?v||!!b.closest("form"):!0,[B,z]=y.useState(new Set),G=Array.from(B).map(Z=>Z.props.value).join(";");return r.jsx(WR,{...f,children:r.jsxs(eI,{required:p,scope:t,trigger:b,onTriggerChange:g,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:j,onValueNodeHasChildrenChange:k,contentId:$n(),value:O,onValueChange:S,open:T,onOpenChange:R,dir:N,triggerPointerDownPosRef:F,disabled:h,children:[r.jsx(Yd.Provider,{scope:t,children:r.jsx(tI,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(Z=>{z(ee=>new Set(ee).add(Z))},[]),onNativeOptionRemove:y.useCallback(Z=>{z(ee=>{const D=new Set(ee);return D.delete(Z),D})},[]),children:n})}),L?r.jsxs(b2,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:m,value:O,onChange:Z=>S(Z.target.value),disabled:h,form:v,children:[O===void 0?r.jsx("option",{value:""}):null,Array.from(B)]},G):null]})})};Zk.displayName=ic;var Qk="SelectTrigger",Xk=y.forwardRef((e,t)=>
vendor: 2,983 bytes, line 489
489{const{__scopeSelect:n,disabled:s=!1,...i}=e,a=Qd(n),o=ni(Qk,n),l=o.disabled||s,c=Ke(t,o.onTriggerChange),u=Zd(n),d=y.useRef("touch"),[m,h,p]=j2(f=>{const b=u().filter(w=>!w.disabled),g=b.find(w=>w.value===o.value),x=N2(b,f,g);x!==void 0&&o.onValueChange(x.value)}),v=f=>{l||(o.onOpenChange(!0),p()),f&&(o.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return r.jsx(aN,{asChild:!0,...a,children:r.jsx(he.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":w2(o.value)?"":void 0,...i,ref:c,onClick:ie(i.onClick,f=>{f.currentTarget.focus(),d.current!=="mouse"&&v(f)}),onPointerDown:ie(i.onPointerDown,f=>{d.current=f.pointerType;const b=f.target;b.hasPointerCapture(f.pointerId)&&b.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(v(f),f.preventDefault())}),onKeyDown:ie(i.onKeyDown,f=>{const b=m.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&h(f.key),!(b&&f.key===" ")&&Q6.includes(f.key)&&(v(),f.preventDefault())})})})});Xk.displayName=Qk;var Jk="SelectValue",e2=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:i,children:a,placeholder:o="",...l}=e,c=ni(Jk,n),{onValueNodeHasChildrenChange:u}=c,d=a!==void 0,m=Ke(t,c.onValueNodeChange);return pt(()=>{u(d)},[u,d]),r.jsx(he.span,{...l,ref:m,style:{pointerEvents:"none"},children:w2(c.value)?r.jsx(r.Fragment,{children:o}):a})});e2.displayName=Jk;var rI="SelectIcon",t2=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,...i}=e;return r.jsx(he.span,{"aria-hidden":!0,...i,ref:t,children:s||"▼"})});t2.displayName=rI;var sI="SelectPortal",n2=e=>r.jsx(Ad,{asChild:!0,...e});n2.displayName=sI;var Di="SelectContent",r2=y.forwardRef((e,t)=>{const n=ni(Di,e.__scopeSelect),[s,i]=y.useState();if(pt(()=>{i(new DocumentFragment)},[]),!n.open){const a=s;return a?Hi.createPortal(r.jsx(s2,{scope:e.__scopeSelect,children:r.jsx(Yd.Slot,{scope:e.__scopeSelect,children:r.jsx("div",{children:e.children})})}),a):null}return r.jsx(i2,{...e,ref:t})});r2.displayName=Di;var Xn=10,[s2,ri]=vo(Di),iI="SelectContentImpl",aI=Qa("SelectContent.RemoveScroll"),i2=y.forwardRef((e,t)=>{const{__scopeSelect:n,position:s="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:m,collisionBoundary:h,collisionPadding:p,sticky:v,hideWhenDetached:f,avoidCollisions:b,...g}=e,x=ni(Di,n),[w,j]=y.useState(null),[k,N]=y.useState(null),T=Ke(t,me=>j(me)),[R,O]=y.useState(null),[S,F]=y.useState(null),L=Zd(n),[B,z]=y.useState(!1),G=y.useRef(!1);y.useEffect(()=>{if(w)return EN(w)},[w]),yN();const Z=y.useCallback(me=>{const[De,...et]=L().map(He=>He.ref.current),[Fe]=et.slice(-1),Le=document.activeElement;for(const He of me)if(He===Le||(He==null||He.scrollIntoView({block:"nearest"}
vendor: 13,856 bytes, line 489
489),He===De&&k&&(k.scrollTop=0),He===Fe&&k&&(k.scrollTop=k.scrollHeight),He==null||He.focus(),document.activeElement!==Le))return},[L,k]),ee=y.useCallback(()=>Z([R,w]),[Z,R,w]);y.useEffect(()=>{B&&ee()},[B,ee]);const{onOpenChange:D,triggerPointerDownPosRef:q}=x;y.useEffect(()=>{if(w){let me={x:0,y:0};const De=Fe=>{var Le,He;me={x:Math.abs(Math.round(Fe.pageX)-(((Le=q.current)==null?void 0:Le.x)??0)),y:Math.abs(Math.round(Fe.pageY)-(((He=q.current)==null?void 0:He.y)??0))}},et=Fe=>{me.x<=10&&me.y<=10?Fe.preventDefault():w.contains(Fe.target)||D(!1),document.removeEventListener("pointermove",De),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",De),document.addEventListener("pointerup",et,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",De),document.removeEventListener("pointerup",et,{capture:!0})}}},[w,D,q]),y.useEffect(()=>{const me=()=>D(!1);return window.addEventListener("blur",me),window.addEventListener("resize",me),()=>{window.removeEventListener("blur",me),window.removeEventListener("resize",me)}},[D]);const[C,de]=j2(me=>{const De=L().filter(Le=>!Le.disabled),et=De.find(Le=>Le.ref.current===document.activeElement),Fe=N2(De,me,et);Fe&&setTimeout(()=>Fe.ref.current.focus())}),Ee=y.useCallback((me,De,et)=>{const Fe=!G.current&&!et;(x.value!==void 0&&x.value===De||Fe)&&(O(me),Fe&&(G.current=!0))},[x.value]),E=y.useCallback(()=>w==null?void 0:w.focus(),[w]),Be=y.useCallback((me,De,et)=>{const Fe=!G.current&&!et;(x.value!==void 0&&x.value===De||Fe)&&F(me)},[x.value]),wt=s==="popper"?Up:a2,ze=wt===Up?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:m,collisionBoundary:h,collisionPadding:p,sticky:v,hideWhenDetached:f,avoidCollisions:b}:{};return r.jsx(s2,{scope:n,content:w,viewport:k,onViewportChange:N,itemRefCallback:Ee,selectedItem:R,onItemLeave:E,itemTextRefCallback:Be,focusSelectedItem:ee,selectedItemText:S,position:s,isPositioned:B,searchRef:C,children:r.jsx(Dg,{as:aI,allowPinchZoom:!0,children:r.jsx(Mg,{asChild:!0,trapped:x.open,onMountAutoFocus:me=>{me.preventDefault()},onUnmountAutoFocus:ie(i,me=>{var De;(De=x.trigger)==null||De.focus({preventScroll:!0}),me.preventDefault()}),children:r.jsx(mo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:me=>me.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:r.jsx(wt,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:me=>me.preventDefault(),...g,...ze,onPlaced:()=>z(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:ie(g.onKeyDown,me=>{const De=me.ctrlKey||me.altKey||me.metaKey;if(me.key==="Tab"&&me.preventDefault(),!De&&me.key.length===1&&de(me.key),["ArrowUp","ArrowDown","Home","End"].includes(me.key)){let Fe=L().filter(Le=>!Le.disabled).map(Le=>Le.ref.current);if(["ArrowUp","End"].includes(me.key)&&(Fe=Fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(me.key)){const Le=me.target,He=Fe.indexOf(Le);Fe=Fe.slice(He+1)}setTimeout(()=>Z(Fe)),me.preventDefault()}})})})})})})});i2.displayName=iI;var oI="SelectItemAlignedPosition",a2=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:s,...i}=e,a=ni(Di,n),o=ri(Di,n),[l,c]=y.useState(null),[u,d]=y.useState(null),m=Ke(t,T=>d(T)),h=Zd(n),p=y.useRef(!1),v=y.useRef(!0),{viewport:f,selectedItem:b,selectedItemText:g,focusSelectedItem:x}=o,w=y.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&f&&b&&g){const T=a.trigger.getBoundingClientRect(),R=u.getBoundingClientRect(),O=a.valueNode.getBoundingClientRect(),S=g.getBoundingClientRect();if(a.dir!=="rtl"){const Le=S.left-R.left,He=O.left-Le,It=T.left-He,Zt=T.width+It,yr=Math.max(Zt,R.width),Yn=window.innerWidth-Xn,Zn=Mv(He,[Xn,Math.max(Xn,Yn-yr)]);l.style.minWidth=Zt+"px",l.style.left=Zn+"px"}else{const Le=R.right-S.right,He=window.innerWidth-O.right-Le,It=window.innerWidth-T.right-He,Zt=T.width+It,yr=Math.max(Zt,R.width),Yn=window.innerWidth-Xn,Zn=Mv(He,[Xn,Math.max(Xn,Yn-yr)]);l.style.minWidth=Zt+"px",l.style.right=Zn+"px"}const F=h(),L=window.innerHeight-Xn*2,B=f.scrollHeight,z=window.getComputedStyle(u),G=parseInt(z.borderTopWidth,10),Z=parseInt(z.paddingTop,10),ee=parseInt(z.borderBottomWidth,10),D=parseInt(z.paddingBottom,10),q=G+Z+B+D+ee,C=Math.min(b.offsetHeight*5,q),de=window.getComputedStyle(f),Ee=parseInt(de.paddingTop,10),E=parseInt(de.paddingBottom,10),Be=T.top+T.height/2-Xn,wt=L-Be,ze=b.offsetHeight/2,me=b.offsetTop+ze,De=G+Z+me,et=q-De;if(De<=Be){const Le=F.length>0&&b===F[F.length-1].ref.current;l.style.bottom="0px";const He=u.clientHeight-f.offsetTop-f.offsetHeight,It=Math.max(wt,ze+(Le?E:0)+He+ee),Zt=De+It;l.style.height=Zt+"px"}else{const Le=F.length>0&&b===F[0].ref.current;l.style.top="0px";const It=Math.max(Be,G+f.offsetTop+(Le?Ee:0)+ze)+et;l.style.height=It+"px",f.scrollTop=De-Be+f.offsetTop}l.style.margin=`${Xn}px 0`,l.style.minHeight=C+"px",l.style.maxHeight=L+"px",s==null||s(),requestAnimationFrame(()=>p.current=!0)}},[h,a.trigger,a.valueNode,l,u,f,b,g,a.dir,s]);pt(()=>w(),[w]);const[j,k]=y.useState();pt(()=>{u&&k(window.getComputedStyle(u).zIndex)},[u]);const N=y.useCallback(T=>{T&&v.current===!0&&(w(),x==null||x(),v.current=!1)},[w,x]);return r.jsx(cI,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:N,children:r.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:r.jsx(he.div,{...i,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});a2.displayName=oI;var lI="SelectPopperPosition",Up=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:s="start",collisionPadding:i=Xn,...a}=e,o=Qd(n);return r.jsx(oN,{...o,...a,ref:t,align:s,collisionPadding:i,style:{boxSizing:"border-box",...a.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)"}})});Up.displayName=lI;var[cI,Yg]=vo(Di,{}),Wp="SelectViewport",o2=y.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:s,...i}=e,a=ri(Wp,n),o=Yg(Wp,n),l=Ke(t,a.onViewportChange),c=y.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(Yd.Slot,{scope:n,children:r.jsx(he.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:ie(i.onScroll,u=>{const d=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&m){const p=Math.abs(c.current-d.scrollTop);if(p>0){const v=window.innerHeight-Xn*2,f=parseFloat(m.style.minHeight),b=parseFloat(m.style.height),g=Math.max(f,b);if(g<v){const x=g+p,w=Math.min(v,x),j=x-w;m.style.height=w+"px",m.style.bottom==="0px"&&(d.scrollTop=j>0?j:0,m.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});o2.displayName=Wp;var l2="SelectGroup",[uI,dI]=vo(l2),mI=y.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,i=$n();return r.jsx(uI,{scope:n,id:i,children:r.jsx(he.div,{role:"group","aria-labelledby":i,...s,ref:t})})});mI.displayName=l2;var c2="SelectLabel",u2=y.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,i=dI(c2,n);return r.jsx(he.div,{id:i.id,...s,ref:t})});u2.displayName=c2;var Yu="SelectItem",[hI,d2]=vo(Yu),m2=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:s,disabled:i=!1,textValue:a,...o}=e,l=ni(Yu,n),c=ri(Yu,n),u=l.value===s,[d,m]=y.useState(a??""),[h,p]=y.useState(!1),v=Ke(t,x=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,x,s,i)}),f=$n(),b=y.useRef("touch"),g=()=>{i||(l.onValueChange(s),l.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(hI,{scope:n,value:s,disabled:i,textId:f,isSelected:u,onItemTextChange:y.useCallback(x=>{m(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:r.jsx(Yd.ItemSlot,{scope:n,value:s,disabled:i,textValue:d,children:r.jsx(he.div,{role:"option","aria-labelledby":f,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:v,onFocus:ie(o.onFocus,()=>p(!0)),onBlur:ie(o.onBlur,()=>p(!1)),onClick:ie(o.onClick,()=>{b.current!=="mouse"&&g()}),onPointerUp:ie(o.onPointerUp,()=>{b.current==="mouse"&&g()}),onPointerDown:ie(o.onPointerDown,x=>{b.current=x.pointerType}),onPointerMove:ie(o.onPointerMove,x=>{var w;b.current=x.pointerType,i?(w=c.onItemLeave)==null||w.call(c):b.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ie(o.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:ie(o.onKeyDown,x=>{var j;((j=c.searchRef)==null?void 0:j.current)!==""&&x.key===" "||(X6.includes(x.key)&&g(),x.key===" "&&x.preventDefault())})})})})});m2.displayName=Yu;var Ho="SelectItemText",h2=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:i,...a}=e,o=ni(Ho,n),l=ri(Ho,n),c=d2(Ho,n),u=nI(Ho,n),[d,m]=y.useState(null),h=Ke(t,g=>m(g),c.onItemTextChange,g=>{var x;return(x=l.itemTextRefCallback)==null?void 0:x.call(l,g,c.value,c.disabled)}),p=d==null?void 0:d.textContent,v=y.useMemo(()=>r.jsx("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:f,onNativeOptionRemove:b}=u;return pt(()=>(f(v),()=>b(v)),[f,b,v]),r.jsxs(r.Fragment,{children:[r.jsx(he.span,{id:c.textId,...a,ref:h}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Hi.createPortal(a.children,o.valueNode):null]})});h2.displayName=Ho;var p2="SelectItemIndicator",f2=y.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return d2(p2,n).isSelected?r.jsx(he.span,{"aria-hidden":!0,...s,ref:t}):null});f2.displayName=p2;var $p="SelectScrollUpButton",g2=y.forwardRef((e,t)=>{const n=ri($p,e.__scopeSelect),s=Yg($p,e.__scopeSelect),[i,a]=y.useState(!1),o=Ke(t,s.onScrollButtonChange);return pt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;a(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?r.jsx(y2,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});g2.displayName=$p;var Bp="SelectScrollDownButton",x2=y.forwardRef((e,t)=>{const n=ri(Bp,e.__scopeSelect),s=Yg(Bp,e.__scopeSelect),[i,a]=y.useState(!1),o=Ke(t,s.onScrollButtonChange);return pt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?r.jsx(y2,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});x2.displayName=Bp;var y2=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:s,...i}=e,a=ri("SelectScrollButton",n),o=y.useRef(null),l=Zd(n),c=y.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return y.useEffect(()=>()=>c(),[c]),pt(()=>{var d;const u=l().find(m=>m.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),r.jsx(he.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:ie(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(s,50))}),onPointerMove:ie(i.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),o.current===null&&(o.current=window.setInterval(s,50))}),onPointerLeave:ie(i.onPointerLeave,()=>{c()})})}),pI="SelectSeparator",v2=y.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return r.jsx(he.div,{"aria-hidden":!0,...s,ref:t})});v2.displayName=pI;var Hp="SelectArrow",fI=y.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,i=Qd(n),a=ni(Hp,n),o=ri(Hp,n);return a.open&&o.position==="popper"?r.jsx(lN,{...i,...s,ref:t}):null});fI.displayName=Hp;function w2(e){return e===""||e===void 0}var b2=y.forwardRef((e,t)=>{const{value:n,...s}=e,i=y.useRef(null),a=Ke(t,i),o=YN(n);return y.useEffect(()=>{const l=i.current,c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==n&&d){const m=new Event("change",{bubbles:!0});d.call(l,n),l.dispatchEvent(m)}},[o,n]),r.jsx(ec,{asChild:!0,children:r.jsx("select",{...s,ref:a,defaultValue:n})})});b2.displayName="BubbleSelect";function j2(e){const t=xt(e),n=y.useRef(""),s=y.useRef(0),i=y.useCallback(o=>{const l=n.current+o;t(l),function c(u){n.current=u,window.clearTimeout(s.current),u!==""&&(s.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),a=y.useCallback(()=>{n.current="",window.clearTimeout(s.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(s.current),[]),[n,i,a]}function N2(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let o=gI(e,Math.max(a,0));i.length===1&&(o=o.filter(u=>u!==n));const c=o.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==n?c:void 0}function gI(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var xI=Zk,k2=Xk,yI=e2,vI=t2,wI=n2,C2=r2,bI=o2,S2=u2,E2=m2,jI=h2,NI=f2,T2=g2,P2=x2,_2=v2;const A2=xI,R2=yI,Zg=y.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(k2,{ref:s,className:xe("flex h-9 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
489ing-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,r.jsx(vI,{asChild:!0,children:r.jsx(nc,{className:"h-4 w-4 opacity-50"})})]}));Zg.displayName=k2.displayName;const I2=y.forwardRef(({className:e,...t},n)=>r.jsx(T2,{ref:n,className:xe("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(R_,{className:"h-4 w-4"})}));I2.displayName=T2.displayName;const L2=y.forwardRef(({className:e,...t},n)=>r.jsx(P2,{ref:n,className:xe("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(nc,{className:"h-4 w-4"})}));L2.displayName=P2.displayName;const Qg=y.forwardRef(({className:e,children:t,position:n="popper",...s},i)=>r.jsx(wI,{children:r.jsxs(C2,{ref:i,className:xe("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-select-content-transform-origin]",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(I2,{}),r.jsx(bI,{className:xe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),r.jsx(L2,{})]})}));Qg.displayName=C2.displayName;const kI=y.forwardRef(({className:e,...t},n)=>r.jsx(S2,{ref:n,className:xe("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));kI.displayName=S2.displayName;const mi=y.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(E2,{ref:s,className:xe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 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 left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(NI,{children:r.jsx(P_,{className:"h-4 w-4"})})}),r.jsx(jI,{children:t})]}));mi.displayName=E2.displayName;const CI=y.forwardRef(({className:e,...t},n)=>r.jsx(_2,{ref:n,className:xe("-mx-1 my-1 h-px bg-muted",e),...t}));CI.displayName=_2.displayName;const SI=[{icon:po,text:"Gain real-world legal experience working with actual clients"},{icon:_e,text:"Interact with diverse clients across various legal issues"},{icon:j1,text:"Work remotely with flexible hours that fit your schedule"},{icon:Xa,text:"Receive training in case management and legal processes"}],EI=["Currently studying law or recently graduated","Strong written and verbal communication skills","Commitment to social justice and community service","Ability to work independently and as part of a team","Available for a minimum of 5 hours per week"];function TI(){const{toast:e}=_d(),[t,n]=y.useState(!1),[s,i]=y.useState({name:"",email:"",university:"",yearOfStudy:"",motivation:""}),a=o=>{o.preventDefault();const l=encodeURIComponent("Team Application - National Community Law Project"),c=encodeURIComponent(`Name: ${s.name}
490Email: ${s.email}
491University: ${s.university}
492Year of Study: ${s.yearOfStudy}
493
494Motivation:
495${s.motivation}`);window.location.href=`mailto:[email protected]?subject=${l}&body=${c}`,n(!0),e({title:"Email Client Opened",description:"Please send the email from your email app to complete your application."})};return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Join Our Team - Volunteer Legal Support Opportunities",description:"Join the National Community Law Project CIC team. Law students and graduates can gain real-world legal experience while helping make justice accessible. Flexible remote working, training provided.",ke
495ywords:"legal volunteering UK, law student work experience, legal support volunteer, pro bono legal work, law graduate opportunities, community law volunteer"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-16 text-primary-foreground md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-join-page-title",children:"Join Our Team"}),r.jsx("p",{className:"text-lg text-primary-foreground/80","data-testid":"text-join-page-subtitle",children:"Join our team of law students and graduates making a real difference in people's lives while gaining invaluable experience."})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsxs("div",{className:"grid gap-8 lg:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"mb-6 text-2xl font-bold",children:"Why Join Our Team?"}),r.jsx("div",{className:"space-y-4",children:SI.map((o,l)=>r.jsxs("div",{className:"flex items-start gap-4","data-testid":`join-benefit-${l}`,children:[r.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10",children:r.jsx(o.icon,{className:"h-5 w-5 text-primary"})}),r.jsx("p",{className:"mt-2",children:o.text})]},l))}),r.jsx("h3",{className:"mb-4 mt-8 text-xl font-semibold",children:"Requirements"}),r.jsx("ul",{className:"space-y-2",children:EI.map((o,l)=>r.jsxs("li",{className:"flex items-start gap-3","data-testid":`requirement-${l}`,children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),r.jsx("span",{className:"text-muted-foreground",children:o})]},l))})]}),r.jsxs(W,{children:[r.jsxs(le,{children:[r.jsx(ce,{children:"Apply to Join"}),r.jsx(ot,{children:"Fill out the form below to express your interest in joining our team."})]}),r.jsx($,{children:t?r.jsxs("div",{className:"py-8 text-center",children:[r.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-green-100 dark:bg-green-900",children:r.jsx(ye,{className:"h-8 w-8 text-green-600 dark:text-green-400"})}),r.jsx("h3",{className:"mb-2 text-xl font-semibold",children:"Application Received"}),r.jsx("p",{className:"text-muted-foreground",children:"Thank you for your interest. We'll review your application and get back to you soon."})]}):r.jsxs("form",{onSubmit:a,className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"join-name",children:"Full Name *"}),r.jsx(zn,{id:"join-name",required:!0,value:s.name,onChange:o=>i({...s,name:o.target.value}),placeholder:"Your full name","data-testid":"input-join-name"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"join-email",children:"Email Address *"}),r.jsx(zn,{id:"join-email",type:"email",required:!0,value:s.email,onChange:o=>i({...s,email:o.target.value}),placeholder:"[email protected]","data-testid":"input-join-email"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"join-university",children:"University/Institution *"}),r.jsx(zn,{id:"join-university",required:!0,value:s.university,onChange:o=>i({...s,university:o.target.value}),placeholder:"Your university or institution","data-testid":"input-join-university"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"join-year",children:"Year of Study *"}),r.jsxs(A2,{value:s.yearOfStudy,onValueChange:o=>i({...s,yearOfStudy:o}),required:!0,children:[r.jsx(Zg,{"data-testid":"select-join-year",children:r.jsx(R2,{placeholder:"Select your year"})}),r.jsxs(Qg,{children:[r.jsx(mi,{value:"first",children:"First Year"}),r.jsx(mi,{value:"second",children:"Second Year"}),r.jsx(mi,{value:"third",children:"Third Year"}),r.jsx(mi,{value:"masters",children:"Postgraduate/Masters"}),r.jsx(mi,{value:"graduate",children:"Recent Graduate"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"join-motivation",children:"Why do you want to join our team? *"}),r.jsx(Gd,{id:"join-motivation",required:!0,rows:4,value:s.motivation,onChange:o=>i({...s,motivation:o.target.value}),placeholder:"Tell us about your motivation to join...","data-testid":"input-join-motivation"})]}),r.jsxs(pe,{type:"submit",className:"w-full gap-2","data-testid":"button-submit-join",children:[r.jsx(Ng,{className:"h-4 w-4"}),"Submit Application"]})]})})]})]})})})]}),r.jsx(Ce,{})]})}const PI=["Personal Injury","Clinical Negligence","Employment Law","Housing & Tenant Rights","Asylum & Immigration","Family Law","Criminal Defense","Welfare Benefits","Other"];function _I(){const{toast:e}=_d(),[t,n]=y.useState(!1),[s,i]=y.useState({name:"",email:"",ph
495one:"",legalArea:"",message:""}),a=o=>{o.preventDefault();const l=encodeURIComponent(`Legal Support Enquiry - ${s.legalArea}`),c=encodeURIComponent(`Name: ${s.name}
496Email: ${s.email}
497Phone: ${s.phone||"Not provided"}
498Legal Area: ${s.legalArea}
499
500Message:
501${s.message}`);window.location.href=`mailto:[email protected]?subject=${l}&body=${c}`,n(!0),e({title:"Email Client Opened",description:"Please send the email from your email app to complete your enquiry."})};return t?r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-3xl px-4 md:px-6",children:r.jsx(W,{className:"text-center",children:r.jsxs($,{className:"py-12",children:[r.jsx("div",{className:"mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-green-100 dark:bg-green-900",children:r.jsx(ye,{className:"h-8 w-8 text-green-600 dark:text-green-400"})}),r.jsx("h2",{className:"mb-3 text-2xl font-bold",children:"Thank You for Reaching Out"}),r.jsx("p",{className:"text-muted-foreground",children:"We've received your message and will get back to you within 2-3 working days."}),r.jsx(pe,{className:"mt-6",onClick:()=>n(!1),"data-testid":"button-send-another",children:"Send Another Message"})]})})})}):r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-contact-title",children:"Get in Touch"}),r.jsx("p",{className:"mx-auto max-w-2xl text-lg text-muted-foreground","data-testid":"text-contact-subtitle",children:"Need legal support? Fill out the form below and our team will c
501ontact you to discuss how we can help."})]}),r.jsxs("div",{className:"grid gap-8 lg:grid-cols-3",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsxs(W,{children:[r.jsxs(le,{children:[r.jsx(ce,{children:"Contact Form"}),r.jsx(ot,{children:"Tell us about your situation and we'll get back to you within 2-3 working days."})]}),r.jsx($,{children:r.jsxs("form",{onSubmit:a,className:"space-y-6",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"name",children:"Full Name *"}),r.jsx(zn,{id:"name",required:!0,value:s.name,onChange:o=>i({...s,name:o.target.value}),placeholder:"Your full name","data-testid":"input-name"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"email",children:"Email Address *"}),r.jsx(zn,{id:"email",type:"email",required:!0,value:s.email,onChange:o=>i({...s,email:o.target.value}),placeholder:"[email protected]","data-testid":"input-email"})]})]}),r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"phone",children:"Phone Number"}),r.jsx(zn,{id:"phone",type:"tel",value:s.phone,onChange:o=>i({...s,phone:o.target.value}),placeholder:"Your phone number","data-testid":"input-phone"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"legalArea",children:"Legal Area *"}),r.jsxs(A2,{value:s.legalArea,onValueChange:o=>i({...s,legalArea:o}),required:!0,children:[r.jsx(Zg,{"data-testid":"select-legal-area",children:r.jsx(R2,{placeholder:"Select legal area"})}),r.jsx(Qg,{children:PI.map(o=>r.jsx(mi,{value:o,children:o},o))})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"message",children:"Your Message *"}),r.jsx(Gd,{id:"message",required:!0,rows:5,value:s.message,onChange:o=>i({...s,message:o.target.value}),placeholder:"Please briefly describe your legal situation...","data-testid":"input-message"})]}),r.jsxs(pe,{type:"submit",size:"lg",className:"gap-2","data-testid":"button-submit-contact",children:[r.jsx(Ng,{className:"h-4 w-4"}),"Send Message"]})]})})]})}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(W,{children:r.jsx($,{className:"pt-6",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:r.jsx(Dr,{className:"h-5 w-5 text-primary"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-semibold",children:"Call, WhatsApp or Text"}),r.jsx("a",{href:"tel:07476949692",className:"text-sm text-muted-foreground hover:text-foreground","data-testid":"link-phone",children:"07476 949692"})]})]})})}),r.jsx(W,{children:r.jsx($,{className:"pt-6",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:r.jsx(Uu,{className:"h-5 w-5 text-primary"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-semibold",children:"Email Us"}),r.jsx("a",{href:"mailto:[email protected]",className:"text-sm text-muted-foreground hover:text-foreground","data-testid":"link-email",children:"[email protected]"})]})]})})}),r.jsx(W,{children:r.jsx($,{className:"pt-6",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:r.jsx(bg,{className:"h-5 w-5 text-primary"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-semibold",children:"Location"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"4th Floor, 14 Museum Place"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Cardiff, Wales, CF10 3BH"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"(Remote services available nationwide)"})]})]})})}),r.jsx(W,{className:"bg-primary text-primary-foreground",children:r.jsxs($,{className:"pt-6",children:[r.jsx("h3",{className:"mb-2 font-semibold",children:"What to Expect"}),r.jsxs("ul",{className:"space-y-2 text-sm text-primary-foreground
501/80",children:[r.jsx("li",{children:"Response within 2-3 working days"}),r.jsx("li",{children:"Initial consultation to understand your needs"}),r.jsx("li",{children:"Services charged at £50 per hour"}),r.jsx("li",{children:"No obligation to proceed"})]})]})})]})]})]})})}function AI(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Contact Us - Get Legal Support Today",description:"Contact the National Community Law Project for affordable legal support at £50/hour. Call, WhatsApp or email us to discuss your legal needs. We're here to help with housing, employment, family law and more.",keywords:"contact legal support UK, legal help enquiry, affordable legal advice contact, community law project contact, get legal support"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-16 text-primary-foreground md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-contact-page-title",children:"Contact Us"}),r.jsx("p",{className:"text-lg text-primary-foreground/80","data-testid":"text-contact-page-subtitle",children:"Need legal support? Get in touch with our team and we'll help you navigate your legal challenges."})]})}),r.jsx(_I,{}),r.jsx("section",{className:"bg-yellow-50 dark:bg-yellow-950/20 py-12 md:py-16",children:r.jsx("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:r.jsxs("div",{className:"rounded-lg border border-yellow-200 dark:border-yellow-800 bg-yellow-100/50 dark:bg-yellow-900/20 p-6",children:[r.jsx("h2",{className:"mb-3 text-xl font-semibold text-yellow-900 dark:text-yellow-100",children:"⚠️ Important: Not a Law Firm"}),r.jsxs("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-3",children:["The National Community Law Project CIC is ",r.jsx("strong",{children:"NOT a law firm"})," and is ",r.jsx("strong",{children:"NOT regulated by the Solicitors Regulation Authority (SRA)"}),"."]}),r.jsxs("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-3",children:["We provide ",r.jsx("strong",{children:"unreserved legal assistance only"}),":"]}),r.jsxs("ul",{className:"text-sm text-yellow-800 dark:text-yellow-200 space-y-2 ml-4",children:[r.jsx("li",{children:"✓ Case preparation and evidence gathering"}),r.jsx("li",{children:"✓ Document drafting and research"}),r.jsx("li",{children:"✓ Guidance on court procedures"}),r.jsx("li",{children:"✗ We do NOT provide legal representation or conduct litigation"}),r.jsx("li",{children:"✗ We do NOT provide regulated legal advice"})]}),r.jsxs("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mt-3",children:[r.jsx("strong",{children:"You do NOT have SRA Compensation Fund protection."})," For complex cases or court representation, please consult a qualified solicitor.",r.jsx("a",{href:"/legal-guides",className:"underline hover:no-underline ml-1",children:"View our legal guides"})," for more information."]})]})})})]}),r.jsx(Ce,{})]})}var Jm="rovingFocusGroup.onEntryFocus",RI={bubbles:!1,cancelable:!0},Xd="RovingFocusGroup",[Vp,O2,II]=uo(Xd),[LI,M2]=qn(Xd,[II]),[OI,MI]=LI(Xd),D2=y.forwardRef((e,t)=>r.jsx(Vp.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsx(Vp.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsx(DI,{...e,ref:t})})}));D2.displayName=Xd;var DI=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...m}=e,h=y.useRef(null),p=Ke(t,h),v=sc(a),[f=null,b]=hr({prop:o,defaultProp:l,onChange:c}),[g,x]=y.useState(!1),w=xt(u),j=O2(n),k=y.useRef(!1),[N,T]=y.useState(0);return y.useEffect(()=>{const R=h.current;if(R)return R.addEventListener(Jm,w),()=>R.removeEventListener(Jm,w)},[w]),r.jsx(OI,{scope:n,orientation:s,dir:v,loop:i,currentTabStopId:f,onItemFocus:y.useCallback(R=>b(R),[b]),onItemShiftTab:y.useCallback(()=>x(!0),[]),onFocusableItemAdd:y.useCallback(()=>T(R=>R+1),[]),onFocusableItemRemove:y.useCallback(()=>T(R=>R-1),[]),children:r.jsx(he.div,{tabIndex:g||N===0?-1:0,"data-orientation":s,...m,ref:p,style:{outline:"none",...e.style},onMouseDown:ie(e.onMouseDown,()=>{k.current=!0}),onFocus:ie(e.onFocus,R=>{const O=!k.current;if(R.target===R.currentTarget&&O&&!g){const S=new CustomEvent(Jm,RI);if(R.currentTarget.dispatchEvent(S),!S.defaultPrevented){const F=j().filter(Z=>Z.focusable),L=F.find(Z=>Z.active),B=F.find(Z=>
vendor: 5,315 bytes, line 501
501Z.id===f),G=[L,B,...F].filter(Boolean).map(Z=>Z.ref.current);U2(G,d)}}k.current=!1}),onBlur:ie(e.onBlur,()=>x(!1))})})}),F2="RovingFocusGroupItem",z2=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:i=!1,tabStopId:a,...o}=e,l=$n(),c=a||l,u=MI(F2,n),d=u.currentTabStopId===c,m=O2(n),{onFocusableItemAdd:h,onFocusableItemRemove:p}=u;return y.useEffect(()=>{if(s)return h(),()=>p()},[s,h,p]),r.jsx(Vp.ItemSlot,{scope:n,id:c,focusable:s,active:i,children:r.jsx(he.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...o,ref:t,onMouseDown:ie(e.onMouseDown,v=>{s?u.onItemFocus(c):v.preventDefault()}),onFocus:ie(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:ie(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const f=UI(v,u.orientation,u.dir);if(f!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let g=m().filter(x=>x.focusable).map(x=>x.ref.current);if(f==="last")g.reverse();else if(f==="prev"||f==="next"){f==="prev"&&g.reverse();const x=g.indexOf(v.currentTarget);g=u.loop?WI(g,x+1):g.slice(x+1)}setTimeout(()=>U2(g))}})})})});z2.displayName=F2;var FI={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zI(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function UI(e,t,n){const s=zI(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return FI[s]}function U2(e,t=!1){const n=document.activeElement;for(const s of e)if(s===n||(s.focus({preventScroll:t}),document.activeElement!==n))return}function WI(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var $I=D2,BI=z2,Xg="Tabs",[HI,g$]=qn(Xg,[M2]),W2=M2(),[VI,Jg]=HI(Xg),$2=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:l,activationMode:c="automatic",...u}=e,d=sc(l),[m,h]=hr({prop:s,onChange:i,defaultProp:a});return r.jsx(VI,{scope:n,baseId:$n(),value:m,onValueChange:h,orientation:o,dir:d,activationMode:c,children:r.jsx(he.div,{dir:d,"data-orientation":o,...u,ref:t})})});$2.displayName=Xg;var B2="TabsList",H2=y.forwardRef((e,t)=>{const{__scopeTabs:n,loop:s=!0,...i}=e,a=Jg(B2,n),o=W2(n);return r.jsx($I,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:s,children:r.jsx(he.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});H2.displayName=B2;var V2="TabsTrigger",q2=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,disabled:i=!1,...a}=e,o=Jg(V2,n),l=W2(n),c=Y2(o.baseId,s),u=Z2(o.baseId,s),d=s===o.value;return r.jsx(BI,{asChild:!0,...l,focusable:!i,active:d,children:r.jsx(he.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:t,onMouseDown:ie(e.onMouseDown,m=>{!i&&m.button===0&&m.ctrlKey===!1?o.onValueChange(s):m.preventDefault()}),onKeyDown:ie(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&o.onValueChange(s)}),onFocus:ie(e.onFocus,()=>{const m=o.activationMode!=="manual";!d&&!i&&m&&o.onValueChange(s)})})})});q2.displayName=V2;var K2="TabsContent",G2=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,forceMount:i,children:a,...o}=e,l=Jg(K2,n),c=Y2(l.baseId,s),u=Z2(l.baseId,s),d=s===l.value,m=y.useRef(d);return y.useEffect(()=>{const h=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(h)},[]),r.jsx(Kn,{present:i||d,children:({present:h})=>r.jsx(he.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!h,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:h&&a})})});G2.displayName=K2;function Y2(e,t){return`${e}-trigger-${t}`}function Z2(e,t){return`${e}-content-${t}`}var qI=$2,Q2=H2,X2=q2,J2=G2;const KI=qI,eC=y.forwardRef(({className:e,...t},n)=>r.jsx(Q2,{ref:n,className:xe("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));eC.displayName=Q2.displayName;const ou=y.forwardRef(({className:e,...t},n)=>r.jsx(X2,{ref:n,className:xe("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));ou.displayName=X2.displayName;const lu=y.forwardRef(({className:e,...t},n)=>r.jsx(J2,{ref:n,className:xe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));lu.displayName=J2.displayName;const GI=[{title:"Solicitor",icon:_n,category:"legal",description:"Solicitors are qualified lawyers who provide legal advice and services directly to clients. They handle a wide range of legal matters including property transactions, wills, family law, and business matters.",responsibilities:["Providing legal advice to clients on various matters","Drafting legal documents such as contracts and wills","Representing clients in lower courts","Instru
501cting barristers for court representation","Conducting negotiations on behalf of clients","Managing property transactions (conveyancing)"],qualification:"Law degree or conversion course, Legal Practice Course (LPC), and two years of training with a law firm. Now also via the Solicitors Qualifying Examination (SQE) route.",regulator:"Solicitors Regulation Authority (SRA)"},{title:"Barrister",icon:qe,category:"legal",description:"Barristers are specialist legal advocates who represent clients in court. They are experts in courtroom advocacy, legal drafting, and providing specialist legal opinions.",responsibilities:["Representing clients in court hearings and trials","Providing expert legal opinions on complex matters","Drafting legal pleadings and court documents","Cross-examining witnesses in court","Presenting legal arguments to judges","Advising solicitors on case strategy"],qualification:"Law degree or conversion course, Bar Professional Training Course (BPTC), and pupillage (12-month training period) in chambers.",regulator:"Bar Standards Board (BSB)"},{title:"Chartered Legal Executive",icon:Ge,category:"legal",description:"Chartered Legal Executives are qualified lawyers who specialise in a particular area of law. They have similar rights to solicitors in their area of expertise and often focus on specific practice areas.",responsibilities:["Providing specialist legal advice in their practice area","Handling cases from start to finish","Representing clients in certain courts","Drafting legal documents","Managing client relationships","Supervising paralegals and support staff"],qualification:"CILEx Level 3 and Level 6 qualifications, plus qualifying employment.",regulator:"CILEx Regulation"},{title:"Paralegal",icon:_e,category:"legal",description:"Paralegals provide essential support to solicitors and barristers. While not qualified lawyers, they perform many legal tasks under supervision and are crucial to the functioning of legal practices.",responsibilities:["Conducting legal research","Drafting correspondence and documents","Preparing case files and bundles","Liaising with clients and courts","Assisting with case preparation","Managing administrative tasks"],qualification:"No mandatory qualification, but many hold paralegal certificates or law degrees. Professional qualifications available through CILEx and NALP.",regulator:"Not directly regulated, but work under supervision of regulated lawyers"},{title:"Licensed Conveyancer",icon:Wn,category:"legal",description:"Licensed Conveyancers specialise in property law and the legal aspects of buying and selling property. They provide an alternative to solicitors for property transactions.",responsibilities:["Handling residential and commercial property transactions","Conducting property searches","Drafting contracts for sale and purchase","Managing the exchange and completion process","Advising on property-related matters","Registering property with the Land Registry"],qualification:"CLC Level 4 and Level 6 qualifications in conveyancing law and practice.",regulator:"Council for Licensed Conveyancers (CLC)"},{title:"Notary Public",icon:Ge,category:"legal",description:"Notaries are qualified lawyers who specialise in authenticating documents for use abroad. They certify documents and administer oaths for international use.",responsibilities:["Authenticating documents for international use","Certifying copies of documents","Administering oaths and affirmations","Preparing documents for use overseas","Witnessing signatures on legal documents","Providing apostille services"],qualification:"Usually a solicitor or barrister who completes the Notarial Practice Course.",regulator:"Faculty Office of the Archbishop of Canterbury"}],YI=[{title:"Judge",icon:cs,category:"court",description:"Judges preside over court proceedings, ensuring fair trials and making legal decisions. They interpret and apply the law, manage court proceedings, and deliver judgments.",responsibilities:["Presiding over court hearings and trials","Making decisions on points of law","Directing juries in criminal trials","Delivering judgments and sentences","Managing court proceedings fairly","Writing legal judgments"],types:"District Judge, Circuit Judge, High Court Judge, Court of Appeal Judge, Supreme Court Justice"},{title:"Magistrate",icon:qe,category:"court",description:"Magistrates (also called Justices of the Peace) are volunteers who hear cases in magistrates' courts. They deal with less serious criminal cases, some civil matters, and family proceedings.",responsibilities:["Hearing summary criminal offences","Deciding bail applications","Issuing warrants","Hearing family court matters","Deciding licensing applications","Sentencing for less serious offences"],types:"Lay Magistrates (volunteers) and District Judges (Magistrates' Courts)"},{title:"Court Clerk / Legal Adviser",icon:Ge,category:"court",description:"Court Clerks (now often called Legal Advisers in magistrates' courts) provide legal advice to magistrates and ensure court procedures are followed correctly.",responsibilities:["Advising magistrates on law and procedure","Managing court administration","Recording court proceedings","Ensuring correct procedures are followed","Administering oaths to witnesses","Preparing court documentation"],types:"Legal Advisers (Magistrates' Courts), Court Clerks (Crown Court)"},{title:"Usher",icon:_e,category:"court",description:"Court Ushers are responsible for the smooth running of court proceedings. They call cases, escort witnesses, and ensure the courtroom operates efficie
501ntly.",responsibilities:["Calling cases into court","Escorting witnesses and jury members","Administering oaths to witnesses","Managing the courtroom environment","Assisting judges and legal professionals","Handling exhibits during trials"],types:"Works across all court types"},{title:"Probation Officer",icon:Ze,category:"court",description:"Probation Officers work within the criminal justice system to supervise offenders in the community and help reduce reoffending. They prepare reports for courts and work with offenders.",responsibilities:["Preparing pre-sentence reports for courts","Supervising offenders in the community","Assessing risk of reoffending","Managing community sentences","Supporting rehabilitation of offenders","Liaising with courts and prisons"],types:"National Probation Service officers"},{title:"Court Reporter / Stenographer",icon:Ge,category:"court",description:"Court Reporters create official transcripts of court proceedings. They record everything said in court using specialist equipment, ensuring an accurate record exists.",responsibilities:["Recording court proceedings verbatim","Creating official transcripts","Operating stenography equipment","Preparing documentation for appeals","Maintaining accuracy under pressure","Working across various court types"],types:"Works in Crown Courts and higher courts"}],ZI=[{title:"McKenzie Friend",icon:_e,category:"support",description:"A McKenzie Friend is someone who assists a litigant in person (someone representing themselves) in court. They can provide moral support, take notes, and help organise documents, but cannot speak on behalf of the litigant.",responsibilities:["Providing moral support in court","Taking notes during proceedings","Helping organise documents","Quietly giving advice to the litigant","Assisting with paperwork preparation","Cannot address the court directly"],note:"McKenzie Friends are not legally qualified but can be invaluable for litigants in person."},{title:"Legal Aid Agency Caseworker",icon:Wn,category:"support",description:"Legal Aid Agency caseworkers assess applications for legal aid funding. They determine whether individuals qualify for publicly-funded legal assistance.",responsibilities:["Assessing legal aid applications","Determining financial eligibility","Processing claims from legal providers","Managing legal aid contracts","Ensuring compliance with regulations","Supporting access to justice"],note:"Part of the government agency that administers legal aid in England and Wales."},{title:"Citizens Advice Bureau Adviser",icon:_e,category:"support",description:"CAB advisers provide free, confidential advice on a wide range of issues including legal matters. While not lawyers, they help people understand their rights and options.",responsibilities:["Providing general legal information","Advising on rights and options","Helping complete forms and applications","Referring to specialist services","Supporting vulnerable individuals","Offering debt and benefits advice"],note:"Volunteers and staff who undergo specialist training to help the public."},{title:"Legal Secretary",icon:Ge,category:"support",description:"Legal Secretaries provide administrative support to solicitors and other legal professionals. They manage correspondence, prepare documents, and keep legal practices running smoothly.",responsibilities:["Typing legal documents and correspondence","Managing diaries and appointments","Liaising with clients and courts","Preparing court bundles","Handling billing and accounts","Maintaining filing systems"],note:"Often progress to paralegal or legal executive roles."}];function QI(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Legal Professions Guide - Solicitors, Barristers & Legal Roles",description:"Understand UK legal professions including solicitors, barristers, legal executives, paralegals and McKenzie Friends. Learn what each role does, their qualifications and when to use them.",keywords:"legal professions UK, difference solicitor barrister, what is a McKenzie Friend, legal executive explained, paralegal role, choosing a lawyer UK, legal professional qual
501ifications"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-16 text-primary-foreground md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(yt,{variant:"secondary",className:"mb-4",children:"Understanding the Legal System"}),r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-professions-title",children:"Legal Professions Explained"}),r.jsx("p",{className:"text-lg text-primary-foreground/80","data-testid":"text-professions-subtitle",children:"When people think of legal help, solicitors and barristers often come to mind. But the legal system includes many different professionals, each with unique roles. Understanding who does what can help you navigate the system more effectively."})]})}),r.jsx("section",{className:"border-b py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-primary/10",children:r.jsx(wg,{className:"h-8 w-8 text-primary"})}),r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight","data-testid":"text-reserved-title",children:"Understanding Reserved Legal Activities"}),r.jsx("p",{className:"mx-auto max-w-3xl text-lg text-muted-foreground",children:'In England and Wales, certain legal activities are "reserved" by law. This means only authorised persons can perform them. Understanding reserved activities helps you know when you need a qualified lawyer and when other professionals can assist.'})]}),r.jsxs("div",{className:"mb-12 rounded-lg border bg-card p-6 md:p-8",children:[r.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[r.jsx(vt,{className:"h-6 w-6 shrink-0 text-amber-500 mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-semibold mb-2",children:"What Are Reserved Legal Activities?"}),r.jsx("p",{className:"text-muted-foreground",children:"Reserved legal activities are specific legal tasks that, under the Legal Services Act 2007, can only be carried out by individuals who are authorised by an approved regulator. Performing these activities without authorisation is a criminal offence. This protection exists to ensure the public receives competent legal services in the most critical areas."})]})]}),r.jsxs("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:[r.jsxs(W,{children:[r.jsx(le,{className:"pb-3",children:r.jsxs(ce,{className:"text-lg flex items-center gap-2",children:[r.jsx(cs,{className:"h-5 w-5 text-primary"}),"Rights of Audience"]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"The right to appear and conduct proceedings on behalf of a client in court. This is why you need a solicitor or barrister to represent you in most court hearings."})})]}),r.jsxs(W,{children:[r.jsx(le,{className:"pb-3",children:r.jsxs(ce,{className:"text-lg flex items-center gap-2",children:[r.jsx(Ge,{className:"h-5 w-5 text-primary"}),"Conduct of Litigation"]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Issuing court proceedings, filing documents with the court, and managing the procedural aspects of a legal case from start to finish."})})]}),r.jsxs(W,{children:[r.jsx(le,{className:"pb-3",children:r.jsxs(ce,{className:"text-lg flex items-center gap-2",children:[r.jsx(Wn,{className:"h-5 w-5 text-primary"}),"Reserved Instrument Activities"]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Preparing documents that transfer or charge interests in land (property transactions). This is why conveyancing requires a solicitor or licensed conveyancer."})})]}),r.jsxs(W,{children:[r.jsx(le,{className:"pb-3",children:r.jsxs(ce,{className:"text-lg flex items-center gap-2",children:[r.jsx(Ge,{className:"h-5 w-5 text-primary"}),"Probate Activities"]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Preparing papers for obtaining a grant of probate or letters of administration to deal with a deceased person's estate."})})]}),r.jsxs(W,{children:[r.jsx(le,{className:"pb-3",children:r.jsxs(ce,{className:"text-lg flex items-center gap-2",children:[r.jsx(qe,{className:"h-5 w-5 text-primary"}),"Notarial Activities"]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Authenticating documents for use abroad, certifying copies, and administering oaths. Only notaries public can perform these functions."})})]}),r.jsxs(W,{children:[r.jsx(le,{className:"pb-3",children:r.jsxs(ce,{className:"text-lg flex items-center gap-2",children:[r.jsx(Ge,{className:"h-5 w-5 text-primary"}),"Oaths Administration"]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Administering oaths and taking affidavits. Required for sworn statements used in legal proceedings."})})]})]})]}),r.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[r.jsxs(W,{className:"border-green-200 dark:border-green-900",children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2 text-green-700 dark:text-green-400",children:[r.jsx(ye,{className:"h-5 w-5"}),"Who CAN Perform Reserved Activities"]})}),r.jsx($,{children:r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-green-500"}),r.jsxs("span",{children:[r.jsx("strong",{children:"Solicitors"})," - All reserved activities (regulated by SRA)"]})]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-green-500"}),r.jsxs("span",{children:[r.jsx("strong",{children:"Barristers"})," - Rights of audience and litigation conduct (regulated by BSB)"]})]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-green-500"}),r.jsxs("span",{children:[r.jsx("strong",{children:"Chartered Legal Executives"})," - Limited reserved activities in their practice area (regulated by CILEx)"]})]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-green-500"}),r.jsxs("span",{children:[r.jsx("strong",{children:"Licensed Conveyancers"})," - Reserved instrument activities for property (regulated by CLC)"]})]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-green-500"}),r.jsxs("span",{children:[r.jsx("strong",{children:"Notaries Public"})," - Notarial activities (regulated by Faculty Office)"]})]})]})})]}),r.jsxs(W,{className:"border-red-200 dark:border-red-900",children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2 text-red-700 dark:text-red-400",children:[r.jsx(Bt,{className:"h-5 w-5"}),"Who CANNOT Perform Reserved Activities"]})}),r.jsx($,{children:r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-red-500"}),r.jsxs("span",{children:[r.jsx("strong",{children:"Paralegals"})," - Cannot perform reserved activities independently"]})]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-red-500"}),r.jsxs("span",{children:[r.jsx("strong",{children:"McKenzie Friends"})," - Cannot conduct litigation or have rights of audience"]})]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-red-500"}),r.jsxs("span",{children:[r.jsx("strong",{children:"Legal Secretaries"})," - Support role only, no reserved activities"]})]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-red-500"}),r.jsxs("span",{children:[r.jsx("strong",{children:"Unregulated advisers"})," - Cannot perform any reserved activities"]})]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-red-500"}),r.jsxs("span",{children:[r.jsx("strong",{children:"Claims management companies"})," - Limited to non-reserved activities"]})]})]})})]})]})]})}),r.jsx("section",{className:"border-b bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-amber-100 dar
501k:bg-amber-900/20",children:r.jsx(vt,{className:"h-8 w-8 text-amber-600"})}),r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight","data-testid":"text-nclp-limitations-title",children:"What the National Community Law Project Can and Cannot Do"}),r.jsx("p",{className:"mx-auto max-w-3xl text-lg text-muted-foreground",children:"As a Community Interest Company staffed primarily by law students and graduates, we operate within clear legal boundaries. Understanding these boundaries helps you know exactly how we can assist you and when you'll need a qualified solicitor or barrister."})]}),r.jsxs("div",{className:"grid gap-8 lg:grid-cols-2",children:[r.jsxs(W,{className:"border-red-200 bg-red-50/50 dark:border-red-900 dark:bg-red-950/20",children:[r.jsxs(le,{children:[r.jsxs(ce,{className:"flex items-center gap-2 text-red-700 dark:text-red-400",children:[r.jsx(Bt,{className:"h-6 w-6"}),"We Cannot Provide"]}),r.jsx(ot,{className:"text-red-600/80 dark:text-red-400/80",children:"Reserved legal activities under the Legal Services Act 2007"})]}),r.jsxs($,{className:"space-y-4",children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Under the Legal Services Act 2007, the following activities are reserved to authorised persons (solicitors, barristers, and other regulated professionals). We cannot legally perform these activities:"}),r.jsxs("ul",{className:"space-y-3",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(Bt,{className:"mt-0.5 h-5 w-5 shrink-0 text-red-500"}),r.jsxs("div",{children:[r.jsx("strong",{className:"text-foreground",children:"Legal Advice"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We cannot tell you what to do in your legal situation, predict outcomes, or advise on the merits of your case. Only qualified, regulated lawyers can provide legal advice."})]})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(Bt,{className:"mt-0.5 h-5 w-5 shrink-0 text-red-500"}),r.jsxs("div",{children:[r.jsx("strong",{className:"text-foreground",children:"Advocacy & Representation"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We cannot speak on your behalf in court (rights of audience) or represent you in legal proceedings. This requires authorisation from approved regulators."})]})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(Bt,{className:"mt-0.5 h-5 w-5 shrink-0 text-red-500"}),r.jsxs("div",{children:[r.jsx("strong",{className:"text-foreground",children:"Conduct of Litigation"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We cannot issue court proceedings, file documents with courts on your behalf, or manage the procedural aspects of your case. This is a reserved activity."})]})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(Bt,{className:"mt-0.5 h-5 w-5 shrink-0 text-red-500"}),r.jsxs("div",{children:[r.jsx("strong",{className:"text-foreground",children:"Conveyancing & Probate"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We cannot handle property transactions or prepare probate applications. These are reserved instrument and probate activities requiring specific authorisation."})]})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(Bt,{className:"mt-0.5 h-5 w-5 shrink-0 text-red-500"}),r.jsxs("div",{children:[r.jsx("strong",{className:"text-foreground",children:"Notarial Services & Oaths"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We cannot authenticate documents for international use or administer oaths and affidavits. These require a notary public or commissioner for oaths."})]})]})]}),r.jsx("div",{className:"rounded-md bg-red-100 p-4 dark:bg-red-900/30",children:r.jsx("p",{className:"text-sm font-medium text-red-800 dark:text-red-300",children:"Performing reserved legal activities without authorisation is a criminal offence under section 14 of the Legal Services Act 2007, punishable by up to 2 years imprisonment."})})]})]}),r.jsxs(W,{className:"border-green-200 bg-green-50/50 dark:border-green-900 dark:bg-green-950/20",children:[r.jsxs(le,{children:[r.jsxs(ce,{className:"flex items-center gap-2 text-green-700 dark:text-green-400",children:[r.jsx(ye,{className:"h-6 w-6"}),"We Can Provide"]}
vendor: 6,616 bytes, line 501
501),r.jsx(ot,{className:"text-green-600/80 dark:text-green-400/80",children:"Valuable legal support services at £50 per hour"})]}),r.jsxs($,{className:"space-y-4",children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Many important support services are not reserved activities and can be provided by trained individuals. Our team of law students and graduates can assist with:"}),r.jsxs("ul",{className:"space-y-3",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-500"}),r.jsxs("div",{children:[r.jsx("strong",{className:"text-foreground",children:"Legal Information & Education"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We can explain legal concepts, procedures, and options available to you. We provide information to help you understand your situation—not advice on what to do."})]})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-500"}),r.jsxs("div",{children:[r.jsx("strong",{className:"text-foreground",children:"Case Preparation & Organisation"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We help you organise documents, compile chronologies, gather evidence, and prepare your case materials in a clear, logical format for court or tribunal."})]})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-500"}),r.jsxs("div",{children:[r.jsx("strong",{className:"text-foreground",children:"Legal Research"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We can research relevant laws, regulations, case precedents, and procedures applicable to your situation and present this information to you."})]})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-500"}),r.jsxs("div",{children:[r.jsx("strong",{className:"text-foreground",children:"Document Drafting Assistance"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We can help you draft letters, witness statements, and other documents—though you remain responsible for their content and submission."})]})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-500"}),r.jsxs("div",{children:[r.jsx("strong",{className:"text-foreground",children:"Referrals to Regulated Professionals"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"When your situation requires reserved legal activities, we connect you with appropriate solicitors, barristers, or other authorised professionals."})]})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-500"}),r.jsxs("div",{children:[r.jsx("strong",{className:"text-foreground",children:"Emotional Support & Signposting"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We understand legal issues are stressful. We provide compassionate support and can signpost you to additional resources and support services."})]})]})]})]})]})]}),r.jsx(W,{className:"mt-8 border-primary/20 bg-primary/5",children:r.jsx($,{className:"pt-6",children:r.jsxs("div",{className:"flex flex-col items-center gap-6 text-center md:flex-row md:text-left",children:[r.jsx("div",{className:"flex h-16 w-16 shrink-0 items-center justify-center rounded-full bg-primary/10",children:r.jsx(Ze,{className:"h-8 w-8 text-primary"})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("h3",{className:"mb-2 text-xl font-semibold",children:"Why These Boundaries Protect You"}),r.jsx("p",{className:"text-muted-foreground",children:"The distinction between reserved and non-reserved activities exists to protect the public. Reserved activities require specific training, professional indemnity insurance, and regulatory oversight. By operating within our boundaries, we ensure you receive appropriate support while safeguarding you when matters require qualified legal professionals. When your situation requires reserved activities, we'll be transparent about this and help connect you with the right professionals."})]})]})})})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsxs(KI,{defaultValue:"legal",className:"w-full",children:[r.jsxs(eC,{className:"mb-8 grid w-full grid-cols-3","data-testid":"tabs-professions",children:[r.jsx(ou,{value:"legal","data-testid":"tab-legal",children:"Legal Professionals"}),r.jsx(ou,{value:"court","data-testid":"tab-court",children:"Court Roles"}),r.jsx(ou,{value:"support","data-testid":"tab-support",children:"Support Roles"})]}),r.jsxs(lu,{value:"legal",children:[r.jsxs("div",{className:"mb-8",children:[r.jsx("h2",{className:"mb-2 text-2xl font-bold",children:"Qualified Legal Professionals"}),r.jsx("p",{className:"text-muted-foreground",children:"These are the regulated professionals who can provide legal advice and representation."})]}),r.jsx("div",{className:"grid gap-6 lg:grid-cols-2",children:GI.map((e,t)=>r.jsxs(W,{"data-testid":`card-legal-${t}`,children:[r.jsx(le,{children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-primary/10",children:r.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),r.jsxs("div",{children:[r.jsx(ce,{className:"text-xl",children:e.title}),e.regulator&&r.jsxs(ot,{className:"mt-1",children:["Regulated by: ",e.regulator]})]})]})}),r.jsxs($,{className:"space-y-4",children:[r.jsx("p",{className:"text-muted-foreground",children:e.description}),r.jsxs("div",{children:[r.jsx("h4",{className:"mb-2 font-semibold",children:"Key Responsibilities:"}),r.jsx("ul",{className:"space-y-1",children:e.responsibilities.slice(0,4).map((n,s)=>r.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-primary"}),n]},s))})]}),r.jsxs("div",{className:"rounded-md bg-muted p-3",children:[r.jsx("h4",{className:"mb-1 text-sm font-semibold",children:"How to Qualify:"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.qualification})]})]})]},t))})]}),r.jsxs(lu,{value:"court",children:[r.jsxs("div",{className:"mb-8",children:[r.jsx("h2",{className:"mb-2 text-2xl font-bold",children:"Court & Justice System Roles"}),r.jsx("p",{className:"text-muted-foreground",children:"These professionals work within the courts to ensure justice is administered fairly and efficie
501ntly."})]}),r.jsx("div",{className:"grid gap-6 lg:grid-cols-2",children:YI.map((e,t)=>r.jsxs(W,{"data-testid":`card-court-${t}`,children:[r.jsx(le,{children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-primary/10",children:r.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),r.jsxs("div",{children:[r.jsx(ce,{className:"text-xl",children:e.title}),e.types&&r.jsxs(ot,{className:"mt-1",children:["Types: ",e.types]})]})]})}),r.jsxs($,{className:"space-y-4",children:[r.jsx("p",{className:"text-muted-foreground",children:e.description}),r.jsxs("div",{children:[r.jsx("h4",{className:"mb-2 font-semibold",children:"Key Responsibilities:"}),r.jsx("ul",{className:"space-y-1",children:e.responsibilities.slice(0,4).map((n,s)=>r.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-primary"}),n]},s))})]})]})]},t))})]}),r.jsxs(lu,{value:"support",children:[r.jsxs("div",{className:"mb-8",children:[r.jsx("h2",{className:"mb-2 text-2xl font-bold",children:"Legal Support Roles"}),r.jsx("p",{className:"text-muted-foreground",children:"These individuals provide crucial support within the legal system, helping both professionals and the public."})]}),r.jsx("div",{className:"grid gap-6 lg:grid-cols-2",children:ZI.map((e,t)=>r.jsxs(W,{"data-testid":`card-support-${t}`,children:[r.jsx(le,{children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-primary/10",children:r.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),r.jsx("div",{children:r.jsx(ce,{className:"text-xl",children:e.title})})]})}),r.jsxs($,{className:"space-y-4",children:[r.jsx("p",{className:"text-muted-foreground",children:e.description}),r.jsxs("div",{children:[r.jsx("h4",{className:"mb-2 font-semibold",children:"Key Responsibilities:"}),r.jsx("ul",{className:"space-y-1",children:e.responsibilities.slice(0,4).map((n,s)=>r.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[r.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-primary"}),n]},s))})]}),e.note&&r.jsx("div",{className:"rounded-md bg-muted p-3",children:r.jsx("p",{className:"text-sm text-muted-foreground",children:e.note})})]})]},t))})]})]})})}),r.jsx("section",{className:"border-t bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-primary/10",children:r.jsx(_e,{className:"h-8 w-8 text-primary"})}),r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight","data-testid":"text-lip-title",children:"How We Support Litigants in Person"}),r.jsx("p",{className:"mx-auto max-w-3xl text-lg text-muted-foreground",children:`A "litigant in person" (LiP) is someone who represents themselves in court without a solicitor or barrister. Whether by choice or necessity, navigating the legal system alone can be overwhelming. That's where we come in.`})]}),r.jsxs("div",{className:"mb-12 rounded-lg border bg-background p-6 md:p-8",children:[r.jsx("h3",{className:"mb-4 text-xl font-semibold",children:"The Challenge of Self-Representation"}),r.jsx("p",{className:"mb-4 text-muted-foreground",children:"Unlike subjects such as maths or English, there is no compulsory legal education in the UK. Most people go through life without ever learning about the legal system until they suddenly find themselves needing to use it. This means that when you're faced with a legal issue, you're often starting from scratch with terminology, procedures, and concepts that are entirely foreign."}),r.jsx("p",{className:"mb-4 text-muted-foreground",children:"The legal system uses its own specialised language—Latin phrases, archaic terms, and technical jargon that can feel deliberately impenetrable. Court procedures follow strict rules about deadlines, document formats, and protocols that aren't intuitive to anyone outside the profession. This complexity isn't just frustrating—it can be genuinely overwhelming and distressing, especially when you're already dealing with a difficult situation like a housing dispute, employment issue, or family matter."}),r.jsx("p",{className:"mb-4 text-muted-foreground",children:"Due to legal aid cuts and the high cost of legal representation, more people than ever are representing themselves in court. In some courts, over 80% of cases now involve at least one litigant in person. Yet the system was designed for trained lawyers, not ordinary people trying to resolve disputes."}),r.jsx("p",{className:"text-muted-foreground",children:"Litigants in person face unique challenges: understanding court procedures, knowing which documents to file, meeting strict deadlines, presenting evidence correctly, and communicating effectively with judges and opposing parties—all while managing the stress and emotional toll of their legal situation."})]}),r.jsxs("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:[r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(Ge,{className:"h-5 w-5 text-primary"}),"Case Preparation"]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"We help you organise your case by gathering relevant facts, identifying key issues, and structuring your information in a clear, logical way that courts can understand. Good preparation is often the difference between success and failure."})})]}),r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(Ge,{className:"h-5 w-5 text-primary"}),"Document Organisation"]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Courts require documents in specific formats. We help you create properly organised bundles, chronologies, and witness statements that meet court requirements and present your case professionally."})})]}),r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(qe,{className:"h-5 w-5 text-primary"}),"Understanding Procedures"]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"We explain court procedures, timelines, and what to expect at hearings. Understanding the process reduces anxiety and helps you feel more confident when attending court."})})]}),r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(Ge,{className:"h-5 w-5 text-primary"}),"Legal Research"]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Our team can research relevant laws, regulations, and case precedents that may apply to your situation. This information helps you understand your rights and build stronger arguments."})})]}),r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary"}),"Professional Referrals"]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"When your case requires reserved legal activities or specialist expertise, we connect you with appropriate solicitors, barr
501isters, or other regulated professionals who can provide the representation you need."})})]}),r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(po,{className:"h-5 w-5 text-primary"}),"Ongoing Support"]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Legal cases can take months or even years. We provide ongoing support throughout your case, helping you respond to developments, prepare for hearings, and understand correspondence from courts and other parties."})})]})]}),r.jsxs("div",{className:"mt-12 grid gap-6 md:grid-cols-2",children:[r.jsxs(W,{className:"border-primary/20 bg-primary/5",children:[r.jsx(le,{children:r.jsx(ce,{children:"What We Can Do"})}),r.jsx($,{children:r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),"Help you understand your legal situation"]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),"Prepare and organise case documents"]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),"Research relevant laws and precedents"]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),"Explain court procedures and terminology"]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),"Connect you with qualified legal professionals"]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),"Provide ongoing case support"]})]})})]}),r.jsxs(W,{children:[r.jsxs(le,{children:[r.jsx(ce,{children:"What We Cannot Do"}),r.jsx(ot,{children:"As we are not solicitors or barristers, there are limits to our services"})]}),r.jsx($,{children:r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(Bt,{className:"mt-0.5 h-5 w-5 shrink-0 text-red-500"}),"Provide formal legal advice"]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(Bt,{className:"mt-0.5 h-5 w-5 shrink-0 text-red-500"}),"Represent you in court (reserved activity)"]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(Bt,{className:"mt-0.5 h-5 w-5 shrink-0 text-red-500"}),"Conduct litigation on your behalf"]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(Bt,{className:"mt-0.5 h-5 w-5 shrink-0 text-red-500"}),"File documents with the court for you"]}),r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(Bt,{className:"mt-0.5 h-5 w-5 shrink-0 text-red-500"}),"Guarantee outcomes in your case"]})]})})]})]}),r.jsxs("div",{className:"mt-12 rounded-lg bg-primary p-8 text-center text-primary-foreground",children:[r.jsx("h3",{className:"mb-4 text-2xl font-bold",children:"Need Support With Your Case?"}),r.jsx("p",{className:"mb-6 text-primary-foreground/80",children:"If you're representing yourself in court or facing a legal issue, we're here to help. Our services are available at £50 per hour."}),r.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[r.jsx("a",{href:"/contact",children:r.jsx(pe,{variant:"secondary",size:"lg","data-testid":"button-lip-contact",children:"Get In Touch"})}),r.jsx("a",{href:"/services",children:r.jsx(pe,{variant:"outline",size:"lg",className:"border-primary-foreground/20 text-primary-foreground hover:bg-primary-foreground/10","data-testid":"button-lip-services",children:"View Our Services"})})]})]})]})})]}),r.jsx(Ce,{})]})}const XI=[{name:"Supreme Court",description:"The highest court in the UK. Hears appeals on points of law of public importance from the Court of Appeal and, in some cases, the High Court.",icon:qe,level:"highest"},{name:"Court of Appeal",description:"Hears appeals from the High Court, Crown Court, and County Court. Divided into Civil and Criminal Divisions.",icon:Wn,level:"high"},{name:"High Court",description:"Handles complex civil cases. Divided into Queen's Bench, Chancery, and Family divisions. Also hears appeals from lower courts.",icon:cs,level:"high"},{name:"Crown Court",description:"Deals with serious criminal cases, including trials by jury. Also hears appeals from Magistrates' Courts.",icon:Ze,level:"medium"},{name:"County Court",description:"Handles most civil cases including contract disputes, personal injury claims, housing matters, and family proceedings.",icon:Wn,level:"medium"},{name:"Magistrates' Court",description:"Deals with less serious criminal cases and some civil matters. Most criminal cases start here. Cases heard by magistrates (JPs) or district judges.",icon:_e,level:"lower"},{name:"Tribunals",description:"Specialist courts handling specific areas like employment, immigration, social security, and tax. Generally less formal than courts.",icon:Ge,level:"specialist"}],JI=[{title:"Negotiation",icon:An,description:"Direct discussions between parties to reach a mutually acceptable solution. The simplest and least expensive option.",benefits:["No cost if done directly between parties","Complete control over the outcome","Preserves relationships","Can be done at any time","Completely confidential"],bestFor:"Minor disputes, ongoing relationships, situations where both parties are willing to compromise"},{title:"Mediation",icon:_e,description:"A neutral third party (mediator) helps both sides communicate and find a solution. The mediator doesn't decide the outcome—you do.",benefits:["Much cheaper than court (typically £500-£2,000)","Faster resolution (often in one day)","High success rate (70-80%)","Confidential and flexible","You control the outcome"],bestFor:"Family dis
501putes, workplace conflicts, neighbour disputes, commercial disagreements"},{title:"Arbitration",icon:qe,description:"An independent arbitrator hears both sides and makes a binding decision. More formal than mediation but less than court.",benefits:["Faster than court proceedings","Expert arbitrators for specialist disputes","Binding decision","Private and confidential","More flexible procedures"],bestFor:"Commercial disputes, construction matters, international business conflicts"},{title:"Conciliation",icon:Vi,description:"Similar to mediation, but the conciliator may suggest solutions. Often used in employment and consumer disputes.",benefits:["Expert guidance towards resolution","Often free through organisations like ACAS","Less adversarial than court","Can rebuild working relationships","Faster than formal proceedings"],bestFor:"Employment disputes, consumer complaints, professional disagreements"},{title:"Ombudsman Services",icon:Ze,description:"Free, independent services that investigate complaints in specific sectors. Their decisions are often binding on the organisation complained about.",benefits:["Completely free to use","Independent and impartial","
501Expertise in specific sectors","Can award compensation","Decisions often binding on companies"],bestFor:"Complaints about financial services, energy companies, telecoms, local government, NHS"}],eL=[{icon:Xa,title:"Time",description:"Court cases can take months or even years to resolve. The average civil case takes 12-18 months. During this time, the dispute hangs over you."},{icon:cr,title:"Cost",description:"Legal fees, court fees, and potential liability for the other side's costs if you lose. Even 'winning' can be expensive when legal costs are deducted."},{icon:vt,title:"Stress",description:"Court proceedings are adversarial by nature. The process can be emotionally draining, with formal procedures and uncertain outcomes."},{icon:Ge,title:"Complexity",description:"Strict procedural rules, deadlines, and technical requirements. One mistake can harm your case or result in it being struck out."},{icon:_e,title:"Relationships",description:"Court creates winners and losers. The adversarial process often damages relationships beyond repair, which can be problematic for ongoing connections."},{icon:qe,title:"Uncertainty",description:"No matter how strong your case, outcomes are never guaranteed. Judges can interpret evidence differently than you expect."}];function tL(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Understanding the UK Legal System - Courts, Tribunals & ADR",description:"Learn about the UK legal system including court hierarchy, tribunals, mediation and alternative dispute resolution. Understand how courts work, legal aid options and your rights when navigating justice.",keywords:"UK legal system explained, court hierarchy UK, tribunal system UK, alternative dispute resolution, legal aid eligibility, UK courts guide, small claims court, employment tribunal, family court"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-16 text-primary-foreground md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(yt,{variant:"secondary",className:"mb-4",children:"Educational Resource"}),r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-legal-system-title",children:"Understanding the UK Legal System"}),r.jsx("p",{className:"text-lg text-primary-foreground/80","data-testid":"text-legal-system-subtitle",children:"Learn how the courts work, why litigation should be a last resort, and discover better ways to resolve disputes that save time, money, and stress."})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"The Court System Explained"}),r.jsx("p",{className:"mx-auto max-w-3xl text-muted-foreground",children:"The UK has a hierarchical court system. Understanding which court handles your type of case—and the potential journey through appeals—helps you appreciate why avoiding court when possible is often the wisest choice."})]}),r.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:XI.map((e,t)=>r.jsxs(W,{"data-testid":`card-court-${t}`,children:[r.jsx(le,{className:"pb-3",children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10",children:r.jsx(e.icon,{className:"h-5 w-5 text-primary"})}),r.jsxs("div",{children:[r.jsx(ce,{className:"text-lg",children:e.name}),r.jsxs(yt,{variant:"outline",className:"mt-1 text-xs",children:[e.level==="highest"&&"Highest Court",e.level==="high"&&"Senior Court",e.level==="medium"&&"Mid-Level Court",e.level==="lower"&&"First Instance",e.level==="specialist"&&"Specialist"]})]})]})}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})})]},t))}),r.jsx("div",{className:"mt-8 rounded-lg bg-muted p-6",children:r.jsxs("p",{className:"text-center text-muted-foreground",children:[r.jsx("strong",{children:"Important:"})," Most disputes never need to reach a courtroom. The courts themselves encourage parties to resolve matters through alternative means before litigation—and judges can penalise those who refuse reasonable settlement offers."]})})]})}),r.jsx("section",{className:"border-t bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-destructive/10",children:r.jsx(vt,{className:"h-8 w-8 text-destructive"})}),r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Why Court Should Be Your Last Resort"}),r.jsx("p",{className:"mx-auto max-w-3xl text-muted-foreground",children:"While the courts exist to deliver justice, the reality of litigation is often far more challenging than people expect. Before pursuing court action, consider these factors."})]}),r.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:eL.map((e,t)=>r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-destructive/10",children:r.jsx(e.icon,{className:"h-6 w-6 text-destructive"})}),r.jsx("h3",{className:"mb-2 text-lg font-semibold",children:e.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]})},t))}),r.jsx(W,{className:"mt-8 border-amber-200 bg-amber-50 dark:border-amber-900 dark:bg-amber-950/20",children:r.jsx($,{className:"pt-6",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx(cr,{className:"h-8 w-8 shrink-0 text-amber-600"}),r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 text-lg font-semibold",children:"The True Cost of Court"}),r.jsx("p",{className:"mb-4 text-muted-foreground",children:"A typical County Court case can cost £10,000-£30,000 in legal fees. High Court cases often exceed £50,000-£100,000. Employment tribunal claims, while free to file, still require significant preparation time and can involve legal costs if you want representation."}),r.jsxs("p",{className:"text-muted-foreground",children:[r.jsx("strong",{children:'The "loser pays" rule:'})," In most civil cases, the losing party pays the winner's legal costs. This means you could end up paying double—your own costs plus the other side's—if you lose."]})]})]})})})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-green-100 dark:bg-green-900/20",children:r.jsx(Vi,{className:"h-8 w-8 text-green-600"})}),r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Better Ways to Resolve Disputes"}),r.jsx("p",{className:"mx-auto max-w-3xl text-muted-foreground",children:"Alternative Dispute Resolution (ADR) offers faster, cheaper, and less stressful ways to resolve conflicts. Courts actively encourage ADR, and refusing to consider it can result in cost penalties even if you win your case."})]}),r.jsx("div",{className:"grid gap-6 lg:grid-cols-2",children:JI.map((e,t)=>r.jsxs(W,{"data-testid":`card-adr-${t}`,children:[r.jsx(le,{children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-green-100 dark:bg-green-900/20",children:r.jsx(e.icon,{className:"h-6 w-6 text-green-600"})}),r.jsxs("div",{children:[r.jsx(ce,{children:e.title}),r.jsx(ot,{className:"mt-1",children:e.description})]})]})}),r.jsxs($,{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"mb-2 font-semibold text-green-700 dark:text-green-400",children:"Benefits:"}),r.jsx("ul",{className:"space-y-1",children:e.benefits.map((n,s)=>r.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[r.jsx(ye,{className:"mt-0.5 h-4 w-4 shrink-0 text-green-600"}),n]},s))})]}),r.jsx("div",{className:"rounded-md bg-muted p-3",children:r.jsxs("p",{className:"text-sm",children:[r.jsx("strong",{children:"Best for:"})," ",e.bestFor]})})]})]},t))})]})}),r.jsx("section",{className:"border-t bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"When Court May Be Necessary"}),r.jsx("p",{className:"mx-auto max-w-3xl text-muted-foreground",children:"While we encourage exploring alternatives first, there are situations where court proceedings may be unavoidable or the best option."})]}),r.jsxs("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:[r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx("h3",{className:"mb-2 font-semibold",children:"Urgent Protection Needed"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"When you need immediate protection—such as an injunction to stop harassment, prevent asset disposal, or protect a child—only the courts can grant these urgent orders."})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx("h3",{className:"mb-2 font-semibold",children:"Other Party Refuses to Engage"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"If the other party refuses all attempts at negotiation, mediation, or communication, court may be your only option to achieve resolution."})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx("h3",{className:"mb-2 font-semibold",children:"Legal Precedent Needed"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Some cases involve points of law that need clarification. A court judgment creates precedent that can benefit others in similar situations."})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx("h3",{className:"mb-2 font-semibold",children:"Significant Power Imbalance"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"When facing a much more powerful party (large corporation, government body), the formal court process may provide protections that informal negotiations cannot."})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx("h3",{className:"mb-2 font-semibold",children:"Enforcement Needed"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Court orders carry enforcement powers. If someone owes you money and won't pay, a court judgment allows you to use bailiffs, wage attachment, or other enforcement methods."})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx("h3",{className:"mb-2 font-semibold",children:"Criminal Matters"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Criminal cases must go through the courts. If you're a victim of crime, the Crown Prosecution Service handles prosecution, though you may pursue civil claims separately."})]})})]})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsx("div",{className:"rounded-lg bg-primary p-8 text-primary-foreground md:p-12",children:r.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[r.jsx(Rt,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h2",{className:"mb-4 text-2xl font-bold md:text-3xl",children:"How We Can Help"}
vendor: 4,455 bytes, line 501
501),r.jsx("p",{className:"mb-6 text-primary-foreground/80",children:"Whether you're trying to resolve a dispute without court, preparing for tribunal proceedings, or navigating the legal system as a litigant in person, we're here to support you. Our team can help you understand your options, prepare your case, and connect you with the right professionals."}),r.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[r.jsx(Q,{href:"/contact",children:r.jsxs(pe,{variant:"secondary",size:"lg","data-testid":"button-legal-system-contact",children:["Get Support",r.jsx(st,{className:"ml-2 h-4 w-4"})]})}),r.jsx(Q,{href:"/services",children:r.jsx(pe,{variant:"outline",size:"lg",className:"border-primary-foreground/20 text-primary-foreground hover:bg-primary-foreground/10","data-testid":"button-legal-system-services",children:"View Our Services"})})]})]})})})}),r.jsx("section",{className:"border-t bg-muted py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h2",{className:"mb-4 text-2xl font-bold",children:"Learn More"}),r.jsx("p",{className:"mb-8 text-muted-foreground",children:"Explore our other educational resources to better understand legal processes and your options."}),r.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[r.jsx(Q,{href:"/legal-professions",children:r.jsx(pe,{variant:"outline","data-testid":"link-legal-professions",children:"Legal Professions Explained"})}),r.jsx(Q,{href:"/practice-areas",children:r.jsx(pe,{variant:"outline","data-testid":"link-practice-areas",children:"Our Practice Areas"})})]})]})})]}),r.jsx(Ce,{})]})}var ex="Collapsible",[nL,tC]=qn(ex),[rL,tx]=nL(ex),nC=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:s,defaultOpen:i,disabled:a,onOpenChange:o,...l}=e,[c=!1,u]=hr({prop:s,defaultProp:i,onChange:o});return r.jsx(rL,{scope:n,disabled:a,contentId:$n(),open:c,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),children:r.jsx(he.div,{"data-state":rx(c),"data-disabled":a?"":void 0,...l,ref:t})})});nC.displayName=ex;var rC="CollapsibleTrigger",sC=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,...s}=e,i=tx(rC,n);return r.jsx(he.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":rx(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...s,ref:t,onClick:ie(e.onClick,i.onOpenToggle)})});sC.displayName=rC;var nx="CollapsibleContent",iC=y.forwardRef((e,t)=>{const{forceMount:n,...s}=e,i=tx(nx,e.__scopeCollapsible);return r.jsx(Kn,{present:n||i.open,children:({present:a})=>r.jsx(sL,{...s,ref:t,present:a})})});iC.displayName=nx;var sL=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:s,children:i,...a}=e,o=tx(nx,n),[l,c]=y.useState(s),u=y.useRef(null),d=Ke(t,u),m=y.useRef(0),h=m.current,p=y.useRef(0),v=p.current,f=o.open||l,b=y.useRef(f),g=y.useRef(void 0);return y.useEffect(()=>{const x=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(x)},[]),pt(()=>{const x=u.current;if(x){g.current=g.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();m.current=w.height,p.current=w.width,b.current||(x.style.transitionDuration=g.current.transitionDuration,x.style.animationName=g.current.animationName),c(s)}},[o.open,s]),r.jsx(he.div,{"data-state":rx(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!f,...a,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:f&&i})});function rx(e){return e?"open":"closed"}var iL=nC,aL=sC,oL=iC,us="Accordion",lL=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[sx,cL,uL]=uo(us),[Jd,x$]=qn(us,[uL,tC]),ix=tC(),aC=Ie.forwardRef((e,t)=>{const{type:n,...s}=e,i=s,a=s;return r.jsx(sx.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?r.jsx(pL,{...a,ref:t}):r.jsx(hL,{...i,ref:t})})});aC.displayName=us;var[oC,dL]=Jd(us),[lC,mL]=Jd(us,{collapsible:!1}),hL=Ie.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[l,c]=hr({prop:n,defaultProp:s,onChange:i});return r.jsx(oC,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:c,onItemClose:Ie.useCallback(()=>a&&c(""),[a,c]),children:r.jsx(lC,{scope:e.__scopeAccordion,collapsible:a,children:r.jsx(cC,{...o,ref:t})})})}),pL=Ie.forwardRef((e,t)=>
501{const{value:n,defaultValue:s,onValueChange:i=()=>{},...a}=e,[o=[],l]=hr({prop:n,defaultProp:s,onChange:i}),c=Ie.useCallback(d=>l((m=[])=>[...m,d]),[l]),u=Ie.useCallback(d=>l((m=[])=>m.filter(h=>h!==d)),[l]);return r.jsx(oC,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:r.jsx(lC,{scope:e.__scopeAccordion,collapsible:!0,children:r.jsx(cC,{...a,ref:t})})})}),[fL,em]=Jd(us),cC=Ie.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:s,dir:i,orientation:a="vertical",...o}=e,l=Ie.useRef(null),c=Ke(l,t),u=cL(n),m=sc(i)==="ltr",h=ie(e.onKeyDown,p=>{var R;if(!lL.includes(p.key))return;const v=p.target,f=u().filter(O=>{var S;return!((S=O.ref.current)!=null&&S.disabled)}),b=f.findIndex(O=>O.ref.current===v),g=f.length;if(b===-1)return;p.preventDefault();let x=b;const w=0,j=g-1,k=()=>{x=b+1,x>j&&(x=w)},N=()=>{x=b-1,x<w&&(x=j)};switch(p.key){case"Home":x=w;break;case"End":x=j;break;case"ArrowRight":a==="horizontal"&&(m?k():N());break;case"ArrowDown":a==="vertical"&&k();break;case"ArrowLeft":a==="horizontal"&&(m?N():k());break;case"ArrowUp":a==="vertical"&&N();break}const T=x%g;(R=f[T].ref.current)==null||R.focus()});return r.jsx(fL,{scope:n,disabled:s,direction:i,orientation:a,children:r.jsx(sx.Slot,{scope:n,children:r.jsx(he.div,{...o,"data-orientation":a,ref:c,onKeyDown:s?void 0:h})})})}),Zu="AccordionItem",[gL,ax]=Jd(Zu),uC=Ie.forwardRef((e,t)=>{const{__scopeAccordion:n,value:s,...i}=e,a=em(Zu,n),o=dL(Zu,n),l=ix(n),c=$n(),u=s&&o.value.includes(s)||!1,d=a.disabled||e.disabled;return r.jsx(gL,{scope:n,open:u,disabled:d,triggerId:c,children:r.jsx(iL,{"data-orientation":a.orientation,"data-state":gC(u),...l,...i,ref:t,disabled:d,open:u,onOpenChange:m=>{m?o.onItemOpen(s):o.onItemClose(s)}})})});uC.displayName=Zu;var dC="AccordionHeader",mC=Ie.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,i=em(us,n),a=ax(dC,n);return r.jsx(he.h3,{"data-orientation":i.orientation,"data-state":gC(a.open),"data-disabled":a.disabled?"":void 0,...s,ref:t})});mC.displayName=dC;var qp="AccordionTrigger",hC=Ie.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,i=em(us,n),a=ax(qp,n),o=mL(qp,n),l=ix(n);return r.jsx(sx.ItemSlot,{scope:n,children:r.jsx(aL,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...l,...s,ref:t})})});hC.displayName=qp;var pC="AccordionContent",fC=Ie.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,i=em(us,n),a=ax(pC,n),o=ix(n);return r.jsx(oL,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...s,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});fC.displayName=pC;function gC(e){return e?"open":"closed"}var xL=aC,yL=uC,vL=mC,xC=hC,yC=fC;const wL=xL,vC=y.forwardRef(({className:e,...t},n)=>r.jsx(yL,{ref:n,className:xe("border-b",e),...t}));vC.displayName="AccordionItem";const wC=y.forwardRef(({className:e,children:t,...n},s)=>r.jsx(vL,{className:"flex",children:r.jsxs(xC,{ref:s,className:xe("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,r.jsx(nc,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));wC.displayName=xC.displayName;const bC=y.forwardRef(({className:e,children:t,...n},s)=>r.jsx(yC,{ref:s,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:r.jsx("div",{className:xe("pb-4 pt-0",e),children:t})}));bC.displayName=yC.displayName;const bL=[{title:"Mock Negotiations",icon:Vi,description:"Build confidence in settlement discussions with realistic negotiation practice.",benefits:["Confidence in settlement discussions","How to structure offers and counteroffers","Communication and boundary-setting","Reduces stress and saves time/cost"]},{title:"Mock Mediation",icon:_e,description:"Prepare for real mediation sessions by understanding the process and practising techniques.",benefits:["Understand the mediation process and roles","Practise calm, solution-focused communication","Improve listening and emotional regulation","Prepare for real mediation sessions"]},{title:"Mock Arbitration",icon:qe,description:"Learn how arbitration differs from court and practise presenting your case effectively.",benefits:["Learn how arbitration differs from court","Practise presenting evidence and arguments","Understand binding outcomes and procedure","Improve clarity and case organisation"]},{title:"Mock Tribunals",icon:cs,description:"Gain familiarity with tribunal hearings and reduce fear of the formal process.",benefits:["Familiarity with tribunal hearing format","Practise answering panel questions","Understand evidence standards and burden of proof","Reduce fear of cross-questioning"]},{title:"Mock Trials Training",icon:Z_,description:"Realistic rehearsal of court hearings to identify weaknesses before the real thing.",benefits:["Realistic rehearsal of a hearing/trial","Courtroom etiquette and procedure","Oral submissions and witness handling practice","Identify weaknesses before the real hearing"]}],jL=[{icon:qe,text:"People representing themselves in civil claims"},{icon:_n,text:"Employment dispute claimants and respondents"},{icon:Mt,text:"Housing matter participants"},{icon:cr,text:"Small claims court users"},{icon:Rt,text:"Family matter participants"},{icon:I_,text:"Benefits and other tribunal users"}],NL=[{question:"Is this legal advice or representation?",answer:"No. These are practical training sessions designed to build your confidence and capability. We do not provide legal advice or represent you in any proceedings. Our role is educational—helping you understand processes and practise skills so you feel more prepared. For legal advice, we can refer you to qualified solicitors or barristers."},{question:"Do I need documents to take part?",answer:"Documents are optional but helpful. If you have case documents, witness statements, or evidence bundles, sharing them (with 
501sensitive information redacted if preferred) helps us tailor the training to your specific situation. However, we can also run sessions based on general scenarios if you prefer not to share documents."},{question:"How long is a session?",answer:"Sessions typically run between 1-2 hours depending on the type of training and complexity. Mock trial sessions may be longer (2-3 hours) to allow for a realistic experience. We'll discuss timing when you book and ensure the session meets your needs."},{question:"Will I be told what to say in court?",answer:"No. We help you develop your own voice and approach. Through practice and feedback, you'll learn how to present your case clearly and confidently. We'll highlight areas for improvement and help you refine your communication—but the words and decisions are always yours. This is about building your capability, not scripting you."},{question:"Can you run this online?",answer:"Yes! We offer both in-person and online sessions via video call. Online sessions are just as effective and often more convenient. Many people find practising via video call helpful as it mirrors how many tribunal and mediation sessions now operate remotely."}];function kL(){const{toast:e}=_d(),[t,n]=y.useState({name:"",email:"",phone:"",sessionType:"",message:""}),[s,i]=y.useState(!1),a=c=>{const{name:u,value:d}=c.target;n(m=>({...m,[u]:d}))},o=c=>{if(c.preventDefault(),!t.name||!t.email||!t.message){e({title:"Please fill in required fields",description:"Name, email, and message are required.",variant:"destructive"});return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.email)){e({title:"Invalid email",description:"Please enter a valid email address.",variant:"destructive"});return}i(!0),setTimeout(()=>{i(!1),e({title:"Booking request sent!",description:"We'll be in touch within 48 hours to arrange your session."}),n({name:"",email:"",phone:"",sessionType:"",message:""})},1e3)},l=c=>{const u=document.getElementById(c);u&&u.scrollIntoView({behavior:"smooth"})};return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Mock Legal Training - Negotiations, Mediation & Tribunal Practice",description:"Practice mock negotiations, mediation, tribunal hearings and court proceedings. Build confidence with realistic legal scenario training at £50/hour. Perfect preparation for your real legal proceedings.",keywords:"mock tribunal training UK, mediation practice, mock negotiation training, court preparation help, tribunal hearing practice, legal training sessions, litigant in person preparation"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-20 text-primary-foreground md:py-28",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(yt,{variant:"secondary",className:"mb-4",children:"Training Services"}),r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl lg:text-6xl","data-testid":"text-mock-training-title",children:"Mock Legal Process Training for Litigants in Person"}),r.jsx("p",{className:"mb-8 text-lg text-primary-foreground/80 md:text-xl","data-testid":"text-mock-training-subtitle",children:"Build confidence, learn procedure, and practise your case safely before the real thing."}),r.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[r.jsxs(pe,{variant:"secondary",size:"lg",onClick:()=>l("book"),"data-testid":"button-book-session-hero",children:["Book a Session",r.jsx(E_,{className:"ml-2 h-4 w-4"})]}),r.jsxs(pe,{variant:"outline",size:"lg",className:"border-primary-foreground/20 text-primary-foreground hover:bg-primary-foreground/10",onClick:()=>l("services"),"data-testid":"button-learn-more-hero",children:["Learn More",r.jsx(st,{className:"ml-2 h-4 w-4"})]})]})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:r.jsxs("div",{className:"text-center",children:[r.jsx("h2",{className:"mb-6 text-3xl font-bold tracking-tight",children:"Practical Preparation for Real Legal Situations"}),r.jsxs("div",{className:"space-y-4 text-left text-muted-foreground md:text-center",children:[r.jsx("p",{children:"Facing a court hearing, tribunal, or formal dispute resolution process can be over
501whelming—especially when you're representing yourself. The procedures are unfamiliar, the language is complex, and the stakes feel high. Our mock training sessions are designed to change that."}),r.jsx("p",{children:"These are practical, simulation-based training sessions (not legal representation) designed to build your capability and reduce anxiety. You'll experience realistic scenarios in a safe environment, receive constructive feedback, and develop the skills and confidence you need."}),r.jsx("p",{children:"Whether you're preparing for negotiation, mediation, arbitration, a tribunal hearing, or a court trial, our trained team will guide you through what to expect and help you practise your responses. When the real day comes, you'll feel prepared."})]})]})})}),r.jsx("section",{id:"services",className:"border-t bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Our Training Sessions"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"Choose the session type that matches your upcoming legal process. Each session is tailored to your specific situation."})]}),r.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:bL.map((c,u)=>r.jsxs(W,{className:"flex flex-col","data-testid":`card-service-${u}`,children:[r.jsxs(le,{children:[r.jsx("div",{className:"mb-2 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",children:r.jsx(c.icon,{className:"h-6 w-6 text-primary"})}),r.jsx(ce,{className:"text-xl",children:c.title}),r.jsx(ot,{children:c.description})]}),r.jsx($,{className:"flex-1",children:r.jsx("ul",{className:"space-y-2",children:c.benefits.map((d,m)=>r.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[r.jsx(ye,{className:"mt-0.5 h-4 w-4 shrink-0 text-green-500"}),d]},m))})})]},u))}),r.jsx("div",{className:"mt-8 text-center",children:r.jsxs(pe,{size:"lg",onClick:()=>l("book"),"data-testid":"button-book-session-services",children:["Book Your Training Session",r.jsx(st,{className:"ml-2 h-4 w-4"})]})})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsxs("div",{className:"text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Who Is This For?"}),r.jsx("p",{className:"mb-8 text-muted-foreground",children:"Our mock training sessions are designed for anyone representing themselves in a legal process."})]}),r.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:jL.map((c,u)=>r.jsxs("div",{className:"flex items-center gap-3 rounded-lg border bg-card p-4","data-testid":`item-who-${u}`,children:[r.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10",children:r.jsx(c.icon,{className:"h-5 w-5 text-primary"})}),r.jsx("span",{className:"text-sm font-medium",children:c.text})]},u))})]})}),r.jsx("section",{id:"book",className:"border-t bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Book a Training Session"}),r.jsx("p",{className:"text-muted-foreground",children:"Ready to prepare for your legal process? Here's how to get started."})]}),r.jsx(W,{className:"mb-8 border-primary/20 bg-primary/5",children:r.jsx($,{className:"pt-6",children:r.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[r.jsxs("div",{className:"flex flex-col items-center text-center",children:[r.jsx("div",{className:"mb-3 flex h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-foreground",children:r.jsx("span",{className:"text-lg font-bold",children:"1"})}),r.jsx("h3",{className:"mb-1 font-semibold",children:"Choose Your Session"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Select the type of mock training that matches your upcoming process."})]}),r.jsxs("div",{className:"flex flex-col items-center text-center",children:[r.jsx("div",{className:"mb-3 flex h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-foreground",children:r.jsx("span",{className:"text-lg font-bold",children:"2"})}),r.jsx("h3",{className:"mb-1 font-semibold",children:"Send Documents (Optional)"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Share any relevant case documents to help us tailor your session."})]}),r.jsxs("div",{className:"flex flex-col items-center text-center",children:[r.jsx("div",{className:"mb-3 flex h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-foreground",children:r.jsx("span",{className:"text-lg font-bold",children:"3"})}),r.jsx("h3",{className:"mb-1 font-semibold",children:"Receive Prep Checklist"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We'll send you everything you need to prepare for your training."})]})]})})}),r.jsxs(W,{children:[r.jsxs(le,{children:[r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(An,{className:"h-5 w-5"}),"Request a Booking"]}),r.jsx(ot,{children:"Fill in the form below and we'll be in touch within 48 hours to arrange your session."})]}),r.jsx($,{children:r.jsxs("form",{onSubmit:o,className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"name",children:"Name *"}),r.jsx(zn,{id:"name",name:"name",value:t.name,onChange:a,placeholder:"Your full name","data-testid":"input-name"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"email",children:"Email *"}),r.jsx(zn,{id:"email",name:"email",type:"email",value:t.email,onChange:a,placeholder:"[email protected]","data-testid":"input-email"})]})]}),r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"phone",children:"Phone (optional)"}),r.jsx(zn,{id:"phone",name:"phone",type:"tel",value:t.phone,onChange:a,placeholder:"Your phone number","data-testid":"input-phone"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"sessionType",children:"Session Type (optional)"}),r.jsx(zn,{id:"sessionType",name:"sessionType",value:t.sessionType,onCh
501ange:a,placeholder:"e.g., Mock Tribunal, Mock Mediation","data-testid":"input-session-type"})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Vt,{htmlFor:"message",children:"Tell us about your situation *"}),r.jsx(Gd,{id:"message",name:"message",value:t.message,onChange:a,placeholder:"Briefly describe your legal situation and what you'd like help preparing for...",className:"min-h-32","data-testid":"input-message"})]}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs(pe,{type:"submit",disabled:s,"data-testid":"button-submit-booking",children:[s?"Sending...":"Send Booking Request",r.jsx(Ng,{className:"ml-2 h-4 w-4"})]}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Sessions are charged at £50 per hour"})]})]})})]})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-3xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-8 text-center",children:[r.jsx("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",children:r.jsx(v1,{className:"h-6 w-6 text-primary"})}),r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Frequently Asked Questions"}),r.jsx("p",{className:"text-muted-foreground",children:"Common questions about our mock training sessions."})]}),r.jsx(wL,{type:"single",collapsible:!0,className:"w-full",children:NL.map((c,u)=>r.jsxs(vC,{value:`faq-${u}`,children:[r.jsx(wC,{className:"text-left","data-testid":`faq-trigger-${u}`,children:c.question}),r.jsx(bC,{className:"text-muted-foreground","data-testid":`faq-content-${u}`,children:c.answer})]},u))})]})}),r.jsx("section",{className:"border-t bg-primary py-16 text-primary-foreground md:py-20",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h2",{className:"mb-4 text-2xl font-bold md:text-3xl",children:"Ready to Feel Prepared?"}),r.jsx("p",{className:"mb-6 text-primary-foreground/80",children:"Don't face your legal process unprepared. Our mock training sessions give you the practice and confidence you need."}),r.jsxs(pe,{variant:"secondary",size:"lg",onClick:()=>l("book"),"data-testid":"button-book-session-cta",children:["Book Your Session Today",r.jsx(st,{className:"ml-2 h-4 w-4"})]})]})})]}),r.jsx(Ce,{})]})}const CL=[{number:1,title:"Initial Consultation",icon:An,description:"We begin with an initial consultation to understand your circumstances and assess whether our service is appropriate for your needs. This allows both you and our team to decide whether working together is the right next step."},{number:2,title:"Secure Communication Setup",icon:_e,description:"If we mutually agree to proceed, we will set up a dedicated WhatsApp group for your matter. This group will include you and relevant members of our team, such as our Executive Assistant, Legal Secretary, and Finance Manager. Once funding is confirmed, a Case Lead will also be added."},{number:3,title:"Case Lead Appointment",icon:po,description:"Your Case Lead will hold a Qualifying Law Degree (QLD) and may be supported by a wider team where appropriate. Their role is to guide your matter, coordinate the work involved, and ensure you have a clear understanding of each stage of the process."},{number:4,title:"Fees and Initial Funding",icon:cr,description:"Our work is charged at £50 per hour. In most cases, we request an initial allocation of 7 hours (£350). The exact time required may vary depending on the nature and complexity of the matter."},{number:5,title:"Evidence Collection",icon:Ge,description:"Once a Case Lead has been appointed, you will be asked to provide all relevant documents, correspondence, and information relating to your situation."},{number:6,title:"Evidence Bundle Preparation",icon:D_,description:"We organise your materials into a structured Evidence Bundle. This document is essential, as it forms the foundation of your matter and underpins all analysis and guidance moving forward."},{number:7,title:"Fact-Finding and Legal Analysis",icon:jg,description:"Our team carries out a detailed fact-finding exercise alongside a review of the relevant legal principles. This allows us to clarify how the law applies to your specific circumstances."},{number:8,title:"Options and Next Steps",icon:vg,description:"Based on this analysis, we present clear and realistic options available to you. These are explained in plain language so you can make informed decisions about how you wish to proceed."},{number:9,title:"Your Client Case Bundle",icon:Vn,description:"This working document—referred to as your Client Case Bundle—becomes the basis for all future discussions and actions. Everything moving forward is guided by the decisions you make."}],SL=["Legal information and education","Procedural and strategic guid
501ance","Case organisation and support","Assistance with document preparation","Empowering individuals to understand their legal position and options"],EL=["Legal representation","Conduct of litigation","Advocacy services","Rights of audience (speaking on your behalf in court)","Reserved legal activities as defined by the Legal Services Act 2007"];function TL(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"How We Support You - Our Legal Support Process",description:"Learn how the National Community Law Project supports you through our step-by-step process. From initial consultation to case preparation, we guide you through accessing affordable legal help at £50/hour.",keywords:"legal support process UK, how legal support works, affordable legal consultation, case preparation help, legal document support, step by step legal help"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-16 text-primary-foreground md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(yt,{variant:"secondary",className:"mb-4",children:"Our Process"}),r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-how-we-support-title",children:"How We Support You"}),r.jsx("p",{className:"text-lg text-primary-foreground/80","data-testid":"text-how-we-support-subtitle",children:"At The National Community Law Project CIC, we provide structured, practical support to help individuals understand their legal situation and move forward with confidence. Our approach is built around clarity, empowerment, and informed decision-making."})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Our Step-by-Step Process"}),r.jsx("p",{className:"text-muted-foreground",children:"We follow a clear, structured approach to ensure you receive consistent, high-quality support throughout your matter."})]}),r.jsx("div",{className:"space-y-6",children:CL.map((e,t)=>r.jsx(W,{"data-testid":`card-step-${t}`,children:r.jsx($,{className:"pt-6",children:r.jsxs("div",{className:"flex gap-4",children:[r.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-primary text-primary-foreground",children:r.jsx("span",{className:"text-lg font-bold",children:e.number})}),r.jsxs("div",{className:"flex-1",children:[r.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[r.jsx(e.icon,{className:"h-5 w-5 text-primary"}),r.jsx("h3",{className:"text-lg font-semibold",children:e.title})]}),r.jsx("p",{className:"text-muted-foreground",children:e.description})]})]})})},t))})]})}),r.jsx("section",{className:"border-t bg-card py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:r.jsx("div",{className:"rounded-lg bg-primary p-8 text-primary-foreground md:p-12",children:r.jsxs("div",{className:"flex flex-col items-center gap-6 text-center md:flex-row md:text-left",children:[r.jsx("div",{className:"flex h-20 w-20 shrink-0 items-center justify-center rounded-full bg-primary-foreground/10",children:r.jsx(Rt,{className:"h-10 w-10"})}),r.jsxs("div",{children:[r.jsx("h2",{className:"mb-4 text-2xl font-bold",children:"Our Commitment to You"}),r.jsx("p",{className:"text-primary-foreground/90",children:"Our belief is that when you fully understand your case, supported by our professional team, you are in a stronger position to make sound decisions and develop a multi-skilled, strategic approach to achieving effective outcomes—often without the need for prolonged or unnecessary litigation."}),r.jsxs("p",{className:"mt-4 text-primary-foreground/90",children:["Throughout the process, our focus is on ",r.jsx("strong",{children:"clarity"}),", ",r.jsx("strong",{children:"empowerment"}),", and ",r.jsx("strong",{children:"skill development"}),", placing you in the best possible position to move forward wherever possible without the need for court proceedings."]})]})]})})})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-amber-100 dar
501k:bg-amber-900/20",children:r.jsx(vt,{className:"h-8 w-8 text-amber-600"})}),r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Important Notice"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Non-Regulated Legal Support"})]}),r.jsx(W,{className:"mb-8 border-amber-200 bg-amber-50/50 dark:border-amber-900 dark:bg-amber-950/20",children:r.jsx($,{className:"pt-6",children:r.jsx("p",{className:"text-muted-foreground",children:"The National Community Law Project CIC is not a regulated law firm and does not provide reserved legal activities as defined under the Legal Services Act 2007. We do not offer legal representation, conduct litigation, provide advocacy, or exercise rights of audience."})})}),r.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[r.jsxs(W,{className:"border-green-200 dark:border-green-900",children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2 text-green-700 dark:text-green-400",children:[r.jsx(ye,{className:"h-5 w-5"}),"Our Services Are Limited To"]})}),r.jsx($,{children:r.jsx("ul",{className:"space-y-2",children:SL.map((e,t)=>r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(ye,{className:"mt-0.5 h-4 w-4 shrink-0 text-green-500"}),e]},t))})})]}),r.jsxs(W,{className:"border-red-200 dark:border-red-900",children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2 text-red-700 dark:text-red-400",children:[r.jsx(Bt,{className:"h-5 w-5"}),"We Do Not Provide"]})}),r.jsx($,{children:r.jsx("ul",{className:"space-y-2",children:EL.map((e,t)=>r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(Bt,{className:"mt-0.5 h-4 w-4 shrink-0 text-red-500"}),e]},t))})})]})]}),r.jsx(W,{className:"mt-8 border-primary/20 bg-primary/5",children:r.jsx($,{className:"pt-6",children:r.jsxs("div",{className:"flex flex-col items-center gap-4 text-center md:flex-row md:text-left",children:[r.jsx(Ze,{className:"h-10 w-10 shrink-0 text-primary"}),r.jsx("div",{children:r.jsx("p",{className:"text-muted-foreground",children:"Where appropriate, we may recommend that you seek advice or representation from a suitably regulated legal professional, such as a solicitor or barrister. Nothing on this website, or within our services, should be relied upon as a substitute for regulated legal advice."})})]})})})]})}),r.jsx("section",{className:"border-t bg-primary py-16 text-primary-foreground md:py-20",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h2",{className:"mb-4 text-2xl font-bold md:text-3xl",children:"Ready to Get Started?"}),r.jsx("p",{className:"mb-6 text-primary-foreground/80",children:"If you're facing a legal challenge and need structured support to understand your options, we're here to help."}),r.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[r.jsx(Q,{href:"/contact",children:r.jsxs(pe,{variant:"secondary",size:"lg","data-testid":"button-contact-cta",children:["Request a Consultation",r.jsx(st,{className:"ml-2 h-4 w-4"})]})}),r.jsx(Q,{href:"/services",children:r.jsx(pe,{variant:"outline",size:"lg",className:"border-primary-foreground/20 text-primary-foreground hover:bg-primary-foreground/10","data-testid":"button-services-cta",children:"View Our Services"})})]})]})})]}),r.jsx(Ce,{})]})}const PL=[{icon:Ge,title:"Creating & Managing Complaints",description:"We help individuals and organisations raise complaints effectively, ensuring they are clearly structured, legally sound, and directed to the correct body.",features:["Drafting formal complaints and responses","Identifying the correct complaint route or process","Ensuring tone, language, and framing are effective","Managing ongoing correspondence","Preventing unnecessary escalation"]},{icon:Ze,title:"Defending Complaints",description:"Receiving a complaint can feel stressful. We help you respond strategically, not reactively.",features:["Reviewing complaints objectively","Identifying risks and exposure","Drafting clear, proportionate responses","Ensuring compliance with complaint procedures","Reducing the likelihood of escalation"]},{icon:Vi,title:"Negotiation & Outcome Resolution",description:"Many complaints reach a point where resolution requires negotiation, not argument.",features:["Clarifying realistic outcomes","Managing expectations on both sides","De-escalating conflict","Supporting negotiated settlements","Closing matters in a controlled and constructive way"]}],_L=["Poor communication","Feeling ignored or dismissed","Unclear processes","Escalating emotions","Mistrust between parties"],AL=["Individuals","Small businesses","Community organisations","CICs and charities","Professionals facing complaints","Those raising complaints against organisations or public bodies"],RL=["Early intervention","Clear communication","Proportionate responses","Strategic negotiation","Outcome-focused resolution"];function IL(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Complaint Management & Dispute Resolution Services",description:"Professional complaint management and dispute resolution support. We help create, respond to and resolve complaints effectively. Ombudsman correspondence, negotiation support and conflict resolution at £50/hour.",keywords:"complaint management UK, dispute resolution help, ombudsman complaint help, defend against complaint, complaint response drafting, conflict resolution support, negotiation help"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-16 text-primary-foreground md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-complaint-title",children:"Complaint Management Services"}
vendor: 4,662 bytes, line 501
501),r.jsx("p",{className:"text-lg text-primary-foreground/80","data-testid":"text-complaint-subtitle",children:"Many disputes do not need to escalate into legal action. Most issues can be resolved early when complaints are approached correctly, communicated clearly, and managed strategically from the outset."})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:r.jsxs("div",{className:"prose prose-lg mx-auto dark:prose-invert",children:[r.jsx("p",{children:"At The National Community Law Project CIC, we provide structured complaint management services designed to help individuals, businesses, and organisations resolve issues efficiently, proportionately, and constructively."}),r.jsx("p",{children:"Our role is to ensure complaints are handled properly, fairly, and effectively, protecting your position while working towards a practical outcome."})]})})}),r.jsx("section",{className:"bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Understanding the Nature of Complaints"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"A complaint is rarely just about the issue itself. Understanding what drives complaints helps us resolve them effectively."})]}),r.jsxs("div",{className:"grid gap-8 lg:grid-cols-2",children:[r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(vt,{className:"h-5 w-5 text-destructive"}),"What Drives Complaints"]})}),r.jsxs($,{children:[r.jsx("ul",{className:"space-y-2",children:_L.map((e,t)=>r.jsxs("li",{className:"flex items-center gap-2 text-muted-foreground",children:[r.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive"}),e]},t))}),r.jsx("div",{className:"mt-6 rounded-lg bg-destructive/10 p-4",children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"When complaints are unmanaged or poorly handled, they can escalate unnecessarily, damage relationships, lead to regulatory or legal exposure, and become more costly and time-consuming."})})]})]}),r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(ye,{className:"h-5 w-5 text-green-600"}),"Handled Correctly, Complaints Can"]})}),r.jsxs($,{children:[r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-center gap-2 text-muted-foreground",children:[r.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-600"}),"Be resolved early"]}),r.jsxs("li",{className:"flex items-center gap-2 text-muted-foreground",children:[r.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-600"}),"Restore trust"]}),r.jsxs("li",{className:"flex items-center gap-2 text-muted-foreground",children:[r.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-600"}),"Prevent escalation"]}),r.jsxs("li",{className:"flex items-center gap-2 text-muted-foreground",children:[r.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-600"}),"Achieve outcomes that work for all parties"]})]}),r.jsx("div",{className:"mt-6 rounded-lg bg-green-600/10 p-4",children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"The approach taken at the start is often the deciding factor in how a complaint ends."})})]})]})]})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Why Early Complaint Management Matters"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"Early intervention allows issues to be framed correctly, communicated calmly and clearly, addressed before positions become entrenched, and resolved without unnecessary conflict."})]}),r.jsxs("div",{className:"mx-auto max-w-3xl rounded-lg border bg-card p-6 text-center",children:[r.jsx(Od,{className:"mx-auto mb-4 h-12 w-12 text-primary"}),r.jsx("p",{className:"text-lg font-medium",children:"Once a complaint escalates, options narrow and outcomes become harder to control."}),r.jsx("p",{className:"mt-2 text-muted-foreground",children:"Our service focuses on preventing escalation, not reacting to it."})]})]})}),r.jsx("section",{className:"bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Our C
501omplaint Management Services"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"We offer support across three key areas to help you manage complaints effectively."})]}),r.jsx("div",{className:"grid gap-8 lg:grid-cols-3",children:PL.map((e,t)=>r.jsxs(W,{className:"h-full","data-testid":`card-service-${t}`,children:[r.jsxs(le,{children:[r.jsx("div",{className:"mb-2 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",children:r.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),r.jsx(ce,{children:e.title}),r.jsx(ot,{className:"text-base",children:e.description})]}),r.jsx($,{children:r.jsx("ul",{className:"space-y-2",children:e.features.map((n,s)=>r.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[r.jsx(ye,{className:"mt-0.5 h-4 w-4 shrink-0 text-green-600"}),n]},s))})})]},t))})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsxs("div",{className:"grid gap-12 lg:grid-cols-2 lg:items-center",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Why Use a Third Party Like Us?"}),r.jsx("p",{className:"mb-6 text-lg text-muted-foreground",children:"Using an independent third party can significantly improve outcomes because we:"}),r.jsxs("ul",{className:"space-y-3",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),r.jsx("span",{children:"Bring objectivity and clarity"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),r.jsx("span",{children:"Remove emotion from the process"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),r.jsx("span",{children:"Apply experience across multiple sectors"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),r.jsx("span",{children:"Understand complaint frameworks and escalation routes"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),r.jsx("span",{children:"Focus on resolution, not blame"})]})]}),r.jsx("p",{className:"mt-6 text-muted-foreground",children:"People often communicate differently when a neutral professional is involved — which can unlock progress where direct communication has failed."})]}),r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(_e,{className:"h-5 w-5"}),"Who Our Services Are For"]})}),r.jsx($,{children:r.jsx("ul",{className:"space-y-3",children:AL.map((e,t)=>r.jsxs("li",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-primary/10",children:r.jsx(ye,{className:"h-4 w-4 text-primary"})}),r.jsx("span",{children:e})]},t))})})]})]})})}),r.jsx("section",{className:"bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Our Approach"}),r.jsx("div",{className:"mb-8 flex flex-wrap justify-center gap-3",children:RL.map((e,t)=>r.jsxs("div",{className:"flex items-center gap-2 rounded-full border bg-background px-4 py-2",children:[r.jsx(ye,{className:"h-4 w-4 text-green-600"}),r.jsx("span",{className:"text-sm font-medium",children:e})]},t))}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Not every issue needs to become a legal dispute. Handled correctly, many can be resolved quickly, fairly, and effectively."})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(An,{className:"mx-auto mb-6 h-16 w-16 text-primary"}),r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Speak to Us"}),r.jsx("p",{className:"mb-8 text-lg text-muted-foreground",children:"If you are:"}),r.jsxs("ul",{className:"mb-8 space-y-2 text-muted-foreground",children:[r.jsx("li",{children:"Considering making a complaint"}),r.jsx("li",{children:"Struggling to manage an ongoing complaint"}),r.jsx("li",{children:"Facing a complaint and unsure how to respond"}),r.jsx("li",{children:"Looking to resolve a matter without escalation"})]}),r.jsx("p",{className:"mb-8 text-lg",children:"We can help you take the right approach from the outset."}),r.jsx(Q,{href:"/contact",children:r.jsxs(pe,{size:"lg",className:"gap-2","data-testid":"button-contact-complaint",children:["Contact Us Today",r.jsx(st,{className:"h-4 w-4"})]})}),r.jsx("p",{className:"mt-4 text-sm text-muted-foreground",children:"All enquiries are treated confidentially."})]})})]}),r.jsx(Ce,{})]})}const LL=[{icon:qe,title:"Legal & Compliance Support",features:["Contract drafting and review","Policy creation and compliance documents","Risk and issue identification","Regulatory guidance and support","Data protection and GDPR support"]},{icon:Ze,title:"Complaint & Dispute Management",features:["Drafting and managing complaints","Responding to complaints and allegations","Early dispute resolution support","Preventing escalation into legal action","Ombudsman and regulator-facing correspondence"]},{icon:_e,title:"Employment & HR Support",features:["Employment c
501ontracts and policies","Workplace issue guidance","Disciplinary and grievance process support","Equality and reasonable adjustments guidance","Reducing employment dispute risk"]},{icon:_n,title:"Commercial & Operational Support",features:["Supplier and customer dispute support","Commercial lease guidance","Licensing support","Business-to-business dispute management","Contractual issue resolution"]},{icon:Vi,title:"Negotiation & Outcome Support",features:["Structured negotiation assistance","Managing difficult conversations","Closing matters effectively","Supporting settlements and resolutions","Protecting your commercial position"]}],OL=["Small and medium-sized enterprises (SMEs)","Start-ups and growing businesses","Property and letting businesses","Hospitality and retail operators","Service-based businesses","Community organisations and CICs"],ML=["Provide flexible, scalable support","Reduce risk without increasing overheads","Bring an objective, professional approach","Focus on early resolution and practical outcomes","Understand SME realities, not just theory"],DL=["Cost-effective alternative to in-house teams","Consistent, professional responses","Reduced escalation and disputes","Improved compliance and governance","More time to focus on running your business"],FL=[{icon:Xa,title:"Ongoing Retainer",description:"Regular, predictable support for consistent legal and compliance needs"},{icon:Od,title:"Project-by-Project",description:"Focused support for specific initiatives, contracts, or issues"},{icon:kg,title:"Overflow Support",description:"Additional capacity during peak periods or staff absences"}];function zL(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Business Legal Support Services - White Label & Commercial",description:"Affordable legal support for businesses and organisations. Contract drafting, compliance support, HR guidance, dispute management and white-label legal services at £50/hour.",keywords:"business legal support UK, small business legal help, contract drafting service, HR legal support, commercial dispute resolution, white label legal services, business compliance help"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-16 text-primary-foreground md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-business-title",children:"Business Services – White Label Legal Support"}),r.jsx("p",{className:"text-lg text-primary-foreground/80","data-testid":"text-business-subtitle",children:"Running a business comes with ongoing legal, compliance, and operational pressures. For many SMEs, employing an in-house legal or compliance team is costly and impractical, yet operating without support can expose the business to unnecessary risk."})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:r.jsxs("div",{className:"prose prose-lg mx-auto dark:prose-invert",children:[r.jsx("p",{children:"The National Community Law Project CIC offers a white label back-office legal support service for SMEs that need reliable, flexible legal and compliance assistance — without the overheads of an internal team."}),r.jsx("p",{children:"We work behind the scenes, supporting your business as an extension of your operation."})]})})}),r.jsx("section",{className:"bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"What Is a White Label Legal Support Service?"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"Our white label service allows your business to access an experienced legal support function, branded as part of your own organisation if required."})]}),r.jsxs("div",{className:"grid gap-8 md:grid-cols-2 lg:grid-cols-4",children:[r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",children:r.jsx(_e,{className:"h-6 w-6 text-primary"})}),r.jsx("h3",{className:"mb-2 font-semibold",children:"Seamless Service"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Your clients or stakeholders see a seamless service"})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",children:r.jsx(kg,{className:"h-6 w-6 text-primary"})}),r.jsx("h3",{className:"mb-2 font-semibold",children:"Full Control"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"You retain control of relationships and decision-making"})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",children:r.jsx(Ze,{className:"h-6 w-6 text-primary"})}),r.jsx("h3",{className:"mb-2 font-semibold",children:"Backgroun
501d Support"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We provide the legal and procedural support in the background"})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",children:r.jsx(Tp,{className:"h-6 w-6 text-primary"})}),r.jsx("h3",{className:"mb-2 font-semibold",children:"No Overheads"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Specialist knowledge without increasing payroll or infrastructure costs"})]})})]})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsxs("div",{className:"grid gap-12 lg:grid-cols-2 lg:items-start",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Who This Service Is For"}),r.jsx("p",{className:"mb-6 text-muted-foreground",children:"Our white label business services are ideal for:"}),r.jsx("ul",{className:"space-y-3",children:OL.map((e,t)=>r.jsxs("li",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-primary/10",children:r.jsx(ye,{className:"h-4 w-4 text-primary"})}),r.jsx("span",{children:e})]},t))}),r.jsx("p",{className:"mt-6 text-muted-foreground",children:"If your business regularly deals with contracts, complaints, compliance, or disputes, this service provides scalable support."})]}),r.jsxs(W,{children:[r.jsxs(le,{children:[r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(_n,{className:"h-5 w-5"}),"Why Businesses Choose Us"]}),r.jsx(ot,{children:"We are not here to complicate matters — we are here to support your business to operate confidently and compliantly."})]}),r.jsx($,{children:r.jsx("ul",{className:"space-y-3",children:ML.map((e,t)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 shrink-0 text-green-600"}),r.jsx("span",{children:e})]},t))})})]})]})})}),r.jsx("section",{className:"bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Our White Label Business Support Services"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"Comprehensive support across all key business legal and compliance areas."})]}),r.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:LL.map((e,t)=>r.jsxs(W,{className:"h-full","data-testid":`card-business-service-${t}`,children:[r.jsxs(le,{children:[r.jsx("div",{className:"mb-2 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",children:r.jsx(e.icon,{className:"h-6 w-6 text-primary"})}),r.jsx(ce,{className:"text-xl",children:e.title})]}),r.jsx($,{children:r.jsx("ul",{className:"space-y-2",children:e.features.map((n,s)=>r.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[r.jsx(ye,{className:"mt-0.5 h-4 w-4 shrink-0 text-green-600"}),n]},s))})})]},t))})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsx("div",{className:"mb-12 text-center",children:r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Benefits of Outsourcing Legal Support"})}),r.jsx("div",{className:"flex flex-wrap justify-center gap-4",children:DL.map((e,t)=>r.jsxs("div",{className:"flex items-center gap-2 rounded-full border bg-card px-4 py-2",children:[r.jsx(ye,{className:"h-4 w-4 text-green-600"}),r.jsx("span",{className:"text-sm font-medium",children:e})]},t))})]})}),r.jsx("section",{className:"bg-card py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Our Approach"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"We work collaboratively with your management team, adapting our support to your business model, sector, and risk profile."})]}),r.jsx("div",{className:"grid gap-8 md:grid-cols-3",children:FL.map((e,t)=>r.jsx(W,{className:"text-center",children:r.jsxs($,{className:"pt-6",children:[r.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-primary/10",children:r.jsx(e.icon,{className:"h-8 w-8 text-primary"})}),r.jsx("h3",{className:"mb-2 text-lg font-semibold",children:e.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]})},t))}),r.jsx("div",{className:"mt-8 rounded-lg border bg-background p-6 text-center",children:r.jsx("p",{className:"text-lg font-medium",children:"All services can be fully white labelled where required."})})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(Tp,{className:"mx-auto mb-6 h-16 w-16 text-primary"}),r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Speak to Us"}),r.jsx("p",{className:"mb-8 text-lg text-muted-foreground",children:"If your business needs dependable legal and compliance support without the cost of an in-house team, our white label services provide a practical solution."}),r.jsx("p",{className:"mb-8 text-lg",children:"Contact The National Community Law Project CIC to discu
501ss how we can support your business confidentially and effectively."}),r.jsx(Q,{href:"/contact",children:r.jsxs(pe,{size:"lg",className:"gap-2","data-testid":"button-contact-business",children:["Contact Us Today",r.jsx(st,{className:"h-4 w-4"})]})})]})})]}),r.jsx(Ce,{})]})}function UL(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Privacy Policy",description:"How The National Community Law Project CIC collects, uses, and protects your personal data in compliance with UK GDPR and Data Protection Act 2018.",keywords:"privacy policy, GDPR compliance, data protection, personal data",canonicalUrl:"https://thenationalcommunitylawproject.com/privacy-policy"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(Ze,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-privacy-title",children:"Privacy Policy"}),r.jsx("p",{className:"text-primary-foreground/80",children:"Your data is safe with us"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsx("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:r.jsxs("div",{className:"prose prose-lg mx-auto max-w-none dark:prose-invert",children:[r.jsx("div",{className:"mb-8 rounded-lg bg-blue-50 p-4 dark:bg-blue-900/20",children:r.jsxs("p",{className:"text-sm font-semibold text-blue-900 dark:text-blue-100",children:[r.jsx("strong",{children:"Effective Date:"})," March 2026 | ",r.jsx("strong",{children:"Last Updated:"})," March 2026"]})}),r.jsx("h2",{children:"Introduction"}),r.jsx("p",{children:'The National Community Law Project CIC ("we", "us", "our", "NCLP") is committed to protecting your privacy and ensuring you have a positive experience on our website and when using our services.'}),r.jsx("p",{children:"This Privacy Policy explains:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"What personal data we collect"}),r.jsx("li",{children:"How we use your data"}),r.jsx("li",{children:"Your rights"}),r.jsx("li",{children:"How we protect your information"})]}),r.jsxs("p",{children:[r.jsx("strong",{children:"Data Controller:"})," The National Community Law Project CIC",r.jsx("br",{}),r.jsx("strong",{children:"Data Protection Lead:"})," [DATA PROTECTION LEAD]",r.jsx("br",{}),r.jsx("strong",{children:"Contact:"})," [CONTACT EMAIL]"]}),r.jsx("h2",{children:"What Data We Collect"}),r.jsx("h3",{children:"Information You Provide"}),r.jsx("p",{children:"When you contact us or use our services, we collect:"}),r.jsxs("ul",{children:[r.jsxs("li",{children:[r.jsx("strong",{children:"Contact Information:"})," Name, email address, phone number, postal address"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Case Information:"})," Description of your legal matter, relevant facts, documents and evidence you provide, court details, case references, deadlines"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Financial Information:"})," Payment method (bank details, card, PayPal), fee agreements and payment history"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Special Category Data (sensitive):"})," Information about your health, disability, mental health, race, ethnicity, religion, domestic abuse, sexual abuse, or criminal history (if relevant to your case)"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Identity Information:"})," ID documents (if you provide them), immigration status information (if relevant)"]})]}),r.jsx("h3",{children:"Information Collected Automatically"}),r.jsx("p",{children:"Our website automatically collects:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Pages you visit"}),r.jsx("li",{children:"Links you click"}),r.jsx("li",{children:"How long you stay on a page"}),r.jsx("li",{children:"Device information (type, browser, operating system)"}),r.jsx("li",{children:"IP address (anonymized)"})]}),r.jsx("p",{children:"This is collected via cookies, Google Analytics, and server logs."}),r.jsx("h2",{children:"How We Use Your Data"}),r.jsx("h3",{children:"Providing Our Service"}),r.jsx("p",{children:"We use your data to:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Respond to your enquiry"}),r.jsx("li",{children:"Assess whether we can help"}),r.jsx("li",{children:"Deliver case support and guidance"}),r.jsx("li",{children:"Prepare documents and evidence with you"}),r.jsx("li",{children:"Communicate about progress"}),r.jsx("li",{children:"Handle billing and payment"})]}),r.jsxs("p",{children:[r.jsx("strong",{children:"Legal Basis:"})," Contract (we need this to deliver the service you request)"]}),r.jsx("h3",{children:"Legal Obligation"}),r.jsx("p",{children:"We process data to comply with:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Court orders"}),r.jsx("li",{children:"Legal requests from authorities"}),r.jsx("li",{children:"Safeguarding vulnerable people"}),r.jsx("li",{children:"Reporting abuse or harm"}),r.jsx("li",{children:"Tax and regulatory requirements"})]}),r.jsx("h3",{children:"Legitimate Interest"}),r.jsx("p",{children:"We use data to improve our service, prevent fraud, and protect our legal r
501ights."}),r.jsx("h3",{children:"Consent"}),r.jsx("p",{children:"For marketing and non-essential uses, we only process data with your explicit consent."}),r.jsx("h2",{children:"Special Category Data"}),r.jsx("p",{children:"We process sensitive data (health, disability, race, religion, abuse history) only when:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Necessary for the service (e.g., understanding your housing discrimination case)"}),r.jsx("li",{children:"For safeguarding purposes (protecting you or others from harm)"}),r.jsx("li",{children:"You have given explicit consent"}),r.jsx("li",{children:"Required by law (court order, police investigation)"})]}),r.jsx("p",{children:"We do NOT use this data for marketing or any other purpose without your consent."}),r.jsx("h2",{children:"Who We Share Your Data With"}),r.jsx("p",{children:"We only share your data when necessary:"}),r.jsx("h3",{children:"Service Providers"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Cloud storage providers (for secure file storage)"}),r.jsx("li",{children:"Email service providers"}),r.jsx("li",{children:"Payment processors"}),r.jsx("li",{children:"IT support and backup services"})]}),r.jsx("p",{children:"All are bound by data protection agreements."}),r.jsx("h3",{children:"Referral Partners"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Solicitors (if we refer you)"}),r.jsx("li",{children:"Specialist agencies (housing, domestic abuse, immigration)"}),r.jsx("li",{children:"Tribunal services"}),r.jsx("li",{children:"Benefits agencies"})]}),r.jsx("p",{children:"We only share data they need and only with your consent (or for safeguarding)."}),r.jsx("h3",{children:"Legal Requirements"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Police (if required by law or for safeguarding)"}),r.jsx("li",{children:"Courts (if you instruct court proceedings)"}),r.jsx("li",{children:"Tax authorities (HMRC)"}),r.jsx("li",{children:"Data protection authorities (ICO)"}),r.jsx("li",{children:"Local safeguarding boards (if we report concerns)"})]}),r.jsx("h3",{children:"Safeguarding"}),r.jsx("p",{children:"We may share with:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Local authority safeguarding teams"}),r.jsx("li",{children:"Adult social services"}),r.jsx("li",{children:"Children's services"}),r.jsx("li",{children:"Police"})]}),r.jsx("p",{children:r.jsx("strong",{children:"We may share without your consent if someone is at risk of serious harm."})}),r.jsx("h2",{children:"Data Retention"}),r.jsx("p",{children:"We keep your data for:"}),r.jsxs("ul",{children:[r.jsxs("li",{children:[r.jsx("strong",{children:"Active Cases:"})," While we are providing support to you, plus [3-7 YEARS] after case closes"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Financial Records:"})," 6 years (for tax/audit purposes)"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Safeguarding/Incident Reports:"})," [7 YEARS] (may be required by safeguarding bodies)"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Backup Files:"})," [30-90 DAYS] for disaster recovery"]})]}),r.jsx("h2",{children:"Your Rights"}),r.jsx("h3",{children:"Right to Access"}),r.jsx("p",{children:"You can ask what personal data we hold about you. We will provide a copy of your data, why we hold it, who we share it with, and how long we keep it."}),r.jsxs("p",{children:[r.jsx("strong",{children:"How to request:"}),' Email [DATA PROTECTION LEAD] with "Subject Access Request" in the subject line.']}),r.jsxs("p",{children:[r.jsx("strong",{children:"Timeline:"})," We will respond within 30 days (or 60 days for complex requests). Free of charge."]}),r.jsx("h3",{children:"Right to Correction"}),r.jsx("p",{children:"If your data is wrong, you can ask us to correct it."}),r.jsx("h3",{children:"Right to Deletion"}),r.jsx("p",{children:"You can ask us to delete your data, unless we need it to deliver our service, are legally required to keep it, or need it for safeguarding."}),r.jsx("h3",{children:"Right to Restrict Processing"}),r.jsx("p",{children:"You can ask us to limit how we use your data while you complain or dispute something."}),r.jsx("h3",{children:"Right to Data Portability"}),r.jsx("p",{children:"You can ask us to provide your data in a portable format (e.g., CSV) so you can share it with another organization."}),r.jsx("h3",{children:"Right to Object"}),r.jsx("p",{children:"You can object to us processing your data for marketing, direct marketing, or legitimate interest purposes."}),r.jsx("h2",{children:"Cookies and Analytics"}),r.jsxs("p",{children:[r.jsx("strong",{children:"What are cookies?"})," Cookies are small files stored on your device that remember your preferences and activity."]}),r.jsx("p",{children:"We use Google Analytics to understand how people use our website. See our Cookie Policy for full details on how to opt out."}),r.jsx("h2",{children:"Security"}),r.jsx("p",{children:"We take data security seriously:"}),r.jsxs("ul",{children:[r.jsxs("li",{children:[r.jsx("strong",{children:"Technical Measures:"})," Encrypted data transmission (SSL/TLS), encrypted data storage, firewalls, regular security updates"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Organizational Measures:"})," Staff training on data protection, confidentiality agreements, limited access"]})]}),r.jsx("p",{children:"No system is 100% secure. If there is a data breach, we will notify you within 72 hours."}),r.jsx("h2",{children:"Data Breach Notification"}),r.jsx("p",{children:"If there is a data breach affecting your information, we will:"}),r.jsxs("ol",{children:[r.jsx("li",{children:"Assess the risk to you"}),r.jsx("li",{children:"Notify you within 72 hours (if required by law)"}),r.jsx("li",{children:"Report to the Information Commissioner's Office (ICO)"}),r.jsx("li",{children:"Explain what happened and what we are doing to fix it"})]}),r.jsx("h2",{children:"Contact & Complaints"}),r.jsxs("p",{children:[r.jsx("strong",{children:"Questions About This Policy:"}),r.jsx("br",{}),"Contact: [DATA PROTECTION LEAD]",r.jsx("br",{}),"Email: [DATA PROTECTION EMAIL]",r.jsx("br",{}),"Phone: [DATA PROTECTION PHONE]"]}),r.jsxs("p",{children:[r.jsx("strong",{children:"If You Are Unhappy:"}),r.jsx("br",{}),"You can complain to the Information Commissioner's Office (ICO):",r.jsx("br",{}),"www.ico.org.uk",r.jsx("br",{}),"Email: [email protected]",r.jsx("br",{}),"Phone: 0303 123 1113"]}),r.jsx("div",{className:"mt-8 rounded-lg bg-amber-50 p-4 dark:bg-amber-900/20",children:r.jsxs("p",{className:"text-sm text-amber-900 dark:text-amber-100",children:[r.jsx("strong",{children:"Last Updated:"})," March 2026",r.jsx("br",{}),r.jsx("strong",{children:"Next Review:"})," March 2027"]})})]})})})]}),r.jsx(Ce,{})]})}function WL(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Cookie Policy",description:"Our cookie policy explains how we use cookies on The National Community Law Project CIC website. Learn about essential, analytics, and marketing cookies.",keywords:"cookie policy, website cookies, privacy cookies, analytics cookies",canonicalUrl:"https://thenationalcommunitylawproject.com/cookie-policy"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(w1,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-cookie-title",children:"Cookie Policy"}
501),r.jsx("p",{className:"text-primary-foreground/80",children:"How we use cookies to improve your experience"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsxs("div",{className:"prose prose-lg mx-auto dark:prose-invert",children:[r.jsx("p",{children:"This website uses cookies to improve your experience and understand how the site is used."}),r.jsx("h2",{children:"What Are Cookies?"}),r.jsx("p",{children:"Cookies are small files placed on your device that help websites function properly and analyse usage."})]}),r.jsxs("div",{className:"mt-8 grid gap-6 md:grid-cols-2",children:[r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(Ze,{className:"h-5 w-5 text-primary"}),"Essential Cookies"]})}),r.jsx($,{children:r.jsx("p",{className:"text-muted-foreground",children:"Required for site functionality. These cookies are necessary for the website to operate correctly and cannot be disabled."})})]}),r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(T_,{className:"h-5 w-5 text-primary"}),"Analytics Cookies"]})}),r.jsx($,{children:r.jsx("p",{className:"text-muted-foreground",children:"Help us understand visitor numbers and page usage. These cookies collect anonymous information about how you use our site."})})]})]}),r.jsx("div",{className:"mt-8 rounded-lg border bg-card p-6",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx(kg,{className:"mt-1 h-6 w-6 text-primary"}),r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 text-lg font-semibold",children:"Managing Cookies"}),r.jsx("p",{className:"text-muted-foreground",children:"You can control cookies through your browser settings or cookie banner preferences. Most browsers allow you to refuse cookies or delete them. However, this may affect your experience on our website."})]})]})}),r.jsx("div",{className:"mt-8 prose prose-lg mx-auto dark:prose-invert",children:r.jsx("p",{children:"We do not use cookies to identify you personally. For more information about how we handle your data, please see our Privacy Policy."})})]})})]}),r.jsx(Ce,{})]})}function $L(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Terms & Conditions",description:"Terms and conditions for using The National Community Law Project CIC website. Read our website use terms, disclaimers, and legal information.",keywords:"terms and conditions, website terms, legal terms, terms of use",canonicalUrl:"https://thenationalcommunitylawproject.com/terms-conditions"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(Ge,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-terms-title",children:"Terms & Conditions"}),r.jsx("p",{className:"text-primary-foreground/80",children:"Website Use"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsx("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:r.jsxs("div",{className:"prose prose-lg mx-auto dark:prose-invert",children:[r.jsx("p",{children:"By using this website, you agree to these terms."}),r.jsx("h2",{children:"Website Information"}),r.jsx("p",{children:"Content on this website is for general information only and does not constitute legal advice."}),r.jsx("h2",{children:"No Solicitor–Client Relationship"}),r.jsx("p",{children:"Using this website or contacting us does not create a solicitor–client relationship."}),r.jsx("h2",{children:"Limitation of Liability"}),r.jsx("p",{children:"We are not liable for actions taken based solely on website content. The information provided is intended to be helpful and informative, but should not be relied upon as a substitute for professional legal advice."}),r.jsx("h2",{children:"Acceptable Use"}),r.jsx("p",{children:"You must not:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Misuse the website"}),r.jsx("li",{children:"Submit false or abusive content"}),r.jsx("li",{children:"Attempt to gain unauthorised access to any part of the website"}),r.jsx("li",{children:"Use the website in any way that is unlawful or harmful"})]}),r.jsx("h2",{children:"Intellectual Property"}),r.jsx("p",{children:"All content on this website, including text, images, and logos, is owned by or licensed to The National Community Law Project CIC and is protected by copyright and other intellectual property laws."}),r.jsx("h2",{children:"Changes to Terms"}),r.jsx("p",{children:"We may update these terms from time to time. Continued use of the website after changes constitutes acceptance of the new terms."}),r.jsx("h2",{children:"Governing Law"}),r.jsx("p",{children:"These terms are governed by the laws of England and Wales. Any disputes will be subject to the exclusive jurisdiction of the courts of England and Wales."})]})})})]}),r.jsx(Ce,{})]})}function BL(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(Ne,{}),r.jsx(ke,{title:"Service Terms and Conditions",description:"Terms governing The National Community Law Project CIC's services. Please read carefully - we are NOT a law firm and provide legal information, not legal advice.",canonicalUrl:"https://thenationalcommunitylawproject.com/service-terms"}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(vt,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl",children:"Service Terms and Conditions"}
501),r.jsx("p",{className:"text-primary-foreground/80",children:"Please read carefully before using our service"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsx("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:r.jsxs("div",{className:"prose prose-lg mx-auto max-w-none dark:prose-invert",children:[r.jsxs("div",{className:"mb-8 rounded-lg bg-red-50 p-4 dark:bg-red-900/20",children:[r.jsx("h3",{className:"mb-2 text-lg font-bold text-red-900 dark:text-red-100",children:"⚠️ Important Notice"}),r.jsx("p",{className:"text-sm text-red-900 dark:text-red-100 font-semibold",children:"The National Community Law Project CIC is NOT a law firm. We are NOT regulated by the Solicitors Regulation Authority (SRA). We provide legal information and practical support, NOT legal representation or case-specific legal advice."})]}),r.jsx("h2",{children:"Scope of Our Service"}),r.jsx("h3",{children:"What We Can Help With"}),r.jsx("p",{children:"We provide information and support on:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Housing and tenancy issues"}),r.jsx("li",{children:"Employment and workplace issues"}),r.jsx("li",{children:"Family law matters (information only)"}),r.jsx("li",{children:"Benefits and appeals"}),r.jsx("li",{children:"Discrimination and equality issues"}),r.jsx("li",{children:"Debt and consumer issues"}),r.jsx("li",{children:"Court procedures and self-representation"}),r.jsx("li",{children:"Referral to appropriate services"})]}),r.jsx("h3",{children:"What We Cannot Help With"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Immigration visa advice or representation"}),r.jsx("li",{children:"Criminal defence representation"}),r.jsx("li",{children:"Professional negligence claims"}),r.jsx("li",{children:"Commercial/business law"}),r.jsx("li",{children:"Urgent matters with immediate deadlines (less than 7 days)"}),r.jsx("li",{children:"Regulated legal advice"})]}),r.jsx("h2",{children:"How Our Service Works"}),r.jsxs("ol",{children:[r.jsxs("li",{children:[r.jsx("strong",{children:"Initial Contact:"})," Contact us with your enquiry"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Initial Consultation:"})," FREE 15-minute consultation to discuss your situation"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Service Agreement:"})," We clarify scope, fees, and confidentiality limits in writing"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Ongoing Support:"})," We help you prepare documents, understand procedures, and navigate your case"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Case Closure:"})," When matter concludes, we close your file per our retention policy"]})]}),r.jsx("h2",{children:"Your Responsibilities"}),r.jsx("p",{children:"You are responsible for:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Providing accurate information"}),r.jsx("li",{children:"Meeting all legal deadlines (court dates, appeals, etc.)"}),r.jsx("li",{children:"Making all decisions about your case"}),r.jsx("li",{children:"Paying our fees as agreed"}),r.jsx("li",{children:"Telling us if circumstances change"})]}),r.jsx("h2",{children:"Our Responsibilities"}),r.jsx("p",{children:"We commit to:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Providing accurate legal information within our scope"}),r.jsx("li",{children:"Being honest about our limitations"}),r.jsx("li",{children:"Keeping your data safe and confidential (with safeguarding exceptions)"}),r.jsx("li",{children:"Treating you fairly and without discrimination"}),r.jsx("li",{children:"Signposting to proper help when needed"}),r.jsx("li",{children:"Handling complaints fairly"})]}),r.jsx("h2",{children:"Fees and Payment"}),r.jsxs("ul",{children:[r.jsxs("li",{children:[r.jsx("strong",{children:"Standard rate:"})," £50 per hour"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Discounts:"})," Available for low-income service users"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Initial consultation:"})," FREE (up to 15 minutes)"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Payment terms:"})," Due within 7 days of invoice"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Payment methods:"})," Bank transfer, card, cash"]})]}),r.jsx("h2",{children:"Limitations of Our Service"}),r.jsx("p",{children:"Please understand that:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"We do NOT guarantee any outcome"}),r.jsx("li",{children:"We do NOT represent you in court (unless you hire a solicitor)"}),r.jsx("li",{children:"We do NOT give legal advice (case-specific interpretation)"}),r.jsx("li",{children:"We do NOT meet same-day emergency deadlines"}),r.jsx("li",{children:"We do NOT keep information confidential if safeguarding concerns arise"})]}),r.jsx("h2",{children:"Confidentiality Limits"}),r.jsx("p",{children:"Unlike a solicitor, we do NOT guarantee confidentiality."}),r.jsx("p",{children:"We may share your information if:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"You or someone else is at risk of harm"}),r.jsx("li",{children:"A child is at risk"}),r.jsx("li",{children:"We are legally required to (court, police, authorities)"}),r.jsx("li",{children:"You consent"}),r.jsx("li",{children:"It is necessary for safeguarding"})]}),r.jsx("h2",{children:"When to Contact a Solicitor Instead"}),r.jsx("p",{children:"Contact a solicitor directly if:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"You have less than 7 days until a court hearing or deadline"}),r.jsx("li",{children:"You need legal representation in court"}),r.jsx("li",{children:"You need written legal advice"}),r.jsx("li",{children:"You need case-specific legal interpretation"}),r.jsx("li",{children:"You are involved in criminal proceedings"}),r.jsx("li",{children:"You qualify for legal aid"})]}),r.jsx("h2",{children:"Ending Our Service"}),r.jsx("p",{children:r.jsx("strong",{children:"You can end service at any time:"})}),r.jsxs("ul",{children:[r.jsx("li",{children:"Email us to say you want to stop"}),r.jsx("li",{children:"We will provide any final documents"}),r.jsx("li",{children:"You pay for hours used up to the end date"})]}),r.jsx("p",{children:r.jsx("strong",{children:"We can end service if:"})}),r.jsxs("ul",{children:[r.jsx("li",{children:"Your matter is outside our scope"}),r.jsx("li",{children:"You ask us to do something illegal or unethical"}),r.jsx("li",{children:"You do not pay fees as agreed"}),r.jsx("li",{children:"You are abusive, threatening, or harassing"}),r.jsx("li",{children:"There is a conflict of interest"}),r.jsx("li",{children:"We cannot help further"})]}),r.jsx("h2",{children:"Data Protection"}),r.jsx("p",{children:"We handle your personal data according to:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"UK GDPR"}),r.jsx("li",{children:"Data Protection Act 2018"})]}),r.jsx("p",{children:"See our Privacy Policy for full details."}),r.jsx("h2",{children:"Complaints"}),r.jsx("p",{children:"If you are unhappy with our service, you can complain. See our Complaints Policy for the full process."}),r.jsx("div",{className:"mt-8 rounded-lg bg-amber-50 p-4 dark:bg-amber-900/20",children:r.jsx("p",{className:"text-sm text-amber-900 dark:text-amber-100",children:r.jsx("strong",{children:"By using our service, you agree to these terms and conditions."})})})]})})})]}),r.jsx(Ce,{})]})}function HL(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(Ne,{}),r.jsx(ke,{title:"Data Retention and Deletion Policy",description:"How long The National Community Law Project CIC keeps your personal data and when we delete it.",canonicalUrl:"https://thenationalcommunitylawproject.com/data-retention"}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(S1,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl",children:"Data Retention and Deletion Policy"}
501),r.jsx("p",{className:"text-primary-foreground/80",children:"We only keep your data as long as necessary"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsx("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:r.jsxs("div",{className:"prose prose-lg mx-auto max-w-none dark:prose-invert",children:[r.jsx("h2",{children:"Introduction"}),r.jsx("p",{children:"This policy explains how long The National Community Law Project CIC keeps your personal data and when we delete it."}),r.jsxs("p",{children:[r.jsx("strong",{children:"Principle:"})," We keep data only as long as necessary."]}),r.jsx("h2",{children:"Retention Periods"}),r.jsx("h3",{children:"While We Are Helping You"}),r.jsx("p",{children:"We keep all your data while we are providing support to you."}),r.jsx("h3",{children:"After Service Ends"}),r.jsxs("p",{children:["After your case closes, we keep your data for ",r.jsx("strong",{children:"[3-7 YEARS]"})," to:"]}),r.jsxs("ul",{children:[r.jsx("li",{children:"Handle complaints or disputes"}),r.jsx("li",{children:"Respond to requests (Subject Access Requests, legal requests)"}),r.jsx("li",{children:"Provide evidence if case is disputed"}),r.jsx("li",{children:"Follow up on safeguarding concerns (if any)"})]}),r.jsx("h3",{children:"By Document Type"}),r.jsxs(W,{className:"mb-6",children:[r.jsx(le,{children:r.jsx(ce,{className:"text-lg",children:"Retention Schedule"})}),r.jsx($,{children:r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"border-b pb-4 last:border-0",children:[r.jsx("div",{className:"font-semibold",children:"Case Files"}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"[3-7 years] after case closes - Full files retained for records, disputes, safeguarding"})]}),r.jsxs("div",{className:"border-b pb-4 last:border-0",children:[r.jsx("div",{className:"font-semibold",children:"Financial Records"}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"6 years after case closes - Tax/audit requirement (HMRC)"})]}),r.jsxs("div",{className:"border-b pb-4 last:border-0",children:[r.jsx("div",{className:"font-semibold",children:"Safeguarding Reports"}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"[7 years] - Safeguarding bodies may request"})]}),r.jsxs("div",{className:"border-b pb-4 last:border-0",children:[r.jsx("div",{className:"font-semibold",children:"Complaint Records"}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"3 years after complaint resolved - Handle appeals, identify patterns"})]}),r.jsxs("div",{className:"border-b pb-4 last:border-0",children:[r.jsx("div",{className:"font-semibold",children:"Email/Communications"}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"[3-7 years] after case closes - Part of case file"})]}),r.jsxs("div",{children:[r.jsx("div",{className:"font-semibold",children:"Backup Data"}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"[30-90 days] - For disaster recovery"})]})]})})]}),r.jsx("h2",{children:"Data Deletion Process"}),r.jsx("h3",{children:"Automatic Deletion"}),r.jsx("p",{children:"We automatically delete data:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"3 months after initial enquiry (if no service provided)"}),r.jsx("li",{children:"[RETENTION PERIOD] after case closes"}),r.jsx("li",{children:"Per backup deletion schedule"}),r.jsx("li",{children:"Per website cookie expiration"})]}),r.jsx("h3",{children:"Upon Your Request"}),r.jsxs("ol",{children:[r.jsx("li",{children:"Submit deletion request to: [DATA PROTECTION LEAD]"}),r.jsx("li",{children:"We consider if we can delete (may refuse if legally required or for safeguarding)"}),r.jsx("li",{children:"We tell you our decision and why (if applicable)"}),r.jsx("li",{children:"We delete within 30 days (if approved)"})]}),r.jsx("h3",{children:"We Cannot Delete If"}),r.jsxs("ul",{children:[r.jsx("li",{children:"You still owe fees"}),r.jsx("li",{children:"There is an ongoing complaint"}),r.jsx("li",{children:"Required by law"}),r.jsx("li",{children:"Needed for safeguarding"}),r.jsx("li",{children:"Related to litigation"})]}),r.jsx("h2",{children:"Secure Deletion"}),r.jsx("p",{children:"When we delete data, we:"}),r.jsxs("ul",{children:[r.jsxs("li",{children:[r.jsx("strong",{children:"Digital data:"}
501)," Overwrite files (not just delete), use secure deletion software, verify cannot be recovered"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Paper records:"})," Shred or incinerate (not placed in regular recycling)"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Devices:"})," Wipe storage, remove and destroy if necessary"]})]}),r.jsx("h2",{children:"Your Rights"}),r.jsx("h3",{children:"Right to Know"}),r.jsx("p",{children:"You have the right to know:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"What data we hold about you"}),r.jsx("li",{children:"Why we hold it"}),r.jsx("li",{children:"How long we keep it"}),r.jsx("li",{children:"When we will delete it"})]}),r.jsx("p",{children:"Submit a Subject Access Request to: [DATA PROTECTION LEAD]"}),r.jsx("h3",{children:"Right to Delete"}),r.jsx("p",{children:"You can ask us to delete your information (with some exceptions)."}),r.jsx("h2",{children:"Special Situations"}),r.jsx("h3",{children:"Safeguarding Data"}),r.jsxs("ul",{children:[r.jsx("li",{children:"May be kept longer (7+ years)"}),r.jsx("li",{children:"Shared with safeguarding bodies (they keep copies)"}),r.jsx("li",{children:"Cannot be deleted if ongoing safety concern"})]}),r.jsx("h3",{children:"Legal Hold"}),r.jsx("p",{children:"If you are involved in litigation or there is a potential legal claim, we keep all data indefinitely until litigation ends."}),r.jsx("h3",{children:"Death of Service User"}),r.jsxs("ul",{children:[r.jsx("li",{children:"We continue to keep data per normal retention"}),r.jsx("li",{children:"Family members can request access/deletion"}),r.jsx("li",{children:"We handle respectfully and confidentially"})]}),r.jsx("div",{className:"mt-8 rounded-lg bg-blue-50 p-4 dark:bg-blue-900/20",children:r.jsxs("p",{className:"text-sm font-semibold text-blue-900 dark:text-blue-100",children:[r.jsx("strong",{children:"Questions about data retention?"})," Contact [DATA PROTECTION LEAD] at [DATA PROTECTION EMAIL]"]})})]})})})]}),r.jsx(Ce,{})]})}const VL=["Legal information","Guidance","Complaint management","Advocacy and support"],qL=["We do not provide reserved legal activities unless expressly stated","Outcomes cannot be guaranteed","Any support provided is based on the information available at the time"];function KL(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Legal Disclaimer",description:"Legal disclaimer for The National Community Law Project CIC. Important information about our services, limitations, and what we do and don't provide.",keywords:"legal disclaimer, important notice, service limitations, legal notice",canonicalUrl:"https://thenationalcommunitylawproject.com/legal-disclaimer"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(vt,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-disclaimer-title",children:"Legal Disclaimer"}),r.jsx("p",{className:"text-primary-foreground/80",children:"Important information about our services"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsx(W,{className:"mb-8 border-destructive/50 bg-destructive/5",children:r.jsx($,{className:"pt-6",children:r.jsx("p",{className:"text-center text-lg font-medium",children:"The National Community Law Project CIC is not a firm of solicitors."})})}),r.jsxs("div",{className:"grid gap-8 md:grid-cols-2",children:[r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsxs("h2",{className:"mb-4 flex items-center gap-2 text-xl font-semibold",children:[r.jsx(ye,{className:"h-5 w-5 text-green-600"}),"What We Provide"]}),r.jsx("ul",{className:"space-y-3",children:VL.map((e,t)=>r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-600"}),r.jsx("span",{className:"text-muted-foreground",children:e})]},t))})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsxs("h2",{className:"mb-4 flex items-center gap-2 text-xl font-semibold",children:[r.jsx(vt,{className:"h-5 w-5 text-amber-600"}),"Important Notes"]}),r.jsx("ul",{className:"space-y-3",children:qL.map((e,t)=>r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("div",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-amber-600"}),r.jsx("span",{className:"text-muted-foreground",children:e})]},t))})]})})]}),r.jsxs("div",{className:"mt-8 prose prose-lg mx-auto dark:prose-invert",children:[r.jsx("p",{children:"The information and support we provide is intended to help you understand your situation and options. However, it should not be considered a substitute for formal legal advice from a qualified solicitor or barrister where such advice is required."}),r.jsx("p",{children:"If your matter requires regulated legal services, we will advise you accordingly and may refer you to appropriate professionals."})]})]})})]}),r.jsx(Ce,{})]})}const GL=[{step:"1",title:"Acknowledgement",description:"We will acknowledge your complaint within 5 working days"},{step:"2",title:"Review & Response",description:"We will review and respond within 20 working days"},{step:"3",title:"Escalation",description:"Escalation options will be explained if the matter remains unresolved"}];function YL(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Complaints Policy",description:"How to raise a complaint with The National Community Law Project CIC. We take your concerns seriously and have a fair complaints process.",keywords:"complaints procedure, complaints policy, service complaints, customer complaints",canonicalUrl:"https://thenationalcommunitylawproject.com/complaints-policy"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(An,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-complaints-policy-title",children:"Complaints Policy"}
501),r.jsx("p",{className:"text-primary-foreground/80",children:"How to raise concerns about our services"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsx("div",{className:"prose prose-lg mx-auto dark:prose-invert",children:r.jsx("p",{children:"We aim to provide a fair, transparent, and respectful service. If you are unhappy with any aspect of our service, we want to hear from you."})}),r.jsxs(W,{className:"mt-8",children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(Uu,{className:"h-5 w-5"}),"How to Make a Complaint"]})}),r.jsxs($,{children:[r.jsx("p",{className:"mb-4 text-muted-foreground",children:"Complaints should be submitted in writing via email or post. Please include:"}),r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx(ye,{className:"h-4 w-4 text-green-600"}),r.jsx("span",{children:"Your name and contact details"})]}),r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx(ye,{className:"h-4 w-4 text-green-600"}),r.jsx("span",{children:"A clear description of the issue"})]}),r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx(ye,{className:"h-4 w-4 text-green-600"}),r.jsx("span",{children:"Relevant dates and correspondence"})]})]})]})]}),r.jsxs("div",{className:"mt-8",children:[r.jsx("h2",{className:"mb-6 text-center text-2xl font-bold",children:"Our Process"}),r.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:GL.map((e,t)=>r.jsx(W,{className:"text-center",children:r.jsxs($,{className:"pt-6",children:[r.jsx("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-primary text-lg font-bold text-primary-foreground",children:e.step}),r.jsx("h3",{className:"mb-2 font-semibold",children:e.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]})},t))})]}),r.jsx("div",{className:"mt-8 rounded-lg border bg-card p-6",children:r.jsx("p",{className:"text-center text-muted-foreground",children:"We treat all complaints seriously and use them to improve our services. All complaints are handled confidentially and with respect."})}),r.jsx(W,{className:"mt-8",children:r.jsxs($,{className:"flex items-center gap-4 pt-6",children:[r.jsx(Uu,{className:"h-6 w-6 text-primary"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Email Complaints To"}),r.jsx("a",{href:"mailto:[email protected]",className:"text-muted-foreground hover:text-primary",children:"[email protected]"})]})]})})]})})]}),r.jsx(Ce,{})]})}const ZL=["Disability","Race or ethnicity","Sex or gender identity","Sexual orientation","Religion or belief","Age","Marriage and civil partnership","Pregnancy and maternity"];function QL(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Equality, Diversity & Inclusion Policy",description:"Our commitment to equality and diversity. The National Community Law Project CIC provides fair, equal treatment for all under the Equality Act 2010.",keywords:"equality policy, diversity inclusion, equality act 2010, non-discrimination",canonicalUrl:"https://thenationalcommunitylawproject.com/equality-diversity"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(_e,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-equality-title",children:"Equality, Diversity & Inclusion Policy"}),r.jsx("p",{className:"text-primary-foreground/80",children:"Our commitment to fair and equal treatment for all"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsx("div",{className:"prose prose-lg mx-auto dark:prose-invert",children:r.jsx("p",{children:"We are committed to equality under the Equality Act 2010. We believe that everyone deserves to be treated with dignity and respect, regardless of their background or circumstances."})}),r.jsx(W,{className:"mt-8",children:r.jsxs($,{className:"pt-6",children:[r.jsx("h2",{className:"mb-4 text-xl font-semibold",children:"We do not discriminate on the basis of:"}),r.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:ZL.map((e,t)=>r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ye,{className:"h-4 w-4 text-green-600"}),r.jsx("span",{className:"text-muted-foreground",children:e})]},t))})]})}),r.jsxs("div",{className:"mt-8 grid gap-6 md:grid-cols-2",children:[r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx(Rt,{className:"mb-4 h-8 w-8 text-primary"}),r.jsx("h3",{className:"mb-2 text-lg font-semibold",children:"Inclusion"}),r.jsx("p",{className:"text-muted-foreground",children:"We actively promote inclusion in all our services, ensuring everyone feels welcome and valued when working with us."})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx(_e,{className:"mb-4 h-8 w-8 text-primary"}),r.jsx("h3",{className:"mb-2 text-lg font-semibold",children:"Accessibility"}),r.jsx("p",{className:"text-muted-foreground",children:"We are committed to making our services accessible to all. If you require adjustments, please let us know."})]})})]}),r.jsx("div",{className:"mt-8 prose prose-lg mx-auto dark:prose-invert",children:r.jsx("p",{children:"Our commitment to equality extends to our staff, volunteers, and everyone we work with. We expect all those associated with our organisation to uphold these principles."})})]})})]}),r.jsx(Ce,{})]})}function XL(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Safeguarding Policy",description:"Our safeguarding commitment to protect vulnerable adults. The National Community Law Project CIC takes safeguarding seriously.",keywords:"safeguarding policy, vulnerable adults protection, safeguarding adults, duty of care",canonicalUrl:"https://thenationalcommunitylawproject.com/safeguarding"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(Ze,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-safeguarding-title",children:"Safeguarding Policy"}
501),r.jsx("p",{className:"text-primary-foreground/80",children:"Our commitment to protecting vulnerable adults"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsx(W,{className:"mb-8 border-primary/50 bg-primary/5",children:r.jsx($,{className:"pt-6",children:r.jsx("p",{className:"text-center text-lg",children:"We are committed to safeguarding vulnerable adults in all our interactions and services."})})}),r.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx(Ze,{className:"mb-4 h-8 w-8 text-primary"}),r.jsx("h2",{className:"mb-2 text-lg font-semibold",children:"Our Commitment"}),r.jsx("p",{className:"text-muted-foreground",children:"We take all safeguarding concerns seriously and act promptly where safeguarding issues arise. The safety and wellbeing of vulnerable individuals is our priority."})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx(vt,{className:"mb-4 h-8 w-8 text-primary"}),r.jsx("h2",{className:"mb-2 text-lg font-semibold",children:"Reporting"}),r.jsx("p",{className:"text-muted-foreground",children:"Any safeguarding concerns will be handled confidentially and, where appropriate, referred to relevant authorities in accordance with legal requirements."})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx(_e,{className:"mb-4 h-8 w-8 text-primary"}),r.jsx("h2",{className:"mb-2 text-lg font-semibold",children:"Staff & Volunteers"}),r.jsx("p",{className:"text-muted-foreground",children:"All staff and volunteers are expected to act in line with safeguarding principles and report any concerns immediately."})]})}),r.jsx(W,{children:r.jsxs($,{className:"pt-6",children:[r.jsx(wg,{className:"mb-4 h-8 w-8 text-primary"}),r.jsx("h2",{className:"mb-2 text-lg font-semibold",children:"Confidentiality"}),r.jsx("p",{className:"text-muted-foreground",children:"All safeguarding matters are treated with the utmost confidentiality, with information shared only on a need-to-know basis."})]})})]}),r.jsx("div",{className:"mt-8 prose prose-lg mx-auto dark:prose-invert",children:r.jsx("p",{children:"If you have any safeguarding concerns or need to report an issue, please contact us immediately. We will treat all reports seriously and take appropriate action."})})]})})]}),r.jsx(Ce,{})]})}const JL=[{icon:Ge,title:"Alternative Formats",description:"Documents in large print, audio, or other accessible formats"},{icon:An,title:"Communication Adjustments",description:"Modified communication methods to suit your needs"},{icon:tc,title:"Additional Support",description:"Any other reasonable adjustments you may require"}];function eO(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Accessibility Statement",description:"Our accessibility commitment. The National Community Law Project CIC is dedicated to making our website and services accessible to everyone, regardless of ability.",keywords:"accessibility, accessible website, accessibility statement, inclusive services, website accessibility",canonicalUrl:"https://thenationalcommunitylawproject.com/accessibility"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(tc,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-accessibility-title",children:"Accessibility Statement"}),r.jsx("p",{className:"text-primary-foreground/80",children:"Making our services accessible to everyone"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsx("div",{className:"prose prose-lg mx-auto dark:prose-invert",children:r.jsx("p",{children:"We are committed to making our website and services accessible to everyone, regardless of ability or circumstances."})}),r.jsxs("div",{className:"mt-8",children:[r.jsx("h2",{className:"mb-6 text-center text-2xl font-bold",children:"Accessibility Support"}),r.jsx("p",{className:"mb-6 text-center text-muted-foreground",children:"If you require any of the following, please contact us:"}),r.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:JL.map((e,t)=>r.jsx(W,{className:"text-center",children:r.jsxs($,{className:"pt-6",children:[r.jsx(e.icon,{className:"mx-auto mb-4 h-10 w-10 text-primary"}),r.jsx("h3",{className:"mb-2 font-semibold",children:e.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]})},t))})]}),r.jsx(W,{className:"mt-8",children:r.jsx($,{className:"pt-6",children:r.jsxs("div",{className:"text-center",children:[r.jsx("p",{className:"mb-4 text-lg",children:"Please contact us and we will make reasonable adjustments wherever possible."}),r.jsxs("div",{className:"flex items-center justify-center gap-2 text-muted-foreground",children:[r.jsx(Uu,{className:"h-5 w-5"}),r.jsx("a",{href:"mailto:[email protected]",className:"hover:text-primary",children:"[email protected]"})]})]})})}),r.jsxs("div",{className:"mt-8 prose prose-lg mx-auto dark:prose-invert",children:[r.jsx("h2",{children:"Website Accessibility"}),r.jsx("p",{children:"We aim to ensure our website meets accessibility standards. Our website is designed to be:"}),r.jsxs("ul",{children:[r.jsx("li",{children:"Navigable using keyboard-only controls"}),r.jsx("li",{children:"Compatible with screen readers"}),r.jsx("li",{children:"Readable with clear text and sufficient contrast"}),r.jsx("li",{children:"Responsive across different devices and screen sizes"})]}),r.jsx("p",{children:"If you experience any difficulties using our website, please let us know so we can work to improve accessibility."})]}),r.jsx("div",{className:"mt-8 text-center",children:r.jsx(Q,{href:"/contact",children:r.jsxs(pe,{className:"gap-2","data-testid":"button-contact-accessibility",children:["Contact Us for Accessibility Support",r.jsx(st,{className:"h-4 w-4"})]})})})]})})]}),r.jsx(Ce,{})]})}const tO=["Provide legal information and guidance","Support complaint management","Assist with dispute resolution strategies","Offer advocacy and negotiation support","Help with document drafting and review","Provide mock training and preparation"],nO=["Provide reserved legal services unless stated","Guarantee outcomes","Replace regulated legal advice where required","Represent you in court proceedings","Provide financial or tax advice"];function rO(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Service Scope - What We Do & Don't Do",description:"Understand the scope of services from The National Community Law Project CIC. Learn what we do and don't provide, including our boundaries and limitations.",ke
501ywords:"service scope, service boundaries, what we offer, legal services limitations",canonicalUrl:"https://thenationalcommunitylawproject.com/service-scope"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(Sl,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-scope-title",children:"Service Scope"}),r.jsx("p",{className:"text-primary-foreground/80",children:"What We Do & What We Don't Do"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsxs("div",{className:"grid gap-8 md:grid-cols-2",children:[r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2 text-green-600",children:[r.jsx(ye,{className:"h-5 w-5"}),"What We Do"]})}),r.jsx($,{children:r.jsx("ul",{className:"space-y-3",children:tO.map((e,t)=>r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(ye,{className:"mt-0.5 h-4 w-4 shrink-0 text-green-600"}),r.jsx("span",{className:"text-muted-foreground",children:e})]},t))})})]}),r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2 text-destructive",children:[r.jsx(Bt,{className:"h-5 w-5"}),"What We Don't Do"]})}),r.jsx($,{children:r.jsx("ul",{className:"space-y-3",children:nO.map((e,t)=>r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(Bt,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive"}),r.jsx("span",{className:"text-muted-foreground",children:e})]},t))})})]})]}),r.jsx(W,{className:"mt-8",children:r.jsx($,{className:"pt-6",children:r.jsxs("div",{className:"prose prose-lg mx-auto dark:prose-invert",children:[r.jsx("h2",{className:"text-center",children:"Referrals"}),r.jsx("p",{className:"text-center",children:"Where appropriate, we may refer you to external professionals who can provide the specific regulated services you need. We work with a network of trusted professionals and can help connect you with the right support."})]})})}),r.jsx("div",{className:"mt-8 text-center",children:r.jsx(Q,{href:"/contact",children:r.jsxs(pe,{className:"gap-2","data-testid":"button-contact-scope",children:["Discuss Your Needs",r.jsx(st,{className:"h-4 w-4"})]})})})]})})]}),r.jsx(Ce,{})]})}function sO(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Third-Party & Referral Disclaimer",description:"Important disclaimer about third-party referrals and external services. The National Community Law Project CIC is not responsible for third-party services.",keywords:"third party disclaimer, referral disclaimer, external services, third party referral",canonicalUrl:"https://thenationalcommunitylawproject.com/third-party-disclaimer"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(yg,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-thirdparty-title",children:"Third-Party & Referral Disclaimer"}),r.jsx("p",{className:"text-primary-foreground/80",children:"Important information about external referrals"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:[r.jsx(W,{className:"mb-8 border-amber-500/50 bg-amber-500/5",children:r.jsxs($,{className:"flex items-start gap-4 pt-6",children:[r.jsx(vt,{className:"h-6 w-6 shrink-0 text-amber-600"}),r.jsx("p",{className:"text-lg",children:"Where we signpost or refer to third parties, we are not responsible for their services, advice, or outcomes."})]})}),r.jsxs("div",{className:"prose prose-lg mx-auto dark:prose-invert",children:[r.jsx("p",{children:"From time to time, we may refer you to external organisations, professionals, or services that we believe may be helpful to you. These referrals are made in good faith to assist you in finding the support you need."}),r.jsx("h2",{children:"Important Points"}),r.jsxs("ul",{children:[r.jsx("li",{children:"We do not control or endorse the services provided by third parties"}),r.jsx("li",{children:"Any agreements, contracts, or arrangements you enter into with third parties are between you and them"}),r.jsx("li",{children:"We are not liable for any advice, services, or outcomes provided by third parties"}),r.jsx("li",{children:"You should conduct your own due diligence before engaging any external service"})]}),r.jsx("h2",{children:"Links to External Websites"}),r.jsx("p",{children:"Our website may contain links to external websites. These links are provided for c
501onvenience and information purposes only. We do not have control over the content or availability of external sites and are not responsible for their content or practices."}),r.jsx("h2",{children:"Professional Referrals"}),r.jsx("p",{children:"When we refer you to regulated professionals (such as solicitors, barristers, or accountants), you should verify their qualifications and regulatory status independently. Any professional relationship you establish is directly with that professional, not with us."})]}),r.jsx(W,{className:"mt-8",children:r.jsxs($,{className:"flex items-start gap-4 pt-6",children:[r.jsx(Sl,{className:"h-6 w-6 shrink-0 text-primary"}),r.jsx("p",{className:"text-muted-foreground",children:"If you have any questions about a referral we have made, please contact us and we will do our best to assist you."})]})})]})})]}),r.jsx(Ce,{})]})}const iO=[{icon:Ze,title:"Privacy Policy",href:"/privacy-policy",description:"How we collect, use, and protect your personal data under UK GDPR",lastUpdated:"March 2026"},{icon:w1,title:"Cookie Policy",href:"/cookie-policy",description:"Information about cookies and how we use them on our website",lastUpdated:"December 2024"},{icon:Ge,title:"Website Terms & Conditions",href:"/terms-conditions",description:"Terms governing your use of our website",lastUpdated:"December 2024"},{icon:vt,title:"Service Terms & Conditions",href:"/service-terms",description:"Terms governing our service to you - read before using our services",lastUpdated:"March 2026"},{icon:vt,title:"Legal Disclaimer",href:"/legal-disclaimer",description:"IMPORTANT: We are NOT a law firm. We provide information, not legal advice.",lastUpdated:"March 2026"},{icon:Sl,title:"Service Scope",href:"/service-scope",description:"What we do and don't do - understand our service boundaries",lastUpdated:"December 2024"},{icon:yg,title:"Third-Party Disclaimer",href:"/third-party-disclaimer",description:"Our policy on external referrals and third-party services",lastUpdated:"December 2024"}],aO=[{icon:An,title:"Complaints Policy",href:"/complaints-policy",description:"How to raise concerns about our services and our 5-step resolution process",lastUpdated:"March 2026"},{icon:_e,title:"Equality, Diversity & Inclusion",href:"/equality-diversity",description:"Our commitment to equal treatment under the Equality Act 2010",lastUpdated:"December 2024"},{icon:Rt,title:"Safeguarding Policy",href:"/safeguarding",description:"How we protect vulnerable adults and children from abuse and harm",lastUpdated:"March 2026"},{icon:tc,title:"Accessibility Statement",href:"/accessibility",description:"Our commitment to making services accessible to everyone",lastUpdated:"December 2024"},{icon:S1,title:"Data Retention & Deletion",href:"/data-retention",description:"How long we keep your data and when we delete it",lastUpdated:"March 2026"}],oO=[{icon:cs,title:"Comprehensive Safeguarding Policy",description:"Care Act 2014 compliant safeguarding framework covering abuse recognition, reporting, and multi-agency working",file:"COMPREHENSIVE_SAFEGUARDING_POLICY.md",category:"Governance",lastUpdated:"March 2026"},{icon:Ze,title:"UK GDPR Data Protection Policy",description:"Complete data protection compliance including lawful bases, special category data, breach management, and data subject rights",file:"UK_GDPR_DATA_PROTECTION_POLICY.md",category:"Data Protection",lastUpdated:"March 2026"},{icon:wg,title:"Appropriate Policy Document (DPA 2018)",description:"Mandatory under DPA 2018 - demonstrates lawful processing of special category and criminal offence data",file:"APPROPRIATE_POLICY_DOCUMENT_DPA2018.md",category:"Data Protection",lastUpdated:"March 2026",confidential:!0},{icon:vt,title:"Data Breach Response Plan",description:"Procedures for detecting, containing, and responding to data breaches (72-hour ICO notification)",file:"DATA_BREACH_RESPONSE_PLAN.md",category:"Data Protection",lastUpdated:"March 2026"},{icon:Ge,title:"Terms of Engagement (Client Agreement)",description:"Comprehensive agreement covering service scope, fees, liability limitations, confidentiality, and safeguarding",f
501ile:"TERMS_OF_ENGAGEMENT.md",category:"Client-Facing",lastUpdated:"March 2026"},{icon:G_,title:"Client Intake Form & Risk Assessment",description:"Comprehensive form for client onboarding including vulnerability assessment, conflict checking, and risk analysis",file:"CLIENT_INTAKE_FORM.md",category:"Client-Facing",lastUpdated:"March 2026"},{icon:_e,title:"Volunteer Agreement",description:"Binding agreement covering roles, regulatory boundaries, supervision, training, confidentiality, and safeguarding",file:"VOLUNTEER_AGREEMENT.md",category:"Volunteer",lastUpdated:"March 2026"},{icon:vt,title:"Safeguarding Concern Reporting Form",description:"Internal confidential form for recording and reporting safeguarding concerns with DSL assessment",file:"SAFEGUARDING_CONCERN_FORM.md",category:"Operations",lastUpdated:"March 2026"},{icon:Ze,title:"Risk Register",description:"16 key organizational risks with RED/AMBER/GREEN ratings, existing controls, and residual risk assessment",file:"RISK_REGISTER_TEMPLATE.md",category:"Risk Management",lastUpdated:"March 2026"},{icon:Ge,title:"Case File Checklist & Template",description:"Standards for case file management including file structure, document organization, audit checklist, and data protection",file:"CASE_FILE_CHECKLIST.md",category:"Operations",lastUpdated:"March 2026"}];function lO(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Policies Hub - Governance & Compliance Documents",description:"Access all of The National Community Law Project CIC governance documents, policies, and legal information including privacy, safeguarding, and compliance.",keywords:"policies hub, governance documents, legal policies, compliance, privacy policy, safeguarding",canonicalUrl:"https://thenationalcommunitylawproject.com/policies"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-12 text-primary-foreground md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx(Ze,{className:"mx-auto mb-4 h-12 w-12"}),r.jsx("h1",{className:"mb-2 text-3xl font-bold tracking-tight md:text-4xl","data-testid":"text-policies-title",children:"Policies & Compliance"}),r.jsx("p",{className:"text-primary-foreground/80",children:"Transparency and accountability in everything we do"})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsx("div",{className:"mx-auto max-w-4xl px-4 md:px-6",children:r.jsx("div",{className:"prose prose-lg mx-auto dark:prose-invert",children:r.jsx("p",{children:"The National Community Law Project CIC is committed to operating transparently and in compliance with all relevant laws and regulations. Below you will find all our policies, terms, and compliance documents."})})})}),r.jsx("section",{className:"bg-card py-12 md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsx("h2",{className:"mb-8 text-2xl font-bold",children:"Legal Documents"}),r.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:iO.map((e,t)=>r.jsx(Q,{href:e.href,children:r.jsxs(W,{className:"h-full cursor-pointer transition-colors hover-elevate","data-testid":`card-policy-${t}`,children:[r.jsx(le,{className:"pb-2",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:r.jsx(e.icon,{className:"h-5 w-5 text-primary"})}),r.jsx(ce,{className:"text-lg",children:e.title})]})}),r.jsxs($,{children:[r.jsx(ot,{className:"text-sm",children:e.description}),r.jsxs("p",{className:"mt-2 text-xs text-muted-foreground",children:["Last updated: ",e.lastUpdated]})]})]})},t))})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsx("h2",{className:"mb-8 text-2xl font-bold",children:"Organisational Policies"}),r.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:aO.map((e,t)=>r.jsx(Q,{href:e.href,children:r.jsxs(W,{className:"h-full cursor-pointer transition-colors hover-elevate","data-testid":`card-org-policy-${t}`,children:[r.jsx(le,{className:"pb-2",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:r.jsx(e.icon,{className:"h-5 w-5 text-primary"})}),r.jsx(ce,{className:"text-lg",children:e.title})]})}),r.jsxs($,{children:[r.jsx(ot,{className:"text-sm",children:e.description}),r.jsxs("p",{className:"mt-2 text-xs text-muted-foreground",children:["Last updated: ",e.lastUpdated]})]})]})},t))})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsx("h2",{className:"mb-8 text-2xl font-bold",children:"Governance & Compliance Documents"}),r.jsx("p",{className:"mb-8 text-muted-foreground max-w-4xl",children:"The National Community Law Project CIC operates under a comprehensive governance framework. Below are our core legal, operational, and compliance documents (Phase 1 - March 2026). All documents are version controlled and reviewed annually."}),r.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:oO.map((e,t)=>r.jsxs(W,{className:"h-full","data-testid":`card-governance-doc-${t}`,children:[r.jsx(le,{className:"pb-3",children:r.jsx("div",{className:"flex items-start justify-between gap-3",children:r.jsxs("div",{className:"flex items-start gap-3 flex-1",children:[r.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10 flex-shrink-0 mt-1",children:r.jsx(e.icon,{className:"h-5 w-5 text-primary"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx(ce,{className:"text-base",children:e.title}),r.jsx("span",{className:"inline-block mt-1 px-2 py-1 bg-secondary text-secondary-foreground text-xs rounded-full",children:e.category}),e.confidential&&r.jsx("span",{className:"inline-block ml-1 px-2 py-1 bg-orange-100 dar
501k:bg-orange-900/30 text-orange-700 dark:text-orange-200 text-xs rounded-full",children:"Confidential"})]})]})})}),r.jsxs($,{children:[r.jsx(ot,{className:"text-sm mb-4",children:e.description}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Last updated: ",e.lastUpdated]}),r.jsx("div",{className:"flex gap-2 flex-wrap",children:r.jsxs("a",{href:`/docs/${e.file}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 px-3 py-1 text-xs bg-primary text-primary-foreground rounded hover:bg-primary/90 transition-colors","data-testid":`link-download-${t}`,children:[r.jsx(L_,{className:"h-3 w-3"}),"View/Download"]})})]})]})]},t))}),r.jsx("div",{className:"mt-8 p-6 bg-blue-50 dark:bg-blue-950/20 rounded-lg border border-blue-200 dark:border-blue-800",children:r.jsxs("p",{className:"text-sm text-blue-900 dark:text-blue-100",children:[r.jsx("strong",{children:"Complete Documentation Package:"})," All governance documents (11 core + comprehensive index) totaling ~180+ pages are available in the ",r.jsx("code",{className:"bg-blue-100 dark:bg-blue-900 px-2 py-1 rounded text-xs",children:"/docs"})," folder. Phase 2 (Volunteer Handbook, Templates) and Phase 3 (Annual Governance Reviews) planned. ",r.jsx("a",{href:"mailto:[email protected]",className:"underline hover:no-underline",children:"Contact us"})," for the complete governance bundle."]})})]})}),r.jsx("section",{className:"bg-card py-12 md:py-16",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h2",{className:"mb-4 text-2xl font-bold",children:"Questions About Our Policies?"}),r.jsx("p",{className:"mb-6 text-muted-foreground",children:"If you have any questions about our policies or need further clarification, please don't hesitate to contact us."}),r.jsx(Q,{href:"/contact",children:r.jsxs(pe,{className:"gap-2","data-testid":"button-contact-policies",children:["Contact Us",r.jsx(st,{className:"h-4 w-4"})]})})]})})]}),r.jsx(Ce,{})]})}const cO=[{service:"Initial Case Assessment",description:"Review your situation, assess legal merits, and create an action plan",typicalHours:"7 hours",estimatedCost:"£350",includes:["Review of all documents","Initial legal research","Written assessment report","Recommended next steps","Action plan timeline"],note:"This is our minimum engagement to ensure we can properly assess your case"},{service:"Simple Letter Before Action",description:"Drafting a formal legal letter to resolve a dispute before court proceedings",typicalHours:"3-5 hours",estimatedCost:"£150 - £250",includes:["Review of your situation","Research on relevant law","Professional letter drafting","One round of revisions"],note:"Additional correspondence charged at hourly rate"},{service:"Witness Statement Preparation",description:"Help you compile and structure your evidence into a formal witness statement",typicalHours:"5-10 hours",estimatedCost:"£250 - £500",includes:["Evidence review","Statement structure planning","Professional drafting","Fact-checking and revisions"],note:"Depends on complexity and volume of evidence"},{service:"Court Bundle Preparation",description:"Compile, organise and index all documents required for court proceedings",typicalHours:"10-20 hours",estimatedCost:"£500 - £1,000",includes:["Document collection and review","Chronological organisation","Professional indexing","Pagination and formatting","Multiple copies prepared"],note:"Varies significantly based on case complexity and document volume"},{service:"Employment Tribunal Preparation",description:"Full support preparing your employment case from start to hearing",typicalHours:"20-40 hours",estimatedCost:"£1,000 - £2,000",includes:["ET1/ET3 form assistance","Evidence compilation","Witness statement drafting","Bundle preparation","Hearing preparation notes"],note:"Complex cases may require additional hours"},{service:"Complaint to Ombudsman/Regulator",description:"Help you raise a formal complaint with regulatory bodies",typicalHours:"5-12 hours",estimatedCost:"£250 - £600",includes:["Review of your complaint","Research on regulatory requirements","Complaint letter drafting","Supporting evidence compilation","Submission guidance"],note:"Depends on the complexity and regulator involved"},{service:"Defending a Complaint",description:"Help you respond to a complaint made against you or your business",typicalHours:"8-15 hours",estimatedCost:"£400 - £750",includes:["Review of complaint allegations","Evidence gathering and organisation","Written response drafting","Mitigation strategy","Supporting documentation preparation"],note:"Complexity depends on nature of complaint and evidence required"},{service:"Financial Ombudsman Complaint",description:"Raise or escalate a complaint to the Financial Ombudsman Service",typicalHours:"6-14 hours",estimatedCost:"£300 - £700",includes:["Review of financial dispute","FOS eligibility assessment","Complaint form preparation","Evidence chronology","Submission and follow-up guidance"],note:"Includes banks, insurance, pensions and investment disputes"},{service:"Internal Grievance Support",description:"Help you raise or respond to a workplace grievance",typicalHours:"5-10 hours",estimatedCost:"£250 - £500",includes:["Review of workplace issues","Grievance letter drafting","Evidence compilation","Meeting preparation notes","Appeal guidance if needed"],note:"Can also support with disciplinary response preparation"}
501,{service:"Healthcare Complaint (NHS/Private)",description:"Raise a formal complaint about medical treatment or care",typicalHours:"8-16 hours",estimatedCost:"£400 - £800",includes:["Review of medical records","Timeline of treatment","Complaint letter drafting","Escalation to PHSO if needed","Response analysis"],note:"Complex cases involving clinical negligence may require solicitor referral"},{service:"Consumer Rights Complaint",description:"Pursue a complaint against a business for faulty goods or poor service",typicalHours:"4-8 hours",estimatedCost:"£200 - £400",includes:["Consumer rights assessment","Letter of claim drafting","Alternative dispute resolution guidance","Small claims advice","Trading Standards referral"],note:"May escalate to small claims court if unresolved"}],uO=[{service:"Solicitors (UK Average)",rate:"£150 - £350/hour",note:"Plus 20% VAT"},{service:"City Solicitors (London)",rate:"£300 - £600/hour",note:"Plus 20% VAT"},{service:"McKenzie Friends",rate:"£50 - £90/hour",note:"Unregulated support"},{service:"NCLP CIC",rate:"£50/hour",note:"Not-for-profit, community focused",highlight:!0}];function dO(){return r.jsxs("div",{className:"min-h-screen flex flex-col",children:[r.jsx(ke,{title:"Pricing - Affordable Legal Support at £50/Hour",description:"Transparent, affordable legal support pricing at just £50 per hour. No hidden fees, no hourly minimums beyond initial assessment. See example costs for case assessments, letters, witness statements and more.",keywords:"legal support cost UK, affordable legal fees, cheap legal help prices, £50 legal advice, solicitor alternative pricing, legal document drafting cost"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"py-16 md:py-24 bg-gradient-to-b from-primary/5 to-background",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"text-center max-w-3xl mx-auto",children:[r.jsx(yt,{variant:"secondary",className:"mb-4","data-testid":"badge-pricing",children:"Transparent Pricing"}),r.jsx("h1",{className:"text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-pricing-title",children:"Affordable Legal Support"}),r.jsx("p",{className:"mt-4 text-lg text-muted-foreground",children:"We believe everyone deserves access to justice. Our rates are designed to be affordable while ensuring you receive quality professional support."})]}),r.jsxs("div",{className:"mt-12 grid gap-6 md:grid-cols-3",children:[r.jsxs(W,{className:"text-center",children:[r.jsxs(le,{children:[r.jsx("div",{className:"mx-auto mb-2 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",children:r.jsx(cr,{className:"h-6 w-6 text-primary"})}),r.jsx(ce,{className:"text-3xl font-bold","data-testid":"text-hourly-rate",children:"£50"}),r.jsx(ot,{children:"Per Hour"})]}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Our standard hourly rate for all legal support services as a Community Interest Company."})})]}),r.jsxs(W,{className:"text-center border-primary",children:[r.jsxs(le,{children:[r.jsx(yt,{className:"mx-auto mb-2","data-testid":"badge-minimum",children:"Minimum Engagement"}),r.jsx(ce,{className:"text-3xl font-bold","data-testid":"text-minimum-cost",children:"£350"}),r.jsx(ot,{children:"7 Hours Package"})]}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Our minimum engagement ensures we can properly assess your case and provide meaningful support from the outset."})})]}),r.jsxs(W,{className:"text-center",children:[r.jsxs(le,{children:[r.jsx("div",{className:"mx-auto mb-2 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",children:r.jsx(E1,{className:"h-6 w-6 text-primary"})}),r.jsx(ce,{className:"text-3xl font-bold","data-testid":"text-savings",children:"70%+"}),r.jsx(ot,{children:"Less Than Solicitors"})]}),r.jsx($,{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Our rates are significantly lower than traditional solicitor fees, making legal support accessible."})})]})]})]})}),r.jsx("section",{className:"py-16 bg-muted/30",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl font-bold","data-testid":"text-comparison-title",children:"How We Compare"}),r.jsx("p",{className:"mt-2 text-muted-foreground",children:"See how our rates compare to other legal service providers"})]}),r.jsx("div",{className:"max-w-3xl mx-auto",children:r.jsx(W,{children:r.jsx($,{className:"pt-6",children:r.jsx("div",{className:"space-y-4",children:uO.map((e,t)=>r.jsxs("div",{className:`flex items-center justify-between p-4 rounded-md ${e.highlight?"bg-primary/10 border border-primary/20":"bg-muted/50"}`,"data-testid":`comparison-row-${t}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[e.highlight&&r.jsx(ye,{className:"h-5 w-5 text-primary"}),r.jsxs("div",{children:[r.jsx("p",{className:`font-medium ${e.highlight?"text-primary":""}`,children:e.service}),r.jsx("p",{className:"text-xs text-muted-foreground",children:e.note})]})]}),r.jsx("div",{className:"text-right",children:r.jsx("p",{className:`font-bold ${e.highlight?"text-primary text-lg":""}`,children:e.rate})})]},t))})})})})]})}),r.jsx("section",{className:"py-16",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl font-bold","data-testid":"text-examples-title",children:"Example Pricing Guide"}),r.jsx("p",{className:"mt-2 text-muted-foreground max-w-2xl mx-auto",children:"Below are typical examples of our services with estimated hours and costs."}),r.jsxs("div",{className:"mt-4 inline-flex items-center gap-2 bg-amber-100 dar
501k:bg-amber-900/30 text-amber-800 dark:text-amber-200 px-4 py-2 rounded-md text-sm","data-testid":"text-disclaimer-banner",children:[r.jsx(Sl,{className:"h-4 w-4 shrink-0"}),r.jsxs("span",{children:[r.jsx("strong",{children:"Important:"})," These are estimates only. Actual hours and costs will vary depending on the complexity of your specific case."]})]})]}),r.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:cO.map((e,t)=>r.jsxs(W,{className:"flex flex-col","data-testid":`card-service-${t}`,children:[r.jsxs(le,{children:[r.jsx(ce,{className:"text-lg",children:e.service}),r.jsx(ot,{children:e.description})]}),r.jsxs($,{className:"flex-1 flex flex-col",children:[r.jsxs("div",{className:"flex items-center gap-4 mb-4 p-3 bg-muted/50 rounded-md",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Xa,{className:"h-4 w-4 text-muted-foreground"}),r.jsx("span",{className:"text-sm",children:e.typicalHours})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(cr,{className:"h-4 w-4 text-primary"}),r.jsx("span",{className:"font-bold text-primary",children:e.estimatedCost})]})]}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Typically includes:"}),r.jsx("ul",{className:"space-y-1",children:e.includes.map((n,s)=>r.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[r.jsx(ye,{className:"h-3 w-3 text-primary mt-1 shrink-0"}),r.jsx("span",{children:n})]},s))})]}),r.jsx("div",{className:"mt-4 p-2 bg-muted/30 rounded-md",children:r.jsxs("p",{className:"text-xs text-muted-foreground flex items-start gap-1",children:[r.jsx(Sl,{className:"h-3 w-3 mt-0.5 shrink-0"}),e.note]})})]})]},t))})]})}),r.jsx("section",{className:"py-16 bg-muted/30",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsx("div",{className:"text-center mb-12",children:r.jsx("h2",{className:"text-3xl font-bold","data-testid":"text-understanding-title",children:"Understanding Our Pricing"})}),r.jsxs("div",{className:"grid gap-8 md:grid-cols-2 max-w-5xl mx-auto",children:[r.jsxs(W,{"data-testid":"card-explainer-minimum",children:[r.jsx(le,{children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:r.jsx(Xa,{className:"h-5 w-5 text-primary"})}),r.jsx(ce,{className:"text-lg",children:"Why a Minimum Engagement?"})]})}),r.jsxs($,{className:"space-y-3 text-sm text-muted-foreground",children:[r.jsx("p",{children:"Our 7-hour minimum (£350) ensures we can properly understand your situation and provide meaningful, quality support rather than rushed advice."}),r.jsx("p",{children:"This typically includes an initial consultation, document review, preliminary research, and a written assessment with recommended next steps."}),r.jsx("p",{children:"Without adequate time to understand your case, we cannot provide the thorough support that could make a real difference to your outcome."})]})]}),r.jsxs(W,{"data-testid":"card-explainer-vary",children:[r.jsx(le,{children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:r.jsx(qe,{className:"h-5 w-5 text-primary"})}),r.jsx(ce,{className:"text-lg",children:"Why Hours May Vary"})]})}),r.jsxs($,{className:"space-y-3 text-sm text-muted-foreground",children:[r.jsx("p",{children:"Every legal matter is unique. The estimates above are based on typical cases, but actual hours depend on factors such as:"}),r.jsxs("ul",{className:"space-y-1 ml-4",children:[r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("span",{className:"text-primary",children:"-"}),"Complexity of the legal issues involved"]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("span",{className:"text-primary",children:"-"}),"Volume of documents to review"]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("span",{className:"text-primary",children:"-"}),"Amount of research required"]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("span",{className:"text-primary",children:"-"}),"Number of parties involved"]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("span",{className:"text-primary",children:"-"}),"Urgency and court deadlines"]})]})]})]}),r.jsxs(W,{"data-testid":"card-explainer-costs",children:[r.jsx(le,{children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:r.jsx(cr,{className:"h-5 w-5 text-primary"})}),r.jsx(ce,{className:"text-lg",children:"How We Keep Costs Low"})]})}),r.jsxs($,{className:"space-y-3 text-sm text-muted-foreground",children:[r.jsx("p",{children:"As a Community Interest Company (CIC), we reinvest any surplus back into providing affordable legal support to the community."}),r.jsx("p",{children:"Our £50/hour rate reflects our commitment to keeping legal support accessible for everyone in the community."}),r.jsx("p",{children:"We focus on case preparation and support services, allowing qualified legal professionals to focus on advocacy where needed."})]})]}),r.jsxs(W,{"data-testid":"card-explainer-quote",children:[r.jsx(le,{children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:r.jsx(Ge,{className:"h-5 w-5 text-primary"})}),r.jsx(ce,{className:"text-lg",children:"Getting a Quote"})]})}),r.jsxs($,{className:"space-y-3 text-sm text-muted-foreground",children:[r.jsx("p",{children:"Contact us for a free initial discussion about your situation. We will provide an honest estimate of likely hours and costs before you commit."}),r.jsx("p",{children:"We believe in transparency. You will receive regular updates on hours used and we will discuss with you before exceeding any agreed estimates."}),r.jsx("p",{children:"We will also tell you if we think your case is better suited to a solicitor or other legal professional."})]})]})]})]})}),r.jsx("section",{className:"py-16 bg-primary text-primary-foreground",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6 text-center",children:[r.jsx("h2",{className:"text-3xl font-bold mb-4","data-testid":"text-cta-title",children:"Ready to Get Started?"}),r.jsx("p",{className:"text-lg opacity-90 max-w-2xl mx-auto mb-8",children:"Contact us today for a free initial discussion. We will give you an honest assessment of how we can help and what it is likely to cost."}),r.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[r.jsx(Q,{href:"/contact",children:r.jsxs(pe,{size:"lg",variant:"secondary","data-testid":"button-contact-cta",children:[r.jsx(An,{className:"mr-2 h-5 w-5"}),"Contact Us"]})}),r.jsx(Q,{href:"/how-we-support",children:r.jsx(pe,{size:"lg",variant:"outline",className:"bg-transparent border-primary-foreground
501/30 text-primary-foreground","data-testid":"button-learn-more",children:"Learn How We Help"})})]})]})})]}),r.jsx(Ce,{})]})}function mO(){return r.jsxs("div",{className:"min-h-screen flex flex-col",children:[r.jsx(ke,{title:"NCLP The Neurodivergence Club",description:"A national club dedicated to empowering and supporting neurodivergent individuals. Join NCLP Neurodivergence Club for resources, community, and advocacy.",keywords:"neurodivergence support, ADHD support UK, autism support, neurodivergent community, neurodiversity",canonicalUrl:"https://thenationalcommunitylawproject.com/neurodivergence-club"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"py-16 md:py-24 bg-gradient-to-b from-primary/5 to-background",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsxs("div",{className:"text-center max-w-3xl mx-auto",children:[r.jsx(yt,{variant:"outline",className:"mb-4","data-testid":"badge-coming-soon",children:"Coming Soon"}),r.jsx("div",{className:"flex justify-center mb-6",children:r.jsx("div",{className:"flex h-20 w-20 items-center justify-center rounded-full bg-primary/10",children:r.jsx(Ld,{className:"h-10 w-10 text-primary"})})}),r.jsx("h1",{className:"text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-page-title",children:"NCLP The Neurodivergence Club"}),r.jsx("p",{className:"mt-4 text-lg text-muted-foreground",children:"A national club dedicated to empowering and supporting neurodivergent individuals"})]})})}),r.jsx("section",{className:"py-16",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"grid gap-8 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-2xl font-bold mb-4",children:"About The Club"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"The NCLP Neurodivergence Club is a national initiative run by Director Stuart Cosslett and the dedicated NCLP team. We are committed to researching and writing about the unique challenges facing neurodivergent individuals in today's society."}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"Our mission is to create a supportive community where neurodivergent people can connect, share experiences, and access resources that help them thrive in all aspects of life."}),r.jsx("p",{className:"text-muted-foreground",children:"Through peer support, advocacy, and education, we work to break down barriers and promote understanding of neurodiversity in workplaces, education, and society."})]}),r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary"}),"What We Do"]})}),r.jsxs($,{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(vg,{className:"h-5 w-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Research & Advocacy"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Researching issues facing neurodivergent individuals and advocating for change"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Rt,{className:"h-5 w-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Peer Support"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Creating safe spaces for neurodivergent people to connect and support each other"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Vn,{className:"h-5 w-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Education & Resources"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Providing information and resources to help members navigate challenges"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(An,{className:"h-5 w-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Community Building"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Building a national network of neurodivergent individuals and allies"})]})]})]})]})]}),r.jsxs("div",{className:"mt-12 text-center p-8 bg-muted/30 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Launching Soon"}),r.jsx("p",{className:"text-muted-foreground mb-6",children:"We are working hard to bring this club to life. Register your interest to be notified when we launch and receive updates on our progress."}),r.jsx(Q,{href:"/contact",children:r.jsx(pe,{"data-testid":"button-register-interest",children:"Register Your Interest"})})]})]})})]}),r.jsx(Ce,{})]})}function hO(){return r.jsxs("div",{className:"min-h-screen flex flex-col",children:[r.jsx(ke,{title:"NCLP Disability Rights Club",description:"A national club fighting for disability rights and workplace accessibility. Join NCLP for disability support, advocacy, and community resources.",keywords:"disability rights UK, workplace accessibility, disability support, disability law",canonicalUrl:"https://thenationalcommunitylawproject.com/disability-rights-club"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"py-16 md:py-24 bg-gradient-to-b from-primary/5 to-background",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsxs("div",{className:"text-center max-w-3xl mx-auto",children:[r.jsx(yt,{variant:"outline",className:"mb-4","data-testid":"badge-coming-soon",children:"Coming Soon"}),r.jsx("div",{className:"flex justify-center mb-6",children:r.jsx("div",{className:"flex h-20 w-20 items-center justify-center rounded-full bg-primary/10",children:r.jsx(tc,{
vendor: 5,911 bytes, line 501
501className:"h-10 w-10 text-primary"})})}),r.jsx("h1",{className:"text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-page-title",children:"NCLP Disability Rights Club"}),r.jsx("p",{className:"mt-4 text-lg text-muted-foreground",children:"A national club fighting for disability rights and workplace accessibility"})]})})}),r.jsx("section",{className:"py-16",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"grid gap-8 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-2xl font-bold mb-4",children:"About The Club"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"The NCLP Disability Rights Club is a national initiative run by Directors Stuart Cosslett and Dane Marks, in partnership with MJ Lace and the team from Accessibility Partners."}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"We are dedicated to researching and writing about the challenges facing disabled people in accessing work and navigating the workplace. Our goal is to empower disabled individuals with knowledge, resources, and community support."}),r.jsx("p",{className:"text-muted-foreground",children:"Through advocacy, education, and peer support, we work to ensure that disability rights are upheld and that workplaces become truly accessible and inclusive for everyone."})]}),r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary"}),"What We Do"]})}),r.jsxs($,{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(_n,{className:"h-5 w-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Workplace Accessibility"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Researching and addressing barriers to employment for disabled people"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Ze,{className:"h-5 w-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Rights Advocacy"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Educating members about their legal rights and how to enforce them"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Vi,{className:"h-5 w-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Partnership Working"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Collaborating with Accessibility Partners to drive real change"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(An,{className:"h-5 w-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Peer Support Network"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Connecting disabled individuals to share experiences and strategies"})]})]})]})]})]}),r.jsxs("div",{className:"mt-12 text-center p-8 bg-muted/30 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Launching Soon"}),r.jsx("p",{className:"text-muted-foreground mb-6",children:"We are working hard to bring this club to life. Register your interest to be notified when we launch and receive updates on our progress."}),r.jsx(Q,{href:"/contact",children:r.jsx(pe,{"data-testid":"button-register-interest",children:"Register Your Interest"})})]})]})})]}),r.jsx(Ce,{})]})}function pO(){return r.jsxs("div",{className:"min-h-screen flex flex-col",children:[r.jsx(ke,{title:"The Financial Genius Club",description:"Peer-to-peer learning for financial skills, management, and strategic positioning. Join The Financial Genius Club for financial literacy and money management support.",keywords:"financial skills learning, money management, financial literacy, personal finance",canonicalUrl:"https://thenationalcommunitylawproject.com/financial-genius-club"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"py-16 md:py-24 bg-gradient-to-b from-primary/5 to-background",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsxs("div",{className:"text-center max-w-3xl mx-auto",children:[r.jsx(yt,{variant:"outline",className:"mb-4","data-testid":"badge-coming-soon",children:"Coming Soon"}),r.jsx("div",{className:"flex justify-center mb-6",children:r.jsx("div",{className:"flex h-20 w-20 items-center justify-center rounded-full bg-primary/10",children:r.jsx(T1,{className:"h-10 w-10 text-primary"})})}),r.jsx("h1",{className:"text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-page-title",children:"The Financial Genius Club"}),r.jsx("p",{className:"mt-4 text-lg text-muted-foreground",children:"Peer-to-peer learning for financial skills, management, and strategic positioning"})]})})}),r.jsx("section",{className:"py-16",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"grid gap-8 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-2xl font-bold mb-4",children:"About The Club"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"The Financial Genius Club is designed for members who want to develop their financial literacy and learn strategic approaches to money management. We believe that financial knowledge should be accessible to everyone."}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"Through peer-to-peer learning, our members share knowledge, experiences, and strategies to help each other gain essential financial skills. From budgeting basics to strategic financial positioning, we cover it all."}),r.jsx("p",{className:"text-muted-foreground",children:"Whether you are looking to understand personal finances better, learn about investment principles, or develop strategies for financial stability, our community is here to supp
501ort your journey."})]}),r.jsxs(W,{children:[r.jsx(le,{children:r.jsxs(ce,{className:"flex items-center gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary"}),"What We Offer"]})}),r.jsxs($,{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Vn,{className:"h-5 w-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Financial Education"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Learning essential financial skills and concepts in accessible ways"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Od,{className:"h-5 w-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Strategic Positioning"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Understanding how to position yourself for financial success"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(V_,{className:"h-5 w-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Money Management"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Practical skills for budgeting, saving, and managing finances"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(An,{className:"h-5 w-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Peer Learning Community"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Connecting with others to share knowledge and learn together"})]})]})]})]})]}),r.jsxs("div",{className:"mt-12 text-center p-8 bg-muted/30 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Launching Soon"}),r.jsx("p",{className:"text-muted-foreground mb-6",children:"We are working hard to bring this club to life. Register your interest to be notified when we launch and receive updates on our progress."}),r.jsx(Q,{href:"/contact",children:r.jsx(pe,{"data-testid":"button-register-interest",children:"Register Your Interest"})})]})]})})]}),r.jsx(Ce,{})]})}const fO=HN,gO=VN,jC=y.forwardRef(({className:e,...t},n)=>r.jsx(Hd,{ref:n,className:xe("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}));jC.displayName=Hd.displayName;const NC=y.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(gO,{children:[r.jsx(jC,{}),r.jsxs(Vd,{ref:s,className:xe("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(qN,{className:"absolute right-4 top-4 roun
501ded-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(Md,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));NC.displayName=Vd.displayName;const xO=y.forwardRef(({className:e,...t},n)=>r.jsx(qd,{ref:n,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t}));xO.displayName=qd.displayName;const yO=y.forwardRef(({className:e,...t},n)=>r.jsx(Kd,{ref:n,className:xe("text-sm text-muted-foreground",e),...t}));yO.displayName=Kd.displayName;const vO="/assets/488189797_1133535502119183_956351496674570114_n_1772180984383-BgkMmdQW.jpg",wO="/assets/1647099945495_1772180984384-Bxqk8sZX.jpg",bO="/assets/1647177777577_1772180984385-DfmkBjoT.jpg",jO="/assets/1647177770222_1772180984386-BSSQ3xf8.jpg",NO="/assets/1647177741809_1772180984386-BIM6GFDS.jpg",kO="/assets/1647177741826_1772180984388-BT3jV-O6.jpg",CO="/assets/1654627013645_1772180984389-B6rcXmqW.jpg",SO="/assets/1674133213126_1772180984390-CmqpUiLb.jpg",EO="/assets/1675948951650_1772180984391-D7vuYCzX.jpg",TO="/assets/1678097510203_1772180984393-C-DhjarJ.jpg",PO="/assets/1678274254827_1772180984394-CSkPh2AV.jpg",_O="/assets/1678274254833_1772180984394-B-hIJdkz.jpg",AO="/assets/1678352548286_1772180984395-Cet19KJT.jpg",RO="/assets/1679922313292_1772180984396-CMX0MmDO.jpg",IO="/assets/1679922316090_1772180984397-BDAL5ZAo.jpg",LO="/assets/1679922319400_1772180984398-C81fXc_Y.jpg",OO="/assets/1679922312943_1772180984399-CwiUPUii.jpg",MO="/assets/196352832_3742239022555189_1690531899612496423_n_1765660873149-Bpk8s2Hj.jpg",DO="/assets/487115234_9158241244288246_92973689031785478_n_1765660873150-D2eat2p8.jpg",FO="/assets/487872676_9179091542203216_6797559348149290625_n_1765660873150-B7DGP0yN.jpg",zO="/assets/487874182_9183231868455850_4028774934906559559_n_1765660873151-DsZgYWcc.jpg",UO="/assets/489309145_9183231955122508_5119035655068172879_n_1765660873152-CcLUtEDU.jpg",WO="/assets/487555688_9183231918455845_554071126091411056_n_1765660873152-CFAND6wB.jpg",$O="/assets/488256392_9190962911016079_5057178266361038361_n_1765660873153-CCUToSJ8.jpg",BO="/assets/488658971_9195009207278116_2087104125543458224_n_1765660873154-BQAEpRNv.jpg",HO="/assets/488850893_9204327096346327_1185317336888199401_n_1765660873155-CYlpK31k.jpg",VO="/assets/123945340_143768034148491_6710287922776632623_n_1765660873156-CJAO6Sws.jpg",qO="/assets/473056231_1121631893028762_8908508323199144083_n_1765660873157-BS-LfWql.jpg",KO="/assets/473068413_1121631539695464_8823946156686466809_n_1765660873158-fhC7rigC.jpg",GO="/assets/472795128_1121631633028788_9112129991060398087_n_1765660873158-B1J5NV9H.jpg",YO="/assets/473234092_1121631876362097_1395288308239866422_n_1765660873159-CeiiBH1r.jpg",ZO="/assets/472861190_1121631656362119_6339978947173914968_n_1765660873159-B9kDX-4B.jpg",QO="/assets/473000347_1121631869695431_4704552142745793144_n_1765660873160-D7BE3BjL.jpg",XO="/assets/473064368_1121631509695467_6899134559315136098_n_1765660873161-BP_Mfb50.jpg",JO="/assets/images_(1)_1765660873161-CTlm1iGT.jpeg",Lo=[{src:vO,alt:"Team Meeting"},{src:wO,alt:"Community Outreach"},{src:bO,alt:"Redkite Solicitors Event"},{src:jO,alt:"Panel Discussion"},{src:NO,alt:"Team Group Photo"},{src:kO,alt:"Legal Workshop"},{src:CO,alt:"Women in Law Event"},{src:SO,alt:"Law Interview Skills Session"},{src:EO,alt:"Junior Lawyers Division Speaker Panel"},{src:TO,alt:"Lawyers Without Borders Collaboration"},{src:PO,alt:"Charity Moot Networking"},{src:_O,alt:"Networking Event"},{src:AO,alt:"NCLP Team Member"},{src:RO,alt:"Community Law Event"},{src:IO,alt:"Fundraising Moot Certificates"},{src:LO,alt:"Networking Highlights"},{src:OO,alt:"NCLP Charity Moot Event"},{src:MO,alt:"Community event photo 1"},{src:DO,alt:"Community event photo 2"},{src:FO,alt:"Community event photo 3"},{src:zO,alt:"Community event photo 4"},{src:UO,alt:"Community event photo 5"},{src:WO,alt:"Community event photo 6"},{src:$O,alt:"Community event photo 7"},{src:BO,alt:"Community event photo 8"},{src:HO,alt:"Community event photo 9"},{src:VO,alt:"Community event photo 10"},{src:qO,alt:"Community event photo 11"},{src:KO,alt:"Community event photo 12"},{src:GO,alt:"Community event photo 13"},{src:YO,alt:"Community event photo 14"},{src:ZO,alt:"Community event photo 15"},{src:QO,alt:"Community event photo 16"},{src:XO,alt:"Community event photo 17"},{src:JO,alt:"Community event photo 18"}];function eM(){const[e,t]=y.useState(null),n=o=>{t(o)},s=()=>{t(null)},i=()=>{e!==null&&t(e===0?Lo.length-1:e-1)},a=()=>{e!==null&&t(e===Lo.length-1?0:e+1)};return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Photo Gallery - Community Events & Activities",description:"Browse photos from National Community Law Project CIC events, community activities and team moments. See our work in action supporting communities across the UK.",keywords:"community law project photos, legal support community events, NCLP gallery, community interest company photos"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-primary py-16 text-primary-foreground md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-4xl px-4 text-center md:px-6",children:[r.jsx("h1",{className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl","data-testid":"text-gallery-title",children:"Photo Gallery"}
501),r.jsx("p",{className:"text-lg text-primary-foreground/80","data-testid":"text-gallery-subtitle",children:"Moments from our community events, training sessions, and outreach activities across the UK."})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:r.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4 lg:gap-6",children:Lo.map((o,l)=>r.jsxs("button",{onClick:()=>n(l),className:"group relative aspect-square overflow-hidden rounded-md bg-muted focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2","data-testid":`gallery-image-${l}`,children:[r.jsx("img",{src:o.src,alt:o.alt,className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105",loading:"lazy"}),r.jsx("div",{className:"absolute inset-0 bg-black/0 transition-colors duration-300 group-hover:bg-black/20"})]},l))})})})]}),r.jsx(Ce,{}),r.jsx(fO,{open:e!==null,onOpenChange:()=>s(),children:r.jsx(NC,{className:"max-w-4xl border-none bg-transparent p-0 shadow-none",children:r.jsxs("div",{className:"relative flex items-center justify-center",children:[r.jsx(pe,{variant:"ghost",size:"icon",className:"absolute left-2 top-1/2 z-10 -translate-y-1/2 bg-black/50 text-white hover:bg-black/70",onClick:i,"data-testid":"button-lightbox-prev",children:r.jsx(__,{className:"h-6 w-6"})}),e!==null&&r.jsx("img",{src:Lo[e].src,alt:Lo[e].alt,className:"max-h-[80vh] max-w-full rounded-md object-contain","data-testid":"img-lightbox-current"}),r.jsx(pe,{variant:"ghost",size:"icon",className:"absolute right-2 top-1/2 z-10 -translate-y-1/2 bg-black/50 text-white hover:bg-black/70",onClick:a,"data-testid":"button-lightbox-next",children:r.jsx(A_,{className:"h-6 w-6"})}),r.jsx(pe,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 z-10 bg-black/50 text-white hover:bg-black/70",onClick:s,"data-testid":"button-lightbox-close",children:r.jsx(Md,{className:"h-5 w-5"})})]})})})]})}
501const tM={Housing:Mt,Employment:_n,Benefits:cr,Courts:qe,Safety:Rt,"Access to Justice":qe,"Community Law":_e,Debt:cr,Consumer:cr,"Dispute Resolution":qe,Criminal:Ze,Education:Vn,"Data Protection":Ze,Community:_e,Immigration:_e,"Local Government":Mt,"Practical Skills":Ge};function nM(){const[e,t]=y.useState(""),[n,s]=y.useState("All"),{data:i=[],isLoading:a}=dg({queryKey:["/api/articles"]}),o=[{name:"All",count:i.length},{name:"Housing",count:i.filter(u=>u.category==="Housing").length},{name:"Employment",count:i.filter(u=>u.category==="Employment").length},{name:"Benefits",count:i.filter(u=>u.category==="Benefits").length},{name:"Courts",count:i.filter(u=>u.category==="Courts"||u.category==="Dispute Resolution").length},{name:"Safety",count:i.filter(u=>u.category==="Safety").length},{name:"Access to Justice",count:i.filter(u=>u.category==="Access to Justice"||u.category==="Community Law").length}],l=i.filter(u=>{const d=u.title.toLowerCase().includes(e.toLowerCase())||u.description.toLowerCase().includes(e.toLowerCase())||u.category.toLowerCase().includes(e.toLowerCase()),m=n==="All"||u.category===n||n==="Courts"&&(u.category==="Courts"||u.category==="Dispute Resolution")||n==="Access to Justice"&&(u.category==="Access to Justice"||u.category==="Community Law");return d&&m}).sort((u,d)=>u.title.localeCompare(d.title)),c=u=>tM[u]||Vn;return r.jsxs(r.Fragment,{children:[r.jsx(ke,{title:"Legal Guides & Articles | Free Legal Information UK",description:"Free legal guides covering housing, employment, benefits, courts and more. Practical information to help you understand and protect your rights across England, Wales, Scotland and NI.",keywords:"legal guides UK, free legal advice, housing rights, employment law, benefits appeals, court guide, legal help, eviction help, housing law",canonicalUrl:"/legal-guides"}),r.jsx(Ne,{}),r.jsxs("main",{className:"min-h-screen bg-background",children:[r.jsx("section",{className:"bg-muted/30 py-16 md:py-24",children:r.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:[r.jsxs("div",{className:"text-center",children:[r.jsxs(yt,{variant:"secondary",className:"mb-4","data-testid":"badge-guides",children:[r.jsx(Vn,{className:"mr-1 h-3 w-3"}),"Free Legal Resources"]}),r.jsx("h1",{className:"text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl","data-testid":"text-page-title",children:"Legal Guides & Articles"}),r.jsxs("p",{className:"mx-auto mt-4 max-w-2xl text-lg text-muted-foreground",children:[i.length," practical legal guides to help you understand and protect your rights. Written for everyday people facing real legal challenges."]})]}),r.jsx("div",{className:"mx-auto mt-8 max-w-xl",children:r.jsxs("div",{className:"relative",children:[r.jsx(jg,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),r.jsx(zn,{type:"search",placeholder:"Search guides by topic, keyword or category...",value:e,onChange:u=>t(u.target.value),className:"pl-10","data-testid":"input-search-articles"})]})}),r.jsx("div",{className:"mx-auto mt-6 flex flex-wrap justify-center gap-2",children:o.map(u=>r.jsxs(pe,{variant:n===u.name?"default":"outline",size:"sm",onClick:()=>s(u.name),"data-testid":`button-category-${u.name.toLowerCase().replace(/\s+/g,"-")}`,children:[u.name," (",u.count,")"]},u.name))})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsx("div",{className:"mx-auto max-w-7xl px-4 md:px-6",children:a?r.jsx("div",{className:"flex items-center justify-center py-12",children:r.jsx($_,{className:"h-8 w-8 animate-spin text-primary"})}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"mb-6 text-sm text-muted-foreground",children:["Showing ",l.length," of ",i.length," guides"]}),r.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:l.map(u=>{const d=c(u.category);return r.jsxs(W,{className:"flex flex-col hover-elevate","data-testid":`card-article-${u.slug}`,children:[r.jsxs(le,{className:"pb-3",children:[r.jsxs("div",{className:"flex items-start justify-between gap-2",children:[r.jsxs(yt,{variant:"outline",className:"shrink-0",children:[r.jsx(d,{className:"mr-1 h-3 w-3"}),u.category]}),r.jsxs("span",{className:"text-xs text-muted-foreground",children:["#",u.id]})]}),r.jsx(ce,{className:"mt-2 text-lg leading-snug",children:u.title})]}),r.jsxs($,{className:"flex flex-1 flex-col",children:[r.jsx(ot,{className:"flex-1",children:u.description}),r.jsx("div",{className:"mt-4",children:r.jsx(Q,{href:`/legal-guides/${u.slug}`,children:r.jsxs(pe,{variant:"ghost",size:"sm",className:"group -ml-2 gap-1","data-testid":`button-read-${u.slug}`,children:["Read Guide",r.jsx(st,{className:"h-3 w-3 transition-transform group-hover:translate-x-1"})]})})})]})]},u.slug)})}),l.length===0&&r.jsxs("div",{className:"py-12 text-center",children:[r.jsx("p",{className:"text-muted-foreground",children:"No guides found matching your search."}),r.jsx(pe,{variant:"ghost",onClick:()=>{t(""),s("All")},"data-testid":"button-clear-filters",children:"Clear filters"})]})]})})}),r.jsx("section",{className:"border-t bg-muted/30 py-12",children:r.jsxs("div",{className:"mx-auto max-w-3xl px-4 text-center md:px-6",children:[r.jsx("h2",{className:"text-2xl font-bold",children:"Need Personalised Help?"}),r.jsx("p",{className:"mt-2 text-muted-foreground",children:"These guides provide general information, but every situation is different. If you need support with your specific case, we are here to help."}),r.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-3",children:[r.jsx(Q,{href:"/contact",children:r.jsx(pe,{"data-testid":"button-contact-us",children:"Contact Us"})}),r.jsx(Q,{href:"/how-we-support",children:r.jsx(pe,{variant:"outline","data-testid":"button-how-we-help",children:"How We Help"})})]})]})})]}),r.jsx(Ce,{})]})}function rM(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const sM=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iM=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,aM={};function Dv(e,t){return(aM.jsx?iM:sM).test(e)}const oM=/[ \t\n\f\r]/g;function lM(e){return typeof e=="object"?e.type==="text"?Fv(e.value):!1:Fv(e)}function Fv(e){return e.replace(oM,"")===""}class ac{constructor(t,n,s){this.normal=n,this.property=t,s&&(this.space=s)}}ac.prototype.normal={};ac.prototype.property={};ac.prototype.space=void 0;function kC(e,t){const n={},s={};for(const i of e)Object.assign(n,i.property),Object.assign(s,i.normal);return new ac(n,s,t)}function Kp(e){return e.toLowerCase()}class gn{constructor(t,n){this.attribute=n,this.property=t}}gn.prototype.attribute="";gn.prototype.booleanish=!1;gn.prototype.boolean=!1;gn.prototype.commaOrSpaceSeparated=!1;gn.prototype.commaSeparated=!1;gn.prototype.defined=!1;gn.prototype.mustUseProperty=!1;gn.prototype.number=!1;gn.prototype.overloadedBoolean=!1;gn.prototype.property="";gn.prototype.spaceSeparated=!1;gn.prototype.space=void 0;let cM=0;const Pe=qi(),Nt=qi(),Gp=qi(),Y=qi(),nt=qi(),Ta=qi(),yn=qi();function qi(){return 2**++cM}const Yp=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:Nt,commaOrSpaceSeparated:yn,commaSeparated:Ta,number:Y,overloadedBoolean:Gp,spaceSeparated:nt},Symbol.toStringTag,{value:"Module"})),eh=Object.keys(Yp);class ox extends gn{constructor(t,n,s,i){let a=-1;if(super(t,n),zv(this,"space",i),typeof s=="number")for(;++a<eh.length;){const o=eh[a];
vendor: 4,156 bytes, line 501
501zv(this,eh[a],(s&Yp[o])===Yp[o])}}}ox.prototype.defined=!0;function zv(e,t,n){n&&(e[t]=n)}function wo(e){const t={},n={};for(const[s,i]of Object.entries(e.properties)){const a=new ox(s,e.transform(e.attributes||{},s),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(s)&&(a.mustUseProperty=!0),t[s]=a,n[Kp(s)]=s,n[Kp(a.attribute)]=s}return new ac(t,n,e.space)}const CC=wo({properties:{ariaActiveDescendant:null,ariaAtomic:Nt,ariaAutoComplete:null,ariaBusy:Nt,ariaChecked:Nt,ariaColCount:Y,ariaColIndex:Y,ariaColSpan:Y,ariaControls:nt,ariaCurrent:null,ariaDescribedBy:nt,ariaDetails:null,ariaDisabled:Nt,ariaDropEffect:nt,ariaErrorMessage:null,ariaExpanded:Nt,ariaFlowTo:nt,ariaGrabbed:Nt,ariaHasPopup:null,ariaHidden:Nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nt,ariaLevel:Y,ariaLive:null,ariaModal:Nt,ariaMultiLine:Nt,ariaMultiSelectable:Nt,ariaOrientation:null,ariaOwns:nt,ariaPlaceholder:null,ariaPosInSet:Y,ariaPressed:Nt,ariaReadOnly:Nt,ariaRelevant:null,ariaRequired:Nt,ariaRoleDescription:nt,ariaRowCount:Y,ariaRowIndex:Y,ariaRowSpan:Y,ariaSelected:Nt,ariaSetSize:Y,ariaSort:null,ariaValueMax:Y,ariaValueMin:Y,ariaValueNow:Y,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function SC(e,t){return t in e?e[t]:t}function EC(e,t){return SC(e,t.toLowerCase())}const uM=wo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ta,acceptCharset:nt,accessKey:nt,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:nt,autoFocus:Pe,autoPlay:Pe,blocking:nt,capture:null,charSet:null,checked:Pe,cite:null,className:nt,cols:Y,colSpan:null,content:null,contentEditable:Nt,controls:Pe,controlsList:nt,coords:Y|Ta,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:Gp,draggable:Nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:nt,height:Y,hidden:Gp,high:Y,href:null,hrefLang:null,htmlFor:nt,httpEquiv:nt,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:nt,itemRef:nt,itemScope:Pe,itemType:nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:Y,manifest:null,max:null,maxLength:Y,media:null,method:null,min:null,minLength:Y,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pe,optimum:Y,pattern:null,ping:nt,placeholder:null,playsInl
501ine:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:nt,required:Pe,reversed:Pe,rows:Y,rowSpan:Y,sandbox:nt,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shape:null,size:Y,sizes:null,slot:null,span:Y,spellCheck:Nt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Y,step:null,style:null,tabIndex:Y,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:Nt,width:Y,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nt,axis:null,background:null,bgColor:null,border:Y,borderColor:null,bottomMargin:Y,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:Y,leftMargin:Y,link:null,longDesc:null,lowSrc:null,marginHeight:Y,marginWidth:Y,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:Y,rules:null,scheme:null,scrolling:Nt,standby:null,summary:null,text:null,topMargin:Y,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Y,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pe,disableRemotePlayback:Pe,prefix:null,property:null,results:Y,security:null,unselectable:null},space:"html",transform:EC}),dM=wo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
501-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:yn,accentHeight:Y,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Y,amplitude:Y,arabicForm:null,ascent:Y,attributeName:null,attributeType:null,azimuth:Y,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Y,by:null,calcMode:null,capHeight:Y,className:nt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Y,diffuseConstant:Y,direction:null,display:null,dur:null,divisor:Y,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Y,enableBackground:null,end:null,event:null,exponent:Y,externalResourcesRequired:null,fill:null,fillOpacity:Y,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ta,g2:Ta,glyphName:Ta,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Y,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Y,horizOriginX:Y,horizOriginY:Y,id:null,ideographic:Y,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Y,k:Y,k1:Y,k2:Y,k3:Y,k4:Y,kernelMatrix:yn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Y,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Y,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 5,275 bytes, lines 501-502
501Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Y,overlineThickness:Y,paintOrder:null,panose1:null,path:null,pathLength:Y,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Y,pointsAtY:Y,pointsAtZ:Y,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yn,rev:yn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yn,requiredFeatures:yn,requiredFonts:yn,requiredFormats:yn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Y,specularExponent:Y,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Y,strikethroughThickness:Y,string:null,stroke:null,strokeDashArray:yn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Y,strokeOpacity:Y,strokeWidth:null,style:null,surfaceScale:Y,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yn,tabIndex:Y,tableValues:null,target:null,targetX:Y,targetY:Y,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Y,underlineThickness:Y,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Y,values:null,vAlphabetic:Y,vMathematical:Y,vectorEffect:null,vHanging:Y,vIdeographic:Y,version:null,vertAdvY:Y,vertOriginX:Y,vertOriginY:Y,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Y,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:SC}),TC=wo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),PC=wo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:EC}),_C=wo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),mM={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hM=/[A-Z]/g,Uv=/-[a-z]/g,pM=/^data[-\w.:]+$/i;function fM(e,t){const n=Kp(t);let s=t,i=gn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&pM.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Uv,xM);s="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Uv.test(a)){let o=a.replace(hM,gM);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ox}return new i(s,t)}function gM(e){return"-"+e.toLowerCase()}function xM(e){return e.charAt(1).toUpperCase()}const yM=kC([CC,uM,TC,PC,_C],"html"),lx=kC([CC,dM,TC,PC,_C],"svg");function vM(e){return e.join(" ").trim()}var cx={},Wv=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,wM=/\n/g,bM=/^\s*/,jM=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,NM=/^:\s*/,kM=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,CM=/^[;\s]*/,SM=/^\s+|\s+$/g,EM=`
502`,$v="/",Bv="*",hi="",TM="comment",PM="declaration";function _M(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,s=1;function i(v){var f=v.match(wM);f&&(n+=f.length);var b=v.lastIndexOf(EM);s=~b?v.length-b:s+v.length}function a(){var v={line:n,column:s};return function(f){return f.position=new o(v),u(),f}}function o(v){this.start=v,this.end={line:n,column:s},this.source=t.source}o.prototype.content=e;function l(v){var f=new Error(t.source+":"+n+":"+s+": "+v);if(f.reason=v,f.filename=t.source,f.line=n,f.column=s,f.source=e,!t.silent)throw f}function c(v){var f=v.exec(e);if(f){var b=f[0];return i(b),e=e.slice(b.length),f}}function u(){c(bM)}function d(v){var f;for(v=v||[];f=m();)f!==!1&&v.push(f);return v}function m(){var v=a();if(!($v!=e.charAt(0)||Bv!=e.charAt(1))){for(var f=2;hi!=e.charAt(f)&&(Bv!=e.charAt(f)||$v!=e.charAt(f+1));)++f;if(f+=2,hi===e.charAt(f-1))return l("End of comment missing");var b=e.slice(2,f-2);return s+=2,i(b),e=e.slice(f),s+=2,v({type:TM,comment:b})}}function h(){var v=a(),f=c(jM);if(f){if(m(),!c(NM))return l("property missing ':'");var b=c(kM),g=v({type:PM,property:Hv(f[0].replace(Wv,hi)),value:b?Hv(b[0].replace(Wv,hi)):hi});return c(CM),g}}function p(){var v=[];d(v);for(var f;f=h();)f!==!1&&(v.push(f),d(v));return v}return u(),p()}function Hv(e){return e?e.replace(SM,hi):hi}var AM=_M,RM=mu&&mu.__importDefault||function(e){return e&&e.__esMo
vendor: 3,641 bytes, line 502
502dule?e:{default:e}};Object.defineProperty(cx,"__esModule",{value:!0});cx.default=LM;const IM=RM(AM);function LM(e,t){let n=null;if(!e||typeof e!="string")return n;const s=(0,IM.default)(e),i=typeof t=="function";return s.forEach(a=>{if(a.type!=="declaration")return;const{property:o,value:l}=a;i?t(o,l,a):l&&(n=n||{},n[o]=l)}),n}var tm={};Object.defineProperty(tm,"__esModule",{value:!0});tm.camelCase=void 0;var OM=/^--[a-zA-Z0-9_-]+$/,MM=/-([a-z])/g,DM=/^[^-]+$/,FM=/^-(webkit|moz|ms|o|khtml)-/,zM=/^-(ms)-/,UM=function(e){return!e||DM.test(e)||OM.test(e)},WM=function(e,t){return t.toUpperCase()},Vv=function(e,t){return"".concat(t,"-")},$M=function(e,t){return t===void 0&&(t={}),UM(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(zM,Vv):e=e.replace(FM,Vv),e.replace(MM,WM))};tm.camelCase=$M;var BM=mu&&mu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},HM=BM(cx),VM=tm;function Zp(e,t){var n={};return!e||typeof e!="string"||(0,HM.default)(e,function(s,i){s&&i&&(n[(0,VM.camelCase)(s,t)]=i)}),n}Zp.default=Zp;var qM=Zp;const KM=dd(qM),AC=RC("end"),ux=RC("start");function RC(e){return t;function t(n){const s=n&&n.position&&n.position[e]||{};if(typeof s.line=="number"&&s.line>0&&typeof s.column=="number"&&s.column>0)return{line:s.line,column:s.column,offset:typeof s.offset=="number"&&s.offset>-1?s.offset:void 0}}}function GM(e){const t=ux(e),n=AC(e);if(t&&n)return{start:t,end:n}}function rl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qv(e.position):"start"in e||"end"in e?qv(e):"line"in e||"column"in e?Qp(e):""}function Qp(e){return Kv(e&&e.line)+":"+Kv(e&&e.column)}function qv(e){return Qp(e&&e.start)+"-"+Qp(e&&e.end)}function Kv(e){return e&&typeof e=="number"?e:1}class Yt extends Error{constructor(t,n,s){super(),typeof n=="string"&&(s=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof s=="string"){const c=s.indexOf(":");c===-1?a.ruleId=s:(a.source=s.slice(0,c),a.ruleId=s.slice(c+1))}if(!a.place&&a.ancestors&&a.ancestors){const c=a.ancestors[a.ancestors.length-1];c&&(a.place=c.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=rl(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Yt.prototype.file="";Yt.prototype.name="";Yt.prototype.reason="";Yt.prototype.message="";Yt.prototype.stack="";Yt.prototype.column=void 0;Yt.prototype.line=void 0;Yt.prototype.ancestors=void 0;Yt.prototype.cause=void 0;Yt.prototype.fatal=void 0;Yt.prototype.place=void 0;Yt.prototype.ruleId=void 0;Yt.prototype.source=void 0;const dx={}.hasOwnProperty,YM=new Map,ZM=/[A-Z]/g,QM=new Set(["table","tbody","thead","tfoot","tr"]),XM=new Set(["td","th"]),IC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function JM(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let s;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");s=oD(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 2,201 bytes, line 502
502if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");s=aD(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?lx:yM,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=LC(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function LC(e,t,n){if(t.type==="element")return eD(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return tD(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return rD(e,t,n);if(t.type==="mdxjsEsm")return nD(e,t);if(t.type==="root")return sD(e,t,n);if(t.type==="text")return iD(e,t)}function eD(e,t,n){const s=e.schema;let i=s;t.tagName.toLowerCase()==="svg"&&s.space==="html"&&(i=lx,e.schema=i),e.ancestors.push(t);const a=MC(e,t.tagName,!1),o=lD(e,t);let l=hx(e,t);return QM.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!lM(c):!0})),OC(e,o,a,t),mx(o,l),e.ancestors.pop(),e.schema=s,e.create(t,a,o,n)}function tD(e,t){if(t.data&&t.data.estree&&e.evaluater){const s=t.data.estree.body[0];return s.type,e.evaluater.evaluateExpression(s.expression)}Pl(e,t.position)}function nD(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Pl(e,t.position)}function rD(e,t,n){const s=e.schema;let i=s;t.name==="svg"&&s.space==="html"&&(i=lx,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:MC(e,t.name,!0),o=cD(e,t),l=hx(e,t);return OC(e,o,a,t),mx(o,l),e.ancestors.pop(),e.schema=s,e.create(t,a,o,n)}function sD(e,t,n){const s={};return mx(s,hx(e,t)),e.create(t,e.Fragment,s,n)}function iD(e,t){return t.value}function OC(e,t,n,s){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=s)}function mx(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function aD(e,t,n){return s;function s(i,a,o,l){const u=Array.isArray(o.children)?n:t;
vendor: 4,101 bytes, line 502
502return l?u(a,o,l):u(a,o)}}function oD(e,t){return n;function n(s,i,a,o){const l=Array.isArray(a.children),c=ux(s);return t(i,a,o,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function lD(e,t){const n={};let s,i;for(i in t.properties)if(i!=="children"&&dx.call(t.properties,i)){const a=uD(e,i,t.properties[i]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&XM.has(t.tagName)?s=l:n[o]=l}}if(s){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=s}return n}function cD(e,t){const n={};for(const s of t.attributes)if(s.type==="mdxJsxExpressionAttribute")if(s.data&&s.data.estree&&e.evaluater){const a=s.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else Pl(e,t.position);else{const i=s.name;let a;if(s.value&&typeof s.value=="object")if(s.value.data&&s.value.data.estree&&e.evaluater){const l=s.value.data.estree.body[0];l.type,a=e.evaluater.evaluateExpression(l.expression)}else Pl(e,t.position);else a=s.value===null?!0:s.value;n[i]=a}return n}function hx(e,t){const n=[];let s=-1;const i=e.passKeys?new Map:YM;for(;++s<t.children.length;){const a=t.children[s];let o;if(e.passKeys){const c=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(c){const u=i.get(c)||0;o=c+"-"+u,i.set(c,u+1)}}const l=LC(e,a,o);l!==void 0&&n.push(l)}return n}function uD(e,t,n){const s=fM(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=s.commaSeparated?rM(n):vM(n)),s.property==="style"){let i=typeof n=="object"?n:dD(e,String(n));return e.stylePropertyNameCase==="css"&&(i=mD(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&s.space?mM[s.property]||s.property:s.attribute,n]}}function dD(e,t){try{return KM(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const s=n,i=new Yt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=IC+"#cannot-parse-style-attribute",i}}function MC(e,t,n){let s;if(!n)s={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const l=Dv(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}s=o}else s=Dv(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(s.type==="Literal"){const i=s.value;return dx.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(s);Pl(e)}function Pl(e,t){const n=new Yt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=IC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function mD(e){const t={};let n;for(n in e)dx.call(e,n)&&(t[hD(n)]=e[n]);return t}function hD(e){let t=e.replace(ZM,pD);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function pD(e){return"-"+e.toLowerCase()}const th={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},fD={};function px(e,t){const n=fD,s=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return DC(e,s,i)}function DC(e,t,n){if(gD(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Gv(e.children,t,n)}return Array.isArray(e)?Gv(e,t,n):""}function Gv(e,t,n){const s=[];let i=-1;for(;++i<e.length;)s[i]=DC(e[i],t,n);return s.join("")}function gD(e){return!!(e&&typeof e=="object")}const Yv=document.createElement("i");function fx(e){const t="&"+e+";";Yv.innerHTML=t;const n=Yv.textContent;
vendor: 11,888 bytes, line 502
502return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Cn(e,t,n,s){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,s.length<1e4)o=Array.from(s),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<s.length;)o=s.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Dn(e,t){return e.length>0?(Cn(e,e.length,0,t),e):t}const Zv={}.hasOwnProperty;function FC(e){const t={};let n=-1;for(;++n<e.length;)xD(t,e[n]);return t}function xD(e,t){let n;for(n in t){const i=(Zv.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){Zv.call(i,o)||(i[o]=[]);const l=a[o];yD(i[o],Array.isArray(l)?l:l?[l]:[])}}}function yD(e,t){let n=-1;const s=[];for(;++n<t.length;)(t[n].add==="after"?e:s).push(t[n]);Cn(e,0,0,s)}function zC(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ur(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const nn=si(/[A-Za-z]/),qt=si(/[\dA-Za-z]/),vD=si(/[#-'*+\--9=?A-Z^-~]/);function Qu(e){return e!==null&&(e<32||e===127)}const Xp=si(/\d/),wD=si(/[\dA-Fa-f]/),bD=si(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function tt(e){return e!==null&&(e<0||e===32)}function Oe(e){return e===-2||e===-1||e===32}const nm=si(new RegExp("\\p{P}|\\p{S}","u")),Fi=si(/\s/);function si(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function bo(e){const t=[];let n=-1,s=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&qt(e.charCodeAt(n+1))&&qt(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const l=e.charCodeAt(n+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(s,n),encodeURIComponent(o)),s=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(s)}function $e(e,t,n,s){const i=s?s-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(c){return Oe(c)?(e.enter(n),l(c)):t(c)}function l(c){return Oe(c)&&a++<i?(e.consume(c),l):(e.exit(n),t(c))}}const jD={tokenize:ND};function ND(e){const t=e.attempt(this.parser.constructs.contentInitial,s,i);let n;return t;function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),$e(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),a(l)}function a(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return fe(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),o)}}const kD={tokenize:CD},Qv={tokenize:SD};function CD(e){const t=this,n=[];let s=0,i,a,o;return l;function l(w){if(s<n.length){const j=n[s];return t.containerState=j[1],e.attempt(j[0].continuation,c,u)(w)}return u(w)}function c(w){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();const j=t.events.length;let k=j,N;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){N=t.events[k][1].end;break}g(s);let T=j;for(;T<t.events.length;)t.events[T][1].end={...N},T++;return Cn(t.events,k+1,0,t.events.slice(j)),t.events.length=T,u(w)}return l(w)}function u(w){if(s===n.length){if(!i)return h(w);if(i.currentConstruct&&i.currentConstruct.concrete)return v(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Qv,d,m)(w)}function d(w){return i&&x(),g(s),h(w)}function m(w){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,v(w)}function h(w){return t.containerState={},e.attempt(Qv,p,v)(w)}function p(w){return s++,n.push([t.currentConstruct,t.containerState]),h(w)}function v(w){if(w===null){i&&x(),g(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),f(w)}function f(w){if(w===null){b(e.exit("chunkFlow"),!0),g(0),e.consume(w);return}return fe(w)?(e.consume(w),b(e.exit("chunkFlow")),s=0,t.interrupt=void 0,l):(e.consume(w),f)}function b(w,j){const k=t.sliceStream(w);if(j&&k.push(null),w.previous=a,a&&(a.next=w),a=w,i.defineSkip(w.start),i.write(k),t.parser.lazy[w.start.line]){let N=i.events.length;for(;N--;)if(i.events[N][1].start.offset<o&&(!i.events[N][1].end||i.events[N][1].end.offset>o))return;const T=t.events.length;let R=T,O,S;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(O){S=t.events[R][1].end;break}O=!0}for(g(s),N=T;N<t.events.length;)t.events[N][1].end={...S},N++;Cn(t.events,R+1,0,t.events.slice(T)),t.events.length=N}}function g(w){let j=n.length;for(;j-- >w;){const k=n[j];t.containerState=k[1],k[0].exit.call(t,e)}n.length=w}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function SD(e,t,n){return $e(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function no(e){if(e===null||tt(e)||Fi(e))return 1;if(nm(e))return 2}function rm(e,t,n){const s=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!s.includes(a)&&(t=a(t,n),s.push(a))}return t}const Jp={name:"attention",resolveAll:ED,tokenize:TD};function ED(e,t){let n=-1,s,i,a,o,l,c,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(s=n;s--;)if(e[s][0]==="exit"&&e[s][1].type==="attentionSequence"&&e[s][1]._open&&t.sliceSerialize(e[s][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[s][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[s][1].end.offset-e[s][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[s][1].end.offset-e[s][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const m={...e[s][1].end},h={...e[n][1].start};Xv(m,-c),Xv(h,c),o={type:c>1?"strongSequence":"emphasisSequence",start:m,end:{...e[s][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},a={type:c>1?"strongText":"emphasisText",start:{...e[s][1].end},end:{...e[n][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[s][1].end={...o.start},e[n][1].start={...l.end},u=[],e[s][1].end.offset-e[s][1].start.offset&&(u=Dn(u,[["enter",e[s][1],t],["exit",e[s][1],t]])),u=Dn(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=Dn(u,rm(t.parser.constructs.insideSpan.null,e.slice(s+1,n),t)),u=Dn(u,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=Dn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Cn(e,s-1,n-s+3,u),n=s+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function TD(e,t){const n=this.parser.constructs.attentionMarkers.null,s=this.previous,i=no(s);let a;return o;function o(c){return a=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===a)return e.consume(c),l;const u=e.exit("attentionSequence"),d=no(c),m=!d||d===2&&i||n.includes(c),h=!i||i===2&&d||n.includes(s);return u._open=!!(a===42?m:m&&(i||!h)),u._close=!!(a===42?h:h&&(d||!m)),t(c)}}function Xv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const PD={name:"autolink",tokenize:_D};function _D(e,t,n){let s=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return nn(p)?(e.consume(p),o):p===64?n(p):u(p)}function o(p){return p===43||p===45||p===46||qt(p)?(s=1,l(p)):u(p)}function l(p){return p===58?(e.consume(p),s=0,c):(p===43||p===45||p===46||qt(p))&&s++<32?(e.consume(p),l):(s=0,u(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Qu(p)?n(p):(e.consume(p),c)}function u(p){return p===64?(e.consume(p),d):vD(p)?(e.consume(p),u):n(p)}function d(p){return qt(p)?m(p):n(p)}function m(p){return p===46?(e.consume(p),s=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||qt(p))&&s++<63){const v=p===45?h:m;return e.consume(p),v}return n(p)}}const oc={partial:!0,tokenize:AD};function AD(e,t,n){return s;function s(a){return Oe(a)?$e(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||fe(a)?t(a):n(a)}}const UC={continuation:{tokenize:ID},exit:LD,name:"blockQuote",tokenize:RD};function RD(e,t,n){const s=this;return i;function i(o){if(o===62){const l=s.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return Oe(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function ID(e,t,n){const s=this;return i;function i(o){return Oe(o)?$e(e,a,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(UC,t,n)(o)}}function LD(e){e.exit("blockQuote")}const WC={name:"characterEscape",tokenize:OD};function OD(e,t,n){return s;function s(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return bD(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const $C={name:"characterReference",tokenize:MD};function MD(e,t,n){const s=this;let i=0,a,o;return l;function l(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),c}function c(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,o=qt,d(m))}function u(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=wD,d):(e.enter("characterReferenceValue"),a=7,o=Xp,d(m))}function d(m){if(m===59&&i){const h=e.exit("characterReferenceValue");return o===qt&&!fx(s.sliceSerialize(h))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(m)&&i++<a?(e.consume(m),d):n(m)}}const Jv={partial:!0,tokenize:FD},ew={concrete:!0,name:"codeFenced",tokenize:DD};function DD(e,t,n){const s=this,i={partial:!0,tokenize:k};let a=0,o=0,l;return c;function c(N){return u(N)}function u(N){const T=s.events[s.events.length-1];return a=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,l=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(N)}function d(N){return N===l?(o++,e.consume(N),d):o<3?n(N):(e.exit("codeFencedFenceSequence"),Oe(N)?$e(e,m,"whitespace")(N):m(N))}function m(N){return N===null||fe(N)?(e.exit("codeFencedFence"),s.interrupt?t(N):e.check(Jv,f,j)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(N))}function h(N){return N===null||fe(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(N)):Oe(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$e(e,p,"whitespace")(N)):N===96&&N===l?n(N):(e.consume(N),h)}function p(N){return N===null||fe(N)?m(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(N))}function v(N){return N===null||fe(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(N)):N===96&&N===l?n(N):(e.consume(N),v)}function f(N){return e.attempt(i,j,b)(N)}function b(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),g}function g(N){return a>
vendor: 6,171 bytes, line 502
5020&&Oe(N)?$e(e,x,"linePrefix",a+1)(N):x(N)}function x(N){return N===null||fe(N)?e.check(Jv,f,j)(N):(e.enter("codeFlowValue"),w(N))}function w(N){return N===null||fe(N)?(e.exit("codeFlowValue"),x(N)):(e.consume(N),w)}function j(N){return e.exit("codeFenced"),t(N)}function k(N,T,R){let O=0;return S;function S(G){return N.enter("lineEnding"),N.consume(G),N.exit("lineEnding"),F}function F(G){return N.enter("codeFencedFence"),Oe(G)?$e(N,L,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):L(G)}function L(G){return G===l?(N.enter("codeFencedFenceSequence"),B(G)):R(G)}function B(G){return G===l?(O++,N.consume(G),B):O>=o?(N.exit("codeFencedFenceSequence"),Oe(G)?$e(N,z,"whitespace")(G):z(G)):R(G)}function z(G){return G===null||fe(G)?(N.exit("codeFencedFence"),T(G)):R(G)}}}function FD(e,t,n){const s=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return s.parser.lazy[s.now().line]?n(o):t(o)}}const nh={name:"codeIndented",tokenize:UD},zD={partial:!0,tokenize:WD};function UD(e,t,n){const s=this;return i;function i(u){return e.enter("codeIndented"),$e(e,a,"linePrefix",5)(u)}function a(u){const d=s.events[s.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?c(u):fe(u)?e.attempt(zD,o,c)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||fe(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),l)}function c(u){return e.exit("codeIndented"),t(u)}}function WD(e,t,n){const s=this;return i;function i(o){return s.parser.lazy[s.now().line]?n(o):fe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):$e(e,a,"linePrefix",5)(o)}function a(o){const l=s.events[s.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):fe(o)?i(o):n(o)}}const $D={name:"codeText",previous:HD,resolve:BD,tokenize:VD};function BD(e){let t=e.length-4,n=3,s,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(s=n;++s<t;)if(e[s][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(s=n-1,t++;++s<=t;)i===void 0?s!==t&&e[s][1].type!=="lineEnding"&&(i=s):(s===t||e[s][1].type==="lineEnding")&&(e[i][1].type="codeTextData",s!==i+2&&(e[i][1].end=e[s-1][1].end,e.splice(i+2,s-i-2),t-=s-i-2,s=i+2),i=void 0);return e}function HD(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function VD(e,t,n){let s=0,i,a;return o;function o(m){return e.enter("codeText"),e.enter("codeTextSequence"),l(m)}function l(m){return m===96?(e.consume(m),s++,l):(e.exit("codeTextSequence"),c(m))}function c(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),c):m===96?(a=e.enter("codeTextSequence"),i=0,d(m)):fe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(m))}function u(m){return m===null||m===32||m===96||fe(m)?(e.exit("codeTextData"),c(m)):(e.consume(m),u)}function d(m){return m===96?(e.consume(m),i++,d):i===s?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(a.type="codeTextData",u(m))}}class qD{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const s=n??Number.POSITIVE_INFINITY;return s<this.left.length?this.left.slice(t,s):t>this.left.length?this.right.slice(this.right.length-s+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-s+this.left.length).reverse())}splice(t,n,s){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return s&&Oo(this.left,s),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Oo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Oo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Oo(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Oo(this.left,n.reverse())}}}function Oo(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function BC(e){const t={};let n=-1,s,i,a,o,l,c,u;const d=new qD(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(s=d.get(n),n&&s[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=s[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type==="lineEndingBlank"&&(a+=2),a<c.length&&c[a][1].type==="content"))for(;++a<c.length&&c[a][1].type!=="content";)c[a][1].type==="chunkText"&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(s[0]==="enter")s[1].contentType&&(Object.assign(t,KD(d,n)),n=t[n],u=!0);else if(s[1]._container){for(a=n,i=void 0;a--;)if(o=d.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(s[1].end={...d.get(i)[1].start},l=d.slice(i,n),l.unshift(s),d.splice(i,n-i+1,l))}}return Cn(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function KD(e,t){const n=e.get(t)[1],s=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=s.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,c=[],u={};let d,m,h=-1,p=n,v=0,f=0;const b=[f];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(d=s.sliceStream(p),p.next||d.push(null),m&&o.defineSki
vendor: 22,231 bytes, line 502
502p(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),m=p,p=p.next}for(p=n;++h<l.length;)l[h][0]==="exit"&&l[h-1][0]==="enter"&&l[h][1].type===l[h-1][1].type&&l[h][1].start.line!==l[h][1].end.line&&(f=h+1,b.push(f),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):b.pop(),h=b.length;h--;){const g=l.slice(b[h],b[h+1]),x=a.pop();c.push([x,x+g.length-1]),e.splice(x,2,g)}for(c.reverse(),h=-1;++h<c.length;)u[v+c[h][0]]=v+c[h][1],v+=c[h][1]-c[h][0]-1;return u}const GD={resolve:ZD,tokenize:QD},YD={partial:!0,tokenize:XD};function ZD(e){return BC(e),e}function QD(e,t){let n;return s;function s(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?a(l):fe(l)?e.check(YD,o,a)(l):(e.consume(l),i)}function a(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function XD(e,t,n){const s=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$e(e,a,"linePrefix")}function a(o){if(o===null||fe(o))return n(o);const l=s.events[s.events.length-1];return!s.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(s.parser.constructs.flow,n,t)(o)}}function HC(e,t,n,s,i,a,o,l,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return m;function m(g){return g===60?(e.enter(s),e.enter(i),e.enter(a),e.consume(g),e.exit(a),h):g===null||g===32||g===41||Qu(g)?n(g):(e.enter(s),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),f(g))}function h(g){return g===62?(e.enter(a),e.consume(g),e.exit(a),e.exit(i),e.exit(s),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(l),h(g)):g===null||g===60||fe(g)?n(g):(e.consume(g),g===92?v:p)}function v(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function f(g){return!d&&(g===null||g===41||tt(g))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(s),t(g)):d<u&&g===40?(e.consume(g),d++,f):g===41?(e.consume(g),d--,f):g===null||g===32||g===40||Qu(g)?n(g):(e.consume(g),g===92?b:f)}function b(g){return g===40||g===41||g===92?(e.consume(g),f):f(g)}}function VC(e,t,n,s,i,a){const o=this;let l=0,c;return u;function u(p){return e.enter(s),e.enter(i),e.consume(p),e.exit(i),e.enter(a),d}function d(p){return l>999||p===null||p===91||p===93&&!c||p===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(s),t):fe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),m(p))}function m(p){return p===null||p===91||p===93||fe(p)||l++>999?(e.exit("chunkString"),d(p)):(e.consume(p),c||(c=!Oe(p)),p===92?h:m)}function h(p){return p===91||p===92||p===93?(e.consume(p),l++,m):m(p)}}function qC(e,t,n,s,i,a){let o;return l;function l(h){return h===34||h===39||h===40?(e.enter(s),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,c):n(h)}function c(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(s),t):(e.enter(a),u(h))}function u(h){return h===o?(e.exit(a),c(o)):h===null?n(h):fe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),$e(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===o||h===null||fe(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?m:d)}function m(h){return h===o||h===92?(e.consume(h),d):d(h)}}function sl(e,t){let n;return s;function s(i){return fe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,s):Oe(i)?$e(e,s,n?"linePrefix":"lineSuffix")(i):t(i)}}const JD={name:"definition",tokenize:tF},eF={partial:!0,tokenize:nF};function tF(e,t,n){const s=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return VC.call(s,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return i=ur(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):n(p)}function c(p){return tt(p)?sl(e,u)(p):u(p)}function u(p){return HC(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(eF,m,m)(p)}function m(p){return Oe(p)?$e(e,h,"whitespace")(p):h(p)}function h(p){return p===null||fe(p)?(e.exit("definition"),s.parser.defined.push(i),t(p)):n(p)}}function nF(e,t,n){return s;function s(l){return tt(l)?sl(e,i)(l):n(l)}function i(l){return qC(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return Oe(l)?$e(e,o,"whitespace")(l):o(l)}function o(l){return l===null||fe(l)?t(l):n(l)}}const rF={name:"hardBreakEscape",tokenize:sF};function sF(e,t,n){return s;function s(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return fe(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const iF={name:"headingAtx",resolve:aF,tokenize:oF};function aF(e,t){let n=e.length-2,s=3,i,a;return e[s][1].type==="whitespace"&&(s+=2),n-2>s&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(s===n-1||n-4>s&&e[n-2][1].type==="whitespace")&&(n-=s+1===n?2:4),n>s&&(i={type:"atxHeadingText",start:e[s][1].start,end:e[n][1].end},a={type:"chunkText",start:e[s][1].start,end:e[n][1].end,contentType:"text"},Cn(e,s,n-s+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function oF(e,t,n){let s=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&s++<6?(e.consume(d),o):d===null||tt(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||fe(d)?(e.exit("atxHeading"),t(d)):Oe(d)?$e(e,l,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),l(d))}function u(d){return d===null||d===35||tt(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),u)}}const lF=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tw=["pre","script","style","textarea"],cF={concrete:!0,name:"htmlFlow",resolveTo:mF,tokenize:hF},uF={partial:!0,tokenize:fF},dF={partial:!0,tokenize:pF};function mF(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function hF(e,t,n){const s=this;let i,a,o,l,c;return u;function u(E){return d(E)}function d(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),m}function m(E){return E===33?(e.consume(E),h):E===47?(e.consume(E),a=!0,f):E===63?(e.consume(E),i=3,s.interrupt?t:C):nn(E)?(e.consume(E),o=String.fromCharCode(E),b):n(E)}function h(E){return E===45?(e.consume(E),i=2,p):E===91?(e.consume(E),i=5,l=0,v):nn(E)?(e.consume(E),i=4,s.interrupt?t:C):n(E)}function p(E){return E===45?(e.consume(E),s.interrupt?t:C):n(E)}function v(E){const Be="CDATA[";return E===Be.charCodeAt(l++)?(e.consume(E),l===Be.length?s.interrupt?t:L:v):n(E)}function f(E){return nn(E)?(e.consume(E),o=String.fromCharCode(E),b):n(E)}function b(E){if(E===null||E===47||E===62||tt(E)){const Be=E===47,wt=o.toLowerCase();return!Be&&!a&&tw.includes(wt)?(i=1,s.interrupt?t(E):L(E)):lF.includes(o.toLowerCase())?(i=6,Be?(e.consume(E),g):s.interrupt?t(E):L(E)):(i=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(E):a?x(E):w(E))}return E===45||qt(E)?(e.consume(E),o+=String.fromCharCode(E),b):n(E)}function g(E){return E===62?(e.consume(E),s.interrupt?t:L):n(E)}function x(E){return Oe(E)?(e.consume(E),x):S(E)}function w(E){return E===47?(e.consume(E),S):E===58||E===95||nn(E)?(e.consume(E),j):Oe(E)?(e.consume(E),w):S(E)}function j(E){return E===45||E===46||E===58||E===95||qt(E)?(e.consume(E),j):k(E)}function k(E){return E===61?(e.consume(E),N):Oe(E)?(e.consume(E),k):w(E)}function N(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),c=E,T):Oe(E)?(e.consume(E),N):R(E)}function T(E){return E===c?(e.consume(E),c=null,O):E===null||fe(E)?n(E):(e.consume(E),T)}function R(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||tt(E)?k(E):(e.consume(E),R)}function O(E){return E===47||E===62||Oe(E)?w(E):n(E)}function S(E){return E===62?(e.consume(E),F):n(E)}function F(E){return E===null||fe(E)?L(E):Oe(E)?(e.consume(E),F):n(E)}function L(E){return E===45&&i===2?(e.consume(E),Z):E===60&&i===1?(e.consume(E),ee):E===62&&i===4?(e.consume(E),de):E===63&&i===3?(e.consume(E),C):E===93&&i===5?(e.consume(E),q):fe(E)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(uF,Ee,B)(E)):E===null||fe(E)?(e.exit("htmlFlowData"),B(E)):(e.consume(E),L)}function B(E){return e.check(dF,z,Ee)(E)}function z(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),G}function G(E){return E===null||fe(E)?B(E):(e.enter("htmlFlowData"),L(E))}function Z(E){return E===45?(e.consume(E),C):L(E)}function ee(E){return E===47?(e.consume(E),o="",D):L(E)}function D(E){if(E===62){const Be=o.toLowerCase();return tw.includes(Be)?(e.consume(E),de):L(E)}return nn(E)&&o.length<8?(e.consume(E),o+=String.fromCharCode(E),D):L(E)}function q(E){return E===93?(e.consume(E),C):L(E)}function C(E){return E===62?(e.consume(E),de):E===45&&i===2?(e.consume(E),C):L(E)}function de(E){return E===null||fe(E)?(e.exit("htmlFlowData"),Ee(E)):(e.consume(E),de)}function Ee(E){return e.exit("htmlFlow"),t(E)}}function pF(e,t,n){const s=this;return i;function i(o){return fe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return s.parser.lazy[s.now().line]?n(o):t(o)}}function fF(e,t,n){return s;function s(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(oc,t,n)}}const gF={name:"htmlText",tokenize:xF};function xF(e,t,n){const s=this;let i,a,o;return l;function l(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),c}function c(C){return C===33?(e.consume(C),u):C===47?(e.consume(C),k):C===63?(e.consume(C),w):nn(C)?(e.consume(C),R):n(C)}function u(C){return C===45?(e.consume(C),d):C===91?(e.consume(C),a=0,v):nn(C)?(e.consume(C),x):n(C)}function d(C){return C===45?(e.consume(C),p):n(C)}function m(C){return C===null?n(C):C===45?(e.consume(C),h):fe(C)?(o=m,ee(C)):(e.consume(C),m)}function h(C){return C===45?(e.consume(C),p):m(C)}function p(C){return C===62?Z(C):C===45?h(C):m(C)}function v(C){const de="CDATA[";return C===de.charCodeAt(a++)?(e.consume(C),a===de.length?f:v):n(C)}function f(C){return C===null?n(C):C===93?(e.consume(C),b):fe(C)?(o=f,ee(C)):(e.consume(C),f)}function b(C){return C===93?(e.consume(C),g):f(C)}function g(C){return C===62?Z(C):C===93?(e.consume(C),g):f(C)}function x(C){return C===null||C===62?Z(C):fe(C)?(o=x,ee(C)):(e.consume(C),x)}function w(C){return C===null?n(C):C===63?(e.consume(C),j):fe(C)?(o=w,ee(C)):(e.consume(C),w)}function j(C){return C===62?Z(C):w(C)}function k(C){return nn(C)?(e.consume(C),N):n(C)}function N(C){return C===45||qt(C)?(e.consume(C),N):T(C)}function T(C){return fe(C)?(o=T,ee(C)):Oe(C)?(e.consume(C),T):Z(C)}function R(C){return C===45||qt(C)?(e.consume(C),R):C===47||C===62||tt(C)?O(C):n(C)}function O(C){return C===47?(e.consume(C),Z):C===58||C===95||nn(C)?(e.consume(C),S):fe(C)?(o=O,ee(C)):Oe(C)?(e.consume(C),O):Z(C)}function S(C){return C===45||C===46||C===58||C===95||qt(C)?(e.consume(C),S):F(C)}function F(C){return C===61?(e.consume(C),L):fe(C)?(o=F,ee(C)):Oe(C)?(e.consume(C),F):O(C)}function L(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),i=C,B):fe(C)?(o=L,ee(C)):Oe(C)?(e.consume(C),L):(e.consume(C),z)}function B(C){return C===i?(e.consume(C),i=void 0,G):C===null?n(C):fe(C)?(o=B,ee(C)):(e.consume(C),B)}function z(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||tt(C)?O(C):(e.consume(C),z)}function G(C){return C===47||C===62||tt(C)?O(C):n(C)}function Z(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function ee(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),D}function D(C){return Oe(C)?$e(e,q,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):q(C)}function q(C){return e.enter("htmlTextData"),o(C)}}const gx={name:"labelEnd",resolveAll:bF,resolveTo:jF,tokenize:NF},yF={tokenize:kF},vF={tokenize:CF},wF={tokenize:SF};function bF(e){let t=-1;const n=[];for(;++t<e.length;){const s=e[t][1];if(n.push(e[t]),s.type==="labelImage"||s.type==="labelLink"||s.type==="labelEnd"){const i=s.type==="labelImage"?4:2;s.type="data",t+=i}}return e.length!==n.length&&Cn(e,0,e.length,n),e}function jF(e,t){let n=e.length,s=0,i,a,o,l;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){s=2;break}}else i.type==="labelEnd"&&(o=n);const c={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[a+s+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",c,t],["enter",u,t]],l=Dn(l,e.slice(a+1,a+s+3)),l=Dn(l,[["enter",d,t]]),l=Dn(l,rm(t.parser.constructs.insideSpan.null,e.slice(a+s+4,o-3),t)),l=Dn(l,[["exit",d,t],e[o-2],e[o-1],["exit",u,t]]),l=Dn(l,e.slice(o+1)),l=Dn(l,[["exit",c,t]]),Cn(e,a,e.length,l),e}function NF(e,t,n){const s=this;let i=s.events.length,a,o;for(;i--;)if((s.events[i][1].type==="labelImage"||s.events[i][1].type==="labelLink")&&!s.events[i][1]._balanced){a=s.events[i][1];break}return l;function l(h){return a?a._inactive?m(h):(o=s.parser.defined.includes(ur(s.sliceSerialize({start:a.end,end:s.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),c):n(h)}function c(h){return h===40?e.attempt(yF,d,o?d:m)(h):h===91?e.attempt(vF,d,o?u:m)(h):o?d(h):m(h)}function u(h){return e.attempt(wF,d,m)(h)}function d(h){return t(h)}function m(h){return a._balanced=!0,n(h)}}function kF(e,t,n){return s;function s(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),i}function i(m){return tt(m)?sl(e,a)(m):a(m)}function a(m){return m===41?d(m):HC(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function o(m){return tt(m)?sl(e,c)(m):d(m)}function l(m){return n(m)}function c(m){return m===34||m===39||m===40?qC(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):d(m)}function u(m){return tt(m)?sl(e,d)(m):d(m)}function d(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function CF(e,t,n){const s=this;return i;function i(l){return VC.call(s,e,a,o,"reference","referenceMarker","referenceString")(l)}function a(l){return s.parser.defined.includes(ur(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function SF(e,t,n){return s;function s(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const EF={name:"labelStartImage",resolveAll:gx.resolveAll,tokenize:TF};function TF(e,t,n){const s=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in s.parser.constructs?n(l):t(l)}}const PF={name:"labelStartLink",resolveAll:gx.resolveAll,tokenize:_F};function _F(e,t,n){const s=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in s.parser.constructs?n(o):t(o)}}const rh={name:"lineEnding",tokenize:AF};function AF(e,t){return n;function n(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),$e(e,t,"linePrefix")}}const cu={name:"thematicBreak",tokenize:RF};function RF(e,t,n){let s=0,i;return a;function a(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,l(u)}function l(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):s>=3&&(u===null||fe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function c(u){return u===i?(e.consume(u),s++,c):(e.exit("thematicBreakSequence"),Oe(u)?$e(e,l,"whitespace")(u):l(u))}}const ln={continuation:{tokenize:MF},exit:FF,name:"list",tokenize:OF},IF={partial:!0,tokenize:zF},LF={partial:!0,tokenize:DF};function OF(e,t,n){const s=this,i=s.events[s.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(p){const v=s.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!s.containerState.marker||p===s.containerState.marker:Xp(p)){if(s.containerState.type||(s.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(cu,n,u)(p):u(p);if(!s.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return n(p)}function c(p){return Xp(p)&&++o<10?(e.consume(p),c):(!s.interrupt||o<2)&&(s.containerState.marker?p===s.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||p,e.check(oc,s.interrupt?n:d,e.attempt(IF,h,m))}function d(p){return s.containerState.initialBlankLine=!0,a++,h(p)}function m(p){return Oe(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return s.containerState.size=a+s.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function MF(e,t,n){const s=this;return s.containerState._closeFlow=void 0,e.check(oc,i,a);function i(l){return s.containerState.furtherBlankLines=s.containerState.furtherBlankLines||s.containerState.initialBlankLine,$e(e,t,"listItemIndent",s.containerState.size+1)(l)}function a(l){return s.containerState.furtherBlankLines||!Oe(l)?(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,o(l)):(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,e.attempt(LF,t,o)(l))}function o(l){return s.containerState._closeFlow=!0,s.interrupt=void 0,$e(e,e.attempt(ln,t,n),"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function DF(e,t,n){const s=this;return $e(e,i,"listItemIndent",s.containerState.size+1);function i(a){const o=s.events[s.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===s.containerState.size?t(a):n(a)}}function FF(e){e.exit(this.containerState.type)}function zF(e,t,n){const s=this;return $e(e,i,"listItemPrefixWhitespace",s.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=s.events[s.events.length-1];return!Oe(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const nw={name:"setextUnderline",resolveTo:UF,tokenize:WF};function UF(e,t){let n=e.length,s,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){s=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[s][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[s][1],t]),e[s][1].end={...e[a][1].end}):e[s][1]=o,e.push(["exit",o,t]),e}function WF(e,t,n){const s=this;let i;return a;function a(u){let d=s.events.length,m;for(;d--;)if(s.events[d][1].type!=="lineEnding"&&s.events[d][1].type!=="linePrefix"&&s.events[d][1].type!=="content"){m=s.events[d][1].type==="paragraph";break}return!s.parser.lazy[s.now().line]&&(s.interrupt||m)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===i?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),Oe(u)?$e(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||fe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const $F={tokenize:BF};function BF(e){const t=this,n=e.attempt(oc,s,e.attempt(this.parser.constructs.flowInitial,i,$e(e,e.attempt(this.parser.constructs.flow,i,e.attempt(GD,i)),"linePrefix")));return n;function s(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const HF={resolveAll:GC()},VF=KC("string"),qF=KC("text");function KC(e){return{resolveAll:GC(e==="text"?KF:void 0),tokenize:t};function t(n){const s=this,i=this.parser.constructs[e],a=n.attempt(i,o,l);return o;function o(d){return u(d)?a(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),a(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const m=i[d];let h=-1;if(m)for(;
vendor: 4,568 bytes, line 502
502++h<m.length;){const p=m[h];if(!p.previous||p.previous.call(s,s.previous))return!0}return!1}}}function GC(e){return t;function t(n,s){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,s):n}}function KF(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const s=e[n-1][1],i=t.sliceStream(s);let a=i.length,o=-1,l=0,c;for(;a--;){const u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(u===-2)c=!0,l++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const u={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:s.start._bufferIndex+o,_index:s.start._index+a,line:s.end.line,column:s.end.column-l,offset:s.end.offset-l},end:{...s.end}};s.end={...u.start},s.start.offset===s.end.offset?Object.assign(s,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const GF={42:ln,43:ln,45:ln,48:ln,49:ln,50:ln,51:ln,52:ln,53:ln,54:ln,55:ln,56:ln,57:ln,62:UC},YF={91:JD},ZF={[-2]:nh,[-1]:nh,32:nh},QF={35:iF,42:cu,45:[nw,cu],60:cF,61:nw,95:cu,96:ew,126:ew},XF={38:$C,92:WC},JF={[-5]:rh,[-4]:rh,[-3]:rh,33:EF,38:$C,42:Jp,60:[PD,gF],91:PF,92:[rF,WC],93:gx,95:Jp,96:$D},e8={null:[Jp,HF]},t8={null:[42,95]},n8={null:[]},r8=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:t8,contentInitial:YF,disable:n8,document:GF,flow:QF,flowInitial:ZF,insideSpan:e8,string:XF,text:JF},Symbol.toStringTag,{value:"Module"}));function s8(e,t,n){let s={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],l=[];const c={attempt:T(k),check:T(N),consume:x,enter:w,exit:j,interrupt:T(N,{interrupt:!0})},u={code:null,containerState:{},defineSkip:f,events:[],now:v,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:m};let d=t.tokenize.call(u,c);return t.resolveAll&&a.push(t),u;function m(F){return o=Dn(o,F),b(),o[o.length-1]!==null?[]:(R(t,0),u.events=rm(a,u.events,u),u.events)}function h(F,L){return a8(p(F),L)}function p(F){return i8(o,F)}function v(){const{_bufferIndex:F,_index:L,line:B,column:z,offset:G}=s;return{_bufferIndex:F,_index:L,line:B,column:z,offset:G}}function f(F){i[F.line]=F.column,S()}function b(){let F;for(;s._index<o.length;){const L=o[s._index];if(typeof L=="string")for(F=s._index,s._bufferIndex<0&&(s._bufferIndex=0);s._index===F&&s._bufferIndex<L.length;)g(L.charCodeAt(s._bufferIndex));else g(L)}}function g(F){d=d(F)}function x(F){fe(F)?(s.line++,s.column=1,s.offset+=F===-3?2:1,S()):F!==-1&&(s.column++,s.offset++),s._bufferIndex<0?s._index++:(s._bufferIndex++,s._bufferIndex===o[s._index].length&&(s._bufferIndex=-1,s._index++)),u.previous=F}function w(F,L){const B=L||{};return B.type=F,B.start=v(),u.events.push(["enter",B,u]),l.push(B),B}function j(F){const L=l.pop();return L.end=v(),u.events.push(["exit",L,u]),L}function k(F,L){R(F,L.from)}function N(F,L){L.restore()}function T(F,L){return B;function B(z,G,Z){let ee,D,q,C;return Array.isArray(z)?Ee(z):"tokenize"in z?Ee([z]):de(z);function de(ze){return me;function me(De){const et=De!==null&&ze[De],Fe=De!==null&&ze.null,Le=[...Array.isArray(et)?et:et?[et]:[],...Array.isArray(Fe)?Fe:Fe?[Fe]:[]];return Ee(Le)(De)}}function Ee(ze){return ee=ze,D=0,ze.length===0?Z:E(ze[D])}function E(ze){return me;function me(De){return C=O(),q=ze,ze.partial||(u.currentConstruct=ze),ze.name&&u.parser.constructs.disable.null.includes(ze.name)?wt():ze.tokenize.call(L?Object.assign(Object.create(u),L):u,c,Be,wt)(De)}}function Be(ze){return F(q,C),G}function wt(ze){return C.restore(),++D<ee.length?E(ee[D]):Z}}}function R(F,L){F.resolveAll&&!a.includes(F)&&a.push(F),F.resolve&&Cn(u.events,L,u.events.length-L,F.resolve(u.events.slice(L),u)),F.resolveTo&&(u.events=F.resolveTo(u.events,u))}function O(){const F=v(),L=u.previous,B=u.currentConstruct,z=u.events.length,G=Array.from(l);return{from:z,restore:Z};function Z(){s=F,u.previous=L,u.currentConstruct=B,u.events.length=z,l=G,S()}}function S(){s.line in i&&s.column<2&&(s.column=i[s.line],s.offset+=i[s.line]-1)}}function i8(e,t){const n=t.start._index,s=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(s,a)];else{if(o=e.slice(n,i),s>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(s):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function a8(e,t){let n=-1;const s=[];let i;for(;++n<e.length;){const a=e[n];let o;
vendor: 11,722 bytes, lines 502-504
502if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
503`;break}case-3:{o=`\r
504`;break}case-2:{o=t?" ":"	";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,s.push(o)}return s.join("")}function o8(e){const s={constructs:FC([r8,...(e||{}).extensions||[]]),content:i(jD),defined:[],document:i(kD),flow:i($F),lazy:{},string:i(VF),text:i(qF)};return s;function i(a){return o;function o(l){return s8(s,a,l)}}}function l8(e){for(;!BC(e););return e}const rw=/[\0\t\n\r]/g;function c8(){let e=1,t="",n=!0,s;return i;function i(a,o,l){const c=[];let u,d,m,h,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),m=0,t="",n&&(a.charCodeAt(0)===65279&&m++,n=void 0);m<a.length;){if(rw.lastIndex=m,u=rw.exec(a),h=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(h),!u){t=a.slice(m);break}if(p===10&&m===h&&s)c.push(-3),s=void 0;else switch(s&&(c.push(-5),s=void 0),m<h&&(c.push(a.slice(m,h)),e+=h-m),p){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:s=!0,e=1}m=h+1}return l&&(s&&c.push(-5),t&&c.push(t),c.push(null)),c}}const u8=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function d8(e){return e.replace(u8,m8)}function m8(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return zC(n.slice(a?2:1),a?16:10)}return fx(n)||e}const YC={}.hasOwnProperty;function h8(e,t,n){return typeof t!="string"&&(n=t,t=void 0),p8(n)(l8(o8(n).document().write(c8()(e,t,!0))))}function p8(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Ur),autolinkProtocol:O,autolinkEmail:O,atxHeading:a(yr),blockQuote:a(Fe),characterEscape:O,characterReference:O,codeFenced:a(Le),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Le,o),codeText:a(He,o),codeTextData:O,data:O,codeFlowValue:O,definition:a(It),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Zt),hardBreakEscape:a(Yn),hardBreakTrailing:a(Yn),htmlFlow:a(Zn,o),htmlFlowData:O,htmlText:a(Zn,o),htmlTextData:O,image:a(jo),label:o,link:a(Ur),listItem:a(dc),listItemValue:h,listOrdered:a(cm,m),listUnordered:a(cm),paragraph:a(P),reference:E,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(yr),strong:a(M),thematicBreak:a(te)},exit:{atxHeading:c(),atxHeadingSequence:k,autolink:c(),autolinkEmail:et,autolinkProtocol:De,blockQuote:c(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:wt,characterReferenceMarkerNumeric:wt,characterReferenceValue:ze,characterReference:me,codeFenced:c(b),codeFencedFence:f,codeFencedFenceInfo:p,codeFencedFenceMeta:v,codeFlowValue:S,codeIndented:c(g),codeText:c(G),codeTextData:S,data:S,definition:c(),definitionDestinationString:j,definitionLabelString:x,definitionTitleString:w,emphasis:c(),hardBreakEscape:c(L),hardBreakTrailing:c(L),htmlFlow:c(B),htmlFlowData:S,htmlText:c(z),htmlTextData:S,image:c(ee),label:q,labelText:D,lineEnding:F,link:c(Z),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Be,resourceDestinationString:C,resourceTitleString:de,resource:Ee,setextHeading:c(R),setextHeadingLineSequence:T,setextHeadingText:N,strong:c(),thematicBreak:c()}};ZC(t,(e||{}).mdastExtensions||[]);const n={};return s;function s(A){let I={type:"root",children:[]};const H={stack:[I],tokenStack:[],config:t,enter:l,exit:u,buffer:o,resume:d,data:n},se=[];let we=-1;for(;++we<A.length;)if(A[we][1].type==="listOrdered"||A[we][1].type==="listUnordered")if(A[we][0]==="enter")se.push(we);else{const Xe=se.pop();we=i(A,Xe,we)}for(we=-1;++we<A.length;){const Xe=t[A[we][0]];YC.call(Xe,A[we][1].type)&&Xe[A[we][1].type].call(Object.assign({sliceSerialize:A[we][2].sliceSerialize},H),A[we][1])}if(H.tokenStack.length>0){const Xe=H.tokenStack[H.tokenStack.length-1];(Xe[1]||sw).call(H,void 0,Xe[0])}for(I.position={start:gs(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:gs(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},we=-1;++we<t.transforms.length;)I=t.transforms[we](I)||I;return I}function i(A,I,H){let se=I-1,we=-1,Xe=!1,Wr,xn,$r,ii;for(;++se<=H;){const Ft=A[se];switch(Ft[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ft[0]==="enter"?we++:we--,ii=void 0;break}case"lineEndingBlank":{Ft[0]==="enter"&&(Wr&&!ii&&!we&&!$r&&($r=se),ii=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ii=void 0}if(!we&&Ft[0]==="enter"&&Ft[1].type==="listItemPrefix"||we===-1&&Ft[0]==="exit"&&(Ft[1].type==="listUnordered"||Ft[1].type==="listOrdered")){if(Wr){let ms=se;for(xn=void 0;ms--;){const Rn=A[ms];if(Rn[1].type==="lineEnding"||Rn[1].type==="lineEndingBlank"){if(Rn[0]==="exit")continue;xn&&(A[xn][1].type="lineEndingBlank",Xe=!0),Rn[1].type="lineEnding",xn=ms}else if(!(Rn[1].type==="linePrefix"||Rn[1].type==="blockQuotePrefix"||Rn[1].type==="blockQuotePrefixWhitespace"||Rn[1].type==="blockQuoteMarker"||Rn[1].type==="listItemIndent"))break}$r&&(!xn||$r<xn)&&(Wr._spread=!0),Wr.end=Object.assign({},xn?A[xn][1].start:Ft[1].end),A.splice(xn||se,0,["exit",Wr,Ft[2]]),se++,H++}if(Ft[1].type==="listItemPrefix"){const ms={type:"listItem",_spread:!1,start:Object.assign({},Ft[1].start),end:void 0};Wr=ms,A.splice(se,0,["enter",ms,Ft[2]]),se++,H++,$r=void 0,ii=!0}}}return A[I][1]._spread=Xe,H}function a(A,I){return H;function H(se){l.call(this,A(se),se),I&&I.call(this,se)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(A,I,H){this.stack[this.stack.length-1].children.push(A),this.stack.push(A),this.tokenStack.push([I,H||void 0]),A.position={start:gs(I.start),end:void 0}}function c(A){return I;function I(H){A&&A.call(this,H),u.call(this,H)}}function u(A,I){const H=this.stack.pop(),se=this.tokenStack.pop();if(se)se[0].type!==A.type&&(I?I.call(this,A,se[0]):(se[1]||sw).call(this,A,se[0]));else throw new Error("Cannot close `"+A.type+"` ("+rl({start:A.start,end:A.end})+"): it’s not open");H.position.end=gs(A.end)}function d(){return px(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function h(A){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(A),10),this.data.expectingFirstListItemValue=void 0}}function p(){const A=this.resume(),I=this.stack[this.stack.length-1];I.lang=A}function v(){const A=this.resume(),I=this.stack[this.stack.length-1];I.meta=A}function f(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const A=this.resume(),I=this.stack[this.stack.length-1];I.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const A=this.resume(),I=this.stack[this.stack.length-1];I.value=A.replace(/(\r?\n|\r)$/g,"")}function x(A){const I=this.resume(),H=this.stack[this.stack.length-1];H.label=I,H.identifier=ur(this.sliceSerialize(A)).toLowerCase()}function w(){const A=this.resume(),I=this.stack[this.stack.length-1];I.title=A}function j(){const A=this.resume(),I=this.stack[this.stack.length-1];I.url=A}function k(A){const I=this.stack[this.stack.length-1];if(!I.depth){const H=this.sliceSerialize(A).length;I.depth=H}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function T(A){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(A).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function O(A){const H=this.stack[this.stack.length-1].children;let se=H[H.length-1];(!se||se.type!=="text")&&(se=U(),se.position={start:gs(A.start),end:void 0},H.push(se)),this.stack.push(se)}function S(A){const I=this.stack.pop();I.value+=this.sliceSerialize(A),I.position.end=gs(A.end)}function F(A){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const H=I.children[I.children.length-1];H.position.end=gs(A.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(O.call(this,A),S.call(this,A))}function L(){this.data.atHardBreak=!0}function B(){const A=this.resume(),I=this.stack[this.stack.length-1];I.value=A}function z(){const A=this.resume(),I=this.stack[this.stack.length-1];I.value=A}function G(){const A=this.resume(),I=this.stack[this.stack.length-1];I.value=A}function Z(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=I,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function ee(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=I,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function D(A){const I=this.sliceSerialize(A),H=this.stack[this.stack.length-2];H.label=d8(I),H.identifier=ur(I).toLowerCase()}function q(){const A=this.stack[this.stack.length-1],I=this.resume(),H=this.stack[this.stack.length-1];if(this.data.inReference=!0,H.type==="link"){const se=A.children;H.children=se}else H.alt=I}function C(){const A=this.resume(),I=this.stack[this.stack.length-1];I.url=A}function de(){const A=this.resume(),I=this.stack[this.stack.length-1];I.title=A}function Ee(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function Be(A){const I=this.resume(),H=this.stack[this.stack.length-1];H.label=I,H.identifier=ur(this.sliceSerialize(A)).toLowerCase(),this.data.referenceType="full"}function wt(A){this.data.characterReferenceType=A.type}function ze(A){const I=this.sliceSerialize(A),H=this.data.characterReferenceType;let se;H?(se=zC(I,H==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):se=fx(I);const we=this.stack[this.stack.length-1];we.value+=se}function me(A){const I=this.stack.pop();I.position.end=gs(A.end)}function De(A){S.call(this,A);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(A)}function et(A){S.call(this,A);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(A)}function Fe(){return{type:"blockquote",children:[]}}function Le(){return{type:"code",lang:null,meta:null,value:""}}function He(){return{type:"inlineCode",value:""}}function It(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Zt(){return{type:"emphasis",children:[]}}function yr(){return{type:"heading",depth:0,children:[]}}function Yn(){return{type:"break"}}function Zn(){return{type:"html",value:""}}function jo(){return{type:"image",title:null,url:"",alt:null}}function Ur(){return{type:"link",title:null,url:"",children:[]}}function cm(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function dc(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function P(){return{type:"paragraph",children:[]}}function M(){return{type:"strong",children:[]}}function U(){return{type:"text",value:""}}function te(){return{type:"thematicBreak"}}}function gs(e){return{line:e.line,column:e.column,offset:e.offset}}function ZC(e,t){let n=-1;for(;++n<t.length;){const s=t[n];Array.isArray(s)?ZC(e,s):f8(e,s)}}function f8(e,t){let n;for(n in t)if(YC.call(t,n))switch(n){case"canContainEols":{const s=t[n];s&&e[n].push(...s);break}case"transforms":{const s=t[n];s&&e[n].push(...s);break}case"enter":case"exit":{const s=t[n];s&&Object.assign(e[n],s);break}}}function sw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+rl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+rl({start:t.start,end:t.end}
vendor: 9,340 bytes, lines 504-508
504)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+rl({start:t.start,end:t.end})+") is still open")}function g8(e){const t=this;t.parser=n;function n(s){return h8(s,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function x8(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function y8(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
505`}]}function v8(e,t){const n=t.value?t.value+`
506`:"",s={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(s.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:s,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function w8(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function b8(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function j8(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",s=String(t.identifier).toUpperCase(),i=bo(s.toLowerCase()),a=e.footnoteOrder.indexOf(s);let o,l=e.footnoteCounts.get(s);l===void 0?(l=0,e.footnoteOrder.push(s),o=e.footnoteOrder.length):o=a+1,l+=1,e.footnoteCounts.set(s,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)}function N8(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function k8(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function QC(e,t){const n=t.referenceType;let s="]";if(n==="collapsed"?s+="[]":n==="full"&&(s+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+s}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=s:i.push({type:"text",value:s}),i}function C8(e,t){const n=String(t.identifier).toUpperCase(),s=e.definitionById.get(n);if(!s)return QC(e,t);const i={src:bo(s.url||""),alt:t.alt};s.title!==null&&s.title!==void 0&&(i.title=s.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function S8(e,t){const n={src:bo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const s={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,s),e.applyData(t,s)}function E8(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const s={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,s),e.applyData(t,s)}function T8(e,t){const n=String(t.identifier).toUpperCase(),s=e.definitionById.get(n);if(!s)return QC(e,t);const i={href:bo(s.url||"")};s.title!==null&&s.title!==void 0&&(i.title=s.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function P8(e,t){const n={href:bo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const s={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function _8(e,t,n){const s=e.all(t),i=n?A8(n):XC(t),a={},o=[];if(typeof t.checked=="boolean"){const d=s[0];let m;d&&d.type==="element"&&d.tagName==="p"?m=d:(m={type:"element",tagName:"p",properties:{},children:[]},s.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<s.length;){const d=s[l];(i||l!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
507`}),d.type==="element"&&d.tagName==="p"&&!i?o.push(...d.children):o.push(d)}const c=s[s.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
508`});const u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)}function A8(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let s=-1;for(;!t&&++s<n.length;)t=XC(n[s])}return t}function XC(e){const t=e.spread;return t??e.children.length>1}function R8(e,t){const n={},s=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<s.length;){const o=s[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(s,!0)};return e.patch(t,a),e.applyData(t,a)}function I8(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function L8(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function O8(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function M8(e,t){const n=e.all(t),s=n.shift(),i=[];if(s){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([s],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=ux(t.children[1]),c=AC(t.children[t.children.length-1]);l&&c&&(o.position={start:l,end:c}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function D8(e,t,n){const s=n?n.children:void 0,a=(s?s.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let c=-1;const u=[];for(;++c<l;){const m=t.children[c],h={},p=o?o[c]:void 0;p&&(h.align=p);let v={type:"element",tagName:a,properties:h,children:[]};m&&(v.children=e.all(m),e.patch(m,v),v=e.applyData(m,v)),u.push(v)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function F8(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const iw=9,aw=32;function z8(e){const t=String(e),n=/\r?\n|\r/g;let s=n.exec(t),i=0;const a=[];for(;s;)a.push(ow(t.slice(i,s.index),i>0,!0),s[0]),i=s.index+s[0].length,s=n.exec(t);return a.push(ow(t.slice(i),i>0,!1)),a.join("")}function ow(e,t,n){let s=0,i=e.length;if(t){let a=e.codePointAt(s);for(;a===iw||a===aw;)s++,a=e.codePointAt(s)}if(n){let a=e.codePointAt(i-1);for(;a===iw||a===aw;)i--,a=e.codePointAt(i-1)}return i>s?e.slice(s,i):""}function U8(e,t){const n={type:"text",value:z8(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function W8(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const $8={blockquote:x8,break:y8,code:v8,delete:w8,emphasis:b8,footnoteReference:j8,heading:N8,html:k8,imageReference:C8,image:S8,inlineCode:E8,linkReference:T8,link:P8,listItem:_8,list:R8,paragraph:I8,root:L8,strong:O8,table:M8,tableCell:F8,tableRow:D8,text:U8,thematicBreak:W8,toml:Fc,yaml:Fc,definition:Fc,footnoteDefinition:Fc};function Fc(){}const JC=-1,sm=0,il=1,Xu=2,xx=3,yx=4,vx=5,wx=6,eS=7,tS=8,lw=typeof self=="object"?self:globalThis,B8=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),s=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case sm:case JC:return n(o,i);case il:{const l=n([],i);for(const c of o)l.push(s(c));return l}case Xu:{const l=n({},i);for(const[c,u]of o)l[s(c)]=s(u);return l}case xx:return n(new Date(o),i);case yx:{const{source:l,flags:c}=o;return n(new RegExp(l,c),i)}case vx:{const l=n(new Map,i);for(const[c,u]of o)l.set(s(c),s(u));return l}case wx:{const l=n(new Set,i);for(const c of o)l.add(s(c));return l}case eS:{const{name:l,message:c}=o;return n(new lw[l](c),i)}case tS:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return n(new DataView(l),o)}}return n(new lw[a](o),i)};return s},cw=e=>B8(new Map,e)(0),ta="",{toString:H8}={},{keys:V8}=Object,Mo=e=>{const t=typeof e;if(t!=="object"||!e)return[sm,t];const n=H8.call(e).slice(8,-1);switch(n){case"Array":return[il,ta];case"Object":return[Xu,ta];case"Date":return[xx,ta];case"RegExp":return[yx,ta];case"Map":return[vx,ta];case"Set":return[wx,ta];case"DataView":return[il,n]}return n.includes("Array")?[il,n]:n.includes("Error")?[eS,n]:[Xu,n]},zc=([e,t])=>e===sm&&(t==="function"||t==="symbol"),q8=(e,t,n,s)=>{const i=(o,l)=>{const c=s.push(o)-1;return n.set(l,c),c},a=o=>{if(n.has(o))return n.get(o);let[l,c]=Mo(o);switch(l){case sm:{let d=o;switch(c){case"bigint":l=tS,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return i([JC],o)}return i([l,d],o)}
vendor: 5,288 bytes, lines 508-510
508case il:{if(c){let h=o;return c==="DataView"?h=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(h=new Uint8Array(o)),i([c,[...h]],o)}const d=[],m=i([l,d],o);for(const h of o)d.push(a(h));return m}case Xu:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],m=i([l,d],o);for(const h of V8(o))(e||!zc(Mo(o[h])))&&d.push([a(h),a(o[h])]);return m}case xx:return i([l,o.toISOString()],o);case yx:{const{source:d,flags:m}=o;return i([l,{source:d,flags:m}],o)}case vx:{const d=[],m=i([l,d],o);for(const[h,p]of o)(e||!(zc(Mo(h))||zc(Mo(p))))&&d.push([a(h),a(p)]);return m}case wx:{const d=[],m=i([l,d],o);for(const h of o)(e||!zc(Mo(h)))&&d.push(a(h));return m}}const{message:u}=o;return i([l,{name:c,message:u}],o)};return a},uw=(e,{json:t,lossy:n}={})=>{const s=[];return q8(!(t||n),!!t,new Map,s)(e),s},Ju=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?cw(uw(e,t)):structuredClone(e):(e,t)=>cw(uw(e,t));function K8(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function G8(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Y8(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||K8,s=e.options.footnoteBackLabel||G8,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const d=e.all(u),m=String(u.identifier).toUpperCase(),h=bo(m.toLowerCase());let p=0;const v=[],f=e.footnoteCounts.get(m);for(;f!==void 0&&++p<=f;){v.length>0&&v.push({type:"text",value:" "});let x=typeof n=="string"?n:n(c,p);typeof x=="string"&&(x={type:"text",value:x}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof s=="string"?s:s(c,p),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const b=d[d.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const x=b.children[b.children.length-1];x&&x.type==="text"?x.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...v)}else d.push(...v);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(d,!0)};e.patch(u,g),l.push(g)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ju(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
509`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
510`}]}}const im=function(e){if(e==null)return J8;if(typeof e=="function")return am(e);if(typeof e=="object")return Array.isArray(e)?Z8(e):Q8(e);if(typeof e=="string")return X8(e);throw new Error("Expected function, string, or object as test")};function Z8(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=im(e[n]);return am(s);function s(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Q8(e){const t=e;return am(n);function n(s){const i=s;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function X8(e){return am(t);function t(n){return n&&n.type===e}}function am(e){return t;function t(n,s,i){return!!(e9(n)&&e.call(this,n,typeof s=="number"?s:void 0,i||void 0))}}function J8(){return!0}function e9(e){return e!==null&&typeof e=="object"&&"type"in e}const nS=[],t9=!0,ef=!1,n9="skip";function rS(e,t,n,s){let i;typeof t=="function"&&typeof n!="function"?(s=n,n=t):i=t;const a=im(i),o=s?-1:1;l(e,void 0,[])();function l(c,u,d){const m=c&&typeof c=="object"?c:{};if(typeof m.type=="string"){const p=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(c.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=nS,v,f,b;if((!t||a(c,u,d[d.length-1]||void 0))&&(p=r9(n(c,d)),p[0]===ef))return p;if("children"in c&&c.children){const g=c;if(g.children&&p[0]!==n9)for(f=(s?g.children.length:-1)+o,b=d.concat(g);f>-1&&f<g.children.length;){const x=g.children[f];if(v=l(x,f,b)(),v[0]===ef)return v;f=typeof v[1]=="number"?v[1]:f+o}}return p}}}function r9(e){return Array.isArray(e)?e:typeof e=="number"?[t9,e]:e==null?nS:[e]}function bx(e,t,n,s){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=s),rS(e,a,l,i);function l(c,u){const d=u[u.length-1],m=d?d.children.indexOf(c):void 0;return o(c,m,d)}}const tf={}.hasOwnProperty,s9={};function i9(e,t){const n=t||s9,s=new Map,i=new Map,a=new Map,o={...$8,...n.handlers},l={all:u,applyData:o9,definitionById:s,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:c,options:n,patch:a9,wrap:c9};return bx(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const m=d.type==="definition"?s:i,h=String(d.identifier).toUpperCase();m.has(h)||m.set(h,d)}}),l;function c(d,m){const h=d.type,p=l.handlers[h];if(tf.call(l.handlers,h)&&p)return p(l,d,m);if(l.options.passThrough&&l.options.passThrough.includes(h)){if("children"in d){const{children:f,...b}
vendor: 17,655 bytes, lines 510-514
510=d,g=Ju(b);return g.children=l.all(d),g}return Ju(d)}return(l.options.unknownHandler||l9)(l,d,m)}function u(d){const m=[];if("children"in d){const h=d.children;let p=-1;for(;++p<h.length;){const v=l.one(h[p],d);if(v){if(p&&h[p-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=dw(v.value)),!Array.isArray(v)&&v.type==="element")){const f=v.children[0];f&&f.type==="text"&&(f.value=dw(f.value))}Array.isArray(v)?m.push(...v):m.push(v)}}}return m}}function a9(e,t){e.position&&(t.position=GM(e))}function o9(e,t){let n=t;if(e&&e.data){const s=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof s=="string")if(n.type==="element")n.tagName=s;else{const o="children"in n?n.children:[n];n={type:"element",tagName:s,properties:{},children:o}}n.type==="element"&&a&&Object.assign(n.properties,Ju(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function l9(e,t){const n=t.data||{},s="value"in t&&!(tf.call(n,"hProperties")||tf.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function c9(e,t){const n=[];let s=-1;for(t&&n.push({type:"text",value:`
511`});++s<e.length;)s&&n.push({type:"text",value:`
512`}),n.push(e[s]);return t&&e.length>0&&n.push({type:"text",value:`
513`}),n}function dw(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function mw(e,t){const n=i9(e,t),s=n.one(e,void 0),i=Y8(n),a=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
514`},i),a}function u9(e,t){return e&&"run"in e?async function(n,s){const i=mw(n,{file:s,...t});await e.run(i,s)}:function(n,s){return mw(n,{file:s,...e||t})}}function hw(e){if(e)throw e}var uu=Object.prototype.hasOwnProperty,sS=Object.prototype.toString,pw=Object.defineProperty,fw=Object.getOwnPropertyDescriptor,gw=function(t){return typeof Array.isArray=="function"?Array.isArray(t):sS.call(t)==="[object Array]"},xw=function(t){if(!t||sS.call(t)!=="[object Object]")return!1;var n=uu.call(t,"constructor"),s=t.constructor&&t.constructor.prototype&&uu.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!s)return!1;var i;for(i in t);return typeof i>"u"||uu.call(t,i)},yw=function(t,n){pw&&n.name==="__proto__"?pw(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},vw=function(t,n){if(n==="__proto__")if(uu.call(t,n)){if(fw)return fw(t,n).value}else return;return t[n]},d9=function e(){var t,n,s,i,a,o,l=arguments[0],c=1,u=arguments.length,d=!1;for(typeof l=="boolean"&&(d=l,l=arguments[1]||{},c=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});c<u;++c)if(t=arguments[c],t!=null)for(n in t)s=vw(l,n),i=vw(t,n),l!==i&&(d&&i&&(xw(i)||(a=gw(i)))?(a?(a=!1,o=s&&gw(s)?s:[]):o=s&&xw(s)?s:{},yw(l,{name:n,newValue:e(d,o,i)})):typeof i<"u"&&yw(l,{name:n,newValue:i}));return l};const sh=dd(d9);function nf(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function m9(){const e=[],t={run:n,use:s};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(c,...u){const d=e[++a];let m=-1;if(c){o(c);return}for(;++m<i.length;)(u[m]===null||u[m]===void 0)&&(u[m]=i[m]);i=u,d?h9(d,l)(...u):o(null,...u)}}function s(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function h9(e,t){let n;return s;function s(...o){const l=e.length>o.length;let c;l&&o.push(i);try{c=e.apply(this,o)}catch(u){const d=u;if(l&&n)throw d;return i(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(a,i):c instanceof Error?i(c):a(c))}function i(o,...l){n||(n=!0,t(o,...l))}function a(o){i(null,o)}}const br={basename:p9,dirname:f9,extname:g9,join:x9,sep:"/"};function p9(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');lc(e);let n=0,s=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1);return s<0?"":e.slice(n,s)}if(t===e)return"";let o=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(s=i):(l=-1,s=o));return n===s?s=o:s<0&&(s=e.length),e.slice(n,s)}function f9(e){if(lc(e),e.length===0)return".";let t=-1,n=e.length,s;for(;--n;)if(e.codePointAt(n)===47){if(s){t=n;break}}else s||(s=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function g9(e){lc(e);let t=e.length,n=-1,s=0,i=-1,a=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){s=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===s+1?"":e.slice(i,n)}function x9(...e){let t=-1,n;for(;++t<e.length;)lc(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":y9(n)}function y9(e){lc(e);const t=e.codePointAt(0)===47;let n=v9(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function v9(e,t){let n="",s=0,i=-1,a=0,o=-1,l,c;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||s!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",s=0):(n=n.slice(0,c),s=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",s=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",s=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),s=o-i-1;i=o,a=0}else l===46&&a>-1?a++:a=-1}return n}function lc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const w9={cwd:b9};function b9(){return"/"}function rf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function j9(e){if(typeof e=="string")e=new URL(e);else if(!rf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return N9(e)}function N9(e){if(e.hostname!==""){const s=new TypeError('File URL host must be "localhost" or empty on darwin');throw s.code="ERR_INVALID_FILE_URL_HOST",s}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const s=t.codePointAt(n+2);if(s===70||s===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const ih=["history","path","basename","stem","extname","dirname"];class iS{constructor(t){let n;t?rf(t)?n={path:t}:typeof t=="string"||k9(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":w9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let s=-1;for(;++s<ih.length;){const a=ih[s];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)ih.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?br.basename(this.path):void 0}set basename(t){oh(t,"basename"),ah(t,"basename"),this.path=br.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?br.dirname(this.path):void 0}set dirname(t){ww(this.basename,"dirname"),this.path=br.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?br.extname(this.path):void 0}set extname(t){if(ah(t,"extname"),ww(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=br.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){rf(t)&&(t=j9(t)),oh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?br.basename(this.path,this.extname):void 0}set stem(t){oh(t,"stem"),ah(t,"stem"),this.path=br.join(this.dirname||"",t+(this.extname||""))}fail(t,n,s){const i=this.message(t,n,s);throw i.fatal=!0,i}info(t,n,s){const i=this.message(t,n,s);return i.fatal=void 0,i}message(t,n,s){const i=new Yt(t,n,s);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ah(e,t){if(e&&e.includes(br.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+br.sep+"`")}function oh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ww(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function k9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const C9=function(e){const s=this.constructor.prototype,i=s[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,s),a},S9={}.hasOwnProperty;class jx extends C9{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=m9()}copy(){const t=new jx;let n=-1;for(;++n<this.attachers.length;){const s=this.attachers[n];t.use(...s)}return t.data(sh(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(uh("data",this.frozen),this.namespace[t]=n,this):S9.call(this.namespace,t)&&this.namespace[t]||void 0:t?(uh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...s]=this.attachers[this.freezeIndex];if(s[0]===!1)continue;s[0]===!0&&(s[0]=void 0);const i=n.call(t,...s);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Uc(t),s=this.parser||this.Parser;return lh("parse",s),s(String(n),n)}process(t,n){const s=this;return this.freeze(),lh("process",this.parser||this.Parser),ch("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const l=Uc(t),c=s.parse(l);s.run(c,l,function(d,m,h){if(d||!m||!h)return u(d);const p=m,v=s.stringify(p,h);P9(v)?h.value=v:h.result=v,u(d,h)});function u(d,m){d||!m?o(d):a?a(m):n(void 0,m)}}}processSync(t){let n=!1,s;return this.freeze(),lh("processSync",this.parser||this.Parser),ch("processSync",this.compiler||this.Compiler),this.process(t,i),jw("processSync","process",n),s;function i(a,o){n=!0,hw(a),s=o}}run(t,n,s){bw(t),this.freeze();const i=this.transformers;return!s&&typeof n=="function"&&(s=n,n=void 0),s?a(void 0,s):new Promise(a);function a(o,l){const c=Uc(n);i.run(t,c,u);function u(d,m,h){const p=m||t;d?l(d):o?o(p):s(void 0,p,h)}}}runSync(t,n){let s=!1,i;return this.run(t,n,a),jw("runSync","run",s),i;function a(o,l){hw(o),i=l,s=!0}}stringify(t,n){this.freeze();const s=Uc(n),i=this.compiler||this.Compiler;return ch("stringify",i),bw(t),i(t,s)}use(t,...n){const s=this.attachers,i=this.namespace;if(uh("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...m]=u;c(d,m)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(i.settings=sh(!0,i.settings,u.settings))}function l(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const m=u[d];a(m)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,d){let m=-1,h=-1;for(;++m<s.length;)if(s[m][0]===u){h=m;break}if(h===-1)s.push([u,...d]);else if(d.length>0){let[p,...v]=d;const f=s[h][1];nf(f)&&nf(p)&&(p=sh(!0,f,p)),s[h]=[u,p,...v]}}}}const E9=new jx().freeze();function lh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ch(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function uh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function bw(e){if(!nf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function jw(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Uc(e){return T9(e)?e:new iS(e)}function T9(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function P9(e){return typeof e=="string"||_9(e)}function _9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const A9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Nw=[],kw={allowDangerousHtml:!0},R9=/^(https?|ircs?|mailto|xmpp)$/i,I9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function L9(e){const t=O9(e),n=M9(e);return D9(t.runSync(t.parse(n),n),e)}function O9(e){const t=e.rehypePlugins||Nw,n=e.remarkPlugins||Nw,s=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...kw}:kw;return E9().use(g8).use(n).use(u9,s).use(t)}function M9(e){const t=e.children||"",n=new iS;return typeof t=="string"&&(n.value=t),n}function D9(e,t){const n=t.allowedElements,s=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||F9;for(const d of I9)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+A9+d.id,void 0);return bx(e,u),JM(e,{Fragment:r.Fragment,components:i,ignoreInvalidStyle:!0,jsx:r.jsx,jsxs:r.jsxs,passKeys:!0,passNode:!0});function u(d,m,h){if(d.type==="raw"&&h&&typeof m=="number")return o?h.children.splice(m,1):h.children[m]={type:"text",value:d.value},m;if(d.type==="element"){let p;for(p in th)if(Object.hasOwn(th,p)&&Object.hasOwn(d.properties,p)){const v=d.properties[p],f=th[p];(f===null||f.includes(d.tagName))&&(d.properties[p]=c(String(v||""),p,d))}}if(d.type==="element"){let p=n?!n.includes(d.tagName):a?a.includes(d.tagName):!1;if(!p&&s&&typeof m=="number"&&(p=!s(d,m,h)),p&&h&&typeof m=="number")return l&&d.children?h.children.splice(m,1,...d.children):h.children.splice(m,1),m}}}function F9(e){const t=e.indexOf(":"),n=e.indexOf("?"),s=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||s!==-1&&t>s||R9.test(e.slice(0,t))?e:""}function Cw(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let s=0,i=n.indexOf(t);for(;i!==-1;)s++,i=n.indexOf(t,i+t.length);return s}function z9(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function U9(e,t,n){const i=im((n||{}).ignore||[]),a=W9(t);let o=-1;for(;++o<a.length;)rS(e,"text",l);function l(u,d){let m=-1,h;for(;++m<d.length;){const p=d[m],v=h?h.children:void 0;if(i(p,v?v.indexOf(p):void 0,h))return;h=p}if(h)return c(u,d)}function c(u,d){const m=d[d.length-1],h=a[o][0],p=a[o][1];let v=0;const b=m.children.indexOf(u);let g=!1,x=[];h.lastIndex=0;let w=h.exec(u.value);for(;w;){const j=w.index,k={index:w.index,input:w.input,stack:[...d,u]};let N=p(...w,k);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N===!1?h.lastIndex=j+1:(v!==j&&x.push({type:"text",value:u.value.slice(v,j)}),Array.isArray(N)?x.push(...N):N&&x.push(N),v=j+w[0].length,g=!0),!h.global)break;w=h.exec(u.value)}return g?(v<u.value.length&&x.push({type:"text",value:u.value.slice(v)}),m.children.splice(b,1,...x)):x=[u],b+x.length}}function W9(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let s=-1;for(;++s<n.length;){const i=n[s];t.push([$9(i[0]),B9(i[1])])}return t}function $9(e){return typeof e=="string"?new RegExp(z9(e),"g"):e}function B9(e){return typeof e=="function"?e:function(){return e}}const dh="phrasing",mh=["autolink","link","image","label"];
vendor: 7,186 bytes, lines 514-518
514function H9(){return{transforms:[Q9],enter:{literalAutolink:q9,literalAutolinkEmail:hh,literalAutolinkHttp:hh,literalAutolinkWww:hh},exit:{literalAutolink:Z9,literalAutolinkEmail:Y9,literalAutolinkHttp:K9,literalAutolinkWww:G9}}}function V9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:dh,notInConstruct:mh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:dh,notInConstruct:mh},{character:":",before:"[ps]",after:"\\/",inConstruct:dh,notInConstruct:mh}]}}function q9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function hh(e){this.config.enter.autolinkProtocol.call(this,e)}function K9(e){this.config.exit.autolinkProtocol.call(this,e)}function G9(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Y9(e){this.config.exit.autolinkEmail.call(this,e)}function Z9(e){this.exit(e)}function Q9(e){U9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,X9],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),J9]],{ignore:["link","linkReference"]})}function X9(e,t,n,s,i){let a="";if(!aS(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!ez(n)))return!1;const o=tz(n+s);if(!o[0])return!1;const l={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function J9(e,t,n,s){return!aS(s,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ez(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function tz(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],s=n.indexOf(")");const i=Cw(e,"(");let a=Cw(e,")");for(;s!==-1&&i>a;)e+=n.slice(0,s+1),n=n.slice(s+1),s=n.indexOf(")"),a++;return[e,n]}function aS(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Fi(n)||nm(n))&&(!t||n!==47)}oS.peek=uz;function nz(){this.buffer()}function rz(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function sz(){this.buffer()}function iz(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function az(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ur(this.sliceSerialize(e)).toLowerCase(),n.label=t}function oz(e){this.exit(e)}function lz(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ur(this.sliceSerialize(e)).toLowerCase(),n.label=t}function cz(e){this.exit(e)}function uz(){return"["}function oS(e,t,n,s){const i=n.createTracker(s);let a=i.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),l(),o(),a+=i.move("]"),a}function dz(){return{enter:{gfmFootnoteCallString:nz,gfmFootnoteCall:rz,gfmFootnoteDefinitionLabelString:sz,gfmFootnoteDefinition:iz},exit:{gfmFootnoteCallString:az,gfmFootnoteCall:oz,gfmFootnoteDefinitionLabelString:lz,gfmFootnoteDefinition:cz}}}function mz(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:oS},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(s,i,a,o){const l=a.createTracker(o);let c=l.move("[^");const u=a.enter("footnoteDefinition"),d=a.enter("label");return c+=l.move(a.safe(a.associationId(s),{before:c,after:"]"})),d(),c+=l.move("]:"),s.children&&s.children.length>0&&(l.shift(4),c+=l.move((t?`
515`:" ")+a.indentLines(a.containerFlow(s,l.current()),t?lS:hz))),u(),c}}function hz(e,t,n){return t===0?e:lS(e,t,n)}function lS(e,t,n){return(n?"":"    ")+e}const pz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];cS.peek=vz;function fz(){return{canContainEols:["delete"],enter:{strikethrough:xz},exit:{strikethrough:yz}}}function gz(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:pz}],handlers:{delete:cS}}}function xz(e){this.enter({type:"delete",children:[]},e)}function yz(e){this.exit(e)}function cS(e,t,n,s){const i=n.createTracker(s),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function vz(){return"~"}function wz(e){return e.length}function bz(e,t){const n=t||{},s=(n.align||[]).concat(),i=n.stringLength||wz,a=[],o=[],l=[],c=[];let u=0,d=-1;for(;++d<e.length;){const f=[],b=[];let g=-1;for(e[d].length>u&&(u=e[d].length);++g<e[d].length;){const x=jz(e[d][g]);if(n.alignDelimiters!==!1){const w=i(x);b[g]=w,(c[g]===void 0||w>c[g])&&(c[g]=w)}f.push(x)}o[d]=f,l[d]=b}let m=-1;if(typeof s=="object"&&"length"in s)for(;++m<u;)a[m]=Sw(s[m]);else{const f=Sw(s);for(;++m<u;)a[m]=f}m=-1;const h=[],p=[];for(;++m<u;){const f=a[m];let b="",g="";f===99?(b=":",g=":"):f===108?b=":":f===114&&(g=":");let x=n.alignDelimiters===!1?1:Math.max(1,c[m]-b.length-g.length);const w=b+"-".repeat(x)+g;n.alignDelimiters!==!1&&(x=b.length+x+g.length,x>c[m]&&(c[m]=x),p[m]=x),h[m]=w}o.splice(1,0,h),l.splice(1,0,p),d=-1;const v=[];for(;++d<o.length;){const f=o[d],b=l[d];m=-1;const g=[];for(;++m<u;){const x=f[m]||"";let w="",j="";if(n.alignDelimiters!==!1){const k=c[m]-(b[m]||0),N=a[m];N===114?w=" ".repeat(k):N===99?k%2?(w=" ".repeat(k/2+.5),j=" ".repeat(k/2-.5)):(w=" ".repeat(k/2),j=w):j=" ".repeat(k)}n.delimiterStart!==!1&&!m&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&x==="")&&(n.delimiterStart!==!1||m)&&g.push(" "),n.alignDelimiters!==!1&&g.push(w),g.push(x),n.alignDelimiters!==!1&&g.push(j),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||m!==u-1)&&g.push("|")}v.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return v.join(`
516`)}function jz(e){return e==null?"":String(e)}function Sw(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Nz(e,t,n,s){const i=n.enter("blockquote"),a=n.createTracker(s);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),kz);return i(),o}function kz(e,t,n){return">"+(n?"":" ")+e}function Cz(e,t){return Ew(e,t.inConstruct,!0)&&!Ew(e,t.notInConstruct,!1)}function Ew(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let s=-1;for(;++s<t.length;)if(e.includes(t[s]))return!0;return!1}function Tw(e,t,n,s){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
517`&&Cz(n.stack,n.unsafe[i]))return/[ \t]/.test(s.before)?"":" ";return`\\
518`}function Sz(e,t){const n=String(e);let s=n.indexOf(t),i=s,a=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;s!==-1;)s===i?++a>o&&(o=a):a=1,i=s+t.length,s=n.indexOf(t,i);return o}function Ez(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Tz(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Pz(e,t,n,s){const i=Tz(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";
vendor: 13,907 bytes, lines 518-529
518if(Ez(e,n)){const m=n.enter("codeIndented"),h=n.indentLines(a,_z);return m(),h}const l=n.createTracker(s),c=i.repeat(Math.max(Sz(a,i)+1,3)),u=n.enter("codeFenced");let d=l.move(c);if(e.lang){const m=n.enter(`codeFencedLang${o}`);d+=l.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...l.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${o}`);d+=l.move(" "),d+=l.move(n.safe(e.meta,{before:d,after:`
519`,encode:["`"],...l.current()})),m()}return d+=l.move(`
520`),a&&(d+=l.move(a+`
521`)),d+=l.move(c),u(),d}function _z(e,t,n){return(n?"":"    ")+e}function Nx(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Az(e,t,n,s){const i=Nx(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const c=n.createTracker(s);let u=c.move("[");return u+=c.move(n.safe(n.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":`
522`,...c.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=c.move(" "+i),u+=c.move(n.safe(e.title,{before:u,after:i,...c.current()})),u+=c.move(i),l()),o(),u}function Rz(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function _l(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ed(e,t,n){const s=no(e),i=no(t);return s===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:s===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}uS.peek=Iz;function uS(e,t,n,s){const i=Rz(n),a=n.enter("emphasis"),o=n.createTracker(s),l=o.move(i);let c=o.move(n.containerPhrasing(e,{after:i,before:l,...o.current()}));const u=c.charCodeAt(0),d=ed(s.before.charCodeAt(s.before.length-1),u,i);d.inside&&(c=_l(u)+c.slice(1));const m=c.charCodeAt(c.length-1),h=ed(s.after.charCodeAt(0),m,i);h.inside&&(c=c.slice(0,-1)+_l(m));const p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},l+c+p}function Iz(e,t,n){return n.options.emphasis||"*"}function Lz(e,t){let n=!1;return bx(e,function(s){if("value"in s&&/\r?\n|\r/.test(s.value)||s.type==="break")return n=!0,ef}),!!((!e.depth||e.depth<3)&&px(e)&&(t.options.setext||n))}function Oz(e,t,n,s){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(s);if(Lz(e,n)){const d=n.enter("headingSetext"),m=n.enter("phrasing"),h=n.containerPhrasing(e,{...a.current(),before:`
523`,after:`
524`});return m(),d(),h+`
525`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
526`))+1))}const o="#".repeat(i),l=n.enter("headingAtx"),c=n.enter("phrasing");a.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
527`,...a.current()});return/^[\t ]/.test(u)&&(u=_l(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),c(),l(),u}dS.peek=Mz;function dS(e){return e.value||""}function Mz(){return"<"}mS.peek=Dz;function mS(e,t,n,s){const i=Nx(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const c=n.createTracker(s);let u=c.move("![");return u+=c.move(n.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=c.move(" "+i),u+=c.move(n.safe(e.title,{before:u,after:i,...c.current()})),u+=c.move(i),l()),u+=c.move(")"),o(),u}function Dz(){return"!"}hS.peek=Fz;function hS(e,t,n,s){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(s);let c=l.move("![");const u=n.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const m=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return o(),n.stack=d,a(),i==="full"||!u||u!==m?c+=l.move(m+"]"):i==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function Fz(){return"!"}pS.peek=zz;function pS(e,t,n){let s=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(s);)i+="`";for(/[^ \r\n]/.test(s)&&(/^[ \r\n]/.test(s)&&/[ \r\n]$/.test(s)||/^`|`$/.test(s))&&(s=" "+s+" ");++a<n.unsafe.length;){const o=n.unsafe[a],l=n.compilePattern(o);let c;if(o.atBreak)for(;c=l.exec(s);){let u=c.index;s.charCodeAt(u)===10&&s.charCodeAt(u-1)===13&&u--,s=s.slice(0,u)+" "+s.slice(c.index+1)}}return i+s+i}function zz(){return"`"}function fS(e,t){const n=px(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}gS.peek=Uz;function gS(e,t,n,s){const i=Nx(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(s);let l,c;if(fS(e,n)){const d=n.stack;n.stack=[],l=n.enter("autolink");let m=o.move("<");return m+=o.move(n.containerPhrasing(e,{before:m,after:">",...o.current()})),m+=o.move(">"),l(),n.stack=d,m}l=n.enter("link"),c=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(c=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),c()),u+=o.move(")"),l(),u}function Uz(e,t,n){return fS(e,n)?"<":"["}xS.peek=Wz;function xS(e,t,n,s){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(s);let c=l.move("[");const u=n.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const m=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return o(),n.stack=d,a(),i==="full"||!u||u!==m?c+=l.move(m+"]"):i==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function Wz(){return"["}function kx(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function $z(e){const t=kx(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Bz(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function yS(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Hz(e,t,n,s){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?Bz(n):kx(n);const l=e.ordered?o==="."?")":".":$z(n);let c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),yS(n)===o&&d){let m=-1;for(;++m<e.children.length;){const h=e.children[m];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(o=l),n.bulletCurrent=o;const u=n.containerFlow(e,s);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),u}function Vz(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function qz(e,t,n,s){const i=Vz(n);let a=n.bulletCurrent||kx(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(s);l.move(a+" ".repeat(o-a.length)),l.shift(o);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),d);return c(),u;function d(m,h,p){return h?(p?"":" ".repeat(o))+m:(p?a:a+" ".repeat(o-a.length))+m}}function Kz(e,t,n,s){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,s);return a(),i(),o}const Gz=im(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Yz(e,t,n,s){return(e.children.some(function(o){return Gz(o)})?n.containerPhrasing:n.containerFlow).call(n,e,s)}function Zz(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}vS.peek=Qz;function vS(e,t,n,s){const i=Zz(n),a=n.enter("strong"),o=n.createTracker(s),l=o.move(i+i);let c=o.move(n.containerPhrasing(e,{after:i,before:l,...o.current()}));const u=c.charCodeAt(0),d=ed(s.before.charCodeAt(s.before.length-1),u,i);d.inside&&(c=_l(u)+c.slice(1));const m=c.charCodeAt(c.length-1),h=ed(s.after.charCodeAt(0),m,i);h.inside&&(c=c.slice(0,-1)+_l(m));const p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},l+c+p}function Qz(e,t,n){return n.options.strong||"*"}function Xz(e,t,n,s){return n.safe(e.value,s)}function Jz(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function e7(e,t,n){const s=(yS(n)+(n.options.ruleSpaces?" ":"")).repeat(Jz(n));return n.options.ruleSpaces?s.slice(0,-1):s}const wS={blockquote:Nz,break:Tw,code:Pz,definition:Az,emphasis:uS,hardBreak:Tw,heading:Oz,html:dS,image:mS,imageReference:hS,inlineCode:pS,link:gS,linkReference:xS,list:Hz,listItem:qz,paragraph:Kz,root:Yz,strong:vS,text:Xz,thematicBreak:e7};function t7(){return{enter:{table:n7,tableData:Pw,tableHeader:Pw,tableRow:s7},exit:{codeText:i7,table:r7,tableData:ph,tableHeader:ph,tableRow:ph}}}function n7(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function r7(e){this.exit(e),this.data.inTable=void 0}function s7(e){this.enter({type:"tableRow",children:[]},e)}function ph(e){this.exit(e)}function Pw(e){this.enter({type:"tableCell",children:[]},e)}function i7(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,a7));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function a7(e,t){return t==="|"?t:e}function o7(e){const t=e||{},n=t.tableCellPadding,s=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
528`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:c,tableRow:l}};function o(p,v,f,b){return u(d(p,f,b),p.align)}function l(p,v,f,b){const g=m(p,f,b),x=u([g]);return x.slice(0,x.indexOf(`
529`))}function c(p,v,f,b){const g=f.enter("tableCell"),x=f.enter("phrasing"),w=f.containerPhrasing(p,{...b,before:a,after:a});return x(),g(),w}function u(p,v){return bz(p,{align:v,alignDelimiters:s,padding:n,stringLength:i})}function d(p,v,f){const b=p.children;let g=-1;const x=[],w=v.enter("table");for(;++g<b.length;)x[g]=m(b[g],v,f);return w(),x}function m(p,v,f){const b=p.children;let g=-1;const x=[],w=v.enter("tableRow");for(;++g<b.length;)x[g]=c(b[g],p,v,f);return w(),x}function h(p,v,f){let b=wS.inlineCode(p,v,f);return f.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function l7(){return{exit:{taskListCheckValueChecked:_w,taskListCheckValueUnchecked:_w,paragraph:u7}}}function c7(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:d7}}}function _w(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function u7(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const s=n.children[0];if(s&&s.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const l=i[a];if(l.type==="paragraph"){o=l;break}}o===n&&(s.value=s.value.slice(1),s.value.length===0?n.children.shift():n.position&&s.position&&typeof s.position.start.offset=="number"&&(s.position.start.column++,s.position.start.offset++,n.position.start=Object.assign({},s.position.start)))}}this.exit(e)}function d7(e,t,n,s){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(s);a&&l.move(o);let c=wS.listItem(e,t,n,{...s,...l.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(d){return d+o}}
vendor: 4,146 bytes, line 529
529function m7(){return[H9(),dz(),fz(),t7(),l7()]}function h7(e){return{extensions:[V9(),mz(e),gz(),o7(e),c7()]}}const p7={tokenize:w7,partial:!0},bS={tokenize:b7,partial:!0},jS={tokenize:j7,partial:!0},NS={tokenize:N7,partial:!0},f7={tokenize:k7,partial:!0},kS={name:"wwwAutolink",tokenize:y7,previous:SS},CS={name:"protocolAutolink",tokenize:v7,previous:ES},ds={name:"emailAutolink",tokenize:x7,previous:TS},zr={};function g7(){return{text:zr}}let ai=48;for(;ai<123;)zr[ai]=ds,ai++,ai===58?ai=65:ai===91&&(ai=97);zr[43]=ds;zr[45]=ds;zr[46]=ds;zr[95]=ds;zr[72]=[ds,CS];zr[104]=[ds,CS];zr[87]=[ds,kS];zr[119]=[ds,kS];function x7(e,t,n){const s=this;let i,a;return o;function o(m){return!sf(m)||!TS.call(s,s.previous)||Cx(s.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(m))}function l(m){return sf(m)?(e.consume(m),l):m===64?(e.consume(m),c):n(m)}function c(m){return m===46?e.check(f7,d,u)(m):m===45||m===95||qt(m)?(a=!0,e.consume(m),c):d(m)}function u(m){return e.consume(m),i=!0,c}function d(m){return a&&i&&nn(s.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function y7(e,t,n){const s=this;return i;function i(o){return o!==87&&o!==119||!SS.call(s,s.previous)||Cx(s.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(p7,e.attempt(bS,e.attempt(jS,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function v7(e,t,n){const s=this;let i="",a=!1;return o;function o(m){return(m===72||m===104)&&ES.call(s,s.previous)&&!Cx(s.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(m),e.consume(m),l):n(m)}function l(m){if(nn(m)&&i.length<5)return i+=String.fromCodePoint(m),e.consume(m),l;if(m===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(m),c}return n(m)}function c(m){return m===47?(e.consume(m),a?u:(a=!0,c)):n(m)}function u(m){return m===null||Qu(m)||tt(m)||Fi(m)||nm(m)?n(m):e.attempt(bS,e.attempt(jS,d),n)(m)}function d(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function w7(e,t,n){let s=0;return i;function i(o){return(o===87||o===119)&&s<3?(s++,e.consume(o),i):o===46&&s===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function b7(e,t,n){let s,i,a;return o;function o(u){return u===46||u===95?e.check(NS,c,l)(u):u===null||tt(u)||Fi(u)||u!==45&&nm(u)?c(u):(a=!0,e.consume(u),o)}function l(u){return u===95?s=!0:(i=s,s=void 0),e.consume(u),o}function c(u){return i||s||!a?n(u):t(u)}}function j7(e,t){let n=0,s=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&s<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(NS,t,a)(o):o===null||tt(o)||Fi(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&s++,e.consume(o),i}}function N7(e,t,n){return s;function s(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),s):l===38?(e.consume(l),a):l===93?(e.consume(l),i):l===60||l===null||tt(l)||Fi(l)?t(l):n(l)}function i(l){return l===null||l===40||l===91||tt(l)||Fi(l)?t(l):s(l)}function a(l){return nn(l)?o(l):n(l)}function o(l){return l===59?(e.consume(l),s):nn(l)?(e.consume(l),o):n(l)}}function k7(e,t,n){return s;function s(a){return e.consume(a),i}function i(a){return qt(a)?n(a):t(a)}}function SS(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||tt(e)}function ES(e){return!nn(e)}function TS(e){return!(e===47||sf(e))}function sf(e){return e===43||e===45||e===46||e===95||qt(e)}function Cx(e){let t=e.length,n=!1;for(;t--;){const s=e[t][1];if((s.type==="labelLink"||s.type==="labelImage")&&!s._balanced){n=!0;break}if(s._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const C7={tokenize:I7,partial:!0};function S7(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:_7,continuation:{tokenize:A7},exit:R7}},text:{91:{name:"gfmFootnoteCall",tokenize:P7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:E7,resolveTo:T7}}}}
vendor: 5,216 bytes, line 529
529function E7(e,t,n){const s=this;let i=s.events.length;const a=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let o;for(;i--;){const c=s.events[i][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!o||!o._balanced)return n(c);const u=ur(s.sliceSerialize({start:o.end,end:s.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function T7(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const s={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[n+1],e[n+2],["enter",s,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",s,t]];return e.splice(n,e.length-n+1,...l),e}function P7(e,t,n){const s=this,i=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let a=0,o;return l;function l(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),c}function c(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(m){if(a>999||m===93&&!o||m===null||m===91||tt(m))return n(m);if(m===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(ur(s.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return tt(m)||(o=!0),a++,e.consume(m),m===92?d:u}function d(m){return m===91||m===92||m===93?(e.consume(m),a++,u):u(m)}}function _7(e,t,n){const s=this,i=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let a,o=0,l;return c;function c(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(v)}function d(v){if(o>999||v===93&&!l||v===null||v===91||tt(v))return n(v);if(v===93){e.exit("chunkString");const f=e.exit("gfmFootnoteDefinitionLabelString");return a=ur(s.sliceSerialize(f)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return tt(v)||(l=!0),o++,e.consume(v),v===92?m:d}function m(v){return v===91||v===92||v===93?(e.consume(v),o++,d):d(v)}function h(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),i.includes(a)||i.push(a),$e(e,p,"gfmFootnoteDefinitionWhitespace")):n(v)}function p(v){return t(v)}}function A7(e,t,n){return e.check(oc,t,e.attempt(C7,t,n))}function R7(e){e.exit("gfmFootnoteDefinition")}function I7(e,t,n){const s=this;return $e(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=s.events[s.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function L7(e){let n=(e||{}).singleTilde;const s={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:s},insideSpan:{null:[s]},attentionMarkers:{null:[126]}};function i(o,l){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let u=c;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[c][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[c][1].end)},m={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[c][1].start)},h=[["enter",d,l],["enter",o[u][1],l],["exit",o[u][1],l],["enter",m,l]],p=l.parser.constructs.insideSpan.null;p&&Cn(h,h.length,0,rm(p,o.slice(u+1,c),l)),Cn(h,h.length,0,[["exit",m,l],["enter",o[c][1],l],["exit",o[c][1],l],["exit",d,l]]),Cn(o,u-1,c-u+3,h),c=u+h.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function a(o,l,c){const u=this.previous,d=this.events;let m=0;return h;function h(v){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(v):(o.enter("strikethroughSequenceTemporary"),p(v))}function p(v){const f=no(u);if(v===126)return m>
vendor: 3,371 bytes, line 529
5291?c(v):(o.consume(v),m++,p);if(m<2&&!n)return c(v);const b=o.exit("strikethroughSequenceTemporary"),g=no(v);return b._open=!g||g===2&&!!f,b._close=!f||f===2&&!!g,l(v)}}}class O7{constructor(){this.map=[]}add(t,n,s){M7(this,t,n,s)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const s=[];for(;n>0;)n-=1,s.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];s.push(t.slice()),t.length=0;let i=s.pop();for(;i;){for(const a of i)t.push(a);i=s.pop()}this.map.length=0}}function M7(e,t,n,s){let i=0;if(!(n===0&&s.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...s);return}i+=1}e.map.push([t,n,s])}}function D7(e,t){let n=!1;const s=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&s.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=s.length-1;s[a]=s[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return s}function F7(){return{flow:{null:{name:"table",tokenize:z7,resolveAll:U7}}}}function z7(e,t,n){const s=this;let i=0,a=0,o;return l;function l(S){let F=s.events.length-1;for(;F>-1;){const z=s.events[F][1].type;if(z==="lineEnding"||z==="linePrefix")F--;else break}const L=F>-1?s.events[F][1].type:null,B=L==="tableHead"||L==="tableRow"?N:c;return B===N&&s.parser.lazy[s.now().line]?n(S):B(S)}function c(S){return e.enter("tableHead"),e.enter("tableRow"),u(S)}function u(S){return S===124||(o=!0,a+=1),d(S)}function d(S){return S===null?n(S):fe(S)?a>1?(a=0,s.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),p):n(S):Oe(S)?$e(e,d,"whitespace")(S):(a+=1,o&&(o=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),m(S)))}function m(S){return S===null||S===124||tt(S)?(e.exit("data"),d(S)):(e.consume(S),S===92?h:m)}function h(S){return S===92||S===124?(e.consume(S),m):m(S)}function p(S){return s.interrupt=!1,s.parser.lazy[s.now().line]?n(S):(e.enter("tableDelimiterRow"),o=!1,Oe(S)?$e(e,v,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):v(S))}function v(S){return S===45||S===58?b(S):S===124?(o=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),f):k(S)}function f(S){return Oe(S)?$e(e,b,"whitespace")(S):b(S)}function b(S){return S===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),g):S===45?(a+=1,g(S)):S===null||fe(S)?j(S):k(S)}function g(S){return S===45?(e.enter("tableDelimiterFiller"),x(S)):k(S)}function x(S){return S===45?(e.consume(S),x):S===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(S))}function w(S){return Oe(S)?$e(e,j,"whitespace")(S):j(S)}function j(S){return S===124?v(S):S===null||fe(S)?!o||i!==a?k(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):k(S)}function k(S){return n(S)}function N(S){return e.enter("tableRow"),T(S)}function T(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),T):S===null||fe(S)?(e.exit("tableRow"),t(S)):Oe(S)?$e
vendor: 3,739 bytes, line 529
529(e,T,"whitespace")(S):(e.enter("data"),R(S))}function R(S){return S===null||S===124||tt(S)?(e.exit("data"),T(S)):(e.consume(S),S===92?O:R)}function O(S){return S===92||S===124?(e.consume(S),R):R(S)}}function U7(e,t){let n=-1,s=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,c=0,u,d,m;const h=new O7;for(;++n<e.length;){const p=e[n],v=p[1];p[0]==="enter"?v.type==="tableHead"?(l=!1,c!==0&&(Aw(h,t,c,u,d),d=void 0,c=0),u={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},h.add(n,0,[["enter",u,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(s=!0,m=void 0,a=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},h.add(n,0,[["enter",d,t]])),i=v.type==="tableDelimiterRow"?2:d?3:1):i&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(s=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],m=Wc(h,t,a,i,void 0,m),a=[0,0,0,0]),o[2]=n)):v.type==="tableCellDivider"&&(s?s=!1:(a[1]!==0&&(o[0]=o[1],m=Wc(h,t,a,i,void 0,m)),a=o,o=[a[1],n,0,0])):v.type==="tableHead"?(l=!0,c=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(c=n,a[1]!==0?(o[0]=o[1],m=Wc(h,t,a,i,n,m)):o[1]!==0&&(m=Wc(h,t,o,i,n,m)),i=0):i&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(o[3]=n)}for(c!==0&&Aw(h,t,c,u,d),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=D7(t.events,n))}return e}function Wc(e,t,n,s,i,a){const o=s===1?"tableHeader":s===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(a.end=Object.assign({},ra(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=ra(t.events,n[1]);if(a={type:o,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const u=ra(t.events,n[2]),d=ra(t.events,n[3]),m={type:l,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",m,t]]),s!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const v=n[2]+1,f=n[3]-n[2]-1;e.add(v,f,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return i!==void 0&&(a.end=Object.assign({},ra(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Aw(e,t,n,s,i){const a=[],o=ra(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),s.end=Object.assign({},o),a.push(["exit",s,t]),e.add(n+1,0,a)}function ra(e,t){const n=e[t],s=n[0]==="enter"?"start":"end";return n[1][s]}const W7={name:"tasklistCheck",tokenize:B7};function $7(){return{text:{91:W7}}}function B7(e,t,n){const s=this;return i;function i(c){return s.previous!==null||!s._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return tt(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return fe(c)?t(c):Oe(c)?e.check({tokenize:H7},t,n)(c):n(c)}}function H7(e,t,n){return $e(e,s,"whitespace");function s(i){return i===null?n(i):t(i)}}function V7(e){return FC([g7(),S7(),L7(e),F7(),$7()])}const q7={};function K7(e){const t=this,n=e||q7,s=t.data(),i=s.micromarkExtensions||(s.micromarkExtensions=[]),a=s.fromMarkdownExtensions||(s.fromMarkdownExtensions=[]),o=s.toMarkdownExtensions||(s.toMarkdownExtensions=[]);i.push(V7(n)),a.push(m7()),o.push(h7(n))}function xs({className:e,...t}){return r.jsx("div",{className:xe("animate-pulse rounded-md bg-muted",e),...t})}
529const G7={Housing:Mt,Employment:Vn,Benefits:qe,Courts:qe,Safety:qe,"Access to Justice":qe};function Y7(){const t=Tj().slug,{data:n,isLoading:s,error:i}=dg({queryKey:["/api/articles",t],enabled:!!t});if(s)return r.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[r.jsx(ke,{title:"Legal Guide",description:"Read our comprehensive legal guide on a wide range of legal topics including housing, employment, family law, and more."}),r.jsx(Ne,{}),r.jsx("main",{className:"flex-1",children:r.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[r.jsx(xs,{className:"h-8 w-48 mb-4"}),r.jsx(xs,{className:"h-12 w-full mb-4"}),r.jsx(xs,{className:"h-6 w-3/4 mb-8"}),r.jsxs("div",{className:"space-y-4",children:[r.jsx(xs,{className:"h-4 w-full"}),r.jsx(xs,{className:"h-4 w-full"}),r.jsx(xs,{className:"h-4 w-5/6"}),r.jsx(xs,{className:"h-4 w-full"}),r.jsx(xs,{className:"h-4 w-4/5"})]})]})}),r.jsx(Ce,{})]});if(i||!n)return r.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[r.jsx(ke,{title:"Article Not Found",description:"The article you're looking for couldn't be found. Browse our legal guides for comprehensive information on legal rights and support."}),r.jsx(Ne,{}),r.jsx("main",{className:"flex-1 flex items-center justify-center",children:r.jsxs("div",{className:"text-center py-16",children:[r.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Article Not Found"}),r.jsx("p",{className:"text-muted-foreground mb-6",children:"Sorry, we couldn't find the article you're looking for."}),r.jsx(Q,{href:"/legal-guides",children:r.jsxs(pe,{"data-testid":"button-back-to-guides",children:[r.jsx(Ep,{className:"mr-2 h-4 w-4"}),"Back to Legal Guides"]})})]})}),r.jsx(Ce,{})]});const a=G7[n.category]||qe;return r.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[r.jsx(ke,{title:n.title,description:n.description,keywords:n.keywords.join(", "),canonicalUrl:`https://thenationalcommunitylawproject.com/legal-guides/${n.slug}`}),r.jsx(Ne,{}),r.jsx("main",{className:"flex-1",children:r.jsxs("article",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[r.jsx("div",{className:"mb-6",children:r.jsx(Q,{href:"/legal-guides",children:r.jsxs(pe,{variant:"ghost",size:"sm",className:"gap-2 -ml-2","data-testid":"button-back",children:[r.jsx(Ep,{className:"h-4 w-4"}),"Back to Legal Guides"]})})}),r.jsxs("header",{className:"mb-8",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[r.jsxs(yt,{variant:"secondary",className:"gap-1","data-testid":"badge-category",children:[r.jsx(a,{className:"h-3 w-3"}),n.category]}),r.jsxs(yt,{variant:"outline",className:"gap-1",children:[r.jsx(Xa,{className:"h-3 w-3"}),"10 min read"]})]}),r.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-4","data-testid":"text-article-title",children:n.title}),r.jsx("p",{className:"text-lg text-muted-foreground","data-testid":"text-article-description",children:n.description})]}),r.jsx("div",{className:"prose prose-slate dark:prose-invert max-w-none mb-12","data-testid":"article-content",children:r.jsx(L9,{remarkPlugins:[K7],children:n.content})}),n.keywords.length>0&&r.jsxs("div",{className:"mb-12 pt-8 border-t",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[r.jsx(Y_,{className:"h-4 w-4 text-muted-foreground"}),r.jsx("span",{className:"text-sm font-medium",children:"Related Topics"})]}),r.jsx("div",{className:"flex flex-wrap gap-2",children:n.keywords.slice(0,8).map((o,l)=>r.jsx(yt,{variant:"outline",className:"text-xs",children:o},l))})]}),r.jsx(W,{className:"bg-muted/50",children:r.jsx($,{className:"p-6 md:p-8",children:r.jsxs("div",{className:"text-center",children:[r.jsx("h2",{className:"text-xl font-bold mb-2",children:"Need Help With This Issue?"}),r.jsx("p",{className:"text-muted-foreground mb-6 max-w-2xl mx-auto",children:"Our team at The National Community Law Project can help you understand your options and prepare your case. We offer affordable legal support at just £50 per hour."}),r.jsxs("div",{className:"flex flex-col sm:flex-row justify-center gap-3",children:[r.jsx(Q,{href:"/contact",children:r.jsxs(pe,{size:"lg",className:"gap-2","data-testid":"button-get-help",children:[r.jsx(Dr,{className:"h-4 w-4"}),"Get Help With This"]})}),r.jsx(Q,{href:"/legal-guides",children:r.jsxs(pe,{variant:"outline",size:"lg",className:"gap-2","data-testid":"button-more-guides",children:[r.jsx(Vn,{className:"h-4 w-4"}),"More Legal Guides"]})})]})]})})})]})}),r.jsx(Ce,{})]})}function Ki({count:e,label:t="people helped",className:n=""}){return e<2?null:r.jsxs("div",{className:`inline-flex items-center gap-2 rounded-full bg-primary/10 px-4 py-2 text-sm font-medium text-primary ${n}`,"data-testid":"visitor-counter",children:[r.jsx(_e,{className:"h-4 w-4","aria-hidden":"true"}),r.jsxs("span",{children:[r.jsx("strong",{children:e.toLocaleStr
529ing()})," ",t]})]})}function Gi(){const[e]=Pd(),[t,n]=y.useState(0);return y.useEffect(()=>{fetch("/api/visits",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e||"/"})}).then(i=>i.json()).then(i=>{i&&typeof i.count=="number"&&n(i.count)}).catch(()=>{})},[e]),t}const Z7=[{icon:Mt,title:"Housing Rights",description:"Tenant rights, eviction defence, housing disrepair, homelessness support, and landlord disputes.",href:"/housing-protection",keywords:["housing rights UK","eviction help","tenant advice"]},{icon:_n,title:"Employment Rights",description:"Unfair dismissal, discrimination at work, unpaid wages, redundancy, and tribunal support.",href:"/support-areas",keywords:["employment rights UK","unfair dismissal"]},{icon:_e,title:"Family Law",description:"Child custody, divorce, domestic abuse support, family court guidance, and parental rights.",href:"/support-areas",keywords:["family law help UK","child custody"]},{icon:xg,title:"Debt & Benefits",description:"Benefits appeals, debt advice, Universal Credit issues, PIP, and financial hardship support.",href:"/low-income-support",keywords:["benefits appeal UK","debt advice"]},{icon:Ze,title:"Discrimination",description:"Equality Act 2010 claims, disability discrimination, race discrimination, and harassment.",href:"/equality-act",keywords:["discrimination help UK","Equality Act 2010"]},{icon:qe,title:"Litigants in Person",description:"Court guidance for those representing themselves, McKenzie Friend support, and hearing preparation.",href:"/litigants-in-person",keywords:["litigant in person UK","self-representation"]},{icon:Ge,title:"Fraud & Scams",description:"Consumer fraud protection, scam awareness, financial exploitation, and reporting guidance.",href:"/fraud-scam-awareness",keywords:["fraud protection UK","scam help"]},{icon:_e,title:"Vulnerable People",description:"Safeguarding, mental capacity, domestic abuse, exploitation, and specialist support.",href:"/vulnerable-people",keywords:["vulnerable people support UK"]}],Q7=["Anyone who cannot afford a solicitor","People on low or fixed incomes","Vulnerable adults and those with disabilities","People facing housing insecurity or homelessness","Victims of discrimination or abuse","Anyone preparing to represent themselves in court"];function X7(){const e=Gi(),t={"@context":"https://schema.org","@type":"WebPage",name:"Legal Help Hub – Community Legal Support UK",description:"Find affordable legal help in the UK. Community legal support at £50/hour for housing, employment, family, discrimination, and more.",url:"https://thenationalcommunitylawproject.com/legal-help-hub",provider:{"@type":"LegalService",name:"National Community Law Project CIC",url:"https://thenationalcommunitylawproject.com"}};return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Legal Help Hub – Affordable Community Legal Support UK",description:"Find the legal help you need at £50/hour. Community legal support for housing, employment, family law, discrimination, debt, benefits and more across the UK.",keywords:"legal help UK, community legal support, affordable legal advice UK, free legal help UK, legal support vulnerable people, housing rights UK, employment rights UK, discrimination help UK, legal aid support UK, access to justice UK",canonicalUrl:"https://thenationalcommunitylawproject.com/legal-help-hub"}),r.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-gradient-to-b from-primary/5 to-background py-16 md:py-24",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[r.jsxs("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full bg-primary/10 px-4 py-2 text-sm font-semibold text-primary",children:[r.jsx(qe,{className:"h-4 w-4"}),"Legal Help Hub"]}),r.jsx("h1",{className:"mb-6 text-4xl font-bold tracking-tighter sm:text-5xl md:text-6xl",children:"Affordable Legal Help for Everyone"}),r.jsxs("p",{className:"mb-8 text-xl text-muted-foreground",children:["We believe access to legal support should not depend on how much money you have. Our community legal hub provides affordable guidance at ",r.jsx("strong",{children:"£50/hour"}
529)," — with a ",r.jsx("strong",{children:"free 15-minute consultation"})," to get started."]}),r.jsx(Ki,{count:e,label:"people helped through this hub",className:"mb-8"}),r.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:justify-center",children:[r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"inline-flex h-12 items-center justify-center rounded-md bg-primary px-8 text-sm font-medium text-primary-foreground shadow transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","data-testid":"link-get-free-consultation",children:["Get Free 15-Min Consultation",r.jsx(st,{className:"ml-2 h-4 w-4"})]})}),r.jsx(Q,{href:"/pricing",children:r.jsx("a",{className:"inline-flex h-12 items-center justify-center rounded-md border border-input bg-background px-8 text-sm font-medium shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","data-testid":"link-view-pricing",children:"View Pricing"})})]})]})})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter sm:text-4xl",children:"Areas We Cover"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground md:text-lg",children:"Our community legal support covers a wide range of legal issues affecting everyday people across the UK."})]}),r.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:Z7.map(n=>{const s=n.icon;return r.jsx(Q,{href:n.href,children:r.jsxs("a",{className:"group flex flex-col rounded-xl border bg-card p-6 shadow-sm transition-all hover:shadow-md hover:border-primary/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","data-testid":`card-legal-area-${n.title.toLowerCase().replace(/\s+/g,"-")}`,children:[r.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10 text-primary transition-colors group-hover:bg-primary group-hover:text-primary-foreground",children:r.jsx(s,{className:"h-6 w-6","aria-hidden":"true"})}),r.jsx("h3",{className:"mb-2 text-lg font-semibold",children:n.title}),r.jsx("p",{className:"flex-1 text-sm text-muted-foreground",children:n.description}),r.jsxs("div",{className:"mt-4 flex items-center text-sm font-medium text-primary",children:["Learn more ",r.jsx(st,{className:"ml-1 h-3 w-3"})]})]})},n.title)})})]})}),r.jsx("section",{className:"bg-muted/30 py-16 md:py-20",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsx("div",{className:"mx-auto max-w-4xl",children:r.jsxs("div",{className:"grid gap-12 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Who We Help"}),r.jsx("p",{className:"mb-6 text-muted-foreground",children:"Our services are designed for anyone who needs legal support but cannot afford traditional solicitor rates. We particularly focus on:"}),r.jsx("ul",{className:"space-y-3",role:"list",children:Q7.map(n=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary","aria-hidden":"true"}),r.jsx("span",{className:"text-sm",children:n})]},n))})]}),r.jsxs("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:[r.jsx("h3",{className:"mb-4 text-2xl font-bold",children:"How It Works"}),r.jsxs("ol",{className:"space-y-6",role:"list",children:[r.jsxs("li",{className:"flex gap-4",children:[r.jsx("div",{className:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-primary text-sm font-bold text-primary-foreground",children:"1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold",children:"Free 15-Min Call"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Tell us about your situation. No cost, no obligation."})]})]}),r.jsxs("li",{className:"flex gap-4",children:[r.jsx("div",{className:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-primary text-sm font-bold text-primary-foreground",children:"2"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold",children:"We Assess Your Needs"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We identify the right type of support for your situation."})]})]}),r.jsxs("li",{className:"flex gap-4",children:[r.jsx("div",{className:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-primary text-sm font-bold text-primary-foreground",children:"3"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold",children:"Affordable Support at £50/hr"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Ongoing help with documents, hearings, and case preparation."})]})]})]}),r.jsx("div",{className:"mt-8",children:r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"flex w-full items-center justify-center gap-2 rounded-md bg-primary px-6 py-3 text-sm font-medium text-primary-foreground hover:bg-primary/90","data-testid":"link-hub-contact",children:[r.jsx(Dr,{className:"h-4 w-4"}),"Start Free Consultation"]})})})]})]})})})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container px-4 md:px-6 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Not a Law Firm"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground md:text-lg",children:"The National Community Law Project CIC is a Community Interest Company — not a law firm and not regulated by the SRA. We provide community legal information, guidance, and support. For regulated legal advice, we will always signpost you to a qualified solicitor."}),r.jsx("div",{className:"mt-6",children:r.jsx(Q,{href:"/legal-disclaimer",children:r.jsx("a",{className:"text-sm text-primary underline hover:no-underline","data-testid":"link-legal-disclaimer",children:"View our full legal disclaimer"})})})]})})]}),r.jsx(Ce,{})]})}const J7=[{icon:Ze,title:"Safeguarding Adults",description:"Protection from abuse, neglect, and exploitation. Understanding your rights and reporting routes."},{icon:Rt,title:"Mental Capacity",description:"Decision-making rights, lasting power of attorney, and Court of Protection guidance."},{icon:qe,title:"Discrimination",description:"Protection from unlawful discrimination based on disability, age, or health condition."},{icon:_e,title:"Domestic Abuse Support",description:"Safety planning, protective orders, housing support, and legal options for survivors."},{icon:Ze,title:"Financial Exploitation",description:"Recognising and reporting financial abuse. Recovering assets and protecting finances."},{icon:gg,title:"Duty of Care",description:"Understanding what organizations owe you. Making complaints and enforcing standards."}],eU=["Right to be safe from harm and abuse","Right to make your own decisions (if you have capacity)","Right to dignity and respect in all services","Right to access justice and legal support","Right to complain and have complaints heard","Protection from discrimination under the Equality Act"];function tU(){const e=Gi();return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Support for Vulnerable People – Legal Rights and Protection UK",description:"Specialist support for vulnerable people in the UK. Legal help with safeguarding, mental capacity, domestic abuse, discrimination, financial exploitation, and more at £50/hour.",keywords:"vulnerable people support UK, safeguarding adults UK, mental capacity law UK, domestic abuse legal help, financial exploitation support, disability rights UK, legal help vulnerable adults, vulnerable person rights UK",canonicalUrl:"https://thenationalcommunitylawproject.com/vulnerable-people"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-gradient-to-b from-primary/5 to-background py-16 md:py-24",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[r.jsxs("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full bg-primary/10 px-4 py-2 text-sm font-semibold text-primary",children:[r.jsx(Ze,{className:"h-4 w-4"}),"Vulnerable People Support"]}),r.jsx("h1",{className:"mb-6 text-4xl font-bold tracking-tighter sm:text-5xl md:text-6xl",children:"Legal Support for Vulnerable People"}),r.jsxs("p",{className:"mb-8 text-xl text-muted-foreground",children:["Vulnerable people deserve the strongest legal protection. We provide specialist community legal support to help you understand and enforce your rights — at just ",r.jsx("strong",{children:"£50/hour"}
529)," with a ",r.jsx("strong",{children:"free 15-minute consultation"}),"."]}),r.jsx(Ki,{count:e,label:"vulnerable people helped",className:"mb-8"}),r.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:justify-center",children:[r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"inline-flex h-12 items-center justify-center rounded-md bg-primary px-8 text-sm font-medium text-primary-foreground shadow hover:bg-primary/90","data-testid":"link-vulnerable-consultation",children:["Get Free Consultation",r.jsx(st,{className:"ml-2 h-4 w-4"})]})}),r.jsx(Q,{href:"/legal-guides",children:r.jsx("a",{className:"inline-flex h-12 items-center justify-center rounded-md border border-input bg-background px-8 text-sm font-medium hover:bg-accent","data-testid":"link-vulnerable-guides",children:"Read Our Guides"})})]})]})})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter sm:text-4xl",children:"How We Can Help"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"We provide practical legal guidance across the issues that affect vulnerable people most."})]}),r.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:J7.map(t=>{const n=t.icon;return r.jsxs("div",{className:"rounded-xl border bg-card p-6 shadow-sm","data-testid":`card-support-${t.title.toLowerCase().replace(/\s+/g,"-")}`,children:[r.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10 text-primary",children:r.jsx(n,{className:"h-6 w-6","aria-hidden":"true"})}),r.jsx("h3",{className:"mb-2 text-lg font-semibold",children:t.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t.description})]},t.title)})})]})}),r.jsx("section",{className:"bg-muted/30 py-16 md:py-20",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-4xl grid gap-12 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Your Rights as a Vulnerable Person"}),r.jsx("p",{className:"mb-6 text-muted-foreground",children:"The law provides specific protections for vulnerable people. You have the right to:"}),r.jsx("ul",{className:"space-y-3",role:"list",children:eU.map(t=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary","aria-hidden":"true"}),r.jsx("span",{className:"text-sm",children:t})]},t))})]}),r.jsxs("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:[r.jsx(gg,{className:"mb-4 h-10 w-10 text-primary","aria-hidden":"true"}),r.jsx("h3",{className:"mb-4 text-xl font-bold",children:"Emergency & Crisis Support"}),r.jsxs("div",{className:"space-y-4 text-sm",children:[r.jsx("p",{className:"text-muted-foreground",children:"If you or someone you know is in immediate danger:"}),r.jsxs("div",{className:"rounded-lg bg-primary/5 p-4",children:[r.jsx("p",{className:"font-semibold",children:"Emergency: 999"}),r.jsx("p",{className:"text-muted-foreground",children:"Police, ambulance, fire"})]}),r.jsxs("div",{className:"rounded-lg bg-muted p-4",children:[r.jsx("p",{className:"font-semibold",children:"Samaritans: 116 123"}),r.jsx("p",{className:"text-muted-foreground",children:"24/7 emotional support"})]}),r.jsxs("div",{className:"rounded-lg bg-muted p-4",children:[r.jsx("p",{className:"font-semibold",children:"Women's Aid: 0808 2000 247"}),r.jsx("p",{className:"text-muted-foreground",children:"Domestic abuse support"})]}),r.jsx("div",{className:"mt-4",children:r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"flex items-center gap-2 font-medium text-primary hover:underline","data-testid":"link-vulnerable-contact",children:[r.jsx(Dr,{className:"h-4 w-4"}),"Contact NCLP for legal guidance"]})})})]})]})]})})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container px-4 md:px-6 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold",children:"Read Our Vulnerability Guides"}),r.jsx("p",{className:"mx-auto mb-8 max-w-2xl text-muted-foreground",children:"We have written over 30 in-depth guides specifically for vulnerable people, covering rights, safeguarding, and accessing help."}),r.jsx(Q,{href:"/legal-guides",children:r.jsxs("a",{className:"inline-flex h-12 items-center gap-2 rounded-md bg-primary px-8 text-sm font-medium text-primary-foreground hover:bg-primary/90","data-testid":"link-read-guides",children:["Browse All Guides ",r.jsx(st,{className:"h-4 w-4"})]})})]})})]}),r.jsx(Ce,{})]})}const nU=[{name:"Age",description:"Protection from discrimination based on your age in employment and services."},{name:"Disability",description:"Right to reasonable adjustments and equal treatment for disabled people."},{name:"Gender Reassignment",description:"Protection for those who have or are proposing to undergo gender reassignment."},{name:"Marriage / Civil Partnership",description:"Some protection in the workplace for married people."}
529,{name:"Pregnancy & Maternity",description:"Protection during pregnancy and maternity leave."},{name:"Race",description:"Protection from discrimination based on colour, nationality, or ethnic origin."},{name:"Religion or Belief",description:"Protection in the workplace and services for religious beliefs and practices."},{name:"Sex",description:"Protection for men and women from direct and indirect discrimination."},{name:"Sexual Orientation",description:"Protection from discrimination based on sexual orientation."}],rU=[{type:"Direct Discrimination",desc:"When someone treats you worse because of a protected characteristic."},{type:"Indirect Discrimination",desc:"A rule or policy that disadvantages a group with a protected characteristic."},{type:"Harassment",desc:"Unwanted behaviour related to a protected characteristic that violates your dignity."},{type:"Victimisation",desc:"Treating you badly because you raised a discrimination complaint."},{type:"Failure to Adjust",desc:"Failing to make reasonable adjustments for disabled people."}];function sU(){const e=Gi();return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Equality Act 2010 Help UK – Discrimination Support and Guidance",description:"Understand your rights under the Equality Act 2010. Get help with discrimination at work, disability discrimination, race discrimination, and more. £50/hour support.",keywords:"Equality Act 2010 help, discrimination help UK, disability discrimination UK, race discrimination UK, employment discrimination UK, reasonable adjustments UK, protected characteristics UK, discrimination claim UK",canonicalUrl:"https://thenationalcommunitylawproject.com/equality-act"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-gradient-to-b from-primary/5 to-background py-16 md:py-24",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[r.jsxs("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full bg-primary/10 px-4 py-2 text-sm font-semibold text-primary",children:[r.jsx(qe,{className:"h-4 w-4"}),"Equality Act 2010"]}),r.jsx("h1",{className:"mb-6 text-4xl font-bold tracking-tighter sm:text-5xl md:text-6xl",children:"Equality Act 2010 — Know Your Rights"}),r.jsx("p",{className:"mb-8 text-xl text-muted-foreground",children:"The Equality Act 2010 protects you from discrimination at work, in services, and in everyday life. If you have been treated unfairly, we can help you understand your rights and take action."}),r.jsx(Ki,{count:e,label:"people helped with discrimination issues",className:"mb-8"}),r.jsx("div",{className:"flex flex-col gap-4 sm:flex-row sm:justify-center",children:r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"inline-flex h-12 items-center justify-center rounded-md bg-primary px-8 text-sm font-medium text-primary-foreground shadow hover:bg-primary/90","data-testid":"link-equality-consultation",children:["Free 15-Min Consultation ",r.jsx(st,{className:"ml-2 h-4 w-4"})]})})})]})})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"9 Protected Characteristics"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"The Equality Act 2010 protects you from discrimination based on any of these characteristics."})]}),r.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:nU.map(t=>r.jsxs("div",{className:"rounded-xl border bg-card p-5 shadow-sm","data-testid":`card-characteristic-${t.name.toLowerCase().replace(/\s+\/?\s*/g,"-")}`,children:[r.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[r.jsx(ye,{className:"h-5 w-5 text-primary","aria-hidden":"true"}),r.jsx("h3",{className:"font-semibold",children:t.name})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t.description})]},t.name))})]})}),r.jsx("section",{className:"bg-muted/30 py-16 md:py-20",children:r.jsxs("div",{className:"container px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Types of Unlawful Discrimination"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"The Equality Act outlaws several forms of discriminatory treatment."})]}),r.jsx("div",{className:"mx-auto max-w-4xl grid gap-4",children:rU.map(t=>
529r.jsxs("div",{className:"flex items-start gap-4 rounded-xl border bg-card p-5 shadow-sm",children:[r.jsx(gg,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary","aria-hidden":"true"}),r.jsxs("div",{children:[r.jsx("h3",{className:"mb-1 font-semibold",children:t.type}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t.desc})]})]},t.type))})]})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-4xl grid gap-12 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Where You're Protected"}),r.jsx("ul",{className:"space-y-4",role:"list",children:[{icon:_n,title:"Employment",desc:"Recruitment, promotion, pay, dismissal, and working conditions."},{icon:Mt,title:"Housing",desc:"Renting, buying, or selling property."},{icon:_e,title:"Services & Public Bodies",desc:"Shops, restaurants, healthcare, education, and government services."},{icon:Rt,title:"Associations",desc:"Clubs, societies, and member organisations."}].map(t=>{const n=t.icon;return r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(n,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary","aria-hidden":"true"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold",children:t.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t.desc})]})]},t.title)})})]}),r.jsxs("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:[r.jsx("h3",{className:"mb-6 text-xl font-bold",children:"What We Can Help With"}),r.jsx("ul",{className:"space-y-3 text-sm",role:"list",children:["Understanding if you have been discriminated against","Writing formal complaints to employers or services","Employment tribunal claim preparation","Preparing evidence and witness statements","Understanding reasonable adjustment rights","Responding to discrimination grievances","Guidance on time limits for claims"].map(t=>r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(ye,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-primary","aria-hidden":"true"}),r.jsx("span",{children:t})]},t))}),r.jsx("div",{className:"mt-8",children:r.jsx(Q,{href:"/contact",children:r.jsx("a",{className:"flex w-full items-center justify-center gap-2 rounded-md bg-primary px-6 py-3 text-sm font-medium text-primary-foreground hover:bg-primary/90","data-testid":"link-equality-contact",children:"Discuss Your Situation — Free 15 Mins"})})})]})]})})})]}),r.jsx(Ce,{})]})}const iU=[{icon:Dr,title:"Phone Scams",desc:"Impersonation calls from 'HMRC', 'banks', 'police' or utility companies demanding money or information."},{icon:Ge,title:"Phishing Emails & Texts",desc:"Fake messages appearing to come from official organisations to steal your login details or money."},{icon:Ze,title:"Investment Fraud",desc:"Promises of high returns on fake investments. Cryptocurrency scams, Ponzi schemes, and fake brokers."},{icon:_e,title:"Romance Scams",desc:"Fake relationships built online to emotionally manipulate victims into sending money."},{icon:vt,title:"Doorstep Scams",desc:"Bogus tradespeople, rogue builders, or sellers pressuring vulnerable people at their homes."},{icon:jg,title:"AI & Deepfake Scams",desc:"Emerging scams using artificial intelligence to create fake voices, videos, and identities."}],aU=["Stop all contact with the suspected scammer immediately","Contact your bank if any money was transferred","Call Action Fraud: 0300 123 2040","Report to police on 101 (or 999 if in danger)","Block the scammer on all platforms","Keep evidence — messages, emails, receipts"];function oU(){const e=Gi();return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Fraud and Scam Awareness UK – Protect Yourself and Your Family",description:"Protect yourself from fraud and scams in the UK. Identify common scams, report fraud, and get legal support if you've been targeted. Free 15-min consultation available.",keywords:"fraud awareness UK, scam protection UK, how to report fraud UK, phone scam UK, phishing UK, investment fraud UK, romance scam UK, doorstep scam UK, AI scam UK, Action Fraud UK, scam victim support",canonicalUrl:"https://thenationalcommunitylawproject.com/fraud-scam-awareness"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-gradient-to-b from-destructive/5 to-background py-16 md:py-24",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[r.jsxs("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full bg-destructive/10 px-4 py-2 text-sm font-semibold text-destructive",children:[r.jsx(vt,{className:"h-4 w-4"}),"Fraud & Scam Awareness"]}),r.jsx("h1",{className:"mb-6 text-4xl font-bold tracking-tighter sm:text-5xl md:text-6xl",children:"Protect Yourself From Fraud and Scams"}),r.jsxs("p",{className:"mb-8 text-xl text-muted-foreground",children:["Fraud and scams affect millions of people in the UK every year. We help you recognise scams, take action if targeted, and understand your legal r
529ights — at just ",r.jsx("strong",{children:"£50/hour"})," with a ",r.jsx("strong",{children:"free 15-minute consultation"}),"."]}),r.jsx(Ki,{count:e,label:"people protected through this page",className:"mb-8"}),r.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:justify-center",children:[r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"inline-flex h-12 items-center justify-center rounded-md bg-primary px-8 text-sm font-medium text-primary-foreground shadow hover:bg-primary/90","data-testid":"link-fraud-consultation",children:["Get Help Now ",r.jsx(st,{className:"ml-2 h-4 w-4"})]})}),r.jsx(Q,{href:"/legal-guides",children:r.jsx("a",{className:"inline-flex h-12 items-center justify-center rounded-md border border-input bg-background px-8 text-sm font-medium hover:bg-accent","data-testid":"link-fraud-guides",children:"Read Fraud Guides"})})]})]})})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Common Fraud and Scam Types"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"Scammers constantly evolve their tactics. Here are the most common types to watch for."})]}),r.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:iU.map(t=>{const n=t.icon;return r.jsxs("div",{className:"rounded-xl border bg-card p-6 shadow-sm","data-testid":`card-scam-${t.title.toLowerCase().replace(/\s+/g,"-")}`,children:[r.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-lg bg-destructive/10 text-destructive",children:r.jsx(n,{className:"h-6 w-6","aria-hidden":"true"})}),r.jsx("h3",{className:"mb-2 text-lg font-semibold",children:t.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t.desc})]},t.title)})})]})}),r.jsx("section",{className:"bg-destructive/5 py-16 md:py-20",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-4xl grid gap-12 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"If You've Been Scammed — Act Now"}),r.jsx("p",{className:"mb-6 text-muted-foreground",children:"Quick action can limit the damage. Follow these steps immediately:"}),r.jsx("ol",{className:"space-y-3",role:"list",children:aU.map((t,n)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx("span",{className:"flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-destructive text-xs font-bold text-destructive-foreground",children:n+1}),r.jsx("span",{className:"text-sm",children:t})]},t))})]}),r.jsxs("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:[r.jsx("h3",{className:"mb-4 text-xl font-bold",children:"Key Contacts"}),r.jsxs("div",{className:"space-y-4 text-sm",children:[r.jsxs("div",{className:"rounded-lg bg-destructive/10 p-4",children:[r.jsx("p",{className:"font-bold text-destructive",children:"Emergency: 999"}),r.jsx("p",{className:"text-muted-foreground",children:"If you are in danger right now"})]}),r.jsxs("div",{className:"rounded-lg bg-muted p-4",children:[r.jsx("p",{className:"font-semibold",children:"Action Fraud: 0300 123 2040"}),r.jsx("p",{className:"text-muted-foreground",children:"UK's national fraud reporting service"})]}),r.jsxs("div",{className:"rounded-lg bg-muted p-4",children:[r.jsx("p",{className:"font-semibold",children:"Your Bank"}),r.jsx("p",{className:"text-muted-foreground",children:"Call the number on your card immediately if money was sent"})]}),r.jsxs("div",{className:"rounded-lg bg-muted p-4",children:[r.jsx("p",{className:"font-semibold",children:"FCA Scam Alert: 0800 111 6768"}),r.jsx("p",{className:"text-muted-foreground",children:"For investment and financial scams"})]}),r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"mt-2 flex items-center gap-2 font-medium text-primary hover:underline","data-testid":"link-fraud-contact",children:[r.jsx(Dr,{className:"h-4 w-4"}),"Get legal help from NCLP (£50/hr)"]})})]})]})]})})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container px-4 md:px-6 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold",children:"Read Our Fraud Prevention Guides"}),r.jsx("p",{className:"mx-auto mb-8 max-w-2xl text-muted-foreground",children:"We have published over 30 educational guides on fraud, scams, and consumer protection — written in plain English."}),r.jsx(Q,{href:"/legal-guides",children:r.jsxs("a",{className:"inline-flex h-12 items-center gap-2 rounded-md bg-primary px-8 text-sm font-medium text-primary-foreground hover:bg-primary/90","data-testid":"link-fraud-all-guides",children:["Browse Fraud & Scam Guides ",r.jsx(st,{className:"h-4 w-4"})]})})]})})]}),r.jsx(Ce,{})]})}const lU=[{icon:vt,title:"Eviction & Possession",desc:"Challenge unlawful evictions, understand your legal protections, and defend possession proceedings in court."},{icon:vt,title:"Housing Disrepair",desc:"Pursue landlords for damp, mould, leaks, pest infestations, and other serious disrepair affecting your health."}
529,{icon:Mt,title:"Homelessness",desc:"Understand your legal rights if you face homelessness. Council duties, emergency accommodation, and appeals."},{icon:U_,title:"Tenant Rights",desc:"Know your rights as a tenant — deposit protection, quiet enjoyment, notice requirements, and fair treatment."},{icon:qe,title:"Landlord Disputes",desc:"Resolve disputes over rent, deposits, access, and unfair treatment through negotiation or tribunal."},{icon:Ze,title:"Selective & HMO Licensing",desc:"Guidance for landlords and tenants on licensing requirements and consequences of non-compliance."},{icon:Ge,title:"Social Housing",desc:"Waiting lists, allocation disputes, transfers, and challenging housing authority decisions."},{icon:Mt,title:"Home Protection Security",desc:"Legal framework around home security obligations, landlord responsibilities, and safe housing."}],cU=["Right to a safe and healthy home","Right to proper notice before eviction","Right to have disrepair repaired promptly","Right to deposit protection","Right to quiet enjoyment of your home","Right to challenge an eviction in court","Right to emergency housing if homeless","Right to complain about your landlord"];function uU(){const e=Gi();return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Housing Rights UK – Eviction Help, Tenant Rights and Home Protection",description:"Get help with housing rights across the UK. Eviction defence, housing disrepair, tenant rights, homelessness, and landlord disputes at £50/hour. Free 15-min consultation.",keywords:"housing rights UK, eviction help UK, tenant rights UK, housing disrepair UK, homelessness support UK, landlord dispute UK, section 21 eviction UK, housing law UK, council housing UK, renting rights UK",canonicalUrl:"https://thenationalcommunitylawproject.com/housing-protection"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-gradient-to-b from-primary/5 to-background py-16 md:py-24",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[r.jsxs("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full bg-primary/10 px-4 py-2 text-sm font-semibold text-primary",children:[r.jsx(Mt,{className:"h-4 w-4"}),"Housing & Home Protection"]}),r.jsx("h1",{className:"mb-6 text-4xl font-bold tracking-tighter sm:text-5xl md:text-6xl",children:"Housing Rights and Home Protection"}),r.jsxs("p",{className:"mb-8 text-xl text-muted-foreground",children:["Your home is fundamental to your safety and wellbeing. We provide affordable legal support for housing issues across the UK — from eviction defence to housing disrepair — at just ",r.jsx("strong",{children:"£50/hour"}),"."]}),r.jsx(Ki,{count:e,label:"people helped with housing issues",className:"mb-8"}),r.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:justify-center",children:[r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"inline-flex h-12 items-center justify-center rounded-md bg-primary px-8 text-sm font-medium text-primary-foreground shadow hover:bg-primary/90","data-testid":"link-housing-consultation",children:["Get Free 15-Min Consultation ",r.jsx(st,{className:"ml-2 h-4 w-4"})]})}),r.jsx(Q,{href:"/legal-guides",children:r.jsx("a",{className:"inline-flex h-12 items-center justify-center rounded-md border border-input bg-background px-8 text-sm font-medium hover:bg-accent","data-testid":"link-housing-guides",children:"Read Housing Guides"})})]})]})})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Housing Issues We Cover"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"We provide guidance across the full range of housing law issues."})]}),r.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-4",children:lU.map(t=>{const n=t.icon;return r.jsxs("div",{className:"rounded-xl border bg-card p-6 shadow-sm","data-testid":`card-housing-${t.title.toLowerCase().replace(/\s+&?\s*/g,"-")}`,children:[r.jsx("div",{className:"mb-4 flex h-10 w-10 items-center justify-center rounded-lg bg-primary/10 text-primary",children:r.jsx(n,{className:"h-5 w-5","aria-hidden":"true"})}),r.jsx("h3",{className:"mb-2 font-semibold",children:t.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t.desc})]},t.title)})})]})}),r.jsx("section",{className:"bg-muted/30 py-16 md:py-20",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-4xl grid gap-12 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Your Rights as a Tenant"}),r.jsx("p",{className:"mb-6 text-muted-foreground",children:"UK housing law gives tenants important protections. These are some of your key rights:"}),r.jsx("ul",{className:"space-y-3",role:"list",children:cU.map(t=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary","aria-hidden":"true"}),r.jsx("span",{className:"text-sm",children:t})]},t))})]}),r.jsxs("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:[r.jsx("h3",{className:"mb-4 text-xl font-bold",children:"Facing Eviction?"}),r.jsx("p",{className:"mb-6 text-sm text-muted-foreground",children:"If you have received an eviction notice, act quickly. You may have defences available and the right to challenge the eviction in court."}),r.jsxs("div",{className:"space-y-4 text-sm",children:[r.jsxs("div",{className:"rounded-lg border-l-4 border-primary bg-primary/5 p-4",children:[r.jsx("p",{className:"font-semibold",children:"Step 1: Don't ignore the notice"}),r.jsx("p",{className:"text-muted-foreground",children:"Read it carefully and note all dates."})]}),r.jsxs("div",{className:"rounded-lg border-l-4 border-primary bg-primary/5 p-4",children:[r.jsx("p",{className:"font-semibold",children:"Step 2: Get advice immediately"}),r.jsx("p",{className:"text-muted-foreground",children:"Free 15-min consultation with NCLP."})]}),r.jsxs("div",{className:"rounded-lg border-l-4 border-primary bg-primary/5 p-4",children:[r.jsx("p",{className:"font-semibold",children:"Step 3: Attend the court hearing"}),r.jsx("p",{className:"text-muted-foreground",children:"You can defend the case and request time."})]})]}),r.jsx("div",{className:"mt-6",children:r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"flex w-full items-center justify-center gap-2 rounded-md bg-primary px-6 py-3 text-sm font-medium text-primary-foreground hover:bg-primary/90","data-testid":"link-housing-contact",children:[r.jsx(Dr,{className:"h-4 w-4"}),"Contact Us Now"]})})})]})]})})})]}),r.jsx(Ce,{})]})}const dU=[{icon:Ge,title:"Document Preparation",desc:"Help drafting witness statements, letters before action, skeleton arguments, and court bundles."},{icon:qe,title:"Hearing Preparation",desc:"Understanding court procedure, what to expect on the day, and how to present your case effectively."},{icon:_e,title:"McKenzie Friend Support",desc:"We can attend hearings with you as a McKenzie Friend to provide moral support and quiet assistance."},{icon:Vn,title:"Legal Research",desc:"Identifying relevant legislation, case law, and legal principles that apply to your case."},{icon:Ge,title:"Forms & Applications",desc:"Completing court forms, making applications, and understanding what forms are needed."},{icon:vg,title:"Strategy Guidance",desc:"Help thinking through your options and developing a clear strategy for your case."}],mU=[{name:"County Court",desc:"Civil claims including housing, contract, and personal injury cases."},{name:"Family Court",desc:"Child arrangements, divorce, and family financial matters."},{name:"Employment Tribunal",desc:"Unfair dismissal, discrimination, and employment rights claims."}
529,{name:"First-tier Tribunal",desc:"Immigration, benefits appeals, landlord licensing, and regulatory matters."},{name:"Magistrates' Court",desc:"Criminal matters and some civil enforcement hearings."},{name:"Upper Tribunal / High Court",desc:"Appeals from lower courts and judicial review applications."}],hU=["Always address the judge as 'Your Honour' (County Court) or 'Sir/Ma'am' (Magistrates)","Organise your documents in a clear, numbered bundle before the hearing","Focus on the key legal issues — don't bring irrelevant personal grievances","Arrive early, dress professionally, and stay calm under pressure","Take notes during proceedings and ask for clarification if you don't understand","If you don't understand a legal term, it's fine to politely ask the judge to explain"];function pU(){const e=Gi();return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Litigant in Person Support UK – Self-Representation Help and Guidance",description:"Support for litigants in person across the UK. Help preparing documents, attending hearings, and representing yourself in court. McKenzie Friend support at £50/hour.",keywords:"litigant in person UK, self-representation court UK, McKenzie Friend UK, represent yourself court UK, court help UK, litigant in person support, court document help UK, tribunal help UK, employment tribunal self-represent",canonicalUrl:"https://thenationalcommunitylawproject.com/litigants-in-person"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-gradient-to-b from-primary/5 to-background py-16 md:py-24",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[r.jsxs("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full bg-primary/10 px-4 py-2 text-sm font-semibold text-primary",children:[r.jsx(qe,{className:"h-4 w-4"}),"Litigants in Person"]}),r.jsx("h1",{className:"mb-6 text-4xl font-bold tracking-tighter sm:text-5xl md:text-6xl",children:"Representing Yourself in Court — We'll Help"}),r.jsxs("p",{className:"mb-8 text-xl text-muted-foreground",children:["Going to court without a solicitor is daunting. Our community legal support helps you prepare documents, understand procedure, and present your case confidently — at just ",r.jsx("strong",{children:"£50/hour"}),", a fraction of traditional legal costs."]}),r.jsx(Ki,{count:e,label:"litigants helped with their cases",className:"mb-8"}),r.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:justify-center",children:[r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"inline-flex h-12 items-center justify-center rounded-md bg-primary px-8 text-sm font-medium text-primary-foreground shadow hover:bg-primary/90","data-testid":"link-lip-consultation",children:["Free 15-Min Consultation ",r.jsx(st,{className:"ml-2 h-4 w-4"})]})}),r.jsx(Q,{href:"/legal-guides",children:r.jsx("a",{className:"inline-flex h-12 items-center justify-center rounded-md border border-input bg-background px-8 text-sm font-medium hover:bg-accent","data-testid":"link-lip-guides",children:"Read Court Guides"})})]})]})})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"How We Support Litigants in Person"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"We provide practical help at every stage of your case."})]}),r.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:dU.map(t=>{const n=t.icon;return r.jsxs("div",{className:"rounded-xl border bg-card p-6 shadow-sm","data-testid":`card-lip-${t.title.toLowerCase().replace(/\s+/g,"-")}`,children:[r.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10 text-primary",children:r.jsx(n,{className:"h-6 w-6","aria-hidden":"true"})}),r.jsx("h3",{className:"mb-2 text-lg font-semibold",children:t.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t.desc})]},t.title)})})]})}),r.jsx("section",{className:"bg-muted/30 py-16 md:py-20",children:r.jsxs("div",{className:"container px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Courts and Tribunals We Cover"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"We support litigants across a range of courts and tribunals."})]}),r.jsx("div",{className:"mx-auto max-w-4xl grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:mU.map(t=>r.jsxs("div",{className:"rounded-xl border bg-card p-5 shadow-sm",children:[r.jsx("h3",{className:"mb-2 font-semibold",children:t.name}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t.desc})]},t.name))})]})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-4xl grid gap-12 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Top Tips for Court"}),r.jsx("ul",{className:"space-y-3",role:"list",children:hU.map(t=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ye,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary","aria-hidden":"true"}),r.jsx("span",{className:"text-sm",children:t})]},t))})]}),r.jsxs("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:[r.jsx("h3",{className:"mb-4 text-xl font-bold",children:"The Cost Comparison"}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"rounded-lg bg-destructive/10 p-4",children:[r.jsx("p",{className:"font-semibold text-destructive",children:"Traditional Solicitor"}),r.jsx("p",{className:"text-2xl font-bold",children:"£200–£500"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"per hour — out of reach for most people"})]}),r.jsxs("div",{className:"rounded-lg bg-primary/10 p-4",children:[r.jsx("p",{className:"font-semibold text-primary",children:"NCLP Community Supp
529ort"}),r.jsx("p",{className:"text-2xl font-bold",children:"£50"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"per hour — first 15 mins free"})]})]}),r.jsx("div",{className:"mt-6",children:r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"flex w-full items-center justify-center gap-2 rounded-md bg-primary px-6 py-3 text-sm font-medium text-primary-foreground hover:bg-primary/90","data-testid":"link-lip-contact",children:[r.jsx(Dr,{className:"h-4 w-4"}),"Start Free Consultation"]})})})]})]})})})]}),r.jsx(Ce,{})]})}const fU=[{icon:xg,title:"Benefits Appeals",desc:"PIP, Universal Credit, ESA, and other benefits decisions — we help you challenge wrong decisions."},{icon:Ge,title:"Debt Advice",desc:"Understanding your debts, creditor rights, enforcement actions, and options to manage or clear debt."},{icon:Ze,title:"Universal Credit Issues",desc:"Sanctions, overpayments, housing element disputes, and mandatory reconsiderations."},{icon:Mt,title:"Housing Benefit",desc:"Local Housing Allowance calculations, Housing Benefit decisions, and challenges to reductions."},{icon:qe,title:"Employment & Pay",desc:"Unpaid wages, minimum wage breaches, statutory sick pay, and redundancy entitlements."},{icon:_e,title:"Consumer Rights",desc:"Faulty goods, contract disputes, unfair terms, and claiming refunds from businesses."},{icon:Rt,title:"Healthcare Access",desc:"Challenging NHS decisions, access to services, and NHS continuing healthcare funding disputes."},{icon:Ge,title:"Grant & Fund Access",desc:"Information about emergency funds, charitable grants, and financial assistance available."}],gU=[{name:"Citizens Advice",desc:"Free benefits, debt, and legal information.",contact:"citizensadvice.org.uk"},{name:"StepChange",desc:"Free debt advice and management support.",contact:"0800 138 1111"},{name:"National Debtline",desc:"Free debt helpline.",contact:"0808 808 4000"},{name:"Turn2us",desc:"Benefits calculator and grant finder.",contact:"turn2us.org.uk"},{name:"Shelter",desc:"Free housing and homelessness advice.",contact:"0808 800 4444"}];function xU(){const e=Gi();return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Low-Income Legal Support UK – Benefits, Debt and Affordable Legal Help",description:"Affordable legal support for people on low incomes. Benefits appeals, debt advice, Universal Credit help, and employment rights at £50/hour with free 15-min consultation.",keywords:"low income legal help UK, benefits appeal UK, debt advice UK, Universal Credit help UK, legal aid support UK, free legal help UK, affordable legal advice UK, benefits tribunal UK, PIP appeal UK, ESA appeal UK",canonicalUrl:"https://thenationalcommunitylawproject.com/low-income-support"}),r.jsx(Ne,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"bg-gradient-to-b from-primary/5 to-background py-16 md:py-24",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[r.jsxs("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full bg-primary/10 px-4 py-2 text-sm font-semibold text-primary",children:[r.jsx(Rt,{className:"h-4 w-4"}),"Low-Income Legal Support"]}),r.jsx("h1",{className:"mb-6 text-4xl font-bold tracking-tighter sm:text-5xl md:text-6xl",children:"Legal Help for People on Low Incomes"}),r.jsxs("p",{className:"mb-8 text-xl text-muted-foreground",children:["Access to justice should not depend on your income. We provide affordable community legal support at ",r.jsx("strong",{children:"£50/hour"})," — and we're committed to helping those who need it most. Your first ",r.jsx("strong",{children:"15 minutes are free"}),"."]}),r.jsx(Ki,{count:e,label:"people supported through financial hardship",className:"mb-8"}),r.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:justify-center",children:[r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"inline-flex h-12 items-center justify-center rounded-md bg-primary px-8 text-sm font-medium text-primary-foreground shadow hover:bg-primary/90","data-testid":"link-lowincome-consultation",children:["Free 15-Min Consultation ",r.jsx(st,{className:"ml-2 h-4 w-4"})]})}),r.jsx(Q,{href:"/pricing",children:r.jsx("a",{className:"inline-flex h-12 items-center justify-center rounded-md border border-input bg-background px-8 text-sm font-medium hover:bg-accent","data-testid":"link-lowincome-pricing",children:"View Our Pricing"})})]})]})})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container px-4 md:px-6",children:[r.jsxs("div",{className:"mb-12 text-center",children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Areas We Help With"}),r.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"From benefits appeals to debt advice, we cover the issues that matter most to people on low incomes."})]}),r.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-4",children:fU.map(t=>{const n=t.icon;return r.jsxs("div",{className:"rounded-xl border bg-card p-6 shadow-sm","data-testid":`card-lowincome-${t.title.toLowerCase().replace(/\s+&?\s*/g,"-")}`,children:[r.jsx("div",{className:"mb-4 flex h-10 w-10 items-center justify-center rounded-lg bg-primary/10 text-primary",children:r.jsx(n,{className:"h-5 w-5","aria-hidden":"true"})}),r.jsx("h3",{className:"mb-2 font-semibold",children:t.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t.desc})]},t.title)})})]})}),r.jsx("section",{className:"bg-muted/30 py-16 md:py-20",children:r.jsx("div",{className:"container px-4 md:px-6",children:r.jsxs("div",{className:"mx-auto max-w-4xl grid gap-12 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Free Resources Too"}),r.jsx("p",{className:"mb-6 text-muted-foreground",children:"We always signpost you to free resources where they exist. Here are some key services:"}),r.jsx("ul",{className:"space-y-4",role:"list",children:gU.map(t=>r.jsxs("li",{className:"rounded-xl border bg-card p-4 shadow-sm",children:[r.jsx("p",{className:"font-semibold",children:t.name}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t.desc}),r.jsx("p",{className:"mt-1 text-xs font-medium text-primary",children:t.contact})]},t.name))})]}),r.jsxs("div",{children:[r.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tighter",children:"Why £50/Hour Makes a Difference"}),r.jsx("div",{className:"space-y-4",children:[{q:"Isn't that still expensive?",a:"We understand £50/hour still feels significant on a low income. Many issues are resolved 
529in 1-2 hours. Compare this to legal costs of £200-£500/hour with a solicitor."},{q:"What if I genuinely can't afford it?",a:"We'll always try to help signpost you to free services. We also encourage applications to local charities and community funds that may help with legal costs."},{q:"Is the free 15 minutes really free?",a:"Yes, absolutely. The first 15-minute consultation is completely free with no obligation."}].map(({q:t,a:n})=>r.jsxs("div",{className:"rounded-xl border bg-card p-5 shadow-sm",children:[r.jsx("p",{className:"mb-2 font-semibold",children:t}),r.jsx("p",{className:"text-sm text-muted-foreground",children:n})]},t))}),r.jsx("div",{className:"mt-6",children:r.jsx(Q,{href:"/contact",children:r.jsxs("a",{className:"flex w-full items-center justify-center gap-2 rounded-md bg-primary px-6 py-3 text-sm font-medium text-primary-foreground hover:bg-primary/90","data-testid":"link-lowincome-contact",children:[r.jsx(Dr,{className:"h-4 w-4"}),"Get Free Consultation"]})})})]})]})})})]}),r.jsx(Ce,{})]})}var cc=e=>e.type==="checkbox",xi=e=>e instanceof Date,tn=e=>e==null;const PS=e=>typeof e=="object";var jt=e=>!tn(e)&&!Array.isArray(e)&&PS(e)&&!xi(e),yU=e=>jt(e)&&e.target?cc(e.target)?e.target.checked:e.target.value:e,vU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,wU=(e,t)=>e.has(vU(t)),bU=e=>{const t=e.constructor&&e.constructor.prototype;return jt(t)&&t.hasOwnProperty("isPrototypeOf")},Sx=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Wt(e){let t;const n=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Sx&&(e instanceof Blob||s))&&(n||jt(e)))if(t=n?[]:{},!n&&!bU(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Wt(e[i]));else return e;return t}var om=e=>Array.isArray(e)?e.filter(Boolean):[],kt=e=>e===void 0,oe=(e,t,n)=>{if(!t||!jt(e))return n;const s=om(t.split(/[,[\].]+?/)).reduce((i,a)=>tn(i)?i:i[a],e);return kt(s)||s===e?kt(e[t])?n:e[t]:s},jr=e=>typeof e=="boolean",Ex=e=>/^\w*$/.test(e),_S=e=>om(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Je=(e,t,n)=>{let s=-1;const i=Ex(t)?[t]:_S(t),a=i.length,o=a-1;for(;++s<a;){const l=i[s];let c=n;if(s!==o){const u=e[l];c=jt(u)||Array.isArray(u)?u:isNaN(+i[s+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const Rw={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},sr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Hr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};Ie.createContext(null);var jU=(e,t,n,s=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==sr.all&&(t._proxyFormState[o]=!s||sr.all),e[o]}});return i},Pr=e=>typeof e=="string",NU=(e,t,n,s,i)=>Pr(e)?(s&&t.watch.add(e),oe(n,e,i)):Array.isArray(e)?e.map(a=>(s&&t.watch.add(a),oe(n,a))):(s&&(t.watchAll=!0),n),AS=(e,t,n,s,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:i||!0}}:{},al=e=>Array.isArray(e)?e:[e],Iw=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},af=e=>tn(e)||!PS(e);function ks(e,t){if(af(e)||af(t))return e===t;if(xi(e)&&xi(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const i of n){const a=e[i];if(!s.includes(i))return!1;if(i!=="ref"){const o=t[i];if(xi(a)&&xi(o)||jt(a)&&jt(o)||Array.isArray(a)&&Array.isArray(o)?!ks(a,o):a!==o)return!1}}return!0}var Jt=e=>jt(e)&&!Object.keys(e).length,Tx=e=>e.type==="file",ir=e=>typeof e=="function",td=e=>{if(!Sx)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},RS=e=>e.type==="select-multiple",Px=e=>e.type==="radio",kU=e=>Px(e)||cc(e),fh=e=>td(e)&&e.isConnected;function CU(e,t){const n=t.slice(0,-1).length;let s=0;for(;s<n;)e=kt(e)?s++:e[t[s++]];return e}function SU(e){for(const t in e)if(e.hasOwnProperty(t)&&!kt(e[t]))return!1;return!0}function St(e,t){const n=Array.isArray(t)?t:Ex(t)?[t]:_S(t),s=n.length===1?e:CU(e,n),i=n.length-1,a=n[i];return s&&delete s[a],i!==0&&(jt(s)&&Jt(s)||Array.isArray(s)&&SU(s))&&St(e,n.slice(0,-1)),e}var IS=e=>{for(const t in e)if(ir(e[t]))return!0;return!1};
vendor: 6,147 bytes, line 529
529function nd(e,t={}){const n=Array.isArray(e);if(jt(e)||n)for(const s in e)Array.isArray(e[s])||jt(e[s])&&!IS(e[s])?(t[s]=Array.isArray(e[s])?[]:{},nd(e[s],t[s])):tn(e[s])||(t[s]=!0);return t}function LS(e,t,n){const s=Array.isArray(e);if(jt(e)||s)for(const i in e)Array.isArray(e[i])||jt(e[i])&&!IS(e[i])?kt(t)||af(n[i])?n[i]=Array.isArray(e[i])?nd(e[i],[]):{...nd(e[i])}:LS(e[i],tn(t)?{}:t[i],n[i]):n[i]=!ks(e[i],t[i]);return n}var Do=(e,t)=>LS(e,t,nd(t));const Lw={value:!1,isValid:!1},Ow={value:!0,isValid:!0};var OS=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&&!kt(e[0].attributes.value)?kt(e[0].value)||e[0].value===""?Ow:{value:e[0].value,isValid:!0}:Ow:Lw}return Lw},MS=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>kt(e)?e:t?e===""?NaN:e&&+e:n&&Pr(e)?new Date(e):s?s(e):e;const Mw={isValid:!1,value:null};var DS=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Mw):Mw;function Dw(e){const t=e.ref;return Tx(t)?t.files:Px(t)?DS(e.refs).value:RS(t)?[...t.selectedOptions].map(({value:n})=>n):cc(t)?OS(e.refs).value:MS(kt(t.value)?e.ref.value:t.value,e)}var EU=(e,t,n,s)=>{const i={};for(const a of e){const o=oe(t,a);o&&Je(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:s}},rd=e=>e instanceof RegExp,Fo=e=>kt(e)?e:rd(e)?e.source:jt(e)?rd(e.value)?e.value.source:e.value:e,Fw=e=>({isOnSubmit:!e||e===sr.onSubmit,isOnBlur:e===sr.onBlur,isOnChange:e===sr.onChange,isOnAll:e===sr.all,isOnTouch:e===sr.onTouched});const zw="AsyncFunction";var TU=e=>!!e&&!!e.validate&&!!(ir(e.validate)&&e.validate.constructor.name===zw||jt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===zw)),PU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Uw=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const ol=(e,t,n,s)=>{for(const i of n||Object.keys(e)){const a=oe(e,i);if(a){const{_f:o,...l}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!s)return!0;if(o.ref&&t(o.ref,o.name)&&!s)return!0;if(ol(l,t))break}else if(jt(l)&&ol(l,t))break}}};function Ww(e,t,n){const s=oe(e,n);if(s||Ex(n))return{error:s,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=oe(t,a),l=oe(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(l&&l.type)return{name:a,error:l};i.pop()}return{name:n}}var _U=(e,t,n,s)=>{n(e);const{name:i,...a}=e;return Jt(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!s||sr.all))},AU=(e,t,n)=>!e||!t||e===t||al(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s))),RU=(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,IU=(e,t)=>!om(oe(e,t)).length&&St(e,t),LU=(e,t,n)=>{const s=al(oe(e,n));return Je(s,"root",t[n]),Je(e,n,s),e},du=e=>Pr(e);function $w(e,t,n="validate"){if(du(e)||Array.isArray(e)&&e.every(du)||jr(e)&&!e)return{type:n,message:du(e)?e:"",ref:t}}var na=e=>jt(e)&&!rd(e)?e:{value:e,message:""},Bw=async(e,t,n,s,i,a)=>{const{ref:o,refs:l,required:c,maxLength:u,minLength:d,min:m,max:h,pattern:p,validate:v,name:f,valueAsNumber:b,mount:g}=e._f,x=oe(n,f);if(!g||t.has(f))return{};const w=l?l[0]:o,j=L=>{i&&w.reportValidity&&(w.setCustomValidity(jr(L)?"":L||""),w.reportValidity())},k={},N=Px(o),T=cc(o),R=N||T,O=(b||Tx(o))&&kt(o.value)&&kt(x)||td(o)&&o.value===""||x===""||Array.isArray(x)&&!x.length,S=AS.bind(null,f,s,k),F=(L,B,z,G=Hr.maxLength,Z=Hr.minLength)=>{const ee=L?B:z;k[f]={type:L?G:Z,message:ee,ref:o,...S(L?G:Z,ee)}};if(a?!Array.isArray(x)||!x.length:c&&(!R&&(O||tn(x))||jr(x)&&!x||T&&!OS(l).isValid||N&&!DS(l).isValid)){const{value:L,message:B}=du(c)?{value:!!c,message:c}:na(c);if(L&&(k[f]={type:Hr.required,message:B,ref:w,...S(Hr.required,B)},!s))return j(B),k}if(!O&&(!tn(m)||!tn(h))){let L,B;const z=na(h),G=na(m);if(!tn(x)&&!isNaN(x)){const Z=o.valueAsNumber||x&&+x;tn(z.value)||(L=Z>z.value),tn(G.value)||(B=Z<G.value)}else{const Z=o.valueAsDate||new Date(x),ee=C=>new Date(new Date().toDateString()+" "+C),D=o.type=="time",q=o.type=="week";Pr(z.value)&&x&&(L=D?ee(x)>ee(z.value):q?x>z.value:Z>new Date(z.value)),Pr(G.value)&&x&&(B=D?ee(x)<ee(G.value):q?x<G.value:Z<new Date(G.value))}if((L||B)&&(F(!!L,z.message,G.message,Hr.max,Hr.min),!s))return j(k[f].message),k}if((u||d)&&!O&&(Pr(x)||a&&Array.isArray(x))){const L=na(u),B=na(d),z=!tn(L.value)&&x.length>+L.value,G=!tn(B.value)&&x.length<+B.value;if((z||G)&&(F(z,L.message,B.message),!s))return j(k[f].message),k}if(p&&!O&&Pr(x)){const{value:L,message:B}=na(p);if(rd(L)&&!x.match(L)&&(k[f]={type:Hr.pattern,message:B,ref:o,...S(Hr.pattern,B)},!s))return j(B),k}if(v){if(ir(v)){const L=await v(x,n),B=$w(L,w);if(B&&(k[f]={...B,...S(Hr.validate,B.message)},!s))return j(B.message),k}else if(jt(v)){let L={};for(const B in v){if(!Jt(L)&&!s)break;const z=$w(await v[B](x,n),w,B);z&&(L={...z,...S(B,z.message)},j(z.message),s&&(k[f]=L))}if(!Jt(L)&&(k[f]={ref:w,...L},!s))return k}}return j(!0),k};const OU={mode:sr.onSubmit,reValidateMode:sr.onChange,shouldFocusError:!0};function MU(e={}){let t={...OU,...e},n={submitCount:0,isDirty:!1,isLoading:ir(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1};const s={};let i=jt(t.defaultValues)||jt(t.values)?Wt(t.values||t.defaultValues)||{}:{},a=t.shouldUnregister?{}:Wt(i),o={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...d};const h={array:Iw(),state:Iw()},p=Fw(t.mode),v=Fw(t.reValidateMode),f=t.criteriaMode===sr.all,b=P=>M=>{clearTimeout(u),u=setTimeout(P,M)},g=async P=>{if(!t.disabled&&(d.isValid||m.isValid||P)){const M=t.resolver?Jt((await O()).errors):await F(s,!0);M!==n.isValid&&h.state.next({isValid:M})}},x=(P,M)=>
vendor: 10,375 bytes, line 529
529{!t.disabled&&(d.isValidating||d.validatingFields||m.isValidating||m.validatingFields)&&((P||Array.from(l.mount)).forEach(U=>{U&&(M?Je(n.validatingFields,U,M):St(n.validatingFields,U))}),h.state.next({validatingFields:n.validatingFields,isValidating:!Jt(n.validatingFields)}))},w=(P,M=[],U,te,A=!0,I=!0)=>{if(te&&U&&!t.disabled){if(o.action=!0,I&&Array.isArray(oe(s,P))){const H=U(oe(s,P),te.argA,te.argB);A&&Je(s,P,H)}if(I&&Array.isArray(oe(n.errors,P))){const H=U(oe(n.errors,P),te.argA,te.argB);A&&Je(n.errors,P,H),IU(n.errors,P)}if((d.touchedFields||m.touchedFields)&&I&&Array.isArray(oe(n.touchedFields,P))){const H=U(oe(n.touchedFields,P),te.argA,te.argB);A&&Je(n.touchedFields,P,H)}(d.dirtyFields||m.dirtyFields)&&(n.dirtyFields=Do(i,a)),h.state.next({name:P,isDirty:B(P,M),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Je(a,P,M)},j=(P,M)=>{Je(n.errors,P,M),h.state.next({errors:n.errors})},k=P=>{n.errors=P,h.state.next({errors:n.errors,isValid:!1})},N=(P,M,U,te)=>{const A=oe(s,P);if(A){const I=oe(a,P,kt(U)?oe(i,P):U);kt(I)||te&&te.defaultChecked||M?Je(a,P,M?I:Dw(A._f)):Z(P,I),o.mount&&g()}},T=(P,M,U,te,A)=>{let I=!1,H=!1;const se={name:P};if(!t.disabled){if(!U||te){(d.isDirty||m.isDirty)&&(H=n.isDirty,n.isDirty=se.isDirty=B(),I=H!==se.isDirty);const we=ks(oe(i,P),M);H=!!oe(n.dirtyFields,P),we?St(n.dirtyFields,P):Je(n.dirtyFields,P,!0),se.dirtyFields=n.dirtyFields,I=I||(d.dirtyFields||m.dirtyFields)&&H!==!we}if(U){const we=oe(n.touchedFields,P);we||(Je(n.touchedFields,P,U),se.touchedFields=n.touchedFields,I=I||(d.touchedFields||m.touchedFields)&&we!==U)}I&&A&&h.state.next(se)}return I?se:{}},R=(P,M,U,te)=>{const A=oe(n.errors,P),I=(d.isValid||m.isValid)&&jr(M)&&n.isValid!==M;if(t.delayError&&U?(c=b(()=>j(P,U)),c(t.delayError)):(clearTimeout(u),c=null,U?Je(n.errors,P,U):St(n.errors,P)),(U?!ks(A,U):A)||!Jt(te)||I){const H={...te,...I&&jr(M)?{isValid:M}:{},errors:n.errors,name:P};n={...n,...H},h.state.next(H)}},O=async P=>{x(P,!0);const M=await t.resolver(a,t.context,EU(P||l.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return x(P),M},S=async P=>{const{errors:M}=await O(P);if(P)for(const U of P){const te=oe(M,U);te?Je(n.errors,U,te):St(n.errors,U)}else n.errors=M;return M},F=async(P,M,U={valid:!0})=>{for(const te in P){const A=P[te];if(A){const{_f:I,...H}=A;if(I){const se=l.array.has(I.name),we=A._f&&TU(A._f);we&&d.validatingFields&&x([te],!0);const Xe=await Bw(A,l.disabled,a,f,t.shouldUseNativeValidation&&!M,se);if(we&&d.validatingFields&&x([te]),Xe[I.name]&&(U.valid=!1,M))break;!M&&(oe(Xe,I.name)?se?LU(n.errors,Xe,I.name):Je(n.errors,I.name,Xe[I.name]):St(n.errors,I.name))}!Jt(H)&&await F(H,M,U)}}return U.valid},L=()=>{for(const P of l.unMount){const M=oe(s,P);M&&(M._f.refs?M._f.refs.every(U=>!fh(U)):!fh(M._f.ref))&&et(P)}l.unMount=new Set},B=(P,M)=>!t.disabled&&(P&&M&&Je(a,P,M),!ks(Ee(),i)),z=(P,M,U)=>NU(P,l,{...o.mount?a:kt(M)?i:Pr(P)?{[P]:M}:M},U,M),G=P=>om(oe(o.mount?a:i,P,t.shouldUnregister?oe(i,P,[]):[])),Z=(P,M,U={})=>{const te=oe(s,P);let A=M;if(te){const I=te._f;I&&(!I.disabled&&Je(a,P,MS(M,I)),A=td(I.ref)&&tn(M)?"":M,RS(I.ref)?[...I.ref.options].forEach(H=>H.selected=A.includes(H.value)):I.refs?cc(I.ref)?I.refs.length>1?I.refs.forEach(H=>(!H.defaultChecked||!H.disabled)&&(H.checked=Array.isArray(A)?!!A.find(se=>se===H.value):A===H.value)):I.refs[0]&&(I.refs[0].checked=!!A):I.refs.forEach(H=>H.checked=H.value===A):Tx(I.ref)?I.ref.value="":(I.ref.value=A,I.ref.type||h.state.next({name:P,values:Wt(a)})))}(U.shouldDirty||U.shouldTouch)&&T(P,A,U.shouldTouch,U.shouldDirty,!0),U.shouldValidate&&de(P)},ee=(P,M,U)=>{for(const te in M){const A=M[te],I=`${P}.${te}`,H=oe(s,I);(l.array.has(P)||jt(A)||H&&!H._f)&&!xi(A)?ee(I,A,U):Z(I,A,U)}},D=(P,M,U={})=>{const te=oe(s,P),A=l.array.has(P),I=Wt(M);Je(a,P,I),A?(h.array.next({name:P,values:Wt(a)}),(d.isDirty||d.dirtyFields||m.isDirty||m.dirtyFields)&&U.shouldDirty&&h.state.next({name:P,dirtyFields:Do(i,a),isDirty:B(P,I)})):te&&!te._f&&!tn(I)?ee(P,I,U):Z(P,I,U),Uw(P,l)&&h.state.next({...n}),h.state.next({name:o.mount?P:void 0,values:Wt(a)})},q=async P=>{o.mount=!0;const M=P.target;let U=M.name,te=!0;const A=oe(s,U),I=H=>{te=Number.isNaN(H)||xi(H)&&isNaN(H.getTime())||ks(H,oe(a,U,H))};if(A){let H,se;const we=M.type?Dw(A._f):yU(P),Xe=P.type===Rw.BLUR||P.type===Rw.FOCUS_OUT,Wr=!PU(A._f)&&!t.resolver&&!oe(n.errors,U)&&!A._f.deps||RU(Xe,oe(n.touchedFields,U),n.isSubmitted,v,p),xn=Uw(U,l,Xe);Je(a,U,we),Xe?(A._f.onBlur&&A._f.onBlur(P),c&&c(0)):A._f.onChange&&A._f.onChange(P);const $r=T(U,we,Xe),ii=!Jt($r)||xn;if(!Xe&&h.state.next({name:U,type:P.type,values:Wt(a)}),Wr)return(d.isValid||m.isValid)&&(t.mode==="onBlur"?Xe&&g():Xe||g()),ii&&h.state.next({name:U,...xn?{}:$r});if(!Xe&&xn&&h.state.next({...n}),t.resolver){const{errors:Ft}=await O([U]);if(I(we),te){const ms=Ww(n.errors,s,U),Rn=Ww(Ft,s,ms.name||U);H=Rn.error,U=Rn.name,se=Jt(Ft)}}else x([U],!0),H=(await Bw(A,l.disabled,a,f,t.shouldUseNativeValidation))[U],x([U]),I(we),te&&(H?se=!1:(d.isValid||m.isValid)&&(se=await F(s,!0)));te&&(A._f.deps&&de(A._f.deps),R(U,se,H,$r))}},C=(P,M)=>{if(oe(n.errors,M)&&P.focus)return P.focus(),1},de=async(P,M={})=>{let U,te;const A=al(P);if(t.resolver){const I=await S(kt(P)?P:A);U=Jt(I),te=P?!A.some(H=>oe(I,H)):U}else P?(te=(await Promise.all(A.map(async I=>{const H=oe(s,I);return await F(H&&H._f?{[I]:H}:H)}))).every(Boolean),!(!te&&!n.isValid)&&g()):te=U=await F(s);return h.state.next({...!Pr(P)||(d.isValid||m.isValid)&&U!==n.isValid?{}:{name:P},...t.resolver||!P?{isValid:U}:{},errors:n.errors}),M.shouldFocus&&!te&&ol(s,C,P?A:l.mount),te},Ee=P=>{const M={...o.mount?a:i};return kt(P)?M:Pr(P)?oe(M,P):P.map(U=>oe(M,U))},E=(P,M)=>({invalid:!!oe((M||n).errors,P),isDirty:!!oe((M||n).dirtyFields,P),error:oe((M||n).errors,P),isValidating:!!oe(n.validatingFields,P),isTouched:!!oe((M||n).touchedFields,P)}),Be=P=>{P&&al(P).forEach(M=>St(n.errors,M)),h.state.next({errors:P?n.errors:{}})},wt=(P,M,U)=>{const te=(oe(s,P,{_f:{}})._f||{}).ref,A=oe(n.errors,P)||{},{ref:I,message:H,type:se,...we}=A;Je(n.errors,P,{...we,...M,ref:te}),h.state.next({name:P,errors:n.errors,isValid:!1}),U&&U.shouldFocus&&te&&te.focus&&te.focus()},ze=(P,M)=>ir(P)?h.state.subscribe({next:U=>P(z(void 0,M),U)}):z(P,M,!0),me=P=>h.state.subscribe({next:M=>{AU(P.name,M.name,P.exact)&&_U(M,P.formState||d,Ur,P.reRenderRoot)&&P.callback({values:{...a},...n,...M})}}).unsubscribe,De=P=>(o.mount=!0,m={...m,...P.formState},me({...P,formState:m})),et=(P,M={})=>{for(const U of P?al(P):l.mount)l.mount.delete(U),l.array.delete(U),M.keepValue||(St(s,U),St(a,U)),!M.keepError&&St(n.errors,U),!M.keepDirty&&St(n.dirtyFields,U),!M.keepTouched&&St(n.touchedFields,U),!M.keepIsValidating&&St(n.validatingFields,U),!t.shouldUnregister&&!M.keepDefaultValue&&St(i,U);h.state.next({values:Wt(a)}),h.state.next({...n,...M.keepDirty?{isDirty:B()}:{}}),!M.keepIsValid&&g()},Fe=({disabled:P,name:M})=>{(jr(P)&&o.mount||P||l.disabled.has(M))&&(P?l.disabled.add(M):l.disabled.delete(M))},Le=(P,M={})=>{let U=oe(s,P);const te=jr(M.disabled)||jr(t.disabled);return Je(s,P,{...U||{},_f:{...U&&U._f?U._f:{ref:{name:P}},name:P,mount:!0,...M}}),l.mount.add(P),U?Fe({disabled:jr(M.disabled)?M.disabled:t.disabled,name:P}):N(P,!0,M.value),{...te?{disabled:M.disabled||t.disabled}:{},...t.progressive?{required:!!M.required,min:Fo(M.min),max:Fo(M.max),minLength:Fo(M.minLength),maxLength:Fo(M.maxLength),pattern:Fo(M.pattern)}:{},name:P,onChange:q,onBlur:q,ref:A=>{if(A){Le(P,M),U=oe(s,P);const I=kt(A.value)&&A.querySelectorAll&&A.querySelectorAll("input,select,textarea")[0]||A,H=kU(I),se=U._f.refs||[];if(H?se.find(we=>we===I):I===U._f.ref)return;Je(s,P,{_f:{...U._f,...H?{refs:[...se.filter(fh),I,...Array.isArray(oe(i,P))?[{}]:[]],ref:{type:I.type,name:P}}:{ref:I}}}),N(P,!1,void 0,I)}else U=oe(s,P,{}),U._f&&(U._f.mount=!1),(t.shouldUnregister||M.shouldUnregister)&&!(wU(l.array,P)&&o.action)&&l.unMount.add(P)}}},He=()=>t.shouldFocusError&&ol(s,C,l.mount),It=P=>{jr(P)&&(h.state.next({disabled:P}),ol(s,(M,U)=>{const te=oe(s,U);te&&(M.disabled=te._f.disabled||P,Array.isArray(te._f.refs)&&te._f.refs.forEach(A=>{A.disabled=te._f.disabled||P}))},0,!1))},Zt=(P,M)=>async U=>{let te;U&&(U.preventDefault&&U.preventDefault(),U.persist&&U.persist());let A=Wt(a);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:I,values:H}=await O();n.errors=I,A=H}else await F(s);if(l.disabled.size)for(const I of l.disabled)Je(A,I,void 0);if(St(n.errors,"root"),Jt(n.errors)){h.state.next({errors:{}});try{await P(A,U)}catch(I){te=I}}else M&&await M({...n.errors},U),He(),setTimeout(He);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Jt(n.errors)&&!te,submitCount:n.submitCount+1,errors:n.errors}),te)throw te},yr=(P,M={})=>{oe(s,P)&&(kt(M.defaultValue)?D(P,Wt(oe(i,P))):(D(P,M.defaultValue),Je(i,P,Wt(M.defaultValue))),M.keepTouched||St(n.touchedFields,P),M.keepDirty||(St(n.dirtyFields,P),n.isDirty=M.defaultValue?B(P,Wt(oe(i,P))):B()),M.keepError||(St(n.errors,P),d.isValid&&g()),h.state.next({...n}))},Yn=(P,M={})=>{const U=P?Wt(P):i,te=Wt(U),A=Jt(P),I=A?i:te;if(M.keepDefaultValues||(i=U),!M.keepValues){if(M.keepDirtyValues){const H=new Set([...l.mount,...Object.keys(Do(i,a))]);for(const se of Array.from(H))oe(n.dirtyFields,se)?Je(I,se,oe(a,se)):D(se,oe(I,se))}else{if(Sx&&kt(P))for(const H of l.mount){const se=oe(s,H);if(se&&se._f){const we=Array.isArray(se._f.refs)?se._f.refs[0]:se._f.ref;if(td(we)){const Xe=we.closest("form");if(Xe){Xe.reset();break}}}}for(const H of l.mount)D(H,oe(I,H))}a=Wt(I),h.array.next({values:{...I}}),h.state.next({values:{...I}})}l={mount:M.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!M.keepIsValid||!!M.keepDirtyValues,o.watch=!!t.shouldUnregister,h.state.next({submitCount:M.keepSubmitCount?n.submitCount:0,isDirty:A?!1:M.keepDirty?n.isDirty:!!(M.keepDefaultValues&&!ks(P,i)),isSubmitted:M.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:A?{}:M.keepDirtyValues?M.keepDefaultValues&&a?Do(i,a):n.dirtyFields:M.keepDefaultValues&&P?Do(i,P):M.keepDirty?n.dirtyFields:{},touchedFields:M.keepTouched?n.touchedFields:{},errors:M.keepErrors?n.errors:{},isSubmitSuccessful:M.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Zn=(P,M)=>Yn(ir(P)?P(a):P,M),jo=(P,M={})=>{const U=oe(s,P),te=U&&U._f;if(te){const A=te.refs?te.refs[0]:te.ref;
vendor: 11,687 bytes, line 529
529A.focus&&(A.focus(),M.shouldSelect&&ir(A.select)&&A.select())}},Ur=P=>{n={...n,...P}},dc={control:{register:Le,unregister:et,getFieldState:E,handleSubmit:Zt,setError:wt,_subscribe:me,_runSchema:O,_getWatch:z,_getDirty:B,_setValid:g,_setFieldArray:w,_setDisabledField:Fe,_setErrors:k,_getFieldArray:G,_reset:Yn,_resetDefaultValues:()=>ir(t.defaultValues)&&t.defaultValues().then(P=>{Zn(P,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:L,_disableForm:It,_subjects:h,_proxyFormState:d,get _fields(){return s},get _formValues(){return a},get _state(){return o},set _state(P){o=P},get _defaultValues(){return i},get _names(){return l},set _names(P){l=P},get _formState(){return n},get _options(){return t},set _options(P){t={...t,...P}}},subscribe:De,trigger:de,register:Le,handleSubmit:Zt,watch:ze,setValue:D,getValues:Ee,reset:Zn,resetField:yr,clearErrors:Be,unregister:et,setError:wt,setFocus:jo,getFieldState:E};return{...dc,formControl:dc}}function DU(e={}){const t=Ie.useRef(void 0),n=Ie.useRef(void 0),[s,i]=Ie.useState({isDirty:!1,isValidating:!1,isLoading:ir(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ir(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...e.formControl?e.formControl:MU(e),formState:s},e.formControl&&e.defaultValues&&!ir(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));const a=t.current.control;return a._options=e,Ie.useLayoutEffect(()=>a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0}),[a]),Ie.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),Ie.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==s.isDirty&&a._subjects.state.next({isDirty:o})}},[a,s.isDirty]),Ie.useEffect(()=>{e.values&&!ks(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[e.values,a]),Ie.useEffect(()=>{e.errors&&!Jt(e.errors)&&a._setErrors(e.errors)},[e.errors,a]),Ie.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),Ie.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=jU(s,a),t.current}const Hw=(e,t,n)=>{if(e&&"reportValidity"in e){const s=oe(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},FS=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?Hw(s.ref,n,e):s.refs&&s.refs.forEach(i=>Hw(i,n,e))}},FU=(e,t)=>{t.shouldUseNativeValidation&&FS(e,t);const n={};for(const s in e){const i=oe(t.fields,s),a=Object.assign(e[s]||{},{ref:i&&i.ref});if(zU(t.names||Object.keys(e),s)){const o=Object.assign({},oe(n,s));Je(o,"root",a),Je(n,s,o)}else Je(n,s,a)}return n},zU=(e,t)=>e.some(n=>n.startsWith(t+"."));var UU=function(e,t){for(var n={};e.length;){var s=e[0],i=s.code,a=s.message,o=s.path.join(".");if(!n[o])if("unionErrors"in s){var l=s.unionErrors[0].errors[0];n[o]={message:l.message,type:l.code}}else n[o]={message:a,type:i};if("unionErrors"in s&&s.unionErrors.forEach(function(d){return d.errors.forEach(function(m){return e.push(m)})}),t){var c=n[o].types,u=c&&c[s.code];n[o]=AS(o,t,n,i,u?[].concat(u,s.message):s.message)}e.shift()}return n},WU=function(e,t,n){return n===void 0&&(n={}),function(s,i,a){try{return Promise.resolve(function(o,l){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(u){return a.shouldUseNativeValidation&&FS({},a),{errors:{},values:n.raw?s:u}})}catch(u){return l(u)}return c&&c.then?c.then(void 0,l):c}(0,function(o){if(function(l){return Array.isArray(l==null?void 0:l.errors)}(o))return{values:{},errors:FU(UU(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}},We;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(l=>typeof i[i[l]]!="number"),o={};for(const l of a)o[l]=i[l];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function s(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=s,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(We||(We={}));var of;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(of||(of={}));const re=We.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Yr=e=>{switch(typeof e){case"undefined":return re.undefined;case"string":return re.string;case"number":return isNaN(e)?re.nan:re.number;case"boolean":return re.boolean;case"function":return re.function;case"bigint":return re.bigint;case"symbol":return re.symbol;case"object":return Array.isArray(e)?re.array:e===null?re.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?re.promise:typeof Map<"u"&&e instanceof Map?re.map:typeof Set<"u"&&e instanceof Set?re.set:typeof Date<"u"&&e instanceof Date?re.date:re.object;default:return re.unknown}},V=We.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),$U=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Sn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},s={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let l=s,c=0;for(;c<o.path.length;){const u=o.path[c];c===o.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(n(o))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}};return i(this),s}static assert(t){if(!(t instanceof Sn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,We.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},s=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):s.push(t(i));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}Sn.create=e=>new Sn(e);const ro=(e,t)=>{let n;switch(e.code){case V.invalid_type:e.received===re.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case V.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,We.jsonStringifyReplacer)}`;break;case V.unrecognized_keys:n=`Unrecognized key(s) in object: ${We.joinValues(e.keys,", ")}`;break;case V.invalid_union:n="Invalid input";break;case V.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${We.joinValues(e.options)}`;break;case V.invalid_enum_value:n=`Invalid enum value. Expected ${We.joinValues(e.options)}, received '${e.received}'`;break;case V.invalid_arguments:n="Invalid function arguments";break;case V.invalid_return_type:n="Invalid function return type";break;case V.invalid_date:n="Invalid date";break;case V.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:We.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case V.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case V.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case V.custom:n="Invalid input";break;case V.invalid_intersection_types:n="Intersection results could not be merged";break;case V.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case V.not_finite:n="Number must be finite";break;default:n=t.defaultError,We.assertNever(e)}return{message:n}};let zS=ro;function BU(e){zS=e}function sd(){return zS}const id=e=>{const{data:t,path:n,errorMaps:s,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let l="";const c=s.filter(u=>!!u).slice().reverse();for(const u of c)l=u(o,{data:t,defaultError:l}).message;return{...i,path:a,message:l}},HU=[];function X(e,t){const n=sd(),s=id({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ro?void 0:ro].filter(i=>!!i)});e.common.issues.push(s)}class Gt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const s=[];for(const i of n){if(i.status==="aborted")return be;i.status==="dirty"&&t.dirty(),s.push(i.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){const s=[];for(const i of n){const a=await i.key,o=await i.value;s.push({key:a,value:o})}return Gt.mergeObjectSync(t,s)}static mergeObjectSync(t,n){const s={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return be;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(s[a.value]=o.value)}return{status:t.value,value:s}}}const be=Object.freeze({status:"aborted"}),xa=e=>({status:"dirty",value:e}),sn=e=>
vendor: 6,363 bytes, line 529
529({status:"valid",value:e}),lf=e=>e.status==="aborted",cf=e=>e.status==="dirty",zi=e=>e.status==="valid",Al=e=>typeof Promise<"u"&&e instanceof Promise;function ad(e,t,n,s){if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function US(e,t,n,s,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ue;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ue||(ue={}));var Vo,qo;class Or{constructor(t,n,s,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Vw=(e,t)=>{if(zi(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Sn(e.common.issues);return this._error=n,this._error}}};function Se(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:s,description:i}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,l)=>{var c,u;const{message:d}=e;return o.code==="invalid_enum_value"?{message:d??l.defaultError}:typeof l.data>"u"?{message:(c=d??s)!==null&&c!==void 0?c:l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:(u=d??n)!==null&&u!==void 0?u:l.defaultError}},description:i}}class Re{get description(){return this._def.description}_getType(t){return Yr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Yr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Gt,ctx:{common:t.parent.common,data:t.data,parsedType:Yr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Al(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){var s;const i={common:{issues:[],async:(s=n==null?void 0:n.async)!==null&&s!==void 0?s:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yr(t)},a=this._parseSync({data:t,path:i.path,parent:i});return Vw(i,a)}"~validate"(t){var n,s;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yr(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:i});return zi(a)?{value:a.value}:{issues:i.common.issues}}catch(a){!((s=(n=a==null?void 0:a.message)===null||n===void 0?void 0:n.toLowerCase())===null||s===void 0)&&s.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:i}).then(a=>zi(a)?{value:a.value}:{issues:i.common.issues})}async parseAsync(t,n){const s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){const s={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yr(t)},i=this._parse({data:t,path:s.path,parent:s}),a=await(Al(i)?i:Promise.resolve(i));return Vw(s,a)}refine(t,n){const s=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const o=t(i),l=()=>a.addIssue({code:V.custom,...s(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(t,n){return this._refinement((s,i)=>t(s)?!0:(i.addIssue(typeof n=="function"?n(s,i):n),!1))}_refinement(t){return new gr({schema:this,typeName:ve.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ir.create(this,this._def)}nullable(){return Xs.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return dr.create(this)}promise(){return io.create(this,this._def)}or(t){return Ol.create([this,t],this._def)}and(t){return Ml.create(this,t,this._def)}transform(t){return new gr({...Se(this._def),schema:this,typeName:ve.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Wl({...Se(this._def),innerType:this,defaultValue:n,typeName:ve.ZodDefault})}brand(){return new _x({typeName:ve.ZodBranded,type:this,...Se(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new $l({...Se(this._def),innerType:this,catchValue:n,typeName:ve.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return uc.create(this,t)}readonly(){return Bl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const VU=/^c[^\s-]{8,}
vendor: 41,446 bytes, line 529
529$/i,qU=/^[0-9a-z]+$/,KU=/^[0-9A-HJKMNP-TV-Z]{26}$/i,GU=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,YU=/^[a-z0-9_-]{21}$/i,ZU=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,QU=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,XU=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,JU="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let gh;const eW=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tW=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,nW=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,rW=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,sW=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iW=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,WS="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",aW=new RegExp(`^${WS}$`);function $S(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function oW(e){return new RegExp(`^${$S(e)}$`)}function BS(e){let t=`${WS}T${$S(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function lW(e,t){return!!((t==="v4"||!t)&&eW.test(e)||(t==="v6"||!t)&&nW.test(e))}function cW(e,t){if(!ZU.test(e))return!1;try{const[n]=e.split("."),s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(s));return!(typeof i!="object"||i===null||!i.typ||!i.alg||t&&i.alg!==t)}catch{return!1}}function uW(e,t){return!!((t==="v4"||!t)&&tW.test(e)||(t==="v6"||!t)&&rW.test(e))}class ar extends Re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==re.string){const a=this._getOrReturnCtx(t);return X(a,{code:V.invalid_type,expected:re.string,received:a.parsedType}),be}const s=new Gt;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),X(i,{code:V.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),X(i,{code:V.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,l=t.data.length<a.value;(o||l)&&(i=this._getOrReturnCtx(t,i),o?X(i,{code:V.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):l&&X(i,{code:V.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),s.dirty())}else if(a.kind==="email")XU.test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"email",code:V.invalid_string,message:a.message}),s.dirty());else if(a.kind==="emoji")gh||(gh=new RegExp(JU,"u")),gh.test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"emoji",code:V.invalid_string,message:a.message}),s.dirty());else if(a.kind==="uuid")GU.test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"uuid",code:V.invalid_string,message:a.message}),s.dirty());else if(a.kind==="nanoid")YU.test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"nanoid",code:V.invalid_string,message:a.message}),s.dirty());else if(a.kind==="cuid")VU.test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"cuid",code:V.invalid_string,message:a.message}),s.dirty());else if(a.kind==="cuid2")qU.test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"cuid2",code:V.invalid_string,message:a.message}),s.dirty());else if(a.kind==="ulid")KU.test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"ulid",code:V.invalid_string,message:a.message}),s.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),X(i,{validation:"url",code:V.invalid_string,message:a.message}),s.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"regex",code:V.invalid_string,message:a.message}),s.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),X(i,{code:V.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),s.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),X(i,{code:V.invalid_string,validation:{startsWith:a.value},message:a.message}),s.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),X(i,{code:V.invalid_string,validation:{endsWith:a.value},message:a.message}),s.dirty()):a.kind==="datetime"?BS(a).test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{code:V.invalid_string,validation:"datetime",message:a.message}),s.dirty()):a.kind==="date"?aW.test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{code:V.invalid_string,validation:"date",message:a.message}),s.dirty()):a.kind==="time"?oW(a).test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{code:V.invalid_string,validation:"time",message:a.message}),s.dirty()):a.kind==="duration"?QU.test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"duration",code:V.invalid_string,message:a.message}),s.dirty()):a.kind==="ip"?lW(t.data,a.version)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"ip",code:V.invalid_string,message:a.message}),s.dirty()):a.kind==="jwt"?cW(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"jwt",code:V.invalid_string,message:a.message}),s.dirty()):a.kind==="cidr"?uW(t.data,a.version)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"cidr",code:V.invalid_string,message:a.message}),s.dirty()):a.kind==="base64"?sW.test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"base64",code:V.invalid_string,message:a.message}),s.dirty()):a.kind==="base64url"?iW.test(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{validation:"base64url",code:V.invalid_string,message:a.message}),s.dirty()):We.assertNever(a);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(i=>t.test(i),{validation:n,code:V.invalid_string,...ue.errToObj(s)})}_addCheck(t){return new ar({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ue.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ue.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ue.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ue.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ue.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ue.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ue.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ue.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ue.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ue.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ue.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ue.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ue.errToObj(t)})}datetime(t){var n,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...ue.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ue.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ue.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ue.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ue.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ue.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ue.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ue.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ue.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ue.errToObj(n)})}nonempty(t){return this.min(1,ue.errToObj(t))}trim(){return new ar({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ar({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ar({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}ar.create=e=>{var t;return new ar({checks:[],typeName:ve.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Se(e)})};function dW(e,t){const n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,i=n>s?n:s,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class Ys extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==re.number){const a=this._getOrReturnCtx(t);return X(a,{code:V.invalid_type,expected:re.number,received:a.parsedType}),be}let s;const i=new Gt;for(const a of this._def.checks)a.kind==="int"?We.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),X(s,{code:V.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(s=this._getOrReturnCtx(t,s),X(s,{code:V.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(s=this._getOrReturnCtx(t,s),X(s,{code:V.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?dW(t.data,a.value)!==0&&(s=this._getOrReturnCtx(t,s),X(s,{code:V.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),X(s,{code:V.not_finite,message:a.message}),i.dirty()):We.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ue.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ue.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ue.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ue.toString(n))}setLimit(t,n,s,i){return new Ys({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:ue.toString(i)}]})}_addCheck(t){return new Ys({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ue.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ue.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ue.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ue.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ue.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&We.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Ys.create=e=>new Ys({checks:[],typeName:ve.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Se(e)});class Zs extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==re.bigint)return this._getInvalidInput(t);let s;const i=new Gt;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(s=this._getOrReturnCtx(t,s),X(s,{code:V.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(s=this._getOrReturnCtx(t,s),X(s,{code:V.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),X(s,{code:V.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):We.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return X(n,{code:V.invalid_type,expected:re.bigint,received:n.parsedType}),be}gte(t,n){return this.setLimit("min",t,!0,ue.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ue.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ue.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ue.toString(n))}setLimit(t,n,s,i){return new Zs({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:ue.toString(i)}]})}_addCheck(t){return new Zs({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Zs.create=e=>{var t;return new Zs({checks:[],typeName:ve.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Se(e)})};class Rl extends Re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==re.boolean){const s=this._getOrReturnCtx(t);return X(s,{code:V.invalid_type,expected:re.boolean,received:s.parsedType}),be}return sn(t.data)}}Rl.create=e=>new Rl({typeName:ve.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Se(e)});class Ui extends Re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==re.date){const a=this._getOrReturnCtx(t);return X(a,{code:V.invalid_type,expected:re.date,received:a.parsedType}),be}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return X(a,{code:V.invalid_date}),be}const s=new Gt;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),X(i,{code:V.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),s.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),X(i,{code:V.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),s.dirty()):We.assertNever(a);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ui({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ue.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ue.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Ui.create=e=>new Ui({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ve.ZodDate,...Se(e)});class od extends Re{_parse(t){if(this._getType(t)!==re.symbol){const s=this._getOrReturnCtx(t);return X(s,{code:V.invalid_type,expected:re.symbol,received:s.parsedType}),be}return sn(t.data)}}od.create=e=>new od({typeName:ve.ZodSymbol,...Se(e)});class Il extends Re{_parse(t){if(this._getType(t)!==re.undefined){const s=this._getOrReturnCtx(t);return X(s,{code:V.invalid_type,expected:re.undefined,received:s.parsedType}),be}return sn(t.data)}}Il.create=e=>new Il({typeName:ve.ZodUndefined,...Se(e)});class Ll extends Re{_parse(t){if(this._getType(t)!==re.null){const s=this._getOrReturnCtx(t);return X(s,{code:V.invalid_type,expected:re.null,received:s.parsedType}),be}return sn(t.data)}}Ll.create=e=>new Ll({typeName:ve.ZodNull,...Se(e)});class so extends Re{constructor(){super(...arguments),this._any=!0}_parse(t){return sn(t.data)}}so.create=e=>new so({typeName:ve.ZodAny,...Se(e)});class Ei extends Re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return sn(t.data)}}Ei.create=e=>new Ei({typeName:ve.ZodUnknown,...Se(e)});class os extends Re{_parse(t){const n=this._getOrReturnCtx(t);return X(n,{code:V.invalid_type,expected:re.never,received:n.parsedType}),be}}os.create=e=>new os({typeName:ve.ZodNever,...Se(e)});class ld extends Re{_parse(t){if(this._getType(t)!==re.undefined){const s=this._getOrReturnCtx(t);return X(s,{code:V.invalid_type,expected:re.void,received:s.parsedType}),be}return sn(t.data)}}ld.create=e=>new ld({typeName:ve.ZodVoid,...Se(e)});class dr extends Re{_parse(t){const{ctx:n,status:s}=this._processInputParams(t),i=this._def;if(n.parsedType!==re.array)return X(n,{code:V.invalid_type,expected:re.array,received:n.parsedType}),be;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,l=n.data.length<i.exactLength.value;(o||l)&&(X(n,{code:o?V.too_big:V.too_small,minimum:l?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),s.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(X(n,{code:V.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),s.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(X(n,{code:V.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,l)=>i.type._parseAsync(new Or(n,o,n.path,l)))).then(o=>Gt.mergeArray(s,o));const a=[...n.data].map((o,l)=>i.type._parseSync(new Or(n,o,n.path,l)));return Gt.mergeArray(s,a)}get element(){return this._def.type}min(t,n){return new dr({...this._def,minLength:{value:t,message:ue.toString(n)}})}max(t,n){return new dr({...this._def,maxLength:{value:t,message:ue.toString(n)}})}length(t,n){return new dr({...this._def,exactLength:{value:t,message:ue.toString(n)}})}nonempty(t){return this.min(1,t)}}dr.create=(e,t)=>new dr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ve.ZodArray,...Se(t)});function sa(e){if(e instanceof ut){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=Ir.create(sa(s))}return new ut({...e._def,shape:()=>t})}else return e instanceof dr?new dr({...e._def,type:sa(e.element)}):e instanceof Ir?Ir.create(sa(e.unwrap())):e instanceof Xs?Xs.create(sa(e.unwrap())):e instanceof Mr?Mr.create(e.items.map(t=>sa(t))):e}class ut extends Re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=We.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==re.object){const u=this._getOrReturnCtx(t);return X(u,{code:V.invalid_type,expected:re.object,received:u.parsedType}),be}const{status:s,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof os&&this._def.unknownKeys==="strip"))for(const u in i.data)o.includes(u)||l.push(u);const c=[];for(const u of o){const d=a[u],m=i.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new Or(i,m,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof os){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of l)c.push({key:{status:"valid",value:d},value:{status:"valid",value:i.data[d]}});else if(u==="strict")l.length>0&&(X(i,{code:V.unrecognized_keys,keys:l}),s.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of l){const m=i.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new Or(i,m,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const m=await d.key,h=await d.value;u.push({key:m,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>Gt.mergeObjectSync(s,u)):Gt.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return ue.errToObj,new ut({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{var i,a,o,l;const c=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,s).message)!==null&&o!==void 0?o:s.defaultError;return n.code==="unrecognized_keys"?{message:(l=ue.errToObj(t).message)!==null&&l!==void 0?l:c}:{message:c}}}:{}})}strip(){return new ut({...this._def,unknownKeys:"strip"})}passthrough(){return new ut({...this._def,unknownKeys:"passthrough"})}extend(t){return new ut({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ut({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ve.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new ut({...this._def,catchall:t})}pick(t){const n={};return We.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(n[s]=this.shape[s])}),new ut({...this._def,shape:()=>n})}omit(t){const n={};return We.objectKeys(this.shape).forEach(s=>{t[s]||(n[s]=this.shape[s])}),new ut({...this._def,shape:()=>n})}deepPartial(){return sa(this)}partial(t){const n={};return We.objectKeys(this.shape).forEach(s=>{const i=this.shape[s];t&&!t[s]?n[s]=i:n[s]=i.optional()}),new ut({...this._def,shape:()=>n})}required(t){const n={};return We.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])n[s]=this.shape[s];else{let a=this.shape[s];for(;a instanceof Ir;)a=a._def.innerType;n[s]=a}}),new ut({...this._def,shape:()=>n})}keyof(){return HS(We.objectKeys(this.shape))}}ut.create=(e,t)=>new ut({shape:()=>e,unknownKeys:"strip",catchall:os.create(),typeName:ve.ZodObject,...Se(t)});ut.strictCreate=(e,t)=>new ut({shape:()=>e,unknownKeys:"strict",catchall:os.create(),typeName:ve.ZodObject,...Se(t)});ut.lazycreate=(e,t)=>new ut({shape:e,unknownKeys:"strip",catchall:os.create(),typeName:ve.ZodObject,...Se(t)});class Ol extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),s=this._def.options;function i(a){for(const l of a)if(l.result.status==="valid")return l.result;for(const l of a)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const o=a.map(l=>new Sn(l.ctx.common.issues));return X(n,{code:V.invalid_union,unionErrors:o}),be}if(n.common.async)return Promise.all(s.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const c of s){const u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!a&&(a={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const l=o.map(c=>new Sn(c));return X(n,{code:V.invalid_union,unionErrors:l}),be}}get options(){return this._def.options}}Ol.create=(e,t)=>new Ol({options:e,typeName:ve.ZodUnion,...Se(t)});const qr=e=>e instanceof Fl?qr(e.schema):e instanceof gr?qr(e.innerType()):e instanceof zl?[e.value]:e instanceof Qs?e.options:e instanceof Ul?We.objectValues(e.enum):e instanceof Wl?qr(e._def.innerType):e instanceof Il?[void 0]:e instanceof Ll?[null]:e instanceof Ir?[void 0,...qr(e.unwrap())]:e instanceof Xs?[null,...qr(e.unwrap())]:e instanceof _x||e instanceof Bl?qr(e.unwrap()):e instanceof $l?qr(e._def.innerType):[];class lm extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==re.object)return X(n,{code:V.invalid_type,expected:re.object,received:n.parsedType}),be;const s=this.discriminator,i=n.data[s],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(X(n,{code:V.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),be)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){const i=new Map;for(const a of n){const o=qr(a.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const l of o){if(i.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);i.set(l,a)}}return new lm({typeName:ve.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Se(s)})}}function uf(e,t){const n=Yr(e),s=Yr(t);if(e===t)return{valid:!0,data:e};if(n===re.object&&s===re.object){const i=We.objectKeys(t),a=We.objectKeys(e).filter(l=>i.indexOf(l)!==-1),o={...e,...t};for(const l of a){const c=uf(e[l],t[l]);if(!c.valid)return{valid:!1};o[l]=c.data}return{valid:!0,data:o}}else if(n===re.array&&s===re.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],l=t[a],c=uf(o,l);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return n===re.date&&s===re.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ml extends Re{_parse(t){const{status:n,ctx:s}=this._processInputParams(t),i=(a,o)=>{if(lf(a)||lf(o))return be;const l=uf(a.value,o.value);return l.valid?((cf(a)||cf(o))&&n.dirty(),{status:n.value,value:l.data}):(X(s,{code:V.invalid_intersection_types}),be)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}Ml.create=(e,t,n)=>new Ml({left:e,right:t,typeName:ve.ZodIntersection,...Se(n)});class Mr extends Re{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==re.array)return X(s,{code:V.invalid_type,expected:re.array,received:s.parsedType}),be;if(s.data.length<this._def.items.length)return X(s,{code:V.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),be;!this._def.rest&&s.data.length>this._def.items.length&&(X(s,{code:V.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...s.data].map((o,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new Or(s,o,s.path,l)):null}).filter(o=>!!o);return s.common.async?Promise.all(a).then(o=>Gt.mergeArray(n,o)):Gt.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Mr({...this._def,rest:t})}}Mr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Mr({items:e,typeName:ve.ZodTuple,rest:null,...Se(t)})};class Dl extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==re.object)return X(s,{code:V.invalid_type,expected:re.object,received:s.parsedType}),be;const i=[],a=this._def.keyType,o=this._def.valueType;for(const l in s.data)i.push({key:a._parse(new Or(s,l,s.path,l)),value:o._parse(new Or(s,s.data[l],s.path,l)),alwaysSet:l in s.data});return s.common.async?Gt.mergeObjectAsync(n,i):Gt.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof Re?new Dl({keyType:t,valueType:n,typeName:ve.ZodRecord,...Se(s)}):new Dl({keyType:ar.create(),valueType:t,typeName:ve.ZodRecord,...Se(n)})}}class cd extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==re.map)return X(s,{code:V.invalid_type,expected:re.map,received:s.parsedType}),be;const i=this._def.keyType,a=this._def.valueType,o=[...s.data.entries()].map(([l,c],u)=>({key:i._parse(new Or(s,l,s.path,[u,"key"])),value:a._parse(new Or(s,c,s.path,[u,"value"]))}));if(s.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of o){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return be;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const c of o){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return be;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}}}}cd.create=(e,t,n)=>new cd({valueType:t,keyType:e,typeName:ve.ZodMap,...Se(n)});class Wi extends Re{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==re.set)return X(s,{code:V.invalid_type,expected:re.set,received:s.parsedType}),be;const i=this._def;i.minSize!==null&&s.data.size<i.minSize.value&&(X(s,{code:V.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&s.data.size>i.maxSize.value&&(X(s,{code:V.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(c){const u=new Set;for(const d of c){if(d.status==="aborted")return be;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const l=[...s.data.values()].map((c,u)=>a._parse(new Or(s,c,s.path,u)));return s.common.async?Promise.all(l).then(c=>o(c)):o(l)}min(t,n){return new Wi({...this._def,minSize:{value:t,message:ue.toString(n)}})}max(t,n){return new Wi({...this._def,maxSize:{value:t,message:ue.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Wi.create=(e,t)=>new Wi({valueType:e,minSize:null,maxSize:null,typeName:ve.ZodSet,...Se(t)});class Pa extends Re{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==re.function)return X(n,{code:V.invalid_type,expected:re.function,received:n.parsedType}),be;function s(l,c){return id({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,sd(),ro].filter(u=>!!u),issueData:{code:V.invalid_arguments,argumentsError:c}})}function i(l,c){return id({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,sd(),ro].filter(u=>!!u),issueData:{code:V.invalid_return_type,returnTypeError:c}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof io){const l=this;return sn(async function(...c){const u=new Sn([]),d=await l._def.args.parseAsync(c,a).catch(p=>{throw u.addIssue(s(c,p)),u}),m=await Reflect.apply(o,this,d);return await l._def.returns._def.type.parseAsync(m,a).catch(p=>{throw u.addIssue(i(m,p)),u})})}else{const l=this;return sn(function(...c){const u=l._def.args.safeParse(c,a);if(!u.success)throw new Sn([s(c,u.error)]);const d=Reflect.apply(o,this,u.data),m=l._def.returns.safeParse(d,a);if(!m.success)throw new Sn([i(d,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Pa({...this._def,args:Mr.create(t).rest(Ei.create())})}returns(t){return new Pa({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new Pa({args:t||Mr.create([]).rest(Ei.create()),returns:n||Ei.create(),typeName:ve.ZodFunction,...Se(s)})}}class Fl extends Re{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Fl.create=(e,t)=>new Fl({getter:e,typeName:ve.ZodLazy,...Se(t)});class zl extends Re{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return X(n,{received:n.data,code:V.invalid_literal,expected:this._def.value}),be}return{status:"valid",value:t.data}}get value(){return this._def.value}}zl.create=(e,t)=>new zl({value:e,typeName:ve.ZodLiteral,...Se(t)});function HS(e,t){return new Qs({values:e,typeName:ve.ZodEnum,...Se(t)})}class Qs extends Re{constructor(){super(...arguments),Vo.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return X(n,{expected:We.joinValues(s),received:n.parsedType,code:V.invalid_type}),be}if(ad(this,Vo)||US(this,Vo,new Set(this._def.values)),!ad(this,Vo).has(t.data)){const n=this._getOrReturnCtx(t),s=this._def.values;return X(n,{received:n.data,code:V.invalid_enum_value,options:s}),be}return sn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Qs.create(t,{...this._def,...n})}exclude(t,n=this._def){return Qs.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}Vo=new WeakMap;Qs.create=HS;class Ul extends Re{constructor(){super(...arguments),qo.set(this,void 0)}_parse(t){const n=We.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==re.string&&s.parsedType!==re.number){const i=We.objectValues(n);return X(s,{expected:We.joinValues(i),received:s.parsedType,code:V.invalid_type}),be}if(ad(this,qo)||US(this,qo,new Set(We.getValidEnumValues(this._def.values))),!ad(this,qo).has(t.data)){const i=We.objectValues(n);return X(s,{received:s.data,code:V.invalid_enum_value,options:i}),be}return sn(t.data)}get enum(){return this._def.values}}qo=new WeakMap;Ul.create=(e,t)=>new Ul({values:e,typeName:ve.ZodNativeEnum,...Se(t)});class io extends Re{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==re.promise&&n.common.async===!1)return X(n,{code:V.invalid_type,expected:re.promise,received:n.parsedType}),be;const s=n.parsedType===re.promise?n.data:Promise.resolve(n.data);return sn(s.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}io.create=(e,t)=>new io({type:e,typeName:ve.ZodPromise,...Se(t)});class gr extends Re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ve.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:s}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{X(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(s.data,a);if(s.common.async)return Promise.resolve(o).then(async l=>{if(n.value==="aborted")return be;const c=await this._def.schema._parseAsync({data:l,path:s.path,parent:s});return c.status==="aborted"?be:c.status==="dirty"||n.value==="dirty"?xa(c.value):c});{if(n.value==="aborted")return be;const l=this._def.schema._parseSync({data:o,path:s.path,parent:s});return l.status==="aborted"?be:l.status==="dirty"||n.value==="dirty"?xa(l.value):l}}if(i.type==="refinement"){const o=l=>{const c=i.refinement(l,a);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(s.common.async===!1){const l=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return l.status==="aborted"?be:(l.status==="dirty"&&n.dirty(),o(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(l=>l.status==="aborted"?be:(l.status==="dirty"&&n.dirty(),o(l.value).then(()=>({status:n.value,value:l.value}))))}if(i.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!zi(o))return o;const l=i.transform(o.value,a);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>zi(o)?Promise.resolve(i.transform(o.value,a)).then(l=>({status:n.value,value:l})):o);We.assertNever(i)}}gr.create=(e,t,n)=>new gr({schema:e,typeName:ve.ZodEffects,effect:t,...Se(n)});gr.createWithPreprocess=(e,t,n)=>new gr({schema:t,effect:{type:"preprocess",transform:e},typeName:ve.ZodEffects,...Se(n)});class Ir extends Re{_parse(t){return this._getType(t)===re.undefined?sn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ir.create=(e,t)=>new Ir({innerType:e,typeName:ve.ZodOptional,...Se(t)});class Xs extends Re{_parse(t){return this._getType(t)===re.null?sn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Xs.create=(e,t)=>new Xs({innerType:e,typeName:ve.ZodNullable,...Se(t)});class Wl extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===re.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Wl.create=(e,t)=>new Wl({innerType:e,typeName:ve.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Se(t)});class $l extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Al(i)?i.then(a=>
vendor: 4,240 bytes, line 529
529({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Sn(s.common.issues)},input:s.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Sn(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}$l.create=(e,t)=>new $l({innerType:e,typeName:ve.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Se(t)});class ud extends Re{_parse(t){if(this._getType(t)!==re.nan){const s=this._getOrReturnCtx(t);return X(s,{code:V.invalid_type,expected:re.nan,received:s.parsedType}),be}return{status:"valid",value:t.data}}}ud.create=e=>new ud({typeName:ve.ZodNaN,...Se(e)});const mW=Symbol("zod_brand");class _x extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class uc extends Re{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?be:a.status==="dirty"?(n.dirty(),xa(a.value)):this._def.out._parseAsync({data:a.value,path:s.path,parent:s})})();{const i=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?be:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:s.path,parent:s})}}static create(t,n){return new uc({in:t,out:n,typeName:ve.ZodPipeline})}}class Bl extends Re{_parse(t){const n=this._def.innerType._parse(t),s=i=>(zi(i)&&(i.value=Object.freeze(i.value)),i);return Al(n)?n.then(i=>s(i)):s(n)}unwrap(){return this._def.innerType}}Bl.create=(e,t)=>new Bl({innerType:e,typeName:ve.ZodReadonly,...Se(t)});function qw(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function VS(e,t={},n){return e?so.create().superRefine((s,i)=>{var a,o;const l=e(s);if(l instanceof Promise)return l.then(c=>{var u,d;if(!c){const m=qw(t,s),h=(d=(u=m.fatal)!==null&&u!==void 0?u:n)!==null&&d!==void 0?d:!0;i.addIssue({code:"custom",...m,fatal:h})}});if(!l){const c=qw(t,s),u=(o=(a=c.fatal)!==null&&a!==void 0?a:n)!==null&&o!==void 0?o:!0;i.addIssue({code:"custom",...c,fatal:u})}}):so.create()}const hW={object:ut.lazycreate};var ve;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ve||(ve={}));const pW=(e,t={message:`Input not instance of ${e.name}`})=>VS(n=>n instanceof e,t),qS=ar.create,KS=Ys.create,fW=ud.create,gW=Zs.create,GS=Rl.create,xW=Ui.create,yW=od.create,vW=Il.create,wW=Ll.create,bW=so.create,jW=Ei.create,NW=os.create,kW=ld.create,CW=dr.create,SW=ut.create,EW=ut.strictCreate,TW=Ol.create,PW=lm.create,_W=Ml.create,AW=Mr.create,RW=Dl.create,IW=cd.create,LW=Wi.create,OW=Pa.create,MW=Fl.create,DW=zl.create,FW=Qs.create,zW=Ul.create,UW=io.create,Kw=gr.create,WW=Ir.create,$W=Xs.create,BW=gr.createWithPreprocess,HW=uc.create,VW=()=>qS().optional(),qW=()=>KS().optional(),KW=()=>GS().optional(),GW={string:e=>ar.create({...e,coerce:!0}),number:e=>Ys.create({...e,coerce:!0}),boolean:e=>Rl.create({...e,coerce:!0}),bigint:e=>Zs.create({...e,coerce:!0}),date:e=>Ui.create({...e,coerce:!0})},YW=be;var oi=Object.freeze({__proto__:null,defaultErrorMap:ro,setErrorMap:BU,getErrorMap:sd,makeIssue:id,EMPTY_PATH:HU,addIssueToContext:X,ParseStatus:Gt,INVA
529LID:be,DIRTY:xa,OK:sn,isAborted:lf,isDirty:cf,isValid:zi,isAsync:Al,get util(){return We},get objectUtil(){return of},ZodParsedType:re,getParsedType:Yr,ZodType:Re,datetimeRegex:BS,ZodString:ar,ZodNumber:Ys,ZodBigInt:Zs,ZodBoolean:Rl,ZodDate:Ui,ZodSymbol:od,ZodUndefined:Il,ZodNull:Ll,ZodAny:so,ZodUnknown:Ei,ZodNever:os,ZodVoid:ld,ZodArray:dr,ZodObject:ut,ZodUnion:Ol,ZodDiscriminatedUnion:lm,ZodIntersection:Ml,ZodTuple:Mr,ZodRecord:Dl,ZodMap:cd,ZodSet:Wi,ZodFunction:Pa,ZodLazy:Fl,ZodLiteral:zl,ZodEnum:Qs,ZodNativeEnum:Ul,ZodPromise:io,ZodEffects:gr,ZodTransformer:gr,ZodOptional:Ir,ZodNullable:Xs,ZodDefault:Wl,ZodCatch:$l,ZodNaN:ud,BRAND:mW,ZodBranded:_x,ZodPipeline:uc,ZodReadonly:Bl,custom:VS,Schema:Re,ZodSchema:Re,late:hW,get ZodFirstPartyTypeKind(){return ve},coerce:GW,any:bW,array:CW,bigint:gW,boolean:GS,date:xW,discriminatedUnion:PW,effect:Kw,enum:FW,function:OW,instanceof:pW,intersection:_W,lazy:MW,literal:DW,map:IW,nan:fW,nativeEnum:zW,never:NW,null:wW,nullable:$W,number:KS,object:SW,oboolean:KW,onumber:qW,optional:WW,ostring:VW,pipeline:HW,preprocess:BW,promise:UW,record:RW,set:LW,strictObject:EW,string:qS,symbol:yW,transformer:Kw,tuple:AW,undefined:vW,union:TW,unknown:jW,void:kW,NEVER:YW,ZodIssueCode:V,quotelessJson:$U,ZodError:Sn});const ZW=oi.object({fullName:oi.string().min(2,"Please enter your full name"),phone:oi.string().regex(/^(\+44\s?|0)(7\d{3}|\d{2,4})\s?\d{3,4}\s?\d{3,4}$/,"Please enter a valid UK phone number"),email:oi.string().email("Please enter a valid email address"),legalArea:oi.string().min(1,"Please select a legal area"),description:oi.string().optional(),consent:oi.boolean().refine(e=>e===!0,{message:"You must agree to be contacted"})}),QW=["Housing & Eviction","Homelessness","Family Law","Employment","Debt & Benefits","Immigration","Consumer Rights","Domestic Abuse","Something else"];function XW(){const e=new URLSearchParams(window.location.search);return{utmSource:e.get("utm_source")||void 0,utmMedium:e.get("utm_medium")||void 0,utmCampaign:e.get("utm_campaign")||void 0,utmContent:e.get("utm_content")||void 0,fbclid:e.get("fbclid")||void 0}}function JW(){const[,e]=Pd(),t=y.useRef(null),[n,s]=y.useState(""),{register:i,handleSubmit:a,formState:{errors:o}}=DU({resolver:WU(ZW),defaultValues:{consent:!1}});y.useEffect(()=>{const d="PIXEL_ID_HERE",m=document.createElement("script");m.innerHTML=`
530      !function(f,b,e,v,n,t,s)
531      {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
532      n.callMethod.apply(n,arguments):n.queue.push(arguments)};
533      if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
534      n.queue=[];t=b.createElement(e);t.async=!0;
535      t.src=v;s=b.getElementsByTagName(e)[0];
536      s.parentNode.insertBefore(t,s)}(window, document,'script',
537      'https://connect.facebook.net/en_US/fbevents.js');
538      fbq('init', '${d}');
539      fbq('track', 'PageView');
540    `,document.head.appendChild(m);const h=document.createElement("noscript");h.innerHTML=`<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=${d}&ev=PageView&noscript=1"/>`,document.body.appendChild(h)},[]);const l=EP({mutationFn:async d=>{const m=XW();return TP("POST","/api/leads",{...d,...m})},onSuccess:()=>{e("/thank-you")},onError:async d=>{var h;let m="Something went wrong. Please try again.";try{const p=await((h=d.json)==null?void 0:h.call(d));p!=null&&p.error&&(m=p.error)}catch{}s(m)}}),c=()=>{var d;(d=t.current)==null||d.scrollIntoView({behavior:"smooth"})},u=d=>{s(""),l.mutate(d)};return r.jsxs("div",{className:"min-h-screen bg-[#FAFAFA] text-[#1D1F20] font-sans",children:[r.jsx("header",{className:"bg-white border-b border-gray-200 py-4 px-6 text-center",children:r.jsx("span",{className:"text-lg font-semibold text-[#1D1F20] tracking-tight",style:{fontFamily:"Inter, sans-serif"},children:"The National Community Law Project CIC"})}),r.jsx("section",{className:"bg-gradient-to-br from-[#1a3a7a] to-[#2653A3] text-white px-4 py-12 md:py-16",children:r.jsx("div",{className:"max-w-5xl mx-auto",children:r.jsxs("div",{className:"md:grid md:grid-cols-2 md:gap-12 md:items-start",children:[r.jsxs("div",{className:"mb-8 md:mb-0 md:pt-4",children:[r.jsx("div",{className:"inline-block bg-white/15 text-white text-xs font-semibold px-3 py-1 rounded-full mb-4 tracking-wide uppercase",children:"Free 15-Minute Consultation"}),r.jsxs("h1",{className:"text-3xl md:text-4xl font-bold leading-tight mb-4",children:["Affordable Legal Support —"," ",r.jsx("span",{className:"text-yellow-300",children:"£50/hour"})]}),r.jsx("p",{className:"text-white/85 text-base md:text-lg leading-relaxed mb-6",children:"Bridging the gap between people and justice. Tell us about your situation and our team will call you back within one working day."}),r.jsxs("ul",{className:"space-y-2 text-sm text-white/80",children:[r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4 text-yellow-300 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:r.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),"No win no fee solicitor referrals"]}),r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4 text-yellow-300 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:r.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),"Case preparation by trained professionals"]}),r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4 text-yellow-300 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:r.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),"Callback within one working day"]})]})]}),r.jsxs("div",{ref:t,className:"bg-white text-[#1D1F20] rounded-xl shadow-xl p-6 md:p-8",children:[r.jsx("h2",{className:"text-lg font-bold mb-1 text-[#1D1F20]",children:"Get a free callback"}),r.jsx("p",{className:"text-sm text-gray-500 mb-5",children:"Fill in your details — we'll call you within one working day."}),r.jsxs("form",{onSubmit:a(u),noValidate:!0,className:"space-y-4",children:[r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",htmlFor:"fullName",children:["Full name ",r.jsx("span",{className:"text-red-500",children:"*"})]}),r.jsx("input",{id:"fullName","data-testid":"input-fullName",type:"text",autoComplete:"name",placeholder:"Jane Smith",...i("fullName"),className:"w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-[#2653A3] focus:border-transparent"}),o.fullName&&r.jsx("p",{className:"mt-1 text-xs text-red-600",children:o.fullName.message})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",htmlFor:"phone",children:["Phone number ",r.jsx("span",{className:"text-red-500",children:"*"})]}),r.jsx("input",{id:"phone","data-testid":"input-phone",type:"tel",autoComplete:"tel",placeholder:"07700 900000",...i("phone"),className:"w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-[#2653A3] focus:border-transparent"}),o.phone&&r.jsx("p",{className:"mt-1 text-xs text-red-600",children:o.phone.message})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",htmlFor:"email",children:["Email address ",r.jsx("span",{className:"text-red-500",children:"*"})]}),r.jsx("input",{id:"email","data-testid":"input-email",type:"email",autoComplete:"email",placeholder:"[email protected]",...i("email"),className:"w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-[#2653A3] focus:border-transparent"}),o.email&&r.jsx("p",{className:"mt-1 text-xs text-red-600",children:o.email.message})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",htmlFor:"legalArea",children:["What do you need help with? ",r.jsx("span",{className:"text-red-500",children:"*"})]}),r.jsxs("select",{id:"legalArea","data-testid":"select-legalArea",...i("legalArea"),className:"w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-[#2653A3] focus:border-transparent bg-white",defaultValue:"",children:[r.jsx("option",{value:"",disabled:!0,children:"Select an area…"}),QW.map(d=>r.jsx("option",{value:d,children:d},d))]}),o.legalArea&&r.jsx("p",{className:"mt-1 text-xs text-red-600",children:o.legalArea.message})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",htmlFor:"description",children:["Briefly describe your situation"," ",r.jsx("span",{className:"text-gray-400 font-normal",children:"(optional)"})]}),r.jsx("textarea",{id:"description","data-testid":"textarea-description",rows:3,placeholder:"A short summary helps us prepare before we call…",...i("description"),className:"w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-[#2653A3] focus:border-transparent resize-none"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("input",{id:"consent","data-testid":"checkbox-consent",type:"checkbox",...i("consent"),className:"mt-0.5 h-4 w-4 roun
540ded border-gray-300 text-[#2653A3] focus:ring-[#2653A3] flex-shrink-0"}),r.jsxs("label",{htmlFor:"consent",className:"text-xs text-gray-600 leading-relaxed",children:["I agree to be contacted by The National Community Law Project CIC about my enquiry. See our"," ",r.jsx("a",{href:"/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"underline text-[#2653A3]",children:"privacy policy"}),"."]})]}),o.consent&&r.jsx("p",{className:"text-xs text-red-600 -mt-2",children:o.consent.message}),n&&r.jsx("p",{className:"text-sm text-red-600 bg-red-50 border border-red-200 rounded-lg px-3 py-2",children:n}),r.jsx("button",{type:"submit","data-testid":"button-submit",disabled:l.isPending,className:"w-full bg-[#2653A3] hover:bg-[#1e4590] text-white font-semibold py-3 px-6 rounded-lg text-sm transition-colors disabled:opacity-60 disabled:cursor-not-allowed",children:l.isPending?"Sending…":"Request a free callback →"}),r.jsx("p",{className:"text-center text-xs text-gray-400",children:"Free 15-minute consultation · No obligation"})]})]})]})})}),r.jsx("section",{className:"bg-white border-b border-gray-100 py-8 px-4",children:r.jsx("div",{className:"max-w-5xl mx-auto grid grid-cols-2 md:grid-cols-4 gap-6 text-center",children:[{stat:"90%",label:"of the UK population lacks access to local legal aid"},{stat:"53M",label:"people without local legal aid"},{stat:"£50/hr",label:"affordable legal support — transparent pricing"},{stat:"100+",label:"team members trained annually"}].map(({stat:d,label:m})=>r.jsxs("div",{className:"flex flex-col items-center gap-1",children:[r.jsx("span",{className:"text-2xl md:text-3xl font-bold text-[#2653A3]",children:d}),r.jsx("span",{className:"text-xs text-gray-500 leading-snug max-w-[140px]",children:m})]},d))})}),r.jsx("section",{className:"py-12 px-4",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsx("h2",{className:"text-2xl font-bold text-center text-[#1D1F20] mb-2",children:"How it works"}),r.jsx("p",{className:"text-center text-gray-500 text-sm mb-10",children:"Three simple steps to getting the support you need"}),r.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:[{step:"1",title:"Get in touch",desc:"Tell us about your situation using the form above. Our team reviews every enquiry."},{step:"2",title:"Case preparation",desc:"Our trained team compiles your case facts and evidence to build the strongest picture."},{step:"3",title:"Professional referral",desc:"We connect you with qualified solicitors and barristers suited to your needs."}].map(({step:d,title:m,desc:h})=>r.jsxs("div",{className:"flex flex-col items-center text-center",children:[r.jsx("div",{className:"w-12 h-12 rounded-full bg-[#2653A3] text-white flex items-center justify-center text-lg font-bold mb-4",children:d}),r.jsx("h3",{className:"font-semibold text-base text-[#1D1F20] mb-2",children:m}),r.jsx("p",{className:"text-sm text-gray-500 leading-relaxed",children:h})]},d))})]})}),r.jsx("section",{className:"px-4 pb-8",children:r.jsx("div",{className:"max-w-3xl mx-auto bg-amber-50 border border-amber-200 rounded-xl p-5",children:r.jsxs("div",{className:"flex gap-3 items-start",children:[r.jsx("svg",{className:"w-5 h-5 text-amber-600 flex-shrink-0 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20",children:r.jsx("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-amber-900 text-sm mb-1",children:"Important"}),r.jsxs("p",{className:"text-sm text-amber-800 leading-relaxed",children:["We are ",r.jsx("strong",{children:"NOT solicitors"}),". Our service helps prepare your case and connects you with appropriate legal professionals. We do not provide legal advice."]})]})]})})}),r.jsxs("section",{className:"bg-[#2653A3] py-10 px-4 text-center text-white",children:[r.jsx("h2",{className:"text-xl font-bold mb-2",children:"Ready to get the support you deserve?"}),r.jsx("p",{className:"text-white/80 text-sm mb-6",children:"Free 15-minute c
540onsultation · Callback within one working day · £50/hour thereafter"}),r.jsx("button",{"data-testid":"button-cta-bottom",onClick:c,className:"bg-yellow-400 hover:bg-yellow-300 text-[#1D1F20] font-bold py-3 px-8 rounded-lg text-sm transition-colors",children:"Get a free callback →"})]}),r.jsxs("footer",{className:"bg-[#1D1F20] text-white/60 text-xs text-center py-6 px-4",children:[r.jsx("p",{className:"mb-1",children:"The National Community Law Project CIC"}),r.jsx("p",{children:"A Community Interest Company registered in England & Wales"}),r.jsxs("p",{className:"mt-2",children:[r.jsx("a",{href:"/privacy-policy",className:"underline hover:text-white",children:"Privacy Policy"})," · ",r.jsx("a",{href:"/terms-conditions",className:"underline hover:text-white",children:"Terms & Conditions"})]})]})]})}function e$(){return y.useEffect(()=>{const e="PIXEL_ID_HERE",t=document.createElement("script");t.innerHTML=`
541      !function(f,b,e,v,n,t,s)
542      {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
543      n.callMethod.apply(n,arguments):n.queue.push(arguments)};
544      if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
545      n.queue=[];t=b.createElement(e);t.async=!0;
546      t.src=v;s=b.getElementsByTagName(e)[0];
547      s.parentNode.insertBefore(t,s)}(window, document,'script',
548      'https://connect.facebook.net/en_US/fbevents.js');
549      fbq('init', '${e}');
550      fbq('track', 'PageView');
551      fbq('track', 'Lead');
552    `,document.head.appendChild(t);const n=document.createElement("noscript");n.innerHTML=`<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=${e}&ev=Lead&noscript=1"/>`,document.body.appendChild(n)},[]),r.jsxs("div",{className:"min-h-screen bg-[#FAFAFA] flex flex-col font-sans",children:[r.jsx("header",{className:"bg-white border-b border-gray-200 py-4 px-6 text-center",children:r.jsx("span",{className:"text-lg font-semibold text-[#1D1F20] tracking-tight",children:"The National Community Law Project CIC"})}),r.jsx("main",{className:"flex-1 flex items-center justify-center px-4 py-16",children:r.jsxs("div",{className:"max-w-md w-full text-center",children:[r.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:r.jsx("svg",{className:"w-8 h-8 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),r.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-[#1D1F20] mb-3",children:"Thanks — we've received your enquiry"}),r.jsx("p",{className:"text-gray-600 text-base leading-relaxed mb-8",children:"Our team will call you back within one working day. Please keep an eye on your phone for a call from us."}),r.jsxs("div",{className:"bg-blue-50 border border-blue-100 rounded-xl p-5 text-left mb-8",children:[r.jsx("p",{className:"text-sm font-semibold text-[#2653A3] mb-1",children:"What happens next?"}),r.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("span",{className:"text-[#2653A3] font-bold mt-0.5",children:"1."}),"Our team reviews your enquiry"]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("span",{className:"text-[#2653A3] font-bold mt-0.5",children:"2."}),"We call you within one working day"]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("span",{className:"text-[#2653A3] font-bold mt-0.5",children:"3."}),"Together we prepare your case and find the right legal professional"]})]})]}),r.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-xl p-4 text-sm text-amber-800 leading-relaxed",children:[r.jsx("strong",{children:"Reminder:"})," We are NOT solicitors. We help prepare your case and connect you with appropriate legal professionals. We do not provide legal advice."]})]})}),r.jsxs("footer",{className:"bg-[#1D1F20] text-white/60 text-xs text-center py-5 px-4",children:[r.jsx("p",{className:"mb-1",children:"The National Community Law Project CIC"}),r.jsx("p",{children:"A Community Interest Company registered in England & Wales"})]})]})}function t$(){const[e,t]=y.useState(""),[n,s]=y.useState(""),[i,a]=y.useState(""),{data:o,isLoading:l,error:c,refetch:u}=dg({queryKey:["/api/leads",n],queryFn:async()=>{const h=await fetch(`/api/leads?password=${encodeURIComponent(n)}`);if(h.status===401)throw new Error("Unauthorized");
552if(!h.ok)throw new Error("Failed to fetch");return h.json()},enabled:!!n,retry:!1}),d=h=>{h.preventDefault(),a(""),s(e)};if(c)return r.jsx("div",{className:"min-h-screen bg-[#FAFAFA] flex items-center justify-center px-4",children:r.jsxs("div",{className:"max-w-sm w-full bg-white rounded-xl shadow p-8",children:[r.jsx("h1",{className:"text-xl font-bold text-[#1D1F20] mb-6 text-center",children:"Leads — Admin Access"}),r.jsx("p",{className:"text-sm text-red-600 mb-4 text-center",children:"Incorrect password. Please try again."}),r.jsxs("form",{onSubmit:h=>{h.preventDefault(),s(e)},className:"space-y-4",children:[r.jsx("input",{type:"password","data-testid":"input-password",value:e,onChange:h=>t(h.target.value),placeholder:"Enter password",className:"w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-[#2653A3]"}),r.jsx("button",{type:"submit","data-testid":"button-login",className:"w-full bg-[#2653A3] hover:bg-[#1e4590] text-white font-semibold py-2.5 rounded-lg text-sm transition-colors",children:"Access Leads"})]})]})});if(!n||!o)return r.jsx("div",{className:"min-h-screen bg-[#FAFAFA] flex items-center justify-center px-4",children:r.jsxs("div",{className:"max-w-sm w-full bg-white rounded-xl shadow p-8",children:[r.jsx("h1",{className:"text-xl font-bold text-[#1D1F20] mb-2 text-center",children:"Leads — Admin Access"}),r.jsx("p",{className:"text-sm text-gray-500 text-center mb-6",children:"Enter your admin password to view submissions."}),r.jsxs("form",{onSubmit:d,className:"space-y-4",children:[r.jsx("input",{type:"password","data-testid":"input-password",value:e,onChange:h=>t(h.target.value),placeholder:"Enter password",autoComplete:"current-password",className:"w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-[#2653A3]"}),i&&r.jsx("p",{className:"text-xs text-red-600",children:i}),r.jsx("button",{type:"submit","data-testid":"button-login",disabled:l,className:"w-full bg-[#2653A3] hover:bg-[#1e4590] text-white font-semibold py-2.5 rounded-lg text-sm transition-colors disabled:opacity-60",children:l?"Checking…":"Access Leads"})]})]})});const m=`/api/leads/csv?password=${encodeURIComponent(n)}`;return r.jsxs("div",{className:"min-h-screen bg-[#FAFAFA]",children:[r.jsxs("header",{className:"bg-white border-b border-gray-200 px-6 py-4 flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-lg font-bold text-[#1D1F20]",children:"Lead Submissions"}),r.jsxs("p",{className:"text-xs text-gray-400",children:[o.length," total enquiries"]})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsx("button",{"data-testid":"button-refresh",onClick:()=>u(),className:"text-sm text-[#2653A3] border border-[#2653A3] px-3 py-1.5 rounded-lg hover:bg-blue-50 transition-colors",children:"Refresh"}),r.jsx("a",{href:m,download:!0,"data-testid":"link-download-csv",className:"text-sm bg-[#2653A3] text-white px-4 py-1.5 rounded-lg hover:bg-[#1e4590] transition-colors font-medium",children:"Download CSV"})]})]}),r.jsx("main",{className:"p-4 md:p-6 overflow-x-auto",children:o.length===0?r.jsxs("div",{className:"text-center py-16 text-gray-400",children:[r.jsx("p",{className:"text-lg",children:"No submissions yet"}),r.jsx("p",{className:"text-sm mt-1",children:"Leads will appear here once people fill in the form."})]}):r.jsx("div",{className:"bg-white rounded-xl shadow overflow-hidden",children:r.jsxs("table",{className:"w-full text-sm text-left min-w-[900px]",children:[r.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:r.jsx("tr",{children:["Submitted","Full Name","Phone","Email","Legal Area","Description","UTM Source","UTM Campaign","FBCLID"].map(h=>r.jsx("th",{className:"px-4 py-3 text-xs font-semibold text-gray-500 uppercase tracking-wide whitespace-nowrap",children:h},h))})}),r.jsx("tbody",{className:"divide-y divide-gray-100",children:o.map(h=>r.jsxs("tr",{"data-testid":`row-lead-${h.id}`,className:"hover:bg-gray-50",children:[r.jsx("td",{className:"px-4 py-3 whitespace-nowrap text-gray-500 text-xs",children:h.createdAt?new Date(h.createdAt).toLocaleStr
552ing("en-GB",{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}),r.jsx("td",{className:"px-4 py-3 font-medium text-[#1D1F20] whitespace-nowrap",children:h.fullName}),r.jsx("td",{className:"px-4 py-3 whitespace-nowrap",children:r.jsx("a",{href:`tel:${h.phone}`,className:"text-[#2653A3] hover:underline",children:h.phone})}),r.jsx("td",{className:"px-4 py-3 whitespace-nowrap",children:r.jsx("a",{href:`mailto:${h.email}`,className:"text-[#2653A3] hover:underline",children:h.email})}),r.jsx("td",{className:"px-4 py-3 whitespace-nowrap",children:r.jsx("span",{className:"bg-blue-50 text-[#2653A3] text-xs px-2 py-0.5 rounded-full font-medium",children:h.legalArea})}),r.jsx("td",{className:"px-4 py-3 text-gray-600 max-w-[200px] truncate",children:h.description||r.jsx("span",{className:"text-gray-300",children:"—"})}),r.jsx("td",{className:"px-4 py-3 text-gray-500 whitespace-nowrap text-xs",children:h.utmSource||"—"}),r.jsx("td",{className:"px-4 py-3 text-gray-500 whitespace-nowrap text-xs",children:h.utmCampaign||"—"}),r.jsx("td",{className:"px-4 py-3 text-gray-500 whitespace-nowrap text-xs max-w-[120px] truncate",children:h.fbclid||"—"})]},h.id))})]})})})]})}function n$(){return r.jsxs("div",{className:"flex min-h-screen flex-col",children:[r.jsx(ke,{title:"Page Not Found",description:"The page you're looking for doesn't exist. Return to The National Community Law Project CIC homepage to find what you need."}),r.jsx(Ne,{}),r.jsx("main",{className:"flex flex-1 items-center justify-center py-16",children:r.jsx("div",{className:"mx-auto max-w-lg px-4 text-center",children:r.jsx(W,{children:r.jsxs($,{className:"py-12",children:[r.jsx("div",{className:"mb-6 text-6xl font-bold text-primary",children:"404"}),r.jsx("h1",{className:"mb-3 text-2xl font-bold","data-testid":"text-not-found-title",children:"Page Not Found"}),r.jsx("p",{className:"mb-8 text-muted-foreground",children:"Sorry, we couldn't find the page you're looking for. It may have been moved or no longer exists."}),r.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[r.jsx(Q,{href:"/",children:r.jsxs(pe,{className:"gap-2","data-testid":"button-go-home",children:[r.jsx(Mt,{className:"h-4 w-4"}),"Go to Homepage"]})}),r.jsxs(pe,{variant:"outline",onClick:()=>window.history.back(),className:"gap-2","data-testid":"button-go-back",children:[r.jsx(Ep,{className:"h-4 w-4"}),"Go Back"]})]})]})})})}),r.jsx(Ce,{})]})}function r$(){return o3(),r.jsxs(YT,{children:[r.jsx(je,{path:"/",component:I6}),r.jsx(je,{path:"/about",component:O6}),r.jsx(je,{path:"/services",component:D6}),r.jsx(je,{path:"/support-areas",component:z6}),r.jsx(je,{path:"/team",component:G6}),r.jsx(je,{path:"/join",component:TI}),r.jsx(je,{path:"/contact",component:AI}),r.jsx(je,{path:"/legal-professions",component:QI}),r.jsx(je,{path:"/legal-system",component:tL}),r.jsx(je,{path:"/mock-training",component:kL}),r.jsx(je,{path:"/how-we-support",component:TL}),r.jsx(je,{path:"/complaint-management",component:IL}),r.jsx(je,{path:"/business-services",component:zL}),r.jsx(je,{path:"/privacy-policy",component:UL}),r.jsx(je,{path:"/cookie-policy",component:WL}),r.jsx(je,{path:"/terms-conditions",component:$L}),r.jsx(je,{path:"/service-terms",component:BL}),r.jsx(je,{path:"/data-retention",component:HL}),r.jsx(je,{path:"/legal-disclaimer",component:KL}),r.jsx(je,{path:"/complaints-policy",component:YL}),r.jsx(je,{path:"/equality-diversity",component:QL}),r.jsx(je,{path:"/safeguarding",component:XL}),r.jsx(je,{path:"/accessibility",component:eO}),r.jsx(je,{path:"/service-scope",component:rO}),r.jsx(je,{path:"/third-party-disclaimer",component:sO}),r.jsx(je,{path:"/policies",component:lO}),r.jsx(je,{path:"/pricing",component:dO}),r.jsx(je,{path:"/neurodivergence-club",component:mO}),r.jsx(je,{path:"/disability-rights-club",component:hO}),r.jsx(je,{path:"/financial-genius-club",component:pO}),r.jsx(je,{path:"/gallery",component:eM}),r.jsx(je,{path:"/legal-guides",component:nM}),r.jsx(je,{path:"/legal-guides/:slug",component:Y7}),r.jsx(je,{path:"/legal-help-hub",component:X7}),r.jsx(je,{path:"/vulnerable-people",component:tU}),r.jsx(je,{path:"/equality-act",component:sU}),r.jsx(je,{path:"/fraud-scam-awareness",component:oU}),r.jsx(je,{path:"/housing-protection",component:uU}),r.jsx(je,{path:"/litigants-in-person",component:pU}),r.jsx(je,{path:"/low-income-support",component:xU}),r.jsx(je,{path:"/get-help",component:JW}),r.jsx(je,{path:"/thank-you",component:e$}),r.jsx(je,{path:"/leads",component:t$}),r.jsx(je,{component:n$})]})}function s$(){return y.useEffect(()=>{console.warn("Missing Google Analytics Measurement ID")},[]),r.jsx(fP,{client:_P,children:r.jsxs(i3,{children:[r.jsx(RA,{}),r.jsx(r$,{})]})})}yj(document.getElementById("root")).render(r.jsx(s$,{}));

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.