var f1=t=>{throw TypeError(t)};var K3=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports);var Dp=(t,n,r)=>n.has(t)||f1("Cannot "+r);var re=(t,n,r)=>(Dp(t,n,"read from private field"),r?r.call(t):n.get(t)),Ke=(t,n,r)=>n.has(t)?f1("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),Ie=(t,n,r,i)=>(Dp(t,n,"write to private field"),i?i.call(t,r):n.set(t,r),r),lt=(t,n,r)=>(Dp(t,n,"access private method"),r);var Gd=(t,n,r,i)=>({set _(s){Ie(t,n,s,r)},get _(){return re(t,n,i)}});var nne=K3((_ne,zu)=>{function G3(t,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in t)){const a=Object.getOwnPropertyDescriptor(i,s);a&&Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();var Qd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ki(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ip={exports:{}},gc={},Rp={exports:{}},dt={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var m1;function Q3(){if(m1)return dt;m1=1;var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.iterator;function p(T){return T===null||typeof T!="object"?null:(T=m&&T[m]||T["@@iterator"],typeof T=="function"?T:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,j={};function y(T,V,L){this.props=T,this.context=V,this.refs=j,this.updater=L||g}y.prototype.isReactComponent={},y.prototype.setState=function(T,V){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,V,"setState")},y.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function x(){}x.prototype=y.prototype;function N(T,V,L){this.props=T,this.context=V,this.refs=j,this.updater=L||g}var w=N.prototype=new x;w.constructor=N,b(w,y.prototype),w.isPureReactComponent=!0;var k=Array.isArray,A=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(T,V,L){var X,J={},W=null,G=null;if(V!=null)for(X in V.ref!==void 0&&(G=V.ref),V.key!==void 0&&(W=""+V.key),V)A.call(V,X)&&!E.hasOwnProperty(X)&&(J[X]=V[X]);var ee=arguments.length-2;if(ee===1)J.children=L;else if(1<ee){for(var ne=Array(ee),le=0;le<ee;le++)ne[le]=arguments[le+2];J.children=ne}if(T&&T.defaultProps)for(X in ee=T.defaultProps,ee)J[X]===void 0&&(J[X]=ee[X]);return{$$typeof:t,type:T,key:W,ref:G,props:J,_owner:S.current}}function B(T,V){return{$$typeof:t,type:T.type,key:V,ref:T.ref,props:T.props,_owner:T._owner}}function D(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function F(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(L){return V[L]})}var R=/\/+/g;function z(T,V){return typeof T=="object"&&T!==null&&T.key!=null?F(""+T.key):V.toString(36)}function q(T,V,L,X,J){var W=typeof T;(W==="undefined"||W==="boolean")&&(T=null);var G=!1;if(T===null)G=!0;else switch(W){case"string":case"number":G=!0;break;case"object":switch(T.$$typeof){case t:case n:G=!0}}if(G)return G=T,J=J(G),T=X===""?"."+z(G,0):X,k(J)?(L="",T!=null&&(L=T.replace(R,"$&/")+"/"),q(J,V,L,"",function(le){return le})):J!=null&&(D(J)&&(J=B(J,L+(!J.key||G&&G.key===J.key?"":(""+J.key).replace(R,"$&/")+"/")+T)),V.push(J)),1;if(G=0,X=X===""?".":X+":",k(T))for(var ee=0;ee<T.length;ee++){W=T[ee];var ne=X+z(W,ee);G+=q(W,V,L,ne,J)}else if(ne=p(T),typeof ne=="function")for(T=ne.call(T),ee=0;!(W=T.next()).done;)W=W.value,ne=X+z(W,ee++),G+=q(W,V,L,ne,J);else if(W==="object")throw V=String(T),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return G}function U(T,V,L){if(T==null)return T;var X=[],J=0;return q(T,X,"","",function(W){return V.call(L,W,J++)}),X}function Q(T){if(T._status===-1){var V=T._result;V=V(),V.then(function(L){(T._status===0||T._status===-1)&&(T._status=1,T._result=L)},function(L){(T._status===0||T._status===-1)&&(T._status=2,T._result=L)}),T._status===-1&&(T._status=0,T._result=V)}if(T._status===1)return T._result.default;throw T._result}var H={current:null},K={transition:null},Y={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:K,ReactCurrentOwner:S};function O(){throw Error("act(...) is not supported in production builds of React.")}return dt.Children={map:U,forEach:function(T,V,L){U(T,function(){V.apply(this,arguments)},L)},count:function(T){var V=0;return U(T,function(){V++}),V},toArray:function(T){return U(T,function(V){return V})||[]},only:function(T){if(!D(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},dt.Component=y,dt.Fragment=r,dt.Profiler=s,dt.PureComponent=N,dt.StrictMode=i,dt.Suspense=d,dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,dt.act=O,dt.cloneElement=function(T,V,L){if(T==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+T+".");var X=b({},T.props),J=T.key,W=T.ref,G=T._owner;if(V!=null){if(V.ref!==void 0&&(W=V.ref,G=S.current),V.key!==void 0&&(J=""+V.key),T.type&&T.type.defaultProps)var ee=T.type.defaultProps;for(ne in V)A.call(V,ne)&&!E.hasOwnProperty(ne)&&(X[ne]=V[ne]===void 0&&ee!==void 0?ee[ne]:V[ne])}var ne=arguments.length-2;if(ne===1)X.children=L;else if(1<ne){ee=Array(ne);for(var le=0;le<ne;le++)ee[le]=arguments[le+2];X.children=ee}return{$$typeof:t,type:T.type,key:J,ref:W,props:X,_owner:G}},dt.createContext=function(T){return T={$$typeof:o,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},T.Provider={$$typeof:a,_context:T},T.Consumer=T},dt.createElement=C,dt.createFactory=function(T){var V=C.bind(null,T);return V.type=T,V},dt.createRef=function(){return{current:null}},dt.forwardRef=function(T){return{$$typeof:c,render:T}},dt.isValidElement=D,dt.lazy=function(T){return{$$typeof:f,_payload:{_status:-1,_result:T},_init:Q}},dt.memo=function(T,V){return{$$typeof:h,type:T,compare:V===void 0?null:V}},dt.startTransition=function(T){var V=K.transition;K.transition={};try{T()}finally{K.transition=V}},dt.unstable_act=O,dt.useCallback=function(T,V){return H.current.useCallback(T,V)},dt.useContext=function(T){return H.current.useContext(T)},dt.useDebugValue=function(){},dt.useDeferredValue=function(T){return H.current.useDeferredValue(T)},dt.useEffect=function(T,V){return H.current.useEffect(T,V)},dt.useId=function(){return H.current.useId()},dt.useImperativeHandle=function(T,V,L){return H.current.useImperativeHandle(T,V,L)},dt.useInsertionEffect=function(T,V){return H.current.useInsertionEffect(T,V)},dt.useLayoutEffect=function(T,V){return H.current.useLayoutEffect(T,V)},dt.useMemo=function(T,V){return H.current.useMemo(T,V)},dt.useReducer=function(T,V,L){return H.current.useReducer(T,V,L)},dt.useRef=function(T){return H.current.useRef(T)},dt.useState=function(T){return H.current.useState(T)},dt.useSyncExternalStore=function(T,V,L){return H.current.useSyncExternalStore(T,V,L)},dt.useTransition=function(){return H.current.useTransition()},dt.version="18.3.1",dt}var p1;function bu(){return p1||(p1=1,Rp.exports=Q3()),Rp.exports}/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var g1;function Y3(){if(g1)return gc;g1=1;var t=bu(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(c,d,h){var f,m={},p=null,g=null;h!==void 0&&(p=""+h),d.key!==void 0&&(p=""+d.key),d.ref!==void 0&&(g=d.ref);for(f in d)i.call(d,f)&&!a.hasOwnProperty(f)&&(m[f]=d[f]);if(c&&c.defaultProps)for(f in d=c.defaultProps,d)m[f]===void 0&&(m[f]=d[f]);return{$$typeof:n,type:c,key:p,ref:g,props:m,_owner:s.current}}return gc.Fragment=r,gc.jsx=o,gc.jsxs=o,gc}var x1;function X3(){return x1||(x1=1,Ip.exports=Y3()),Ip.exports}var e=X3(),I=bu();const Pt=ki(I),Xy=G3({__proto__:null,default:Pt},[I]);var Yd={},Fp={exports:{}},Qn={},Mp={exports:{}},Lp={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var y1;function J3(){return y1||(y1=1,(function(t){function n(K,Y){var O=K.length;K.push(Y);e:for(;0<O;){var T=O-1>>>1,V=K[T];if(0<s(V,Y))K[T]=Y,K[O]=V,O=T;else break e}}function r(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var Y=K[0],O=K.pop();if(O!==Y){K[0]=O;e:for(var T=0,V=K.length,L=V>>>1;T<L;){var X=2*(T+1)-1,J=K[X],W=X+1,G=K[W];if(0>s(J,O))W<V&&0>s(G,J)?(K[T]=G,K[W]=O,T=W):(K[T]=J,K[X]=O,T=X);else if(W<V&&0>s(G,O))K[T]=G,K[W]=O,T=W;else break e}}return Y}function s(K,Y){var O=K.sortIndex-Y.sortIndex;return O!==0?O:K.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,c=o.now();t.unstable_now=function(){return o.now()-c}}var d=[],h=[],f=1,m=null,p=3,g=!1,b=!1,j=!1,y=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(K){for(var Y=r(h);Y!==null;){if(Y.callback===null)i(h);else if(Y.startTime<=K)i(h),Y.sortIndex=Y.expirationTime,n(d,Y);else break;Y=r(h)}}function k(K){if(j=!1,w(K),!b)if(r(d)!==null)b=!0,Q(A);else{var Y=r(h);Y!==null&&H(k,Y.startTime-K)}}function A(K,Y){b=!1,j&&(j=!1,x(C),C=-1),g=!0;var O=p;try{for(w(Y),m=r(d);m!==null&&(!(m.expirationTime>Y)||K&&!F());){var T=m.callback;if(typeof T=="function"){m.callback=null,p=m.priorityLevel;var V=T(m.expirationTime<=Y);Y=t.unstable_now(),typeof V=="function"?m.callback=V:m===r(d)&&i(d),w(Y)}else i(d);m=r(d)}if(m!==null)var L=!0;else{var X=r(h);X!==null&&H(k,X.startTime-Y),L=!1}return L}finally{m=null,p=O,g=!1}}var S=!1,E=null,C=-1,B=5,D=-1;function F(){return!(t.unstable_now()-D<B)}function R(){if(E!==null){var K=t.unstable_now();D=K;var Y=!0;try{Y=E(!0,K)}finally{Y?z():(S=!1,E=null)}}else S=!1}var z;if(typeof N=="function")z=function(){N(R)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,U=q.port2;q.port1.onmessage=R,z=function(){U.postMessage(null)}}else z=function(){y(R,0)};function Q(K){E=K,S||(S=!0,z())}function H(K,Y){C=y(function(){K(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(K){K.callback=null},t.unstable_continueExecution=function(){b||g||(b=!0,Q(A))},t.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(d)},t.unstable_next=function(K){switch(p){case 1:case 2:case 3:var Y=3;break;default:Y=p}var O=p;p=Y;try{return K()}finally{p=O}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(K,Y){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var O=p;p=K;try{return Y()}finally{p=O}},t.unstable_scheduleCallback=function(K,Y,O){var T=t.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?T+O:T):O=T,K){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=O+V,K={id:f++,callback:Y,priorityLevel:K,startTime:O,expirationTime:V,sortIndex:-1},O>T?(K.sortIndex=O,n(h,K),r(d)===null&&K===r(h)&&(j?(x(C),C=-1):j=!0,H(k,O-T))):(K.sortIndex=V,n(d,K),b||g||(b=!0,Q(A))),K},t.unstable_shouldYield=F,t.unstable_wrapCallback=function(K){var Y=p;return function(){var O=p;p=Y;try{return K.apply(this,arguments)}finally{p=O}}}})(Lp)),Lp}var v1;function Z3(){return v1||(v1=1,Mp.exports=J3()),Mp.exports}/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var b1;function eO(){if(b1)return Qn;b1=1;var t=bu(),n=Z3();function r(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,v=1;v<arguments.length;v++)u+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function a(l,u){o(l,u),o(l+"Capture",u)}function o(l,u){for(s[l]=u,l=0;l<u.length;l++)i.add(u[l])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function p(l){return d.call(m,l)?!0:d.call(f,l)?!1:h.test(l)?m[l]=!0:(f[l]=!0,!1)}function g(l,u,v,_){if(v!==null&&v.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return _?!1:v!==null?!v.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function b(l,u,v,_){if(u===null||typeof u>"u"||g(l,u,v,_))return!0;if(_)return!1;if(v!==null)switch(v.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function j(l,u,v,_,P,M,$){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=_,this.attributeNamespace=P,this.mustUseProperty=v,this.propertyName=l,this.type=u,this.sanitizeURL=M,this.removeEmptyString=$}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){y[l]=new j(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var u=l[0];y[u]=new j(u,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){y[l]=new j(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){y[l]=new j(l,2,!1,l,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(l){y[l]=new j(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){y[l]=new j(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){y[l]=new j(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){y[l]=new j(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){y[l]=new j(l,5,!1,l.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function N(l){return l[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(l){var u=l.replace(x,N);y[u]=new j(u,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var u=l.replace(x,N);y[u]=new j(u,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var u=l.replace(x,N);y[u]=new j(u,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){y[l]=new j(l,1,!1,l.toLowerCase(),null,!1,!1)}),y.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){y[l]=new j(l,1,!1,l.toLowerCase(),null,!0,!0)});function w(l,u,v,_){var P=y.hasOwnProperty(u)?y[u]:null;(P!==null?P.type!==0:_||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(b(u,v,P,_)&&(v=null),_||P===null?p(u)&&(v===null?l.removeAttribute(u):l.setAttribute(u,""+v)):P.mustUseProperty?l[P.propertyName]=v===null?P.type===3?!1:"":v:(u=P.attributeName,_=P.attributeNamespace,v===null?l.removeAttribute(u):(P=P.type,v=P===3||P===4&&v===!0?"":""+v,_?l.setAttributeNS(_,u,v):l.setAttribute(u,v))))}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),F=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),K=Symbol.iterator;function Y(l){return l===null||typeof l!="object"?null:(l=K&&l[K]||l["@@iterator"],typeof l=="function"?l:null)}var O=Object.assign,T;function V(l){if(T===void 0)try{throw Error()}catch(v){var u=v.stack.trim().match(/\n( *(at )?)/);T=u&&u[1]||""}return`
`+T+l}var L=!1;function X(l,u){if(!l||L)return"";L=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(fe){var _=fe}Reflect.construct(l,[],u)}else{try{u.call()}catch(fe){_=fe}l.call(u.prototype)}else{try{throw Error()}catch(fe){_=fe}l()}}catch(fe){if(fe&&_&&typeof fe.stack=="string"){for(var P=fe.stack.split(`
`),M=_.stack.split(`
`),$=P.length-1,te=M.length-1;1<=$&&0<=te&&P[$]!==M[te];)te--;for(;1<=$&&0<=te;$--,te--)if(P[$]!==M[te]){if($!==1||te!==1)do if($--,te--,0>te||P[$]!==M[te]){var ie=`
`+P[$].replace(" at new "," at ");return l.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",l.displayName)),ie}while(1<=$&&0<=te);break}}}finally{L=!1,Error.prepareStackTrace=v}return(l=l?l.displayName||l.name:"")?V(l):""}function J(l){switch(l.tag){case 5:return V(l.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return l=X(l.type,!1),l;case 11:return l=X(l.type.render,!1),l;case 1:return l=X(l.type,!0),l;default:return""}}function W(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case E:return"Fragment";case S:return"Portal";case B:return"Profiler";case C:return"StrictMode";case z:return"Suspense";case q:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case F:return(l.displayName||"Context")+".Consumer";case D:return(l._context.displayName||"Context")+".Provider";case R:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case U:return u=l.displayName||null,u!==null?u:W(l.type)||"Memo";case Q:u=l._payload,l=l._init;try{return W(l(u))}catch{}}return null}function G(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(u);case 8:return u===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function ee(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function ne(l){var u=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function le(l){var u=ne(l)?"checked":"value",v=Object.getOwnPropertyDescriptor(l.constructor.prototype,u),_=""+l[u];if(!l.hasOwnProperty(u)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var P=v.get,M=v.set;return Object.defineProperty(l,u,{configurable:!0,get:function(){return P.call(this)},set:function($){_=""+$,M.call(this,$)}}),Object.defineProperty(l,u,{enumerable:v.enumerable}),{getValue:function(){return _},setValue:function($){_=""+$},stopTracking:function(){l._valueTracker=null,delete l[u]}}}}function ye(l){l._valueTracker||(l._valueTracker=le(l))}function be(l){if(!l)return!1;var u=l._valueTracker;if(!u)return!0;var v=u.getValue(),_="";return l&&(_=ne(l)?l.checked?"true":"false":l.value),l=_,l!==v?(u.setValue(l),!0):!1}function Pe(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function Te(l,u){var v=u.checked;return O({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??l._wrapperState.initialChecked})}function We(l,u){var v=u.defaultValue==null?"":u.defaultValue,_=u.checked!=null?u.checked:u.defaultChecked;v=ee(u.value!=null?u.value:v),l._wrapperState={initialChecked:_,initialValue:v,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function ut(l,u){u=u.checked,u!=null&&w(l,"checked",u,!1)}function nt(l,u){ut(l,u);var v=ee(u.value),_=u.type;if(v!=null)_==="number"?(v===0&&l.value===""||l.value!=v)&&(l.value=""+v):l.value!==""+v&&(l.value=""+v);else if(_==="submit"||_==="reset"){l.removeAttribute("value");return}u.hasOwnProperty("value")?ve(l,u.type,v):u.hasOwnProperty("defaultValue")&&ve(l,u.type,ee(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(l.defaultChecked=!!u.defaultChecked)}function ge(l,u,v){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var _=u.type;if(!(_!=="submit"&&_!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+l._wrapperState.initialValue,v||u===l.value||(l.value=u),l.defaultValue=u}v=l.name,v!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,v!==""&&(l.name=v)}function ve(l,u,v){(u!=="number"||Pe(l.ownerDocument)!==l)&&(v==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+v&&(l.defaultValue=""+v))}var Se=Array.isArray;function Oe(l,u,v,_){if(l=l.options,u){u={};for(var P=0;P<v.length;P++)u["$"+v[P]]=!0;for(v=0;v<l.length;v++)P=u.hasOwnProperty("$"+l[v].value),l[v].selected!==P&&(l[v].selected=P),P&&_&&(l[v].defaultSelected=!0)}else{for(v=""+ee(v),u=null,P=0;P<l.length;P++){if(l[P].value===v){l[P].selected=!0,_&&(l[P].defaultSelected=!0);return}u!==null||l[P].disabled||(u=l[P])}u!==null&&(u.selected=!0)}}function je(l,u){if(u.dangerouslySetInnerHTML!=null)throw Error(r(91));return O({},u,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function tt(l,u){var v=u.value;if(v==null){if(v=u.children,u=u.defaultValue,v!=null){if(u!=null)throw Error(r(92));if(Se(v)){if(1<v.length)throw Error(r(93));v=v[0]}u=v}u==null&&(u=""),v=u}l._wrapperState={initialValue:ee(v)}}function et(l,u){var v=ee(u.value),_=ee(u.defaultValue);v!=null&&(v=""+v,v!==l.value&&(l.value=v),u.defaultValue==null&&l.defaultValue!==v&&(l.defaultValue=v)),_!=null&&(l.defaultValue=""+_)}function rt(l){var u=l.textContent;u===l._wrapperState.initialValue&&u!==""&&u!==null&&(l.value=u)}function xe(l){switch(l){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 _e(l,u){return l==null||l==="http://www.w3.org/1999/xhtml"?xe(u):l==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":l}var De,it=(function(l){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,v,_,P){MSApp.execUnsafeLocalFunction(function(){return l(u,v,_,P)})}:l})(function(l,u){if(l.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in l)l.innerHTML=u;else{for(De=De||document.createElement("div"),De.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=De.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;u.firstChild;)l.appendChild(u.firstChild)}});function He(l,u){if(u){var v=l.firstChild;if(v&&v===l.lastChild&&v.nodeType===3){v.nodeValue=u;return}}l.textContent=u}var kt={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},Tr=["Webkit","ms","Moz","O"];Object.keys(kt).forEach(function(l){Tr.forEach(function(u){u=u+l.charAt(0).toUpperCase()+l.substring(1),kt[u]=kt[l]})});function Un(l,u,v){return u==null||typeof u=="boolean"||u===""?"":v||typeof u!="number"||u===0||kt.hasOwnProperty(l)&&kt[l]?(""+u).trim():u+"px"}function rs(l,u){l=l.style;for(var v in u)if(u.hasOwnProperty(v)){var _=v.indexOf("--")===0,P=Un(v,u[v],_);v==="float"&&(v="cssFloat"),_?l.setProperty(v,P):l[v]=P}}var ra=O({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 bn(l,u){if(u){if(ra[l]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(r(137,l));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(r(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(r(61))}if(u.style!=null&&typeof u.style!="object")throw Error(r(62))}}function Qr(l,u){if(l.indexOf("-")===-1)return typeof u.is=="string";switch(l){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 ir=null;function Gf(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Qf=null,ro=null,io=null;function Tb(l){if(l=tc(l)){if(typeof Qf!="function")throw Error(r(280));var u=l.stateNode;u&&(u=cd(u),Qf(l.stateNode,l.type,u))}}function Pb(l){ro?io?io.push(l):io=[l]:ro=l}function Ob(){if(ro){var l=ro,u=io;if(io=ro=null,Tb(l),u)for(l=0;l<u.length;l++)Tb(u[l])}}function Db(l,u){return l(u)}function Ib(){}var Yf=!1;function Rb(l,u,v){if(Yf)return l(u,v);Yf=!0;try{return Db(l,u,v)}finally{Yf=!1,(ro!==null||io!==null)&&(Ib(),Ob())}}function Il(l,u){var v=l.stateNode;if(v===null)return null;var _=cd(v);if(_===null)return null;v=_[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(_=!_.disabled)||(l=l.type,_=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!_;break e;default:l=!1}if(l)return null;if(v&&typeof v!="function")throw Error(r(231,u,typeof v));return v}var Xf=!1;if(c)try{var Rl={};Object.defineProperty(Rl,"passive",{get:function(){Xf=!0}}),window.addEventListener("test",Rl,Rl),window.removeEventListener("test",Rl,Rl)}catch{Xf=!1}function Z6(l,u,v,_,P,M,$,te,ie){var fe=Array.prototype.slice.call(arguments,3);try{u.apply(v,fe)}catch(Ne){this.onError(Ne)}}var Fl=!1,qu=null,Vu=!1,Jf=null,eP={onError:function(l){Fl=!0,qu=l}};function tP(l,u,v,_,P,M,$,te,ie){Fl=!1,qu=null,Z6.apply(eP,arguments)}function nP(l,u,v,_,P,M,$,te,ie){if(tP.apply(this,arguments),Fl){if(Fl){var fe=qu;Fl=!1,qu=null}else throw Error(r(198));Vu||(Vu=!0,Jf=fe)}}function ia(l){var u=l,v=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,(u.flags&4098)!==0&&(v=u.return),l=u.return;while(l)}return u.tag===3?v:null}function Fb(l){if(l.tag===13){var u=l.memoizedState;if(u===null&&(l=l.alternate,l!==null&&(u=l.memoizedState)),u!==null)return u.dehydrated}return null}function Mb(l){if(ia(l)!==l)throw Error(r(188))}function rP(l){var u=l.alternate;if(!u){if(u=ia(l),u===null)throw Error(r(188));return u!==l?null:l}for(var v=l,_=u;;){var P=v.return;if(P===null)break;var M=P.alternate;if(M===null){if(_=P.return,_!==null){v=_;continue}break}if(P.child===M.child){for(M=P.child;M;){if(M===v)return Mb(P),l;if(M===_)return Mb(P),u;M=M.sibling}throw Error(r(188))}if(v.return!==_.return)v=P,_=M;else{for(var $=!1,te=P.child;te;){if(te===v){$=!0,v=P,_=M;break}if(te===_){$=!0,_=P,v=M;break}te=te.sibling}if(!$){for(te=M.child;te;){if(te===v){$=!0,v=M,_=P;break}if(te===_){$=!0,_=M,v=P;break}te=te.sibling}if(!$)throw Error(r(189))}}if(v.alternate!==_)throw Error(r(190))}if(v.tag!==3)throw Error(r(188));return v.stateNode.current===v?l:u}function Lb(l){return l=rP(l),l!==null?Bb(l):null}function Bb(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=Bb(l);if(u!==null)return u;l=l.sibling}return null}var zb=n.unstable_scheduleCallback,qb=n.unstable_cancelCallback,iP=n.unstable_shouldYield,sP=n.unstable_requestPaint,tn=n.unstable_now,aP=n.unstable_getCurrentPriorityLevel,Zf=n.unstable_ImmediatePriority,Vb=n.unstable_UserBlockingPriority,Uu=n.unstable_NormalPriority,oP=n.unstable_LowPriority,Ub=n.unstable_IdlePriority,$u=null,Yr=null;function lP(l){if(Yr&&typeof Yr.onCommitFiberRoot=="function")try{Yr.onCommitFiberRoot($u,l,void 0,(l.current.flags&128)===128)}catch{}}var Pr=Math.clz32?Math.clz32:dP,cP=Math.log,uP=Math.LN2;function dP(l){return l>>>=0,l===0?32:31-(cP(l)/uP|0)|0}var Hu=64,Wu=4194304;function Ml(l){switch(l&-l){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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function Ku(l,u){var v=l.pendingLanes;if(v===0)return 0;var _=0,P=l.suspendedLanes,M=l.pingedLanes,$=v&268435455;if($!==0){var te=$&~P;te!==0?_=Ml(te):(M&=$,M!==0&&(_=Ml(M)))}else $=v&~P,$!==0?_=Ml($):M!==0&&(_=Ml(M));if(_===0)return 0;if(u!==0&&u!==_&&(u&P)===0&&(P=_&-_,M=u&-u,P>=M||P===16&&(M&4194240)!==0))return u;if((_&4)!==0&&(_|=v&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=_;0<u;)v=31-Pr(u),P=1<<v,_|=l[v],u&=~P;return _}function hP(l,u){switch(l){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fP(l,u){for(var v=l.suspendedLanes,_=l.pingedLanes,P=l.expirationTimes,M=l.pendingLanes;0<M;){var $=31-Pr(M),te=1<<$,ie=P[$];ie===-1?((te&v)===0||(te&_)!==0)&&(P[$]=hP(te,u)):ie<=u&&(l.expiredLanes|=te),M&=~te}}function em(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function $b(){var l=Hu;return Hu<<=1,(Hu&4194240)===0&&(Hu=64),l}function tm(l){for(var u=[],v=0;31>v;v++)u.push(l);return u}function Ll(l,u,v){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-Pr(u),l[u]=v}function mP(l,u){var v=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var _=l.eventTimes;for(l=l.expirationTimes;0<v;){var P=31-Pr(v),M=1<<P;u[P]=0,_[P]=-1,l[P]=-1,v&=~M}}function nm(l,u){var v=l.entangledLanes|=u;for(l=l.entanglements;v;){var _=31-Pr(v),P=1<<_;P&u|l[_]&u&&(l[_]|=u),v&=~P}}var Et=0;function Hb(l){return l&=-l,1<l?4<l?(l&268435455)!==0?16:536870912:4:1}var Wb,rm,Kb,Gb,Qb,im=!1,Gu=[],is=null,ss=null,as=null,Bl=new Map,zl=new Map,os=[],pP="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 Yb(l,u){switch(l){case"focusin":case"focusout":is=null;break;case"dragenter":case"dragleave":ss=null;break;case"mouseover":case"mouseout":as=null;break;case"pointerover":case"pointerout":Bl.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":zl.delete(u.pointerId)}}function ql(l,u,v,_,P,M){return l===null||l.nativeEvent!==M?(l={blockedOn:u,domEventName:v,eventSystemFlags:_,nativeEvent:M,targetContainers:[P]},u!==null&&(u=tc(u),u!==null&&rm(u)),l):(l.eventSystemFlags|=_,u=l.targetContainers,P!==null&&u.indexOf(P)===-1&&u.push(P),l)}function gP(l,u,v,_,P){switch(u){case"focusin":return is=ql(is,l,u,v,_,P),!0;case"dragenter":return ss=ql(ss,l,u,v,_,P),!0;case"mouseover":return as=ql(as,l,u,v,_,P),!0;case"pointerover":var M=P.pointerId;return Bl.set(M,ql(Bl.get(M)||null,l,u,v,_,P)),!0;case"gotpointercapture":return M=P.pointerId,zl.set(M,ql(zl.get(M)||null,l,u,v,_,P)),!0}return!1}function Xb(l){var u=sa(l.target);if(u!==null){var v=ia(u);if(v!==null){if(u=v.tag,u===13){if(u=Fb(v),u!==null){l.blockedOn=u,Qb(l.priority,function(){Kb(v)});return}}else if(u===3&&v.stateNode.current.memoizedState.isDehydrated){l.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Qu(l){if(l.blockedOn!==null)return!1;for(var u=l.targetContainers;0<u.length;){var v=am(l.domEventName,l.eventSystemFlags,u[0],l.nativeEvent);if(v===null){v=l.nativeEvent;var _=new v.constructor(v.type,v);ir=_,v.target.dispatchEvent(_),ir=null}else return u=tc(v),u!==null&&rm(u),l.blockedOn=v,!1;u.shift()}return!0}function Jb(l,u,v){Qu(l)&&v.delete(u)}function xP(){im=!1,is!==null&&Qu(is)&&(is=null),ss!==null&&Qu(ss)&&(ss=null),as!==null&&Qu(as)&&(as=null),Bl.forEach(Jb),zl.forEach(Jb)}function Vl(l,u){l.blockedOn===u&&(l.blockedOn=null,im||(im=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,xP)))}function Ul(l){function u(P){return Vl(P,l)}if(0<Gu.length){Vl(Gu[0],l);for(var v=1;v<Gu.length;v++){var _=Gu[v];_.blockedOn===l&&(_.blockedOn=null)}}for(is!==null&&Vl(is,l),ss!==null&&Vl(ss,l),as!==null&&Vl(as,l),Bl.forEach(u),zl.forEach(u),v=0;v<os.length;v++)_=os[v],_.blockedOn===l&&(_.blockedOn=null);for(;0<os.length&&(v=os[0],v.blockedOn===null);)Xb(v),v.blockedOn===null&&os.shift()}var so=k.ReactCurrentBatchConfig,Yu=!0;function yP(l,u,v,_){var P=Et,M=so.transition;so.transition=null;try{Et=1,sm(l,u,v,_)}finally{Et=P,so.transition=M}}function vP(l,u,v,_){var P=Et,M=so.transition;so.transition=null;try{Et=4,sm(l,u,v,_)}finally{Et=P,so.transition=M}}function sm(l,u,v,_){if(Yu){var P=am(l,u,v,_);if(P===null)Nm(l,u,_,Xu,v),Yb(l,_);else if(gP(P,l,u,v,_))_.stopPropagation();else if(Yb(l,_),u&4&&-1<pP.indexOf(l)){for(;P!==null;){var M=tc(P);if(M!==null&&Wb(M),M=am(l,u,v,_),M===null&&Nm(l,u,_,Xu,v),M===P)break;P=M}P!==null&&_.stopPropagation()}else Nm(l,u,_,null,v)}}var Xu=null;function am(l,u,v,_){if(Xu=null,l=Gf(_),l=sa(l),l!==null)if(u=ia(l),u===null)l=null;else if(v=u.tag,v===13){if(l=Fb(u),l!==null)return l;l=null}else if(v===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;l=null}else u!==l&&(l=null);return Xu=l,null}function Zb(l){switch(l){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(aP()){case Zf:return 1;case Vb:return 4;case Uu:case oP:return 16;case Ub:return 536870912;default:return 16}default:return 16}}var ls=null,om=null,Ju=null;function ej(){if(Ju)return Ju;var l,u=om,v=u.length,_,P="value"in ls?ls.value:ls.textContent,M=P.length;for(l=0;l<v&&u[l]===P[l];l++);var $=v-l;for(_=1;_<=$&&u[v-_]===P[M-_];_++);return Ju=P.slice(l,1<_?1-_:void 0)}function Zu(l){var u=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&u===13&&(l=13)):l=u,l===10&&(l=13),32<=l||l===13?l:0}function ed(){return!0}function tj(){return!1}function sr(l){function u(v,_,P,M,$){this._reactName=v,this._targetInst=P,this.type=_,this.nativeEvent=M,this.target=$,this.currentTarget=null;for(var te in l)l.hasOwnProperty(te)&&(v=l[te],this[te]=v?v(M):M[te]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?ed:tj,this.isPropagationStopped=tj,this}return O(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=ed)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=ed)},persist:function(){},isPersistent:ed}),u}var ao={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lm=sr(ao),$l=O({},ao,{view:0,detail:0}),bP=sr($l),cm,um,Hl,td=O({},$l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hm,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==Hl&&(Hl&&l.type==="mousemove"?(cm=l.screenX-Hl.screenX,um=l.screenY-Hl.screenY):um=cm=0,Hl=l),cm)},movementY:function(l){return"movementY"in l?l.movementY:um}}),nj=sr(td),jP=O({},td,{dataTransfer:0}),wP=sr(jP),NP=O({},$l,{relatedTarget:0}),dm=sr(NP),kP=O({},ao,{animationName:0,elapsedTime:0,pseudoElement:0}),_P=sr(kP),SP=O({},ao,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),AP=sr(SP),CP=O({},ao,{data:0}),rj=sr(CP),EP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TP={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"},PP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OP(l){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(l):(l=PP[l])?!!u[l]:!1}function hm(){return OP}var DP=O({},$l,{key:function(l){if(l.key){var u=EP[l.key]||l.key;if(u!=="Unidentified")return u}return l.type==="keypress"?(l=Zu(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?TP[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hm,charCode:function(l){return l.type==="keypress"?Zu(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Zu(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),IP=sr(DP),RP=O({},td,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ij=sr(RP),FP=O({},$l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hm}),MP=sr(FP),LP=O({},ao,{propertyName:0,elapsedTime:0,pseudoElement:0}),BP=sr(LP),zP=O({},td,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),qP=sr(zP),VP=[9,13,27,32],fm=c&&"CompositionEvent"in window,Wl=null;c&&"documentMode"in document&&(Wl=document.documentMode);var UP=c&&"TextEvent"in window&&!Wl,sj=c&&(!fm||Wl&&8<Wl&&11>=Wl),aj=" ",oj=!1;function lj(l,u){switch(l){case"keyup":return VP.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cj(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var oo=!1;function $P(l,u){switch(l){case"compositionend":return cj(u);case"keypress":return u.which!==32?null:(oj=!0,aj);case"textInput":return l=u.data,l===aj&&oj?null:l;default:return null}}function HP(l,u){if(oo)return l==="compositionend"||!fm&&lj(l,u)?(l=ej(),Ju=om=ls=null,oo=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return sj&&u.locale!=="ko"?null:u.data;default:return null}}var WP={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 uj(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u==="input"?!!WP[l.type]:u==="textarea"}function dj(l,u,v,_){Pb(_),u=ad(u,"onChange"),0<u.length&&(v=new lm("onChange","change",null,v,_),l.push({event:v,listeners:u}))}var Kl=null,Gl=null;function KP(l){Ej(l,0)}function nd(l){var u=fo(l);if(be(u))return l}function GP(l,u){if(l==="change")return u}var hj=!1;if(c){var mm;if(c){var pm="oninput"in document;if(!pm){var fj=document.createElement("div");fj.setAttribute("oninput","return;"),pm=typeof fj.oninput=="function"}mm=pm}else mm=!1;hj=mm&&(!document.documentMode||9<document.documentMode)}function mj(){Kl&&(Kl.detachEvent("onpropertychange",pj),Gl=Kl=null)}function pj(l){if(l.propertyName==="value"&&nd(Gl)){var u=[];dj(u,Gl,l,Gf(l)),Rb(KP,u)}}function QP(l,u,v){l==="focusin"?(mj(),Kl=u,Gl=v,Kl.attachEvent("onpropertychange",pj)):l==="focusout"&&mj()}function YP(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return nd(Gl)}function XP(l,u){if(l==="click")return nd(u)}function JP(l,u){if(l==="input"||l==="change")return nd(u)}function ZP(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var Or=typeof Object.is=="function"?Object.is:ZP;function Ql(l,u){if(Or(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var v=Object.keys(l),_=Object.keys(u);if(v.length!==_.length)return!1;for(_=0;_<v.length;_++){var P=v[_];if(!d.call(u,P)||!Or(l[P],u[P]))return!1}return!0}function gj(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function xj(l,u){var v=gj(l);l=0;for(var _;v;){if(v.nodeType===3){if(_=l+v.textContent.length,l<=u&&_>=u)return{node:v,offset:u-l};l=_}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=gj(v)}}function yj(l,u){return l&&u?l===u?!0:l&&l.nodeType===3?!1:u&&u.nodeType===3?yj(l,u.parentNode):"contains"in l?l.contains(u):l.compareDocumentPosition?!!(l.compareDocumentPosition(u)&16):!1:!1}function vj(){for(var l=window,u=Pe();u instanceof l.HTMLIFrameElement;){try{var v=typeof u.contentWindow.location.href=="string"}catch{v=!1}if(v)l=u.contentWindow;else break;u=Pe(l.document)}return u}function gm(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u&&(u==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||u==="textarea"||l.contentEditable==="true")}function e3(l){var u=vj(),v=l.focusedElem,_=l.selectionRange;if(u!==v&&v&&v.ownerDocument&&yj(v.ownerDocument.documentElement,v)){if(_!==null&&gm(v)){if(u=_.start,l=_.end,l===void 0&&(l=u),"selectionStart"in v)v.selectionStart=u,v.selectionEnd=Math.min(l,v.value.length);else if(l=(u=v.ownerDocument||document)&&u.defaultView||window,l.getSelection){l=l.getSelection();var P=v.textContent.length,M=Math.min(_.start,P);_=_.end===void 0?M:Math.min(_.end,P),!l.extend&&M>_&&(P=_,_=M,M=P),P=xj(v,M);var $=xj(v,_);P&&$&&(l.rangeCount!==1||l.anchorNode!==P.node||l.anchorOffset!==P.offset||l.focusNode!==$.node||l.focusOffset!==$.offset)&&(u=u.createRange(),u.setStart(P.node,P.offset),l.removeAllRanges(),M>_?(l.addRange(u),l.extend($.node,$.offset)):(u.setEnd($.node,$.offset),l.addRange(u)))}}for(u=[],l=v;l=l.parentNode;)l.nodeType===1&&u.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<u.length;v++)l=u[v],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var t3=c&&"documentMode"in document&&11>=document.documentMode,lo=null,xm=null,Yl=null,ym=!1;function bj(l,u,v){var _=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;ym||lo==null||lo!==Pe(_)||(_=lo,"selectionStart"in _&&gm(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),Yl&&Ql(Yl,_)||(Yl=_,_=ad(xm,"onSelect"),0<_.length&&(u=new lm("onSelect","select",null,u,v),l.push({event:u,listeners:_}),u.target=lo)))}function rd(l,u){var v={};return v[l.toLowerCase()]=u.toLowerCase(),v["Webkit"+l]="webkit"+u,v["Moz"+l]="moz"+u,v}var co={animationend:rd("Animation","AnimationEnd"),animationiteration:rd("Animation","AnimationIteration"),animationstart:rd("Animation","AnimationStart"),transitionend:rd("Transition","TransitionEnd")},vm={},jj={};c&&(jj=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function id(l){if(vm[l])return vm[l];if(!co[l])return l;var u=co[l],v;for(v in u)if(u.hasOwnProperty(v)&&v in jj)return vm[l]=u[v];return l}var wj=id("animationend"),Nj=id("animationiteration"),kj=id("animationstart"),_j=id("transitionend"),Sj=new Map,Aj="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 cs(l,u){Sj.set(l,u),a(u,[l])}for(var bm=0;bm<Aj.length;bm++){var jm=Aj[bm],n3=jm.toLowerCase(),r3=jm[0].toUpperCase()+jm.slice(1);cs(n3,"on"+r3)}cs(wj,"onAnimationEnd"),cs(Nj,"onAnimationIteration"),cs(kj,"onAnimationStart"),cs("dblclick","onDoubleClick"),cs("focusin","onFocus"),cs("focusout","onBlur"),cs(_j,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xl="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(" "),i3=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xl));function Cj(l,u,v){var _=l.type||"unknown-event";l.currentTarget=v,nP(_,u,void 0,l),l.currentTarget=null}function Ej(l,u){u=(u&4)!==0;for(var v=0;v<l.length;v++){var _=l[v],P=_.event;_=_.listeners;e:{var M=void 0;if(u)for(var $=_.length-1;0<=$;$--){var te=_[$],ie=te.instance,fe=te.currentTarget;if(te=te.listener,ie!==M&&P.isPropagationStopped())break e;Cj(P,te,fe),M=ie}else for($=0;$<_.length;$++){if(te=_[$],ie=te.instance,fe=te.currentTarget,te=te.listener,ie!==M&&P.isPropagationStopped())break e;Cj(P,te,fe),M=ie}}}if(Vu)throw l=Jf,Vu=!1,Jf=null,l}function Lt(l,u){var v=u[Em];v===void 0&&(v=u[Em]=new Set);var _=l+"__bubble";v.has(_)||(Tj(u,l,2,!1),v.add(_))}function wm(l,u,v){var _=0;u&&(_|=4),Tj(v,l,_,u)}var sd="_reactListening"+Math.random().toString(36).slice(2);function Jl(l){if(!l[sd]){l[sd]=!0,i.forEach(function(v){v!=="selectionchange"&&(i3.has(v)||wm(v,!1,l),wm(v,!0,l))});var u=l.nodeType===9?l:l.ownerDocument;u===null||u[sd]||(u[sd]=!0,wm("selectionchange",!1,u))}}function Tj(l,u,v,_){switch(Zb(u)){case 1:var P=yP;break;case 4:P=vP;break;default:P=sm}v=P.bind(null,u,v,l),P=void 0,!Xf||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(P=!0),_?P!==void 0?l.addEventListener(u,v,{capture:!0,passive:P}):l.addEventListener(u,v,!0):P!==void 0?l.addEventListener(u,v,{passive:P}):l.addEventListener(u,v,!1)}function Nm(l,u,v,_,P){var M=_;if((u&1)===0&&(u&2)===0&&_!==null)e:for(;;){if(_===null)return;var $=_.tag;if($===3||$===4){var te=_.stateNode.containerInfo;if(te===P||te.nodeType===8&&te.parentNode===P)break;if($===4)for($=_.return;$!==null;){var ie=$.tag;if((ie===3||ie===4)&&(ie=$.stateNode.containerInfo,ie===P||ie.nodeType===8&&ie.parentNode===P))return;$=$.return}for(;te!==null;){if($=sa(te),$===null)return;if(ie=$.tag,ie===5||ie===6){_=M=$;continue e}te=te.parentNode}}_=_.return}Rb(function(){var fe=M,Ne=Gf(v),ke=[];e:{var we=Sj.get(l);if(we!==void 0){var Re=lm,Be=l;switch(l){case"keypress":if(Zu(v)===0)break e;case"keydown":case"keyup":Re=IP;break;case"focusin":Be="focus",Re=dm;break;case"focusout":Be="blur",Re=dm;break;case"beforeblur":case"afterblur":Re=dm;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=nj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=wP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=MP;break;case wj:case Nj:case kj:Re=_P;break;case _j:Re=BP;break;case"scroll":Re=bP;break;case"wheel":Re=qP;break;case"copy":case"cut":case"paste":Re=AP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=ij}var Ve=(u&4)!==0,nn=!Ve&&l==="scroll",ue=Ve?we!==null?we+"Capture":null:we;Ve=[];for(var oe=fe,he;oe!==null;){he=oe;var Ee=he.stateNode;if(he.tag===5&&Ee!==null&&(he=Ee,ue!==null&&(Ee=Il(oe,ue),Ee!=null&&Ve.push(Zl(oe,Ee,he)))),nn)break;oe=oe.return}0<Ve.length&&(we=new Re(we,Be,null,v,Ne),ke.push({event:we,listeners:Ve}))}}if((u&7)===0){e:{if(we=l==="mouseover"||l==="pointerover",Re=l==="mouseout"||l==="pointerout",we&&v!==ir&&(Be=v.relatedTarget||v.fromElement)&&(sa(Be)||Be[Ai]))break e;if((Re||we)&&(we=Ne.window===Ne?Ne:(we=Ne.ownerDocument)?we.defaultView||we.parentWindow:window,Re?(Be=v.relatedTarget||v.toElement,Re=fe,Be=Be?sa(Be):null,Be!==null&&(nn=ia(Be),Be!==nn||Be.tag!==5&&Be.tag!==6)&&(Be=null)):(Re=null,Be=fe),Re!==Be)){if(Ve=nj,Ee="onMouseLeave",ue="onMouseEnter",oe="mouse",(l==="pointerout"||l==="pointerover")&&(Ve=ij,Ee="onPointerLeave",ue="onPointerEnter",oe="pointer"),nn=Re==null?we:fo(Re),he=Be==null?we:fo(Be),we=new Ve(Ee,oe+"leave",Re,v,Ne),we.target=nn,we.relatedTarget=he,Ee=null,sa(Ne)===fe&&(Ve=new Ve(ue,oe+"enter",Be,v,Ne),Ve.target=he,Ve.relatedTarget=nn,Ee=Ve),nn=Ee,Re&&Be)t:{for(Ve=Re,ue=Be,oe=0,he=Ve;he;he=uo(he))oe++;for(he=0,Ee=ue;Ee;Ee=uo(Ee))he++;for(;0<oe-he;)Ve=uo(Ve),oe--;for(;0<he-oe;)ue=uo(ue),he--;for(;oe--;){if(Ve===ue||ue!==null&&Ve===ue.alternate)break t;Ve=uo(Ve),ue=uo(ue)}Ve=null}else Ve=null;Re!==null&&Pj(ke,we,Re,Ve,!1),Be!==null&&nn!==null&&Pj(ke,nn,Be,Ve,!0)}}e:{if(we=fe?fo(fe):window,Re=we.nodeName&&we.nodeName.toLowerCase(),Re==="select"||Re==="input"&&we.type==="file")var Ue=GP;else if(uj(we))if(hj)Ue=JP;else{Ue=YP;var Ge=QP}else(Re=we.nodeName)&&Re.toLowerCase()==="input"&&(we.type==="checkbox"||we.type==="radio")&&(Ue=XP);if(Ue&&(Ue=Ue(l,fe))){dj(ke,Ue,v,Ne);break e}Ge&&Ge(l,we,fe),l==="focusout"&&(Ge=we._wrapperState)&&Ge.controlled&&we.type==="number"&&ve(we,"number",we.value)}switch(Ge=fe?fo(fe):window,l){case"focusin":(uj(Ge)||Ge.contentEditable==="true")&&(lo=Ge,xm=fe,Yl=null);break;case"focusout":Yl=xm=lo=null;break;case"mousedown":ym=!0;break;case"contextmenu":case"mouseup":case"dragend":ym=!1,bj(ke,v,Ne);break;case"selectionchange":if(t3)break;case"keydown":case"keyup":bj(ke,v,Ne)}var Qe;if(fm)e:{switch(l){case"compositionstart":var Je="onCompositionStart";break e;case"compositionend":Je="onCompositionEnd";break e;case"compositionupdate":Je="onCompositionUpdate";break e}Je=void 0}else oo?lj(l,v)&&(Je="onCompositionEnd"):l==="keydown"&&v.keyCode===229&&(Je="onCompositionStart");Je&&(sj&&v.locale!=="ko"&&(oo||Je!=="onCompositionStart"?Je==="onCompositionEnd"&&oo&&(Qe=ej()):(ls=Ne,om="value"in ls?ls.value:ls.textContent,oo=!0)),Ge=ad(fe,Je),0<Ge.length&&(Je=new rj(Je,l,null,v,Ne),ke.push({event:Je,listeners:Ge}),Qe?Je.data=Qe:(Qe=cj(v),Qe!==null&&(Je.data=Qe)))),(Qe=UP?$P(l,v):HP(l,v))&&(fe=ad(fe,"onBeforeInput"),0<fe.length&&(Ne=new rj("onBeforeInput","beforeinput",null,v,Ne),ke.push({event:Ne,listeners:fe}),Ne.data=Qe))}Ej(ke,u)})}function Zl(l,u,v){return{instance:l,listener:u,currentTarget:v}}function ad(l,u){for(var v=u+"Capture",_=[];l!==null;){var P=l,M=P.stateNode;P.tag===5&&M!==null&&(P=M,M=Il(l,v),M!=null&&_.unshift(Zl(l,M,P)),M=Il(l,u),M!=null&&_.push(Zl(l,M,P))),l=l.return}return _}function uo(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function Pj(l,u,v,_,P){for(var M=u._reactName,$=[];v!==null&&v!==_;){var te=v,ie=te.alternate,fe=te.stateNode;if(ie!==null&&ie===_)break;te.tag===5&&fe!==null&&(te=fe,P?(ie=Il(v,M),ie!=null&&$.unshift(Zl(v,ie,te))):P||(ie=Il(v,M),ie!=null&&$.push(Zl(v,ie,te)))),v=v.return}$.length!==0&&l.push({event:u,listeners:$})}var s3=/\r\n?/g,a3=/\u0000|\uFFFD/g;function Oj(l){return(typeof l=="string"?l:""+l).replace(s3,`
`).replace(a3,"")}function od(l,u,v){if(u=Oj(u),Oj(l)!==u&&v)throw Error(r(425))}function ld(){}var km=null,_m=null;function Sm(l,u){return l==="textarea"||l==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Am=typeof setTimeout=="function"?setTimeout:void 0,o3=typeof clearTimeout=="function"?clearTimeout:void 0,Dj=typeof Promise=="function"?Promise:void 0,l3=typeof queueMicrotask=="function"?queueMicrotask:typeof Dj<"u"?function(l){return Dj.resolve(null).then(l).catch(c3)}:Am;function c3(l){setTimeout(function(){throw l})}function Cm(l,u){var v=u,_=0;do{var P=v.nextSibling;if(l.removeChild(v),P&&P.nodeType===8)if(v=P.data,v==="/$"){if(_===0){l.removeChild(P),Ul(u);return}_--}else v!=="$"&&v!=="$?"&&v!=="$!"||_++;v=P}while(v);Ul(u)}function us(l){for(;l!=null;l=l.nextSibling){var u=l.nodeType;if(u===1||u===3)break;if(u===8){if(u=l.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return l}function Ij(l){l=l.previousSibling;for(var u=0;l;){if(l.nodeType===8){var v=l.data;if(v==="$"||v==="$!"||v==="$?"){if(u===0)return l;u--}else v==="/$"&&u++}l=l.previousSibling}return null}var ho=Math.random().toString(36).slice(2),Xr="__reactFiber$"+ho,ec="__reactProps$"+ho,Ai="__reactContainer$"+ho,Em="__reactEvents$"+ho,u3="__reactListeners$"+ho,d3="__reactHandles$"+ho;function sa(l){var u=l[Xr];if(u)return u;for(var v=l.parentNode;v;){if(u=v[Ai]||v[Xr]){if(v=u.alternate,u.child!==null||v!==null&&v.child!==null)for(l=Ij(l);l!==null;){if(v=l[Xr])return v;l=Ij(l)}return u}l=v,v=l.parentNode}return null}function tc(l){return l=l[Xr]||l[Ai],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function fo(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(r(33))}function cd(l){return l[ec]||null}var Tm=[],mo=-1;function ds(l){return{current:l}}function Bt(l){0>mo||(l.current=Tm[mo],Tm[mo]=null,mo--)}function It(l,u){mo++,Tm[mo]=l.current,l.current=u}var hs={},An=ds(hs),$n=ds(!1),aa=hs;function po(l,u){var v=l.type.contextTypes;if(!v)return hs;var _=l.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===u)return _.__reactInternalMemoizedMaskedChildContext;var P={},M;for(M in v)P[M]=u[M];return _&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=P),P}function Hn(l){return l=l.childContextTypes,l!=null}function ud(){Bt($n),Bt(An)}function Rj(l,u,v){if(An.current!==hs)throw Error(r(168));It(An,u),It($n,v)}function Fj(l,u,v){var _=l.stateNode;if(u=u.childContextTypes,typeof _.getChildContext!="function")return v;_=_.getChildContext();for(var P in _)if(!(P in u))throw Error(r(108,G(l)||"Unknown",P));return O({},v,_)}function dd(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||hs,aa=An.current,It(An,l),It($n,$n.current),!0}function Mj(l,u,v){var _=l.stateNode;if(!_)throw Error(r(169));v?(l=Fj(l,u,aa),_.__reactInternalMemoizedMergedChildContext=l,Bt($n),Bt(An),It(An,l)):Bt($n),It($n,v)}var Ci=null,hd=!1,Pm=!1;function Lj(l){Ci===null?Ci=[l]:Ci.push(l)}function h3(l){hd=!0,Lj(l)}function fs(){if(!Pm&&Ci!==null){Pm=!0;var l=0,u=Et;try{var v=Ci;for(Et=1;l<v.length;l++){var _=v[l];do _=_(!0);while(_!==null)}Ci=null,hd=!1}catch(P){throw Ci!==null&&(Ci=Ci.slice(l+1)),zb(Zf,fs),P}finally{Et=u,Pm=!1}}return null}var go=[],xo=0,fd=null,md=0,xr=[],yr=0,oa=null,Ei=1,Ti="";function la(l,u){go[xo++]=md,go[xo++]=fd,fd=l,md=u}function Bj(l,u,v){xr[yr++]=Ei,xr[yr++]=Ti,xr[yr++]=oa,oa=l;var _=Ei;l=Ti;var P=32-Pr(_)-1;_&=~(1<<P),v+=1;var M=32-Pr(u)+P;if(30<M){var $=P-P%5;M=(_&(1<<$)-1).toString(32),_>>=$,P-=$,Ei=1<<32-Pr(u)+P|v<<P|_,Ti=M+l}else Ei=1<<M|v<<P|_,Ti=l}function Om(l){l.return!==null&&(la(l,1),Bj(l,1,0))}function Dm(l){for(;l===fd;)fd=go[--xo],go[xo]=null,md=go[--xo],go[xo]=null;for(;l===oa;)oa=xr[--yr],xr[yr]=null,Ti=xr[--yr],xr[yr]=null,Ei=xr[--yr],xr[yr]=null}var ar=null,or=null,qt=!1,Dr=null;function zj(l,u){var v=wr(5,null,null,0);v.elementType="DELETED",v.stateNode=u,v.return=l,u=l.deletions,u===null?(l.deletions=[v],l.flags|=16):u.push(v)}function qj(l,u){switch(l.tag){case 5:var v=l.type;return u=u.nodeType!==1||v.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(l.stateNode=u,ar=l,or=us(u.firstChild),!0):!1;case 6:return u=l.pendingProps===""||u.nodeType!==3?null:u,u!==null?(l.stateNode=u,ar=l,or=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(v=oa!==null?{id:Ei,overflow:Ti}:null,l.memoizedState={dehydrated:u,treeContext:v,retryLane:1073741824},v=wr(18,null,null,0),v.stateNode=u,v.return=l,l.child=v,ar=l,or=null,!0):!1;default:return!1}}function Im(l){return(l.mode&1)!==0&&(l.flags&128)===0}function Rm(l){if(qt){var u=or;if(u){var v=u;if(!qj(l,u)){if(Im(l))throw Error(r(418));u=us(v.nextSibling);var _=ar;u&&qj(l,u)?zj(_,v):(l.flags=l.flags&-4097|2,qt=!1,ar=l)}}else{if(Im(l))throw Error(r(418));l.flags=l.flags&-4097|2,qt=!1,ar=l}}}function Vj(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;ar=l}function pd(l){if(l!==ar)return!1;if(!qt)return Vj(l),qt=!0,!1;var u;if((u=l.tag!==3)&&!(u=l.tag!==5)&&(u=l.type,u=u!=="head"&&u!=="body"&&!Sm(l.type,l.memoizedProps)),u&&(u=or)){if(Im(l))throw Uj(),Error(r(418));for(;u;)zj(l,u),u=us(u.nextSibling)}if(Vj(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));e:{for(l=l.nextSibling,u=0;l;){if(l.nodeType===8){var v=l.data;if(v==="/$"){if(u===0){or=us(l.nextSibling);break e}u--}else v!=="$"&&v!=="$!"&&v!=="$?"||u++}l=l.nextSibling}or=null}}else or=ar?us(l.stateNode.nextSibling):null;return!0}function Uj(){for(var l=or;l;)l=us(l.nextSibling)}function yo(){or=ar=null,qt=!1}function Fm(l){Dr===null?Dr=[l]:Dr.push(l)}var f3=k.ReactCurrentBatchConfig;function nc(l,u,v){if(l=v.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(v._owner){if(v=v._owner,v){if(v.tag!==1)throw Error(r(309));var _=v.stateNode}if(!_)throw Error(r(147,l));var P=_,M=""+l;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===M?u.ref:(u=function($){var te=P.refs;$===null?delete te[M]:te[M]=$},u._stringRef=M,u)}if(typeof l!="string")throw Error(r(284));if(!v._owner)throw Error(r(290,l))}return l}function gd(l,u){throw l=Object.prototype.toString.call(u),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":l))}function $j(l){var u=l._init;return u(l._payload)}function Hj(l){function u(ue,oe){if(l){var he=ue.deletions;he===null?(ue.deletions=[oe],ue.flags|=16):he.push(oe)}}function v(ue,oe){if(!l)return null;for(;oe!==null;)u(ue,oe),oe=oe.sibling;return null}function _(ue,oe){for(ue=new Map;oe!==null;)oe.key!==null?ue.set(oe.key,oe):ue.set(oe.index,oe),oe=oe.sibling;return ue}function P(ue,oe){return ue=js(ue,oe),ue.index=0,ue.sibling=null,ue}function M(ue,oe,he){return ue.index=he,l?(he=ue.alternate,he!==null?(he=he.index,he<oe?(ue.flags|=2,oe):he):(ue.flags|=2,oe)):(ue.flags|=1048576,oe)}function $(ue){return l&&ue.alternate===null&&(ue.flags|=2),ue}function te(ue,oe,he,Ee){return oe===null||oe.tag!==6?(oe=Ap(he,ue.mode,Ee),oe.return=ue,oe):(oe=P(oe,he),oe.return=ue,oe)}function ie(ue,oe,he,Ee){var Ue=he.type;return Ue===E?Ne(ue,oe,he.props.children,Ee,he.key):oe!==null&&(oe.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===Q&&$j(Ue)===oe.type)?(Ee=P(oe,he.props),Ee.ref=nc(ue,oe,he),Ee.return=ue,Ee):(Ee=zd(he.type,he.key,he.props,null,ue.mode,Ee),Ee.ref=nc(ue,oe,he),Ee.return=ue,Ee)}function fe(ue,oe,he,Ee){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==he.containerInfo||oe.stateNode.implementation!==he.implementation?(oe=Cp(he,ue.mode,Ee),oe.return=ue,oe):(oe=P(oe,he.children||[]),oe.return=ue,oe)}function Ne(ue,oe,he,Ee,Ue){return oe===null||oe.tag!==7?(oe=ga(he,ue.mode,Ee,Ue),oe.return=ue,oe):(oe=P(oe,he),oe.return=ue,oe)}function ke(ue,oe,he){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return oe=Ap(""+oe,ue.mode,he),oe.return=ue,oe;if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case A:return he=zd(oe.type,oe.key,oe.props,null,ue.mode,he),he.ref=nc(ue,null,oe),he.return=ue,he;case S:return oe=Cp(oe,ue.mode,he),oe.return=ue,oe;case Q:var Ee=oe._init;return ke(ue,Ee(oe._payload),he)}if(Se(oe)||Y(oe))return oe=ga(oe,ue.mode,he,null),oe.return=ue,oe;gd(ue,oe)}return null}function we(ue,oe,he,Ee){var Ue=oe!==null?oe.key:null;if(typeof he=="string"&&he!==""||typeof he=="number")return Ue!==null?null:te(ue,oe,""+he,Ee);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case A:return he.key===Ue?ie(ue,oe,he,Ee):null;case S:return he.key===Ue?fe(ue,oe,he,Ee):null;case Q:return Ue=he._init,we(ue,oe,Ue(he._payload),Ee)}if(Se(he)||Y(he))return Ue!==null?null:Ne(ue,oe,he,Ee,null);gd(ue,he)}return null}function Re(ue,oe,he,Ee,Ue){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number")return ue=ue.get(he)||null,te(oe,ue,""+Ee,Ue);if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case A:return ue=ue.get(Ee.key===null?he:Ee.key)||null,ie(oe,ue,Ee,Ue);case S:return ue=ue.get(Ee.key===null?he:Ee.key)||null,fe(oe,ue,Ee,Ue);case Q:var Ge=Ee._init;return Re(ue,oe,he,Ge(Ee._payload),Ue)}if(Se(Ee)||Y(Ee))return ue=ue.get(he)||null,Ne(oe,ue,Ee,Ue,null);gd(oe,Ee)}return null}function Be(ue,oe,he,Ee){for(var Ue=null,Ge=null,Qe=oe,Je=oe=0,gn=null;Qe!==null&&Je<he.length;Je++){Qe.index>Je?(gn=Qe,Qe=null):gn=Qe.sibling;var vt=we(ue,Qe,he[Je],Ee);if(vt===null){Qe===null&&(Qe=gn);break}l&&Qe&&vt.alternate===null&&u(ue,Qe),oe=M(vt,oe,Je),Ge===null?Ue=vt:Ge.sibling=vt,Ge=vt,Qe=gn}if(Je===he.length)return v(ue,Qe),qt&&la(ue,Je),Ue;if(Qe===null){for(;Je<he.length;Je++)Qe=ke(ue,he[Je],Ee),Qe!==null&&(oe=M(Qe,oe,Je),Ge===null?Ue=Qe:Ge.sibling=Qe,Ge=Qe);return qt&&la(ue,Je),Ue}for(Qe=_(ue,Qe);Je<he.length;Je++)gn=Re(Qe,ue,Je,he[Je],Ee),gn!==null&&(l&&gn.alternate!==null&&Qe.delete(gn.key===null?Je:gn.key),oe=M(gn,oe,Je),Ge===null?Ue=gn:Ge.sibling=gn,Ge=gn);return l&&Qe.forEach(function(ws){return u(ue,ws)}),qt&&la(ue,Je),Ue}function Ve(ue,oe,he,Ee){var Ue=Y(he);if(typeof Ue!="function")throw Error(r(150));if(he=Ue.call(he),he==null)throw Error(r(151));for(var Ge=Ue=null,Qe=oe,Je=oe=0,gn=null,vt=he.next();Qe!==null&&!vt.done;Je++,vt=he.next()){Qe.index>Je?(gn=Qe,Qe=null):gn=Qe.sibling;var ws=we(ue,Qe,vt.value,Ee);if(ws===null){Qe===null&&(Qe=gn);break}l&&Qe&&ws.alternate===null&&u(ue,Qe),oe=M(ws,oe,Je),Ge===null?Ue=ws:Ge.sibling=ws,Ge=ws,Qe=gn}if(vt.done)return v(ue,Qe),qt&&la(ue,Je),Ue;if(Qe===null){for(;!vt.done;Je++,vt=he.next())vt=ke(ue,vt.value,Ee),vt!==null&&(oe=M(vt,oe,Je),Ge===null?Ue=vt:Ge.sibling=vt,Ge=vt);return qt&&la(ue,Je),Ue}for(Qe=_(ue,Qe);!vt.done;Je++,vt=he.next())vt=Re(Qe,ue,Je,vt.value,Ee),vt!==null&&(l&&vt.alternate!==null&&Qe.delete(vt.key===null?Je:vt.key),oe=M(vt,oe,Je),Ge===null?Ue=vt:Ge.sibling=vt,Ge=vt);return l&&Qe.forEach(function(W3){return u(ue,W3)}),qt&&la(ue,Je),Ue}function nn(ue,oe,he,Ee){if(typeof he=="object"&&he!==null&&he.type===E&&he.key===null&&(he=he.props.children),typeof he=="object"&&he!==null){switch(he.$$typeof){case A:e:{for(var Ue=he.key,Ge=oe;Ge!==null;){if(Ge.key===Ue){if(Ue=he.type,Ue===E){if(Ge.tag===7){v(ue,Ge.sibling),oe=P(Ge,he.props.children),oe.return=ue,ue=oe;break e}}else if(Ge.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===Q&&$j(Ue)===Ge.type){v(ue,Ge.sibling),oe=P(Ge,he.props),oe.ref=nc(ue,Ge,he),oe.return=ue,ue=oe;break e}v(ue,Ge);break}else u(ue,Ge);Ge=Ge.sibling}he.type===E?(oe=ga(he.props.children,ue.mode,Ee,he.key),oe.return=ue,ue=oe):(Ee=zd(he.type,he.key,he.props,null,ue.mode,Ee),Ee.ref=nc(ue,oe,he),Ee.return=ue,ue=Ee)}return $(ue);case S:e:{for(Ge=he.key;oe!==null;){if(oe.key===Ge)if(oe.tag===4&&oe.stateNode.containerInfo===he.containerInfo&&oe.stateNode.implementation===he.implementation){v(ue,oe.sibling),oe=P(oe,he.children||[]),oe.return=ue,ue=oe;break e}else{v(ue,oe);break}else u(ue,oe);oe=oe.sibling}oe=Cp(he,ue.mode,Ee),oe.return=ue,ue=oe}return $(ue);case Q:return Ge=he._init,nn(ue,oe,Ge(he._payload),Ee)}if(Se(he))return Be(ue,oe,he,Ee);if(Y(he))return Ve(ue,oe,he,Ee);gd(ue,he)}return typeof he=="string"&&he!==""||typeof he=="number"?(he=""+he,oe!==null&&oe.tag===6?(v(ue,oe.sibling),oe=P(oe,he),oe.return=ue,ue=oe):(v(ue,oe),oe=Ap(he,ue.mode,Ee),oe.return=ue,ue=oe),$(ue)):v(ue,oe)}return nn}var vo=Hj(!0),Wj=Hj(!1),xd=ds(null),yd=null,bo=null,Mm=null;function Lm(){Mm=bo=yd=null}function Bm(l){var u=xd.current;Bt(xd),l._currentValue=u}function zm(l,u,v){for(;l!==null;){var _=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,_!==null&&(_.childLanes|=u)):_!==null&&(_.childLanes&u)!==u&&(_.childLanes|=u),l===v)break;l=l.return}}function jo(l,u){yd=l,Mm=bo=null,l=l.dependencies,l!==null&&l.firstContext!==null&&((l.lanes&u)!==0&&(Wn=!0),l.firstContext=null)}function vr(l){var u=l._currentValue;if(Mm!==l)if(l={context:l,memoizedValue:u,next:null},bo===null){if(yd===null)throw Error(r(308));bo=l,yd.dependencies={lanes:0,firstContext:l}}else bo=bo.next=l;return u}var ca=null;function qm(l){ca===null?ca=[l]:ca.push(l)}function Kj(l,u,v,_){var P=u.interleaved;return P===null?(v.next=v,qm(u)):(v.next=P.next,P.next=v),u.interleaved=v,Pi(l,_)}function Pi(l,u){l.lanes|=u;var v=l.alternate;for(v!==null&&(v.lanes|=u),v=l,l=l.return;l!==null;)l.childLanes|=u,v=l.alternate,v!==null&&(v.childLanes|=u),v=l,l=l.return;return v.tag===3?v.stateNode:null}var ms=!1;function Vm(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gj(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Oi(l,u){return{eventTime:l,lane:u,tag:0,payload:null,callback:null,next:null}}function ps(l,u,v){var _=l.updateQueue;if(_===null)return null;if(_=_.shared,(yt&2)!==0){var P=_.pending;return P===null?u.next=u:(u.next=P.next,P.next=u),_.pending=u,Pi(l,v)}return P=_.interleaved,P===null?(u.next=u,qm(_)):(u.next=P.next,P.next=u),_.interleaved=u,Pi(l,v)}function vd(l,u,v){if(u=u.updateQueue,u!==null&&(u=u.shared,(v&4194240)!==0)){var _=u.lanes;_&=l.pendingLanes,v|=_,u.lanes=v,nm(l,v)}}function Qj(l,u){var v=l.updateQueue,_=l.alternate;if(_!==null&&(_=_.updateQueue,v===_)){var P=null,M=null;if(v=v.firstBaseUpdate,v!==null){do{var $={eventTime:v.eventTime,lane:v.lane,tag:v.tag,payload:v.payload,callback:v.callback,next:null};M===null?P=M=$:M=M.next=$,v=v.next}while(v!==null);M===null?P=M=u:M=M.next=u}else P=M=u;v={baseState:_.baseState,firstBaseUpdate:P,lastBaseUpdate:M,shared:_.shared,effects:_.effects},l.updateQueue=v;return}l=v.lastBaseUpdate,l===null?v.firstBaseUpdate=u:l.next=u,v.lastBaseUpdate=u}function bd(l,u,v,_){var P=l.updateQueue;ms=!1;var M=P.firstBaseUpdate,$=P.lastBaseUpdate,te=P.shared.pending;if(te!==null){P.shared.pending=null;var ie=te,fe=ie.next;ie.next=null,$===null?M=fe:$.next=fe,$=ie;var Ne=l.alternate;Ne!==null&&(Ne=Ne.updateQueue,te=Ne.lastBaseUpdate,te!==$&&(te===null?Ne.firstBaseUpdate=fe:te.next=fe,Ne.lastBaseUpdate=ie))}if(M!==null){var ke=P.baseState;$=0,Ne=fe=ie=null,te=M;do{var we=te.lane,Re=te.eventTime;if((_&we)===we){Ne!==null&&(Ne=Ne.next={eventTime:Re,lane:0,tag:te.tag,payload:te.payload,callback:te.callback,next:null});e:{var Be=l,Ve=te;switch(we=u,Re=v,Ve.tag){case 1:if(Be=Ve.payload,typeof Be=="function"){ke=Be.call(Re,ke,we);break e}ke=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=Ve.payload,we=typeof Be=="function"?Be.call(Re,ke,we):Be,we==null)break e;ke=O({},ke,we);break e;case 2:ms=!0}}te.callback!==null&&te.lane!==0&&(l.flags|=64,we=P.effects,we===null?P.effects=[te]:we.push(te))}else Re={eventTime:Re,lane:we,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Ne===null?(fe=Ne=Re,ie=ke):Ne=Ne.next=Re,$|=we;if(te=te.next,te===null){if(te=P.shared.pending,te===null)break;we=te,te=we.next,we.next=null,P.lastBaseUpdate=we,P.shared.pending=null}}while(!0);if(Ne===null&&(ie=ke),P.baseState=ie,P.firstBaseUpdate=fe,P.lastBaseUpdate=Ne,u=P.shared.interleaved,u!==null){P=u;do $|=P.lane,P=P.next;while(P!==u)}else M===null&&(P.shared.lanes=0);ha|=$,l.lanes=$,l.memoizedState=ke}}function Yj(l,u,v){if(l=u.effects,u.effects=null,l!==null)for(u=0;u<l.length;u++){var _=l[u],P=_.callback;if(P!==null){if(_.callback=null,_=v,typeof P!="function")throw Error(r(191,P));P.call(_)}}}var rc={},Jr=ds(rc),ic=ds(rc),sc=ds(rc);function ua(l){if(l===rc)throw Error(r(174));return l}function Um(l,u){switch(It(sc,u),It(ic,l),It(Jr,rc),l=u.nodeType,l){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:_e(null,"");break;default:l=l===8?u.parentNode:u,u=l.namespaceURI||null,l=l.tagName,u=_e(u,l)}Bt(Jr),It(Jr,u)}function wo(){Bt(Jr),Bt(ic),Bt(sc)}function Xj(l){ua(sc.current);var u=ua(Jr.current),v=_e(u,l.type);u!==v&&(It(ic,l),It(Jr,v))}function $m(l){ic.current===l&&(Bt(Jr),Bt(ic))}var Wt=ds(0);function jd(l){for(var u=l;u!==null;){if(u.tag===13){var v=u.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||v.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Hm=[];function Wm(){for(var l=0;l<Hm.length;l++)Hm[l]._workInProgressVersionPrimary=null;Hm.length=0}var wd=k.ReactCurrentDispatcher,Km=k.ReactCurrentBatchConfig,da=0,Kt=null,un=null,mn=null,Nd=!1,ac=!1,oc=0,m3=0;function Cn(){throw Error(r(321))}function Gm(l,u){if(u===null)return!1;for(var v=0;v<u.length&&v<l.length;v++)if(!Or(l[v],u[v]))return!1;return!0}function Qm(l,u,v,_,P,M){if(da=M,Kt=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,wd.current=l===null||l.memoizedState===null?y3:v3,l=v(_,P),ac){M=0;do{if(ac=!1,oc=0,25<=M)throw Error(r(301));M+=1,mn=un=null,u.updateQueue=null,wd.current=b3,l=v(_,P)}while(ac)}if(wd.current=Sd,u=un!==null&&un.next!==null,da=0,mn=un=Kt=null,Nd=!1,u)throw Error(r(300));return l}function Ym(){var l=oc!==0;return oc=0,l}function Zr(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mn===null?Kt.memoizedState=mn=l:mn=mn.next=l,mn}function br(){if(un===null){var l=Kt.alternate;l=l!==null?l.memoizedState:null}else l=un.next;var u=mn===null?Kt.memoizedState:mn.next;if(u!==null)mn=u,un=l;else{if(l===null)throw Error(r(310));un=l,l={memoizedState:un.memoizedState,baseState:un.baseState,baseQueue:un.baseQueue,queue:un.queue,next:null},mn===null?Kt.memoizedState=mn=l:mn=mn.next=l}return mn}function lc(l,u){return typeof u=="function"?u(l):u}function Xm(l){var u=br(),v=u.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=l;var _=un,P=_.baseQueue,M=v.pending;if(M!==null){if(P!==null){var $=P.next;P.next=M.next,M.next=$}_.baseQueue=P=M,v.pending=null}if(P!==null){M=P.next,_=_.baseState;var te=$=null,ie=null,fe=M;do{var Ne=fe.lane;if((da&Ne)===Ne)ie!==null&&(ie=ie.next={lane:0,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),_=fe.hasEagerState?fe.eagerState:l(_,fe.action);else{var ke={lane:Ne,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null};ie===null?(te=ie=ke,$=_):ie=ie.next=ke,Kt.lanes|=Ne,ha|=Ne}fe=fe.next}while(fe!==null&&fe!==M);ie===null?$=_:ie.next=te,Or(_,u.memoizedState)||(Wn=!0),u.memoizedState=_,u.baseState=$,u.baseQueue=ie,v.lastRenderedState=_}if(l=v.interleaved,l!==null){P=l;do M=P.lane,Kt.lanes|=M,ha|=M,P=P.next;while(P!==l)}else P===null&&(v.lanes=0);return[u.memoizedState,v.dispatch]}function Jm(l){var u=br(),v=u.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=l;var _=v.dispatch,P=v.pending,M=u.memoizedState;if(P!==null){v.pending=null;var $=P=P.next;do M=l(M,$.action),$=$.next;while($!==P);Or(M,u.memoizedState)||(Wn=!0),u.memoizedState=M,u.baseQueue===null&&(u.baseState=M),v.lastRenderedState=M}return[M,_]}function Jj(){}function Zj(l,u){var v=Kt,_=br(),P=u(),M=!Or(_.memoizedState,P);if(M&&(_.memoizedState=P,Wn=!0),_=_.queue,Zm(nw.bind(null,v,_,l),[l]),_.getSnapshot!==u||M||mn!==null&&mn.memoizedState.tag&1){if(v.flags|=2048,cc(9,tw.bind(null,v,_,P,u),void 0,null),pn===null)throw Error(r(349));(da&30)!==0||ew(v,u,P)}return P}function ew(l,u,v){l.flags|=16384,l={getSnapshot:u,value:v},u=Kt.updateQueue,u===null?(u={lastEffect:null,stores:null},Kt.updateQueue=u,u.stores=[l]):(v=u.stores,v===null?u.stores=[l]:v.push(l))}function tw(l,u,v,_){u.value=v,u.getSnapshot=_,rw(u)&&iw(l)}function nw(l,u,v){return v(function(){rw(u)&&iw(l)})}function rw(l){var u=l.getSnapshot;l=l.value;try{var v=u();return!Or(l,v)}catch{return!0}}function iw(l){var u=Pi(l,1);u!==null&&Mr(u,l,1,-1)}function sw(l){var u=Zr();return typeof l=="function"&&(l=l()),u.memoizedState=u.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:lc,lastRenderedState:l},u.queue=l,l=l.dispatch=x3.bind(null,Kt,l),[u.memoizedState,l]}function cc(l,u,v,_){return l={tag:l,create:u,destroy:v,deps:_,next:null},u=Kt.updateQueue,u===null?(u={lastEffect:null,stores:null},Kt.updateQueue=u,u.lastEffect=l.next=l):(v=u.lastEffect,v===null?u.lastEffect=l.next=l:(_=v.next,v.next=l,l.next=_,u.lastEffect=l)),l}function aw(){return br().memoizedState}function kd(l,u,v,_){var P=Zr();Kt.flags|=l,P.memoizedState=cc(1|u,v,void 0,_===void 0?null:_)}function _d(l,u,v,_){var P=br();_=_===void 0?null:_;var M=void 0;if(un!==null){var $=un.memoizedState;if(M=$.destroy,_!==null&&Gm(_,$.deps)){P.memoizedState=cc(u,v,M,_);return}}Kt.flags|=l,P.memoizedState=cc(1|u,v,M,_)}function ow(l,u){return kd(8390656,8,l,u)}function Zm(l,u){return _d(2048,8,l,u)}function lw(l,u){return _d(4,2,l,u)}function cw(l,u){return _d(4,4,l,u)}function uw(l,u){if(typeof u=="function")return l=l(),u(l),function(){u(null)};if(u!=null)return l=l(),u.current=l,function(){u.current=null}}function dw(l,u,v){return v=v!=null?v.concat([l]):null,_d(4,4,uw.bind(null,u,l),v)}function ep(){}function hw(l,u){var v=br();u=u===void 0?null:u;var _=v.memoizedState;return _!==null&&u!==null&&Gm(u,_[1])?_[0]:(v.memoizedState=[l,u],l)}function fw(l,u){var v=br();u=u===void 0?null:u;var _=v.memoizedState;return _!==null&&u!==null&&Gm(u,_[1])?_[0]:(l=l(),v.memoizedState=[l,u],l)}function mw(l,u,v){return(da&21)===0?(l.baseState&&(l.baseState=!1,Wn=!0),l.memoizedState=v):(Or(v,u)||(v=$b(),Kt.lanes|=v,ha|=v,l.baseState=!0),u)}function p3(l,u){var v=Et;Et=v!==0&&4>v?v:4,l(!0);var _=Km.transition;Km.transition={};try{l(!1),u()}finally{Et=v,Km.transition=_}}function pw(){return br().memoizedState}function g3(l,u,v){var _=vs(l);if(v={lane:_,action:v,hasEagerState:!1,eagerState:null,next:null},gw(l))xw(u,v);else if(v=Kj(l,u,v,_),v!==null){var P=Ln();Mr(v,l,_,P),yw(v,u,_)}}function x3(l,u,v){var _=vs(l),P={lane:_,action:v,hasEagerState:!1,eagerState:null,next:null};if(gw(l))xw(u,P);else{var M=l.alternate;if(l.lanes===0&&(M===null||M.lanes===0)&&(M=u.lastRenderedReducer,M!==null))try{var $=u.lastRenderedState,te=M($,v);if(P.hasEagerState=!0,P.eagerState=te,Or(te,$)){var ie=u.interleaved;ie===null?(P.next=P,qm(u)):(P.next=ie.next,ie.next=P),u.interleaved=P;return}}catch{}finally{}v=Kj(l,u,P,_),v!==null&&(P=Ln(),Mr(v,l,_,P),yw(v,u,_))}}function gw(l){var u=l.alternate;return l===Kt||u!==null&&u===Kt}function xw(l,u){ac=Nd=!0;var v=l.pending;v===null?u.next=u:(u.next=v.next,v.next=u),l.pending=u}function yw(l,u,v){if((v&4194240)!==0){var _=u.lanes;_&=l.pendingLanes,v|=_,u.lanes=v,nm(l,v)}}var Sd={readContext:vr,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},y3={readContext:vr,useCallback:function(l,u){return Zr().memoizedState=[l,u===void 0?null:u],l},useContext:vr,useEffect:ow,useImperativeHandle:function(l,u,v){return v=v!=null?v.concat([l]):null,kd(4194308,4,uw.bind(null,u,l),v)},useLayoutEffect:function(l,u){return kd(4194308,4,l,u)},useInsertionEffect:function(l,u){return kd(4,2,l,u)},useMemo:function(l,u){var v=Zr();return u=u===void 0?null:u,l=l(),v.memoizedState=[l,u],l},useReducer:function(l,u,v){var _=Zr();return u=v!==void 0?v(u):u,_.memoizedState=_.baseState=u,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},_.queue=l,l=l.dispatch=g3.bind(null,Kt,l),[_.memoizedState,l]},useRef:function(l){var u=Zr();return l={current:l},u.memoizedState=l},useState:sw,useDebugValue:ep,useDeferredValue:function(l){return Zr().memoizedState=l},useTransition:function(){var l=sw(!1),u=l[0];return l=p3.bind(null,l[1]),Zr().memoizedState=l,[u,l]},useMutableSource:function(){},useSyncExternalStore:function(l,u,v){var _=Kt,P=Zr();if(qt){if(v===void 0)throw Error(r(407));v=v()}else{if(v=u(),pn===null)throw Error(r(349));(da&30)!==0||ew(_,u,v)}P.memoizedState=v;var M={value:v,getSnapshot:u};return P.queue=M,ow(nw.bind(null,_,M,l),[l]),_.flags|=2048,cc(9,tw.bind(null,_,M,v,u),void 0,null),v},useId:function(){var l=Zr(),u=pn.identifierPrefix;if(qt){var v=Ti,_=Ei;v=(_&~(1<<32-Pr(_)-1)).toString(32)+v,u=":"+u+"R"+v,v=oc++,0<v&&(u+="H"+v.toString(32)),u+=":"}else v=m3++,u=":"+u+"r"+v.toString(32)+":";return l.memoizedState=u},unstable_isNewReconciler:!1},v3={readContext:vr,useCallback:hw,useContext:vr,useEffect:Zm,useImperativeHandle:dw,useInsertionEffect:lw,useLayoutEffect:cw,useMemo:fw,useReducer:Xm,useRef:aw,useState:function(){return Xm(lc)},useDebugValue:ep,useDeferredValue:function(l){var u=br();return mw(u,un.memoizedState,l)},useTransition:function(){var l=Xm(lc)[0],u=br().memoizedState;return[l,u]},useMutableSource:Jj,useSyncExternalStore:Zj,useId:pw,unstable_isNewReconciler:!1},b3={readContext:vr,useCallback:hw,useContext:vr,useEffect:Zm,useImperativeHandle:dw,useInsertionEffect:lw,useLayoutEffect:cw,useMemo:fw,useReducer:Jm,useRef:aw,useState:function(){return Jm(lc)},useDebugValue:ep,useDeferredValue:function(l){var u=br();return un===null?u.memoizedState=l:mw(u,un.memoizedState,l)},useTransition:function(){var l=Jm(lc)[0],u=br().memoizedState;return[l,u]},useMutableSource:Jj,useSyncExternalStore:Zj,useId:pw,unstable_isNewReconciler:!1};function Ir(l,u){if(l&&l.defaultProps){u=O({},u),l=l.defaultProps;for(var v in l)u[v]===void 0&&(u[v]=l[v]);return u}return u}function tp(l,u,v,_){u=l.memoizedState,v=v(_,u),v=v==null?u:O({},u,v),l.memoizedState=v,l.lanes===0&&(l.updateQueue.baseState=v)}var Ad={isMounted:function(l){return(l=l._reactInternals)?ia(l)===l:!1},enqueueSetState:function(l,u,v){l=l._reactInternals;var _=Ln(),P=vs(l),M=Oi(_,P);M.payload=u,v!=null&&(M.callback=v),u=ps(l,M,P),u!==null&&(Mr(u,l,P,_),vd(u,l,P))},enqueueReplaceState:function(l,u,v){l=l._reactInternals;var _=Ln(),P=vs(l),M=Oi(_,P);M.tag=1,M.payload=u,v!=null&&(M.callback=v),u=ps(l,M,P),u!==null&&(Mr(u,l,P,_),vd(u,l,P))},enqueueForceUpdate:function(l,u){l=l._reactInternals;var v=Ln(),_=vs(l),P=Oi(v,_);P.tag=2,u!=null&&(P.callback=u),u=ps(l,P,_),u!==null&&(Mr(u,l,_,v),vd(u,l,_))}};function vw(l,u,v,_,P,M,$){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(_,M,$):u.prototype&&u.prototype.isPureReactComponent?!Ql(v,_)||!Ql(P,M):!0}function bw(l,u,v){var _=!1,P=hs,M=u.contextType;return typeof M=="object"&&M!==null?M=vr(M):(P=Hn(u)?aa:An.current,_=u.contextTypes,M=(_=_!=null)?po(l,P):hs),u=new u(v,M),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ad,l.stateNode=u,u._reactInternals=l,_&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=P,l.__reactInternalMemoizedMaskedChildContext=M),u}function jw(l,u,v,_){l=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(v,_),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(v,_),u.state!==l&&Ad.enqueueReplaceState(u,u.state,null)}function np(l,u,v,_){var P=l.stateNode;P.props=v,P.state=l.memoizedState,P.refs={},Vm(l);var M=u.contextType;typeof M=="object"&&M!==null?P.context=vr(M):(M=Hn(u)?aa:An.current,P.context=po(l,M)),P.state=l.memoizedState,M=u.getDerivedStateFromProps,typeof M=="function"&&(tp(l,u,M,v),P.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(u=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),u!==P.state&&Ad.enqueueReplaceState(P,P.state,null),bd(l,v,P,_),P.state=l.memoizedState),typeof P.componentDidMount=="function"&&(l.flags|=4194308)}function No(l,u){try{var v="",_=u;do v+=J(_),_=_.return;while(_);var P=v}catch(M){P=`
Error generating stack: `+M.message+`
`+M.stack}return{value:l,source:u,stack:P,digest:null}}function rp(l,u,v){return{value:l,source:null,stack:v??null,digest:u??null}}function ip(l,u){try{console.error(u.value)}catch(v){setTimeout(function(){throw v})}}var j3=typeof WeakMap=="function"?WeakMap:Map;function ww(l,u,v){v=Oi(-1,v),v.tag=3,v.payload={element:null};var _=u.value;return v.callback=function(){Id||(Id=!0,vp=_),ip(l,u)},v}function Nw(l,u,v){v=Oi(-1,v),v.tag=3;var _=l.type.getDerivedStateFromError;if(typeof _=="function"){var P=u.value;v.payload=function(){return _(P)},v.callback=function(){ip(l,u)}}var M=l.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(v.callback=function(){ip(l,u),typeof _!="function"&&(xs===null?xs=new Set([this]):xs.add(this));var $=u.stack;this.componentDidCatch(u.value,{componentStack:$!==null?$:""})}),v}function kw(l,u,v){var _=l.pingCache;if(_===null){_=l.pingCache=new j3;var P=new Set;_.set(u,P)}else P=_.get(u),P===void 0&&(P=new Set,_.set(u,P));P.has(v)||(P.add(v),l=R3.bind(null,l,u,v),u.then(l,l))}function _w(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function Sw(l,u,v,_,P){return(l.mode&1)===0?(l===u?l.flags|=65536:(l.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(u=Oi(-1,1),u.tag=2,ps(v,u,1))),v.lanes|=1),l):(l.flags|=65536,l.lanes=P,l)}var w3=k.ReactCurrentOwner,Wn=!1;function Mn(l,u,v,_){u.child=l===null?Wj(u,null,v,_):vo(u,l.child,v,_)}function Aw(l,u,v,_,P){v=v.render;var M=u.ref;return jo(u,P),_=Qm(l,u,v,_,M,P),v=Ym(),l!==null&&!Wn?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~P,Di(l,u,P)):(qt&&v&&Om(u),u.flags|=1,Mn(l,u,_,P),u.child)}function Cw(l,u,v,_,P){if(l===null){var M=v.type;return typeof M=="function"&&!Sp(M)&&M.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(u.tag=15,u.type=M,Ew(l,u,M,_,P)):(l=zd(v.type,null,_,u,u.mode,P),l.ref=u.ref,l.return=u,u.child=l)}if(M=l.child,(l.lanes&P)===0){var $=M.memoizedProps;if(v=v.compare,v=v!==null?v:Ql,v($,_)&&l.ref===u.ref)return Di(l,u,P)}return u.flags|=1,l=js(M,_),l.ref=u.ref,l.return=u,u.child=l}function Ew(l,u,v,_,P){if(l!==null){var M=l.memoizedProps;if(Ql(M,_)&&l.ref===u.ref)if(Wn=!1,u.pendingProps=_=M,(l.lanes&P)!==0)(l.flags&131072)!==0&&(Wn=!0);else return u.lanes=l.lanes,Di(l,u,P)}return sp(l,u,v,_,P)}function Tw(l,u,v){var _=u.pendingProps,P=_.children,M=l!==null?l.memoizedState:null;if(_.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},It(_o,lr),lr|=v;else{if((v&1073741824)===0)return l=M!==null?M.baseLanes|v:v,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,It(_o,lr),lr|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=M!==null?M.baseLanes:v,It(_o,lr),lr|=_}else M!==null?(_=M.baseLanes|v,u.memoizedState=null):_=v,It(_o,lr),lr|=_;return Mn(l,u,P,v),u.child}function Pw(l,u){var v=u.ref;(l===null&&v!==null||l!==null&&l.ref!==v)&&(u.flags|=512,u.flags|=2097152)}function sp(l,u,v,_,P){var M=Hn(v)?aa:An.current;return M=po(u,M),jo(u,P),v=Qm(l,u,v,_,M,P),_=Ym(),l!==null&&!Wn?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~P,Di(l,u,P)):(qt&&_&&Om(u),u.flags|=1,Mn(l,u,v,P),u.child)}function Ow(l,u,v,_,P){if(Hn(v)){var M=!0;dd(u)}else M=!1;if(jo(u,P),u.stateNode===null)Ed(l,u),bw(u,v,_),np(u,v,_,P),_=!0;else if(l===null){var $=u.stateNode,te=u.memoizedProps;$.props=te;var ie=$.context,fe=v.contextType;typeof fe=="object"&&fe!==null?fe=vr(fe):(fe=Hn(v)?aa:An.current,fe=po(u,fe));var Ne=v.getDerivedStateFromProps,ke=typeof Ne=="function"||typeof $.getSnapshotBeforeUpdate=="function";ke||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(te!==_||ie!==fe)&&jw(u,$,_,fe),ms=!1;var we=u.memoizedState;$.state=we,bd(u,_,$,P),ie=u.memoizedState,te!==_||we!==ie||$n.current||ms?(typeof Ne=="function"&&(tp(u,v,Ne,_),ie=u.memoizedState),(te=ms||vw(u,v,te,_,we,ie,fe))?(ke||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount()),typeof $.componentDidMount=="function"&&(u.flags|=4194308)):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=_,u.memoizedState=ie),$.props=_,$.state=ie,$.context=fe,_=te):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),_=!1)}else{$=u.stateNode,Gj(l,u),te=u.memoizedProps,fe=u.type===u.elementType?te:Ir(u.type,te),$.props=fe,ke=u.pendingProps,we=$.context,ie=v.contextType,typeof ie=="object"&&ie!==null?ie=vr(ie):(ie=Hn(v)?aa:An.current,ie=po(u,ie));var Re=v.getDerivedStateFromProps;(Ne=typeof Re=="function"||typeof $.getSnapshotBeforeUpdate=="function")||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(te!==ke||we!==ie)&&jw(u,$,_,ie),ms=!1,we=u.memoizedState,$.state=we,bd(u,_,$,P);var Be=u.memoizedState;te!==ke||we!==Be||$n.current||ms?(typeof Re=="function"&&(tp(u,v,Re,_),Be=u.memoizedState),(fe=ms||vw(u,v,fe,_,we,Be,ie)||!1)?(Ne||typeof $.UNSAFE_componentWillUpdate!="function"&&typeof $.componentWillUpdate!="function"||(typeof $.componentWillUpdate=="function"&&$.componentWillUpdate(_,Be,ie),typeof $.UNSAFE_componentWillUpdate=="function"&&$.UNSAFE_componentWillUpdate(_,Be,ie)),typeof $.componentDidUpdate=="function"&&(u.flags|=4),typeof $.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof $.componentDidUpdate!="function"||te===l.memoizedProps&&we===l.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||te===l.memoizedProps&&we===l.memoizedState||(u.flags|=1024),u.memoizedProps=_,u.memoizedState=Be),$.props=_,$.state=Be,$.context=ie,_=fe):(typeof $.componentDidUpdate!="function"||te===l.memoizedProps&&we===l.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||te===l.memoizedProps&&we===l.memoizedState||(u.flags|=1024),_=!1)}return ap(l,u,v,_,M,P)}function ap(l,u,v,_,P,M){Pw(l,u);var $=(u.flags&128)!==0;if(!_&&!$)return P&&Mj(u,v,!1),Di(l,u,M);_=u.stateNode,w3.current=u;var te=$&&typeof v.getDerivedStateFromError!="function"?null:_.render();return u.flags|=1,l!==null&&$?(u.child=vo(u,l.child,null,M),u.child=vo(u,null,te,M)):Mn(l,u,te,M),u.memoizedState=_.state,P&&Mj(u,v,!0),u.child}function Dw(l){var u=l.stateNode;u.pendingContext?Rj(l,u.pendingContext,u.pendingContext!==u.context):u.context&&Rj(l,u.context,!1),Um(l,u.containerInfo)}function Iw(l,u,v,_,P){return yo(),Fm(P),u.flags|=256,Mn(l,u,v,_),u.child}var op={dehydrated:null,treeContext:null,retryLane:0};function lp(l){return{baseLanes:l,cachePool:null,transitions:null}}function Rw(l,u,v){var _=u.pendingProps,P=Wt.current,M=!1,$=(u.flags&128)!==0,te;if((te=$)||(te=l!==null&&l.memoizedState===null?!1:(P&2)!==0),te?(M=!0,u.flags&=-129):(l===null||l.memoizedState!==null)&&(P|=1),It(Wt,P&1),l===null)return Rm(u),l=u.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?((u.mode&1)===0?u.lanes=1:l.data==="$!"?u.lanes=8:u.lanes=1073741824,null):($=_.children,l=_.fallback,M?(_=u.mode,M=u.child,$={mode:"hidden",children:$},(_&1)===0&&M!==null?(M.childLanes=0,M.pendingProps=$):M=qd($,_,0,null),l=ga(l,_,v,null),M.return=u,l.return=u,M.sibling=l,u.child=M,u.child.memoizedState=lp(v),u.memoizedState=op,l):cp(u,$));if(P=l.memoizedState,P!==null&&(te=P.dehydrated,te!==null))return N3(l,u,$,_,te,P,v);if(M){M=_.fallback,$=u.mode,P=l.child,te=P.sibling;var ie={mode:"hidden",children:_.children};return($&1)===0&&u.child!==P?(_=u.child,_.childLanes=0,_.pendingProps=ie,u.deletions=null):(_=js(P,ie),_.subtreeFlags=P.subtreeFlags&14680064),te!==null?M=js(te,M):(M=ga(M,$,v,null),M.flags|=2),M.return=u,_.return=u,_.sibling=M,u.child=_,_=M,M=u.child,$=l.child.memoizedState,$=$===null?lp(v):{baseLanes:$.baseLanes|v,cachePool:null,transitions:$.transitions},M.memoizedState=$,M.childLanes=l.childLanes&~v,u.memoizedState=op,_}return M=l.child,l=M.sibling,_=js(M,{mode:"visible",children:_.children}),(u.mode&1)===0&&(_.lanes=v),_.return=u,_.sibling=null,l!==null&&(v=u.deletions,v===null?(u.deletions=[l],u.flags|=16):v.push(l)),u.child=_,u.memoizedState=null,_}function cp(l,u){return u=qd({mode:"visible",children:u},l.mode,0,null),u.return=l,l.child=u}function Cd(l,u,v,_){return _!==null&&Fm(_),vo(u,l.child,null,v),l=cp(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function N3(l,u,v,_,P,M,$){if(v)return u.flags&256?(u.flags&=-257,_=rp(Error(r(422))),Cd(l,u,$,_)):u.memoizedState!==null?(u.child=l.child,u.flags|=128,null):(M=_.fallback,P=u.mode,_=qd({mode:"visible",children:_.children},P,0,null),M=ga(M,P,$,null),M.flags|=2,_.return=u,M.return=u,_.sibling=M,u.child=_,(u.mode&1)!==0&&vo(u,l.child,null,$),u.child.memoizedState=lp($),u.memoizedState=op,M);if((u.mode&1)===0)return Cd(l,u,$,null);if(P.data==="$!"){if(_=P.nextSibling&&P.nextSibling.dataset,_)var te=_.dgst;return _=te,M=Error(r(419)),_=rp(M,_,void 0),Cd(l,u,$,_)}if(te=($&l.childLanes)!==0,Wn||te){if(_=pn,_!==null){switch($&-$){case 4:P=2;break;case 16:P=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:P=32;break;case 536870912:P=268435456;break;default:P=0}P=(P&(_.suspendedLanes|$))!==0?0:P,P!==0&&P!==M.retryLane&&(M.retryLane=P,Pi(l,P),Mr(_,l,P,-1))}return _p(),_=rp(Error(r(421))),Cd(l,u,$,_)}return P.data==="$?"?(u.flags|=128,u.child=l.child,u=F3.bind(null,l),P._reactRetry=u,null):(l=M.treeContext,or=us(P.nextSibling),ar=u,qt=!0,Dr=null,l!==null&&(xr[yr++]=Ei,xr[yr++]=Ti,xr[yr++]=oa,Ei=l.id,Ti=l.overflow,oa=u),u=cp(u,_.children),u.flags|=4096,u)}function Fw(l,u,v){l.lanes|=u;var _=l.alternate;_!==null&&(_.lanes|=u),zm(l.return,u,v)}function up(l,u,v,_,P){var M=l.memoizedState;M===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:_,tail:v,tailMode:P}:(M.isBackwards=u,M.rendering=null,M.renderingStartTime=0,M.last=_,M.tail=v,M.tailMode=P)}function Mw(l,u,v){var _=u.pendingProps,P=_.revealOrder,M=_.tail;if(Mn(l,u,_.children,v),_=Wt.current,(_&2)!==0)_=_&1|2,u.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=u.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Fw(l,v,u);else if(l.tag===19)Fw(l,v,u);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===u)break e;for(;l.sibling===null;){if(l.return===null||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}_&=1}if(It(Wt,_),(u.mode&1)===0)u.memoizedState=null;else switch(P){case"forwards":for(v=u.child,P=null;v!==null;)l=v.alternate,l!==null&&jd(l)===null&&(P=v),v=v.sibling;v=P,v===null?(P=u.child,u.child=null):(P=v.sibling,v.sibling=null),up(u,!1,P,v,M);break;case"backwards":for(v=null,P=u.child,u.child=null;P!==null;){if(l=P.alternate,l!==null&&jd(l)===null){u.child=P;break}l=P.sibling,P.sibling=v,v=P,P=l}up(u,!0,v,null,M);break;case"together":up(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Ed(l,u){(u.mode&1)===0&&l!==null&&(l.alternate=null,u.alternate=null,u.flags|=2)}function Di(l,u,v){if(l!==null&&(u.dependencies=l.dependencies),ha|=u.lanes,(v&u.childLanes)===0)return null;if(l!==null&&u.child!==l.child)throw Error(r(153));if(u.child!==null){for(l=u.child,v=js(l,l.pendingProps),u.child=v,v.return=u;l.sibling!==null;)l=l.sibling,v=v.sibling=js(l,l.pendingProps),v.return=u;v.sibling=null}return u.child}function k3(l,u,v){switch(u.tag){case 3:Dw(u),yo();break;case 5:Xj(u);break;case 1:Hn(u.type)&&dd(u);break;case 4:Um(u,u.stateNode.containerInfo);break;case 10:var _=u.type._context,P=u.memoizedProps.value;It(xd,_._currentValue),_._currentValue=P;break;case 13:if(_=u.memoizedState,_!==null)return _.dehydrated!==null?(It(Wt,Wt.current&1),u.flags|=128,null):(v&u.child.childLanes)!==0?Rw(l,u,v):(It(Wt,Wt.current&1),l=Di(l,u,v),l!==null?l.sibling:null);It(Wt,Wt.current&1);break;case 19:if(_=(v&u.childLanes)!==0,(l.flags&128)!==0){if(_)return Mw(l,u,v);u.flags|=128}if(P=u.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),It(Wt,Wt.current),_)break;return null;case 22:case 23:return u.lanes=0,Tw(l,u,v)}return Di(l,u,v)}var Lw,dp,Bw,zw;Lw=function(l,u){for(var v=u.child;v!==null;){if(v.tag===5||v.tag===6)l.appendChild(v.stateNode);else if(v.tag!==4&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===u)break;for(;v.sibling===null;){if(v.return===null||v.return===u)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},dp=function(){},Bw=function(l,u,v,_){var P=l.memoizedProps;if(P!==_){l=u.stateNode,ua(Jr.current);var M=null;switch(v){case"input":P=Te(l,P),_=Te(l,_),M=[];break;case"select":P=O({},P,{value:void 0}),_=O({},_,{value:void 0}),M=[];break;case"textarea":P=je(l,P),_=je(l,_),M=[];break;default:typeof P.onClick!="function"&&typeof _.onClick=="function"&&(l.onclick=ld)}bn(v,_);var $;v=null;for(fe in P)if(!_.hasOwnProperty(fe)&&P.hasOwnProperty(fe)&&P[fe]!=null)if(fe==="style"){var te=P[fe];for($ in te)te.hasOwnProperty($)&&(v||(v={}),v[$]="")}else fe!=="dangerouslySetInnerHTML"&&fe!=="children"&&fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&fe!=="autoFocus"&&(s.hasOwnProperty(fe)?M||(M=[]):(M=M||[]).push(fe,null));for(fe in _){var ie=_[fe];if(te=P!=null?P[fe]:void 0,_.hasOwnProperty(fe)&&ie!==te&&(ie!=null||te!=null))if(fe==="style")if(te){for($ in te)!te.hasOwnProperty($)||ie&&ie.hasOwnProperty($)||(v||(v={}),v[$]="");for($ in ie)ie.hasOwnProperty($)&&te[$]!==ie[$]&&(v||(v={}),v[$]=ie[$])}else v||(M||(M=[]),M.push(fe,v)),v=ie;else fe==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,te=te?te.__html:void 0,ie!=null&&te!==ie&&(M=M||[]).push(fe,ie)):fe==="children"?typeof ie!="string"&&typeof ie!="number"||(M=M||[]).push(fe,""+ie):fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&(s.hasOwnProperty(fe)?(ie!=null&&fe==="onScroll"&&Lt("scroll",l),M||te===ie||(M=[])):(M=M||[]).push(fe,ie))}v&&(M=M||[]).push("style",v);var fe=M;(u.updateQueue=fe)&&(u.flags|=4)}},zw=function(l,u,v,_){v!==_&&(u.flags|=4)};function uc(l,u){if(!qt)switch(l.tailMode){case"hidden":u=l.tail;for(var v=null;u!==null;)u.alternate!==null&&(v=u),u=u.sibling;v===null?l.tail=null:v.sibling=null;break;case"collapsed":v=l.tail;for(var _=null;v!==null;)v.alternate!==null&&(_=v),v=v.sibling;_===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:_.sibling=null}}function En(l){var u=l.alternate!==null&&l.alternate.child===l.child,v=0,_=0;if(u)for(var P=l.child;P!==null;)v|=P.lanes|P.childLanes,_|=P.subtreeFlags&14680064,_|=P.flags&14680064,P.return=l,P=P.sibling;else for(P=l.child;P!==null;)v|=P.lanes|P.childLanes,_|=P.subtreeFlags,_|=P.flags,P.return=l,P=P.sibling;return l.subtreeFlags|=_,l.childLanes=v,u}function _3(l,u,v){var _=u.pendingProps;switch(Dm(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return En(u),null;case 1:return Hn(u.type)&&ud(),En(u),null;case 3:return _=u.stateNode,wo(),Bt($n),Bt(An),Wm(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(l===null||l.child===null)&&(pd(u)?u.flags|=4:l===null||l.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Dr!==null&&(wp(Dr),Dr=null))),dp(l,u),En(u),null;case 5:$m(u);var P=ua(sc.current);if(v=u.type,l!==null&&u.stateNode!=null)Bw(l,u,v,_,P),l.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!_){if(u.stateNode===null)throw Error(r(166));return En(u),null}if(l=ua(Jr.current),pd(u)){_=u.stateNode,v=u.type;var M=u.memoizedProps;switch(_[Xr]=u,_[ec]=M,l=(u.mode&1)!==0,v){case"dialog":Lt("cancel",_),Lt("close",_);break;case"iframe":case"object":case"embed":Lt("load",_);break;case"video":case"audio":for(P=0;P<Xl.length;P++)Lt(Xl[P],_);break;case"source":Lt("error",_);break;case"img":case"image":case"link":Lt("error",_),Lt("load",_);break;case"details":Lt("toggle",_);break;case"input":We(_,M),Lt("invalid",_);break;case"select":_._wrapperState={wasMultiple:!!M.multiple},Lt("invalid",_);break;case"textarea":tt(_,M),Lt("invalid",_)}bn(v,M),P=null;for(var $ in M)if(M.hasOwnProperty($)){var te=M[$];$==="children"?typeof te=="string"?_.textContent!==te&&(M.suppressHydrationWarning!==!0&&od(_.textContent,te,l),P=["children",te]):typeof te=="number"&&_.textContent!==""+te&&(M.suppressHydrationWarning!==!0&&od(_.textContent,te,l),P=["children",""+te]):s.hasOwnProperty($)&&te!=null&&$==="onScroll"&&Lt("scroll",_)}switch(v){case"input":ye(_),ge(_,M,!0);break;case"textarea":ye(_),rt(_);break;case"select":case"option":break;default:typeof M.onClick=="function"&&(_.onclick=ld)}_=P,u.updateQueue=_,_!==null&&(u.flags|=4)}else{$=P.nodeType===9?P:P.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=xe(v)),l==="http://www.w3.org/1999/xhtml"?v==="script"?(l=$.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof _.is=="string"?l=$.createElement(v,{is:_.is}):(l=$.createElement(v),v==="select"&&($=l,_.multiple?$.multiple=!0:_.size&&($.size=_.size))):l=$.createElementNS(l,v),l[Xr]=u,l[ec]=_,Lw(l,u,!1,!1),u.stateNode=l;e:{switch($=Qr(v,_),v){case"dialog":Lt("cancel",l),Lt("close",l),P=_;break;case"iframe":case"object":case"embed":Lt("load",l),P=_;break;case"video":case"audio":for(P=0;P<Xl.length;P++)Lt(Xl[P],l);P=_;break;case"source":Lt("error",l),P=_;break;case"img":case"image":case"link":Lt("error",l),Lt("load",l),P=_;break;case"details":Lt("toggle",l),P=_;break;case"input":We(l,_),P=Te(l,_),Lt("invalid",l);break;case"option":P=_;break;case"select":l._wrapperState={wasMultiple:!!_.multiple},P=O({},_,{value:void 0}),Lt("invalid",l);break;case"textarea":tt(l,_),P=je(l,_),Lt("invalid",l);break;default:P=_}bn(v,P),te=P;for(M in te)if(te.hasOwnProperty(M)){var ie=te[M];M==="style"?rs(l,ie):M==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,ie!=null&&it(l,ie)):M==="children"?typeof ie=="string"?(v!=="textarea"||ie!=="")&&He(l,ie):typeof ie=="number"&&He(l,""+ie):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(s.hasOwnProperty(M)?ie!=null&&M==="onScroll"&&Lt("scroll",l):ie!=null&&w(l,M,ie,$))}switch(v){case"input":ye(l),ge(l,_,!1);break;case"textarea":ye(l),rt(l);break;case"option":_.value!=null&&l.setAttribute("value",""+ee(_.value));break;case"select":l.multiple=!!_.multiple,M=_.value,M!=null?Oe(l,!!_.multiple,M,!1):_.defaultValue!=null&&Oe(l,!!_.multiple,_.defaultValue,!0);break;default:typeof P.onClick=="function"&&(l.onclick=ld)}switch(v){case"button":case"input":case"select":case"textarea":_=!!_.autoFocus;break e;case"img":_=!0;break e;default:_=!1}}_&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return En(u),null;case 6:if(l&&u.stateNode!=null)zw(l,u,l.memoizedProps,_);else{if(typeof _!="string"&&u.stateNode===null)throw Error(r(166));if(v=ua(sc.current),ua(Jr.current),pd(u)){if(_=u.stateNode,v=u.memoizedProps,_[Xr]=u,(M=_.nodeValue!==v)&&(l=ar,l!==null))switch(l.tag){case 3:od(_.nodeValue,v,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&od(_.nodeValue,v,(l.mode&1)!==0)}M&&(u.flags|=4)}else _=(v.nodeType===9?v:v.ownerDocument).createTextNode(_),_[Xr]=u,u.stateNode=_}return En(u),null;case 13:if(Bt(Wt),_=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(qt&&or!==null&&(u.mode&1)!==0&&(u.flags&128)===0)Uj(),yo(),u.flags|=98560,M=!1;else if(M=pd(u),_!==null&&_.dehydrated!==null){if(l===null){if(!M)throw Error(r(318));if(M=u.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(r(317));M[Xr]=u}else yo(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;En(u),M=!1}else Dr!==null&&(wp(Dr),Dr=null),M=!0;if(!M)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=v,u):(_=_!==null,_!==(l!==null&&l.memoizedState!==null)&&_&&(u.child.flags|=8192,(u.mode&1)!==0&&(l===null||(Wt.current&1)!==0?dn===0&&(dn=3):_p())),u.updateQueue!==null&&(u.flags|=4),En(u),null);case 4:return wo(),dp(l,u),l===null&&Jl(u.stateNode.containerInfo),En(u),null;case 10:return Bm(u.type._context),En(u),null;case 17:return Hn(u.type)&&ud(),En(u),null;case 19:if(Bt(Wt),M=u.memoizedState,M===null)return En(u),null;if(_=(u.flags&128)!==0,$=M.rendering,$===null)if(_)uc(M,!1);else{if(dn!==0||l!==null&&(l.flags&128)!==0)for(l=u.child;l!==null;){if($=jd(l),$!==null){for(u.flags|=128,uc(M,!1),_=$.updateQueue,_!==null&&(u.updateQueue=_,u.flags|=4),u.subtreeFlags=0,_=v,v=u.child;v!==null;)M=v,l=_,M.flags&=14680066,$=M.alternate,$===null?(M.childLanes=0,M.lanes=l,M.child=null,M.subtreeFlags=0,M.memoizedProps=null,M.memoizedState=null,M.updateQueue=null,M.dependencies=null,M.stateNode=null):(M.childLanes=$.childLanes,M.lanes=$.lanes,M.child=$.child,M.subtreeFlags=0,M.deletions=null,M.memoizedProps=$.memoizedProps,M.memoizedState=$.memoizedState,M.updateQueue=$.updateQueue,M.type=$.type,l=$.dependencies,M.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),v=v.sibling;return It(Wt,Wt.current&1|2),u.child}l=l.sibling}M.tail!==null&&tn()>So&&(u.flags|=128,_=!0,uc(M,!1),u.lanes=4194304)}else{if(!_)if(l=jd($),l!==null){if(u.flags|=128,_=!0,v=l.updateQueue,v!==null&&(u.updateQueue=v,u.flags|=4),uc(M,!0),M.tail===null&&M.tailMode==="hidden"&&!$.alternate&&!qt)return En(u),null}else 2*tn()-M.renderingStartTime>So&&v!==1073741824&&(u.flags|=128,_=!0,uc(M,!1),u.lanes=4194304);M.isBackwards?($.sibling=u.child,u.child=$):(v=M.last,v!==null?v.sibling=$:u.child=$,M.last=$)}return M.tail!==null?(u=M.tail,M.rendering=u,M.tail=u.sibling,M.renderingStartTime=tn(),u.sibling=null,v=Wt.current,It(Wt,_?v&1|2:v&1),u):(En(u),null);case 22:case 23:return kp(),_=u.memoizedState!==null,l!==null&&l.memoizedState!==null!==_&&(u.flags|=8192),_&&(u.mode&1)!==0?(lr&1073741824)!==0&&(En(u),u.subtreeFlags&6&&(u.flags|=8192)):En(u),null;case 24:return null;case 25:return null}throw Error(r(156,u.tag))}function S3(l,u){switch(Dm(u),u.tag){case 1:return Hn(u.type)&&ud(),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return wo(),Bt($n),Bt(An),Wm(),l=u.flags,(l&65536)!==0&&(l&128)===0?(u.flags=l&-65537|128,u):null;case 5:return $m(u),null;case 13:if(Bt(Wt),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(r(340));yo()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return Bt(Wt),null;case 4:return wo(),null;case 10:return Bm(u.type._context),null;case 22:case 23:return kp(),null;case 24:return null;default:return null}}var Td=!1,Tn=!1,A3=typeof WeakSet=="function"?WeakSet:Set,Me=null;function ko(l,u){var v=l.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(_){Jt(l,u,_)}else v.current=null}function hp(l,u,v){try{v()}catch(_){Jt(l,u,_)}}var qw=!1;function C3(l,u){if(km=Yu,l=vj(),gm(l)){if("selectionStart"in l)var v={start:l.selectionStart,end:l.selectionEnd};else e:{v=(v=l.ownerDocument)&&v.defaultView||window;var _=v.getSelection&&v.getSelection();if(_&&_.rangeCount!==0){v=_.anchorNode;var P=_.anchorOffset,M=_.focusNode;_=_.focusOffset;try{v.nodeType,M.nodeType}catch{v=null;break e}var $=0,te=-1,ie=-1,fe=0,Ne=0,ke=l,we=null;t:for(;;){for(var Re;ke!==v||P!==0&&ke.nodeType!==3||(te=$+P),ke!==M||_!==0&&ke.nodeType!==3||(ie=$+_),ke.nodeType===3&&($+=ke.nodeValue.length),(Re=ke.firstChild)!==null;)we=ke,ke=Re;for(;;){if(ke===l)break t;if(we===v&&++fe===P&&(te=$),we===M&&++Ne===_&&(ie=$),(Re=ke.nextSibling)!==null)break;ke=we,we=ke.parentNode}ke=Re}v=te===-1||ie===-1?null:{start:te,end:ie}}else v=null}v=v||{start:0,end:0}}else v=null;for(_m={focusedElem:l,selectionRange:v},Yu=!1,Me=u;Me!==null;)if(u=Me,l=u.child,(u.subtreeFlags&1028)!==0&&l!==null)l.return=u,Me=l;else for(;Me!==null;){u=Me;try{var Be=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Be!==null){var Ve=Be.memoizedProps,nn=Be.memoizedState,ue=u.stateNode,oe=ue.getSnapshotBeforeUpdate(u.elementType===u.type?Ve:Ir(u.type,Ve),nn);ue.__reactInternalSnapshotBeforeUpdate=oe}break;case 3:var he=u.stateNode.containerInfo;he.nodeType===1?he.textContent="":he.nodeType===9&&he.documentElement&&he.removeChild(he.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ee){Jt(u,u.return,Ee)}if(l=u.sibling,l!==null){l.return=u.return,Me=l;break}Me=u.return}return Be=qw,qw=!1,Be}function dc(l,u,v){var _=u.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var P=_=_.next;do{if((P.tag&l)===l){var M=P.destroy;P.destroy=void 0,M!==void 0&&hp(u,v,M)}P=P.next}while(P!==_)}}function Pd(l,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var v=u=u.next;do{if((v.tag&l)===l){var _=v.create;v.destroy=_()}v=v.next}while(v!==u)}}function fp(l){var u=l.ref;if(u!==null){var v=l.stateNode;switch(l.tag){case 5:l=v;break;default:l=v}typeof u=="function"?u(l):u.current=l}}function Vw(l){var u=l.alternate;u!==null&&(l.alternate=null,Vw(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&(delete u[Xr],delete u[ec],delete u[Em],delete u[u3],delete u[d3])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function Uw(l){return l.tag===5||l.tag===3||l.tag===4}function $w(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||Uw(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function mp(l,u,v){var _=l.tag;if(_===5||_===6)l=l.stateNode,u?v.nodeType===8?v.parentNode.insertBefore(l,u):v.insertBefore(l,u):(v.nodeType===8?(u=v.parentNode,u.insertBefore(l,v)):(u=v,u.appendChild(l)),v=v._reactRootContainer,v!=null||u.onclick!==null||(u.onclick=ld));else if(_!==4&&(l=l.child,l!==null))for(mp(l,u,v),l=l.sibling;l!==null;)mp(l,u,v),l=l.sibling}function pp(l,u,v){var _=l.tag;if(_===5||_===6)l=l.stateNode,u?v.insertBefore(l,u):v.appendChild(l);else if(_!==4&&(l=l.child,l!==null))for(pp(l,u,v),l=l.sibling;l!==null;)pp(l,u,v),l=l.sibling}var jn=null,Rr=!1;function gs(l,u,v){for(v=v.child;v!==null;)Hw(l,u,v),v=v.sibling}function Hw(l,u,v){if(Yr&&typeof Yr.onCommitFiberUnmount=="function")try{Yr.onCommitFiberUnmount($u,v)}catch{}switch(v.tag){case 5:Tn||ko(v,u);case 6:var _=jn,P=Rr;jn=null,gs(l,u,v),jn=_,Rr=P,jn!==null&&(Rr?(l=jn,v=v.stateNode,l.nodeType===8?l.parentNode.removeChild(v):l.removeChild(v)):jn.removeChild(v.stateNode));break;case 18:jn!==null&&(Rr?(l=jn,v=v.stateNode,l.nodeType===8?Cm(l.parentNode,v):l.nodeType===1&&Cm(l,v),Ul(l)):Cm(jn,v.stateNode));break;case 4:_=jn,P=Rr,jn=v.stateNode.containerInfo,Rr=!0,gs(l,u,v),jn=_,Rr=P;break;case 0:case 11:case 14:case 15:if(!Tn&&(_=v.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){P=_=_.next;do{var M=P,$=M.destroy;M=M.tag,$!==void 0&&((M&2)!==0||(M&4)!==0)&&hp(v,u,$),P=P.next}while(P!==_)}gs(l,u,v);break;case 1:if(!Tn&&(ko(v,u),_=v.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=v.memoizedProps,_.state=v.memoizedState,_.componentWillUnmount()}catch(te){Jt(v,u,te)}gs(l,u,v);break;case 21:gs(l,u,v);break;case 22:v.mode&1?(Tn=(_=Tn)||v.memoizedState!==null,gs(l,u,v),Tn=_):gs(l,u,v);break;default:gs(l,u,v)}}function Ww(l){var u=l.updateQueue;if(u!==null){l.updateQueue=null;var v=l.stateNode;v===null&&(v=l.stateNode=new A3),u.forEach(function(_){var P=M3.bind(null,l,_);v.has(_)||(v.add(_),_.then(P,P))})}}function Fr(l,u){var v=u.deletions;if(v!==null)for(var _=0;_<v.length;_++){var P=v[_];try{var M=l,$=u,te=$;e:for(;te!==null;){switch(te.tag){case 5:jn=te.stateNode,Rr=!1;break e;case 3:jn=te.stateNode.containerInfo,Rr=!0;break e;case 4:jn=te.stateNode.containerInfo,Rr=!0;break e}te=te.return}if(jn===null)throw Error(r(160));Hw(M,$,P),jn=null,Rr=!1;var ie=P.alternate;ie!==null&&(ie.return=null),P.return=null}catch(fe){Jt(P,u,fe)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)Kw(u,l),u=u.sibling}function Kw(l,u){var v=l.alternate,_=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(Fr(u,l),ei(l),_&4){try{dc(3,l,l.return),Pd(3,l)}catch(Ve){Jt(l,l.return,Ve)}try{dc(5,l,l.return)}catch(Ve){Jt(l,l.return,Ve)}}break;case 1:Fr(u,l),ei(l),_&512&&v!==null&&ko(v,v.return);break;case 5:if(Fr(u,l),ei(l),_&512&&v!==null&&ko(v,v.return),l.flags&32){var P=l.stateNode;try{He(P,"")}catch(Ve){Jt(l,l.return,Ve)}}if(_&4&&(P=l.stateNode,P!=null)){var M=l.memoizedProps,$=v!==null?v.memoizedProps:M,te=l.type,ie=l.updateQueue;if(l.updateQueue=null,ie!==null)try{te==="input"&&M.type==="radio"&&M.name!=null&&ut(P,M),Qr(te,$);var fe=Qr(te,M);for($=0;$<ie.length;$+=2){var Ne=ie[$],ke=ie[$+1];Ne==="style"?rs(P,ke):Ne==="dangerouslySetInnerHTML"?it(P,ke):Ne==="children"?He(P,ke):w(P,Ne,ke,fe)}switch(te){case"input":nt(P,M);break;case"textarea":et(P,M);break;case"select":var we=P._wrapperState.wasMultiple;P._wrapperState.wasMultiple=!!M.multiple;var Re=M.value;Re!=null?Oe(P,!!M.multiple,Re,!1):we!==!!M.multiple&&(M.defaultValue!=null?Oe(P,!!M.multiple,M.defaultValue,!0):Oe(P,!!M.multiple,M.multiple?[]:"",!1))}P[ec]=M}catch(Ve){Jt(l,l.return,Ve)}}break;case 6:if(Fr(u,l),ei(l),_&4){if(l.stateNode===null)throw Error(r(162));P=l.stateNode,M=l.memoizedProps;try{P.nodeValue=M}catch(Ve){Jt(l,l.return,Ve)}}break;case 3:if(Fr(u,l),ei(l),_&4&&v!==null&&v.memoizedState.isDehydrated)try{Ul(u.containerInfo)}catch(Ve){Jt(l,l.return,Ve)}break;case 4:Fr(u,l),ei(l);break;case 13:Fr(u,l),ei(l),P=l.child,P.flags&8192&&(M=P.memoizedState!==null,P.stateNode.isHidden=M,!M||P.alternate!==null&&P.alternate.memoizedState!==null||(yp=tn())),_&4&&Ww(l);break;case 22:if(Ne=v!==null&&v.memoizedState!==null,l.mode&1?(Tn=(fe=Tn)||Ne,Fr(u,l),Tn=fe):Fr(u,l),ei(l),_&8192){if(fe=l.memoizedState!==null,(l.stateNode.isHidden=fe)&&!Ne&&(l.mode&1)!==0)for(Me=l,Ne=l.child;Ne!==null;){for(ke=Me=Ne;Me!==null;){switch(we=Me,Re=we.child,we.tag){case 0:case 11:case 14:case 15:dc(4,we,we.return);break;case 1:ko(we,we.return);var Be=we.stateNode;if(typeof Be.componentWillUnmount=="function"){_=we,v=we.return;try{u=_,Be.props=u.memoizedProps,Be.state=u.memoizedState,Be.componentWillUnmount()}catch(Ve){Jt(_,v,Ve)}}break;case 5:ko(we,we.return);break;case 22:if(we.memoizedState!==null){Yw(ke);continue}}Re!==null?(Re.return=we,Me=Re):Yw(ke)}Ne=Ne.sibling}e:for(Ne=null,ke=l;;){if(ke.tag===5){if(Ne===null){Ne=ke;try{P=ke.stateNode,fe?(M=P.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none"):(te=ke.stateNode,ie=ke.memoizedProps.style,$=ie!=null&&ie.hasOwnProperty("display")?ie.display:null,te.style.display=Un("display",$))}catch(Ve){Jt(l,l.return,Ve)}}}else if(ke.tag===6){if(Ne===null)try{ke.stateNode.nodeValue=fe?"":ke.memoizedProps}catch(Ve){Jt(l,l.return,Ve)}}else if((ke.tag!==22&&ke.tag!==23||ke.memoizedState===null||ke===l)&&ke.child!==null){ke.child.return=ke,ke=ke.child;continue}if(ke===l)break e;for(;ke.sibling===null;){if(ke.return===null||ke.return===l)break e;Ne===ke&&(Ne=null),ke=ke.return}Ne===ke&&(Ne=null),ke.sibling.return=ke.return,ke=ke.sibling}}break;case 19:Fr(u,l),ei(l),_&4&&Ww(l);break;case 21:break;default:Fr(u,l),ei(l)}}function ei(l){var u=l.flags;if(u&2){try{e:{for(var v=l.return;v!==null;){if(Uw(v)){var _=v;break e}v=v.return}throw Error(r(160))}switch(_.tag){case 5:var P=_.stateNode;_.flags&32&&(He(P,""),_.flags&=-33);var M=$w(l);pp(l,M,P);break;case 3:case 4:var $=_.stateNode.containerInfo,te=$w(l);mp(l,te,$);break;default:throw Error(r(161))}}catch(ie){Jt(l,l.return,ie)}l.flags&=-3}u&4096&&(l.flags&=-4097)}function E3(l,u,v){Me=l,Gw(l)}function Gw(l,u,v){for(var _=(l.mode&1)!==0;Me!==null;){var P=Me,M=P.child;if(P.tag===22&&_){var $=P.memoizedState!==null||Td;if(!$){var te=P.alternate,ie=te!==null&&te.memoizedState!==null||Tn;te=Td;var fe=Tn;if(Td=$,(Tn=ie)&&!fe)for(Me=P;Me!==null;)$=Me,ie=$.child,$.tag===22&&$.memoizedState!==null?Xw(P):ie!==null?(ie.return=$,Me=ie):Xw(P);for(;M!==null;)Me=M,Gw(M),M=M.sibling;Me=P,Td=te,Tn=fe}Qw(l)}else(P.subtreeFlags&8772)!==0&&M!==null?(M.return=P,Me=M):Qw(l)}}function Qw(l){for(;Me!==null;){var u=Me;if((u.flags&8772)!==0){var v=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:Tn||Pd(5,u);break;case 1:var _=u.stateNode;if(u.flags&4&&!Tn)if(v===null)_.componentDidMount();else{var P=u.elementType===u.type?v.memoizedProps:Ir(u.type,v.memoizedProps);_.componentDidUpdate(P,v.memoizedState,_.__reactInternalSnapshotBeforeUpdate)}var M=u.updateQueue;M!==null&&Yj(u,M,_);break;case 3:var $=u.updateQueue;if($!==null){if(v=null,u.child!==null)switch(u.child.tag){case 5:v=u.child.stateNode;break;case 1:v=u.child.stateNode}Yj(u,$,v)}break;case 5:var te=u.stateNode;if(v===null&&u.flags&4){v=te;var ie=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":ie.autoFocus&&v.focus();break;case"img":ie.src&&(v.src=ie.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var fe=u.alternate;if(fe!==null){var Ne=fe.memoizedState;if(Ne!==null){var ke=Ne.dehydrated;ke!==null&&Ul(ke)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Tn||u.flags&512&&fp(u)}catch(we){Jt(u,u.return,we)}}if(u===l){Me=null;break}if(v=u.sibling,v!==null){v.return=u.return,Me=v;break}Me=u.return}}function Yw(l){for(;Me!==null;){var u=Me;if(u===l){Me=null;break}var v=u.sibling;if(v!==null){v.return=u.return,Me=v;break}Me=u.return}}function Xw(l){for(;Me!==null;){var u=Me;try{switch(u.tag){case 0:case 11:case 15:var v=u.return;try{Pd(4,u)}catch(ie){Jt(u,v,ie)}break;case 1:var _=u.stateNode;if(typeof _.componentDidMount=="function"){var P=u.return;try{_.componentDidMount()}catch(ie){Jt(u,P,ie)}}var M=u.return;try{fp(u)}catch(ie){Jt(u,M,ie)}break;case 5:var $=u.return;try{fp(u)}catch(ie){Jt(u,$,ie)}}}catch(ie){Jt(u,u.return,ie)}if(u===l){Me=null;break}var te=u.sibling;if(te!==null){te.return=u.return,Me=te;break}Me=u.return}}var T3=Math.ceil,Od=k.ReactCurrentDispatcher,gp=k.ReactCurrentOwner,jr=k.ReactCurrentBatchConfig,yt=0,pn=null,an=null,wn=0,lr=0,_o=ds(0),dn=0,hc=null,ha=0,Dd=0,xp=0,fc=null,Kn=null,yp=0,So=1/0,Ii=null,Id=!1,vp=null,xs=null,Rd=!1,ys=null,Fd=0,mc=0,bp=null,Md=-1,Ld=0;function Ln(){return(yt&6)!==0?tn():Md!==-1?Md:Md=tn()}function vs(l){return(l.mode&1)===0?1:(yt&2)!==0&&wn!==0?wn&-wn:f3.transition!==null?(Ld===0&&(Ld=$b()),Ld):(l=Et,l!==0||(l=window.event,l=l===void 0?16:Zb(l.type)),l)}function Mr(l,u,v,_){if(50<mc)throw mc=0,bp=null,Error(r(185));Ll(l,v,_),((yt&2)===0||l!==pn)&&(l===pn&&((yt&2)===0&&(Dd|=v),dn===4&&bs(l,wn)),Gn(l,_),v===1&&yt===0&&(u.mode&1)===0&&(So=tn()+500,hd&&fs()))}function Gn(l,u){var v=l.callbackNode;fP(l,u);var _=Ku(l,l===pn?wn:0);if(_===0)v!==null&&qb(v),l.callbackNode=null,l.callbackPriority=0;else if(u=_&-_,l.callbackPriority!==u){if(v!=null&&qb(v),u===1)l.tag===0?h3(Zw.bind(null,l)):Lj(Zw.bind(null,l)),l3(function(){(yt&6)===0&&fs()}),v=null;else{switch(Hb(_)){case 1:v=Zf;break;case 4:v=Vb;break;case 16:v=Uu;break;case 536870912:v=Ub;break;default:v=Uu}v=o1(v,Jw.bind(null,l))}l.callbackPriority=u,l.callbackNode=v}}function Jw(l,u){if(Md=-1,Ld=0,(yt&6)!==0)throw Error(r(327));var v=l.callbackNode;if(Ao()&&l.callbackNode!==v)return null;var _=Ku(l,l===pn?wn:0);if(_===0)return null;if((_&30)!==0||(_&l.expiredLanes)!==0||u)u=Bd(l,_);else{u=_;var P=yt;yt|=2;var M=t1();(pn!==l||wn!==u)&&(Ii=null,So=tn()+500,ma(l,u));do try{D3();break}catch(te){e1(l,te)}while(!0);Lm(),Od.current=M,yt=P,an!==null?u=0:(pn=null,wn=0,u=dn)}if(u!==0){if(u===2&&(P=em(l),P!==0&&(_=P,u=jp(l,P))),u===1)throw v=hc,ma(l,0),bs(l,_),Gn(l,tn()),v;if(u===6)bs(l,_);else{if(P=l.current.alternate,(_&30)===0&&!P3(P)&&(u=Bd(l,_),u===2&&(M=em(l),M!==0&&(_=M,u=jp(l,M))),u===1))throw v=hc,ma(l,0),bs(l,_),Gn(l,tn()),v;switch(l.finishedWork=P,l.finishedLanes=_,u){case 0:case 1:throw Error(r(345));case 2:pa(l,Kn,Ii);break;case 3:if(bs(l,_),(_&130023424)===_&&(u=yp+500-tn(),10<u)){if(Ku(l,0)!==0)break;if(P=l.suspendedLanes,(P&_)!==_){Ln(),l.pingedLanes|=l.suspendedLanes&P;break}l.timeoutHandle=Am(pa.bind(null,l,Kn,Ii),u);break}pa(l,Kn,Ii);break;case 4:if(bs(l,_),(_&4194240)===_)break;for(u=l.eventTimes,P=-1;0<_;){var $=31-Pr(_);M=1<<$,$=u[$],$>P&&(P=$),_&=~M}if(_=P,_=tn()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*T3(_/1960))-_,10<_){l.timeoutHandle=Am(pa.bind(null,l,Kn,Ii),_);break}pa(l,Kn,Ii);break;case 5:pa(l,Kn,Ii);break;default:throw Error(r(329))}}}return Gn(l,tn()),l.callbackNode===v?Jw.bind(null,l):null}function jp(l,u){var v=fc;return l.current.memoizedState.isDehydrated&&(ma(l,u).flags|=256),l=Bd(l,u),l!==2&&(u=Kn,Kn=v,u!==null&&wp(u)),l}function wp(l){Kn===null?Kn=l:Kn.push.apply(Kn,l)}function P3(l){for(var u=l;;){if(u.flags&16384){var v=u.updateQueue;if(v!==null&&(v=v.stores,v!==null))for(var _=0;_<v.length;_++){var P=v[_],M=P.getSnapshot;P=P.value;try{if(!Or(M(),P))return!1}catch{return!1}}}if(v=u.child,u.subtreeFlags&16384&&v!==null)v.return=u,u=v;else{if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function bs(l,u){for(u&=~xp,u&=~Dd,l.suspendedLanes|=u,l.pingedLanes&=~u,l=l.expirationTimes;0<u;){var v=31-Pr(u),_=1<<v;l[v]=-1,u&=~_}}function Zw(l){if((yt&6)!==0)throw Error(r(327));Ao();var u=Ku(l,0);if((u&1)===0)return Gn(l,tn()),null;var v=Bd(l,u);if(l.tag!==0&&v===2){var _=em(l);_!==0&&(u=_,v=jp(l,_))}if(v===1)throw v=hc,ma(l,0),bs(l,u),Gn(l,tn()),v;if(v===6)throw Error(r(345));return l.finishedWork=l.current.alternate,l.finishedLanes=u,pa(l,Kn,Ii),Gn(l,tn()),null}function Np(l,u){var v=yt;yt|=1;try{return l(u)}finally{yt=v,yt===0&&(So=tn()+500,hd&&fs())}}function fa(l){ys!==null&&ys.tag===0&&(yt&6)===0&&Ao();var u=yt;yt|=1;var v=jr.transition,_=Et;try{if(jr.transition=null,Et=1,l)return l()}finally{Et=_,jr.transition=v,yt=u,(yt&6)===0&&fs()}}function kp(){lr=_o.current,Bt(_o)}function ma(l,u){l.finishedWork=null,l.finishedLanes=0;var v=l.timeoutHandle;if(v!==-1&&(l.timeoutHandle=-1,o3(v)),an!==null)for(v=an.return;v!==null;){var _=v;switch(Dm(_),_.tag){case 1:_=_.type.childContextTypes,_!=null&&ud();break;case 3:wo(),Bt($n),Bt(An),Wm();break;case 5:$m(_);break;case 4:wo();break;case 13:Bt(Wt);break;case 19:Bt(Wt);break;case 10:Bm(_.type._context);break;case 22:case 23:kp()}v=v.return}if(pn=l,an=l=js(l.current,null),wn=lr=u,dn=0,hc=null,xp=Dd=ha=0,Kn=fc=null,ca!==null){for(u=0;u<ca.length;u++)if(v=ca[u],_=v.interleaved,_!==null){v.interleaved=null;var P=_.next,M=v.pending;if(M!==null){var $=M.next;M.next=P,_.next=$}v.pending=_}ca=null}return l}function e1(l,u){do{var v=an;try{if(Lm(),wd.current=Sd,Nd){for(var _=Kt.memoizedState;_!==null;){var P=_.queue;P!==null&&(P.pending=null),_=_.next}Nd=!1}if(da=0,mn=un=Kt=null,ac=!1,oc=0,gp.current=null,v===null||v.return===null){dn=1,hc=u,an=null;break}e:{var M=l,$=v.return,te=v,ie=u;if(u=wn,te.flags|=32768,ie!==null&&typeof ie=="object"&&typeof ie.then=="function"){var fe=ie,Ne=te,ke=Ne.tag;if((Ne.mode&1)===0&&(ke===0||ke===11||ke===15)){var we=Ne.alternate;we?(Ne.updateQueue=we.updateQueue,Ne.memoizedState=we.memoizedState,Ne.lanes=we.lanes):(Ne.updateQueue=null,Ne.memoizedState=null)}var Re=_w($);if(Re!==null){Re.flags&=-257,Sw(Re,$,te,M,u),Re.mode&1&&kw(M,fe,u),u=Re,ie=fe;var Be=u.updateQueue;if(Be===null){var Ve=new Set;Ve.add(ie),u.updateQueue=Ve}else Be.add(ie);break e}else{if((u&1)===0){kw(M,fe,u),_p();break e}ie=Error(r(426))}}else if(qt&&te.mode&1){var nn=_w($);if(nn!==null){(nn.flags&65536)===0&&(nn.flags|=256),Sw(nn,$,te,M,u),Fm(No(ie,te));break e}}M=ie=No(ie,te),dn!==4&&(dn=2),fc===null?fc=[M]:fc.push(M),M=$;do{switch(M.tag){case 3:M.flags|=65536,u&=-u,M.lanes|=u;var ue=ww(M,ie,u);Qj(M,ue);break e;case 1:te=ie;var oe=M.type,he=M.stateNode;if((M.flags&128)===0&&(typeof oe.getDerivedStateFromError=="function"||he!==null&&typeof he.componentDidCatch=="function"&&(xs===null||!xs.has(he)))){M.flags|=65536,u&=-u,M.lanes|=u;var Ee=Nw(M,te,u);Qj(M,Ee);break e}}M=M.return}while(M!==null)}r1(v)}catch(Ue){u=Ue,an===v&&v!==null&&(an=v=v.return);continue}break}while(!0)}function t1(){var l=Od.current;return Od.current=Sd,l===null?Sd:l}function _p(){(dn===0||dn===3||dn===2)&&(dn=4),pn===null||(ha&268435455)===0&&(Dd&268435455)===0||bs(pn,wn)}function Bd(l,u){var v=yt;yt|=2;var _=t1();(pn!==l||wn!==u)&&(Ii=null,ma(l,u));do try{O3();break}catch(P){e1(l,P)}while(!0);if(Lm(),yt=v,Od.current=_,an!==null)throw Error(r(261));return pn=null,wn=0,dn}function O3(){for(;an!==null;)n1(an)}function D3(){for(;an!==null&&!iP();)n1(an)}function n1(l){var u=a1(l.alternate,l,lr);l.memoizedProps=l.pendingProps,u===null?r1(l):an=u,gp.current=null}function r1(l){var u=l;do{var v=u.alternate;if(l=u.return,(u.flags&32768)===0){if(v=_3(v,u,lr),v!==null){an=v;return}}else{if(v=S3(v,u),v!==null){v.flags&=32767,an=v;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{dn=6,an=null;return}}if(u=u.sibling,u!==null){an=u;return}an=u=l}while(u!==null);dn===0&&(dn=5)}function pa(l,u,v){var _=Et,P=jr.transition;try{jr.transition=null,Et=1,I3(l,u,v,_)}finally{jr.transition=P,Et=_}return null}function I3(l,u,v,_){do Ao();while(ys!==null);if((yt&6)!==0)throw Error(r(327));v=l.finishedWork;var P=l.finishedLanes;if(v===null)return null;if(l.finishedWork=null,l.finishedLanes=0,v===l.current)throw Error(r(177));l.callbackNode=null,l.callbackPriority=0;var M=v.lanes|v.childLanes;if(mP(l,M),l===pn&&(an=pn=null,wn=0),(v.subtreeFlags&2064)===0&&(v.flags&2064)===0||Rd||(Rd=!0,o1(Uu,function(){return Ao(),null})),M=(v.flags&15990)!==0,(v.subtreeFlags&15990)!==0||M){M=jr.transition,jr.transition=null;var $=Et;Et=1;var te=yt;yt|=4,gp.current=null,C3(l,v),Kw(v,l),e3(_m),Yu=!!km,_m=km=null,l.current=v,E3(v),sP(),yt=te,Et=$,jr.transition=M}else l.current=v;if(Rd&&(Rd=!1,ys=l,Fd=P),M=l.pendingLanes,M===0&&(xs=null),lP(v.stateNode),Gn(l,tn()),u!==null)for(_=l.onRecoverableError,v=0;v<u.length;v++)P=u[v],_(P.value,{componentStack:P.stack,digest:P.digest});if(Id)throw Id=!1,l=vp,vp=null,l;return(Fd&1)!==0&&l.tag!==0&&Ao(),M=l.pendingLanes,(M&1)!==0?l===bp?mc++:(mc=0,bp=l):mc=0,fs(),null}function Ao(){if(ys!==null){var l=Hb(Fd),u=jr.transition,v=Et;try{if(jr.transition=null,Et=16>l?16:l,ys===null)var _=!1;else{if(l=ys,ys=null,Fd=0,(yt&6)!==0)throw Error(r(331));var P=yt;for(yt|=4,Me=l.current;Me!==null;){var M=Me,$=M.child;if((Me.flags&16)!==0){var te=M.deletions;if(te!==null){for(var ie=0;ie<te.length;ie++){var fe=te[ie];for(Me=fe;Me!==null;){var Ne=Me;switch(Ne.tag){case 0:case 11:case 15:dc(8,Ne,M)}var ke=Ne.child;if(ke!==null)ke.return=Ne,Me=ke;else for(;Me!==null;){Ne=Me;var we=Ne.sibling,Re=Ne.return;if(Vw(Ne),Ne===fe){Me=null;break}if(we!==null){we.return=Re,Me=we;break}Me=Re}}}var Be=M.alternate;if(Be!==null){var Ve=Be.child;if(Ve!==null){Be.child=null;do{var nn=Ve.sibling;Ve.sibling=null,Ve=nn}while(Ve!==null)}}Me=M}}if((M.subtreeFlags&2064)!==0&&$!==null)$.return=M,Me=$;else e:for(;Me!==null;){if(M=Me,(M.flags&2048)!==0)switch(M.tag){case 0:case 11:case 15:dc(9,M,M.return)}var ue=M.sibling;if(ue!==null){ue.return=M.return,Me=ue;break e}Me=M.return}}var oe=l.current;for(Me=oe;Me!==null;){$=Me;var he=$.child;if(($.subtreeFlags&2064)!==0&&he!==null)he.return=$,Me=he;else e:for($=oe;Me!==null;){if(te=Me,(te.flags&2048)!==0)try{switch(te.tag){case 0:case 11:case 15:Pd(9,te)}}catch(Ue){Jt(te,te.return,Ue)}if(te===$){Me=null;break e}var Ee=te.sibling;if(Ee!==null){Ee.return=te.return,Me=Ee;break e}Me=te.return}}if(yt=P,fs(),Yr&&typeof Yr.onPostCommitFiberRoot=="function")try{Yr.onPostCommitFiberRoot($u,l)}catch{}_=!0}return _}finally{Et=v,jr.transition=u}}return!1}function i1(l,u,v){u=No(v,u),u=ww(l,u,1),l=ps(l,u,1),u=Ln(),l!==null&&(Ll(l,1,u),Gn(l,u))}function Jt(l,u,v){if(l.tag===3)i1(l,l,v);else for(;u!==null;){if(u.tag===3){i1(u,l,v);break}else if(u.tag===1){var _=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(xs===null||!xs.has(_))){l=No(v,l),l=Nw(u,l,1),u=ps(u,l,1),l=Ln(),u!==null&&(Ll(u,1,l),Gn(u,l));break}}u=u.return}}function R3(l,u,v){var _=l.pingCache;_!==null&&_.delete(u),u=Ln(),l.pingedLanes|=l.suspendedLanes&v,pn===l&&(wn&v)===v&&(dn===4||dn===3&&(wn&130023424)===wn&&500>tn()-yp?ma(l,0):xp|=v),Gn(l,u)}function s1(l,u){u===0&&((l.mode&1)===0?u=1:(u=Wu,Wu<<=1,(Wu&130023424)===0&&(Wu=4194304)));var v=Ln();l=Pi(l,u),l!==null&&(Ll(l,u,v),Gn(l,v))}function F3(l){var u=l.memoizedState,v=0;u!==null&&(v=u.retryLane),s1(l,v)}function M3(l,u){var v=0;switch(l.tag){case 13:var _=l.stateNode,P=l.memoizedState;P!==null&&(v=P.retryLane);break;case 19:_=l.stateNode;break;default:throw Error(r(314))}_!==null&&_.delete(u),s1(l,v)}var a1;a1=function(l,u,v){if(l!==null)if(l.memoizedProps!==u.pendingProps||$n.current)Wn=!0;else{if((l.lanes&v)===0&&(u.flags&128)===0)return Wn=!1,k3(l,u,v);Wn=(l.flags&131072)!==0}else Wn=!1,qt&&(u.flags&1048576)!==0&&Bj(u,md,u.index);switch(u.lanes=0,u.tag){case 2:var _=u.type;Ed(l,u),l=u.pendingProps;var P=po(u,An.current);jo(u,v),P=Qm(null,u,_,l,P,v);var M=Ym();return u.flags|=1,typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Hn(_)?(M=!0,dd(u)):M=!1,u.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,Vm(u),P.updater=Ad,u.stateNode=P,P._reactInternals=u,np(u,_,l,v),u=ap(null,u,_,!0,M,v)):(u.tag=0,qt&&M&&Om(u),Mn(null,u,P,v),u=u.child),u;case 16:_=u.elementType;e:{switch(Ed(l,u),l=u.pendingProps,P=_._init,_=P(_._payload),u.type=_,P=u.tag=B3(_),l=Ir(_,l),P){case 0:u=sp(null,u,_,l,v);break e;case 1:u=Ow(null,u,_,l,v);break e;case 11:u=Aw(null,u,_,l,v);break e;case 14:u=Cw(null,u,_,Ir(_.type,l),v);break e}throw Error(r(306,_,""))}return u;case 0:return _=u.type,P=u.pendingProps,P=u.elementType===_?P:Ir(_,P),sp(l,u,_,P,v);case 1:return _=u.type,P=u.pendingProps,P=u.elementType===_?P:Ir(_,P),Ow(l,u,_,P,v);case 3:e:{if(Dw(u),l===null)throw Error(r(387));_=u.pendingProps,M=u.memoizedState,P=M.element,Gj(l,u),bd(u,_,null,v);var $=u.memoizedState;if(_=$.element,M.isDehydrated)if(M={element:_,isDehydrated:!1,cache:$.cache,pendingSuspenseBoundaries:$.pendingSuspenseBoundaries,transitions:$.transitions},u.updateQueue.baseState=M,u.memoizedState=M,u.flags&256){P=No(Error(r(423)),u),u=Iw(l,u,_,v,P);break e}else if(_!==P){P=No(Error(r(424)),u),u=Iw(l,u,_,v,P);break e}else for(or=us(u.stateNode.containerInfo.firstChild),ar=u,qt=!0,Dr=null,v=Wj(u,null,_,v),u.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(yo(),_===P){u=Di(l,u,v);break e}Mn(l,u,_,v)}u=u.child}return u;case 5:return Xj(u),l===null&&Rm(u),_=u.type,P=u.pendingProps,M=l!==null?l.memoizedProps:null,$=P.children,Sm(_,P)?$=null:M!==null&&Sm(_,M)&&(u.flags|=32),Pw(l,u),Mn(l,u,$,v),u.child;case 6:return l===null&&Rm(u),null;case 13:return Rw(l,u,v);case 4:return Um(u,u.stateNode.containerInfo),_=u.pendingProps,l===null?u.child=vo(u,null,_,v):Mn(l,u,_,v),u.child;case 11:return _=u.type,P=u.pendingProps,P=u.elementType===_?P:Ir(_,P),Aw(l,u,_,P,v);case 7:return Mn(l,u,u.pendingProps,v),u.child;case 8:return Mn(l,u,u.pendingProps.children,v),u.child;case 12:return Mn(l,u,u.pendingProps.children,v),u.child;case 10:e:{if(_=u.type._context,P=u.pendingProps,M=u.memoizedProps,$=P.value,It(xd,_._currentValue),_._currentValue=$,M!==null)if(Or(M.value,$)){if(M.children===P.children&&!$n.current){u=Di(l,u,v);break e}}else for(M=u.child,M!==null&&(M.return=u);M!==null;){var te=M.dependencies;if(te!==null){$=M.child;for(var ie=te.firstContext;ie!==null;){if(ie.context===_){if(M.tag===1){ie=Oi(-1,v&-v),ie.tag=2;var fe=M.updateQueue;if(fe!==null){fe=fe.shared;var Ne=fe.pending;Ne===null?ie.next=ie:(ie.next=Ne.next,Ne.next=ie),fe.pending=ie}}M.lanes|=v,ie=M.alternate,ie!==null&&(ie.lanes|=v),zm(M.return,v,u),te.lanes|=v;break}ie=ie.next}}else if(M.tag===10)$=M.type===u.type?null:M.child;else if(M.tag===18){if($=M.return,$===null)throw Error(r(341));$.lanes|=v,te=$.alternate,te!==null&&(te.lanes|=v),zm($,v,u),$=M.sibling}else $=M.child;if($!==null)$.return=M;else for($=M;$!==null;){if($===u){$=null;break}if(M=$.sibling,M!==null){M.return=$.return,$=M;break}$=$.return}M=$}Mn(l,u,P.children,v),u=u.child}return u;case 9:return P=u.type,_=u.pendingProps.children,jo(u,v),P=vr(P),_=_(P),u.flags|=1,Mn(l,u,_,v),u.child;case 14:return _=u.type,P=Ir(_,u.pendingProps),P=Ir(_.type,P),Cw(l,u,_,P,v);case 15:return Ew(l,u,u.type,u.pendingProps,v);case 17:return _=u.type,P=u.pendingProps,P=u.elementType===_?P:Ir(_,P),Ed(l,u),u.tag=1,Hn(_)?(l=!0,dd(u)):l=!1,jo(u,v),bw(u,_,P),np(u,_,P,v),ap(null,u,_,!0,l,v);case 19:return Mw(l,u,v);case 22:return Tw(l,u,v)}throw Error(r(156,u.tag))};function o1(l,u){return zb(l,u)}function L3(l,u,v,_){this.tag=l,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wr(l,u,v,_){return new L3(l,u,v,_)}function Sp(l){return l=l.prototype,!(!l||!l.isReactComponent)}function B3(l){if(typeof l=="function")return Sp(l)?1:0;if(l!=null){if(l=l.$$typeof,l===R)return 11;if(l===U)return 14}return 2}function js(l,u){var v=l.alternate;return v===null?(v=wr(l.tag,u,l.key,l.mode),v.elementType=l.elementType,v.type=l.type,v.stateNode=l.stateNode,v.alternate=l,l.alternate=v):(v.pendingProps=u,v.type=l.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=l.flags&14680064,v.childLanes=l.childLanes,v.lanes=l.lanes,v.child=l.child,v.memoizedProps=l.memoizedProps,v.memoizedState=l.memoizedState,v.updateQueue=l.updateQueue,u=l.dependencies,v.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},v.sibling=l.sibling,v.index=l.index,v.ref=l.ref,v}function zd(l,u,v,_,P,M){var $=2;if(_=l,typeof l=="function")Sp(l)&&($=1);else if(typeof l=="string")$=5;else e:switch(l){case E:return ga(v.children,P,M,u);case C:$=8,P|=8;break;case B:return l=wr(12,v,u,P|2),l.elementType=B,l.lanes=M,l;case z:return l=wr(13,v,u,P),l.elementType=z,l.lanes=M,l;case q:return l=wr(19,v,u,P),l.elementType=q,l.lanes=M,l;case H:return qd(v,P,M,u);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case D:$=10;break e;case F:$=9;break e;case R:$=11;break e;case U:$=14;break e;case Q:$=16,_=null;break e}throw Error(r(130,l==null?l:typeof l,""))}return u=wr($,v,u,P),u.elementType=l,u.type=_,u.lanes=M,u}function ga(l,u,v,_){return l=wr(7,l,_,u),l.lanes=v,l}function qd(l,u,v,_){return l=wr(22,l,_,u),l.elementType=H,l.lanes=v,l.stateNode={isHidden:!1},l}function Ap(l,u,v){return l=wr(6,l,null,u),l.lanes=v,l}function Cp(l,u,v){return u=wr(4,l.children!==null?l.children:[],l.key,u),u.lanes=v,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}function z3(l,u,v,_,P){this.tag=u,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tm(0),this.expirationTimes=tm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tm(0),this.identifierPrefix=_,this.onRecoverableError=P,this.mutableSourceEagerHydrationData=null}function Ep(l,u,v,_,P,M,$,te,ie){return l=new z3(l,u,v,te,ie),u===1?(u=1,M===!0&&(u|=8)):u=0,M=wr(3,null,null,u),l.current=M,M.stateNode=l,M.memoizedState={element:_,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vm(M),l}function q3(l,u,v){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:S,key:_==null?null:""+_,children:l,containerInfo:u,implementation:v}}function l1(l){if(!l)return hs;l=l._reactInternals;e:{if(ia(l)!==l||l.tag!==1)throw Error(r(170));var u=l;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(Hn(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(r(171))}if(l.tag===1){var v=l.type;if(Hn(v))return Fj(l,v,u)}return u}function c1(l,u,v,_,P,M,$,te,ie){return l=Ep(v,_,!0,l,P,M,$,te,ie),l.context=l1(null),v=l.current,_=Ln(),P=vs(v),M=Oi(_,P),M.callback=u??null,ps(v,M,P),l.current.lanes=P,Ll(l,P,_),Gn(l,_),l}function Vd(l,u,v,_){var P=u.current,M=Ln(),$=vs(P);return v=l1(v),u.context===null?u.context=v:u.pendingContext=v,u=Oi(M,$),u.payload={element:l},_=_===void 0?null:_,_!==null&&(u.callback=_),l=ps(P,u,$),l!==null&&(Mr(l,P,$,M),vd(l,P,$)),$}function Ud(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return l.child.stateNode;default:return l.child.stateNode}}function u1(l,u){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var v=l.retryLane;l.retryLane=v!==0&&v<u?v:u}}function Tp(l,u){u1(l,u),(l=l.alternate)&&u1(l,u)}function V3(){return null}var d1=typeof reportError=="function"?reportError:function(l){console.error(l)};function Pp(l){this._internalRoot=l}$d.prototype.render=Pp.prototype.render=function(l){var u=this._internalRoot;if(u===null)throw Error(r(409));Vd(l,u,null,null)},$d.prototype.unmount=Pp.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var u=l.containerInfo;fa(function(){Vd(null,l,null,null)}),u[Ai]=null}};function $d(l){this._internalRoot=l}$d.prototype.unstable_scheduleHydration=function(l){if(l){var u=Gb();l={blockedOn:null,target:l,priority:u};for(var v=0;v<os.length&&u!==0&&u<os[v].priority;v++);os.splice(v,0,l),v===0&&Xb(l)}};function Op(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function Hd(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function h1(){}function U3(l,u,v,_,P){if(P){if(typeof _=="function"){var M=_;_=function(){var fe=Ud($);M.call(fe)}}var $=c1(u,_,l,0,null,!1,!1,"",h1);return l._reactRootContainer=$,l[Ai]=$.current,Jl(l.nodeType===8?l.parentNode:l),fa(),$}for(;P=l.lastChild;)l.removeChild(P);if(typeof _=="function"){var te=_;_=function(){var fe=Ud(ie);te.call(fe)}}var ie=Ep(l,0,!1,null,null,!1,!1,"",h1);return l._reactRootContainer=ie,l[Ai]=ie.current,Jl(l.nodeType===8?l.parentNode:l),fa(function(){Vd(u,ie,v,_)}),ie}function Wd(l,u,v,_,P){var M=v._reactRootContainer;if(M){var $=M;if(typeof P=="function"){var te=P;P=function(){var ie=Ud($);te.call(ie)}}Vd(u,$,l,P)}else $=U3(v,u,l,P,_);return Ud($)}Wb=function(l){switch(l.tag){case 3:var u=l.stateNode;if(u.current.memoizedState.isDehydrated){var v=Ml(u.pendingLanes);v!==0&&(nm(u,v|1),Gn(u,tn()),(yt&6)===0&&(So=tn()+500,fs()))}break;case 13:fa(function(){var _=Pi(l,1);if(_!==null){var P=Ln();Mr(_,l,1,P)}}),Tp(l,1)}},rm=function(l){if(l.tag===13){var u=Pi(l,134217728);if(u!==null){var v=Ln();Mr(u,l,134217728,v)}Tp(l,134217728)}},Kb=function(l){if(l.tag===13){var u=vs(l),v=Pi(l,u);if(v!==null){var _=Ln();Mr(v,l,u,_)}Tp(l,u)}},Gb=function(){return Et},Qb=function(l,u){var v=Et;try{return Et=l,u()}finally{Et=v}},Qf=function(l,u,v){switch(u){case"input":if(nt(l,v),u=v.name,v.type==="radio"&&u!=null){for(v=l;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<v.length;u++){var _=v[u];if(_!==l&&_.form===l.form){var P=cd(_);if(!P)throw Error(r(90));be(_),nt(_,P)}}}break;case"textarea":et(l,v);break;case"select":u=v.value,u!=null&&Oe(l,!!v.multiple,u,!1)}},Db=Np,Ib=fa;var $3={usingClientEntryPoint:!1,Events:[tc,fo,cd,Pb,Ob,Np]},pc={findFiberByHostInstance:sa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},H3={bundleType:pc.bundleType,version:pc.version,rendererPackageName:pc.rendererPackageName,rendererConfig:pc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(l){return l=Lb(l),l===null?null:l.stateNode},findFiberByHostInstance:pc.findFiberByHostInstance||V3,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 Kd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kd.isDisabled&&Kd.supportsFiber)try{$u=Kd.inject(H3),Yr=Kd}catch{}}return Qn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$3,Qn.createPortal=function(l,u){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Op(u))throw Error(r(200));return q3(l,u,null,v)},Qn.createRoot=function(l,u){if(!Op(l))throw Error(r(299));var v=!1,_="",P=d1;return u!=null&&(u.unstable_strictMode===!0&&(v=!0),u.identifierPrefix!==void 0&&(_=u.identifierPrefix),u.onRecoverableError!==void 0&&(P=u.onRecoverableError)),u=Ep(l,1,!1,null,null,v,!1,_,P),l[Ai]=u.current,Jl(l.nodeType===8?l.parentNode:l),new Pp(u)},Qn.findDOMNode=function(l){if(l==null)return null;if(l.nodeType===1)return l;var u=l._reactInternals;if(u===void 0)throw typeof l.render=="function"?Error(r(188)):(l=Object.keys(l).join(","),Error(r(268,l)));return l=Lb(u),l=l===null?null:l.stateNode,l},Qn.flushSync=function(l){return fa(l)},Qn.hydrate=function(l,u,v){if(!Hd(u))throw Error(r(200));return Wd(null,l,u,!0,v)},Qn.hydrateRoot=function(l,u,v){if(!Op(l))throw Error(r(405));var _=v!=null&&v.hydratedSources||null,P=!1,M="",$=d1;if(v!=null&&(v.unstable_strictMode===!0&&(P=!0),v.identifierPrefix!==void 0&&(M=v.identifierPrefix),v.onRecoverableError!==void 0&&($=v.onRecoverableError)),u=c1(u,null,l,1,v??null,P,!1,M,$),l[Ai]=u.current,Jl(l),_)for(l=0;l<_.length;l++)v=_[l],P=v._getVersion,P=P(v._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[v,P]:u.mutableSourceEagerHydrationData.push(v,P);return new $d(u)},Qn.render=function(l,u,v){if(!Hd(u))throw Error(r(200));return Wd(null,l,u,!1,v)},Qn.unmountComponentAtNode=function(l){if(!Hd(l))throw Error(r(40));return l._reactRootContainer?(fa(function(){Wd(null,null,l,!1,function(){l._reactRootContainer=null,l[Ai]=null})}),!0):!1},Qn.unstable_batchedUpdates=Np,Qn.unstable_renderSubtreeIntoContainer=function(l,u,v,_){if(!Hd(v))throw Error(r(200));if(l==null||l._reactInternals===void 0)throw Error(r(38));return Wd(l,u,v,!1,_)},Qn.version="18.3.1-next-f1338f8080-20240426",Qn}var j1;function Jy(){if(j1)return Fp.exports;j1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),Fp.exports=eO(),Fp.exports}var w1;function tO(){if(w1)return Yd;w1=1;var t=Jy();return Yd.createRoot=t.createRoot,Yd.hydrateRoot=t.hydrateRoot,Yd}var nO=tO();const rO=ki(nO),iO=20,sO=1e6,Vi={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Bp=0;function aO(){return Bp=(Bp+1)%Number.MAX_VALUE,Bp.toString()}const zp=new Map,N1=t=>{if(zp.has(t))return;const n=setTimeout(()=>{zp.delete(t),Bc({type:Vi.REMOVE_TOAST,toastId:t})},sO);zp.set(t,n)},oO=(t,n)=>{switch(n.type){case Vi.ADD_TOAST:return{...t,toasts:[n.toast,...t.toasts].slice(0,iO)};case Vi.UPDATE_TOAST:return{...t,toasts:t.toasts.map(r=>r.id===n.toast.id?{...r,...n.toast}:r)};case Vi.DISMISS_TOAST:{const{toastId:r}=n;return r?N1(r):t.toasts.forEach(i=>{N1(i.id)}),{...t,toasts:t.toasts.map(i=>i.id===r||r===void 0?{...i,open:!1}:i)}}case Vi.REMOVE_TOAST:return n.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==n.toastId)}}},xh=[];let yh={toasts:[]};function Bc(t){yh=oO(yh,t),xh.forEach(n=>{n(yh)})}function lO({...t}){const n=aO(),r=s=>Bc({type:Vi.UPDATE_TOAST,toast:{...s,id:n}}),i=()=>Bc({type:Vi.DISMISS_TOAST,toastId:n});return Bc({type:Vi.ADD_TOAST,toast:{...t,id:n,open:!0,onOpenChange:s=>{s||i()}}}),{id:n,dismiss:i,update:r}}function cO(){const[t,n]=I.useState(yh);return I.useEffect(()=>(xh.push(n),()=>{const r=xh.indexOf(n);r>-1&&xh.splice(r,1)}),[t]),{...t,toast:lO,dismiss:r=>Bc({type:Vi.DISMISS_TOAST,toastId:r})}}function bA(t){var n,r,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(n=0;n<s;n++)t[n]&&(r=bA(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}function jA(){for(var t,n,r=0,i="",s=arguments.length;r<s;r++)(t=arguments[r])&&(n=bA(t))&&(i&&(i+=" "),i+=n);return i}const k1=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,_1=jA,wA=(t,n)=>r=>{var i;if((n==null?void 0:n.variants)==null)return _1(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:a}=n,o=Object.keys(s).map(h=>{const f=r==null?void 0:r[h],m=a==null?void 0:a[h];if(f===null)return null;const p=k1(f)||k1(m);return s[h][p]}),c=r&&Object.entries(r).reduce((h,f)=>{let[m,p]=f;return p===void 0||(h[m]=p),h},{}),d=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((h,f)=>{let{class:m,className:p,...g}=f;return Object.entries(g).every(b=>{let[j,y]=b;return Array.isArray(y)?y.includes({...a,...c}[j]):{...a,...c}[j]===y})?[...h,m,p]:h},[]);return _1(t,o,d,r==null?void 0:r.class,r==null?void 0:r.className)};/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uO=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),NA=(...t)=>t.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim();/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var dO={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"};/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hO=I.forwardRef(({color:t="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:a,iconNode:o,...c},d)=>I.createElement("svg",{ref:d,...dO,width:n,height:n,stroke:t,strokeWidth:i?Number(r)*24/Number(n):r,className:NA("lucide",s),...c},[...o.map(([h,f])=>I.createElement(h,f)),...Array.isArray(a)?a:[a]]));/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ce=(t,n)=>{const r=I.forwardRef(({className:i,...s},a)=>I.createElement(hO,{ref:a,iconNode:n,className:NA(`lucide-${uO(t)}`,i),...s}));return r.displayName=`${t}`,r};/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fO=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ht=Ce("ArrowLeft",fO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mO=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],$e=Ce("ArrowRight",mO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pO=[["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"}]],k0=Ce("Award",pO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gO=[["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"}]],qa=Ce("BookOpen",gO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xO=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],kA=Ce("Bot",xO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yO=[["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"}]],vO=Ce("Brain",yO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bO=[["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"}]],Qa=Ce("Briefcase",bO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jO=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Ya=Ce("Building2",jO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wO=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],NO=Ce("CalendarDays",wO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kO=[["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"}]],_i=Ce("Calendar",kO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _O=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ft=Ce("Check",_O);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SO=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ka=Ce("ChevronDown",SO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AO=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],CO=Ce("ChevronLeft",AO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const EO=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],_A=Ce("ChevronRight",EO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const TO=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],PO=Ce("ChevronUp",TO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OO=[["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"}]],fi=Ce("CircleAlert",OO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const DO=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],gt=Ce("CircleCheckBig",DO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IO=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],RO=Ce("CircleCheck",IO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FO=[["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"}]],MO=Ce("CircleHelp",FO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const LO=[["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"}]],Yc=Ce("CircleX",LO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const BO=[["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"}]],zO=Ce("ClipboardList",BO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qO=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],yn=Ce("Clock",qO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VO=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],SA=Ce("CodeXml",VO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const UO=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],$O=Ce("Code",UO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HO=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],WO=Ce("Copy",HO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KO=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],AA=Ce("Database",KO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const GO=[["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"}]],ju=Ce("Download",GO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QO=[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]],S1=Ce("Euro",QO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YO=[["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"}]],Bs=Ce("ExternalLink",YO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const XO=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],qp=Ce("EyeOff",XO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JO=[["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"}]],zs=Ce("Eye",JO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZO=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],CA=Ce("Facebook",ZO);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eD=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],tD=Ce("FileDown",eD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nD=[["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"}]],$t=Ce("FileText",nD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rD=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],lf=Ce("Filter",rD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iD=[["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"}]],sD=Ce("Globe",iD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aD=[["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"}]],pr=Ce("GraduationCap",aD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oD=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],cf=Ce("Headphones",oD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lD=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],cD=Ce("Hexagon",lD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uD=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],dD=Ce("History",uD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hD=[["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"}]],_0=Ce("House",hD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],mD=Ce("Image",fD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],vh=Ce("Info",pD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gD=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],Xc=Ce("Instagram",gD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xD=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],wu=Ce("Layers",xD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yD=[["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"}]],A1=Ce("LayoutGrid",yD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vD=[["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"}]],Wi=Ce("Lightbulb",vD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bD=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],EA=Ce("Link",bD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jD=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],Hs=Ce("Linkedin",jD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wD=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],TA=Ce("LoaderCircle",wD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ND=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],kD=Ce("Loader",ND);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _D=[["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"}]],Hr=Ce("Mail",_D);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SD=[["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"}]],Nu=Ce("MapPin",SD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AD=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],CD=Ce("Map",AD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ED=[["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"}]],TD=Ce("Menu",ED);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const PD=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],$o=Ce("MessageCircle",PD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OD=[["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"}]],DD=Ce("MessageSquare",OD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ID=[["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"}]],RD=Ce("Newspaper",ID);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],C1=Ce("PanelsTopLeft",FD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const MD=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],zc=Ce("Pen",MD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const LD=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],BD=Ce("Pencil",LD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zD=[["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"}]],Zy=Ce("Phone",zD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qD=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],S0=Ce("Play",qD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ot=Ce("Plus",VD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const UD=[["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"}]],PA=Ce("Quote",UD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $D=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],HD=Ce("RefreshCcw",$D);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WD=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],KD=Ce("Rocket",WD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const GD=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Sn=Ce("Save",GD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QD=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],E1=Ce("Scale",QD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YD=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],mi=Ce("Search",YD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const XD=[["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"}]],OA=Ce("Send",XD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JD=[["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"}]],Jc=Ce("Settings",JD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZD=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],ev=Ce("Share2",ZD);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eI=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],DA=Ce("ShieldCheck",eI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tI=[["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"}]],Vn=Ce("Shield",tI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nI=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],At=Ce("Sparkles",nI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rI=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],On=Ce("SquarePen",rI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iI=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Zc=Ce("Star",iI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sI=[["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"}]],aI=Ce("Tag",sI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oI=[["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"}]],Va=Ce("Target",oI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lI=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],cI=Ce("TestTube",lI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uI=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],wt=Ce("Trash2",uI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dI=[["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"}]],Ki=Ce("TrendingUp",dI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hI=[["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"}]],Ho=Ce("TriangleAlert",hI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fI=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],IA=Ce("Twitter",fI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mI=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],RA=Ce("Upload",mI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pI=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],gI=Ce("User",pI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xI=[["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"}]],_n=Ce("Users",xI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yI=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ht=Ce("X",yI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vI=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],eu=Ce("Youtube",vI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bI=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],ui=Ce("Zap",bI),tv="-",jI=t=>{const n=NI(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:o=>{const c=o.split(tv);return c[0]===""&&c.length!==1&&c.shift(),FA(c,n)||wI(o)},getConflictingClassGroupIds:(o,c)=>{const d=r[o]||[];return c&&i[o]?[...d,...i[o]]:d}}},FA=(t,n)=>{var o;if(t.length===0)return n.classGroupId;const r=t[0],i=n.nextPart.get(r),s=i?FA(t.slice(1),i):void 0;if(s)return s;if(n.validators.length===0)return;const a=t.join(tv);return(o=n.validators.find(({validator:c})=>c(a)))==null?void 0:o.classGroupId},T1=/^\[(.+)\]$/,wI=t=>{if(T1.test(t)){const n=T1.exec(t)[1],r=n==null?void 0:n.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},NI=t=>{const{theme:n,classGroups:r}=t,i={nextPart:new Map,validators:[]};for(const s in r)A0(r[s],i,s,n);return i},A0=(t,n,r,i)=>{t.forEach(s=>{if(typeof s=="string"){const a=s===""?n:P1(n,s);a.classGroupId=r;return}if(typeof s=="function"){if(kI(s)){A0(s(i),n,r,i);return}n.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,o])=>{A0(o,P1(n,a),r,i)})})},P1=(t,n)=>{let r=t;return n.split(tv).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},kI=t=>t.isThemeGetter,_I=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,i=new Map;const s=(a,o)=>{r.set(a,o),n++,n>t&&(n=0,i=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=i.get(a))!==void 0)return s(a,o),o},set(a,o){r.has(a)?r.set(a,o):s(a,o)}}},C0="!",E0=":",SI=E0.length,AI=t=>{const{prefix:n,experimentalParseClassName:r}=t;let i=s=>{const a=[];let o=0,c=0,d=0,h;for(let b=0;b<s.length;b++){let j=s[b];if(o===0&&c===0){if(j===E0){a.push(s.slice(d,b)),d=b+SI;continue}if(j==="/"){h=b;continue}}j==="["?o++:j==="]"?o--:j==="("?c++:j===")"&&c--}const f=a.length===0?s:s.substring(d),m=CI(f),p=m!==f,g=h&&h>d?h-d:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}};if(n){const s=n+E0,a=i;i=o=>o.startsWith(s)?a(o.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(r){const s=i;i=a=>r({className:a,parseClassName:s})}return i},CI=t=>t.endsWith(C0)?t.substring(0,t.length-1):t.startsWith(C0)?t.substring(1):t,EI=t=>{const n=Object.fromEntries(t.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const s=[];let a=[];return i.forEach(o=>{o[0]==="["||n[o]?(s.push(...a.sort(),o),a=[]):a.push(o)}),s.push(...a.sort()),s}},TI=t=>({cache:_I(t.cacheSize),parseClassName:AI(t),sortModifiers:EI(t),...jI(t)}),PI=/\s+/,OI=(t,n)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:a}=n,o=[],c=t.trim().split(PI);let d="";for(let h=c.length-1;h>=0;h-=1){const f=c[h],{isExternal:m,modifiers:p,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:j}=r(f);if(m){d=f+(d.length>0?" "+d:d);continue}let y=!!j,x=i(y?b.substring(0,j):b);if(!x){if(!y){d=f+(d.length>0?" "+d:d);continue}if(x=i(b),!x){d=f+(d.length>0?" "+d:d);continue}y=!1}const N=a(p).join(":"),w=g?N+C0:N,k=w+x;if(o.includes(k))continue;o.push(k);const A=s(x,y);for(let S=0;S<A.length;++S){const E=A[S];o.push(w+E)}d=f+(d.length>0?" "+d:d)}return d};function DI(){let t=0,n,r,i="";for(;t<arguments.length;)(n=arguments[t++])&&(r=MA(n))&&(i&&(i+=" "),i+=r);return i}const MA=t=>{if(typeof t=="string")return t;let n,r="";for(let i=0;i<t.length;i++)t[i]&&(n=MA(t[i]))&&(r&&(r+=" "),r+=n);return r};function II(t,...n){let r,i,s,a=o;function o(d){const h=n.reduce((f,m)=>m(f),t());return r=TI(h),i=r.cache.get,s=r.cache.set,a=c,c(d)}function c(d){const h=i(d);if(h)return h;const f=OI(d,r);return s(d,f),f}return function(){return a(DI.apply(null,arguments))}}const hn=t=>{const n=r=>r[t]||[];return n.isThemeGetter=!0,n},LA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,BA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,RI=/^\d+\/\d+$/,FI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,MI=/\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$/,LI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,BI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Co=t=>RI.test(t),ct=t=>!!t&&!Number.isNaN(Number(t)),Ns=t=>!!t&&Number.isInteger(Number(t)),Vp=t=>t.endsWith("%")&&ct(t.slice(0,-1)),Ri=t=>FI.test(t),qI=()=>!0,VI=t=>MI.test(t)&&!LI.test(t),zA=()=>!1,UI=t=>BI.test(t),$I=t=>zI.test(t),HI=t=>!ze(t)&&!qe(t),WI=t=>yl(t,UA,zA),ze=t=>LA.test(t),xa=t=>yl(t,$A,VI),Up=t=>yl(t,XI,ct),O1=t=>yl(t,qA,zA),KI=t=>yl(t,VA,$I),Xd=t=>yl(t,HA,UI),qe=t=>BA.test(t),xc=t=>vl(t,$A),GI=t=>vl(t,JI),D1=t=>vl(t,qA),QI=t=>vl(t,UA),YI=t=>vl(t,VA),Jd=t=>vl(t,HA,!0),yl=(t,n,r)=>{const i=LA.exec(t);return i?i[1]?n(i[1]):r(i[2]):!1},vl=(t,n,r=!1)=>{const i=BA.exec(t);return i?i[1]?n(i[1]):r:!1},qA=t=>t==="position"||t==="percentage",VA=t=>t==="image"||t==="url",UA=t=>t==="length"||t==="size"||t==="bg-size",$A=t=>t==="length",XI=t=>t==="number",JI=t=>t==="family-name",HA=t=>t==="shadow",ZI=()=>{const t=hn("color"),n=hn("font"),r=hn("text"),i=hn("font-weight"),s=hn("tracking"),a=hn("leading"),o=hn("breakpoint"),c=hn("container"),d=hn("spacing"),h=hn("radius"),f=hn("shadow"),m=hn("inset-shadow"),p=hn("text-shadow"),g=hn("drop-shadow"),b=hn("blur"),j=hn("perspective"),y=hn("aspect"),x=hn("ease"),N=hn("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...k(),qe,ze],S=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],C=()=>[qe,ze,d],B=()=>[Co,"full","auto",...C()],D=()=>[Ns,"none","subgrid",qe,ze],F=()=>["auto",{span:["full",Ns,qe,ze]},Ns,qe,ze],R=()=>[Ns,"auto",qe,ze],z=()=>["auto","min","max","fr",qe,ze],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...C()],H=()=>[Co,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],K=()=>[t,qe,ze],Y=()=>[...k(),D1,O1,{position:[qe,ze]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",QI,WI,{size:[qe,ze]}],V=()=>[Vp,xc,xa],L=()=>["","none","full",h,qe,ze],X=()=>["",ct,xc,xa],J=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[ct,Vp,D1,O1],ee=()=>["","none",b,qe,ze],ne=()=>["none",ct,qe,ze],le=()=>["none",ct,qe,ze],ye=()=>[ct,qe,ze],be=()=>[Co,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ri],breakpoint:[Ri],color:[qI],container:[Ri],"drop-shadow":[Ri],ease:["in","out","in-out"],font:[HI],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ri],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ri],shadow:[Ri],spacing:["px",ct],text:[Ri],"text-shadow":[Ri],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Co,ze,qe,y]}],container:["container"],columns:[{columns:[ct,ze,qe,c]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Ns,"auto",qe,ze]}],basis:[{basis:[Co,"full","auto",c,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ct,Co,"auto","initial","none",ze]}],grow:[{grow:["",ct,qe,ze]}],shrink:[{shrink:["",ct,qe,ze]}],order:[{order:[Ns,"first","last","none",qe,ze]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[c,"screen",...H()]}],"min-w":[{"min-w":[c,"screen","none",...H()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[o]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,xc,xa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,qe,Up]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vp,ze]}],"font-family":[{font:[GI,ze,n]}],"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:[s,qe,ze]}],"line-clamp":[{"line-clamp":[ct,"none",qe,Up]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":["none",qe,ze]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",qe,ze]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[ct,"from-font","auto",qe,xa]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[ct,"auto",qe,ze]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",qe,ze]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",qe,ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ns,qe,ze],radial:["",qe,ze],conic:[Ns,qe,ze]},YI,KI]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ct,qe,ze]}],"outline-w":[{outline:["",ct,xc,xa]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",f,Jd,Xd]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",m,Jd,Xd]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[ct,xa]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",p,Jd,Xd]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[ct,qe,ze]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ct]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[qe,ze]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[ct]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",qe,ze]}],filter:[{filter:["","none",qe,ze]}],blur:[{blur:ee()}],brightness:[{brightness:[ct,qe,ze]}],contrast:[{contrast:[ct,qe,ze]}],"drop-shadow":[{"drop-shadow":["","none",g,Jd,Xd]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",ct,qe,ze]}],"hue-rotate":[{"hue-rotate":[ct,qe,ze]}],invert:[{invert:["",ct,qe,ze]}],saturate:[{saturate:[ct,qe,ze]}],sepia:[{sepia:["",ct,qe,ze]}],"backdrop-filter":[{"backdrop-filter":["","none",qe,ze]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[ct,qe,ze]}],"backdrop-contrast":[{"backdrop-contrast":[ct,qe,ze]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ct,qe,ze]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ct,qe,ze]}],"backdrop-invert":[{"backdrop-invert":["",ct,qe,ze]}],"backdrop-opacity":[{"backdrop-opacity":[ct,qe,ze]}],"backdrop-saturate":[{"backdrop-saturate":[ct,qe,ze]}],"backdrop-sepia":[{"backdrop-sepia":["",ct,qe,ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",qe,ze]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ct,"initial",qe,ze]}],ease:[{ease:["linear","initial",x,qe,ze]}],delay:[{delay:[ct,qe,ze]}],animate:[{animate:["none",N,qe,ze]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,qe,ze]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[qe,ze,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:be()}],"translate-x":[{"translate-x":be()}],"translate-y":[{"translate-y":be()}],"translate-z":[{"translate-z":be()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",qe,ze]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",qe,ze]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[ct,xc,xa,Up]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},e8=II(ZI);function Qt(...t){return e8(jA(t))}const WA=I.forwardRef(({...t},n)=>e.jsx("div",{ref:n,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...t}));WA.displayName="ToastProvider";const KA=I.forwardRef(({...t},n)=>e.jsx("div",{ref:n,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...t}));KA.displayName="ToastViewport";const t8=wA("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"}}),GA=I.forwardRef(({className:t,variant:n,...r},i)=>e.jsx("div",{ref:i,className:Qt(t8({variant:n}),t),...r}));GA.displayName="Toast";const n8=I.forwardRef(({className:t,...n},r)=>e.jsx("div",{ref:r,className:Qt("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",t),...n}));n8.displayName="ToastAction";const QA=I.forwardRef(({className:t,...n},r)=>e.jsx("button",{ref:r,className:Qt("absolute right-2 top-2 rounded-md p-1 text-foreground/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",t),"toast-close":"",...n,children:e.jsx(Ht,{className:"h-4 w-4"})}));QA.displayName="ToastClose";const YA=I.forwardRef(({className:t,...n},r)=>e.jsx("div",{ref:r,className:Qt("text-sm font-semibold",t),...n}));YA.displayName="ToastTitle";const XA=I.forwardRef(({className:t,...n},r)=>e.jsx("div",{ref:r,className:Qt("text-sm opacity-90",t),...n}));XA.displayName="ToastDescription";function r8(){const{toasts:t}=cO();return e.jsxs(WA,{children:[t.map(function({id:n,title:r,description:i,action:s,...a}){return e.jsxs(GA,{...a,children:[e.jsxs("div",{className:"grid gap-1",children:[r&&e.jsx(YA,{children:r}),i&&e.jsx(XA,{children:i})]}),s,e.jsx(QA,{})]},n)}),e.jsx(KA,{})]})}var bl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},i8={setTimeout:(t,n)=>setTimeout(t,n),clearTimeout:t=>clearTimeout(t),setInterval:(t,n)=>setInterval(t,n),clearInterval:t=>clearInterval(t)},Es,Yy,cA,s8=(cA=class{constructor(){Ke(this,Es,i8);Ke(this,Yy,!1)}setTimeoutProvider(t){Ie(this,Es,t)}setTimeout(t,n){return re(this,Es).setTimeout(t,n)}clearTimeout(t){re(this,Es).clearTimeout(t)}setInterval(t,n){return re(this,Es).setInterval(t,n)}clearInterval(t){re(this,Es).clearInterval(t)}},Es=new WeakMap,Yy=new WeakMap,cA),_a=new s8;function a8(t){setTimeout(t,0)}var Ua=typeof window>"u"||"Deno"in globalThis;function qn(){}function o8(t,n){return typeof t=="function"?t(n):t}function T0(t){return typeof t=="number"&&t>=0&&t!==1/0}function JA(t,n){return Math.max(t+(n||0)-Date.now(),0)}function qs(t,n){return typeof t=="function"?t(n):t}function Sr(t,n){return typeof t=="function"?t(n):t}function I1(t,n){const{type:r="all",exact:i,fetchStatus:s,predicate:a,queryKey:o,stale:c}=t;if(o){if(i){if(n.queryHash!==nv(o,n.options))return!1}else if(!tu(n.queryKey,o))return!1}if(r!=="all"){const d=n.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof c=="boolean"&&n.isStale()!==c||s&&s!==n.state.fetchStatus||a&&!a(n))}function R1(t,n){const{exact:r,status:i,predicate:s,mutationKey:a}=t;if(a){if(!n.options.mutationKey)return!1;if(r){if($a(n.options.mutationKey)!==$a(a))return!1}else if(!tu(n.options.mutationKey,a))return!1}return!(i&&n.state.status!==i||s&&!s(n))}function nv(t,n){return((n==null?void 0:n.queryKeyHashFn)||$a)(t)}function $a(t){return JSON.stringify(t,(n,r)=>P0(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function tu(t,n){return t===n?!0:typeof t!=typeof n?!1:t&&n&&typeof t=="object"&&typeof n=="object"?Object.keys(n).every(r=>tu(t[r],n[r])):!1}var l8=Object.prototype.hasOwnProperty;function ZA(t,n){if(t===n)return t;const r=F1(t)&&F1(n);if(!r&&!(P0(t)&&P0(n)))return n;const s=(r?t:Object.keys(t)).length,a=r?n:Object.keys(n),o=a.length,c=r?new Array(o):{};let d=0;for(let h=0;h<o;h++){const f=r?h:a[h],m=t[f],p=n[f];if(m===p){c[f]=m,(r?h<s:l8.call(t,f))&&d++;continue}if(m===null||p===null||typeof m!="object"||typeof p!="object"){c[f]=p;continue}const g=ZA(m,p);c[f]=g,g===m&&d++}return s===o&&d===s?t:c}function Lh(t,n){if(!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}function F1(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function P0(t){if(!M1(t))return!1;const n=t.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!M1(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function M1(t){return Object.prototype.toString.call(t)==="[object Object]"}function c8(t){return new Promise(n=>{_a.setTimeout(n,t)})}function O0(t,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,n):r.structuralSharing!==!1?ZA(t,n):n}function u8(t,n,r=0){const i=[...t,n];return r&&i.length>r?i.slice(1):i}function d8(t,n,r=0){const i=[n,...t];return r&&i.length>r?i.slice(0,-1):i}var rv=Symbol();function eC(t,n){return!t.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!t.queryFn||t.queryFn===rv?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function tC(t,n){return typeof t=="function"?t(...n):!!t}var Ea,Ts,Jo,uA,h8=(uA=class extends bl{constructor(){super();Ke(this,Ea);Ke(this,Ts);Ke(this,Jo);Ie(this,Jo,n=>{if(!Ua&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){re(this,Ts)||this.setEventListener(re(this,Jo))}onUnsubscribe(){var n;this.hasListeners()||((n=re(this,Ts))==null||n.call(this),Ie(this,Ts,void 0))}setEventListener(n){var r;Ie(this,Jo,n),(r=re(this,Ts))==null||r.call(this),Ie(this,Ts,n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(n){re(this,Ea)!==n&&(Ie(this,Ea,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof re(this,Ea)=="boolean"?re(this,Ea):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Ea=new WeakMap,Ts=new WeakMap,Jo=new WeakMap,uA),iv=new h8;function D0(){let t,n;const r=new Promise((s,a)=>{t=s,n=a});r.status="pending",r.catch(()=>{});function i(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{i({status:"fulfilled",value:s}),t(s)},r.reject=s=>{i({status:"rejected",reason:s}),n(s)},r}var f8=a8;function m8(){let t=[],n=0,r=c=>{c()},i=c=>{c()},s=f8;const a=c=>{n?t.push(c):s(()=>{r(c)})},o=()=>{const c=t;t=[],c.length&&s(()=>{i(()=>{c.forEach(d=>{r(d)})})})};return{batch:c=>{let d;n++;try{d=c()}finally{n--,n||o()}return d},batchCalls:c=>(...d)=>{a(()=>{c(...d)})},schedule:a,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{i=c},setScheduler:c=>{s=c}}}var fn=m8(),Zo,Ps,el,dA,p8=(dA=class extends bl{constructor(){super();Ke(this,Zo,!0);Ke(this,Ps);Ke(this,el);Ie(this,el,n=>{if(!Ua&&window.addEventListener){const r=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){re(this,Ps)||this.setEventListener(re(this,el))}onUnsubscribe(){var n;this.hasListeners()||((n=re(this,Ps))==null||n.call(this),Ie(this,Ps,void 0))}setEventListener(n){var r;Ie(this,el,n),(r=re(this,Ps))==null||r.call(this),Ie(this,Ps,n(this.setOnline.bind(this)))}setOnline(n){re(this,Zo)!==n&&(Ie(this,Zo,n),this.listeners.forEach(i=>{i(n)}))}isOnline(){return re(this,Zo)}},Zo=new WeakMap,Ps=new WeakMap,el=new WeakMap,dA),Bh=new p8;function g8(t){return Math.min(1e3*2**t,3e4)}function nC(t){return(t??"online")==="online"?Bh.isOnline():!0}var I0=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function rC(t){let n=!1,r=0,i;const s=D0(),a=()=>s.status!=="pending",o=j=>{var y;if(!a()){const x=new I0(j);p(x),(y=t.onCancel)==null||y.call(t,x)}},c=()=>{n=!0},d=()=>{n=!1},h=()=>iv.isFocused()&&(t.networkMode==="always"||Bh.isOnline())&&t.canRun(),f=()=>nC(t.networkMode)&&t.canRun(),m=j=>{a()||(i==null||i(),s.resolve(j))},p=j=>{a()||(i==null||i(),s.reject(j))},g=()=>new Promise(j=>{var y;i=x=>{(a()||h())&&j(x)},(y=t.onPause)==null||y.call(t)}).then(()=>{var j;i=void 0,a()||(j=t.onContinue)==null||j.call(t)}),b=()=>{if(a())return;let j;const y=r===0?t.initialPromise:void 0;try{j=y??t.fn()}catch(x){j=Promise.reject(x)}Promise.resolve(j).then(m).catch(x=>{var S;if(a())return;const N=t.retry??(Ua?0:3),w=t.retryDelay??g8,k=typeof w=="function"?w(r,x):w,A=N===!0||typeof N=="number"&&r<N||typeof N=="function"&&N(r,x);if(n||!A){p(x);return}r++,(S=t.onFail)==null||S.call(t,r,x),c8(k).then(()=>h()?void 0:g()).then(()=>{n?p(x):b()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:c,continueRetry:d,canStart:f,start:()=>(f()?b():g().then(b),s)}}var Ta,hA,iC=(hA=class{constructor(){Ke(this,Ta)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),T0(this.gcTime)&&Ie(this,Ta,_a.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ua?1/0:300*1e3))}clearGcTimeout(){re(this,Ta)&&(_a.clearTimeout(re(this,Ta)),Ie(this,Ta,void 0))}},Ta=new WeakMap,hA),Pa,tl,_r,Oa,xn,pu,Da,qr,Mi,fA,x8=(fA=class extends iC{constructor(n){super();Ke(this,qr);Ke(this,Pa);Ke(this,tl);Ke(this,_r);Ke(this,Oa);Ke(this,xn);Ke(this,pu);Ke(this,Da);Ie(this,Da,!1),Ie(this,pu,n.defaultOptions),this.setOptions(n.options),this.observers=[],Ie(this,Oa,n.client),Ie(this,_r,re(this,Oa).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,Ie(this,Pa,L1(this.options)),this.state=n.state??re(this,Pa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=re(this,xn))==null?void 0:n.promise}setOptions(n){if(this.options={...re(this,pu),...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=L1(this.options);r.data!==void 0&&(this.setData(r.data,{updatedAt:r.dataUpdatedAt,manual:!0}),Ie(this,Pa,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&re(this,_r).remove(this)}setData(n,r){const i=O0(this.state.data,n,this.options);return lt(this,qr,Mi).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(n,r){lt(this,qr,Mi).call(this,{type:"setState",state:n,setStateOptions:r})}cancel(n){var i,s;const r=(i=re(this,xn))==null?void 0:i.promise;return(s=re(this,xn))==null||s.cancel(n),r?r.then(qn).catch(qn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(re(this,Pa))}isActive(){return this.observers.some(n=>Sr(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rv||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>qs(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!JA(this.state.dataUpdatedAt,n)}onFocus(){var r;const n=this.observers.find(i=>i.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(r=re(this,xn))==null||r.continue()}onOnline(){var r;const n=this.observers.find(i=>i.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(r=re(this,xn))==null||r.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),re(this,_r).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(r=>r!==n),this.observers.length||(re(this,xn)&&(re(this,Da)?re(this,xn).cancel({revert:!0}):re(this,xn).cancelRetry()),this.scheduleGc()),re(this,_r).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||lt(this,qr,Mi).call(this,{type:"invalidate"})}async fetch(n,r){var d,h,f,m,p,g,b,j,y,x,N,w;if(this.state.fetchStatus!=="idle"&&((d=re(this,xn))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(re(this,xn))return re(this,xn).continueRetry(),re(this,xn).promise}if(n&&this.setOptions(n),!this.options.queryFn){const k=this.observers.find(A=>A.options.queryFn);k&&this.setOptions(k.options)}const i=new AbortController,s=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(Ie(this,Da,!0),i.signal)})},a=()=>{const k=eC(this.options,r),S=(()=>{const E={client:re(this,Oa),queryKey:this.queryKey,meta:this.meta};return s(E),E})();return Ie(this,Da,!1),this.options.persister?this.options.persister(k,S,this):k(S)},c=(()=>{const k={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:re(this,Oa),state:this.state,fetchFn:a};return s(k),k})();(h=this.options.behavior)==null||h.onFetch(c,this),Ie(this,tl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=c.fetchOptions)==null?void 0:f.meta))&&lt(this,qr,Mi).call(this,{type:"fetch",meta:(m=c.fetchOptions)==null?void 0:m.meta}),Ie(this,xn,rC({initialPromise:r==null?void 0:r.initialPromise,fn:c.fetchFn,onCancel:k=>{k instanceof I0&&k.revert&&this.setState({...re(this,tl),fetchStatus:"idle"}),i.abort()},onFail:(k,A)=>{lt(this,qr,Mi).call(this,{type:"failed",failureCount:k,error:A})},onPause:()=>{lt(this,qr,Mi).call(this,{type:"pause"})},onContinue:()=>{lt(this,qr,Mi).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const k=await re(this,xn).start();if(k===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(k),(g=(p=re(this,_r).config).onSuccess)==null||g.call(p,k,this),(j=(b=re(this,_r).config).onSettled)==null||j.call(b,k,this.state.error,this),k}catch(k){if(k instanceof I0){if(k.silent)return re(this,xn).promise;if(k.revert){if(this.state.data===void 0)throw k;return this.state.data}}throw lt(this,qr,Mi).call(this,{type:"error",error:k}),(x=(y=re(this,_r).config).onError)==null||x.call(y,k,this),(w=(N=re(this,_r).config).onSettled)==null||w.call(N,this.state.data,k,this),k}finally{this.scheduleGc()}}},Pa=new WeakMap,tl=new WeakMap,_r=new WeakMap,Oa=new WeakMap,xn=new WeakMap,pu=new WeakMap,Da=new WeakMap,qr=new WeakSet,Mi=function(n){const r=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...sC(i.data,this.options),fetchMeta:n.meta??null};case"success":const s={...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Ie(this,tl,n.manual?s:void 0),s;case"error":const a=n.error;return{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=r(this.state),fn.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),re(this,_r).notify({query:this,type:"updated",action:n})})},fA);function sC(t,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nC(n.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function L1(t){const n=typeof t.initialData=="function"?t.initialData():t.initialData,r=n!==void 0,i=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Jn,ft,gu,Bn,Ia,nl,Li,Os,xu,rl,il,Ra,Fa,Ds,sl,Ct,Ec,R0,F0,M0,L0,B0,z0,q0,aC,mA,y8=(mA=class extends bl{constructor(n,r){super();Ke(this,Ct);Ke(this,Jn);Ke(this,ft);Ke(this,gu);Ke(this,Bn);Ke(this,Ia);Ke(this,nl);Ke(this,Li);Ke(this,Os);Ke(this,xu);Ke(this,rl);Ke(this,il);Ke(this,Ra);Ke(this,Fa);Ke(this,Ds);Ke(this,sl,new Set);this.options=r,Ie(this,Jn,n),Ie(this,Os,null),Ie(this,Li,D0()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(re(this,ft).addObserver(this),B1(re(this,ft),this.options)?lt(this,Ct,Ec).call(this):this.updateResult(),lt(this,Ct,L0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return V0(re(this,ft),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return V0(re(this,ft),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,lt(this,Ct,B0).call(this),lt(this,Ct,z0).call(this),re(this,ft).removeObserver(this)}setOptions(n){const r=this.options,i=re(this,ft);if(this.options=re(this,Jn).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Sr(this.options.enabled,re(this,ft))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");lt(this,Ct,q0).call(this),re(this,ft).setOptions(this.options),r._defaulted&&!Lh(this.options,r)&&re(this,Jn).getQueryCache().notify({type:"observerOptionsUpdated",query:re(this,ft),observer:this});const s=this.hasListeners();s&&z1(re(this,ft),i,this.options,r)&&lt(this,Ct,Ec).call(this),this.updateResult(),s&&(re(this,ft)!==i||Sr(this.options.enabled,re(this,ft))!==Sr(r.enabled,re(this,ft))||qs(this.options.staleTime,re(this,ft))!==qs(r.staleTime,re(this,ft)))&&lt(this,Ct,R0).call(this);const a=lt(this,Ct,F0).call(this);s&&(re(this,ft)!==i||Sr(this.options.enabled,re(this,ft))!==Sr(r.enabled,re(this,ft))||a!==re(this,Ds))&&lt(this,Ct,M0).call(this,a)}getOptimisticResult(n){const r=re(this,Jn).getQueryCache().build(re(this,Jn),n),i=this.createResult(r,n);return b8(this,i)&&(Ie(this,Bn,i),Ie(this,nl,this.options),Ie(this,Ia,re(this,ft).state)),i}getCurrentResult(){return re(this,Bn)}trackResult(n,r){return new Proxy(n,{get:(i,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&!this.options.experimental_prefetchInRender&&re(this,Li).status==="pending"&&re(this,Li).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(n){re(this,sl).add(n)}getCurrentQuery(){return re(this,ft)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=re(this,Jn).defaultQueryOptions(n),i=re(this,Jn).getQueryCache().build(re(this,Jn),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(n){return lt(this,Ct,Ec).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),re(this,Bn)))}createResult(n,r){var B;const i=re(this,ft),s=this.options,a=re(this,Bn),o=re(this,Ia),c=re(this,nl),h=n!==i?n.state:re(this,gu),{state:f}=n;let m={...f},p=!1,g;if(r._optimisticResults){const D=this.hasListeners(),F=!D&&B1(n,r),R=D&&z1(n,i,r,s);(F||R)&&(m={...m,...sC(f.data,n.options)}),r._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:b,errorUpdatedAt:j,status:y}=m;g=m.data;let x=!1;if(r.placeholderData!==void 0&&g===void 0&&y==="pending"){let D;a!=null&&a.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData)?(D=a.data,x=!0):D=typeof r.placeholderData=="function"?r.placeholderData((B=re(this,il))==null?void 0:B.state.data,re(this,il)):r.placeholderData,D!==void 0&&(y="success",g=O0(a==null?void 0:a.data,D,r),p=!0)}if(r.select&&g!==void 0&&!x)if(a&&g===(o==null?void 0:o.data)&&r.select===re(this,xu))g=re(this,rl);else try{Ie(this,xu,r.select),g=r.select(g),g=O0(a==null?void 0:a.data,g,r),Ie(this,rl,g),Ie(this,Os,null)}catch(D){Ie(this,Os,D)}re(this,Os)&&(b=re(this,Os),g=re(this,rl),j=Date.now(),y="error");const N=m.fetchStatus==="fetching",w=y==="pending",k=y==="error",A=w&&N,S=g!==void 0,C={status:y,fetchStatus:m.fetchStatus,isPending:w,isSuccess:y==="success",isError:k,isInitialLoading:A,isLoading:A,data:g,dataUpdatedAt:m.dataUpdatedAt,error:b,errorUpdatedAt:j,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:N,isRefetching:N&&!w,isLoadingError:k&&!S,isPaused:m.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:k&&S,isStale:sv(n,r),refetch:this.refetch,promise:re(this,Li),isEnabled:Sr(r.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const D=z=>{C.status==="error"?z.reject(C.error):C.data!==void 0&&z.resolve(C.data)},F=()=>{const z=Ie(this,Li,C.promise=D0());D(z)},R=re(this,Li);switch(R.status){case"pending":n.queryHash===i.queryHash&&D(R);break;case"fulfilled":(C.status==="error"||C.data!==R.value)&&F();break;case"rejected":(C.status!=="error"||C.error!==R.reason)&&F();break}}return C}updateResult(){const n=re(this,Bn),r=this.createResult(re(this,ft),this.options);if(Ie(this,Ia,re(this,ft).state),Ie(this,nl,this.options),re(this,Ia).data!==void 0&&Ie(this,il,re(this,ft)),Lh(r,n))return;Ie(this,Bn,r);const i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!re(this,sl).size)return!0;const o=new Set(a??re(this,sl));return this.options.throwOnError&&o.add("error"),Object.keys(re(this,Bn)).some(c=>{const d=c;return re(this,Bn)[d]!==n[d]&&o.has(d)})};lt(this,Ct,aC).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&lt(this,Ct,L0).call(this)}},Jn=new WeakMap,ft=new WeakMap,gu=new WeakMap,Bn=new WeakMap,Ia=new WeakMap,nl=new WeakMap,Li=new WeakMap,Os=new WeakMap,xu=new WeakMap,rl=new WeakMap,il=new WeakMap,Ra=new WeakMap,Fa=new WeakMap,Ds=new WeakMap,sl=new WeakMap,Ct=new WeakSet,Ec=function(n){lt(this,Ct,q0).call(this);let r=re(this,ft).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(qn)),r},R0=function(){lt(this,Ct,B0).call(this);const n=qs(this.options.staleTime,re(this,ft));if(Ua||re(this,Bn).isStale||!T0(n))return;const i=JA(re(this,Bn).dataUpdatedAt,n)+1;Ie(this,Ra,_a.setTimeout(()=>{re(this,Bn).isStale||this.updateResult()},i))},F0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(re(this,ft)):this.options.refetchInterval)??!1},M0=function(n){lt(this,Ct,z0).call(this),Ie(this,Ds,n),!(Ua||Sr(this.options.enabled,re(this,ft))===!1||!T0(re(this,Ds))||re(this,Ds)===0)&&Ie(this,Fa,_a.setInterval(()=>{(this.options.refetchIntervalInBackground||iv.isFocused())&&lt(this,Ct,Ec).call(this)},re(this,Ds)))},L0=function(){lt(this,Ct,R0).call(this),lt(this,Ct,M0).call(this,lt(this,Ct,F0).call(this))},B0=function(){re(this,Ra)&&(_a.clearTimeout(re(this,Ra)),Ie(this,Ra,void 0))},z0=function(){re(this,Fa)&&(_a.clearInterval(re(this,Fa)),Ie(this,Fa,void 0))},q0=function(){const n=re(this,Jn).getQueryCache().build(re(this,Jn),this.options);if(n===re(this,ft))return;const r=re(this,ft);Ie(this,ft,n),Ie(this,gu,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},aC=function(n){fn.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(re(this,Bn))}),re(this,Jn).getQueryCache().notify({query:re(this,ft),type:"observerResultsUpdated"})})},mA);function v8(t,n){return Sr(n.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&n.retryOnMount===!1)}function B1(t,n){return v8(t,n)||t.state.data!==void 0&&V0(t,n,n.refetchOnMount)}function V0(t,n,r){if(Sr(n.enabled,t)!==!1&&qs(n.staleTime,t)!=="static"){const i=typeof r=="function"?r(t):r;return i==="always"||i!==!1&&sv(t,n)}return!1}function z1(t,n,r,i){return(t!==n||Sr(i.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&sv(t,r)}function sv(t,n){return Sr(n.enabled,t)!==!1&&t.isStaleByTime(qs(n.staleTime,t))}function b8(t,n){return!Lh(t.getCurrentResult(),n)}function q1(t){return{onFetch:(n,r)=>{var f,m,p,g,b;const i=n.options,s=(p=(m=(f=n.fetchOptions)==null?void 0:f.meta)==null?void 0:m.fetchMore)==null?void 0:p.direction,a=((g=n.state.data)==null?void 0:g.pages)||[],o=((b=n.state.data)==null?void 0:b.pageParams)||[];let c={pages:[],pageParams:[]},d=0;const h=async()=>{let j=!1;const y=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(n.signal.aborted?j=!0:n.signal.addEventListener("abort",()=>{j=!0}),n.signal)})},x=eC(n.options,n.fetchOptions),N=async(w,k,A)=>{if(j)return Promise.reject();if(k==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const F={client:n.client,queryKey:n.queryKey,pageParam:k,direction:A?"backward":"forward",meta:n.options.meta};return y(F),F})(),C=await x(E),{maxPages:B}=n.options,D=A?d8:u8;return{pages:D(w.pages,C,B),pageParams:D(w.pageParams,k,B)}};if(s&&a.length){const w=s==="backward",k=w?j8:V1,A={pages:a,pageParams:o},S=k(i,A);c=await N(A,S,w)}else{const w=t??a.length;do{const k=d===0?o[0]??i.initialPageParam:V1(i,c);if(d>0&&k==null)break;c=await N(c,k),d++}while(d<w)}return c};n.options.persister?n.fetchFn=()=>{var j,y;return(y=(j=n.options).persister)==null?void 0:y.call(j,h,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r)}:n.fetchFn=h}}}function V1(t,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?t.getNextPageParam(n[i],n,r[i],r):void 0}function j8(t,{pages:n,pageParams:r}){var i;return n.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,n[0],n,r[0],r):void 0}var yu,ri,zn,Ma,ii,Ss,pA,w8=(pA=class extends iC{constructor(n){super();Ke(this,ii);Ke(this,yu);Ke(this,ri);Ke(this,zn);Ke(this,Ma);Ie(this,yu,n.client),this.mutationId=n.mutationId,Ie(this,zn,n.mutationCache),Ie(this,ri,[]),this.state=n.state||oC(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){re(this,ri).includes(n)||(re(this,ri).push(n),this.clearGcTimeout(),re(this,zn).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){Ie(this,ri,re(this,ri).filter(r=>r!==n)),this.scheduleGc(),re(this,zn).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){re(this,ri).length||(this.state.status==="pending"?this.scheduleGc():re(this,zn).remove(this))}continue(){var n;return((n=re(this,Ma))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var o,c,d,h,f,m,p,g,b,j,y,x,N,w,k,A,S,E,C,B;const r=()=>{lt(this,ii,Ss).call(this,{type:"continue"})},i={client:re(this,yu),meta:this.options.meta,mutationKey:this.options.mutationKey};Ie(this,Ma,rC({fn:()=>this.options.mutationFn?this.options.mutationFn(n,i):Promise.reject(new Error("No mutationFn found")),onFail:(D,F)=>{lt(this,ii,Ss).call(this,{type:"failed",failureCount:D,error:F})},onPause:()=>{lt(this,ii,Ss).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>re(this,zn).canRun(this)}));const s=this.state.status==="pending",a=!re(this,Ma).canStart();try{if(s)r();else{lt(this,ii,Ss).call(this,{type:"pending",variables:n,isPaused:a}),await((c=(o=re(this,zn).config).onMutate)==null?void 0:c.call(o,n,this,i));const F=await((h=(d=this.options).onMutate)==null?void 0:h.call(d,n,i));F!==this.state.context&&lt(this,ii,Ss).call(this,{type:"pending",context:F,variables:n,isPaused:a})}const D=await re(this,Ma).start();return await((m=(f=re(this,zn).config).onSuccess)==null?void 0:m.call(f,D,n,this.state.context,this,i)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,D,n,this.state.context,i)),await((j=(b=re(this,zn).config).onSettled)==null?void 0:j.call(b,D,null,this.state.variables,this.state.context,this,i)),await((x=(y=this.options).onSettled)==null?void 0:x.call(y,D,null,n,this.state.context,i)),lt(this,ii,Ss).call(this,{type:"success",data:D}),D}catch(D){try{throw await((w=(N=re(this,zn).config).onError)==null?void 0:w.call(N,D,n,this.state.context,this,i)),await((A=(k=this.options).onError)==null?void 0:A.call(k,D,n,this.state.context,i)),await((E=(S=re(this,zn).config).onSettled)==null?void 0:E.call(S,void 0,D,this.state.variables,this.state.context,this,i)),await((B=(C=this.options).onSettled)==null?void 0:B.call(C,void 0,D,n,this.state.context,i)),D}finally{lt(this,ii,Ss).call(this,{type:"error",error:D})}}finally{re(this,zn).runNext(this)}}},yu=new WeakMap,ri=new WeakMap,zn=new WeakMap,Ma=new WeakMap,ii=new WeakSet,Ss=function(n){const r=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=r(this.state),fn.batch(()=>{re(this,ri).forEach(i=>{i.onMutationUpdate(n)}),re(this,zn).notify({mutation:this,type:"updated",action:n})})},pA);function oC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bi,Vr,vu,gA,N8=(gA=class extends bl{constructor(n={}){super();Ke(this,Bi);Ke(this,Vr);Ke(this,vu);this.config=n,Ie(this,Bi,new Set),Ie(this,Vr,new Map),Ie(this,vu,0)}build(n,r,i){const s=new w8({client:n,mutationCache:this,mutationId:++Gd(this,vu)._,options:n.defaultMutationOptions(r),state:i});return this.add(s),s}add(n){re(this,Bi).add(n);const r=Zd(n);if(typeof r=="string"){const i=re(this,Vr).get(r);i?i.push(n):re(this,Vr).set(r,[n])}this.notify({type:"added",mutation:n})}remove(n){if(re(this,Bi).delete(n)){const r=Zd(n);if(typeof r=="string"){const i=re(this,Vr).get(r);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&re(this,Vr).delete(r)}}this.notify({type:"removed",mutation:n})}canRun(n){const r=Zd(n);if(typeof r=="string"){const i=re(this,Vr).get(r),s=i==null?void 0:i.find(a=>a.state.status==="pending");return!s||s===n}else return!0}runNext(n){var i;const r=Zd(n);if(typeof r=="string"){const s=(i=re(this,Vr).get(r))==null?void 0:i.find(a=>a!==n&&a.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fn.batch(()=>{re(this,Bi).forEach(n=>{this.notify({type:"removed",mutation:n})}),re(this,Bi).clear(),re(this,Vr).clear()})}getAll(){return Array.from(re(this,Bi))}find(n){const r={exact:!0,...n};return this.getAll().find(i=>R1(r,i))}findAll(n={}){return this.getAll().filter(r=>R1(n,r))}notify(n){fn.batch(()=>{this.listeners.forEach(r=>{r(n)})})}resumePausedMutations(){const n=this.getAll().filter(r=>r.state.isPaused);return fn.batch(()=>Promise.all(n.map(r=>r.continue().catch(qn))))}},Bi=new WeakMap,Vr=new WeakMap,vu=new WeakMap,gA);function Zd(t){var n;return(n=t.options.scope)==null?void 0:n.id}var zi,Is,Zn,qi,Hi,bh,U0,xA,k8=(xA=class extends bl{constructor(r,i){super();Ke(this,Hi);Ke(this,zi);Ke(this,Is);Ke(this,Zn);Ke(this,qi);Ie(this,zi,r),this.setOptions(i),this.bindMethods(),lt(this,Hi,bh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const i=this.options;this.options=re(this,zi).defaultMutationOptions(r),Lh(this.options,i)||re(this,zi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:re(this,Zn),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&$a(i.mutationKey)!==$a(this.options.mutationKey)?this.reset():((s=re(this,Zn))==null?void 0:s.state.status)==="pending"&&re(this,Zn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=re(this,Zn))==null||r.removeObserver(this)}onMutationUpdate(r){lt(this,Hi,bh).call(this),lt(this,Hi,U0).call(this,r)}getCurrentResult(){return re(this,Is)}reset(){var r;(r=re(this,Zn))==null||r.removeObserver(this),Ie(this,Zn,void 0),lt(this,Hi,bh).call(this),lt(this,Hi,U0).call(this)}mutate(r,i){var s;return Ie(this,qi,i),(s=re(this,Zn))==null||s.removeObserver(this),Ie(this,Zn,re(this,zi).getMutationCache().build(re(this,zi),this.options)),re(this,Zn).addObserver(this),re(this,Zn).execute(r)}},zi=new WeakMap,Is=new WeakMap,Zn=new WeakMap,qi=new WeakMap,Hi=new WeakSet,bh=function(){var i;const r=((i=re(this,Zn))==null?void 0:i.state)??oC();Ie(this,Is,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},U0=function(r){fn.batch(()=>{var i,s,a,o,c,d,h,f;if(re(this,qi)&&this.hasListeners()){const m=re(this,Is).variables,p=re(this,Is).context,g={client:re(this,zi),meta:this.options.meta,mutationKey:this.options.mutationKey};(r==null?void 0:r.type)==="success"?((s=(i=re(this,qi)).onSuccess)==null||s.call(i,r.data,m,p,g),(o=(a=re(this,qi)).onSettled)==null||o.call(a,r.data,null,m,p,g)):(r==null?void 0:r.type)==="error"&&((d=(c=re(this,qi)).onError)==null||d.call(c,r.error,m,p,g),(f=(h=re(this,qi)).onSettled)==null||f.call(h,void 0,r.error,m,p,g))}this.listeners.forEach(m=>{m(re(this,Is))})})},xA),si,yA,_8=(yA=class extends bl{constructor(n={}){super();Ke(this,si);this.config=n,Ie(this,si,new Map)}build(n,r,i){const s=r.queryKey,a=r.queryHash??nv(s,r);let o=this.get(a);return o||(o=new x8({client:n,queryKey:s,queryHash:a,options:n.defaultQueryOptions(r),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(o)),o}add(n){re(this,si).has(n.queryHash)||(re(this,si).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=re(this,si).get(n.queryHash);r&&(n.destroy(),r===n&&re(this,si).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){fn.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return re(this,si).get(n)}getAll(){return[...re(this,si).values()]}find(n){const r={exact:!0,...n};return this.getAll().find(i=>I1(r,i))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(i=>I1(n,i)):r}notify(n){fn.batch(()=>{this.listeners.forEach(r=>{r(n)})})}onFocus(){fn.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){fn.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},si=new WeakMap,yA),Zt,Rs,Fs,al,ol,Ms,ll,cl,vA,S8=(vA=class{constructor(t={}){Ke(this,Zt);Ke(this,Rs);Ke(this,Fs);Ke(this,al);Ke(this,ol);Ke(this,Ms);Ke(this,ll);Ke(this,cl);Ie(this,Zt,t.queryCache||new _8),Ie(this,Rs,t.mutationCache||new N8),Ie(this,Fs,t.defaultOptions||{}),Ie(this,al,new Map),Ie(this,ol,new Map),Ie(this,Ms,0)}mount(){Gd(this,Ms)._++,re(this,Ms)===1&&(Ie(this,ll,iv.subscribe(async t=>{t&&(await this.resumePausedMutations(),re(this,Zt).onFocus())})),Ie(this,cl,Bh.subscribe(async t=>{t&&(await this.resumePausedMutations(),re(this,Zt).onOnline())})))}unmount(){var t,n;Gd(this,Ms)._--,re(this,Ms)===0&&((t=re(this,ll))==null||t.call(this),Ie(this,ll,void 0),(n=re(this,cl))==null||n.call(this),Ie(this,cl,void 0))}isFetching(t){return re(this,Zt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return re(this,Rs).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const n=this.defaultQueryOptions({queryKey:t});return(r=re(this,Zt).get(n.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),r=re(this,Zt).build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(qs(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(t){return re(this,Zt).findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.defaultQueryOptions({queryKey:t}),s=re(this,Zt).get(i.queryHash),a=s==null?void 0:s.state.data,o=o8(n,a);if(o!==void 0)return re(this,Zt).build(this,i).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return fn.batch(()=>re(this,Zt).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t){var r;const n=this.defaultQueryOptions({queryKey:t});return(r=re(this,Zt).get(n.queryHash))==null?void 0:r.state}removeQueries(t){const n=re(this,Zt);fn.batch(()=>{n.findAll(t).forEach(r=>{n.remove(r)})})}resetQueries(t,n){const r=re(this,Zt);return fn.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const r={revert:!0,...n},i=fn.batch(()=>re(this,Zt).findAll(t).map(s=>s.cancel(r)));return Promise.all(i).then(qn).catch(qn)}invalidateQueries(t,n={}){return fn.batch(()=>(re(this,Zt).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},n)))}refetchQueries(t,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=fn.batch(()=>re(this,Zt).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,r);return r.throwOnError||(a=a.catch(qn)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(qn)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const r=re(this,Zt).build(this,n);return r.isStaleByTime(qs(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(qn).catch(qn)}fetchInfiniteQuery(t){return t.behavior=q1(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(qn).catch(qn)}ensureInfiniteQueryData(t){return t.behavior=q1(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Bh.isOnline()?re(this,Rs).resumePausedMutations():Promise.resolve()}getQueryCache(){return re(this,Zt)}getMutationCache(){return re(this,Rs)}getDefaultOptions(){return re(this,Fs)}setDefaultOptions(t){Ie(this,Fs,t)}setQueryDefaults(t,n){re(this,al).set($a(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...re(this,al).values()],r={};return n.forEach(i=>{tu(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,n){re(this,ol).set($a(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...re(this,ol).values()],r={};return n.forEach(i=>{tu(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const n={...re(this,Fs).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=nv(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===rv&&(n.enabled=!1),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...re(this,Fs).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){re(this,Zt).clear(),re(this,Rs).clear()}},Zt=new WeakMap,Rs=new WeakMap,Fs=new WeakMap,al=new WeakMap,ol=new WeakMap,Ms=new WeakMap,ll=new WeakMap,cl=new WeakMap,vA),lC=I.createContext(void 0),Xt=t=>{const n=I.useContext(lC);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},A8=({client:t,children:n})=>(I.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),e.jsx(lC.Provider,{value:t,children:n})),cC=I.createContext(!1),C8=()=>I.useContext(cC);cC.Provider;function E8(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var T8=I.createContext(E8()),P8=()=>I.useContext(T8),O8=(t,n)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(n.isReset()||(t.retryOnMount=!1))},D8=t=>{I.useEffect(()=>{t.clearReset()},[t])},I8=({result:t,errorResetBoundary:n,throwOnError:r,query:i,suspense:s})=>t.isError&&!n.isReset()&&!t.isFetching&&i&&(s&&t.data===void 0||tC(r,[t.error,i])),R8=t=>{if(t.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...s)=>r(i(...s)):r(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},F8=(t,n)=>t.isLoading&&t.isFetching&&!n,M8=(t,n)=>(t==null?void 0:t.suspense)&&n.isPending,U1=(t,n,r)=>n.fetchOptimistic(t).catch(()=>{r.clearReset()});function L8(t,n,r){var m,p,g,b,j;const i=C8(),s=P8(),a=Xt(),o=a.defaultQueryOptions(t);(p=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||p.call(m,o),o._optimisticResults=i?"isRestoring":"optimistic",R8(o),O8(o,s),D8(s);const c=!a.getQueryCache().get(o.queryHash),[d]=I.useState(()=>new n(a,o)),h=d.getOptimisticResult(o),f=!i&&t.subscribed!==!1;if(I.useSyncExternalStore(I.useCallback(y=>{const x=f?d.subscribe(fn.batchCalls(y)):qn;return d.updateResult(),x},[d,f]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),I.useEffect(()=>{d.setOptions(o)},[o,d]),M8(o,h))throw U1(o,d,s);if(I8({result:h,errorResetBoundary:s,throwOnError:o.throwOnError,query:a.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw h.error;if((b=(g=a.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||b.call(g,o,h),o.experimental_prefetchInRender&&!Ua&&F8(h,i)){const y=c?U1(o,d,s):(j=a.getQueryCache().get(o.queryHash))==null?void 0:j.promise;y==null||y.catch(qn).finally(()=>{d.updateResult()})}return o.notifyOnChangeProps?h:d.trackResult(h)}function Fe(t,n){return L8(t,y8)}function Le(t,n){const r=Xt(),[i]=I.useState(()=>new k8(r,t));I.useEffect(()=>{i.setOptions(t)},[i,t]);const s=I.useSyncExternalStore(I.useCallback(o=>i.subscribe(fn.batchCalls(o)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=I.useCallback((o,c)=>{i.mutate(o,c).catch(qn)},[i]);if(s.error&&tC(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:a,mutateAsync:s.mutate}}const B8=new S8({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var ku=Jy();const z8=ki(ku);/**
 * @remix-run/router v1.23.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function nu(){return nu=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},nu.apply(this,arguments)}var Ls;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Ls||(Ls={}));const $1="popstate";function q8(t){t===void 0&&(t={});function n(i,s){let{pathname:a,search:o,hash:c}=i.location;return $0("",{pathname:a,search:o,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(i,s){return typeof s=="string"?s:zh(s)}return U8(n,r,null,t)}function cn(t,n){if(t===!1||t===null||typeof t>"u")throw new Error(n)}function uC(t,n){if(!t){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function V8(){return Math.random().toString(36).substr(2,8)}function H1(t,n){return{usr:t.state,key:t.key,idx:n}}function $0(t,n,r,i){return r===void 0&&(r=null),nu({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof n=="string"?jl(n):n,{state:r,key:n&&n.key||i||V8()})}function zh(t){let{pathname:n="/",search:r="",hash:i=""}=t;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function jl(t){let n={};if(t){let r=t.indexOf("#");r>=0&&(n.hash=t.substr(r),t=t.substr(0,r));let i=t.indexOf("?");i>=0&&(n.search=t.substr(i),t=t.substr(0,i)),t&&(n.pathname=t)}return n}function U8(t,n,r,i){i===void 0&&(i={});let{window:s=document.defaultView,v5Compat:a=!1}=i,o=s.history,c=Ls.Pop,d=null,h=f();h==null&&(h=0,o.replaceState(nu({},o.state,{idx:h}),""));function f(){return(o.state||{idx:null}).idx}function m(){c=Ls.Pop;let y=f(),x=y==null?null:y-h;h=y,d&&d({action:c,location:j.location,delta:x})}function p(y,x){c=Ls.Push;let N=$0(j.location,y,x);h=f()+1;let w=H1(N,h),k=j.createHref(N);try{o.pushState(w,"",k)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;s.location.assign(k)}a&&d&&d({action:c,location:j.location,delta:1})}function g(y,x){c=Ls.Replace;let N=$0(j.location,y,x);h=f();let w=H1(N,h),k=j.createHref(N);o.replaceState(w,"",k),a&&d&&d({action:c,location:j.location,delta:0})}function b(y){let x=s.location.origin!=="null"?s.location.origin:s.location.href,N=typeof y=="string"?y:zh(y);return N=N.replace(/ $/,"%20"),cn(x,"No window.location.(origin|href) available to create URL for href: "+N),new URL(N,x)}let j={get action(){return c},get location(){return t(s,o)},listen(y){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener($1,m),d=y,()=>{s.removeEventListener($1,m),d=null}},createHref(y){return n(s,y)},createURL:b,encodeLocation(y){let x=b(y);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:g,go(y){return o.go(y)}};return j}var W1;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(W1||(W1={}));function $8(t,n,r){return r===void 0&&(r="/"),H8(t,n,r)}function H8(t,n,r,i){let s=typeof n=="string"?jl(n):n,a=av(s.pathname||"/",r);if(a==null)return null;let o=dC(t);W8(o);let c=null;for(let d=0;c==null&&d<o.length;++d){let h=iR(a);c=tR(o[d],h)}return c}function dC(t,n,r,i){n===void 0&&(n=[]),r===void 0&&(r=[]),i===void 0&&(i="");let s=(a,o,c)=>{let d={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};d.relativePath.startsWith("/")&&(cn(d.relativePath.startsWith(i),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(i.length));let h=Vs([i,d.relativePath]),f=r.concat(d);a.children&&a.children.length>0&&(cn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),dC(a.children,n,f,h)),!(a.path==null&&!a.index)&&n.push({path:h,score:Z8(h,a.index),routesMeta:f})};return t.forEach((a,o)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))s(a,o);else for(let d of hC(a.path))s(a,o,d)}),n}function hC(t){let n=t.split("/");if(n.length===0)return[];let[r,...i]=n,s=r.endsWith("?"),a=r.replace(/\?$/,"");if(i.length===0)return s?[a,""]:[a];let o=hC(i.join("/")),c=[];return c.push(...o.map(d=>d===""?a:[a,d].join("/"))),s&&c.push(...o),c.map(d=>t.startsWith("/")&&d===""?"/":d)}function W8(t){t.sort((n,r)=>n.score!==r.score?r.score-n.score:eR(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}const K8=/^:[\w-]+$/,G8=3,Q8=2,Y8=1,X8=10,J8=-2,K1=t=>t==="*";function Z8(t,n){let r=t.split("/"),i=r.length;return r.some(K1)&&(i+=J8),n&&(i+=Q8),r.filter(s=>!K1(s)).reduce((s,a)=>s+(K8.test(a)?G8:a===""?Y8:X8),i)}function eR(t,n){return t.length===n.length&&t.slice(0,-1).every((i,s)=>i===n[s])?t[t.length-1]-n[n.length-1]:0}function tR(t,n,r){let{routesMeta:i}=t,s={},a="/",o=[];for(let c=0;c<i.length;++c){let d=i[c],h=c===i.length-1,f=a==="/"?n:n.slice(a.length)||"/",m=nR({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},f),p=d.route;if(!m)return null;Object.assign(s,m.params),o.push({params:s,pathname:Vs([a,m.pathname]),pathnameBase:lR(Vs([a,m.pathnameBase])),route:p}),m.pathnameBase!=="/"&&(a=Vs([a,m.pathnameBase]))}return o}function nR(t,n){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,i]=rR(t.path,t.caseSensitive,t.end),s=n.match(r);if(!s)return null;let a=s[0],o=a.replace(/(.)\/+$/,"$1"),c=s.slice(1);return{params:i.reduce((h,f,m)=>{let{paramName:p,isOptional:g}=f;if(p==="*"){let j=c[m]||"";o=a.slice(0,a.length-j.length).replace(/(.)\/+$/,"$1")}const b=c[m];return g&&!b?h[p]=void 0:h[p]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:o,pattern:t}}function rR(t,n,r){n===void 0&&(n=!1),r===void 0&&(r=!0),uC(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,d)=>(i.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),i]}function iR(t){try{return t.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return uC(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+n+").")),t}}function av(t,n){if(n==="/")return t;if(!t.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=t.charAt(r);return i&&i!=="/"?null:t.slice(r)||"/"}function sR(t,n){n===void 0&&(n="/");let{pathname:r,search:i="",hash:s=""}=typeof t=="string"?jl(t):t;return{pathname:r?r.startsWith("/")?r:aR(r,n):n,search:cR(i),hash:uR(s)}}function aR(t,n){let r=n.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function $p(t,n,r,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(i)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function oR(t){return t.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function fC(t,n){let r=oR(t);return n?r.map((i,s)=>s===r.length-1?i.pathname:i.pathnameBase):r.map(i=>i.pathnameBase)}function mC(t,n,r,i){i===void 0&&(i=!1);let s;typeof t=="string"?s=jl(t):(s=nu({},t),cn(!s.pathname||!s.pathname.includes("?"),$p("?","pathname","search",s)),cn(!s.pathname||!s.pathname.includes("#"),$p("#","pathname","hash",s)),cn(!s.search||!s.search.includes("#"),$p("#","search","hash",s)));let a=t===""||s.pathname==="",o=a?"/":s.pathname,c;if(o==null)c=r;else{let m=n.length-1;if(!i&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),m-=1;s.pathname=p.join("/")}c=m>=0?n[m]:"/"}let d=sR(s,c),h=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(h||f)&&(d.pathname+="/"),d}const Vs=t=>t.join("/").replace(/\/\/+/g,"/"),lR=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),cR=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,uR=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function dR(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const pC=["post","put","patch","delete"];new Set(pC);const hR=["get",...pC];new Set(hR);/**
 * React Router v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function ru(){return ru=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ru.apply(this,arguments)}const ov=I.createContext(null),fR=I.createContext(null),Xa=I.createContext(null),uf=I.createContext(null),Ja=I.createContext({outlet:null,matches:[],isDataRoute:!1}),gC=I.createContext(null);function mR(t,n){let{relative:r}=n===void 0?{}:n;_u()||cn(!1);let{basename:i,navigator:s}=I.useContext(Xa),{hash:a,pathname:o,search:c}=yC(t,{relative:r}),d=o;return i!=="/"&&(d=o==="/"?i:Vs([i,o])),s.createHref({pathname:d,search:c,hash:a})}function _u(){return I.useContext(uf)!=null}function Za(){return _u()||cn(!1),I.useContext(uf).location}function xC(t){I.useContext(Xa).static||I.useLayoutEffect(t)}function wl(){let{isDataRoute:t}=I.useContext(Ja);return t?AR():pR()}function pR(){_u()||cn(!1);let t=I.useContext(ov),{basename:n,future:r,navigator:i}=I.useContext(Xa),{matches:s}=I.useContext(Ja),{pathname:a}=Za(),o=JSON.stringify(fC(s,r.v7_relativeSplatPath)),c=I.useRef(!1);return xC(()=>{c.current=!0}),I.useCallback(function(h,f){if(f===void 0&&(f={}),!c.current)return;if(typeof h=="number"){i.go(h);return}let m=mC(h,JSON.parse(o),a,f.relative==="path");t==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:Vs([n,m.pathname])),(f.replace?i.replace:i.push)(m,f.state,f)},[n,i,o,a,t])}function yC(t,n){let{relative:r}=n===void 0?{}:n,{future:i}=I.useContext(Xa),{matches:s}=I.useContext(Ja),{pathname:a}=Za(),o=JSON.stringify(fC(s,i.v7_relativeSplatPath));return I.useMemo(()=>mC(t,JSON.parse(o),a,r==="path"),[t,o,a,r])}function gR(t,n){return xR(t,n)}function xR(t,n,r,i){_u()||cn(!1);let{navigator:s}=I.useContext(Xa),{matches:a}=I.useContext(Ja),o=a[a.length-1],c=o?o.params:{};o&&o.pathname;let d=o?o.pathnameBase:"/";o&&o.route;let h=Za(),f;if(n){var m;let y=typeof n=="string"?jl(n):n;d==="/"||(m=y.pathname)!=null&&m.startsWith(d)||cn(!1),f=y}else f=h;let p=f.pathname||"/",g=p;if(d!=="/"){let y=d.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=$8(t,{pathname:g}),j=wR(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},c,y.params),pathname:Vs([d,s.encodeLocation?s.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?d:Vs([d,s.encodeLocation?s.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),a,r,i);return n&&j?I.createElement(uf.Provider,{value:{location:ru({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ls.Pop}},j):j}function yR(){let t=SR(),n=dR(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},n),r?I.createElement("pre",{style:s},r):null,null)}const vR=I.createElement(yR,null);class bR extends I.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){console.error("React Router caught the following error during render",n,r)}render(){return this.state.error!==void 0?I.createElement(Ja.Provider,{value:this.props.routeContext},I.createElement(gC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jR(t){let{routeContext:n,match:r,children:i}=t,s=I.useContext(ov);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),I.createElement(Ja.Provider,{value:n},i)}function wR(t,n,r,i){var s;if(n===void 0&&(n=[]),r===void 0&&(r=null),i===void 0&&(i=null),t==null){var a;if(!r)return null;if(r.errors)t=r.matches;else if((a=i)!=null&&a.v7_partialHydration&&n.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,c=(s=r)==null?void 0:s.errors;if(c!=null){let f=o.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);f>=0||cn(!1),o=o.slice(0,Math.min(o.length,f+1))}let d=!1,h=-1;if(r&&i&&i.v7_partialHydration)for(let f=0;f<o.length;f++){let m=o[f];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=f),m.route.id){let{loaderData:p,errors:g}=r,b=m.route.loader&&p[m.route.id]===void 0&&(!g||g[m.route.id]===void 0);if(m.route.lazy||b){d=!0,h>=0?o=o.slice(0,h+1):o=[o[0]];break}}}return o.reduceRight((f,m,p)=>{let g,b=!1,j=null,y=null;r&&(g=c&&m.route.id?c[m.route.id]:void 0,j=m.route.errorElement||vR,d&&(h<0&&p===0?(CR("route-fallback"),b=!0,y=null):h===p&&(b=!0,y=m.route.hydrateFallbackElement||null)));let x=n.concat(o.slice(0,p+1)),N=()=>{let w;return g?w=j:b?w=y:m.route.Component?w=I.createElement(m.route.Component,null):m.route.element?w=m.route.element:w=f,I.createElement(jR,{match:m,routeContext:{outlet:f,matches:x,isDataRoute:r!=null},children:w})};return r&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?I.createElement(bR,{location:r.location,revalidation:r.revalidation,component:j,error:g,children:N(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):N()},null)}var vC=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(vC||{}),bC=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(bC||{});function NR(t){let n=I.useContext(ov);return n||cn(!1),n}function kR(t){let n=I.useContext(fR);return n||cn(!1),n}function _R(t){let n=I.useContext(Ja);return n||cn(!1),n}function jC(t){let n=_R(),r=n.matches[n.matches.length-1];return r.route.id||cn(!1),r.route.id}function SR(){var t;let n=I.useContext(gC),r=kR(),i=jC();return n!==void 0?n:(t=r.errors)==null?void 0:t[i]}function AR(){let{router:t}=NR(vC.UseNavigateStable),n=jC(bC.UseNavigateStable),r=I.useRef(!1);return xC(()=>{r.current=!0}),I.useCallback(function(s,a){a===void 0&&(a={}),r.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,ru({fromRouteId:n},a)))},[t,n])}const G1={};function CR(t,n,r){G1[t]||(G1[t]=!0)}function ER(t,n){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function jh(t){cn(!1)}function TR(t){let{basename:n="/",children:r=null,location:i,navigationType:s=Ls.Pop,navigator:a,static:o=!1,future:c}=t;_u()&&cn(!1);let d=n.replace(/^\/*/,"/"),h=I.useMemo(()=>({basename:d,navigator:a,static:o,future:ru({v7_relativeSplatPath:!1},c)}),[d,c,a,o]);typeof i=="string"&&(i=jl(i));let{pathname:f="/",search:m="",hash:p="",state:g=null,key:b="default"}=i,j=I.useMemo(()=>{let y=av(f,d);return y==null?null:{location:{pathname:y,search:m,hash:p,state:g,key:b},navigationType:s}},[d,f,m,p,g,b,s]);return j==null?null:I.createElement(Xa.Provider,{value:h},I.createElement(uf.Provider,{children:r,value:j}))}function PR(t){let{children:n,location:r}=t;return gR(H0(n),r)}new Promise(()=>{});function H0(t,n){n===void 0&&(n=[]);let r=[];return I.Children.forEach(t,(i,s)=>{if(!I.isValidElement(i))return;let a=[...n,s];if(i.type===I.Fragment){r.push.apply(r,H0(i.props.children,a));return}i.type!==jh&&cn(!1),!i.props.index||!i.props.children||cn(!1);let o={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=H0(i.props.children,a)),r.push(o)}),r}/**
 * React Router DOM v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function W0(){return W0=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},W0.apply(this,arguments)}function OR(t,n){if(t==null)return{};var r={},i=Object.keys(t),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=t[s]);return r}function DR(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function IR(t,n){return t.button===0&&(!n||n==="_self")&&!DR(t)}const RR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],FR="6";try{window.__reactRouterVersion=FR}catch{}const MR="startTransition",Q1=Xy[MR];function LR(t){let{basename:n,children:r,future:i,window:s}=t,a=I.useRef();a.current==null&&(a.current=q8({window:s,v5Compat:!0}));let o=a.current,[c,d]=I.useState({action:o.action,location:o.location}),{v7_startTransition:h}=i||{},f=I.useCallback(m=>{h&&Q1?Q1(()=>d(m)):d(m)},[d,h]);return I.useLayoutEffect(()=>o.listen(f),[o,f]),I.useEffect(()=>ER(i),[i]),I.createElement(TR,{basename:n,children:r,location:c.location,navigationType:c.action,navigator:o,future:i})}const BR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,de=I.forwardRef(function(n,r){let{onClick:i,relative:s,reloadDocument:a,replace:o,state:c,target:d,to:h,preventScrollReset:f,viewTransition:m}=n,p=OR(n,RR),{basename:g}=I.useContext(Xa),b,j=!1;if(typeof h=="string"&&zR.test(h)&&(b=h,BR))try{let w=new URL(window.location.href),k=h.startsWith("//")?new URL(w.protocol+h):new URL(h),A=av(k.pathname,g);k.origin===w.origin&&A!=null?h=A+k.search+k.hash:j=!0}catch{}let y=mR(h,{relative:s}),x=qR(h,{replace:o,state:c,target:d,preventScrollReset:f,relative:s,viewTransition:m});function N(w){i&&i(w),w.defaultPrevented||x(w)}return I.createElement("a",W0({},p,{href:b||y,onClick:j||a?i:N,ref:r,target:d}))});var Y1;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Y1||(Y1={}));var X1;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(X1||(X1={}));function qR(t,n){let{target:r,replace:i,state:s,preventScrollReset:a,relative:o,viewTransition:c}=n===void 0?{}:n,d=wl(),h=Za(),f=yC(t,{relative:o});return I.useCallback(m=>{if(IR(m,r)){m.preventDefault();let p=i!==void 0?i:zh(h)===zh(f);d(t,{replace:p,state:s,preventScrollReset:a,relative:o,viewTransition:c})}},[h,d,f,i,s,r,t,a,o,c])}function wC(t,n){return function(){return t.apply(n,arguments)}}const{toString:VR}=Object.prototype,{getPrototypeOf:lv}=Object,{iterator:df,toStringTag:NC}=Symbol,hf=(t=>n=>{const r=VR.call(n);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Gr=t=>(t=t.toLowerCase(),n=>hf(n)===t),ff=t=>n=>typeof n===t,{isArray:Nl}=Array,ul=ff("undefined");function Su(t){return t!==null&&!ul(t)&&t.constructor!==null&&!ul(t.constructor)&&er(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const kC=Gr("ArrayBuffer");function UR(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&kC(t.buffer),n}const $R=ff("string"),er=ff("function"),_C=ff("number"),Au=t=>t!==null&&typeof t=="object",HR=t=>t===!0||t===!1,wh=t=>{if(hf(t)!=="object")return!1;const n=lv(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(NC in t)&&!(df in t)},WR=t=>{if(!Au(t)||Su(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},KR=Gr("Date"),GR=Gr("File"),QR=Gr("Blob"),YR=Gr("FileList"),XR=t=>Au(t)&&er(t.pipe),JR=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||er(t.append)&&((n=hf(t))==="formdata"||n==="object"&&er(t.toString)&&t.toString()==="[object FormData]"))},ZR=Gr("URLSearchParams"),[eF,tF,nF,rF]=["ReadableStream","Request","Response","Headers"].map(Gr),iF=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cu(t,n,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),Nl(t))for(i=0,s=t.length;i<s;i++)n.call(null,t[i],i,t);else{if(Su(t))return;const a=r?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length;let c;for(i=0;i<o;i++)c=a[i],n.call(null,t[c],c,t)}}function SC(t,n){if(Su(t))return null;n=n.toLowerCase();const r=Object.keys(t);let i=r.length,s;for(;i-- >0;)if(s=r[i],n===s.toLowerCase())return s;return null}const Sa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,AC=t=>!ul(t)&&t!==Sa;function K0(){const{caseless:t,skipUndefined:n}=AC(this)&&this||{},r={},i=(s,a)=>{const o=t&&SC(r,a)||a;wh(r[o])&&wh(s)?r[o]=K0(r[o],s):wh(s)?r[o]=K0({},s):Nl(s)?r[o]=s.slice():(!n||!ul(s))&&(r[o]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&Cu(arguments[s],i);return r}const sF=(t,n,r,{allOwnKeys:i}={})=>(Cu(n,(s,a)=>{r&&er(s)?t[a]=wC(s,r):t[a]=s},{allOwnKeys:i}),t),aF=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),oF=(t,n,r,i)=>{t.prototype=Object.create(n.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),r&&Object.assign(t.prototype,r)},lF=(t,n,r,i)=>{let s,a,o;const c={};if(n=n||{},t==null)return n;do{for(s=Object.getOwnPropertyNames(t),a=s.length;a-- >0;)o=s[a],(!i||i(o,t,n))&&!c[o]&&(n[o]=t[o],c[o]=!0);t=r!==!1&&lv(t)}while(t&&(!r||r(t,n))&&t!==Object.prototype);return n},cF=(t,n,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=n.length;const i=t.indexOf(n,r);return i!==-1&&i===r},uF=t=>{if(!t)return null;if(Nl(t))return t;let n=t.length;if(!_C(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=t[n];return r},dF=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&lv(Uint8Array)),hF=(t,n)=>{const i=(t&&t[df]).call(t);let s;for(;(s=i.next())&&!s.done;){const a=s.value;n.call(t,a[0],a[1])}},fF=(t,n)=>{let r;const i=[];for(;(r=t.exec(n))!==null;)i.push(r);return i},mF=Gr("HTMLFormElement"),pF=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,s){return i.toUpperCase()+s}),J1=(({hasOwnProperty:t})=>(n,r)=>t.call(n,r))(Object.prototype),gF=Gr("RegExp"),CC=(t,n)=>{const r=Object.getOwnPropertyDescriptors(t),i={};Cu(r,(s,a)=>{let o;(o=n(s,a,t))!==!1&&(i[a]=o||s)}),Object.defineProperties(t,i)},xF=t=>{CC(t,(n,r)=>{if(er(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=t[r];if(er(i)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yF=(t,n)=>{const r={},i=s=>{s.forEach(a=>{r[a]=!0})};return Nl(t)?i(t):i(String(t).split(n)),r},vF=()=>{},bF=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function jF(t){return!!(t&&er(t.append)&&t[NC]==="FormData"&&t[df])}const wF=t=>{const n=new Array(10),r=(i,s)=>{if(Au(i)){if(n.indexOf(i)>=0)return;if(Su(i))return i;if(!("toJSON"in i)){n[s]=i;const a=Nl(i)?[]:{};return Cu(i,(o,c)=>{const d=r(o,s+1);!ul(d)&&(a[c]=d)}),n[s]=void 0,a}}return i};return r(t,0)},NF=Gr("AsyncFunction"),kF=t=>t&&(Au(t)||er(t))&&er(t.then)&&er(t.catch),EC=((t,n)=>t?setImmediate:n?((r,i)=>(Sa.addEventListener("message",({source:s,data:a})=>{s===Sa&&a===r&&i.length&&i.shift()()},!1),s=>{i.push(s),Sa.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",er(Sa.postMessage)),_F=typeof queueMicrotask<"u"?queueMicrotask.bind(Sa):typeof process<"u"&&process.nextTick||EC,SF=t=>t!=null&&er(t[df]),pe={isArray:Nl,isArrayBuffer:kC,isBuffer:Su,isFormData:JR,isArrayBufferView:UR,isString:$R,isNumber:_C,isBoolean:HR,isObject:Au,isPlainObject:wh,isEmptyObject:WR,isReadableStream:eF,isRequest:tF,isResponse:nF,isHeaders:rF,isUndefined:ul,isDate:KR,isFile:GR,isBlob:QR,isRegExp:gF,isFunction:er,isStream:XR,isURLSearchParams:ZR,isTypedArray:dF,isFileList:YR,forEach:Cu,merge:K0,extend:sF,trim:iF,stripBOM:aF,inherits:oF,toFlatObject:lF,kindOf:hf,kindOfTest:Gr,endsWith:cF,toArray:uF,forEachEntry:hF,matchAll:fF,isHTMLForm:mF,hasOwnProperty:J1,hasOwnProp:J1,reduceDescriptors:CC,freezeMethods:xF,toObjectSet:yF,toCamelCase:pF,noop:vF,toFiniteNumber:bF,findKey:SC,global:Sa,isContextDefined:AC,isSpecCompliantForm:jF,toJSONObject:wF,isAsyncFn:NF,isThenable:kF,setImmediate:EC,asap:_F,isIterable:SF};function at(t,n,r,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}pe.inherits(at,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pe.toJSONObject(this.config),code:this.code,status:this.status}}});const TC=at.prototype,PC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{PC[t]={value:t}});Object.defineProperties(at,PC);Object.defineProperty(TC,"isAxiosError",{value:!0});at.from=(t,n,r,i,s,a)=>{const o=Object.create(TC);pe.toFlatObject(t,o,function(f){return f!==Error.prototype},h=>h!=="isAxiosError");const c=t&&t.message?t.message:"Error",d=n==null&&t?t.code:n;return at.call(o,c,d,r,i,s),t&&o.cause==null&&Object.defineProperty(o,"cause",{value:t,configurable:!0}),o.name=t&&t.name||"Error",a&&Object.assign(o,a),o};const AF=null;function G0(t){return pe.isPlainObject(t)||pe.isArray(t)}function OC(t){return pe.endsWith(t,"[]")?t.slice(0,-2):t}function Z1(t,n,r){return t?t.concat(n).map(function(s,a){return s=OC(s),!r&&a?"["+s+"]":s}).join(r?".":""):n}function CF(t){return pe.isArray(t)&&!t.some(G0)}const EF=pe.toFlatObject(pe,{},null,function(n){return/^is[A-Z]/.test(n)});function mf(t,n,r){if(!pe.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,r=pe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(j,y){return!pe.isUndefined(y[j])});const i=r.metaTokens,s=r.visitor||f,a=r.dots,o=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&pe.isSpecCompliantForm(n);if(!pe.isFunction(s))throw new TypeError("visitor must be a function");function h(b){if(b===null)return"";if(pe.isDate(b))return b.toISOString();if(pe.isBoolean(b))return b.toString();if(!d&&pe.isBlob(b))throw new at("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(b)||pe.isTypedArray(b)?d&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function f(b,j,y){let x=b;if(b&&!y&&typeof b=="object"){if(pe.endsWith(j,"{}"))j=i?j:j.slice(0,-2),b=JSON.stringify(b);else if(pe.isArray(b)&&CF(b)||(pe.isFileList(b)||pe.endsWith(j,"[]"))&&(x=pe.toArray(b)))return j=OC(j),x.forEach(function(w,k){!(pe.isUndefined(w)||w===null)&&n.append(o===!0?Z1([j],k,a):o===null?j:j+"[]",h(w))}),!1}return G0(b)?!0:(n.append(Z1(y,j,a),h(b)),!1)}const m=[],p=Object.assign(EF,{defaultVisitor:f,convertValue:h,isVisitable:G0});function g(b,j){if(!pe.isUndefined(b)){if(m.indexOf(b)!==-1)throw Error("Circular reference detected in "+j.join("."));m.push(b),pe.forEach(b,function(x,N){(!(pe.isUndefined(x)||x===null)&&s.call(n,x,pe.isString(N)?N.trim():N,j,p))===!0&&g(x,j?j.concat(N):[N])}),m.pop()}}if(!pe.isObject(t))throw new TypeError("data must be an object");return g(t),n}function eN(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return n[i]})}function cv(t,n){this._pairs=[],t&&mf(t,this,n)}const DC=cv.prototype;DC.append=function(n,r){this._pairs.push([n,r])};DC.toString=function(n){const r=n?function(i){return n.call(this,i,eN)}:eN;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function TF(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function IC(t,n,r){if(!n)return t;const i=r&&r.encode||TF;pe.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let a;if(s?a=s(n,r):a=pe.isURLSearchParams(n)?n.toString():new cv(n,r).toString(i),a){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class tN{constructor(){this.handlers=[]}use(n,r,i){return this.handlers.push({fulfilled:n,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){pe.forEach(this.handlers,function(i){i!==null&&n(i)})}}const RC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},PF=typeof URLSearchParams<"u"?URLSearchParams:cv,OF=typeof FormData<"u"?FormData:null,DF=typeof Blob<"u"?Blob:null,IF={isBrowser:!0,classes:{URLSearchParams:PF,FormData:OF,Blob:DF},protocols:["http","https","file","blob","url","data"]},uv=typeof window<"u"&&typeof document<"u",Q0=typeof navigator=="object"&&navigator||void 0,RF=uv&&(!Q0||["ReactNative","NativeScript","NS"].indexOf(Q0.product)<0),FF=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",MF=uv&&window.location.href||"http://localhost",LF=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uv,hasStandardBrowserEnv:RF,hasStandardBrowserWebWorkerEnv:FF,navigator:Q0,origin:MF},Symbol.toStringTag,{value:"Module"})),Dn={...LF,...IF};function BF(t,n){return mf(t,new Dn.classes.URLSearchParams,{visitor:function(r,i,s,a){return Dn.isNode&&pe.isBuffer(r)?(this.append(i,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...n})}function zF(t){return pe.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function qF(t){const n={},r=Object.keys(t);let i;const s=r.length;let a;for(i=0;i<s;i++)a=r[i],n[a]=t[a];return n}function FC(t){function n(r,i,s,a){let o=r[a++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),d=a>=r.length;return o=!o&&pe.isArray(s)?s.length:o,d?(pe.hasOwnProp(s,o)?s[o]=[s[o],i]:s[o]=i,!c):((!s[o]||!pe.isObject(s[o]))&&(s[o]=[]),n(r,i,s[o],a)&&pe.isArray(s[o])&&(s[o]=qF(s[o])),!c)}if(pe.isFormData(t)&&pe.isFunction(t.entries)){const r={};return pe.forEachEntry(t,(i,s)=>{n(zF(i),s,r,0)}),r}return null}function VF(t,n,r){if(pe.isString(t))try{return(n||JSON.parse)(t),pe.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(t)}const Eu={transitional:RC,adapter:["xhr","http","fetch"],transformRequest:[function(n,r){const i=r.getContentType()||"",s=i.indexOf("application/json")>-1,a=pe.isObject(n);if(a&&pe.isHTMLForm(n)&&(n=new FormData(n)),pe.isFormData(n))return s?JSON.stringify(FC(n)):n;if(pe.isArrayBuffer(n)||pe.isBuffer(n)||pe.isStream(n)||pe.isFile(n)||pe.isBlob(n)||pe.isReadableStream(n))return n;if(pe.isArrayBufferView(n))return n.buffer;if(pe.isURLSearchParams(n))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let c;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return BF(n,this.formSerializer).toString();if((c=pe.isFileList(n))||i.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return mf(c?{"files[]":n}:n,d&&new d,this.formSerializer)}}return a||s?(r.setContentType("application/json",!1),VF(n)):n}],transformResponse:[function(n){const r=this.transitional||Eu.transitional,i=r&&r.forcedJSONParsing,s=this.responseType==="json";if(pe.isResponse(n)||pe.isReadableStream(n))return n;if(n&&pe.isString(n)&&(i&&!this.responseType||s)){const o=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(n,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?at.from(c,at.ERR_BAD_RESPONSE,this,null,this.response):c}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dn.classes.FormData,Blob:Dn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],t=>{Eu.headers[t]={}});const UF=pe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$F=t=>{const n={};let r,i,s;return t&&t.split(`
`).forEach(function(o){s=o.indexOf(":"),r=o.substring(0,s).trim().toLowerCase(),i=o.substring(s+1).trim(),!(!r||n[r]&&UF[r])&&(r==="set-cookie"?n[r]?n[r].push(i):n[r]=[i]:n[r]=n[r]?n[r]+", "+i:i)}),n},nN=Symbol("internals");function yc(t){return t&&String(t).trim().toLowerCase()}function Nh(t){return t===!1||t==null?t:pe.isArray(t)?t.map(Nh):String(t)}function HF(t){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(t);)n[i[1]]=i[2];return n}const WF=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Hp(t,n,r,i,s){if(pe.isFunction(i))return i.call(this,n,r);if(s&&(n=r),!!pe.isString(n)){if(pe.isString(i))return n.indexOf(i)!==-1;if(pe.isRegExp(i))return i.test(n)}}function KF(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,i)=>r.toUpperCase()+i)}function GF(t,n){const r=pe.toCamelCase(" "+n);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+r,{value:function(s,a,o){return this[i].call(this,n,s,a,o)},configurable:!0})})}let tr=class{constructor(n){n&&this.set(n)}set(n,r,i){const s=this;function a(c,d,h){const f=yc(d);if(!f)throw new Error("header name must be a non-empty string");const m=pe.findKey(s,f);(!m||s[m]===void 0||h===!0||h===void 0&&s[m]!==!1)&&(s[m||d]=Nh(c))}const o=(c,d)=>pe.forEach(c,(h,f)=>a(h,f,d));if(pe.isPlainObject(n)||n instanceof this.constructor)o(n,r);else if(pe.isString(n)&&(n=n.trim())&&!WF(n))o($F(n),r);else if(pe.isObject(n)&&pe.isIterable(n)){let c={},d,h;for(const f of n){if(!pe.isArray(f))throw TypeError("Object iterator must return a key-value pair");c[h=f[0]]=(d=c[h])?pe.isArray(d)?[...d,f[1]]:[d,f[1]]:f[1]}o(c,r)}else n!=null&&a(r,n,i);return this}get(n,r){if(n=yc(n),n){const i=pe.findKey(this,n);if(i){const s=this[i];if(!r)return s;if(r===!0)return HF(s);if(pe.isFunction(r))return r.call(this,s,i);if(pe.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=yc(n),n){const i=pe.findKey(this,n);return!!(i&&this[i]!==void 0&&(!r||Hp(this,this[i],i,r)))}return!1}delete(n,r){const i=this;let s=!1;function a(o){if(o=yc(o),o){const c=pe.findKey(i,o);c&&(!r||Hp(i,i[c],c,r))&&(delete i[c],s=!0)}}return pe.isArray(n)?n.forEach(a):a(n),s}clear(n){const r=Object.keys(this);let i=r.length,s=!1;for(;i--;){const a=r[i];(!n||Hp(this,this[a],a,n,!0))&&(delete this[a],s=!0)}return s}normalize(n){const r=this,i={};return pe.forEach(this,(s,a)=>{const o=pe.findKey(i,a);if(o){r[o]=Nh(s),delete r[a];return}const c=n?KF(a):String(a).trim();c!==a&&delete r[a],r[c]=Nh(s),i[c]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return pe.forEach(this,(i,s)=>{i!=null&&i!==!1&&(r[s]=n&&pe.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const i=new this(n);return r.forEach(s=>i.set(s)),i}static accessor(n){const i=(this[nN]=this[nN]={accessors:{}}).accessors,s=this.prototype;function a(o){const c=yc(o);i[c]||(GF(s,o),i[c]=!0)}return pe.isArray(n)?n.forEach(a):a(n),this}};tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);pe.reduceDescriptors(tr.prototype,({value:t},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(i){this[r]=i}}});pe.freezeMethods(tr);function Wp(t,n){const r=this||Eu,i=n||r,s=tr.from(i.headers);let a=i.data;return pe.forEach(t,function(c){a=c.call(r,a,s.normalize(),n?n.status:void 0)}),s.normalize(),a}function MC(t){return!!(t&&t.__CANCEL__)}function kl(t,n,r){at.call(this,t??"canceled",at.ERR_CANCELED,n,r),this.name="CanceledError"}pe.inherits(kl,at,{__CANCEL__:!0});function LC(t,n,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):n(new at("Request failed with status code "+r.status,[at.ERR_BAD_REQUEST,at.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function QF(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function YF(t,n){t=t||10;const r=new Array(t),i=new Array(t);let s=0,a=0,o;return n=n!==void 0?n:1e3,function(d){const h=Date.now(),f=i[a];o||(o=h),r[s]=d,i[s]=h;let m=a,p=0;for(;m!==s;)p+=r[m++],m=m%t;if(s=(s+1)%t,s===a&&(a=(a+1)%t),h-o<n)return;const g=f&&h-f;return g?Math.round(p*1e3/g):void 0}}function XF(t,n){let r=0,i=1e3/n,s,a;const o=(h,f=Date.now())=>{r=f,s=null,a&&(clearTimeout(a),a=null),t(...h)};return[(...h)=>{const f=Date.now(),m=f-r;m>=i?o(h,f):(s=h,a||(a=setTimeout(()=>{a=null,o(s)},i-m)))},()=>s&&o(s)]}const qh=(t,n,r=3)=>{let i=0;const s=YF(50,250);return XF(a=>{const o=a.loaded,c=a.lengthComputable?a.total:void 0,d=o-i,h=s(d),f=o<=c;i=o;const m={loaded:o,total:c,progress:c?o/c:void 0,bytes:d,rate:h||void 0,estimated:h&&c&&f?(c-o)/h:void 0,event:a,lengthComputable:c!=null,[n?"download":"upload"]:!0};t(m)},r)},rN=(t,n)=>{const r=t!=null;return[i=>n[0]({lengthComputable:r,total:t,loaded:i}),n[1]]},iN=t=>(...n)=>pe.asap(()=>t(...n)),JF=Dn.hasStandardBrowserEnv?((t,n)=>r=>(r=new URL(r,Dn.origin),t.protocol===r.protocol&&t.host===r.host&&(n||t.port===r.port)))(new URL(Dn.origin),Dn.navigator&&/(msie|trident)/i.test(Dn.navigator.userAgent)):()=>!0,ZF=Dn.hasStandardBrowserEnv?{write(t,n,r,i,s,a){const o=[t+"="+encodeURIComponent(n)];pe.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),pe.isString(i)&&o.push("path="+i),pe.isString(s)&&o.push("domain="+s),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function eM(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function tM(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function BC(t,n,r){let i=!eM(n);return t&&(i||r==!1)?tM(t,n):n}const sN=t=>t instanceof tr?{...t}:t;function Ha(t,n){n=n||{};const r={};function i(h,f,m,p){return pe.isPlainObject(h)&&pe.isPlainObject(f)?pe.merge.call({caseless:p},h,f):pe.isPlainObject(f)?pe.merge({},f):pe.isArray(f)?f.slice():f}function s(h,f,m,p){if(pe.isUndefined(f)){if(!pe.isUndefined(h))return i(void 0,h,m,p)}else return i(h,f,m,p)}function a(h,f){if(!pe.isUndefined(f))return i(void 0,f)}function o(h,f){if(pe.isUndefined(f)){if(!pe.isUndefined(h))return i(void 0,h)}else return i(void 0,f)}function c(h,f,m){if(m in n)return i(h,f);if(m in t)return i(void 0,h)}const d={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(h,f,m)=>s(sN(h),sN(f),m,!0)};return pe.forEach(Object.keys({...t,...n}),function(f){const m=d[f]||s,p=m(t[f],n[f],f);pe.isUndefined(p)&&m!==c||(r[f]=p)}),r}const zC=t=>{const n=Ha({},t);let{data:r,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:c}=n;if(n.headers=o=tr.from(o),n.url=IC(BC(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),pe.isFormData(r)){if(Dn.hasStandardBrowserEnv||Dn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(pe.isFunction(r.getHeaders)){const d=r.getHeaders(),h=["content-type","content-length"];Object.entries(d).forEach(([f,m])=>{h.includes(f.toLowerCase())&&o.set(f,m)})}}if(Dn.hasStandardBrowserEnv&&(i&&pe.isFunction(i)&&(i=i(n)),i||i!==!1&&JF(n.url))){const d=s&&a&&ZF.read(a);d&&o.set(s,d)}return n},nM=typeof XMLHttpRequest<"u",rM=nM&&function(t){return new Promise(function(r,i){const s=zC(t);let a=s.data;const o=tr.from(s.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:h}=s,f,m,p,g,b;function j(){g&&g(),b&&b(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let y=new XMLHttpRequest;y.open(s.method.toUpperCase(),s.url,!0),y.timeout=s.timeout;function x(){if(!y)return;const w=tr.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),A={data:!c||c==="text"||c==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:t,request:y};LC(function(E){r(E),j()},function(E){i(E),j()},A),y=null}"onloadend"in y?y.onloadend=x:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(x)},y.onabort=function(){y&&(i(new at("Request aborted",at.ECONNABORTED,t,y)),y=null)},y.onerror=function(k){const A=k&&k.message?k.message:"Network Error",S=new at(A,at.ERR_NETWORK,t,y);S.event=k||null,i(S),y=null},y.ontimeout=function(){let k=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const A=s.transitional||RC;s.timeoutErrorMessage&&(k=s.timeoutErrorMessage),i(new at(k,A.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,t,y)),y=null},a===void 0&&o.setContentType(null),"setRequestHeader"in y&&pe.forEach(o.toJSON(),function(k,A){y.setRequestHeader(A,k)}),pe.isUndefined(s.withCredentials)||(y.withCredentials=!!s.withCredentials),c&&c!=="json"&&(y.responseType=s.responseType),h&&([p,b]=qh(h,!0),y.addEventListener("progress",p)),d&&y.upload&&([m,g]=qh(d),y.upload.addEventListener("progress",m),y.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(f=w=>{y&&(i(!w||w.type?new kl(null,t,y):w),y.abort(),y=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const N=QF(s.url);if(N&&Dn.protocols.indexOf(N)===-1){i(new at("Unsupported protocol "+N+":",at.ERR_BAD_REQUEST,t));return}y.send(a||null)})},iM=(t,n)=>{const{length:r}=t=t?t.filter(Boolean):[];if(n||r){let i=new AbortController,s;const a=function(h){if(!s){s=!0,c();const f=h instanceof Error?h:this.reason;i.abort(f instanceof at?f:new kl(f instanceof Error?f.message:f))}};let o=n&&setTimeout(()=>{o=null,a(new at(`timeout ${n} of ms exceeded`,at.ETIMEDOUT))},n);const c=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),t=null)};t.forEach(h=>h.addEventListener("abort",a));const{signal:d}=i;return d.unsubscribe=()=>pe.asap(c),d}},sM=function*(t,n){let r=t.byteLength;if(r<n){yield t;return}let i=0,s;for(;i<r;)s=i+n,yield t.slice(i,s),i=s},aM=async function*(t,n){for await(const r of oM(t))yield*sM(r,n)},oM=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:r,value:i}=await n.read();if(r)break;yield i}}finally{await n.cancel()}},aN=(t,n,r,i)=>{const s=aM(t,n);let a=0,o,c=d=>{o||(o=!0,i&&i(d))};return new ReadableStream({async pull(d){try{const{done:h,value:f}=await s.next();if(h){c(),d.close();return}let m=f.byteLength;if(r){let p=a+=m;r(p)}d.enqueue(new Uint8Array(f))}catch(h){throw c(h),h}},cancel(d){return c(d),s.return()}},{highWaterMark:2})},oN=64*1024,{isFunction:eh}=pe,lM=(({Request:t,Response:n})=>({Request:t,Response:n}))(pe.global),{ReadableStream:lN,TextEncoder:cN}=pe.global,uN=(t,...n)=>{try{return!!t(...n)}catch{return!1}},cM=t=>{t=pe.merge.call({skipUndefined:!0},lM,t);const{fetch:n,Request:r,Response:i}=t,s=n?eh(n):typeof fetch=="function",a=eh(r),o=eh(i);if(!s)return!1;const c=s&&eh(lN),d=s&&(typeof cN=="function"?(b=>j=>b.encode(j))(new cN):async b=>new Uint8Array(await new r(b).arrayBuffer())),h=a&&c&&uN(()=>{let b=!1;const j=new r(Dn.origin,{body:new lN,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!j}),f=o&&c&&uN(()=>pe.isReadableStream(new i("").body)),m={stream:f&&(b=>b.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!m[b]&&(m[b]=(j,y)=>{let x=j&&j[b];if(x)return x.call(j);throw new at(`Response type '${b}' is not supported`,at.ERR_NOT_SUPPORT,y)})});const p=async b=>{if(b==null)return 0;if(pe.isBlob(b))return b.size;if(pe.isSpecCompliantForm(b))return(await new r(Dn.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(pe.isArrayBufferView(b)||pe.isArrayBuffer(b))return b.byteLength;if(pe.isURLSearchParams(b)&&(b=b+""),pe.isString(b))return(await d(b)).byteLength},g=async(b,j)=>{const y=pe.toFiniteNumber(b.getContentLength());return y??p(j)};return async b=>{let{url:j,method:y,data:x,signal:N,cancelToken:w,timeout:k,onDownloadProgress:A,onUploadProgress:S,responseType:E,headers:C,withCredentials:B="same-origin",fetchOptions:D}=zC(b),F=n||fetch;E=E?(E+"").toLowerCase():"text";let R=iM([N,w&&w.toAbortSignal()],k),z=null;const q=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let U;try{if(S&&h&&y!=="get"&&y!=="head"&&(U=await g(C,x))!==0){let T=new r(j,{method:"POST",body:x,duplex:"half"}),V;if(pe.isFormData(x)&&(V=T.headers.get("content-type"))&&C.setContentType(V),T.body){const[L,X]=rN(U,qh(iN(S)));x=aN(T.body,oN,L,X)}}pe.isString(B)||(B=B?"include":"omit");const Q=a&&"credentials"in r.prototype,H={...D,signal:R,method:y.toUpperCase(),headers:C.normalize().toJSON(),body:x,duplex:"half",credentials:Q?B:void 0};z=a&&new r(j,H);let K=await(a?F(z,D):F(j,H));const Y=f&&(E==="stream"||E==="response");if(f&&(A||Y&&q)){const T={};["status","statusText","headers"].forEach(J=>{T[J]=K[J]});const V=pe.toFiniteNumber(K.headers.get("content-length")),[L,X]=A&&rN(V,qh(iN(A),!0))||[];K=new i(aN(K.body,oN,L,()=>{X&&X(),q&&q()}),T)}E=E||"text";let O=await m[pe.findKey(m,E)||"text"](K,b);return!Y&&q&&q(),await new Promise((T,V)=>{LC(T,V,{data:O,headers:tr.from(K.headers),status:K.status,statusText:K.statusText,config:b,request:z})})}catch(Q){throw q&&q(),Q&&Q.name==="TypeError"&&/Load failed|fetch/i.test(Q.message)?Object.assign(new at("Network Error",at.ERR_NETWORK,b,z),{cause:Q.cause||Q}):at.from(Q,Q&&Q.code,b,z)}}},uM=new Map,qC=t=>{let n=t?t.env:{};const{fetch:r,Request:i,Response:s}=n,a=[i,s,r];let o=a.length,c=o,d,h,f=uM;for(;c--;)d=a[c],h=f.get(d),h===void 0&&f.set(d,h=c?new Map:cM(n)),f=h;return h};qC();const Y0={http:AF,xhr:rM,fetch:{get:qC}};pe.forEach(Y0,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const dN=t=>`- ${t}`,dM=t=>pe.isFunction(t)||t===null||t===!1,VC={getAdapter:(t,n)=>{t=pe.isArray(t)?t:[t];const{length:r}=t;let i,s;const a={};for(let o=0;o<r;o++){i=t[o];let c;if(s=i,!dM(i)&&(s=Y0[(c=String(i)).toLowerCase()],s===void 0))throw new at(`Unknown adapter '${c}'`);if(s&&(pe.isFunction(s)||(s=s.get(n))))break;a[c||"#"+o]=s}if(!s){const o=Object.entries(a).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=r?o.length>1?`since :
`+o.map(dN).join(`
`):" "+dN(o[0]):"as no adapter specified";throw new at("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:Y0};function Kp(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new kl(null,t)}function hN(t){return Kp(t),t.headers=tr.from(t.headers),t.data=Wp.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),VC.getAdapter(t.adapter||Eu.adapter,t)(t).then(function(i){return Kp(t),i.data=Wp.call(t,t.transformResponse,i),i.headers=tr.from(i.headers),i},function(i){return MC(i)||(Kp(t),i&&i.response&&(i.response.data=Wp.call(t,t.transformResponse,i.response),i.response.headers=tr.from(i.response.headers))),Promise.reject(i)})}const UC="1.12.2",pf={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{pf[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});const fN={};pf.transitional=function(n,r,i){function s(a,o){return"[Axios v"+UC+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,c)=>{if(n===!1)throw new at(s(o," has been removed"+(r?" in "+r:"")),at.ERR_DEPRECATED);return r&&!fN[o]&&(fN[o]=!0,console.warn(s(o," has been deprecated since v"+r+" and will be removed in the near future"))),n?n(a,o,c):!0}};pf.spelling=function(n){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${n}`),!0)};function hM(t,n,r){if(typeof t!="object")throw new at("options must be an object",at.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const a=i[s],o=n[a];if(o){const c=t[a],d=c===void 0||o(c,a,t);if(d!==!0)throw new at("option "+a+" must be "+d,at.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new at("Unknown option "+a,at.ERR_BAD_OPTION)}}const kh={assertOptions:hM,validators:pf},ti=kh.validators;let La=class{constructor(n){this.defaults=n||{},this.interceptors={request:new tN,response:new tN}}async request(n,r){try{return await this._request(n,r)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+a):i.stack=a}catch{}}throw i}}_request(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=Ha(this.defaults,r);const{transitional:i,paramsSerializer:s,headers:a}=r;i!==void 0&&kh.assertOptions(i,{silentJSONParsing:ti.transitional(ti.boolean),forcedJSONParsing:ti.transitional(ti.boolean),clarifyTimeoutError:ti.transitional(ti.boolean)},!1),s!=null&&(pe.isFunction(s)?r.paramsSerializer={serialize:s}:kh.assertOptions(s,{encode:ti.function,serialize:ti.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),kh.assertOptions(r,{baseUrl:ti.spelling("baseURL"),withXsrfToken:ti.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&pe.merge(a.common,a[r.method]);a&&pe.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),r.headers=tr.concat(o,a);const c=[];let d=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(r)===!1||(d=d&&j.synchronous,c.unshift(j.fulfilled,j.rejected))});const h=[];this.interceptors.response.forEach(function(j){h.push(j.fulfilled,j.rejected)});let f,m=0,p;if(!d){const b=[hN.bind(this),void 0];for(b.unshift(...c),b.push(...h),p=b.length,f=Promise.resolve(r);m<p;)f=f.then(b[m++],b[m++]);return f}p=c.length;let g=r;for(;m<p;){const b=c[m++],j=c[m++];try{g=b(g)}catch(y){j.call(this,y);break}}try{f=hN.call(this,g)}catch(b){return Promise.reject(b)}for(m=0,p=h.length;m<p;)f=f.then(h[m++],h[m++]);return f}getUri(n){n=Ha(this.defaults,n);const r=BC(n.baseURL,n.url,n.allowAbsoluteUrls);return IC(r,n.params,n.paramsSerializer)}};pe.forEach(["delete","get","head","options"],function(n){La.prototype[n]=function(r,i){return this.request(Ha(i||{},{method:n,url:r,data:(i||{}).data}))}});pe.forEach(["post","put","patch"],function(n){function r(i){return function(a,o,c){return this.request(Ha(c||{},{method:n,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}La.prototype[n]=r(),La.prototype[n+"Form"]=r(!0)});let fM=class $C{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const i=this;this.promise.then(s=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](s);i._listeners=null}),this.promise.then=s=>{let a;const o=new Promise(c=>{i.subscribe(c),a=c}).then(s);return o.cancel=function(){i.unsubscribe(a)},o},n(function(a,o,c){i.reason||(i.reason=new kl(a,o,c),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const n=new AbortController,r=i=>{n.abort(i)};return this.subscribe(r),n.signal.unsubscribe=()=>this.unsubscribe(r),n.signal}static source(){let n;return{token:new $C(function(s){n=s}),cancel:n}}};function mM(t){return function(r){return t.apply(null,r)}}function pM(t){return pe.isObject(t)&&t.isAxiosError===!0}const X0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(X0).forEach(([t,n])=>{X0[n]=t});function HC(t){const n=new La(t),r=wC(La.prototype.request,n);return pe.extend(r,La.prototype,n,{allOwnKeys:!0}),pe.extend(r,n,null,{allOwnKeys:!0}),r.create=function(s){return HC(Ha(t,s))},r}const sn=HC(Eu);sn.Axios=La;sn.CanceledError=kl;sn.CancelToken=fM;sn.isCancel=MC;sn.VERSION=UC;sn.toFormData=mf;sn.AxiosError=at;sn.Cancel=sn.CanceledError;sn.all=function(n){return Promise.all(n)};sn.spread=mM;sn.isAxiosError=pM;sn.mergeConfig=Ha;sn.AxiosHeaders=tr;sn.formToJSON=t=>FC(pe.isHTMLForm(t)?new FormData(t):t);sn.getAdapter=VC.getAdapter;sn.HttpStatusCode=X0;sn.default=sn;const{Axios:one,AxiosError:lne,CanceledError:cne,isCancel:une,CancelToken:dne,VERSION:hne,all:fne,Cancel:mne,isAxiosError:pne,spread:gne,toFormData:xne,AxiosHeaders:yne,HttpStatusCode:vne,formToJSON:bne,getAdapter:jne,mergeConfig:wne}=sn,gM=typeof window>"u",mN=!gM&&window.self!==window.top,Gp=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Nn=[];for(let t=0;t<256;++t)Nn.push((t+256).toString(16).slice(1));function xM(t,n=0){return(Nn[t[n+0]]+Nn[t[n+1]]+Nn[t[n+2]]+Nn[t[n+3]]+"-"+Nn[t[n+4]]+Nn[t[n+5]]+"-"+Nn[t[n+6]]+Nn[t[n+7]]+"-"+Nn[t[n+8]]+Nn[t[n+9]]+"-"+Nn[t[n+10]]+Nn[t[n+11]]+Nn[t[n+12]]+Nn[t[n+13]]+Nn[t[n+14]]+Nn[t[n+15]]).toLowerCase()}let Qp;const yM=new Uint8Array(16);function vM(){if(!Qp){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Qp=crypto.getRandomValues.bind(crypto)}return Qp(yM)}const bM=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),pN={randomUUID:bM};function jM(t,n,r){var s;t=t||{};const i=t.random??((s=t.rng)==null?void 0:s.call(t))??vM();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,xM(i)}function wM(t,n,r){return pN.randomUUID&&!t?pN.randomUUID():jM(t)}class NM extends Error{constructor(n,r,i,s,a){super(n),this.name="Base44Error",this.status=r,this.code=i,this.data=s,this.originalError=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Tc({baseURL:t,headers:n={},token:r,interceptResponses:i=!0,onError:s}){const a=sn.create({baseURL:t,headers:{"Content-Type":"application/json",Accept:"application/json",...n}});return r&&(a.defaults.headers.common.Authorization=`Bearer ${r}`),a.interceptors.request.use(o=>{typeof window<"u"&&o.headers.set("X-Origin-URL",window.location.href);const c=wM();if(o.requestId=c,mN)try{window.parent.postMessage({type:"api-request-start",requestId:c,data:{url:t+o.url,method:o.method,body:o.data instanceof FormData?"[FormData object]":o.data}},"*")}catch{}return o}),i&&a.interceptors.response.use(o=>{var c;const d=(c=o.config)===null||c===void 0?void 0:c.requestId;try{mN&&d&&window.parent.postMessage({type:"api-request-end",requestId:d,data:{statusCode:o.status,response:o.data}},"*")}catch{}return o.data},o=>{var c,d,h,f,m,p,g,b;const j=((d=(c=o.response)===null||c===void 0?void 0:c.data)===null||d===void 0?void 0:d.message)||((f=(h=o.response)===null||h===void 0?void 0:h.data)===null||f===void 0?void 0:f.detail)||o.message,y=new NM(j,(m=o.response)===null||m===void 0?void 0:m.status,(g=(p=o.response)===null||p===void 0?void 0:p.data)===null||g===void 0?void 0:g.code,(b=o.response)===null||b===void 0?void 0:b.data,o);return s==null||s(y),Promise.reject(y)}),a}function gN(t){const{axios:n,appId:r,getSocket:i}=t;return new Proxy({},{get(s,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return _M(n,r,a,i)}})}function kM(t){var n;try{const r=JSON.parse(t);return{type:r.type,data:r.data,id:r.id||((n=r.data)===null||n===void 0?void 0:n.id),timestamp:r.timestamp||new Date().toISOString()}}catch(r){return console.warn("[Base44 SDK] Failed to parse realtime message:",r),null}}function _M(t,n,r,i){const s=`/apps/${n}/entities/${r}`;return{async list(a,o,c,d){const h={};return a&&(h.sort=a),o&&(h.limit=o),c&&(h.skip=c),d&&(h.fields=Array.isArray(d)?d.join(","):d),t.get(s,{params:h})},async filter(a,o,c,d,h){const f={q:JSON.stringify(a)};return o&&(f.sort=o),c&&(f.limit=c),d&&(f.skip=d),h&&(f.fields=Array.isArray(h)?h.join(","):h),t.get(s,{params:f})},async get(a){return t.get(`${s}/${a}`)},async create(a){return t.post(s,a)},async update(a,o){return t.put(`${s}/${a}`,o)},async delete(a){return t.delete(`${s}/${a}`)},async deleteMany(a){return t.delete(s,{data:a})},async bulkCreate(a){return t.post(`${s}/bulk`,a)},async updateMany(a,o){return t.patch(`${s}/update-many`,{query:a,data:o})},async bulkUpdate(a){return t.put(`${s}/bulk`,a)},async importEntities(a){const o=new FormData;return o.append("file",a,a.name),t.post(`${s}/import`,o,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(a){const o=`entities:${n}:${r}`;return i().subscribeToRoom(o,{update_model:h=>{const f=kM(h.data);if(f)try{a(f)}catch(m){console.error("[Base44 SDK] Subscription callback error:",m)}}})}}}function SM(t,n){return{async call(r,i,s){if(!(r!=null&&r.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(i!=null&&i.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:a,queryParams:o,...c}=s??{},d={...c,...a&&{path_params:a},...o&&{query_params:o}};return await t.post(`/apps/${n}/integrations/custom/${r}/${i}`,d)}}}function xN(t,n){const r=SM(t,n);return new Proxy({},{get(i,s){if(!(typeof s!="string"||s==="then"||s.startsWith("_")))return s==="custom"?r:new Proxy({},{get(a,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return async c=>{if(typeof c=="string")throw new Error(`Integration ${o} must receive an object with named parameters, received: ${c}`);let d,h;return c instanceof FormData||c&&Object.values(c).some(f=>f instanceof File)?(d=new FormData,Object.keys(c).forEach(f=>{c[f]instanceof File?d.append(f,c[f],c[f].name):typeof c[f]=="object"&&c[f]!==null?d.append(f,JSON.stringify(c[f])):d.append(f,c[f])}),h="multipart/form-data"):(d=c,h="application/json"),s==="Core"?t.post(`/apps/${n}/integration-endpoints/Core/${o}`,d||c,{headers:{"Content-Type":h}}):t.post(`/apps/${n}/integration-endpoints/installable/${s}/integration-endpoints/${o}`,d||c,{headers:{"Content-Type":h}})}}})}})}function AM(t,n,r,i){return{async me(){return t.get(`/apps/${r}/entities/User/me`)},async updateMe(s){return t.put(`/apps/${r}/entities/User/me`,s)},redirectToLogin(s){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const a=s?new URL(s,window.location.origin).toString():window.location.href,o=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(a)}`;window.location.href=o},loginWithProvider(s,a="/"){const o=new URL(a,window.location.origin).toString(),c=`app_id=${r}&from_url=${encodeURIComponent(o)}`;let d;s==="sso"?d=`/apps/${r}/auth/sso/login`:d=`/apps/auth${s==="google"?"":`/${s}`}/login`;const h=`${i.appBaseUrl}/api${d}?${c}`;window.location.href=h},logout(s){if(delete t.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(c){console.error("Failed to remove token from localStorage:",c)}const a=s||window.location.href,o=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(a)}`;window.location.href=o}},setToken(s,a=!0){if(s&&(t.defaults.headers.common.Authorization=`Bearer ${s}`,n.defaults.headers.common.Authorization=`Bearer ${s}`,a&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",s),window.localStorage.setItem("token",s)}catch(o){console.error("Failed to save token to localStorage:",o)}},async loginViaEmailPassword(s,a,o){var c;try{const d=await t.post(`/apps/${r}/auth/login`,{email:s,password:a,...o&&{turnstile_token:o}}),{access_token:h,user:f}=d;return h&&this.setToken(h),{access_token:h,user:f}}catch(d){throw((c=d.response)===null||c===void 0?void 0:c.status)===401&&await this.logout(),d}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(s,a){return t.post(`/apps/${r}/users/invite-user`,{user_email:s,role:a})},register(s){return t.post(`/apps/${r}/auth/register`,s)},verifyOtp({email:s,otpCode:a}){return t.post(`/apps/${r}/auth/verify-otp`,{email:s,otp_code:a})},resendOtp(s){return t.post(`/apps/${r}/auth/resend-otp`,{email:s})},resetPasswordRequest(s){return t.post(`/apps/${r}/auth/reset-password-request`,{email:s})},resetPassword({resetToken:s,newPassword:a}){return t.post(`/apps/${r}/auth/reset-password`,{reset_token:s,new_password:a})},changePassword({userId:s,currentPassword:a,newPassword:o}){return t.post(`/apps/${r}/auth/change-password`,{user_id:s,current_password:a,new_password:o})}}}function CM(t,n,r){return{async getAccessToken(i){const s=`/apps/${n}/auth/sso/accesstoken/${i}`,a={};return r&&(a["on-behalf-of"]=`Bearer ${r}`),t.get(s,{headers:a})}}}function EM(t,n){return{async getAccessToken(r){if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");return(await t.get(`/apps/${n}/external-auth/tokens/${r}`)).access_token},async getConnection(r){var i;if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");const a=await t.get(`/apps/${n}/external-auth/tokens/${r}`);return{accessToken:a.access_token,connectionConfig:(i=a.connection_config)!==null&&i!==void 0?i:null}}}}function TM(t,n){return{async getCurrentAppUserAccessToken(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");return(await t.get(`/apps/${n}/app-user-auth/connectors/${r}/token`)).access_token},async connectAppUser(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");return(await t.post(`/apps/${n}/app-user-auth/connectors/${r}/initiate`)).redirect_url},async disconnectAppUser(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");await t.delete(`/apps/${n}/app-user-auth/connectors/${r}`)}}}function Vh(t={}){const{storageKey:n="base44_access_token",paramName:r="access_token",saveToStorage:i=!0,removeFromUrl:s=!0}=t;let a=null;if(typeof window<"u"&&window.location)try{const o=new URLSearchParams(window.location.search);if(a=o.get(r),a){if(i&&PM(a,{storageKey:n}),s){o.delete(r);const c=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}return a}}catch(o){console.error("Error retrieving token from URL:",o)}if(typeof window<"u"&&window.localStorage)try{return a=window.localStorage.getItem(n),a}catch(o){console.error("Error retrieving token from local storage:",o)}return null}function PM(t,n){const{storageKey:r="base44_access_token"}=n;if(typeof window>"u"||!window.localStorage||!t)return!1;try{return window.localStorage.setItem(r,t),window.localStorage.setItem("token",t),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function yN(t,n,r){const i=(a,o)=>a?`${String(a).replace(/\/$/,"")}${o}`:o,s=a=>{const o=new Headers;if(r!=null&&r.getAuthHeaders){const c=r.getAuthHeaders();Object.entries(c).forEach(([d,h])=>{h!=null&&o.set(d,String(h))})}return a&&new Headers(a).forEach((c,d)=>{o.set(d,c)}),o};return{async invoke(a,o){if(typeof o=="string")throw new Error(`Function ${a} must receive an object with named parameters, received: ${o}`);let c,d;return o instanceof FormData||o&&Object.values(o).some(h=>h instanceof File)?(c=new FormData,Object.keys(o).forEach(h=>{o[h]instanceof File?c.append(h,o[h],o[h].name):typeof o[h]=="object"&&o[h]!==null?c.append(h,JSON.stringify(o[h])):c.append(h,o[h])}),d="multipart/form-data"):(c=o,d="application/json"),t.post(`/apps/${n}/functions/${a}`,c||o,{headers:{"Content-Type":d}})},async fetch(a,o={}){const d=`/functions${a.startsWith("/")?a:`/${a}`}`,h=s(o.headers),f={...o,headers:h};return await fetch(i(r==null?void 0:r.baseURL,d),f)}}}function vN({axios:t,getSocket:n,appId:r,serverUrl:i,token:s}){const a=`/apps/${r}/agents`,o={},c=()=>t.get(`${a}/conversations`),d=b=>t.get(`${a}/conversations/${b}`);return{getConversations:c,getConversation:d,listConversations:b=>t.get(`${a}/conversations`,{params:b}),createConversation:b=>t.post(`${a}/conversations`,b),addMessage:async(b,j)=>t.post(`${a}/conversations/v2/${b.id}/messages`,j),subscribeToConversation:(b,j)=>{const y=`/agent-conversations/${b}`,x=n(),N=d(b).then(w=>(o[b]=w,w));return x.subscribeToRoom(y,{connect:()=>{},update_model:async({data:w})=>{const k=JSON.parse(w);if(k._message){await N;const A=k._message,S=o[b];if(S){const E=S.messages||[],C=E.findIndex(D=>D.id===A.id),B=C!==-1?E.map((D,F)=>F===C?A:D):[...E,A];o[b]={...S,messages:B},j==null||j(o[b])}}}})},getWhatsAppConnectURL:b=>{const j=`${i}/api/apps/${r}/agents/${encodeURIComponent(b)}/whatsapp`,y=s??Vh();return y?`${j}?token=${y}`:j}}}function bN(t,n){const r=`/app-logs/${n}`;return{async logUserInApp(i){await t.post(`${r}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await t.get(r,{params:i})},async getStats(i={}){return await t.get(`${r}/stats`,{params:i})}}}function OM(t,n){return{async inviteUser(r,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await t.post(`/apps/${n}/runtime/users/invite-user`,{user_email:r,role:i})}}}const vi=Object.create(null);vi.open="0";vi.close="1";vi.ping="2";vi.pong="3";vi.message="4";vi.upgrade="5";vi.noop="6";const _h=Object.create(null);Object.keys(vi).forEach(t=>{_h[vi[t]]=t});const J0={type:"error",data:"parser error"},WC=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",KC=typeof ArrayBuffer=="function",GC=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,dv=({type:t,data:n},r,i)=>WC&&n instanceof Blob?r?i(n):jN(n,i):KC&&(n instanceof ArrayBuffer||GC(n))?r?i(n):jN(new Blob([n]),i):i(vi[t]+(n||"")),jN=(t,n)=>{const r=new FileReader;return r.onload=function(){const i=r.result.split(",")[1];n("b"+(i||""))},r.readAsDataURL(t)};function wN(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Yp;function DM(t,n){if(WC&&t.data instanceof Blob)return t.data.arrayBuffer().then(wN).then(n);if(KC&&(t.data instanceof ArrayBuffer||GC(t.data)))return n(wN(t.data));dv(t,!1,r=>{Yp||(Yp=new TextEncoder),n(Yp.encode(r))})}const NN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<NN.length;t++)Pc[NN.charCodeAt(t)]=t;const IM=t=>{let n=t.length*.75,r=t.length,i,s=0,a,o,c,d;t[t.length-1]==="="&&(n--,t[t.length-2]==="="&&n--);const h=new ArrayBuffer(n),f=new Uint8Array(h);for(i=0;i<r;i+=4)a=Pc[t.charCodeAt(i)],o=Pc[t.charCodeAt(i+1)],c=Pc[t.charCodeAt(i+2)],d=Pc[t.charCodeAt(i+3)],f[s++]=a<<2|o>>4,f[s++]=(o&15)<<4|c>>2,f[s++]=(c&3)<<6|d&63;return h},RM=typeof ArrayBuffer=="function",hv=(t,n)=>{if(typeof t!="string")return{type:"message",data:QC(t,n)};const r=t.charAt(0);return r==="b"?{type:"message",data:FM(t.substring(1),n)}:_h[r]?t.length>1?{type:_h[r],data:t.substring(1)}:{type:_h[r]}:J0},FM=(t,n)=>{if(RM){const r=IM(t);return QC(r,n)}else return{base64:!0,data:t}},QC=(t,n)=>{switch(n){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},YC="",MM=(t,n)=>{const r=t.length,i=new Array(r);let s=0;t.forEach((a,o)=>{dv(a,!1,c=>{i[o]=c,++s===r&&n(i.join(YC))})})},LM=(t,n)=>{const r=t.split(YC),i=[];for(let s=0;s<r.length;s++){const a=hv(r[s],n);if(i.push(a),a.type==="error")break}return i};function BM(){return new TransformStream({transform(t,n){DM(t,r=>{const i=r.length;let s;if(i<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,i);else if(i<65536){s=new Uint8Array(3);const a=new DataView(s.buffer);a.setUint8(0,126),a.setUint16(1,i)}else{s=new Uint8Array(9);const a=new DataView(s.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(i))}t.data&&typeof t.data!="string"&&(s[0]|=128),n.enqueue(s),n.enqueue(r)})}})}let Xp;function th(t){return t.reduce((n,r)=>n+r.length,0)}function nh(t,n){if(t[0].length===n)return t.shift();const r=new Uint8Array(n);let i=0;for(let s=0;s<n;s++)r[s]=t[0][i++],i===t[0].length&&(t.shift(),i=0);return t.length&&i<t[0].length&&(t[0]=t[0].slice(i)),r}function zM(t,n){Xp||(Xp=new TextDecoder);const r=[];let i=0,s=-1,a=!1;return new TransformStream({transform(o,c){for(r.push(o);;){if(i===0){if(th(r)<1)break;const d=nh(r,1);a=(d[0]&128)===128,s=d[0]&127,s<126?i=3:s===126?i=1:i=2}else if(i===1){if(th(r)<2)break;const d=nh(r,2);s=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),i=3}else if(i===2){if(th(r)<8)break;const d=nh(r,8),h=new DataView(d.buffer,d.byteOffset,d.length),f=h.getUint32(0);if(f>Math.pow(2,21)-1){c.enqueue(J0);break}s=f*Math.pow(2,32)+h.getUint32(4),i=3}else{if(th(r)<s)break;const d=nh(r,s);c.enqueue(hv(a?d:Xp.decode(d),n)),i=0}if(s===0||s>t){c.enqueue(J0);break}}}})}const XC=4;function ln(t){if(t)return qM(t)}function qM(t){for(var n in ln.prototype)t[n]=ln.prototype[n];return t}ln.prototype.on=ln.prototype.addEventListener=function(t,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(n),this};ln.prototype.once=function(t,n){function r(){this.off(t,r),n.apply(this,arguments)}return r.fn=n,this.on(t,r),this};ln.prototype.off=ln.prototype.removeListener=ln.prototype.removeAllListeners=ln.prototype.removeEventListener=function(t,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var i,s=0;s<r.length;s++)if(i=r[s],i===n||i.fn===n){r.splice(s,1);break}return r.length===0&&delete this._callbacks["$"+t],this};ln.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),r=this._callbacks["$"+t],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,s=r.length;i<s;++i)r[i].apply(this,n)}return this};ln.prototype.emitReserved=ln.prototype.emit;ln.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};ln.prototype.hasListeners=function(t){return!!this.listeners(t).length};const gf=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,r)=>r(n,0),Ar=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),VM="arraybuffer";function JC(t,...n){return n.reduce((r,i)=>(t.hasOwnProperty(i)&&(r[i]=t[i]),r),{})}const UM=Ar.setTimeout,$M=Ar.clearTimeout;function xf(t,n){n.useNativeTimers?(t.setTimeoutFn=UM.bind(Ar),t.clearTimeoutFn=$M.bind(Ar)):(t.setTimeoutFn=Ar.setTimeout.bind(Ar),t.clearTimeoutFn=Ar.clearTimeout.bind(Ar))}const HM=1.33;function WM(t){return typeof t=="string"?KM(t):Math.ceil((t.byteLength||t.size)*HM)}function KM(t){let n=0,r=0;for(let i=0,s=t.length;i<s;i++)n=t.charCodeAt(i),n<128?r+=1:n<2048?r+=2:n<55296||n>=57344?r+=3:(i++,r+=4);return r}function ZC(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function GM(t){let n="";for(let r in t)t.hasOwnProperty(r)&&(n.length&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return n}function QM(t){let n={},r=t.split("&");for(let i=0,s=r.length;i<s;i++){let a=r[i].split("=");n[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return n}class YM extends Error{constructor(n,r,i){super(n),this.description=r,this.context=i,this.type="TransportError"}}class fv extends ln{constructor(n){super(),this.writable=!1,xf(this,n),this.opts=n,this.query=n.query,this.socket=n.socket,this.supportsBinary=!n.forceBase64}onError(n,r,i){return super.emitReserved("error",new YM(n,r,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const r=hv(n,this.socket.binaryType);this.onPacket(r)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,r={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const r=GM(n);return r.length?"?"+r:""}}class XM extends fv{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(n){this.readyState="pausing";const r=()=>{this.readyState="paused",n()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||r()})),this.writable||(i++,this.once("drain",function(){--i||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){const r=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};LM(n,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,MM(n,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=ZC()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(n,r)}}let e4=!1;try{e4=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const JM=e4;function ZM(){}class eL extends XM{constructor(n){if(super(n),typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||i!==n.port}}doWrite(n,r){const i=this.request({method:"POST",data:n});i.on("success",r),i.on("error",(s,a)=>{this.onError("xhr post error",s,a)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(r,i)=>{this.onError("xhr poll error",r,i)}),this.pollXhr=n}}class pi extends ln{constructor(n,r,i){super(),this.createRequest=n,xf(this,i),this._opts=i,this._method=i.method||"GET",this._uri=r,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var n;const r=JC(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(r);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let s in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(s)&&i.setRequestHeader(s,this._opts.extraHeaders[s])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(n=this._opts.cookieJar)===null||n===void 0||n.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var s;i.readyState===3&&((s=this._opts.cookieJar)===null||s===void 0||s.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(s){this.setTimeoutFn(()=>{this._onError(s)},0);return}typeof document<"u"&&(this._index=pi.requestsCount++,pi.requests[this._index]=this)}_onError(n){this.emitReserved("error",n,this._xhr),this._cleanup(!0)}_cleanup(n){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=ZM,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete pi.requests[this._index],this._xhr=null}}_onLoad(){const n=this._xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}pi.requestsCount=0;pi.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",kN);else if(typeof addEventListener=="function"){const t="onpagehide"in Ar?"pagehide":"unload";addEventListener(t,kN,!1)}}function kN(){for(let t in pi.requests)pi.requests.hasOwnProperty(t)&&pi.requests[t].abort()}const tL=(function(){const t=t4({xdomain:!1});return t&&t.responseType!==null})();class nL extends eL{constructor(n){super(n);const r=n&&n.forceBase64;this.supportsBinary=tL&&!r}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new pi(t4,this.uri(),n)}}function t4(t){const n=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||JM))return new XMLHttpRequest}catch{}if(!n)try{return new Ar[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const n4=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class rL extends fv{get name(){return"websocket"}doOpen(){const n=this.uri(),r=this.opts.protocols,i=n4?{}:JC(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(n,r,i)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const i=n[r],s=r===n.length-1;dv(i,this.supportsBinary,a=>{try{this.doWrite(i,a)}catch{}s&&gf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=ZC()),this.supportsBinary||(r.b64=1),this.createUri(n,r)}}const Jp=Ar.WebSocket||Ar.MozWebSocket;class iL extends rL{createSocket(n,r,i){return n4?new Jp(n,r,i):r?new Jp(n,r):new Jp(n)}doWrite(n,r){this.ws.send(r)}}class sL extends fv{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{const r=zM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=n.readable.pipeThrough(r).getReader(),s=BM();s.readable.pipeTo(n.writable),this._writer=s.writable.getWriter();const a=()=>{i.read().then(({done:c,value:d})=>{c||(this.onPacket(d),a())}).catch(c=>{})};a();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const i=n[r],s=r===n.length-1;this._writer.write(i).then(()=>{s&&gf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const aL={websocket:iL,webtransport:sL,polling:nL},oL=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,lL=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Z0(t){if(t.length>8e3)throw"URI too long";const n=t,r=t.indexOf("["),i=t.indexOf("]");r!=-1&&i!=-1&&(t=t.substring(0,r)+t.substring(r,i).replace(/:/g,";")+t.substring(i,t.length));let s=oL.exec(t||""),a={},o=14;for(;o--;)a[lL[o]]=s[o]||"";return r!=-1&&i!=-1&&(a.source=n,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=cL(a,a.path),a.queryKey=uL(a,a.query),a}function cL(t,n){const r=/\/{2,9}/g,i=n.replace(r,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&i.splice(0,1),n.slice(-1)=="/"&&i.splice(i.length-1,1),i}function uL(t,n){const r={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,s,a){s&&(r[s]=a)}),r}const ey=typeof addEventListener=="function"&&typeof removeEventListener=="function",Sh=[];ey&&addEventListener("offline",()=>{Sh.forEach(t=>t())},!1);class Us extends ln{constructor(n,r){if(super(),this.binaryType=VM,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,n&&typeof n=="object"&&(r=n,n=null),n){const i=Z0(n);r.hostname=i.host,r.secure=i.protocol==="https"||i.protocol==="wss",r.port=i.port,i.query&&(r.query=i.query)}else r.host&&(r.hostname=Z0(r.host).host);xf(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(i=>{const s=i.prototype.name;this.transports.push(s),this._transportsByName[s]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=QM(this.opts.query)),ey&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Sh.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const r=Object.assign({},this.opts.query);r.EIO=XC,r.transport=n,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new this._transportsByName[n](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const n=this.opts.rememberUpgrade&&Us.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(n);r.open(),this.setTransport(r)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Us.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=n.data,this._onError(r);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this._pingInterval=n.pingInterval,this._pingTimeout=n.pingTimeout,this._maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const n=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+n,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},n),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const n=this._getWritablePackets();this.transport.send(n),this._prevBufferLen=n.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i<this.writeBuffer.length;i++){const s=this.writeBuffer[i].data;if(s&&(r+=WM(s)),i>0&&r>this._maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const n=Date.now()>this._pingTimeoutTime;return n&&(this._pingTimeoutTime=0,gf(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),n}write(n,r,i){return this._sendPacket("message",n,r,i),this}send(n,r,i){return this._sendPacket("message",n,r,i),this}_sendPacket(n,r,i,s){if(typeof r=="function"&&(s=r,r=void 0),typeof i=="function"&&(s=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const a={type:n,data:r,options:i};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),s&&this.once("flush",s),this.flush()}close(){const n=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),n()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():n()}):this.upgrading?i():n()),this}_onError(n){if(Us.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",n),this._onClose("transport error",n)}_onClose(n,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ey&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=Sh.indexOf(this._offlineEventListener);i!==-1&&Sh.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,r),this.writeBuffer=[],this._prevBufferLen=0}}}Us.protocol=XC;class dL extends Us{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n<this._upgrades.length;n++)this._probe(this._upgrades[n])}_probe(n){let r=this.createTransport(n),i=!1;Us.priorWebsocketSuccess=!1;const s=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",m=>{if(!i)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Us.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function a(){i||(i=!0,f(),r.close(),r=null)}const o=m=>{const p=new Error("probe error: "+m);p.transport=r.name,a(),this.emitReserved("upgradeError",p)};function c(){o("transport closed")}function d(){o("socket closed")}function h(m){r&&m.name!==r.name&&a()}const f=()=>{r.removeListener("open",s),r.removeListener("error",o),r.removeListener("close",c),this.off("close",d),this.off("upgrading",h)};r.once("open",s),r.once("error",o),r.once("close",c),this.once("close",d),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{i||r.open()},200):r.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){const r=[];for(let i=0;i<n.length;i++)~this.transports.indexOf(n[i])&&r.push(n[i]);return r}}let hL=class extends dL{constructor(n,r={}){const i=typeof n=="object"?n:r;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(s=>aL[s]).filter(s=>!!s)),super(n,i)}};function fL(t,n="",r){let i=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),i=Z0(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const a=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+a+":"+i.port+n,i.href=i.protocol+"://"+a+(r&&r.port===i.port?"":":"+i.port),i}const mL=typeof ArrayBuffer=="function",pL=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,r4=Object.prototype.toString,gL=typeof Blob=="function"||typeof Blob<"u"&&r4.call(Blob)==="[object BlobConstructor]",xL=typeof File=="function"||typeof File<"u"&&r4.call(File)==="[object FileConstructor]";function mv(t){return mL&&(t instanceof ArrayBuffer||pL(t))||gL&&t instanceof Blob||xL&&t instanceof File}function Ah(t,n){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,i=t.length;r<i;r++)if(Ah(t[r]))return!0;return!1}if(mv(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Ah(t.toJSON(),!0);for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Ah(t[r]))return!0;return!1}function yL(t){const n=[],r=t.data,i=t;return i.data=ty(r,n),i.attachments=n.length,{packet:i,buffers:n}}function ty(t,n){if(!t)return t;if(mv(t)){const r={_placeholder:!0,num:n.length};return n.push(t),r}else if(Array.isArray(t)){const r=new Array(t.length);for(let i=0;i<t.length;i++)r[i]=ty(t[i],n);return r}else if(typeof t=="object"&&!(t instanceof Date)){const r={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=ty(t[i],n));return r}return t}function vL(t,n){return t.data=ny(t.data,n),delete t.attachments,t}function ny(t,n){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<n.length)return n[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=ny(t[r],n);else if(typeof t=="object")for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=ny(t[r],n));return t}const bL=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],jL=5;var mt;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(mt||(mt={}));class wL{constructor(n){this.replacer=n}encode(n){return(n.type===mt.EVENT||n.type===mt.ACK)&&Ah(n)?this.encodeAsBinary({type:n.type===mt.EVENT?mt.BINARY_EVENT:mt.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let r=""+n.type;return(n.type===mt.BINARY_EVENT||n.type===mt.BINARY_ACK)&&(r+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(r+=n.nsp+","),n.id!=null&&(r+=n.id),n.data!=null&&(r+=JSON.stringify(n.data,this.replacer)),r}encodeAsBinary(n){const r=yL(n),i=this.encodeAsString(r.packet),s=r.buffers;return s.unshift(i),s}}function _N(t){return Object.prototype.toString.call(t)==="[object Object]"}class pv extends ln{constructor(n){super(),this.reviver=n}add(n){let r;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(n);const i=r.type===mt.BINARY_EVENT;i||r.type===mt.BINARY_ACK?(r.type=i?mt.EVENT:mt.ACK,this.reconstructor=new NL(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(mv(n)||n.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(n),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+n)}decodeString(n){let r=0;const i={type:Number(n.charAt(0))};if(mt[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===mt.BINARY_EVENT||i.type===mt.BINARY_ACK){const a=r+1;for(;n.charAt(++r)!=="-"&&r!=n.length;);const o=n.substring(a,r);if(o!=Number(o)||n.charAt(r)!=="-")throw new Error("Illegal attachments");i.attachments=Number(o)}if(n.charAt(r+1)==="/"){const a=r+1;for(;++r&&!(n.charAt(r)===","||r===n.length););i.nsp=n.substring(a,r)}else i.nsp="/";const s=n.charAt(r+1);if(s!==""&&Number(s)==s){const a=r+1;for(;++r;){const o=n.charAt(r);if(o==null||Number(o)!=o){--r;break}if(r===n.length)break}i.id=Number(n.substring(a,r+1))}if(n.charAt(++r)){const a=this.tryParse(n.substr(r));if(pv.isPayloadValid(i.type,a))i.data=a;else throw new Error("invalid payload")}return i}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,r){switch(n){case mt.CONNECT:return _N(r);case mt.DISCONNECT:return r===void 0;case mt.CONNECT_ERROR:return typeof r=="string"||_N(r);case mt.EVENT:case mt.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&bL.indexOf(r[0])===-1);case mt.ACK:case mt.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class NL{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const r=vL(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const kL=Object.freeze(Object.defineProperty({__proto__:null,Decoder:pv,Encoder:wL,get PacketType(){return mt},protocol:jL},Symbol.toStringTag,{value:"Module"}));function Ur(t,n,r){return t.on(n,r),function(){t.off(n,r)}}const _L=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class i4 extends ln{constructor(n,r,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=n,this.nsp=r,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[Ur(n,"open",this.onopen.bind(this)),Ur(n,"packet",this.onpacket.bind(this)),Ur(n,"error",this.onerror.bind(this)),Ur(n,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...r){var i,s,a;if(_L.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(r.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const o={type:mt.EVENT,data:r};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const f=this.ids++,m=r.pop();this._registerAckCallback(f,m),o.id=f}const c=(s=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||s===void 0?void 0:s.writable,d=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!c||(d?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(n,r){var i;const s=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(s===void 0){this.acks[n]=r;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===n&&this.sendBuffer.splice(c,1);r.call(this,new Error("operation has timed out"))},s),o=(...c)=>{this.io.clearTimeoutFn(a),r.apply(this,c)};o.withError=!0,this.acks[n]=o}emitWithAck(n,...r){return new Promise((i,s)=>{const a=(o,c)=>o?s(o):i(c);a.withError=!0,r.push(a),this.emit(n,...r)})}_addToQueue(n){let r;typeof n[n.length-1]=="function"&&(r=n.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((s,...a)=>i!==this._queue[0]?void 0:(s!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(s)):(this._queue.shift(),r&&r(null,...a)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!n||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:mt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(i=>String(i.id)===n)){const i=this.acks[n];delete this.acks[n],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case mt.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case mt.EVENT:case mt.BINARY_EVENT:this.onevent(n);break;case mt.ACK:case mt.BINARY_ACK:this.onack(n);break;case mt.DISCONNECT:this.ondisconnect();break;case mt.CONNECT_ERROR:this.destroy();const i=new Error(n.data.message);i.data=n.data.data,this.emitReserved("connect_error",i);break}}onevent(n){const r=n.data||[];n.id!=null&&r.push(this.ack(n.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const i of r)i.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const r=this;let i=!1;return function(...s){i||(i=!0,r.packet({type:mt.ACK,id:n,data:s}))}}onack(n){const r=this.acks[n.id];typeof r=="function"&&(delete this.acks[n.id],r.withError&&n.data.unshift(null),r.apply(this,n.data))}onconnect(n,r){this.id=n,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:mt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const r=this._anyListeners;for(let i=0;i<r.length;i++)if(n===r[i])return r.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const r=this._anyOutgoingListeners;for(let i=0;i<r.length;i++)if(n===r[i])return r.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const i of r)i.apply(this,n.data)}}}function _l(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}_l.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*t);t=(Math.floor(n*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};_l.prototype.reset=function(){this.attempts=0};_l.prototype.setMin=function(t){this.ms=t};_l.prototype.setMax=function(t){this.max=t};_l.prototype.setJitter=function(t){this.jitter=t};class ry extends ln{constructor(n,r){var i;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(r=n,n=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,xf(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((i=r.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new _l({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=n;const s=r.parser||kL;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var r;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(r=this.backoff)===null||r===void 0||r.setMin(n),this)}randomizationFactor(n){var r;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(r=this.backoff)===null||r===void 0||r.setJitter(n),this)}reconnectionDelayMax(n){var r;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(r=this.backoff)===null||r===void 0||r.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new hL(this.uri,this.opts);const r=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const s=Ur(r,"open",function(){i.onopen(),n&&n()}),a=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),n?n(c):this.maybeReconnectOnOpen()},o=Ur(r,"error",a);if(this._timeout!==!1){const c=this._timeout,d=this.setTimeoutFn(()=>{s(),a(new Error("timeout")),r.close()},c);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(s),this.subs.push(o),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(Ur(n,"ping",this.onping.bind(this)),Ur(n,"data",this.ondata.bind(this)),Ur(n,"error",this.onerror.bind(this)),Ur(n,"close",this.onclose.bind(this)),Ur(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(r){this.onclose("parse error",r)}}ondecoded(n){gf(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,r){let i=this.nsps[n];return i?this._autoConnect&&!i.active&&i.connect():(i=new i4(this,n,r),this.nsps[n]=i),i}_destroy(n){const r=Object.keys(this.nsps);for(const i of r)if(this.nsps[i].active)return;this._close()}_packet(n){const r=this.encoder.encode(n);for(let i=0;i<r.length;i++)this.engine.write(r[i],n.options)}cleanup(){this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,r){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(s=>{s?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",s)):n.onreconnect()}))},r);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const vc={};function Ch(t,n){typeof t=="object"&&(n=t,t=void 0),n=n||{};const r=fL(t,n.path||"/socket.io"),i=r.source,s=r.id,a=r.path,o=vc[s]&&a in vc[s].nsps,c=n.forceNew||n["force new connection"]||n.multiplex===!1||o;let d;return c?d=new ry(i,n):(vc[s]||(vc[s]=new ry(i,n)),d=vc[s]),r.query&&!n.query&&(n.query=r.queryKey),d.socket(r.path,n)}Object.assign(Ch,{Manager:ry,Socket:i4,io:Ch,connect:Ch});function SN(t,n){var r;const i=Ch(t.serverUrl,{path:t.mountPath,transports:t.transports,query:{app_id:t.appId,token:(r=t.token)!==null&&r!==void 0?r:Vh()}});return i.on("connect",async()=>{var s;return console.log("connect",i.id),(s=n.connect)===null||s===void 0?void 0:s.call(n)}),i.on("update_model",async s=>{var a;return(a=n.update_model)===null||a===void 0?void 0:a.call(n,s)}),i.on("error",async s=>{var a;return(a=n.error)===null||a===void 0?void 0:a.call(n,s)}),i.on("connect_error",async s=>{var a;return console.error("connect_error",s),(a=n.error)===null||a===void 0?void 0:a.call(n,s)}),i}function SL({config:t}){let n={...t};const r={},i={connect:async()=>{const g=[];Object.keys(r).forEach(b=>{d(b);const j=m(b);j==null||j.forEach(({connect:y})=>{const x=async()=>y==null?void 0:y();g.push(x())})}),await Promise.all(g)},update_model:async g=>{const j=m(g.room).map(y=>{var x;return(x=y.update_model)===null||x===void 0?void 0:x.call(y,g)});await Promise.all(j)},error:async g=>{console.error("error",g);const b=Object.values(r).flat().map(j=>{var y;return(y=j.error)===null||y===void 0?void 0:y.call(j,g)});await Promise.all(b)}};let s=SN(t,i);function a(){o()}function o(){s&&s.disconnect()}function c(g){a(),n={...n,...g},s=SN(n,i)}function d(g){s.emit("join",g)}function h(g){s.emit("leave",g)}async function f(g,b){var j;const y=JSON.stringify(b);return(j=i.update_model)===null||j===void 0?void 0:j.call(i,{room:g,data:y})}function m(g){return r[g]}return{socket:s,subscribeToRoom:(g,b)=>(r[g]||(d(g),r[g]=[]),r[g].push(b),()=>{var j,y;r[g]=(y=(j=r[g])===null||j===void 0?void 0:j.filter(x=>x!==b))!==null&&y!==void 0?y:[],r[g].length===0&&h(g)}),updateConfig:c,updateModel:f,disconnect:o}}const bc=typeof window<"u"?window:{base44SharedInstances:{}};function AL(t,n){return bc.base44SharedInstances||(bc.base44SharedInstances={}),bc.base44SharedInstances[t]||(bc.base44SharedInstances[t]={instance:n()}),bc.base44SharedInstances[t].instance}const CL="__user_heartbeat_event__",EL="__initialization_event__",TL="__session_duration_event__",AN="analytics-enable",CN="base44_analytics_session_id",PL={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},OL="analytics",Dt=AL(OL,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...PL,...zL()}})),DL=({axiosClient:t,serverUrl:n,appId:r,userAuthModule:i})=>{var s;const{maxQueueSize:a,throttleTime:o,batchSize:c}=Dt.config;if(!(!((s=Dt.config)===null||s===void 0)&&s.enabled))return{track:()=>{},cleanup:()=>{}};let d;const h=`${n}/api/apps/${r}/analytics/track/batch`,f=async w=>{await t.request({method:"POST",url:`/apps/${r}/analytics/track/batch`,data:{events:w}})},m=w=>{try{const k=JSON.stringify({events:w}),A=new Blob([k],{type:"application/json"});return typeof navigator>"u"||k.length>6e4||!navigator.sendBeacon(h,A)}catch{return!1}},p=async(w,k={})=>{if(w.length===0)return;const A=await BL(i),S=w.map(LL(A));try{(!k.isBeacon||!m(S))&&await f(S)}catch{}},g=()=>{TN(p,{throttleTime:o,batchSize:c})},b=w=>{if(Dt.requestsQueue.length>=a)return;const k=ML();Dt.requestsQueue.push({...w,...k}),g()},j=()=>{TN(p,{throttleTime:o,batchSize:c}),d=PN(b),RL()},y=()=>{EN(),d==null||d(),FL(b);const w=Dt.requestsQueue.splice(0);p(w,{isBeacon:!0})},x=()=>{typeof window>"u"||(document.visibilityState==="hidden"?y():document.visibilityState==="visible"&&j())},N=()=>{EN(),d==null||d(),typeof window<"u"&&window.removeEventListener("visibilitychange",x)};return g(),d=PN(b),IL(b),typeof window<"u"&&window.addEventListener("visibilitychange",x),{track:b,cleanup:N}};function EN(){Dt.isProcessing=!1}async function TN(t,n){if(Dt.isProcessing)return;Dt.isProcessing=!0;const{throttleTime:r=1e3,batchSize:i=30}=n??{};for(;Dt.isProcessing&&Dt.requestsQueue.length>0;){const s=Dt.requestsQueue.splice(0,i);s.length&&await t(s),await new Promise(a=>setTimeout(a,r))}Dt.isProcessing=!1}function PN(t){var n;if(Dt.isHeartBeatProcessing||((n=Dt.config.heartBeatInterval)!==null&&n!==void 0?n:0)<10)return()=>{};Dt.isHeartBeatProcessing=!0;const r=setInterval(()=>{t({eventName:CL})},Dt.config.heartBeatInterval);return()=>{clearInterval(r),Dt.isHeartBeatProcessing=!1}}function IL(t){typeof window>"u"||Dt.wasInitializationTracked||(Dt.wasInitializationTracked=!0,t({eventName:EL,properties:{referrer:document==null?void 0:document.referrer}}))}function RL(){typeof window>"u"||Dt.sessionStartTime!==null||(Dt.sessionStartTime=new Date().toISOString())}function FL(t){if(typeof window>"u"||Dt.sessionStartTime===null)return;const n=new Date().getTime()-new Date(Dt.sessionStartTime).getTime();Dt.sessionStartTime=null,t({eventName:TL,properties:{sessionDuration:n}})}function ML(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function LL(t){return n=>({event_name:n.eventName,properties:n.properties,timestamp:n.timestamp,page_url:n.pageUrl,...t})}let Zp=null;async function BL(t){if(!Dt.sessionContext){if(!Zp){const n=qL();Zp=t.me().then(r=>({user_id:r.id,session_id:n})).catch(()=>({user_id:null,session_id:n}))}Dt.sessionContext=await Zp}return Dt.sessionContext}function zL(){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search).get(AN);if(n==null||!n.length)return;const r=new URLSearchParams(window.location.search);r.delete(AN);const i=window.location.pathname+(r.toString()?"?"+r.toString():"");return window.history.replaceState({},"",i),{enabled:n==="true"}}function qL(){if(typeof window>"u")return Gp();try{const t=localStorage.getItem(CN);if(!t){const n=Gp();return localStorage.setItem(CN,n),n}return t}catch{return Gp()}}function VL(t){var n,r;const{serverUrl:i="https://base44.app",appId:s,token:a,serviceToken:o,requiresAuth:c=!1,appBaseUrl:d,options:h,functionsVersion:f,headers:m}=t,p=typeof d=="string"?d:"",g={serverUrl:i,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:s,token:a};let b=null;const j=()=>(b||(b=SL({config:g})),b),y={...m,"X-App-Id":String(s)},x=f?{...y,"Base44-Functions-Version":f}:y,N=Tc({baseURL:`${i}/api`,headers:y,token:a,onError:h==null?void 0:h.onError}),w=Tc({baseURL:`${i}/api`,headers:x,token:a,interceptResponses:!1,onError:h==null?void 0:h.onError}),k=Tc({baseURL:`${i}/api`,headers:y,token:o,onError:h==null?void 0:h.onError}),A=Tc({baseURL:`${i}/api`,headers:x,token:o,interceptResponses:!1}),S=AM(N,w,s,{appBaseUrl:p}),E={entities:gN({axios:N,appId:s,getSocket:j}),integrations:xN(N,s),connectors:TM(N,s),auth:S,functions:yN(w,s,{getAuthHeaders:()=>{const D={},F=a||Vh();return F&&(D.Authorization=`Bearer ${F}`),D},baseURL:(n=w.defaults)===null||n===void 0?void 0:n.baseURL}),agents:vN({axios:N,getSocket:j,appId:s,serverUrl:i,token:a}),appLogs:bN(N,s),users:OM(N,s),analytics:DL({axiosClient:N,serverUrl:i,appId:s,userAuthModule:S}),cleanup:()=>{E.analytics.cleanup(),b&&b.disconnect()}},C={entities:gN({axios:k,appId:s,getSocket:j}),integrations:xN(k,s),sso:CM(k,s,a),connectors:EM(k,s),functions:yN(A,s,{getAuthHeaders:()=>{const D={};return o&&(D.Authorization=`Bearer ${o}`),D},baseURL:(r=A.defaults)===null||r===void 0?void 0:r.baseURL}),agents:vN({axios:k,getSocket:j,appId:s,serverUrl:i,token:a}),appLogs:bN(k,s),cleanup:()=>{b&&b.disconnect()}};if(typeof window<"u"){const D=a||Vh();D&&E.auth.setToken(D)}return c&&typeof window<"u"&&setTimeout(async()=>{try{await E.auth.isAuthenticated()||E.auth.redirectToLogin(window.location.href)}catch(D){console.error("Authentication check failed:",D),E.auth.redirectToLogin(window.location.href)}},0),{...E,setToken(D){E.auth.setToken(D),b&&b.updateConfig({token:D}),g.token=D},getConfig(){return{serverUrl:i,appId:s,requiresAuth:c}},get asServiceRole(){if(!o)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return C}}}const s4=typeof window>"u",UL=s4?{localStorage:new Map}:window,qc=UL.localStorage,$L=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase(),Eo=(t,{defaultValue:n=void 0,removeFromUrl:r=!1}={})=>{if(s4)return n;const i=`base44_${$L(t)}`,s=new URLSearchParams(window.location.search),a=s.get(t);if(r){s.delete(t);const c=`${window.location.pathname}${s.toString()?`?${s.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}if(a)return qc.setItem(i,a),a;if(n)return qc.setItem(i,n),n;const o=qc.getItem(i);return o||null},HL=()=>(Eo("clear_access_token")==="true"&&(qc.removeItem("base44_access_token"),qc.removeItem("token")),{appId:Eo("app_id",{defaultValue:"695a3d411fa079edce588856"}),token:Eo("access_token",{removeFromUrl:!0}),fromUrl:Eo("from_url",{defaultValue:window.location.href}),functionsVersion:Eo("functions_version",{defaultValue:"prod"}),appBaseUrl:Eo("app_base_url",{defaultValue:void 0})}),Oc={...HL()},{appId:WL,token:KL,functionsVersion:GL,appBaseUrl:QL}=Oc,ce=VL({appId:WL,token:KL,functionsVersion:GL,serverUrl:"",requiresAuth:!1,appBaseUrl:QL}),a4=I.createContext(),YL=({children:t})=>{const[n,r]=I.useState(null),[i,s]=I.useState(!1),[a,o]=I.useState(!0),[c,d]=I.useState(!0),[h,f]=I.useState(null),[m,p]=I.useState(null);I.useEffect(()=>{g()},[]);const g=async()=>{var x,N;try{d(!0),f(null);const w=Tc({baseURL:"/api/apps/public",headers:{"X-App-Id":Oc.appId},token:Oc.token,interceptResponses:!0});try{const k=await w.get(`/prod/public-settings/by-id/${Oc.appId}`);p(k),Oc.token?await b():(o(!1),s(!1)),d(!1)}catch(k){if(console.error("App state check failed:",k),k.status===403&&((N=(x=k.data)==null?void 0:x.extra_data)!=null&&N.reason)){const A=k.data.extra_data.reason;f(A==="auth_required"?{type:"auth_required",message:"Authentication required"}:A==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:A,message:k.message})}else f({type:"unknown",message:k.message||"Failed to load app"});d(!1),o(!1)}}catch(w){console.error("Unexpected error:",w),f({type:"unknown",message:w.message||"An unexpected error occurred"}),d(!1),o(!1)}},b=async()=>{try{o(!0);const x=await ce.auth.me();r(x),s(!0),o(!1)}catch(x){console.error("User auth check failed:",x),o(!1),s(!1),(x.status===401||x.status===403)&&f({type:"auth_required",message:"Authentication required"})}},j=(x=!0)=>{r(null),s(!1),x?ce.auth.logout(window.location.href):ce.auth.logout()},y=()=>{ce.auth.redirectToLogin(window.location.href)};return e.jsx(a4.Provider,{value:{user:n,isAuthenticated:i,isLoadingAuth:a,isLoadingPublicSettings:c,authError:h,appPublicSettings:m,logout:j,navigateToLogin:y,checkAppState:g},children:t})},o4=()=>{const t=I.useContext(a4);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t};function ae(t){return"/"+t.replace(/ /g,"-")}const yf=I.createContext(null);function gv(t){const n=I.useRef(null);return n.current===null&&(n.current=t()),n.current}const xv=I.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class XL extends I.Component{getSnapshotBeforeUpdate(n){const r=this.props.childRef.current;if(r&&n.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=r.offsetHeight||0,i.width=r.offsetWidth||0,i.top=r.offsetTop,i.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function JL({children:t,isPresent:n}){const r=I.useId(),i=I.useRef(null),s=I.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=I.useContext(xv);return I.useInsertionEffect(()=>{const{width:o,height:c,top:d,left:h}=s.current;if(n||!i.current||!o||!c)return;i.current.dataset.motionPopId=r;const f=document.createElement("style");return a&&(f.nonce=a),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
          [data-motion-pop-id="${r}"] {
            position: absolute !important;
            width: ${o}px !important;
            height: ${c}px !important;
            top: ${d}px !important;
            left: ${h}px !important;
          }
        `),()=>{document.head.removeChild(f)}},[n]),e.jsx(XL,{isPresent:n,childRef:i,sizeRef:s,children:I.cloneElement(t,{ref:i})})}const ZL=({children:t,initial:n,isPresent:r,onExitComplete:i,custom:s,presenceAffectsLayout:a,mode:o})=>{const c=gv(eB),d=I.useId(),h=I.useCallback(m=>{c.set(m,!0);for(const p of c.values())if(!p)return;i&&i()},[c,i]),f=I.useMemo(()=>({id:d,initial:n,isPresent:r,custom:s,onExitComplete:h,register:m=>(c.set(m,!1),()=>c.delete(m))}),a?[Math.random(),h]:[r,h]);return I.useMemo(()=>{c.forEach((m,p)=>c.set(p,!1))},[r]),I.useEffect(()=>{!r&&!c.size&&i&&i()},[r]),o==="popLayout"&&(t=e.jsx(JL,{isPresent:r,children:t})),e.jsx(yf.Provider,{value:f,children:t})};function eB(){return new Map}const yv=I.createContext({}),fr=t=>t;let l4=fr;function vv(t){let n;return()=>(n===void 0&&(n=t()),n)}const dl=(t,n,r)=>{const i=n-t;return i===0?1:(r-t)/i},Ui=t=>t*1e3,$i=t=>t/1e3,rh=t=>t.key||"";function ON(t){const n=[];return I.Children.forEach(t,r=>{I.isValidElement(r)&&n.push(r)}),n}const bv=typeof window<"u",c4=bv?I.useLayoutEffect:I.useEffect,Cr=({children:t,exitBeforeEnter:n,custom:r,initial:i=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:o="sync"})=>{const c=I.useMemo(()=>ON(t),[t]),d=c.map(rh),h=I.useRef(!0),f=I.useRef(c),m=gv(()=>new Map),[p,g]=I.useState(c),[b,j]=I.useState(c);c4(()=>{h.current=!1,f.current=c;for(let N=0;N<b.length;N++){const w=rh(b[N]);d.includes(w)?m.delete(w):m.get(w)!==!0&&m.set(w,!1)}},[b,d.length,d.join("-")]);const y=[];if(c!==p){let N=[...c];for(let w=0;w<b.length;w++){const k=b[w],A=rh(k);d.includes(A)||(N.splice(w,0,k),y.push(k))}o==="wait"&&y.length&&(N=y),j(ON(N)),g(c);return}const{forceRender:x}=I.useContext(yv);return e.jsx(e.Fragment,{children:b.map(N=>{const w=rh(N),k=c===b||d.includes(w),A=()=>{if(m.has(w))m.set(w,!0);else return;let S=!0;m.forEach(E=>{E||(S=!1)}),S&&(x==null||x(),j(f.current),s&&s())};return e.jsx(ZL,{isPresent:k,initial:!h.current||i?void 0:!1,custom:k?void 0:r,presenceAffectsLayout:a,mode:o,onExitComplete:k?void 0:A,children:N},w)})})},tB={useManualTiming:!1};function nB(t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(h){a.has(h)&&(d.schedule(h),t()),h(o)}const d={schedule:(h,f=!1,m=!1)=>{const g=m&&i?n:r;return f&&a.add(h),g.has(h)||g.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(o=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const ih=["read","resolveKeyframes","update","preRender","render","postRender"],rB=40;function u4(t,n){let r=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=ih.reduce((x,N)=>(x[N]=nB(a),x),{}),{read:c,resolveKeyframes:d,update:h,preRender:f,render:m,postRender:p}=o,g=()=>{const x=performance.now();r=!1,s.delta=i?1e3/60:Math.max(Math.min(x-s.timestamp,rB),1),s.timestamp=x,s.isProcessing=!0,c.process(s),d.process(s),h.process(s),f.process(s),m.process(s),p.process(s),s.isProcessing=!1,r&&n&&(i=!1,t(g))},b=()=>{r=!0,i=!0,s.isProcessing||t(g)};return{schedule:ih.reduce((x,N)=>{const w=o[N];return x[N]=(k,A=!1,S=!1)=>(r||b(),w.schedule(k,A,S)),x},{}),cancel:x=>{for(let N=0;N<ih.length;N++)o[ih[N]].cancel(x)},state:s,steps:o}}const{schedule:zt,cancel:Ws,state:kn,steps:eg}=u4(typeof requestAnimationFrame<"u"?requestAnimationFrame:fr,!0),d4=I.createContext({strict:!1}),DN={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},hl={};for(const t in DN)hl[t]={isEnabled:n=>DN[t].some(r=>!!n[r])};function iB(t){for(const n in t)hl[n]={...hl[n],...t[n]}}const sB=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Uh(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||sB.has(t)}let h4=t=>!Uh(t);function aB(t){t&&(h4=n=>n.startsWith("on")?!Uh(n):t(n))}try{aB(require("@emotion/is-prop-valid").default)}catch{}function oB(t,n,r){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||(h4(s)||r===!0&&Uh(s)||!n&&!Uh(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}function lB(t){if(typeof Proxy>"u")return t;const n=new Map,r=(...i)=>t(...i);return new Proxy(r,{get:(i,s)=>s==="create"?t:(n.has(s)||n.set(s,t(s)),n.get(s))})}const vf=I.createContext({});function iu(t){return typeof t=="string"||Array.isArray(t)}function bf(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const jv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wv=["initial",...jv];function jf(t){return bf(t.animate)||wv.some(n=>iu(t[n]))}function f4(t){return!!(jf(t)||t.variants)}function cB(t,n){if(jf(t)){const{initial:r,animate:i}=t;return{initial:r===!1||iu(r)?r:void 0,animate:iu(i)?i:void 0}}return t.inherit!==!1?n:{}}function uB(t){const{initial:n,animate:r}=cB(t,I.useContext(vf));return I.useMemo(()=>({initial:n,animate:r}),[IN(n),IN(r)])}function IN(t){return Array.isArray(t)?t.join(" "):t}const dB=Symbol.for("motionComponentSymbol");function Bo(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function hB(t,n,r){return I.useCallback(i=>{i&&t.mount&&t.mount(i),n&&(i?n.mount(i):n.unmount()),r&&(typeof r=="function"?r(i):Bo(r)&&(r.current=i))},[n])}const Nv=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),fB="framerAppearId",m4="data-"+Nv(fB),{schedule:kv}=u4(queueMicrotask,!1),p4=I.createContext({});function mB(t,n,r,i,s){var a,o;const{visualElement:c}=I.useContext(vf),d=I.useContext(d4),h=I.useContext(yf),f=I.useContext(xv).reducedMotion,m=I.useRef(null);i=i||d.renderer,!m.current&&i&&(m.current=i(t,{visualState:n,parent:c,props:r,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:f}));const p=m.current,g=I.useContext(p4);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&pB(m.current,r,s,g);const b=I.useRef(!1);I.useInsertionEffect(()=>{p&&b.current&&p.update(r,h)});const j=r[m4],y=I.useRef(!!j&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,j))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,j)));return c4(()=>{p&&(b.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),kv.render(p.render),y.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,j)}),y.current=!1))}),p}function pB(t,n,r,i){const{layoutId:s,layout:a,drag:o,dragConstraints:c,layoutScroll:d,layoutRoot:h}=n;t.projection=new r(t.latestValues,n["data-framer-portal-id"]?void 0:g4(t.parent)),t.projection.setOptions({layoutId:s,layout:a,alwaysMeasureLayout:!!o||c&&Bo(c),visualElement:t,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,layoutScroll:d,layoutRoot:h})}function g4(t){if(t)return t.options.allowProjection!==!1?t.projection:g4(t.parent)}function gB({preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:i,Component:s}){var a,o;t&&iB(t);function c(h,f){let m;const p={...I.useContext(xv),...h,layoutId:xB(h)},{isStatic:g}=p,b=uB(h),j=i(h,g);if(!g&&bv){yB();const y=vB(p);m=y.MeasureLayout,b.visualElement=mB(s,j,p,n,y.ProjectionNode)}return e.jsxs(vf.Provider,{value:b,children:[m&&b.visualElement?e.jsx(m,{visualElement:b.visualElement,...p}):null,r(s,h,hB(j,b.visualElement,f),j,g,b.visualElement)]})}c.displayName=`motion.${typeof s=="string"?s:`create(${(o=(a=s.displayName)!==null&&a!==void 0?a:s.name)!==null&&o!==void 0?o:""})`}`;const d=I.forwardRef(c);return d[dB]=s,d}function xB({layoutId:t}){const n=I.useContext(yv).id;return n&&t!==void 0?n+"-"+t:t}function yB(t,n){I.useContext(d4).strict}function vB(t){const{drag:n,layout:r}=hl;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(t)||r!=null&&r.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const bB=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _v(t){return typeof t!="string"||t.includes("-")?!1:!!(bB.indexOf(t)>-1||/[A-Z]/u.test(t))}function x4(t,{style:n,vars:r},i,s){Object.assign(t.style,n,s&&s.getProjectionStyles(i));for(const a in r)t.style.setProperty(a,r[a])}const y4=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function v4(t,n,r,i){x4(t,n,void 0,i);for(const s in n.attrs)t.setAttribute(y4.has(s)?s:Nv(s),n.attrs[s])}const In=t=>!!(t&&t.getVelocity),$h={};function jB(t){Object.assign($h,t)}const Tu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],eo=new Set(Tu);function b4(t,{layout:n,layoutId:r}){return eo.has(t)||t.startsWith("origin")||(n||r!==void 0)&&(!!$h[t]||t==="opacity")}function Sv(t,n,r){var i;const{style:s}=t,a={};for(const o in s)(In(s[o])||n.style&&In(n.style[o])||b4(o,t)||((i=r==null?void 0:r.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(a[o]=s[o]);return a}function j4(t,n,r){const i=Sv(t,n,r);for(const s in t)if(In(t[s])||In(n[s])){const a=Tu.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[a]=t[s]}return i}function RN(t){const n=[{},{}];return t==null||t.values.forEach((r,i)=>{n[0][i]=r.get(),n[1][i]=r.getVelocity()}),n}function Av(t,n,r,i){if(typeof n=="function"){const[s,a]=RN(i);n=n(r!==void 0?r:t.custom,s,a)}if(typeof n=="string"&&(n=t.variants&&t.variants[n]),typeof n=="function"){const[s,a]=RN(i);n=n(r!==void 0?r:t.custom,s,a)}return n}const iy=t=>Array.isArray(t),wB=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),NB=t=>iy(t)?t[t.length-1]||0:t;function Eh(t){const n=In(t)?t.get():t;return wB(n)?n.toValue():n}function kB({scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,s,a){const o={latestValues:_B(i,s,a,t),renderState:n()};return r&&(o.mount=c=>r(i,c,o)),o}const w4=t=>(n,r)=>{const i=I.useContext(vf),s=I.useContext(yf),a=()=>kB(t,n,i,s);return r?a():gv(a)};function _B(t,n,r,i){const s={},a=i(t,{});for(const p in a)s[p]=Eh(a[p]);let{initial:o,animate:c}=t;const d=jf(t),h=f4(t);n&&h&&!d&&t.inherit!==!1&&(o===void 0&&(o=n.initial),c===void 0&&(c=n.animate));let f=r?r.initial===!1:!1;f=f||o===!1;const m=f?c:o;if(m&&typeof m!="boolean"&&!bf(m)){const p=Array.isArray(m)?m:[m];for(let g=0;g<p.length;g++){const b=Av(t,p[g]);if(b){const{transitionEnd:j,transition:y,...x}=b;for(const N in x){let w=x[N];if(Array.isArray(w)){const k=f?w.length-1:0;w=w[k]}w!==null&&(s[N]=w)}for(const N in j)s[N]=j[N]}}}return s}const Cv=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),N4=()=>({...Cv(),attrs:{}}),k4=(t,n)=>n&&typeof t=="number"?n.transform(t):t,Gi=(t,n,r)=>r>n?n:r<t?t:r,Sl={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},su={...Sl,transform:t=>Gi(0,1,t)},sh={...Sl,default:1},Pu=t=>({test:n=>typeof n=="string"&&n.endsWith(t)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${t}`}),As=Pu("deg"),gi=Pu("%"),Ye=Pu("px"),SB=Pu("vh"),AB=Pu("vw"),FN={...gi,parse:t=>gi.parse(t)/100,transform:t=>gi.transform(t*100)},CB={borderWidth:Ye,borderTopWidth:Ye,borderRightWidth:Ye,borderBottomWidth:Ye,borderLeftWidth:Ye,borderRadius:Ye,radius:Ye,borderTopLeftRadius:Ye,borderTopRightRadius:Ye,borderBottomRightRadius:Ye,borderBottomLeftRadius:Ye,width:Ye,maxWidth:Ye,height:Ye,maxHeight:Ye,top:Ye,right:Ye,bottom:Ye,left:Ye,padding:Ye,paddingTop:Ye,paddingRight:Ye,paddingBottom:Ye,paddingLeft:Ye,margin:Ye,marginTop:Ye,marginRight:Ye,marginBottom:Ye,marginLeft:Ye,backgroundPositionX:Ye,backgroundPositionY:Ye},EB={rotate:As,rotateX:As,rotateY:As,rotateZ:As,scale:sh,scaleX:sh,scaleY:sh,scaleZ:sh,skew:As,skewX:As,skewY:As,distance:Ye,translateX:Ye,translateY:Ye,translateZ:Ye,x:Ye,y:Ye,z:Ye,perspective:Ye,transformPerspective:Ye,opacity:su,originX:FN,originY:FN,originZ:Ye},MN={...Sl,transform:Math.round},Ev={...CB,...EB,zIndex:MN,size:Ye,fillOpacity:su,strokeOpacity:su,numOctaves:MN},TB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},PB=Tu.length;function OB(t,n,r){let i="",s=!0;for(let a=0;a<PB;a++){const o=Tu[a],c=t[o];if(c===void 0)continue;let d=!0;if(typeof c=="number"?d=c===(o.startsWith("scale")?1:0):d=parseFloat(c)===0,!d||r){const h=k4(c,Ev[o]);if(!d){s=!1;const f=TB[o]||o;i+=`${f}(${h}) `}r&&(n[o]=h)}}return i=i.trim(),r?i=r(n,s?"":i):s&&(i="none"),i}const _4=t=>n=>typeof n=="string"&&n.startsWith(t),S4=_4("--"),DB=_4("var(--"),Tv=t=>DB(t)?IB.test(t.split("/*")[0].trim()):!1,IB=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Pv(t,n,r){const{style:i,vars:s,transformOrigin:a}=t;let o=!1,c=!1;for(const d in n){const h=n[d];if(eo.has(d)){o=!0;continue}else if(S4(d)){s[d]=h;continue}else{const f=k4(h,Ev[d]);d.startsWith("origin")?(c=!0,a[d]=f):i[d]=f}}if(n.transform||(o||r?i.transform=OB(n,t.transform,r):i.transform&&(i.transform="none")),c){const{originX:d="50%",originY:h="50%",originZ:f=0}=a;i.transformOrigin=`${d} ${h} ${f}`}}function LN(t,n,r){return typeof t=="string"?t:Ye.transform(n+r*t)}function RB(t,n,r){const i=LN(n,t.x,t.width),s=LN(r,t.y,t.height);return`${i} ${s}`}const FB={offset:"stroke-dashoffset",array:"stroke-dasharray"},MB={offset:"strokeDashoffset",array:"strokeDasharray"};function LB(t,n,r=1,i=0,s=!0){t.pathLength=1;const a=s?FB:MB;t[a.offset]=Ye.transform(-i);const o=Ye.transform(n),c=Ye.transform(r);t[a.array]=`${o} ${c}`}function Ov(t,{attrX:n,attrY:r,attrScale:i,originX:s,originY:a,pathLength:o,pathSpacing:c=1,pathOffset:d=0,...h},f,m){if(Pv(t,h,m),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:p,style:g,dimensions:b}=t;p.transform&&(b&&(g.transform=p.transform),delete p.transform),b&&(s!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=RB(b,s!==void 0?s:.5,a!==void 0?a:.5)),n!==void 0&&(p.x=n),r!==void 0&&(p.y=r),i!==void 0&&(p.scale=i),o!==void 0&&LB(p,o,c,d,!1)}const Dv=t=>typeof t=="string"&&t.toLowerCase()==="svg",BB={useVisualState:w4({scrapeMotionValuesFromProps:j4,createRenderState:N4,onMount:(t,n,{renderState:r,latestValues:i})=>{zt.read(()=>{try{r.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),zt.render(()=>{Ov(r,i,Dv(n.tagName),t.transformTemplate),v4(n,r)})}})},zB={useVisualState:w4({scrapeMotionValuesFromProps:Sv,createRenderState:Cv})};function A4(t,n,r){for(const i in n)!In(n[i])&&!b4(i,r)&&(t[i]=n[i])}function qB({transformTemplate:t},n){return I.useMemo(()=>{const r=Cv();return Pv(r,n,t),Object.assign({},r.vars,r.style)},[n])}function VB(t,n){const r=t.style||{},i={};return A4(i,r,t),Object.assign(i,qB(t,n)),i}function UB(t,n){const r={},i=VB(t,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}function $B(t,n,r,i){const s=I.useMemo(()=>{const a=N4();return Ov(a,n,Dv(i),t.transformTemplate),{...a.attrs,style:{...a.style}}},[n]);if(t.style){const a={};A4(a,t.style,t),s.style={...a,...s.style}}return s}function HB(t=!1){return(r,i,s,{latestValues:a},o)=>{const d=(_v(r)?$B:UB)(i,a,o,r),h=oB(i,typeof r=="string",t),f=r!==I.Fragment?{...h,...d,ref:s}:{},{children:m}=i,p=I.useMemo(()=>In(m)?m.get():m,[m]);return I.createElement(r,{...f,children:p})}}function WB(t,n){return function(i,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={..._v(i)?BB:zB,preloadedFeatures:t,useRender:HB(s),createVisualElement:n,Component:i};return gB(o)}}function C4(t,n){if(!Array.isArray(n))return!1;const r=n.length;if(r!==t.length)return!1;for(let i=0;i<r;i++)if(n[i]!==t[i])return!1;return!0}function wf(t,n,r){const i=t.getProps();return Av(i,n,r!==void 0?r:i.custom,t)}const KB=vv(()=>window.ScrollTimeline!==void 0);class GB{constructor(n){this.stop=()=>this.runAll("stop"),this.animations=n.filter(Boolean)}get finished(){return Promise.all(this.animations.map(n=>"finished"in n?n.finished:n))}getAll(n){return this.animations[0][n]}setAll(n,r){for(let i=0;i<this.animations.length;i++)this.animations[i][n]=r}attachTimeline(n,r){const i=this.animations.map(s=>{if(KB()&&s.attachTimeline)return s.attachTimeline(n);if(typeof r=="function")return r(s)});return()=>{i.forEach((s,a)=>{s&&s(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(n){this.setAll("time",n)}get speed(){return this.getAll("speed")}set speed(n){this.setAll("speed",n)}get startTime(){return this.getAll("startTime")}get duration(){let n=0;for(let r=0;r<this.animations.length;r++)n=Math.max(n,this.animations[r].duration);return n}runAll(n){this.animations.forEach(r=>r[n]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class QB extends GB{then(n,r){return Promise.all(this.animations).then(n).catch(r)}}function Iv(t,n){return t?t[n]||t.default||t:void 0}const sy=2e4;function E4(t){let n=0;const r=50;let i=t.next(n);for(;!i.done&&n<sy;)n+=r,i=t.next(n);return n>=sy?1/0:n}function Rv(t){return typeof t=="function"}function BN(t,n){t.timeline=n,t.onfinish=null}const Fv=t=>Array.isArray(t)&&typeof t[0]=="number",YB={linearEasing:void 0};function XB(t,n){const r=vv(t);return()=>{var i;return(i=YB[n])!==null&&i!==void 0?i:r()}}const Hh=XB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),T4=(t,n,r=10)=>{let i="";const s=Math.max(Math.round(n/r),2);for(let a=0;a<s;a++)i+=t(dl(0,s-1,a))+", ";return`linear(${i.substring(0,i.length-2)})`};function P4(t){return!!(typeof t=="function"&&Hh()||!t||typeof t=="string"&&(t in ay||Hh())||Fv(t)||Array.isArray(t)&&t.every(P4))}const Dc=([t,n,r,i])=>`cubic-bezier(${t}, ${n}, ${r}, ${i})`,ay={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dc([0,.65,.55,1]),circOut:Dc([.55,0,1,.45]),backIn:Dc([.31,.01,.66,-.59]),backOut:Dc([.33,1.53,.69,.99])};function O4(t,n){if(t)return typeof t=="function"&&Hh()?T4(t,n):Fv(t)?Dc(t):Array.isArray(t)?t.map(r=>O4(r,n)||ay.easeOut):ay[t]}const Br={x:!1,y:!1};function D4(){return Br.x||Br.y}function JB(t,n,r){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let s=document;const a=(i=void 0)!==null&&i!==void 0?i:s.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t)}function I4(t,n){const r=JB(t),i=new AbortController,s={passive:!0,...n,signal:i.signal};return[r,s,()=>i.abort()]}function zN(t){return n=>{n.pointerType==="touch"||D4()||t(n)}}function ZB(t,n,r={}){const[i,s,a]=I4(t,r),o=zN(c=>{const{target:d}=c,h=n(c);if(typeof h!="function"||!d)return;const f=zN(m=>{h(m),d.removeEventListener("pointerleave",f)});d.addEventListener("pointerleave",f,s)});return i.forEach(c=>{c.addEventListener("pointerenter",o,s)}),a}const R4=(t,n)=>n?t===n?!0:R4(t,n.parentElement):!1,Mv=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,e7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function t7(t){return e7.has(t.tagName)||t.tabIndex!==-1}const Ic=new WeakSet;function qN(t){return n=>{n.key==="Enter"&&t(n)}}function tg(t,n){t.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const n7=(t,n)=>{const r=t.currentTarget;if(!r)return;const i=qN(()=>{if(Ic.has(r))return;tg(r,"down");const s=qN(()=>{tg(r,"up")}),a=()=>tg(r,"cancel");r.addEventListener("keyup",s,n),r.addEventListener("blur",a,n)});r.addEventListener("keydown",i,n),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),n)};function VN(t){return Mv(t)&&!D4()}function r7(t,n,r={}){const[i,s,a]=I4(t,r),o=c=>{const d=c.currentTarget;if(!VN(c)||Ic.has(d))return;Ic.add(d);const h=n(c),f=(g,b)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!VN(g)||!Ic.has(d))&&(Ic.delete(d),typeof h=="function"&&h(g,{success:b}))},m=g=>{f(g,r.useGlobalTarget||R4(d,g.target))},p=g=>{f(g,!1)};window.addEventListener("pointerup",m,s),window.addEventListener("pointercancel",p,s)};return i.forEach(c=>{!t7(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(r.useGlobalTarget?window:c).addEventListener("pointerdown",o,s),c.addEventListener("focus",h=>n7(h,s),s)}),a}function i7(t){return t==="x"||t==="y"?Br[t]?null:(Br[t]=!0,()=>{Br[t]=!1}):Br.x||Br.y?null:(Br.x=Br.y=!0,()=>{Br.x=Br.y=!1})}let Th;function s7(){Th=void 0}const xi={now:()=>(Th===void 0&&xi.set(kn.isProcessing||tB.useManualTiming?kn.timestamp:performance.now()),Th),set:t=>{Th=t,queueMicrotask(s7)}};function Lv(t,n){t.indexOf(n)===-1&&t.push(n)}function Bv(t,n){const r=t.indexOf(n);r>-1&&t.splice(r,1)}class zv{constructor(){this.subscriptions=[]}add(n){return Lv(this.subscriptions,n),()=>Bv(this.subscriptions,n)}notify(n,r,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](n,r,i);else for(let a=0;a<s;a++){const o=this.subscriptions[a];o&&o(n,r,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function F4(t,n){return n?t*(1e3/n):0}const UN=30,a7=t=>!isNaN(parseFloat(t));class o7{constructor(n,r={}){this.version="11.16.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,s=!0)=>{const a=xi.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(n),this.owner=r.owner}setCurrent(n){this.current=n,this.updatedAt=xi.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=a7(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,r){this.events[n]||(this.events[n]=new zv);const i=this.events[n].add(r);return n==="change"?()=>{i(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,r){this.passiveEffect=n,this.stopPassiveEffect=r}set(n,r=!0){!r||!this.passiveEffect?this.updateAndNotify(n,r):this.passiveEffect(n,this.updateAndNotify)}setWithVelocity(n,r,i){this.set(r),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-i}jump(n,r=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=xi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>UN)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,UN);return F4(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(n){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=n(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function au(t,n){return new o7(t,n)}function l7(t,n,r){t.hasValue(n)?t.getValue(n).set(r):t.addValue(n,au(r))}function c7(t,n){const r=wf(t,n);let{transitionEnd:i={},transition:s={},...a}=r||{};a={...a,...i};for(const o in a){const c=NB(a[o]);l7(t,o,c)}}function u7(t){return!!(In(t)&&t.add)}function oy(t,n){const r=t.getValue("willChange");if(u7(r))return r.add(n)}function M4(t){return t.props[m4]}const L4=(t,n,r)=>(((1-3*r+3*n)*t+(3*r-6*n))*t+3*n)*t,d7=1e-7,h7=12;function f7(t,n,r,i,s){let a,o,c=0;do o=n+(r-n)/2,a=L4(o,i,s)-t,a>0?r=o:n=o;while(Math.abs(a)>d7&&++c<h7);return o}function Ou(t,n,r,i){if(t===n&&r===i)return fr;const s=a=>f7(a,0,1,t,r);return a=>a===0||a===1?a:L4(s(a),n,i)}const B4=t=>n=>n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2,z4=t=>n=>1-t(1-n),q4=Ou(.33,1.53,.69,.99),qv=z4(q4),V4=B4(qv),U4=t=>(t*=2)<1?.5*qv(t):.5*(2-Math.pow(2,-10*(t-1))),Vv=t=>1-Math.sin(Math.acos(t)),$4=z4(Vv),H4=B4(Vv),W4=t=>/^0[^.\s]+$/u.test(t);function m7(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||W4(t):!0}const K4=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),p7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function g7(t){const n=p7.exec(t);if(!n)return[,];const[,r,i,s]=n;return[`--${r??i}`,s]}function G4(t,n,r=1){const[i,s]=g7(t);if(!i)return;const a=window.getComputedStyle(n).getPropertyValue(i);if(a){const o=a.trim();return K4(o)?parseFloat(o):o}return Tv(s)?G4(s,n,r+1):s}const x7=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),$N=t=>t===Sl||t===Ye,HN=(t,n)=>parseFloat(t.split(", ")[n]),WN=(t,n)=>(r,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return HN(s[1],n);{const a=i.match(/^matrix\((.+)\)$/u);return a?HN(a[1],t):0}},y7=new Set(["x","y","z"]),v7=Tu.filter(t=>!y7.has(t));function b7(t){const n=[];return v7.forEach(r=>{const i=t.getValue(r);i!==void 0&&(n.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),n}const fl={width:({x:t},{paddingLeft:n="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(n)-parseFloat(r),height:({y:t},{paddingTop:n="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(n)-parseFloat(r),top:(t,{top:n})=>parseFloat(n),left:(t,{left:n})=>parseFloat(n),bottom:({y:t},{top:n})=>parseFloat(n)+(t.max-t.min),right:({x:t},{left:n})=>parseFloat(n)+(t.max-t.min),x:WN(4,13),y:WN(5,14)};fl.translateX=fl.x;fl.translateY=fl.y;const Q4=t=>n=>n.test(t),j7={test:t=>t==="auto",parse:t=>t},Y4=[Sl,Ye,gi,As,AB,SB,j7],KN=t=>Y4.find(Q4(t)),Ba=new Set;let ly=!1,cy=!1;function X4(){if(cy){const t=Array.from(Ba).filter(i=>i.needsMeasurement),n=new Set(t.map(i=>i.element)),r=new Map;n.forEach(i=>{const s=b7(i);s.length&&(r.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),n.forEach(i=>{i.render();const s=r.get(i);s&&s.forEach(([a,o])=>{var c;(c=i.getValue(a))===null||c===void 0||c.set(o)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}cy=!1,ly=!1,Ba.forEach(t=>t.complete()),Ba.clear()}function J4(){Ba.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(cy=!0)})}function w7(){J4(),X4()}class Uv{constructor(n,r,i,s,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...n],this.onComplete=r,this.name=i,this.motionValue=s,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ba.add(this),ly||(ly=!0,zt.read(J4),zt.resolveKeyframes(X4))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:r,element:i,motionValue:s}=this;for(let a=0;a<n.length;a++)if(n[a]===null)if(a===0){const o=s==null?void 0:s.get(),c=n[n.length-1];if(o!==void 0)n[0]=o;else if(i&&r){const d=i.readValue(r,c);d!=null&&(n[0]=d)}n[0]===void 0&&(n[0]=c),s&&o===void 0&&s.set(n[0])}else n[a]=n[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ba.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ba.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Vc=t=>Math.round(t*1e5)/1e5,$v=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function N7(t){return t==null}const k7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hv=(t,n)=>r=>!!(typeof r=="string"&&k7.test(r)&&r.startsWith(t)||n&&!N7(r)&&Object.prototype.hasOwnProperty.call(r,n)),Z4=(t,n,r)=>i=>{if(typeof i!="string")return i;const[s,a,o,c]=i.match($v);return{[t]:parseFloat(s),[n]:parseFloat(a),[r]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},_7=t=>Gi(0,255,t),ng={...Sl,transform:t=>Math.round(_7(t))},Aa={test:Hv("rgb","red"),parse:Z4("red","green","blue"),transform:({red:t,green:n,blue:r,alpha:i=1})=>"rgba("+ng.transform(t)+", "+ng.transform(n)+", "+ng.transform(r)+", "+Vc(su.transform(i))+")"};function S7(t){let n="",r="",i="",s="";return t.length>5?(n=t.substring(1,3),r=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(n=t.substring(1,2),r=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),n+=n,r+=r,i+=i,s+=s),{red:parseInt(n,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const uy={test:Hv("#"),parse:S7,transform:Aa.transform},zo={test:Hv("hsl","hue"),parse:Z4("hue","saturation","lightness"),transform:({hue:t,saturation:n,lightness:r,alpha:i=1})=>"hsla("+Math.round(t)+", "+gi.transform(Vc(n))+", "+gi.transform(Vc(r))+", "+Vc(su.transform(i))+")"},Pn={test:t=>Aa.test(t)||uy.test(t)||zo.test(t),parse:t=>Aa.test(t)?Aa.parse(t):zo.test(t)?zo.parse(t):uy.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Aa.transform(t):zo.transform(t)},A7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function C7(t){var n,r;return isNaN(t)&&typeof t=="string"&&(((n=t.match($v))===null||n===void 0?void 0:n.length)||0)+(((r=t.match(A7))===null||r===void 0?void 0:r.length)||0)>0}const eE="number",tE="color",E7="var",T7="var(",GN="${}",P7=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ou(t){const n=t.toString(),r=[],i={color:[],number:[],var:[]},s=[];let a=0;const c=n.replace(P7,d=>(Pn.test(d)?(i.color.push(a),s.push(tE),r.push(Pn.parse(d))):d.startsWith(T7)?(i.var.push(a),s.push(E7),r.push(d)):(i.number.push(a),s.push(eE),r.push(parseFloat(d))),++a,GN)).split(GN);return{values:r,split:c,indexes:i,types:s}}function nE(t){return ou(t).values}function rE(t){const{split:n,types:r}=ou(t),i=n.length;return s=>{let a="";for(let o=0;o<i;o++)if(a+=n[o],s[o]!==void 0){const c=r[o];c===eE?a+=Vc(s[o]):c===tE?a+=Pn.transform(s[o]):a+=s[o]}return a}}const O7=t=>typeof t=="number"?0:t;function D7(t){const n=nE(t);return rE(t)(n.map(O7))}const Ks={test:C7,parse:nE,createTransformer:rE,getAnimatableNone:D7},I7=new Set(["brightness","contrast","saturate","opacity"]);function R7(t){const[n,r]=t.slice(0,-1).split("(");if(n==="drop-shadow")return t;const[i]=r.match($v)||[];if(!i)return t;const s=r.replace(i,"");let a=I7.has(n)?1:0;return i!==r&&(a*=100),n+"("+a+s+")"}const F7=/\b([a-z-]*)\(.*?\)/gu,dy={...Ks,getAnimatableNone:t=>{const n=t.match(F7);return n?n.map(R7).join(" "):t}},M7={...Ev,color:Pn,backgroundColor:Pn,outlineColor:Pn,fill:Pn,stroke:Pn,borderColor:Pn,borderTopColor:Pn,borderRightColor:Pn,borderBottomColor:Pn,borderLeftColor:Pn,filter:dy,WebkitFilter:dy},Wv=t=>M7[t];function iE(t,n){let r=Wv(t);return r!==dy&&(r=Ks),r.getAnimatableNone?r.getAnimatableNone(n):void 0}const L7=new Set(["auto","none","0"]);function B7(t,n,r){let i=0,s;for(;i<t.length&&!s;){const a=t[i];typeof a=="string"&&!L7.has(a)&&ou(a).values.length&&(s=t[i]),i++}if(s&&r)for(const a of n)t[a]=iE(r,s)}class sE extends Uv{constructor(n,r,i,s,a){super(n,r,i,s,a,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:r,name:i}=this;if(!r||!r.current)return;super.readKeyframes();for(let d=0;d<n.length;d++){let h=n[d];if(typeof h=="string"&&(h=h.trim(),Tv(h))){const f=G4(h,r.current);f!==void 0&&(n[d]=f),d===n.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!x7.has(i)||n.length!==2)return;const[s,a]=n,o=KN(s),c=KN(a);if(o!==c)if($N(o)&&$N(c))for(let d=0;d<n.length;d++){const h=n[d];typeof h=="string"&&(n[d]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:r}=this,i=[];for(let s=0;s<n.length;s++)m7(n[s])&&i.push(s);i.length&&B7(n,i,r)}measureInitialState(){const{element:n,unresolvedKeyframes:r,name:i}=this;if(!n||!n.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fl[i](n.measureViewportBox(),window.getComputedStyle(n.current)),r[0]=this.measuredOrigin;const s=r[r.length-1];s!==void 0&&n.getValue(i,s).jump(s,!1)}measureEndState(){var n;const{element:r,name:i,unresolvedKeyframes:s}=this;if(!r||!r.current)return;const a=r.getValue(i);a&&a.jump(this.measuredOrigin,!1);const o=s.length-1,c=s[o];s[o]=fl[i](r.measureViewportBox(),window.getComputedStyle(r.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((n=this.removedTransforms)===null||n===void 0)&&n.length&&this.removedTransforms.forEach(([d,h])=>{r.getValue(d).set(h)}),this.resolveNoneKeyframes()}}const QN=(t,n)=>n==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ks.test(t)||t==="0")&&!t.startsWith("url("));function z7(t){const n=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}function q7(t,n,r,i){const s=t[0];if(s===null)return!1;if(n==="display"||n==="visibility")return!0;const a=t[t.length-1],o=QN(s,n),c=QN(a,n);return!o||!c?!1:z7(t)||(r==="spring"||Rv(r))&&i}const V7=t=>t!==null;function Nf(t,{repeat:n,repeatType:r="loop"},i){const s=t.filter(V7),a=n&&r!=="loop"&&n%2===1?0:s.length-1;return!a||i===void 0?s[a]:i}const U7=40;class aE{constructor({autoplay:n=!0,delay:r=0,type:i="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:o="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=xi.now(),this.options={autoplay:n,delay:r,type:i,repeat:s,repeatDelay:a,repeatType:o,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>U7?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&w7(),this._resolved}onKeyframesResolved(n,r){this.resolvedAt=xi.now(),this.hasAttemptedResolve=!0;const{name:i,type:s,velocity:a,delay:o,onComplete:c,onUpdate:d,isGenerator:h}=this.options;if(!h&&!q7(n,i,s,a))if(o)this.options.duration=0;else{d==null||d(Nf(n,this.options,r)),c==null||c(),this.resolveFinishedPromise();return}const f=this.initPlayback(n,r);f!==!1&&(this._resolved={keyframes:n,finalKeyframe:r,...f},this.onPostResolved())}onPostResolved(){}then(n,r){return this.currentFinishedPromise.then(n,r)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(n=>{this.resolveFinishedPromise=n})}}const Gt=(t,n,r)=>t+(n-t)*r;function rg(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}function $7({hue:t,saturation:n,lightness:r,alpha:i}){t/=360,n/=100,r/=100;let s=0,a=0,o=0;if(!n)s=a=o=r;else{const c=r<.5?r*(1+n):r+n-r*n,d=2*r-c;s=rg(d,c,t+1/3),a=rg(d,c,t),o=rg(d,c,t-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:i}}function Wh(t,n){return r=>r>0?n:t}const ig=(t,n,r)=>{const i=t*t,s=r*(n*n-i)+i;return s<0?0:Math.sqrt(s)},H7=[uy,Aa,zo],W7=t=>H7.find(n=>n.test(t));function YN(t){const n=W7(t);if(!n)return!1;let r=n.parse(t);return n===zo&&(r=$7(r)),r}const XN=(t,n)=>{const r=YN(t),i=YN(n);if(!r||!i)return Wh(t,n);const s={...r};return a=>(s.red=ig(r.red,i.red,a),s.green=ig(r.green,i.green,a),s.blue=ig(r.blue,i.blue,a),s.alpha=Gt(r.alpha,i.alpha,a),Aa.transform(s))},K7=(t,n)=>r=>n(t(r)),Du=(...t)=>t.reduce(K7),hy=new Set(["none","hidden"]);function G7(t,n){return hy.has(t)?r=>r<=0?t:n:r=>r>=1?n:t}function Q7(t,n){return r=>Gt(t,n,r)}function Kv(t){return typeof t=="number"?Q7:typeof t=="string"?Tv(t)?Wh:Pn.test(t)?XN:J7:Array.isArray(t)?oE:typeof t=="object"?Pn.test(t)?XN:Y7:Wh}function oE(t,n){const r=[...t],i=r.length,s=t.map((a,o)=>Kv(a)(a,n[o]));return a=>{for(let o=0;o<i;o++)r[o]=s[o](a);return r}}function Y7(t,n){const r={...t,...n},i={};for(const s in r)t[s]!==void 0&&n[s]!==void 0&&(i[s]=Kv(t[s])(t[s],n[s]));return s=>{for(const a in i)r[a]=i[a](s);return r}}function X7(t,n){var r;const i=[],s={color:0,var:0,number:0};for(let a=0;a<n.values.length;a++){const o=n.types[a],c=t.indexes[o][s[o]],d=(r=t.values[c])!==null&&r!==void 0?r:0;i[a]=d,s[o]++}return i}const J7=(t,n)=>{const r=Ks.createTransformer(n),i=ou(t),s=ou(n);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?hy.has(t)&&!s.values.length||hy.has(n)&&!i.values.length?G7(t,n):Du(oE(X7(i,s),s.values),r):Wh(t,n)};function lE(t,n,r){return typeof t=="number"&&typeof n=="number"&&typeof r=="number"?Gt(t,n,r):Kv(t)(t,n)}const Z7=5;function cE(t,n,r){const i=Math.max(n-Z7,0);return F4(r-t(i),n-i)}const en={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},sg=.001;function ez({duration:t=en.duration,bounce:n=en.bounce,velocity:r=en.velocity,mass:i=en.mass}){let s,a,o=1-n;o=Gi(en.minDamping,en.maxDamping,o),t=Gi(en.minDuration,en.maxDuration,$i(t)),o<1?(s=h=>{const f=h*o,m=f*t,p=f-r,g=fy(h,o),b=Math.exp(-m);return sg-p/g*b},a=h=>{const m=h*o*t,p=m*r+r,g=Math.pow(o,2)*Math.pow(h,2)*t,b=Math.exp(-m),j=fy(Math.pow(h,2),o);return(-s(h)+sg>0?-1:1)*((p-g)*b)/j}):(s=h=>{const f=Math.exp(-h*t),m=(h-r)*t+1;return-sg+f*m},a=h=>{const f=Math.exp(-h*t),m=(r-h)*(t*t);return f*m});const c=5/t,d=nz(s,a,c);if(t=Ui(t),isNaN(d))return{stiffness:en.stiffness,damping:en.damping,duration:t};{const h=Math.pow(d,2)*i;return{stiffness:h,damping:o*2*Math.sqrt(i*h),duration:t}}}const tz=12;function nz(t,n,r){let i=r;for(let s=1;s<tz;s++)i=i-t(i)/n(i);return i}function fy(t,n){return t*Math.sqrt(1-n*n)}const rz=["duration","bounce"],iz=["stiffness","damping","mass"];function JN(t,n){return n.some(r=>t[r]!==void 0)}function sz(t){let n={velocity:en.velocity,stiffness:en.stiffness,damping:en.damping,mass:en.mass,isResolvedFromDuration:!1,...t};if(!JN(t,iz)&&JN(t,rz))if(t.visualDuration){const r=t.visualDuration,i=2*Math.PI/(r*1.2),s=i*i,a=2*Gi(.05,1,1-(t.bounce||0))*Math.sqrt(s);n={...n,mass:en.mass,stiffness:s,damping:a}}else{const r=ez(t);n={...n,...r,mass:en.mass},n.isResolvedFromDuration=!0}return n}function uE(t=en.visualDuration,n=en.bounce){const r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:n}:t;let{restSpeed:i,restDelta:s}=r;const a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],c={done:!1,value:a},{stiffness:d,damping:h,mass:f,duration:m,velocity:p,isResolvedFromDuration:g}=sz({...r,velocity:-$i(r.velocity||0)}),b=p||0,j=h/(2*Math.sqrt(d*f)),y=o-a,x=$i(Math.sqrt(d/f)),N=Math.abs(y)<5;i||(i=N?en.restSpeed.granular:en.restSpeed.default),s||(s=N?en.restDelta.granular:en.restDelta.default);let w;if(j<1){const A=fy(x,j);w=S=>{const E=Math.exp(-j*x*S);return o-E*((b+j*x*y)/A*Math.sin(A*S)+y*Math.cos(A*S))}}else if(j===1)w=A=>o-Math.exp(-x*A)*(y+(b+x*y)*A);else{const A=x*Math.sqrt(j*j-1);w=S=>{const E=Math.exp(-j*x*S),C=Math.min(A*S,300);return o-E*((b+j*x*y)*Math.sinh(C)+A*y*Math.cosh(C))/A}}const k={calculatedDuration:g&&m||null,next:A=>{const S=w(A);if(g)c.done=A>=m;else{let E=0;j<1&&(E=A===0?Ui(b):cE(w,A,S));const C=Math.abs(E)<=i,B=Math.abs(o-S)<=s;c.done=C&&B}return c.value=c.done?o:S,c},toString:()=>{const A=Math.min(E4(k),sy),S=T4(E=>k.next(A*E).value,A,30);return A+"ms "+S}};return k}function ZN({keyframes:t,velocity:n=0,power:r=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:o,min:c,max:d,restDelta:h=.5,restSpeed:f}){const m=t[0],p={done:!1,value:m},g=C=>c!==void 0&&C<c||d!==void 0&&C>d,b=C=>c===void 0?d:d===void 0||Math.abs(c-C)<Math.abs(d-C)?c:d;let j=r*n;const y=m+j,x=o===void 0?y:o(y);x!==y&&(j=x-m);const N=C=>-j*Math.exp(-C/i),w=C=>x+N(C),k=C=>{const B=N(C),D=w(C);p.done=Math.abs(B)<=h,p.value=p.done?x:D};let A,S;const E=C=>{g(p.value)&&(A=C,S=uE({keyframes:[p.value,b(p.value)],velocity:cE(w,C,p.value),damping:s,stiffness:a,restDelta:h,restSpeed:f}))};return E(0),{calculatedDuration:null,next:C=>{let B=!1;return!S&&A===void 0&&(B=!0,k(C),E(C)),A!==void 0&&C>=A?S.next(C-A):(!B&&k(C),p)}}}const az=Ou(.42,0,1,1),oz=Ou(0,0,.58,1),dE=Ou(.42,0,.58,1),lz=t=>Array.isArray(t)&&typeof t[0]!="number",cz={linear:fr,easeIn:az,easeInOut:dE,easeOut:oz,circIn:Vv,circInOut:H4,circOut:$4,backIn:qv,backInOut:V4,backOut:q4,anticipate:U4},ek=t=>{if(Fv(t)){l4(t.length===4);const[n,r,i,s]=t;return Ou(n,r,i,s)}else if(typeof t=="string")return cz[t];return t};function uz(t,n,r){const i=[],s=r||lE,a=t.length-1;for(let o=0;o<a;o++){let c=s(t[o],t[o+1]);if(n){const d=Array.isArray(n)?n[o]||fr:n;c=Du(d,c)}i.push(c)}return i}function dz(t,n,{clamp:r=!0,ease:i,mixer:s}={}){const a=t.length;if(l4(a===n.length),a===1)return()=>n[0];if(a===2&&t[0]===t[1])return()=>n[1];t[0]>t[a-1]&&(t=[...t].reverse(),n=[...n].reverse());const o=uz(n,i,s),c=o.length,d=h=>{let f=0;if(c>1)for(;f<t.length-2&&!(h<t[f+1]);f++);const m=dl(t[f],t[f+1],h);return o[f](m)};return r?h=>d(Gi(t[0],t[a-1],h)):d}function hz(t,n){const r=t[t.length-1];for(let i=1;i<=n;i++){const s=dl(0,n,i);t.push(Gt(r,1,s))}}function fz(t){const n=[0];return hz(n,t.length-1),n}function mz(t,n){return t.map(r=>r*n)}function pz(t,n){return t.map(()=>n||dE).splice(0,t.length-1)}function Kh({duration:t=300,keyframes:n,times:r,ease:i="easeInOut"}){const s=lz(i)?i.map(ek):ek(i),a={done:!1,value:n[0]},o=mz(r&&r.length===n.length?r:fz(n),t),c=dz(o,n,{ease:Array.isArray(s)?s:pz(n,s)});return{calculatedDuration:t,next:d=>(a.value=c(d),a.done=d>=t,a)}}const gz=t=>{const n=({timestamp:r})=>t(r);return{start:()=>zt.update(n,!0),stop:()=>Ws(n),now:()=>kn.isProcessing?kn.timestamp:xi.now()}},xz={decay:ZN,inertia:ZN,tween:Kh,keyframes:Kh,spring:uE},yz=t=>t/100;class Gv extends aE{constructor(n){super(n),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:d}=this.options;d&&d()};const{name:r,motionValue:i,element:s,keyframes:a}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Uv,c=(d,h)=>this.onKeyframesResolved(d,h);this.resolver=new o(a,c,r,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(n){const{type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=this.options,c=Rv(r)?r:xz[r]||Kh;let d,h;c!==Kh&&typeof n[0]!="number"&&(d=Du(yz,lE(n[0],n[1])),n=[0,100]);const f=c({...this.options,keyframes:n});a==="mirror"&&(h=c({...this.options,keyframes:[...n].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=E4(f));const{calculatedDuration:m}=f,p=m+s,g=p*(i+1)-s;return{generator:f,mirroredGenerator:h,mapPercentToKeyframes:d,calculatedDuration:m,resolvedDuration:p,totalDuration:g}}onPostResolved(){const{autoplay:n=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!n?this.pause():this.state=this.pendingPlayState}tick(n,r=!1){const{resolved:i}=this;if(!i){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:s,generator:a,mirroredGenerator:o,mapPercentToKeyframes:c,keyframes:d,calculatedDuration:h,totalDuration:f,resolvedDuration:m}=i;if(this.startTime===null)return a.next(0);const{delay:p,repeat:g,repeatType:b,repeatDelay:j,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-f/this.speed,this.startTime)),r?this.currentTime=n:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(n-this.startTime)*this.speed;const x=this.currentTime-p*(this.speed>=0?1:-1),N=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let w=this.currentTime,k=a;if(g){const C=Math.min(this.currentTime,f)/m;let B=Math.floor(C),D=C%1;!D&&C>=1&&(D=1),D===1&&B--,B=Math.min(B,g+1),!!(B%2)&&(b==="reverse"?(D=1-D,j&&(D-=j/m)):b==="mirror"&&(k=o)),w=Gi(0,1,D)*m}const A=N?{done:!1,value:d[0]}:k.next(w);c&&(A.value=c(A.value));let{done:S}=A;!N&&h!==null&&(S=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return E&&s!==void 0&&(A.value=Nf(d,this.options,s)),y&&y(A.value),E&&this.finish(),A}get duration(){const{resolved:n}=this;return n?$i(n.calculatedDuration):0}get time(){return $i(this.currentTime)}set time(n){n=Ui(n),this.currentTime=n,this.holdTime!==null||this.speed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.speed)}get speed(){return this.playbackSpeed}set speed(n){const r=this.playbackSpeed!==n;this.playbackSpeed=n,r&&(this.time=$i(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:n=gz,onPlay:r,startTime:i}=this.options;this.driver||(this.driver=n(a=>this.tick(a))),r&&r();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var n;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(n=this.currentTime)!==null&&n!==void 0?n:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:n}=this.options;n&&n()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}}const vz=new Set(["opacity","clipPath","filter","transform"]);function bz(t,n,r,{delay:i=0,duration:s=300,repeat:a=0,repeatType:o="loop",ease:c="easeInOut",times:d}={}){const h={[n]:r};d&&(h.offset=d);const f=O4(c,s);return Array.isArray(f)&&(h.easing=f),t.animate(h,{delay:i,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const jz=vv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gh=10,wz=2e4;function Nz(t){return Rv(t.type)||t.type==="spring"||!P4(t.ease)}function kz(t,n){const r=new Gv({...n,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let a=0;for(;!i.done&&a<wz;)i=r.sample(a),s.push(i.value),a+=Gh;return{times:void 0,keyframes:s,duration:a-Gh,ease:"linear"}}const hE={anticipate:U4,backInOut:V4,circInOut:H4};function _z(t){return t in hE}class tk extends aE{constructor(n){super(n);const{name:r,motionValue:i,element:s,keyframes:a}=this.options;this.resolver=new sE(a,(o,c)=>this.onKeyframesResolved(o,c),r,i,s),this.resolver.scheduleResolve()}initPlayback(n,r){var i;let{duration:s=300,times:a,ease:o,type:c,motionValue:d,name:h,startTime:f}=this.options;if(!(!((i=d.owner)===null||i===void 0)&&i.current))return!1;if(typeof o=="string"&&Hh()&&_z(o)&&(o=hE[o]),Nz(this.options)){const{onComplete:p,onUpdate:g,motionValue:b,element:j,...y}=this.options,x=kz(n,y);n=x.keyframes,n.length===1&&(n[1]=n[0]),s=x.duration,a=x.times,o=x.ease,c="keyframes"}const m=bz(d.owner.current,h,n,{...this.options,duration:s,times:a,ease:o});return m.startTime=f??this.calcStartTime(),this.pendingTimeline?(BN(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:p}=this.options;d.set(Nf(n,this.options,r)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:s,times:a,type:c,ease:o,keyframes:n}}get duration(){const{resolved:n}=this;if(!n)return 0;const{duration:r}=n;return $i(r)}get time(){const{resolved:n}=this;if(!n)return 0;const{animation:r}=n;return $i(r.currentTime||0)}set time(n){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.currentTime=Ui(n)}get speed(){const{resolved:n}=this;if(!n)return 1;const{animation:r}=n;return r.playbackRate}set speed(n){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.playbackRate=n}get state(){const{resolved:n}=this;if(!n)return"idle";const{animation:r}=n;return r.playState}get startTime(){const{resolved:n}=this;if(!n)return null;const{animation:r}=n;return r.startTime}attachTimeline(n){if(!this._resolved)this.pendingTimeline=n;else{const{resolved:r}=this;if(!r)return fr;const{animation:i}=r;BN(i,n)}return fr}play(){if(this.isStopped)return;const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:n}=this;if(!n)return;const{animation:r,keyframes:i,duration:s,type:a,ease:o,times:c}=n;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:f,onComplete:m,element:p,...g}=this.options,b=new Gv({...g,keyframes:i,duration:s,type:a,ease:o,times:c,isGenerator:!0}),j=Ui(this.time);h.setWithVelocity(b.sample(j-Gh).value,b.sample(j).value,Gh)}const{onStop:d}=this.options;d&&d(),this.cancel()}complete(){const{resolved:n}=this;n&&n.animation.finish()}cancel(){const{resolved:n}=this;n&&n.animation.cancel()}static supports(n){const{motionValue:r,name:i,repeatDelay:s,repeatType:a,damping:o,type:c}=n;return jz()&&i&&vz.has(i)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!s&&a!=="mirror"&&o!==0&&c!=="inertia"}}const Sz={type:"spring",stiffness:500,damping:25,restSpeed:10},Az=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Cz={type:"keyframes",duration:.8},Ez={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tz=(t,{keyframes:n})=>n.length>2?Cz:eo.has(t)?t.startsWith("scale")?Az(n[1]):Sz:Ez;function Pz({when:t,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:s,repeat:a,repeatType:o,repeatDelay:c,from:d,elapsed:h,...f}){return!!Object.keys(f).length}const Qv=(t,n,r,i={},s,a)=>o=>{const c=Iv(i,t)||{},d=c.delay||i.delay||0;let{elapsed:h=0}=i;h=h-Ui(d);let f={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:n.getVelocity(),...c,delay:-h,onUpdate:p=>{n.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:t,motionValue:n,element:a?void 0:s};Pz(c)||(f={...f,...Tz(t,f)}),f.duration&&(f.duration=Ui(f.duration)),f.repeatDelay&&(f.repeatDelay=Ui(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let m=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(m=!0)),m&&!a&&n.get()!==void 0){const p=Nf(f.keyframes,c);if(p!==void 0)return zt.update(()=>{f.onUpdate(p),f.onComplete()}),new QB([])}return!a&&tk.supports(f)?new tk(f):new Gv(f)};function Oz({protectedKeys:t,needsAnimating:n},r){const i=t.hasOwnProperty(r)&&n[r]!==!0;return n[r]=!1,i}function fE(t,n,{delay:r=0,transitionOverride:i,type:s}={}){var a;let{transition:o=t.getDefaultTransition(),transitionEnd:c,...d}=n;i&&(o=i);const h=[],f=s&&t.animationState&&t.animationState.getState()[s];for(const m in d){const p=t.getValue(m,(a=t.latestValues[m])!==null&&a!==void 0?a:null),g=d[m];if(g===void 0||f&&Oz(f,m))continue;const b={delay:r,...Iv(o||{},m)};let j=!1;if(window.MotionHandoffAnimation){const x=M4(t);if(x){const N=window.MotionHandoffAnimation(x,m,zt);N!==null&&(b.startTime=N,j=!0)}}oy(t,m),p.start(Qv(m,p,g,t.shouldReduceMotion&&eo.has(m)?{type:!1}:b,t,j));const y=p.animation;y&&h.push(y)}return c&&Promise.all(h).then(()=>{zt.update(()=>{c&&c7(t,c)})}),h}function my(t,n,r={}){var i;const s=wf(t,n,r.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:a=t.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(a=r.transitionOverride);const o=s?()=>Promise.all(fE(t,s,r)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:f=0,staggerChildren:m,staggerDirection:p}=a;return Dz(t,n,f+h,m,p,r)}:()=>Promise.resolve(),{when:d}=a;if(d){const[h,f]=d==="beforeChildren"?[o,c]:[c,o];return h().then(()=>f())}else return Promise.all([o(),c(r.delay)])}function Dz(t,n,r=0,i=0,s=1,a){const o=[],c=(t.variantChildren.size-1)*i,d=s===1?(h=0)=>h*i:(h=0)=>c-h*i;return Array.from(t.variantChildren).sort(Iz).forEach((h,f)=>{h.notify("AnimationStart",n),o.push(my(h,n,{...a,delay:r+d(f)}).then(()=>h.notify("AnimationComplete",n)))}),Promise.all(o)}function Iz(t,n){return t.sortNodePosition(n)}function Rz(t,n,r={}){t.notify("AnimationStart",n);let i;if(Array.isArray(n)){const s=n.map(a=>my(t,a,r));i=Promise.all(s)}else if(typeof n=="string")i=my(t,n,r);else{const s=typeof n=="function"?wf(t,n,r.custom):n;i=Promise.all(fE(t,s,r))}return i.then(()=>{t.notify("AnimationComplete",n)})}const Fz=wv.length;function mE(t){if(!t)return;if(!t.isControllingVariants){const r=t.parent?mE(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}const n={};for(let r=0;r<Fz;r++){const i=wv[r],s=t.props[i];(iu(s)||s===!1)&&(n[i]=s)}return n}const Mz=[...jv].reverse(),Lz=jv.length;function Bz(t){return n=>Promise.all(n.map(({animation:r,options:i})=>Rz(t,r,i)))}function zz(t){let n=Bz(t),r=nk(),i=!0;const s=d=>(h,f)=>{var m;const p=wf(t,f,d==="exit"?(m=t.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:g,transitionEnd:b,...j}=p;h={...h,...j,...b}}return h};function a(d){n=d(t)}function o(d){const{props:h}=t,f=mE(t.parent)||{},m=[],p=new Set;let g={},b=1/0;for(let y=0;y<Lz;y++){const x=Mz[y],N=r[x],w=h[x]!==void 0?h[x]:f[x],k=iu(w),A=x===d?N.isActive:null;A===!1&&(b=y);let S=w===f[x]&&w!==h[x]&&k;if(S&&i&&t.manuallyAnimateOnMount&&(S=!1),N.protectedKeys={...g},!N.isActive&&A===null||!w&&!N.prevProp||bf(w)||typeof w=="boolean")continue;const E=qz(N.prevProp,w);let C=E||x===d&&N.isActive&&!S&&k||y>b&&k,B=!1;const D=Array.isArray(w)?w:[w];let F=D.reduce(s(x),{});A===!1&&(F={});const{prevResolvedValues:R={}}=N,z={...R,...F},q=H=>{C=!0,p.has(H)&&(B=!0,p.delete(H)),N.needsAnimating[H]=!0;const K=t.getValue(H);K&&(K.liveStyle=!1)};for(const H in z){const K=F[H],Y=R[H];if(g.hasOwnProperty(H))continue;let O=!1;iy(K)&&iy(Y)?O=!C4(K,Y):O=K!==Y,O?K!=null?q(H):p.add(H):K!==void 0&&p.has(H)?q(H):N.protectedKeys[H]=!0}N.prevProp=w,N.prevResolvedValues=F,N.isActive&&(g={...g,...F}),i&&t.blockInitialAnimation&&(C=!1),C&&(!(S&&E)||B)&&m.push(...D.map(H=>({animation:H,options:{type:x}})))}if(p.size){const y={};p.forEach(x=>{const N=t.getBaseTarget(x),w=t.getValue(x);w&&(w.liveStyle=!0),y[x]=N??null}),m.push({animation:y})}let j=!!m.length;return i&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(j=!1),i=!1,j?n(m):Promise.resolve()}function c(d,h){var f;if(r[d].isActive===h)return Promise.resolve();(f=t.variantChildren)===null||f===void 0||f.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(d,h)}),r[d].isActive=h;const m=o(d);for(const p in r)r[p].protectedKeys={};return m}return{animateChanges:o,setActive:c,setAnimateFunction:a,getState:()=>r,reset:()=>{r=nk(),i=!0}}}function qz(t,n){return typeof n=="string"?n!==t:Array.isArray(n)?!C4(n,t):!1}function ya(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nk(){return{animate:ya(!0),whileInView:ya(),whileHover:ya(),whileTap:ya(),whileDrag:ya(),whileFocus:ya(),exit:ya()}}class Xs{constructor(n){this.isMounted=!1,this.node=n}update(){}}class Vz extends Xs{constructor(n){super(n),n.animationState||(n.animationState=zz(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();bf(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:r}=this.node.prevProps||{};n!==r&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)===null||n===void 0||n.call(this)}}let Uz=0;class $z extends Xs{constructor(){super(...arguments),this.id=Uz++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===i)return;const s=this.node.animationState.setActive("exit",!n);r&&!n&&s.then(()=>r(this.id))}mount(){const{register:n}=this.node.presenceContext||{};n&&(this.unmount=n(this.id))}unmount(){}}const Hz={animation:{Feature:Vz},exit:{Feature:$z}};function lu(t,n,r,i={passive:!0}){return t.addEventListener(n,r,i),()=>t.removeEventListener(n,r)}function Iu(t){return{point:{x:t.pageX,y:t.pageY}}}const Wz=t=>n=>Mv(n)&&t(n,Iu(n));function Uc(t,n,r,i){return lu(t,n,Wz(r),i)}const rk=(t,n)=>Math.abs(t-n);function Kz(t,n){const r=rk(t.x,n.x),i=rk(t.y,n.y);return Math.sqrt(r**2+i**2)}class pE{constructor(n,r,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=og(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=Kz(m.offset,{x:0,y:0})>=3;if(!p&&!g)return;const{point:b}=m,{timestamp:j}=kn;this.history.push({...b,timestamp:j});const{onStart:y,onMove:x}=this.handlers;p||(y&&y(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=ag(p,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:g,onSessionEnd:b,resumeAnimation:j}=this.handlers;if(this.dragSnapToOrigin&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=og(m.type==="pointercancel"?this.lastMoveEventInfo:ag(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(m,y),b&&b(m,y)},!Mv(n))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=i,this.contextWindow=s||window;const o=Iu(n),c=ag(o,this.transformPagePoint),{point:d}=c,{timestamp:h}=kn;this.history=[{...d,timestamp:h}];const{onSessionStart:f}=r;f&&f(n,og(c,this.history)),this.removeListeners=Du(Uc(this.contextWindow,"pointermove",this.handlePointerMove),Uc(this.contextWindow,"pointerup",this.handlePointerUp),Uc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),Ws(this.updatePoint)}}function ag(t,n){return n?{point:n(t.point)}:t}function ik(t,n){return{x:t.x-n.x,y:t.y-n.y}}function og({point:t},n){return{point:t,delta:ik(t,gE(n)),offset:ik(t,Gz(n)),velocity:Qz(n,.1)}}function Gz(t){return t[0]}function gE(t){return t[t.length-1]}function Qz(t,n){if(t.length<2)return{x:0,y:0};let r=t.length-1,i=null;const s=gE(t);for(;r>=0&&(i=t[r],!(s.timestamp-i.timestamp>Ui(n)));)r--;if(!i)return{x:0,y:0};const a=$i(s.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const o={x:(s.x-i.x)/a,y:(s.y-i.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const xE=1e-4,Yz=1-xE,Xz=1+xE,yE=.01,Jz=0-yE,Zz=0+yE;function gr(t){return t.max-t.min}function e9(t,n,r){return Math.abs(t-n)<=r}function sk(t,n,r,i=.5){t.origin=i,t.originPoint=Gt(n.min,n.max,t.origin),t.scale=gr(r)/gr(n),t.translate=Gt(r.min,r.max,t.origin)-t.originPoint,(t.scale>=Yz&&t.scale<=Xz||isNaN(t.scale))&&(t.scale=1),(t.translate>=Jz&&t.translate<=Zz||isNaN(t.translate))&&(t.translate=0)}function $c(t,n,r,i){sk(t.x,n.x,r.x,i?i.originX:void 0),sk(t.y,n.y,r.y,i?i.originY:void 0)}function ak(t,n,r){t.min=r.min+n.min,t.max=t.min+gr(n)}function t9(t,n,r){ak(t.x,n.x,r.x),ak(t.y,n.y,r.y)}function ok(t,n,r){t.min=n.min-r.min,t.max=t.min+gr(n)}function Hc(t,n,r){ok(t.x,n.x,r.x),ok(t.y,n.y,r.y)}function n9(t,{min:n,max:r},i){return n!==void 0&&t<n?t=i?Gt(n,t,i.min):Math.max(t,n):r!==void 0&&t>r&&(t=i?Gt(r,t,i.max):Math.min(t,r)),t}function lk(t,n,r){return{min:n!==void 0?t.min+n:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function r9(t,{top:n,left:r,bottom:i,right:s}){return{x:lk(t.x,r,s),y:lk(t.y,n,i)}}function ck(t,n){let r=n.min-t.min,i=n.max-t.max;return n.max-n.min<t.max-t.min&&([r,i]=[i,r]),{min:r,max:i}}function i9(t,n){return{x:ck(t.x,n.x),y:ck(t.y,n.y)}}function s9(t,n){let r=.5;const i=gr(t),s=gr(n);return s>i?r=dl(n.min,n.max-i,t.min):i>s&&(r=dl(t.min,t.max-s,n.min)),Gi(0,1,r)}function a9(t,n){const r={};return n.min!==void 0&&(r.min=n.min-t.min),n.max!==void 0&&(r.max=n.max-t.min),r}const py=.35;function o9(t=py){return t===!1?t=0:t===!0&&(t=py),{x:uk(t,"left","right"),y:uk(t,"top","bottom")}}function uk(t,n,r){return{min:dk(t,n),max:dk(t,r)}}function dk(t,n){return typeof t=="number"?t:t[n]||0}const hk=()=>({translate:0,scale:1,origin:0,originPoint:0}),qo=()=>({x:hk(),y:hk()}),fk=()=>({min:0,max:0}),rn=()=>({x:fk(),y:fk()});function kr(t){return[t("x"),t("y")]}function vE({top:t,left:n,right:r,bottom:i}){return{x:{min:n,max:r},y:{min:t,max:i}}}function l9({x:t,y:n}){return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function c9(t,n){if(!n)return t;const r=n({x:t.left,y:t.top}),i=n({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function lg(t){return t===void 0||t===1}function gy({scale:t,scaleX:n,scaleY:r}){return!lg(t)||!lg(n)||!lg(r)}function ba(t){return gy(t)||bE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function bE(t){return mk(t.x)||mk(t.y)}function mk(t){return t&&t!=="0%"}function Qh(t,n,r){const i=t-r,s=n*i;return r+s}function pk(t,n,r,i,s){return s!==void 0&&(t=Qh(t,s,i)),Qh(t,r,i)+n}function xy(t,n=0,r=1,i,s){t.min=pk(t.min,n,r,i,s),t.max=pk(t.max,n,r,i,s)}function jE(t,{x:n,y:r}){xy(t.x,n.translate,n.scale,n.originPoint),xy(t.y,r.translate,r.scale,r.originPoint)}const gk=.999999999999,xk=1.0000000000001;function u9(t,n,r,i=!1){const s=r.length;if(!s)return;n.x=n.y=1;let a,o;for(let c=0;c<s;c++){a=r[c],o=a.projectionDelta;const{visualElement:d}=a.options;d&&d.props.style&&d.props.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Uo(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(n.x*=o.x.scale,n.y*=o.y.scale,jE(t,o)),i&&ba(a.latestValues)&&Uo(t,a.latestValues))}n.x<xk&&n.x>gk&&(n.x=1),n.y<xk&&n.y>gk&&(n.y=1)}function Vo(t,n){t.min=t.min+n,t.max=t.max+n}function yk(t,n,r,i,s=.5){const a=Gt(t.min,t.max,s);xy(t,n,r,a,i)}function Uo(t,n){yk(t.x,n.x,n.scaleX,n.scale,n.originX),yk(t.y,n.y,n.scaleY,n.scale,n.originY)}function wE(t,n){return vE(c9(t.getBoundingClientRect(),n))}function d9(t,n,r){const i=wE(t,r),{scroll:s}=n;return s&&(Vo(i.x,s.offset.x),Vo(i.y,s.offset.y)),i}const NE=({current:t})=>t?t.ownerDocument.defaultView:null,h9=new WeakMap;class f9{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rn(),this.visualElement=n}start(n,{snapToCursor:r=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Iu(f).point)},a=(f,m)=>{const{drag:p,dragPropagation:g,onDragStart:b}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=i7(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),kr(y=>{let x=this.getAxisMotionValue(y).get()||0;if(gi.test(x)){const{projection:N}=this.visualElement;if(N&&N.layout){const w=N.layout.layoutBox[y];w&&(x=gr(w)*(parseFloat(x)/100))}}this.originPoint[y]=x}),b&&zt.postRender(()=>b(f,m)),oy(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},o=(f,m)=>{const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:b,onDrag:j}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=m;if(g&&this.currentDirection===null){this.currentDirection=m9(y),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",m.point,y),this.updateAxis("y",m.point,y),this.visualElement.render(),j&&j(f,m)},c=(f,m)=>this.stop(f,m),d=()=>kr(f=>{var m;return this.getAnimationState(f)==="paused"&&((m=this.getAxisMotionValue(f).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new pE(n,{onSessionStart:s,onStart:a,onMove:o,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:NE(this.visualElement)})}stop(n,r){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&zt.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;const{projection:n,animationState:r}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(n,r,i){const{drag:s}=this.getProps();if(!i||!ah(n,s,this.currentDirection))return;const a=this.getAxisMotionValue(n);let o=this.originPoint[n]+i[n];this.constraints&&this.constraints[n]&&(o=n9(o,this.constraints[n],this.elastic[n])),a.set(o)}resolveConstraints(){var n;const{dragConstraints:r,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(n=this.visualElement.projection)===null||n===void 0?void 0:n.layout,a=this.constraints;r&&Bo(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&s?this.constraints=r9(s.layoutBox,r):this.constraints=!1,this.elastic=o9(i),a!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&kr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=a9(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:r}=this.getProps();if(!n||!Bo(n))return!1;const i=n.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const a=d9(i,s.root,this.visualElement.getTransformPagePoint());let o=i9(s.layout.layoutBox,a);if(r){const c=r(l9(o));this.hasMutatedConstraints=!!c,c&&(o=vE(c))}return o}startAnimation(n){const{drag:r,dragMomentum:i,dragElastic:s,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},h=kr(f=>{if(!ah(f,r,this.currentDirection))return;let m=d&&d[f]||{};o&&(m={min:0,max:0});const p=s?200:1e6,g=s?40:1e7,b={type:"inertia",velocity:i?n[f]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(f,b)});return Promise.all(h).then(c)}startAxisValueAnimation(n,r){const i=this.getAxisMotionValue(n);return oy(this.visualElement,n),i.start(Qv(n,i,0,r,this.visualElement,!1))}stopAnimation(){kr(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){kr(n=>{var r;return(r=this.getAxisMotionValue(n).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(n){var r;return(r=this.getAxisMotionValue(n).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(n){const r=`_drag${n.toUpperCase()}`,i=this.visualElement.getProps(),s=i[r];return s||this.visualElement.getValue(n,(i.initial?i.initial[n]:void 0)||0)}snapToCursor(n){kr(r=>{const{drag:i}=this.getProps();if(!ah(r,i,this.currentDirection))return;const{projection:s}=this.visualElement,a=this.getAxisMotionValue(r);if(s&&s.layout){const{min:o,max:c}=s.layout.layoutBox[r];a.set(n[r]-Gt(o,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!Bo(r)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};kr(o=>{const c=this.getAxisMotionValue(o);if(c&&this.constraints!==!1){const d=c.get();s[o]=s9({min:d,max:d},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),kr(o=>{if(!ah(o,n,null))return;const c=this.getAxisMotionValue(o),{min:d,max:h}=this.constraints[o];c.set(Gt(d,h,s[o]))})}addListeners(){if(!this.visualElement.current)return;h9.set(this.visualElement,this);const n=this.visualElement.current,r=Uc(n,"pointerdown",d=>{const{drag:h,dragListener:f=!0}=this.getProps();h&&f&&this.start(d)}),i=()=>{const{dragConstraints:d}=this.getProps();Bo(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,a=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),zt.read(i);const o=lu(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(kr(f=>{const m=this.getAxisMotionValue(f);m&&(this.originPoint[f]+=d[f].translate,m.set(m.get()+d[f].translate))}),this.visualElement.render())}));return()=>{o(),r(),a(),c&&c()}}getProps(){const n=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:a=!1,dragElastic:o=py,dragMomentum:c=!0}=n;return{...n,drag:r,dragDirectionLock:i,dragPropagation:s,dragConstraints:a,dragElastic:o,dragMomentum:c}}}function ah(t,n,r){return(n===!0||n===t)&&(r===null||r===t)}function m9(t,n=10){let r=null;return Math.abs(t.y)>n?r="y":Math.abs(t.x)>n&&(r="x"),r}class p9 extends Xs{constructor(n){super(n),this.removeGroupControls=fr,this.removeListeners=fr,this.controls=new f9(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fr}unmount(){this.removeGroupControls(),this.removeListeners()}}const vk=t=>(n,r)=>{t&&zt.postRender(()=>t(n,r))};class g9 extends Xs{constructor(){super(...arguments),this.removePointerDownListener=fr}onPointerDown(n){this.session=new pE(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:NE(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:r,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:vk(n),onStart:vk(r),onMove:i,onEnd:(a,o)=>{delete this.session,s&&zt.postRender(()=>s(a,o))}}}mount(){this.removePointerDownListener=Uc(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function x9(){const t=I.useContext(yf);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=I.useId();I.useEffect(()=>i(s),[]);const a=I.useCallback(()=>r&&r(s),[s,r]);return!n&&r?[!1,a]:[!0]}const Ph={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function bk(t,n){return n.max===n.min?0:t/(n.max-n.min)*100}const jc={correct:(t,n)=>{if(!n.target)return t;if(typeof t=="string")if(Ye.test(t))t=parseFloat(t);else return t;const r=bk(t,n.target.x),i=bk(t,n.target.y);return`${r}% ${i}%`}},y9={correct:(t,{treeScale:n,projectionDelta:r})=>{const i=t,s=Ks.parse(t);if(s.length>5)return i;const a=Ks.createTransformer(t),o=typeof s[0]!="number"?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+o]/=c,s[1+o]/=d;const h=Gt(c,d,.5);return typeof s[2+o]=="number"&&(s[2+o]/=h),typeof s[3+o]=="number"&&(s[3+o]/=h),a(s)}};class v9 extends I.Component{componentDidMount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:i,layoutId:s}=this.props,{projection:a}=n;jB(b9),a&&(r.group&&r.group.add(a),i&&i.register&&s&&i.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Ph.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:r,visualElement:i,drag:s,isPresent:a}=this.props,o=i.projection;return o&&(o.isPresent=a,s||n.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),n.isPresent!==a&&(a?o.promote():o.relegate()||zt.postRender(()=>{const c=o.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),kv.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:i}=this.props,{projection:s}=n;s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function kE(t){const[n,r]=x9(),i=I.useContext(yv);return e.jsx(v9,{...t,layoutGroup:i,switchLayoutGroup:I.useContext(p4),isPresent:n,safeToRemove:r})}const b9={borderRadius:{...jc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:jc,borderTopRightRadius:jc,borderBottomLeftRadius:jc,borderBottomRightRadius:jc,boxShadow:y9};function j9(t,n,r){const i=In(t)?t:au(t);return i.start(Qv("",i,n,r)),i.animation}function w9(t){return t instanceof SVGElement&&t.tagName!=="svg"}const N9=(t,n)=>t.depth-n.depth;class k9{constructor(){this.children=[],this.isDirty=!1}add(n){Lv(this.children,n),this.isDirty=!0}remove(n){Bv(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(N9),this.isDirty=!1,this.children.forEach(n)}}function _9(t,n){const r=xi.now(),i=({timestamp:s})=>{const a=s-r;a>=n&&(Ws(i),t(a-n))};return zt.read(i,!0),()=>Ws(i)}const _E=["TopLeft","TopRight","BottomLeft","BottomRight"],S9=_E.length,jk=t=>typeof t=="string"?parseFloat(t):t,wk=t=>typeof t=="number"||Ye.test(t);function A9(t,n,r,i,s,a){s?(t.opacity=Gt(0,r.opacity!==void 0?r.opacity:1,C9(i)),t.opacityExit=Gt(n.opacity!==void 0?n.opacity:1,0,E9(i))):a&&(t.opacity=Gt(n.opacity!==void 0?n.opacity:1,r.opacity!==void 0?r.opacity:1,i));for(let o=0;o<S9;o++){const c=`border${_E[o]}Radius`;let d=Nk(n,c),h=Nk(r,c);if(d===void 0&&h===void 0)continue;d||(d=0),h||(h=0),d===0||h===0||wk(d)===wk(h)?(t[c]=Math.max(Gt(jk(d),jk(h),i),0),(gi.test(h)||gi.test(d))&&(t[c]+="%")):t[c]=h}(n.rotate||r.rotate)&&(t.rotate=Gt(n.rotate||0,r.rotate||0,i))}function Nk(t,n){return t[n]!==void 0?t[n]:t.borderRadius}const C9=SE(0,.5,$4),E9=SE(.5,.95,fr);function SE(t,n,r){return i=>i<t?0:i>n?1:r(dl(t,n,i))}function kk(t,n){t.min=n.min,t.max=n.max}function Nr(t,n){kk(t.x,n.x),kk(t.y,n.y)}function _k(t,n){t.translate=n.translate,t.scale=n.scale,t.originPoint=n.originPoint,t.origin=n.origin}function Sk(t,n,r,i,s){return t-=n,t=Qh(t,1/r,i),s!==void 0&&(t=Qh(t,1/s,i)),t}function T9(t,n=0,r=1,i=.5,s,a=t,o=t){if(gi.test(n)&&(n=parseFloat(n),n=Gt(o.min,o.max,n/100)-o.min),typeof n!="number")return;let c=Gt(a.min,a.max,i);t===a&&(c-=n),t.min=Sk(t.min,n,r,c,s),t.max=Sk(t.max,n,r,c,s)}function Ak(t,n,[r,i,s],a,o){T9(t,n[r],n[i],n[s],n.scale,a,o)}const P9=["x","scaleX","originX"],O9=["y","scaleY","originY"];function Ck(t,n,r,i){Ak(t.x,n,P9,r?r.x:void 0,i?i.x:void 0),Ak(t.y,n,O9,r?r.y:void 0,i?i.y:void 0)}function Ek(t){return t.translate===0&&t.scale===1}function AE(t){return Ek(t.x)&&Ek(t.y)}function Tk(t,n){return t.min===n.min&&t.max===n.max}function D9(t,n){return Tk(t.x,n.x)&&Tk(t.y,n.y)}function Pk(t,n){return Math.round(t.min)===Math.round(n.min)&&Math.round(t.max)===Math.round(n.max)}function CE(t,n){return Pk(t.x,n.x)&&Pk(t.y,n.y)}function Ok(t){return gr(t.x)/gr(t.y)}function Dk(t,n){return t.translate===n.translate&&t.scale===n.scale&&t.originPoint===n.originPoint}class I9{constructor(){this.members=[]}add(n){Lv(this.members,n),n.scheduleRender()}remove(n){if(Bv(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(n){const r=this.members.findIndex(s=>n===s);if(r===0)return!1;let i;for(let s=r;s>=0;s--){const a=this.members[s];if(a.isPresent!==!1){i=a;break}}return i?(this.promote(i),!0):!1}promote(n,r){const i=this.lead;if(n!==i&&(this.prevLead=i,this.lead=n,n.show(),i)){i.instance&&i.scheduleRender(),n.scheduleRender(),n.resumeFrom=i,r&&(n.resumeFrom.preserveOpacity=!0),i.snapshot&&(n.snapshot=i.snapshot,n.snapshot.latestValues=i.animationValues||i.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0);const{crossfade:s}=n.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:r,resumingFrom:i}=n;r.onExitComplete&&r.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function R9(t,n,r){let i="";const s=t.x.translate/n.x,a=t.y.translate/n.y,o=(r==null?void 0:r.z)||0;if((s||a||o)&&(i=`translate3d(${s}px, ${a}px, ${o}px) `),(n.x!==1||n.y!==1)&&(i+=`scale(${1/n.x}, ${1/n.y}) `),r){const{transformPerspective:h,rotate:f,rotateX:m,rotateY:p,skewX:g,skewY:b}=r;h&&(i=`perspective(${h}px) ${i}`),f&&(i+=`rotate(${f}deg) `),m&&(i+=`rotateX(${m}deg) `),p&&(i+=`rotateY(${p}deg) `),g&&(i+=`skewX(${g}deg) `),b&&(i+=`skewY(${b}deg) `)}const c=t.x.scale*n.x,d=t.y.scale*n.y;return(c!==1||d!==1)&&(i+=`scale(${c}, ${d})`),i||"none"}const ja={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Rc=typeof window<"u"&&window.MotionDebug!==void 0,cg=["","X","Y","Z"],F9={visibility:"hidden"},Ik=1e3;let M9=0;function ug(t,n,r,i){const{latestValues:s}=n;s[t]&&(r[t]=s[t],n.setStaticValue(t,0),i&&(i[t]=0))}function EE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:n}=t.options;if(!n)return;const r=M4(n);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:s,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",zt,!(s||a))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&EE(i)}function TE({attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},c=n==null?void 0:n()){this.id=M9++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Rc&&(ja.totalNodes=ja.resolvedTargetDeltas=ja.recalculatedProjection=0),this.nodes.forEach(z9),this.nodes.forEach(H9),this.nodes.forEach(W9),this.nodes.forEach(q9),Rc&&window.MotionDebug.record(ja)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new k9)}addEventListener(o,c){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new zv),this.eventHandlers.get(o).add(c)}notifyListeners(o,...c){const d=this.eventHandlers.get(o);d&&d.notify(...c)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=w9(o),this.instance=o;const{layoutId:d,layout:h,visualElement:f}=this.options;if(f&&!f.current&&f.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(h||d)&&(this.isLayoutDirty=!0),t){let m;const p=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=_9(p,250),Ph.hasAnimatedSinceResize&&(Ph.hasAnimatedSinceResize=!1,this.nodes.forEach(Fk))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&f&&(d||h)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeTargetChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||f.getDefaultTransition()||X9,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=f.getProps(),N=!this.targetLayout||!CE(this.targetLayout,b)||g,w=!p&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,w);const k={...Iv(j,"layout"),onPlay:y,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else p||Fk(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ws(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(K9),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&EE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const m=this.path[f];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;if(c===void 0&&!d)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Rk);return}this.isUpdating||this.nodes.forEach(U9),this.isUpdating=!1,this.nodes.forEach($9),this.nodes.forEach(L9),this.nodes.forEach(B9),this.clearAllSnapshots();const c=xi.now();kn.delta=Gi(0,1e3/60,c-kn.timestamp),kn.timestamp=c,kn.isProcessing=!0,eg.update.process(kn),eg.preRender.process(kn),eg.render.process(kn),kn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,kv.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(V9),this.sharedNodes.forEach(G9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(c=!1),c){const d=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:d,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!AE(this.projectionDelta),d=this.getTransformTemplate(),h=d?d(this.latestValues,""):void 0,f=h!==this.prevTransformTemplateValue;o&&(c||ba(this.latestValues)||f)&&(s(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return o&&(d=this.removeTransform(d)),J9(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:c}=this.options;if(!c)return rn();const d=c.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(Z9))){const{scroll:f}=this.root;f&&(Vo(d.x,f.offset.x),Vo(d.y,f.offset.y))}return d}removeElementScroll(o){var c;const d=rn();if(Nr(d,o),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return d;for(let h=0;h<this.path.length;h++){const f=this.path[h],{scroll:m,options:p}=f;f!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&Nr(d,o),Vo(d.x,m.offset.x),Vo(d.y,m.offset.y))}return d}applyTransform(o,c=!1){const d=rn();Nr(d,o);for(let h=0;h<this.path.length;h++){const f=this.path[h];!c&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Uo(d,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),ba(f.latestValues)&&Uo(d,f.latestValues)}return ba(this.latestValues)&&Uo(d,this.latestValues),d}removeTransform(o){const c=rn();Nr(c,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];if(!h.instance||!ba(h.latestValues))continue;gy(h.latestValues)&&h.updateSnapshot();const f=rn(),m=h.measurePageBox();Nr(f,m),Ck(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,f)}return ba(this.latestValues)&&Ck(c,this.latestValues),c}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==kn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var c;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==d;if(!(o||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=kn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rn(),this.relativeTargetOrigin=rn(),Hc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=rn(),this.targetWithTransforms=rn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),t9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Nr(this.target,this.layout.layoutBox),jE(this.target,this.targetDelta)):Nr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rn(),this.relativeTargetOrigin=rn(),Hc(this.relativeTargetOrigin,this.target,g.target),Nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Rc&&ja.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||gy(this.parent.latestValues)||bE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let h=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(h=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===kn.timestamp&&(h=!1),h)return;const{layout:f,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||m))return;Nr(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;u9(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=rn());const{target:b}=c;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_k(this.prevProjectionDelta.x,this.projectionDelta.x),_k(this.prevProjectionDelta.y,this.projectionDelta.y)),$c(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!Dk(this.projectionDelta.x,this.prevProjectionDelta.x)||!Dk(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),Rc&&ja.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),o){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=qo(),this.projectionDelta=qo(),this.projectionDeltaWithTransform=qo()}setAnimationOrigin(o,c=!1){const d=this.snapshot,h=d?d.latestValues:{},f={...this.latestValues},m=qo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=rn(),g=d?d.source:void 0,b=this.layout?this.layout.source:void 0,j=g!==b,y=this.getStack(),x=!y||y.members.length<=1,N=!!(j&&!x&&this.options.crossfade===!0&&!this.path.some(Y9));this.animationProgress=0;let w;this.mixTargetDelta=k=>{const A=k/1e3;Mk(m.x,o.x,A),Mk(m.y,o.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Q9(this.relativeTarget,this.relativeTargetOrigin,p,A),w&&D9(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=rn()),Nr(w,this.relativeTarget)),j&&(this.animationValues=f,A9(f,h,this.latestValues,A,N,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ws(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{Ph.hasAnimatedSinceResize=!0,this.currentAnimation=j9(0,Ik,{...o,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ik),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:c,target:d,layout:h,latestValues:f}=o;if(!(!c||!d||!h)){if(this!==o&&this.layout&&h&&PE(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||rn();const m=gr(this.layout.layoutBox.x);d.x.min=o.target.x.min,d.x.max=d.x.min+m;const p=gr(this.layout.layoutBox.y);d.y.min=o.target.y.min,d.y.max=d.y.min+p}Nr(c,d),Uo(c,f),$c(this.projectionDeltaWithTransform,this.layoutCorrected,c,f)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new I9),this.sharedNodes.get(o).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:c}=this.options;return c?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:c}=this.options;return c?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:c,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),o&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let c=!1;const{latestValues:d}=o;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const h={};d.z&&ug("z",o,h,this.animationValues);for(let f=0;f<cg.length;f++)ug(`rotate${cg[f]}`,o,h,this.animationValues),ug(`skew${cg[f]}`,o,h,this.animationValues);o.render();for(const f in h)o.setStaticValue(f,h[f]),this.animationValues&&(this.animationValues[f]=h[f]);o.scheduleRender()}getProjectionStyles(o){var c,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return F9;const h={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=Eh(o==null?void 0:o.pointerEvents)||"",h.transform=f?f(this.latestValues,""):"none",h;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const j={};return this.options.layoutId&&(j.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,j.pointerEvents=Eh(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!ba(this.latestValues)&&(j.transform=f?f({},""):"none",this.hasProjected=!1),j}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),h.transform=R9(this.projectionDeltaWithTransform,this.treeScale,p),f&&(h.transform=f(p,h.transform));const{x:g,y:b}=this.projectionDelta;h.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,m.animationValues?h.opacity=m===this?(d=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:h.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const j in $h){if(p[j]===void 0)continue;const{correct:y,applyTo:x}=$h[j],N=h.transform==="none"?p[j]:y(p[j],m);if(x){const w=x.length;for(let k=0;k<w;k++)h[x[k]]=N}else h[j]=N}return this.options.layoutId&&(h.pointerEvents=m===this?Eh(o==null?void 0:o.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var c;return(c=o.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Rk),this.root.sharedNodes.clear()}}}function L9(t){t.updateLayout()}function B9(t){var n;const r=((n=t.resumeFrom)===null||n===void 0?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:a}=t.options,o=r.source!==t.layout.source;a==="size"?kr(m=>{const p=o?r.measuredBox[m]:r.layoutBox[m],g=gr(p);p.min=i[m].min,p.max=p.min+g}):PE(a,r.layoutBox,i)&&kr(m=>{const p=o?r.measuredBox[m]:r.layoutBox[m],g=gr(i[m]);p.max=p.min+g,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+g)});const c=qo();$c(c,i,r.layoutBox);const d=qo();o?$c(d,t.applyTransform(s,!0),r.measuredBox):$c(d,i,r.layoutBox);const h=!AE(c);let f=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:g}=m;if(p&&g){const b=rn();Hc(b,r.layoutBox,p.layoutBox);const j=rn();Hc(j,i,g.layoutBox),CE(b,j)||(f=!0),m.options.layoutRoot&&(t.relativeTarget=j,t.relativeTargetOrigin=b,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:r,delta:d,layoutDelta:c,hasLayoutChanged:h,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function z9(t){Rc&&ja.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function q9(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function V9(t){t.clearSnapshot()}function Rk(t){t.clearMeasurements()}function U9(t){t.isLayoutDirty=!1}function $9(t){const{visualElement:n}=t.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),t.resetTransform()}function Fk(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function H9(t){t.resolveTargetDelta()}function W9(t){t.calcProjection()}function K9(t){t.resetSkewAndRotation()}function G9(t){t.removeLeadSnapshot()}function Mk(t,n,r){t.translate=Gt(n.translate,0,r),t.scale=Gt(n.scale,1,r),t.origin=n.origin,t.originPoint=n.originPoint}function Lk(t,n,r,i){t.min=Gt(n.min,r.min,i),t.max=Gt(n.max,r.max,i)}function Q9(t,n,r,i){Lk(t.x,n.x,r.x,i),Lk(t.y,n.y,r.y,i)}function Y9(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const X9={duration:.45,ease:[.4,0,.1,1]},Bk=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),zk=Bk("applewebkit/")&&!Bk("chrome/")?Math.round:fr;function qk(t){t.min=zk(t.min),t.max=zk(t.max)}function J9(t){qk(t.x),qk(t.y)}function PE(t,n,r){return t==="position"||t==="preserve-aspect"&&!e9(Ok(n),Ok(r),.2)}function Z9(t){var n;return t!==t.root&&((n=t.scroll)===null||n===void 0?void 0:n.wasRoot)}const eq=TE({attachResizeListener:(t,n)=>lu(t,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),dg={current:void 0},OE=TE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!dg.current){const t=new eq({});t.mount(window),t.setOptions({layoutScroll:!0}),dg.current=t}return dg.current},resetTransform:(t,n)=>{t.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),tq={pan:{Feature:g9},drag:{Feature:p9,ProjectionNode:OE,MeasureLayout:kE}};function Vk(t,n,r){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",r==="Start");const s="onHover"+r,a=i[s];a&&zt.postRender(()=>a(n,Iu(n)))}class nq extends Xs{mount(){const{current:n}=this.node;n&&(this.unmount=ZB(n,r=>(Vk(this.node,r,"Start"),i=>Vk(this.node,i,"End"))))}unmount(){}}class rq extends Xs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Du(lu(this.node.current,"focus",()=>this.onFocus()),lu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Uk(t,n,r){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",r==="Start");const s="onTap"+(r==="End"?"":r),a=i[s];a&&zt.postRender(()=>a(n,Iu(n)))}class iq extends Xs{mount(){const{current:n}=this.node;n&&(this.unmount=r7(n,r=>(Uk(this.node,r,"Start"),(i,{success:s})=>Uk(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const yy=new WeakMap,hg=new WeakMap,sq=t=>{const n=yy.get(t.target);n&&n(t)},aq=t=>{t.forEach(sq)};function oq({root:t,...n}){const r=t||document;hg.has(r)||hg.set(r,{});const i=hg.get(r),s=JSON.stringify(n);return i[s]||(i[s]=new IntersectionObserver(aq,{root:t,...n})),i[s]}function lq(t,n,r){const i=oq(n);return yy.set(t,r),i.observe(t),()=>{yy.delete(t),i.unobserve(t)}}const cq={some:0,all:1};class uq extends Xs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:s="some",once:a}=n,o={root:r?r.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:cq[s]},c=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:f,onViewportLeave:m}=this.node.getProps(),p=h?f:m;p&&p(d)};return lq(this.node.current,o,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:r}=this.node;["amount","margin","root"].some(dq(n,r))&&this.startObserver()}unmount(){}}function dq({viewport:t={}},{viewport:n={}}={}){return r=>t[r]!==n[r]}const hq={inView:{Feature:uq},tap:{Feature:iq},focus:{Feature:rq},hover:{Feature:nq}},fq={layout:{ProjectionNode:OE,MeasureLayout:kE}},vy={current:null},DE={current:!1};function mq(){if(DE.current=!0,!!bv)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),n=()=>vy.current=t.matches;t.addListener(n),n()}else vy.current=!1}function pq(t,n,r){for(const i in n){const s=n[i],a=r[i];if(In(s))t.addValue(i,s);else if(In(a))t.addValue(i,au(s,{owner:t}));else if(a!==s)if(t.hasValue(i)){const o=t.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=t.getStaticValue(i);t.addValue(i,au(o!==void 0?o:s,{owner:t}))}}for(const i in r)n[i]===void 0&&t.removeValue(i);return n}const $k=new WeakMap,gq=[...Y4,Pn,Ks],xq=t=>gq.find(Q4(t)),Hk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class yq{scrapeMotionValuesFromProps(n,r,i){return{}}constructor({parent:n,props:r,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:a,visualState:o},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Uv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=xi.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,zt.render(this.render,!1,!0))};const{latestValues:d,renderState:h}=o;this.latestValues=d,this.baseTarget={...d},this.initialValues=r.initial?{...d}:{},this.renderState=h,this.parent=n,this.props=r,this.presenceContext=i,this.depth=n?n.depth+1:0,this.reducedMotionConfig=s,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=jf(r),this.isVariantNode=f4(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:f,...m}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in m){const g=m[p];d[p]!==void 0&&In(g)&&g.set(d[p],!1)}}mount(n){this.current=n,$k.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),DE.current||mq(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vy.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){$k.delete(this.current),this.projection&&this.projection.unmount(),Ws(this.notifyUpdate),Ws(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(n,r){this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)();const i=eo.has(n),s=r.on("change",c=>{this.latestValues[n]=c,this.props.onUpdate&&zt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,n,r)),this.valueSubscriptions.set(n,()=>{s(),a(),o&&o(),r.owner&&r.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in hl){const r=hl[n];if(!r)continue;const{isEnabled:i,Feature:s}=r;if(!this.features[n]&&s&&i(this.props)&&(this.features[n]=new s(this)),this.features[n]){const a=this.features[n];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rn()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,r){this.latestValues[n]=r}update(n,r){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let i=0;i<Hk.length;i++){const s=Hk[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const a="on"+s,o=n[a];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=pq(this,this.scrapeMotionValuesFromProps(n,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(n){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(n),()=>r.variantChildren.delete(n)}addValue(n,r){const i=this.values.get(n);r!==i&&(i&&this.removeValue(n),this.bindToMotionValue(n,r),this.values.set(n,r),this.latestValues[n]=r.get())}removeValue(n){this.values.delete(n);const r=this.valueSubscriptions.get(n);r&&(r(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,r){if(this.props.values&&this.props.values[n])return this.props.values[n];let i=this.values.get(n);return i===void 0&&r!==void 0&&(i=au(r===null?void 0:r,{owner:this}),this.addValue(n,i)),i}readValue(n,r){var i;let s=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:(i=this.getBaseTargetFromProps(this.props,n))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,n,this.options);return s!=null&&(typeof s=="string"&&(K4(s)||W4(s))?s=parseFloat(s):!xq(s)&&Ks.test(r)&&(s=iE(n,r)),this.setBaseTarget(n,In(s)?s.get():s)),In(s)?s.get():s}setBaseTarget(n,r){this.baseTarget[n]=r}getBaseTarget(n){var r;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const o=Av(this.props,i,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);o&&(s=o[n])}if(i&&s!==void 0)return s;const a=this.getBaseTargetFromProps(this.props,n);return a!==void 0&&!In(a)?a:this.initialValues[n]!==void 0&&s===void 0?void 0:this.baseTarget[n]}on(n,r){return this.events[n]||(this.events[n]=new zv),this.events[n].add(r)}notify(n,...r){this.events[n]&&this.events[n].notify(...r)}}class IE extends yq{constructor(){super(...arguments),this.KeyframeResolver=sE}sortInstanceNodePosition(n,r){return n.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(n,r){return n.style?n.style[r]:void 0}removeValueFromRenderState(n,{vars:r,style:i}){delete r[n],delete i[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;In(n)&&(this.childSubscription=n.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function vq(t){return window.getComputedStyle(t)}class bq extends IE{constructor(){super(...arguments),this.type="html",this.renderInstance=x4}readValueFromInstance(n,r){if(eo.has(r)){const i=Wv(r);return i&&i.default||0}else{const i=vq(n),s=(S4(r)?i.getPropertyValue(r):i[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(n,{transformPagePoint:r}){return wE(n,r)}build(n,r,i){Pv(n,r,i.transformTemplate)}scrapeMotionValuesFromProps(n,r,i){return Sv(n,r,i)}}class jq extends IE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rn}getBaseTargetFromProps(n,r){return n[r]}readValueFromInstance(n,r){if(eo.has(r)){const i=Wv(r);return i&&i.default||0}return r=y4.has(r)?r:Nv(r),n.getAttribute(r)}scrapeMotionValuesFromProps(n,r,i){return j4(n,r,i)}build(n,r,i){Ov(n,r,this.isSVGTag,i.transformTemplate)}renderInstance(n,r,i,s){v4(n,r,i,s)}mount(n){this.isSVGTag=Dv(n.tagName),super.mount(n)}}const wq=(t,n)=>_v(t)?new jq(n):new bq(n,{allowProjection:t!==I.Fragment}),Nq=WB({...Hz,...hq,...tq,...fq},wq),Z=lB(Nq);function kq(){const{data:t=[]}=Fe({queryKey:["pageSections","AIConsultancy"],queryFn:()=>ce.entities.PageSection.filter({page_name:"AIConsultancy",active:!0},"sort_order"),initialData:[]}),n=t.find(o=>o.section_key==="hero")||{},r=t.find(o=>o.section_key==="wat_we_bieden")||{},i=t.find(o=>o.section_key==="onze_aanpak")||{},s=t.find(o=>o.section_key==="cta")||{},a={Target:Va,Brain:vO,Briefcase:Qa};return e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative bg-white pt-32 pb-20 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-[#FAB868]/5 rounded-full blur-3xl"}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-20 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] leading-[1.1] mb-8",children:n.title||"AI Strategie die werkt"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8 leading-relaxed",children:n.subtitle||"Van analyse tot roadmap. Wij helpen je de juiste AI kansen te identificeren."}),n.content&&e.jsx("div",{className:"text-[#3b3a3a] mb-12 text-xl leading-relaxed",dangerouslySetInnerHTML:{__html:n.content}}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:e.jsxs(de,{to:ae(n.cta_link||"Contact"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:[n.cta_text||"Plan een gesprek",e.jsx($e,{className:"w-5 h-5"})]})})]}),e.jsx(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.3},className:"hidden lg:block",children:n.image_url&&e.jsx("img",{src:n.image_url,alt:"Strategy session",className:"w-full h-[600px] object-cover rounded-3xl shadow-2xl"})})]})})]}),e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:r.title||"Wat we bieden"}),e.jsx("p",{className:"text-[#3b3a3a] mx-auto text-2xl max-w-2xl",children:r.subtitle||"Strategisch advies dat leidt tot resultaten"})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-12",children:(r.items||[]).map((o,c)=>{const d=a[o.icon]||Va;return e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:c*.1},className:"bg-[#F4F4F4] rounded-3xl p-12 hover:bg-white hover:shadow-lg hover:border-2 hover:border-[#FAB868] transition-all",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mb-8",children:e.jsx(d,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:o.title}),e.jsx("p",{className:"text-[#3b3a3a] text-xl",children:o.description})]},c)})})]})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:i.title||"Onze aanpak"}),e.jsx("p",{className:"text-[#626060] text-2xl",children:i.subtitle||"Een bewezen proces"})]}),e.jsx("div",{className:"grid md:grid-cols-4 gap-12",children:(i.items||[]).map((o,c)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:c*.1},className:"relative",children:[e.jsx("div",{className:"text-7xl font-bold text-[#FAB868]/20 mb-6",children:String(c+1).padStart(2,"0")}),e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3",children:o.title}),e.jsx("p",{className:"text-[#3b3a3a] text-lg",children:o.description})]},c))})]})}),e.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:s.title||"Klaar om je AI strategie te ontwikkelen?"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:s.subtitle||"Plan een vrijblijvend gesprek"}),e.jsxs(de,{to:ae(s.cta_link||"Contact"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:[s.cta_text||"Plan een gesprek",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function _q(){return e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative bg-white pt-32 pb-20 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-[#FAB868]/5 rounded-full blur-3xl"}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-20 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] leading-[1.1] mb-8",children:"AI Development die verder gaat dan experimenten"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8 leading-relaxed",children:"Wij ontwikkelen AI-oplossingen die echt in productie gaan. Geen losse demo's of tijdelijke prototypes, maar schaalbare software die past binnen jouw bestaande IT-landschap."}),e.jsxs("div",{className:"bg-[#F4F4F4] rounded-2xl p-6 mb-12",children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Onze kracht?"}),e.jsx("p",{className:"text-lg text-[#0D0D0F]/80",children:"Ervaren software developers met diepgaande AI-kennis, die snel kunnen schakelen van idee naar werkend prototype — en dit doorontwikkelen tot een stabiel, toekomstbestendig product."})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsxs(de,{to:ae("Contact"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Bespreek je project",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:ae("Cases"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 border-2 border-[#0D0D0F] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#F4F4F4] transition-all text-lg",children:"Bekijk cases"})]})]}),e.jsx(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.3},className:"hidden lg:block",children:e.jsx("img",{src:"https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&auto=format&fit=crop",alt:"AI Development",className:"w-full h-[600px] object-cover rounded-3xl shadow-2xl"})})]})})]}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[e.jsx(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:e.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1200&auto=format&fit=crop",alt:"Team samenwerking",className:"w-full h-[500px] object-cover rounded-3xl shadow-xl"})}),e.jsxs(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Van prototype naar productie, met hetzelfde team"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:"Veel AI-trajecten stranden na een proof-of-concept. Bij ons niet."}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80 mb-8",children:"Wij werken met één team dat:"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"snel prototypes bouwt om waarde te valideren"})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"direct rekening houdt met architectuur, security en performance"})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"het prototype zonder overdracht doorontwikkelt tot het definitieve product"})]})]}),e.jsx("p",{className:"text-xl text-[#0D0D0F] font-semibold mt-8",children:"Zo voorkom je technische schuld en verlies van momentum."})]})]})})}),e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Sterk in integraties tussen systemen"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-3xl mx-auto mb-4",children:"AI staat nooit op zichzelf. Daarom hebben wij veel ervaring met integraties tussen verschillende softwaresystemen."})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(wu,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"ERP-, CRM- en e-commerceplatformen"})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(Jc,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"maatwerk software en SaaS-oplossingen"})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(DA,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"bestaande databronnen en nieuwe AI-componenten"})]})]}),e.jsx(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-2xl text-[#0D0D0F] font-semibold text-center",children:"We zorgen dat AI naadloos onderdeel wordt van je bestaande processen, in plaats van een losstaand systeem."})]})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Veelvoorkomende AI-toepassingen"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-2xl mx-auto",children:"AI is geen doel op zich. Het is een middel. Binnen onze AI development-projecten zien we vaak toepassingen zoals:"})]}),e.jsxs("div",{className:"space-y-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-white rounded-3xl p-12 hover:shadow-xl transition-all",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center",children:e.jsx(kA,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI agents"})]}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Voor het automatiseren of ondersteunen van taken en processen binnen bestaande software."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-white rounded-3xl p-12 hover:shadow-xl transition-all",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center",children:e.jsx(mi,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI search voor e-commerce"})]}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Zoekoplossingen die beter omgaan met intentie, productdata en conversie."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"bg-white rounded-3xl p-12 hover:shadow-xl transition-all",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center",children:e.jsx(DD,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI customer care"})]}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Slimme klantondersteuning die context begrijpt en integreert met bestaande systemen."})]})]}),e.jsx(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-xl text-[#9CA3AF] text-center mt-12",children:"Dit zijn voorbeelden — de daadwerkelijke oplossing stemmen we altijd af op jouw situatie."})]})}),e.jsx("section",{className:"py-32 bg-white",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-8",children:"Gebouwd door developers, niet door buzzwords"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:"Onze developers komen uit het bedrijfsleven. Ze begrijpen dat AI alleen waarde heeft als het:"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6 max-w-3xl mx-auto",children:[e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(ui,{className:"w-6 h-6 text-[#FAB868]"}),"betrouwbaar is"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(ui,{className:"w-6 h-6 text-[#FAB868]"}),"onderhoudbaar blijft"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(ui,{className:"w-6 h-6 text-[#FAB868]"}),"goed integreert"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(ui,{className:"w-6 h-6 text-[#FAB868]"}),"aantoonbaar resultaat oplevert"]})]}),e.jsx("p",{className:"text-3xl text-[#0D0D0F] font-bold mt-12",children:"Daar bouwen we op."})]})})}),e.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Heb je een idee voor een AI oplossing?"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Wij denken graag met je mee — van prototype tot productie"}),e.jsxs(de,{to:ae("Contact"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Bespreek je project",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}const me=I.forwardRef(({className:t,type:n,...r},i)=>e.jsx("input",{type:n,className:Qt("flex w-full bg-white px-4 py-3 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-[#9CA3AF] focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50","border-b-2 border-gray-200 focus-visible:border-[#FAB868]","rounded-none",t),ref:i,...r}));me.displayName="Input";function Wk(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function RE(...t){return n=>{let r=!1;const i=t.map(s=>{const a=Wk(s,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let s=0;s<i.length;s++){const a=i[s];typeof a=="function"?a():Wk(t[s],null)}}}}function Yt(...t){return I.useCallback(RE(...t),t)}function cu(t){const n=Aq(t),r=I.forwardRef((i,s)=>{const{children:a,...o}=i,c=I.Children.toArray(a),d=c.find(Eq);if(d){const h=d.props.children,f=c.map(m=>m===d?I.Children.count(h)>1?I.Children.only(null):I.isValidElement(h)?h.props.children:null:m);return e.jsx(n,{...o,ref:s,children:I.isValidElement(h)?I.cloneElement(h,void 0,f):null})}return e.jsx(n,{...o,ref:s,children:a})});return r.displayName=`${t}.Slot`,r}var Sq=cu("Slot");function Aq(t){const n=I.forwardRef((r,i)=>{const{children:s,...a}=r;if(I.isValidElement(s)){const o=Pq(s),c=Tq(a,s.props);return s.type!==I.Fragment&&(c.ref=i?RE(i,o):o),I.cloneElement(s,c)}return I.Children.count(s)>1?I.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Cq=Symbol("radix.slottable");function Eq(t){return I.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Cq}function Tq(t,n){const r={...n};for(const i in n){const s=t[i],a=n[i];/^on[A-Z]/.test(i)?s&&a?r[i]=(...c)=>{const d=a(...c);return s(...c),d}:s&&(r[i]=s):i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...t,...r}}function Pq(t){var i,s;let n=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?t.ref:(n=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const Oq=wA("inline-flex items-center justify-center whitespace-nowrap rounded-full text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-[#FAB868] text-[#0D0D0F] hover:bg-[#E5A04D] shadow-sm",dark:"bg-[#0D0D0F] text-white hover:bg-[#1a1a1c]",outline:"border border-gray-200 bg-white text-[#0D0D0F] hover:bg-gray-50",ghost:"hover:bg-gray-100 text-[#0D0D0F]",link:"text-[#0D0D0F] underline-offset-4 hover:underline"},size:{default:"h-12 px-6 py-3",sm:"h-9 px-4 text-xs",lg:"h-14 px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),se=I.forwardRef(({className:t,variant:n,size:r,asChild:i=!1,...s},a)=>{const o=i?Sq:"button";return e.jsx(o,{className:Qt(Oq({variant:n,size:r,className:t})),ref:a,...s})});se.displayName="Button";function Dq(){var R;const[t,n]=I.useState(""),[r,i]=I.useState(""),[s,a]=I.useState(""),[o,c]=I.useState("input"),[d,h]=I.useState(!1),[f,m]=I.useState(!1),[p,g]=I.useState(null),[b,j]=I.useState(null),[y,x]=I.useState(null),[N,w]=I.useState(null),[k,A]=I.useState({name:"",email:""}),[S,E]=I.useState({assumptions_correct:!0,actual_activities:"",pain_points:"",competitor_advantages:"",strategic_development_need:"",employee_training_level:""}),C=[{value:"",label:"Selecteer industrie (optioneel)"},{value:"retail",label:"Retail & E-commerce"},{value:"manufacturing",label:"Productie & Manufacturing"},{value:"healthcare",label:"Zorg & Welzijn"},{value:"professional_services",label:"Professionele Dienstverlening"},{value:"hospitality",label:"Horeca & Hospitality"},{value:"logistics",label:"Logistiek & Transport"},{value:"construction",label:"Bouw & Vastgoed"},{value:"education",label:"Onderwijs & Training"},{value:"finance",label:"Financiële Diensten"},{value:"technology",label:"Technology & Software"},{value:"marketing",label:"Marketing & Media"},{value:"other",label:"Anders"}];I.useEffect(()=>{const q=new URLSearchParams(window.location.search).get("report_id");q&&B(q)},[]);const B=async z=>{var q,U;m(!0),w(null);try{const{data:Q}=await ce.functions.invoke("getImpactReport",{submission_id:z});Q.success&&Q.report?(j({report:Q.report,metadata:Q.metadata}),x(z),c("results")):w(Q.error||"Rapport niet gevonden")}catch(Q){console.error("Error loading shared report:",Q),w(((U=(q=Q.response)==null?void 0:q.data)==null?void 0:U.error)||Q.message||"Kon rapport niet laden. Controleer de link en probeer opnieuw.")}finally{m(!1)}},D=async z=>{var q,U,Q,H;if(z.preventDefault(),!t){w("Website URL is verplicht");return}h(!0),w(null),c("analyzing");try{const Y=`https://${t.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,"")}`;console.log("Calling generatePreliminaryAnalysis with:",{website_url:Y,company_name:r,industry:s||void 0});const{data:O}=await ce.functions.invoke("generatePreliminaryAnalysis",{website_url:Y,company_name:r,industry:s||void 0});console.log("Response from generatePreliminaryAnalysis:",O),O.success&&O.preliminary_data?(g(O.preliminary_data),c("questionnaire")):(console.error("Error from function:",O),w(O.error||"Er ging iets mis bij de voorlopige analyse"),c("input"))}catch(K){console.error("Caught error:",K),console.error("Error response:",K.response),w(((U=(q=K.response)==null?void 0:q.data)==null?void 0:U.error)||((H=(Q=K.response)==null?void 0:Q.data)==null?void 0:H.details)||K.message||"Kon de voorlopige analyse niet uitvoeren. Probeer het opnieuw."),c("input")}finally{h(!1)}},F=async()=>{var z,q,U;if(!k.email||!k.name){w("Vul je naam en email in om het rapport te ontvangen"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.pain_points){w("Het veld 'Grootste pijnpunten of uitdagingen' is verplicht"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.strategic_development_need){w("Het veld 'Strategische ontwikkeling met AI' is verplicht"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.employee_training_level){w("Het veld 'AI training medewerkers' is verplicht"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.assumptions_correct&&!S.actual_activities){w("Geef aan wat jullie bedrijf doet als onze aanname niet klopt"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.competitor_advantages){w("Het veld 'Wat doet de concurrentie beter' is verplicht"),window.scrollTo({top:0,behavior:"smooth"});return}h(!0),w(null);try{const H=`https://${t.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,"")}`,K=await ce.functions.invoke("createImpactScanRequest",{website_url:H,company_name:r,industry:s||void 0,user_email:k.email,user_name:k.name});K.data&&K.data.success?(c("submitted"),window.scrollTo({top:0,behavior:"smooth"})):(w(((z=K.data)==null?void 0:z.error)||"Er ging iets mis bij het aanmaken van de aanvraag"),window.scrollTo({top:0,behavior:"smooth"}))}catch(Q){console.error("Error submitting request:",Q),w(((U=(q=Q.response)==null?void 0:q.data)==null?void 0:U.error)||Q.message||"Kon de aanvraag niet indienen. Probeer het opnieuw.")}finally{h(!1)}};if(f)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Rapport aan het laden..."})]})})});if(o==="analyzing")return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Je website aan het analyseren..."}),e.jsx("p",{className:"text-xl text-gray-600",children:"Even geduld, we halen informatie op over je bedrijf"})]})})});if(o==="submitted")return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-green-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(gt,{className:"w-10 h-10 text-green-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Aanvraag ontvangen!"}),e.jsxs("p",{className:"text-xl text-gray-600 mb-8",children:["Je ontvangt het AI Impact Rapport binnen enkele minuten per email op ",e.jsx("strong",{children:k.email})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 max-w-md mx-auto border border-gray-100 mb-8",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Het rapport wordt momenteel gegenereerd. Dit kan enkele minuten duren omdat we:"}),e.jsxs("ul",{className:"text-left space-y-2 text-sm text-gray-700",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"Je website grondig analyseren"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"AI-kansen identificeren"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"Gepersonaliseerde aanbevelingen maken"})]})]})]}),e.jsx(se,{onClick:()=>window.location.href=ae("Home"),className:"bg-gray-900 text-white hover:bg-gray-800",children:"Terug naar home"})]})})});if(N)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-red-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(fi,{className:"w-10 h-10 text-red-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Er ging iets mis"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:N}),e.jsx(se,{onClick:()=>{w(null),n(""),window.location.href=ae("AIImpactRapport")},className:"bg-gray-900 text-white hover:bg-gray-800",children:"Probeer opnieuw"})]})})});if(o==="questionnaire"&&p)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"mb-12",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"Stap 2 van 2"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Klopt onze aanname?"}),e.jsx("p",{className:"text-xl text-gray-600",children:"We hebben een eerste analyse gedaan. Help ons deze te verbeteren met enkele vragen."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 mb-8 border-2 border-blue-100",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Onze voorlopige bevindingen"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Bedrijf"}),e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:p.company_name})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Wat jullie doen"}),e.jsx("p",{className:"text-gray-700",children:p.activities})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Mogelijke uitdagingen die we zien"}),e.jsx("ul",{className:"list-disc list-inside space-y-2 text-gray-700",children:(R=p.potential_challenges)==null?void 0:R.map((z,q)=>e.jsx("li",{children:z},q))})]})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 border border-gray-100",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Help ons je beter te begrijpen"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Klopt onze aanname over wat jullie bedrijf doet?"}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("button",{type:"button",onClick:()=>E({...S,assumptions_correct:!0}),className:`flex-1 px-4 py-3 rounded-lg border-2 transition-all ${S.assumptions_correct?"border-green-500 bg-green-50 text-green-900":"border-gray-200 hover:border-gray-300"}`,children:"✓ Ja, klopt"}),e.jsx("button",{type:"button",onClick:()=>E({...S,assumptions_correct:!1}),className:`flex-1 px-4 py-3 rounded-lg border-2 transition-all ${S.assumptions_correct?"border-gray-200 hover:border-gray-300":"border-orange-500 bg-orange-50 text-orange-900"}`,children:"✗ Niet helemaal"})]})]}),!S.assumptions_correct&&e.jsxs(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Wat doet jullie bedrijf eigenlijk? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx("textarea",{value:S.actual_activities,onChange:z=>E({...S,actual_activities:z.target.value}),className:`w-full px-4 py-3 border ${!S.assumptions_correct&&!S.actual_activities?"border-red-300 bg-red-50":"border-gray-300"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,rows:"3",placeholder:"Beschrijf kort jullie kernactiviteiten...",required:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Wat zijn jullie grootste pijnpunten of uitdagingen? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx("textarea",{value:S.pain_points,onChange:z=>E({...S,pain_points:z.target.value}),className:`w-full px-4 py-3 border ${S.pain_points?"border-gray-300":"border-red-300 bg-red-50"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,rows:"4",placeholder:"Bijvoorbeeld: Te veel handmatig werk, klantenservice kost veel tijd, fouten in orderverwerking...",required:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Wat doet de concurrentie beter dan jullie? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx("textarea",{value:S.competitor_advantages,onChange:z=>E({...S,competitor_advantages:z.target.value}),className:`w-full px-4 py-3 border ${S.competitor_advantages?"border-gray-300":"border-red-300 bg-red-50"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,rows:"3",placeholder:"Bijvoorbeeld: Snellere levering, betere klantenservice, lagere prijzen...",required:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Hebben jullie behoefte aan strategische ontwikkeling met AI? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsxs("select",{value:S.strategic_development_need,onChange:z=>E({...S,strategic_development_need:z.target.value}),className:`w-full px-4 py-3 border ${S.strategic_development_need?"border-gray-300":"border-red-300 bg-red-50"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,required:!0,children:[e.jsx("option",{value:"",children:"Selecteer..."}),e.jsx("option",{value:"urgent",children:"Ja, dringend - we lopen achter"}),e.jsx("option",{value:"exploring",children:"Ja, we zijn aan het verkennen"}),e.jsx("option",{value:"some",children:"Een beetje - we weten niet goed waar te beginnen"}),e.jsx("option",{value:"no",children:"Nee, nog niet - we willen eerst meer weten"})]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Hoe goed zijn jullie medewerkers opgeleid over AI kansen en bedreigingen? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsxs("select",{value:S.employee_training_level,onChange:z=>E({...S,employee_training_level:z.target.value}),className:`w-full px-4 py-3 border ${S.employee_training_level?"border-gray-300":"border-red-300 bg-red-50"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,required:!0,children:[e.jsx("option",{value:"",children:"Selecteer..."}),e.jsx("option",{value:"expert",children:"Goed - we hebben al AI training gehad"}),e.jsx("option",{value:"basic",children:"Basis - iedereen weet wat AI is"}),e.jsx("option",{value:"limited",children:"Beperkt - alleen management weet iets van AI"}),e.jsx("option",{value:"none",children:"Nauwelijks - we weten weinig over AI"})]})]}),e.jsxs("div",{className:"border-t border-gray-200 pt-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Ontvang je rapport"}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4 mb-6",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Naam ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx(me,{type:"text",placeholder:"Je naam",value:k.name,onChange:z=>A({...k,name:z.target.value}),className:k.name?"":"border-red-300 bg-red-50",required:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Email ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx(me,{type:"email",placeholder:"je@email.nl",value:k.email,onChange:z=>A({...k,email:z.target.value}),className:k.email?"":"border-red-300 bg-red-50",required:!0})]})]})]}),e.jsxs("div",{className:"flex gap-4 pt-4",children:[e.jsx(se,{type:"button",variant:"outline",onClick:()=>c("input"),className:"flex-1",children:"Vorige"}),e.jsx(se,{type:"button",onClick:F,disabled:d||!k.name||!k.email||!S.pain_points||!S.competitor_advantages||!S.strategic_development_need||!S.employee_training_level||!S.assumptions_correct&&!S.actual_activities,className:"flex-1 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold disabled:opacity-50 disabled:cursor-not-allowed",children:e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(At,{className:"w-5 h-5"}),d?"Indienen...":"Genereer mijn rapport",e.jsx($e,{className:"w-5 h-5"})]})})]})]})]})]})})});if(o==="results"&&b){const{report:z,metadata:q}=b,U=z.company_profile||{},Q=z.quick_scan||{},H=z.opportunities||[],K=z.productivity_forecast||{},Y=z.action_plan||{};return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"48-7 Impact Rapport"]}),e.jsxs("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:["Hoe ",U.name||"uw bedrijf"," van 24-7 naar 48-7 gaat"]}),e.jsxs("p",{className:"text-xl text-gray-600",children:["Gegenereerd op ",new Date(q.generated_at).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})]})]}),U&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(Ya,{className:"w-6 h-6 text-blue-600"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Bedrijfsprofiel"})]}),e.jsxs("div",{className:"grid md:grid-cols-1 gap-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Sector"}),e.jsx("p",{className:"font-semibold text-gray-900",children:U.sector})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Kernactiviteiten"}),e.jsx("p",{className:"text-gray-700",children:U.core_activities})]})]})]}),Q&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"De Quick Scan"}),e.jsxs("p",{className:"text-lg text-gray-700 mb-6 leading-relaxed",children:["Wij hebben de processen van ",e.jsx("strong",{children:U.name})," geanalyseerd.",Q.focus&&` ${Q.focus}`]}),Q.usp&&e.jsxs("div",{className:"bg-white/50 rounded-xl p-4 mb-4",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Unique Selling Points"}),e.jsx("p",{className:"text-gray-800",children:Q.usp})]}),Q.time_intensive_processes&&e.jsxs("div",{className:"bg-white/50 rounded-xl p-4",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Tijd-intensieve processen"}),e.jsx("p",{className:"text-gray-800",children:Q.time_intensive_processes})]})]}),H&&H.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"mb-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-2",children:"AI Kansen"}),e.jsxs("p",{className:"text-gray-600",children:["Specifiek voor ",U.name]})]}),e.jsx("div",{className:"space-y-6",children:H.map((O,T)=>e.jsx(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4+T*.1},className:"bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-blue-200 transition-all",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-xl flex items-center justify-center text-white font-bold text-xl flex-shrink-0",children:T+1}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:O.title}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-red-600 mb-1",children:"❌ Probleem"}),e.jsx("p",{className:"text-gray-700",children:O.problem})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-blue-600 mb-1",children:"✅ Oplossing"}),e.jsx("p",{className:"text-gray-700",children:O.solution})]}),O.relevance&&e.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-blue-900 mb-1",children:"💡 Waarom relevant"}),e.jsx("p",{className:"text-sm text-blue-800",children:O.relevance})]}),O.implementation_steps&&O.implementation_steps.length>0&&e.jsxs("div",{className:"bg-purple-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-purple-900 mb-2",children:"🔧 Implementatiestappen"}),e.jsx("ol",{className:"text-sm text-purple-800 space-y-1 list-decimal list-inside",children:O.implementation_steps.map((V,L)=>e.jsx("li",{children:V},L))})]}),O.data_privacy&&e.jsxs("div",{className:"bg-amber-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-amber-900 mb-1",children:"🔒 Data & Privacy"}),e.jsx("p",{className:"text-sm text-amber-800",children:O.data_privacy})]}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-4 pt-4 border-t border-gray-100",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ki,{className:"w-5 h-5 text-green-600"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Winst"}),e.jsx("p",{className:"font-semibold text-gray-900",children:O.benefit})]})]})})]})]})]})},T))})]}),K&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"bg-gradient-to-r from-green-500 to-emerald-600 rounded-2xl p-8 text-white mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold mb-6",children:"De 48-7 Productiviteitsprognose"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-6",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[e.jsx("p",{className:"text-green-100 mb-2",children:"Huidige output"}),e.jsxs("p",{className:"text-5xl font-bold",children:[K.current||100,"%"]})]}),e.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-xl p-6 border-2 border-white/30",children:[e.jsx("p",{className:"text-green-100 mb-2",children:"Output met 48-7 AI-integratie"}),e.jsxs("p",{className:"text-5xl font-bold",children:[K.with_ai||185,"%"]})]})]}),K.drivers&&K.drivers.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold mb-3",children:"Belangrijkste drivers:"}),e.jsx("ul",{className:"space-y-2",children:K.drivers.map((O,T)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-5 h-5 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:O})]},T))})]})]}),z.innovative_idea&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.82},className:"bg-gradient-to-br from-purple-600 via-pink-600 to-orange-500 rounded-2xl p-8 mb-8 text-white relative overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0 opacity-10",children:[e.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-white rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-white rounded-full blur-3xl"})]}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[e.jsx("div",{className:"w-14 h-14 bg-white/20 backdrop-blur-sm rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(Wi,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-sm font-semibold mb-2",children:[e.jsx(At,{className:"w-4 h-4"}),"Innovatief AI-Idee"]}),e.jsx("h2",{className:"text-3xl font-bold",children:z.innovative_idea.title})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[e.jsx("h3",{className:"font-bold text-lg mb-2",children:"💡 Hoe het werkt"}),e.jsx("p",{className:"text-white/90 leading-relaxed",children:z.innovative_idea.description})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"🎯 Onderscheidend vermogen"}),e.jsx("p",{className:"text-white/90 text-sm",children:z.innovative_idea.unique_value})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"📈 Impact"}),e.jsx("p",{className:"text-white/90 text-sm",children:z.innovative_idea.impact})]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"🔧 Implementatie"}),e.jsx("p",{className:"text-white/90 text-sm",children:z.innovative_idea.implementation})]}),e.jsxs("div",{className:"bg-gradient-to-r from-green-500/20 to-emerald-500/20 backdrop-blur-sm rounded-xl p-5 border-2 border-green-400/30",children:[e.jsxs("h3",{className:"font-bold mb-2 flex items-center gap-2",children:[e.jsx(ui,{className:"w-5 h-5"}),"Quick Win (2-4 weken)"]}),e.jsx("p",{className:"text-white/90",children:z.innovative_idea.quick_win})]})]})]})]}),z.training_recommendations&&z.training_recommendations.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.85},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx(pr,{className:"w-6 h-6 text-purple-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Aanbevolen Trainingen"})]}),e.jsx("div",{className:"space-y-4",children:z.training_recommendations.map((O,T)=>e.jsxs("div",{className:"p-6 bg-purple-50 rounded-xl border-2 border-purple-100",children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx("span",{className:"text-white font-bold text-sm",children:T+1})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1",children:O.training_name}),O.target_audience&&e.jsxs("p",{className:"text-sm text-purple-700 font-medium",children:["Doelgroep: ",O.target_audience]})]})]}),e.jsx(de,{to:ae("Contact")+`?training=${encodeURIComponent(O.training_name)}`,className:"flex-shrink-0 px-4 py-2 bg-purple-600 text-white text-sm font-semibold rounded-lg hover:bg-purple-700 transition-colors",children:"Aanvragen"})]}),O.learning_goals&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Leerdoelen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:O.learning_goals})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Waarom relevant:"}),e.jsx("p",{className:"text-sm text-gray-600",children:O.reason})]}),O.relevance_to_opportunities&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Link met AI-kansen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:O.relevance_to_opportunities})]}),O.compliance_benefit&&e.jsxs("div",{className:"bg-blue-50 p-2 rounded",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900",children:"Compliance voordeel:"}),e.jsx("p",{className:"text-sm text-blue-800",children:O.compliance_benefit})]})]})]},T))})]}),Y&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.95},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-amber-100 rounded-xl flex items-center justify-center",children:e.jsx(Va,{className:"w-6 h-6 text-amber-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Direct Actieplan"})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Hoogste prioriteit"}),e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:Y.priority_opportunity})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Eerste stap"}),e.jsx("p",{className:"text-gray-700",children:Y.first_step})]})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1},className:"space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Ontvang dit rapport per e-mail"}),e.jsx("p",{className:"text-blue-100 mb-6 text-lg",children:"We sturen je een link naar dit rapport direct naar je inbox"}),e.jsxs(se,{onClick:()=>setShowEmailForm(!0),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-700 font-bold text-lg rounded-xl hover:bg-gray-100 transition-all shadow-lg",children:[e.jsx(Hr,{className:"w-6 h-6"}),"Mail mij dit rapport",e.jsx($e,{className:"w-6 h-6"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-gray-900 rounded-2xl p-6 text-white",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Directe Toelichting"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Bespreek binnen 15 minuten de mogelijkheden voor jouw bedrijf"}),e.jsxs(de,{to:ae("Contact"),className:"inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-white text-gray-900 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:[e.jsx(_i,{className:"w-5 h-5"}),"Plan een gesprek"]})]}),e.jsxs("div",{className:"bg-purple-600 rounded-2xl p-6 text-white",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"EU AI Act Check"}),e.jsx("p",{className:"text-purple-100 mb-4",children:"Ontdek welke compliance-eisen gelden voor jouw bedrijf"}),e.jsxs(de,{to:ae("EuAiActChecker"),className:"inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-white text-purple-700 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:[e.jsx(Vn,{className:"w-5 h-5"}),"Start AI Act Check"]})]})]})]}),!1]})})}return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] mb-8",children:["Ontvang gratis 48-7 ",e.jsx("br",{}),"AI Impact Rapport"]}),e.jsx("p",{className:"text-2xl text-[#292828] max-w-2xl mx-auto",children:"Ontdek in 60 seconden hoe AI jouw bedrijf van 24-7 naar 48-7 brengt"})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:e.jsxs("form",{onSubmit:D,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Website URL *"}),e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:t,onChange:z=>n(z.target.value),required:!0,className:"text-lg py-6"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Vul alleen het domein in, bijv. bedrijf.nl (https:// wordt automatisch toegevoegd)"})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Bedrijfsnaam (optioneel)"}),e.jsx(me,{type:"text",placeholder:"Je Bedrijf BV",value:r,onChange:z=>i(z.target.value)})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Industrie (optioneel)"}),e.jsx("select",{value:s,onChange:z=>a(z.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:C.map(z=>e.jsx("option",{value:z.value,children:z.label},z.value))})]})]}),e.jsx(se,{type:"submit",disabled:d,className:"w-full py-6 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold text-lg",children:e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(At,{className:"w-5 h-5"}),d?"Analyseren...":"Start Analyse",e.jsx($e,{className:"w-5 h-5"})]})}),e.jsx("p",{className:"text-xs text-gray-500 text-center",children:"✓ 100% gratis • ✓ Geen verplichtingen • ✓ Email pas in volgende stap"})]})})]})})}const wc=[{id:1,question:"Wat is de grootste bron van chaos op een doorsnee werkdag?",options:[{label:"Iemand mist info en appt drie collega's",themes:["informatie","proces"],signals:["context_switching","informele_afstemming"],severity:2},{label:"Een Excel klopt niet meer",themes:["data"],signals:["single_source_of_truth_missing"],severity:3},{label:"Een systeem doet het niet zoals verwacht",themes:["tooling"],signals:["systeem_onbetrouwbaar"],severity:2},{label:"Ik weet het niet, maar het kost tijd",themes:["ownership"],signals:["onduidelijke_verantwoordelijkheid"],severity:3}]},{id:2,question:"Waar gaat de meeste tijd in zitten aan herhaalwerk?",options:[{label:"Gegevens overtypen tussen systemen",themes:["integratie"],signals:["handmatige_overdracht"],severity:3},{label:"Rapportages maken",themes:["data"],signals:["rapportage_handwerk"],severity:2},{label:"Statusupdates sturen",themes:["communicatie"],signals:["status_fragmenteel"],severity:2},{label:"Fouten herstellen",themes:["kwaliteit"],signals:["foutcorrectie_cyclus"],severity:3}]},{id:3,question:"Hoe neem je belangrijke beslissingen?",options:[{label:"Vertrouw ik op gevoel",themes:["besluitvorming"],signals:["besluit_op_intuitie"],severity:3},{label:"Data uit meerdere tools trekken",themes:["data"],signals:["data_versnippering"],severity:2},{label:"Eén dashboard",themes:["data"],signals:["gecentraliseerd_inzicht"],severity:1},{label:"Besluit uitstellen",themes:["besluitvorming"],signals:["decision_latency"],severity:3}]},{id:4,question:"Wat gebeurt er als jullie plotseling 30% meer orders krijgen?",options:[{label:"Paniek",themes:["schaalbaarheid"],signals:["groei_instabiliteit"],severity:3},{label:"Meer mensen aannemen",themes:["organisatie"],signals:["groei_door_headcount"],severity:2},{label:"Het loopt wel maar trager",themes:["proces"],signals:["schaalbare_knelpunten"],severity:2},{label:"Nauwelijks verschil",themes:["schaalbaarheid"],signals:["schaalbaar_proces"],severity:1}]},{id:5,question:"Hoe zou je je systemenlandschap omschrijven?",options:[{label:"Los zand",themes:["integratie"],signals:["tool_fragmentatie"],severity:3},{label:"Aan elkaar geknoopt",themes:["integratie"],signals:["fragiele_koppelingen"],severity:2},{label:"Redelijk geïntegreerd",themes:["integratie"],signals:["gedeeltelijke_integratie"],severity:1},{label:"Eén logisch geheel",themes:["integratie"],signals:["stabiele_architectuur"],severity:0}]},{id:6,question:"Waar ontstaan de meeste fouten?",options:[{label:"Menselijke invoer",themes:["kwaliteit"],signals:["human_error"],severity:3},{label:"Overdrachten tussen teams",themes:["proces"],signals:["handoff_failure"],severity:2},{label:"Tussen systemen",themes:["integratie"],signals:["sync_fouten"],severity:3},{label:"Nauwelijks fouten",themes:["kwaliteit"],signals:["stabiel_proces"],severity:0}]},{id:7,question:"Waar lekt de meeste tijd weg?",options:[{label:"Zoeken naar info",themes:["informatie"],signals:["informatie_zoekverlies"],severity:3},{label:"Handmatige controles",themes:["kwaliteit"],signals:["controle_handwerk"],severity:2},{label:"Afstemming en overleg",themes:["communicatie"],signals:["overleg_overhead"],severity:2},{label:"Brandjes blussen",themes:["stabiliteit"],signals:["reactief_werken"],severity:3}]},{id:8,question:"Wat is AI voor jullie?",options:[{label:"Iets vaags",themes:["adoptie"],signals:["ai_onbekendheid"],severity:3},{label:"Interessant maar spannend",themes:["adoptie"],signals:["ai_terughoudend"],severity:2},{label:"We experimenteren",themes:["adoptie"],signals:["ai_experiment"],severity:1},{label:"Onderdeel van werk",themes:["adoptie"],signals:["ai_operationeel"],severity:0}]},{id:9,question:"Wat frustreert je het meest?",options:[{label:"Al oplosbare dingen",themes:["ownership"],signals:["structurele_inefficiency"],severity:3},{label:"Systemen praten niet",themes:["integratie"],signals:["data_silo"],severity:3},{label:"Wachten op info",themes:["informatie"],signals:["informatie_afhankelijkheid"],severity:2},{label:"Niet kunnen automatiseren",themes:["innovatie"],signals:["automation_blokkade"],severity:3}]},{id:10,question:"Wat is je ambitie?",options:[{label:"Meer rust",themes:["stabiliteit"],signals:["behoefte_aan_overzicht"],severity:1},{label:"Slimmer werken",themes:["efficiency"],signals:["optimalisatie_drang"],severity:1},{label:"Groeien zonder mensen",themes:["schaalbaarheid"],signals:["leverage_ambitie"],severity:1},{label:"Vooroplopen",themes:["innovatie"],signals:["innovatie_ambitie"],severity:1}]}],Iq=t=>t.reactief_werken>=1||t.tool_fragmentatie>=1||t.human_error>=1?"Chaos":t.handmatige_overdracht>=1||t.single_source_of_truth_missing>=1||t.rapportage_handwerk>=1?"Handmatig":t.decision_latency>=1||t.data_versnippering>=1||t.schaalbare_knelpunten>=1?"Groeiend":t.gedeeltelijke_integratie>=1||t.optimalisatie_drang>=1||t.leverage_ambitie>=1?"Automation-ready":t.ai_operationeel>=1||t.stabiele_architectuur>=1||t.schaalbaar_proces>=1?"AI-native":"Groeiend",Rq={single_source_of_truth_missing:"Centrale databron + automatische sync",decision_latency:"Realtime KPI snapshot + alerts",handmatige_overdracht:"Workflow automation via API of event-triggers",tool_fragmentatie:"Integratiehub met vaste datadefinities",data_versnippering:"Data warehouse met geautomatiseerde ETL",reactief_werken:"Proactieve monitoring + predictive alerts",human_error:"Validatie + automation van kritieke invoer",data_silo:"API-gedreven integraties tussen systemen",informatie_zoekverlies:"Centrale kennisbank met AI search",automation_blokkade:"Low-code automation platform"};function Fq(){const[t,n]=I.useState(0),[r,i]=I.useState([]),[s,a]=I.useState(null),[o,c]=I.useState(!1),d=wc[t],h=(t+1)/wc.length*100,f=p=>{const g=d.options[p];i([...r,{questionId:d.id,option:g}]),t<wc.length-1?setTimeout(()=>n(t+1),200):m([...r,{questionId:d.id,option:g}])},m=async p=>{var S;c(!0);const g={},b={};let j=0;p.forEach(E=>{E.option.signals.forEach(C=>{g[C]=(g[C]||0)+1}),E.option.themes.forEach(C=>{b[C]=(b[C]||0)+E.option.severity}),j+=E.option.severity});const y=Iq(g),x=Object.entries(g).map(([E,C])=>({signal:E,count:C})).sort((E,C)=>C.count-E.count).slice(0,3),N=Object.entries(b).sort((E,C)=>C[1]-E[1])[0][0],w=(S=x[0])==null?void 0:S.signal,k=Rq[w]||"Procesoptimalisatie + automation",A={level:y,top_signals:x.map(E=>E.signal),dominant_theme:N,suggested_intervention:k,peer_context:"MKB-bedrijven met vergelijkbare omvang"};try{const E=await ce.integrations.Core.InvokeLLM({prompt:`Je bent een kritische bedrijfsanalist voor MKB.
Je vermijdt open deuren en managementtaal.
Je benoemt gevolgen, vergelijkt met peers en confronteert.
Je verzint geen feiten buiten de input.
Als de analyse te braaf is, herschrijf je.

Gebruik het scan-profiel hieronder.

Regels:
- Benoem wat dit kost in tijd, focus of groeisnelheid
- Vergelijk met vergelijkbare MKB-bedrijven
- Benoem één ongemakkelijke waarheid
- Geef één concrete eerste ingreep
- Geen algemene termen zoals "te veel handmatig"

Scan-profiel:
${JSON.stringify(A,null,2)}

Geef je antwoord in dit formaat (gebruik deze exact koppen):`,response_json_schema:{type:"object",properties:{onderschatting:{type:"string",description:"Wat jullie waarschijnlijk onderschatten (2-3 zinnen)"},kosten:{type:"string",description:"Wat dit jullie nu echt kost (concreet, met cijfers waar mogelijk)"},peers:{type:"string",description:"Waarom dit bij anderen al anders is (vergelijking)"},eerste_ingreep:{type:"string",description:"Meest logische eerste ingreep (concreet)"},deelbare_uitspraak:{type:"string",description:"Eén deelbare uitspraak - max 12 woorden, schurend maar eerlijk"}}}}),C={level:y,scanProfile:A,llmOutput:E};a(C);try{await ce.functions.invoke("submitAIQuiz",C)}catch(B){console.error("Failed to save quiz submission:",B)}}catch(E){console.error("Error generating analysis:",E);const C={level:y,scanProfile:A,llmOutput:{onderschatting:`Je zit in de "${y}" fase. De grootste bottleneck zit in ${N}.`,kosten:"Dit kost je team waarschijnlijk 10-20 uur per week aan onnodige handmatigheid.",peers:"Vergelijkbare bedrijven zijn al verder met automatisering en data-centralisatie.",eerste_ingreep:k,deelbare_uitspraak:`${y}: Te veel tijd in ${N}`}};a(C);try{await ce.functions.invoke("submitAIQuiz",C)}catch(B){console.error("Failed to save quiz submission:",B)}}c(!1)};if(o)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"We analyseren je antwoorden..."}),e.jsx("p",{className:"text-xl text-gray-600",children:"Dit duurt een paar seconden"})]})})});if(s){const{level:p,scanProfile:g,llmOutput:b}=s;return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-6 py-3 bg-gradient-to-r from-purple-600 to-pink-600 text-white rounded-full text-lg font-bold mb-6",children:[e.jsx(At,{className:"w-5 h-5"}),"Je niveau: ",p]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:b.deelbare_uitspraak})]}),e.jsxs("div",{className:"space-y-6 mb-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 border-2 border-red-100",children:[e.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[e.jsx(Ho,{className:"w-6 h-6 text-red-600 flex-shrink-0 mt-1"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Wat jullie waarschijnlijk onderschatten"})]}),e.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:b.onderschatting})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 border-2 border-orange-100",children:[e.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[e.jsx(Ki,{className:"w-6 h-6 text-orange-600 flex-shrink-0 mt-1"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Wat dit jullie nu echt kost"})]}),e.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:b.kosten})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-white rounded-2xl p-8 border-2 border-blue-100",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Waarom dit bij anderen al anders is"}),e.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:b.peers})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"bg-gradient-to-r from-green-500 to-emerald-600 rounded-2xl p-8 text-white",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Meest logische eerste ingreep"}),e.jsx("p",{className:"text-xl leading-relaxed",children:b.eerste_ingreep})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"bg-gray-100 rounded-2xl p-6 text-center mb-8",children:[e.jsxs("p",{className:"text-gray-700 mb-4 font-medium",children:['"',b.deelbare_uitspraak,'"']}),e.jsxs(se,{onClick:()=>{navigator.share&&navigator.share({title:"48-7 AI Readiness Quiz",text:b.deelbare_uitspraak,url:window.location.href})},className:"bg-blue-600 hover:bg-blue-700 text-white",children:[e.jsx(ev,{className:"w-5 h-5 mr-2"}),"Deel je resultaat"]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center mb-6",children:[e.jsx("h3",{className:"text-2xl font-bold mb-3",children:"Krijg je volledig Impact Rapport"}),e.jsxs("p",{className:"text-blue-100 text-lg mb-6",children:['Gebaseerd op je "',p,'" niveau krijg je concrete AI-kansen, ROI berekeningen en een implementatie roadmap.']}),e.jsxs(de,{to:ae("ImpactRapport")+`?level=${encodeURIComponent(p)}`,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-700 font-bold text-lg rounded-xl hover:bg-gray-100 transition-all shadow-lg",children:[e.jsx(At,{className:"w-6 h-6"}),"Genereer mijn Impact Rapport",e.jsx($e,{className:"w-6 h-6"})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"grid md:grid-cols-2 gap-6",children:[e.jsxs(de,{to:ae("Contact")+`?ref=quiz&level=${encodeURIComponent(p)}`,className:"bg-gray-900 rounded-2xl p-6 text-white hover:shadow-xl transition-all",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"15-minuten Consult"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Bespreek je specifieke situatie en krijg direct advies voor de eerste stappen."}),e.jsxs("div",{className:"inline-flex items-center gap-2 font-semibold",children:[e.jsx(_i,{className:"w-5 h-5"}),"Plan een gesprek"]})]}),e.jsxs(de,{to:ae("Training"),className:"bg-purple-600 rounded-2xl p-6 text-white hover:shadow-xl transition-all",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Relevante Trainingen"}),e.jsxs("p",{className:"text-purple-100 mb-4",children:["Maak je team klaar voor de ",p==="AI-native"?"volgende":"AI"," transformatie."]}),e.jsxs("div",{className:"inline-flex items-center gap-2 font-semibold",children:["Bekijk trainingen ",e.jsx($e,{className:"w-5 h-5"})]})]})]})]})})}return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"AI Readiness Quiz"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Ontdek je AI potentieel"}),e.jsxs("p",{className:"text-gray-600",children:[wc.length," eerlijke vragen. Geen open deuren."]})]}),e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex justify-between text-sm text-gray-500 mb-2",children:[e.jsxs("span",{children:["Vraag ",t+1," van ",wc.length]}),e.jsxs("span",{children:[Math.round(h),"%"]})]}),e.jsx("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden",children:e.jsx(Z.div,{className:"h-full bg-gradient-to-r from-blue-600 to-blue-500 rounded-full",initial:{width:0},animate:{width:`${h}%`},transition:{duration:.3}})})]}),e.jsx(Cr,{mode:"wait",children:e.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:d.question}),e.jsx("div",{className:"space-y-3",children:d.options.map((p,g)=>e.jsx("button",{onClick:()=>f(g),className:"w-full p-5 rounded-xl border-2 border-gray-200 text-left transition-all hover:border-blue-300 hover:bg-blue-50 hover:shadow-md",children:e.jsx("p",{className:"font-semibold text-gray-900 text-lg",children:p.label})},g))})]},t)}),t>0&&e.jsxs("button",{onClick:()=>{n(t-1),i(r.slice(0,-1))},className:"mt-6 flex items-center gap-2 text-gray-600 hover:text-gray-900 transition-colors",children:[e.jsx(ht,{className:"w-4 h-4"}),"Vorige vraag"]})]})})}function Mq(){return e.jsx("div",{className:"pt-20 min-h-screen bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e.jsx(At,{className:"w-12 h-12 text-[#FAB868]"}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F]",children:"AI Quiz"})]}),e.jsxs("div",{className:"prose max-w-none prose-headings:text-[#0D0D0F]",children:[e.jsx("h2",{children:"Overzicht"}),e.jsx("p",{children:"De AI Readiness Quiz is een interactieve, 10-vraag deterministische quiz die bedrijven classificeert in AI-gereedheid levels op basis van signaal-analyse. Het genereert een scherp, confronterend resultaat met LLM-gegenereerde teksten."}),e.jsx("h2",{children:"Architectuur"}),e.jsx("h3",{children:"Frontend: pages/AIQuiz.jsx"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Framework:"})," React met multi-step state management"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Logic:"})," Signal-based deterministic classification"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Backend:"})," Geen dedicated function - LLM direct via Core.InvokeLLM"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Flow:"}),e.jsxs("ol",{children:[e.jsx("li",{children:"10 vragen met 4 opties elk"}),e.jsx("li",{children:"Signalen en severity worden verzameld"}),e.jsx("li",{children:"Level wordt bepaald via signal counts"}),e.jsx("li",{children:"LLM genereert scherpe, eerlijke teksten"}),e.jsx("li",{children:"Results met CTAs naar Impact Report en Contact"})]})]})]}),e.jsx("h2",{children:"10 Quiz Vragen"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"1. Chaos"}),e.jsx("p",{className:"text-sm mb-2",children:'"Wat is de grootste bron van chaos op een doorsnee werkdag?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," context_switching, informele_afstemming, single_source_of_truth_missing, systeem_onbetrouwbaar, onduidelijke_verantwoordelijkheid"]}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Themes:"})," informatie, proces, data, tooling, ownership"]})]}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"2. Herhaalwerk"}),e.jsx("p",{className:"text-sm mb-2",children:'"Waar gaat de meeste tijd in zitten aan herhaalwerk?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," handmatige_overdracht, rapportage_handwerk, status_fragmenteel, foutcorrectie_cyclus"]}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Themes:"})," integratie, data, communicatie, kwaliteit"]})]}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"3. Besluitvorming"}),e.jsx("p",{className:"text-sm mb-2",children:'"Hoe neem je belangrijke beslissingen?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," besluit_op_intuitie, data_versnippering, gecentraliseerd_inzicht, decision_latency"]}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Themes:"})," besluitvorming, data"]})]}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"4. Schaalbaarheid"}),e.jsx("p",{className:"text-sm mb-2",children:'"Wat gebeurt er als jullie plotseling 30% meer orders krijgen?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," groei_instabiliteit, groei_door_headcount, schaalbare_knelpunten, schaalbaar_proces"]})]}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"5. Systemenlandschap"}),e.jsx("p",{className:"text-sm mb-2",children:'"Hoe zou je je systemenlandschap omschrijven?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," tool_fragmentatie, fragiele_koppelingen, gedeeltelijke_integratie, stabiele_architectuur"]})]}),e.jsx("p",{className:"text-sm text-gray-500 italic",children:"+ 5 meer vragen over fouten, tijdverlies, AI adoptie, frustratie en ambitie"})]}),e.jsx("h2",{children:"Signal-Based Level Determination"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto",children:`determineLevel(signalCounts) {
  // Chaos
  if (reactief_werken >= 1 OR 
      tool_fragmentatie >= 1 OR 
      human_error >= 1)
    return "Chaos"
  
  // Handmatig
  if (handmatige_overdracht >= 1 OR 
      single_source_of_truth_missing >= 1 OR 
      rapportage_handwerk >= 1)
    return "Handmatig"
  
  // Groeiend
  if (decision_latency >= 1 OR 
      data_versnippering >= 1 OR 
      schaalbare_knelpunten >= 1)
    return "Groeiend"
  
  // Automation-ready
  if (gedeeltelijke_integratie >= 1 OR 
      optimalisatie_drang >= 1 OR 
      leverage_ambitie >= 1)
    return "Automation-ready"
  
  // AI-native
  if (ai_operationeel >= 1 OR 
      stabiele_architectuur >= 1 OR 
      schaalbaar_proces >= 1)
    return "AI-native"
  
  return "Groeiend" // Default
}`}),e.jsx("h2",{children:"Intervention Library"}),e.jsx("p",{children:"Concrete interventies per signaal:"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto text-sm",children:`const interventions = {
  single_source_of_truth_missing: 
    "Centrale databron + automatische sync",
  decision_latency: 
    "Realtime KPI snapshot + alerts",
  handmatige_overdracht: 
    "Workflow automation via API of event-triggers",
  tool_fragmentatie: 
    "Integratiehub met vaste datadefinities",
  data_versnippering: 
    "Data warehouse met geautomatiseerde ETL",
  reactief_werken: 
    "Proactieve monitoring + predictive alerts",
  human_error: 
    "Validatie + automation van kritieke invoer",
  data_silo: 
    "API-gedreven integraties tussen systemen",
  informatie_zoekverlies: 
    "Centrale kennisbank met AI search",
  automation_blokkade: 
    "Low-code automation platform"
}`}),e.jsx("h2",{children:"LLM-Generated Results"}),e.jsx("h3",{children:"Scan Profile"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg",children:`{
  level: "Chaos|Handmatig|Groeiend|Automation-ready|AI-native",
  top_signals: ["signaal_1", "signaal_2", "signaal_3"],
  dominant_theme: "hoogste_scoring_theme",
  suggested_intervention: "intervention_from_library",
  peer_context: "MKB-bedrijven met vergelijkbare omvang"
}`}),e.jsx("h3",{children:"LLM Prompt"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto",children:`Je bent een kritische bedrijfsanalist voor MKB.
Je vermijdt open deuren en managementtaal.
Je benoemt gevolgen, vergelijkt met peers en confronteert.
Je verzint geen feiten buiten de input.
Als de analyse te braaf is, herschrijf je.

Regels:
- Benoem wat dit kost in tijd, focus of groeisnelheid
- Vergelijk met vergelijkbare MKB-bedrijven
- Benoem één ongemakkelijke waarheid
- Geef één concrete eerste ingreep
- Geen algemene termen zoals "te veel handmatig"

Scan-profiel: {scanProfile JSON}`}),e.jsx("h3",{children:"LLM JSON Schema Output"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg",children:`{
  "onderschatting": 
    "Wat jullie waarschijnlijk onderschatten (2-3 zinnen)",
  "kosten": 
    "Wat dit jullie nu echt kost (concreet, met cijfers)",
  "peers": 
    "Waarom dit bij anderen al anders is (vergelijking)",
  "eerste_ingreep": 
    "Meest logische eerste ingreep (concreet)",
  "deelbare_uitspraak": 
    "Eén deelbare uitspraak - max 12 woorden"
}`}),e.jsx("h2",{children:"Results Display"}),e.jsx("h3",{children:"1. Hero"}),e.jsxs("div",{className:"bg-gradient-to-r from-purple-600 to-pink-600 text-white p-4 rounded-lg mb-4",children:[e.jsxs("span",{className:"inline-block px-4 py-2 bg-white/20 rounded-full text-sm font-bold mb-2",children:[e.jsx(At,{className:"w-4 h-4 inline mr-1"}),"Je niveau: Groeiend"]}),e.jsx("h3",{className:"text-2xl font-bold",children:"Deelbare uitspraak komt hier"})]}),e.jsx("h3",{children:"2. Analyse Secties"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"p-4 border-2 border-red-100 bg-white rounded-xl",children:[e.jsxs("div",{className:"flex items-start gap-2 mb-2",children:[e.jsx(Va,{className:"w-5 h-5 text-red-600 mt-1"}),e.jsx("h4",{className:"font-bold",children:"Wat jullie waarschijnlijk onderschatten"})]}),e.jsx("p",{className:"text-sm text-gray-600",children:"LLM output: onderschatting"})]}),e.jsxs("div",{className:"p-4 border-2 border-orange-100 bg-white rounded-xl",children:[e.jsxs("div",{className:"flex items-start gap-2 mb-2",children:[e.jsx(Ki,{className:"w-5 h-5 text-orange-600 mt-1"}),e.jsx("h4",{className:"font-bold",children:"Wat dit jullie nu echt kost"})]}),e.jsx("p",{className:"text-sm text-gray-600",children:"LLM output: kosten (concreet, met cijfers)"})]}),e.jsxs("div",{className:"p-4 border-2 border-blue-100 bg-white rounded-xl",children:[e.jsx("h4",{className:"font-bold mb-1",children:"Waarom dit bij anderen al anders is"}),e.jsx("p",{className:"text-sm text-gray-600",children:"LLM output: peers (vergelijking)"})]}),e.jsxs("div",{className:"p-4 bg-gradient-to-r from-green-500 to-emerald-600 text-white rounded-xl",children:[e.jsx("h4",{className:"font-bold mb-1",children:"Meest logische eerste ingreep"}),e.jsx("p",{className:"text-sm",children:"LLM output: eerste_ingreep"})]})]}),e.jsx("h3",{children:"3. Share Functie"}),e.jsx("p",{children:"Native Web Share API voor deelbare uitspraak"}),e.jsx("h3",{children:"4. Call-to-Actions"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Primary:"}),' "Genereer mijn Impact Rapport" → /ImpactRapport?level={level}']}),e.jsxs("li",{children:[e.jsx("strong",{children:"Secondary 1:"}),' "15-minuten Consult" → /Contact?ref=quiz&level={level}']}),e.jsxs("li",{children:[e.jsx("strong",{children:"Secondary 2:"}),' "Relevante Trainingen" → /Training']})]}),e.jsx("h2",{children:"De 5 Levels"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"p-4 bg-red-50 border-2 border-red-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-red-900 mb-2",children:"Chaos"}),e.jsxs("p",{className:"text-sm text-red-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," Brandjes blussen, systemen werken niet samen, veel menselijke fouten"]}),e.jsxs("p",{className:"text-sm text-red-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," Stabiliseren, overzicht creëren"]})]}),e.jsxs("div",{className:"p-4 bg-orange-50 border-2 border-orange-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-orange-900 mb-2",children:"Handmatig"}),e.jsxs("p",{className:"text-sm text-orange-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," Data overtypen, Excel als waarheid, rapportage handwerk"]}),e.jsxs("p",{className:"text-sm text-orange-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," Automatiseren, integreren"]})]}),e.jsxs("div",{className:"p-4 bg-yellow-50 border-2 border-yellow-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-yellow-900 mb-2",children:"Groeiend"}),e.jsxs("p",{className:"text-sm text-yellow-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," Beslissingen op gevoel, informatie versnipperd, groei kost mensen"]}),e.jsxs("p",{className:"text-sm text-yellow-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," Data centraliseren, workflows optimaliseren"]})]}),e.jsxs("div",{className:"p-4 bg-blue-50 border-2 border-blue-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-blue-900 mb-2",children:"Automation-ready"}),e.jsxs("p",{className:"text-sm text-blue-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," Systemen deels geïntegreerd, wil slimmer werken, groei zonder headcount"]}),e.jsxs("p",{className:"text-sm text-blue-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," AI agents, advanced automation"]})]}),e.jsxs("div",{className:"p-4 bg-green-50 border-2 border-green-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-green-900 mb-2",children:"AI-native"}),e.jsxs("p",{className:"text-sm text-green-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," AI is operationeel, stabiele architectuur, schaalbare processen"]}),e.jsxs("p",{className:"text-sm text-green-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," Innoveren, vooroplopen"]})]})]}),e.jsx("h2",{children:"LLM Gebruik"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Provider:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Toon:"})," Kritisch, confronterend, concreet"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Anti-patterns:"})," Geen managementjargon, open deuren"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Fallback:"})," Rule-based output als LLM faalt"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Verwerkingstijd:"})," 3-5 seconden"]})]}),e.jsx("h2",{children:"Data Structure per Vraag"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg text-sm",children:`{
  id: number,
  question: "string",
  options: [
    {
      label: "string",
      themes: ["string"],
      signals: ["string"],
      severity: 0-3  // 0=positief, 3=problematisch
    }
  ]
}`}),e.jsx("h2",{children:"Performance"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Frontend-only logic:"})," Zeer snel"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Single LLM call:"})," Alleen voor tekstgeneratie"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Deterministische classificatie:"})," Consistent"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Instant feedback:"})," Op vraag selectie"]})]}),e.jsx("h2",{children:"Files"}),e.jsx("ul",{className:"font-mono text-sm",children:e.jsx("li",{children:"pages/AIQuiz.jsx - Complete quiz component (frontend-only)"})}),e.jsx("h2",{children:"Integraties"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Impact Report:"})," Level wordt doorgegeven als query parameter"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Contact:"})," Quiz referentie + level in URL"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Training:"})," Algemene link zonder parameters"]})]})]})]})})})}function vn(t){const n=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&n==="[object Date]"?new t.constructor(+t):typeof t=="number"||n==="[object Number]"||typeof t=="string"||n==="[object String]"?new Date(t):new Date(NaN)}function Qi(t,n){return t instanceof Date?new t.constructor(n):new Date(n)}function FE(t,n){const r=vn(t);if(isNaN(n))return Qi(t,NaN);if(!n)return r;const i=r.getDate(),s=Qi(t,r.getTime());s.setMonth(r.getMonth()+n+1,0);const a=s.getDate();return i>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),i),r)}const ME=6048e5,Lq=864e5;let Bq={};function kf(){return Bq}function uu(t,n){var c,d,h,f;const r=kf(),i=(n==null?void 0:n.weekStartsOn)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??r.weekStartsOn??((f=(h=r.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)??0,s=vn(t),a=s.getDay(),o=(a<i?7:0)+a-i;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Yh(t){return uu(t,{weekStartsOn:1})}function LE(t){const n=vn(t),r=n.getFullYear(),i=Qi(t,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const s=Yh(i),a=Qi(t,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const o=Yh(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function ml(t){const n=vn(t);return n.setHours(0,0,0,0),n}function Kk(t){const n=vn(t),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),+t-+r}function zq(t,n){const r=ml(t),i=ml(n),s=+r-Kk(r),a=+i-Kk(i);return Math.round((s-a)/Lq)}function qq(t){const n=LE(t),r=Qi(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Yh(r)}function Vq(t,n){const r=ml(t),i=ml(n);return+r==+i}function Uq(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function $q(t){if(!Uq(t)&&typeof t!="number")return!1;const n=vn(t);return!isNaN(Number(n))}function Hq(t){const n=vn(t),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Wq(t,n){const r=vn(t.start),i=vn(t.end);let s=+r>+i;const a=s?+r:+i,o=s?i:r;o.setHours(0,0,0,0);let c=1;const d=[];for(;+o<=a;)d.push(vn(o)),o.setDate(o.getDate()+c),o.setHours(0,0,0,0);return s?d.reverse():d}function Kq(t){const n=vn(t);return n.setDate(1),n.setHours(0,0,0,0),n}function Gq(t){const n=vn(t),r=Qi(t,0);return r.setFullYear(n.getFullYear(),0,1),r.setHours(0,0,0,0),r}const Qq={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Yq=(t,n,r)=>{let i;const s=Qq[t];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function Wo(t){return(n={})=>{const r=n.width?String(n.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const Xq={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jq={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zq={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},eV={date:Wo({formats:Xq,defaultWidth:"full"}),time:Wo({formats:Jq,defaultWidth:"full"}),dateTime:Wo({formats:Zq,defaultWidth:"full"})},tV={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nV=(t,n,r,i)=>tV[t];function ai(t){return(n,r)=>{const i=r!=null&&r.context?String(r.context):"standalone";let s;if(i==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,c=r!=null&&r.width?String(r.width):o;s=t.formattingValues[c]||t.formattingValues[o]}else{const o=t.defaultWidth,c=r!=null&&r.width?String(r.width):t.defaultWidth;s=t.values[c]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(n):n;return s[a]}}const rV={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},iV={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},sV={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},aV={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},oV={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},lV={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},cV=(t,n)=>{const r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},uV={ordinalNumber:cV,era:ai({values:rV,defaultWidth:"wide"}),quarter:ai({values:iV,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ai({values:sV,defaultWidth:"wide"}),day:ai({values:aV,defaultWidth:"wide"}),dayPeriod:ai({values:oV,defaultWidth:"wide",formattingValues:lV,defaultFormattingWidth:"wide"})};function oi(t){return(n,r={})=>{const i=r.width,s=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],a=n.match(s);if(!a)return null;const o=a[0],c=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(c)?hV(c,m=>m.test(o)):dV(c,m=>m.test(o));let h;h=t.valueCallback?t.valueCallback(d):d,h=r.valueCallback?r.valueCallback(h):h;const f=n.slice(o.length);return{value:h,rest:f}}}function dV(t,n){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n(t[r]))return r}function hV(t,n){for(let r=0;r<t.length;r++)if(n(t[r]))return r}function BE(t){return(n,r={})=>{const i=n.match(t.matchPattern);if(!i)return null;const s=i[0],a=n.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;const c=n.slice(s.length);return{value:o,rest:c}}}const fV=/^(\d+)(th|st|nd|rd)?/i,mV=/\d+/i,pV={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},gV={any:[/^b/i,/^(a|c)/i]},xV={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yV={any:[/1/i,/2/i,/3/i,/4/i]},vV={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},bV={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},jV={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wV={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},NV={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kV={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},_V={ordinalNumber:BE({matchPattern:fV,parsePattern:mV,valueCallback:t=>parseInt(t,10)}),era:oi({matchPatterns:pV,defaultMatchWidth:"wide",parsePatterns:gV,defaultParseWidth:"any"}),quarter:oi({matchPatterns:xV,defaultMatchWidth:"wide",parsePatterns:yV,defaultParseWidth:"any",valueCallback:t=>t+1}),month:oi({matchPatterns:vV,defaultMatchWidth:"wide",parsePatterns:bV,defaultParseWidth:"any"}),day:oi({matchPatterns:jV,defaultMatchWidth:"wide",parsePatterns:wV,defaultParseWidth:"any"}),dayPeriod:oi({matchPatterns:NV,defaultMatchWidth:"any",parsePatterns:kV,defaultParseWidth:"any"})},SV={code:"en-US",formatDistance:Yq,formatLong:eV,formatRelative:nV,localize:uV,match:_V,options:{weekStartsOn:0,firstWeekContainsDate:1}};function AV(t){const n=vn(t);return zq(n,Gq(n))+1}function CV(t){const n=vn(t),r=+Yh(n)-+qq(n);return Math.round(r/ME)+1}function zE(t,n){var f,m,p,g;const r=vn(t),i=r.getFullYear(),s=kf(),a=(n==null?void 0:n.firstWeekContainsDate)??((m=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??s.firstWeekContainsDate??((g=(p=s.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,o=Qi(t,0);o.setFullYear(i+1,0,a),o.setHours(0,0,0,0);const c=uu(o,n),d=Qi(t,0);d.setFullYear(i,0,a),d.setHours(0,0,0,0);const h=uu(d,n);return r.getTime()>=c.getTime()?i+1:r.getTime()>=h.getTime()?i:i-1}function EV(t,n){var c,d,h,f;const r=kf(),i=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(h=r.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,s=zE(t,n),a=Qi(t,0);return a.setFullYear(s,0,i),a.setHours(0,0,0,0),uu(a,n)}function TV(t,n){const r=vn(t),i=+uu(r,n)-+EV(r,n);return Math.round(i/ME)+1}function Tt(t,n){const r=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return r+i}const ks={y(t,n){const r=t.getFullYear(),i=r>0?r:1-r;return Tt(n==="yy"?i%100:i,n.length)},M(t,n){const r=t.getMonth();return n==="M"?String(r+1):Tt(r+1,2)},d(t,n){return Tt(t.getDate(),n.length)},a(t,n){const r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(t,n){return Tt(t.getHours()%12||12,n.length)},H(t,n){return Tt(t.getHours(),n.length)},m(t,n){return Tt(t.getMinutes(),n.length)},s(t,n){return Tt(t.getSeconds(),n.length)},S(t,n){const r=n.length,i=t.getMilliseconds(),s=Math.trunc(i*Math.pow(10,r-3));return Tt(s,n.length)}},To={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Gk={G:function(t,n,r){const i=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){const i=t.getFullYear(),s=i>0?i:1-i;return r.ordinalNumber(s,{unit:"year"})}return ks.y(t,n)},Y:function(t,n,r,i){const s=zE(t,i),a=s>0?s:1-s;if(n==="YY"){const o=a%100;return Tt(o,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Tt(a,n.length)},R:function(t,n){const r=LE(t);return Tt(r,n.length)},u:function(t,n){const r=t.getFullYear();return Tt(r,n.length)},Q:function(t,n,r){const i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Tt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){const i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Tt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){const i=t.getMonth();switch(n){case"M":case"MM":return ks.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){const i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return Tt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){const s=TV(t,i);return n==="wo"?r.ordinalNumber(s,{unit:"week"}):Tt(s,n.length)},I:function(t,n,r){const i=CV(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Tt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):ks.d(t,n)},D:function(t,n,r){const i=AV(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Tt(i,n.length)},E:function(t,n,r){const i=t.getDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){const s=t.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Tt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){const s=t.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Tt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(t,n,r){const i=t.getDay(),s=i===0?7:i;switch(n){case"i":return String(s);case"ii":return Tt(s,n.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){const s=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,n,r){const i=t.getHours();let s;switch(i===12?s=To.noon:i===0?s=To.midnight:s=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,n,r){const i=t.getHours();let s;switch(i>=17?s=To.evening:i>=12?s=To.afternoon:i>=4?s=To.morning:s=To.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return ks.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):ks.H(t,n)},K:function(t,n,r){const i=t.getHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Tt(i,n.length)},k:function(t,n,r){let i=t.getHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Tt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):ks.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):ks.s(t,n)},S:function(t,n){return ks.S(t,n)},X:function(t,n,r){const i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return Yk(i);case"XXXX":case"XX":return wa(i);case"XXXXX":case"XXX":default:return wa(i,":")}},x:function(t,n,r){const i=t.getTimezoneOffset();switch(n){case"x":return Yk(i);case"xxxx":case"xx":return wa(i);case"xxxxx":case"xxx":default:return wa(i,":")}},O:function(t,n,r){const i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Qk(i,":");case"OOOO":default:return"GMT"+wa(i,":")}},z:function(t,n,r){const i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Qk(i,":");case"zzzz":default:return"GMT"+wa(i,":")}},t:function(t,n,r){const i=Math.trunc(t.getTime()/1e3);return Tt(i,n.length)},T:function(t,n,r){const i=t.getTime();return Tt(i,n.length)}};function Qk(t,n=""){const r=t>0?"-":"+",i=Math.abs(t),s=Math.trunc(i/60),a=i%60;return a===0?r+String(s):r+String(s)+n+Tt(a,2)}function Yk(t,n){return t%60===0?(t>0?"-":"+")+Tt(Math.abs(t)/60,2):wa(t,n)}function wa(t,n=""){const r=t>0?"-":"+",i=Math.abs(t),s=Tt(Math.trunc(i/60),2),a=Tt(i%60,2);return r+s+n+a}const Xk=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},qE=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},PV=(t,n)=>{const r=t.match(/(P+)(p+)?/)||[],i=r[1],s=r[2];if(!s)return Xk(t,n);let a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Xk(i,n)).replace("{{time}}",qE(s,n))},OV={p:qE,P:PV},DV=/^D+$/,IV=/^Y+$/,RV=["D","DD","YY","YYYY"];function FV(t){return DV.test(t)}function MV(t){return IV.test(t)}function LV(t,n,r){const i=BV(t,n,r);if(console.warn(i),RV.includes(t))throw new RangeError(i)}function BV(t,n,r){const i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const zV=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,VV=/^'([^]*?)'?$/,UV=/''/g,$V=/[a-zA-Z]/;function _t(t,n,r){var f,m,p,g,b,j,y,x;const i=kf(),s=(r==null?void 0:r.locale)??i.locale??SV,a=(r==null?void 0:r.firstWeekContainsDate)??((m=(f=r==null?void 0:r.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((g=(p=i.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,o=(r==null?void 0:r.weekStartsOn)??((j=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:j.weekStartsOn)??i.weekStartsOn??((x=(y=i.locale)==null?void 0:y.options)==null?void 0:x.weekStartsOn)??0,c=vn(t);if(!$q(c))throw new RangeError("Invalid time value");let d=n.match(qV).map(N=>{const w=N[0];if(w==="p"||w==="P"){const k=OV[w];return k(N,s.formatLong)}return N}).join("").match(zV).map(N=>{if(N==="''")return{isToken:!1,value:"'"};const w=N[0];if(w==="'")return{isToken:!1,value:HV(N)};if(Gk[w])return{isToken:!0,value:N};if(w.match($V))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:N}});s.localize.preprocessor&&(d=s.localize.preprocessor(c,d));const h={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return d.map(N=>{if(!N.isToken)return N.value;const w=N.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&MV(w)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&FV(w))&&LV(w,n,String(t));const k=Gk[w[0]];return k(c,w,s.localize,h)}).join("")}function HV(t){const n=t.match(VV);return n?n[1].replace(UV,"'"):t}function VE(t){return+vn(t)<Date.now()}function WV(t,n){return FE(t,-1)}function KV(){var o,c;const[t,n]=I.useState(null),{data:r=[],isLoading:i}=Fe({queryKey:["ai-quiz-submissions"],queryFn:()=>ce.entities.AIQuizSubmission.list("-created_date")}),s=()=>{const d=[["Email","Naam","Bedrijf","AI Niveau","Score","Datum"],...r.map(m=>[m.email||"",m.name||"",m.company||"",m.level,m.score,_t(new Date(m.created_date),"dd-MM-yyyy HH:mm")])].map(m=>m.join(",")).join(`
`),h=new Blob([d],{type:"text/csv;charset=utf-8;"}),f=document.createElement("a");f.href=URL.createObjectURL(h),f.download=`ai-quiz-submissions-${_t(new Date,"dd-MM-yyyy")}.csv`,f.click()},a=d=>({Chaos:"bg-red-100 text-red-800",Handmatig:"bg-orange-100 text-orange-800",Groeiend:"bg-yellow-100 text-yellow-800","Automation-ready":"bg-blue-100 text-blue-800","AI-native":"bg-green-100 text-green-800"})[d]||"bg-gray-100 text-gray-800";return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(de,{to:ae("AdminDashboard"),children:e.jsx(se,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"AI Quiz Resultaten"}),e.jsxs("p",{className:"text-gray-600",children:[r.length," quizzen ingevuld"]})]})]}),e.jsxs(se,{onClick:s,disabled:r.length===0,children:[e.jsx(ju,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),i?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):r.length===0?e.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[e.jsx($t,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen resultaten"}),e.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen AI Quiz resultaten"})]}):e.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[e.jsx("div",{className:"space-y-4",children:r.map(d=>e.jsxs("div",{onClick:()=>n(d),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(t==null?void 0:t.id)===d.id?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900",children:d.company||d.name||d.email||"Anoniem"}),d.name&&d.company&&e.jsx("p",{className:"text-sm text-gray-500",children:d.name})]}),e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-medium ${a(d.level)}`,children:d.level})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:[e.jsxs("span",{children:["Score: ",d.score]}),e.jsx("span",{children:"•"}),e.jsx("span",{children:_t(new Date(d.created_date),"dd MMM yyyy HH:mm")})]})]},d.id))}),e.jsx("div",{className:"lg:sticky lg:top-24 h-fit",children:t?e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6",children:"Detail"}),e.jsxs("div",{className:"space-y-4",children:[t.email&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email"}),e.jsx("p",{className:"text-gray-900",children:t.email})]}),t.name&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Naam"}),e.jsx("p",{className:"text-gray-900",children:t.name})]}),t.company&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Bedrijf"}),e.jsx("p",{className:"text-gray-900",children:t.company})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"AI Readiness Niveau"}),e.jsx("span",{className:`inline-block mt-1 px-3 py-1 rounded-full text-sm font-medium ${a(t.level)}`,children:t.level})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Score"}),e.jsx("p",{className:"text-gray-900 font-semibold",children:t.score})]}),((o=t.analysis)==null?void 0:o.report)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Analyse"}),e.jsx("p",{className:"text-gray-900 text-sm whitespace-pre-line",children:t.analysis.report})]}),((c=t.analysis)==null?void 0:c.themes)&&Object.keys(t.analysis.themes).length>0&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Thema's"}),e.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:Object.entries(t.analysis.themes).map(([d,h])=>e.jsxs("span",{className:"px-2 py-1 bg-gray-100 rounded text-xs",children:[d,": ",h]},d))})]})]})]}):e.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center border-2 border-dashed border-gray-300",children:[e.jsx($t,{className:"w-12 h-12 text-gray-400 mx-auto mb-3"}),e.jsx("p",{className:"text-gray-600",children:"Selecteer een resultaat om details te bekijken"})]})})]})]})})}function Jk(t,[n,r]){return Math.min(r,Math.max(n,t))}function bt(t,n,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return n==null?void 0:n(s)}}function to(t,n=[]){let r=[];function i(a,o){const c=I.createContext(o),d=r.length;r=[...r,o];const h=m=>{var x;const{scope:p,children:g,...b}=m,j=((x=p==null?void 0:p[t])==null?void 0:x[d])||c,y=I.useMemo(()=>b,Object.values(b));return e.jsx(j.Provider,{value:y,children:g})};h.displayName=a+"Provider";function f(m,p){var j;const g=((j=p==null?void 0:p[t])==null?void 0:j[d])||c,b=I.useContext(g);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[h,f]}const s=()=>{const a=r.map(o=>I.createContext(o));return function(c){const d=(c==null?void 0:c[t])||a;return I.useMemo(()=>({[`__scope${t}`]:{...c,[t]:d}}),[c,d])}};return s.scopeName=t,[i,GV(s,...n)]}function GV(...t){const n=t[0];if(t.length===1)return n;const r=()=>{const i=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=i.reduce((c,{useScope:d,scopeName:h})=>{const m=d(a)[`__scope${h}`];return{...c,...m}},{});return I.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function UE(t){const n=t+"CollectionProvider",[r,i]=to(n),[s,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),o=j=>{const{scope:y,children:x}=j,N=Pt.useRef(null),w=Pt.useRef(new Map).current;return e.jsx(s,{scope:y,itemMap:w,collectionRef:N,children:x})};o.displayName=n;const c=t+"CollectionSlot",d=cu(c),h=Pt.forwardRef((j,y)=>{const{scope:x,children:N}=j,w=a(c,x),k=Yt(y,w.collectionRef);return e.jsx(d,{ref:k,children:N})});h.displayName=c;const f=t+"CollectionItemSlot",m="data-radix-collection-item",p=cu(f),g=Pt.forwardRef((j,y)=>{const{scope:x,children:N,...w}=j,k=Pt.useRef(null),A=Yt(y,k),S=a(f,x);return Pt.useEffect(()=>(S.itemMap.set(k,{ref:k,...w}),()=>void S.itemMap.delete(k))),e.jsx(p,{[m]:"",ref:A,children:N})});g.displayName=f;function b(j){const y=a(t+"CollectionConsumer",j);return Pt.useCallback(()=>{const N=y.collectionRef.current;if(!N)return[];const w=Array.from(N.querySelectorAll(`[${m}]`));return Array.from(y.itemMap.values()).sort((S,E)=>w.indexOf(S.ref.current)-w.indexOf(E.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:h,ItemSlot:g},b,i]}var QV=I.createContext(void 0);function Yv(t){const n=I.useContext(QV);return t||n||"ltr"}var YV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jt=YV.reduce((t,n)=>{const r=cu(`Primitive.${n}`),i=I.forwardRef((s,a)=>{const{asChild:o,...c}=s,d=o?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...c,ref:a})});return i.displayName=`Primitive.${n}`,{...t,[n]:i}},{});function XV(t,n){t&&ku.flushSync(()=>t.dispatchEvent(n))}function Gs(t){const n=I.useRef(t);return I.useEffect(()=>{n.current=t}),I.useMemo(()=>(...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},[])}function JV(t,n=globalThis==null?void 0:globalThis.document){const r=Gs(t);I.useEffect(()=>{const i=s=>{s.key==="Escape"&&r(s)};return n.addEventListener("keydown",i,{capture:!0}),()=>n.removeEventListener("keydown",i,{capture:!0})},[r,n])}var ZV="DismissableLayer",by="dismissableLayer.update",eU="dismissableLayer.pointerDownOutside",tU="dismissableLayer.focusOutside",Zk,$E=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),HE=I.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:o,onDismiss:c,...d}=t,h=I.useContext($E),[f,m]=I.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=I.useState({}),b=Yt(n,E=>m(E)),j=Array.from(h.layers),[y]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),x=j.indexOf(y),N=f?j.indexOf(f):-1,w=h.layersWithOutsidePointerEventsDisabled.size>0,k=N>=x,A=iU(E=>{const C=E.target,B=[...h.branches].some(D=>D.contains(C));!k||B||(s==null||s(E),o==null||o(E),E.defaultPrevented||c==null||c())},p),S=sU(E=>{const C=E.target;[...h.branches].some(D=>D.contains(C))||(a==null||a(E),o==null||o(E),E.defaultPrevented||c==null||c())},p);return JV(E=>{N===h.layers.size-1&&(i==null||i(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},p),I.useEffect(()=>{if(f)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Zk=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(f)),h.layers.add(f),e2(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Zk)}},[f,p,r,h]),I.useEffect(()=>()=>{f&&(h.layers.delete(f),h.layersWithOutsidePointerEventsDisabled.delete(f),e2())},[f,h]),I.useEffect(()=>{const E=()=>g({});return document.addEventListener(by,E),()=>document.removeEventListener(by,E)},[]),e.jsx(jt.div,{...d,ref:b,style:{pointerEvents:w?k?"auto":"none":void 0,...t.style},onFocusCapture:bt(t.onFocusCapture,S.onFocusCapture),onBlurCapture:bt(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:bt(t.onPointerDownCapture,A.onPointerDownCapture)})});HE.displayName=ZV;var nU="DismissableLayerBranch",rU=I.forwardRef((t,n)=>{const r=I.useContext($E),i=I.useRef(null),s=Yt(n,i);return I.useEffect(()=>{const a=i.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),e.jsx(jt.div,{...t,ref:s})});rU.displayName=nU;function iU(t,n=globalThis==null?void 0:globalThis.document){const r=Gs(t),i=I.useRef(!1),s=I.useRef(()=>{});return I.useEffect(()=>{const a=c=>{if(c.target&&!i.current){let d=function(){WE(eU,r,h,{discrete:!0})};const h={originalEvent:c};c.pointerType==="touch"?(n.removeEventListener("click",s.current),s.current=d,n.addEventListener("click",s.current,{once:!0})):d()}else n.removeEventListener("click",s.current);i.current=!1},o=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),n.removeEventListener("pointerdown",a),n.removeEventListener("click",s.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function sU(t,n=globalThis==null?void 0:globalThis.document){const r=Gs(t),i=I.useRef(!1);return I.useEffect(()=>{const s=a=>{a.target&&!i.current&&WE(tU,r,{originalEvent:a},{discrete:!1})};return n.addEventListener("focusin",s),()=>n.removeEventListener("focusin",s)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function e2(){const t=new CustomEvent(by);document.dispatchEvent(t)}function WE(t,n,r,{discrete:i}){const s=r.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});n&&s.addEventListener(t,n,{once:!0}),i?XV(s,a):s.dispatchEvent(a)}var fg=0;function aU(){I.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??t2()),document.body.insertAdjacentElement("beforeend",t[1]??t2()),fg++,()=>{fg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),fg--}},[])}function t2(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var mg="focusScope.autoFocusOnMount",pg="focusScope.autoFocusOnUnmount",n2={bubbles:!1,cancelable:!0},oU="FocusScope",KE=I.forwardRef((t,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...o}=t,[c,d]=I.useState(null),h=Gs(s),f=Gs(a),m=I.useRef(null),p=Yt(n,j=>d(j)),g=I.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I.useEffect(()=>{if(i){let j=function(w){if(g.paused||!c)return;const k=w.target;c.contains(k)?m.current=k:Cs(m.current,{select:!0})},y=function(w){if(g.paused||!c)return;const k=w.relatedTarget;k!==null&&(c.contains(k)||Cs(m.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const A of w)A.removedNodes.length>0&&Cs(c)};document.addEventListener("focusin",j),document.addEventListener("focusout",y);const N=new MutationObserver(x);return c&&N.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",y),N.disconnect()}}},[i,c,g.paused]),I.useEffect(()=>{if(c){i2.add(g);const j=document.activeElement;if(!c.contains(j)){const x=new CustomEvent(mg,n2);c.addEventListener(mg,h),c.dispatchEvent(x),x.defaultPrevented||(lU(fU(GE(c)),{select:!0}),document.activeElement===j&&Cs(c))}return()=>{c.removeEventListener(mg,h),setTimeout(()=>{const x=new CustomEvent(pg,n2);c.addEventListener(pg,f),c.dispatchEvent(x),x.defaultPrevented||Cs(j??document.body,{select:!0}),c.removeEventListener(pg,f),i2.remove(g)},0)}}},[c,h,f,g]);const b=I.useCallback(j=>{if(!r&&!i||g.paused)return;const y=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,x=document.activeElement;if(y&&x){const N=j.currentTarget,[w,k]=cU(N);w&&k?!j.shiftKey&&x===k?(j.preventDefault(),r&&Cs(w,{select:!0})):j.shiftKey&&x===w&&(j.preventDefault(),r&&Cs(k,{select:!0})):x===N&&j.preventDefault()}},[r,i,g.paused]);return e.jsx(jt.div,{tabIndex:-1,...o,ref:p,onKeyDown:b})});KE.displayName=oU;function lU(t,{select:n=!1}={}){const r=document.activeElement;for(const i of t)if(Cs(i,{select:n}),document.activeElement!==r)return}function cU(t){const n=GE(t),r=r2(n,t),i=r2(n.reverse(),t);return[r,i]}function GE(t){const n=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function r2(t,n){for(const r of t)if(!uU(r,{upTo:n}))return r}function uU(t,{upTo:n}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(n!==void 0&&t===n)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function dU(t){return t instanceof HTMLInputElement&&"select"in t}function Cs(t,{select:n=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&dU(t)&&n&&t.select()}}var i2=hU();function hU(){let t=[];return{add(n){const r=t[0];n!==r&&(r==null||r.pause()),t=s2(t,n),t.unshift(n)},remove(n){var r;t=s2(t,n),(r=t[0])==null||r.resume()}}}function s2(t,n){const r=[...t],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function fU(t){return t.filter(n=>n.tagName!=="A")}var Rn=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},mU=Xy[" useId ".trim().toString()]||(()=>{}),pU=0;function Ru(t){const[n,r]=I.useState(mU());return Rn(()=>{r(i=>i??String(pU++))},[t]),n?`radix-${n}`:""}const gU=["top","right","bottom","left"],Qs=Math.min,ur=Math.max,Xh=Math.round,oh=Math.floor,yi=t=>({x:t,y:t}),xU={left:"right",right:"left",bottom:"top",top:"bottom"},yU={start:"end",end:"start"};function jy(t,n,r){return ur(t,Qs(n,r))}function Yi(t,n){return typeof t=="function"?t(n):t}function Xi(t){return t.split("-")[0]}function Al(t){return t.split("-")[1]}function Xv(t){return t==="x"?"y":"x"}function Jv(t){return t==="y"?"height":"width"}const vU=new Set(["top","bottom"]);function di(t){return vU.has(Xi(t))?"y":"x"}function Zv(t){return Xv(di(t))}function bU(t,n,r){r===void 0&&(r=!1);const i=Al(t),s=Zv(t),a=Jv(s);let o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[a]>n.floating[a]&&(o=Jh(o)),[o,Jh(o)]}function jU(t){const n=Jh(t);return[wy(t),n,wy(n)]}function wy(t){return t.replace(/start|end/g,n=>yU[n])}const a2=["left","right"],o2=["right","left"],wU=["top","bottom"],NU=["bottom","top"];function kU(t,n,r){switch(t){case"top":case"bottom":return r?n?o2:a2:n?a2:o2;case"left":case"right":return n?wU:NU;default:return[]}}function _U(t,n,r,i){const s=Al(t);let a=kU(Xi(t),r==="start",i);return s&&(a=a.map(o=>o+"-"+s),n&&(a=a.concat(a.map(wy)))),a}function Jh(t){return t.replace(/left|right|bottom|top/g,n=>xU[n])}function SU(t){return{top:0,right:0,bottom:0,left:0,...t}}function QE(t){return typeof t!="number"?SU(t):{top:t,right:t,bottom:t,left:t}}function Zh(t){const{x:n,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:n,right:n+i,bottom:r+s,x:n,y:r}}function l2(t,n,r){let{reference:i,floating:s}=t;const a=di(n),o=Zv(n),c=Jv(o),d=Xi(n),h=a==="y",f=i.x+i.width/2-s.width/2,m=i.y+i.height/2-s.height/2,p=i[c]/2-s[c]/2;let g;switch(d){case"top":g={x:f,y:i.y-s.height};break;case"bottom":g={x:f,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:m};break;case"left":g={x:i.x-s.width,y:m};break;default:g={x:i.x,y:i.y}}switch(Al(n)){case"start":g[o]-=p*(r&&h?-1:1);break;case"end":g[o]+=p*(r&&h?-1:1);break}return g}const AU=async(t,n,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:a=[],platform:o}=r,c=a.filter(Boolean),d=await(o.isRTL==null?void 0:o.isRTL(n));let h=await o.getElementRects({reference:t,floating:n,strategy:s}),{x:f,y:m}=l2(h,i,d),p=i,g={},b=0;for(let j=0;j<c.length;j++){const{name:y,fn:x}=c[j],{x:N,y:w,data:k,reset:A}=await x({x:f,y:m,initialPlacement:i,placement:p,strategy:s,middlewareData:g,rects:h,platform:o,elements:{reference:t,floating:n}});f=N??f,m=w??m,g={...g,[y]:{...g[y],...k}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(h=A.rects===!0?await o.getElementRects({reference:t,floating:n,strategy:s}):A.rects),{x:f,y:m}=l2(h,p,d)),j=-1)}return{x:f,y:m,placement:p,strategy:s,middlewareData:g}};async function du(t,n){var r;n===void 0&&(n={});const{x:i,y:s,platform:a,rects:o,elements:c,strategy:d}=t,{boundary:h="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:g=0}=Yi(n,t),b=QE(g),y=c[p?m==="floating"?"reference":"floating":m],x=Zh(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:h,rootBoundary:f,strategy:d})),N=m==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),k=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},A=Zh(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:w,strategy:d}):N);return{top:(x.top-A.top+b.top)/k.y,bottom:(A.bottom-x.bottom+b.bottom)/k.y,left:(x.left-A.left+b.left)/k.x,right:(A.right-x.right+b.right)/k.x}}const CU=t=>({name:"arrow",options:t,async fn(n){const{x:r,y:i,placement:s,rects:a,platform:o,elements:c,middlewareData:d}=n,{element:h,padding:f=0}=Yi(t,n)||{};if(h==null)return{};const m=QE(f),p={x:r,y:i},g=Zv(s),b=Jv(g),j=await o.getDimensions(h),y=g==="y",x=y?"top":"left",N=y?"bottom":"right",w=y?"clientHeight":"clientWidth",k=a.reference[b]+a.reference[g]-p[g]-a.floating[b],A=p[g]-a.reference[g],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h));let E=S?S[w]:0;(!E||!await(o.isElement==null?void 0:o.isElement(S)))&&(E=c.floating[w]||a.floating[b]);const C=k/2-A/2,B=E/2-j[b]/2-1,D=Qs(m[x],B),F=Qs(m[N],B),R=D,z=E-j[b]-F,q=E/2-j[b]/2+C,U=jy(R,q,z),Q=!d.arrow&&Al(s)!=null&&q!==U&&a.reference[b]/2-(q<R?D:F)-j[b]/2<0,H=Q?q<R?q-R:q-z:0;return{[g]:p[g]+H,data:{[g]:U,centerOffset:q-U-H,...Q&&{alignmentOffset:H}},reset:Q}}}),EU=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,i;const{placement:s,middlewareData:a,rects:o,initialPlacement:c,platform:d,elements:h}=n,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:j=!0,...y}=Yi(t,n);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=Xi(s),N=di(c),w=Xi(c)===c,k=await(d.isRTL==null?void 0:d.isRTL(h.floating)),A=p||(w||!j?[Jh(c)]:jU(c)),S=b!=="none";!p&&S&&A.push(..._U(c,j,b,k));const E=[c,...A],C=await du(n,y),B=[];let D=((i=a.flip)==null?void 0:i.overflows)||[];if(f&&B.push(C[x]),m){const q=bU(s,o,k);B.push(C[q[0]],C[q[1]])}if(D=[...D,{placement:s,overflows:B}],!B.every(q=>q<=0)){var F,R;const q=(((F=a.flip)==null?void 0:F.index)||0)+1,U=E[q];if(U&&(!(m==="alignment"?N!==di(U):!1)||D.every(K=>di(K.placement)===N?K.overflows[0]>0:!0)))return{data:{index:q,overflows:D},reset:{placement:U}};let Q=(R=D.filter(H=>H.overflows[0]<=0).sort((H,K)=>H.overflows[1]-K.overflows[1])[0])==null?void 0:R.placement;if(!Q)switch(g){case"bestFit":{var z;const H=(z=D.filter(K=>{if(S){const Y=di(K.placement);return Y===N||Y==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(Y=>Y>0).reduce((Y,O)=>Y+O,0)]).sort((K,Y)=>K[1]-Y[1])[0])==null?void 0:z[0];H&&(Q=H);break}case"initialPlacement":Q=c;break}if(s!==Q)return{reset:{placement:Q}}}return{}}}};function c2(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function u2(t){return gU.some(n=>t[n]>=0)}const TU=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...s}=Yi(t,n);switch(i){case"referenceHidden":{const a=await du(n,{...s,elementContext:"reference"}),o=c2(a,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:u2(o)}}}case"escaped":{const a=await du(n,{...s,altBoundary:!0}),o=c2(a,r.floating);return{data:{escapedOffsets:o,escaped:u2(o)}}}default:return{}}}}},YE=new Set(["left","top"]);async function PU(t,n){const{placement:r,platform:i,elements:s}=t,a=await(i.isRTL==null?void 0:i.isRTL(s.floating)),o=Xi(r),c=Al(r),d=di(r)==="y",h=YE.has(o)?-1:1,f=a&&d?-1:1,m=Yi(n,t);let{mainAxis:p,crossAxis:g,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof b=="number"&&(g=c==="end"?b*-1:b),d?{x:g*f,y:p*h}:{x:p*h,y:g*f}}const OU=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var r,i;const{x:s,y:a,placement:o,middlewareData:c}=n,d=await PU(n,t);return o===((r=c.offset)==null?void 0:r.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:s+d.x,y:a+d.y,data:{...d,placement:o}}}}},DU=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:i,placement:s}=n,{mainAxis:a=!0,crossAxis:o=!1,limiter:c={fn:y=>{let{x,y:N}=y;return{x,y:N}}},...d}=Yi(t,n),h={x:r,y:i},f=await du(n,d),m=di(Xi(s)),p=Xv(m);let g=h[p],b=h[m];if(a){const y=p==="y"?"top":"left",x=p==="y"?"bottom":"right",N=g+f[y],w=g-f[x];g=jy(N,g,w)}if(o){const y=m==="y"?"top":"left",x=m==="y"?"bottom":"right",N=b+f[y],w=b-f[x];b=jy(N,b,w)}const j=c.fn({...n,[p]:g,[m]:b});return{...j,data:{x:j.x-r,y:j.y-i,enabled:{[p]:a,[m]:o}}}}}},IU=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:r,y:i,placement:s,rects:a,middlewareData:o}=n,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=Yi(t,n),f={x:r,y:i},m=di(s),p=Xv(m);let g=f[p],b=f[m];const j=Yi(c,n),y=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(d){const w=p==="y"?"height":"width",k=a.reference[p]-a.floating[w]+y.mainAxis,A=a.reference[p]+a.reference[w]-y.mainAxis;g<k?g=k:g>A&&(g=A)}if(h){var x,N;const w=p==="y"?"width":"height",k=YE.has(Xi(s)),A=a.reference[m]-a.floating[w]+(k&&((x=o.offset)==null?void 0:x[m])||0)+(k?0:y.crossAxis),S=a.reference[m]+a.reference[w]+(k?0:((N=o.offset)==null?void 0:N[m])||0)-(k?y.crossAxis:0);b<A?b=A:b>S&&(b=S)}return{[p]:g,[m]:b}}}},RU=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var r,i;const{placement:s,rects:a,platform:o,elements:c}=n,{apply:d=()=>{},...h}=Yi(t,n),f=await du(n,h),m=Xi(s),p=Al(s),g=di(s)==="y",{width:b,height:j}=a.floating;let y,x;m==="top"||m==="bottom"?(y=m,x=p===(await(o.isRTL==null?void 0:o.isRTL(c.floating))?"start":"end")?"left":"right"):(x=m,y=p==="end"?"top":"bottom");const N=j-f.top-f.bottom,w=b-f.left-f.right,k=Qs(j-f[y],N),A=Qs(b-f[x],w),S=!n.middlewareData.shift;let E=k,C=A;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(C=w),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(E=N),S&&!p){const D=ur(f.left,0),F=ur(f.right,0),R=ur(f.top,0),z=ur(f.bottom,0);g?C=b-2*(D!==0||F!==0?D+F:ur(f.left,f.right)):E=j-2*(R!==0||z!==0?R+z:ur(f.top,f.bottom))}await d({...n,availableWidth:C,availableHeight:E});const B=await o.getDimensions(c.floating);return b!==B.width||j!==B.height?{reset:{rects:!0}}:{}}}};function _f(){return typeof window<"u"}function Cl(t){return XE(t)?(t.nodeName||"").toLowerCase():"#document"}function mr(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Si(t){var n;return(n=(XE(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function XE(t){return _f()?t instanceof Node||t instanceof mr(t).Node:!1}function Wr(t){return _f()?t instanceof Element||t instanceof mr(t).Element:!1}function bi(t){return _f()?t instanceof HTMLElement||t instanceof mr(t).HTMLElement:!1}function d2(t){return!_f()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof mr(t).ShadowRoot}const FU=new Set(["inline","contents"]);function Fu(t){const{overflow:n,overflowX:r,overflowY:i,display:s}=Kr(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!FU.has(s)}const MU=new Set(["table","td","th"]);function LU(t){return MU.has(Cl(t))}const BU=[":popover-open",":modal"];function Sf(t){return BU.some(n=>{try{return t.matches(n)}catch{return!1}})}const zU=["transform","translate","scale","rotate","perspective"],qU=["transform","translate","scale","rotate","perspective","filter"],VU=["paint","layout","strict","content"];function eb(t){const n=tb(),r=Wr(t)?Kr(t):t;return zU.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||qU.some(i=>(r.willChange||"").includes(i))||VU.some(i=>(r.contain||"").includes(i))}function UU(t){let n=Ys(t);for(;bi(n)&&!pl(n);){if(eb(n))return n;if(Sf(n))return null;n=Ys(n)}return null}function tb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $U=new Set(["html","body","#document"]);function pl(t){return $U.has(Cl(t))}function Kr(t){return mr(t).getComputedStyle(t)}function Af(t){return Wr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ys(t){if(Cl(t)==="html")return t;const n=t.assignedSlot||t.parentNode||d2(t)&&t.host||Si(t);return d2(n)?n.host:n}function JE(t){const n=Ys(t);return pl(n)?t.ownerDocument?t.ownerDocument.body:t.body:bi(n)&&Fu(n)?n:JE(n)}function hu(t,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const s=JE(t),a=s===((i=t.ownerDocument)==null?void 0:i.body),o=mr(s);if(a){const c=Ny(o);return n.concat(o,o.visualViewport||[],Fu(s)?s:[],c&&r?hu(c):[])}return n.concat(s,hu(s,[],r))}function Ny(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ZE(t){const n=Kr(t);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const s=bi(t),a=s?t.offsetWidth:r,o=s?t.offsetHeight:i,c=Xh(r)!==a||Xh(i)!==o;return c&&(r=a,i=o),{width:r,height:i,$:c}}function nb(t){return Wr(t)?t:t.contextElement}function Ko(t){const n=nb(t);if(!bi(n))return yi(1);const r=n.getBoundingClientRect(),{width:i,height:s,$:a}=ZE(n);let o=(a?Xh(r.width):r.width)/i,c=(a?Xh(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const HU=yi(0);function eT(t){const n=mr(t);return!tb()||!n.visualViewport?HU:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function WU(t,n,r){return n===void 0&&(n=!1),!r||n&&r!==mr(t)?!1:n}function Wa(t,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),a=nb(t);let o=yi(1);n&&(i?Wr(i)&&(o=Ko(i)):o=Ko(t));const c=WU(a,r,i)?eT(a):yi(0);let d=(s.left+c.x)/o.x,h=(s.top+c.y)/o.y,f=s.width/o.x,m=s.height/o.y;if(a){const p=mr(a),g=i&&Wr(i)?mr(i):i;let b=p,j=Ny(b);for(;j&&i&&g!==b;){const y=Ko(j),x=j.getBoundingClientRect(),N=Kr(j),w=x.left+(j.clientLeft+parseFloat(N.paddingLeft))*y.x,k=x.top+(j.clientTop+parseFloat(N.paddingTop))*y.y;d*=y.x,h*=y.y,f*=y.x,m*=y.y,d+=w,h+=k,b=mr(j),j=Ny(b)}}return Zh({width:f,height:m,x:d,y:h})}function Cf(t,n){const r=Af(t).scrollLeft;return n?n.left+r:Wa(Si(t)).left+r}function tT(t,n){const r=t.getBoundingClientRect(),i=r.left+n.scrollLeft-Cf(t,r),s=r.top+n.scrollTop;return{x:i,y:s}}function KU(t){let{elements:n,rect:r,offsetParent:i,strategy:s}=t;const a=s==="fixed",o=Si(i),c=n?Sf(n.floating):!1;if(i===o||c&&a)return r;let d={scrollLeft:0,scrollTop:0},h=yi(1);const f=yi(0),m=bi(i);if((m||!m&&!a)&&((Cl(i)!=="body"||Fu(o))&&(d=Af(i)),bi(i))){const g=Wa(i);h=Ko(i),f.x=g.x+i.clientLeft,f.y=g.y+i.clientTop}const p=o&&!m&&!a?tT(o,d):yi(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+f.x+p.x,y:r.y*h.y-d.scrollTop*h.y+f.y+p.y}}function GU(t){return Array.from(t.getClientRects())}function QU(t){const n=Si(t),r=Af(t),i=t.ownerDocument.body,s=ur(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),a=ur(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let o=-r.scrollLeft+Cf(t);const c=-r.scrollTop;return Kr(i).direction==="rtl"&&(o+=ur(n.clientWidth,i.clientWidth)-s),{width:s,height:a,x:o,y:c}}const h2=25;function YU(t,n){const r=mr(t),i=Si(t),s=r.visualViewport;let a=i.clientWidth,o=i.clientHeight,c=0,d=0;if(s){a=s.width,o=s.height;const f=tb();(!f||f&&n==="fixed")&&(c=s.offsetLeft,d=s.offsetTop)}const h=Cf(i);if(h<=0){const f=i.ownerDocument,m=f.body,p=getComputedStyle(m),g=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(i.clientWidth-m.clientWidth-g);b<=h2&&(a-=b)}else h<=h2&&(a+=h);return{width:a,height:o,x:c,y:d}}const XU=new Set(["absolute","fixed"]);function JU(t,n){const r=Wa(t,!0,n==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,a=bi(t)?Ko(t):yi(1),o=t.clientWidth*a.x,c=t.clientHeight*a.y,d=s*a.x,h=i*a.y;return{width:o,height:c,x:d,y:h}}function f2(t,n,r){let i;if(n==="viewport")i=YU(t,r);else if(n==="document")i=QU(Si(t));else if(Wr(n))i=JU(n,r);else{const s=eT(t);i={x:n.x-s.x,y:n.y-s.y,width:n.width,height:n.height}}return Zh(i)}function nT(t,n){const r=Ys(t);return r===n||!Wr(r)||pl(r)?!1:Kr(r).position==="fixed"||nT(r,n)}function ZU(t,n){const r=n.get(t);if(r)return r;let i=hu(t,[],!1).filter(c=>Wr(c)&&Cl(c)!=="body"),s=null;const a=Kr(t).position==="fixed";let o=a?Ys(t):t;for(;Wr(o)&&!pl(o);){const c=Kr(o),d=eb(o);!d&&c.position==="fixed"&&(s=null),(a?!d&&!s:!d&&c.position==="static"&&!!s&&XU.has(s.position)||Fu(o)&&!d&&nT(t,o))?i=i.filter(f=>f!==o):s=c,o=Ys(o)}return n.set(t,i),i}function e$(t){let{element:n,boundary:r,rootBoundary:i,strategy:s}=t;const o=[...r==="clippingAncestors"?Sf(n)?[]:ZU(n,this._c):[].concat(r),i],c=o[0],d=o.reduce((h,f)=>{const m=f2(n,f,s);return h.top=ur(m.top,h.top),h.right=Qs(m.right,h.right),h.bottom=Qs(m.bottom,h.bottom),h.left=ur(m.left,h.left),h},f2(n,c,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function t$(t){const{width:n,height:r}=ZE(t);return{width:n,height:r}}function n$(t,n,r){const i=bi(n),s=Si(n),a=r==="fixed",o=Wa(t,!0,a,n);let c={scrollLeft:0,scrollTop:0};const d=yi(0);function h(){d.x=Cf(s)}if(i||!i&&!a)if((Cl(n)!=="body"||Fu(s))&&(c=Af(n)),i){const g=Wa(n,!0,a,n);d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}else s&&h();a&&!i&&s&&h();const f=s&&!i&&!a?tT(s,c):yi(0),m=o.left+c.scrollLeft-d.x-f.x,p=o.top+c.scrollTop-d.y-f.y;return{x:m,y:p,width:o.width,height:o.height}}function gg(t){return Kr(t).position==="static"}function m2(t,n){if(!bi(t)||Kr(t).position==="fixed")return null;if(n)return n(t);let r=t.offsetParent;return Si(t)===r&&(r=r.ownerDocument.body),r}function rT(t,n){const r=mr(t);if(Sf(t))return r;if(!bi(t)){let s=Ys(t);for(;s&&!pl(s);){if(Wr(s)&&!gg(s))return s;s=Ys(s)}return r}let i=m2(t,n);for(;i&&LU(i)&&gg(i);)i=m2(i,n);return i&&pl(i)&&gg(i)&&!eb(i)?r:i||UU(t)||r}const r$=async function(t){const n=this.getOffsetParent||rT,r=this.getDimensions,i=await r(t.floating);return{reference:n$(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function i$(t){return Kr(t).direction==="rtl"}const s$={convertOffsetParentRelativeRectToViewportRelativeRect:KU,getDocumentElement:Si,getClippingRect:e$,getOffsetParent:rT,getElementRects:r$,getClientRects:GU,getDimensions:t$,getScale:Ko,isElement:Wr,isRTL:i$};function iT(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function a$(t,n){let r=null,i;const s=Si(t);function a(){var c;clearTimeout(i),(c=r)==null||c.disconnect(),r=null}function o(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();const h=t.getBoundingClientRect(),{left:f,top:m,width:p,height:g}=h;if(c||n(),!p||!g)return;const b=oh(m),j=oh(s.clientWidth-(f+p)),y=oh(s.clientHeight-(m+g)),x=oh(f),w={rootMargin:-b+"px "+-j+"px "+-y+"px "+-x+"px",threshold:ur(0,Qs(1,d))||1};let k=!0;function A(S){const E=S[0].intersectionRatio;if(E!==d){if(!k)return o();E?o(!1,E):i=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!iT(h,t.getBoundingClientRect())&&o(),k=!1}try{r=new IntersectionObserver(A,{...w,root:s.ownerDocument})}catch{r=new IntersectionObserver(A,w)}r.observe(t)}return o(!0),a}function o$(t,n,r,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,h=nb(t),f=s||a?[...h?hu(h):[],...hu(n)]:[];f.forEach(x=>{s&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const m=h&&c?a$(h,r):null;let p=-1,g=null;o&&(g=new ResizeObserver(x=>{let[N]=x;N&&N.target===h&&g&&(g.unobserve(n),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(n)})),r()}),h&&!d&&g.observe(h),g.observe(n));let b,j=d?Wa(t):null;d&&y();function y(){const x=Wa(t);j&&!iT(j,x)&&r(),j=x,b=requestAnimationFrame(y)}return r(),()=>{var x;f.forEach(N=>{s&&N.removeEventListener("scroll",r),a&&N.removeEventListener("resize",r)}),m==null||m(),(x=g)==null||x.disconnect(),g=null,d&&cancelAnimationFrame(b)}}const l$=OU,c$=DU,u$=EU,d$=RU,h$=TU,p2=CU,f$=IU,m$=(t,n,r)=>{const i=new Map,s={platform:s$,...r},a={...s.platform,_c:i};return AU(t,n,{...s,platform:a})};var p$=typeof document<"u",g$=function(){},Oh=p$?I.useLayoutEffect:g$;function ef(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(typeof t=="function"&&t.toString()===n.toString())return!0;let r,i,s;if(t&&n&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!ef(t[i],n[i]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,s[i]))return!1;for(i=r;i--!==0;){const a=s[i];if(!(a==="_owner"&&t.$$typeof)&&!ef(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}function sT(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function g2(t,n){const r=sT(t);return Math.round(n*r)/r}function xg(t){const n=I.useRef(t);return Oh(()=>{n.current=t}),n}function x$(t){t===void 0&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:a,floating:o}={},transform:c=!0,whileElementsMounted:d,open:h}=t,[f,m]=I.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,g]=I.useState(i);ef(p,i)||g(i);const[b,j]=I.useState(null),[y,x]=I.useState(null),N=I.useCallback(K=>{K!==S.current&&(S.current=K,j(K))},[]),w=I.useCallback(K=>{K!==E.current&&(E.current=K,x(K))},[]),k=a||b,A=o||y,S=I.useRef(null),E=I.useRef(null),C=I.useRef(f),B=d!=null,D=xg(d),F=xg(s),R=xg(h),z=I.useCallback(()=>{if(!S.current||!E.current)return;const K={placement:n,strategy:r,middleware:p};F.current&&(K.platform=F.current),m$(S.current,E.current,K).then(Y=>{const O={...Y,isPositioned:R.current!==!1};q.current&&!ef(C.current,O)&&(C.current=O,ku.flushSync(()=>{m(O)}))})},[p,n,r,F,R]);Oh(()=>{h===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,m(K=>({...K,isPositioned:!1})))},[h]);const q=I.useRef(!1);Oh(()=>(q.current=!0,()=>{q.current=!1}),[]),Oh(()=>{if(k&&(S.current=k),A&&(E.current=A),k&&A){if(D.current)return D.current(k,A,z);z()}},[k,A,z,D,B]);const U=I.useMemo(()=>({reference:S,floating:E,setReference:N,setFloating:w}),[N,w]),Q=I.useMemo(()=>({reference:k,floating:A}),[k,A]),H=I.useMemo(()=>{const K={position:r,left:0,top:0};if(!Q.floating)return K;const Y=g2(Q.floating,f.x),O=g2(Q.floating,f.y);return c?{...K,transform:"translate("+Y+"px, "+O+"px)",...sT(Q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Y,top:O}},[r,c,Q.floating,f.x,f.y]);return I.useMemo(()=>({...f,update:z,refs:U,elements:Q,floatingStyles:H}),[f,z,U,Q,H])}const y$=t=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:i,padding:s}=typeof t=="function"?t(r):t;return i&&n(i)?i.current!=null?p2({element:i.current,padding:s}).fn(r):{}:i?p2({element:i,padding:s}).fn(r):{}}}},v$=(t,n)=>({...l$(t),options:[t,n]}),b$=(t,n)=>({...c$(t),options:[t,n]}),j$=(t,n)=>({...f$(t),options:[t,n]}),w$=(t,n)=>({...u$(t),options:[t,n]}),N$=(t,n)=>({...d$(t),options:[t,n]}),k$=(t,n)=>({...h$(t),options:[t,n]}),_$=(t,n)=>({...y$(t),options:[t,n]});var S$="Arrow",aT=I.forwardRef((t,n)=>{const{children:r,width:i=10,height:s=5,...a}=t;return e.jsx(jt.svg,{...a,ref:n,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})});aT.displayName=S$;var A$=aT;function rb(t){const[n,r]=I.useState(void 0);return Rn(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let o,c;if("borderBoxSize"in a){const d=a.borderBoxSize,h=Array.isArray(d)?d[0]:d;o=h.inlineSize,c=h.blockSize}else o=t.offsetWidth,c=t.offsetHeight;r({width:o,height:c})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else r(void 0)},[t]),n}var ib="Popper",[oT,lT]=to(ib),[C$,cT]=oT(ib),uT=t=>{const{__scopePopper:n,children:r}=t,[i,s]=I.useState(null);return e.jsx(C$,{scope:n,anchor:i,onAnchorChange:s,children:r})};uT.displayName=ib;var dT="PopperAnchor",hT=I.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:i,...s}=t,a=cT(dT,r),o=I.useRef(null),c=Yt(n,o),d=I.useRef(null);return I.useEffect(()=>{const h=d.current;d.current=(i==null?void 0:i.current)||o.current,h!==d.current&&a.onAnchorChange(d.current)}),i?null:e.jsx(jt.div,{...s,ref:c})});hT.displayName=dT;var sb="PopperContent",[E$,T$]=oT(sb),fT=I.forwardRef((t,n)=>{var G,ee,ne,le,ye,be;const{__scopePopper:r,side:i="bottom",sideOffset:s=0,align:a="center",alignOffset:o=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:b,...j}=t,y=cT(sb,r),[x,N]=I.useState(null),w=Yt(n,Pe=>N(Pe)),[k,A]=I.useState(null),S=rb(k),E=(S==null?void 0:S.width)??0,C=(S==null?void 0:S.height)??0,B=i+(a!=="center"?"-"+a:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},F=Array.isArray(h)?h:[h],R=F.length>0,z={padding:D,boundary:F.filter(O$),altBoundary:R},{refs:q,floatingStyles:U,placement:Q,isPositioned:H,middlewareData:K}=x$({strategy:"fixed",placement:B,whileElementsMounted:(...Pe)=>o$(...Pe,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[v$({mainAxis:s+C,alignmentAxis:o}),d&&b$({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?j$():void 0,...z}),d&&w$({...z}),N$({...z,apply:({elements:Pe,rects:Te,availableWidth:We,availableHeight:ut})=>{const{width:nt,height:ge}=Te.reference,ve=Pe.floating.style;ve.setProperty("--radix-popper-available-width",`${We}px`),ve.setProperty("--radix-popper-available-height",`${ut}px`),ve.setProperty("--radix-popper-anchor-width",`${nt}px`),ve.setProperty("--radix-popper-anchor-height",`${ge}px`)}}),k&&_$({element:k,padding:c}),D$({arrowWidth:E,arrowHeight:C}),p&&k$({strategy:"referenceHidden",...z})]}),[Y,O]=gT(Q),T=Gs(b);Rn(()=>{H&&(T==null||T())},[H,T]);const V=(G=K.arrow)==null?void 0:G.x,L=(ee=K.arrow)==null?void 0:ee.y,X=((ne=K.arrow)==null?void 0:ne.centerOffset)!==0,[J,W]=I.useState();return Rn(()=>{x&&W(window.getComputedStyle(x).zIndex)},[x]),e.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:H?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(le=K.transformOrigin)==null?void 0:le.x,(ye=K.transformOrigin)==null?void 0:ye.y].join(" "),...((be=K.hide)==null?void 0:be.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(E$,{scope:r,placedSide:Y,onArrowChange:A,arrowX:V,arrowY:L,shouldHideArrow:X,children:e.jsx(jt.div,{"data-side":Y,"data-align":O,...j,ref:w,style:{...j.style,animation:H?void 0:"none"}})})})});fT.displayName=sb;var mT="PopperArrow",P$={top:"bottom",right:"left",bottom:"top",left:"right"},pT=I.forwardRef(function(n,r){const{__scopePopper:i,...s}=n,a=T$(mT,i),o=P$[a.placedSide];return e.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:e.jsx(A$,{...s,ref:r,style:{...s.style,display:"block"}})})});pT.displayName=mT;function O$(t){return t!==null}var D$=t=>({name:"transformOrigin",options:t,fn(n){var y,x,N;const{placement:r,rects:i,middlewareData:s}=n,o=((y=s.arrow)==null?void 0:y.centerOffset)!==0,c=o?0:t.arrowWidth,d=o?0:t.arrowHeight,[h,f]=gT(r),m={start:"0%",center:"50%",end:"100%"}[f],p=(((x=s.arrow)==null?void 0:x.x)??0)+c/2,g=(((N=s.arrow)==null?void 0:N.y)??0)+d/2;let b="",j="";return h==="bottom"?(b=o?m:`${p}px`,j=`${-d}px`):h==="top"?(b=o?m:`${p}px`,j=`${i.floating.height+d}px`):h==="right"?(b=`${-d}px`,j=o?m:`${g}px`):h==="left"&&(b=`${i.floating.width+d}px`,j=o?m:`${g}px`),{data:{x:b,y:j}}}});function gT(t){const[n,r="center"]=t.split("-");return[n,r]}var I$=uT,R$=hT,F$=fT,M$=pT,L$="Portal",xT=I.forwardRef((t,n)=>{var c;const{container:r,...i}=t,[s,a]=I.useState(!1);Rn(()=>a(!0),[]);const o=r||s&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return o?z8.createPortal(e.jsx(jt.div,{...i,ref:n}),o):null});xT.displayName=L$;var B$=Xy[" useInsertionEffect ".trim().toString()]||Rn;function gl({prop:t,defaultProp:n,onChange:r=()=>{},caller:i}){const[s,a,o]=z$({defaultProp:n,onChange:r}),c=t!==void 0,d=c?t:s;{const f=I.useRef(t!==void 0);I.useEffect(()=>{const m=f.current;m!==c&&console.warn(`${i} is changing from ${m?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=c},[c,i])}const h=I.useCallback(f=>{var m;if(c){const p=q$(f)?f(t):f;p!==t&&((m=o.current)==null||m.call(o,p))}else a(f)},[c,t,a,o]);return[d,h]}function z$({defaultProp:t,onChange:n}){const[r,i]=I.useState(t),s=I.useRef(r),a=I.useRef(n);return B$(()=>{a.current=n},[n]),I.useEffect(()=>{var o;s.current!==r&&((o=a.current)==null||o.call(a,r),s.current=r)},[r,s]),[r,i,a]}function q$(t){return typeof t=="function"}function ab(t){const n=I.useRef({value:t,previous:t});return I.useMemo(()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous),[t])}var yT=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),V$="VisuallyHidden",U$=I.forwardRef((t,n)=>e.jsx(jt.span,{...t,ref:n,style:{...yT,...t.style}}));U$.displayName=V$;var $$=function(t){if(typeof document>"u")return null;var n=Array.isArray(t)?t[0]:t;return n.ownerDocument.body},Po=new WeakMap,lh=new WeakMap,ch={},yg=0,vT=function(t){return t&&(t.host||vT(t.parentNode))},H$=function(t,n){return n.map(function(r){if(t.contains(r))return r;var i=vT(r);return i&&t.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},W$=function(t,n,r,i){var s=H$(n,Array.isArray(t)?t:[t]);ch[r]||(ch[r]=new WeakMap);var a=ch[r],o=[],c=new Set,d=new Set(s),h=function(m){!m||c.has(m)||(c.add(m),h(m.parentNode))};s.forEach(h);var f=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(p){if(c.has(p))f(p);else try{var g=p.getAttribute(i),b=g!==null&&g!=="false",j=(Po.get(p)||0)+1,y=(a.get(p)||0)+1;Po.set(p,j),a.set(p,y),o.push(p),j===1&&b&&lh.set(p,!0),y===1&&p.setAttribute(r,"true"),b||p.setAttribute(i,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return f(n),c.clear(),yg++,function(){o.forEach(function(m){var p=Po.get(m)-1,g=a.get(m)-1;Po.set(m,p),a.set(m,g),p||(lh.has(m)||m.removeAttribute(i),lh.delete(m)),g||m.removeAttribute(r)}),yg--,yg||(Po=new WeakMap,Po=new WeakMap,lh=new WeakMap,ch={})}},K$=function(t,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),s=$$(t);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),W$(i,s,r,"aria-hidden")):function(){return null}},li=function(){return li=Object.assign||function(n){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},li.apply(this,arguments)};function bT(t,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(r[i[s]]=t[i[s]]);return r}function G$(t,n,r){if(r||arguments.length===2)for(var i=0,s=n.length,a;i<s;i++)(a||!(i in n))&&(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return t.concat(a||Array.prototype.slice.call(n))}var Dh="right-scroll-bar-position",Ih="width-before-scroll-bar",Q$="with-scroll-bars-hidden",Y$="--removed-body-scroll-bar-size";function vg(t,n){return typeof t=="function"?t(n):t&&(t.current=n),t}function X$(t,n){var r=I.useState(function(){return{value:t,callback:n,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=n,r.facade}var J$=typeof window<"u"?I.useLayoutEffect:I.useEffect,x2=new WeakMap;function Z$(t,n){var r=X$(null,function(i){return t.forEach(function(s){return vg(s,i)})});return J$(function(){var i=x2.get(r);if(i){var s=new Set(i),a=new Set(t),o=r.current;s.forEach(function(c){a.has(c)||vg(c,null)}),a.forEach(function(c){s.has(c)||vg(c,o)})}x2.set(r,t)},[t]),r}function eH(t){return t}function tH(t,n){n===void 0&&(n=eH);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(a){var o=n(a,i);return r.push(o),function(){r=r.filter(function(c){return c!==o})}},assignSyncMedium:function(a){for(i=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){i=!0;var o=[];if(r.length){var c=r;r=[],c.forEach(a),o=r}var d=function(){var f=o;o=[],f.forEach(a)},h=function(){return Promise.resolve().then(d)};h(),r={push:function(f){o.push(f),h()},filter:function(f){return o=o.filter(f),r}}}};return s}function nH(t){t===void 0&&(t={});var n=tH(null);return n.options=li({async:!0,ssr:!1},t),n}var jT=function(t){var n=t.sideCar,r=bT(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return I.createElement(i,li({},r))};jT.isSideCarExport=!0;function rH(t,n){return t.useMedium(n),jT}var wT=nH(),bg=function(){},Ef=I.forwardRef(function(t,n){var r=I.useRef(null),i=I.useState({onScrollCapture:bg,onWheelCapture:bg,onTouchMoveCapture:bg}),s=i[0],a=i[1],o=t.forwardProps,c=t.children,d=t.className,h=t.removeScrollBar,f=t.enabled,m=t.shards,p=t.sideCar,g=t.noRelative,b=t.noIsolation,j=t.inert,y=t.allowPinchZoom,x=t.as,N=x===void 0?"div":x,w=t.gapMode,k=bT(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=p,S=Z$([r,n]),E=li(li({},k),s);return I.createElement(I.Fragment,null,f&&I.createElement(A,{sideCar:wT,removeScrollBar:h,shards:m,noRelative:g,noIsolation:b,inert:j,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:w}),o?I.cloneElement(I.Children.only(c),li(li({},E),{ref:S})):I.createElement(N,li({},E,{className:d,ref:S}),c))});Ef.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ef.classNames={fullWidth:Ih,zeroRight:Dh};var iH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function sH(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=iH();return n&&t.setAttribute("nonce",n),t}function aH(t,n){t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}function oH(t){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(t)}var lH=function(){var t=0,n=null;return{add:function(r){t==0&&(n=sH())&&(aH(n,r),oH(n)),t++},remove:function(){t--,!t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},cH=function(){var t=lH();return function(n,r){I.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])}},NT=function(){var t=cH(),n=function(r){var i=r.styles,s=r.dynamic;return t(i,s),null};return n},uH={left:0,top:0,right:0,gap:0},jg=function(t){return parseInt(t||"",10)||0},dH=function(t){var n=window.getComputedStyle(document.body),r=n[t==="padding"?"paddingLeft":"marginLeft"],i=n[t==="padding"?"paddingTop":"marginTop"],s=n[t==="padding"?"paddingRight":"marginRight"];return[jg(r),jg(i),jg(s)]},hH=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return uH;var n=dH(t),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-r+n[2]-n[0])}},fH=NT(),Go="data-scroll-locked",mH=function(t,n,r,i){var s=t.left,a=t.top,o=t.right,c=t.gap;return r===void 0&&(r="margin"),`
  .`.concat(Q$,` {
   overflow: hidden `).concat(i,`;
   padding-right: `).concat(c,"px ").concat(i,`;
  }
  body[`).concat(Go,`] {
    overflow: hidden `).concat(i,`;
    overscroll-behavior: contain;
    `).concat([n&&"position: relative ".concat(i,";"),r==="margin"&&`
    padding-left: `.concat(s,`px;
    padding-top: `).concat(a,`px;
    padding-right: `).concat(o,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(c,"px ").concat(i,`;
    `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Dh,` {
    right: `).concat(c,"px ").concat(i,`;
  }
  
  .`).concat(Ih,` {
    margin-right: `).concat(c,"px ").concat(i,`;
  }
  
  .`).concat(Dh," .").concat(Dh,` {
    right: 0 `).concat(i,`;
  }
  
  .`).concat(Ih," .").concat(Ih,` {
    margin-right: 0 `).concat(i,`;
  }
  
  body[`).concat(Go,`] {
    `).concat(Y$,": ").concat(c,`px;
  }
`)},y2=function(){var t=parseInt(document.body.getAttribute(Go)||"0",10);return isFinite(t)?t:0},pH=function(){I.useEffect(function(){return document.body.setAttribute(Go,(y2()+1).toString()),function(){var t=y2()-1;t<=0?document.body.removeAttribute(Go):document.body.setAttribute(Go,t.toString())}},[])},gH=function(t){var n=t.noRelative,r=t.noImportant,i=t.gapMode,s=i===void 0?"margin":i;pH();var a=I.useMemo(function(){return hH(s)},[s]);return I.createElement(fH,{styles:mH(a,!n,s,r?"":"!important")})},ky=!1;if(typeof window<"u")try{var uh=Object.defineProperty({},"passive",{get:function(){return ky=!0,!0}});window.addEventListener("test",uh,uh),window.removeEventListener("test",uh,uh)}catch{ky=!1}var Oo=ky?{passive:!1}:!1,xH=function(t){return t.tagName==="TEXTAREA"},kT=function(t,n){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!xH(t)&&r[n]==="visible")},yH=function(t){return kT(t,"overflowY")},vH=function(t){return kT(t,"overflowX")},v2=function(t,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=_T(t,i);if(s){var a=ST(t,i),o=a[1],c=a[2];if(o>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},bH=function(t){var n=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;return[n,r,i]},jH=function(t){var n=t.scrollLeft,r=t.scrollWidth,i=t.clientWidth;return[n,r,i]},_T=function(t,n){return t==="v"?yH(n):vH(n)},ST=function(t,n){return t==="v"?bH(n):jH(n)},wH=function(t,n){return t==="h"&&n==="rtl"?-1:1},NH=function(t,n,r,i,s){var a=wH(t,window.getComputedStyle(n).direction),o=a*i,c=r.target,d=n.contains(c),h=!1,f=o>0,m=0,p=0;do{if(!c)break;var g=ST(t,c),b=g[0],j=g[1],y=g[2],x=j-y-a*b;(b||x)&&_T(t,c)&&(m+=x,p+=b);var N=c.parentNode;c=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!d&&c!==document.body||d&&(n.contains(c)||n===c));return(f&&Math.abs(m)<1||!f&&Math.abs(p)<1)&&(h=!0),h},dh=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},b2=function(t){return[t.deltaX,t.deltaY]},j2=function(t){return t&&"current"in t?t.current:t},kH=function(t,n){return t[0]===n[0]&&t[1]===n[1]},_H=function(t){return`
  .block-interactivity-`.concat(t,` {pointer-events: none;}
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},SH=0,Do=[];function AH(t){var n=I.useRef([]),r=I.useRef([0,0]),i=I.useRef(),s=I.useState(SH++)[0],a=I.useState(NT)[0],o=I.useRef(t);I.useEffect(function(){o.current=t},[t]),I.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var j=G$([t.lockRef.current],(t.shards||[]).map(j2),!0).filter(Boolean);return j.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),j.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var c=I.useCallback(function(j,y){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!o.current.allowPinchZoom;var x=dh(j),N=r.current,w="deltaX"in j?j.deltaX:N[0]-x[0],k="deltaY"in j?j.deltaY:N[1]-x[1],A,S=j.target,E=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in j&&E==="h"&&S.type==="range")return!1;var C=v2(E,S);if(!C)return!0;if(C?A=E:(A=E==="v"?"h":"v",C=v2(E,S)),!C)return!1;if(!i.current&&"changedTouches"in j&&(w||k)&&(i.current=A),!A)return!0;var B=i.current||A;return NH(B,y,j,B==="h"?w:k)},[]),d=I.useCallback(function(j){var y=j;if(!(!Do.length||Do[Do.length-1]!==a)){var x="deltaY"in y?b2(y):dh(y),N=n.current.filter(function(A){return A.name===y.type&&(A.target===y.target||y.target===A.shadowParent)&&kH(A.delta,x)})[0];if(N&&N.should){y.cancelable&&y.preventDefault();return}if(!N){var w=(o.current.shards||[]).map(j2).filter(Boolean).filter(function(A){return A.contains(y.target)}),k=w.length>0?c(y,w[0]):!o.current.noIsolation;k&&y.cancelable&&y.preventDefault()}}},[]),h=I.useCallback(function(j,y,x,N){var w={name:j,delta:y,target:x,should:N,shadowParent:CH(x)};n.current.push(w),setTimeout(function(){n.current=n.current.filter(function(k){return k!==w})},1)},[]),f=I.useCallback(function(j){r.current=dh(j),i.current=void 0},[]),m=I.useCallback(function(j){h(j.type,b2(j),j.target,c(j,t.lockRef.current))},[]),p=I.useCallback(function(j){h(j.type,dh(j),j.target,c(j,t.lockRef.current))},[]);I.useEffect(function(){return Do.push(a),t.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",d,Oo),document.addEventListener("touchmove",d,Oo),document.addEventListener("touchstart",f,Oo),function(){Do=Do.filter(function(j){return j!==a}),document.removeEventListener("wheel",d,Oo),document.removeEventListener("touchmove",d,Oo),document.removeEventListener("touchstart",f,Oo)}},[]);var g=t.removeScrollBar,b=t.inert;return I.createElement(I.Fragment,null,b?I.createElement(a,{styles:_H(s)}):null,g?I.createElement(gH,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function CH(t){for(var n=null;t!==null;)t instanceof ShadowRoot&&(n=t.host,t=t.host),t=t.parentNode;return n}const EH=rH(wT,AH);var AT=I.forwardRef(function(t,n){return I.createElement(Ef,li({},t,{ref:n,sideCar:EH}))});AT.classNames=Ef.classNames;var TH=[" ","Enter","ArrowUp","ArrowDown"],PH=[" ","Enter"],Ka="Select",[Tf,Pf,OH]=UE(Ka),[El]=to(Ka,[OH,lT]),Of=lT(),[DH,Js]=El(Ka),[IH,RH]=El(Ka),CT=t=>{const{__scopeSelect:n,children:r,open:i,defaultOpen:s,onOpenChange:a,value:o,defaultValue:c,onValueChange:d,dir:h,name:f,autoComplete:m,disabled:p,required:g,form:b}=t,j=Of(n),[y,x]=I.useState(null),[N,w]=I.useState(null),[k,A]=I.useState(!1),S=Yv(h),[E,C]=gl({prop:i,defaultProp:s??!1,onChange:a,caller:Ka}),[B,D]=gl({prop:o,defaultProp:c,onChange:d,caller:Ka}),F=I.useRef(null),R=y?b||!!y.closest("form"):!0,[z,q]=I.useState(new Set),U=Array.from(z).map(Q=>Q.props.value).join(";");return e.jsx(I$,{...j,children:e.jsxs(DH,{required:g,scope:n,trigger:y,onTriggerChange:x,valueNode:N,onValueNodeChange:w,valueNodeHasChildren:k,onValueNodeHasChildrenChange:A,contentId:Ru(),value:B,onValueChange:D,open:E,onOpenChange:C,dir:S,triggerPointerDownPosRef:F,disabled:p,children:[e.jsx(Tf.Provider,{scope:n,children:e.jsx(IH,{scope:t.__scopeSelect,onNativeOptionAdd:I.useCallback(Q=>{q(H=>new Set(H).add(Q))},[]),onNativeOptionRemove:I.useCallback(Q=>{q(H=>{const K=new Set(H);return K.delete(Q),K})},[]),children:r})}),R?e.jsxs(JT,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:m,value:B,onChange:Q=>D(Q.target.value),disabled:p,form:b,children:[B===void 0?e.jsx("option",{value:""}):null,Array.from(z)]},U):null]})})};CT.displayName=Ka;var ET="SelectTrigger",TT=I.forwardRef((t,n)=>{const{__scopeSelect:r,disabled:i=!1,...s}=t,a=Of(r),o=Js(ET,r),c=o.disabled||i,d=Yt(n,o.onTriggerChange),h=Pf(r),f=I.useRef("touch"),[m,p,g]=e5(j=>{const y=h().filter(w=>!w.disabled),x=y.find(w=>w.value===o.value),N=t5(y,j,x);N!==void 0&&o.onValueChange(N.value)}),b=j=>{c||(o.onOpenChange(!0),g()),j&&(o.triggerPointerDownPosRef.current={x:Math.round(j.pageX),y:Math.round(j.pageY)})};return e.jsx(R$,{asChild:!0,...a,children:e.jsx(jt.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:c,"data-disabled":c?"":void 0,"data-placeholder":ZT(o.value)?"":void 0,...s,ref:d,onClick:bt(s.onClick,j=>{j.currentTarget.focus(),f.current!=="mouse"&&b(j)}),onPointerDown:bt(s.onPointerDown,j=>{f.current=j.pointerType;const y=j.target;y.hasPointerCapture(j.pointerId)&&y.releasePointerCapture(j.pointerId),j.button===0&&j.ctrlKey===!1&&j.pointerType==="mouse"&&(b(j),j.preventDefault())}),onKeyDown:bt(s.onKeyDown,j=>{const y=m.current!=="";!(j.ctrlKey||j.altKey||j.metaKey)&&j.key.length===1&&p(j.key),!(y&&j.key===" ")&&TH.includes(j.key)&&(b(),j.preventDefault())})})})});TT.displayName=ET;var PT="SelectValue",OT=I.forwardRef((t,n)=>{const{__scopeSelect:r,className:i,style:s,children:a,placeholder:o="",...c}=t,d=Js(PT,r),{onValueNodeHasChildrenChange:h}=d,f=a!==void 0,m=Yt(n,d.onValueNodeChange);return Rn(()=>{h(f)},[h,f]),e.jsx(jt.span,{...c,ref:m,style:{pointerEvents:"none"},children:ZT(d.value)?e.jsx(e.Fragment,{children:o}):a})});OT.displayName=PT;var FH="SelectIcon",DT=I.forwardRef((t,n)=>{const{__scopeSelect:r,children:i,...s}=t;return e.jsx(jt.span,{"aria-hidden":!0,...s,ref:n,children:i||"â–¼"})});DT.displayName=FH;var MH="SelectPortal",IT=t=>e.jsx(xT,{asChild:!0,...t});IT.displayName=MH;var Ga="SelectContent",RT=I.forwardRef((t,n)=>{const r=Js(Ga,t.__scopeSelect),[i,s]=I.useState();if(Rn(()=>{s(new DocumentFragment)},[]),!r.open){const a=i;return a?ku.createPortal(e.jsx(FT,{scope:t.__scopeSelect,children:e.jsx(Tf.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),a):null}return e.jsx(MT,{...t,ref:n})});RT.displayName=Ga;var zr=10,[FT,Zs]=El(Ga),LH="SelectContentImpl",BH=cu("SelectContent.RemoveScroll"),MT=I.forwardRef((t,n)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:a,onPointerDownOutside:o,side:c,sideOffset:d,align:h,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:g,sticky:b,hideWhenDetached:j,avoidCollisions:y,...x}=t,N=Js(Ga,r),[w,k]=I.useState(null),[A,S]=I.useState(null),E=Yt(n,G=>k(G)),[C,B]=I.useState(null),[D,F]=I.useState(null),R=Pf(r),[z,q]=I.useState(!1),U=I.useRef(!1);I.useEffect(()=>{if(w)return K$(w)},[w]),aU();const Q=I.useCallback(G=>{const[ee,...ne]=R().map(be=>be.ref.current),[le]=ne.slice(-1),ye=document.activeElement;for(const be of G)if(be===ye||(be==null||be.scrollIntoView({block:"nearest"}),be===ee&&A&&(A.scrollTop=0),be===le&&A&&(A.scrollTop=A.scrollHeight),be==null||be.focus(),document.activeElement!==ye))return},[R,A]),H=I.useCallback(()=>Q([C,w]),[Q,C,w]);I.useEffect(()=>{z&&H()},[z,H]);const{onOpenChange:K,triggerPointerDownPosRef:Y}=N;I.useEffect(()=>{if(w){let G={x:0,y:0};const ee=le=>{var ye,be;G={x:Math.abs(Math.round(le.pageX)-(((ye=Y.current)==null?void 0:ye.x)??0)),y:Math.abs(Math.round(le.pageY)-(((be=Y.current)==null?void 0:be.y)??0))}},ne=le=>{G.x<=10&&G.y<=10?le.preventDefault():w.contains(le.target)||K(!1),document.removeEventListener("pointermove",ee),Y.current=null};return Y.current!==null&&(document.addEventListener("pointermove",ee),document.addEventListener("pointerup",ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ee),document.removeEventListener("pointerup",ne,{capture:!0})}}},[w,K,Y]),I.useEffect(()=>{const G=()=>K(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[K]);const[O,T]=e5(G=>{const ee=R().filter(ye=>!ye.disabled),ne=ee.find(ye=>ye.ref.current===document.activeElement),le=t5(ee,G,ne);le&&setTimeout(()=>le.ref.current.focus())}),V=I.useCallback((G,ee,ne)=>{const le=!U.current&&!ne;(N.value!==void 0&&N.value===ee||le)&&(B(G),le&&(U.current=!0))},[N.value]),L=I.useCallback(()=>w==null?void 0:w.focus(),[w]),X=I.useCallback((G,ee,ne)=>{const le=!U.current&&!ne;(N.value!==void 0&&N.value===ee||le)&&F(G)},[N.value]),J=i==="popper"?_y:LT,W=J===_y?{side:c,sideOffset:d,align:h,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:g,sticky:b,hideWhenDetached:j,avoidCollisions:y}:{};return e.jsx(FT,{scope:r,content:w,viewport:A,onViewportChange:S,itemRefCallback:V,selectedItem:C,onItemLeave:L,itemTextRefCallback:X,focusSelectedItem:H,selectedItemText:D,position:i,isPositioned:z,searchRef:O,children:e.jsx(AT,{as:BH,allowPinchZoom:!0,children:e.jsx(KE,{asChild:!0,trapped:N.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:bt(s,G=>{var ee;(ee=N.trigger)==null||ee.focus({preventScroll:!0}),G.preventDefault()}),children:e.jsx(HE,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:e.jsx(J,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:G=>G.preventDefault(),...x,...W,onPlaced:()=>q(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:bt(x.onKeyDown,G=>{const ee=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!ee&&G.key.length===1&&T(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let le=R().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(G.key)&&(le=le.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const ye=G.target,be=le.indexOf(ye);le=le.slice(be+1)}setTimeout(()=>Q(le)),G.preventDefault()}})})})})})})});MT.displayName=LH;var zH="SelectItemAlignedPosition",LT=I.forwardRef((t,n)=>{const{__scopeSelect:r,onPlaced:i,...s}=t,a=Js(Ga,r),o=Zs(Ga,r),[c,d]=I.useState(null),[h,f]=I.useState(null),m=Yt(n,E=>f(E)),p=Pf(r),g=I.useRef(!1),b=I.useRef(!0),{viewport:j,selectedItem:y,selectedItemText:x,focusSelectedItem:N}=o,w=I.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&h&&j&&y&&x){const E=a.trigger.getBoundingClientRect(),C=h.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),D=x.getBoundingClientRect();if(a.dir!=="rtl"){const ye=D.left-C.left,be=B.left-ye,Pe=E.left-be,Te=E.width+Pe,We=Math.max(Te,C.width),ut=window.innerWidth-zr,nt=Jk(be,[zr,Math.max(zr,ut-We)]);c.style.minWidth=Te+"px",c.style.left=nt+"px"}else{const ye=C.right-D.right,be=window.innerWidth-B.right-ye,Pe=window.innerWidth-E.right-be,Te=E.width+Pe,We=Math.max(Te,C.width),ut=window.innerWidth-zr,nt=Jk(be,[zr,Math.max(zr,ut-We)]);c.style.minWidth=Te+"px",c.style.right=nt+"px"}const F=p(),R=window.innerHeight-zr*2,z=j.scrollHeight,q=window.getComputedStyle(h),U=parseInt(q.borderTopWidth,10),Q=parseInt(q.paddingTop,10),H=parseInt(q.borderBottomWidth,10),K=parseInt(q.paddingBottom,10),Y=U+Q+z+K+H,O=Math.min(y.offsetHeight*5,Y),T=window.getComputedStyle(j),V=parseInt(T.paddingTop,10),L=parseInt(T.paddingBottom,10),X=E.top+E.height/2-zr,J=R-X,W=y.offsetHeight/2,G=y.offsetTop+W,ee=U+Q+G,ne=Y-ee;if(ee<=X){const ye=F.length>0&&y===F[F.length-1].ref.current;c.style.bottom="0px";const be=h.clientHeight-j.offsetTop-j.offsetHeight,Pe=Math.max(J,W+(ye?L:0)+be+H),Te=ee+Pe;c.style.height=Te+"px"}else{const ye=F.length>0&&y===F[0].ref.current;c.style.top="0px";const Pe=Math.max(X,U+j.offsetTop+(ye?V:0)+W)+ne;c.style.height=Pe+"px",j.scrollTop=ee-X+j.offsetTop}c.style.margin=`${zr}px 0`,c.style.minHeight=O+"px",c.style.maxHeight=R+"px",i==null||i(),requestAnimationFrame(()=>g.current=!0)}},[p,a.trigger,a.valueNode,c,h,j,y,x,a.dir,i]);Rn(()=>w(),[w]);const[k,A]=I.useState();Rn(()=>{h&&A(window.getComputedStyle(h).zIndex)},[h]);const S=I.useCallback(E=>{E&&b.current===!0&&(w(),N==null||N(),b.current=!1)},[w,N]);return e.jsx(VH,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:S,children:e.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:e.jsx(jt.div,{...s,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});LT.displayName=zH;var qH="SelectPopperPosition",_y=I.forwardRef((t,n)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=zr,...a}=t,o=Of(r);return e.jsx(F$,{...o,...a,ref:n,align:i,collisionPadding:s,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)"}})});_y.displayName=qH;var[VH,ob]=El(Ga,{}),Sy="SelectViewport",BT=I.forwardRef((t,n)=>{const{__scopeSelect:r,nonce:i,...s}=t,a=Zs(Sy,r),o=ob(Sy,r),c=Yt(n,a.onViewportChange),d=I.useRef(0);return e.jsxs(e.Fragment,{children:[e.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:i}),e.jsx(Tf.Slot,{scope:r,children:e.jsx(jt.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:bt(s.onScroll,h=>{const f=h.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:p}=o;if(p!=null&&p.current&&m){const g=Math.abs(d.current-f.scrollTop);if(g>0){const b=window.innerHeight-zr*2,j=parseFloat(m.style.minHeight),y=parseFloat(m.style.height),x=Math.max(j,y);if(x<b){const N=x+g,w=Math.min(b,N),k=N-w;m.style.height=w+"px",m.style.bottom==="0px"&&(f.scrollTop=k>0?k:0,m.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});BT.displayName=Sy;var zT="SelectGroup",[UH,$H]=El(zT),HH=I.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t,s=Ru();return e.jsx(UH,{scope:r,id:s,children:e.jsx(jt.div,{role:"group","aria-labelledby":s,...i,ref:n})})});HH.displayName=zT;var qT="SelectLabel",VT=I.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t,s=$H(qT,r);return e.jsx(jt.div,{id:s.id,...i,ref:n})});VT.displayName=qT;var tf="SelectItem",[WH,UT]=El(tf),$T=I.forwardRef((t,n)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:a,...o}=t,c=Js(tf,r),d=Zs(tf,r),h=c.value===i,[f,m]=I.useState(a??""),[p,g]=I.useState(!1),b=Yt(n,N=>{var w;return(w=d.itemRefCallback)==null?void 0:w.call(d,N,i,s)}),j=Ru(),y=I.useRef("touch"),x=()=>{s||(c.onValueChange(i),c.onOpenChange(!1))};if(i==="")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 e.jsx(WH,{scope:r,value:i,disabled:s,textId:j,isSelected:h,onItemTextChange:I.useCallback(N=>{m(w=>w||((N==null?void 0:N.textContent)??"").trim())},[]),children:e.jsx(Tf.ItemSlot,{scope:r,value:i,disabled:s,textValue:f,children:e.jsx(jt.div,{role:"option","aria-labelledby":j,"data-highlighted":p?"":void 0,"aria-selected":h&&p,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:b,onFocus:bt(o.onFocus,()=>g(!0)),onBlur:bt(o.onBlur,()=>g(!1)),onClick:bt(o.onClick,()=>{y.current!=="mouse"&&x()}),onPointerUp:bt(o.onPointerUp,()=>{y.current==="mouse"&&x()}),onPointerDown:bt(o.onPointerDown,N=>{y.current=N.pointerType}),onPointerMove:bt(o.onPointerMove,N=>{var w;y.current=N.pointerType,s?(w=d.onItemLeave)==null||w.call(d):y.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:bt(o.onPointerLeave,N=>{var w;N.currentTarget===document.activeElement&&((w=d.onItemLeave)==null||w.call(d))}),onKeyDown:bt(o.onKeyDown,N=>{var k;((k=d.searchRef)==null?void 0:k.current)!==""&&N.key===" "||(PH.includes(N.key)&&x(),N.key===" "&&N.preventDefault())})})})})});$T.displayName=tf;var Fc="SelectItemText",HT=I.forwardRef((t,n)=>{const{__scopeSelect:r,className:i,style:s,...a}=t,o=Js(Fc,r),c=Zs(Fc,r),d=UT(Fc,r),h=RH(Fc,r),[f,m]=I.useState(null),p=Yt(n,x=>m(x),d.onItemTextChange,x=>{var N;return(N=c.itemTextRefCallback)==null?void 0:N.call(c,x,d.value,d.disabled)}),g=f==null?void 0:f.textContent,b=I.useMemo(()=>e.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:j,onNativeOptionRemove:y}=h;return Rn(()=>(j(b),()=>y(b)),[j,y,b]),e.jsxs(e.Fragment,{children:[e.jsx(jt.span,{id:d.textId,...a,ref:p}),d.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ku.createPortal(a.children,o.valueNode):null]})});HT.displayName=Fc;var WT="SelectItemIndicator",KT=I.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t;return UT(WT,r).isSelected?e.jsx(jt.span,{"aria-hidden":!0,...i,ref:n}):null});KT.displayName=WT;var Ay="SelectScrollUpButton",GT=I.forwardRef((t,n)=>{const r=Zs(Ay,t.__scopeSelect),i=ob(Ay,t.__scopeSelect),[s,a]=I.useState(!1),o=Yt(n,i.onScrollButtonChange);return Rn(()=>{if(r.viewport&&r.isPositioned){let c=function(){const h=d.scrollTop>0;a(h)};const d=r.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[r.viewport,r.isPositioned]),s?e.jsx(YT,{...t,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=r;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});GT.displayName=Ay;var Cy="SelectScrollDownButton",QT=I.forwardRef((t,n)=>{const r=Zs(Cy,t.__scopeSelect),i=ob(Cy,t.__scopeSelect),[s,a]=I.useState(!1),o=Yt(n,i.onScrollButtonChange);return Rn(()=>{if(r.viewport&&r.isPositioned){let c=function(){const h=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<h;a(f)};const d=r.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[r.viewport,r.isPositioned]),s?e.jsx(YT,{...t,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=r;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});QT.displayName=Cy;var YT=I.forwardRef((t,n)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=t,a=Zs("SelectScrollButton",r),o=I.useRef(null),c=Pf(r),d=I.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return I.useEffect(()=>()=>d(),[d]),Rn(()=>{var f;const h=c().find(m=>m.ref.current===document.activeElement);(f=h==null?void 0:h.ref.current)==null||f.scrollIntoView({block:"nearest"})},[c]),e.jsx(jt.div,{"aria-hidden":!0,...s,ref:n,style:{flexShrink:0,...s.style},onPointerDown:bt(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(i,50))}),onPointerMove:bt(s.onPointerMove,()=>{var h;(h=a.onItemLeave)==null||h.call(a),o.current===null&&(o.current=window.setInterval(i,50))}),onPointerLeave:bt(s.onPointerLeave,()=>{d()})})}),KH="SelectSeparator",XT=I.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t;return e.jsx(jt.div,{"aria-hidden":!0,...i,ref:n})});XT.displayName=KH;var Ey="SelectArrow",GH=I.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t,s=Of(r),a=Js(Ey,r),o=Zs(Ey,r);return a.open&&o.position==="popper"?e.jsx(M$,{...s,...i,ref:n}):null});GH.displayName=Ey;var QH="SelectBubbleInput",JT=I.forwardRef(({__scopeSelect:t,value:n,...r},i)=>{const s=I.useRef(null),a=Yt(i,s),o=ab(n);return I.useEffect(()=>{const c=s.current;if(!c)return;const d=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(d,"value").set;if(o!==n&&f){const m=new Event("change",{bubbles:!0});f.call(c,n),c.dispatchEvent(m)}},[o,n]),e.jsx(jt.select,{...r,style:{...yT,...r.style},ref:a,defaultValue:n})});JT.displayName=QH;function ZT(t){return t===""||t===void 0}function e5(t){const n=Gs(t),r=I.useRef(""),i=I.useRef(0),s=I.useCallback(o=>{const c=r.current+o;n(c),(function d(h){r.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>d(""),1e3))})(c)},[n]),a=I.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return I.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,s,a]}function t5(t,n,r){const s=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,a=r?t.indexOf(r):-1;let o=YH(t,Math.max(a,0));s.length===1&&(o=o.filter(h=>h!==r));const d=o.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==r?d:void 0}function YH(t,n){return t.map((r,i)=>t[(n+i)%t.length])}var XH=CT,n5=TT,JH=OT,ZH=DT,eW=IT,r5=RT,tW=BT,i5=VT,s5=$T,nW=HT,rW=KT,a5=GT,o5=QT,l5=XT;const Ji=XH,Zi=JH,ji=I.forwardRef(({className:t,children:n,...r},i)=>e.jsxs(n5,{ref:i,className:Qt("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[n,e.jsx(ZH,{asChild:!0,children:e.jsx(ka,{className:"h-4 w-4 opacity-50"})})]}));ji.displayName=n5.displayName;const c5=I.forwardRef(({className:t,...n},r)=>e.jsx(a5,{ref:r,className:Qt("flex cursor-default items-center justify-center py-1",t),...n,children:e.jsx(PO,{className:"h-4 w-4"})}));c5.displayName=a5.displayName;const u5=I.forwardRef(({className:t,...n},r)=>e.jsx(o5,{ref:r,className:Qt("flex cursor-default items-center justify-center py-1",t),...n,children:e.jsx(ka,{className:"h-4 w-4"})}));u5.displayName=o5.displayName;const wi=I.forwardRef(({className:t,children:n,position:r="popper",...i},s)=>e.jsx(eW,{children:e.jsxs(r5,{ref:s,className:Qt("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="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",t),position:r,...i,children:[e.jsx(c5,{}),e.jsx(tW,{className:Qt("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),e.jsx(u5,{})]})}));wi.displayName=r5.displayName;const iW=I.forwardRef(({className:t,...n},r)=>e.jsx(i5,{ref:r,className:Qt("px-2 py-1.5 text-sm font-semibold",t),...n}));iW.displayName=i5.displayName;const St=I.forwardRef(({className:t,children:n,...r},i)=>e.jsxs(s5,{ref:i,className:Qt("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(rW,{children:e.jsx(Ft,{className:"h-4 w-4"})})}),e.jsx(nW,{children:n})]}));St.displayName=s5.displayName;const sW=I.forwardRef(({className:t,...n},r)=>e.jsx(l5,{ref:r,className:Qt("-mx-1 my-1 h-px bg-muted",t),...n}));sW.displayName=l5.displayName;var wg,w2;function aW(){if(w2)return wg;w2=1;function t(){this.__data__=[],this.size=0}return wg=t,wg}var Ng,N2;function d5(){if(N2)return Ng;N2=1;function t(n,r){return n===r||n!==n&&r!==r}return Ng=t,Ng}var kg,k2;function Df(){if(k2)return kg;k2=1;var t=d5();function n(r,i){for(var s=r.length;s--;)if(t(r[s][0],i))return s;return-1}return kg=n,kg}var _g,_2;function oW(){if(_2)return _g;_2=1;var t=Df(),n=Array.prototype,r=n.splice;function i(s){var a=this.__data__,o=t(a,s);if(o<0)return!1;var c=a.length-1;return o==c?a.pop():r.call(a,o,1),--this.size,!0}return _g=i,_g}var Sg,S2;function lW(){if(S2)return Sg;S2=1;var t=Df();function n(r){var i=this.__data__,s=t(i,r);return s<0?void 0:i[s][1]}return Sg=n,Sg}var Ag,A2;function cW(){if(A2)return Ag;A2=1;var t=Df();function n(r){return t(this.__data__,r)>-1}return Ag=n,Ag}var Cg,C2;function uW(){if(C2)return Cg;C2=1;var t=Df();function n(r,i){var s=this.__data__,a=t(s,r);return a<0?(++this.size,s.push([r,i])):s[a][1]=i,this}return Cg=n,Cg}var Eg,E2;function If(){if(E2)return Eg;E2=1;var t=aW(),n=oW(),r=lW(),i=cW(),s=uW();function a(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var h=o[c];this.set(h[0],h[1])}}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,Eg=a,Eg}var Tg,T2;function dW(){if(T2)return Tg;T2=1;var t=If();function n(){this.__data__=new t,this.size=0}return Tg=n,Tg}var Pg,P2;function hW(){if(P2)return Pg;P2=1;function t(n){var r=this.__data__,i=r.delete(n);return this.size=r.size,i}return Pg=t,Pg}var Og,O2;function fW(){if(O2)return Og;O2=1;function t(n){return this.__data__.get(n)}return Og=t,Og}var Dg,D2;function mW(){if(D2)return Dg;D2=1;function t(n){return this.__data__.has(n)}return Dg=t,Dg}var Ig,I2;function h5(){if(I2)return Ig;I2=1;var t=typeof Qd=="object"&&Qd&&Qd.Object===Object&&Qd;return Ig=t,Ig}var Rg,R2;function ns(){if(R2)return Rg;R2=1;var t=h5(),n=typeof self=="object"&&self&&self.Object===Object&&self,r=t||n||Function("return this")();return Rg=r,Rg}var Fg,F2;function lb(){if(F2)return Fg;F2=1;var t=ns(),n=t.Symbol;return Fg=n,Fg}var Mg,M2;function pW(){if(M2)return Mg;M2=1;var t=lb(),n=Object.prototype,r=n.hasOwnProperty,i=n.toString,s=t?t.toStringTag:void 0;function a(o){var c=r.call(o,s),d=o[s];try{o[s]=void 0;var h=!0}catch{}var f=i.call(o);return h&&(c?o[s]=d:delete o[s]),f}return Mg=a,Mg}var Lg,L2;function gW(){if(L2)return Lg;L2=1;var t=Object.prototype,n=t.toString;function r(i){return n.call(i)}return Lg=r,Lg}var Bg,B2;function Rf(){if(B2)return Bg;B2=1;var t=lb(),n=pW(),r=gW(),i="[object Null]",s="[object Undefined]",a=t?t.toStringTag:void 0;function o(c){return c==null?c===void 0?s:i:a&&a in Object(c)?n(c):r(c)}return Bg=o,Bg}var zg,z2;function f5(){if(z2)return zg;z2=1;function t(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}return zg=t,zg}var qg,q2;function m5(){if(q2)return qg;q2=1;var t=Rf(),n=f5(),r="[object AsyncFunction]",i="[object Function]",s="[object GeneratorFunction]",a="[object Proxy]";function o(c){if(!n(c))return!1;var d=t(c);return d==i||d==s||d==r||d==a}return qg=o,qg}var Vg,V2;function xW(){if(V2)return Vg;V2=1;var t=ns(),n=t["__core-js_shared__"];return Vg=n,Vg}var Ug,U2;function yW(){if(U2)return Ug;U2=1;var t=xW(),n=(function(){var i=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function r(i){return!!n&&n in i}return Ug=r,Ug}var $g,$2;function p5(){if($2)return $g;$2=1;var t=Function.prototype,n=t.toString;function r(i){if(i!=null){try{return n.call(i)}catch{}try{return i+""}catch{}}return""}return $g=r,$g}var Hg,H2;function vW(){if(H2)return Hg;H2=1;var t=m5(),n=yW(),r=f5(),i=p5(),s=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,c=Object.prototype,d=o.toString,h=c.hasOwnProperty,f=RegExp("^"+d.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(p){if(!r(p)||n(p))return!1;var g=t(p)?f:a;return g.test(i(p))}return Hg=m,Hg}var Wg,W2;function bW(){if(W2)return Wg;W2=1;function t(n,r){return n==null?void 0:n[r]}return Wg=t,Wg}var Kg,K2;function Tl(){if(K2)return Kg;K2=1;var t=vW(),n=bW();function r(i,s){var a=n(i,s);return t(a)?a:void 0}return Kg=r,Kg}var Gg,G2;function cb(){if(G2)return Gg;G2=1;var t=Tl(),n=ns(),r=t(n,"Map");return Gg=r,Gg}var Qg,Q2;function Ff(){if(Q2)return Qg;Q2=1;var t=Tl(),n=t(Object,"create");return Qg=n,Qg}var Yg,Y2;function jW(){if(Y2)return Yg;Y2=1;var t=Ff();function n(){this.__data__=t?t(null):{},this.size=0}return Yg=n,Yg}var Xg,X2;function wW(){if(X2)return Xg;X2=1;function t(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}return Xg=t,Xg}var Jg,J2;function NW(){if(J2)return Jg;J2=1;var t=Ff(),n="__lodash_hash_undefined__",r=Object.prototype,i=r.hasOwnProperty;function s(a){var o=this.__data__;if(t){var c=o[a];return c===n?void 0:c}return i.call(o,a)?o[a]:void 0}return Jg=s,Jg}var Zg,Z2;function kW(){if(Z2)return Zg;Z2=1;var t=Ff(),n=Object.prototype,r=n.hasOwnProperty;function i(s){var a=this.__data__;return t?a[s]!==void 0:r.call(a,s)}return Zg=i,Zg}var ex,e_;function _W(){if(e_)return ex;e_=1;var t=Ff(),n="__lodash_hash_undefined__";function r(i,s){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=t&&s===void 0?n:s,this}return ex=r,ex}var tx,t_;function SW(){if(t_)return tx;t_=1;var t=jW(),n=wW(),r=NW(),i=kW(),s=_W();function a(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var h=o[c];this.set(h[0],h[1])}}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,tx=a,tx}var nx,n_;function AW(){if(n_)return nx;n_=1;var t=SW(),n=If(),r=cb();function i(){this.size=0,this.__data__={hash:new t,map:new(r||n),string:new t}}return nx=i,nx}var rx,r_;function CW(){if(r_)return rx;r_=1;function t(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}return rx=t,rx}var ix,i_;function Mf(){if(i_)return ix;i_=1;var t=CW();function n(r,i){var s=r.__data__;return t(i)?s[typeof i=="string"?"string":"hash"]:s.map}return ix=n,ix}var sx,s_;function EW(){if(s_)return sx;s_=1;var t=Mf();function n(r){var i=t(this,r).delete(r);return this.size-=i?1:0,i}return sx=n,sx}var ax,a_;function TW(){if(a_)return ax;a_=1;var t=Mf();function n(r){return t(this,r).get(r)}return ax=n,ax}var ox,o_;function PW(){if(o_)return ox;o_=1;var t=Mf();function n(r){return t(this,r).has(r)}return ox=n,ox}var lx,l_;function OW(){if(l_)return lx;l_=1;var t=Mf();function n(r,i){var s=t(this,r),a=s.size;return s.set(r,i),this.size+=s.size==a?0:1,this}return lx=n,lx}var cx,c_;function g5(){if(c_)return cx;c_=1;var t=AW(),n=EW(),r=TW(),i=PW(),s=OW();function a(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var h=o[c];this.set(h[0],h[1])}}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,cx=a,cx}var ux,u_;function DW(){if(u_)return ux;u_=1;var t=If(),n=cb(),r=g5(),i=200;function s(a,o){var c=this.__data__;if(c instanceof t){var d=c.__data__;if(!n||d.length<i-1)return d.push([a,o]),this.size=++c.size,this;c=this.__data__=new r(d)}return c.set(a,o),this.size=c.size,this}return ux=s,ux}var dx,d_;function IW(){if(d_)return dx;d_=1;var t=If(),n=dW(),r=hW(),i=fW(),s=mW(),a=DW();function o(c){var d=this.__data__=new t(c);this.size=d.size}return o.prototype.clear=n,o.prototype.delete=r,o.prototype.get=i,o.prototype.has=s,o.prototype.set=a,dx=o,dx}var hx,h_;function RW(){if(h_)return hx;h_=1;var t="__lodash_hash_undefined__";function n(r){return this.__data__.set(r,t),this}return hx=n,hx}var fx,f_;function FW(){if(f_)return fx;f_=1;function t(n){return this.__data__.has(n)}return fx=t,fx}var mx,m_;function MW(){if(m_)return mx;m_=1;var t=g5(),n=RW(),r=FW();function i(s){var a=-1,o=s==null?0:s.length;for(this.__data__=new t;++a<o;)this.add(s[a])}return i.prototype.add=i.prototype.push=n,i.prototype.has=r,mx=i,mx}var px,p_;function LW(){if(p_)return px;p_=1;function t(n,r){for(var i=-1,s=n==null?0:n.length;++i<s;)if(r(n[i],i,n))return!0;return!1}return px=t,px}var gx,g_;function BW(){if(g_)return gx;g_=1;function t(n,r){return n.has(r)}return gx=t,gx}var xx,x_;function x5(){if(x_)return xx;x_=1;var t=MW(),n=LW(),r=BW(),i=1,s=2;function a(o,c,d,h,f,m){var p=d&i,g=o.length,b=c.length;if(g!=b&&!(p&&b>g))return!1;var j=m.get(o),y=m.get(c);if(j&&y)return j==c&&y==o;var x=-1,N=!0,w=d&s?new t:void 0;for(m.set(o,c),m.set(c,o);++x<g;){var k=o[x],A=c[x];if(h)var S=p?h(A,k,x,c,o,m):h(k,A,x,o,c,m);if(S!==void 0){if(S)continue;N=!1;break}if(w){if(!n(c,function(E,C){if(!r(w,C)&&(k===E||f(k,E,d,h,m)))return w.push(C)})){N=!1;break}}else if(!(k===A||f(k,A,d,h,m))){N=!1;break}}return m.delete(o),m.delete(c),N}return xx=a,xx}var yx,y_;function zW(){if(y_)return yx;y_=1;var t=ns(),n=t.Uint8Array;return yx=n,yx}var vx,v_;function qW(){if(v_)return vx;v_=1;function t(n){var r=-1,i=Array(n.size);return n.forEach(function(s,a){i[++r]=[a,s]}),i}return vx=t,vx}var bx,b_;function VW(){if(b_)return bx;b_=1;function t(n){var r=-1,i=Array(n.size);return n.forEach(function(s){i[++r]=s}),i}return bx=t,bx}var jx,j_;function UW(){if(j_)return jx;j_=1;var t=lb(),n=zW(),r=d5(),i=x5(),s=qW(),a=VW(),o=1,c=2,d="[object Boolean]",h="[object Date]",f="[object Error]",m="[object Map]",p="[object Number]",g="[object RegExp]",b="[object Set]",j="[object String]",y="[object Symbol]",x="[object ArrayBuffer]",N="[object DataView]",w=t?t.prototype:void 0,k=w?w.valueOf:void 0;function A(S,E,C,B,D,F,R){switch(C){case N:if(S.byteLength!=E.byteLength||S.byteOffset!=E.byteOffset)return!1;S=S.buffer,E=E.buffer;case x:return!(S.byteLength!=E.byteLength||!F(new n(S),new n(E)));case d:case h:case p:return r(+S,+E);case f:return S.name==E.name&&S.message==E.message;case g:case j:return S==E+"";case m:var z=s;case b:var q=B&o;if(z||(z=a),S.size!=E.size&&!q)return!1;var U=R.get(S);if(U)return U==E;B|=c,R.set(S,E);var Q=i(z(S),z(E),B,D,F,R);return R.delete(S),Q;case y:if(k)return k.call(S)==k.call(E)}return!1}return jx=A,jx}var wx,w_;function $W(){if(w_)return wx;w_=1;function t(n,r){for(var i=-1,s=r.length,a=n.length;++i<s;)n[a+i]=r[i];return n}return wx=t,wx}var Nx,N_;function ub(){if(N_)return Nx;N_=1;var t=Array.isArray;return Nx=t,Nx}var kx,k_;function HW(){if(k_)return kx;k_=1;var t=$W(),n=ub();function r(i,s,a){var o=s(i);return n(i)?o:t(o,a(i))}return kx=r,kx}var _x,__;function WW(){if(__)return _x;__=1;function t(n,r){for(var i=-1,s=n==null?0:n.length,a=0,o=[];++i<s;){var c=n[i];r(c,i,n)&&(o[a++]=c)}return o}return _x=t,_x}var Sx,S_;function KW(){if(S_)return Sx;S_=1;function t(){return[]}return Sx=t,Sx}var Ax,A_;function GW(){if(A_)return Ax;A_=1;var t=WW(),n=KW(),r=Object.prototype,i=r.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(o){return o==null?[]:(o=Object(o),t(s(o),function(c){return i.call(o,c)}))}:n;return Ax=a,Ax}var Cx,C_;function QW(){if(C_)return Cx;C_=1;function t(n,r){for(var i=-1,s=Array(n);++i<n;)s[i]=r(i);return s}return Cx=t,Cx}var Ex,E_;function Lf(){if(E_)return Ex;E_=1;function t(n){return n!=null&&typeof n=="object"}return Ex=t,Ex}var Tx,T_;function YW(){if(T_)return Tx;T_=1;var t=Rf(),n=Lf(),r="[object Arguments]";function i(s){return n(s)&&t(s)==r}return Tx=i,Tx}var Px,P_;function XW(){if(P_)return Px;P_=1;var t=YW(),n=Lf(),r=Object.prototype,i=r.hasOwnProperty,s=r.propertyIsEnumerable,a=t((function(){return arguments})())?t:function(o){return n(o)&&i.call(o,"callee")&&!s.call(o,"callee")};return Px=a,Px}var Mc={exports:{}},Ox,O_;function JW(){if(O_)return Ox;O_=1;function t(){return!1}return Ox=t,Ox}Mc.exports;var D_;function y5(){return D_||(D_=1,(function(t,n){var r=ns(),i=JW(),s=n&&!n.nodeType&&n,a=s&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===s,c=o?r.Buffer:void 0,d=c?c.isBuffer:void 0,h=d||i;t.exports=h})(Mc,Mc.exports)),Mc.exports}var Dx,I_;function ZW(){if(I_)return Dx;I_=1;var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(i,s){var a=typeof i;return s=s??t,!!s&&(a=="number"||a!="symbol"&&n.test(i))&&i>-1&&i%1==0&&i<s}return Dx=r,Dx}var Ix,R_;function v5(){if(R_)return Ix;R_=1;var t=9007199254740991;function n(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return Ix=n,Ix}var Rx,F_;function eK(){if(F_)return Rx;F_=1;var t=Rf(),n=v5(),r=Lf(),i="[object Arguments]",s="[object Array]",a="[object Boolean]",o="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",f="[object Number]",m="[object Object]",p="[object RegExp]",g="[object Set]",b="[object String]",j="[object WeakMap]",y="[object ArrayBuffer]",x="[object DataView]",N="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",A="[object Int16Array]",S="[object Int32Array]",E="[object Uint8Array]",C="[object Uint8ClampedArray]",B="[object Uint16Array]",D="[object Uint32Array]",F={};F[N]=F[w]=F[k]=F[A]=F[S]=F[E]=F[C]=F[B]=F[D]=!0,F[i]=F[s]=F[y]=F[a]=F[x]=F[o]=F[c]=F[d]=F[h]=F[f]=F[m]=F[p]=F[g]=F[b]=F[j]=!1;function R(z){return r(z)&&n(z.length)&&!!F[t(z)]}return Rx=R,Rx}var Fx,M_;function tK(){if(M_)return Fx;M_=1;function t(n){return function(r){return n(r)}}return Fx=t,Fx}var Lc={exports:{}};Lc.exports;var L_;function nK(){return L_||(L_=1,(function(t,n){var r=h5(),i=n&&!n.nodeType&&n,s=i&&!0&&t&&!t.nodeType&&t,a=s&&s.exports===i,o=a&&r.process,c=(function(){try{var d=s&&s.require&&s.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}})();t.exports=c})(Lc,Lc.exports)),Lc.exports}var Mx,B_;function b5(){if(B_)return Mx;B_=1;var t=eK(),n=tK(),r=nK(),i=r&&r.isTypedArray,s=i?n(i):t;return Mx=s,Mx}var Lx,z_;function rK(){if(z_)return Lx;z_=1;var t=QW(),n=XW(),r=ub(),i=y5(),s=ZW(),a=b5(),o=Object.prototype,c=o.hasOwnProperty;function d(h,f){var m=r(h),p=!m&&n(h),g=!m&&!p&&i(h),b=!m&&!p&&!g&&a(h),j=m||p||g||b,y=j?t(h.length,String):[],x=y.length;for(var N in h)(f||c.call(h,N))&&!(j&&(N=="length"||g&&(N=="offset"||N=="parent")||b&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||s(N,x)))&&y.push(N);return y}return Lx=d,Lx}var Bx,q_;function iK(){if(q_)return Bx;q_=1;var t=Object.prototype;function n(r){var i=r&&r.constructor,s=typeof i=="function"&&i.prototype||t;return r===s}return Bx=n,Bx}var zx,V_;function sK(){if(V_)return zx;V_=1;function t(n,r){return function(i){return n(r(i))}}return zx=t,zx}var qx,U_;function aK(){if(U_)return qx;U_=1;var t=sK(),n=t(Object.keys,Object);return qx=n,qx}var Vx,$_;function oK(){if($_)return Vx;$_=1;var t=iK(),n=aK(),r=Object.prototype,i=r.hasOwnProperty;function s(a){if(!t(a))return n(a);var o=[];for(var c in Object(a))i.call(a,c)&&c!="constructor"&&o.push(c);return o}return Vx=s,Vx}var Ux,H_;function lK(){if(H_)return Ux;H_=1;var t=m5(),n=v5();function r(i){return i!=null&&n(i.length)&&!t(i)}return Ux=r,Ux}var $x,W_;function cK(){if(W_)return $x;W_=1;var t=rK(),n=oK(),r=lK();function i(s){return r(s)?t(s):n(s)}return $x=i,$x}var Hx,K_;function uK(){if(K_)return Hx;K_=1;var t=HW(),n=GW(),r=cK();function i(s){return t(s,r,n)}return Hx=i,Hx}var Wx,G_;function dK(){if(G_)return Wx;G_=1;var t=uK(),n=1,r=Object.prototype,i=r.hasOwnProperty;function s(a,o,c,d,h,f){var m=c&n,p=t(a),g=p.length,b=t(o),j=b.length;if(g!=j&&!m)return!1;for(var y=g;y--;){var x=p[y];if(!(m?x in o:i.call(o,x)))return!1}var N=f.get(a),w=f.get(o);if(N&&w)return N==o&&w==a;var k=!0;f.set(a,o),f.set(o,a);for(var A=m;++y<g;){x=p[y];var S=a[x],E=o[x];if(d)var C=m?d(E,S,x,o,a,f):d(S,E,x,a,o,f);if(!(C===void 0?S===E||h(S,E,c,d,f):C)){k=!1;break}A||(A=x=="constructor")}if(k&&!A){var B=a.constructor,D=o.constructor;B!=D&&"constructor"in a&&"constructor"in o&&!(typeof B=="function"&&B instanceof B&&typeof D=="function"&&D instanceof D)&&(k=!1)}return f.delete(a),f.delete(o),k}return Wx=s,Wx}var Kx,Q_;function hK(){if(Q_)return Kx;Q_=1;var t=Tl(),n=ns(),r=t(n,"DataView");return Kx=r,Kx}var Gx,Y_;function fK(){if(Y_)return Gx;Y_=1;var t=Tl(),n=ns(),r=t(n,"Promise");return Gx=r,Gx}var Qx,X_;function mK(){if(X_)return Qx;X_=1;var t=Tl(),n=ns(),r=t(n,"Set");return Qx=r,Qx}var Yx,J_;function pK(){if(J_)return Yx;J_=1;var t=Tl(),n=ns(),r=t(n,"WeakMap");return Yx=r,Yx}var Xx,Z_;function gK(){if(Z_)return Xx;Z_=1;var t=hK(),n=cb(),r=fK(),i=mK(),s=pK(),a=Rf(),o=p5(),c="[object Map]",d="[object Object]",h="[object Promise]",f="[object Set]",m="[object WeakMap]",p="[object DataView]",g=o(t),b=o(n),j=o(r),y=o(i),x=o(s),N=a;return(t&&N(new t(new ArrayBuffer(1)))!=p||n&&N(new n)!=c||r&&N(r.resolve())!=h||i&&N(new i)!=f||s&&N(new s)!=m)&&(N=function(w){var k=a(w),A=k==d?w.constructor:void 0,S=A?o(A):"";if(S)switch(S){case g:return p;case b:return c;case j:return h;case y:return f;case x:return m}return k}),Xx=N,Xx}var Jx,eS;function xK(){if(eS)return Jx;eS=1;var t=IW(),n=x5(),r=UW(),i=dK(),s=gK(),a=ub(),o=y5(),c=b5(),d=1,h="[object Arguments]",f="[object Array]",m="[object Object]",p=Object.prototype,g=p.hasOwnProperty;function b(j,y,x,N,w,k){var A=a(j),S=a(y),E=A?f:s(j),C=S?f:s(y);E=E==h?m:E,C=C==h?m:C;var B=E==m,D=C==m,F=E==C;if(F&&o(j)){if(!o(y))return!1;A=!0,B=!1}if(F&&!B)return k||(k=new t),A||c(j)?n(j,y,x,N,w,k):r(j,y,E,x,N,w,k);if(!(x&d)){var R=B&&g.call(j,"__wrapped__"),z=D&&g.call(y,"__wrapped__");if(R||z){var q=R?j.value():j,U=z?y.value():y;return k||(k=new t),w(q,U,x,N,k)}}return F?(k||(k=new t),i(j,y,x,N,w,k)):!1}return Jx=b,Jx}var Zx,tS;function yK(){if(tS)return Zx;tS=1;var t=xK(),n=Lf();function r(i,s,a,o,c){return i===s?!0:i==null||s==null||!n(i)&&!n(s)?i!==i&&s!==s:t(i,s,a,o,r,c)}return Zx=r,Zx}var e0,nS;function vK(){if(nS)return e0;nS=1;var t=yK();function n(r,i){return t(r,i)}return e0=n,e0}var Rh={exports:{}};/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */var bK=Rh.exports,rS;function jK(){return rS||(rS=1,(function(t,n){(function(i,s){t.exports=s()})(typeof self<"u"?self:bK,function(){return(function(r){var i={};function s(a){if(i[a])return i[a].exports;var o=i[a]={i:a,l:!1,exports:{}};return r[a].call(o.exports,o,o.exports,s),o.l=!0,o.exports}return s.m=r,s.c=i,s.d=function(a,o,c){s.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:c})},s.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return s.d(o,"a",o),o},s.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},s.p="",s(s.s=109)})([(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(17),o=s(18),c=s(19),d=s(45),h=s(46),f=s(47),m=s(48),p=s(49),g=s(12),b=s(32),j=s(33),y=s(31),x=s(1),N={Scope:x.Scope,create:x.create,find:x.find,query:x.query,register:x.register,Container:a.default,Format:o.default,Leaf:c.default,Embed:m.default,Scroll:d.default,Block:f.default,Inline:h.default,Text:p.default,Attributor:{Attribute:g.default,Class:b.default,Style:j.default,Store:y.default}};i.default=N}),(function(r,i,s){var a=this&&this.__extends||(function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var w in N)N.hasOwnProperty(w)&&(x[w]=N[w])};return function(x,N){y(x,N);function w(){this.constructor=x}x.prototype=N===null?Object.create(N):(w.prototype=N.prototype,new w)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=(function(y){a(x,y);function x(N){var w=this;return N="[Parchment] "+N,w=y.call(this,N)||this,w.message=N,w.name=w.constructor.name,w}return x})(Error);i.ParchmentError=o;var c={},d={},h={},f={};i.DATA_KEY="__blot";var m;(function(y){y[y.TYPE=3]="TYPE",y[y.LEVEL=12]="LEVEL",y[y.ATTRIBUTE=13]="ATTRIBUTE",y[y.BLOT=14]="BLOT",y[y.INLINE=7]="INLINE",y[y.BLOCK=11]="BLOCK",y[y.BLOCK_BLOT=10]="BLOCK_BLOT",y[y.INLINE_BLOT=6]="INLINE_BLOT",y[y.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",y[y.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",y[y.ANY=15]="ANY"})(m=i.Scope||(i.Scope={}));function p(y,x){var N=b(y);if(N==null)throw new o("Unable to create "+y+" blot");var w=N,k=y instanceof Node||y.nodeType===Node.TEXT_NODE?y:w.create(x);return new w(k,x)}i.create=p;function g(y,x){return x===void 0&&(x=!1),y==null?null:y[i.DATA_KEY]!=null?y[i.DATA_KEY].blot:x?g(y.parentNode,x):null}i.find=g;function b(y,x){x===void 0&&(x=m.ANY);var N;if(typeof y=="string")N=f[y]||c[y];else if(y instanceof Text||y.nodeType===Node.TEXT_NODE)N=f.text;else if(typeof y=="number")y&m.LEVEL&m.BLOCK?N=f.block:y&m.LEVEL&m.INLINE&&(N=f.inline);else if(y instanceof HTMLElement){var w=(y.getAttribute("class")||"").split(/\s+/);for(var k in w)if(N=d[w[k]],N)break;N=N||h[y.tagName]}return N==null?null:x&m.LEVEL&N.scope&&x&m.TYPE&N.scope?N:null}i.query=b;function j(){for(var y=[],x=0;x<arguments.length;x++)y[x]=arguments[x];if(y.length>1)return y.map(function(k){return j(k)});var N=y[0];if(typeof N.blotName!="string"&&typeof N.attrName!="string")throw new o("Invalid definition");if(N.blotName==="abstract")throw new o("Cannot register abstract class");if(f[N.blotName||N.attrName]=N,typeof N.keyName=="string")c[N.keyName]=N;else if(N.className!=null&&(d[N.className]=N),N.tagName!=null){Array.isArray(N.tagName)?N.tagName=N.tagName.map(function(k){return k.toUpperCase()}):N.tagName=N.tagName.toUpperCase();var w=Array.isArray(N.tagName)?N.tagName:[N.tagName];w.forEach(function(k){(h[k]==null||N.className==null)&&(h[k]=N)})}return N}i.register=j}),(function(r,i,s){var a=s(51),o=s(11),c=s(3),d=s(20),h="\0",f=function(m){Array.isArray(m)?this.ops=m:m!=null&&Array.isArray(m.ops)?this.ops=m.ops:this.ops=[]};f.prototype.insert=function(m,p){var g={};return m.length===0?this:(g.insert=m,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(g.attributes=p),this.push(g))},f.prototype.delete=function(m){return m<=0?this:this.push({delete:m})},f.prototype.retain=function(m,p){if(m<=0)return this;var g={retain:m};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(g.attributes=p),this.push(g)},f.prototype.push=function(m){var p=this.ops.length,g=this.ops[p-1];if(m=c(!0,{},m),typeof g=="object"){if(typeof m.delete=="number"&&typeof g.delete=="number")return this.ops[p-1]={delete:g.delete+m.delete},this;if(typeof g.delete=="number"&&m.insert!=null&&(p-=1,g=this.ops[p-1],typeof g!="object"))return this.ops.unshift(m),this;if(o(m.attributes,g.attributes)){if(typeof m.insert=="string"&&typeof g.insert=="string")return this.ops[p-1]={insert:g.insert+m.insert},typeof m.attributes=="object"&&(this.ops[p-1].attributes=m.attributes),this;if(typeof m.retain=="number"&&typeof g.retain=="number")return this.ops[p-1]={retain:g.retain+m.retain},typeof m.attributes=="object"&&(this.ops[p-1].attributes=m.attributes),this}}return p===this.ops.length?this.ops.push(m):this.ops.splice(p,0,m),this},f.prototype.chop=function(){var m=this.ops[this.ops.length-1];return m&&m.retain&&!m.attributes&&this.ops.pop(),this},f.prototype.filter=function(m){return this.ops.filter(m)},f.prototype.forEach=function(m){this.ops.forEach(m)},f.prototype.map=function(m){return this.ops.map(m)},f.prototype.partition=function(m){var p=[],g=[];return this.forEach(function(b){var j=m(b)?p:g;j.push(b)}),[p,g]},f.prototype.reduce=function(m,p){return this.ops.reduce(m,p)},f.prototype.changeLength=function(){return this.reduce(function(m,p){return p.insert?m+d.length(p):p.delete?m-p.delete:m},0)},f.prototype.length=function(){return this.reduce(function(m,p){return m+d.length(p)},0)},f.prototype.slice=function(m,p){m=m||0,typeof p!="number"&&(p=1/0);for(var g=[],b=d.iterator(this.ops),j=0;j<p&&b.hasNext();){var y;j<m?y=b.next(m-j):(y=b.next(p-j),g.push(y)),j+=d.length(y)}return new f(g)},f.prototype.compose=function(m){var p=d.iterator(this.ops),g=d.iterator(m.ops),b=[],j=g.peek();if(j!=null&&typeof j.retain=="number"&&j.attributes==null){for(var y=j.retain;p.peekType()==="insert"&&p.peekLength()<=y;)y-=p.peekLength(),b.push(p.next());j.retain-y>0&&g.next(j.retain-y)}for(var x=new f(b);p.hasNext()||g.hasNext();)if(g.peekType()==="insert")x.push(g.next());else if(p.peekType()==="delete")x.push(p.next());else{var N=Math.min(p.peekLength(),g.peekLength()),w=p.next(N),k=g.next(N);if(typeof k.retain=="number"){var A={};typeof w.retain=="number"?A.retain=N:A.insert=w.insert;var S=d.attributes.compose(w.attributes,k.attributes,typeof w.retain=="number");if(S&&(A.attributes=S),x.push(A),!g.hasNext()&&o(x.ops[x.ops.length-1],A)){var E=new f(p.rest());return x.concat(E).chop()}}else typeof k.delete=="number"&&typeof w.retain=="number"&&x.push(k)}return x.chop()},f.prototype.concat=function(m){var p=new f(this.ops.slice());return m.ops.length>0&&(p.push(m.ops[0]),p.ops=p.ops.concat(m.ops.slice(1))),p},f.prototype.diff=function(m,p){if(this.ops===m.ops)return new f;var g=[this,m].map(function(N){return N.map(function(w){if(w.insert!=null)return typeof w.insert=="string"?w.insert:h;var k=N===m?"on":"with";throw new Error("diff() called "+k+" non-document")}).join("")}),b=new f,j=a(g[0],g[1],p),y=d.iterator(this.ops),x=d.iterator(m.ops);return j.forEach(function(N){for(var w=N[1].length;w>0;){var k=0;switch(N[0]){case a.INSERT:k=Math.min(x.peekLength(),w),b.push(x.next(k));break;case a.DELETE:k=Math.min(w,y.peekLength()),y.next(k),b.delete(k);break;case a.EQUAL:k=Math.min(y.peekLength(),x.peekLength(),w);var A=y.next(k),S=x.next(k);o(A.insert,S.insert)?b.retain(k,d.attributes.diff(A.attributes,S.attributes)):b.push(S).delete(k);break}w-=k}}),b.chop()},f.prototype.eachLine=function(m,p){p=p||`
`;for(var g=d.iterator(this.ops),b=new f,j=0;g.hasNext();){if(g.peekType()!=="insert")return;var y=g.peek(),x=d.length(y)-g.peekLength(),N=typeof y.insert=="string"?y.insert.indexOf(p,x)-x:-1;if(N<0)b.push(g.next());else if(N>0)b.push(g.next(N));else{if(m(b,g.next(1).attributes||{},j)===!1)return;j+=1,b=new f}}b.length()>0&&m(b,{},j)},f.prototype.transform=function(m,p){if(p=!!p,typeof m=="number")return this.transformPosition(m,p);for(var g=d.iterator(this.ops),b=d.iterator(m.ops),j=new f;g.hasNext()||b.hasNext();)if(g.peekType()==="insert"&&(p||b.peekType()!=="insert"))j.retain(d.length(g.next()));else if(b.peekType()==="insert")j.push(b.next());else{var y=Math.min(g.peekLength(),b.peekLength()),x=g.next(y),N=b.next(y);if(x.delete)continue;N.delete?j.push(N):j.retain(y,d.attributes.transform(x.attributes,N.attributes,p))}return j.chop()},f.prototype.transformPosition=function(m,p){p=!!p;for(var g=d.iterator(this.ops),b=0;g.hasNext()&&b<=m;){var j=g.peekLength(),y=g.peekType();if(g.next(),y==="delete"){m-=Math.min(j,m-b);continue}else y==="insert"&&(b<m||!p)&&(m+=j);b+=j}return m},r.exports=f}),(function(r,i){var s=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=function(g){return typeof Array.isArray=="function"?Array.isArray(g):a.call(g)==="[object Array]"},h=function(g){if(!g||a.call(g)!=="[object Object]")return!1;var b=s.call(g,"constructor"),j=g.constructor&&g.constructor.prototype&&s.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!b&&!j)return!1;var y;for(y in g);return typeof y>"u"||s.call(g,y)},f=function(g,b){o&&b.name==="__proto__"?o(g,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):g[b.name]=b.newValue},m=function(g,b){if(b==="__proto__")if(s.call(g,b)){if(c)return c(g,b).value}else return;return g[b]};r.exports=function p(){var g,b,j,y,x,N,w=arguments[0],k=1,A=arguments.length,S=!1;for(typeof w=="boolean"&&(S=w,w=arguments[1]||{},k=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});k<A;++k)if(g=arguments[k],g!=null)for(b in g)j=m(w,b),y=m(g,b),w!==y&&(S&&y&&(h(y)||(x=d(y)))?(x?(x=!1,N=j&&d(j)?j:[]):N=j&&h(j)?j:{},f(w,{name:b,newValue:p(S,N,y)})):typeof y<"u"&&f(w,{name:b,newValue:y}));return w}}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BlockEmbed=i.bubbleFormats=void 0;var a=(function(){function F(R,z){for(var q=0;q<z.length;q++){var U=z[q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(R,U.key,U)}}return function(R,z,q){return z&&F(R.prototype,z),q&&F(R,q),R}})(),o=function F(R,z,q){R===null&&(R=Function.prototype);var U=Object.getOwnPropertyDescriptor(R,z);if(U===void 0){var Q=Object.getPrototypeOf(R);return Q===null?void 0:F(Q,z,q)}else{if("value"in U)return U.value;var H=U.get;return H===void 0?void 0:H.call(q)}},c=s(3),d=w(c),h=s(2),f=w(h),m=s(0),p=w(m),g=s(16),b=w(g),j=s(6),y=w(j),x=s(7),N=w(x);function w(F){return F&&F.__esModule?F:{default:F}}function k(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}function A(F,R){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:F}function S(F,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);F.prototype=Object.create(R&&R.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(F,R):F.__proto__=R)}var E=1,C=(function(F){S(R,F);function R(){return k(this,R),A(this,(R.__proto__||Object.getPrototypeOf(R)).apply(this,arguments))}return a(R,[{key:"attach",value:function(){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"attach",this).call(this),this.attributes=new p.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new f.default().insert(this.value(),(0,d.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(q,U){var Q=p.default.query(q,p.default.Scope.BLOCK_ATTRIBUTE);Q!=null&&this.attributes.attribute(Q,U)}},{key:"formatAt",value:function(q,U,Q,H){this.format(Q,H)}},{key:"insertAt",value:function(q,U,Q){if(typeof U=="string"&&U.endsWith(`
`)){var H=p.default.create(B.blotName);this.parent.insertBefore(H,q===0?this:this.next),H.insertAt(0,U.slice(0,-1))}else o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,q,U,Q)}}]),R})(p.default.Embed);C.scope=p.default.Scope.BLOCK_BLOT;var B=(function(F){S(R,F);function R(z){k(this,R);var q=A(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,z));return q.cache={},q}return a(R,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(p.default.Leaf).reduce(function(q,U){return U.length()===0?q:q.insert(U.value(),D(U))},new f.default).insert(`
`,D(this))),this.cache.delta}},{key:"deleteAt",value:function(q,U){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"deleteAt",this).call(this,q,U),this.cache={}}},{key:"formatAt",value:function(q,U,Q,H){U<=0||(p.default.query(Q,p.default.Scope.BLOCK)?q+U===this.length()&&this.format(Q,H):o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,q,Math.min(U,this.length()-q-1),Q,H),this.cache={})}},{key:"insertAt",value:function(q,U,Q){if(Q!=null)return o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,q,U,Q);if(U.length!==0){var H=U.split(`
`),K=H.shift();K.length>0&&(q<this.length()-1||this.children.tail==null?o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,Math.min(q,this.length()-1),K):this.children.tail.insertAt(this.children.tail.length(),K),this.cache={});var Y=this;H.reduce(function(O,T){return Y=Y.split(O,!0),Y.insertAt(0,T),T.length},q+K.length)}}},{key:"insertBefore",value:function(q,U){var Q=this.children.head;o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,q,U),Q instanceof b.default&&Q.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(q,U){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"moveChildren",this).call(this,q,U),this.cache={}}},{key:"optimize",value:function(q){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,q),this.cache={}}},{key:"path",value:function(q){return o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,q,!0)}},{key:"removeChild",value:function(q){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"removeChild",this).call(this,q),this.cache={}}},{key:"split",value:function(q){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(U&&(q===0||q>=this.length()-E)){var Q=this.clone();return q===0?(this.parent.insertBefore(Q,this),this):(this.parent.insertBefore(Q,this.next),Q)}else{var H=o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"split",this).call(this,q,U);return this.cache={},H}}}]),R})(p.default.Block);B.blotName="block",B.tagName="P",B.defaultChild="break",B.allowedChildren=[y.default,p.default.Embed,N.default];function D(F){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F==null||(typeof F.formats=="function"&&(R=(0,d.default)(R,F.formats())),F.parent==null||F.parent.blotName=="scroll"||F.parent.statics.scope!==F.statics.scope)?R:D(F.parent,R)}i.bubbleFormats=D,i.BlockEmbed=C,i.default=B}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.overload=i.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},o=(function(){function Y(O,T){var V=[],L=!0,X=!1,J=void 0;try{for(var W=O[Symbol.iterator](),G;!(L=(G=W.next()).done)&&(V.push(G.value),!(T&&V.length===T));L=!0);}catch(ee){X=!0,J=ee}finally{try{!L&&W.return&&W.return()}finally{if(X)throw J}}return V}return function(O,T){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return Y(O,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function Y(O,T){for(var V=0;V<T.length;V++){var L=T[V];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(O,L.key,L)}}return function(O,T,V){return T&&Y(O.prototype,T),V&&Y(O,V),O}})();s(50);var d=s(2),h=D(d),f=s(14),m=D(f),p=s(8),g=D(p),b=s(9),j=D(b),y=s(0),x=D(y),N=s(15),w=D(N),k=s(3),A=D(k),S=s(10),E=D(S),C=s(34),B=D(C);function D(Y){return Y&&Y.__esModule?Y:{default:Y}}function F(Y,O,T){return O in Y?Object.defineProperty(Y,O,{value:T,enumerable:!0,configurable:!0,writable:!0}):Y[O]=T,Y}function R(Y,O){if(!(Y instanceof O))throw new TypeError("Cannot call a class as a function")}var z=(0,E.default)("quill"),q=(function(){c(Y,null,[{key:"debug",value:function(T){T===!0&&(T="log"),E.default.level(T)}},{key:"find",value:function(T){return T.__quill||x.default.find(T)}},{key:"import",value:function(T){return this.imports[T]==null&&z.error("Cannot import "+T+". Are you sure it was registered?"),this.imports[T]}},{key:"register",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof T!="string"){var J=T.attrName||T.blotName;typeof J=="string"?this.register("formats/"+J,T,V):Object.keys(T).forEach(function(W){L.register(W,T[W],V)})}else this.imports[T]!=null&&!X&&z.warn("Overwriting "+T+" with",V),this.imports[T]=V,(T.startsWith("blots/")||T.startsWith("formats/"))&&V.blotName!=="abstract"?x.default.register(V):T.startsWith("modules")&&typeof V.register=="function"&&V.register()}}]);function Y(O){var T=this,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(R(this,Y),this.options=U(O,V),this.container=this.options.container,this.container==null)return z.error("Invalid Quill container",O);this.options.debug&&Y.debug(this.options.debug);var L=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=x.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new m.default(this.scroll),this.selection=new w.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,function(J){J===g.default.events.TEXT_CHANGE&&T.root.classList.toggle("ql-blank",T.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(J,W){var G=T.selection.lastRange,ee=G&&G.length===0?G.index:void 0;Q.call(T,function(){return T.editor.update(null,W,ee)},J)});var X=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+L+"<p><br></p></div>");this.setContents(X),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return c(Y,[{key:"addContainer",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof T=="string"){var L=T;T=document.createElement("div"),T.classList.add(L)}return this.container.insertBefore(T,V),T}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(T,V,L){var X=this,J=H(T,V,L),W=o(J,4);return T=W[0],V=W[1],L=W[3],Q.call(this,function(){return X.editor.deleteText(T,V)},L,T,-1*V)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(T),this.container.classList.toggle("ql-disabled",!T)}},{key:"focus",value:function(){var T=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=T,this.scrollIntoView()}},{key:"format",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;return Q.call(this,function(){var J=L.getSelection(!0),W=new h.default;if(J==null)return W;if(x.default.query(T,x.default.Scope.BLOCK))W=L.editor.formatLine(J.index,J.length,F({},T,V));else{if(J.length===0)return L.selection.format(T,V),W;W=L.editor.formatText(J.index,J.length,F({},T,V))}return L.setSelection(J,g.default.sources.SILENT),W},X)}},{key:"formatLine",value:function(T,V,L,X,J){var W=this,G=void 0,ee=H(T,V,L,X,J),ne=o(ee,4);return T=ne[0],V=ne[1],G=ne[2],J=ne[3],Q.call(this,function(){return W.editor.formatLine(T,V,G)},J,T,0)}},{key:"formatText",value:function(T,V,L,X,J){var W=this,G=void 0,ee=H(T,V,L,X,J),ne=o(ee,4);return T=ne[0],V=ne[1],G=ne[2],J=ne[3],Q.call(this,function(){return W.editor.formatText(T,V,G)},J,T,0)}},{key:"getBounds",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=void 0;typeof T=="number"?L=this.selection.getBounds(T,V):L=this.selection.getBounds(T.index,T.length);var X=this.container.getBoundingClientRect();return{bottom:L.bottom-X.top,height:L.height,left:L.left-X.left,right:L.right-X.left,top:L.top-X.top,width:L.width}}},{key:"getContents",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-T,L=H(T,V),X=o(L,2);return T=X[0],V=X[1],this.editor.getContents(T,V)}},{key:"getFormat",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof T=="number"?this.editor.getFormat(T,V):this.editor.getFormat(T.index,T.length)}},{key:"getIndex",value:function(T){return T.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(T){return this.scroll.leaf(T)}},{key:"getLine",value:function(T){return this.scroll.line(T)}},{key:"getLines",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof T!="number"?this.scroll.lines(T.index,T.length):this.scroll.lines(T,V)}},{key:"getModule",value:function(T){return this.theme.modules[T]}},{key:"getSelection",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return T&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-T,L=H(T,V),X=o(L,2);return T=X[0],V=X[1],this.editor.getText(T,V)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(T,V,L){var X=this,J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Y.sources.API;return Q.call(this,function(){return X.editor.insertEmbed(T,V,L)},J,T)}},{key:"insertText",value:function(T,V,L,X,J){var W=this,G=void 0,ee=H(T,0,L,X,J),ne=o(ee,4);return T=ne[0],G=ne[2],J=ne[3],Q.call(this,function(){return W.editor.insertText(T,V,G)},J,T,V.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(T,V,L){this.clipboard.dangerouslyPasteHTML(T,V,L)}},{key:"removeFormat",value:function(T,V,L){var X=this,J=H(T,V,L),W=o(J,4);return T=W[0],V=W[1],L=W[3],Q.call(this,function(){return X.editor.removeFormat(T,V)},L,T)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(T){var V=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API;return Q.call(this,function(){T=new h.default(T);var X=V.getLength(),J=V.editor.deleteText(0,X),W=V.editor.applyDelta(T),G=W.ops[W.ops.length-1];G!=null&&typeof G.insert=="string"&&G.insert[G.insert.length-1]===`
`&&(V.editor.deleteText(V.getLength()-1,1),W.delete(1));var ee=J.compose(W);return ee},L)}},{key:"setSelection",value:function(T,V,L){if(T==null)this.selection.setRange(null,V||Y.sources.API);else{var X=H(T,V,L),J=o(X,4);T=J[0],V=J[1],L=J[3],this.selection.setRange(new N.Range(T,V),L),L!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API,L=new h.default().insert(T);return this.setContents(L,V)}},{key:"update",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g.default.sources.USER,V=this.scroll.update(T);return this.selection.update(T),V}},{key:"updateContents",value:function(T){var V=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API;return Q.call(this,function(){return T=new h.default(T),V.editor.applyDelta(T,L)},L,!0)}}]),Y})();q.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},q.events=g.default.events,q.sources=g.default.sources,q.version="1.3.7",q.imports={delta:h.default,parchment:x.default,"core/module":j.default,"core/theme":B.default};function U(Y,O){if(O=(0,A.default)(!0,{container:Y,modules:{clipboard:!0,keyboard:!0,history:!0}},O),!O.theme||O.theme===q.DEFAULTS.theme)O.theme=B.default;else if(O.theme=q.import("themes/"+O.theme),O.theme==null)throw new Error("Invalid theme "+O.theme+". Did you register it?");var T=(0,A.default)(!0,{},O.theme.DEFAULTS);[T,O].forEach(function(X){X.modules=X.modules||{},Object.keys(X.modules).forEach(function(J){X.modules[J]===!0&&(X.modules[J]={})})});var V=Object.keys(T.modules).concat(Object.keys(O.modules)),L=V.reduce(function(X,J){var W=q.import("modules/"+J);return W==null?z.error("Cannot load "+J+" module. Are you sure you registered it?"):X[J]=W.DEFAULTS||{},X},{});return O.modules!=null&&O.modules.toolbar&&O.modules.toolbar.constructor!==Object&&(O.modules.toolbar={container:O.modules.toolbar}),O=(0,A.default)(!0,{},q.DEFAULTS,{modules:L},T,O),["bounds","container","scrollingContainer"].forEach(function(X){typeof O[X]=="string"&&(O[X]=document.querySelector(O[X]))}),O.modules=Object.keys(O.modules).reduce(function(X,J){return O.modules[J]&&(X[J]=O.modules[J]),X},{}),O}function Q(Y,O,T,V){if(this.options.strict&&!this.isEnabled()&&O===g.default.sources.USER)return new h.default;var L=T==null?null:this.getSelection(),X=this.editor.delta,J=Y();if(L!=null&&(T===!0&&(T=L.index),V==null?L=K(L,J,O):V!==0&&(L=K(L,T,V,O)),this.setSelection(L,g.default.sources.SILENT)),J.length()>0){var W,G=[g.default.events.TEXT_CHANGE,J,X,O];if((W=this.emitter).emit.apply(W,[g.default.events.EDITOR_CHANGE].concat(G)),O!==g.default.sources.SILENT){var ee;(ee=this.emitter).emit.apply(ee,G)}}return J}function H(Y,O,T,V,L){var X={};return typeof Y.index=="number"&&typeof Y.length=="number"?typeof O!="number"?(L=V,V=T,T=O,O=Y.length,Y=Y.index):(O=Y.length,Y=Y.index):typeof O!="number"&&(L=V,V=T,T=O,O=0),(typeof T>"u"?"undefined":a(T))==="object"?(X=T,L=V):typeof T=="string"&&(V!=null?X[T]=V:L=T),L=L||g.default.sources.API,[Y,O,X,L]}function K(Y,O,T,V){if(Y==null)return null;var L=void 0,X=void 0;if(O instanceof h.default){var J=[Y.index,Y.index+Y.length].map(function(ne){return O.transformPosition(ne,V!==g.default.sources.USER)}),W=o(J,2);L=W[0],X=W[1]}else{var G=[Y.index,Y.index+Y.length].map(function(ne){return ne<O||ne===O&&V===g.default.sources.USER?ne:T>=0?ne+T:Math.max(O,ne+T)}),ee=o(G,2);L=ee[0],X=ee[1]}return new N.Range(L,X-L)}i.expandConfig=U,i.overload=H,i.default=q}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function y(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&y(x.prototype,N),w&&y(x,w),x}})(),o=function y(x,N,w){x===null&&(x=Function.prototype);var k=Object.getOwnPropertyDescriptor(x,N);if(k===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:y(A,N,w)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(w)}},c=s(7),d=m(c),h=s(0),f=m(h);function m(y){return y&&y.__esModule?y:{default:y}}function p(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}function g(y,x){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:y}function b(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}var j=(function(y){b(x,y);function x(){return p(this,x),g(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"formatAt",value:function(w,k,A,S){if(x.compare(this.statics.blotName,A)<0&&f.default.query(A,f.default.Scope.BLOT)){var E=this.isolate(w,k);S&&E.wrap(A,S)}else o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",this).call(this,w,k,A,S)}},{key:"optimize",value:function(w){if(o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,w),this.parent instanceof x&&x.compare(this.statics.blotName,this.parent.statics.blotName)>0){var k=this.parent.isolate(this.offset(),this.length());this.moveChildren(k),k.wrap(this)}}}],[{key:"compare",value:function(w,k){var A=x.order.indexOf(w),S=x.order.indexOf(k);return A>=0||S>=0?A-S:w===k?0:w<k?-1:1}}]),x})(f.default.Inline);j.allowedChildren=[j,f.default.Embed,d.default],j.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],i.default=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(0),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){f(g,p);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default.Text);i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function N(w,k){for(var A=0;A<k.length;A++){var S=k[A];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(w,S.key,S)}}return function(w,k,A){return k&&N(w.prototype,k),A&&N(w,A),w}})(),o=function N(w,k,A){w===null&&(w=Function.prototype);var S=Object.getOwnPropertyDescriptor(w,k);if(S===void 0){var E=Object.getPrototypeOf(w);return E===null?void 0:N(E,k,A)}else{if("value"in S)return S.value;var C=S.get;return C===void 0?void 0:C.call(A)}},c=s(54),d=m(c),h=s(10),f=m(h);function m(N){return N&&N.__esModule?N:{default:N}}function p(N,w){if(!(N instanceof w))throw new TypeError("Cannot call a class as a function")}function g(N,w){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:N}function b(N,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);N.prototype=Object.create(w&&w.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(N,w):N.__proto__=w)}var j=(0,f.default)("quill:events"),y=["selectionchange","mousedown","mouseup","click"];y.forEach(function(N){document.addEventListener(N,function(){for(var w=arguments.length,k=Array(w),A=0;A<w;A++)k[A]=arguments[A];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var E;(E=S.__quill.emitter).handleDOM.apply(E,k)}})})});var x=(function(N){b(w,N);function w(){p(this,w);var k=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));return k.listeners={},k.on("error",j.error),k}return a(w,[{key:"emit",value:function(){j.log.apply(j,arguments),o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(A){for(var S=arguments.length,E=Array(S>1?S-1:0),C=1;C<S;C++)E[C-1]=arguments[C];(this.listeners[A.type]||[]).forEach(function(B){var D=B.node,F=B.handler;(A.target===D||D.contains(A.target))&&F.apply(void 0,[A].concat(E))})}},{key:"listenDOM",value:function(A,S,E){this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push({node:S,handler:E})}}]),w})(d.default);x.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},x.sources={API:"api",SILENT:"silent",USER:"user"},i.default=x}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var o=function c(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(this,c),this.quill=d,this.options=h};o.DEFAULTS={},i.default=o}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=["error","warn","log","info"],o="warn";function c(h){if(a.indexOf(h)<=a.indexOf(o)){for(var f,m=arguments.length,p=Array(m>1?m-1:0),g=1;g<m;g++)p[g-1]=arguments[g];(f=console)[h].apply(f,p)}}function d(h){return a.reduce(function(f,m){return f[m]=c.bind(console,m,h),f},{})}c.level=d.level=function(h){o=h},i.default=d}),(function(r,i,s){var a=Array.prototype.slice,o=s(52),c=s(53),d=r.exports=function(p,g,b){return b||(b={}),p===g?!0:p instanceof Date&&g instanceof Date?p.getTime()===g.getTime():!p||!g||typeof p!="object"&&typeof g!="object"?b.strict?p===g:p==g:m(p,g,b)};function h(p){return p==null}function f(p){return!(!p||typeof p!="object"||typeof p.length!="number"||typeof p.copy!="function"||typeof p.slice!="function"||p.length>0&&typeof p[0]!="number")}function m(p,g,b){var j,y;if(h(p)||h(g)||p.prototype!==g.prototype)return!1;if(c(p))return c(g)?(p=a.call(p),g=a.call(g),d(p,g,b)):!1;if(f(p)){if(!f(g)||p.length!==g.length)return!1;for(j=0;j<p.length;j++)if(p[j]!==g[j])return!1;return!0}try{var x=o(p),N=o(g)}catch{return!1}if(x.length!=N.length)return!1;for(x.sort(),N.sort(),j=x.length-1;j>=0;j--)if(x[j]!=N[j])return!1;for(j=x.length-1;j>=0;j--)if(y=x[j],!d(p[y],g[y],b))return!1;return typeof p==typeof g}}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(1),o=(function(){function c(d,h,f){f===void 0&&(f={}),this.attrName=d,this.keyName=h;var m=a.Scope.TYPE&a.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&a.Scope.LEVEL|m:this.scope=a.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return c.keys=function(d){return[].map.call(d.attributes,function(h){return h.name})},c.prototype.add=function(d,h){return this.canAdd(d,h)?(d.setAttribute(this.keyName,h),!0):!1},c.prototype.canAdd=function(d,h){var f=a.query(d,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return f==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},c.prototype.remove=function(d){d.removeAttribute(this.keyName)},c.prototype.value=function(d){var h=d.getAttribute(this.keyName);return this.canAdd(d,h)&&h?h:""},c})();i.default=o}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Code=void 0;var a=(function(){function C(B,D){var F=[],R=!0,z=!1,q=void 0;try{for(var U=B[Symbol.iterator](),Q;!(R=(Q=U.next()).done)&&(F.push(Q.value),!(D&&F.length===D));R=!0);}catch(H){z=!0,q=H}finally{try{!R&&U.return&&U.return()}finally{if(z)throw q}}return F}return function(B,D){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return C(B,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function C(B,D){for(var F=0;F<D.length;F++){var R=D[F];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(B,R.key,R)}}return function(B,D,F){return D&&C(B.prototype,D),F&&C(B,F),B}})(),c=function C(B,D,F){B===null&&(B=Function.prototype);var R=Object.getOwnPropertyDescriptor(B,D);if(R===void 0){var z=Object.getPrototypeOf(B);return z===null?void 0:C(z,D,F)}else{if("value"in R)return R.value;var q=R.get;return q===void 0?void 0:q.call(F)}},d=s(2),h=N(d),f=s(0),m=N(f),p=s(4),g=N(p),b=s(6),j=N(b),y=s(7),x=N(y);function N(C){return C&&C.__esModule?C:{default:C}}function w(C,B){if(!(C instanceof B))throw new TypeError("Cannot call a class as a function")}function k(C,B){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:C}function A(C,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);C.prototype=Object.create(B&&B.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(C,B):C.__proto__=B)}var S=(function(C){A(B,C);function B(){return w(this,B),k(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return B})(j.default);S.blotName="code",S.tagName="CODE";var E=(function(C){A(B,C);function B(){return w(this,B),k(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return o(B,[{key:"delta",value:function(){var F=this,R=this.domNode.textContent;return R.endsWith(`
`)&&(R=R.slice(0,-1)),R.split(`
`).reduce(function(z,q){return z.insert(q).insert(`
`,F.formats())},new h.default)}},{key:"format",value:function(F,R){if(!(F===this.statics.blotName&&R)){var z=this.descendant(x.default,this.length()-1),q=a(z,1),U=q[0];U!=null&&U.deleteAt(U.length()-1,1),c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"format",this).call(this,F,R)}}},{key:"formatAt",value:function(F,R,z,q){if(R!==0&&!(m.default.query(z,m.default.Scope.BLOCK)==null||z===this.statics.blotName&&q===this.statics.formats(this.domNode))){var U=this.newlineIndex(F);if(!(U<0||U>=F+R)){var Q=this.newlineIndex(F,!0)+1,H=U-Q+1,K=this.isolate(Q,H),Y=K.next;K.format(z,q),Y instanceof B&&Y.formatAt(0,F-Q+R-H,z,q)}}}},{key:"insertAt",value:function(F,R,z){if(z==null){var q=this.descendant(x.default,F),U=a(q,2),Q=U[0],H=U[1];Q.insertAt(H,R)}}},{key:"length",value:function(){var F=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?F:F+1}},{key:"newlineIndex",value:function(F){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R)return this.domNode.textContent.slice(0,F).lastIndexOf(`
`);var z=this.domNode.textContent.slice(F).indexOf(`
`);return z>-1?F+z:-1}},{key:"optimize",value:function(F){this.domNode.textContent.endsWith(`
`)||this.appendChild(m.default.create("text",`
`)),c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"optimize",this).call(this,F);var R=this.next;R!=null&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(F),R.moveChildren(this),R.remove())}},{key:"replace",value:function(F){c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"replace",this).call(this,F),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(R){var z=m.default.find(R);z==null?R.parentNode.removeChild(R):z instanceof m.default.Embed?z.remove():z.unwrap()})}}],[{key:"create",value:function(F){var R=c(B.__proto__||Object.getPrototypeOf(B),"create",this).call(this,F);return R.setAttribute("spellcheck",!1),R}},{key:"formats",value:function(){return!0}}]),B})(g.default);E.blotName="code-block",E.tagName="PRE",E.TAB="  ",i.Code=S,i.default=E}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},o=(function(){function Y(O,T){var V=[],L=!0,X=!1,J=void 0;try{for(var W=O[Symbol.iterator](),G;!(L=(G=W.next()).done)&&(V.push(G.value),!(T&&V.length===T));L=!0);}catch(ee){X=!0,J=ee}finally{try{!L&&W.return&&W.return()}finally{if(X)throw J}}return V}return function(O,T){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return Y(O,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function Y(O,T){for(var V=0;V<T.length;V++){var L=T[V];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(O,L.key,L)}}return function(O,T,V){return T&&Y(O.prototype,T),V&&Y(O,V),O}})(),d=s(2),h=R(d),f=s(20),m=R(f),p=s(0),g=R(p),b=s(13),j=R(b),y=s(24),x=R(y),N=s(4),w=R(N),k=s(16),A=R(k),S=s(21),E=R(S),C=s(11),B=R(C),D=s(3),F=R(D);function R(Y){return Y&&Y.__esModule?Y:{default:Y}}function z(Y,O,T){return O in Y?Object.defineProperty(Y,O,{value:T,enumerable:!0,configurable:!0,writable:!0}):Y[O]=T,Y}function q(Y,O){if(!(Y instanceof O))throw new TypeError("Cannot call a class as a function")}var U=/^[ -~]*$/,Q=(function(){function Y(O){q(this,Y),this.scroll=O,this.delta=this.getDelta()}return c(Y,[{key:"applyDelta",value:function(T){var V=this,L=!1;this.scroll.update();var X=this.scroll.length();return this.scroll.batchStart(),T=K(T),T.reduce(function(J,W){var G=W.retain||W.delete||W.insert.length||1,ee=W.attributes||{};if(W.insert!=null){if(typeof W.insert=="string"){var ne=W.insert;ne.endsWith(`
`)&&L&&(L=!1,ne=ne.slice(0,-1)),J>=X&&!ne.endsWith(`
`)&&(L=!0),V.scroll.insertAt(J,ne);var le=V.scroll.line(J),ye=o(le,2),be=ye[0],Pe=ye[1],Te=(0,F.default)({},(0,N.bubbleFormats)(be));if(be instanceof w.default){var We=be.descendant(g.default.Leaf,Pe),ut=o(We,1),nt=ut[0];Te=(0,F.default)(Te,(0,N.bubbleFormats)(nt))}ee=m.default.attributes.diff(Te,ee)||{}}else if(a(W.insert)==="object"){var ge=Object.keys(W.insert)[0];if(ge==null)return J;V.scroll.insertAt(J,ge,W.insert[ge])}X+=G}return Object.keys(ee).forEach(function(ve){V.scroll.formatAt(J,G,ve,ee[ve])}),J+G},0),T.reduce(function(J,W){return typeof W.delete=="number"?(V.scroll.deleteAt(J,W.delete),J):J+(W.retain||W.insert.length||1)},0),this.scroll.batchEnd(),this.update(T)}},{key:"deleteText",value:function(T,V){return this.scroll.deleteAt(T,V),this.update(new h.default().retain(T).delete(V))}},{key:"formatLine",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(X).forEach(function(J){if(!(L.scroll.whitelist!=null&&!L.scroll.whitelist[J])){var W=L.scroll.lines(T,Math.max(V,1)),G=V;W.forEach(function(ee){var ne=ee.length();if(!(ee instanceof j.default))ee.format(J,X[J]);else{var le=T-ee.offset(L.scroll),ye=ee.newlineIndex(le+G)-le+1;ee.formatAt(le,ye,J,X[J])}G-=ne})}}),this.scroll.optimize(),this.update(new h.default().retain(T).retain(V,(0,E.default)(X)))}},{key:"formatText",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(X).forEach(function(J){L.scroll.formatAt(T,V,J,X[J])}),this.update(new h.default().retain(T).retain(V,(0,E.default)(X)))}},{key:"getContents",value:function(T,V){return this.delta.slice(T,T+V)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(T,V){return T.concat(V.delta())},new h.default)}},{key:"getFormat",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=[],X=[];V===0?this.scroll.path(T).forEach(function(W){var G=o(W,1),ee=G[0];ee instanceof w.default?L.push(ee):ee instanceof g.default.Leaf&&X.push(ee)}):(L=this.scroll.lines(T,V),X=this.scroll.descendants(g.default.Leaf,T,V));var J=[L,X].map(function(W){if(W.length===0)return{};for(var G=(0,N.bubbleFormats)(W.shift());Object.keys(G).length>0;){var ee=W.shift();if(ee==null)return G;G=H((0,N.bubbleFormats)(ee),G)}return G});return F.default.apply(F.default,J)}},{key:"getText",value:function(T,V){return this.getContents(T,V).filter(function(L){return typeof L.insert=="string"}).map(function(L){return L.insert}).join("")}},{key:"insertEmbed",value:function(T,V,L){return this.scroll.insertAt(T,V,L),this.update(new h.default().retain(T).insert(z({},V,L)))}},{key:"insertText",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V=V.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(T,V),Object.keys(X).forEach(function(J){L.scroll.formatAt(T,V.length,J,X[J])}),this.update(new h.default().retain(T).insert(V,(0,E.default)(X)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var T=this.scroll.children.head;return T.statics.blotName!==w.default.blotName||T.children.length>1?!1:T.children.head instanceof A.default}},{key:"removeFormat",value:function(T,V){var L=this.getText(T,V),X=this.scroll.line(T+V),J=o(X,2),W=J[0],G=J[1],ee=0,ne=new h.default;W!=null&&(W instanceof j.default?ee=W.newlineIndex(G)-G+1:ee=W.length()-G,ne=W.delta().slice(G,G+ee-1).insert(`
`));var le=this.getContents(T,V+ee),ye=le.diff(new h.default().insert(L).concat(ne)),be=new h.default().retain(T).concat(ye);return this.applyDelta(be)}},{key:"update",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,X=this.delta;if(V.length===1&&V[0].type==="characterData"&&V[0].target.data.match(U)&&g.default.find(V[0].target)){var J=g.default.find(V[0].target),W=(0,N.bubbleFormats)(J),G=J.offset(this.scroll),ee=V[0].oldValue.replace(x.default.CONTENTS,""),ne=new h.default().insert(ee),le=new h.default().insert(J.value()),ye=new h.default().retain(G).concat(ne.diff(le,L));T=ye.reduce(function(be,Pe){return Pe.insert?be.insert(Pe.insert,W):be.push(Pe)},new h.default),this.delta=X.compose(T)}else this.delta=this.getDelta(),(!T||!(0,B.default)(X.compose(T),this.delta))&&(T=X.diff(this.delta,L));return T}}]),Y})();function H(Y,O){return Object.keys(O).reduce(function(T,V){return Y[V]==null||(O[V]===Y[V]?T[V]=O[V]:Array.isArray(O[V])?O[V].indexOf(Y[V])<0&&(T[V]=O[V].concat([Y[V]])):T[V]=[O[V],Y[V]]),T},{})}function K(Y){return Y.reduce(function(O,T){if(T.insert===1){var V=(0,E.default)(T.attributes);return delete V.image,O.insert({image:T.attributes.image},V)}if(T.attributes!=null&&(T.attributes.list===!0||T.attributes.bullet===!0)&&(T=(0,E.default)(T),T.attributes.list?T.attributes.list="ordered":(T.attributes.list="bullet",delete T.attributes.bullet)),typeof T.insert=="string"){var L=T.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return O.insert(L,T.attributes)}return O.push(T)},new h.default)}i.default=Q}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Range=void 0;var a=(function(){function C(B,D){var F=[],R=!0,z=!1,q=void 0;try{for(var U=B[Symbol.iterator](),Q;!(R=(Q=U.next()).done)&&(F.push(Q.value),!(D&&F.length===D));R=!0);}catch(H){z=!0,q=H}finally{try{!R&&U.return&&U.return()}finally{if(z)throw q}}return F}return function(B,D){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return C(B,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function C(B,D){for(var F=0;F<D.length;F++){var R=D[F];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(B,R.key,R)}}return function(B,D,F){return D&&C(B.prototype,D),F&&C(B,F),B}})(),c=s(0),d=x(c),h=s(21),f=x(h),m=s(11),p=x(m),g=s(8),b=x(g),j=s(10),y=x(j);function x(C){return C&&C.__esModule?C:{default:C}}function N(C){if(Array.isArray(C)){for(var B=0,D=Array(C.length);B<C.length;B++)D[B]=C[B];return D}else return Array.from(C)}function w(C,B){if(!(C instanceof B))throw new TypeError("Cannot call a class as a function")}var k=(0,y.default)("quill:selection"),A=function C(B){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;w(this,C),this.index=B,this.length=D},S=(function(){function C(B,D){var F=this;w(this,C),this.emitter=D,this.scroll=B,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=d.default.create("cursor",this),this.lastRange=this.savedRange=new A(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){F.mouseDown||setTimeout(F.update.bind(F,b.default.sources.USER),1)}),this.emitter.on(b.default.events.EDITOR_CHANGE,function(R,z){R===b.default.events.TEXT_CHANGE&&z.length()>0&&F.update(b.default.sources.SILENT)}),this.emitter.on(b.default.events.SCROLL_BEFORE_UPDATE,function(){if(F.hasFocus()){var R=F.getNativeRange();R!=null&&R.start.node!==F.cursor.textNode&&F.emitter.once(b.default.events.SCROLL_UPDATE,function(){try{F.setNativeRange(R.start.node,R.start.offset,R.end.node,R.end.offset)}catch{}})}}),this.emitter.on(b.default.events.SCROLL_OPTIMIZE,function(R,z){if(z.range){var q=z.range,U=q.startNode,Q=q.startOffset,H=q.endNode,K=q.endOffset;F.setNativeRange(U,Q,H,K)}}),this.update(b.default.sources.SILENT)}return o(C,[{key:"handleComposition",value:function(){var D=this;this.root.addEventListener("compositionstart",function(){D.composing=!0}),this.root.addEventListener("compositionend",function(){if(D.composing=!1,D.cursor.parent){var F=D.cursor.restore();if(!F)return;setTimeout(function(){D.setNativeRange(F.startNode,F.startOffset,F.endNode,F.endOffset)},1)}})}},{key:"handleDragging",value:function(){var D=this;this.emitter.listenDOM("mousedown",document.body,function(){D.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){D.mouseDown=!1,D.update(b.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(D,F){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[D])){this.scroll.update();var R=this.getNativeRange();if(!(R==null||!R.native.collapsed||d.default.query(D,d.default.Scope.BLOCK))){if(R.start.node!==this.cursor.textNode){var z=d.default.find(R.start.node,!1);if(z==null)return;if(z instanceof d.default.Leaf){var q=z.split(R.start.offset);z.parent.insertBefore(this.cursor,q)}else z.insertBefore(this.cursor,R.start.node);this.cursor.attach()}this.cursor.format(D,F),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(D){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=this.scroll.length();D=Math.min(D,R-1),F=Math.min(D+F,R-1)-D;var z=void 0,q=this.scroll.leaf(D),U=a(q,2),Q=U[0],H=U[1];if(Q==null)return null;var K=Q.position(H,!0),Y=a(K,2);z=Y[0],H=Y[1];var O=document.createRange();if(F>0){O.setStart(z,H);var T=this.scroll.leaf(D+F),V=a(T,2);if(Q=V[0],H=V[1],Q==null)return null;var L=Q.position(H,!0),X=a(L,2);return z=X[0],H=X[1],O.setEnd(z,H),O.getBoundingClientRect()}else{var J="left",W=void 0;return z instanceof Text?(H<z.data.length?(O.setStart(z,H),O.setEnd(z,H+1)):(O.setStart(z,H-1),O.setEnd(z,H),J="right"),W=O.getBoundingClientRect()):(W=Q.domNode.getBoundingClientRect(),H>0&&(J="right")),{bottom:W.top+W.height,height:W.height,left:W[J],right:W[J],top:W.top,width:0}}}},{key:"getNativeRange",value:function(){var D=document.getSelection();if(D==null||D.rangeCount<=0)return null;var F=D.getRangeAt(0);if(F==null)return null;var R=this.normalizeNative(F);return k.info("getNativeRange",R),R}},{key:"getRange",value:function(){var D=this.getNativeRange();if(D==null)return[null,null];var F=this.normalizedToRange(D);return[F,D]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(D){var F=this,R=[[D.start.node,D.start.offset]];D.native.collapsed||R.push([D.end.node,D.end.offset]);var z=R.map(function(Q){var H=a(Q,2),K=H[0],Y=H[1],O=d.default.find(K,!0),T=O.offset(F.scroll);return Y===0?T:O instanceof d.default.Container?T+O.length():T+O.index(K,Y)}),q=Math.min(Math.max.apply(Math,N(z)),this.scroll.length()-1),U=Math.min.apply(Math,[q].concat(N(z)));return new A(U,q-U)}},{key:"normalizeNative",value:function(D){if(!E(this.root,D.startContainer)||!D.collapsed&&!E(this.root,D.endContainer))return null;var F={start:{node:D.startContainer,offset:D.startOffset},end:{node:D.endContainer,offset:D.endOffset},native:D};return[F.start,F.end].forEach(function(R){for(var z=R.node,q=R.offset;!(z instanceof Text)&&z.childNodes.length>0;)if(z.childNodes.length>q)z=z.childNodes[q],q=0;else if(z.childNodes.length===q)z=z.lastChild,q=z instanceof Text?z.data.length:z.childNodes.length+1;else break;R.node=z,R.offset=q}),F}},{key:"rangeToNative",value:function(D){var F=this,R=D.collapsed?[D.index]:[D.index,D.index+D.length],z=[],q=this.scroll.length();return R.forEach(function(U,Q){U=Math.min(q-1,U);var H=void 0,K=F.scroll.leaf(U),Y=a(K,2),O=Y[0],T=Y[1],V=O.position(T,Q!==0),L=a(V,2);H=L[0],T=L[1],z.push(H,T)}),z.length<2&&(z=z.concat(z)),z}},{key:"scrollIntoView",value:function(D){var F=this.lastRange;if(F!=null){var R=this.getBounds(F.index,F.length);if(R!=null){var z=this.scroll.length()-1,q=this.scroll.line(Math.min(F.index,z)),U=a(q,1),Q=U[0],H=Q;if(F.length>0){var K=this.scroll.line(Math.min(F.index+F.length,z)),Y=a(K,1);H=Y[0]}if(!(Q==null||H==null)){var O=D.getBoundingClientRect();R.top<O.top?D.scrollTop-=O.top-R.top:R.bottom>O.bottom&&(D.scrollTop+=R.bottom-O.bottom)}}}}},{key:"setNativeRange",value:function(D,F){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:D,z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:F,q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(k.info("setNativeRange",D,F,R,z),!(D!=null&&(this.root.parentNode==null||D.parentNode==null||R.parentNode==null))){var U=document.getSelection();if(U!=null)if(D!=null){this.hasFocus()||this.root.focus();var Q=(this.getNativeRange()||{}).native;if(Q==null||q||D!==Q.startContainer||F!==Q.startOffset||R!==Q.endContainer||z!==Q.endOffset){D.tagName=="BR"&&(F=[].indexOf.call(D.parentNode.childNodes,D),D=D.parentNode),R.tagName=="BR"&&(z=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode);var H=document.createRange();H.setStart(D,F),H.setEnd(R,z),U.removeAllRanges(),U.addRange(H)}}else U.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(D){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b.default.sources.API;if(typeof F=="string"&&(R=F,F=!1),k.info("setRange",D),D!=null){var z=this.rangeToNative(D);this.setNativeRange.apply(this,N(z).concat([F]))}else this.setNativeRange(null);this.update(R)}},{key:"update",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b.default.sources.USER,F=this.lastRange,R=this.getRange(),z=a(R,2),q=z[0],U=z[1];if(this.lastRange=q,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,p.default)(F,this.lastRange)){var Q;!this.composing&&U!=null&&U.native.collapsed&&U.start.node!==this.cursor.textNode&&this.cursor.restore();var H=[b.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(F),D];if((Q=this.emitter).emit.apply(Q,[b.default.events.EDITOR_CHANGE].concat(H)),D!==b.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,H)}}}}]),C})();function E(C,B){try{B.parentNode}catch{return!1}return B instanceof Text&&(B=B.parentNode),C.contains(B)}i.Range=A,i.default=S}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(j,y){for(var x=0;x<y.length;x++){var N=y[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,y,x){return y&&b(j.prototype,y),x&&b(j,x),j}})(),o=function b(j,y,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,y);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,y,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(0),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function f(b,j){if(!(b instanceof j))throw new TypeError("Cannot call a class as a function")}function m(b,j){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:b}function p(b,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);b.prototype=Object.create(j&&j.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(b,j):b.__proto__=j)}var g=(function(b){p(j,b);function j(){return f(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return a(j,[{key:"insertInto",value:function(x,N){x.children.length===0?o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"insertInto",this).call(this,x,N):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),j})(d.default.Embed);g.blotName="break",g.tagName="BR",i.default=g}),(function(r,i,s){var a=this&&this.__extends||(function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var b in g)g.hasOwnProperty(b)&&(p[b]=g[b])};return function(p,g){m(p,g);function b(){this.constructor=p}p.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(44),c=s(30),d=s(1),h=(function(m){a(p,m);function p(g){var b=m.call(this,g)||this;return b.build(),b}return p.prototype.appendChild=function(g){this.insertBefore(g)},p.prototype.attach=function(){m.prototype.attach.call(this),this.children.forEach(function(g){g.attach()})},p.prototype.build=function(){var g=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(b){try{var j=f(b);g.insertBefore(j,g.children.head||void 0)}catch(y){if(y instanceof d.ParchmentError)return;throw y}})},p.prototype.deleteAt=function(g,b){if(g===0&&b===this.length())return this.remove();this.children.forEachAt(g,b,function(j,y,x){j.deleteAt(y,x)})},p.prototype.descendant=function(g,b){var j=this.children.find(b),y=j[0],x=j[1];return g.blotName==null&&g(y)||g.blotName!=null&&y instanceof g?[y,x]:y instanceof p?y.descendant(g,x):[null,-1]},p.prototype.descendants=function(g,b,j){b===void 0&&(b=0),j===void 0&&(j=Number.MAX_VALUE);var y=[],x=j;return this.children.forEachAt(b,j,function(N,w,k){(g.blotName==null&&g(N)||g.blotName!=null&&N instanceof g)&&y.push(N),N instanceof p&&(y=y.concat(N.descendants(g,w,x))),x-=k}),y},p.prototype.detach=function(){this.children.forEach(function(g){g.detach()}),m.prototype.detach.call(this)},p.prototype.formatAt=function(g,b,j,y){this.children.forEachAt(g,b,function(x,N,w){x.formatAt(N,w,j,y)})},p.prototype.insertAt=function(g,b,j){var y=this.children.find(g),x=y[0],N=y[1];if(x)x.insertAt(N,b,j);else{var w=j==null?d.create("text",b):d.create(b,j);this.appendChild(w)}},p.prototype.insertBefore=function(g,b){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(j){return g instanceof j}))throw new d.ParchmentError("Cannot insert "+g.statics.blotName+" into "+this.statics.blotName);g.insertInto(this,b)},p.prototype.length=function(){return this.children.reduce(function(g,b){return g+b.length()},0)},p.prototype.moveChildren=function(g,b){this.children.forEach(function(j){g.insertBefore(j,b)})},p.prototype.optimize=function(g){if(m.prototype.optimize.call(this,g),this.children.length===0)if(this.statics.defaultChild!=null){var b=d.create(this.statics.defaultChild);this.appendChild(b),b.optimize(g)}else this.remove()},p.prototype.path=function(g,b){b===void 0&&(b=!1);var j=this.children.find(g,b),y=j[0],x=j[1],N=[[this,g]];return y instanceof p?N.concat(y.path(x,b)):(y!=null&&N.push([y,x]),N)},p.prototype.removeChild=function(g){this.children.remove(g)},p.prototype.replace=function(g){g instanceof p&&g.moveChildren(this),m.prototype.replace.call(this,g)},p.prototype.split=function(g,b){if(b===void 0&&(b=!1),!b){if(g===0)return this;if(g===this.length())return this.next}var j=this.clone();return this.parent.insertBefore(j,this.next),this.children.forEachAt(g,this.length(),function(y,x,N){y=y.split(x,b),j.appendChild(y)}),j},p.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},p.prototype.update=function(g,b){var j=this,y=[],x=[];g.forEach(function(N){N.target===j.domNode&&N.type==="childList"&&(y.push.apply(y,N.addedNodes),x.push.apply(x,N.removedNodes))}),x.forEach(function(N){if(!(N.parentNode!=null&&N.tagName!=="IFRAME"&&document.body.compareDocumentPosition(N)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var w=d.find(N);w!=null&&(w.domNode.parentNode==null||w.domNode.parentNode===j.domNode)&&w.detach()}}),y.filter(function(N){return N.parentNode==j.domNode}).sort(function(N,w){return N===w?0:N.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(N){var w=null;N.nextSibling!=null&&(w=d.find(N.nextSibling));var k=f(N);(k.next!=w||k.next==null)&&(k.parent!=null&&k.parent.removeChild(j),j.insertBefore(k,w||void 0))})},p})(c.default);function f(m){var p=d.find(m);if(p==null)try{p=d.create(m)}catch{p=d.create(d.Scope.INLINE),[].slice.call(m.childNodes).forEach(function(b){p.domNode.appendChild(b)}),m.parentNode&&m.parentNode.replaceChild(p.domNode,m),p.attach()}return p}i.default=h}),(function(r,i,s){var a=this&&this.__extends||(function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var b in g)g.hasOwnProperty(b)&&(p[b]=g[b])};return function(p,g){m(p,g);function b(){this.constructor=p}p.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(12),c=s(31),d=s(17),h=s(1),f=(function(m){a(p,m);function p(g){var b=m.call(this,g)||this;return b.attributes=new c.default(b.domNode),b}return p.formats=function(g){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return g.tagName.toLowerCase()},p.prototype.format=function(g,b){var j=h.query(g);j instanceof o.default?this.attributes.attribute(j,b):b&&j!=null&&(g!==this.statics.blotName||this.formats()[g]!==b)&&this.replaceWith(g,b)},p.prototype.formats=function(){var g=this.attributes.values(),b=this.statics.formats(this.domNode);return b!=null&&(g[this.statics.blotName]=b),g},p.prototype.replaceWith=function(g,b){var j=m.prototype.replaceWith.call(this,g,b);return this.attributes.copy(j),j},p.prototype.update=function(g,b){var j=this;m.prototype.update.call(this,g,b),g.some(function(y){return y.target===j.domNode&&y.type==="attributes"})&&this.attributes.build()},p.prototype.wrap=function(g,b){var j=m.prototype.wrap.call(this,g,b);return j instanceof p&&j.statics.scope===this.statics.scope&&this.attributes.move(j),j},p})(d.default);i.default=f}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(30),c=s(1),d=(function(h){a(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.value=function(m){return!0},f.prototype.index=function(m,p){return this.domNode===m||this.domNode.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(p,1):-1},f.prototype.position=function(m,p){var g=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return m>0&&(g+=1),[this.parent.domNode,g]},f.prototype.value=function(){var m;return m={},m[this.statics.blotName]=this.statics.value(this.domNode)||!0,m},f.scope=c.Scope.INLINE_BLOT,f})(o.default);i.default=d}),(function(r,i,s){var a=s(11),o=s(3),c={attributes:{compose:function(h,f,m){typeof h!="object"&&(h={}),typeof f!="object"&&(f={});var p=o(!0,{},f);m||(p=Object.keys(p).reduce(function(b,j){return p[j]!=null&&(b[j]=p[j]),b},{}));for(var g in h)h[g]!==void 0&&f[g]===void 0&&(p[g]=h[g]);return Object.keys(p).length>0?p:void 0},diff:function(h,f){typeof h!="object"&&(h={}),typeof f!="object"&&(f={});var m=Object.keys(h).concat(Object.keys(f)).reduce(function(p,g){return a(h[g],f[g])||(p[g]=f[g]===void 0?null:f[g]),p},{});return Object.keys(m).length>0?m:void 0},transform:function(h,f,m){if(typeof h!="object")return f;if(typeof f=="object"){if(!m)return f;var p=Object.keys(f).reduce(function(g,b){return h[b]===void 0&&(g[b]=f[b]),g},{});return Object.keys(p).length>0?p:void 0}}},iterator:function(h){return new d(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function d(h){this.ops=h,this.index=0,this.offset=0}d.prototype.hasNext=function(){return this.peekLength()<1/0},d.prototype.next=function(h){h||(h=1/0);var f=this.ops[this.index];if(f){var m=this.offset,p=c.length(f);if(h>=p-m?(h=p-m,this.index+=1,this.offset=0):this.offset+=h,typeof f.delete=="number")return{delete:h};var g={};return f.attributes&&(g.attributes=f.attributes),typeof f.retain=="number"?g.retain=h:typeof f.insert=="string"?g.insert=f.insert.substr(m,h):g.insert=f.insert,g}else return{retain:1/0}},d.prototype.peek=function(){return this.ops[this.index]},d.prototype.peekLength=function(){return this.ops[this.index]?c.length(this.ops[this.index])-this.offset:1/0},d.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},d.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,f=this.index,m=this.next(),p=this.ops.slice(this.index);return this.offset=h,this.index=f,[m].concat(p)}else return[]},r.exports=c}),(function(r,i){var s=(function(){function a(j,y){return y!=null&&j instanceof y}var o;try{o=Map}catch{o=function(){}}var c;try{c=Set}catch{c=function(){}}var d;try{d=Promise}catch{d=function(){}}function h(j,y,x,N,w){typeof y=="object"&&(x=y.depth,N=y.prototype,w=y.includeNonEnumerable,y=y.circular);var k=[],A=[],S=typeof Buffer<"u";typeof y>"u"&&(y=!0),typeof x>"u"&&(x=1/0);function E(C,B){if(C===null)return null;if(B===0)return C;var D,F;if(typeof C!="object")return C;if(a(C,o))D=new o;else if(a(C,c))D=new c;else if(a(C,d))D=new d(function(O,T){C.then(function(V){O(E(V,B-1))},function(V){T(E(V,B-1))})});else if(h.__isArray(C))D=[];else if(h.__isRegExp(C))D=new RegExp(C.source,b(C)),C.lastIndex&&(D.lastIndex=C.lastIndex);else if(h.__isDate(C))D=new Date(C.getTime());else{if(S&&Buffer.isBuffer(C))return Buffer.allocUnsafe?D=Buffer.allocUnsafe(C.length):D=new Buffer(C.length),C.copy(D),D;a(C,Error)?D=Object.create(C):typeof N>"u"?(F=Object.getPrototypeOf(C),D=Object.create(F)):(D=Object.create(N),F=N)}if(y){var R=k.indexOf(C);if(R!=-1)return A[R];k.push(C),A.push(D)}a(C,o)&&C.forEach(function(O,T){var V=E(T,B-1),L=E(O,B-1);D.set(V,L)}),a(C,c)&&C.forEach(function(O){var T=E(O,B-1);D.add(T)});for(var z in C){var q;F&&(q=Object.getOwnPropertyDescriptor(F,z)),!(q&&q.set==null)&&(D[z]=E(C[z],B-1))}if(Object.getOwnPropertySymbols)for(var U=Object.getOwnPropertySymbols(C),z=0;z<U.length;z++){var Q=U[z],H=Object.getOwnPropertyDescriptor(C,Q);H&&!H.enumerable&&!w||(D[Q]=E(C[Q],B-1),H.enumerable||Object.defineProperty(D,Q,{enumerable:!1}))}if(w)for(var K=Object.getOwnPropertyNames(C),z=0;z<K.length;z++){var Y=K[z],H=Object.getOwnPropertyDescriptor(C,Y);H&&H.enumerable||(D[Y]=E(C[Y],B-1),Object.defineProperty(D,Y,{enumerable:!1}))}return D}return E(j,x)}h.clonePrototype=function(y){if(y===null)return null;var x=function(){};return x.prototype=y,new x};function f(j){return Object.prototype.toString.call(j)}h.__objToStr=f;function m(j){return typeof j=="object"&&f(j)==="[object Date]"}h.__isDate=m;function p(j){return typeof j=="object"&&f(j)==="[object Array]"}h.__isArray=p;function g(j){return typeof j=="object"&&f(j)==="[object RegExp]"}h.__isRegExp=g;function b(j){var y="";return j.global&&(y+="g"),j.ignoreCase&&(y+="i"),j.multiline&&(y+="m"),y}return h.__getRegExpFlags=b,h})();typeof r=="object"&&r.exports&&(r.exports=s)}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function D(F,R){var z=[],q=!0,U=!1,Q=void 0;try{for(var H=F[Symbol.iterator](),K;!(q=(K=H.next()).done)&&(z.push(K.value),!(R&&z.length===R));q=!0);}catch(Y){U=!0,Q=Y}finally{try{!q&&H.return&&H.return()}finally{if(U)throw Q}}return z}return function(F,R){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return D(F,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function D(F,R){for(var z=0;z<R.length;z++){var q=R[z];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(F,q.key,q)}}return function(F,R,z){return R&&D(F.prototype,R),z&&D(F,z),F}})(),c=function D(F,R,z){F===null&&(F=Function.prototype);var q=Object.getOwnPropertyDescriptor(F,R);if(q===void 0){var U=Object.getPrototypeOf(F);return U===null?void 0:D(U,R,z)}else{if("value"in q)return q.value;var Q=q.get;return Q===void 0?void 0:Q.call(z)}},d=s(0),h=k(d),f=s(8),m=k(f),p=s(4),g=k(p),b=s(16),j=k(b),y=s(13),x=k(y),N=s(25),w=k(N);function k(D){return D&&D.__esModule?D:{default:D}}function A(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")}function S(D,F){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:D}function E(D,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);D.prototype=Object.create(F&&F.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(D,F):D.__proto__=F)}function C(D){return D instanceof g.default||D instanceof p.BlockEmbed}var B=(function(D){E(F,D);function F(R,z){A(this,F);var q=S(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,R));return q.emitter=z.emitter,Array.isArray(z.whitelist)&&(q.whitelist=z.whitelist.reduce(function(U,Q){return U[Q]=!0,U},{})),q.domNode.addEventListener("DOMNodeInserted",function(){}),q.optimize(),q.enable(),q}return o(F,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(z,q){var U=this.line(z),Q=a(U,2),H=Q[0],K=Q[1],Y=this.line(z+q),O=a(Y,1),T=O[0];if(c(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"deleteAt",this).call(this,z,q),T!=null&&H!==T&&K>0){if(H instanceof p.BlockEmbed||T instanceof p.BlockEmbed){this.optimize();return}if(H instanceof x.default){var V=H.newlineIndex(H.length(),!0);if(V>-1&&(H=H.split(V+1),H===T)){this.optimize();return}}else if(T instanceof x.default){var L=T.newlineIndex(0);L>-1&&T.split(L+1)}var X=T.children.head instanceof j.default?null:T.children.head;H.moveChildren(T,X),H.remove()}this.optimize()}},{key:"enable",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",z)}},{key:"formatAt",value:function(z,q,U,Q){this.whitelist!=null&&!this.whitelist[U]||(c(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"formatAt",this).call(this,z,q,U,Q),this.optimize())}},{key:"insertAt",value:function(z,q,U){if(!(U!=null&&this.whitelist!=null&&!this.whitelist[q])){if(z>=this.length())if(U==null||h.default.query(q,h.default.Scope.BLOCK)==null){var Q=h.default.create(this.statics.defaultChild);this.appendChild(Q),U==null&&q.endsWith(`
`)&&(q=q.slice(0,-1)),Q.insertAt(0,q,U)}else{var H=h.default.create(q,U);this.appendChild(H)}else c(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"insertAt",this).call(this,z,q,U);this.optimize()}}},{key:"insertBefore",value:function(z,q){if(z.statics.scope===h.default.Scope.INLINE_BLOT){var U=h.default.create(this.statics.defaultChild);U.appendChild(z),z=U}c(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"insertBefore",this).call(this,z,q)}},{key:"leaf",value:function(z){return this.path(z).pop()||[null,-1]}},{key:"line",value:function(z){return z===this.length()?this.line(z-1):this.descendant(C,z)}},{key:"lines",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,U=function Q(H,K,Y){var O=[],T=Y;return H.children.forEachAt(K,Y,function(V,L,X){C(V)?O.push(V):V instanceof h.default.Container&&(O=O.concat(Q(V,L,T))),T-=X}),O};return U(this,z,q)}},{key:"optimize",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(c(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"optimize",this).call(this,z,q),z.length>0&&this.emitter.emit(m.default.events.SCROLL_OPTIMIZE,z,q))}},{key:"path",value:function(z){return c(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"path",this).call(this,z).slice(1)}},{key:"update",value:function(z){if(this.batch!==!0){var q=m.default.sources.USER;typeof z=="string"&&(q=z),Array.isArray(z)||(z=this.observer.takeRecords()),z.length>0&&this.emitter.emit(m.default.events.SCROLL_BEFORE_UPDATE,q,z),c(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"update",this).call(this,z.concat([])),z.length>0&&this.emitter.emit(m.default.events.SCROLL_UPDATE,q,z)}}}]),F})(h.default.Scroll);B.blotName="scroll",B.className="ql-editor",B.tagName="DIV",B.defaultChild="block",B.allowedChildren=[g.default,p.BlockEmbed,w.default],i.default=B}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.SHORTKEY=i.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},o=(function(){function W(G,ee){var ne=[],le=!0,ye=!1,be=void 0;try{for(var Pe=G[Symbol.iterator](),Te;!(le=(Te=Pe.next()).done)&&(ne.push(Te.value),!(ee&&ne.length===ee));le=!0);}catch(We){ye=!0,be=We}finally{try{!le&&Pe.return&&Pe.return()}finally{if(ye)throw be}}return ne}return function(G,ee){if(Array.isArray(G))return G;if(Symbol.iterator in Object(G))return W(G,ee);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function W(G,ee){for(var ne=0;ne<ee.length;ne++){var le=ee[ne];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(G,le.key,le)}}return function(G,ee,ne){return ee&&W(G.prototype,ee),ne&&W(G,ne),G}})(),d=s(21),h=D(d),f=s(11),m=D(f),p=s(3),g=D(p),b=s(2),j=D(b),y=s(20),x=D(y),N=s(0),w=D(N),k=s(5),A=D(k),S=s(10),E=D(S),C=s(9),B=D(C);function D(W){return W&&W.__esModule?W:{default:W}}function F(W,G,ee){return G in W?Object.defineProperty(W,G,{value:ee,enumerable:!0,configurable:!0,writable:!0}):W[G]=ee,W}function R(W,G){if(!(W instanceof G))throw new TypeError("Cannot call a class as a function")}function z(W,G){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G&&(typeof G=="object"||typeof G=="function")?G:W}function q(W,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof G);W.prototype=Object.create(G&&G.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),G&&(Object.setPrototypeOf?Object.setPrototypeOf(W,G):W.__proto__=G)}var U=(0,E.default)("quill:keyboard"),Q=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=(function(W){q(G,W),c(G,null,[{key:"match",value:function(ne,le){return le=J(le),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ye){return!!le[ye]!==ne[ye]&&le[ye]!==null})?!1:le.key===(ne.which||ne.keyCode)}}]);function G(ee,ne){R(this,G);var le=z(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,ee,ne));return le.bindings={},Object.keys(le.options.bindings).forEach(function(ye){ye==="list autofill"&&ee.scroll.whitelist!=null&&!ee.scroll.whitelist.list||le.options.bindings[ye]&&le.addBinding(le.options.bindings[ye])}),le.addBinding({key:G.keys.ENTER,shiftKey:null},V),le.addBinding({key:G.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(le.addBinding({key:G.keys.BACKSPACE},{collapsed:!0},Y),le.addBinding({key:G.keys.DELETE},{collapsed:!0},O)):(le.addBinding({key:G.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},Y),le.addBinding({key:G.keys.DELETE},{collapsed:!0,suffix:/^.?$/},O)),le.addBinding({key:G.keys.BACKSPACE},{collapsed:!1},T),le.addBinding({key:G.keys.DELETE},{collapsed:!1},T),le.addBinding({key:G.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},Y),le.listen(),le}return c(G,[{key:"addBinding",value:function(ne){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},be=J(ne);if(be==null||be.key==null)return U.warn("Attempted to add invalid keyboard binding",be);typeof le=="function"&&(le={handler:le}),typeof ye=="function"&&(ye={handler:ye}),be=(0,g.default)(be,le,ye),this.bindings[be.key]=this.bindings[be.key]||[],this.bindings[be.key].push(be)}},{key:"listen",value:function(){var ne=this;this.quill.root.addEventListener("keydown",function(le){if(!le.defaultPrevented){var ye=le.which||le.keyCode,be=(ne.bindings[ye]||[]).filter(function(He){return G.match(le,He)});if(be.length!==0){var Pe=ne.quill.getSelection();if(!(Pe==null||!ne.quill.hasFocus())){var Te=ne.quill.getLine(Pe.index),We=o(Te,2),ut=We[0],nt=We[1],ge=ne.quill.getLeaf(Pe.index),ve=o(ge,2),Se=ve[0],Oe=ve[1],je=Pe.length===0?[Se,Oe]:ne.quill.getLeaf(Pe.index+Pe.length),tt=o(je,2),et=tt[0],rt=tt[1],xe=Se instanceof w.default.Text?Se.value().slice(0,Oe):"",_e=et instanceof w.default.Text?et.value().slice(rt):"",De={collapsed:Pe.length===0,empty:Pe.length===0&&ut.length()<=1,format:ne.quill.getFormat(Pe),offset:nt,prefix:xe,suffix:_e},it=be.some(function(He){if(He.collapsed!=null&&He.collapsed!==De.collapsed||He.empty!=null&&He.empty!==De.empty||He.offset!=null&&He.offset!==De.offset)return!1;if(Array.isArray(He.format)){if(He.format.every(function(kt){return De.format[kt]==null}))return!1}else if(a(He.format)==="object"&&!Object.keys(He.format).every(function(kt){return He.format[kt]===!0?De.format[kt]!=null:He.format[kt]===!1?De.format[kt]==null:(0,m.default)(He.format[kt],De.format[kt])}))return!1;return He.prefix!=null&&!He.prefix.test(De.prefix)||He.suffix!=null&&!He.suffix.test(De.suffix)?!1:He.handler.call(ne,Pe,De)!==!0});it&&le.preventDefault()}}}})}}]),G})(B.default);H.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},H.DEFAULTS={bindings:{bold:X("bold"),italic:X("italic"),underline:X("underline"),indent:{key:H.keys.TAB,format:["blockquote","indent","list"],handler:function(G,ee){if(ee.collapsed&&ee.offset!==0)return!0;this.quill.format("indent","+1",A.default.sources.USER)}},outdent:{key:H.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(G,ee){if(ee.collapsed&&ee.offset!==0)return!0;this.quill.format("indent","-1",A.default.sources.USER)}},"outdent backspace":{key:H.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(G,ee){ee.format.indent!=null?this.quill.format("indent","-1",A.default.sources.USER):ee.format.list!=null&&this.quill.format("list",!1,A.default.sources.USER)}},"indent code-block":L(!0),"outdent code-block":L(!1),"remove tab":{key:H.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(G){this.quill.deleteText(G.index-1,1,A.default.sources.USER)}},tab:{key:H.keys.TAB,handler:function(G){this.quill.history.cutoff();var ee=new j.default().retain(G.index).delete(G.length).insert("	");this.quill.updateContents(ee,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index+1,A.default.sources.SILENT)}},"list empty enter":{key:H.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(G,ee){this.quill.format("list",!1,A.default.sources.USER),ee.format.indent&&this.quill.format("indent",!1,A.default.sources.USER)}},"checklist enter":{key:H.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(G){var ee=this.quill.getLine(G.index),ne=o(ee,2),le=ne[0],ye=ne[1],be=(0,g.default)({},le.formats(),{list:"checked"}),Pe=new j.default().retain(G.index).insert(`
`,be).retain(le.length()-ye-1).retain(1,{list:"unchecked"});this.quill.updateContents(Pe,A.default.sources.USER),this.quill.setSelection(G.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:H.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(G,ee){var ne=this.quill.getLine(G.index),le=o(ne,2),ye=le[0],be=le[1],Pe=new j.default().retain(G.index).insert(`
`,ee.format).retain(ye.length()-be-1).retain(1,{header:null});this.quill.updateContents(Pe,A.default.sources.USER),this.quill.setSelection(G.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(G,ee){var ne=ee.prefix.length,le=this.quill.getLine(G.index),ye=o(le,2),be=ye[0],Pe=ye[1];if(Pe>ne)return!0;var Te=void 0;switch(ee.prefix.trim()){case"[]":case"[ ]":Te="unchecked";break;case"[x]":Te="checked";break;case"-":case"*":Te="bullet";break;default:Te="ordered"}this.quill.insertText(G.index," ",A.default.sources.USER),this.quill.history.cutoff();var We=new j.default().retain(G.index-Pe).delete(ne+1).retain(be.length()-2-Pe).retain(1,{list:Te});this.quill.updateContents(We,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index-ne,A.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(G){var ee=this.quill.getLine(G.index),ne=o(ee,2),le=ne[0],ye=ne[1],be=new j.default().retain(G.index+le.length()-ye-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(be,A.default.sources.USER)}},"embed left":K(H.keys.LEFT,!1),"embed left shift":K(H.keys.LEFT,!0),"embed right":K(H.keys.RIGHT,!1),"embed right shift":K(H.keys.RIGHT,!0)}};function K(W,G){var ee,ne=W===H.keys.LEFT?"prefix":"suffix";return ee={key:W,shiftKey:G,altKey:null},F(ee,ne,/^$/),F(ee,"handler",function(ye){var be=ye.index;W===H.keys.RIGHT&&(be+=ye.length+1);var Pe=this.quill.getLeaf(be),Te=o(Pe,1),We=Te[0];return We instanceof w.default.Embed?(W===H.keys.LEFT?G?this.quill.setSelection(ye.index-1,ye.length+1,A.default.sources.USER):this.quill.setSelection(ye.index-1,A.default.sources.USER):G?this.quill.setSelection(ye.index,ye.length+1,A.default.sources.USER):this.quill.setSelection(ye.index+ye.length+1,A.default.sources.USER),!1):!0}),ee}function Y(W,G){if(!(W.index===0||this.quill.getLength()<=1)){var ee=this.quill.getLine(W.index),ne=o(ee,1),le=ne[0],ye={};if(G.offset===0){var be=this.quill.getLine(W.index-1),Pe=o(be,1),Te=Pe[0];if(Te!=null&&Te.length()>1){var We=le.formats(),ut=this.quill.getFormat(W.index-1,1);ye=x.default.attributes.diff(We,ut)||{}}}var nt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(G.prefix)?2:1;this.quill.deleteText(W.index-nt,nt,A.default.sources.USER),Object.keys(ye).length>0&&this.quill.formatLine(W.index-nt,nt,ye,A.default.sources.USER),this.quill.focus()}}function O(W,G){var ee=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(G.suffix)?2:1;if(!(W.index>=this.quill.getLength()-ee)){var ne={},le=0,ye=this.quill.getLine(W.index),be=o(ye,1),Pe=be[0];if(G.offset>=Pe.length()-1){var Te=this.quill.getLine(W.index+1),We=o(Te,1),ut=We[0];if(ut){var nt=Pe.formats(),ge=this.quill.getFormat(W.index,1);ne=x.default.attributes.diff(nt,ge)||{},le=ut.length()}}this.quill.deleteText(W.index,ee,A.default.sources.USER),Object.keys(ne).length>0&&this.quill.formatLine(W.index+le-1,ee,ne,A.default.sources.USER)}}function T(W){var G=this.quill.getLines(W),ee={};if(G.length>1){var ne=G[0].formats(),le=G[G.length-1].formats();ee=x.default.attributes.diff(le,ne)||{}}this.quill.deleteText(W,A.default.sources.USER),Object.keys(ee).length>0&&this.quill.formatLine(W.index,1,ee,A.default.sources.USER),this.quill.setSelection(W.index,A.default.sources.SILENT),this.quill.focus()}function V(W,G){var ee=this;W.length>0&&this.quill.scroll.deleteAt(W.index,W.length);var ne=Object.keys(G.format).reduce(function(le,ye){return w.default.query(ye,w.default.Scope.BLOCK)&&!Array.isArray(G.format[ye])&&(le[ye]=G.format[ye]),le},{});this.quill.insertText(W.index,`
`,ne,A.default.sources.USER),this.quill.setSelection(W.index+1,A.default.sources.SILENT),this.quill.focus(),Object.keys(G.format).forEach(function(le){ne[le]==null&&(Array.isArray(G.format[le])||le!=="link"&&ee.quill.format(le,G.format[le],A.default.sources.USER))})}function L(W){return{key:H.keys.TAB,shiftKey:!W,format:{"code-block":!0},handler:function(ee){var ne=w.default.query("code-block"),le=ee.index,ye=ee.length,be=this.quill.scroll.descendant(ne,le),Pe=o(be,2),Te=Pe[0],We=Pe[1];if(Te!=null){var ut=this.quill.getIndex(Te),nt=Te.newlineIndex(We,!0)+1,ge=Te.newlineIndex(ut+We+ye),ve=Te.domNode.textContent.slice(nt,ge).split(`
`);We=0,ve.forEach(function(Se,Oe){W?(Te.insertAt(nt+We,ne.TAB),We+=ne.TAB.length,Oe===0?le+=ne.TAB.length:ye+=ne.TAB.length):Se.startsWith(ne.TAB)&&(Te.deleteAt(nt+We,ne.TAB.length),We-=ne.TAB.length,Oe===0?le-=ne.TAB.length:ye-=ne.TAB.length),We+=Se.length+1}),this.quill.update(A.default.sources.USER),this.quill.setSelection(le,ye,A.default.sources.SILENT)}}}}function X(W){return{key:W[0].toUpperCase(),shortKey:!0,handler:function(ee,ne){this.quill.format(W,!ne.format[W],A.default.sources.USER)}}}function J(W){if(typeof W=="string"||typeof W=="number")return J({key:W});if((typeof W>"u"?"undefined":a(W))==="object"&&(W=(0,h.default)(W,!1)),typeof W.key=="string")if(H.keys[W.key.toUpperCase()]!=null)W.key=H.keys[W.key.toUpperCase()];else if(W.key.length===1)W.key=W.key.toUpperCase().charCodeAt(0);else return null;return W.shortKey&&(W[Q]=W.shortKey,delete W.shortKey),W}i.default=H,i.SHORTKEY=Q}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function x(N,w){var k=[],A=!0,S=!1,E=void 0;try{for(var C=N[Symbol.iterator](),B;!(A=(B=C.next()).done)&&(k.push(B.value),!(w&&k.length===w));A=!0);}catch(D){S=!0,E=D}finally{try{!A&&C.return&&C.return()}finally{if(S)throw E}}return k}return function(N,w){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return x(N,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=function x(N,w,k){N===null&&(N=Function.prototype);var A=Object.getOwnPropertyDescriptor(N,w);if(A===void 0){var S=Object.getPrototypeOf(N);return S===null?void 0:x(S,w,k)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(k)}},c=(function(){function x(N,w){for(var k=0;k<w.length;k++){var A=w[k];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(N,A.key,A)}}return function(N,w,k){return w&&x(N.prototype,w),k&&x(N,k),N}})(),d=s(0),h=p(d),f=s(7),m=p(f);function p(x){return x&&x.__esModule?x:{default:x}}function g(x,N){if(!(x instanceof N))throw new TypeError("Cannot call a class as a function")}function b(x,N){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:x}function j(x,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);x.prototype=Object.create(N&&N.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(x,N):x.__proto__=N)}var y=(function(x){j(N,x),c(N,null,[{key:"value",value:function(){}}]);function N(w,k){g(this,N);var A=b(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,w));return A.selection=k,A.textNode=document.createTextNode(N.CONTENTS),A.domNode.appendChild(A.textNode),A._length=0,A}return c(N,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(k,A){if(this._length!==0)return o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,k,A);for(var S=this,E=0;S!=null&&S.statics.scope!==h.default.Scope.BLOCK_BLOT;)E+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=N.CONTENTS.length,S.optimize(),S.formatAt(E,N.CONTENTS.length,k,A),this._length=0)}},{key:"index",value:function(k,A){return k===this.textNode?0:o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"index",this).call(this,k,A)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var k=this.textNode,A=this.selection.getNativeRange(),S=void 0,E=void 0,C=void 0;if(A!=null&&A.start.node===k&&A.end.node===k){var B=[k,A.start.offset,A.end.offset];S=B[0],E=B[1],C=B[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==N.CONTENTS){var D=this.textNode.data.split(N.CONTENTS).join("");this.next instanceof m.default?(S=this.next.domNode,this.next.insertAt(0,D),this.textNode.data=N.CONTENTS):(this.textNode.data=D,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(N.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var F=[E,C].map(function(z){return Math.max(0,Math.min(S.data.length,z-1))}),R=a(F,2);return E=R[0],C=R[1],{startNode:S,startOffset:E,endNode:S,endOffset:C}}}}},{key:"update",value:function(k,A){var S=this;if(k.some(function(C){return C.type==="characterData"&&C.target===S.textNode})){var E=this.restore();E&&(A.range=E)}}},{key:"value",value:function(){return""}}]),N})(h.default.Embed);y.blotName="cursor",y.className="ql-cursor",y.tagName="span",y.CONTENTS="\uFEFF",i.default=y}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(0),o=h(a),c=s(4),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function f(b,j){if(!(b instanceof j))throw new TypeError("Cannot call a class as a function")}function m(b,j){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:b}function p(b,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);b.prototype=Object.create(j&&j.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(b,j):b.__proto__=j)}var g=(function(b){p(j,b);function j(){return f(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return j})(o.default.Container);g.allowedChildren=[d.default,c.BlockEmbed,g],i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.ColorStyle=i.ColorClass=i.ColorAttributor=void 0;var a=(function(){function y(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&y(x.prototype,N),w&&y(x,w),x}})(),o=function y(x,N,w){x===null&&(x=Function.prototype);var k=Object.getOwnPropertyDescriptor(x,N);if(k===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:y(A,N,w)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(w)}},c=s(0),d=h(c);function h(y){return y&&y.__esModule?y:{default:y}}function f(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}function m(y,x){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:y}function p(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}var g=(function(y){p(x,y);function x(){return f(this,x),m(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"value",value:function(w){var k=o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"value",this).call(this,w);return k.startsWith("rgb(")?(k=k.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+k.split(",").map(function(A){return("00"+parseInt(A).toString(16)).slice(-2)}).join("")):k}}]),x})(d.default.Attributor.Style),b=new d.default.Attributor.Class("color","ql-color",{scope:d.default.Scope.INLINE}),j=new g("color","color",{scope:d.default.Scope.INLINE});i.ColorAttributor=g,i.ColorClass=b,i.ColorStyle=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.sanitize=i.default=void 0;var a=(function(){function j(y,x){for(var N=0;N<x.length;N++){var w=x[N];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,x,N){return x&&j(y.prototype,x),N&&j(y,N),y}})(),o=function j(y,x,N){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,x);if(w===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:j(k,x,N)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(N)}},c=s(6),d=h(c);function h(j){return j&&j.__esModule?j:{default:j}}function f(j,y){if(!(j instanceof y))throw new TypeError("Cannot call a class as a function")}function m(j,y){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:j}function p(j,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);j.prototype=Object.create(y&&y.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(j,y):j.__proto__=y)}var g=(function(j){p(y,j);function y(){return f(this,y),m(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"format",value:function(N,w){if(N!==this.statics.blotName||!w)return o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,N,w);w=this.constructor.sanitize(w),this.domNode.setAttribute("href",w)}}],[{key:"create",value:function(N){var w=o(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,N);return N=this.sanitize(N),w.setAttribute("href",N),w.setAttribute("rel","noopener noreferrer"),w.setAttribute("target","_blank"),w}},{key:"formats",value:function(N){return N.getAttribute("href")}},{key:"sanitize",value:function(N){return b(N,this.PROTOCOL_WHITELIST)?N:this.SANITIZED_URL}}]),y})(d.default);g.blotName="link",g.tagName="A",g.SANITIZED_URL="about:blank",g.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function b(j,y){var x=document.createElement("a");x.href=j;var N=x.href.slice(0,x.href.indexOf(":"));return y.indexOf(N)>-1}i.default=g,i.sanitize=b}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},o=(function(){function y(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&y(x.prototype,N),w&&y(x,w),x}})(),c=s(23),d=m(c),h=s(107),f=m(h);function m(y){return y&&y.__esModule?y:{default:y}}function p(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}var g=0;function b(y,x){y.setAttribute(x,y.getAttribute(x)!=="true")}var j=(function(){function y(x){var N=this;p(this,y),this.select=x,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){N.togglePicker()}),this.label.addEventListener("keydown",function(w){switch(w.keyCode){case d.default.keys.ENTER:N.togglePicker();break;case d.default.keys.ESCAPE:N.escape(),w.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return o(y,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),b(this.label,"aria-expanded"),b(this.options,"aria-hidden")}},{key:"buildItem",value:function(N){var w=this,k=document.createElement("span");return k.tabIndex="0",k.setAttribute("role","button"),k.classList.add("ql-picker-item"),N.hasAttribute("value")&&k.setAttribute("data-value",N.getAttribute("value")),N.textContent&&k.setAttribute("data-label",N.textContent),k.addEventListener("click",function(){w.selectItem(k,!0)}),k.addEventListener("keydown",function(A){switch(A.keyCode){case d.default.keys.ENTER:w.selectItem(k,!0),A.preventDefault();break;case d.default.keys.ESCAPE:w.escape(),A.preventDefault();break}}),k}},{key:"buildLabel",value:function(){var N=document.createElement("span");return N.classList.add("ql-picker-label"),N.innerHTML=f.default,N.tabIndex="0",N.setAttribute("role","button"),N.setAttribute("aria-expanded","false"),this.container.appendChild(N),N}},{key:"buildOptions",value:function(){var N=this,w=document.createElement("span");w.classList.add("ql-picker-options"),w.setAttribute("aria-hidden","true"),w.tabIndex="-1",w.id="ql-picker-options-"+g,g+=1,this.label.setAttribute("aria-controls",w.id),this.options=w,[].slice.call(this.select.options).forEach(function(k){var A=N.buildItem(k);w.appendChild(A),k.selected===!0&&N.selectItem(A)}),this.container.appendChild(w)}},{key:"buildPicker",value:function(){var N=this;[].slice.call(this.select.attributes).forEach(function(w){N.container.setAttribute(w.name,w.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var N=this;this.close(),setTimeout(function(){return N.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(N){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=this.container.querySelector(".ql-selected");if(N!==k&&(k!=null&&k.classList.remove("ql-selected"),N!=null&&(N.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(N.parentNode.children,N),N.hasAttribute("data-value")?this.label.setAttribute("data-value",N.getAttribute("data-value")):this.label.removeAttribute("data-value"),N.hasAttribute("data-label")?this.label.setAttribute("data-label",N.getAttribute("data-label")):this.label.removeAttribute("data-label"),w))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":a(Event))==="object"){var A=document.createEvent("Event");A.initEvent("change",!0,!0),this.select.dispatchEvent(A)}this.close()}}},{key:"update",value:function(){var N=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];N=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var k=N!=null&&N!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",k)}}]),y})();i.default=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(0),o=U(a),c=s(5),d=U(c),h=s(4),f=U(h),m=s(16),p=U(m),g=s(25),b=U(g),j=s(24),y=U(j),x=s(35),N=U(x),w=s(6),k=U(w),A=s(22),S=U(A),E=s(7),C=U(E),B=s(55),D=U(B),F=s(42),R=U(F),z=s(23),q=U(z);function U(Q){return Q&&Q.__esModule?Q:{default:Q}}d.default.register({"blots/block":f.default,"blots/block/embed":h.BlockEmbed,"blots/break":p.default,"blots/container":b.default,"blots/cursor":y.default,"blots/embed":N.default,"blots/inline":k.default,"blots/scroll":S.default,"blots/text":C.default,"modules/clipboard":D.default,"modules/history":R.default,"modules/keyboard":q.default}),o.default.register(f.default,p.default,y.default,k.default,S.default,C.default),i.default=d.default}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(1),o=(function(){function c(d){this.domNode=d,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(c.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),c.create=function(d){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof d=="string"&&(d=d.toUpperCase(),parseInt(d).toString()===d&&(d=parseInt(d))),typeof d=="number"?h=document.createElement(this.tagName[d-1]):this.tagName.indexOf(d)>-1?h=document.createElement(d):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},c.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},c.prototype.clone=function(){var d=this.domNode.cloneNode(!1);return a.create(d)},c.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},c.prototype.deleteAt=function(d,h){var f=this.isolate(d,h);f.remove()},c.prototype.formatAt=function(d,h,f,m){var p=this.isolate(d,h);if(a.query(f,a.Scope.BLOT)!=null&&m)p.wrap(f,m);else if(a.query(f,a.Scope.ATTRIBUTE)!=null){var g=a.create(this.statics.scope);p.wrap(g),g.format(f,m)}},c.prototype.insertAt=function(d,h,f){var m=f==null?a.create("text",h):a.create(h,f),p=this.split(d);this.parent.insertBefore(m,p)},c.prototype.insertInto=function(d,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var f=null;d.children.insertBefore(this,h),h!=null&&(f=h.domNode),(this.domNode.parentNode!=d.domNode||this.domNode.nextSibling!=f)&&d.domNode.insertBefore(this.domNode,f),this.parent=d,this.attach()},c.prototype.isolate=function(d,h){var f=this.split(d);return f.split(h),f},c.prototype.length=function(){return 1},c.prototype.offset=function(d){return d===void 0&&(d=this.parent),this.parent==null||this==d?0:this.parent.children.offset(this)+this.parent.offset(d)},c.prototype.optimize=function(d){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},c.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},c.prototype.replace=function(d){d.parent!=null&&(d.parent.insertBefore(this,d.next),d.remove())},c.prototype.replaceWith=function(d,h){var f=typeof d=="string"?a.create(d,h):d;return f.replace(this),f},c.prototype.split=function(d,h){return d===0?this:this.next},c.prototype.update=function(d,h){},c.prototype.wrap=function(d,h){var f=typeof d=="string"?a.create(d,h):d;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},c.blotName="abstract",c})();i.default=o}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(12),o=s(32),c=s(33),d=s(1),h=(function(){function f(m){this.attributes={},this.domNode=m,this.build()}return f.prototype.attribute=function(m,p){p?m.add(this.domNode,p)&&(m.value(this.domNode)!=null?this.attributes[m.attrName]=m:delete this.attributes[m.attrName]):(m.remove(this.domNode),delete this.attributes[m.attrName])},f.prototype.build=function(){var m=this;this.attributes={};var p=a.default.keys(this.domNode),g=o.default.keys(this.domNode),b=c.default.keys(this.domNode);p.concat(g).concat(b).forEach(function(j){var y=d.query(j,d.Scope.ATTRIBUTE);y instanceof a.default&&(m.attributes[y.attrName]=y)})},f.prototype.copy=function(m){var p=this;Object.keys(this.attributes).forEach(function(g){var b=p.attributes[g].value(p.domNode);m.format(g,b)})},f.prototype.move=function(m){var p=this;this.copy(m),Object.keys(this.attributes).forEach(function(g){p.attributes[g].remove(p.domNode)}),this.attributes={}},f.prototype.values=function(){var m=this;return Object.keys(this.attributes).reduce(function(p,g){return p[g]=m.attributes[g].value(m.domNode),p},{})},f})();i.default=h}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(12);function c(h,f){var m=h.getAttribute("class")||"";return m.split(/\s+/).filter(function(p){return p.indexOf(f+"-")===0})}var d=(function(h){a(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.keys=function(m){return(m.getAttribute("class")||"").split(/\s+/).map(function(p){return p.split("-").slice(0,-1).join("-")})},f.prototype.add=function(m,p){return this.canAdd(m,p)?(this.remove(m),m.classList.add(this.keyName+"-"+p),!0):!1},f.prototype.remove=function(m){var p=c(m,this.keyName);p.forEach(function(g){m.classList.remove(g)}),m.classList.length===0&&m.removeAttribute("class")},f.prototype.value=function(m){var p=c(m,this.keyName)[0]||"",g=p.slice(this.keyName.length+1);return this.canAdd(m,g)?g:""},f})(o.default);i.default=d}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(12);function c(h){var f=h.split("-"),m=f.slice(1).map(function(p){return p[0].toUpperCase()+p.slice(1)}).join("");return f[0]+m}var d=(function(h){a(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.keys=function(m){return(m.getAttribute("style")||"").split(";").map(function(p){var g=p.split(":");return g[0].trim()})},f.prototype.add=function(m,p){return this.canAdd(m,p)?(m.style[c(this.keyName)]=p,!0):!1},f.prototype.remove=function(m){m.style[c(this.keyName)]="",m.getAttribute("style")||m.removeAttribute("style")},f.prototype.value=function(m){var p=m.style[c(this.keyName)];return this.canAdd(m,p)?p:""},f})(o.default);i.default=d}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function d(h,f){for(var m=0;m<f.length;m++){var p=f[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(h,p.key,p)}}return function(h,f,m){return f&&d(h.prototype,f),m&&d(h,m),h}})();function o(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}var c=(function(){function d(h,f){o(this,d),this.quill=h,this.options=f,this.modules={}}return a(d,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(m){f.modules[m]==null&&f.addModule(m)})}},{key:"addModule",value:function(f){var m=this.quill.constructor.import("modules/"+f);return this.modules[f]=new m(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),d})();c.DEFAULTS={modules:{}},c.themes={default:c},i.default=c}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function x(N,w){for(var k=0;k<w.length;k++){var A=w[k];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(N,A.key,A)}}return function(N,w,k){return w&&x(N.prototype,w),k&&x(N,k),N}})(),o=function x(N,w,k){N===null&&(N=Function.prototype);var A=Object.getOwnPropertyDescriptor(N,w);if(A===void 0){var S=Object.getPrototypeOf(N);return S===null?void 0:x(S,w,k)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(k)}},c=s(0),d=m(c),h=s(7),f=m(h);function m(x){return x&&x.__esModule?x:{default:x}}function p(x,N){if(!(x instanceof N))throw new TypeError("Cannot call a class as a function")}function g(x,N){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:x}function b(x,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);x.prototype=Object.create(N&&N.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(x,N):x.__proto__=N)}var j="\uFEFF",y=(function(x){b(N,x);function N(w){p(this,N);var k=g(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,w));return k.contentNode=document.createElement("span"),k.contentNode.setAttribute("contenteditable",!1),[].slice.call(k.domNode.childNodes).forEach(function(A){k.contentNode.appendChild(A)}),k.leftGuard=document.createTextNode(j),k.rightGuard=document.createTextNode(j),k.domNode.appendChild(k.leftGuard),k.domNode.appendChild(k.contentNode),k.domNode.appendChild(k.rightGuard),k}return a(N,[{key:"index",value:function(k,A){return k===this.leftGuard?0:k===this.rightGuard?1:o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"index",this).call(this,k,A)}},{key:"restore",value:function(k){var A=void 0,S=void 0,E=k.data.split(j).join("");if(k===this.leftGuard)if(this.prev instanceof f.default){var C=this.prev.length();this.prev.insertAt(C,E),A={startNode:this.prev.domNode,startOffset:C+E.length}}else S=document.createTextNode(E),this.parent.insertBefore(d.default.create(S),this),A={startNode:S,startOffset:E.length};else k===this.rightGuard&&(this.next instanceof f.default?(this.next.insertAt(0,E),A={startNode:this.next.domNode,startOffset:E.length}):(S=document.createTextNode(E),this.parent.insertBefore(d.default.create(S),this.next),A={startNode:S,startOffset:E.length}));return k.data=j,A}},{key:"update",value:function(k,A){var S=this;k.forEach(function(E){if(E.type==="characterData"&&(E.target===S.leftGuard||E.target===S.rightGuard)){var C=S.restore(E.target);C&&(A.range=C)}})}}]),N})(d.default.Embed);i.default=y}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.AlignStyle=i.AlignClass=i.AlignAttribute=void 0;var a=s(0),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}var d={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new o.default.Attributor.Attribute("align","align",d),f=new o.default.Attributor.Class("align","ql-align",d),m=new o.default.Attributor.Style("align","text-align",d);i.AlignAttribute=h,i.AlignClass=f,i.AlignStyle=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.BackgroundStyle=i.BackgroundClass=void 0;var a=s(0),o=d(a),c=s(26);function d(m){return m&&m.__esModule?m:{default:m}}var h=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),f=new c.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});i.BackgroundClass=h,i.BackgroundStyle=f}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.DirectionStyle=i.DirectionClass=i.DirectionAttribute=void 0;var a=s(0),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}var d={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},h=new o.default.Attributor.Attribute("direction","dir",d),f=new o.default.Attributor.Class("direction","ql-direction",d),m=new o.default.Attributor.Style("direction","direction",d);i.DirectionAttribute=h,i.DirectionClass=f,i.DirectionStyle=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.FontClass=i.FontStyle=void 0;var a=(function(){function x(N,w){for(var k=0;k<w.length;k++){var A=w[k];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(N,A.key,A)}}return function(N,w,k){return w&&x(N.prototype,w),k&&x(N,k),N}})(),o=function x(N,w,k){N===null&&(N=Function.prototype);var A=Object.getOwnPropertyDescriptor(N,w);if(A===void 0){var S=Object.getPrototypeOf(N);return S===null?void 0:x(S,w,k)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(k)}},c=s(0),d=h(c);function h(x){return x&&x.__esModule?x:{default:x}}function f(x,N){if(!(x instanceof N))throw new TypeError("Cannot call a class as a function")}function m(x,N){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:x}function p(x,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);x.prototype=Object.create(N&&N.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(x,N):x.__proto__=N)}var g={scope:d.default.Scope.INLINE,whitelist:["serif","monospace"]},b=new d.default.Attributor.Class("font","ql-font",g),j=(function(x){p(N,x);function N(){return f(this,N),m(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return a(N,[{key:"value",value:function(k){return o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"value",this).call(this,k).replace(/["']/g,"")}}]),N})(d.default.Attributor.Style),y=new j("font","font-family",g);i.FontStyle=y,i.FontClass=b}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.SizeStyle=i.SizeClass=void 0;var a=s(0),o=c(a);function c(f){return f&&f.__esModule?f:{default:f}}var d=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});i.SizeClass=d,i.SizeStyle=h}),(function(r,i,s){r.exports={align:{"":s(76),center:s(77),right:s(78),justify:s(79)},background:s(80),blockquote:s(81),bold:s(82),clean:s(83),code:s(58),"code-block":s(58),color:s(84),direction:{"":s(85),rtl:s(86)},float:{center:s(87),full:s(88),left:s(89),right:s(90)},formula:s(91),header:{1:s(92),2:s(93)},italic:s(94),image:s(95),indent:{"+1":s(96),"-1":s(97)},link:s(98),list:{ordered:s(99),bullet:s(100),check:s(101)},script:{sub:s(102),super:s(103)},strike:s(104),underline:s(105),video:s(106)}}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.getLastChangeIndex=i.default=void 0;var a=(function(){function w(k,A){for(var S=0;S<A.length;S++){var E=A[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,A,S){return A&&w(k.prototype,A),S&&w(k,S),k}})(),o=s(0),c=p(o),d=s(5),h=p(d),f=s(9),m=p(f);function p(w){return w&&w.__esModule?w:{default:w}}function g(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")}function b(w,k){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:w}function j(w,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);w.prototype=Object.create(k&&k.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(w,k):w.__proto__=k)}var y=(function(w){j(k,w);function k(A,S){g(this,k);var E=b(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,A,S));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(h.default.events.EDITOR_CHANGE,function(C,B,D,F){C!==h.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||F===h.default.sources.USER?E.record(B,D):E.transform(B))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return a(k,[{key:"change",value:function(S,E){if(this.stack[S].length!==0){var C=this.stack[S].pop();this.stack[E].push(C),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(C[S],h.default.sources.USER),this.ignoreChange=!1;var B=N(C[S]);this.quill.setSelection(B)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,E){if(S.ops.length!==0){this.stack.redo=[];var C=this.quill.getContents().diff(E),B=Date.now();if(this.lastRecorded+this.options.delay>B&&this.stack.undo.length>0){var D=this.stack.undo.pop();C=C.compose(D.undo),S=D.redo.compose(S)}else this.lastRecorded=B;this.stack.undo.push({redo:S,undo:C}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(S){this.stack.undo.forEach(function(E){E.undo=S.transform(E.undo,!0),E.redo=S.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=S.transform(E.undo,!0),E.redo=S.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),k})(m.default);y.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function x(w){var k=w.ops[w.ops.length-1];return k==null?!1:k.insert!=null?typeof k.insert=="string"&&k.insert.endsWith(`
`):k.attributes!=null?Object.keys(k.attributes).some(function(A){return c.default.query(A,c.default.Scope.BLOCK)!=null}):!1}function N(w){var k=w.reduce(function(S,E){return S+=E.delete||0,S},0),A=w.length()-k;return x(w)&&(A-=1),A}i.default=y,i.getLastChangeIndex=N}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BaseTooltip=void 0;var a=(function(){function V(L,X){for(var J=0;J<X.length;J++){var W=X[J];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(L,W.key,W)}}return function(L,X,J){return X&&V(L.prototype,X),J&&V(L,J),L}})(),o=function V(L,X,J){L===null&&(L=Function.prototype);var W=Object.getOwnPropertyDescriptor(L,X);if(W===void 0){var G=Object.getPrototypeOf(L);return G===null?void 0:V(G,X,J)}else{if("value"in W)return W.value;var ee=W.get;return ee===void 0?void 0:ee.call(J)}},c=s(3),d=B(c),h=s(2),f=B(h),m=s(8),p=B(m),g=s(23),b=B(g),j=s(34),y=B(j),x=s(59),N=B(x),w=s(60),k=B(w),A=s(28),S=B(A),E=s(61),C=B(E);function B(V){return V&&V.__esModule?V:{default:V}}function D(V,L){if(!(V instanceof L))throw new TypeError("Cannot call a class as a function")}function F(V,L){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:V}function R(V,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);V.prototype=Object.create(L&&L.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(V,L):V.__proto__=L)}var z=[!1,"center","right","justify"],q=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],U=[!1,"serif","monospace"],Q=["1","2","3",!1],H=["small",!1,"large","huge"],K=(function(V){R(L,V);function L(X,J){D(this,L);var W=F(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,X,J)),G=function ee(ne){if(!document.body.contains(X.root))return document.body.removeEventListener("click",ee);W.tooltip!=null&&!W.tooltip.root.contains(ne.target)&&document.activeElement!==W.tooltip.textbox&&!W.quill.hasFocus()&&W.tooltip.hide(),W.pickers!=null&&W.pickers.forEach(function(le){le.container.contains(ne.target)||le.close()})};return X.emitter.listenDOM("click",document.body,G),W}return a(L,[{key:"addModule",value:function(J){var W=o(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"addModule",this).call(this,J);return J==="toolbar"&&this.extendToolbar(W),W}},{key:"buildButtons",value:function(J,W){J.forEach(function(G){var ee=G.getAttribute("class")||"";ee.split(/\s+/).forEach(function(ne){if(ne.startsWith("ql-")&&(ne=ne.slice(3),W[ne]!=null))if(ne==="direction")G.innerHTML=W[ne][""]+W[ne].rtl;else if(typeof W[ne]=="string")G.innerHTML=W[ne];else{var le=G.value||"";le!=null&&W[ne][le]&&(G.innerHTML=W[ne][le])}})})}},{key:"buildPickers",value:function(J,W){var G=this;this.pickers=J.map(function(ne){if(ne.classList.contains("ql-align"))return ne.querySelector("option")==null&&T(ne,z),new k.default(ne,W.align);if(ne.classList.contains("ql-background")||ne.classList.contains("ql-color")){var le=ne.classList.contains("ql-background")?"background":"color";return ne.querySelector("option")==null&&T(ne,q,le==="background"?"#ffffff":"#000000"),new N.default(ne,W[le])}else return ne.querySelector("option")==null&&(ne.classList.contains("ql-font")?T(ne,U):ne.classList.contains("ql-header")?T(ne,Q):ne.classList.contains("ql-size")&&T(ne,H)),new S.default(ne)});var ee=function(){G.pickers.forEach(function(le){le.update()})};this.quill.on(p.default.events.EDITOR_CHANGE,ee)}}]),L})(y.default);K.DEFAULTS=(0,d.default)(!0,{},y.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var L=this,X=this.container.querySelector("input.ql-image[type=file]");X==null&&(X=document.createElement("input"),X.setAttribute("type","file"),X.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),X.classList.add("ql-image"),X.addEventListener("change",function(){if(X.files!=null&&X.files[0]!=null){var J=new FileReader;J.onload=function(W){var G=L.quill.getSelection(!0);L.quill.updateContents(new f.default().retain(G.index).delete(G.length).insert({image:W.target.result}),p.default.sources.USER),L.quill.setSelection(G.index+1,p.default.sources.SILENT),X.value=""},J.readAsDataURL(X.files[0])}}),this.container.appendChild(X)),X.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Y=(function(V){R(L,V);function L(X,J){D(this,L);var W=F(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,X,J));return W.textbox=W.root.querySelector('input[type="text"]'),W.listen(),W}return a(L,[{key:"listen",value:function(){var J=this;this.textbox.addEventListener("keydown",function(W){b.default.match(W,"enter")?(J.save(),W.preventDefault()):b.default.match(W,"escape")&&(J.cancel(),W.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),W!=null?this.textbox.value=W:J!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+J)||""),this.root.setAttribute("data-mode",J)}},{key:"restoreFocus",value:function(){var J=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=J}},{key:"save",value:function(){var J=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var W=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",J,p.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",J,p.default.sources.USER)),this.quill.root.scrollTop=W;break}case"video":J=O(J);case"formula":{if(!J)break;var G=this.quill.getSelection(!0);if(G!=null){var ee=G.index+G.length;this.quill.insertEmbed(ee,this.root.getAttribute("data-mode"),J,p.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(ee+1," ",p.default.sources.USER),this.quill.setSelection(ee+2,p.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),L})(C.default);function O(V){var L=V.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||V.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return L?(L[1]||"https")+"://www.youtube.com/embed/"+L[2]+"?showinfo=0":(L=V.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(L[1]||"https")+"://player.vimeo.com/video/"+L[2]+"/":V}function T(V,L){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;L.forEach(function(J){var W=document.createElement("option");J===X?W.setAttribute("selected","selected"):W.setAttribute("value",J),V.appendChild(W)})}i.BaseTooltip=Y,i.default=K}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function o(){this.head=this.tail=null,this.length=0}return o.prototype.append=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];this.insertBefore(c[0],null),c.length>1&&this.append.apply(this,c.slice(1))},o.prototype.contains=function(c){for(var d,h=this.iterator();d=h();)if(d===c)return!0;return!1},o.prototype.insertBefore=function(c,d){c&&(c.next=d,d!=null?(c.prev=d.prev,d.prev!=null&&(d.prev.next=c),d.prev=c,d===this.head&&(this.head=c)):this.tail!=null?(this.tail.next=c,c.prev=this.tail,this.tail=c):(c.prev=null,this.head=this.tail=c),this.length+=1)},o.prototype.offset=function(c){for(var d=0,h=this.head;h!=null;){if(h===c)return d;d+=h.length(),h=h.next}return-1},o.prototype.remove=function(c){this.contains(c)&&(c.prev!=null&&(c.prev.next=c.next),c.next!=null&&(c.next.prev=c.prev),c===this.head&&(this.head=c.next),c===this.tail&&(this.tail=c.prev),this.length-=1)},o.prototype.iterator=function(c){return c===void 0&&(c=this.head),function(){var d=c;return c!=null&&(c=c.next),d}},o.prototype.find=function(c,d){d===void 0&&(d=!1);for(var h,f=this.iterator();h=f();){var m=h.length();if(c<m||d&&c===m&&(h.next==null||h.next.length()!==0))return[h,c];c-=m}return[null,0]},o.prototype.forEach=function(c){for(var d,h=this.iterator();d=h();)c(d)},o.prototype.forEachAt=function(c,d,h){if(!(d<=0))for(var f=this.find(c),m=f[0],p=f[1],g,b=c-p,j=this.iterator(m);(g=j())&&b<c+d;){var y=g.length();c>b?h(g,c-b,Math.min(d,b+y-c)):h(g,0,Math.min(y,c+d-b)),b+=y}},o.prototype.map=function(c){return this.reduce(function(d,h){return d.push(c(h)),d},[])},o.prototype.reduce=function(c,d){for(var h,f=this.iterator();h=f();)d=c(d,h);return d},o})();i.default=a}),(function(r,i,s){var a=this&&this.__extends||(function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var b in g)g.hasOwnProperty(b)&&(p[b]=g[b])};return function(p,g){m(p,g);function b(){this.constructor=p}p.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(17),c=s(1),d={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,f=(function(m){a(p,m);function p(g){var b=m.call(this,g)||this;return b.scroll=b,b.observer=new MutationObserver(function(j){b.update(j)}),b.observer.observe(b.domNode,d),b.attach(),b}return p.prototype.detach=function(){m.prototype.detach.call(this),this.observer.disconnect()},p.prototype.deleteAt=function(g,b){this.update(),g===0&&b===this.length()?this.children.forEach(function(j){j.remove()}):m.prototype.deleteAt.call(this,g,b)},p.prototype.formatAt=function(g,b,j,y){this.update(),m.prototype.formatAt.call(this,g,b,j,y)},p.prototype.insertAt=function(g,b,j){this.update(),m.prototype.insertAt.call(this,g,b,j)},p.prototype.optimize=function(g,b){var j=this;g===void 0&&(g=[]),b===void 0&&(b={}),m.prototype.optimize.call(this,b);for(var y=[].slice.call(this.observer.takeRecords());y.length>0;)g.push(y.pop());for(var x=function(A,S){S===void 0&&(S=!0),!(A==null||A===j)&&A.domNode.parentNode!=null&&(A.domNode[c.DATA_KEY].mutations==null&&(A.domNode[c.DATA_KEY].mutations=[]),S&&x(A.parent))},N=function(A){A.domNode[c.DATA_KEY]==null||A.domNode[c.DATA_KEY].mutations==null||(A instanceof o.default&&A.children.forEach(N),A.optimize(b))},w=g,k=0;w.length>0;k+=1){if(k>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(w.forEach(function(A){var S=c.find(A.target,!0);S!=null&&(S.domNode===A.target&&(A.type==="childList"?(x(c.find(A.previousSibling,!1)),[].forEach.call(A.addedNodes,function(E){var C=c.find(E,!1);x(C,!1),C instanceof o.default&&C.children.forEach(function(B){x(B,!1)})})):A.type==="attributes"&&x(S.prev)),x(S))}),this.children.forEach(N),w=[].slice.call(this.observer.takeRecords()),y=w.slice();y.length>0;)g.push(y.pop())}},p.prototype.update=function(g,b){var j=this;b===void 0&&(b={}),g=g||this.observer.takeRecords(),g.map(function(y){var x=c.find(y.target,!0);return x==null?null:x.domNode[c.DATA_KEY].mutations==null?(x.domNode[c.DATA_KEY].mutations=[y],x):(x.domNode[c.DATA_KEY].mutations.push(y),null)}).forEach(function(y){y==null||y===j||y.domNode[c.DATA_KEY]==null||y.update(y.domNode[c.DATA_KEY].mutations||[],b)}),this.domNode[c.DATA_KEY].mutations!=null&&m.prototype.update.call(this,this.domNode[c.DATA_KEY].mutations,b),this.optimize(g,b)},p.blotName="scroll",p.defaultChild="block",p.scope=c.Scope.BLOCK_BLOT,p.tagName="DIV",p})(o.default);i.default=f}),(function(r,i,s){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,p){m.__proto__=p}||function(m,p){for(var g in p)p.hasOwnProperty(g)&&(m[g]=p[g])};return function(m,p){f(m,p);function g(){this.constructor=m}m.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(18),c=s(1);function d(f,m){if(Object.keys(f).length!==Object.keys(m).length)return!1;for(var p in f)if(f[p]!==m[p])return!1;return!0}var h=(function(f){a(m,f);function m(){return f!==null&&f.apply(this,arguments)||this}return m.formats=function(p){if(p.tagName!==m.tagName)return f.formats.call(this,p)},m.prototype.format=function(p,g){var b=this;p===this.statics.blotName&&!g?(this.children.forEach(function(j){j instanceof o.default||(j=j.wrap(m.blotName,!0)),b.attributes.copy(j)}),this.unwrap()):f.prototype.format.call(this,p,g)},m.prototype.formatAt=function(p,g,b,j){if(this.formats()[b]!=null||c.query(b,c.Scope.ATTRIBUTE)){var y=this.isolate(p,g);y.format(b,j)}else f.prototype.formatAt.call(this,p,g,b,j)},m.prototype.optimize=function(p){f.prototype.optimize.call(this,p);var g=this.formats();if(Object.keys(g).length===0)return this.unwrap();var b=this.next;b instanceof m&&b.prev===this&&d(g,b.formats())&&(b.moveChildren(this),b.remove())},m.blotName="inline",m.scope=c.Scope.INLINE_BLOT,m.tagName="SPAN",m})(o.default);i.default=h}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(18),c=s(1),d=(function(h){a(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.formats=function(m){var p=c.query(f.blotName).tagName;if(m.tagName!==p)return h.formats.call(this,m)},f.prototype.format=function(m,p){c.query(m,c.Scope.BLOCK)!=null&&(m===this.statics.blotName&&!p?this.replaceWith(f.blotName):h.prototype.format.call(this,m,p))},f.prototype.formatAt=function(m,p,g,b){c.query(g,c.Scope.BLOCK)!=null?this.format(g,b):h.prototype.formatAt.call(this,m,p,g,b)},f.prototype.insertAt=function(m,p,g){if(g==null||c.query(p,c.Scope.INLINE)!=null)h.prototype.insertAt.call(this,m,p,g);else{var b=this.split(m),j=c.create(p,g);b.parent.insertBefore(j,b)}},f.prototype.update=function(m,p){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,m,p)},f.blotName="block",f.scope=c.Scope.BLOCK_BLOT,f.tagName="P",f})(o.default);i.default=d}),(function(r,i,s){var a=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])};return function(h,f){d(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(19),c=(function(d){a(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.formats=function(f){},h.prototype.format=function(f,m){d.prototype.formatAt.call(this,0,this.length(),f,m)},h.prototype.formatAt=function(f,m,p,g){f===0&&m===this.length()?this.format(p,g):d.prototype.formatAt.call(this,f,m,p,g)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h})(o.default);i.default=c}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(19),c=s(1),d=(function(h){a(f,h);function f(m){var p=h.call(this,m)||this;return p.text=p.statics.value(p.domNode),p}return f.create=function(m){return document.createTextNode(m)},f.value=function(m){var p=m.data;return p.normalize&&(p=p.normalize()),p},f.prototype.deleteAt=function(m,p){this.domNode.data=this.text=this.text.slice(0,m)+this.text.slice(m+p)},f.prototype.index=function(m,p){return this.domNode===m?p:-1},f.prototype.insertAt=function(m,p,g){g==null?(this.text=this.text.slice(0,m)+p+this.text.slice(m),this.domNode.data=this.text):h.prototype.insertAt.call(this,m,p,g)},f.prototype.length=function(){return this.text.length},f.prototype.optimize=function(m){h.prototype.optimize.call(this,m),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(m,p){return[this.domNode,m]},f.prototype.split=function(m,p){if(p===void 0&&(p=!1),!p){if(m===0)return this;if(m===this.length())return this.next}var g=c.create(this.domNode.splitText(m));return this.parent.insertBefore(g,this.next),this.text=this.statics.value(this.domNode),g},f.prototype.update=function(m,p){var g=this;m.some(function(b){return b.type==="characterData"&&b.target===g.domNode})&&(this.text=this.statics.value(this.domNode))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=c.Scope.INLINE_BLOT,f})(o.default);i.default=d}),(function(r,i,s){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(c,d){return arguments.length>1&&!this.contains(c)==!d?d:o.call(this,c)}}String.prototype.startsWith||(String.prototype.startsWith=function(c,d){return d=d||0,this.substr(d,c.length)===c}),String.prototype.endsWith||(String.prototype.endsWith=function(c,d){var h=this.toString();(typeof d!="number"||!isFinite(d)||Math.floor(d)!==d||d>h.length)&&(d=h.length),d-=c.length;var f=h.indexOf(c,d);return f!==-1&&f===d}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(d){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof d!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),f=h.length>>>0,m=arguments[1],p,g=0;g<f;g++)if(p=h[g],d.call(m,p,g,h))return p}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(r,i){var s=-1,a=1,o=0;function c(k,A,S){if(k==A)return k?[[o,k]]:[];(S<0||k.length<S)&&(S=null);var E=m(k,A),C=k.substring(0,E);k=k.substring(E),A=A.substring(E),E=p(k,A);var B=k.substring(k.length-E);k=k.substring(0,k.length-E),A=A.substring(0,A.length-E);var D=d(k,A);return C&&D.unshift([o,C]),B&&D.push([o,B]),b(D),S!=null&&(D=x(D,S)),D=N(D),D}function d(k,A){var S;if(!k)return[[a,A]];if(!A)return[[s,k]];var E=k.length>A.length?k:A,C=k.length>A.length?A:k,B=E.indexOf(C);if(B!=-1)return S=[[a,E.substring(0,B)],[o,C],[a,E.substring(B+C.length)]],k.length>A.length&&(S[0][0]=S[2][0]=s),S;if(C.length==1)return[[s,k],[a,A]];var D=g(k,A);if(D){var F=D[0],R=D[1],z=D[2],q=D[3],U=D[4],Q=c(F,z),H=c(R,q);return Q.concat([[o,U]],H)}return h(k,A)}function h(k,A){for(var S=k.length,E=A.length,C=Math.ceil((S+E)/2),B=C,D=2*C,F=new Array(D),R=new Array(D),z=0;z<D;z++)F[z]=-1,R[z]=-1;F[B+1]=0,R[B+1]=0;for(var q=S-E,U=q%2!=0,Q=0,H=0,K=0,Y=0,O=0;O<C;O++){for(var T=-O+Q;T<=O-H;T+=2){var V=B+T,L;T==-O||T!=O&&F[V-1]<F[V+1]?L=F[V+1]:L=F[V-1]+1;for(var X=L-T;L<S&&X<E&&k.charAt(L)==A.charAt(X);)L++,X++;if(F[V]=L,L>S)H+=2;else if(X>E)Q+=2;else if(U){var J=B+q-T;if(J>=0&&J<D&&R[J]!=-1){var W=S-R[J];if(L>=W)return f(k,A,L,X)}}}for(var G=-O+K;G<=O-Y;G+=2){var J=B+G,W;G==-O||G!=O&&R[J-1]<R[J+1]?W=R[J+1]:W=R[J-1]+1;for(var ee=W-G;W<S&&ee<E&&k.charAt(S-W-1)==A.charAt(E-ee-1);)W++,ee++;if(R[J]=W,W>S)Y+=2;else if(ee>E)K+=2;else if(!U){var V=B+q-G;if(V>=0&&V<D&&F[V]!=-1){var L=F[V],X=B+L-V;if(W=S-W,L>=W)return f(k,A,L,X)}}}}return[[s,k],[a,A]]}function f(k,A,S,E){var C=k.substring(0,S),B=A.substring(0,E),D=k.substring(S),F=A.substring(E),R=c(C,B),z=c(D,F);return R.concat(z)}function m(k,A){if(!k||!A||k.charAt(0)!=A.charAt(0))return 0;for(var S=0,E=Math.min(k.length,A.length),C=E,B=0;S<C;)k.substring(B,C)==A.substring(B,C)?(S=C,B=S):E=C,C=Math.floor((E-S)/2+S);return C}function p(k,A){if(!k||!A||k.charAt(k.length-1)!=A.charAt(A.length-1))return 0;for(var S=0,E=Math.min(k.length,A.length),C=E,B=0;S<C;)k.substring(k.length-C,k.length-B)==A.substring(A.length-C,A.length-B)?(S=C,B=S):E=C,C=Math.floor((E-S)/2+S);return C}function g(k,A){var S=k.length>A.length?k:A,E=k.length>A.length?A:k;if(S.length<4||E.length*2<S.length)return null;function C(H,K,Y){for(var O=H.substring(Y,Y+Math.floor(H.length/4)),T=-1,V="",L,X,J,W;(T=K.indexOf(O,T+1))!=-1;){var G=m(H.substring(Y),K.substring(T)),ee=p(H.substring(0,Y),K.substring(0,T));V.length<ee+G&&(V=K.substring(T-ee,T)+K.substring(T,T+G),L=H.substring(0,Y-ee),X=H.substring(Y+G),J=K.substring(0,T-ee),W=K.substring(T+G))}return V.length*2>=H.length?[L,X,J,W,V]:null}var B=C(S,E,Math.ceil(S.length/4)),D=C(S,E,Math.ceil(S.length/2)),F;if(!B&&!D)return null;D?B?F=B[4].length>D[4].length?B:D:F=D:F=B;var R,z,q,U;k.length>A.length?(R=F[0],z=F[1],q=F[2],U=F[3]):(q=F[0],U=F[1],R=F[2],z=F[3]);var Q=F[4];return[R,z,q,U,Q]}function b(k){k.push([o,""]);for(var A=0,S=0,E=0,C="",B="",D;A<k.length;)switch(k[A][0]){case a:E++,B+=k[A][1],A++;break;case s:S++,C+=k[A][1],A++;break;case o:S+E>1?(S!==0&&E!==0&&(D=m(B,C),D!==0&&(A-S-E>0&&k[A-S-E-1][0]==o?k[A-S-E-1][1]+=B.substring(0,D):(k.splice(0,0,[o,B.substring(0,D)]),A++),B=B.substring(D),C=C.substring(D)),D=p(B,C),D!==0&&(k[A][1]=B.substring(B.length-D)+k[A][1],B=B.substring(0,B.length-D),C=C.substring(0,C.length-D))),S===0?k.splice(A-E,S+E,[a,B]):E===0?k.splice(A-S,S+E,[s,C]):k.splice(A-S-E,S+E,[s,C],[a,B]),A=A-S-E+(S?1:0)+(E?1:0)+1):A!==0&&k[A-1][0]==o?(k[A-1][1]+=k[A][1],k.splice(A,1)):A++,E=0,S=0,C="",B="";break}k[k.length-1][1]===""&&k.pop();var F=!1;for(A=1;A<k.length-1;)k[A-1][0]==o&&k[A+1][0]==o&&(k[A][1].substring(k[A][1].length-k[A-1][1].length)==k[A-1][1]?(k[A][1]=k[A-1][1]+k[A][1].substring(0,k[A][1].length-k[A-1][1].length),k[A+1][1]=k[A-1][1]+k[A+1][1],k.splice(A-1,1),F=!0):k[A][1].substring(0,k[A+1][1].length)==k[A+1][1]&&(k[A-1][1]+=k[A+1][1],k[A][1]=k[A][1].substring(k[A+1][1].length)+k[A+1][1],k.splice(A+1,1),F=!0)),A++;F&&b(k)}var j=c;j.INSERT=a,j.DELETE=s,j.EQUAL=o,r.exports=j;function y(k,A){if(A===0)return[o,k];for(var S=0,E=0;E<k.length;E++){var C=k[E];if(C[0]===s||C[0]===o){var B=S+C[1].length;if(A===B)return[E+1,k];if(A<B){k=k.slice();var D=A-S,F=[C[0],C[1].slice(0,D)],R=[C[0],C[1].slice(D)];return k.splice(E,1,F,R),[E+1,k]}else S=B}}throw new Error("cursor_pos is out of bounds!")}function x(k,A){var S=y(k,A),E=S[1],C=S[0],B=E[C],D=E[C+1];if(B==null)return k;if(B[0]!==o)return k;if(D!=null&&B[1]+D[1]===D[1]+B[1])return E.splice(C,2,D,B),w(E,C,2);if(D!=null&&D[1].indexOf(B[1])===0){E.splice(C,2,[D[0],B[1]],[0,B[1]]);var F=D[1].slice(B[1].length);return F.length>0&&E.splice(C+2,0,[D[0],F]),w(E,C,3)}else return k}function N(k){for(var A=!1,S=function(D){return D.charCodeAt(0)>=56320&&D.charCodeAt(0)<=57343},E=function(D){return D.charCodeAt(D.length-1)>=55296&&D.charCodeAt(D.length-1)<=56319},C=2;C<k.length;C+=1)k[C-2][0]===o&&E(k[C-2][1])&&k[C-1][0]===s&&S(k[C-1][1])&&k[C][0]===a&&S(k[C][1])&&(A=!0,k[C-1][1]=k[C-2][1].slice(-1)+k[C-1][1],k[C][1]=k[C-2][1].slice(-1)+k[C][1],k[C-2][1]=k[C-2][1].slice(0,-1));if(!A)return k;for(var B=[],C=0;C<k.length;C+=1)k[C][1].length>0&&B.push(k[C]);return B}function w(k,A,S){for(var E=A+S-1;E>=0&&E>=A-1;E--)if(E+1<k.length){var C=k[E],B=k[E+1];C[0]===B[1]&&k.splice(E,2,[C[0],C[1]+B[1]])}return k}}),(function(r,i){i=r.exports=typeof Object.keys=="function"?Object.keys:s,i.shim=s;function s(a){var o=[];for(var c in a)o.push(c);return o}}),(function(r,i){var s=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";i=r.exports=s?a:o,i.supported=a;function a(c){return Object.prototype.toString.call(c)=="[object Arguments]"}i.unsupported=o;function o(c){return c&&typeof c=="object"&&typeof c.length=="number"&&Object.prototype.hasOwnProperty.call(c,"callee")&&!Object.prototype.propertyIsEnumerable.call(c,"callee")||!1}}),(function(r,i){var s=Object.prototype.hasOwnProperty,a="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(a=!1));function c(h,f,m){this.fn=h,this.context=f,this.once=m||!1}function d(){this._events=new o,this._eventsCount=0}d.prototype.eventNames=function(){var f=[],m,p;if(this._eventsCount===0)return f;for(p in m=this._events)s.call(m,p)&&f.push(a?p.slice(1):p);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(m)):f},d.prototype.listeners=function(f,m){var p=a?a+f:f,g=this._events[p];if(m)return!!g;if(!g)return[];if(g.fn)return[g.fn];for(var b=0,j=g.length,y=new Array(j);b<j;b++)y[b]=g[b].fn;return y},d.prototype.emit=function(f,m,p,g,b,j){var y=a?a+f:f;if(!this._events[y])return!1;var x=this._events[y],N=arguments.length,w,k;if(x.fn){switch(x.once&&this.removeListener(f,x.fn,void 0,!0),N){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,m),!0;case 3:return x.fn.call(x.context,m,p),!0;case 4:return x.fn.call(x.context,m,p,g),!0;case 5:return x.fn.call(x.context,m,p,g,b),!0;case 6:return x.fn.call(x.context,m,p,g,b,j),!0}for(k=1,w=new Array(N-1);k<N;k++)w[k-1]=arguments[k];x.fn.apply(x.context,w)}else{var A=x.length,S;for(k=0;k<A;k++)switch(x[k].once&&this.removeListener(f,x[k].fn,void 0,!0),N){case 1:x[k].fn.call(x[k].context);break;case 2:x[k].fn.call(x[k].context,m);break;case 3:x[k].fn.call(x[k].context,m,p);break;case 4:x[k].fn.call(x[k].context,m,p,g);break;default:if(!w)for(S=1,w=new Array(N-1);S<N;S++)w[S-1]=arguments[S];x[k].fn.apply(x[k].context,w)}}return!0},d.prototype.on=function(f,m,p){var g=new c(m,p||this),b=a?a+f:f;return this._events[b]?this._events[b].fn?this._events[b]=[this._events[b],g]:this._events[b].push(g):(this._events[b]=g,this._eventsCount++),this},d.prototype.once=function(f,m,p){var g=new c(m,p||this,!0),b=a?a+f:f;return this._events[b]?this._events[b].fn?this._events[b]=[this._events[b],g]:this._events[b].push(g):(this._events[b]=g,this._eventsCount++),this},d.prototype.removeListener=function(f,m,p,g){var b=a?a+f:f;if(!this._events[b])return this;if(!m)return--this._eventsCount===0?this._events=new o:delete this._events[b],this;var j=this._events[b];if(j.fn)j.fn===m&&(!g||j.once)&&(!p||j.context===p)&&(--this._eventsCount===0?this._events=new o:delete this._events[b]);else{for(var y=0,x=[],N=j.length;y<N;y++)(j[y].fn!==m||g&&!j[y].once||p&&j[y].context!==p)&&x.push(j[y]);x.length?this._events[b]=x.length===1?x[0]:x:--this._eventsCount===0?this._events=new o:delete this._events[b]}return this},d.prototype.removeAllListeners=function(f){var m;return f?(m=a?a+f:f,this._events[m]&&(--this._eventsCount===0?this._events=new o:delete this._events[m])):(this._events=new o,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prototype.setMaxListeners=function(){return this},d.prefixed=a,d.EventEmitter=d,typeof r<"u"&&(r.exports=d)}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.matchText=i.matchSpacing=i.matchNewline=i.matchBlot=i.matchAttributor=i.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ge){return typeof ge}:function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},o=(function(){function ge(ve,Se){var Oe=[],je=!0,tt=!1,et=void 0;try{for(var rt=ve[Symbol.iterator](),xe;!(je=(xe=rt.next()).done)&&(Oe.push(xe.value),!(Se&&Oe.length===Se));je=!0);}catch(_e){tt=!0,et=_e}finally{try{!je&&rt.return&&rt.return()}finally{if(tt)throw et}}return Oe}return function(ve,Se){if(Array.isArray(ve))return ve;if(Symbol.iterator in Object(ve))return ge(ve,Se);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function ge(ve,Se){for(var Oe=0;Oe<Se.length;Oe++){var je=Se[Oe];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(ve,je.key,je)}}return function(ve,Se,Oe){return Se&&ge(ve.prototype,Se),Oe&&ge(ve,Oe),ve}})(),d=s(3),h=R(d),f=s(2),m=R(f),p=s(0),g=R(p),b=s(5),j=R(b),y=s(10),x=R(y),N=s(9),w=R(N),k=s(36),A=s(37),S=s(13),E=R(S),C=s(26),B=s(38),D=s(39),F=s(40);function R(ge){return ge&&ge.__esModule?ge:{default:ge}}function z(ge,ve,Se){return ve in ge?Object.defineProperty(ge,ve,{value:Se,enumerable:!0,configurable:!0,writable:!0}):ge[ve]=Se,ge}function q(ge,ve){if(!(ge instanceof ve))throw new TypeError("Cannot call a class as a function")}function U(ge,ve){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:ge}function Q(ge,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);ge.prototype=Object.create(ve&&ve.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,ve):ge.__proto__=ve)}var H=(0,x.default)("quill:clipboard"),K="__ql-matcher",Y=[[Node.TEXT_NODE,nt],[Node.TEXT_NODE,Te],["br",ye],[Node.ELEMENT_NODE,Te],[Node.ELEMENT_NODE,le],[Node.ELEMENT_NODE,We],[Node.ELEMENT_NODE,ne],[Node.ELEMENT_NODE,ut],["li",Pe],["b",ee.bind(ee,"bold")],["i",ee.bind(ee,"italic")],["style",be]],O=[k.AlignAttribute,B.DirectionAttribute].reduce(function(ge,ve){return ge[ve.keyName]=ve,ge},{}),T=[k.AlignStyle,A.BackgroundStyle,C.ColorStyle,B.DirectionStyle,D.FontStyle,F.SizeStyle].reduce(function(ge,ve){return ge[ve.keyName]=ve,ge},{}),V=(function(ge){Q(ve,ge);function ve(Se,Oe){q(this,ve);var je=U(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,Se,Oe));return je.quill.root.addEventListener("paste",je.onPaste.bind(je)),je.container=je.quill.addContainer("ql-clipboard"),je.container.setAttribute("contenteditable",!0),je.container.setAttribute("tabindex",-1),je.matchers=[],Y.concat(je.options.matchers).forEach(function(tt){var et=o(tt,2),rt=et[0],xe=et[1];!Oe.matchVisual&&xe===We||je.addMatcher(rt,xe)}),je}return c(ve,[{key:"addMatcher",value:function(Oe,je){this.matchers.push([Oe,je])}},{key:"convert",value:function(Oe){if(typeof Oe=="string")return this.container.innerHTML=Oe.replace(/\>\r?\n +\</g,"><"),this.convert();var je=this.quill.getFormat(this.quill.selection.savedRange.index);if(je[E.default.blotName]){var tt=this.container.innerText;return this.container.innerHTML="",new m.default().insert(tt,z({},E.default.blotName,je[E.default.blotName]))}var et=this.prepareMatching(),rt=o(et,2),xe=rt[0],_e=rt[1],De=G(this.container,xe,_e);return J(De,`
`)&&De.ops[De.ops.length-1].attributes==null&&(De=De.compose(new m.default().retain(De.length()-1).delete(1))),H.log("convert",this.container.innerHTML,De),this.container.innerHTML="",De}},{key:"dangerouslyPasteHTML",value:function(Oe,je){var tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j.default.sources.API;if(typeof Oe=="string")this.quill.setContents(this.convert(Oe),je),this.quill.setSelection(0,j.default.sources.SILENT);else{var et=this.convert(je);this.quill.updateContents(new m.default().retain(Oe).concat(et),tt),this.quill.setSelection(Oe+et.length(),j.default.sources.SILENT)}}},{key:"onPaste",value:function(Oe){var je=this;if(!(Oe.defaultPrevented||!this.quill.isEnabled())){var tt=this.quill.getSelection(),et=new m.default().retain(tt.index),rt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(j.default.sources.SILENT),setTimeout(function(){et=et.concat(je.convert()).delete(tt.length),je.quill.updateContents(et,j.default.sources.USER),je.quill.setSelection(et.length()-tt.length,j.default.sources.SILENT),je.quill.scrollingContainer.scrollTop=rt,je.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Oe=this,je=[],tt=[];return this.matchers.forEach(function(et){var rt=o(et,2),xe=rt[0],_e=rt[1];switch(xe){case Node.TEXT_NODE:tt.push(_e);break;case Node.ELEMENT_NODE:je.push(_e);break;default:[].forEach.call(Oe.container.querySelectorAll(xe),function(De){De[K]=De[K]||[],De[K].push(_e)});break}}),[je,tt]}}]),ve})(w.default);V.DEFAULTS={matchers:[],matchVisual:!0};function L(ge,ve,Se){return(typeof ve>"u"?"undefined":a(ve))==="object"?Object.keys(ve).reduce(function(Oe,je){return L(Oe,je,ve[je])},ge):ge.reduce(function(Oe,je){return je.attributes&&je.attributes[ve]?Oe.push(je):Oe.insert(je.insert,(0,h.default)({},z({},ve,Se),je.attributes))},new m.default)}function X(ge){if(ge.nodeType!==Node.ELEMENT_NODE)return{};var ve="__ql-computed-style";return ge[ve]||(ge[ve]=window.getComputedStyle(ge))}function J(ge,ve){for(var Se="",Oe=ge.ops.length-1;Oe>=0&&Se.length<ve.length;--Oe){var je=ge.ops[Oe];if(typeof je.insert!="string")break;Se=je.insert+Se}return Se.slice(-1*ve.length)===ve}function W(ge){if(ge.childNodes.length===0)return!1;var ve=X(ge);return["block","list-item"].indexOf(ve.display)>-1}function G(ge,ve,Se){return ge.nodeType===ge.TEXT_NODE?Se.reduce(function(Oe,je){return je(ge,Oe)},new m.default):ge.nodeType===ge.ELEMENT_NODE?[].reduce.call(ge.childNodes||[],function(Oe,je){var tt=G(je,ve,Se);return je.nodeType===ge.ELEMENT_NODE&&(tt=ve.reduce(function(et,rt){return rt(je,et)},tt),tt=(je[K]||[]).reduce(function(et,rt){return rt(je,et)},tt)),Oe.concat(tt)},new m.default):new m.default}function ee(ge,ve,Se){return L(Se,ge,!0)}function ne(ge,ve){var Se=g.default.Attributor.Attribute.keys(ge),Oe=g.default.Attributor.Class.keys(ge),je=g.default.Attributor.Style.keys(ge),tt={};return Se.concat(Oe).concat(je).forEach(function(et){var rt=g.default.query(et,g.default.Scope.ATTRIBUTE);rt!=null&&(tt[rt.attrName]=rt.value(ge),tt[rt.attrName])||(rt=O[et],rt!=null&&(rt.attrName===et||rt.keyName===et)&&(tt[rt.attrName]=rt.value(ge)||void 0),rt=T[et],rt!=null&&(rt.attrName===et||rt.keyName===et)&&(rt=T[et],tt[rt.attrName]=rt.value(ge)||void 0))}),Object.keys(tt).length>0&&(ve=L(ve,tt)),ve}function le(ge,ve){var Se=g.default.query(ge);if(Se==null)return ve;if(Se.prototype instanceof g.default.Embed){var Oe={},je=Se.value(ge);je!=null&&(Oe[Se.blotName]=je,ve=new m.default().insert(Oe,Se.formats(ge)))}else typeof Se.formats=="function"&&(ve=L(ve,Se.blotName,Se.formats(ge)));return ve}function ye(ge,ve){return J(ve,`
`)||ve.insert(`
`),ve}function be(){return new m.default}function Pe(ge,ve){var Se=g.default.query(ge);if(Se==null||Se.blotName!=="list-item"||!J(ve,`
`))return ve;for(var Oe=-1,je=ge.parentNode;!je.classList.contains("ql-clipboard");)(g.default.query(je)||{}).blotName==="list"&&(Oe+=1),je=je.parentNode;return Oe<=0?ve:ve.compose(new m.default().retain(ve.length()-1).retain(1,{indent:Oe}))}function Te(ge,ve){return J(ve,`
`)||(W(ge)||ve.length()>0&&ge.nextSibling&&W(ge.nextSibling))&&ve.insert(`
`),ve}function We(ge,ve){if(W(ge)&&ge.nextElementSibling!=null&&!J(ve,`

`)){var Se=ge.offsetHeight+parseFloat(X(ge).marginTop)+parseFloat(X(ge).marginBottom);ge.nextElementSibling.offsetTop>ge.offsetTop+Se*1.5&&ve.insert(`
`)}return ve}function ut(ge,ve){var Se={},Oe=ge.style||{};return Oe.fontStyle&&X(ge).fontStyle==="italic"&&(Se.italic=!0),Oe.fontWeight&&(X(ge).fontWeight.startsWith("bold")||parseInt(X(ge).fontWeight)>=700)&&(Se.bold=!0),Object.keys(Se).length>0&&(ve=L(ve,Se)),parseFloat(Oe.textIndent||0)>0&&(ve=new m.default().insert("	").concat(ve)),ve}function nt(ge,ve){var Se=ge.data;if(ge.parentNode.tagName==="O:P")return ve.insert(Se.trim());if(Se.trim().length===0&&ge.parentNode.classList.contains("ql-clipboard"))return ve;if(!X(ge.parentNode).whiteSpace.startsWith("pre")){var Oe=function(tt,et){return et=et.replace(/[^\u00a0]/g,""),et.length<1&&tt?" ":et};Se=Se.replace(/\r\n/g," ").replace(/\n/g," "),Se=Se.replace(/\s\s+/g,Oe.bind(Oe,!0)),(ge.previousSibling==null&&W(ge.parentNode)||ge.previousSibling!=null&&W(ge.previousSibling))&&(Se=Se.replace(/^\s+/,Oe.bind(Oe,!1))),(ge.nextSibling==null&&W(ge.parentNode)||ge.nextSibling!=null&&W(ge.nextSibling))&&(Se=Se.replace(/\s+$/,Oe.bind(Oe,!1)))}return ve.insert(Se)}i.default=V,i.matchAttributor=ne,i.matchBlot=le,i.matchNewline=Te,i.matchSpacing=We,i.matchText=nt}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(j,y){for(var x=0;x<y.length;x++){var N=y[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,y,x){return y&&b(j.prototype,y),x&&b(j,x),j}})(),o=function b(j,y,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,y);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,y,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(6),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function f(b,j){if(!(b instanceof j))throw new TypeError("Cannot call a class as a function")}function m(b,j){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:b}function p(b,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);b.prototype=Object.create(j&&j.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(b,j):b.__proto__=j)}var g=(function(b){p(j,b);function j(){return f(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return a(j,[{key:"optimize",value:function(x){o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"optimize",this).call(this,x),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(j.__proto__||Object.getPrototypeOf(j),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),j})(d.default);g.blotName="bold",g.tagName=["STRONG","B"],i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.addControls=i.default=void 0;var a=(function(){function F(R,z){var q=[],U=!0,Q=!1,H=void 0;try{for(var K=R[Symbol.iterator](),Y;!(U=(Y=K.next()).done)&&(q.push(Y.value),!(z&&q.length===z));U=!0);}catch(O){Q=!0,H=O}finally{try{!U&&K.return&&K.return()}finally{if(Q)throw H}}return q}return function(R,z){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return F(R,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function F(R,z){for(var q=0;q<z.length;q++){var U=z[q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(R,U.key,U)}}return function(R,z,q){return z&&F(R.prototype,z),q&&F(R,q),R}})(),c=s(2),d=x(c),h=s(0),f=x(h),m=s(5),p=x(m),g=s(10),b=x(g),j=s(9),y=x(j);function x(F){return F&&F.__esModule?F:{default:F}}function N(F,R,z){return R in F?Object.defineProperty(F,R,{value:z,enumerable:!0,configurable:!0,writable:!0}):F[R]=z,F}function w(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}function k(F,R){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:F}function A(F,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);F.prototype=Object.create(R&&R.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(F,R):F.__proto__=R)}var S=(0,b.default)("quill:toolbar"),E=(function(F){A(R,F);function R(z,q){w(this,R);var U=k(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,z,q));if(Array.isArray(U.options.container)){var Q=document.createElement("div");B(Q,U.options.container),z.container.parentNode.insertBefore(Q,z.container),U.container=Q}else typeof U.options.container=="string"?U.container=document.querySelector(U.options.container):U.container=U.options.container;if(!(U.container instanceof HTMLElement)){var H;return H=S.error("Container required for toolbar",U.options),k(U,H)}return U.container.classList.add("ql-toolbar"),U.controls=[],U.handlers={},Object.keys(U.options.handlers).forEach(function(K){U.addHandler(K,U.options.handlers[K])}),[].forEach.call(U.container.querySelectorAll("button, select"),function(K){U.attach(K)}),U.quill.on(p.default.events.EDITOR_CHANGE,function(K,Y){K===p.default.events.SELECTION_CHANGE&&U.update(Y)}),U.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){var K=U.quill.selection.getRange(),Y=a(K,1),O=Y[0];U.update(O)}),U}return o(R,[{key:"addHandler",value:function(q,U){this.handlers[q]=U}},{key:"attach",value:function(q){var U=this,Q=[].find.call(q.classList,function(K){return K.indexOf("ql-")===0});if(Q){if(Q=Q.slice(3),q.tagName==="BUTTON"&&q.setAttribute("type","button"),this.handlers[Q]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Q]==null){S.warn("ignoring attaching to disabled format",Q,q);return}if(f.default.query(Q)==null){S.warn("ignoring attaching to nonexistent format",Q,q);return}}var H=q.tagName==="SELECT"?"change":"click";q.addEventListener(H,function(K){var Y=void 0;if(q.tagName==="SELECT"){if(q.selectedIndex<0)return;var O=q.options[q.selectedIndex];O.hasAttribute("selected")?Y=!1:Y=O.value||!1}else q.classList.contains("ql-active")?Y=!1:Y=q.value||!q.hasAttribute("value"),K.preventDefault();U.quill.focus();var T=U.quill.selection.getRange(),V=a(T,1),L=V[0];if(U.handlers[Q]!=null)U.handlers[Q].call(U,Y);else if(f.default.query(Q).prototype instanceof f.default.Embed){if(Y=prompt("Enter "+Q),!Y)return;U.quill.updateContents(new d.default().retain(L.index).delete(L.length).insert(N({},Q,Y)),p.default.sources.USER)}else U.quill.format(Q,Y,p.default.sources.USER);U.update(L)}),this.controls.push([Q,q])}}},{key:"update",value:function(q){var U=q==null?{}:this.quill.getFormat(q);this.controls.forEach(function(Q){var H=a(Q,2),K=H[0],Y=H[1];if(Y.tagName==="SELECT"){var O=void 0;if(q==null)O=null;else if(U[K]==null)O=Y.querySelector("option[selected]");else if(!Array.isArray(U[K])){var T=U[K];typeof T=="string"&&(T=T.replace(/\"/g,'\\"')),O=Y.querySelector('option[value="'+T+'"]')}O==null?(Y.value="",Y.selectedIndex=-1):O.selected=!0}else if(q==null)Y.classList.remove("ql-active");else if(Y.hasAttribute("value")){var V=U[K]===Y.getAttribute("value")||U[K]!=null&&U[K].toString()===Y.getAttribute("value")||U[K]==null&&!Y.getAttribute("value");Y.classList.toggle("ql-active",V)}else Y.classList.toggle("ql-active",U[K]!=null)})}}]),R})(y.default);E.DEFAULTS={};function C(F,R,z){var q=document.createElement("button");q.setAttribute("type","button"),q.classList.add("ql-"+R),z!=null&&(q.value=z),F.appendChild(q)}function B(F,R){Array.isArray(R[0])||(R=[R]),R.forEach(function(z){var q=document.createElement("span");q.classList.add("ql-formats"),z.forEach(function(U){if(typeof U=="string")C(q,U);else{var Q=Object.keys(U)[0],H=U[Q];Array.isArray(H)?D(q,Q,H):C(q,Q,H)}}),F.appendChild(q)})}function D(F,R,z){var q=document.createElement("select");q.classList.add("ql-"+R),z.forEach(function(U){var Q=document.createElement("option");U!==!1?Q.setAttribute("value",U):Q.setAttribute("selected","selected"),q.appendChild(Q)}),F.appendChild(q)}E.DEFAULTS={container:null,handlers:{clean:function(){var R=this,z=this.quill.getSelection();if(z!=null)if(z.length==0){var q=this.quill.getFormat();Object.keys(q).forEach(function(U){f.default.query(U,f.default.Scope.INLINE)!=null&&R.quill.format(U,!1)})}else this.quill.removeFormat(z,p.default.sources.USER)},direction:function(R){var z=this.quill.getFormat().align;R==="rtl"&&z==null?this.quill.format("align","right",p.default.sources.USER):!R&&z==="right"&&this.quill.format("align",!1,p.default.sources.USER),this.quill.format("direction",R,p.default.sources.USER)},indent:function(R){var z=this.quill.getSelection(),q=this.quill.getFormat(z),U=parseInt(q.indent||0);if(R==="+1"||R==="-1"){var Q=R==="+1"?1:-1;q.direction==="rtl"&&(Q*=-1),this.quill.format("indent",U+Q,p.default.sources.USER)}},link:function(R){R===!0&&(R=prompt("Enter link URL:")),this.quill.format("link",R,p.default.sources.USER)},list:function(R){var z=this.quill.getSelection(),q=this.quill.getFormat(z);R==="check"?q.list==="checked"||q.list==="unchecked"?this.quill.format("list",!1,p.default.sources.USER):this.quill.format("list","unchecked",p.default.sources.USER):this.quill.format("list",R,p.default.sources.USER)}}},i.default=E,i.addControls=B}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(j,y){for(var x=0;x<y.length;x++){var N=y[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,y,x){return y&&b(j.prototype,y),x&&b(j,x),j}})(),o=function b(j,y,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,y);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,y,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(28),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function f(b,j){if(!(b instanceof j))throw new TypeError("Cannot call a class as a function")}function m(b,j){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:b}function p(b,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);b.prototype=Object.create(j&&j.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(b,j):b.__proto__=j)}var g=(function(b){p(j,b);function j(y,x){f(this,j);var N=m(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,y));return N.label.innerHTML=x,N.container.classList.add("ql-color-picker"),[].slice.call(N.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),N}return a(j,[{key:"buildItem",value:function(x){var N=o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"buildItem",this).call(this,x);return N.style.backgroundColor=x.getAttribute("value")||"",N}},{key:"selectItem",value:function(x,N){o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"selectItem",this).call(this,x,N);var w=this.label.querySelector(".ql-color-label"),k=x&&x.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=k:w.style.fill=k)}}]),j})(d.default);i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(j,y){for(var x=0;x<y.length;x++){var N=y[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,y,x){return y&&b(j.prototype,y),x&&b(j,x),j}})(),o=function b(j,y,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,y);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,y,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(28),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function f(b,j){if(!(b instanceof j))throw new TypeError("Cannot call a class as a function")}function m(b,j){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:b}function p(b,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);b.prototype=Object.create(j&&j.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(b,j):b.__proto__=j)}var g=(function(b){p(j,b);function j(y,x){f(this,j);var N=m(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,y));return N.container.classList.add("ql-icon-picker"),[].forEach.call(N.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=x[w.getAttribute("data-value")||""]}),N.defaultItem=N.container.querySelector(".ql-selected"),N.selectItem(N.defaultItem),N}return a(j,[{key:"selectItem",value:function(x,N){o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"selectItem",this).call(this,x,N),x=x||this.defaultItem,this.label.innerHTML=x.innerHTML}}]),j})(d.default);i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function d(h,f){for(var m=0;m<f.length;m++){var p=f[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(h,p.key,p)}}return function(h,f,m){return f&&d(h.prototype,f),m&&d(h,m),h}})();function o(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}var c=(function(){function d(h,f){var m=this;o(this,d),this.quill=h,this.boundsContainer=f||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){m.root.style.marginTop=-1*m.quill.root.scrollTop+"px"}),this.hide()}return a(d,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var m=f.left+f.width/2-this.root.offsetWidth/2,p=f.bottom+this.quill.root.scrollTop;this.root.style.left=m+"px",this.root.style.top=p+"px",this.root.classList.remove("ql-flip");var g=this.boundsContainer.getBoundingClientRect(),b=this.root.getBoundingClientRect(),j=0;if(b.right>g.right&&(j=g.right-b.right,this.root.style.left=m+j+"px"),b.left<g.left&&(j=g.left-b.left,this.root.style.left=m+j+"px"),b.bottom>g.bottom){var y=b.bottom-b.top,x=f.bottom-f.top+y;this.root.style.top=p-x+"px",this.root.classList.add("ql-flip")}return j}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),d})();i.default=c}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function D(F,R){var z=[],q=!0,U=!1,Q=void 0;try{for(var H=F[Symbol.iterator](),K;!(q=(K=H.next()).done)&&(z.push(K.value),!(R&&z.length===R));q=!0);}catch(Y){U=!0,Q=Y}finally{try{!q&&H.return&&H.return()}finally{if(U)throw Q}}return z}return function(F,R){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return D(F,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=function D(F,R,z){F===null&&(F=Function.prototype);var q=Object.getOwnPropertyDescriptor(F,R);if(q===void 0){var U=Object.getPrototypeOf(F);return U===null?void 0:D(U,R,z)}else{if("value"in q)return q.value;var Q=q.get;return Q===void 0?void 0:Q.call(z)}},c=(function(){function D(F,R){for(var z=0;z<R.length;z++){var q=R[z];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(F,q.key,q)}}return function(F,R,z){return R&&D(F.prototype,R),z&&D(F,z),F}})(),d=s(3),h=w(d),f=s(8),m=w(f),p=s(43),g=w(p),b=s(27),j=w(b),y=s(15),x=s(41),N=w(x);function w(D){return D&&D.__esModule?D:{default:D}}function k(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")}function A(D,F){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:D}function S(D,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);D.prototype=Object.create(F&&F.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(D,F):D.__proto__=F)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],C=(function(D){S(F,D);function F(R,z){k(this,F),z.modules.toolbar!=null&&z.modules.toolbar.container==null&&(z.modules.toolbar.container=E);var q=A(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,R,z));return q.quill.container.classList.add("ql-snow"),q}return c(F,[{key:"extendToolbar",value:function(z){z.container.classList.add("ql-snow"),this.buildButtons([].slice.call(z.container.querySelectorAll("button")),N.default),this.buildPickers([].slice.call(z.container.querySelectorAll("select")),N.default),this.tooltip=new B(this.quill,this.options.bounds),z.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(q,U){z.handlers.link.call(z,!U.format.link)})}}]),F})(g.default);C.DEFAULTS=(0,h.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(F){if(F){var R=this.quill.getSelection();if(R==null||R.length==0)return;var z=this.quill.getText(R);/^\S+@\S+\.\S+$/.test(z)&&z.indexOf("mailto:")!==0&&(z="mailto:"+z);var q=this.quill.theme.tooltip;q.edit("link",z)}else this.quill.format("link",!1)}}}}});var B=(function(D){S(F,D);function F(R,z){k(this,F);var q=A(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,R,z));return q.preview=q.root.querySelector("a.ql-preview"),q}return c(F,[{key:"listen",value:function(){var z=this;o(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(q){z.root.classList.contains("ql-editing")?z.save():z.edit("link",z.preview.textContent),q.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(q){if(z.linkRange!=null){var U=z.linkRange;z.restoreFocus(),z.quill.formatText(U,"link",!1,m.default.sources.USER),delete z.linkRange}q.preventDefault(),z.hide()}),this.quill.on(m.default.events.SELECTION_CHANGE,function(q,U,Q){if(q!=null){if(q.length===0&&Q===m.default.sources.USER){var H=z.quill.scroll.descendant(j.default,q.index),K=a(H,2),Y=K[0],O=K[1];if(Y!=null){z.linkRange=new y.Range(q.index-O,Y.length());var T=j.default.formats(Y.domNode);z.preview.textContent=T,z.preview.setAttribute("href",T),z.show(),z.position(z.quill.getBounds(z.linkRange));return}}else delete z.linkRange;z.hide()}})}},{key:"show",value:function(){o(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),F})(p.BaseTooltip);B.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),i.default=C}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(29),o=je(a),c=s(36),d=s(38),h=s(64),f=s(65),m=je(f),p=s(66),g=je(p),b=s(67),j=je(b),y=s(37),x=s(26),N=s(39),w=s(40),k=s(56),A=je(k),S=s(68),E=je(S),C=s(27),B=je(C),D=s(69),F=je(D),R=s(70),z=je(R),q=s(71),U=je(q),Q=s(72),H=je(Q),K=s(73),Y=je(K),O=s(13),T=je(O),V=s(74),L=je(V),X=s(75),J=je(X),W=s(57),G=je(W),ee=s(41),ne=je(ee),le=s(28),ye=je(le),be=s(59),Pe=je(be),Te=s(60),We=je(Te),ut=s(61),nt=je(ut),ge=s(108),ve=je(ge),Se=s(62),Oe=je(Se);function je(tt){return tt&&tt.__esModule?tt:{default:tt}}o.default.register({"attributors/attribute/direction":d.DirectionAttribute,"attributors/class/align":c.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":x.ColorClass,"attributors/class/direction":d.DirectionClass,"attributors/class/font":N.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":c.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":x.ColorStyle,"attributors/style/direction":d.DirectionStyle,"attributors/style/font":N.FontStyle,"attributors/style/size":w.SizeStyle},!0),o.default.register({"formats/align":c.AlignClass,"formats/direction":d.DirectionClass,"formats/indent":h.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":x.ColorStyle,"formats/font":N.FontClass,"formats/size":w.SizeClass,"formats/blockquote":m.default,"formats/code-block":T.default,"formats/header":g.default,"formats/list":j.default,"formats/bold":A.default,"formats/code":O.Code,"formats/italic":E.default,"formats/link":B.default,"formats/script":F.default,"formats/strike":z.default,"formats/underline":U.default,"formats/image":H.default,"formats/video":Y.default,"formats/list/item":b.ListItem,"modules/formula":L.default,"modules/syntax":J.default,"modules/toolbar":G.default,"themes/bubble":ve.default,"themes/snow":Oe.default,"ui/icons":ne.default,"ui/picker":ye.default,"ui/icon-picker":We.default,"ui/color-picker":Pe.default,"ui/tooltip":nt.default},!0),i.default=o.default}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.IndentClass=void 0;var a=(function(){function j(y,x){for(var N=0;N<x.length;N++){var w=x[N];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,x,N){return x&&j(y.prototype,x),N&&j(y,N),y}})(),o=function j(y,x,N){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,x);if(w===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:j(k,x,N)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(N)}},c=s(0),d=h(c);function h(j){return j&&j.__esModule?j:{default:j}}function f(j,y){if(!(j instanceof y))throw new TypeError("Cannot call a class as a function")}function m(j,y){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:j}function p(j,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);j.prototype=Object.create(y&&y.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(j,y):j.__proto__=y)}var g=(function(j){p(y,j);function y(){return f(this,y),m(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"add",value:function(N,w){if(w==="+1"||w==="-1"){var k=this.value(N)||0;w=w==="+1"?k+1:k-1}return w===0?(this.remove(N),!0):o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,N,w)}},{key:"canAdd",value:function(N,w){return o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,N,w)||o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,N,parseInt(w))}},{key:"value",value:function(N){return parseInt(o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,N))||void 0}}]),y})(d.default.Attributor.Class),b=new g("indent","ql-indent",{scope:d.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});i.IndentClass=b}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(4),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){f(g,p);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default);m.blotName="blockquote",m.tagName="blockquote",i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function g(b,j){for(var y=0;y<j.length;y++){var x=j[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(b,x.key,x)}}return function(b,j,y){return j&&g(b.prototype,j),y&&g(b,y),b}})(),o=s(4),c=d(o);function d(g){return g&&g.__esModule?g:{default:g}}function h(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function f(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:g}function m(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var p=(function(g){m(b,g);function b(){return h(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),b})(c.default);p.blotName="header",p.tagName=["H1","H2","H3","H4","H5","H6"],i.default=p}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.ListItem=void 0;var a=(function(){function k(A,S){for(var E=0;E<S.length;E++){var C=S[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(A,C.key,C)}}return function(A,S,E){return S&&k(A.prototype,S),E&&k(A,E),A}})(),o=function k(A,S,E){A===null&&(A=Function.prototype);var C=Object.getOwnPropertyDescriptor(A,S);if(C===void 0){var B=Object.getPrototypeOf(A);return B===null?void 0:k(B,S,E)}else{if("value"in C)return C.value;var D=C.get;return D===void 0?void 0:D.call(E)}},c=s(0),d=g(c),h=s(4),f=g(h),m=s(25),p=g(m);function g(k){return k&&k.__esModule?k:{default:k}}function b(k,A,S){return A in k?Object.defineProperty(k,A,{value:S,enumerable:!0,configurable:!0,writable:!0}):k[A]=S,k}function j(k,A){if(!(k instanceof A))throw new TypeError("Cannot call a class as a function")}function y(k,A){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:k}function x(k,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);k.prototype=Object.create(A&&A.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(k,A):k.__proto__=A)}var N=(function(k){x(A,k);function A(){return j(this,A),y(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return a(A,[{key:"format",value:function(E,C){E===w.blotName&&!C?this.replaceWith(d.default.create(this.statics.scope)):o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,E,C)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,C){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,C),this):(this.parent.unwrap(),o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,E,C))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:o(A.__proto__||Object.getPrototypeOf(A),"formats",this).call(this,E)}}]),A})(f.default);N.blotName="list-item",N.tagName="LI";var w=(function(k){x(A,k),a(A,null,[{key:"create",value:function(E){var C=E==="ordered"?"OL":"UL",B=o(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,C);return(E==="checked"||E==="unchecked")&&B.setAttribute("data-checked",E==="checked"),B}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function A(S){j(this,A);var E=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,S)),C=function(D){if(D.target.parentNode===S){var F=E.statics.formats(S),R=d.default.find(D.target);F==="checked"?R.format("list","unchecked"):F==="unchecked"&&R.format("list","checked")}};return S.addEventListener("touchstart",C),S.addEventListener("mousedown",C),E}return a(A,[{key:"format",value:function(E,C){this.children.length>0&&this.children.tail.format(E,C)}},{key:"formats",value:function(){return b({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,C){if(E instanceof N)o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,E,C);else{var B=C==null?this.length():C.offset(this),D=this.split(B);D.parent.insertBefore(E,D)}}},{key:"optimize",value:function(E){o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,E);var C=this.next;C!=null&&C.prev===this&&C.statics.blotName===this.statics.blotName&&C.domNode.tagName===this.domNode.tagName&&C.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(C.moveChildren(this),C.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var C=d.default.create(this.statics.defaultChild);E.moveChildren(C),this.appendChild(C)}o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,E)}}]),A})(p.default);w.blotName="list",w.scope=d.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[N],i.ListItem=N,i.default=w}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(56),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){f(g,p);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default);m.blotName="italic",m.tagName=["EM","I"],i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(j,y){for(var x=0;x<y.length;x++){var N=y[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,y,x){return y&&b(j.prototype,y),x&&b(j,x),j}})(),o=function b(j,y,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,y);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,y,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(6),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function f(b,j){if(!(b instanceof j))throw new TypeError("Cannot call a class as a function")}function m(b,j){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:b}function p(b,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);b.prototype=Object.create(j&&j.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(b,j):b.__proto__=j)}var g=(function(b){p(j,b);function j(){return f(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return a(j,null,[{key:"create",value:function(x){return x==="super"?document.createElement("sup"):x==="sub"?document.createElement("sub"):o(j.__proto__||Object.getPrototypeOf(j),"create",this).call(this,x)}},{key:"formats",value:function(x){if(x.tagName==="SUB")return"sub";if(x.tagName==="SUP")return"super"}}]),j})(d.default);g.blotName="script",g.tagName=["SUB","SUP"],i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(6),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){f(g,p);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default);m.blotName="strike",m.tagName="S",i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(6),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){f(g,p);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default);m.blotName="underline",m.tagName="U",i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function y(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&y(x.prototype,N),w&&y(x,w),x}})(),o=function y(x,N,w){x===null&&(x=Function.prototype);var k=Object.getOwnPropertyDescriptor(x,N);if(k===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:y(A,N,w)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(w)}},c=s(0),d=f(c),h=s(27);function f(y){return y&&y.__esModule?y:{default:y}}function m(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}function p(y,x){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:y}function g(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}var b=["alt","height","width"],j=(function(y){g(x,y);function x(){return m(this,x),p(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"format",value:function(w,k){b.indexOf(w)>-1?k?this.domNode.setAttribute(w,k):this.domNode.removeAttribute(w):o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,w,k)}}],[{key:"create",value:function(w){var k=o(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,w);return typeof w=="string"&&k.setAttribute("src",this.sanitize(w)),k}},{key:"formats",value:function(w){return b.reduce(function(k,A){return w.hasAttribute(A)&&(k[A]=w.getAttribute(A)),k},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,h.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),x})(d.default.Embed);j.blotName="image",j.tagName="IMG",i.default=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function y(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&y(x.prototype,N),w&&y(x,w),x}})(),o=function y(x,N,w){x===null&&(x=Function.prototype);var k=Object.getOwnPropertyDescriptor(x,N);if(k===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:y(A,N,w)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(w)}},c=s(4),d=s(27),h=f(d);function f(y){return y&&y.__esModule?y:{default:y}}function m(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}function p(y,x){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:y}function g(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}var b=["height","width"],j=(function(y){g(x,y);function x(){return m(this,x),p(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"format",value:function(w,k){b.indexOf(w)>-1?k?this.domNode.setAttribute(w,k):this.domNode.removeAttribute(w):o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,w,k)}}],[{key:"create",value:function(w){var k=o(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,w);return k.setAttribute("frameborder","0"),k.setAttribute("allowfullscreen",!0),k.setAttribute("src",this.sanitize(w)),k}},{key:"formats",value:function(w){return b.reduce(function(k,A){return w.hasAttribute(A)&&(k[A]=w.getAttribute(A)),k},{})}},{key:"sanitize",value:function(w){return h.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),x})(c.BlockEmbed);j.blotName="video",j.className="ql-video",j.tagName="IFRAME",i.default=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.FormulaBlot=void 0;var a=(function(){function w(k,A){for(var S=0;S<A.length;S++){var E=A[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,A,S){return A&&w(k.prototype,A),S&&w(k,S),k}})(),o=function w(k,A,S){k===null&&(k=Function.prototype);var E=Object.getOwnPropertyDescriptor(k,A);if(E===void 0){var C=Object.getPrototypeOf(k);return C===null?void 0:w(C,A,S)}else{if("value"in E)return E.value;var B=E.get;return B===void 0?void 0:B.call(S)}},c=s(35),d=g(c),h=s(5),f=g(h),m=s(9),p=g(m);function g(w){return w&&w.__esModule?w:{default:w}}function b(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")}function j(w,k){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:w}function y(w,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);w.prototype=Object.create(k&&k.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(w,k):w.__proto__=k)}var x=(function(w){y(k,w);function k(){return b(this,k),j(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return a(k,null,[{key:"create",value:function(S){var E=o(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",S)),E}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),k})(d.default);x.blotName="formula",x.className="ql-formula",x.tagName="SPAN";var N=(function(w){y(k,w),a(k,null,[{key:"register",value:function(){f.default.register(x,!0)}}]);function k(){b(this,k);var A=j(this,(k.__proto__||Object.getPrototypeOf(k)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return A}return k})(p.default);i.FormulaBlot=x,i.default=N}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.CodeToken=i.CodeBlock=void 0;var a=(function(){function S(E,C){for(var B=0;B<C.length;B++){var D=C[B];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,D.key,D)}}return function(E,C,B){return C&&S(E.prototype,C),B&&S(E,B),E}})(),o=function S(E,C,B){E===null&&(E=Function.prototype);var D=Object.getOwnPropertyDescriptor(E,C);if(D===void 0){var F=Object.getPrototypeOf(E);return F===null?void 0:S(F,C,B)}else{if("value"in D)return D.value;var R=D.get;return R===void 0?void 0:R.call(B)}},c=s(0),d=j(c),h=s(5),f=j(h),m=s(9),p=j(m),g=s(13),b=j(g);function j(S){return S&&S.__esModule?S:{default:S}}function y(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function x(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function N(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var w=(function(S){N(E,S);function E(){return y(this,E),x(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return a(E,[{key:"replaceWith",value:function(B){this.domNode.textContent=this.domNode.textContent,this.attach(),o(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,B)}},{key:"highlight",value:function(B){var D=this.domNode.textContent;this.cachedText!==D&&((D.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=B(D),this.domNode.normalize(),this.attach()),this.cachedText=D)}}]),E})(b.default);w.className="ql-syntax";var k=new d.default.Attributor.Class("token","hljs",{scope:d.default.Scope.INLINE}),A=(function(S){N(E,S),a(E,null,[{key:"register",value:function(){f.default.register(k,!0),f.default.register(w,!0)}}]);function E(C,B){y(this,E);var D=x(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,C,B));if(typeof D.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var F=null;return D.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(F),F=setTimeout(function(){D.highlight(),F=null},D.options.interval)}),D.highlight(),D}return a(E,[{key:"highlight",value:function(){var B=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var D=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(F){F.highlight(B.options.highlight)}),this.quill.update(f.default.sources.SILENT),D!=null&&this.quill.setSelection(D,f.default.sources.SILENT)}}}]),E})(p.default);A.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(S){var E=window.hljs.highlightAuto(S);return E.value}})(),interval:1e3},i.CodeBlock=w,i.CodeToken=k,i.default=A}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(r,i){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(r,i){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(r,i){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(r,i){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BubbleTooltip=void 0;var a=function E(C,B,D){C===null&&(C=Function.prototype);var F=Object.getOwnPropertyDescriptor(C,B);if(F===void 0){var R=Object.getPrototypeOf(C);return R===null?void 0:E(R,B,D)}else{if("value"in F)return F.value;var z=F.get;return z===void 0?void 0:z.call(D)}},o=(function(){function E(C,B){for(var D=0;D<B.length;D++){var F=B[D];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(C,F.key,F)}}return function(C,B,D){return B&&E(C.prototype,B),D&&E(C,D),C}})(),c=s(3),d=y(c),h=s(8),f=y(h),m=s(43),p=y(m),g=s(15),b=s(41),j=y(b);function y(E){return E&&E.__esModule?E:{default:E}}function x(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function N(E,C){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:E}function w(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(E,C):E.__proto__=C)}var k=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=(function(E){w(C,E);function C(B,D){x(this,C),D.modules.toolbar!=null&&D.modules.toolbar.container==null&&(D.modules.toolbar.container=k);var F=N(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,B,D));return F.quill.container.classList.add("ql-bubble"),F}return o(C,[{key:"extendToolbar",value:function(D){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(D.container),this.buildButtons([].slice.call(D.container.querySelectorAll("button")),j.default),this.buildPickers([].slice.call(D.container.querySelectorAll("select")),j.default)}}]),C})(p.default);A.DEFAULTS=(0,d.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){C?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=(function(E){w(C,E);function C(B,D){x(this,C);var F=N(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,B,D));return F.quill.on(f.default.events.EDITOR_CHANGE,function(R,z,q,U){if(R===f.default.events.SELECTION_CHANGE)if(z!=null&&z.length>0&&U===f.default.sources.USER){F.show(),F.root.style.left="0px",F.root.style.width="",F.root.style.width=F.root.offsetWidth+"px";var Q=F.quill.getLines(z.index,z.length);if(Q.length===1)F.position(F.quill.getBounds(z));else{var H=Q[Q.length-1],K=F.quill.getIndex(H),Y=Math.min(H.length()-1,z.index+z.length-K),O=F.quill.getBounds(new g.Range(K,Y));F.position(O)}}else document.activeElement!==F.textbox&&F.quill.hasFocus()&&F.hide()}),F}return o(C,[{key:"listen",value:function(){var D=this;a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){D.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!D.root.classList.contains("ql-hidden")){var F=D.quill.getSelection();F!=null&&D.position(D.quill.getBounds(F))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(D){var F=a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"position",this).call(this,D),R=this.root.querySelector(".ql-tooltip-arrow");if(R.style.marginLeft="",F===0)return F;R.style.marginLeft=-1*F-R.offsetWidth/2+"px"}}]),C})(m.BaseTooltip);S.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),i.BubbleTooltip=S,i.default=A}),(function(r,i,s){r.exports=s(63)})]).default})})(Rh)),Rh.exports}var Lr,iS;function wK(){if(iS)return Lr;iS=1;var t=Lr&&Lr.__extends||(function(){var f=function(m,p){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var j in b)b.hasOwnProperty(j)&&(g[j]=b[j])},f(m,p)};return function(m,p){f(m,p);function g(){this.constructor=m}m.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})(),n=Lr&&Lr.__assign||function(){return n=Object.assign||function(f){for(var m,p=1,g=arguments.length;p<g;p++){m=arguments[p];for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(f[b]=m[b])}return f},n.apply(this,arguments)},r=Lr&&Lr.__spreadArrays||function(){for(var f=0,m=0,p=arguments.length;m<p;m++)f+=arguments[m].length;for(var g=Array(f),b=0,m=0;m<p;m++)for(var j=arguments[m],y=0,x=j.length;y<x;y++,b++)g[b]=j[y];return g},i=Lr&&Lr.__importDefault||function(f){return f&&f.__esModule?f:{default:f}},s=i(bu()),a=i(Jy()),o=i(vK()),c=i(jK()),d=(function(f){t(m,f);function m(p){var g=f.call(this,p)||this;g.dirtyProps=["modules","formats","bounds","theme","children"],g.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],g.state={generation:0},g.selection=null,g.onEditorChange=function(j,y,x,N){var w,k,A,S;j==="text-change"?(k=(w=g).onEditorChangeText)===null||k===void 0||k.call(w,g.editor.root.innerHTML,y,N,g.unprivilegedEditor):j==="selection-change"&&((S=(A=g).onEditorChangeSelection)===null||S===void 0||S.call(A,y,N,g.unprivilegedEditor))};var b=g.isControlled()?p.value:p.defaultValue;return g.value=b??"",g}return m.prototype.validateProps=function(p){var g;if(s.default.Children.count(p.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(s.default.Children.count(p.children)){var b=s.default.Children.only(p.children);if(((g=b)===null||g===void 0?void 0:g.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&p.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},m.prototype.shouldComponentUpdate=function(p,g){var b=this,j;if(this.validateProps(p),!this.editor||this.state.generation!==g.generation)return!0;if("value"in p){var y=this.getEditorContents(),x=(j=p.value,j??"");this.isEqualValue(x,y)||this.setEditorContents(this.editor,x)}return p.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,p.readOnly),r(this.cleanProps,this.dirtyProps).some(function(N){return!o.default(p[N],b.props[N])})},m.prototype.shouldComponentRegenerate=function(p){var g=this;return this.dirtyProps.some(function(b){return!o.default(p[b],g.props[b])})},m.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},m.prototype.componentWillUnmount=function(){this.destroyEditor()},m.prototype.componentDidUpdate=function(p,g){var b=this;if(this.editor&&this.shouldComponentRegenerate(p)){var j=this.editor.getContents(),y=this.editor.getSelection();this.regenerationSnapshot={delta:j,selection:y},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==g.generation){var x=this.regenerationSnapshot,j=x.delta,N=x.selection;delete this.regenerationSnapshot,this.instantiateEditor();var w=this.editor;w.setContents(j),h(function(){return b.setEditorSelection(w,N)})}},m.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},m.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},m.prototype.isControlled=function(){return"value"in this.props},m.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},m.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},m.prototype.createEditor=function(p,g){var b=new c.default(p,g);return g.tabIndex!=null&&this.setEditorTabIndex(b,g.tabIndex),this.hookEditor(b),b},m.prototype.hookEditor=function(p){this.unprivilegedEditor=this.makeUnprivilegedEditor(p),p.on("editor-change",this.onEditorChange)},m.prototype.unhookEditor=function(p){p.off("editor-change",this.onEditorChange)},m.prototype.getEditorContents=function(){return this.value},m.prototype.getEditorSelection=function(){return this.selection},m.prototype.isDelta=function(p){return p&&p.ops},m.prototype.isEqualValue=function(p,g){return this.isDelta(p)&&this.isDelta(g)?o.default(p.ops,g.ops):o.default(p,g)},m.prototype.setEditorContents=function(p,g){var b=this;this.value=g;var j=this.getEditorSelection();typeof g=="string"?p.setContents(p.clipboard.convert(g)):p.setContents(g),h(function(){return b.setEditorSelection(p,j)})},m.prototype.setEditorSelection=function(p,g){if(this.selection=g,g){var b=p.getLength();g.index=Math.max(0,Math.min(g.index,b-1)),g.length=Math.max(0,Math.min(g.length,b-1-g.index)),p.setSelection(g)}},m.prototype.setEditorTabIndex=function(p,g){var b,j;!((j=(b=p)===null||b===void 0?void 0:b.scroll)===null||j===void 0)&&j.domNode&&(p.scroll.domNode.tabIndex=g)},m.prototype.setEditorReadOnly=function(p,g){g?p.disable():p.enable()},m.prototype.makeUnprivilegedEditor=function(p){var g=p;return{getHTML:function(){return g.root.innerHTML},getLength:g.getLength.bind(g),getText:g.getText.bind(g),getContents:g.getContents.bind(g),getSelection:g.getSelection.bind(g),getBounds:g.getBounds.bind(g)}},m.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var p=a.default.findDOMNode(this.editingArea);if(!p)throw new Error("Cannot find element for editing area");if(p.nodeType===3)throw new Error("Editing area cannot be a text node");return p},m.prototype.renderEditingArea=function(){var p=this,g=this.props,b=g.children,j=g.preserveWhitespace,y=this.state.generation,x={key:y,ref:function(N){p.editingArea=N}};return s.default.Children.count(b)?s.default.cloneElement(s.default.Children.only(b),x):j?s.default.createElement("pre",n({},x)):s.default.createElement("div",n({},x))},m.prototype.render=function(){var p;return s.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(p=this.props.className,p??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},m.prototype.onEditorChangeText=function(p,g,b,j){var y,x;if(this.editor){var N=this.isDelta(this.value)?j.getContents():j.getHTML();N!==this.getEditorContents()&&(this.lastDeltaChangeSet=g,this.value=N,(x=(y=this.props).onChange)===null||x===void 0||x.call(y,p,g,b,j))}},m.prototype.onEditorChangeSelection=function(p,g,b){var j,y,x,N,w,k;if(this.editor){var A=this.getEditorSelection(),S=!A&&p,E=A&&!p;o.default(p,A)||(this.selection=p,(y=(j=this.props).onChangeSelection)===null||y===void 0||y.call(j,p,g,b),S?(N=(x=this.props).onFocus)===null||N===void 0||N.call(x,p,g,b):E&&((k=(w=this.props).onBlur)===null||k===void 0||k.call(w,A,g,b)))}},m.prototype.focus=function(){this.editor&&this.editor.focus()},m.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},m.displayName="React Quill",m.Quill=c.default,m.defaultProps={theme:"snow",modules:{},readOnly:!1},m})(s.default.Component);function h(f){Promise.resolve().then(f)}return Lr=d,Lr}var NK=wK();const Bf=ki(NK);function es({value:t,onChange:n,placeholder:r}){const[i,s]=Pt.useState(!1),[a,o]=Pt.useState(!1),c=Pt.useRef(null),d=Pt.useCallback(()=>{const m=document.createElement("input");m.setAttribute("type","file"),m.setAttribute("accept","image/*"),m.click(),m.onchange=async()=>{const p=m.files[0];if(p){s(!0);try{const{file_url:g}=await ce.integrations.Core.UploadFile({file:p}),b=c.current.getEditor(),j=b.getSelection();b.insertEmbed(j.index,"image",g)}catch(g){console.error("Error uploading image:",g),alert("Fout bij uploaden van afbeelding")}finally{s(!1)}}}},[]),h=Pt.useMemo(()=>({toolbar:{container:[[{header:[1,2,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"}],["link","image"],["clean"]],handlers:{image:d}}}),[d]),f=["header","bold","italic","underline","strike","list","bullet","color","background","link","image"];return e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"mb-2 flex justify-end",children:e.jsx(se,{type:"button",variant:"outline",size:"sm",onClick:()=>o(!a),children:a?"📝 Rich Editor":"💻 Raw HTML"})}),a?e.jsx("textarea",{value:t||"",onChange:m=>n(m.target.value),placeholder:"Bewerk de ruwe HTML hier...",className:"w-full min-h-[400px] p-4 border border-gray-300 rounded-lg font-mono text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",style:{whiteSpace:"pre-wrap"}}):e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
            .ql-container {
              min-height: 400px;
              font-size: 16px;
              border-bottom-left-radius: 0.5rem;
              border-bottom-right-radius: 0.5rem;
            }
            .ql-editor {
              min-height: 400px;
              padding: 1rem;
            }
            .ql-toolbar {
              background: #f9fafb;
              border-top-left-radius: 0.5rem;
              border-top-right-radius: 0.5rem;
              border: 1px solid #e5e7eb;
              border-bottom: 1px solid #d1d5db;
            }
            .ql-container {
              border: 1px solid #e5e7eb;
              border-top: none;
            }
            .ql-editor.ql-blank::before {
              color: #9ca3af;
              font-style: normal;
            }
          `}),e.jsx(Bf,{ref:c,theme:"snow",value:t||"",onChange:n,modules:h,formats:f,placeholder:r,className:"bg-white rounded-lg"}),i&&e.jsx("div",{className:"absolute inset-0 bg-white/80 flex items-center justify-center rounded-lg z-10",children:e.jsxs("div",{className:"flex items-center gap-2 text-blue-600",children:[e.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Afbeelding uploaden..."]})})]})]})}function ea({value:t,onChange:n,label:r,description:i,recommendedSize:s}){const[a,o]=I.useState(!1),[c,d]=I.useState(!1),h=async f=>{const m=f.target.files[0];if(m){o(!0);try{const{file_url:p}=await ce.integrations.Core.UploadFile({file:m});n(p)}catch(p){console.error("Error uploading image:",p),alert("Fout bij uploaden van afbeelding")}finally{o(!1)}}};return e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:r}),s&&e.jsxs("span",{className:"text-xs text-gray-500 mt-1 block",children:["Aanbevolen: ",s]})]}),t?e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:t,alt:"Preview",className:"w-full h-48 object-cover rounded-lg border-2 border-gray-200"}),e.jsx(se,{type:"button",size:"sm",variant:"ghost",onClick:()=>n(""),className:"absolute top-2 right-2 bg-white/90 hover:bg-white",children:e.jsx(Ht,{className:"w-4 h-4"})})]}):e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"file",accept:"image/*",onChange:h,disabled:a,className:"hidden",id:`file-upload-${r}`}),e.jsx("label",{htmlFor:`file-upload-${r}`,className:"cursor-pointer inline-flex items-center gap-2 px-4 py-2 border border-gray-300 rounded-lg text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 transition-colors",children:a?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),"Uploaden..."]}):e.jsxs(e.Fragment,{children:[e.jsx(RA,{className:"w-4 h-4"}),"Upload"]})}),e.jsx("span",{className:"text-sm text-gray-500",children:"of"}),e.jsx(me,{value:t,onChange:f=>n(f.target.value),placeholder:"Plak afbeelding URL",className:"flex-1"})]})]})}function kK({title:t,content:n,metaDescription:r,metaKeywords:i,slug:s}){const a=[];let o=0;t&&t.length>=50&&t.length<=60?(a.push({label:"Titel lengte optimaal",status:"good"}),o+=20):t&&t.length>0?(a.push({label:"Titel lengte suboptimaal",status:"warning"}),o+=10):a.push({label:"Geen titel",status:"error"}),r&&r.length>=120&&r.length<=160?(a.push({label:"Meta description optimaal",status:"good"}),o+=25):r&&r.length>0?(a.push({label:"Meta description suboptimaal",status:"warning"}),o+=12):a.push({label:"Geen meta description",status:"error"}),i&&i.split(",").filter(f=>f.trim()).length>=3?(a.push({label:"Keywords aanwezig",status:"good"}),o+=15):(a.push({label:"Minimaal 3 keywords nodig",status:"warning"}),o+=5);const c=n?n.split(/\s+/).length:0;c>=300?(a.push({label:"Content lengte voldoende",status:"good"}),o+=20):c>0?(a.push({label:`Content te kort (${c} woorden)`,status:"warning"}),o+=10):a.push({label:"Geen content",status:"error"}),s&&s.length>0&&/^[a-z0-9-]+$/.test(s)?(a.push({label:"URL-vriendelijke slug",status:"good"}),o+=20):(a.push({label:"Slug niet optimaal",status:"warning"}),o+=5);const d=()=>o>=80?"text-green-600":o>=60?"text-yellow-600":"text-red-600",h=()=>o>=80?"bg-green-50 border-green-200":o>=60?"bg-yellow-50 border-yellow-200":"bg-red-50 border-red-200";return e.jsxs("div",{className:`rounded-xl p-6 border-2 ${h()}`,children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"SEO Score"}),e.jsxs("div",{className:`text-4xl font-bold ${d()}`,children:[o,"/100"]})]}),e.jsx("div",{className:"space-y-2",children:a.map((f,m)=>e.jsxs("div",{className:"flex items-center gap-2",children:[f.status==="good"&&e.jsx(gt,{className:"w-5 h-5 text-green-600"}),f.status==="warning"&&e.jsx(fi,{className:"w-5 h-5 text-yellow-600"}),f.status==="error"&&e.jsx(Yc,{className:"w-5 h-5 text-red-600"}),e.jsx("span",{className:"text-sm text-gray-700",children:f.label})]},m))}),e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:e.jsxs("p",{className:"text-xs text-gray-600",children:[o>=80&&"Uitstekend! Je content is goed geoptimaliseerd voor zoekmachines.",o>=60&&o<80&&"Goed bezig! Er zijn nog wat verbeterpunten.",o<60&&"Er is ruimte voor verbetering. Volg de aanbevelingen hierboven."]})})]})}function _K(){const[t,n]=I.useState(null),[r,i]=I.useState(!1),[s,a]=I.useState({title:"",slug:"",excerpt:"",content:"",category:"AI",image_url:"",author:"48-7 Team",read_time:"5 min",published:!1,published_date:"",meta_description:"",meta_keywords:"",canonical_url:""}),o=y=>{a({...s,title:y,slug:y.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")})},c=Xt(),{data:d=[],isLoading:h}=Fe({queryKey:["blog"],queryFn:()=>ce.entities.BlogPost.list("-created_date")}),f=Le({mutationFn:y=>ce.entities.BlogPost.create(y),onSuccess:()=>{c.invalidateQueries({queryKey:["blog"]}),g()}}),m=Le({mutationFn:({id:y,data:x})=>ce.entities.BlogPost.update(y,x),onSuccess:()=>{c.invalidateQueries({queryKey:["blog"]}),g()}}),p=Le({mutationFn:y=>ce.entities.BlogPost.delete(y),onSuccess:()=>{c.invalidateQueries({queryKey:["blog"]})}}),g=()=>{n(null),i(!1),a({title:"",slug:"",excerpt:"",content:"",category:"AI",image_url:"",author:"48-7 Team",read_time:"5 min",published:!1,published_date:"",meta_description:"",meta_keywords:"",canonical_url:""})},b=y=>{n(y),a(y)},j=y=>{y.preventDefault();const x={...s};x.published&&!x.published_date&&(x.published_date=new Date().toISOString().split("T")[0]),t?m.mutate({id:t.id,data:x}):f.mutate(x)};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[e.jsxs(se,{variant:"outline",onClick:g,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]}),e.jsx("div",{className:"flex gap-2",children:e.jsx(se,{variant:r?"default":"outline",onClick:()=>i(!r),children:r?"Bewerken":"Preview"})})]}),r?e.jsx("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[s.image_url&&e.jsx("img",{src:s.image_url,alt:s.title,className:"w-full h-96 object-cover rounded-xl mb-8"}),e.jsxs("div",{className:"flex items-center gap-4 mb-6 text-sm text-gray-600",children:[e.jsx("span",{className:"px-3 py-1 bg-orange-100 text-orange-800 rounded-full",children:s.category}),e.jsx("span",{children:s.author}),e.jsx("span",{children:"•"}),e.jsx("span",{children:s.read_time}),s.published_date&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"•"}),e.jsx("span",{children:new Date(s.published_date).toLocaleDateString("nl-NL")})]})]}),e.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-6",children:s.title||"Titel van het artikel"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:s.excerpt||"Samenvatting van het artikel..."}),e.jsx("div",{className:"prose prose-lg max-w-none",dangerouslySetInnerHTML:{__html:s.content||"<p>Je content verschijnt hier...</p>"}})]})}):e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t!=null&&t.id?"Blog Post Bewerken":"Nieuwe Blog Post"}),e.jsxs("form",{onSubmit:j,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),e.jsx(me,{required:!0,value:s.title,onChange:y=>o(y.target.value),placeholder:"De toekomst van AI"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),e.jsx(me,{required:!0,value:s.slug,onChange:y=>a({...s,slug:y.target.value}),placeholder:"de-toekomst-van-ai"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Slug wordt automatisch gegenereerd o.b.v. titel"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Samenvatting *"}),e.jsx(me,{required:!0,value:s.excerpt,onChange:y=>a({...s,excerpt:y.target.value}),placeholder:"Een korte samenvatting van het artikel..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content *"}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"Volledige inhoud van het artikel"}),e.jsx(es,{value:s.content,onChange:y=>a({...s,content:y}),placeholder:"Schrijf je blog artikel... Gebruik de toolbar voor opmaak, voeg afbeeldingen toe, etc."})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Categorie *"}),e.jsxs(Ji,{value:s.category,onValueChange:y=>a({...s,category:y}),children:[e.jsx(ji,{children:e.jsx(Zi,{})}),e.jsxs(wi,{children:[e.jsx(St,{value:"AI",children:"AI"}),e.jsx(St,{value:"Technologie",children:"Technologie"}),e.jsx(St,{value:"Training",children:"Training"}),e.jsx(St,{value:"Case Study",children:"Case Study"}),e.jsx(St,{value:"Nieuws",children:"Nieuws"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Auteur"}),e.jsx(me,{value:s.author,onChange:y=>a({...s,author:y.target.value}),placeholder:"48-7 Team"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Leestijd"}),e.jsx(me,{value:s.read_time,onChange:y=>a({...s,read_time:y.target.value}),placeholder:"5 min"})]})]}),e.jsx(ea,{value:s.image_url,onChange:y=>a({...s,image_url:y}),label:"Featured Image",recommendedSize:"1200x630px"}),e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"published",checked:s.published,onChange:y=>a({...s,published:y.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"published",className:"text-sm font-medium text-gray-700",children:"Publiceren"})]}),s.published&&e.jsx("div",{children:e.jsx(me,{type:"date",value:s.published_date,onChange:y=>a({...s,published_date:y.target.value}),placeholder:"Publicatiedatum"})})]}),e.jsxs("div",{className:"border-t pt-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"SEO Instellingen"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Meta Description (120-160 karakters)"}),e.jsx("textarea",{value:s.meta_description||"",onChange:y=>a({...s,meta_description:y.target.value}),placeholder:"Korte beschrijving voor zoekmachines...",rows:3,maxLength:160,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[(s.meta_description||"").length,"/160 karakters"]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Meta Keywords (komma gescheiden)"}),e.jsx(me,{value:s.meta_keywords||"",onChange:y=>a({...s,meta_keywords:y.target.value}),placeholder:"AI, machine learning, automatisering"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Canonical URL (optioneel)"}),e.jsx(me,{value:s.canonical_url||"",onChange:y=>a({...s,canonical_url:y.target.value}),placeholder:"https://48-7.nl/blog/origineel-artikel"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Gebruik dit alleen bij duplicate content"})]})]}),e.jsx("div",{children:e.jsx(kK,{title:s.title,content:s.content,metaDescription:s.meta_description,metaKeywords:s.meta_keywords,slug:s.slug})})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(se,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t?"Bijwerken":"Aanmaken"]}),e.jsx(se,{type:"button",variant:"outline",onClick:g,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:ae("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Blog"})]}),e.jsxs(se,{onClick:()=>n({}),children:[e.jsx(Ot,{className:"w-5 h-5 mr-2"}),"Nieuw Blog Post"]})]}),h?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:d.map(y=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:y.title}),e.jsx("p",{className:"text-sm text-gray-600 line-clamp-2",children:y.excerpt}),e.jsxs("div",{className:"flex gap-2 mt-2",children:[e.jsx("span",{className:"inline-block px-2 py-1 bg-orange-100 text-orange-800 text-xs rounded",children:y.category}),e.jsx("span",{className:"inline-block px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:y.read_time})]})]}),y.published?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Live"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Concept"})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(se,{size:"sm",variant:"outline",onClick:()=>b(y),className:"flex-1",children:[e.jsx(On,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je dit artikel wilt verwijderen?")&&p.mutate(y.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},y.id))})]})})}function SK(){var y;const[t,n]=I.useState(null),[r,i]=I.useState({client_name:"",slug:"",logo_url:"",industry:"",case_type:"consultancy",challenge:"",solution:"",results:[],quote:"",quote_author:"",quote_role:"",tags:[],featured_on_homepage:!1,homepage_usp:"",homepage_text:"",published:!1,sort_order:0}),s=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["cases"],queryFn:()=>ce.entities.CaseStudy.list("-created_date")}),c=Le({mutationFn:x=>ce.entities.CaseStudy.create(x),onSuccess:()=>{s.invalidateQueries({queryKey:["cases"]}),f()}}),d=Le({mutationFn:({id:x,data:N})=>ce.entities.CaseStudy.update(x,N),onSuccess:()=>{s.invalidateQueries({queryKey:["cases"]}),f()}}),h=Le({mutationFn:x=>ce.entities.CaseStudy.delete(x),onSuccess:()=>{s.invalidateQueries({queryKey:["cases"]})}}),f=()=>{n(null),i({client_name:"",slug:"",featured_image_url:"",industry:"",case_type:"consultancy",challenge:"",solution:"",results:[],quote:"",quote_author:"",quote_role:"",tags:[],featured_on_homepage:!1,homepage_usp:"",homepage_text:"",published:!1,sort_order:0})},m=x=>{n(x),i(x)},p=x=>{x.preventDefault(),t?d.mutate({id:t.id,data:r}):c.mutate(r)},g=()=>{i({...r,results:[...r.results,{value:"",label:""}]})},b=(x,N,w)=>{const k=[...r.results];k[x][N]=w,i({...r,results:k})},j=x=>{i({...r,results:r.results.filter((N,w)=>w!==x)})};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(se,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t?"Case Bewerken":"Nieuwe Case"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Klant Naam *"}),e.jsx(me,{required:!0,value:r.client_name,onChange:x=>i({...r,client_name:x.target.value}),placeholder:"Acme Corp"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),e.jsx(me,{required:!0,value:r.slug,onChange:x=>i({...r,slug:x.target.value}),placeholder:"acme-corp-ai-transformation"})]})]}),e.jsx(ea,{value:r.featured_image_url,onChange:x=>i({...r,featured_image_url:x}),label:"Featured Afbeelding",recommendedSize:"1200x800px"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Branche *"}),e.jsx(me,{required:!0,value:r.industry,onChange:x=>i({...r,industry:x.target.value}),placeholder:"Retail, Healthcare, etc."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Case Type *"}),e.jsxs(Ji,{value:r.case_type,onValueChange:x=>i({...r,case_type:x}),children:[e.jsx(ji,{children:e.jsx(Zi,{})}),e.jsxs(wi,{children:[e.jsx(St,{value:"consultancy",children:"Consultancy"}),e.jsx(St,{value:"training",children:"Training"}),e.jsx(St,{value:"development",children:"Development"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Tags (komma gescheiden)"}),e.jsx(me,{value:((y=r.tags)==null?void 0:y.join(", "))||"",onChange:x=>i({...r,tags:x.target.value.split(",").map(N=>N.trim()).filter(Boolean)}),placeholder:"AI, Automatisering, CRM"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Challenge *"}),e.jsx(es,{value:r.challenge,onChange:x=>i({...r,challenge:x}),placeholder:"Beschrijf de uitdaging van de klant..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Solution *"}),e.jsx(es,{value:r.solution,onChange:x=>i({...r,solution:x}),placeholder:"Beschrijf de oplossing..."})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Resultaten (3 blokjes)"}),e.jsxs(se,{type:"button",onClick:g,size:"sm",variant:"outline",children:[e.jsx(Ot,{className:"w-4 h-4 mr-1"})," Resultaat"]})]}),e.jsx("div",{className:"space-y-4",children:r.results.map((x,N)=>e.jsxs("div",{className:"flex gap-4 items-start p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex-1 grid grid-cols-2 gap-4",children:[e.jsx(me,{placeholder:"Waarde (bijv. '5 AI use cases')",value:x.value,onChange:w=>b(N,"value",w.target.value)}),e.jsx(me,{placeholder:"Label (bijv. 'geïdentificeerd')",value:x.label,onChange:w=>b(N,"label",w.target.value)})]}),e.jsx(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>j(N),children:e.jsx(Ht,{className:"w-4 h-4"})})]},N))})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Quote"}),e.jsx(me,{value:r.quote,onChange:x=>i({...r,quote:x.target.value}),placeholder:"De quote van de klant..."})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsx(me,{placeholder:"Naam auteur",value:r.quote_author,onChange:x=>i({...r,quote_author:x.target.value})}),e.jsx(me,{placeholder:"Functie",value:r.quote_role,onChange:x=>i({...r,quote_role:x.target.value})})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"published",checked:r.published,onChange:x=>i({...r,published:x.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"published",className:"text-sm font-medium text-gray-700",children:"Publiceren"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),e.jsx(me,{required:!0,value:r.homepage_usp||"",onChange:x=>i({...r,homepage_usp:x.target.value}),placeholder:"+85% snellere afhandeling"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Dit wordt getoond met een groen pijltje omhoog"})]}),e.jsxs("div",{className:"border-t pt-6 space-y-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Homepage weergave"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"featured_on_homepage",checked:r.featured_on_homepage,onChange:x=>i({...r,featured_on_homepage:x.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"featured_on_homepage",className:"text-sm font-medium text-gray-700",children:"Toon op homepage"})]}),r.featured_on_homepage&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Homepage tekst (korte beschrijving) *"}),e.jsx(me,{required:!0,value:r.homepage_text||"",onChange:x=>i({...r,homepage_text:x.target.value}),placeholder:"Handmatige verwerking van support tickets kostte het team 20+ uur per week"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Volgorde op homepage"}),e.jsx(me,{type:"number",value:r.sort_order,onChange:x=>i({...r,sort_order:parseInt(x.target.value)||0})})]})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(se,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t?"Bijwerken":"Aanmaken"]}),e.jsx(se,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:ae("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Cases"})]}),e.jsxs(se,{onClick:()=>n({}),children:[e.jsx(Ot,{className:"w-5 h-5 mr-2"}),"Nieuwe Case"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(x=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:x.client_name}),e.jsx("p",{className:"text-sm text-gray-600",children:x.industry}),e.jsx("span",{className:"inline-block px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded mt-2",children:x.case_type})]}),x.published?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Gepubliceerd"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Concept"})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(se,{size:"sm",variant:"outline",onClick:()=>m(x),className:"flex-1",children:[e.jsx(On,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze case wilt verwijderen?")&&h.mutate(x.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},x.id))})]})})}var t0={exports:{}},n0,sS;function AK(){if(sS)return n0;sS=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return n0=t,n0}var r0,aS;function CK(){if(aS)return r0;aS=1;var t=AK();function n(){}function r(){}return r.resetWarningCache=n,r0=function(){function i(o,c,d,h,f,m){if(m!==t){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}i.isRequired=i;function s(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:n};return a.PropTypes=a,a},r0}var oS;function EK(){return oS||(oS=1,t0.exports=CK()()),t0.exports}var TK=EK();const Vt=ki(TK);var i0,lS;function PK(){if(lS)return i0;lS=1;function t(c){return c&&typeof c=="object"&&"default"in c?c.default:c}var n=bu(),r=t(n);function i(c,d,h){return d in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h,c}function s(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,c.__proto__=d}var a=!!(typeof window<"u"&&window.document&&window.document.createElement);function o(c,d,h){if(typeof c!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof d!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof h<"u"&&typeof h!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function f(m){return m.displayName||m.name||"Component"}return function(p){if(typeof p!="function")throw new Error("Expected WrappedComponent to be a React component.");var g=[],b;function j(){b=c(g.map(function(x){return x.props})),y.canUseDOM?d(b):h&&(b=h(b))}var y=(function(x){s(N,x);function N(){return x.apply(this,arguments)||this}N.peek=function(){return b},N.rewind=function(){if(N.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var A=b;return b=void 0,g=[],A};var w=N.prototype;return w.UNSAFE_componentWillMount=function(){g.push(this),j()},w.componentDidUpdate=function(){j()},w.componentWillUnmount=function(){var A=g.indexOf(this);g.splice(A,1),j()},w.render=function(){return r.createElement(p,this.props)},N})(n.PureComponent);return i(y,"displayName","SideEffect("+f(p)+")"),i(y,"canUseDOM",a),y}}return i0=o,i0}var OK=PK();const DK=ki(OK);var s0,cS;function IK(){if(cS)return s0;cS=1;var t=typeof Element<"u",n=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,o){if(a===o)return!0;if(a&&o&&typeof a=="object"&&typeof o=="object"){if(a.constructor!==o.constructor)return!1;var c,d,h;if(Array.isArray(a)){if(c=a.length,c!=o.length)return!1;for(d=c;d--!==0;)if(!s(a[d],o[d]))return!1;return!0}var f;if(n&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(f=a.entries();!(d=f.next()).done;)if(!o.has(d.value[0]))return!1;for(f=a.entries();!(d=f.next()).done;)if(!s(d.value[1],o.get(d.value[0])))return!1;return!0}if(r&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(f=a.entries();!(d=f.next()).done;)if(!o.has(d.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if(c=a.length,c!=o.length)return!1;for(d=c;d--!==0;)if(a[d]!==o[d])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof o.valueOf=="function")return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof o.toString=="function")return a.toString()===o.toString();if(h=Object.keys(a),c=h.length,c!==Object.keys(o).length)return!1;for(d=c;d--!==0;)if(!Object.prototype.hasOwnProperty.call(o,h[d]))return!1;if(t&&a instanceof Element)return!1;for(d=c;d--!==0;)if(!((h[d]==="_owner"||h[d]==="__v"||h[d]==="__o")&&a.$$typeof)&&!s(a[h[d]],o[h[d]]))return!1;return!0}return a!==a&&o!==o}return s0=function(o,c){try{return s(o,c)}catch(d){if((d.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw d}},s0}var RK=IK();const FK=ki(RK);/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var a0,uS;function MK(){if(uS)return a0;uS=1;var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},c=0;c<10;c++)o["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(d.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(f){h[f]=f}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return a0=s()?Object.assign:function(a,o){for(var c,d=i(a),h,f=1;f<arguments.length;f++){c=Object(arguments[f]);for(var m in c)n.call(c,m)&&(d[m]=c[m]);if(t){h=t(c);for(var p=0;p<h.length;p++)r.call(c,h[p])&&(d[h[p]]=c[h[p]])}}return d},a0}var LK=MK();const BK=ki(LK);var za={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},st={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(st).map(function(t){return st[t]});var Ut={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},nf={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},fu={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},zK=Object.keys(nf).reduce(function(t,n){return t[nf[n]]=n,t},{}),qK=[st.NOSCRIPT,st.SCRIPT,st.STYLE],$r="data-react-helmet",VK=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},UK=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},$K=(function(){function t(n,r){for(var i=0;i<r.length;i++){var s=r[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(n,s.key,s)}}return function(n,r,i){return r&&t(n.prototype,r),i&&t(n,i),n}})(),Yn=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},HK=function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)},dS=function(t,n){var r={};for(var i in t)n.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},WK=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t},Ty=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(n):String(n).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},KK=function(n){var r=Qo(n,st.TITLE),i=Qo(n,fu.TITLE_TEMPLATE);if(i&&r)return i.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var s=Qo(n,fu.DEFAULT_TITLE);return r||s||void 0},GK=function(n){return Qo(n,fu.ON_CHANGE_CLIENT_STATE)||function(){}},o0=function(n,r){return r.filter(function(i){return typeof i[n]<"u"}).map(function(i){return i[n]}).reduce(function(i,s){return Yn({},i,s)},{})},QK=function(n,r){return r.filter(function(i){return typeof i[st.BASE]<"u"}).map(function(i){return i[st.BASE]}).reverse().reduce(function(i,s){if(!i.length)for(var a=Object.keys(s),o=0;o<a.length;o++){var c=a[o],d=c.toLowerCase();if(n.indexOf(d)!==-1&&s[d])return i.concat(s)}return i},[])},Nc=function(n,r,i){var s={};return i.filter(function(a){return Array.isArray(a[n])?!0:(typeof a[n]<"u"&&ZK("Helmet: "+n+' should be of type "Array". Instead found type "'+VK(a[n])+'"'),!1)}).map(function(a){return a[n]}).reverse().reduce(function(a,o){var c={};o.filter(function(p){for(var g=void 0,b=Object.keys(p),j=0;j<b.length;j++){var y=b[j],x=y.toLowerCase();r.indexOf(x)!==-1&&!(g===Ut.REL&&p[g].toLowerCase()==="canonical")&&!(x===Ut.REL&&p[x].toLowerCase()==="stylesheet")&&(g=x),r.indexOf(y)!==-1&&(y===Ut.INNER_HTML||y===Ut.CSS_TEXT||y===Ut.ITEM_PROP)&&(g=y)}if(!g||!p[g])return!1;var N=p[g].toLowerCase();return s[g]||(s[g]={}),c[g]||(c[g]={}),s[g][N]?!1:(c[g][N]=!0,!0)}).reverse().forEach(function(p){return a.push(p)});for(var d=Object.keys(c),h=0;h<d.length;h++){var f=d[h],m=BK({},s[f],c[f]);s[f]=m}return a},[]).reverse()},Qo=function(n,r){for(var i=n.length-1;i>=0;i--){var s=n[i];if(s.hasOwnProperty(r))return s[r]}return null},YK=function(n){return{baseTag:QK([Ut.HREF,Ut.TARGET],n),bodyAttributes:o0(za.BODY,n),defer:Qo(n,fu.DEFER),encode:Qo(n,fu.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:o0(za.HTML,n),linkTags:Nc(st.LINK,[Ut.REL,Ut.HREF],n),metaTags:Nc(st.META,[Ut.NAME,Ut.CHARSET,Ut.HTTPEQUIV,Ut.PROPERTY,Ut.ITEM_PROP],n),noscriptTags:Nc(st.NOSCRIPT,[Ut.INNER_HTML],n),onChangeClientState:GK(n),scriptTags:Nc(st.SCRIPT,[Ut.SRC,Ut.INNER_HTML],n),styleTags:Nc(st.STYLE,[Ut.CSS_TEXT],n),title:KK(n),titleAttributes:o0(za.TITLE,n)}},Py=(function(){var t=Date.now();return function(n){var r=Date.now();r-t>16?(t=r,n(r)):setTimeout(function(){Py(n)},0)}})(),hS=function(n){return clearTimeout(n)},XK=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Py:global.requestAnimationFrame||Py,JK=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||hS:global.cancelAnimationFrame||hS,ZK=function(n){return console&&typeof console.warn=="function"&&console.warn(n)},kc=null,eG=function(n){kc&&JK(kc),n.defer?kc=XK(function(){fS(n,function(){kc=null})}):(fS(n),kc=null)},fS=function(n,r){var i=n.baseTag,s=n.bodyAttributes,a=n.htmlAttributes,o=n.linkTags,c=n.metaTags,d=n.noscriptTags,h=n.onChangeClientState,f=n.scriptTags,m=n.styleTags,p=n.title,g=n.titleAttributes;Oy(st.BODY,s),Oy(st.HTML,a),tG(p,g);var b={baseTag:Io(st.BASE,i),linkTags:Io(st.LINK,o),metaTags:Io(st.META,c),noscriptTags:Io(st.NOSCRIPT,d),scriptTags:Io(st.SCRIPT,f),styleTags:Io(st.STYLE,m)},j={},y={};Object.keys(b).forEach(function(x){var N=b[x],w=N.newTags,k=N.oldTags;w.length&&(j[x]=w),k.length&&(y[x]=b[x].oldTags)}),r&&r(),h(n,j,y)},j5=function(n){return Array.isArray(n)?n.join(""):n},tG=function(n,r){typeof n<"u"&&document.title!==n&&(document.title=j5(n)),Oy(st.TITLE,r)},Oy=function(n,r){var i=document.getElementsByTagName(n)[0];if(i){for(var s=i.getAttribute($r),a=s?s.split(","):[],o=[].concat(a),c=Object.keys(r),d=0;d<c.length;d++){var h=c[d],f=r[h]||"";i.getAttribute(h)!==f&&i.setAttribute(h,f),a.indexOf(h)===-1&&a.push(h);var m=o.indexOf(h);m!==-1&&o.splice(m,1)}for(var p=o.length-1;p>=0;p--)i.removeAttribute(o[p]);a.length===o.length?i.removeAttribute($r):i.getAttribute($r)!==c.join(",")&&i.setAttribute($r,c.join(","))}},Io=function(n,r){var i=document.head||document.querySelector(st.HEAD),s=i.querySelectorAll(n+"["+$r+"]"),a=Array.prototype.slice.call(s),o=[],c=void 0;return r&&r.length&&r.forEach(function(d){var h=document.createElement(n);for(var f in d)if(d.hasOwnProperty(f))if(f===Ut.INNER_HTML)h.innerHTML=d.innerHTML;else if(f===Ut.CSS_TEXT)h.styleSheet?h.styleSheet.cssText=d.cssText:h.appendChild(document.createTextNode(d.cssText));else{var m=typeof d[f]>"u"?"":d[f];h.setAttribute(f,m)}h.setAttribute($r,"true"),a.some(function(p,g){return c=g,h.isEqualNode(p)})?a.splice(c,1):o.push(h)}),a.forEach(function(d){return d.parentNode.removeChild(d)}),o.forEach(function(d){return i.appendChild(d)}),{oldTags:a,newTags:o}},w5=function(n){return Object.keys(n).reduce(function(r,i){var s=typeof n[i]<"u"?i+'="'+n[i]+'"':""+i;return r?r+" "+s:s},"")},nG=function(n,r,i,s){var a=w5(i),o=j5(r);return a?"<"+n+" "+$r+'="true" '+a+">"+Ty(o,s)+"</"+n+">":"<"+n+" "+$r+'="true">'+Ty(o,s)+"</"+n+">"},rG=function(n,r,i){return r.reduce(function(s,a){var o=Object.keys(a).filter(function(h){return!(h===Ut.INNER_HTML||h===Ut.CSS_TEXT)}).reduce(function(h,f){var m=typeof a[f]>"u"?f:f+'="'+Ty(a[f],i)+'"';return h?h+" "+m:m},""),c=a.innerHTML||a.cssText||"",d=qK.indexOf(n)===-1;return s+"<"+n+" "+$r+'="true" '+o+(d?"/>":">"+c+"</"+n+">")},"")},N5=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(n).reduce(function(i,s){return i[nf[s]||s]=n[s],i},r)},iG=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(n).reduce(function(i,s){return i[zK[s]||s]=n[s],i},r)},sG=function(n,r,i){var s,a=(s={key:r},s[$r]=!0,s),o=N5(i,a);return[Pt.createElement(st.TITLE,o,r)]},aG=function(n,r){return r.map(function(i,s){var a,o=(a={key:s},a[$r]=!0,a);return Object.keys(i).forEach(function(c){var d=nf[c]||c;if(d===Ut.INNER_HTML||d===Ut.CSS_TEXT){var h=i.innerHTML||i.cssText;o.dangerouslySetInnerHTML={__html:h}}else o[d]=i[c]}),Pt.createElement(n,o)})},Fi=function(n,r,i){switch(n){case st.TITLE:return{toComponent:function(){return sG(n,r.title,r.titleAttributes)},toString:function(){return nG(n,r.title,r.titleAttributes,i)}};case za.BODY:case za.HTML:return{toComponent:function(){return N5(r)},toString:function(){return w5(r)}};default:return{toComponent:function(){return aG(n,r)},toString:function(){return rG(n,r,i)}}}},k5=function(n){var r=n.baseTag,i=n.bodyAttributes,s=n.encode,a=n.htmlAttributes,o=n.linkTags,c=n.metaTags,d=n.noscriptTags,h=n.scriptTags,f=n.styleTags,m=n.title,p=m===void 0?"":m,g=n.titleAttributes;return{base:Fi(st.BASE,r,s),bodyAttributes:Fi(za.BODY,i,s),htmlAttributes:Fi(za.HTML,a,s),link:Fi(st.LINK,o,s),meta:Fi(st.META,c,s),noscript:Fi(st.NOSCRIPT,d,s),script:Fi(st.SCRIPT,h,s),style:Fi(st.STYLE,f,s),title:Fi(st.TITLE,{title:p,titleAttributes:g},s)}},oG=function(n){var r,i;return i=r=(function(s){HK(a,s);function a(){return UK(this,a),WK(this,s.apply(this,arguments))}return a.prototype.shouldComponentUpdate=function(c){return!FK(this.props,c)},a.prototype.mapNestedChildrenToProps=function(c,d){if(!d)return null;switch(c.type){case st.SCRIPT:case st.NOSCRIPT:return{innerHTML:d};case st.STYLE:return{cssText:d}}throw new Error("<"+c.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},a.prototype.flattenArrayTypeChildren=function(c){var d,h=c.child,f=c.arrayTypeChildren,m=c.newChildProps,p=c.nestedChildren;return Yn({},f,(d={},d[h.type]=[].concat(f[h.type]||[],[Yn({},m,this.mapNestedChildrenToProps(h,p))]),d))},a.prototype.mapObjectTypeChildren=function(c){var d,h,f=c.child,m=c.newProps,p=c.newChildProps,g=c.nestedChildren;switch(f.type){case st.TITLE:return Yn({},m,(d={},d[f.type]=g,d.titleAttributes=Yn({},p),d));case st.BODY:return Yn({},m,{bodyAttributes:Yn({},p)});case st.HTML:return Yn({},m,{htmlAttributes:Yn({},p)})}return Yn({},m,(h={},h[f.type]=Yn({},p),h))},a.prototype.mapArrayTypeChildrenToProps=function(c,d){var h=Yn({},d);return Object.keys(c).forEach(function(f){var m;h=Yn({},h,(m={},m[f]=c[f],m))}),h},a.prototype.warnOnInvalidChildren=function(c,d){return!0},a.prototype.mapChildrenToProps=function(c,d){var h=this,f={};return Pt.Children.forEach(c,function(m){if(!(!m||!m.props)){var p=m.props,g=p.children,b=dS(p,["children"]),j=iG(b);switch(h.warnOnInvalidChildren(m,g),m.type){case st.LINK:case st.META:case st.NOSCRIPT:case st.SCRIPT:case st.STYLE:f=h.flattenArrayTypeChildren({child:m,arrayTypeChildren:f,newChildProps:j,nestedChildren:g});break;default:d=h.mapObjectTypeChildren({child:m,newProps:d,newChildProps:j,nestedChildren:g});break}}}),d=this.mapArrayTypeChildrenToProps(f,d),d},a.prototype.render=function(){var c=this.props,d=c.children,h=dS(c,["children"]),f=Yn({},h);return d&&(f=this.mapChildrenToProps(d,f)),Pt.createElement(n,f)},$K(a,null,[{key:"canUseDOM",set:function(c){n.canUseDOM=c}}]),a})(Pt.Component),r.propTypes={base:Vt.object,bodyAttributes:Vt.object,children:Vt.oneOfType([Vt.arrayOf(Vt.node),Vt.node]),defaultTitle:Vt.string,defer:Vt.bool,encodeSpecialCharacters:Vt.bool,htmlAttributes:Vt.object,link:Vt.arrayOf(Vt.object),meta:Vt.arrayOf(Vt.object),noscript:Vt.arrayOf(Vt.object),onChangeClientState:Vt.func,script:Vt.arrayOf(Vt.object),style:Vt.arrayOf(Vt.object),title:Vt.string,titleAttributes:Vt.object,titleTemplate:Vt.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=n.peek,r.rewind=function(){var s=n.rewind();return s||(s=k5({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),s},i},lG=function(){return null},cG=DK(YK,eG,k5)(lG),xl=oG(cG);xl.renderStatic=xl.rewind;function uG(){const t=wl(),[n,r]=I.useState(!1),[i,s]=I.useState(!0);if(I.useEffect(()=>{(async()=>{try{const d=await ce.auth.me();if((d==null?void 0:d.role)!=="admin"){t(ae("Home"));return}r(!0)}catch{t(ae("Home"))}finally{s(!1)}})()},[t]),i)return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Vn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})});if(!n)return null;const a=[{title:"Cases",description:"Beheer klant case studies",icon:A1,link:ae("AdminCases"),color:"from-blue-500 to-indigo-600"},{title:"Oplossingen",description:"Beheer AI oplossingen & producten",icon:Wi,link:ae("AdminOplossingen"),color:"from-blue-600 to-cyan-600"},{title:"Vacatures",description:"Beheer open vacatures",icon:Qa,link:ae("AdminVacatures"),color:"from-purple-500 to-pink-600"},{title:"Trainingen",description:"Beheer trainingsaanbod",icon:pr,link:ae("AdminTrainingen"),color:"from-green-500 to-emerald-600"},{title:"Blog",description:"Beheer blog artikelen",icon:$t,link:ae("AdminBlog"),color:"from-orange-500 to-red-600"},{title:"Nieuws",description:"Beheer dagelijks AI nieuws",icon:RD,link:ae("AdminNieuws"),color:"from-cyan-500 to-blue-600"},{title:"Reviews",description:"Beheer klantreviews",icon:Zc,link:ae("AdminReviews"),color:"from-yellow-500 to-orange-600"},{title:"Homepage",description:"Beheer homepage secties",icon:_0,link:ae("AdminHome"),color:"from-teal-500 to-cyan-600"},{title:"Team",description:"Beheer teamleden",icon:_n,link:ae("AdminTeam"),color:"from-indigo-500 to-purple-600"},{title:"Nieuwsbrief",description:"Beheer nieuwsbrief abonnees",icon:Hr,link:ae("AdminNewsletterSubscribers"),color:"from-pink-500 to-rose-600"},{title:"Discovery Formulieren",description:"Bekijk discovery sessie aanvragen",icon:$t,link:ae("AdminDiscoveryForms"),color:"from-violet-500 to-purple-600"},{title:"EU AI Act Checker",description:"Bekijk EU AI Act analyses",icon:$t,link:ae("AdminEuAiActSubmissions"),color:"from-blue-500 to-cyan-600"},{title:"AI Impact Scans",description:"Bekijk AI Impact Scan resultaten",icon:$t,link:ae("AdminImpactScans"),color:"from-emerald-500 to-green-600"},{title:"AI Quiz Resultaten",description:"Bekijk AI Quiz resultaten",icon:$t,link:ae("AdminAIQuizSubmissions"),color:"from-amber-500 to-yellow-600"}],o=[{title:"Pagina Builder",description:"Bouw en bewerk pagina's",icon:A1,link:ae("AdminPageBuilder"),color:"from-indigo-500 to-purple-600"},{title:"Prompt Library",description:"Beheer AI prompts",icon:$t,link:ae("AdminPrompts"),color:"from-purple-500 to-pink-600"},{title:"Email Templates",description:"Beheer email templates",icon:Hr,link:ae("AdminEmailTemplates"),color:"from-blue-500 to-cyan-600"},{title:"SEO Tools",description:"Sitemap, robots.txt & SEO",icon:Jc,link:ae("AdminSEO"),color:"from-green-500 to-emerald-600"},{title:"Instellingen",description:"Categorieën & configuratie",icon:Jc,link:ae("AdminSettings"),color:"from-gray-500 to-slate-600"},{title:"Test Scans",description:"Test formulieren met één klik",icon:cI,link:ae("AdminTestScans"),color:"from-red-500 to-orange-600"}];return e.jsxs(e.Fragment,{children:[e.jsx(xl,{children:e.jsx("meta",{name:"robots",content:"noindex, nofollow"})}),e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-12 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Content Management"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Beheer al je website content op één plek"})]}),e.jsxs(de,{to:ae("AdminHandleiding"),className:"inline-flex items-center gap-2 px-6 py-3 bg-blue-600 text-white font-semibold rounded-xl hover:bg-blue-700 transition-colors",children:[e.jsx(qa,{className:"w-5 h-5"}),"Handleiding"]})]}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Content Beheer"}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 mb-12",children:a.map((c,d)=>e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:d*.1},children:e.jsxs(de,{to:c.link,className:"block bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-gray-200 hover:shadow-xl transition-all group",children:[e.jsx("div",{className:`w-16 h-16 bg-gradient-to-br ${c.color} rounded-2xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform`,children:e.jsx(c.icon,{className:"w-8 h-8 text-white"})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:c.title}),e.jsx("p",{className:"text-gray-600 mb-4",children:c.description}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-900 font-semibold group-hover:gap-3 transition-all",children:["Beheren",e.jsx($e,{className:"w-5 h-5"})]})]})},c.title))}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Systeem Tools"}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6 mb-12",children:o.map((c,d)=>e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:(a.length+d)*.1},children:e.jsxs(de,{to:c.link,className:"block bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-gray-200 hover:shadow-xl transition-all group",children:[e.jsx("div",{className:`w-16 h-16 bg-gradient-to-br ${c.color} rounded-2xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform`,children:e.jsx(c.icon,{className:"w-8 h-8 text-white"})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:c.title}),e.jsx("p",{className:"text-gray-600 mb-4",children:c.description}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-900 font-semibold group-hover:gap-3 transition-all",children:["Openen",e.jsx($e,{className:"w-5 h-5"})]})]})},c.title))}),e.jsxs("div",{className:"mt-16 grid grid-cols-2 md:grid-cols-5 gap-6",children:[e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Total Cases"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"12"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Vacatures"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"5"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Trainingen"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"18"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Blog Posts"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"24"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Nieuws Items"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"156"})]})]})]})})]})}const pt=I.forwardRef(({className:t,...n},r)=>e.jsx("textarea",{className:Qt("flex min-h-[120px] w-full bg-white px-4 py-3 text-base transition-colors placeholder:text-[#9CA3AF] focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50","border-b-2 border-gray-200 focus-visible:border-[#FAB868]","rounded-none resize-none",t),ref:r,...n}));pt.displayName="Textarea";const dG={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},hG=(t,n,r)=>{let i;const s=dG[t];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+i:i+" geleden":i},fG={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},mG={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},pG={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gG={date:Wo({formats:fG,defaultWidth:"full"}),time:Wo({formats:mG,defaultWidth:"full"}),dateTime:Wo({formats:pG,defaultWidth:"full"})},xG={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},yG=(t,n,r,i)=>xG[t],vG={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},bG={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},jG={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},wG={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},NG={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},kG=(t,n)=>Number(t)+"e",_G={ordinalNumber:kG,era:ai({values:vG,defaultWidth:"wide"}),quarter:ai({values:bG,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ai({values:jG,defaultWidth:"wide"}),day:ai({values:wG,defaultWidth:"wide"}),dayPeriod:ai({values:NG,defaultWidth:"wide"})},SG=/^(\d+)e?/i,AG=/\d+/i,CG={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},EG={any:[/^v/,/^n/]},TG={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},PG={any:[/1/i,/2/i,/3/i,/4/i]},OG={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},DG={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},IG={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},RG={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},FG={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},MG={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},LG={ordinalNumber:BE({matchPattern:SG,parsePattern:AG,valueCallback:t=>parseInt(t,10)}),era:oi({matchPatterns:CG,defaultMatchWidth:"wide",parsePatterns:EG,defaultParseWidth:"any"}),quarter:oi({matchPatterns:TG,defaultMatchWidth:"wide",parsePatterns:PG,defaultParseWidth:"any",valueCallback:t=>t+1}),month:oi({matchPatterns:OG,defaultMatchWidth:"wide",parsePatterns:DG,defaultParseWidth:"any"}),day:oi({matchPatterns:IG,defaultMatchWidth:"wide",parsePatterns:RG,defaultParseWidth:"any"}),dayPeriod:oi({matchPatterns:FG,defaultMatchWidth:"any",parsePatterns:MG,defaultParseWidth:"any"})},Ca={code:"nl",formatDistance:hG,formatLong:gG,formatRelative:yG,localize:_G,match:LG,options:{weekStartsOn:1,firstWeekContainsDate:4}};function BG(){var g,b,j,y;const[t,n]=I.useState(null),[r,i]=I.useState("all"),s=Xt(),{data:a}=Fe({queryKey:["current-user"],queryFn:()=>ce.auth.me()}),{data:o=[],isLoading:c}=Fe({queryKey:["discovery-submissions",r],queryFn:async()=>r==="all"?ce.entities.DiscoveryFormSubmission.list("-created_date"):ce.entities.DiscoveryFormSubmission.filter({status:r},"-created_date")}),d=Le({mutationFn:({id:x,status:N,notities:w})=>ce.entities.DiscoveryFormSubmission.update(x,{status:N,interne_notities:w}),onSuccess:()=>{s.invalidateQueries({queryKey:["discovery-submissions"]})}}),h=Le({mutationFn:x=>ce.entities.DiscoveryFormSubmission.delete(x),onSuccess:()=>{s.invalidateQueries({queryKey:["discovery-submissions"]}),n(null)}}),f=()=>{const x=["Datum","Bedrijf","Contactpersoon","Email","Telefoon","Sector","Medewerkers","Status","Urgentie","Budget"],N=o.map(S=>[_t(new Date(S.created_date),"dd-MM-yyyy HH:mm",{locale:Ca}),S.bedrijfsnaam||"",S.contactpersonen||"",S.email||"",S.telefoon||"",S.sector||"",S.aantal_medewerkers||"",S.status||"",S.urgentie||"",S.budget_range||""]),w=[x.join(","),...N.map(S=>S.map(E=>`"${E}"`).join(","))].join(`
`),k=new Blob([w],{type:"text/csv;charset=utf-8;"}),A=document.createElement("a");A.href=URL.createObjectURL(k),A.download=`discovery-scans-${_t(new Date,"yyyy-MM-dd")}.csv`,A.click()},m=x=>{var A,S,E,C;const N=`# Discovery Scan - ${x.bedrijfsnaam}

**Datum:** ${_t(new Date(x.created_date),"dd MMMM yyyy HH:mm",{locale:Ca})}  
**Status:** ${x.status||"nieuw"}

---

## Bedrijfsgegevens

- **Bedrijfsnaam:** ${x.bedrijfsnaam||"-"}
- **Contactpersonen:** ${x.contactpersonen||"-"}
- **Functies:** ${x.functies||"-"}
- **Email:** ${x.email||"-"}
- **Telefoon:** ${x.telefoon||"-"}
- **Sector:** ${x.sector||"-"}
- **Aantal medewerkers:** ${x.aantal_medewerkers||"-"}
- **Omzet range:** ${x.omzet_range||"-"}

**Kernactiviteit:**  
${x.kernactiviteit||"-"}

---

## Huidige Situatie

**TOP 3 Frustraties/Knelpunten:**

1. ${x.frustratie_1||"-"}
2. ${x.frustratie_2||"-"}
3. ${x.frustratie_3||"-"}

**Meest tijdrovende activiteit:**  
${x.tijdrovende_activiteit||"-"}

**Tijdsbesteding per week:**  
${x.tijdsbesteding_uren||"-"}

**Gemiste kansen:**  
${x.gemiste_kansen||"-"}

---

## Systemen & Data

**Gebruikte systemen:**  
${((A=x.gebruikte_systemen)==null?void 0:A.join(", "))||"-"}

**Systemen gekoppeld:**  
${x.systemen_gekoppeld||"-"}

**Bedrijfskennis locatie:**  
${((S=x.bedrijfskennis_locatie)==null?void 0:S.join(", "))||"-"}

**Informatie vindbaarheid:**  
${x.informatie_vindbaarheid||"-"}

---

## AI-Readiness

**AI gebruik:**  
${x.ai_gebruik||"-"}

**AI tools:**  
${x.ai_tools_welke||"-"}

**AI ervaring:**  
${x.ai_ervaring||"-"}

**Management houding:**  
${x.management_houding||"-"}

**Medewerkers houding:**  
${x.medewerkers_houding||"-"}

**AI zorgen:**  
${x.ai_zorgen||"-"}

---

## Doelen & Verwachtingen

**Redenen contact:**  
${((E=x.redenen_contact)==null?void 0:E.join(", "))||"-"}

**Succesvol resultaat (6-12 maanden):**  
${x.succesvol_resultaat||"-"}

**Urgentie:**  
${x.urgentie||"-"}

**Budget beschikbaar:**  
${x.budget_beschikbaar||"-"}

**Budget range:**  
${x.budget_range||"-"}

---

## Discovery Sessie

**Aanwezigen:**  
${x.aanwezigen||"-"}

**Specifieke onderwerpen:**  
${x.specifieke_onderwerpen||"-"}

**Te delen documenten:**  
${x.te_delen_documenten||"-"}

${((C=x.geupload_documenten)==null?void 0:C.length)>0?`**Geüploade documenten:**
${x.geupload_documenten.map(B=>`- ${B}`).join(`
`)}`:""}

---

## Aanvullende Informatie

${x.overige_informatie||"-"}

---

## Interne Notities

${x.interne_notities||"-"}

---

*Gegenereerd op ${_t(new Date,"dd MMMM yyyy HH:mm",{locale:Ca})}*
`,w=new Blob([N],{type:"text/markdown;charset=utf-8;"}),k=document.createElement("a");k.href=URL.createObjectURL(w),k.download=`discovery-scan-${x.bedrijfsnaam.replace(/[^a-z0-9]/gi,"-").toLowerCase()}-${_t(new Date(x.created_date),"yyyy-MM-dd")}.md`,k.click()},p=x=>{confirm("Weet je zeker dat je deze inzending wilt verwijderen? Dit kan niet ongedaan worden gemaakt.")&&h.mutate(x)};return!a||a.role!=="admin"?e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-8 text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Geen toegang"}),e.jsx("p",{className:"text-gray-600",children:"Deze pagina is alleen toegankelijk voor admins."})]})}):c?e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsx(TA,{className:"w-8 h-8 animate-spin text-[#FAB868]"})}):e.jsx("div",{className:"min-h-screen bg-gray-50 py-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Discovery Form Inzendingen"}),e.jsx("p",{className:"text-gray-600",children:"Bekijk en beheer ingevulde discovery scans"})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-6",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(se,{variant:r==="all"?"default":"outline",onClick:()=>i("all"),children:["Alles (",o.length,")"]}),e.jsx(se,{variant:r==="nieuw"?"default":"outline",onClick:()=>i("nieuw"),children:"Nieuw"}),e.jsx(se,{variant:r==="bekeken"?"default":"outline",onClick:()=>i("bekeken"),children:"Bekeken"})]}),e.jsxs(se,{onClick:f,variant:"outline",className:"sm:ml-auto",children:[e.jsx(ju,{className:"w-4 h-4 mr-2"}),"Export CSV"]})]}),e.jsx("div",{className:"grid gap-4",children:o.length===0?e.jsxs("div",{className:"bg-white rounded-xl shadow p-8 text-center",children:[e.jsx($t,{className:"w-12 h-12 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Nog geen discovery scans ontvangen"})]}):o.map(x=>e.jsx("div",{className:"bg-white rounded-xl shadow hover:shadow-lg transition-shadow p-6",children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("h3",{className:"text-xl font-bold",children:x.bedrijfsnaam}),e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-semibold ${x.status==="nieuw"?"bg-blue-100 text-blue-700":x.status==="bekeken"?"bg-yellow-100 text-yellow-700":x.status==="sessie_gepland"?"bg-green-100 text-green-700":"bg-gray-100 text-gray-700"}`,children:x.status||"nieuw"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2 text-sm text-gray-600 mb-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ya,{className:"w-4 h-4"}),x.contactpersonen," (",x.functies||"Geen functie",")"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Hr,{className:"w-4 h-4"}),x.email]}),x.telefoon&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Zy,{className:"w-4 h-4"}),x.telefoon]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_i,{className:"w-4 h-4"}),_t(new Date(x.created_date),"dd MMM yyyy HH:mm",{locale:Ca})]})]}),x.sector&&e.jsxs("p",{className:"text-sm text-gray-600 mb-2",children:[e.jsx("strong",{children:"Sector:"})," ",x.sector]}),x.urgentie&&e.jsxs("p",{className:"text-sm text-gray-600",children:[e.jsx("strong",{children:"Urgentie:"})," ",x.urgentie]})]}),e.jsxs(se,{onClick:()=>n(x),size:"sm",variant:"outline",children:[e.jsx(zs,{className:"w-4 h-4 mr-2"}),"Bekijk Details"]})]})},x.id))}),t&&e.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-start justify-center p-4 z-[200] overflow-y-auto pt-24",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-4xl w-full my-8 max-h-[calc(100vh-8rem)] overflow-y-auto shadow-2xl",children:[e.jsxs("div",{className:"sticky top-0 bg-white border-b px-6 py-4 flex items-center justify-between",children:[e.jsx("h2",{className:"text-2xl font-bold",children:t.bedrijfsnaam}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(se,{variant:"outline",size:"sm",onClick:()=>m(t),children:[e.jsx(tD,{className:"w-4 h-4 mr-2"}),"Export MD"]}),e.jsxs(se,{variant:"outline",size:"sm",onClick:()=>p(t.id),className:"text-red-600 hover:text-red-700 hover:bg-red-50",children:[e.jsx(wt,{className:"w-4 h-4 mr-2"}),"Verwijder"]}),e.jsx(se,{variant:"ghost",size:"sm",onClick:()=>n(null),children:e.jsx(Ht,{className:"w-5 h-5"})})]})]}),e.jsxs("div",{className:"p-6 space-y-6",children:[e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4",children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Status"}),e.jsx("div",{className:"flex gap-2 mb-3",children:["nieuw","bekeken","sessie_gepland","afgerond"].map(x=>e.jsx(se,{size:"sm",variant:t.status===x?"default":"outline",onClick:()=>{d.mutate({id:t.id,status:x,notities:t.interne_notities}),n({...t,status:x})},children:x},x))}),e.jsx("label",{className:"block font-semibold mb-2",children:"Interne Notities"}),e.jsx(pt,{value:t.interne_notities||"",onChange:x=>n({...t,interne_notities:x.target.value}),rows:3,placeholder:"Voeg interne notities toe..."}),e.jsx(se,{size:"sm",className:"mt-2",onClick:()=>{d.mutate({id:t.id,status:t.status,notities:t.interne_notities})},children:"Opslaan"})]}),e.jsxs(va,{title:"Bedrijfsgegevens",children:[e.jsx(xt,{label:"Bedrijfsnaam",value:t.bedrijfsnaam}),e.jsx(xt,{label:"Contactpersonen",value:t.contactpersonen}),e.jsx(xt,{label:"Functies",value:t.functies}),e.jsx(xt,{label:"Email",value:t.email}),e.jsx(xt,{label:"Telefoon",value:t.telefoon}),e.jsx(xt,{label:"Sector",value:t.sector}),e.jsx(xt,{label:"Aantal medewerkers",value:t.aantal_medewerkers}),e.jsx(xt,{label:"Omzet range",value:t.omzet_range}),e.jsx(xt,{label:"Kernactiviteit",value:t.kernactiviteit})]}),e.jsxs(va,{title:"Huidige Situatie",children:[e.jsx(xt,{label:"Frustratie 1",value:t.frustratie_1}),e.jsx(xt,{label:"Frustratie 2",value:t.frustratie_2}),e.jsx(xt,{label:"Frustratie 3",value:t.frustratie_3}),e.jsx(xt,{label:"Tijdrovende activiteit",value:t.tijdrovende_activiteit}),e.jsx(xt,{label:"Tijdsbesteding",value:t.tijdsbesteding_uren}),e.jsx(xt,{label:"Gemiste kansen",value:t.gemiste_kansen})]}),e.jsxs(va,{title:"Systemen & Data",children:[e.jsx(xt,{label:"Gebruikte systemen",value:(g=t.gebruikte_systemen)==null?void 0:g.join(", ")}),e.jsx(xt,{label:"Systemen gekoppeld",value:t.systemen_gekoppeld}),e.jsx(xt,{label:"Bedrijfskennis locatie",value:(b=t.bedrijfskennis_locatie)==null?void 0:b.join(", ")}),e.jsx(xt,{label:"Informatie vindbaarheid",value:t.informatie_vindbaarheid})]}),e.jsxs(va,{title:"AI-Readiness",children:[e.jsx(xt,{label:"AI gebruik",value:t.ai_gebruik}),e.jsx(xt,{label:"AI tools",value:t.ai_tools_welke}),e.jsx(xt,{label:"AI ervaring",value:t.ai_ervaring}),e.jsx(xt,{label:"Management houding",value:t.management_houding}),e.jsx(xt,{label:"Medewerkers houding",value:t.medewerkers_houding}),e.jsx(xt,{label:"AI zorgen",value:t.ai_zorgen})]}),e.jsxs(va,{title:"Doelen & Verwachtingen",children:[e.jsx(xt,{label:"Redenen contact",value:(j=t.redenen_contact)==null?void 0:j.join(", ")}),e.jsx(xt,{label:"Succesvol resultaat",value:t.succesvol_resultaat}),e.jsx(xt,{label:"Urgentie",value:t.urgentie}),e.jsx(xt,{label:"Budget beschikbaar",value:t.budget_beschikbaar}),e.jsx(xt,{label:"Budget range",value:t.budget_range})]}),e.jsxs(va,{title:"Discovery Sessie",children:[e.jsx(xt,{label:"Aanwezigen",value:t.aanwezigen}),e.jsx(xt,{label:"Specifieke onderwerpen",value:t.specifieke_onderwerpen}),e.jsx(xt,{label:"Te delen documenten",value:t.te_delen_documenten}),((y=t.geupload_documenten)==null?void 0:y.length)>0&&e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-sm text-gray-600",children:"Geüploade documenten:"}),e.jsx("div",{className:"mt-2 space-y-2",children:t.geupload_documenten.map((x,N)=>e.jsxs("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"block text-blue-600 hover:underline text-sm",children:["📎 ",x.split("/").pop()]},N))})]})]}),e.jsx(va,{title:"Aanvullende Informatie",children:e.jsx(xt,{label:"Overige informatie",value:t.overige_informatie})})]})]})})]})})}function va({title:t,children:n}){return e.jsxs("div",{className:"border-l-4 border-[#FAB868] pl-4",children:[e.jsx("h3",{className:"font-bold text-lg mb-3",children:t}),e.jsx("div",{className:"space-y-2",children:n})]})}function xt({label:t,value:n}){return!n||Array.isArray(n)&&n.length===0?null:e.jsxs("div",{children:[e.jsxs("span",{className:"font-semibold text-sm text-gray-600",children:[t,":"]}),e.jsx("p",{className:"text-gray-900 mt-1",children:n})]})}function zG(){const t=Xt(),[n,r]=I.useState(null),[i,s]=I.useState({template_key:"",name:"",subject:"",body_html:"",description:"",available_placeholders:[],active:!0}),[a,o]=I.useState(!1),[c,d]=I.useState(!1),{data:h=[],isLoading:f}=Fe({queryKey:["email-templates"],queryFn:()=>ce.entities.EmailTemplate.list()}),m=Le({mutationFn:w=>ce.entities.EmailTemplate.create(w),onSuccess:()=>{t.invalidateQueries({queryKey:["email-templates"]}),y()}}),p=Le({mutationFn:({id:w,data:k})=>ce.entities.EmailTemplate.update(w,k),onSuccess:()=>{t.invalidateQueries({queryKey:["email-templates"]}),y()}}),g=Le({mutationFn:w=>ce.entities.EmailTemplate.delete(w),onSuccess:()=>{t.invalidateQueries({queryKey:["email-templates"]})}}),b=w=>{r(w),s({template_key:w.template_key,name:w.name,subject:w.subject,body_html:w.body_html,description:w.description||"",available_placeholders:w.available_placeholders||[],active:w.active!==!1}),o(!0)},j=async w=>{w.preventDefault(),n?await p.mutateAsync({id:n.id,data:i}):await m.mutateAsync(i)},y=()=>{r(null),s({template_key:"",name:"",subject:"",body_html:"",description:"",available_placeholders:[],active:!0}),o(!1)},x=async w=>{window.confirm("Weet je zeker dat je deze template wilt verwijderen?")&&await g.mutateAsync(w)},N=[{template_key:"contact_form",name:"Contact Formulier Bevestiging",description:"Bevestiging na contact formulier inzending",available_placeholders:["{{name}}","{{email}}","{{company}}","{{subject}}","{{message}}"]},{template_key:"impact_report_v2",name:"AI Impact Rapport Email",description:"Email met link naar AI Impact Rapport",available_placeholders:["{{name}}","{{email}}","{{company_name}}","{{report_link}}"]},{template_key:"eu_ai_act_report",name:"EU AI Act Rapport Email",description:"Email met EU AI Act analyse PDF",available_placeholders:["{{name}}","{{email}}","{{company}}"]}];return a?e.jsx("div",{className:"min-h-screen bg-gray-50 py-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"mb-6",children:[e.jsxs(se,{variant:"ghost",onClick:y,className:"mb-4",children:[e.jsx(ht,{className:"w-4 h-4 mr-2"}),"Terug naar overzicht"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:n?"Template Bewerken":"Nieuwe Template"})]}),e.jsxs("form",{onSubmit:j,className:"bg-white rounded-xl p-8 space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Template Key *"}),e.jsx(me,{required:!0,value:i.template_key,onChange:w=>s({...i,template_key:w.target.value}),placeholder:"contact_form",disabled:!!n}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Unieke identifier (niet meer aan te passen na aanmaken)"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Naam *"}),e.jsx(me,{required:!0,value:i.name,onChange:w=>s({...i,name:w.target.value}),placeholder:"Contact Formulier Bevestiging"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Beschrijving"}),e.jsx(me,{value:i.description,onChange:w=>s({...i,description:w.target.value}),placeholder:"Wordt verzonden na..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Email Onderwerp *"}),e.jsx(me,{required:!0,value:i.subject,onChange:w=>s({...i,subject:w.target.value}),placeholder:"Je aanvraag is ontvangen"}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Gebruik placeholders zoals ","{{name}}"," of ","{{company}}"]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Email Body (HTML) *"}),e.jsxs(se,{type:"button",variant:"outline",size:"sm",onClick:()=>d(!c),children:[e.jsx(zs,{className:"w-4 h-4 mr-2"}),c?"Bewerken":"Preview"]})]}),c?e.jsx("div",{className:"border border-gray-200 rounded-lg p-4 bg-white min-h-[400px]",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:i.body_html}})}):e.jsx(pt,{required:!0,value:i.body_html,onChange:w=>s({...i,body_html:w.target.value}),placeholder:"<h2>Hallo {{name}},</h2><p>Bedankt voor je bericht...</p>",className:"font-mono text-sm min-h-[400px]"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"HTML formaat. Gebruik placeholders voor dynamische content."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Beschikbare Placeholders"}),e.jsx(me,{value:i.available_placeholders.join(", "),onChange:w=>s({...i,available_placeholders:w.target.value.split(",").map(k=>k.trim()).filter(Boolean)}),placeholder:"{{name}}, {{email}}, {{company}}"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Komma gescheiden (voor documentatie)"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:i.active,onChange:w=>s({...i,active:w.target.checked}),className:"w-4 h-4 text-blue-600 rounded"}),e.jsx("label",{className:"text-sm font-medium text-gray-700",children:"Template actief"})]}),e.jsxs("div",{className:"flex gap-3 pt-4 border-t border-gray-200",children:[e.jsx(se,{type:"button",variant:"outline",onClick:y,children:"Annuleren"}),e.jsxs(se,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})]})}):e.jsx("div",{className:"min-h-screen bg-gray-50 py-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:ae("AdminDashboard"),className:"inline-flex items-center text-blue-600 hover:text-blue-700 mb-4",children:[e.jsx(ht,{className:"w-4 h-4 mr-2"}),"Terug naar Dashboard"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Email Templates"}),e.jsx("p",{className:"text-gray-600 mt-2",children:"Beheer email templates voor geautomatiseerde mails"})]}),e.jsxs(se,{onClick:()=>o(!0),className:"bg-blue-600 hover:bg-blue-700",children:[e.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Nieuwe Template"]})]}),h.length===0&&!f&&e.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-xl p-6 mb-6",children:[e.jsx("h3",{className:"font-semibold text-yellow-900 mb-2",children:"Geen templates gevonden"}),e.jsx("p",{className:"text-yellow-800 mb-4",children:"Maak templates aan voor de volgende emails:"}),e.jsx("div",{className:"space-y-2",children:N.map(w=>e.jsx("div",{className:"bg-white rounded-lg p-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-gray-900",children:w.name}),e.jsx("p",{className:"text-sm text-gray-600",children:w.description}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Key: ",e.jsx("code",{className:"bg-gray-100 px-2 py-0.5 rounded",children:w.template_key})]}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Placeholders: ",w.available_placeholders.join(", ")]})]}),e.jsx(se,{variant:"outline",onClick:()=>{s({...i,template_key:w.template_key,name:w.name,description:w.description,available_placeholders:w.available_placeholders}),o(!0)},children:"Aanmaken"})]})},w.template_key))})]}),f?e.jsxs("div",{className:"text-center py-12",children:[e.jsx("div",{className:"animate-spin w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Templates laden..."})]}):e.jsx("div",{className:"grid gap-6",children:h.map(w=>e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx(Hr,{className:"w-5 h-5 text-blue-600"}),e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:w.name}),!w.active&&e.jsx("span",{className:"px-2 py-1 bg-gray-200 text-gray-700 text-xs rounded-full",children:"Inactief"})]}),w.description&&e.jsx("p",{className:"text-gray-600 mb-2",children:w.description}),e.jsxs("p",{className:"text-sm text-gray-500 mb-2",children:["Key: ",e.jsx("code",{className:"bg-gray-100 px-2 py-0.5 rounded text-xs",children:w.template_key})]}),e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Onderwerp:"}),e.jsx("p",{className:"text-gray-600 mb-3",children:w.subject}),w.available_placeholders&&w.available_placeholders.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Beschikbare placeholders:"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:w.available_placeholders.map((k,A)=>e.jsx("code",{className:"bg-blue-50 text-blue-700 px-2 py-1 rounded text-xs",children:k},A))})]})]}),e.jsxs("div",{className:"flex gap-2 ml-4",children:[e.jsx(se,{variant:"outline",onClick:()=>b(w),children:"Bewerken"}),e.jsx(se,{variant:"outline",onClick:()=>x(w.id),className:"text-red-600 hover:text-red-700 hover:bg-red-50",children:e.jsx(wt,{className:"w-4 h-4"})})]})]}),e.jsxs("details",{className:"mt-4",children:[e.jsx("summary",{className:"cursor-pointer text-sm font-medium text-gray-700 hover:text-gray-900",children:"Bekijk HTML preview"}),e.jsx("div",{className:"mt-3 p-4 bg-gray-50 rounded-lg border border-gray-200 max-h-96 overflow-y-auto",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:w.body_html}})})]})]},w.id))})]})})}function qG(){var j;const t=wl(),[n,r]=I.useState(!1),[i,s]=I.useState(!0),[a,o]=I.useState(null),c=Xt();I.useEffect(()=>{(async()=>{try{const x=await ce.auth.me();if((x==null?void 0:x.role)!=="admin"){t(ae("Home"));return}r(!0)}catch{t(ae("Home"))}finally{s(!1)}})()},[t]);const{data:d=[],isLoading:h}=Fe({queryKey:["eu-ai-act-submissions"],queryFn:()=>ce.entities.EuAiActSubmission.list("-created_date")}),{data:f=[],isLoading:m}=Fe({queryKey:["eu-ai-act-requests"],queryFn:()=>ce.entities.EuAiActRequest.list("-created_date")}),p=h||m,g=Le({mutationFn:y=>ce.entities.EuAiActSubmission.delete(y),onSuccess:()=>{c.invalidateQueries({queryKey:["eu-ai-act-submissions"]}),o(null)}}),b=()=>{const y=[["Email","Bedrijf","Website","Rapport Link","Email Verzonden","Datum"],...d.map(w=>{var k;return[w.submitted_by_email||"",((k=w.analysis_result)==null?void 0:k.company_name)||w.company_name||"",w.website_url||w.company_url||"",`https://www.48-7.nl/eu-ai-act-checker?report_id=${w.id}`,w.email_sent?"Ja":"Nee",_t(new Date(w.created_date||w.submitted_at),"dd-MM-yyyy HH:mm")]})].map(w=>w.join(",")).join(`
`),x=new Blob([y],{type:"text/csv;charset=utf-8;"}),N=document.createElement("a");N.href=URL.createObjectURL(x),N.download=`eu-ai-act-submissions-${_t(new Date,"dd-MM-yyyy")}.csv`,N.click()};return i?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Vn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})}):n?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(de,{to:ae("AdminDashboard"),children:e.jsx(se,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"EU AI Act Inzendingen"}),e.jsxs("p",{className:"text-gray-600",children:[f.length," aanvragen • ",d.length," rapporten"]})]})]}),e.jsxs(se,{onClick:b,disabled:d.length===0,children:[e.jsx(ju,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),p?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):f.length===0&&d.length===0?e.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[e.jsx($t,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen inzendingen"}),e.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen EU AI Act analyses aangevraagd"})]}):e.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[e.jsx("div",{className:"space-y-4",children:f.map(y=>{var w;const x=d.find(k=>k.id===y.submission_id),N={pending:"bg-gray-100 text-gray-700",processing:"bg-blue-100 text-blue-700",completed:"bg-green-100 text-green-700",failed:"bg-red-100 text-red-700"};return e.jsxs("div",{onClick:()=>o(x||y),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(a==null?void 0:a.id)===y.id||(a==null?void 0:a.id)===(x==null?void 0:x.id)?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900",children:((w=x==null?void 0:x.analysis_result)==null?void 0:w.company_name)||y.website_url||"Onbekend bedrijf"}),y.user_email&&e.jsx("p",{className:"text-xs text-blue-600 mt-1",children:y.user_email})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-semibold ${N[y.status]}`,children:y.status==="pending"?"In wachtrij":y.status==="processing"?"Bezig":y.status==="completed"?"Voltooid":"Gefaald"}),(x==null?void 0:x.email_sent)&&e.jsx(gt,{className:"w-5 h-5 text-green-600"})]})]}),e.jsx("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:e.jsx("span",{children:_t(new Date(y.created_date),"dd MMM yyyy HH:mm")})})]},y.id)})}),e.jsx("div",{className:"lg:sticky lg:top-24 h-fit",children:a?e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6",children:"Detail"}),e.jsxs("div",{className:"space-y-4",children:[a.status&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Status"}),e.jsx("p",{className:"text-gray-900 font-semibold",children:a.status==="pending"?"⏳ In wachtrij":a.status==="processing"?"⚙️ Bezig met analyse":a.status==="completed"?"✅ Voltooid":"❌ Gefaald"}),a.error_message&&e.jsx("p",{className:"text-sm text-red-600 mt-1",children:a.error_message})]}),(a.user_name||a.submitted_by_name)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Aanvrager naam"}),e.jsx("p",{className:"text-gray-900",children:a.user_name||a.submitted_by_name})]}),(a.user_email||a.submitted_by_email)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Aanvrager email"}),e.jsx("p",{className:"text-gray-900",children:a.user_email||a.submitted_by_email})]}),((j=a.analysis_result)==null?void 0:j.company_name)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Bedrijf"}),e.jsx("p",{className:"text-gray-900",children:a.analysis_result.company_name})]}),a.website_url&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Website"}),e.jsxs("a",{href:a.website_url.startsWith("http")?a.website_url:`https://${a.website_url}`,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline flex items-center gap-1",children:[a.website_url,e.jsx(Bs,{className:"w-3 h-3"})]})]}),(a.submission_id||a.analysis_result)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Rapport Link"}),e.jsxs("a",{href:`/EuAiActChecker?report_id=${a.submission_id||a.id}`,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline flex items-center gap-1",children:["Bekijk volledige rapport",e.jsx(Bs,{className:"w-3 h-3"})]})]}),a.submitted_by_email&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Ingediend door"}),e.jsx("p",{className:"text-gray-900",children:a.submitted_by_email})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email Status"}),e.jsx("div",{className:"flex items-center gap-2 mt-1",children:a.email_sent?e.jsxs(e.Fragment,{children:[e.jsx(gt,{className:"w-5 h-5 text-green-600"}),e.jsxs("span",{className:"text-green-600",children:["Verzonden op ",_t(new Date(a.email_sent_at),"dd MMM yyyy HH:mm")]})]}):e.jsxs(e.Fragment,{children:[e.jsx(Yc,{className:"w-5 h-5 text-red-600"}),e.jsx("span",{className:"text-red-600",children:"Niet verzonden"}),a.email_error&&e.jsx("p",{className:"text-xs text-red-500 mt-1",children:a.email_error})]})})]}),e.jsx("div",{className:"pt-6 border-t border-gray-200 mt-6",children:e.jsxs(se,{variant:"destructive",onClick:()=>{confirm("Weet je zeker dat je deze inzending wilt verwijderen?")&&g.mutate(a.id)},disabled:g.isPending,className:"w-full",children:[e.jsx(wt,{className:"w-4 h-4 mr-2"}),g.isPending?"Verwijderen...":"Verwijderen"]})})]})]}):e.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center border-2 border-dashed border-gray-300",children:[e.jsx($t,{className:"w-12 h-12 text-gray-400 mx-auto mb-3"}),e.jsx("p",{className:"text-gray-600",children:"Selecteer een inzending om details te bekijken"})]})})]})]})}):null}function VG(){const[t,n]=I.useState("overzicht"),r=[{id:"overzicht",icon:qa,title:"Overzicht",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Welkom bij het Content Management Systeem"}),e.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Dit CMS stelt je in staat om alle content op je website te beheren zonder in de code te hoeven duiken. Je kunt blog posts schrijven, cases toevoegen, trainingen beheren, en zelfs statische pagina's aanpassen."}),e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4",children:[e.jsx("p",{className:"text-blue-900 font-medium",children:"📍 Je bevindt je nu in het Admin Dashboard"}),e.jsx("p",{className:"text-blue-800 text-sm mt-2",children:"Via het dashboard heb je toegang tot alle beheer functionaliteiten."})]})]})},{id:"blog",icon:$t,title:"Blog Beheer",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Blog Posts Beheren"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"📝 Nieuwe blog post maken"}),e.jsxs("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:[e.jsxs("li",{children:["Ga naar ",e.jsx("strong",{children:"AdminDashboard → Blog"})]}),e.jsxs("li",{children:["Klik op ",e.jsx("strong",{children:'"Nieuw Blog Post"'})]}),e.jsx("li",{children:"Vul de velden in (titel, slug, samenvatting, content)"}),e.jsx("li",{children:"Gebruik de rich text editor voor opmaak"}),e.jsx("li",{children:"Voeg een featured image toe via upload of URL"}),e.jsxs("li",{children:["Klik op ",e.jsx("strong",{children:'"Preview"'})," om het resultaat te zien"]}),e.jsxs("li",{children:["Vink ",e.jsx("strong",{children:'"Publiceren"'})," aan om live te zetten"]})]})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"🖼️ Afbeeldingen in content"}),e.jsx("p",{className:"text-gray-700",children:"Klik op het afbeelding icoon in de rich text editor toolbar. Je kunt een bestand uploaden of een URL plakken. Afbeeldingen worden automatisch ingevoegd op de cursorpositie."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"✍️ Opmaak opties"}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-gray-700",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"H1, H2"})," voor koppen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Bold, Italic, Underline"})," voor tekstopmaak"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Bullet lists, Numbered lists"})," voor lijsten"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Links"})," toevoegen met het link icoon"]})]})]})]})]})},{id:"cases",icon:Briefcase,title:"Cases Beheer",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Case Studies Beheren"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"📋 Nieuwe case toevoegen"}),e.jsxs("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:[e.jsxs("li",{children:["Ga naar ",e.jsx("strong",{children:"AdminDashboard → Cases"})]}),e.jsxs("li",{children:["Klik op ",e.jsx("strong",{children:'"Nieuwe Case"'})]}),e.jsx("li",{children:"Vul klantinformatie in (naam, branche, type)"}),e.jsxs("li",{children:["Beschrijf de ",e.jsx("strong",{children:"uitdaging"})," (gebruik rich text editor)"]}),e.jsxs("li",{children:["Beschrijf de ",e.jsx("strong",{children:"oplossing"})," (gebruik rich text editor)"]}),e.jsxs("li",{children:["Voeg ",e.jsx("strong",{children:"resultaten"})," toe (waarde + label)"]}),e.jsx("li",{children:"Voeg optioneel een quote en tags toe"}),e.jsx("li",{children:"Publiceer de case"})]})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"🏷️ Case Types"}),e.jsxs("p",{className:"text-gray-700",children:["Je kunt kiezen uit: ",e.jsx("strong",{children:"Consultancy"}),", ",e.jsx("strong",{children:"Training"}),", en ",e.jsx("strong",{children:"Development"}),". Nieuwe types toevoegen? Ga naar ",e.jsx("strong",{children:"Instellingen"}),"."]})]})]})]})},{id:"paginas",icon:C1,title:"Pagina's Beheren",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Statische Pagina's Bewerken"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"🎨 Pagina content bewerken"}),e.jsxs("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:[e.jsxs("li",{children:["Ga naar ",e.jsx("strong",{children:"AdminDashboard → Pagina Editor"})]}),e.jsx("li",{children:"Selecteer de pagina die je wilt bewerken (bijv. AI Consultancy)"}),e.jsx("li",{children:"Bekijk bestaande content secties of maak nieuwe aan"}),e.jsxs("li",{children:["Elke sectie heeft een unieke ",e.jsx("strong",{children:"section_key"})]}),e.jsx("li",{children:"Gebruik de rich text editor voor de content"}),e.jsx("li",{children:"Sla op en bekijk de wijzigingen in de preview"})]})]}),e.jsxs("div",{className:"bg-orange-50 border border-orange-200 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-orange-900 mb-2",children:"⚠️ Belangrijk"}),e.jsx("p",{className:"text-orange-800",children:"Het wijzigen van pagina content via de Pagina Editor werkt alleen als de pagina code is aangepast om content uit de database te laden. Sommige pagina's zijn nog hardcoded. Vraag je developer om pagina's dynamisch te maken."})]})]})]})},{id:"instellingen",icon:Jc,title:"Instellingen",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Categorieën & Instellingen"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"🏷️ Categorieën beheren"}),e.jsxs("p",{className:"text-gray-700 mb-3",children:["Ga naar ",e.jsx("strong",{children:"AdminDashboard → Instellingen"})," om categorieën te beheren voor:"]}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-gray-700",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Blog Categorieën"})," (AI, Technologie, Training, etc.)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Case Types"})," (Consultancy, Training, Development)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Training Categorieën"})," (Basis, Gevorderd, Leiderschap, etc.)"]})]})]}),e.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-yellow-900 mb-2",children:"💡 Let op"}),e.jsxs("p",{className:"text-yellow-800 text-sm",children:["Wijzigingen in de Instellingen pagina zijn lokaal. Voor permanente wijzigingen moet je de",e.jsx("strong",{children:" entity schemas"})," aanpassen via ",e.jsx("strong",{children:"Platform Dashboard → Code → Entities"}),"."]})]})]})]})},{id:"database",icon:AA,title:"Database",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Database & Entities"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"🗄️ Directe database toegang"}),e.jsxs("p",{className:"text-gray-700 mb-3",children:["Via het ",e.jsx("strong",{children:"Platform Dashboard → Data"})," kun je direct records bekijken en bewerken:"]}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-gray-700",children:[e.jsx("li",{children:"Zie alle BlogPosts, CaseStudies, Trainingen, etc."}),e.jsx("li",{children:"Bewerk individuele records"}),e.jsx("li",{children:"Verwijder oude content"}),e.jsx("li",{children:"Gebruik filters om specifieke records te vinden"})]})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"⚙️ Entity schemas aanpassen"}),e.jsx("p",{className:"text-gray-700 mb-3",children:"Wil je nieuwe velden toevoegen of categorieën wijzigen?"}),e.jsxs("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:[e.jsxs("li",{children:["Ga naar ",e.jsx("strong",{children:"Platform Dashboard → Code → Entities"})]}),e.jsx("li",{children:"Klik op de entity die je wilt aanpassen (bijv. BlogPost)"}),e.jsx("li",{children:"Pas het JSON schema aan"}),e.jsx("li",{children:"Sla op - de wijzigingen zijn direct actief"})]})]})]})]})},{id:"tips",icon:MO,title:"Tips & Tricks",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Handige Tips"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-green-900 mb-2",children:"✅ Best Practices"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 text-green-800",children:[e.jsx("li",{children:'Gebruik duidelijke, beschrijvende slugs (bijv. "ai-voor-beginners")'}),e.jsx("li",{children:"Voeg altijd een featured image toe voor betere presentatie"}),e.jsx("li",{children:"Gebruik de preview functie voordat je publiceert"}),e.jsx("li",{children:"Bewaar drafts - publiceer pas als alles klopt"}),e.jsx("li",{children:"Gebruik tags om content gemakkelijk te kunnen filteren"})]})]}),e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-blue-900 mb-2",children:"⌨️ Sneltoetsen"}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-blue-800",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Ctrl/Cmd + B"})," - Bold text"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Ctrl/Cmd + I"})," - Italic text"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Ctrl/Cmd + U"})," - Underline text"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Enter"})," bij invoervelden - Voeg item toe"]})]})]}),e.jsxs("div",{className:"bg-purple-50 border border-purple-200 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-purple-900 mb-2",children:"🎯 Workflow tip"}),e.jsxs("p",{className:"text-purple-800",children:["Gebruik ",e.jsx("strong",{children:"AdminDashboard"})," als je startpunt. Van daaruit heb je toegang tot alle content management tools. Bookmark deze pagina voor snelle toegang!"]})]})]})]})}];return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(de,{to:ae("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),e.jsxs("div",{className:"mb-12 text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 bg-blue-600 rounded-2xl mb-6",children:e.jsx(qa,{className:"w-10 h-10 text-white"})}),e.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-4",children:"CMS Handleiding"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Alles wat je moet weten om je website content te beheren"})]}),e.jsx("div",{className:"space-y-4",children:r.map(i=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-2xl border-2 border-gray-100 overflow-hidden",children:[e.jsxs("button",{onClick:()=>n(t===i.id?null:i.id),className:"w-full flex items-center justify-between p-6 hover:bg-gray-50 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center",children:e.jsx(i.icon,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:i.title})]}),t===i.id?e.jsx(ka,{className:"w-6 h-6 text-gray-400"}):e.jsx(_A,{className:"w-6 h-6 text-gray-400"})]}),t===i.id&&e.jsx(Z.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"border-t border-gray-100",children:e.jsx("div",{className:"p-8",children:i.content})})]},i.id))}),e.jsxs("div",{className:"mt-12 bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white",children:[e.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Snelle Links"}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[e.jsxs(de,{to:ae("AdminBlog"),className:"bg-white/10 hover:bg-white/20 rounded-xl p-4 transition-colors",children:[e.jsx($t,{className:"w-6 h-6 mb-2"}),e.jsx("p",{className:"font-semibold",children:"Blog Beheer"})]}),e.jsxs(de,{to:ae("AdminCases"),className:"bg-white/10 hover:bg-white/20 rounded-xl p-4 transition-colors",children:[e.jsx(C1,{className:"w-6 h-6 mb-2"}),e.jsx("p",{className:"font-semibold",children:"Cases Beheer"})]}),e.jsxs(de,{to:ae("AdminSettings"),className:"bg-white/10 hover:bg-white/20 rounded-xl p-4 transition-colors",children:[e.jsx(Jc,{className:"w-6 h-6 mb-2"}),e.jsx("p",{className:"font-semibold",children:"Instellingen"})]})]})]})]})})}var l0="rovingFocusGroup.onEntryFocus",UG={bubbles:!1,cancelable:!0},Mu="RovingFocusGroup",[Dy,_5,$G]=UE(Mu),[HG,S5]=to(Mu,[$G]),[WG,KG]=HG(Mu),A5=I.forwardRef((t,n)=>e.jsx(Dy.Provider,{scope:t.__scopeRovingFocusGroup,children:e.jsx(Dy.Slot,{scope:t.__scopeRovingFocusGroup,children:e.jsx(GG,{...t,ref:n})})}));A5.displayName=Mu;var GG=I.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:f=!1,...m}=t,p=I.useRef(null),g=Yt(n,p),b=Yv(a),[j,y]=gl({prop:o,defaultProp:c??null,onChange:d,caller:Mu}),[x,N]=I.useState(!1),w=Gs(h),k=_5(r),A=I.useRef(!1),[S,E]=I.useState(0);return I.useEffect(()=>{const C=p.current;if(C)return C.addEventListener(l0,w),()=>C.removeEventListener(l0,w)},[w]),e.jsx(WG,{scope:r,orientation:i,dir:b,loop:s,currentTabStopId:j,onItemFocus:I.useCallback(C=>y(C),[y]),onItemShiftTab:I.useCallback(()=>N(!0),[]),onFocusableItemAdd:I.useCallback(()=>E(C=>C+1),[]),onFocusableItemRemove:I.useCallback(()=>E(C=>C-1),[]),children:e.jsx(jt.div,{tabIndex:x||S===0?-1:0,"data-orientation":i,...m,ref:g,style:{outline:"none",...t.style},onMouseDown:bt(t.onMouseDown,()=>{A.current=!0}),onFocus:bt(t.onFocus,C=>{const B=!A.current;if(C.target===C.currentTarget&&B&&!x){const D=new CustomEvent(l0,UG);if(C.currentTarget.dispatchEvent(D),!D.defaultPrevented){const F=k().filter(Q=>Q.focusable),R=F.find(Q=>Q.active),z=F.find(Q=>Q.id===j),U=[R,z,...F].filter(Boolean).map(Q=>Q.ref.current);T5(U,f)}}A.current=!1}),onBlur:bt(t.onBlur,()=>N(!1))})})}),C5="RovingFocusGroupItem",E5=I.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:a,children:o,...c}=t,d=Ru(),h=a||d,f=KG(C5,r),m=f.currentTabStopId===h,p=_5(r),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:j}=f;return I.useEffect(()=>{if(i)return g(),()=>b()},[i,g,b]),e.jsx(Dy.ItemSlot,{scope:r,id:h,focusable:i,active:s,children:e.jsx(jt.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...c,ref:n,onMouseDown:bt(t.onMouseDown,y=>{i?f.onItemFocus(h):y.preventDefault()}),onFocus:bt(t.onFocus,()=>f.onItemFocus(h)),onKeyDown:bt(t.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){f.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const x=XG(y,f.orientation,f.dir);if(x!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let w=p().filter(k=>k.focusable).map(k=>k.ref.current);if(x==="last")w.reverse();else if(x==="prev"||x==="next"){x==="prev"&&w.reverse();const k=w.indexOf(y.currentTarget);w=f.loop?JG(w,k+1):w.slice(k+1)}setTimeout(()=>T5(w))}}),children:typeof o=="function"?o({isCurrentTabStop:m,hasTabStop:j!=null}):o})})});E5.displayName=C5;var QG={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function YG(t,n){return n!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function XG(t,n,r){const i=YG(t.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return QG[i]}function T5(t,n=!1){const r=document.activeElement;for(const i of t)if(i===r||(i.focus({preventScroll:n}),document.activeElement!==r))return}function JG(t,n){return t.map((r,i)=>t[(n+i)%t.length])}var ZG=A5,eQ=E5;function tQ(t,n){return I.useReducer((r,i)=>n[r][i]??r,t)}var db=t=>{const{present:n,children:r}=t,i=nQ(n),s=typeof r=="function"?r({present:i.isPresent}):I.Children.only(r),a=Yt(i.ref,rQ(s));return typeof r=="function"||i.isPresent?I.cloneElement(s,{ref:a}):null};db.displayName="Presence";function nQ(t){const[n,r]=I.useState(),i=I.useRef(null),s=I.useRef(t),a=I.useRef("none"),o=t?"mounted":"unmounted",[c,d]=tQ(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect(()=>{const h=hh(i.current);a.current=c==="mounted"?h:"none"},[c]),Rn(()=>{const h=i.current,f=s.current;if(f!==t){const p=a.current,g=hh(h);t?d("MOUNT"):g==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(f&&p!==g?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),Rn(()=>{if(n){let h;const f=n.ownerDocument.defaultView??window,m=g=>{const j=hh(i.current).includes(CSS.escape(g.animationName));if(g.target===n&&j&&(d("ANIMATION_END"),!s.current)){const y=n.style.animationFillMode;n.style.animationFillMode="forwards",h=f.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=y)})}},p=g=>{g.target===n&&(a.current=hh(i.current))};return n.addEventListener("animationstart",p),n.addEventListener("animationcancel",m),n.addEventListener("animationend",m),()=>{f.clearTimeout(h),n.removeEventListener("animationstart",p),n.removeEventListener("animationcancel",m),n.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:I.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function hh(t){return(t==null?void 0:t.animationName)||"none"}function rQ(t){var i,s;let n=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?t.ref:(n=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var zf="Tabs",[iQ]=to(zf,[S5]),P5=S5(),[sQ,hb]=iQ(zf),O5=I.forwardRef((t,n)=>{const{__scopeTabs:r,value:i,onValueChange:s,defaultValue:a,orientation:o="horizontal",dir:c,activationMode:d="automatic",...h}=t,f=Yv(c),[m,p]=gl({prop:i,onChange:s,defaultProp:a??"",caller:zf});return e.jsx(sQ,{scope:r,baseId:Ru(),value:m,onValueChange:p,orientation:o,dir:f,activationMode:d,children:e.jsx(jt.div,{dir:f,"data-orientation":o,...h,ref:n})})});O5.displayName=zf;var D5="TabsList",I5=I.forwardRef((t,n)=>{const{__scopeTabs:r,loop:i=!0,...s}=t,a=hb(D5,r),o=P5(r);return e.jsx(ZG,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:i,children:e.jsx(jt.div,{role:"tablist","aria-orientation":a.orientation,...s,ref:n})})});I5.displayName=D5;var R5="TabsTrigger",F5=I.forwardRef((t,n)=>{const{__scopeTabs:r,value:i,disabled:s=!1,...a}=t,o=hb(R5,r),c=P5(r),d=B5(o.baseId,i),h=z5(o.baseId,i),f=i===o.value;return e.jsx(eQ,{asChild:!0,...c,focusable:!s,active:f,children:e.jsx(jt.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":h,"data-state":f?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:d,...a,ref:n,onMouseDown:bt(t.onMouseDown,m=>{!s&&m.button===0&&m.ctrlKey===!1?o.onValueChange(i):m.preventDefault()}),onKeyDown:bt(t.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&o.onValueChange(i)}),onFocus:bt(t.onFocus,()=>{const m=o.activationMode!=="manual";!f&&!s&&m&&o.onValueChange(i)})})})});F5.displayName=R5;var M5="TabsContent",L5=I.forwardRef((t,n)=>{const{__scopeTabs:r,value:i,forceMount:s,children:a,...o}=t,c=hb(M5,r),d=B5(c.baseId,i),h=z5(c.baseId,i),f=i===c.value,m=I.useRef(f);return I.useEffect(()=>{const p=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(p)},[]),e.jsx(db,{present:s||f,children:({present:p})=>e.jsx(jt.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!p,id:h,tabIndex:0,...o,ref:n,style:{...t.style,animationDuration:m.current?"0s":void 0},children:p&&a})})});L5.displayName=M5;function B5(t,n){return`${t}-trigger-${n}`}function z5(t,n){return`${t}-content-${n}`}var aQ=O5,q5=I5,V5=F5,U5=L5;const oQ=aQ,$5=I.forwardRef(({className:t,...n},r)=>e.jsx(q5,{ref:r,className:Qt("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...n}));$5.displayName=q5.displayName;const Mo=I.forwardRef(({className:t,...n},r)=>e.jsx(V5,{ref:r,className:Qt("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 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",t),...n}));Mo.displayName=V5.displayName;const Lo=I.forwardRef(({className:t,...n},r)=>e.jsx(U5,{ref:r,className:Qt("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...n}));Lo.displayName=U5.displayName;function lQ(){const[t,n]=I.useState("services"),[r,i]=I.useState({type:null,id:null}),[s,a]=I.useState({}),o=Xt(),{data:c=[]}=Fe({queryKey:["homeServices"],queryFn:()=>ce.entities.HomeService.list("sort_order")}),{data:d=[]}=Fe({queryKey:["homeBenefits"],queryFn:()=>ce.entities.HomeBenefit.list("sort_order")}),{data:h=[]}=Fe({queryKey:["processSteps"],queryFn:()=>ce.entities.ProcessStep.list("step_number")}),{data:f=[]}=Fe({queryKey:["teamMembers"],queryFn:()=>ce.entities.TeamMember.list("sort_order")}),{data:m=[]}=Fe({queryKey:["homeCTAs"],queryFn:()=>ce.entities.HomeCTA.list("sort_order")}),{data:p=[]}=Fe({queryKey:["homeSections"],queryFn:()=>ce.entities.HomeSection.list("sort_order"),initialData:[]}),g=Le({mutationFn:({entity:C,data:B})=>ce.entities[C].create(B),onSuccess:(C,B)=>{o.invalidateQueries({queryKey:[x(B.entity)]}),N()}}),b=Le({mutationFn:({entity:C,id:B,data:D})=>ce.entities[C].update(B,D),onSuccess:(C,B)=>{o.invalidateQueries({queryKey:[x(B.entity)]}),N()}}),j=Le({mutationFn:({entity:C,id:B})=>ce.entities[C].delete(B),onSuccess:(C,B)=>{o.invalidateQueries({queryKey:[x(B.entity)]})}}),y=Le({mutationFn:({id:C,data:B})=>ce.entities.HomeSection.update(C,B),onSuccess:()=>{o.invalidateQueries({queryKey:["homeSections"]})},onError:C=>{console.error("Failed to update section:",C),alert("Kon sectie niet updaten. Probeer het opnieuw.")}}),x=C=>({HomeService:"homeServices",HomeBenefit:"homeBenefits",ProcessStep:"processSteps",TeamMember:"teamMembers",HomeCTA:"homeCTAs"})[C],N=()=>{i({type:null,id:null}),a({})},w=(C,B)=>{i({type:C,id:B.id}),a(B)},k=(C,B)=>{C.preventDefault(),r.id?b.mutate({entity:B,id:r.id,data:s}):g.mutate({entity:B,data:s})},A=()=>{a({...s,tags:[...s.tags||[],""]})},S=(C,B)=>{const D=[...s.tags];D[C]=B,a({...s,tags:D})},E=C=>{const B=s.tags.filter((D,F)=>F!==C);a({...s,tags:B})};return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[e.jsx(de,{to:ae("AdminDashboard"),children:e.jsx(se,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Homepage Beheren"}),e.jsx("p",{className:"text-gray-600",children:"Beheer alle secties van de homepage"})]})]}),e.jsxs("div",{className:"mb-8 bg-white rounded-2xl p-6 border border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"Homepage Secties Aan/Uit"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"Schakel secties in of uit om ze te tonen op de homepage"}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:p.map(C=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[e.jsx("span",{className:"font-medium text-gray-900",children:C.title||C.section_key}),e.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:C.active,disabled:y.isPending,onChange:B=>y.mutate({id:C.id,data:{active:B.target.checked}}),className:"sr-only peer"}),e.jsx("div",{className:`w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600 ${y.isPending?"opacity-50 cursor-not-allowed":""}`})]})]},C.id))})]}),e.jsxs(oQ,{value:t,onValueChange:n,children:[e.jsxs($5,{className:"mb-8",children:[e.jsxs(Mo,{value:"services",children:["Diensten (",c.length,")"]}),e.jsxs(Mo,{value:"benefits",children:["Waarom 48-7 (",d.length,")"]}),e.jsxs(Mo,{value:"process",children:["Proces (",h.length,")"]}),e.jsxs(Mo,{value:"team",children:["Team (",f.length,")"]}),e.jsxs(Mo,{value:"ctas",children:["CTA's (",m.length,")"]})]}),e.jsxs(Lo,{value:"services",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="HomeService"?"Dienst Bewerken":"Nieuwe Dienst"}),e.jsxs("form",{onSubmit:C=>k(C,"HomeService"),className:"space-y-6",children:[e.jsx(me,{placeholder:"Titel (bijv. AI Consultancy)",value:s.title||"",onChange:C=>a({...s,title:C.target.value}),required:!0}),e.jsx(pt,{placeholder:"Beschrijving",value:s.description||"",onChange:C=>a({...s,description:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Icon naam (bijv. Lightbulb, Code, Headphones)",value:s.icon||"",onChange:C=>a({...s,icon:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Link URL (optioneel)",value:s.link_url||"",onChange:C=>a({...s,link_url:C.target.value})}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(me,{type:"number",placeholder:"Volgorde",value:s.sort_order||0,onChange:C=>a({...s,sort_order:parseInt(C.target.value)})}),e.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"true",children:"Actief"}),e.jsx("option",{value:"false",children:"Inactief"})]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(se,{type:"submit",children:"Opslaan"}),r.type==="HomeService"&&e.jsx(se,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:c.map(C=>e.jsxs("div",{className:"bg-white rounded-2xl p-6 border-2 border-gray-200",children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsx("h3",{className:"font-bold text-lg",children:C.title}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>w("HomeService",C),children:e.jsx(On,{className:"w-4 h-4"})}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"HomeService",id:C.id}),children:e.jsx(wt,{className:"w-4 h-4"})})]})]}),e.jsx("p",{className:"text-gray-600 text-sm mb-2",children:C.description}),e.jsxs("p",{className:"text-xs text-gray-500",children:["Icon: ",C.icon]})]},C.id))})]}),e.jsxs(Lo,{value:"benefits",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="HomeBenefit"?"Voordeel Bewerken":"Nieuw Voordeel"}),e.jsxs("form",{onSubmit:C=>k(C,"HomeBenefit"),className:"space-y-6",children:[e.jsx(me,{placeholder:"Titel (bijv. Kennis uit het bedrijfsleven)",value:s.title||"",onChange:C=>a({...s,title:C.target.value}),required:!0}),e.jsx(pt,{placeholder:"Beschrijving",value:s.description||"",onChange:C=>a({...s,description:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Icon naam (bijv. Briefcase, Layers, Building2)",value:s.icon||"",onChange:C=>a({...s,icon:C.target.value}),required:!0}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Tags"}),(s.tags||[]).map((C,B)=>e.jsxs("div",{className:"flex gap-2 mb-2",children:[e.jsx(me,{value:C,onChange:D=>S(B,D.target.value),placeholder:"Tag"}),e.jsx(se,{type:"button",variant:"outline",onClick:()=>E(B),children:e.jsx(wt,{className:"w-4 h-4"})})]},B)),e.jsxs(se,{type:"button",variant:"outline",onClick:A,children:[e.jsx(Ot,{className:"w-4 h-4 mr-2"})," Tag toevoegen"]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(me,{type:"number",placeholder:"Volgorde",value:s.sort_order||0,onChange:C=>a({...s,sort_order:parseInt(C.target.value)})}),e.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"true",children:"Actief"}),e.jsx("option",{value:"false",children:"Inactief"})]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(se,{type:"submit",children:"Opslaan"}),r.type==="HomeBenefit"&&e.jsx(se,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:d.map(C=>e.jsxs("div",{className:"bg-white rounded-2xl p-6 border-2 border-gray-200",children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsx("h3",{className:"font-bold text-lg",children:C.title}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>w("HomeBenefit",C),children:e.jsx(On,{className:"w-4 h-4"})}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"HomeBenefit",id:C.id}),children:e.jsx(wt,{className:"w-4 h-4"})})]})]}),e.jsx("p",{className:"text-gray-600 text-sm mb-2",children:C.description}),C.tags&&C.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:C.tags.map((B,D)=>e.jsx("span",{className:"text-xs bg-gray-100 px-2 py-1 rounded",children:B},D))})]},C.id))})]}),e.jsxs(Lo,{value:"process",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="ProcessStep"?"Stap Bewerken":"Nieuwe Stap"}),e.jsxs("form",{onSubmit:C=>k(C,"ProcessStep"),className:"space-y-6",children:[e.jsx(me,{type:"number",placeholder:"Stap nummer (1, 2, 3, 4)",value:s.step_number||"",onChange:C=>a({...s,step_number:parseInt(C.target.value)}),required:!0}),e.jsx(me,{placeholder:"Titel (bijv. Analyse)",value:s.title||"",onChange:C=>a({...s,title:C.target.value}),required:!0}),e.jsx(pt,{placeholder:"Beschrijving",value:s.description||"",onChange:C=>a({...s,description:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Icon naam (bijv. Search, Map, Rocket)",value:s.icon||"",onChange:C=>a({...s,icon:C.target.value}),required:!0}),e.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"true",children:"Actief"}),e.jsx("option",{value:"false",children:"Inactief"})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(se,{type:"submit",children:"Opslaan"}),r.type==="ProcessStep"&&e.jsx(se,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:h.map(C=>e.jsxs("div",{className:"bg-white rounded-2xl p-6 border-2 border-gray-200",children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("span",{className:"text-2xl font-bold text-blue-600",children:["0",C.step_number]}),e.jsx("h3",{className:"font-bold text-lg",children:C.title})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>w("ProcessStep",C),children:e.jsx(On,{className:"w-4 h-4"})}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"ProcessStep",id:C.id}),children:e.jsx(wt,{className:"w-4 h-4"})})]})]}),e.jsx("p",{className:"text-gray-600 text-sm",children:C.description})]},C.id))})]}),e.jsxs(Lo,{value:"team",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="TeamMember"?"Teamlid Bewerken":"Nieuw Teamlid"}),e.jsxs("form",{onSubmit:C=>k(C,"TeamMember"),className:"space-y-6",children:[e.jsx(me,{placeholder:"Naam",value:s.name||"",onChange:C=>a({...s,name:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Functie (bijv. Founder & CEO)",value:s.role||"",onChange:C=>a({...s,role:C.target.value}),required:!0}),e.jsx(ea,{label:"Foto",value:s.image_url,onChange:C=>a({...s,image_url:C}),recommendedSize:"500x500px"}),e.jsx(pt,{placeholder:"Bio (optioneel)",value:s.bio||"",onChange:C=>a({...s,bio:C.target.value})}),e.jsx(me,{placeholder:"LinkedIn URL (optioneel)",value:s.linkedin_url||"",onChange:C=>a({...s,linkedin_url:C.target.value})}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(me,{type:"number",placeholder:"Volgorde",value:s.sort_order||0,onChange:C=>a({...s,sort_order:parseInt(C.target.value)})}),e.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"true",children:"Actief"}),e.jsx("option",{value:"false",children:"Inactief"})]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(se,{type:"submit",children:"Opslaan"}),r.type==="TeamMember"&&e.jsx(se,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:f.map(C=>e.jsxs("div",{className:"bg-white rounded-2xl p-6 border-2 border-gray-200",children:[C.image_url&&e.jsx("img",{src:C.image_url,alt:C.name,className:"w-full h-48 object-cover rounded-xl mb-4"}),e.jsxs("div",{className:"flex justify-between items-start mb-2",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold",children:C.name}),e.jsx("p",{className:"text-sm text-gray-600",children:C.role})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>w("TeamMember",C),children:e.jsx(On,{className:"w-4 h-4"})}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"TeamMember",id:C.id}),children:e.jsx(wt,{className:"w-4 h-4"})})]})]})]},C.id))})]}),e.jsxs(Lo,{value:"ctas",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="HomeCTA"?"CTA Bewerken":"Nieuwe CTA"}),e.jsxs("form",{onSubmit:C=>k(C,"HomeCTA"),className:"space-y-6",children:[e.jsx(me,{placeholder:"Titel (bijv. AI Quiz)",value:s.title||"",onChange:C=>a({...s,title:C.target.value}),required:!0}),e.jsx(pt,{placeholder:"Beschrijving",value:s.description||"",onChange:C=>a({...s,description:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Button tekst (bijv. Start de quiz)",value:s.button_text||"",onChange:C=>a({...s,button_text:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Button URL",value:s.button_url||"",onChange:C=>a({...s,button_url:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Icon naam (bijv. Sparkles, Calendar, GraduationCap)",value:s.icon||"",onChange:C=>a({...s,icon:C.target.value}),required:!0}),e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsx(me,{type:"number",placeholder:"Volgorde",value:s.sort_order||0,onChange:C=>a({...s,sort_order:parseInt(C.target.value)})}),e.jsxs("select",{value:s.featured??!1,onChange:C=>a({...s,featured:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"false",children:"Normaal"}),e.jsx("option",{value:"true",children:"Featured (blauw)"})]}),e.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"true",children:"Actief"}),e.jsx("option",{value:"false",children:"Inactief"})]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(se,{type:"submit",children:"Opslaan"}),r.type==="HomeCTA"&&e.jsx(se,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:m.map(C=>e.jsxs("div",{className:`rounded-2xl p-6 border-2 ${C.featured?"bg-blue-600 text-white border-blue-700":"bg-white border-gray-200"}`,children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsx("h3",{className:"font-bold text-lg",children:C.title}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>w("HomeCTA",C),children:e.jsx(On,{className:"w-4 h-4"})}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"HomeCTA",id:C.id}),children:e.jsx(wt,{className:"w-4 h-4"})})]})]}),e.jsx("p",{className:`text-sm mb-2 ${C.featured?"text-white/90":"text-gray-600"}`,children:C.description}),e.jsxs("p",{className:"text-xs opacity-70",children:["Button: ",C.button_text]})]},C.id))})]})]})]})})}function cQ(){var j,y,x,N,w,k,A;const t=wl(),[n,r]=I.useState(!1),[i,s]=I.useState(!0),[a,o]=I.useState(null),c=Xt();I.useEffect(()=>{(async()=>{try{const E=await ce.auth.me();if((E==null?void 0:E.role)!=="admin"){t(ae("Home"));return}r(!0)}catch{t(ae("Home"))}finally{s(!1)}})()},[t]);const{data:d=[],isLoading:h}=Fe({queryKey:["impact-scan-submissions"],queryFn:()=>ce.entities.ImpactScanSubmission2.list("-created_date")}),{data:f=[],isLoading:m}=Fe({queryKey:["impact-scan-requests"],queryFn:()=>ce.entities.ImpactScanRequest.list("-created_date")}),p=h||m,g=Le({mutationFn:S=>ce.entities.ImpactScanSubmission2.delete(S),onSuccess:()=>{c.invalidateQueries({queryKey:["impact-scan-submissions"]}),o(null)}}),b=()=>{const S=[["Website URL","Bedrijfsnaam","Branche","Email aanvrager","Datum","Rapport Link"],...d.map(B=>{var D,F,R,z;return[B.website_url||"",B.company_name||((F=(D=B.report_data)==null?void 0:D.company_profile)==null?void 0:F.name)||"",B.industry||((z=(R=B.report_data)==null?void 0:R.company_profile)==null?void 0:z.sector)||"",B.submitted_by_email||"",_t(new Date(B.created_date),"dd-MM-yyyy HH:mm"),`https://48-7.nl/AIImpactRapport?report_id=${B.id}`]})].map(B=>B.join(",")).join(`
`),E=new Blob([S],{type:"text/csv;charset=utf-8;"}),C=document.createElement("a");C.href=URL.createObjectURL(E),C.download=`impact-scans-${_t(new Date,"dd-MM-yyyy")}.csv`,C.click()};return i?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Vn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})}):n?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(de,{to:ae("AdminDashboard"),children:e.jsx(se,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"AI Impact Scans"}),e.jsxs("p",{className:"text-gray-600",children:[f.length," aanvragen • ",d.length," rapporten"]})]})]}),e.jsxs(se,{onClick:b,disabled:d.length===0,children:[e.jsx(ju,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),p?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):f.length===0&&d.length===0?e.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[e.jsx($t,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen scans"}),e.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen AI Impact Scans aangevraagd"})]}):e.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[f.map(S=>{const E=d.find(B=>B.id===S.submission_id),C={pending:"bg-gray-100 text-gray-700",processing:"bg-blue-100 text-blue-700",completed:"bg-green-100 text-green-700",failed:"bg-red-100 text-red-700"};return e.jsxs("div",{onClick:()=>o(E||S),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(a==null?void 0:a.id)===S.id||(a==null?void 0:a.id)===(E==null?void 0:E.id)?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900",children:S.user_name||(E==null?void 0:E.company_name)||S.company_name||S.website_url||"Onbekend Bedrijf"}),e.jsx("p",{className:"text-sm text-gray-500",children:S.company_name||(E==null?void 0:E.company_name)||""}),S.user_email&&e.jsx("p",{className:"text-sm text-gray-400",children:S.user_email})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-semibold ${C[S.status]}`,children:S.status==="pending"?"In wachtrij":S.status==="processing"?"Bezig":S.status==="completed"?"Voltooid":"Gefaald"}),(E==null?void 0:E.email_sent)&&e.jsx(gt,{className:"w-5 h-5 text-green-600"})]})]}),e.jsx("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:e.jsx("span",{children:_t(new Date(S.created_date),"dd MMM yyyy HH:mm")})})]},S.id)}),d.filter(S=>!f.find(E=>E.submission_id===S.id)).map(S=>{var E,C;return e.jsxs("div",{onClick:()=>o(S),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(a==null?void 0:a.id)===S.id?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900",children:((C=(E=S.report_data)==null?void 0:E.company_profile)==null?void 0:C.name)||S.company_name||S.website_url||"Onbekend Bedrijf"}),S.company_name&&e.jsx("p",{className:"text-sm text-gray-500",children:S.company_name}),S.submitted_by_email&&e.jsx("p",{className:"text-sm text-gray-400",children:S.submitted_by_email})]}),S.email_sent?e.jsx(gt,{className:"w-5 h-5 text-green-600"}):e.jsx(Yc,{className:"w-5 h-5 text-gray-400"})]}),e.jsx("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:e.jsx("span",{children:_t(new Date(S.created_date),"dd MMM yyyy HH:mm")})})]},S.id)})]}),e.jsx("div",{className:"lg:sticky lg:top-24 h-fit",children:a?e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6",children:"Detail"}),e.jsxs("div",{className:"space-y-4",children:[a.status&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Status"}),e.jsx("p",{className:"text-gray-900 font-semibold",children:a.status==="pending"?"⏳ In wachtrij":a.status==="processing"?"⚙️ Bezig met genereren":a.status==="completed"?"✅ Voltooid":"❌ Gefaald"}),a.error_message&&e.jsx("p",{className:"text-sm text-red-600 mt-1",children:a.error_message})]}),a.submission_id&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Rapport Link"}),e.jsx("div",{className:"flex items-center gap-2 mt-1",children:e.jsxs("a",{href:`/AIImpactRapport?report_id=${a.submission_id}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-blue-600 hover:text-blue-800 transition-colors",children:[e.jsx(Bs,{className:"w-4 h-4"}),"Bekijk rapport"]})})]}),a.report_data&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Rapport Link"}),e.jsx("div",{className:"flex items-center gap-2 mt-1",children:e.jsxs("a",{href:`/AIImpactRapport?report_id=${a.id}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-blue-600 hover:text-blue-800 transition-colors",children:[e.jsx(Bs,{className:"w-4 h-4"}),"Bekijk rapport"]})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Website URL"}),e.jsx("p",{className:"text-gray-900",children:a.website_url})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Bedrijfsnaam"}),e.jsx("p",{className:"text-gray-900",children:a.company_name||((y=(j=a.report_data)==null?void 0:j.company_profile)==null?void 0:y.name)||"Niet opgegeven"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Branche"}),e.jsx("p",{className:"text-gray-900",children:a.industry||((N=(x=a.report_data)==null?void 0:x.company_profile)==null?void 0:N.sector)||"Niet opgegeven"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email aanvrager"}),e.jsx("p",{className:"text-gray-900",children:a.user_email||a.submitted_by_email||"Niet opgegeven"})]}),a.user_name&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Naam aanvrager"}),e.jsx("p",{className:"text-gray-900",children:a.user_name})]}),((w=a.report_data)==null?void 0:w.quick_scan)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Quick Scan"}),e.jsx("p",{className:"text-gray-900 text-sm",children:a.report_data.quick_scan.focus||"Niet beschikbaar"})]}),((A=(k=a.report_data)==null?void 0:k.opportunities)==null?void 0:A.length)>0&&e.jsxs("div",{children:[e.jsxs("label",{className:"text-sm font-medium text-gray-600",children:["AI Kansen (",a.report_data.opportunities.length,")"]}),e.jsx("ul",{className:"list-disc list-inside text-sm text-gray-900 space-y-1 mt-1",children:a.report_data.opportunities.map((S,E)=>e.jsx("li",{children:S.title},E))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email Status"}),e.jsx("div",{className:"flex items-center gap-2 mt-1",children:a.email_sent?e.jsxs(e.Fragment,{children:[e.jsx(gt,{className:"w-5 h-5 text-green-600"}),e.jsxs("span",{className:"text-green-600",children:["Verzonden op ",_t(new Date(a.email_sent_at),"dd MMM yyyy HH:mm")]})]}):e.jsxs(e.Fragment,{children:[e.jsx(Yc,{className:"w-5 h-5 text-gray-400"}),e.jsx("span",{className:"text-gray-600",children:"Niet verzonden"}),a.email_error&&e.jsx("p",{className:"text-xs text-red-500 mt-1",children:a.email_error})]})})]}),e.jsx("div",{className:"pt-6 border-t border-gray-200 mt-6",children:e.jsxs(se,{variant:"destructive",onClick:()=>{confirm("Weet je zeker dat je deze scan wilt verwijderen?")&&g.mutate(a.id)},disabled:g.isPending,className:"w-full",children:[e.jsx(wt,{className:"w-4 h-4 mr-2"}),g.isPending?"Verwijderen...":"Verwijderen"]})})]})]}):e.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center border-2 border-dashed border-gray-300",children:[e.jsx($t,{className:"w-12 h-12 text-gray-400 mx-auto mb-3"}),e.jsx("p",{className:"text-gray-600",children:"Selecteer een scan om details te bekijken"})]})})]})]})}):null}function uQ(){const{data:t=[],isLoading:n}=Fe({queryKey:["newsletter-subscribers"],queryFn:()=>ce.entities.NewsletterSubscriber.list("-subscription_date")}),r=()=>{const i=[["Email","Inschrijfdatum","Bron","Status"],...t.map(o=>[o.email,o.subscription_date?_t(new Date(o.subscription_date),"dd-MM-yyyy HH:mm"):"",o.source||"onbekend",o.is_active?"Actief":"Inactief"])].map(o=>o.join(",")).join(`
`),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.href=URL.createObjectURL(s),a.download=`nieuwsbrief-subscribers-${_t(new Date,"dd-MM-yyyy")}.csv`,a.click()};return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(de,{to:ae("AdminDashboard"),children:e.jsx(se,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Nieuwsbrief Inschrijvingen"}),e.jsxs("p",{className:"text-gray-600",children:[t.length," abonnees"]})]})]}),e.jsxs(se,{onClick:r,disabled:t.length===0,children:[e.jsx(ju,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),n?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.length===0?e.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[e.jsx(Hr,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen inschrijvingen"}),e.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen nieuwsbrief abonnees"})]}):e.jsx("div",{className:"bg-white rounded-2xl border border-gray-200 overflow-hidden",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-gray-50",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900",children:"Email"}),e.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900",children:"Inschrijfdatum"}),e.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900",children:"Bron"}),e.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900",children:"Status"})]})}),e.jsx("tbody",{className:"divide-y divide-gray-200",children:t.map(i=>e.jsxs("tr",{className:"hover:bg-gray-50",children:[e.jsx("td",{className:"px-6 py-4 text-sm text-gray-900",children:i.email}),e.jsx("td",{className:"px-6 py-4 text-sm text-gray-600",children:i.subscription_date?_t(new Date(i.subscription_date),"dd MMM yyyy HH:mm"):"-"}),e.jsx("td",{className:"px-6 py-4 text-sm text-gray-600",children:i.source||"onbekend"}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ${i.is_active?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"}`,children:i.is_active?"Actief":"Inactief"})})]},i.id))})]})})})]})})}function dQ(){const[t,n]=I.useState(null),[r,i]=I.useState({title:"",video_url:"",publication_date:"",short_description:"",articles:[]}),s=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["nieuws"],queryFn:()=>ce.entities.DailyAINews.list("-publication_date")}),c=Le({mutationFn:y=>ce.entities.DailyAINews.create(y),onSuccess:()=>{s.invalidateQueries({queryKey:["nieuws"]}),f()}}),d=Le({mutationFn:({id:y,data:x})=>ce.entities.DailyAINews.update(y,x),onSuccess:()=>{s.invalidateQueries({queryKey:["nieuws"]}),f()}}),h=Le({mutationFn:y=>ce.entities.DailyAINews.delete(y),onSuccess:()=>{s.invalidateQueries({queryKey:["nieuws"]})}}),f=()=>{n(null),i({title:"",video_url:"",publication_date:"",short_description:"",articles:[]})},m=y=>{n(y),i(y)},p=y=>{y.preventDefault(),t?d.mutate({id:t.id,data:r}):c.mutate(r)},g=()=>{i({...r,articles:[...r.articles,{article_title:"",article_content:"",source_url:"",image_url:""}]})},b=(y,x,N)=>{const w=[...r.articles];w[y][x]=N,i({...r,articles:w})},j=y=>{i({...r,articles:r.articles.filter((x,N)=>N!==y)})};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(se,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t?"Nieuws Bewerken":"Nieuw Nieuws Item"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),e.jsx(me,{required:!0,value:r.title,onChange:y=>i({...r,title:y.target.value}),placeholder:"AI in 48 seconden - 7 januari 2026"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Video URL *"}),e.jsx(me,{required:!0,value:r.video_url,onChange:y=>i({...r,video_url:y.target.value}),placeholder:"https://youtube.com/embed/..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Publicatiedatum *"}),e.jsx(me,{required:!0,type:"date",value:r.publication_date,onChange:y=>i({...r,publication_date:y.target.value})})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Korte beschrijving"}),e.jsx(me,{value:r.short_description,onChange:y=>i({...r,short_description:y.target.value}),placeholder:"Samenvatting voor sociale media..."})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Nieuwsartikelen"}),e.jsxs(se,{type:"button",onClick:g,size:"sm",variant:"outline",children:[e.jsx(Ot,{className:"w-4 h-4 mr-1"})," Artikel"]})]}),e.jsx("div",{className:"space-y-6",children:r.articles.map((y,x)=>e.jsxs("div",{className:"p-6 bg-gray-50 rounded-xl border-2 border-gray-200",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h4",{className:"font-semibold text-gray-900",children:["Artikel ",x+1]}),e.jsx(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>j(x),children:e.jsx(Ht,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(me,{placeholder:"Artikel titel",value:y.article_title,onChange:N=>b(x,"article_title",N.target.value)}),e.jsx(es,{value:y.article_content,onChange:N=>b(x,"article_content",N),placeholder:"Artikel inhoud..."}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsx(me,{placeholder:"Bron URL",value:y.source_url,onChange:N=>b(x,"source_url",N.target.value)}),e.jsx(me,{placeholder:"Afbeelding URL",value:y.image_url,onChange:N=>b(x,"image_url",N.target.value)})]})]})]},x))})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(se,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t?"Bijwerken":"Aanmaken"]}),e.jsx(se,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:ae("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Dagelijks AI Nieuws"})]}),e.jsxs(se,{onClick:()=>n({}),children:[e.jsx(Ot,{className:"w-5 h-5 mr-2"}),"Nieuw Nieuws Item"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(y=>{var x;return e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-2",children:y.title}),e.jsx("p",{className:"text-sm text-gray-600",children:new Date(y.publication_date).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})}),e.jsxs("p",{className:"text-sm text-gray-500 mt-2",children:[((x=y.articles)==null?void 0:x.length)||0," artikelen"]})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(se,{size:"sm",variant:"outline",onClick:()=>m(y),className:"flex-1",children:[e.jsx(On,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je dit nieuws item wilt verwijderen?")&&h.mutate(y.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},y.id)})})]})})}function hQ(){const[t,n]=I.useState(null),[r,i]=I.useState(!1),s=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["admin-solutions"],queryFn:()=>ce.entities.Solution.list("-sort_order",100),initialData:[]}),c=Le({mutationFn:b=>ce.entities.Solution.create(b),onSuccess:()=>{s.invalidateQueries({queryKey:["admin-solutions"]}),i(!1),n(null)}}),d=Le({mutationFn:({id:b,data:j})=>ce.entities.Solution.update(b,j),onSuccess:()=>{s.invalidateQueries({queryKey:["admin-solutions"]}),i(!1),n(null)}}),h=Le({mutationFn:b=>ce.entities.Solution.delete(b),onSuccess:()=>{s.invalidateQueries({queryKey:["admin-solutions"]})}}),f=b=>{b.preventDefault();const j=new FormData(b.target),y={title:j.get("title"),slug:j.get("slug"),subtitle:j.get("subtitle"),hero_title:j.get("hero_title"),hero_description:j.get("hero_description"),hero_image:j.get("hero_image"),short_description:j.get("short_description"),cta_title:j.get("cta_title"),cta_description:j.get("cta_description"),cta_button_text:j.get("cta_button_text"),cta_button_link:j.get("cta_button_link"),meta_description:j.get("meta_description"),published:j.get("published")==="on",featured:j.get("featured")==="on",sort_order:parseInt(j.get("sort_order"))||0,features:(t==null?void 0:t.features)||[],statistics:(t==null?void 0:t.statistics)||[],how_it_works:(t==null?void 0:t.how_it_works)||[],use_cases:(t==null?void 0:t.use_cases)||[],benefits:(t==null?void 0:t.benefits)||[],testimonial:(t==null?void 0:t.testimonial)||{}};t!=null&&t.id?d.mutate({id:t.id,data:y}):c.mutate(y)},m=b=>{n(b),i(!0)},p=b=>{confirm("Weet je zeker dat je deze oplossing wilt verwijderen?")&&h.mutate(b)},g=()=>{n({title:"",slug:"",subtitle:"",hero_title:"",hero_description:"",hero_image:"",short_description:"",published:!1,featured:!1,sort_order:0,features:[],statistics:[],how_it_works:[],use_cases:[],benefits:[],testimonial:{}}),i(!0)};return r?e.jsx("div",{className:"min-h-screen bg-gray-50 p-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold",children:t!=null&&t.id?"Oplossing Bewerken":"Nieuwe Oplossing"}),e.jsxs(se,{onClick:()=>{i(!1),n(null)},variant:"outline",children:[e.jsx(Ht,{className:"w-4 h-4 mr-2"}),"Annuleren"]})]}),e.jsxs("form",{onSubmit:f,className:"bg-white rounded-lg p-8 space-y-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx("h2",{className:"text-xl font-bold",children:"Basis Informatie"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Titel *"}),e.jsx(me,{name:"title",defaultValue:t==null?void 0:t.title,required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Slug (URL) *"}),e.jsx(me,{name:"slug",defaultValue:t==null?void 0:t.slug,required:!0,placeholder:"bijv: ai-chatbot-platform"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Subtitel"}),e.jsx(me,{name:"subtitle",defaultValue:t==null?void 0:t.subtitle})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Korte Beschrijving *"}),e.jsx(pt,{name:"short_description",defaultValue:t==null?void 0:t.short_description,required:!0,rows:3})]})]}),e.jsxs("div",{className:"space-y-4 border-t pt-6",children:[e.jsx("h2",{className:"text-xl font-bold",children:"Hero Sectie"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Hero Titel"}),e.jsx(me,{name:"hero_title",defaultValue:t==null?void 0:t.hero_title})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Hero Beschrijving"}),e.jsx(pt,{name:"hero_description",defaultValue:t==null?void 0:t.hero_description,rows:3})]}),e.jsx(ea,{label:"Hero Afbeelding",name:"hero_image",value:t==null?void 0:t.hero_image,onChange:b=>n({...t,hero_image:b})})]}),e.jsxs("div",{className:"space-y-4 border-t pt-6",children:[e.jsx("h2",{className:"text-xl font-bold",children:"Call-to-Action"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"CTA Titel"}),e.jsx(me,{name:"cta_title",defaultValue:t==null?void 0:t.cta_title})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"CTA Beschrijving"}),e.jsx(me,{name:"cta_description",defaultValue:t==null?void 0:t.cta_description})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"CTA Button Tekst"}),e.jsx(me,{name:"cta_button_text",defaultValue:t==null?void 0:t.cta_button_text})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"CTA Button Link"}),e.jsx(me,{name:"cta_button_link",defaultValue:t==null?void 0:t.cta_button_link})]})]}),e.jsxs("div",{className:"space-y-4 border-t pt-6",children:[e.jsx("h2",{className:"text-xl font-bold",children:"SEO & Publicatie"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Meta Beschrijving"}),e.jsx(pt,{name:"meta_description",defaultValue:t==null?void 0:t.meta_description,rows:2})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Volgorde"}),e.jsx(me,{name:"sort_order",type:"number",defaultValue:(t==null?void 0:t.sort_order)||0})]}),e.jsxs("div",{className:"flex gap-6",children:[e.jsxs("label",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",name:"published",defaultChecked:t==null?void 0:t.published,className:"rounded"}),e.jsx("span",{className:"text-sm font-medium",children:"Gepubliceerd"})]}),e.jsxs("label",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",name:"featured",defaultChecked:t==null?void 0:t.featured,className:"rounded"}),e.jsx("span",{className:"text-sm font-medium",children:"Uitgelicht op homepage"})]})]})]}),e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:e.jsxs("p",{className:"text-sm text-blue-800",children:[e.jsx("strong",{children:"Let op:"})," Voor het bewerken van Features, Statistieken, Stappen, Use Cases en Benefits, ga naar de database editor of gebruik de API. Deze zijn nog niet beschikbaar in dit formulier."]})}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs(se,{type:"submit",disabled:c.isPending||d.isPending,children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),t!=null&&t.id?"Bijwerken":"Aanmaken"]}),e.jsx(se,{type:"button",variant:"outline",onClick:()=>{i(!1),n(null)},children:"Annuleren"})]})]})]})}):e.jsx("div",{className:"min-h-screen bg-gray-50 p-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(de,{to:ae("AdminDashboard"),children:e.jsxs(se,{variant:"outline",size:"sm",children:[e.jsx(ht,{className:"w-4 h-4 mr-2"}),"Terug"]})}),e.jsx("h1",{className:"text-3xl font-bold",children:"AI Oplossingen Beheer"})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(de,{to:ae("Oplossingen"),target:"_blank",children:e.jsxs(se,{variant:"outline",children:[e.jsx(zs,{className:"w-4 h-4 mr-2"}),"Bekijk Pagina"]})}),e.jsxs(se,{onClick:g,children:[e.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Nieuwe Oplossing"]})]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):a.length===0?e.jsxs("div",{className:"bg-white rounded-lg p-12 text-center",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Nog geen oplossingen aangemaakt"}),e.jsxs(se,{onClick:g,children:[e.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Maak je eerste oplossing"]})]}):e.jsx("div",{className:"grid gap-6",children:a.map(b=>e.jsx("div",{className:"bg-white rounded-lg p-6 border border-gray-200",children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("h3",{className:"text-xl font-bold",children:b.title}),b.published?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs font-semibold rounded",children:"Gepubliceerd"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs font-semibold rounded",children:"Concept"}),b.featured&&e.jsx("span",{className:"px-2 py-1 bg-blue-100 text-blue-800 text-xs font-semibold rounded",children:"Uitgelicht"})]}),b.subtitle&&e.jsx("p",{className:"text-sm text-blue-600 font-medium mb-2",children:b.subtitle}),e.jsx("p",{className:"text-gray-600 mb-2",children:b.short_description}),e.jsxs("p",{className:"text-sm text-gray-500",children:["Slug: ",b.slug]})]}),e.jsxs("div",{className:"flex gap-2 ml-4",children:[e.jsx(de,{to:ae(`OplossingDetail?slug=${b.slug}`),target:"_blank",children:e.jsx(se,{variant:"outline",size:"sm",children:e.jsx(zs,{className:"w-4 h-4"})})}),e.jsx(se,{variant:"outline",size:"sm",onClick:()=>m(b),children:e.jsx(On,{className:"w-4 h-4"})}),e.jsx(se,{variant:"outline",size:"sm",onClick:()=>p(b.id),className:"text-red-600 hover:text-red-700",children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},b.id))})]})})}function fQ(){const[t,n]=I.useState("AIConsultancy"),[r,i]=I.useState(null),[s,a]=I.useState({section_type:"custom",section_key:"",title:"",subtitle:"",content:"",image_url:"",cta_text:"",cta_link:"",items:[]}),o=Xt(),c=[{value:"AIConsultancy",label:"AI Consultancy"},{value:"AIDevelopment",label:"AI Development"},{value:"DevelopmentSupport",label:"Development Support"}],d=[{value:"hero",label:"Hero (Hoofdbanner)"},{value:"services",label:"Services (Diensten)"},{value:"process",label:"Process (Proces)"},{value:"benefits",label:"Benefits (Voordelen)"},{value:"cta",label:"CTA (Call to Action)"},{value:"custom",label:"Custom (Vrije sectie)"}],{data:h=[],isLoading:f}=Fe({queryKey:["pageSections",t],queryFn:()=>ce.entities.PageSection.filter({page_name:t},"sort_order")}),m=Le({mutationFn:k=>ce.entities.PageSection.create({...k,page_name:t}),onSuccess:()=>{o.invalidateQueries({queryKey:["pageSections",t]}),b()}}),p=Le({mutationFn:({id:k,data:A})=>ce.entities.PageSection.update(k,A),onSuccess:()=>{o.invalidateQueries({queryKey:["pageSections",t]}),b()}}),g=Le({mutationFn:k=>ce.entities.PageSection.delete(k),onSuccess:()=>{o.invalidateQueries({queryKey:["pageSections",t]})}}),b=()=>{i(null),a({section_type:"custom",section_key:"",title:"",subtitle:"",content:"",image_url:"",cta_text:"",cta_link:"",items:[],active:!0})},j=k=>{i(k),a({section_type:k.section_type,section_key:k.section_key,title:k.title||"",subtitle:k.subtitle||"",content:k.content||"",image_url:k.image_url||"",cta_text:k.cta_text||"",cta_link:k.cta_link||"",items:k.items||[],active:k.active!==!1})},y=k=>{k.preventDefault();const A={...s,sort_order:r?r.sort_order:h.length,active:s.active!==!1};r?p.mutate({id:r.id,data:A}):m.mutate(A)},x=()=>{a({...s,items:[...s.items,{title:"",description:"",icon:""}]})},N=(k,A,S)=>{const E=[...s.items];E[k][A]=S,a({...s,items:E})},w=k=>{a({...s,items:s.items.filter((A,S)=>S!==k)})};return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(de,{to:ae("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Pagina Builder"}),e.jsx("p",{className:"text-lg text-gray-600",children:"Bouw en beheer pagina secties met een drag-and-drop interface"})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200 mb-8",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Selecteer Pagina"}),e.jsx("div",{className:"flex gap-2 flex-wrap",children:c.map(k=>e.jsx(se,{variant:t===k.value?"default":"outline",onClick:()=>{n(k.value),b()},children:k.label},k.value))})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[e.jsx("div",{children:e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Pagina Secties"}),e.jsxs(se,{onClick:()=>b(),children:[e.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Nieuwe Sectie"]})]}),f?e.jsx("div",{className:"text-center py-8",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):h.length===0?e.jsxs("div",{className:"text-center py-12 bg-gray-50 rounded-lg",children:[e.jsx("p",{className:"text-gray-600 mb-2",children:"Nog geen secties op deze pagina"}),e.jsx("p",{className:"text-sm text-gray-500",children:'Klik op "Nieuwe Sectie" om te beginnen'})]}):e.jsx("div",{className:"space-y-3",children:h.map(k=>e.jsx("div",{className:`p-4 rounded-lg hover:bg-gray-100 transition-colors border-l-4 ${k.active?"bg-gray-50 border-blue-500":"bg-red-50 border-red-400 opacity-60"}`,children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("span",{className:`text-xs font-semibold uppercase ${k.active?"text-blue-600":"text-red-600"}`,children:k.section_type}),e.jsxs("span",{className:"text-xs text-gray-500",children:["#",k.sort_order]}),!k.active&&e.jsx("span",{className:"text-xs bg-red-100 text-red-700 px-2 py-0.5 rounded",children:"INACTIEF"})]}),e.jsx("p",{className:"font-bold text-gray-900",children:k.title||k.section_key}),k.subtitle&&e.jsx("p",{className:"text-sm text-gray-600 mt-1",children:k.subtitle})]}),e.jsxs("div",{className:"flex gap-2 ml-4",children:[e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>j(k),children:e.jsx(On,{className:"w-4 h-4"})}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze sectie wilt verwijderen?")&&g.mutate(k.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},k.id))})]})}),e.jsx("div",{children:e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200 sticky top-24",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:r?"Sectie Bewerken":"Nieuwe Sectie"}),e.jsxs("form",{onSubmit:y,className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Type *"}),e.jsxs(Ji,{value:s.section_type,onValueChange:k=>a({...s,section_type:k}),children:[e.jsx(ji,{children:e.jsx(Zi,{})}),e.jsx(wi,{children:d.map(k=>e.jsx(St,{value:k.value,children:k.label},k.value))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Key *"}),e.jsx(me,{required:!0,value:s.section_key,onChange:k=>a({...s,section_key:k.target.value}),placeholder:"bijv. hero_main"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel"}),e.jsx(me,{value:s.title,onChange:k=>a({...s,title:k.target.value}),placeholder:"Sectie titel..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Subtitel / Beschrijving"}),e.jsx(pt,{value:s.subtitle,onChange:k=>a({...s,subtitle:k.target.value}),placeholder:"Korte beschrijving...",rows:2})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content (Rich Text)"}),e.jsx(es,{value:s.content,onChange:k=>a({...s,content:k}),placeholder:"Schrijf de content voor deze sectie..."})]}),e.jsx(ea,{value:s.image_url,onChange:k=>a({...s,image_url:k}),label:"Afbeelding",recommendedSize:"1200x800px"}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"CTA Tekst"}),e.jsx(me,{value:s.cta_text,onChange:k=>a({...s,cta_text:k.target.value}),placeholder:"Neem contact op"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"CTA Link"}),e.jsx(me,{value:s.cta_link,onChange:k=>a({...s,cta_link:k.target.value}),placeholder:"/contact"})]})]}),e.jsx("div",{children:e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:s.active!==!1,onChange:k=>a({...s,active:k.target.checked}),className:"w-4 h-4 text-blue-600 rounded"}),e.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Sectie actief (toon op pagina)"})]})}),e.jsxs("div",{className:"border-t pt-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Items (voor services, process, benefits secties)"}),e.jsxs(se,{type:"button",size:"sm",onClick:x,children:[e.jsx(Ot,{className:"w-4 h-4 mr-1"}),"Item toevoegen"]})]}),s.items.length>0&&e.jsx("div",{className:"space-y-4",children:s.items.map((k,A)=>e.jsxs("div",{className:"p-4 bg-gray-50 rounded-lg space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm font-semibold text-gray-700",children:["Item #",A+1]}),e.jsx(se,{type:"button",size:"sm",variant:"ghost",onClick:()=>w(A),children:e.jsx(wt,{className:"w-4 h-4"})})]}),e.jsx(me,{placeholder:"Titel",value:k.title||"",onChange:S=>N(A,"title",S.target.value)}),e.jsx(pt,{placeholder:"Beschrijving",value:k.description||"",onChange:S=>N(A,"description",S.target.value),rows:2}),e.jsx(me,{placeholder:"Icon naam (bijv. Target, Brain, Code)",value:k.icon||"",onChange:S=>N(A,"icon",S.target.value)})]},A))})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs(se,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),r?"Bijwerken":"Aanmaken"]}),r&&e.jsx(se,{type:"button",variant:"outline",onClick:b,children:"Annuleren"})]})]})]})})]})]})})}function mQ(){const[t,n]=I.useState("AIConsultancy"),[r,i]=I.useState(null),[s,a]=I.useState({section_key:"",content:"",content_type:"html"}),o=Xt(),c=[{value:"AIConsultancy",label:"AI Consultancy"},{value:"AIDevelopment",label:"AI Development"},{value:"DevelopmentSupport",label:"Development Support"},{value:"Home",label:"Home"}],{data:d=[],isLoading:h}=Fe({queryKey:["pageContent",t],queryFn:()=>ce.entities.PageContent.filter({page_name:t})}),f=Le({mutationFn:y=>ce.entities.PageContent.create({...y,page_name:t}),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContent",t]}),g()}}),m=Le({mutationFn:({id:y,data:x})=>ce.entities.PageContent.update(y,x),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContent",t]}),g()}}),p=Le({mutationFn:y=>ce.entities.PageContent.delete(y),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContent",t]})}}),g=()=>{i(null),a({section_key:"",content:"",content_type:"html"})},b=y=>{i(y.id),a({section_key:y.section_key,content:y.content,content_type:y.content_type||"html"})},j=y=>{y.preventDefault(),r?m.mutate({id:r,data:s}):f.mutate(s)};return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(de,{to:ae("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Pagina Editor"}),e.jsx("p",{className:"text-lg text-gray-600",children:"Beheer de content van statische pagina's zoals AI Consultancy, Development Support, etc."})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200 mb-8",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Selecteer Pagina"}),e.jsx("div",{className:"flex gap-2 flex-wrap",children:c.map(y=>e.jsx(se,{variant:t===y.value?"default":"outline",onClick:()=>n(y.value),children:y.label},y.value))})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[e.jsx("div",{children:e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Content Secties"}),e.jsxs(se,{onClick:()=>g(),children:[e.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Nieuw"]})]}),h?e.jsx("div",{className:"text-center py-8",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):d.length===0?e.jsxs("div",{className:"text-center py-12 text-gray-500",children:[e.jsx("p",{children:"Nog geen content secties."}),e.jsx("p",{className:"text-sm mt-2",children:'Klik op "Nieuw" om te beginnen.'})]}):e.jsx("div",{className:"space-y-3",children:d.map(y=>{var x;return e.jsx("div",{className:"p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-semibold text-gray-900",children:y.section_key}),e.jsxs("p",{className:"text-sm text-gray-600 line-clamp-2 mt-1",children:[(x=y.content)==null?void 0:x.substring(0,100),"..."]})]}),e.jsxs("div",{className:"flex gap-2 ml-4",children:[e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>b(y),children:e.jsx(On,{className:"w-4 h-4"})}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze sectie wilt verwijderen?")&&p.mutate(y.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},y.id)})})]})}),e.jsx("div",{children:e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200 sticky top-24",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:r?"Sectie Bewerken":"Nieuwe Sectie"}),e.jsxs("form",{onSubmit:j,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Key *"}),e.jsx(me,{required:!0,value:s.section_key,onChange:y=>a({...s,section_key:y.target.value}),placeholder:"bijv. hero_title, services_intro"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Unieke identifier voor deze sectie"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content *"}),e.jsx(es,{value:s.content,onChange:y=>a({...s,content:y}),placeholder:"Schrijf de content voor deze sectie..."})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs(se,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),r?"Bijwerken":"Aanmaken"]}),r&&e.jsx(se,{type:"button",variant:"outline",onClick:g,children:"Annuleren"})]})]})]})})]}),e.jsxs("div",{className:"mt-8 bg-blue-50 border border-blue-200 rounded-2xl p-6",children:[e.jsx("h3",{className:"font-bold text-blue-900 mb-2",children:"💡 Hoe werkt dit?"}),e.jsxs("ul",{className:"text-blue-800 space-y-1 text-sm",children:[e.jsx("li",{children:'• Maak content secties aan met een unieke "section_key"'}),e.jsx("li",{children:"• Gebruik deze keys in je pagina code om dynamische content te laden"}),e.jsxs("li",{children:["• Bijvoorbeeld: ",e.jsx("code",{className:"bg-blue-100 px-1 rounded",children:"hero_title"}),", ",e.jsx("code",{className:"bg-blue-100 px-1 rounded",children:"services_description"})]}),e.jsx("li",{children:"• Content wordt opgeslagen in de PageContent entity"})]})]})]})})}function pQ(){const t=Xt(),[n,r]=I.useState(null),[i,s]=I.useState(!1),[a,o]=I.useState({name:"",type:"main_analysis",prompt_template:"",is_active:!0,priority:0}),[c,d]=I.useState("all"),{data:h=[],isLoading:f}=Fe({queryKey:["impact-prompts"],queryFn:()=>ce.entities.ImpactReportPrompt.list("-priority")}),m=Le({mutationFn:E=>ce.entities.ImpactReportPrompt.create(E),onSuccess:()=>{t.invalidateQueries({queryKey:["impact-prompts"]}),s(!1),b()}}),p=Le({mutationFn:({id:E,data:C})=>ce.entities.ImpactReportPrompt.update(E,C),onSuccess:()=>{t.invalidateQueries({queryKey:["impact-prompts"]}),r(null),b()}}),g=Le({mutationFn:E=>ce.entities.ImpactReportPrompt.delete(E),onSuccess:()=>{t.invalidateQueries({queryKey:["impact-prompts"]})}}),b=()=>{o({name:"",type:"main_analysis",prompt_template:"",is_active:!0,priority:0})},j=E=>{r(E.id),o({name:E.name,type:E.type,prompt_template:E.prompt_template,is_active:E.is_active,priority:E.priority||0})},y=()=>{n?p.mutate({id:n,data:a}):m.mutate(a)},x=()=>{r(null),s(!1),b()},N=E=>{navigator.clipboard.writeText(E.prompt_template),alert("Prompt gekopieerd naar klembord!")},w=[{value:"main_analysis",label:"Hoofd Analyse",color:"blue"},{value:"quick_scan",label:"Quick Scan",color:"green"},{value:"opportunities",label:"AI Kansen",color:"purple"},{value:"productivity",label:"Productiviteit",color:"orange"},{value:"action_plan",label:"Actieplan",color:"red"}],k=c==="all"?h:h.filter(E=>E.type===c),A=E=>{const C=w.find(B=>B.value===E);return C?C.label:E},S=E=>{const C=w.find(B=>B.value===E);return C?C.color:"gray"};return f?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 border-4 border-blue-600 border-t-transparent rounded-full animate-spin mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Prompts laden..."})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Prompt Library"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Beheer alle AI prompts die worden gebruikt op de website"})]}),e.jsxs("div",{className:"mb-8 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("button",{onClick:()=>d("all"),className:`px-4 py-2 rounded-lg font-medium transition-colors ${c==="all"?"bg-blue-600 text-white":"bg-white text-gray-700 border border-gray-200 hover:bg-gray-50"}`,children:["Alle (",h.length,")"]}),w.map(E=>{const C=h.filter(B=>B.type===E.value).length;return e.jsxs("button",{onClick:()=>d(E.value),className:`px-4 py-2 rounded-lg font-medium transition-colors ${c===E.value?`bg-${E.color}-600 text-white`:"bg-white text-gray-700 border border-gray-200 hover:bg-gray-50"}`,children:[E.label," (",C,")"]},E.value)})]}),!i&&!n&&e.jsxs(se,{onClick:()=>s(!0),className:"bg-blue-600 hover:bg-blue-700 text-white",children:[e.jsx(Ot,{className:"w-5 h-5 mr-2"}),"Nieuwe Prompt"]})]}),(i||n)&&e.jsxs(Z.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"bg-white rounded-2xl p-8 border-2 border-blue-200 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:n?"Prompt Bewerken":"Nieuwe Prompt Maken"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Naam *"}),e.jsx(me,{value:a.name,onChange:E=>o({...a,name:E.target.value}),placeholder:"Bijv: Impact Report Hoofd Prompt v2"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Type *"}),e.jsx("select",{value:a.type,onChange:E=>o({...a,type:E.target.value}),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:w.map(E=>e.jsx("option",{value:E.value,children:E.label},E.value))})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Prioriteit"}),e.jsx(me,{type:"number",value:a.priority,onChange:E=>o({...a,priority:parseInt(E.target.value)||0}),placeholder:"0"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Hoger getal = hogere prioriteit"})]}),e.jsx("div",{children:e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:a.is_active,onChange:E=>o({...a,is_active:E.target.checked}),className:"w-5 h-5 text-blue-600 rounded focus:ring-blue-500"}),e.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Actief"})]})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Prompt Template *"}),e.jsx(pt,{value:a.prompt_template,onChange:E=>o({...a,prompt_template:E.target.value}),placeholder:"Schrijf hier je prompt template...",className:"min-h-96 font-mono text-sm"}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Gebruik placeholders zoals ","${website_content}",", ","${industry}",", etc."]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsxs(se,{onClick:y,disabled:!a.name||!a.prompt_template,className:"bg-blue-600 hover:bg-blue-700 text-white",children:[e.jsx(Sn,{className:"w-5 h-5 mr-2"}),"Opslaan"]}),e.jsxs(se,{onClick:x,variant:"outline",children:[e.jsx(Ht,{className:"w-5 h-5 mr-2"}),"Annuleren"]})]})]})]}),e.jsx("div",{className:"space-y-4",children:k.length===0?e.jsxs("div",{className:"text-center py-12 bg-white rounded-2xl border border-gray-200",children:[e.jsx($t,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Geen prompts gevonden"})]}):k.map((E,C)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:C*.05},className:"bg-white rounded-2xl p-6 border border-gray-200 hover:border-gray-300 transition-all",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`w-12 h-12 bg-${S(E.type)}-100 rounded-xl flex items-center justify-center`,children:e.jsx($t,{className:`w-6 h-6 text-${S(E.type)}-600`})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:E.name}),e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[e.jsx("span",{className:`px-2 py-1 rounded text-xs font-semibold bg-${S(E.type)}-100 text-${S(E.type)}-800`,children:A(E.type)}),E.is_active?e.jsxs("span",{className:"px-2 py-1 rounded text-xs font-semibold bg-green-100 text-green-800 flex items-center gap-1",children:[e.jsx(gt,{className:"w-3 h-3"}),"Actief"]}):e.jsxs("span",{className:"px-2 py-1 rounded text-xs font-semibold bg-gray-100 text-gray-800 flex items-center gap-1",children:[e.jsx(fi,{className:"w-3 h-3"}),"Inactief"]}),E.priority>0&&e.jsxs("span",{className:"px-2 py-1 rounded text-xs font-semibold bg-amber-100 text-amber-800",children:["Prioriteit: ",E.priority]})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>N(E),className:"p-2 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-colors",title:"Kopieer prompt",children:e.jsx(WO,{className:"w-5 h-5"})}),e.jsx("button",{onClick:()=>j(E),className:"p-2 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-colors",title:"Bewerk",children:e.jsx(On,{className:"w-5 h-5"})}),e.jsx("button",{onClick:()=>{confirm(`Weet je zeker dat je "${E.name}" wilt verwijderen?`)&&g.mutate(E.id)},className:"p-2 text-gray-600 hover:text-red-600 hover:bg-red-50 rounded-lg transition-colors",title:"Verwijderen",children:e.jsx(wt,{className:"w-5 h-5"})})]})]}),e.jsx("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:e.jsx("p",{className:"text-sm text-gray-600 font-mono whitespace-pre-wrap line-clamp-3",children:E.prompt_template})}),e.jsxs("div",{className:"flex items-center gap-4 mt-3 text-sm text-gray-500",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(dD,{className:"w-4 h-4"}),"Gemaakt: ",new Date(E.created_date).toLocaleDateString("nl-NL")]}),E.updated_date&&e.jsxs("span",{children:["Bijgewerkt: ",new Date(E.updated_date).toLocaleDateString("nl-NL")]})]})]},E.id))})]})})}function gQ(){const[t,n]=I.useState(null),[r,i]=I.useState({text:"",author:"",role:"",rating:5,active:!0,sort_order:0}),s=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["reviews"],queryFn:()=>ce.entities.Review.list("sort_order")}),c=Le({mutationFn:g=>ce.entities.Review.create(g),onSuccess:()=>{s.invalidateQueries({queryKey:["reviews"]}),f()}}),d=Le({mutationFn:({id:g,data:b})=>ce.entities.Review.update(g,b),onSuccess:()=>{s.invalidateQueries({queryKey:["reviews"]}),f()}}),h=Le({mutationFn:g=>ce.entities.Review.delete(g),onSuccess:()=>{s.invalidateQueries({queryKey:["reviews"]})}}),f=()=>{n(null),i({text:"",author:"",role:"",rating:5,active:!0,sort_order:0})},m=g=>{n(g.id),i(g)},p=g=>{g.preventDefault(),t?d.mutate({id:t,data:r}):c.mutate(r)};return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[e.jsx(de,{to:ae("AdminDashboard"),children:e.jsx(se,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Reviews Beheren"}),e.jsx("p",{className:"text-gray-600",children:"Beheer klantreviews voor de homepage"})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold mb-6",children:t?"Review Bewerken":"Nieuwe Review"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Review Tekst *"}),e.jsx(pt,{value:r.text,onChange:g=>i({...r,text:g.target.value}),placeholder:"Wat zegt de klant over jullie?",className:"min-h-[120px]",required:!0})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Naam Auteur *"}),e.jsx(me,{value:r.author,onChange:g=>i({...r,author:g.target.value}),placeholder:"Bijv. Paul van Beckhoven",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Functie & Bedrijf *"}),e.jsx(me,{value:r.role,onChange:g=>i({...r,role:g.target.value}),placeholder:"Bijv. CEO, HIPHOT",required:!0})]})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Rating (sterren)"}),e.jsx("div",{className:"flex items-center gap-2",children:[1,2,3,4,5].map(g=>e.jsx("button",{type:"button",onClick:()=>i({...r,rating:g}),className:"p-1",children:e.jsx(Zc,{className:`w-6 h-6 ${g<=r.rating?"fill-yellow-400 text-yellow-400":"text-gray-300"}`})},g))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Sorteervolgorde"}),e.jsx(me,{type:"number",value:r.sort_order,onChange:g=>i({...r,sort_order:parseInt(g.target.value)})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Status"}),e.jsxs("select",{value:r.active,onChange:g=>i({...r,active:g.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"true",children:"Actief"}),e.jsx("option",{value:"false",children:"Inactief"})]})]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(se,{type:"submit",disabled:c.isPending||d.isPending,children:t?"Bijwerken":"Toevoegen"}),t&&e.jsx(se,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("h2",{className:"text-xl font-bold",children:["Huidige Reviews (",a.length,")"]}),o?e.jsx("div",{className:"text-center py-12 text-gray-500",children:"Laden..."}):a.length===0?e.jsx("div",{className:"bg-white rounded-2xl p-12 border border-gray-200 text-center",children:e.jsx("p",{className:"text-gray-500",children:"Nog geen reviews. Voeg de eerste toe!"})}):e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:a.map(g=>e.jsxs("div",{className:`bg-white rounded-2xl p-6 border-2 ${g.active?"border-gray-200":"border-red-200 opacity-60"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsx("div",{className:"flex items-center gap-1",children:[...Array(g.rating)].map((b,j)=>e.jsx(Zc,{className:"w-4 h-4 fill-yellow-400 text-yellow-400"},j))}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>m(g),children:e.jsx(On,{className:"w-4 h-4"})}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>h.mutate(g.id),children:e.jsx(wt,{className:"w-4 h-4"})})]})]}),e.jsxs("p",{className:"text-gray-700 mb-4 italic",children:['"',g.text,'"']}),e.jsxs("div",{className:"border-t pt-4",children:[e.jsx("p",{className:"font-semibold text-gray-900",children:g.author}),e.jsx("p",{className:"text-sm text-gray-500",children:g.role})]}),!g.active&&e.jsx("div",{className:"mt-3 text-xs text-red-600 font-medium",children:"Inactief"})]},g.id))})]})]})})}function xQ(){const[t,n]=I.useState(""),r=Xt(),{data:i,isLoading:s}=Fe({queryKey:["robotsTxt"],queryFn:async()=>{const d=await ce.entities.PageContent.filter({page_name:"SEO",section_key:"robots_txt"});return d&&d.length>0?(n(d[0].content),d[0]):null}}),a=Le({mutationFn:async d=>i?ce.entities.PageContent.update(i.id,{content:d}):ce.entities.PageContent.create({page_name:"SEO",section_key:"robots_txt",content:d,content_type:"text"}),onSuccess:()=>{r.invalidateQueries({queryKey:["robotsTxt"]}),alert("Robots.txt opgeslagen!")}}),o=()=>{a.mutate(t)},c=`User-agent: *
Allow: /

# Disallow admin pages
Disallow: /Admin*

# Sitemap
Sitemap: https://48-7.nl/sitemap.xml

# Crawl-delay
Crawl-delay: 1`;return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(de,{to:ae("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"SEO Tools"}),e.jsx("p",{className:"text-lg text-gray-600",children:"Beheer robots.txt, sitemap en andere SEO instellingen"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-green-100 rounded-xl flex items-center justify-center",children:e.jsx(sD,{className:"w-6 h-6 text-green-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"Sitemap.xml"}),e.jsx("p",{className:"text-sm text-gray-600",children:"XML sitemap voor zoekmachines"})]})]}),e.jsx("p",{className:"text-gray-700 mb-4",children:"De sitemap wordt automatisch gegenereerd op basis van je gepubliceerde content."}),e.jsxs("button",{onClick:async()=>{const d=await ce.functions.invoke("sitemap",{}),h=new Blob([d.data],{type:"application/xml"}),f=window.URL.createObjectURL(h);window.open(f,"_blank")},className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-700 font-medium",children:["Bekijk sitemap",e.jsx(Bs,{className:"w-4 h-4"})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx(kA,{className:"w-6 h-6 text-purple-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"LLM.txt"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Content voor AI crawlers"})]})]}),e.jsx("p",{className:"text-gray-700 mb-4",children:"LLM.txt helpt AI systemen je site te begrijpen. Wordt automatisch gegenereerd."}),e.jsxs("button",{onClick:async()=>{const d=await ce.functions.invoke("llmtxt",{}),h=new Blob([d.data],{type:"text/plain"}),f=window.URL.createObjectURL(h);window.open(f,"_blank")},className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-700 font-medium",children:["Bekijk llm.txt",e.jsx(Bs,{className:"w-4 h-4"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center",children:e.jsx($t,{className:"w-6 h-6 text-blue-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Robots.txt"}),e.jsx("p",{className:"text-gray-600",children:"Configureer welke pagina's zoekmachines mogen crawlen"})]})]}),s?e.jsx("div",{className:"text-center py-8",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Robots.txt Content"}),e.jsx(pt,{value:t,onChange:d=>n(d.target.value),placeholder:c,rows:15,className:"font-mono text-sm"}),e.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Let op: Gebruik correcte syntax. Verkeerde configuratie kan invloed hebben op je SEO."})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs(se,{onClick:o,className:"gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),"Opslaan"]}),e.jsx(se,{variant:"outline",onClick:()=>n(c),children:"Reset naar default"}),e.jsxs("button",{onClick:async()=>{const d=await ce.functions.invoke("robotstxt",{}),h=new Blob([d.data],{type:"text/plain"}),f=window.URL.createObjectURL(h);window.open(f,"_blank")},className:"inline-flex items-center gap-2 px-4 py-2 text-blue-600 hover:text-blue-700 font-medium",children:["Bekijk live versie",e.jsx(Bs,{className:"w-4 h-4"})]})]})]})]}),e.jsxs("div",{className:"mt-8 bg-blue-50 border border-blue-200 rounded-2xl p-6",children:[e.jsx("h3",{className:"font-bold text-blue-900 mb-3",children:"📚 SEO Documentatie"}),e.jsxs("ul",{className:"text-blue-800 space-y-2 text-sm",children:[e.jsxs("li",{children:["• ",e.jsx("strong",{children:"Sitemap.xml:"})," Via backend function 'sitemap' - automatisch bijgewerkt"]}),e.jsxs("li",{children:["• ",e.jsx("strong",{children:"Robots.txt:"})," Via backend function 'robotstxt' - configureerbaar via deze pagina"]}),e.jsxs("li",{children:["• ",e.jsx("strong",{children:"LLM.txt:"})," Via backend function 'llmtxt' - geoptimaliseerd voor AI crawlers"]}),e.jsx("li",{children:"• Deze functions zijn toegankelijk via het Base44 function endpoint systeem"}),e.jsx("li",{children:"• SEO meta tags worden automatisch gegenereerd per pagina"}),e.jsx("li",{children:"• Canonical URLs voorkomen duplicate content issues"})]})]})]})})}var qf="Switch",[yQ]=to(qf),[vQ,bQ]=yQ(qf),H5=I.forwardRef((t,n)=>{const{__scopeSwitch:r,name:i,checked:s,defaultChecked:a,required:o,disabled:c,value:d="on",onCheckedChange:h,form:f,...m}=t,[p,g]=I.useState(null),b=Yt(n,w=>g(w)),j=I.useRef(!1),y=p?f||!!p.closest("form"):!0,[x,N]=gl({prop:s,defaultProp:a??!1,onChange:h,caller:qf});return e.jsxs(vQ,{scope:r,checked:x,disabled:c,children:[e.jsx(jt.button,{type:"button",role:"switch","aria-checked":x,"aria-required":o,"data-state":Q5(x),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:b,onClick:bt(t.onClick,w=>{N(k=>!k),y&&(j.current=w.isPropagationStopped(),j.current||w.stopPropagation())})}),y&&e.jsx(G5,{control:p,bubbles:!j.current,name:i,value:d,checked:x,required:o,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})});H5.displayName=qf;var W5="SwitchThumb",K5=I.forwardRef((t,n)=>{const{__scopeSwitch:r,...i}=t,s=bQ(W5,r);return e.jsx(jt.span,{"data-state":Q5(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:n})});K5.displayName=W5;var jQ="SwitchBubbleInput",G5=I.forwardRef(({__scopeSwitch:t,control:n,checked:r,bubbles:i=!0,...s},a)=>{const o=I.useRef(null),c=Yt(o,a),d=ab(r),h=rb(n);return I.useEffect(()=>{const f=o.current;if(!f)return;const m=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==r&&g){const b=new Event("click",{bubbles:i});g.call(f,r),f.dispatchEvent(b)}},[d,r,i]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:c,style:{...s.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});G5.displayName=jQ;function Q5(t){return t?"checked":"unchecked"}var Y5=H5,wQ=K5;const Wc=I.forwardRef(({className:t,...n},r)=>e.jsx(Y5,{className:Qt("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...n,ref:r,children:e.jsx(wQ,{className:Qt("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Wc.displayName=Y5.displayName;function NQ(){const[t,n]=I.useState({type:"blog",name:"",slug:""}),[r,i]=I.useState(null),[s,a]=I.useState(""),[o,c]=I.useState({linkedin:"",instagram:"",twitter:"",youtube:""}),[d,h]=I.useState(!0),[f,m]=I.useState(!0),[p,g]=I.useState(!0),b=Xt(),{data:j=[],isLoading:y}=Fe({queryKey:["categories"],queryFn:()=>ce.entities.Category.list("sort_order")}),{data:x=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()});Pt.useEffect(()=>{const q=x.find(V=>V.setting_key==="logo_url");q&&a(q.value);const U=x.find(V=>V.setting_key==="linkedin_url"),Q=x.find(V=>V.setting_key==="instagram_url"),H=x.find(V=>V.setting_key==="twitter_url"),K=x.find(V=>V.setting_key==="youtube_url"),Y=x.find(V=>V.setting_key==="show_blog"),O=x.find(V=>V.setting_key==="show_news"),T=x.find(V=>V.setting_key==="show_training_calendar");c({linkedin:(U==null?void 0:U.value)||"",instagram:(Q==null?void 0:Q.value)||"",twitter:(H==null?void 0:H.value)||"",youtube:(K==null?void 0:K.value)||""}),h((Y==null?void 0:Y.value)!=="false"),m((O==null?void 0:O.value)!=="false"),g((T==null?void 0:T.value)!=="false")},[x]);const N=Le({mutationFn:q=>ce.entities.Category.create(q),onSuccess:()=>{b.invalidateQueries({queryKey:["categories"]}),n({type:"blog",name:"",slug:""})}});Le({mutationFn:({id:q,data:U})=>ce.entities.Category.update(q,U),onSuccess:()=>{b.invalidateQueries({queryKey:["categories"]}),i(null)}});const w=Le({mutationFn:q=>ce.entities.Category.delete(q),onSuccess:()=>{b.invalidateQueries({queryKey:["categories"]})}}),k=Le({mutationFn:async q=>{const U=x.find(Q=>Q.setting_key==="logo_url");return U?ce.entities.SiteSettings.update(U.id,{value:q}):ce.entities.SiteSettings.create({setting_key:"logo_url",value:q,description:"Website logo URL"})},onSuccess:()=>{b.invalidateQueries({queryKey:["site-settings"]}),alert("Logo succesvol opgeslagen!")}}),A=Le({mutationFn:async({key:q,value:U,description:Q})=>{const H=x.find(K=>K.setting_key===q);return H?ce.entities.SiteSettings.update(H.id,{value:String(U)}):ce.entities.SiteSettings.create({setting_key:q,value:String(U),description:Q})},onSuccess:()=>{b.invalidateQueries({queryKey:["site-settings"]})}}),S=async()=>{try{await Promise.all([A.mutateAsync({key:"linkedin_url",value:o.linkedin,description:"LinkedIn URL"}),A.mutateAsync({key:"instagram_url",value:o.instagram,description:"Instagram URL"}),A.mutateAsync({key:"twitter_url",value:o.twitter,description:"Twitter URL"}),A.mutateAsync({key:"youtube_url",value:o.youtube,description:"YouTube URL"})]),alert("Social media URLs opgeslagen!")}catch{alert("Er ging iets mis bij het opslaan")}},E=async q=>{h(q),await A.mutateAsync({key:"show_blog",value:q?"true":"false",description:"Blog zichtbaar"})},C=async q=>{m(q),await A.mutateAsync({key:"show_news",value:q?"true":"false",description:"Nieuws zichtbaar"})},B=async q=>{g(q),await A.mutateAsync({key:"show_training_calendar",value:q?"true":"false",description:"Training kalender zichtbaar"})},D=q=>{t.name.trim()&&N.mutate({type:q,name:t.name.trim(),slug:t.slug||t.name.toLowerCase().replace(/\s+/g,"-"),active:!0})},F=j.filter(q=>q.type==="blog"),R=j.filter(q=>q.type==="case"),z=j.filter(q=>q.type==="training");return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(de,{to:ae("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Instellingen"}),e.jsx("p",{className:"text-lg text-gray-600",children:"Beheer categorieën, tags en andere globale instellingen"})]}),e.jsx("div",{className:"space-y-8",children:y?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(mD,{className:"w-6 h-6 text-gray-900"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Website Logo"})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:"Upload een nieuw logo voor de website. Dit logo wordt gebruikt in de header en footer."}),e.jsx(ea,{value:s,onChange:a,label:"Logo"}),s&&e.jsxs("div",{className:"mt-4 p-4 bg-gray-50 rounded-lg",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Preview:"}),e.jsx("img",{src:s,alt:"Logo preview",className:"h-12"})]}),e.jsxs(se,{onClick:()=>k.mutate(s),disabled:!s||k.isPending,className:"mt-4",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),k.isPending?"Opslaan...":"Logo opslaan"]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Social Media Kanalen"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"Voer de volledige URLs in voor je social media kanalen. Laat velden leeg om ze te verbergen."}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[e.jsx(Hs,{className:"w-4 h-4 text-blue-600"}),"LinkedIn"]}),e.jsx(me,{value:o.linkedin,onChange:q=>c({...o,linkedin:q.target.value}),placeholder:"https://linkedin.com/company/jouw-bedrijf"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[e.jsx(Xc,{className:"w-4 h-4 text-pink-600"}),"Instagram"]}),e.jsx(me,{value:o.instagram,onChange:q=>c({...o,instagram:q.target.value}),placeholder:"https://instagram.com/jouw-bedrijf"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[e.jsx(IA,{className:"w-4 h-4 text-blue-400"}),"Twitter/X"]}),e.jsx(me,{value:o.twitter,onChange:q=>c({...o,twitter:q.target.value}),placeholder:"https://twitter.com/jouw-bedrijf"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[e.jsx(eu,{className:"w-4 h-4 text-red-600"}),"YouTube"]}),e.jsx(me,{value:o.youtube,onChange:q=>c({...o,youtube:q.target.value}),placeholder:"https://youtube.com/@jouw-kanaal"})]})]}),e.jsxs(se,{onClick:S,disabled:A.isPending,className:"mt-6",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Social media opslaan"]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Content Zichtbaarheid"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"Schakel content secties in of uit. Dit verbergt ook menu-items en gerelateerde blokken."}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[d?e.jsx(zs,{className:"w-5 h-5 text-green-600"}):e.jsx(qp,{className:"w-5 h-5 text-gray-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-gray-900",children:"Blog"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Toon blog artikelen en menu-items"})]})]}),e.jsx(Wc,{checked:d,onCheckedChange:E})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[f?e.jsx(zs,{className:"w-5 h-5 text-green-600"}):e.jsx(qp,{className:"w-5 h-5 text-gray-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-gray-900",children:"AI Nieuws"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Toon nieuws pagina, menu-items en Daily AI Nieuws blokken"})]})]}),e.jsx(Wc,{checked:f,onCheckedChange:C})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[p?e.jsx(zs,{className:"w-5 h-5 text-green-600"}):e.jsx(qp,{className:"w-5 h-5 text-gray-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-gray-900",children:"Training Kalender"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Toon kalender optie op trainingen pagina"})]})]}),e.jsx(Wc,{checked:p,onCheckedChange:B})]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Blog Categorieën"}),e.jsx("div",{className:"space-y-3 mb-6",children:F.map(q=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-medium text-gray-900",children:q.name}),e.jsxs("span",{className:"text-sm text-gray-500 ml-2",children:["(",q.slug,")"]})]}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Weet je zeker dat je "${q.name}" wilt verwijderen?`)&&w.mutate(q.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]},q.id))}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(me,{value:t.type==="blog"?t.name:"",onChange:q=>n({type:"blog",name:q.target.value,slug:q.target.value.toLowerCase().replace(/\s+/g,"-")}),placeholder:"Nieuwe categorie...",onKeyPress:q=>q.key==="Enter"&&D("blog")}),e.jsxs(se,{onClick:()=>D("blog"),children:[e.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Case Types"}),e.jsx("div",{className:"space-y-3 mb-6",children:R.map(q=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-medium text-gray-900",children:q.name}),e.jsxs("span",{className:"text-sm text-gray-500 ml-2",children:["(",q.slug,")"]})]}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Weet je zeker dat je "${q.name}" wilt verwijderen?`)&&w.mutate(q.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]},q.id))}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(me,{value:t.type==="case"?t.name:"",onChange:q=>n({type:"case",name:q.target.value,slug:q.target.value.toLowerCase().replace(/\s+/g,"-")}),placeholder:"Nieuw type...",onKeyPress:q=>q.key==="Enter"&&D("case")}),e.jsxs(se,{onClick:()=>D("case"),children:[e.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Training Categorieën"}),e.jsx("div",{className:"space-y-3 mb-6",children:z.map(q=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-medium text-gray-900",children:q.name}),e.jsxs("span",{className:"text-sm text-gray-500 ml-2",children:["(",q.slug,")"]})]}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Weet je zeker dat je "${q.name}" wilt verwijderen?`)&&w.mutate(q.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]},q.id))}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(me,{value:t.type==="training"?t.name:"",onChange:q=>n({type:"training",name:q.target.value,slug:q.target.value.toLowerCase().replace(/\s+/g,"-")}),placeholder:"Nieuwe categorie...",onKeyPress:q=>q.key==="Enter"&&D("training")}),e.jsxs(se,{onClick:()=>D("training"),children:[e.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})]})]}),e.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-2xl p-6",children:[e.jsx("h3",{className:"font-bold text-green-900 mb-2",children:"✅ Categorieën worden direct opgeslagen"}),e.jsx("p",{className:"text-green-800",children:"Alle wijzigingen worden meteen in de database opgeslagen en zijn direct beschikbaar in je blog, cases en trainingen."})]})]})})]})})}function kQ(){const[t,n]=I.useState(!1),[r,i]=I.useState({name:"",role:"",image_url:"",bio:"",linkedin_url:"",show_on_homepage:!1,show_on_about_page:!0,active:!0,sort_order:0}),s=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["teamMembers"],queryFn:()=>ce.entities.TeamMember.list("sort_order"),initialData:[]}),c=Le({mutationFn:b=>ce.entities.TeamMember.create(b),onSuccess:()=>{s.invalidateQueries({queryKey:["teamMembers"]}),f()}}),d=Le({mutationFn:({id:b,data:j})=>ce.entities.TeamMember.update(b,j),onSuccess:()=>{s.invalidateQueries({queryKey:["teamMembers"]}),f()}}),h=Le({mutationFn:b=>ce.entities.TeamMember.delete(b),onSuccess:()=>{s.invalidateQueries({queryKey:["teamMembers"]})}}),f=()=>{i({name:"",role:"",image_url:"",bio:"",linkedin_url:"",show_on_homepage:!1,show_on_about_page:!0,active:!0,sort_order:0}),n(!1)},m=b=>{i(b),n(b.id)},p=b=>{b.preventDefault(),t?d.mutate({id:t,data:r}):c.mutate(r)},g=b=>{confirm("Weet je zeker dat je dit teamlid wilt verwijderen?")&&h.mutate(b)};return t!==!1?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-8",children:[e.jsxs(de,{to:ae("AdminDashboard"),className:"inline-flex items-center gap-2 text-gray-600 hover:text-gray-900 mb-4",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:t?"Teamlid bewerken":"Nieuw teamlid"})]}),e.jsxs("form",{onSubmit:p,className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-200 space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Naam *"}),e.jsx(me,{value:r.name,onChange:b=>i({...r,name:b.target.value}),required:!0,placeholder:"Jan van der Berg"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Functie/Rol *"}),e.jsx(me,{value:r.role,onChange:b=>i({...r,role:b.target.value}),required:!0,placeholder:"Founder & CEO"})]}),e.jsx(ea,{label:"Profielfoto",value:r.image_url,onChange:b=>i({...r,image_url:b})}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Bio (optioneel)"}),e.jsx(pt,{value:r.bio||"",onChange:b=>i({...r,bio:b.target.value}),placeholder:"Korte bio over dit teamlid...",className:"h-24"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"LinkedIn URL (optioneel)"}),e.jsx(me,{value:r.linkedin_url||"",onChange:b=>i({...r,linkedin_url:b.target.value}),placeholder:"https://linkedin.com/in/..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Sorteervolgorde"}),e.jsx(me,{type:"number",value:r.sort_order,onChange:b=>i({...r,sort_order:parseInt(b.target.value)||0})})]}),e.jsxs("div",{className:"border-t pt-6 space-y-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Weergave instellingen"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"show_on_homepage",checked:r.show_on_homepage,onChange:b=>i({...r,show_on_homepage:b.target.checked}),className:"w-4 h-4"}),e.jsxs("label",{htmlFor:"show_on_homepage",className:"flex items-center gap-2 text-gray-900 cursor-pointer",children:[e.jsx(_0,{className:"w-4 h-4"}),"Toon op homepage"]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"show_on_about_page",checked:r.show_on_about_page,onChange:b=>i({...r,show_on_about_page:b.target.checked}),className:"w-4 h-4"}),e.jsxs("label",{htmlFor:"show_on_about_page",className:"flex items-center gap-2 text-gray-900 cursor-pointer",children:[e.jsx(_n,{className:"w-4 h-4"}),"Toon op 'The AI Professionals' pagina"]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"active",checked:r.active,onChange:b=>i({...r,active:b.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"active",className:"text-gray-900 cursor-pointer",children:"Actief"})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsx(se,{type:"submit",className:"flex-1",children:t?"Opslaan":"Aanmaken"}),e.jsx(se,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-8 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsxs(de,{to:ae("AdminDashboard"),className:"inline-flex items-center gap-2 text-gray-600 hover:text-gray-900 mb-4",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Team Beheer"}),e.jsx("p",{className:"text-gray-600 mt-2",children:"Beheer alle teamleden en hun weergave op de website"})]}),e.jsxs(se,{onClick:()=>n(!0),children:[e.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Nieuw teamlid"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Laden..."})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(b=>e.jsxs("div",{className:"bg-white rounded-2xl overflow-hidden border border-gray-200 hover:shadow-lg transition-all",children:[b.image_url&&e.jsx("div",{className:"aspect-square overflow-hidden bg-gray-100",children:e.jsx("img",{src:b.image_url,alt:b.name,className:"w-full h-full object-cover"})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900",children:b.name}),e.jsx("p",{className:"text-gray-600 text-sm",children:b.role})]}),!b.active&&e.jsx("span",{className:"text-xs px-2 py-1 bg-gray-100 text-gray-600 rounded",children:"Inactief"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[b.show_on_homepage&&e.jsxs("span",{className:"text-xs px-2 py-1 bg-blue-100 text-blue-700 rounded flex items-center gap-1",children:[e.jsx(_0,{className:"w-3 h-3"}),"Homepage"]}),b.show_on_about_page&&e.jsxs("span",{className:"text-xs px-2 py-1 bg-green-100 text-green-700 rounded flex items-center gap-1",children:[e.jsx(_n,{className:"w-3 h-3"}),"About"]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(se,{variant:"outline",size:"sm",onClick:()=>m(b),className:"flex-1",children:[e.jsx(BD,{className:"w-4 h-4 mr-2"}),"Bewerken"]}),e.jsx(se,{variant:"outline",size:"sm",onClick:()=>g(b.id),className:"text-red-600 hover:bg-red-50",children:e.jsx(wt,{className:"w-4 h-4"})})]})]})]},b.id))})]})})}function _Q(){const t=wl(),[n,r]=I.useState(!1),[i,s]=I.useState(!0),[a,o]=I.useState(null),[c,d]=I.useState(null),[h,f]=I.useState(!1),[m,p]=I.useState(!1);I.useEffect(()=>{(async()=>{try{const x=await ce.auth.me();if((x==null?void 0:x.role)!=="admin"){t(ae("Home"));return}r(!0)}catch{t(ae("Home"))}finally{s(!1)}})()},[t]);const g=async()=>{var y,x;f(!0),o({status:"testing",message:"Aanvraag wordt ingediend..."});try{const{data:N}=await ce.functions.invoke("createImpactScanRequest",{website_url:"https://vitaal050.nl",company_name:"TEST - Vitaal050",industry:"technology",user_email:"hallo@48-7.nl",user_name:"Test Admin"});N.success?o({status:"success",message:`✅ Aanvraag succesvol ingediend! Request ID: ${N.request_id}`,requestId:N.request_id}):o({status:"error",message:N.error||"Onbekende fout"})}catch(N){console.error("Test Impact Scan error:",N),o({status:"error",message:((x=(y=N.response)==null?void 0:y.data)==null?void 0:x.error)||N.message||"Er ging iets mis"})}finally{f(!1)}},b=async()=>{var y,x;p(!0),d({status:"testing",message:"Aanvraag wordt ingediend..."});try{const{data:N}=await ce.functions.invoke("createEuAiActRequest",{website_url:"https://vitaal050.nl",company_description:"Digital marketing en consultancy bedrijf gespecialiseerd in AI-implementaties",questionnaire:{sector:"it",target_audience:"businesses",ai_usage:"active",ai_purpose:["Klantenservice (chatbots, mail)","Marketing / content"],ai_decisions:"no",human_oversight:"yes",high_risk_processes:["Geen van bovenstaande"],processes_personal_data:"yes",sensitive_personal_data:"no",ai_origin:"tools",ai_transparency:"partially",ai_responsible:"yes",risk_evaluation:"yes",user_notification:"yes"},user_email:"hallo@48-7.nl",user_name:"Test Admin"});N.success?d({status:"success",message:`✅ Aanvraag succesvol ingediend! Request ID: ${N.request_id}`,requestId:N.request_id}):d({status:"error",message:N.error||"Onbekende fout"})}catch(N){console.error("Test EU AI Act error:",N),d({status:"error",message:((x=(y=N.response)==null?void 0:y.data)==null?void 0:x.error)||N.message||"Er ging iets mis"})}finally{p(!1)}},j=({status:y,title:x})=>y?e.jsx(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`mt-4 p-4 rounded-lg border-2 ${y.status==="success"?"bg-green-50 border-green-200":y.status==="error"?"bg-red-50 border-red-200":"bg-blue-50 border-blue-200"}`,children:e.jsxs("div",{className:"flex items-start gap-3",children:[y.status==="success"?e.jsx(gt,{className:"w-5 h-5 text-green-600 mt-0.5"}):y.status==="error"?e.jsx(Yc,{className:"w-5 h-5 text-red-600 mt-0.5"}):e.jsx(fi,{className:"w-5 h-5 text-blue-600 mt-0.5 animate-pulse"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:`font-medium ${y.status==="success"?"text-green-900":y.status==="error"?"text-red-900":"text-blue-900"}`,children:y.message}),y.status==="success"&&e.jsxs("div",{className:"mt-3 space-y-2",children:[e.jsx("p",{className:"text-sm text-gray-700",children:"De aanvraag is succesvol ingediend. De automatisering zal nu:"}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-1 ml-4",children:[e.jsx("li",{children:"• De analyse uitvoeren (dit kan 1-2 minuten duren)"}),e.jsx("li",{children:"• Het rapport genereren"}),e.jsx("li",{children:"• Een email sturen naar hallo@48-7.nl"})]}),e.jsx("p",{className:"text-sm font-medium text-gray-700 mt-3",children:"✉️ Check je inbox over een paar minuten"})]})]})]})}):null;return i?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Vn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})}):n?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[e.jsx(de,{to:ae("AdminDashboard"),children:e.jsx(se,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Test Scans"}),e.jsx("p",{className:"text-gray-600",children:"Test de scan formulieren met vooringevulde data"})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("div",{className:"flex items-start justify-between mb-4",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"AI Impact Scan"}),e.jsx("p",{className:"text-gray-600 text-sm",children:"Test de volledige flow: aanvraag → voorlopige analyse → rapport generatie → email verzending"})]})}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-2",children:"Test data:"}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[e.jsx("li",{children:"• Website: https://vitaal050.nl"}),e.jsx("li",{children:"• Bedrijf: TEST - Vitaal050"}),e.jsx("li",{children:"• Branche: Technology"}),e.jsx("li",{children:"• Email: hallo@48-7.nl"})]})]}),e.jsxs(se,{onClick:g,disabled:h,className:"w-full bg-blue-600 hover:bg-blue-700",children:[e.jsx(S0,{className:"w-4 h-4 mr-2"}),h?"Test wordt uitgevoerd...":"Test AI Impact Scan"]}),e.jsx(j,{status:a,title:"AI Impact Scan"})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("div",{className:"flex items-start justify-between mb-4",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"EU AI Act Checker"}),e.jsx("p",{className:"text-gray-600 text-sm",children:"Test de volledige flow: aanvraag → compliance analyse → rapport generatie → email verzending"})]})}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-2",children:"Test data:"}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[e.jsx("li",{children:"• Website: https://vitaal050.nl"}),e.jsx("li",{children:"• Beschrijving: Digital marketing & AI consultancy"}),e.jsx("li",{children:"• Vragenlijst: Ingevuld met realistische antwoorden"}),e.jsx("li",{children:"• Email: hallo@48-7.nl"})]})]}),e.jsxs(se,{onClick:b,disabled:m,className:"w-full bg-purple-600 hover:bg-purple-700",children:[e.jsx(S0,{className:"w-4 h-4 mr-2"}),m?"Test wordt uitgevoerd...":"Test EU AI Act Checker"]}),e.jsx(j,{status:c,title:"EU AI Act Checker"})]}),e.jsx("div",{className:"bg-blue-50 rounded-2xl p-6 border-2 border-blue-200",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Hr,{className:"w-6 h-6 text-blue-600 mt-1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-blue-900 mb-2",children:"Hoe het werkt"}),e.jsxs("ul",{className:"text-sm text-blue-800 space-y-2",children:[e.jsx("li",{children:"1. Klik op een test knop om een aanvraag in te dienen"}),e.jsx("li",{children:"2. De entity automation triggert automatisch de processing functie"}),e.jsx("li",{children:"3. De analyse wordt uitgevoerd (1-2 minuten)"}),e.jsx("li",{children:"4. Een email wordt verzonden naar hallo@48-7.nl"}),e.jsx("li",{children:"5. Bekijk de aanvragen in de Admin Impact Scans / EU AI Act Inzendingen pagina's"})]})]})]})}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(de,{to:ae("AdminImpactScans"),className:"flex-1",children:e.jsx(se,{variant:"outline",className:"w-full",children:"Bekijk Impact Scan Aanvragen"})}),e.jsx(de,{to:ae("AdminEuAiActSubmissions"),className:"flex-1",children:e.jsx(se,{variant:"outline",className:"w-full",children:"Bekijk EU AI Act Aanvragen"})})]})]})]})}):null}function SQ(){const[t,n]=I.useState(null),[r,i]=I.useState({title:"",slug:"",category:"Basis",duration:"",description:"",full_description:"",learning_goals:[],target_audience:"",price:"",image_url:"",sessions:[],active:!0,show_on_homepage:!1}),s=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["trainingen"],queryFn:()=>ce.entities.Training.list("-created_date")}),c=Le({mutationFn:w=>ce.entities.Training.create(w),onSuccess:()=>{s.invalidateQueries({queryKey:["trainingen"]}),f()}}),d=Le({mutationFn:({id:w,data:k})=>ce.entities.Training.update(w,k),onSuccess:()=>{s.invalidateQueries({queryKey:["trainingen"]}),f()}}),h=Le({mutationFn:w=>ce.entities.Training.delete(w),onSuccess:()=>{s.invalidateQueries({queryKey:["trainingen"]})}}),f=()=>{n(null),i({title:"",slug:"",category:"Basis",duration:"",description:"",full_description:"",learning_goals:[],target_audience:"",price:"",image_url:"",sessions:[],active:!0})},m=w=>{n(w),i({...w,learning_goals:w.learning_goals||[],sessions:w.sessions||[]})},p=w=>{w.preventDefault(),t&&t.id?d.mutate({id:t.id,data:r}):c.mutate(r)},g=()=>{i({...r,learning_goals:[...r.learning_goals,""]})},b=(w,k)=>{const A=[...r.learning_goals];A[w]=k,i({...r,learning_goals:A})},j=w=>{i({...r,learning_goals:r.learning_goals.filter((k,A)=>A!==w)})},y=()=>{i({...r,sessions:[...r.sessions,{date:"",capacity:10,enrolled:0,location:"Groningen"}]})},x=(w,k,A)=>{const S=[...r.sessions];S[w][k]=A,i({...r,sessions:S})},N=w=>{i({...r,sessions:r.sessions.filter((k,A)=>A!==w)})};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(se,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t!=null&&t.id?"Training Bewerken":"Nieuwe Training"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),e.jsx(me,{required:!0,value:r.title,onChange:w=>i({...r,title:w.target.value}),placeholder:"AI voor Beginners"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),e.jsx(me,{required:!0,value:r.slug,onChange:w=>i({...r,slug:w.target.value}),placeholder:"ai-voor-beginners"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Categorie *"}),e.jsxs(Ji,{value:r.category,onValueChange:w=>i({...r,category:w}),children:[e.jsx(ji,{children:e.jsx(Zi,{})}),e.jsxs(wi,{children:[e.jsx(St,{value:"Basis",children:"Basis"}),e.jsx(St,{value:"Gevorderd",children:"Gevorderd"}),e.jsx(St,{value:"Leiderschap",children:"Leiderschap"}),e.jsx(St,{value:"Technisch",children:"Technisch"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Duur *"}),e.jsx(me,{required:!0,value:r.duration,onChange:w=>i({...r,duration:w.target.value}),placeholder:"1 dag, 3 uur, etc."})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Korte beschrijving *"}),e.jsx(me,{required:!0,value:r.description,onChange:w=>i({...r,description:w.target.value}),placeholder:"Een korte samenvatting..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Volledige beschrijving"}),e.jsx(es,{value:r.full_description,onChange:w=>i({...r,full_description:w}),placeholder:"Volledige training beschrijving..."})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Leerdoelen"}),e.jsxs(se,{type:"button",onClick:g,size:"sm",variant:"outline",children:[e.jsx(Ot,{className:"w-4 h-4 mr-1"})," Leerdoel"]})]}),e.jsx("div",{className:"space-y-2",children:r.learning_goals.map((w,k)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(me,{value:w,onChange:A=>b(k,A.target.value),placeholder:"Bijv. Begrijpen van AI concepten"}),e.jsx(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>j(k),children:e.jsx(Ht,{className:"w-4 h-4"})})]},k))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Doelgroep"}),e.jsx(me,{value:r.target_audience,onChange:w=>i({...r,target_audience:w.target.value}),placeholder:"Managers, developers, etc."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Prijs"}),e.jsx(me,{value:r.price,onChange:w=>i({...r,price:w.target.value}),placeholder:"Op aanvraag / €1.500"})]}),e.jsx(ea,{value:r.image_url,onChange:w=>i({...r,image_url:w}),label:"Training Afbeelding",recommendedSize:"800x600px"}),e.jsxs("div",{className:"border-t-2 border-gray-100 pt-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700",children:[e.jsx(_i,{className:"w-4 h-4 inline mr-2"}),"Geplande sessies"]}),e.jsxs(se,{type:"button",onClick:y,size:"sm",variant:"outline",children:[e.jsx(Ot,{className:"w-4 h-4 mr-1"})," Sessie"]})]}),e.jsx("div",{className:"space-y-4",children:r.sessions.map((w,k)=>e.jsxs("div",{className:"p-4 bg-gray-50 rounded-xl border border-gray-200",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mb-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Datum & Tijd *"}),e.jsx(me,{type:"datetime-local",value:w.date,onChange:A=>x(k,"date",A.target.value),required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Locatie *"}),e.jsx(me,{value:w.location,onChange:A=>x(k,"location",A.target.value),placeholder:"Groningen / Online",required:!0})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Max. capaciteit *"}),e.jsx(me,{type:"number",min:"1",value:w.capacity,onChange:A=>x(k,"capacity",parseInt(A.target.value)),required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Ingeschreven"}),e.jsx(me,{type:"number",min:"0",value:w.enrolled,onChange:A=>x(k,"enrolled",parseInt(A.target.value))})]})]}),e.jsx("div",{className:"mt-3 flex justify-end",children:e.jsxs(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>N(k),children:[e.jsx(wt,{className:"w-4 h-4 mr-1"}),"Verwijder"]})})]},k))})]}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"active",checked:r.active,onChange:w=>i({...r,active:w.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"active",className:"text-sm font-medium text-gray-700",children:"Actief (zichtbaar op website)"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"show_on_homepage",checked:r.show_on_homepage||!1,onChange:w=>i({...r,show_on_homepage:w.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"show_on_homepage",className:"text-sm font-medium text-gray-700",children:"Toon op homepage (Populaire Trainingen)"})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(se,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t!=null&&t.id?"Bijwerken":"Aanmaken"]}),e.jsx(se,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:ae("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Trainingen"})]}),e.jsxs(se,{onClick:()=>n({}),children:[e.jsx(Ot,{className:"w-5 h-5 mr-2"}),"Nieuwe Training"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(w=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:w.title}),e.jsx("p",{className:"text-sm text-gray-600",children:w.duration}),e.jsx("span",{className:"inline-block px-2 py-1 bg-green-100 text-green-800 text-xs rounded mt-2",children:w.category})]}),w.active?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Actief"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Inactief"})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(se,{size:"sm",variant:"outline",onClick:()=>m(w),className:"flex-1",children:[e.jsx(On,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze training wilt verwijderen?")&&h.mutate(w.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},w.id))})]})})}function AQ(){const[t,n]=I.useState(null),[r,i]=I.useState({title:"",slug:"",level:"Medior",location:"",employment_type:"Fulltime",salary_range:"",description:"",role_summary:"",requirements:[],responsibilities:[],benefits:[],active:!0}),s=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["vacatures"],queryFn:()=>ce.entities.Vacature.list("-created_date")}),c=Le({mutationFn:y=>ce.entities.Vacature.create(y),onSuccess:()=>{s.invalidateQueries({queryKey:["vacatures"]}),f()}}),d=Le({mutationFn:({id:y,data:x})=>ce.entities.Vacature.update(y,x),onSuccess:()=>{s.invalidateQueries({queryKey:["vacatures"]}),f()}}),h=Le({mutationFn:y=>ce.entities.Vacature.delete(y),onSuccess:()=>{s.invalidateQueries({queryKey:["vacatures"]})}}),f=()=>{n(null),i({title:"",slug:"",level:"Medior",location:"",employment_type:"Fulltime",salary_range:"",description:"",role_summary:"",requirements:[],responsibilities:[],benefits:[],active:!0})},m=y=>{n(y),i(y)},p=y=>{y.preventDefault(),t?d.mutate({id:t.id,data:r}):c.mutate(r)},g=y=>{i({...r,[y]:[...r[y],""]})},b=(y,x,N)=>{const w=[...r[y]];w[x]=N,i({...r,[y]:w})},j=(y,x)=>{i({...r,[y]:r[y].filter((N,w)=>w!==x)})};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(se,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t?"Vacature Bewerken":"Nieuwe Vacature"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Functietitel *"}),e.jsx(me,{required:!0,value:r.title,onChange:y=>i({...r,title:y.target.value}),placeholder:"AI Engineer"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),e.jsx(me,{required:!0,value:r.slug,onChange:y=>i({...r,slug:y.target.value}),placeholder:"ai-engineer-groningen"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Niveau *"}),e.jsxs(Ji,{value:r.level,onValueChange:y=>i({...r,level:y}),children:[e.jsx(ji,{children:e.jsx(Zi,{})}),e.jsxs(wi,{children:[e.jsx(St,{value:"Junior",children:"Junior"}),e.jsx(St,{value:"Medior",children:"Medior"}),e.jsx(St,{value:"Senior",children:"Senior"}),e.jsx(St,{value:"Lead",children:"Lead"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Locatie *"}),e.jsx(me,{required:!0,value:r.location,onChange:y=>i({...r,location:y.target.value}),placeholder:"Groningen / Remote"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Type *"}),e.jsxs(Ji,{value:r.employment_type,onValueChange:y=>i({...r,employment_type:y}),children:[e.jsx(ji,{children:e.jsx(Zi,{})}),e.jsxs(wi,{children:[e.jsx(St,{value:"Fulltime",children:"Fulltime"}),e.jsx(St,{value:"Parttime",children:"Parttime"}),e.jsx(St,{value:"Contract",children:"Contract"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Salarisindicatie"}),e.jsx(me,{value:r.salary_range,onChange:y=>i({...r,salary_range:y.target.value}),placeholder:"€3.500 - €5.000 per maand"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Korte samenvatting"}),e.jsx(me,{value:r.role_summary,onChange:y=>i({...r,role_summary:y.target.value}),placeholder:"Een korte samenvatting van de rol..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Functieomschrijving *"}),e.jsx(es,{value:r.description,onChange:y=>i({...r,description:y}),placeholder:"Beschrijf de functie in detail..."})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Vereisten"}),e.jsxs(se,{type:"button",onClick:()=>g("requirements"),size:"sm",variant:"outline",children:[e.jsx(Ot,{className:"w-4 h-4 mr-1"})," Vereiste"]})]}),e.jsx("div",{className:"space-y-2",children:r.requirements.map((y,x)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(me,{value:y,onChange:N=>b("requirements",x,N.target.value),placeholder:"Bijv. Python, 3+ jaar ervaring"}),e.jsx(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>j("requirements",x),children:e.jsx(Ht,{className:"w-4 h-4"})})]},x))})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Verantwoordelijkheden"}),e.jsxs(se,{type:"button",onClick:()=>g("responsibilities"),size:"sm",variant:"outline",children:[e.jsx(Ot,{className:"w-4 h-4 mr-1"})," Verantwoordelijkheid"]})]}),e.jsx("div",{className:"space-y-2",children:r.responsibilities.map((y,x)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(me,{value:y,onChange:N=>b("responsibilities",x,N.target.value),placeholder:"Bijv. Ontwikkelen van AI modellen"}),e.jsx(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>j("responsibilities",x),children:e.jsx(Ht,{className:"w-4 h-4"})})]},x))})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Wat we bieden"}),e.jsxs(se,{type:"button",onClick:()=>g("benefits"),size:"sm",variant:"outline",children:[e.jsx(Ot,{className:"w-4 h-4 mr-1"})," Voordeel"]})]}),e.jsx("div",{className:"space-y-2",children:r.benefits.map((y,x)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(me,{value:y,onChange:N=>b("benefits",x,N.target.value),placeholder:"Bijv. Flexibele werktijden"}),e.jsx(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>j("benefits",x),children:e.jsx(Ht,{className:"w-4 h-4"})})]},x))})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"active",checked:r.active,onChange:y=>i({...r,active:y.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"active",className:"text-sm font-medium text-gray-700",children:"Actief (zichtbaar op website)"})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(se,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t?"Bijwerken":"Aanmaken"]}),e.jsx(se,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:ae("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Vacatures"})]}),e.jsxs(se,{onClick:()=>n({}),children:[e.jsx(Ot,{className:"w-5 h-5 mr-2"}),"Nieuwe Vacature"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(y=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:y.title}),e.jsx("p",{className:"text-sm text-gray-600",children:y.location}),e.jsxs("div",{className:"flex gap-2 mt-2",children:[e.jsx("span",{className:"inline-block px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded",children:y.level}),e.jsx("span",{className:"inline-block px-2 py-1 bg-purple-100 text-purple-800 text-xs rounded",children:y.employment_type})]})]}),y.active?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Actief"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Inactief"})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(se,{size:"sm",variant:"outline",onClick:()=>m(y),className:"flex-1",children:[e.jsx(On,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze vacature wilt verwijderen?")&&h.mutate(y.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},y.id))})]})})}const CQ=[{id:"all",label:"Alle"},{id:"trends",label:"Trends"},{id:"tips",label:"Tips"},{id:"strategy",label:"Strategie"},{id:"cases",label:"Cases"}];function EQ(){const[t,n]=I.useState("all"),[r,i]=I.useState(""),{data:s=[],isLoading:a}=Fe({queryKey:["blog"],queryFn:()=>ce.entities.BlogPost.filter({published:!0},"-published_date")}),o=s.filter(h=>{const f=t==="all"||h.category===t,m=h.title.toLowerCase().includes(r.toLowerCase())||h.excerpt.toLowerCase().includes(r.toLowerCase());return f&&m}),c=s.find(h=>h.featured),d=o.filter(h=>!h.featured);return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-16 bg-[#0D0D0F]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-8",children:[e.jsx("div",{className:"w-24 h-24 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0",children:e.jsx(cf,{className:"w-12 h-12 text-[#0D0D0F]"})}),e.jsxs("div",{className:"flex-1 text-center lg:text-left",children:[e.jsx("h1",{className:"text-3xl font-bold text-white mb-3",children:"Daily AI Nieuws in 48 seconden"}),e.jsx("p",{className:"text-[#9CA3AF] mb-6",children:"Elke dag de belangrijkste AI ontwikkelingen, compact samengevat."}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-4",children:[e.jsxs("button",{className:"px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-colors flex items-center gap-2",children:[e.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.586 10.707l-6 4A1 1 0 019 16V8a1 1 0 011.586-.816l6 4a1 1 0 010 1.632z"})}),"Luister nu"]}),e.jsxs("button",{className:"px-6 py-3 border-2 border-[#FAB868] text-white font-semibold rounded-full hover:bg-[#FAB868]/10 transition-colors flex items-center gap-2",children:[e.jsx(Hr,{className:"w-5 h-5"}),"Ontvang per email"]})]})]})]})})}),e.jsx("section",{className:"py-8 border-b border-gray-100 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-4",children:[e.jsxs("div",{className:"relative w-full sm:w-64",children:[e.jsx(mi,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),e.jsx("input",{type:"text",placeholder:"Zoek artikelen...",value:r,onChange:h=>i(h.target.value),className:"w-full pl-10 pr-4 py-2 border border-gray-200 rounded-xl focus:outline-none focus:border-blue-500"})]}),e.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2 sm:pb-0",children:[e.jsx(lf,{className:"w-5 h-5 text-gray-400 flex-shrink-0"}),CQ.map(h=>e.jsx("button",{onClick:()=>n(h.id),className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-all ${t===h.id?"bg-[#FAB868] text-[#0D0D0F]":"bg-[#F4F4F4] text-[#0D0D0F] hover:bg-[#E5E5E5]"}`,children:h.label},h.id))]})]})})}),c&&t==="all"&&!r&&e.jsx("section",{className:"py-12",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Z.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"group",children:e.jsxs(de,{to:ae(`BlogDetail?slug=${c.slug}`),className:"grid lg:grid-cols-2 gap-8 bg-[#F4F4F4] rounded-3xl overflow-hidden hover:bg-[#E5E5E5] transition-colors",children:[e.jsx("div",{className:"aspect-video lg:aspect-auto overflow-hidden",children:c.image_url&&e.jsx("img",{src:c.image_url,alt:c.title,loading:"eager",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"p-8 lg:py-12 flex flex-col justify-center",children:[e.jsxs("div",{className:"flex items-center gap-3 text-sm text-[#9CA3AF] mb-4",children:[e.jsx("span",{className:"px-3 py-1 bg-[#FAB868] text-[#0D0D0F] rounded-full font-medium",children:"Featured"}),e.jsx("span",{children:c.published_date?new Date(c.published_date).toLocaleDateString("nl-NL"):c.date}),e.jsx("span",{children:"•"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(yn,{className:"w-4 h-4"}),c.read_time]})]}),e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-4 group-hover:text-[#FAB868] transition-colors",children:c.title}),e.jsx("p",{className:"text-[#0D0D0F]/80 text-lg mb-6",children:c.excerpt}),e.jsxs("div",{className:"flex items-center gap-2 text-[#FAB868] font-semibold",children:["Lees meer",e.jsx($e,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})]})]})})})}),e.jsx("section",{className:"py-12",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:d.map((h,f)=>e.jsx(Z.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:f*.1},children:e.jsxs(de,{to:ae(`BlogDetail?slug=${h.slug}`),className:"group block",children:[e.jsxs("div",{className:"relative rounded-2xl overflow-hidden mb-4 aspect-[16/10] bg-gray-200",children:[h.image_url?e.jsx("img",{src:h.image_url,alt:h.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center",children:e.jsx(qa,{className:"w-12 h-12 text-gray-400"})}),e.jsx("div",{className:"absolute top-4 left-4",children:e.jsx("span",{className:"px-3 py-1 bg-[#F4F4F4] rounded-full text-sm font-medium text-[#0D0D0F]",children:h.category.charAt(0).toUpperCase()+h.category.slice(1)})})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-[#9CA3AF] mb-3",children:[e.jsx("span",{children:h.published_date?new Date(h.published_date).toLocaleDateString("nl-NL"):h.date}),e.jsx("span",{children:"•"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(yn,{className:"w-4 h-4 text-[#FAB868]"}),h.read_time]})]}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-2 group-hover:text-[#FAB868] transition-colors line-clamp-2",children:h.title}),e.jsx("p",{className:"text-[#0D0D0F]/80 line-clamp-2",children:h.excerpt})]})},f))}),!a&&o.length===0&&e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-500",children:"Geen artikelen gevonden voor je zoekopdracht."})})]})}),e.jsx("section",{className:"py-20 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:"Blijf op de hoogte"}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:"Ontvang wekelijks de beste AI insights"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto",children:[e.jsx("input",{type:"email",placeholder:"je@email.nl",className:"flex-1 px-5 py-3 rounded-full focus:outline-none border-2 border-gray-200"}),e.jsx("button",{className:"px-6 py-3 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-colors",children:"Aanmelden"})]})]})})]})}function TQ(t,n){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const PQ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,OQ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,DQ={};function mS(t,n){return(DQ.jsx?OQ:PQ).test(t)}const IQ=/[ \t\n\f\r]/g;function RQ(t){return typeof t=="object"?t.type==="text"?pS(t.value):!1:pS(t)}function pS(t){return t.replace(IQ,"")===""}class Lu{constructor(n,r,i){this.normal=r,this.property=n,i&&(this.space=i)}}Lu.prototype.normal={};Lu.prototype.property={};Lu.prototype.space=void 0;function X5(t,n){const r={},i={};for(const s of t)Object.assign(r,s.property),Object.assign(i,s.normal);return new Lu(r,i,n)}function Iy(t){return t.toLowerCase()}class rr{constructor(n,r){this.attribute=r,this.property=n}}rr.prototype.attribute="";rr.prototype.booleanish=!1;rr.prototype.boolean=!1;rr.prototype.commaOrSpaceSeparated=!1;rr.prototype.commaSeparated=!1;rr.prototype.defined=!1;rr.prototype.mustUseProperty=!1;rr.prototype.number=!1;rr.prototype.overloadedBoolean=!1;rr.prototype.property="";rr.prototype.spaceSeparated=!1;rr.prototype.space=void 0;let FQ=0;const ot=no(),on=no(),Ry=no(),Ae=no(),Rt=no(),Yo=no(),cr=no();function no(){return 2**++FQ}const Fy=Object.freeze(Object.defineProperty({__proto__:null,boolean:ot,booleanish:on,commaOrSpaceSeparated:cr,commaSeparated:Yo,number:Ae,overloadedBoolean:Ry,spaceSeparated:Rt},Symbol.toStringTag,{value:"Module"})),c0=Object.keys(Fy);class fb extends rr{constructor(n,r,i,s){let a=-1;if(super(n,r),gS(this,"space",s),typeof i=="number")for(;++a<c0.length;){const o=c0[a];gS(this,c0[a],(i&Fy[o])===Fy[o])}}}fb.prototype.defined=!0;function gS(t,n,r){r&&(t[n]=r)}function Pl(t){const n={},r={};for(const[i,s]of Object.entries(t.properties)){const a=new fb(i,t.transform(t.attributes||{},i),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),n[i]=a,r[Iy(i)]=i,r[Iy(a.attribute)]=i}return new Lu(n,r,t.space)}const J5=Pl({properties:{ariaActiveDescendant:null,ariaAtomic:on,ariaAutoComplete:null,ariaBusy:on,ariaChecked:on,ariaColCount:Ae,ariaColIndex:Ae,ariaColSpan:Ae,ariaControls:Rt,ariaCurrent:null,ariaDescribedBy:Rt,ariaDetails:null,ariaDisabled:on,ariaDropEffect:Rt,ariaErrorMessage:null,ariaExpanded:on,ariaFlowTo:Rt,ariaGrabbed:on,ariaHasPopup:null,ariaHidden:on,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rt,ariaLevel:Ae,ariaLive:null,ariaModal:on,ariaMultiLine:on,ariaMultiSelectable:on,ariaOrientation:null,ariaOwns:Rt,ariaPlaceholder:null,ariaPosInSet:Ae,ariaPressed:on,ariaReadOnly:on,ariaRelevant:null,ariaRequired:on,ariaRoleDescription:Rt,ariaRowCount:Ae,ariaRowIndex:Ae,ariaRowSpan:Ae,ariaSelected:on,ariaSetSize:Ae,ariaSort:null,ariaValueMax:Ae,ariaValueMin:Ae,ariaValueNow:Ae,ariaValueText:null,role:null},transform(t,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Z5(t,n){return n in t?t[n]:n}function e6(t,n){return Z5(t,n.toLowerCase())}const MQ=Pl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yo,acceptCharset:Rt,accessKey:Rt,action:null,allow:null,allowFullScreen:ot,allowPaymentRequest:ot,allowUserMedia:ot,alt:null,as:null,async:ot,autoCapitalize:null,autoComplete:Rt,autoFocus:ot,autoPlay:ot,blocking:Rt,capture:null,charSet:null,checked:ot,cite:null,className:Rt,cols:Ae,colSpan:null,content:null,contentEditable:on,controls:ot,controlsList:Rt,coords:Ae|Yo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ot,defer:ot,dir:null,dirName:null,disabled:ot,download:Ry,draggable:on,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ot,formTarget:null,headers:Rt,height:Ae,hidden:Ry,high:Ae,href:null,hrefLang:null,htmlFor:Rt,httpEquiv:Rt,id:null,imageSizes:null,imageSrcSet:null,inert:ot,inputMode:null,integrity:null,is:null,isMap:ot,itemId:null,itemProp:Rt,itemRef:Rt,itemScope:ot,itemType:Rt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ot,low:Ae,manifest:null,max:null,maxLength:Ae,media:null,method:null,min:null,minLength:Ae,multiple:ot,muted:ot,name:null,nonce:null,noModule:ot,noValidate:ot,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:ot,optimum:Ae,pattern:null,ping:Rt,placeholder:null,playsInline:ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ot,referrerPolicy:null,rel:Rt,required:ot,reversed:ot,rows:Ae,rowSpan:Ae,sandbox:Rt,scope:null,scoped:ot,seamless:ot,selected:ot,shadowRootClonable:ot,shadowRootDelegatesFocus:ot,shadowRootMode:null,shape:null,size:Ae,sizes:null,slot:null,span:Ae,spellCheck:on,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ae,step:null,style:null,tabIndex:Ae,target:null,title:null,translate:null,type:null,typeMustMatch:ot,useMap:null,value:on,width:Ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Rt,axis:null,background:null,bgColor:null,border:Ae,borderColor:null,bottomMargin:Ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ot,declare:ot,event:null,face:null,frame:null,frameBorder:null,hSpace:Ae,leftMargin:Ae,link:null,longDesc:null,lowSrc:null,marginHeight:Ae,marginWidth:Ae,noResize:ot,noHref:ot,noShade:ot,noWrap:ot,object:null,profile:null,prompt:null,rev:null,rightMargin:Ae,rules:null,scheme:null,scrolling:on,standby:null,summary:null,text:null,topMargin:Ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ae,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ot,disableRemotePlayback:ot,prefix:null,property:null,results:Ae,security:null,unselectable:null},space:"html",transform:e6}),LQ=Pl({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-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:cr,accentHeight:Ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ae,amplitude:Ae,arabicForm:null,ascent:Ae,attributeName:null,attributeType:null,azimuth:Ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ae,by:null,calcMode:null,capHeight:Ae,className:Rt,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:Ae,diffuseConstant:Ae,direction:null,display:null,dur:null,divisor:Ae,dominantBaseline:null,download:ot,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ae,enableBackground:null,end:null,event:null,exponent:Ae,externalResourcesRequired:null,fill:null,fillOpacity:Ae,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:Yo,g2:Yo,glyphName:Yo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ae,horizOriginX:Ae,horizOriginY:Ae,id:null,ideographic:Ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ae,k:Ae,k1:Ae,k2:Ae,k3:Ae,k4:Ae,kernelMatrix:cr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ae,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:Ae,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,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ae,overlineThickness:Ae,paintOrder:null,panose1:null,path:null,pathLength:Ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Rt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ae,pointsAtY:Ae,pointsAtZ:Ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cr,rev:cr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cr,requiredFeatures:cr,requiredFonts:cr,requiredFormats:cr,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:Ae,specularExponent:Ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ae,strikethroughThickness:Ae,string:null,stroke:null,strokeDashArray:cr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ae,strokeOpacity:Ae,strokeWidth:null,style:null,surfaceScale:Ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cr,tabIndex:Ae,tableValues:null,target:null,targetX:Ae,targetY:Ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ae,underlineThickness:Ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ae,values:null,vAlphabetic:Ae,vMathematical:Ae,vectorEffect:null,vHanging:Ae,vIdeographic:Ae,version:null,vertAdvY:Ae,vertOriginX:Ae,vertOriginY:Ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Z5}),t6=Pl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,n){return"xlink:"+n.slice(5).toLowerCase()}}),n6=Pl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:e6}),r6=Pl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,n){return"xml:"+n.slice(3).toLowerCase()}}),BQ={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"},zQ=/[A-Z]/g,xS=/-[a-z]/g,qQ=/^data[-\w.:]+$/i;function VQ(t,n){const r=Iy(n);let i=n,s=rr;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&qQ.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(xS,$Q);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!xS.test(a)){let o=a.replace(zQ,UQ);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}s=fb}return new s(i,n)}function UQ(t){return"-"+t.toLowerCase()}function $Q(t){return t.charAt(1).toUpperCase()}const HQ=X5([J5,MQ,t6,n6,r6],"html"),mb=X5([J5,LQ,t6,n6,r6],"svg");function WQ(t){return t.join(" ").trim()}var Ro={},u0,yS;function KQ(){if(yS)return u0;yS=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
`,h="/",f="*",m="",p="comment",g="declaration";u0=function(j,y){if(typeof j!="string")throw new TypeError("First argument must be a string");if(!j)return[];y=y||{};var x=1,N=1;function w(z){var q=z.match(n);q&&(x+=q.length);var U=z.lastIndexOf(d);N=~U?z.length-U:N+z.length}function k(){var z={line:x,column:N};return function(q){return q.position=new A(z),C(),q}}function A(z){this.start=z,this.end={line:x,column:N},this.source=y.source}A.prototype.content=j;function S(z){var q=new Error(y.source+":"+x+":"+N+": "+z);if(q.reason=z,q.filename=y.source,q.line=x,q.column=N,q.source=j,!y.silent)throw q}function E(z){var q=z.exec(j);if(q){var U=q[0];return w(U),j=j.slice(U.length),q}}function C(){E(r)}function B(z){var q;for(z=z||[];q=D();)q!==!1&&z.push(q);return z}function D(){var z=k();if(!(h!=j.charAt(0)||f!=j.charAt(1))){for(var q=2;m!=j.charAt(q)&&(f!=j.charAt(q)||h!=j.charAt(q+1));)++q;if(q+=2,m===j.charAt(q-1))return S("End of comment missing");var U=j.slice(2,q-2);return N+=2,w(U),j=j.slice(q),N+=2,z({type:p,comment:U})}}function F(){var z=k(),q=E(i);if(q){if(D(),!E(s))return S("property missing ':'");var U=E(a),Q=z({type:g,property:b(q[0].replace(t,m)),value:U?b(U[0].replace(t,m)):m});return E(o),Q}}function R(){var z=[];B(z);for(var q;q=F();)q!==!1&&(z.push(q),B(z));return z}return C(),R()};function b(j){return j?j.replace(c,m):m}return u0}var vS;function GQ(){if(vS)return Ro;vS=1;var t=Ro&&Ro.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.default=r;var n=t(KQ());function r(i,s){var a=null;if(!i||typeof i!="string")return a;var o=(0,n.default)(i),c=typeof s=="function";return o.forEach(function(d){if(d.type==="declaration"){var h=d.property,f=d.value;c?s(h,f,d):f&&(a=a||{},a[h]=f)}}),a}return Ro}var _c={},bS;function QQ(){if(bS)return _c;bS=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(h){return!h||r.test(h)||t.test(h)},o=function(h,f){return f.toUpperCase()},c=function(h,f){return"".concat(f,"-")},d=function(h,f){return f===void 0&&(f={}),a(h)?h:(h=h.toLowerCase(),f.reactCompat?h=h.replace(s,c):h=h.replace(i,c),h.replace(n,o))};return _c.camelCase=d,_c}var Sc,jS;function YQ(){if(jS)return Sc;jS=1;var t=Sc&&Sc.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},n=t(GQ()),r=QQ();function i(s,a){var o={};return!s||typeof s!="string"||(0,n.default)(s,function(c,d){c&&d&&(o[(0,r.camelCase)(c,a)]=d)}),o}return i.default=i,Sc=i,Sc}var XQ=YQ();const JQ=ki(XQ),i6=s6("end"),pb=s6("start");function s6(t){return n;function n(r){const i=r&&r.position&&r.position[t]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function ZQ(t){const n=pb(t),r=i6(t);if(n&&r)return{start:n,end:r}}function Kc(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?wS(t.position):"start"in t||"end"in t?wS(t):"line"in t||"column"in t?My(t):""}function My(t){return NS(t&&t.line)+":"+NS(t&&t.column)}function wS(t){return My(t&&t.start)+"-"+My(t&&t.end)}function NS(t){return t&&typeof t=="number"?t:1}class Fn extends Error{constructor(n,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let s="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof n=="string"?s=n:!a.cause&&n&&(o=!0,s=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?a.ruleId=i:(a.source=i.slice(0,d),a.ruleId=i.slice(d+1))}if(!a.place&&a.ancestors&&a.ancestors){const d=a.ancestors[a.ancestors.length-1];d&&(a.place=d.position)}const c=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=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=c?c.line:void 0,this.name=Kc(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}}Fn.prototype.file="";Fn.prototype.name="";Fn.prototype.reason="";Fn.prototype.message="";Fn.prototype.stack="";Fn.prototype.column=void 0;Fn.prototype.line=void 0;Fn.prototype.ancestors=void 0;Fn.prototype.cause=void 0;Fn.prototype.fatal=void 0;Fn.prototype.place=void 0;Fn.prototype.ruleId=void 0;Fn.prototype.source=void 0;const gb={}.hasOwnProperty,eY=new Map,tY=/[A-Z]/g,nY=new Set(["table","tbody","thead","tfoot","tr"]),rY=new Set(["td","th"]),a6="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function iY(t,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=hY(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=dY(r,n.jsx,n.jsxs)}const s={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?mb:HQ,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=o6(s,t,void 0);return a&&typeof a!="string"?a:s.create(t,s.Fragment,{children:a||void 0},void 0)}function o6(t,n,r){if(n.type==="element")return sY(t,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return aY(t,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return lY(t,n,r);if(n.type==="mdxjsEsm")return oY(t,n);if(n.type==="root")return cY(t,n,r);if(n.type==="text")return uY(t,n)}function sY(t,n,r){const i=t.schema;let s=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=mb,t.schema=s),t.ancestors.push(n);const a=c6(t,n.tagName,!1),o=fY(t,n);let c=yb(t,n);return nY.has(n.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!RQ(d):!0})),l6(t,o,a,n),xb(o,c),t.ancestors.pop(),t.schema=i,t.create(n,a,o,r)}function aY(t,n){if(n.data&&n.data.estree&&t.evaluater){const i=n.data.estree.body[0];return i.type,t.evaluater.evaluateExpression(i.expression)}mu(t,n.position)}function oY(t,n){if(n.data&&n.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(n.data.estree);mu(t,n.position)}function lY(t,n,r){const i=t.schema;let s=i;n.name==="svg"&&i.space==="html"&&(s=mb,t.schema=s),t.ancestors.push(n);const a=n.name===null?t.Fragment:c6(t,n.name,!0),o=mY(t,n),c=yb(t,n);return l6(t,o,a,n),xb(o,c),t.ancestors.pop(),t.schema=i,t.create(n,a,o,r)}function cY(t,n,r){const i={};return xb(i,yb(t,n)),t.create(n,t.Fragment,i,r)}function uY(t,n){return n.value}function l6(t,n,r,i){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(n.node=i)}function xb(t,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(t.children=r)}}function dY(t,n,r){return i;function i(s,a,o,c){const h=Array.isArray(o.children)?r:n;return c?h(a,o,c):h(a,o)}}function hY(t,n){return r;function r(i,s,a,o){const c=Array.isArray(a.children),d=pb(i);return n(s,a,o,c,{columnNumber:d?d.column-1:void 0,fileName:t,lineNumber:d?d.line:void 0},void 0)}}function fY(t,n){const r={};let i,s;for(s in n.properties)if(s!=="children"&&gb.call(n.properties,s)){const a=pY(t,s,n.properties[s]);if(a){const[o,c]=a;t.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&rY.has(n.tagName)?i=c:r[o]=c}}if(i){const a=r.style||(r.style={});a[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function mY(t,n){const r={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&t.evaluater){const a=i.data.estree.body[0];a.type;const o=a.expression;o.type;const c=o.properties[0];c.type,Object.assign(r,t.evaluater.evaluateExpression(c.argument))}else mu(t,n.position);else{const s=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&t.evaluater){const c=i.value.data.estree.body[0];c.type,a=t.evaluater.evaluateExpression(c.expression)}else mu(t,n.position);else a=i.value===null?!0:i.value;r[s]=a}return r}function yb(t,n){const r=[];let i=-1;const s=t.passKeys?new Map:eY;for(;++i<n.children.length;){const a=n.children[i];let o;if(t.passKeys){const d=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(d){const h=s.get(d)||0;o=d+"-"+h,s.set(d,h+1)}}const c=o6(t,a,o);c!==void 0&&r.push(c)}return r}function pY(t,n,r){const i=VQ(t.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?TQ(r):WQ(r)),i.property==="style"){let s=typeof r=="object"?r:gY(t,String(r));return t.stylePropertyNameCase==="css"&&(s=xY(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&i.space?BQ[i.property]||i.property:i.attribute,r]}}function gY(t,n){try{return JQ(n,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const i=r,s=new Fn("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=a6+"#cannot-parse-style-attribute",s}}function c6(t,n,r){let i;if(!r)i={type:"Literal",value:n};else if(n.includes(".")){const s=n.split(".");let a=-1,o;for(;++a<s.length;){const c=mS(s[a])?{type:"Identifier",name:s[a]}:{type:"Literal",value:s[a]};o=o?{type:"MemberExpression",object:o,property:c,computed:!!(a&&c.type==="Literal"),optional:!1}:c}i=o}else i=mS(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const s=i.value;return gb.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(i);mu(t)}function mu(t,n){const r=new Fn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=a6+"#cannot-handle-mdx-estrees-without-createevaluater",r}function xY(t){const n={};let r;for(r in t)gb.call(t,r)&&(n[yY(r)]=t[r]);return n}function yY(t){let n=t.replace(tY,vY);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function vY(t){return"-"+t.toLowerCase()}const d0={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"]},bY={};function jY(t,n){const r=bY,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return u6(t,i,s)}function u6(t,n,r){if(wY(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(n&&"alt"in t&&t.alt)return t.alt;if("children"in t)return kS(t.children,n,r)}return Array.isArray(t)?kS(t,n,r):""}function kS(t,n,r){const i=[];let s=-1;for(;++s<t.length;)i[s]=u6(t[s],n,r);return i.join("")}function wY(t){return!!(t&&typeof t=="object")}const _S=document.createElement("i");function vb(t){const n="&"+t+";";_S.innerHTML=n;const r=_S.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===n?!1:r}function Ni(t,n,r,i){const s=t.length;let a=0,o;if(n<0?n=-n>s?0:s+n:n=n>s?s:n,r=r>0?r:0,i.length<1e4)o=Array.from(i),o.unshift(n,r),t.splice(...o);else for(r&&t.splice(n,r);a<i.length;)o=i.slice(a,a+1e4),o.unshift(n,0),t.splice(...o),a+=1e4,n+=1e4}function Er(t,n){return t.length>0?(Ni(t,t.length,0,n),t):n}const SS={}.hasOwnProperty;function NY(t){const n={};let r=-1;for(;++r<t.length;)kY(n,t[r]);return n}function kY(t,n){let r;for(r in n){const s=(SS.call(t,r)?t[r]:void 0)||(t[r]={}),a=n[r];let o;if(a)for(o in a){SS.call(s,o)||(s[o]=[]);const c=a[o];_Y(s[o],Array.isArray(c)?c:c?[c]:[])}}}function _Y(t,n){let r=-1;const i=[];for(;++r<n.length;)(n[r].add==="after"?t:i).push(n[r]);Ni(t,0,0,i)}function d6(t,n){const r=Number.parseInt(t,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Xo(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ci=ta(/[A-Za-z]/),hr=ta(/[\dA-Za-z]/),SY=ta(/[#-'*+\--9=?A-Z^-~]/);function Ly(t){return t!==null&&(t<32||t===127)}const By=ta(/\d/),AY=ta(/[\dA-Fa-f]/),CY=ta(/[!-/:-@[-`{-~]/);function Ze(t){return t!==null&&t<-2}function nr(t){return t!==null&&(t<0||t===32)}function Nt(t){return t===-2||t===-1||t===32}const EY=ta(new RegExp("\\p{P}|\\p{S}","u")),TY=ta(/\s/);function ta(t){return n;function n(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Ol(t){const n=[];let r=-1,i=0,s=0;for(;++r<t.length;){const a=t.charCodeAt(r);let o="";if(a===37&&hr(t.charCodeAt(r+1))&&hr(t.charCodeAt(r+2)))s=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const c=t.charCodeAt(r+1);a<56320&&c>56319&&c<57344?(o=String.fromCharCode(a,c),s=1):o="�"}else o=String.fromCharCode(a);o&&(n.push(t.slice(i,r),encodeURIComponent(o)),i=r+s+1,o=""),s&&(r+=s,s=0)}return n.join("")+t.slice(i)}function Mt(t,n,r,i){const s=i?i-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(d){return Nt(d)?(t.enter(r),c(d)):n(d)}function c(d){return Nt(d)&&a++<s?(t.consume(d),c):(t.exit(r),n(d))}}const PY={tokenize:OY};function OY(t){const n=t.attempt(this.parser.constructs.contentInitial,i,s);let r;return n;function i(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Mt(t,n,"linePrefix")}function s(c){return t.enter("paragraph"),a(c)}function a(c){const d=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=d),r=d,o(c)}function o(c){if(c===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(c);return}return Ze(c)?(t.consume(c),t.exit("chunkText"),a):(t.consume(c),o)}}const DY={tokenize:IY},AS={tokenize:RY};function IY(t){const n=this,r=[];let i=0,s,a,o;return c;function c(w){if(i<r.length){const k=r[i];return n.containerState=k[1],t.attempt(k[0].continuation,d,h)(w)}return h(w)}function d(w){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&N();const k=n.events.length;let A=k,S;for(;A--;)if(n.events[A][0]==="exit"&&n.events[A][1].type==="chunkFlow"){S=n.events[A][1].end;break}x(i);let E=k;for(;E<n.events.length;)n.events[E][1].end={...S},E++;return Ni(n.events,A+1,0,n.events.slice(k)),n.events.length=E,h(w)}return c(w)}function h(w){if(i===r.length){if(!s)return p(w);if(s.currentConstruct&&s.currentConstruct.concrete)return b(w);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},t.check(AS,f,m)(w)}function f(w){return s&&N(),x(i),p(w)}function m(w){return n.parser.lazy[n.now().line]=i!==r.length,o=n.now().offset,b(w)}function p(w){return n.containerState={},t.attempt(AS,g,b)(w)}function g(w){return i++,r.push([n.currentConstruct,n.containerState]),p(w)}function b(w){if(w===null){s&&N(),x(0),t.consume(w);return}return s=s||n.parser.flow(n.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),j(w)}function j(w){if(w===null){y(t.exit("chunkFlow"),!0),x(0),t.consume(w);return}return Ze(w)?(t.consume(w),y(t.exit("chunkFlow")),i=0,n.interrupt=void 0,c):(t.consume(w),j)}function y(w,k){const A=n.sliceStream(w);if(k&&A.push(null),w.previous=a,a&&(a.next=w),a=w,s.defineSkip(w.start),s.write(A),n.parser.lazy[w.start.line]){let S=s.events.length;for(;S--;)if(s.events[S][1].start.offset<o&&(!s.events[S][1].end||s.events[S][1].end.offset>o))return;const E=n.events.length;let C=E,B,D;for(;C--;)if(n.events[C][0]==="exit"&&n.events[C][1].type==="chunkFlow"){if(B){D=n.events[C][1].end;break}B=!0}for(x(i),S=E;S<n.events.length;)n.events[S][1].end={...D},S++;Ni(n.events,C+1,0,n.events.slice(E)),n.events.length=S}}function x(w){let k=r.length;for(;k-- >w;){const A=r[k];n.containerState=A[1],A[0].exit.call(n,t)}r.length=w}function N(){s.write([null]),a=void 0,s=void 0,n.containerState._closeFlow=void 0}}function RY(t,n,r){return Mt(t,t.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function CS(t){if(t===null||nr(t)||TY(t))return 1;if(EY(t))return 2}function bb(t,n,r){const i=[];let s=-1;for(;++s<t.length;){const a=t[s].resolveAll;a&&!i.includes(a)&&(n=a(n,r),i.push(a))}return n}const zy={name:"attention",resolveAll:FY,tokenize:MY};function FY(t,n){let r=-1,i,s,a,o,c,d,h,f;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(i=r;i--;)if(t[i][0]==="exit"&&t[i][1].type==="attentionSequence"&&t[i][1]._open&&n.sliceSerialize(t[i][1]).charCodeAt(0)===n.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[i][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;d=t[i][1].end.offset-t[i][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const m={...t[i][1].end},p={...t[r][1].start};ES(m,-d),ES(p,d),o={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...t[i][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:p},a={type:d>1?"strongText":"emphasisText",start:{...t[i][1].end},end:{...t[r][1].start}},s={type:d>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},t[i][1].end={...o.start},t[r][1].start={...c.end},h=[],t[i][1].end.offset-t[i][1].start.offset&&(h=Er(h,[["enter",t[i][1],n],["exit",t[i][1],n]])),h=Er(h,[["enter",s,n],["enter",o,n],["exit",o,n],["enter",a,n]]),h=Er(h,bb(n.parser.constructs.insideSpan.null,t.slice(i+1,r),n)),h=Er(h,[["exit",a,n],["enter",c,n],["exit",c,n],["exit",s,n]]),t[r][1].end.offset-t[r][1].start.offset?(f=2,h=Er(h,[["enter",t[r][1],n],["exit",t[r][1],n]])):f=0,Ni(t,i-1,r-i+3,h),r=i+h.length-f-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function MY(t,n){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=CS(i);let a;return o;function o(d){return a=d,t.enter("attentionSequence"),c(d)}function c(d){if(d===a)return t.consume(d),c;const h=t.exit("attentionSequence"),f=CS(d),m=!f||f===2&&s||r.includes(d),p=!s||s===2&&f||r.includes(i);return h._open=!!(a===42?m:m&&(s||!p)),h._close=!!(a===42?p:p&&(f||!m)),n(d)}}function ES(t,n){t.column+=n,t.offset+=n,t._bufferIndex+=n}const LY={name:"autolink",tokenize:BY};function BY(t,n,r){let i=0;return s;function s(g){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(g),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(g){return ci(g)?(t.consume(g),o):g===64?r(g):h(g)}function o(g){return g===43||g===45||g===46||hr(g)?(i=1,c(g)):h(g)}function c(g){return g===58?(t.consume(g),i=0,d):(g===43||g===45||g===46||hr(g))&&i++<32?(t.consume(g),c):(i=0,h(g))}function d(g){return g===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(g),t.exit("autolinkMarker"),t.exit("autolink"),n):g===null||g===32||g===60||Ly(g)?r(g):(t.consume(g),d)}function h(g){return g===64?(t.consume(g),f):SY(g)?(t.consume(g),h):r(g)}function f(g){return hr(g)?m(g):r(g)}function m(g){return g===46?(t.consume(g),i=0,f):g===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(g),t.exit("autolinkMarker"),t.exit("autolink"),n):p(g)}function p(g){if((g===45||hr(g))&&i++<63){const b=g===45?p:m;return t.consume(g),b}return r(g)}}const Vf={partial:!0,tokenize:zY};function zY(t,n,r){return i;function i(a){return Nt(a)?Mt(t,s,"linePrefix")(a):s(a)}function s(a){return a===null||Ze(a)?n(a):r(a)}}const h6={continuation:{tokenize:VY},exit:UY,name:"blockQuote",tokenize:qY};function qY(t,n,r){const i=this;return s;function s(o){if(o===62){const c=i.containerState;return c.open||(t.enter("blockQuote",{_container:!0}),c.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),a}return r(o)}function a(o){return Nt(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),n):(t.exit("blockQuotePrefix"),n(o))}}function VY(t,n,r){const i=this;return s;function s(o){return Nt(o)?Mt(t,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return t.attempt(h6,n,r)(o)}}function UY(t){t.exit("blockQuote")}const f6={name:"characterEscape",tokenize:$Y};function $Y(t,n,r){return i;function i(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),s}function s(a){return CY(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),n):r(a)}}const m6={name:"characterReference",tokenize:HY};function HY(t,n,r){const i=this;let s=0,a,o;return c;function c(m){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(m),t.exit("characterReferenceMarker"),d}function d(m){return m===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(m),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),a=31,o=hr,f(m))}function h(m){return m===88||m===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(m),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,o=AY,f):(t.enter("characterReferenceValue"),a=7,o=By,f(m))}function f(m){if(m===59&&s){const p=t.exit("characterReferenceValue");return o===hr&&!vb(i.sliceSerialize(p))?r(m):(t.enter("characterReferenceMarker"),t.consume(m),t.exit("characterReferenceMarker"),t.exit("characterReference"),n)}return o(m)&&s++<a?(t.consume(m),f):r(m)}}const TS={partial:!0,tokenize:KY},PS={concrete:!0,name:"codeFenced",tokenize:WY};function WY(t,n,r){const i=this,s={partial:!0,tokenize:A};let a=0,o=0,c;return d;function d(S){return h(S)}function h(S){const E=i.events[i.events.length-1];return a=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,c=S,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===c?(o++,t.consume(S),f):o<3?r(S):(t.exit("codeFencedFenceSequence"),Nt(S)?Mt(t,m,"whitespace")(S):m(S))}function m(S){return S===null||Ze(S)?(t.exit("codeFencedFence"),i.interrupt?n(S):t.check(TS,j,k)(S)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||Ze(S)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),m(S)):Nt(S)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Mt(t,g,"whitespace")(S)):S===96&&S===c?r(S):(t.consume(S),p)}function g(S){return S===null||Ze(S)?m(S):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===null||Ze(S)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),m(S)):S===96&&S===c?r(S):(t.consume(S),b)}function j(S){return t.attempt(s,k,y)(S)}function y(S){return t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),x}function x(S){return a>0&&Nt(S)?Mt(t,N,"linePrefix",a+1)(S):N(S)}function N(S){return S===null||Ze(S)?t.check(TS,j,k)(S):(t.enter("codeFlowValue"),w(S))}function w(S){return S===null||Ze(S)?(t.exit("codeFlowValue"),N(S)):(t.consume(S),w)}function k(S){return t.exit("codeFenced"),n(S)}function A(S,E,C){let B=0;return D;function D(U){return S.enter("lineEnding"),S.consume(U),S.exit("lineEnding"),F}function F(U){return S.enter("codeFencedFence"),Nt(U)?Mt(S,R,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):R(U)}function R(U){return U===c?(S.enter("codeFencedFenceSequence"),z(U)):C(U)}function z(U){return U===c?(B++,S.consume(U),z):B>=o?(S.exit("codeFencedFenceSequence"),Nt(U)?Mt(S,q,"whitespace")(U):q(U)):C(U)}function q(U){return U===null||Ze(U)?(S.exit("codeFencedFence"),E(U)):C(U)}}}function KY(t,n,r){const i=this;return s;function s(o){return o===null?r(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),a)}function a(o){return i.parser.lazy[i.now().line]?r(o):n(o)}}const h0={name:"codeIndented",tokenize:QY},GY={partial:!0,tokenize:YY};function QY(t,n,r){const i=this;return s;function s(h){return t.enter("codeIndented"),Mt(t,a,"linePrefix",5)(h)}function a(h){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(h):r(h)}function o(h){return h===null?d(h):Ze(h)?t.attempt(GY,o,d)(h):(t.enter("codeFlowValue"),c(h))}function c(h){return h===null||Ze(h)?(t.exit("codeFlowValue"),o(h)):(t.consume(h),c)}function d(h){return t.exit("codeIndented"),n(h)}}function YY(t,n,r){const i=this;return s;function s(o){return i.parser.lazy[i.now().line]?r(o):Ze(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):Mt(t,a,"linePrefix",5)(o)}function a(o){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?n(o):Ze(o)?s(o):r(o)}}const XY={name:"codeText",previous:ZY,resolve:JY,tokenize:eX};function JY(t){let n=t.length-4,r=3,i,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[n][1].type==="lineEnding"||t[n][1].type==="space")){for(i=r;++i<n;)if(t[i][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(i=r-1,n++;++i<=n;)s===void 0?i!==n&&t[i][1].type!=="lineEnding"&&(s=i):(i===n||t[i][1].type==="lineEnding")&&(t[s][1].type="codeTextData",i!==s+2&&(t[s][1].end=t[i-1][1].end,t.splice(s+2,i-s-2),n-=i-s-2,i=s+2),s=void 0);return t}function ZY(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function eX(t,n,r){let i=0,s,a;return o;function o(m){return t.enter("codeText"),t.enter("codeTextSequence"),c(m)}function c(m){return m===96?(t.consume(m),i++,c):(t.exit("codeTextSequence"),d(m))}function d(m){return m===null?r(m):m===32?(t.enter("space"),t.consume(m),t.exit("space"),d):m===96?(a=t.enter("codeTextSequence"),s=0,f(m)):Ze(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),d):(t.enter("codeTextData"),h(m))}function h(m){return m===null||m===32||m===96||Ze(m)?(t.exit("codeTextData"),d(m)):(t.consume(m),h)}function f(m){return m===96?(t.consume(m),s++,f):s===i?(t.exit("codeTextSequence"),t.exit("codeText"),n(m)):(a.type="codeTextData",h(m))}}class tX{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,r,i){const s=r||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&Ac(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Ac(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ac(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);Ac(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ac(this.left,r.reverse())}}}function Ac(t,n){let r=0;if(n.length<1e4)t.push(...n);else for(;r<n.length;)t.push(...n.slice(r,r+1e4)),r+=1e4}function p6(t){const n={};let r=-1,i,s,a,o,c,d,h;const f=new tX(t);for(;++r<f.length;){for(;r in n;)r=n[r];if(i=f.get(r),r&&i[1].type==="chunkFlow"&&f.get(r-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,a=0,a<d.length&&d[a][1].type==="lineEndingBlank"&&(a+=2),a<d.length&&d[a][1].type==="content"))for(;++a<d.length&&d[a][1].type!=="content";)d[a][1].type==="chunkText"&&(d[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,nX(f,r)),r=n[r],h=!0);else if(i[1]._container){for(a=r,s=void 0;a--;)if(o=f.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(s&&(f.get(s)[1].type="lineEndingBlank"),o[1].type="lineEnding",s=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;s&&(i[1].end={...f.get(s)[1].start},c=f.slice(s,r),c.unshift(i),f.splice(s,r-s+1,c))}}return Ni(t,0,Number.POSITIVE_INFINITY,f.slice(0)),!h}function nX(t,n){const r=t.get(n)[1],i=t.get(n)[2];let s=n-1;const a=[];let o=r._tokenizer;o||(o=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const c=o.events,d=[],h={};let f,m,p=-1,g=r,b=0,j=0;const y=[j];for(;g;){for(;t.get(++s)[1]!==g;);a.push(s),g._tokenizer||(f=i.sliceStream(g),g.next||f.push(null),m&&o.defineSkip(g.start),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),m=g,g=g.next}for(g=r;++p<c.length;)c[p][0]==="exit"&&c[p-1][0]==="enter"&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(j=p+1,y.push(j),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(o.events=[],g?(g._tokenizer=void 0,g.previous=void 0):y.pop(),p=y.length;p--;){const x=c.slice(y[p],y[p+1]),N=a.pop();d.push([N,N+x.length-1]),t.splice(N,2,x)}for(d.reverse(),p=-1;++p<d.length;)h[b+d[p][0]]=b+d[p][1],b+=d[p][1]-d[p][0]-1;return h}const rX={resolve:sX,tokenize:aX},iX={partial:!0,tokenize:oX};function sX(t){return p6(t),t}function aX(t,n){let r;return i;function i(c){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(c)}function s(c){return c===null?a(c):Ze(c)?t.check(iX,o,a)(c):(t.consume(c),s)}function a(c){return t.exit("chunkContent"),t.exit("content"),n(c)}function o(c){return t.consume(c),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function oX(t,n,r){const i=this;return s;function s(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Mt(t,a,"linePrefix")}function a(o){if(o===null||Ze(o))return r(o);const c=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?n(o):t.interrupt(i.parser.constructs.flow,r,n)(o)}}function g6(t,n,r,i,s,a,o,c,d){const h=d||Number.POSITIVE_INFINITY;let f=0;return m;function m(x){return x===60?(t.enter(i),t.enter(s),t.enter(a),t.consume(x),t.exit(a),p):x===null||x===32||x===41||Ly(x)?r(x):(t.enter(i),t.enter(o),t.enter(c),t.enter("chunkString",{contentType:"string"}),j(x))}function p(x){return x===62?(t.enter(a),t.consume(x),t.exit(a),t.exit(s),t.exit(i),n):(t.enter(c),t.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===62?(t.exit("chunkString"),t.exit(c),p(x)):x===null||x===60||Ze(x)?r(x):(t.consume(x),x===92?b:g)}function b(x){return x===60||x===62||x===92?(t.consume(x),g):g(x)}function j(x){return!f&&(x===null||x===41||nr(x))?(t.exit("chunkString"),t.exit(c),t.exit(o),t.exit(i),n(x)):f<h&&x===40?(t.consume(x),f++,j):x===41?(t.consume(x),f--,j):x===null||x===32||x===40||Ly(x)?r(x):(t.consume(x),x===92?y:j)}function y(x){return x===40||x===41||x===92?(t.consume(x),j):j(x)}}function x6(t,n,r,i,s,a){const o=this;let c=0,d;return h;function h(g){return t.enter(i),t.enter(s),t.consume(g),t.exit(s),t.enter(a),f}function f(g){return c>999||g===null||g===91||g===93&&!d||g===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?r(g):g===93?(t.exit(a),t.enter(s),t.consume(g),t.exit(s),t.exit(i),n):Ze(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),f):(t.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===null||g===91||g===93||Ze(g)||c++>999?(t.exit("chunkString"),f(g)):(t.consume(g),d||(d=!Nt(g)),g===92?p:m)}function p(g){return g===91||g===92||g===93?(t.consume(g),c++,m):m(g)}}function y6(t,n,r,i,s,a){let o;return c;function c(p){return p===34||p===39||p===40?(t.enter(i),t.enter(s),t.consume(p),t.exit(s),o=p===40?41:p,d):r(p)}function d(p){return p===o?(t.enter(s),t.consume(p),t.exit(s),t.exit(i),n):(t.enter(a),h(p))}function h(p){return p===o?(t.exit(a),d(o)):p===null?r(p):Ze(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),Mt(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||Ze(p)?(t.exit("chunkString"),h(p)):(t.consume(p),p===92?m:f)}function m(p){return p===o||p===92?(t.consume(p),f):f(p)}}function Gc(t,n){let r;return i;function i(s){return Ze(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,i):Nt(s)?Mt(t,i,r?"linePrefix":"lineSuffix")(s):n(s)}}const lX={name:"definition",tokenize:uX},cX={partial:!0,tokenize:dX};function uX(t,n,r){const i=this;let s;return a;function a(g){return t.enter("definition"),o(g)}function o(g){return x6.call(i,t,c,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function c(g){return s=Xo(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),g===58?(t.enter("definitionMarker"),t.consume(g),t.exit("definitionMarker"),d):r(g)}function d(g){return nr(g)?Gc(t,h)(g):h(g)}function h(g){return g6(t,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function f(g){return t.attempt(cX,m,m)(g)}function m(g){return Nt(g)?Mt(t,p,"whitespace")(g):p(g)}function p(g){return g===null||Ze(g)?(t.exit("definition"),i.parser.defined.push(s),n(g)):r(g)}}function dX(t,n,r){return i;function i(c){return nr(c)?Gc(t,s)(c):r(c)}function s(c){return y6(t,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return Nt(c)?Mt(t,o,"whitespace")(c):o(c)}function o(c){return c===null||Ze(c)?n(c):r(c)}}const hX={name:"hardBreakEscape",tokenize:fX};function fX(t,n,r){return i;function i(a){return t.enter("hardBreakEscape"),t.consume(a),s}function s(a){return Ze(a)?(t.exit("hardBreakEscape"),n(a)):r(a)}}const mX={name:"headingAtx",resolve:pX,tokenize:gX};function pX(t,n){let r=t.length-2,i=3,s,a;return t[i][1].type==="whitespace"&&(i+=2),r-2>i&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&t[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(s={type:"atxHeadingText",start:t[i][1].start,end:t[r][1].end},a={type:"chunkText",start:t[i][1].start,end:t[r][1].end,contentType:"text"},Ni(t,i,r-i+1,[["enter",s,n],["enter",a,n],["exit",a,n],["exit",s,n]])),t}function gX(t,n,r){let i=0;return s;function s(f){return t.enter("atxHeading"),a(f)}function a(f){return t.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&i++<6?(t.consume(f),o):f===null||nr(f)?(t.exit("atxHeadingSequence"),c(f)):r(f)}function c(f){return f===35?(t.enter("atxHeadingSequence"),d(f)):f===null||Ze(f)?(t.exit("atxHeading"),n(f)):Nt(f)?Mt(t,c,"whitespace")(f):(t.enter("atxHeadingText"),h(f))}function d(f){return f===35?(t.consume(f),d):(t.exit("atxHeadingSequence"),c(f))}function h(f){return f===null||f===35||nr(f)?(t.exit("atxHeadingText"),c(f)):(t.consume(f),h)}}const xX=["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"],OS=["pre","script","style","textarea"],yX={concrete:!0,name:"htmlFlow",resolveTo:jX,tokenize:wX},vX={partial:!0,tokenize:kX},bX={partial:!0,tokenize:NX};function jX(t){let n=t.length;for(;n--&&!(t[n][0]==="enter"&&t[n][1].type==="htmlFlow"););return n>1&&t[n-2][1].type==="linePrefix"&&(t[n][1].start=t[n-2][1].start,t[n+1][1].start=t[n-2][1].start,t.splice(n-2,2)),t}function wX(t,n,r){const i=this;let s,a,o,c,d;return h;function h(L){return f(L)}function f(L){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(L),m}function m(L){return L===33?(t.consume(L),p):L===47?(t.consume(L),a=!0,j):L===63?(t.consume(L),s=3,i.interrupt?n:O):ci(L)?(t.consume(L),o=String.fromCharCode(L),y):r(L)}function p(L){return L===45?(t.consume(L),s=2,g):L===91?(t.consume(L),s=5,c=0,b):ci(L)?(t.consume(L),s=4,i.interrupt?n:O):r(L)}function g(L){return L===45?(t.consume(L),i.interrupt?n:O):r(L)}function b(L){const X="CDATA[";return L===X.charCodeAt(c++)?(t.consume(L),c===X.length?i.interrupt?n:R:b):r(L)}function j(L){return ci(L)?(t.consume(L),o=String.fromCharCode(L),y):r(L)}function y(L){if(L===null||L===47||L===62||nr(L)){const X=L===47,J=o.toLowerCase();return!X&&!a&&OS.includes(J)?(s=1,i.interrupt?n(L):R(L)):xX.includes(o.toLowerCase())?(s=6,X?(t.consume(L),x):i.interrupt?n(L):R(L)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(L):a?N(L):w(L))}return L===45||hr(L)?(t.consume(L),o+=String.fromCharCode(L),y):r(L)}function x(L){return L===62?(t.consume(L),i.interrupt?n:R):r(L)}function N(L){return Nt(L)?(t.consume(L),N):D(L)}function w(L){return L===47?(t.consume(L),D):L===58||L===95||ci(L)?(t.consume(L),k):Nt(L)?(t.consume(L),w):D(L)}function k(L){return L===45||L===46||L===58||L===95||hr(L)?(t.consume(L),k):A(L)}function A(L){return L===61?(t.consume(L),S):Nt(L)?(t.consume(L),A):w(L)}function S(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(t.consume(L),d=L,E):Nt(L)?(t.consume(L),S):C(L)}function E(L){return L===d?(t.consume(L),d=null,B):L===null||Ze(L)?r(L):(t.consume(L),E)}function C(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||nr(L)?A(L):(t.consume(L),C)}function B(L){return L===47||L===62||Nt(L)?w(L):r(L)}function D(L){return L===62?(t.consume(L),F):r(L)}function F(L){return L===null||Ze(L)?R(L):Nt(L)?(t.consume(L),F):r(L)}function R(L){return L===45&&s===2?(t.consume(L),Q):L===60&&s===1?(t.consume(L),H):L===62&&s===4?(t.consume(L),T):L===63&&s===3?(t.consume(L),O):L===93&&s===5?(t.consume(L),Y):Ze(L)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(vX,V,z)(L)):L===null||Ze(L)?(t.exit("htmlFlowData"),z(L)):(t.consume(L),R)}function z(L){return t.check(bX,q,V)(L)}function q(L){return t.enter("lineEnding"),t.consume(L),t.exit("lineEnding"),U}function U(L){return L===null||Ze(L)?z(L):(t.enter("htmlFlowData"),R(L))}function Q(L){return L===45?(t.consume(L),O):R(L)}function H(L){return L===47?(t.consume(L),o="",K):R(L)}function K(L){if(L===62){const X=o.toLowerCase();return OS.includes(X)?(t.consume(L),T):R(L)}return ci(L)&&o.length<8?(t.consume(L),o+=String.fromCharCode(L),K):R(L)}function Y(L){return L===93?(t.consume(L),O):R(L)}function O(L){return L===62?(t.consume(L),T):L===45&&s===2?(t.consume(L),O):R(L)}function T(L){return L===null||Ze(L)?(t.exit("htmlFlowData"),V(L)):(t.consume(L),T)}function V(L){return t.exit("htmlFlow"),n(L)}}function NX(t,n,r){const i=this;return s;function s(o){return Ze(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),a):r(o)}function a(o){return i.parser.lazy[i.now().line]?r(o):n(o)}}function kX(t,n,r){return i;function i(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Vf,n,r)}}const _X={name:"htmlText",tokenize:SX};function SX(t,n,r){const i=this;let s,a,o;return c;function c(O){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(O),d}function d(O){return O===33?(t.consume(O),h):O===47?(t.consume(O),A):O===63?(t.consume(O),w):ci(O)?(t.consume(O),C):r(O)}function h(O){return O===45?(t.consume(O),f):O===91?(t.consume(O),a=0,b):ci(O)?(t.consume(O),N):r(O)}function f(O){return O===45?(t.consume(O),g):r(O)}function m(O){return O===null?r(O):O===45?(t.consume(O),p):Ze(O)?(o=m,H(O)):(t.consume(O),m)}function p(O){return O===45?(t.consume(O),g):m(O)}function g(O){return O===62?Q(O):O===45?p(O):m(O)}function b(O){const T="CDATA[";return O===T.charCodeAt(a++)?(t.consume(O),a===T.length?j:b):r(O)}function j(O){return O===null?r(O):O===93?(t.consume(O),y):Ze(O)?(o=j,H(O)):(t.consume(O),j)}function y(O){return O===93?(t.consume(O),x):j(O)}function x(O){return O===62?Q(O):O===93?(t.consume(O),x):j(O)}function N(O){return O===null||O===62?Q(O):Ze(O)?(o=N,H(O)):(t.consume(O),N)}function w(O){return O===null?r(O):O===63?(t.consume(O),k):Ze(O)?(o=w,H(O)):(t.consume(O),w)}function k(O){return O===62?Q(O):w(O)}function A(O){return ci(O)?(t.consume(O),S):r(O)}function S(O){return O===45||hr(O)?(t.consume(O),S):E(O)}function E(O){return Ze(O)?(o=E,H(O)):Nt(O)?(t.consume(O),E):Q(O)}function C(O){return O===45||hr(O)?(t.consume(O),C):O===47||O===62||nr(O)?B(O):r(O)}function B(O){return O===47?(t.consume(O),Q):O===58||O===95||ci(O)?(t.consume(O),D):Ze(O)?(o=B,H(O)):Nt(O)?(t.consume(O),B):Q(O)}function D(O){return O===45||O===46||O===58||O===95||hr(O)?(t.consume(O),D):F(O)}function F(O){return O===61?(t.consume(O),R):Ze(O)?(o=F,H(O)):Nt(O)?(t.consume(O),F):B(O)}function R(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(t.consume(O),s=O,z):Ze(O)?(o=R,H(O)):Nt(O)?(t.consume(O),R):(t.consume(O),q)}function z(O){return O===s?(t.consume(O),s=void 0,U):O===null?r(O):Ze(O)?(o=z,H(O)):(t.consume(O),z)}function q(O){return O===null||O===34||O===39||O===60||O===61||O===96?r(O):O===47||O===62||nr(O)?B(O):(t.consume(O),q)}function U(O){return O===47||O===62||nr(O)?B(O):r(O)}function Q(O){return O===62?(t.consume(O),t.exit("htmlTextData"),t.exit("htmlText"),n):r(O)}function H(O){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),K}function K(O){return Nt(O)?Mt(t,Y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):Y(O)}function Y(O){return t.enter("htmlTextData"),o(O)}}const jb={name:"labelEnd",resolveAll:TX,resolveTo:PX,tokenize:OX},AX={tokenize:DX},CX={tokenize:IX},EX={tokenize:RX};function TX(t){let n=-1;const r=[];for(;++n<t.length;){const i=t[n][1];if(r.push(t[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",n+=s}}return t.length!==r.length&&Ni(t,0,t.length,r),t}function PX(t,n){let r=t.length,i=0,s,a,o,c;for(;r--;)if(s=t[r][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(o){if(t[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=r,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(o=r);const d={type:t[a][1].type==="labelLink"?"link":"image",start:{...t[a][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[a][1].start},end:{...t[o][1].end}},f={type:"labelText",start:{...t[a+i+2][1].end},end:{...t[o-2][1].start}};return c=[["enter",d,n],["enter",h,n]],c=Er(c,t.slice(a+1,a+i+3)),c=Er(c,[["enter",f,n]]),c=Er(c,bb(n.parser.constructs.insideSpan.null,t.slice(a+i+4,o-3),n)),c=Er(c,[["exit",f,n],t[o-2],t[o-1],["exit",h,n]]),c=Er(c,t.slice(o+1)),c=Er(c,[["exit",d,n]]),Ni(t,a,t.length,c),t}function OX(t,n,r){const i=this;let s=i.events.length,a,o;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){a=i.events[s][1];break}return c;function c(p){return a?a._inactive?m(p):(o=i.parser.defined.includes(Xo(i.sliceSerialize({start:a.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),d):r(p)}function d(p){return p===40?t.attempt(AX,f,o?f:m)(p):p===91?t.attempt(CX,f,o?h:m)(p):o?f(p):m(p)}function h(p){return t.attempt(EX,f,m)(p)}function f(p){return n(p)}function m(p){return a._balanced=!0,r(p)}}function DX(t,n,r){return i;function i(m){return t.enter("resource"),t.enter("resourceMarker"),t.consume(m),t.exit("resourceMarker"),s}function s(m){return nr(m)?Gc(t,a)(m):a(m)}function a(m){return m===41?f(m):g6(t,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function o(m){return nr(m)?Gc(t,d)(m):f(m)}function c(m){return r(m)}function d(m){return m===34||m===39||m===40?y6(t,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):f(m)}function h(m){return nr(m)?Gc(t,f)(m):f(m)}function f(m){return m===41?(t.enter("resourceMarker"),t.consume(m),t.exit("resourceMarker"),t.exit("resource"),n):r(m)}}function IX(t,n,r){const i=this;return s;function s(c){return x6.call(i,t,a,o,"reference","referenceMarker","referenceString")(c)}function a(c){return i.parser.defined.includes(Xo(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(c):r(c)}function o(c){return r(c)}}function RX(t,n,r){return i;function i(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),s}function s(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),n):r(a)}}const FX={name:"labelStartImage",resolveAll:jb.resolveAll,tokenize:MX};function MX(t,n,r){const i=this;return s;function s(c){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(c),t.exit("labelImageMarker"),a}function a(c){return c===91?(t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelImage"),o):r(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):n(c)}}const LX={name:"labelStartLink",resolveAll:jb.resolveAll,tokenize:BX};function BX(t,n,r){const i=this;return s;function s(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):n(o)}}const f0={name:"lineEnding",tokenize:zX};function zX(t,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),Mt(t,n,"linePrefix")}}const Fh={name:"thematicBreak",tokenize:qX};function qX(t,n,r){let i=0,s;return a;function a(h){return t.enter("thematicBreak"),o(h)}function o(h){return s=h,c(h)}function c(h){return h===s?(t.enter("thematicBreakSequence"),d(h)):i>=3&&(h===null||Ze(h))?(t.exit("thematicBreak"),n(h)):r(h)}function d(h){return h===s?(t.consume(h),i++,d):(t.exit("thematicBreakSequence"),Nt(h)?Mt(t,c,"whitespace")(h):c(h))}}const Xn={continuation:{tokenize:HX},exit:KX,name:"list",tokenize:$X},VX={partial:!0,tokenize:GX},UX={partial:!0,tokenize:WX};function $X(t,n,r){const i=this,s=i.events[i.events.length-1];let a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,o=0;return c;function c(g){const b=i.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!i.containerState.marker||g===i.containerState.marker:By(g)){if(i.containerState.type||(i.containerState.type=b,t.enter(b,{_container:!0})),b==="listUnordered")return t.enter("listItemPrefix"),g===42||g===45?t.check(Fh,r,h)(g):h(g);if(!i.interrupt||g===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),d(g)}return r(g)}function d(g){return By(g)&&++o<10?(t.consume(g),d):(!i.interrupt||o<2)&&(i.containerState.marker?g===i.containerState.marker:g===41||g===46)?(t.exit("listItemValue"),h(g)):r(g)}function h(g){return t.enter("listItemMarker"),t.consume(g),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||g,t.check(Vf,i.interrupt?r:f,t.attempt(VX,p,m))}function f(g){return i.containerState.initialBlankLine=!0,a++,p(g)}function m(g){return Nt(g)?(t.enter("listItemPrefixWhitespace"),t.consume(g),t.exit("listItemPrefixWhitespace"),p):r(g)}function p(g){return i.containerState.size=a+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,n(g)}}function HX(t,n,r){const i=this;return i.containerState._closeFlow=void 0,t.check(Vf,s,a);function s(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Mt(t,n,"listItemIndent",i.containerState.size+1)(c)}function a(c){return i.containerState.furtherBlankLines||!Nt(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,t.attempt(UX,n,o)(c))}function o(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,Mt(t,t.attempt(Xn,n,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function WX(t,n,r){const i=this;return Mt(t,s,"listItemIndent",i.containerState.size+1);function s(a){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?n(a):r(a)}}function KX(t){t.exit(this.containerState.type)}function GX(t,n,r){const i=this;return Mt(t,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const o=i.events[i.events.length-1];return!Nt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):r(a)}}const DS={name:"setextUnderline",resolveTo:QX,tokenize:YX};function QX(t,n){let r=t.length,i,s,a;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){i=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!a&&t[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:{...t[i][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",a?(t.splice(s,0,["enter",o,n]),t.splice(a+1,0,["exit",t[i][1],n]),t[i][1].end={...t[a][1].end}):t[i][1]=o,t.push(["exit",o,n]),t}function YX(t,n,r){const i=this;let s;return a;function a(h){let f=i.events.length,m;for(;f--;)if(i.events[f][1].type!=="lineEnding"&&i.events[f][1].type!=="linePrefix"&&i.events[f][1].type!=="content"){m=i.events[f][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||m)?(t.enter("setextHeadingLine"),s=h,o(h)):r(h)}function o(h){return t.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===s?(t.consume(h),c):(t.exit("setextHeadingLineSequence"),Nt(h)?Mt(t,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Ze(h)?(t.exit("setextHeadingLine"),n(h)):r(h)}}const XX={tokenize:JX};function JX(t){const n=this,r=t.attempt(Vf,i,t.attempt(this.parser.constructs.flowInitial,s,Mt(t,t.attempt(this.parser.constructs.flow,s,t.attempt(rX,s)),"linePrefix")));return r;function i(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function s(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),n.currentConstruct=void 0,r}}const ZX={resolveAll:b6()},eJ=v6("string"),tJ=v6("text");function v6(t){return{resolveAll:b6(t==="text"?nJ:void 0),tokenize:n};function n(r){const i=this,s=this.parser.constructs[t],a=r.attempt(s,o,c);return o;function o(f){return h(f)?a(f):c(f)}function c(f){if(f===null){r.consume(f);return}return r.enter("data"),r.consume(f),d}function d(f){return h(f)?(r.exit("data"),a(f)):(r.consume(f),d)}function h(f){if(f===null)return!0;const m=s[f];let p=-1;if(m)for(;++p<m.length;){const g=m[p];if(!g.previous||g.previous.call(i,i.previous))return!0}return!1}}}function b6(t){return n;function n(r,i){let s=-1,a;for(;++s<=r.length;)a===void 0?r[s]&&r[s][1].type==="data"&&(a=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==a+2&&(r[a][1].end=r[s-1][1].end,r.splice(a+2,s-a-2),s=a+2),a=void 0);return t?t(r,i):r}}function nJ(t,n){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const i=t[r-1][1],s=n.sliceStream(i);let a=s.length,o=-1,c=0,d;for(;a--;){const h=s[a];if(typeof h=="string"){for(o=h.length;h.charCodeAt(o-1)===32;)c++,o--;if(o)break;o=-1}else if(h===-2)d=!0,c++;else if(h!==-1){a++;break}}if(n._contentTypeTextTrailing&&r===t.length&&(c=0),c){const h={type:r===t.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:i.start._bufferIndex+o,_index:i.start._index+a,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(t.splice(r,0,["enter",h,n],["exit",h,n]),r+=2)}r++}return t}const rJ={42:Xn,43:Xn,45:Xn,48:Xn,49:Xn,50:Xn,51:Xn,52:Xn,53:Xn,54:Xn,55:Xn,56:Xn,57:Xn,62:h6},iJ={91:lX},sJ={[-2]:h0,[-1]:h0,32:h0},aJ={35:mX,42:Fh,45:[DS,Fh],60:yX,61:DS,95:Fh,96:PS,126:PS},oJ={38:m6,92:f6},lJ={[-5]:f0,[-4]:f0,[-3]:f0,33:FX,38:m6,42:zy,60:[LY,_X],91:LX,92:[hX,f6],93:jb,95:zy,96:XY},cJ={null:[zy,ZX]},uJ={null:[42,95]},dJ={null:[]},hJ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:uJ,contentInitial:iJ,disable:dJ,document:rJ,flow:aJ,flowInitial:sJ,insideSpan:cJ,string:oJ,text:lJ},Symbol.toStringTag,{value:"Module"}));function fJ(t,n,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},a=[];let o=[],c=[];const d={attempt:E(A),check:E(S),consume:N,enter:w,exit:k,interrupt:E(S,{interrupt:!0})},h={code:null,containerState:{},defineSkip:j,events:[],now:b,parser:t,previous:null,sliceSerialize:p,sliceStream:g,write:m};let f=n.tokenize.call(h,d);return n.resolveAll&&a.push(n),h;function m(F){return o=Er(o,F),y(),o[o.length-1]!==null?[]:(C(n,0),h.events=bb(a,h.events,h),h.events)}function p(F,R){return pJ(g(F),R)}function g(F){return mJ(o,F)}function b(){const{_bufferIndex:F,_index:R,line:z,column:q,offset:U}=i;return{_bufferIndex:F,_index:R,line:z,column:q,offset:U}}function j(F){s[F.line]=F.column,D()}function y(){let F;for(;i._index<o.length;){const R=o[i._index];if(typeof R=="string")for(F=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===F&&i._bufferIndex<R.length;)x(R.charCodeAt(i._bufferIndex));else x(R)}}function x(F){f=f(F)}function N(F){Ze(F)?(i.line++,i.column=1,i.offset+=F===-3?2:1,D()):F!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=F}function w(F,R){const z=R||{};return z.type=F,z.start=b(),h.events.push(["enter",z,h]),c.push(z),z}function k(F){const R=c.pop();return R.end=b(),h.events.push(["exit",R,h]),R}function A(F,R){C(F,R.from)}function S(F,R){R.restore()}function E(F,R){return z;function z(q,U,Q){let H,K,Y,O;return Array.isArray(q)?V(q):"tokenize"in q?V([q]):T(q);function T(W){return G;function G(ee){const ne=ee!==null&&W[ee],le=ee!==null&&W.null,ye=[...Array.isArray(ne)?ne:ne?[ne]:[],...Array.isArray(le)?le:le?[le]:[]];return V(ye)(ee)}}function V(W){return H=W,K=0,W.length===0?Q:L(W[K])}function L(W){return G;function G(ee){return O=B(),Y=W,W.partial||(h.currentConstruct=W),W.name&&h.parser.constructs.disable.null.includes(W.name)?J():W.tokenize.call(R?Object.assign(Object.create(h),R):h,d,X,J)(ee)}}function X(W){return F(Y,O),U}function J(W){return O.restore(),++K<H.length?L(H[K]):Q}}}function C(F,R){F.resolveAll&&!a.includes(F)&&a.push(F),F.resolve&&Ni(h.events,R,h.events.length-R,F.resolve(h.events.slice(R),h)),F.resolveTo&&(h.events=F.resolveTo(h.events,h))}function B(){const F=b(),R=h.previous,z=h.currentConstruct,q=h.events.length,U=Array.from(c);return{from:q,restore:Q};function Q(){i=F,h.previous=R,h.currentConstruct=z,h.events.length=q,c=U,D()}}function D(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function mJ(t,n){const r=n.start._index,i=n.start._bufferIndex,s=n.end._index,a=n.end._bufferIndex;let o;if(r===s)o=[t[r].slice(i,a)];else{if(o=t.slice(r,s),i>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(i):o.shift()}a>0&&o.push(t[s].slice(0,a))}return o}function pJ(t,n){let r=-1;const i=[];let s;for(;++r<t.length;){const a=t[r];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
`;break}case-3:{o=`\r
`;break}case-2:{o=n?" ":"	";break}case-1:{if(!n&&s)continue;o=" ";break}default:o=String.fromCharCode(a)}s=a===-2,i.push(o)}return i.join("")}function gJ(t){const i={constructs:NY([hJ,...(t||{}).extensions||[]]),content:s(PY),defined:[],document:s(DY),flow:s(XX),lazy:{},string:s(eJ),text:s(tJ)};return i;function s(a){return o;function o(c){return fJ(i,a,c)}}}function xJ(t){for(;!p6(t););return t}const IS=/[\0\t\n\r]/g;function yJ(){let t=1,n="",r=!0,i;return s;function s(a,o,c){const d=[];let h,f,m,p,g;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),m=0,n="",r&&(a.charCodeAt(0)===65279&&m++,r=void 0);m<a.length;){if(IS.lastIndex=m,h=IS.exec(a),p=h&&h.index!==void 0?h.index:a.length,g=a.charCodeAt(p),!h){n=a.slice(m);break}if(g===10&&m===p&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),m<p&&(d.push(a.slice(m,p)),t+=p-m),g){case 0:{d.push(65533),t++;break}case 9:{for(f=Math.ceil(t/4)*4,d.push(-2);t++<f;)d.push(-1);break}case 10:{d.push(-4),t=1;break}default:i=!0,t=1}m=p+1}return c&&(i&&d.push(-5),n&&d.push(n),d.push(null)),d}}const vJ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bJ(t){return t.replace(vJ,jJ)}function jJ(t,n,r){if(n)return n;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),a=s===120||s===88;return d6(r.slice(a?2:1),a?16:10)}return vb(r)||t}const j6={}.hasOwnProperty;function wJ(t,n,r){return typeof n!="string"&&(r=n,n=void 0),NJ(r)(xJ(gJ(r).document().write(yJ()(t,n,!0))))}function NJ(t){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ve),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(We),blockQuote:a(le),characterEscape:B,characterReference:B,codeFenced:a(ye),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ye,o),codeText:a(be,o),codeTextData:B,data:B,codeFlowValue:B,definition:a(Pe),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Te),hardBreakEscape:a(ut),hardBreakTrailing:a(ut),htmlFlow:a(nt,o),htmlFlowData:B,htmlText:a(nt,o),htmlTextData:B,image:a(ge),label:o,link:a(ve),listItem:a(Oe),listItemValue:p,listOrdered:a(Se,m),listUnordered:a(Se),paragraph:a(je),reference:L,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(We),strong:a(tt),thematicBreak:a(rt)},exit:{atxHeading:d(),atxHeadingSequence:A,autolink:d(),autolinkEmail:ne,autolinkProtocol:ee,blockQuote:d(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:W,characterReference:G,codeFenced:d(y),codeFencedFence:j,codeFencedFenceInfo:g,codeFencedFenceMeta:b,codeFlowValue:D,codeIndented:d(x),codeText:d(U),codeTextData:D,data:D,definition:d(),definitionDestinationString:k,definitionLabelString:N,definitionTitleString:w,emphasis:d(),hardBreakEscape:d(R),hardBreakTrailing:d(R),htmlFlow:d(z),htmlFlowData:D,htmlText:d(q),htmlTextData:D,image:d(H),label:Y,labelText:K,lineEnding:F,link:d(Q),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:X,resourceDestinationString:O,resourceTitleString:T,resource:V,setextHeading:d(C),setextHeadingLineSequence:E,setextHeadingText:S,strong:d(),thematicBreak:d()}};w6(n,(t||{}).mdastExtensions||[]);const r={};return i;function i(xe){let _e={type:"root",children:[]};const De={stack:[_e],tokenStack:[],config:n,enter:c,exit:h,buffer:o,resume:f,data:r},it=[];let He=-1;for(;++He<xe.length;)if(xe[He][1].type==="listOrdered"||xe[He][1].type==="listUnordered")if(xe[He][0]==="enter")it.push(He);else{const kt=it.pop();He=s(xe,kt,He)}for(He=-1;++He<xe.length;){const kt=n[xe[He][0]];j6.call(kt,xe[He][1].type)&&kt[xe[He][1].type].call(Object.assign({sliceSerialize:xe[He][2].sliceSerialize},De),xe[He][1])}if(De.tokenStack.length>0){const kt=De.tokenStack[De.tokenStack.length-1];(kt[1]||RS).call(De,void 0,kt[0])}for(_e.position={start:_s(xe.length>0?xe[0][1].start:{line:1,column:1,offset:0}),end:_s(xe.length>0?xe[xe.length-2][1].end:{line:1,column:1,offset:0})},He=-1;++He<n.transforms.length;)_e=n.transforms[He](_e)||_e;return _e}function s(xe,_e,De){let it=_e-1,He=-1,kt=!1,Tr,Un,rs,ra;for(;++it<=De;){const bn=xe[it];switch(bn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{bn[0]==="enter"?He++:He--,ra=void 0;break}case"lineEndingBlank":{bn[0]==="enter"&&(Tr&&!ra&&!He&&!rs&&(rs=it),ra=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ra=void 0}if(!He&&bn[0]==="enter"&&bn[1].type==="listItemPrefix"||He===-1&&bn[0]==="exit"&&(bn[1].type==="listUnordered"||bn[1].type==="listOrdered")){if(Tr){let Qr=it;for(Un=void 0;Qr--;){const ir=xe[Qr];if(ir[1].type==="lineEnding"||ir[1].type==="lineEndingBlank"){if(ir[0]==="exit")continue;Un&&(xe[Un][1].type="lineEndingBlank",kt=!0),ir[1].type="lineEnding",Un=Qr}else if(!(ir[1].type==="linePrefix"||ir[1].type==="blockQuotePrefix"||ir[1].type==="blockQuotePrefixWhitespace"||ir[1].type==="blockQuoteMarker"||ir[1].type==="listItemIndent"))break}rs&&(!Un||rs<Un)&&(Tr._spread=!0),Tr.end=Object.assign({},Un?xe[Un][1].start:bn[1].end),xe.splice(Un||it,0,["exit",Tr,bn[2]]),it++,De++}if(bn[1].type==="listItemPrefix"){const Qr={type:"listItem",_spread:!1,start:Object.assign({},bn[1].start),end:void 0};Tr=Qr,xe.splice(it,0,["enter",Qr,bn[2]]),it++,De++,rs=void 0,ra=!0}}}return xe[_e][1]._spread=kt,De}function a(xe,_e){return De;function De(it){c.call(this,xe(it),it),_e&&_e.call(this,it)}}function o(){this.stack.push({type:"fragment",children:[]})}function c(xe,_e,De){this.stack[this.stack.length-1].children.push(xe),this.stack.push(xe),this.tokenStack.push([_e,De||void 0]),xe.position={start:_s(_e.start),end:void 0}}function d(xe){return _e;function _e(De){xe&&xe.call(this,De),h.call(this,De)}}function h(xe,_e){const De=this.stack.pop(),it=this.tokenStack.pop();if(it)it[0].type!==xe.type&&(_e?_e.call(this,xe,it[0]):(it[1]||RS).call(this,xe,it[0]));else throw new Error("Cannot close `"+xe.type+"` ("+Kc({start:xe.start,end:xe.end})+"): it’s not open");De.position.end=_s(xe.end)}function f(){return jY(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function p(xe){if(this.data.expectingFirstListItemValue){const _e=this.stack[this.stack.length-2];_e.start=Number.parseInt(this.sliceSerialize(xe),10),this.data.expectingFirstListItemValue=void 0}}function g(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.lang=xe}function b(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.meta=xe}function j(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe.replace(/(\r?\n|\r)$/g,"")}function N(xe){const _e=this.resume(),De=this.stack[this.stack.length-1];De.label=_e,De.identifier=Xo(this.sliceSerialize(xe)).toLowerCase()}function w(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.title=xe}function k(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.url=xe}function A(xe){const _e=this.stack[this.stack.length-1];if(!_e.depth){const De=this.sliceSerialize(xe).length;_e.depth=De}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function E(xe){const _e=this.stack[this.stack.length-1];_e.depth=this.sliceSerialize(xe).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function B(xe){const De=this.stack[this.stack.length-1].children;let it=De[De.length-1];(!it||it.type!=="text")&&(it=et(),it.position={start:_s(xe.start),end:void 0},De.push(it)),this.stack.push(it)}function D(xe){const _e=this.stack.pop();_e.value+=this.sliceSerialize(xe),_e.position.end=_s(xe.end)}function F(xe){const _e=this.stack[this.stack.length-1];if(this.data.atHardBreak){const De=_e.children[_e.children.length-1];De.position.end=_s(xe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(_e.type)&&(B.call(this,xe),D.call(this,xe))}function R(){this.data.atHardBreak=!0}function z(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe}function q(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe}function U(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe}function Q(){const xe=this.stack[this.stack.length-1];if(this.data.inReference){const _e=this.data.referenceType||"shortcut";xe.type+="Reference",xe.referenceType=_e,delete xe.url,delete xe.title}else delete xe.identifier,delete xe.label;this.data.referenceType=void 0}function H(){const xe=this.stack[this.stack.length-1];if(this.data.inReference){const _e=this.data.referenceType||"shortcut";xe.type+="Reference",xe.referenceType=_e,delete xe.url,delete xe.title}else delete xe.identifier,delete xe.label;this.data.referenceType=void 0}function K(xe){const _e=this.sliceSerialize(xe),De=this.stack[this.stack.length-2];De.label=bJ(_e),De.identifier=Xo(_e).toLowerCase()}function Y(){const xe=this.stack[this.stack.length-1],_e=this.resume(),De=this.stack[this.stack.length-1];if(this.data.inReference=!0,De.type==="link"){const it=xe.children;De.children=it}else De.alt=_e}function O(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.url=xe}function T(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.title=xe}function V(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function X(xe){const _e=this.resume(),De=this.stack[this.stack.length-1];De.label=_e,De.identifier=Xo(this.sliceSerialize(xe)).toLowerCase(),this.data.referenceType="full"}function J(xe){this.data.characterReferenceType=xe.type}function W(xe){const _e=this.sliceSerialize(xe),De=this.data.characterReferenceType;let it;De?(it=d6(_e,De==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):it=vb(_e);const He=this.stack[this.stack.length-1];He.value+=it}function G(xe){const _e=this.stack.pop();_e.position.end=_s(xe.end)}function ee(xe){D.call(this,xe);const _e=this.stack[this.stack.length-1];_e.url=this.sliceSerialize(xe)}function ne(xe){D.call(this,xe);const _e=this.stack[this.stack.length-1];_e.url="mailto:"+this.sliceSerialize(xe)}function le(){return{type:"blockquote",children:[]}}function ye(){return{type:"code",lang:null,meta:null,value:""}}function be(){return{type:"inlineCode",value:""}}function Pe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Te(){return{type:"emphasis",children:[]}}function We(){return{type:"heading",depth:0,children:[]}}function ut(){return{type:"break"}}function nt(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function ve(){return{type:"link",title:null,url:"",children:[]}}function Se(xe){return{type:"list",ordered:xe.type==="listOrdered",start:null,spread:xe._spread,children:[]}}function Oe(xe){return{type:"listItem",spread:xe._spread,checked:null,children:[]}}function je(){return{type:"paragraph",children:[]}}function tt(){return{type:"strong",children:[]}}function et(){return{type:"text",value:""}}function rt(){return{type:"thematicBreak"}}}function _s(t){return{line:t.line,column:t.column,offset:t.offset}}function w6(t,n){let r=-1;for(;++r<n.length;){const i=n[r];Array.isArray(i)?w6(t,i):kJ(t,i)}}function kJ(t,n){let r;for(r in n)if(j6.call(n,r))switch(r){case"canContainEols":{const i=n[r];i&&t[r].push(...i);break}case"transforms":{const i=n[r];i&&t[r].push(...i);break}case"enter":case"exit":{const i=n[r];i&&Object.assign(t[r],i);break}}}function RS(t,n){throw t?new Error("Cannot close `"+t.type+"` ("+Kc({start:t.start,end:t.end})+"): a different token (`"+n.type+"`, "+Kc({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Kc({start:n.start,end:n.end})+") is still open")}function _J(t){const n=this;n.parser=r;function r(i){return wJ(i,{...n.data("settings"),...t,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function SJ(t,n){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(n),!0)};return t.patch(n,r),t.applyData(n,r)}function AJ(t,n){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(n,r),[t.applyData(n,r),{type:"text",value:`
`}]}function CJ(t,n){const r=n.value?n.value+`
`:"",i={};n.lang&&(i.className=["language-"+n.lang]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return n.meta&&(s.data={meta:n.meta}),t.patch(n,s),s=t.applyData(n,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(n,s),s}function EJ(t,n){const r={type:"element",tagName:"del",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function TJ(t,n){const r={type:"element",tagName:"em",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function PJ(t,n){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),s=Ol(i.toLowerCase()),a=t.footnoteOrder.indexOf(i);let o,c=t.footnoteCounts.get(i);c===void 0?(c=0,t.footnoteOrder.push(i),o=t.footnoteOrder.length):o=a+1,c+=1,t.footnoteCounts.set(i,c);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};t.patch(n,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return t.patch(n,h),t.applyData(n,h)}function OJ(t,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function DJ(t,n){if(t.options.allowDangerousHtml){const r={type:"raw",value:n.value};return t.patch(n,r),t.applyData(n,r)}}function N6(t,n){const r=n.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const s=t.all(n),a=s[0];a&&a.type==="text"?a.value="["+a.value:s.unshift({type:"text",value:"["});const o=s[s.length-1];return o&&o.type==="text"?o.value+=i:s.push({type:"text",value:i}),s}function IJ(t,n){const r=String(n.identifier).toUpperCase(),i=t.definitionById.get(r);if(!i)return N6(t,n);const s={src:Ol(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const a={type:"element",tagName:"img",properties:s,children:[]};return t.patch(n,a),t.applyData(n,a)}function RJ(t,n){const r={src:Ol(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return t.patch(n,i),t.applyData(n,i)}function FJ(t,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};t.patch(n,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(n,i),t.applyData(n,i)}function MJ(t,n){const r=String(n.identifier).toUpperCase(),i=t.definitionById.get(r);if(!i)return N6(t,n);const s={href:Ol(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const a={type:"element",tagName:"a",properties:s,children:t.all(n)};return t.patch(n,a),t.applyData(n,a)}function LJ(t,n){const r={href:Ol(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:t.all(n)};return t.patch(n,i),t.applyData(n,i)}function BJ(t,n,r){const i=t.all(n),s=r?zJ(r):k6(n),a={},o=[];if(typeof n.checked=="boolean"){const f=i[0];let m;f&&f.type==="element"&&f.tagName==="p"?m=f:(m={type:"element",tagName:"p",properties:{},children:[]},i.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const f=i[c];(s||c!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
`}),f.type==="element"&&f.tagName==="p"&&!s?o.push(...f.children):o.push(f)}const d=i[i.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
`});const h={type:"element",tagName:"li",properties:a,children:o};return t.patch(n,h),t.applyData(n,h)}function zJ(t){let n=!1;if(t.type==="list"){n=t.spread||!1;const r=t.children;let i=-1;for(;!n&&++i<r.length;)n=k6(r[i])}return n}function k6(t){const n=t.spread;return n??t.children.length>1}function qJ(t,n){const r={},i=t.all(n);let s=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++s<i.length;){const o=i[s];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:t.wrap(i,!0)};return t.patch(n,a),t.applyData(n,a)}function VJ(t,n){const r={type:"element",tagName:"p",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function UJ(t,n){const r={type:"root",children:t.wrap(t.all(n))};return t.patch(n,r),t.applyData(n,r)}function $J(t,n){const r={type:"element",tagName:"strong",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function HJ(t,n){const r=t.all(n),i=r.shift(),s=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:t.wrap([i],!0)};t.patch(n.children[0],o),s.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},c=pb(n.children[1]),d=i6(n.children[n.children.length-1]);c&&d&&(o.position={start:c,end:d}),s.push(o)}const a={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(n,a),t.applyData(n,a)}function WJ(t,n,r){const i=r?r.children:void 0,a=(i?i.indexOf(n):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,c=o?o.length:n.children.length;let d=-1;const h=[];for(;++d<c;){const m=n.children[d],p={},g=o?o[d]:void 0;g&&(p.align=g);let b={type:"element",tagName:a,properties:p,children:[]};m&&(b.children=t.all(m),t.patch(m,b),b=t.applyData(m,b)),h.push(b)}const f={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(n,f),t.applyData(n,f)}function KJ(t,n){const r={type:"element",tagName:"td",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}const FS=9,MS=32;function GJ(t){const n=String(t),r=/\r?\n|\r/g;let i=r.exec(n),s=0;const a=[];for(;i;)a.push(LS(n.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=r.exec(n);return a.push(LS(n.slice(s),s>0,!1)),a.join("")}function LS(t,n,r){let i=0,s=t.length;if(n){let a=t.codePointAt(i);for(;a===FS||a===MS;)i++,a=t.codePointAt(i)}if(r){let a=t.codePointAt(s-1);for(;a===FS||a===MS;)s--,a=t.codePointAt(s-1)}return s>i?t.slice(i,s):""}function QJ(t,n){const r={type:"text",value:GJ(String(n.value))};return t.patch(n,r),t.applyData(n,r)}function YJ(t,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(n,r),t.applyData(n,r)}const XJ={blockquote:SJ,break:AJ,code:CJ,delete:EJ,emphasis:TJ,footnoteReference:PJ,heading:OJ,html:DJ,imageReference:IJ,image:RJ,inlineCode:FJ,linkReference:MJ,link:LJ,listItem:BJ,list:qJ,paragraph:VJ,root:UJ,strong:$J,table:HJ,tableCell:KJ,tableRow:WJ,text:QJ,thematicBreak:YJ,toml:fh,yaml:fh,definition:fh,footnoteDefinition:fh};function fh(){}const _6=-1,Uf=0,Qc=1,rf=2,wb=3,Nb=4,kb=5,_b=6,S6=7,A6=8,BS=typeof self=="object"?self:globalThis,JJ=(t,n)=>{const r=(s,a)=>(t.set(a,s),s),i=s=>{if(t.has(s))return t.get(s);const[a,o]=n[s];switch(a){case Uf:case _6:return r(o,s);case Qc:{const c=r([],s);for(const d of o)c.push(i(d));return c}case rf:{const c=r({},s);for(const[d,h]of o)c[i(d)]=i(h);return c}case wb:return r(new Date(o),s);case Nb:{const{source:c,flags:d}=o;return r(new RegExp(c,d),s)}case kb:{const c=r(new Map,s);for(const[d,h]of o)c.set(i(d),i(h));return c}case _b:{const c=r(new Set,s);for(const d of o)c.add(i(d));return c}case S6:{const{name:c,message:d}=o;return r(new BS[c](d),s)}case A6:return r(BigInt(o),s);case"BigInt":return r(Object(BigInt(o)),s);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:c}=new Uint8Array(o);return r(new DataView(c),o)}}return r(new BS[a](o),s)};return i},zS=t=>JJ(new Map,t)(0),Fo="",{toString:ZJ}={},{keys:eZ}=Object,Cc=t=>{const n=typeof t;if(n!=="object"||!t)return[Uf,n];const r=ZJ.call(t).slice(8,-1);switch(r){case"Array":return[Qc,Fo];case"Object":return[rf,Fo];case"Date":return[wb,Fo];case"RegExp":return[Nb,Fo];case"Map":return[kb,Fo];case"Set":return[_b,Fo];case"DataView":return[Qc,r]}return r.includes("Array")?[Qc,r]:r.includes("Error")?[S6,r]:[rf,r]},mh=([t,n])=>t===Uf&&(n==="function"||n==="symbol"),tZ=(t,n,r,i)=>{const s=(o,c)=>{const d=i.push(o)-1;return r.set(c,d),d},a=o=>{if(r.has(o))return r.get(o);let[c,d]=Cc(o);switch(c){case Uf:{let f=o;switch(d){case"bigint":c=A6,f=o.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+d);f=null;break;case"undefined":return s([_6],o)}return s([c,f],o)}case Qc:{if(d){let p=o;return d==="DataView"?p=new Uint8Array(o.buffer):d==="ArrayBuffer"&&(p=new Uint8Array(o)),s([d,[...p]],o)}const f=[],m=s([c,f],o);for(const p of o)f.push(a(p));return m}case rf:{if(d)switch(d){case"BigInt":return s([d,o.toString()],o);case"Boolean":case"Number":case"String":return s([d,o.valueOf()],o)}if(n&&"toJSON"in o)return a(o.toJSON());const f=[],m=s([c,f],o);for(const p of eZ(o))(t||!mh(Cc(o[p])))&&f.push([a(p),a(o[p])]);return m}case wb:return s([c,o.toISOString()],o);case Nb:{const{source:f,flags:m}=o;return s([c,{source:f,flags:m}],o)}case kb:{const f=[],m=s([c,f],o);for(const[p,g]of o)(t||!(mh(Cc(p))||mh(Cc(g))))&&f.push([a(p),a(g)]);return m}case _b:{const f=[],m=s([c,f],o);for(const p of o)(t||!mh(Cc(p)))&&f.push(a(p));return m}}const{message:h}=o;return s([c,{name:d,message:h}],o)};return a},qS=(t,{json:n,lossy:r}={})=>{const i=[];return tZ(!(n||r),!!n,new Map,i)(t),i},sf=typeof structuredClone=="function"?(t,n)=>n&&("json"in n||"lossy"in n)?zS(qS(t,n)):structuredClone(t):(t,n)=>zS(qS(t,n));function nZ(t,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function rZ(t,n){return"Back to reference "+(t+1)+(n>1?"-"+n:"")}function iZ(t){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||nZ,i=t.options.footnoteBackLabel||rZ,s=t.options.footnoteLabel||"Footnotes",a=t.options.footnoteLabelTagName||"h2",o=t.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[d]);if(!h)continue;const f=t.all(h),m=String(h.identifier).toUpperCase(),p=Ol(m.toLowerCase());let g=0;const b=[],j=t.footnoteCounts.get(m);for(;j!==void 0&&++g<=j;){b.length>0&&b.push({type:"text",value:" "});let N=typeof r=="string"?r:r(d,g);typeof N=="string"&&(N={type:"text",value:N}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,g),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const y=f[f.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const N=y.children[y.children.length-1];N&&N.type==="text"?N.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...b)}else f.push(...b);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:t.wrap(f,!0)};t.patch(h,x),c.push(x)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...sf(o),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(c,!0)},{type:"text",value:`
`}]}}const C6=(function(t){if(t==null)return lZ;if(typeof t=="function")return $f(t);if(typeof t=="object")return Array.isArray(t)?sZ(t):aZ(t);if(typeof t=="string")return oZ(t);throw new Error("Expected function, string, or object as test")});function sZ(t){const n=[];let r=-1;for(;++r<t.length;)n[r]=C6(t[r]);return $f(i);function i(...s){let a=-1;for(;++a<n.length;)if(n[a].apply(this,s))return!0;return!1}}function aZ(t){const n=t;return $f(r);function r(i){const s=i;let a;for(a in t)if(s[a]!==n[a])return!1;return!0}}function oZ(t){return $f(n);function n(r){return r&&r.type===t}}function $f(t){return n;function n(r,i,s){return!!(cZ(r)&&t.call(this,r,typeof i=="number"?i:void 0,s||void 0))}}function lZ(){return!0}function cZ(t){return t!==null&&typeof t=="object"&&"type"in t}const E6=[],uZ=!0,VS=!1,dZ="skip";function hZ(t,n,r,i){let s;typeof n=="function"&&typeof r!="function"?(i=r,r=n):s=n;const a=C6(s),o=i?-1:1;c(t,void 0,[])();function c(d,h,f){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const g=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(d.type+(g?"<"+g+">":""))+")"})}return p;function p(){let g=E6,b,j,y;if((!n||a(d,h,f[f.length-1]||void 0))&&(g=fZ(r(d,f)),g[0]===VS))return g;if("children"in d&&d.children){const x=d;if(x.children&&g[0]!==dZ)for(j=(i?x.children.length:-1)+o,y=f.concat(x);j>-1&&j<x.children.length;){const N=x.children[j];if(b=c(N,j,y)(),b[0]===VS)return b;j=typeof b[1]=="number"?b[1]:j+o}}return g}}}function fZ(t){return Array.isArray(t)?t:typeof t=="number"?[uZ,t]:t==null?E6:[t]}function T6(t,n,r,i){let s,a,o;typeof n=="function"&&typeof r!="function"?(a=void 0,o=n,s=r):(a=n,o=r,s=i),hZ(t,a,c,s);function c(d,h){const f=h[h.length-1],m=f?f.children.indexOf(d):void 0;return o(d,m,f)}}const qy={}.hasOwnProperty,mZ={};function pZ(t,n){const r=n||mZ,i=new Map,s=new Map,a=new Map,o={...XJ,...r.handlers},c={all:h,applyData:xZ,definitionById:i,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:o,one:d,options:r,patch:gZ,wrap:vZ};return T6(t,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const m=f.type==="definition"?i:s,p=String(f.identifier).toUpperCase();m.has(p)||m.set(p,f)}}),c;function d(f,m){const p=f.type,g=c.handlers[p];if(qy.call(c.handlers,p)&&g)return g(c,f,m);if(c.options.passThrough&&c.options.passThrough.includes(p)){if("children"in f){const{children:j,...y}=f,x=sf(y);return x.children=c.all(f),x}return sf(f)}return(c.options.unknownHandler||yZ)(c,f,m)}function h(f){const m=[];if("children"in f){const p=f.children;let g=-1;for(;++g<p.length;){const b=c.one(p[g],f);if(b){if(g&&p[g-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=US(b.value)),!Array.isArray(b)&&b.type==="element")){const j=b.children[0];j&&j.type==="text"&&(j.value=US(j.value))}Array.isArray(b)?m.push(...b):m.push(b)}}}return m}}function gZ(t,n){t.position&&(n.position=ZQ(t))}function xZ(t,n){let r=n;if(t&&t.data){const i=t.data.hName,s=t.data.hChildren,a=t.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const o="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:o}}r.type==="element"&&a&&Object.assign(r.properties,sf(a)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function yZ(t,n){const r=n.data||{},i="value"in n&&!(qy.call(r,"hProperties")||qy.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:t.all(n)};return t.patch(n,i),t.applyData(n,i)}function vZ(t,n){const r=[];let i=-1;for(n&&r.push({type:"text",value:`
`});++i<t.length;)i&&r.push({type:"text",value:`
`}),r.push(t[i]);return n&&t.length>0&&r.push({type:"text",value:`
`}),r}function US(t){let n=0,r=t.charCodeAt(n);for(;r===9||r===32;)n++,r=t.charCodeAt(n);return t.slice(n)}function $S(t,n){const r=pZ(t,n),i=r.one(t,void 0),s=iZ(r),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&a.children.push({type:"text",value:`
`},s),a}function bZ(t,n){return t&&"run"in t?async function(r,i){const s=$S(r,{file:i,...n});await t.run(s,i)}:function(r,i){return $S(r,{file:i,...t||n})}}function HS(t){if(t)throw t}var m0,WS;function jZ(){if(WS)return m0;WS=1;var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},a=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var f=t.call(h,"constructor"),m=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!f&&!m)return!1;var p;for(p in h);return typeof p>"u"||t.call(h,p)},o=function(h,f){r&&f.name==="__proto__"?r(h,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):h[f.name]=f.newValue},c=function(h,f){if(f==="__proto__")if(t.call(h,f)){if(i)return i(h,f).value}else return;return h[f]};return m0=function d(){var h,f,m,p,g,b,j=arguments[0],y=1,x=arguments.length,N=!1;for(typeof j=="boolean"&&(N=j,j=arguments[1]||{},y=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});y<x;++y)if(h=arguments[y],h!=null)for(f in h)m=c(j,f),p=c(h,f),j!==p&&(N&&p&&(a(p)||(g=s(p)))?(g?(g=!1,b=m&&s(m)?m:[]):b=m&&a(m)?m:{},o(j,{name:f,newValue:d(N,b,p)})):typeof p<"u"&&o(j,{name:f,newValue:p}));return j},m0}var wZ=jZ();const p0=ki(wZ);function Vy(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function NZ(){const t=[],n={run:r,use:i};return n;function r(...s){let a=-1;const o=s.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);c(null,...s);function c(d,...h){const f=t[++a];let m=-1;if(d){o(d);return}for(;++m<s.length;)(h[m]===null||h[m]===void 0)&&(h[m]=s[m]);s=h,f?kZ(f,c)(...h):o(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),n}}function kZ(t,n){let r;return i;function i(...o){const c=t.length>o.length;let d;c&&o.push(s);try{d=t.apply(this,o)}catch(h){const f=h;if(c&&r)throw f;return s(f)}c||(d&&d.then&&typeof d.then=="function"?d.then(a,s):d instanceof Error?s(d):a(d))}function s(o,...c){r||(r=!0,n(o,...c))}function a(o){s(null,o)}}const ni={basename:_Z,dirname:SZ,extname:AZ,join:CZ,sep:"/"};function _Z(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Bu(t);let r=0,i=-1,s=t.length,a;if(n===void 0||n.length===0||n.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(a){r=s+1;break}}else i<0&&(a=!0,i=s+1);return i<0?"":t.slice(r,i)}if(n===t)return"";let o=-1,c=n.length-1;for(;s--;)if(t.codePointAt(s)===47){if(a){r=s+1;break}}else o<0&&(a=!0,o=s+1),c>-1&&(t.codePointAt(s)===n.codePointAt(c--)?c<0&&(i=s):(c=-1,i=o));return r===i?i=o:i<0&&(i=t.length),t.slice(r,i)}function SZ(t){if(Bu(t),t.length===0)return".";let n=-1,r=t.length,i;for(;--r;)if(t.codePointAt(r)===47){if(i){n=r;break}}else i||(i=!0);return n<0?t.codePointAt(0)===47?"/":".":n===1&&t.codePointAt(0)===47?"//":t.slice(0,n)}function AZ(t){Bu(t);let n=t.length,r=-1,i=0,s=-1,a=0,o;for(;n--;){const c=t.codePointAt(n);if(c===47){if(o){i=n+1;break}continue}r<0&&(o=!0,r=n+1),c===46?s<0?s=n:a!==1&&(a=1):s>-1&&(a=-1)}return s<0||r<0||a===0||a===1&&s===r-1&&s===i+1?"":t.slice(s,r)}function CZ(...t){let n=-1,r;for(;++n<t.length;)Bu(t[n]),t[n]&&(r=r===void 0?t[n]:r+"/"+t[n]);return r===void 0?".":EZ(r)}function EZ(t){Bu(t);const n=t.codePointAt(0)===47;let r=TZ(t,!n);return r.length===0&&!n&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),n?"/"+r:r}function TZ(t,n){let r="",i=0,s=-1,a=0,o=-1,c,d;for(;++o<=t.length;){if(o<t.length)c=t.codePointAt(o);else{if(c===47)break;c=47}if(c===47){if(!(s===o-1||a===1))if(s!==o-1&&a===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(d=r.lastIndexOf("/"),d!==r.length-1){d<0?(r="",i=0):(r=r.slice(0,d),i=r.length-1-r.lastIndexOf("/")),s=o,a=0;continue}}else if(r.length>0){r="",i=0,s=o,a=0;continue}}n&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+t.slice(s+1,o):r=t.slice(s+1,o),i=o-s-1;s=o,a=0}else c===46&&a>-1?a++:a=-1}return r}function Bu(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const PZ={cwd:OZ};function OZ(){return"/"}function Uy(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function DZ(t){if(typeof t=="string")t=new URL(t);else if(!Uy(t)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(t.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return IZ(t)}function IZ(t){if(t.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=t.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const i=n.codePointAt(r+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(n)}const g0=["history","path","basename","stem","extname","dirname"];class P6{constructor(n){let r;n?Uy(n)?r={path:n}:typeof n=="string"||RZ(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":PZ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<g0.length;){const a=g0[i];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let s;for(s in r)g0.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?ni.basename(this.path):void 0}set basename(n){y0(n,"basename"),x0(n,"basename"),this.path=ni.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ni.dirname(this.path):void 0}set dirname(n){KS(this.basename,"dirname"),this.path=ni.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ni.extname(this.path):void 0}set extname(n){if(x0(n,"extname"),KS(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ni.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Uy(n)&&(n=DZ(n)),y0(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ni.basename(this.path,this.extname):void 0}set stem(n){y0(n,"stem"),x0(n,"stem"),this.path=ni.join(this.dirname||"",n+(this.extname||""))}fail(n,r,i){const s=this.message(n,r,i);throw s.fatal=!0,s}info(n,r,i){const s=this.message(n,r,i);return s.fatal=void 0,s}message(n,r,i){const s=new Fn(n,r,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function x0(t,n){if(t&&t.includes(ni.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ni.sep+"`")}function y0(t,n){if(!t)throw new Error("`"+n+"` cannot be empty")}function KS(t,n){if(!t)throw new Error("Setting `"+n+"` requires `path` to be set too")}function RZ(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const FZ=(function(t){const i=this.constructor.prototype,s=i[t],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,i),a}),MZ={}.hasOwnProperty;class Sb extends FZ{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=NZ()}copy(){const n=new Sb;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];n.use(...i)}return n.data(p0(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(j0("data",this.frozen),this.namespace[n]=r,this):MZ.call(this.namespace,n)&&this.namespace[n]||void 0:n?(j0("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=r.call(n,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=ph(n),i=this.parser||this.Parser;return v0("parse",i),i(String(r),r)}process(n,r){const i=this;return this.freeze(),v0("process",this.parser||this.Parser),b0("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(a,o){const c=ph(n),d=i.parse(c);i.run(d,c,function(f,m,p){if(f||!m||!p)return h(f);const g=m,b=i.stringify(g,p);zZ(b)?p.value=b:p.result=b,h(f,p)});function h(f,m){f||!m?o(f):a?a(m):r(void 0,m)}}}processSync(n){let r=!1,i;return this.freeze(),v0("processSync",this.parser||this.Parser),b0("processSync",this.compiler||this.Compiler),this.process(n,s),QS("processSync","process",r),i;function s(a,o){r=!0,HS(a),i=o}}run(n,r,i){GS(n),this.freeze();const s=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?a(void 0,i):new Promise(a);function a(o,c){const d=ph(r);s.run(n,d,h);function h(f,m,p){const g=m||n;f?c(f):o?o(g):i(void 0,g,p)}}}runSync(n,r){let i=!1,s;return this.run(n,r,a),QS("runSync","run",i),s;function a(o,c){HS(o),s=c,i=!0}}stringify(n,r){this.freeze();const i=ph(r),s=this.compiler||this.Compiler;return b0("stringify",s),GS(n),s(n,i)}use(n,...r){const i=this.attachers,s=this.namespace;if(j0("use",this.frozen),n!=null)if(typeof n=="function")d(n,r);else if(typeof n=="object")Array.isArray(n)?c(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function a(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[f,...m]=h;d(f,m)}else o(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function o(h){if(!("plugins"in h)&&!("settings"in h))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");c(h.plugins),h.settings&&(s.settings=p0(!0,s.settings,h.settings))}function c(h){let f=-1;if(h!=null)if(Array.isArray(h))for(;++f<h.length;){const m=h[f];a(m)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,f){let m=-1,p=-1;for(;++m<i.length;)if(i[m][0]===h){p=m;break}if(p===-1)i.push([h,...f]);else if(f.length>0){let[g,...b]=f;const j=i[p][1];Vy(j)&&Vy(g)&&(g=p0(!0,j,g)),i[p]=[h,g,...b]}}}}const LZ=new Sb().freeze();function v0(t,n){if(typeof n!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function b0(t,n){if(typeof n!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function j0(t,n){if(n)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function GS(t){if(!Vy(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function QS(t,n,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+n+"` instead")}function ph(t){return BZ(t)?t:new P6(t)}function BZ(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function zZ(t){return typeof t=="string"||qZ(t)}function qZ(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const VZ="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",YS=[],XS={allowDangerousHtml:!0},UZ=/^(https?|ircs?|mailto|xmpp)$/i,$Z=[{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:"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 Hf(t){const n=HZ(t),r=WZ(t);return KZ(n.runSync(n.parse(r),r),t)}function HZ(t){const n=t.rehypePlugins||YS,r=t.remarkPlugins||YS,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...XS}:XS;return LZ().use(_J).use(r).use(bZ,i).use(n)}function WZ(t){const n=t.children||"",r=new P6;return typeof n=="string"&&(r.value=n),r}function KZ(t,n){const r=n.allowedElements,i=n.allowElement,s=n.components,a=n.disallowedElements,o=n.skipHtml,c=n.unwrapDisallowed,d=n.urlTransform||GZ;for(const f of $Z)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+VZ+f.id,void 0);return n.className&&(t={type:"element",tagName:"div",properties:{className:n.className},children:t.type==="root"?t.children:[t]}),T6(t,h),iY(t,{Fragment:e.Fragment,components:s,ignoreInvalidStyle:!0,jsx:e.jsx,jsxs:e.jsxs,passKeys:!0,passNode:!0});function h(f,m,p){if(f.type==="raw"&&p&&typeof m=="number")return o?p.children.splice(m,1):p.children[m]={type:"text",value:f.value},m;if(f.type==="element"){let g;for(g in d0)if(Object.hasOwn(d0,g)&&Object.hasOwn(f.properties,g)){const b=f.properties[g],j=d0[g];(j===null||j.includes(f.tagName))&&(f.properties[g]=d(String(b||""),g,f))}}if(f.type==="element"){let g=r?!r.includes(f.tagName):a?a.includes(f.tagName):!1;if(!g&&i&&typeof m=="number"&&(g=!i(f,m,p)),g&&p&&typeof m=="number")return c&&f.children?p.children.splice(m,1,...f.children):p.children.splice(m,1),m}}}function GZ(t){const n=t.indexOf(":"),r=t.indexOf("?"),i=t.indexOf("#"),s=t.indexOf("/");return n===-1||s!==-1&&n>s||r!==-1&&n>r||i!==-1&&n>i||UZ.test(t.slice(0,n))?t:""}function QZ(){var o,c;const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=Fe({queryKey:["blog",n],queryFn:()=>ce.entities.BlogPost.filter({slug:n,published:!0}),enabled:!!n}),s=r[0];if(i)return e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"})});if(!s)return e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:e.jsx("h1",{className:"text-2xl font-bold text-[#0D0D0F]",children:"Artikel niet gevonden."})});const a=((o=s.content)==null?void 0:o.includes("<"))&&((c=s.content)==null?void 0:c.includes(">"));return e.jsxs("div",{className:"pt-20 bg-white",children:[e.jsxs(xl,{children:[e.jsx("title",{children:s.meta_title||`${s.title} - 48-7 Blog`}),e.jsx("meta",{name:"description",content:s.meta_description||s.excerpt}),s.meta_keywords&&e.jsx("meta",{name:"keywords",content:s.meta_keywords}),s.canonical_url&&e.jsx("link",{rel:"canonical",href:s.canonical_url}),e.jsx("meta",{property:"og:title",content:s.title}),e.jsx("meta",{property:"og:description",content:s.excerpt}),e.jsx("meta",{property:"og:type",content:"article"}),s.image_url&&e.jsx("meta",{property:"og:image",content:s.image_url}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:s.title}),e.jsx("meta",{name:"twitter:description",content:s.excerpt}),s.image_url&&e.jsx("meta",{name:"twitter:image",content:s.image_url}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BlogPosting",headline:s.title,description:s.excerpt,image:s.image_url,datePublished:s.published_date,dateModified:s.updated_date||s.published_date,author:{"@type":"Organization",name:s.author||"48-7"},publisher:{"@type":"Organization",name:"48-7",logo:{"@type":"ImageObject",url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/ead83115b_48-7logo.png"}}})})]}),e.jsxs("section",{className:"relative overflow-hidden py-20 bg-[#F4F4F4]",children:[s.image_url&&e.jsx("img",{src:s.image_url,alt:s.title,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),e.jsx("div",{className:"relative max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs(de,{to:ae("Blog"),className:"inline-flex items-center text-[#0D0D0F] hover:text-[#FAB868] transition-colors mb-6",children:[e.jsx(ht,{className:"w-4 h-4 mr-2"})," Terug naar Blog"]}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6 leading-tight",children:s.title}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:s.excerpt}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2 text-base text-[#0D0D0F]",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(gI,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{children:s.author||"48-7 Team"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(NO,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{children:s.published_date?new Date(s.published_date).toLocaleDateString("nl-NL"):""})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(yn,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{children:s.read_time})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(aI,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{children:s.category})]})]})]})})]}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Z.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"prose prose-xl max-w-none prose-headings:text-[#0D0D0F] prose-headings:font-bold prose-p:text-[#0D0D0F]/80 prose-p:leading-relaxed prose-a:text-[#FAB868] prose-strong:text-[#0D0D0F] prose-li:text-[#0D0D0F]/80",children:a?e.jsx("div",{dangerouslySetInnerHTML:{__html:s.content}}):e.jsx(Hf,{children:s.content})})})}),e.jsx("section",{className:"py-20 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Meer lezen?"}),e.jsxs(de,{to:ae("Blog"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all text-lg",children:[e.jsx(qa,{className:"w-5 h-5"}),"Ga naar Blog",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function Wf({variant:t="default"}){const[n,r]=I.useState(""),[i,s]=I.useState(!1),a=wl(),o=async c=>{if(c.preventDefault(),!n)return;const d=n.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,"");a(ae("AIImpactRapport")+`?url=${encodeURIComponent(d)}`)};return t==="compact"?e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-[#F4F4F4] rounded-3xl p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-[#FAB868] rounded-full flex items-center justify-center",children:e.jsx(ui,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F]",children:"Gratis AI Impact Analyse"}),e.jsx("p",{className:"text-[#9CA3AF] text-sm",children:"Ontdek je potentieel in 60 seconden"})]})]}),e.jsxs("form",{onSubmit:o,className:"flex gap-3",children:[e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:n,onChange:c=>r(c.target.value),required:!0,className:"flex-1"}),e.jsx(se,{type:"submit",disabled:i,className:"bg-[#FAB868] text-[#0D0D0F] hover:bg-[#E5A04D] font-semibold",children:i?"...":e.jsx($e,{className:"w-5 h-5"})})]})]}):e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-[#FAB868] rounded-3xl p-12 md:p-16 relative overflow-hidden",children:e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-[#0D0D0F] rounded-full flex items-center justify-center",children:e.jsx(At,{className:"w-8 h-8 text-white"})}),e.jsx("div",{children:e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#0D0D0F]",children:"Gratis AI Impact Rapport van jouw bedrijf"})})]}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80 mb-8 max-w-2xl",children:"Vul je website URL in en ontvang binnen 60 seconden een gepersonaliseerd rapport met concrete AI kansen."}),e.jsxs("form",{onSubmit:o,className:"flex flex-col sm:flex-row gap-4",children:[e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:n,onChange:c=>r(c.target.value),required:!0,className:"flex-1 px-6 py-6 text-lg bg-white rounded-xl"}),e.jsx(se,{type:"submit",disabled:i,className:"px-8 py-6 bg-[#0D0D0F] text-white hover:bg-[#1a1a1c] font-bold text-lg",children:i?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Analyseren..."]}):e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(At,{className:"w-5 h-5"}),"Genereer rapport"]})})]}),e.jsx("p",{className:"text-sm text-[#0D0D0F]/70 mt-4",children:"✓ 100% gratis • ✓ Geen verplichtingen • ✓ Direct resultaat"})]})})}function YZ(){const[t,n]=I.useState("all"),{data:r=[],isLoading:i}=Fe({queryKey:["cases"],queryFn:()=>ce.entities.CaseStudy.filter({published:!0},"-created_date")}),s=[{id:"all",label:"Alle Cases"},{id:"consultancy",label:"Consultancy"},{id:"development",label:"Development"},{id:"training",label:"Training"}],a=t==="all"?r:r.filter(o=>o.case_type===t);return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-6",children:"Resultaten die spreken"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Bekijk hoe wij MKB-bedrijven helpen hun productiviteit te verdubbelen met AI"})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"mt-12 flex justify-center",children:e.jsxs(de,{to:ae("AIImpactRapport"),className:"inline-flex items-center gap-2 bg-[#FAB868] rounded-lg px-3 py-1.5 hover:bg-[#E5A04D] transition-all hover:shadow-lg",children:[e.jsx("span",{className:"text-sm font-bold text-[#0D0D0F]",children:"Ontdek jouw AI-kansen"}),e.jsx($e,{className:"w-4 h-4 text-[#0D0D0F]"})]})})]})}),e.jsx("section",{className:"py-8 border-b border-gray-100 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2",children:[e.jsx(lf,{className:"w-5 h-5 text-gray-400 flex-shrink-0"}),s.map(o=>e.jsx("button",{onClick:()=>n(o.id),className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-all ${t===o.id?"bg-gray-900 text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`,children:o.label},o.id))]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:i?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):a.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Geen cases gevonden"})}):e.jsx("div",{className:"space-y-16",children:a.map((o,c)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl overflow-hidden border border-gray-100 shadow-sm hover:shadow-xl transition-all",children:e.jsxs("div",{className:"grid lg:grid-cols-2",children:[e.jsxs("div",{className:"relative h-64 lg:h-auto",children:[o.featured_image_url&&e.jsx("img",{src:o.featured_image_url,alt:o.client_name,className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent lg:bg-gradient-to-r"}),e.jsxs("div",{className:"absolute bottom-6 left-6 text-white",children:[e.jsx("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-blue-100 text-blue-800 rounded-full text-sm font-medium mb-2",children:o.case_type.charAt(0).toUpperCase()+o.case_type.slice(1)}),e.jsx("h2",{className:"text-2xl font-bold",children:o.client_name}),e.jsx("p",{className:"text-white/80",children:o.industry})]})]}),e.jsxs("div",{className:"p-4 sm:p-8 lg:p-12",children:[o.homepage_usp&&e.jsx("div",{className:"mb-6",children:e.jsxs("div",{className:"flex items-center gap-2 text-green-600",children:[e.jsx(Ki,{className:"w-5 h-5"}),e.jsx("h3",{className:"text-lg sm:text-xl font-bold",children:o.homepage_usp})]})}),e.jsxs("div",{className:"mb-4 sm:mb-6",children:[e.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2",children:"Challenge"}),e.jsx("div",{className:"text-sm sm:text-base text-gray-700 prose prose-sm",dangerouslySetInnerHTML:{__html:o.challenge}})]}),e.jsxs("div",{className:"mb-4 sm:mb-6",children:[e.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2",children:"Oplossing"}),e.jsx("div",{className:"text-sm sm:text-base text-gray-700 prose prose-sm",dangerouslySetInnerHTML:{__html:o.solution}})]}),o.results&&o.results.length>0&&e.jsx("div",{className:"grid grid-cols-3 gap-2 sm:gap-4 mb-4 sm:mb-8",children:o.results.map((d,h)=>e.jsxs("div",{className:"text-center p-2 sm:p-4 bg-gray-50 rounded-xl",children:[e.jsx("p",{className:"text-lg sm:text-2xl font-bold text-gray-900 leading-tight",children:d.value}),e.jsx("p",{className:"text-xs sm:text-sm text-gray-600 mt-1",children:d.label})]},h))}),o.quote&&e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 sm:p-6",children:[e.jsx(PA,{className:"w-6 h-6 sm:w-8 sm:h-8 text-gray-300 mb-2 sm:mb-3"}),e.jsxs("p",{className:"text-sm sm:text-base text-gray-700 italic mb-2 sm:mb-3",children:['"',o.quote,'"']}),e.jsxs("p",{className:"text-xs sm:text-sm font-semibold text-gray-900",children:[o.quote_author,o.quote_role&&`, ${o.quote_role}`]})]})]})]})},o.id))})})}),e.jsx("section",{className:"py-16 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Wat kan AI voor jouw bedrijf betekenen?"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Ontvang een gepersonaliseerde analyse met concrete AI kansen"})]}),e.jsx(Wf,{})]})}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-white mb-6",children:"Klaar voor jouw succesverhaal?"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"Ontdek hoe wij jouw bedrijf kunnen helpen met AI"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(de,{to:ae("AIQuiz"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-gradient-to-r from-blue-600 to-blue-700 text-white font-semibold rounded-2xl hover:shadow-xl transition-all",children:["Doe de AI Quiz",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:ae("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-gray-900 font-semibold rounded-2xl hover:shadow-xl transition-all",children:"Plan een gesprek"})]})]})})]})}function XZ(){return e.jsx("section",{style:{backgroundColor:"#1a1a1a"},className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"text-center max-w-[600px] mx-auto mb-14",children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Cowork in actie"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#fff",marginBottom:12},children:"Zo werkt het in de praktijk."}),e.jsx("p",{style:{color:"rgba(255,255,255,0.5)",fontSize:16},children:"Een echte conversatie met Cowork — gekoppeld aan Exact en Gmail. Jij vraagt. Cowork handelt. Jij keurt goed."})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-14 items-center",children:[e.jsxs("div",{style:{backgroundColor:"#111",border:"1px solid rgba(255,255,255,0.08)",borderRadius:18,overflow:"hidden"},children:[e.jsxs("div",{style:{backgroundColor:"#1e1e1e",padding:"14px 20px",display:"flex",alignItems:"center",gap:10,borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[e.jsx("div",{className:"flex gap-1.5",children:["#ff5f57","#ffbd2e","#28c840"].map(t=>e.jsx("span",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:t,display:"inline-block"}},t))}),e.jsx("span",{style:{fontSize:12,fontWeight:600,color:"rgba(255,255,255,0.5)",marginLeft:4},children:"Cowork — Sales assistent"})]}),e.jsxs("div",{style:{padding:24},className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"flex gap-2.5 flex-row-reverse items-start",children:[e.jsx("div",{style:{width:30,height:30,borderRadius:"50%",background:"rgba(255,255,255,0.15)",color:"rgba(255,255,255,0.7)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,flexShrink:0},children:"JV"}),e.jsx("div",{style:{maxWidth:"78%",background:"rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.85)",borderRadius:"14px 14px 4px 14px",padding:"12px 16px",fontSize:13,lineHeight:1.6},children:"Welke offertes staan al meer dan 2 weken open?"})]}),e.jsxs("div",{className:"flex gap-2.5 items-start",children:[e.jsx("div",{style:{width:30,height:30,borderRadius:"50%",backgroundColor:"#f0a500",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:700,flexShrink:0},children:"AI"}),e.jsxs("div",{style:{maxWidth:"78%",background:"#1e2d1e",color:"rgba(255,255,255,0.85)",borderRadius:"14px 14px 14px 4px",padding:"12px 16px",fontSize:13,lineHeight:1.6},children:["Ik zie ",e.jsx("strong",{style:{color:"#f0a500"},children:"3 offertes"})," in Exact die langer dan 2 weken openstaan:",e.jsx("div",{className:"mt-2 flex flex-col gap-1",children:["Bakkerij Janssen — €4.800 — 18 dagen","Logistiek Noord BV — €12.200 — 23 dagen","Installatiebedrijf Smit — €7.500 — 16 dagen"].map((t,n)=>e.jsxs("div",{className:"flex gap-2",style:{fontSize:12.5},children:[e.jsx("span",{style:{color:"#f0a500",fontWeight:700},children:"•"}),t]},n))}),e.jsx("br",{}),"Zal ik voor elk van hen een follow-up mail opstellen op basis van jullie laatste contact?"]})]}),e.jsxs("div",{className:"flex gap-2.5 flex-row-reverse items-start",children:[e.jsx("div",{style:{width:30,height:30,borderRadius:"50%",background:"rgba(255,255,255,0.15)",color:"rgba(255,255,255,0.7)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,flexShrink:0},children:"JV"}),e.jsx("div",{style:{maxWidth:"78%",background:"rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.85)",borderRadius:"14px 14px 4px 14px",padding:"12px 16px",fontSize:13,lineHeight:1.6},children:"Ja, doe dat voor Bakkerij Janssen."})]}),e.jsxs("div",{className:"flex gap-2.5 items-start",children:[e.jsx("div",{style:{width:30,height:30,borderRadius:"50%",backgroundColor:"#f0a500",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:700,flexShrink:0},children:"AI"}),e.jsx("div",{style:{maxWidth:"78%",background:"#1e2d1e",borderRadius:"14px 14px 14px 4px",padding:"12px 16px"},children:e.jsxs("div",{style:{background:"rgba(240,165,0,0.1)",border:"1px solid rgba(240,165,0,0.3)",borderRadius:10,padding:"10px 14px",fontSize:12.5,color:"rgba(255,255,255,0.7)",display:"flex",alignItems:"flex-start",gap:8},children:[e.jsx(Ft,{className:"w-3.5 h-3.5 flex-shrink-0 mt-0.5",style:{stroke:"#f0a500"}}),"Mail aangemaakt in Gmail op basis van jullie laatste gesprek. Klaar om te versturen — ",e.jsx("strong",{style:{color:"#f0a500"},children:"jij keurt goed."})]})})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-5",children:[[{nr:"1",title:"Medewerker stelt een vraag",text:"In gewone taal, via Cowork. Geen formulieren, geen menu's, geen training nodig."},{nr:"2",title:"Cowork raadpleegt jouw systemen",text:"Live data uit Exact, CRM, mailbox — gecombineerd in één antwoord. Geen copy-paste, geen handmatig opzoeken."},{nr:"3",title:"Cowork stelt een actie voor",text:"Mail opstellen, order aanmaken, rapportage genereren. Cowork doet het voorstel — jij beslist."},{nr:"4",title:"Jij keurt goed",text:"Cowork voert uit. Bevestiging direct in Cowork. Jij houdt de controle — altijd."}].map((t,n)=>e.jsxs(Pt.Fragment,{children:[e.jsxs("div",{className:"flex gap-4 items-start",children:[e.jsx("div",{style:{width:36,height:36,borderRadius:"50%",background:"rgba(240,165,0,0.12)",border:"1px solid rgba(240,165,0,0.3)",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Bebas Neue', cursive",fontSize:16,color:"#f0a500",flexShrink:0},children:t.nr}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:15,fontWeight:700,color:"#fff",marginBottom:4},children:t.title}),e.jsx("p",{style:{fontSize:13,color:"rgba(255,255,255,0.45)",lineHeight:1.55},children:t.text})]})]}),n<3&&e.jsx("div",{style:{width:1,height:16,background:"rgba(255,255,255,0.1)",marginLeft:17}})]},n)),e.jsx("div",{style:{marginTop:24},children:e.jsx(de,{to:ae("ClaudeCoworkAdvies"),style:{backgroundColor:"#f0a500",color:"#fff"},className:"inline-flex items-center px-6 py-3.5 rounded-lg text-sm font-bold hover:opacity-90 transition-opacity",children:"Zien hoe dit werkt voor mijn bedrijf →"})})]})]})]})})}const JZ=[{key:"dienstverl",label:"Zakelijke dienstverlening"},{key:"bouw",label:"Bouw & Installatie"},{key:"zorg",label:"Zorg & Welzijn"},{key:"groothandel",label:"Groothandel"},{key:"finance",label:"Financiële dienstverlening"}],ZZ={dienstverl:[{voor:"Elke maandagochtend ben ik twee uur kwijt aan het samenstellen van klantupdates uit drie verschillende systemen.",na:"Cowork haalt data op uit alle systemen, stelt de update op in jouw huisstijl en stuurt hem klaar voor review. Jij keurt goed in 10 minuten.",saving:"Tijdsbesparing: ~7 uur/week"},{voor:"Offertes schrijven kost me een halve dag terwijl de informatie al in Exact staat.",na:"Cowork haalt tarieven en klantdata op uit Exact en genereert een conceptofferte inclusief scope en voorwaarden. Klaar voor review in 3 minuten.",saving:"Tijdsbesparing: ~4 uur/week"}],bouw:[{voor:"Werkbonnen verwerken en het Wkb-dossier bijhouden kost mijn uitvoerder elke week uren administratie.",na:"Gesproken notities op de bouwplaats worden automatisch verwerkt tot werkbonnen en Wkb-dossieronderdelen. Uitvoerder accordeert, klaar.",saving:"Tijdsbesparing: ~6 uur/week"},{voor:"Inkooporders controleren en verwerken in Exact neemt de hele ochtend van mijn binnendienst in beslag.",na:"Cowork leest inkomende orders uit e-mail, controleert ze op afwijkingen en verwerkt ze automatisch in Exact. Binnendienst handelt alleen uitzonderingen af.",saving:"Tijdsbesparing: ~5 uur/week"}],zorg:[{voor:"Mijn medewerkers zijn gemiddeld 40 minuten per dienst kwijt aan het schrijven van zorgrapportages.",na:"Medewerker spreekt observaties in na de dienst. Cowork structureert dit tot een AVG-conforme zorgrapportage. Review en opslaan: 3 minuten.",saving:"Tijdsbesparing: ~35 min/dienst"},{voor:"Roosteren kost mijn planner elke week een dag door alle beschikbaarheden en CAO-regels handmatig te verwerken.",na:"Cowork analyseert beschikbaarheid, verlof en CAO-parameters en stelt een conceptrooster op. Planner accordeert en past uitzonderingen aan.",saving:"Tijdsbesparing: ~6 uur/week"}],groothandel:[{voor:"Inkomende orders per e-mail handmatig overtypen in ons systeem kost mijn binnendienst uren per dag.",na:"Orders worden automatisch uitgelezen uit e-mail of PDF en verwerkt in Exact Online. Binnendienst controleert alleen afwijkingen en onbekende artikelen.",saving:"Tijdsbesparing: ~8 uur/week"},{voor:"Elke week dezelfde statusmail naar 30 klanten opstellen en versturen neemt te veel tijd.",na:"Cowork haalt orderstatus op uit Exact, stelt gepersonaliseerde statusmails op per klant en verstuurt ze automatisch op het vaste moment.",saving:"Tijdsbesparing: ~3 uur/week"}],finance:[{voor:"Wwft-dossiers bijhouden en controleren op volledigheid kost mijn compliance officer een dag per week.",na:"Cowork controleert klantdossiers automatisch op Wwft-volledigheid, signaleert verlopen KYC-documenten en rapporteert bevindingen in een overzicht.",saving:"Tijdsbesparing: ~5 uur/week"},{voor:"Klantvragen per e-mail beantwoorden en in HubSpot bijhouden neemt te veel tijd van mijn adviseurs.",na:"Cowork stelt conceptantwoorden op in de stijl van de adviseur, slaat gespreksnotities op in HubSpot en update de dealstatus automatisch.",saving:"Tijdsbesparing: ~4 uur/week"}]};function eee(){const[t,n]=I.useState("dienstverl");return e.jsx("section",{style:{backgroundColor:"#f5f5f5"},className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"text-center max-w-[600px] mx-auto mb-10",children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Claude Cowork in de praktijk"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:12},children:"Wat doet Cowork voor jouw branche?"}),e.jsx("p",{style:{color:"#666",fontSize:16},children:"Concrete voor/na-scenario's per sector — zodat je ziet wat het oplevert in jouw dagelijkse werk."})]}),e.jsx("div",{className:"flex gap-2 flex-wrap justify-center mb-10",children:JZ.map(r=>e.jsx("button",{onClick:()=>n(r.key),style:{padding:"9px 20px",borderRadius:30,border:t===r.key?"2px solid #1a1a1a":"2px solid #e8e8e8",background:t===r.key?"#1a1a1a":"#fff",color:t===r.key?"#fff":"#666",fontSize:14,fontWeight:600,cursor:"pointer",fontFamily:"inherit",transition:"all 0.15s"},children:r.label},r.key))}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:ZZ[t].map((r,i)=>e.jsxs("div",{style:{background:"#fff",border:"1px solid #e8e8e8",borderRadius:14,overflow:"hidden"},children:[e.jsxs("div",{style:{background:"#f5f5f5",padding:"18px 22px"},children:[e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#999",marginBottom:6},children:"Voor Claude Cowork"}),e.jsxs("p",{style:{fontSize:14,color:"#444",lineHeight:1.55,fontStyle:"italic"},children:['"',r.voor,'"']})]}),e.jsxs("div",{style:{padding:"20px 22px"},children:[e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#f0a500",marginBottom:8},children:"Na Claude Cowork"}),e.jsx("p",{style:{fontSize:14,color:"#1a1a1a",lineHeight:1.6},children:r.na}),e.jsx("span",{style:{display:"inline-block",marginTop:10,background:"#fef3d0",color:"#b07800",fontSize:12,fontWeight:700,padding:"4px 10px",borderRadius:20},children:r.saving})]})]},i))})]})})}const tee=[{name:"Starter",tagline:"Voor teams die willen starten",price:"€750",unit:"eenmalige setup",features:["2 software-koppelingen","3 skills op maat","Tot 5 gebruikers","Basis onboarding","E-mailsupport, 30 dagen"],featured:!1,btnText:"Vraag Starter aan"},{name:"Groei",tagline:"Voor serieuze inzet van Cowork",price:"€1.500",unit:"eenmalige setup",badge:"Meest gekozen",features:["4 software-koppelingen","6 skills op maat","Tot 15 gebruikers","Begeleide onboarding","E-mail + call support, 60 dagen"],featured:!0,btnText:"Vraag Groei aan"},{name:"Pro",tagline:"Voor meerdere afdelingen of locaties",price:"€2.750",unit:"eenmalige setup",features:["6 software-koppelingen","10 skills op maat","Onbeperkt gebruikers","Dedicated onboarding traject","Prioriteit support, 90 dagen"],featured:!1,btnText:"Vraag Pro aan"}],nee=[{title:"Zwart op wit wat je krijgt",text:"Na de intake weet je exact wat we bouwen — geen verrassingen achteraf."},{title:"Geen ticketsysteem, geen wachtrijen",text:"Eén vast aanspreekpunt bij 48-7 — gewoon bellen of appen."},{title:"Alles wat we bouwen is van jou",text:"Geen lock-in. Jij behoudt volledige eigendom over alle skills en koppelingen."}];function ree(){return e.jsx("section",{id:"pricing",className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"text-center max-w-[620px] mx-auto mb-4",children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Prijzen"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a"},children:"Transparant geprijsd. Klaar in één week."})]}),e.jsxs("p",{style:{textAlign:"center",fontSize:14,color:"#666",marginBottom:44},children:["Je betaalt eenmalig voor de setup. De Anthropic-licentie (",e.jsx("strong",{style:{color:"#1a1a1a"},children:"€17/mnd per gebruiker"}),") regel je zelf rechtstreeks bij Anthropic — daar zitten wij niet tussen."]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-5 mb-8",children:tee.map((t,n)=>e.jsxs("div",{style:{borderRadius:16,overflow:"hidden",border:t.featured?"2px solid #f0a500":"1px solid #e8e8e8",display:"flex",flexDirection:"column"},children:[e.jsxs("div",{style:{padding:"28px 24px 20px",backgroundColor:t.featured?"#1a1a1a":"#f5f5f5"},children:[t.badge&&e.jsx("span",{style:{display:"inline-block",backgroundColor:"#f0a500",color:"#fff",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",padding:"3px 9px",borderRadius:20,marginBottom:12},children:t.badge}),e.jsx("div",{style:{fontSize:22,fontWeight:800,color:t.featured?"#fff":"#1a1a1a"},children:t.name}),e.jsx("div",{style:{fontSize:13,color:t.featured?"rgba(255,255,255,0.5)":"#666",marginTop:3},children:t.tagline})]}),e.jsxs("div",{style:{padding:"22px 24px 26px",flex:1,display:"flex",flexDirection:"column",backgroundColor:"#fff"},children:[e.jsxs("div",{style:{marginBottom:18},children:[e.jsx("strong",{style:{fontSize:32,fontWeight:800,color:"#1a1a1a"},children:t.price}),e.jsx("span",{style:{fontSize:14,color:"#666",marginLeft:4},children:t.unit})]}),e.jsx("ul",{style:{listStyle:"none",display:"flex",flexDirection:"column",gap:9,flex:1,marginBottom:22,padding:0},children:t.features.map((r,i)=>e.jsxs("li",{style:{fontSize:14,color:"#333",display:"flex",gap:9,alignItems:"flex-start"},children:[e.jsx("span",{style:{width:18,height:18,backgroundColor:"#fef3d0",borderRadius:"50%",flexShrink:0,marginTop:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:e.jsx("svg",{viewBox:"0 0 18 18",style:{width:12,height:12},fill:"none",stroke:"#f0a500",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"3.5,9 7,12.5 14.5,5"})})}),r]},i))}),e.jsx(de,{to:ae("Contact")+`?training=${encodeURIComponent("Cowork "+t.name)}`,style:{display:"block",textAlign:"center",padding:13,borderRadius:8,fontSize:15,fontWeight:700,backgroundColor:t.featured?"#f0a500":"#1a1a1a",color:"#fff",textDecoration:"none"},className:"hover:opacity-85 transition-opacity",children:t.btnText})]})]},n))}),e.jsxs("div",{style:{border:"1px solid #e8e8e8",borderRadius:14,padding:"28px 32px",display:"flex",alignItems:"center",gap:32,flexWrap:"wrap",backgroundColor:"#f5f5f5",marginBottom:32},children:[e.jsx("div",{style:{fontSize:36,flexShrink:0},children:"🎓"}),e.jsxs("div",{style:{flex:1,minWidth:200},children:[e.jsx("h4",{style:{fontSize:18,fontWeight:700,color:"#1a1a1a",marginBottom:6},children:"Training voor jouw team"}),e.jsx("p",{style:{fontSize:14,color:"#666",lineHeight:1.6},children:"Wil je jouw team meteen goed laten starten? We verzorgen een praktische training op locatie — zodat iedereen Cowork direct goed gebruikt. Maximaal 15 personen per dagdeel. Op aanvraag in te plannen, aansluitend op de setup of apart."})]}),e.jsxs("div",{style:{textAlign:"right",flexShrink:0},children:[e.jsx("strong",{style:{display:"block",fontSize:36,fontWeight:800,color:"#f0a500",lineHeight:1},children:"€500"}),e.jsx("span",{style:{fontSize:13,color:"#666"},children:"per dagdeel"})]})]}),e.jsx("div",{className:"flex gap-4 flex-wrap",children:nee.map((t,n)=>e.jsxs("div",{style:{flex:1,minWidth:200,display:"flex",gap:12,alignItems:"flex-start",padding:18,background:"#fff",borderRadius:10,border:"1px solid #e8e8e8"},children:[e.jsx("div",{style:{width:24,height:24,backgroundColor:"#f0a500",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginTop:1},children:e.jsx("svg",{viewBox:"0 0 24 24",style:{width:13,height:13},fill:"none",stroke:"#fff",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}),e.jsxs("div",{children:[e.jsx("strong",{style:{display:"block",fontSize:14,color:"#1a1a1a",marginBottom:3},children:t.title}),e.jsx("span",{style:{fontSize:13,color:"#666"},children:t.text})]})]},n))}),e.jsx("p",{style:{marginTop:24,textAlign:"center",fontSize:14,color:"#999",fontStyle:"italic"},children:"Wil je na de setup ook maandelijks ondersteuning? Dan bespreken we een service abonnement — maar dat is geen verplichting."})]})})}const iee={role:"assistant",content:`Hoi! 👋 Ik help je ontdekken welke Skills en Connectors het beste passen bij jullie organisatie.

Laten we starten: **welke software gebruiken jullie dagelijks?** Denk aan boekhoud-, CRM-, HR- of voorraadsystemen.`};function O6(){const[t,n]=I.useState(!1),[r,i]=I.useState([iee]),[s,a]=I.useState(""),[o,c]=I.useState(!1),d=I.useRef(null);I.useEffect(()=>{var m;(m=d.current)==null||m.scrollIntoView({behavior:"smooth"})},[r,o]);const h=async()=>{var j;if(!s.trim()||o)return;const m={role:"user",content:s.trim()},p=[...r,m];i(p),a(""),c(!0);const b=((j=(await ce.functions.invoke("coworkAdvisor",{messages:p})).data)==null?void 0:j.reply)||"Sorry, er ging iets mis. Probeer het opnieuw.";i([...p,{role:"assistant",content:b}]),c(!1)},f=m=>{m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),h())};return e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>n(!t),className:"fixed bottom-6 right-6 z-50 w-14 h-14 bg-[#FAB868] text-[#0D0D0F] rounded-full shadow-lg flex items-center justify-center hover:bg-[#E5A04D] transition-all","aria-label":"Open AI-adviseur",children:t?e.jsx(Ht,{className:"w-6 h-6"}):e.jsx($o,{className:"w-6 h-6"})}),e.jsx(Cr,{children:t&&e.jsxs(Z.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.95},transition:{duration:.2},className:"fixed bottom-24 right-6 z-50 w-[360px] max-w-[calc(100vw-1.5rem)] bg-white rounded-2xl shadow-2xl border border-gray-100 flex flex-col overflow-hidden",style:{height:"520px"},children:[e.jsxs("div",{className:"bg-[#0D0D0F] px-5 py-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0",children:e.jsx(At,{className:"w-4 h-4 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-white text-sm",children:"Cowork Adviseur"}),e.jsx("p",{className:"text-xs text-gray-400",children:"Vindt de beste Skills & Connectors voor jou"})]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-3 bg-[#faf8f5]",children:[r.map((m,p)=>e.jsx("div",{className:`flex ${m.role==="user"?"justify-end":"justify-start"}`,children:e.jsx("div",{className:`max-w-[85%] px-4 py-2.5 rounded-2xl text-sm leading-relaxed whitespace-pre-wrap ${m.role==="user"?"bg-[#FAB868] text-[#0D0D0F] rounded-br-sm font-medium":"bg-white text-gray-800 rounded-bl-sm shadow-sm border border-gray-100"}`,dangerouslySetInnerHTML:{__html:m.content.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br/>")}})},p)),o&&e.jsx("div",{className:"flex justify-start",children:e.jsx("div",{className:"bg-white border border-gray-100 shadow-sm px-4 py-3 rounded-2xl rounded-bl-sm flex gap-1.5",children:[0,1,2].map(m=>e.jsx("span",{className:"w-2 h-2 bg-gray-300 rounded-full animate-bounce",style:{animationDelay:`${m*.15}s`}},m))})}),e.jsx("div",{ref:d})]}),e.jsxs("div",{className:"p-3 border-t border-gray-100 bg-white flex items-end gap-2",children:[e.jsx("textarea",{value:s,onChange:m=>a(m.target.value),onKeyDown:f,placeholder:"Typ je antwoord...",rows:1,className:"flex-1 resize-none border border-gray-200 rounded-xl px-3 py-2.5 text-sm focus:outline-none focus:border-amber-400 bg-gray-50 max-h-24"}),e.jsx("button",{onClick:h,disabled:!s.trim()||o,className:"w-10 h-10 bg-[#FAB868] text-[#0D0D0F] rounded-xl flex items-center justify-center hover:bg-[#E5A04D] transition-colors disabled:opacity-40 flex-shrink-0",children:e.jsx(OA,{className:"w-4 h-4"})})]})]})})]})}function see(){return e.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/6e5f2b54f_claude-logo_brandlogosnet_yx32y.png",alt:"Claude by Anthropic",style:{height:32,width:"auto"}})}function JS({imageUrl:t,fallback:n,caption:r,darkMode:i=!1}){const[s,a]=Pt.useState(!1),o=t||n;return o?e.jsxs(e.Fragment,{children:[e.jsxs("div",{onClick:()=>a(!0),style:{borderRadius:14,overflow:"hidden",border:"1px solid "+(i?"rgba(255,255,255,0.1)":"#e8e8e8"),aspectRatio:"16/10",cursor:"zoom-in",position:"relative"},className:"group",children:[e.jsx("img",{src:o,alt:r,style:{width:"100%",height:"100%",objectFit:"cover",transition:"transform 0.3s ease"},className:"group-hover:scale-105"}),e.jsx("div",{style:{position:"absolute",inset:0,background:"rgba(0,0,0,0)",display:"flex",alignItems:"center",justifyContent:"center",transition:"background 0.2s"},className:"group-hover:bg-black/20",children:e.jsx("span",{style:{fontSize:28,opacity:0,transition:"opacity 0.2s"},className:"group-hover:opacity-100",children:"🔍"})})]}),s&&e.jsxs("div",{onClick:()=>a(!1),style:{position:"fixed",inset:0,zIndex:9999,background:"rgba(0,0,0,0.85)",display:"flex",alignItems:"center",justifyContent:"center",padding:24,cursor:"zoom-out"},children:[e.jsx("img",{src:o,alt:r,style:{maxWidth:"90vw",maxHeight:"90vh",borderRadius:12,objectFit:"contain",boxShadow:"0 24px 80px rgba(0,0,0,0.5)"},onClick:c=>c.stopPropagation()}),e.jsx("button",{onClick:()=>a(!1),style:{position:"absolute",top:20,right:24,color:"#fff",background:"none",border:"none",fontSize:32,cursor:"pointer",lineHeight:1},children:"×"})]})]}):e.jsxs("div",{style:{borderRadius:14,border:"2px dashed "+(i?"rgba(255,255,255,0.12)":"#d1d5db"),background:i?"rgba(255,255,255,0.04)":"#f9fafb",aspectRatio:"16/10",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:8},children:[e.jsx("span",{style:{fontSize:28,opacity:.3},children:"🖼️"}),e.jsx("span",{style:{fontSize:12,color:i?"rgba(255,255,255,0.3)":"#9ca3af",textAlign:"center",padding:"0 12px"},children:r})]})}function w0({text:t,highlight:n,btnText:r,to:i,onClick:s}){return e.jsx("div",{style:{backgroundColor:"#f0a500"},className:"py-7",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6 flex items-center justify-between gap-6 flex-wrap",children:[e.jsxs("div",{style:{fontSize:17,fontWeight:700,color:"#fff"},children:[t," ",e.jsx("span",{style:{fontWeight:400,opacity:.85},children:n})]}),s?e.jsx("button",{onClick:s,style:{backgroundColor:"#fff",color:"#1a1a1a",fontWeight:700,padding:"14px 28px",borderRadius:8,fontSize:15,border:"none",cursor:"pointer",fontFamily:"inherit",flexShrink:0},className:"hover:opacity-90 transition-opacity",children:r}):e.jsx(de,{to:i,style:{backgroundColor:"#fff",color:"#1a1a1a",fontWeight:700,padding:"14px 28px",borderRadius:8,fontSize:15,textDecoration:"none",flexShrink:0,display:"inline-block"},className:"hover:opacity-90 transition-opacity",children:r})]})})}function aee(){const[t,n]=I.useState(!1),[r,i]=I.useState({name:"",email:"",company:""}),[s,a]=I.useState(!1),[o,c]=I.useState({name:"",email:"",company:"",branche:"",bericht:""}),[d,h]=I.useState(!1),{data:f=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()}),m=N=>{var w;return(w=f.find(k=>k.setting_key===N))==null?void 0:w.value},p=m("cowork_video_url"),g=[{key:"cowork_img_1",caption:"Connectors — koppel Claude aan jouw apps",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/17b974f52_connectors.png"},{key:"cowork_img_2",caption:"Welke offertes in HubSpot hebben een factuur in Exact",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/9c8f98007_hs-exact.png"},{key:"cowork_img_3",caption:"Cowork in actie — openstaande facturen",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/0077fe820_openstaand-excel.png"}],b=[{key:"cowork_skill_img_1",caption:"Skills instellen in Cowork",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/30539b4a4_0-skills.png"},{key:"cowork_skill_img_2",caption:"Skill in actie — opdracht uitvoeren",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/7b294d866_1-skillslideopdracht.png"},{key:"cowork_skill_img_3",caption:"Resultaat — PowerPoint slide gegenereerd",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/c9d3d5316_2-skillresultaat.png"}],j={width:"100%",padding:"12px 14px",border:"1.5px solid rgba(255,255,255,0.12)",borderRadius:8,fontSize:14,fontFamily:"inherit",marginBottom:12,backgroundColor:"rgba(255,255,255,0.07)",color:"#fff",display:"block",outline:"none"},y=async N=>{N.preventDefault(),await ce.functions.invoke("sendCoworkGidsRequest",{name:r.name,email:r.email,company:r.company}),a(!0)},x=async N=>{N.preventDefault(),await ce.functions.invoke("sendContactForm",{name:o.name,email:o.email,company:o.company,message:`Branche: ${o.branche}

${o.bericht}`,subject:"Cowork Demo aanvraag"}),h(!0)};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[t&&p&&e.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4",onClick:()=>n(!1),children:e.jsxs("div",{className:"relative w-full max-w-4xl",style:{aspectRatio:"16/9"},onClick:N=>N.stopPropagation(),children:[e.jsxs("button",{onClick:()=>n(!1),className:"absolute -top-10 right-0 flex items-center gap-2 text-white text-sm",children:[e.jsx(Ht,{className:"w-5 h-5"})," Sluiten"]}),e.jsx("iframe",{src:p,className:"w-full h-full rounded-xl",allowFullScreen:!0,title:"Cowork video"})]})}),e.jsx("div",{style:{backgroundColor:"#faf8f5",borderBottom:"1px solid #ece8e2"},className:"py-[18px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6 flex items-center justify-between flex-wrap gap-4",children:[e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx(see,{}),e.jsx("div",{style:{width:1,height:28,backgroundColor:"#ddd"}}),e.jsx("span",{style:{fontSize:13,color:"#999",fontWeight:500},children:"geconfigureerd door 48-7 voor het Nederlandse MKB"})]}),e.jsxs("div",{style:{fontSize:13,color:"#888"},children:["Meer weten?"," ",e.jsx(de,{to:ae("ClaudeCoworkSkillsConnectors"),style:{color:"#f0a500",fontWeight:600},className:"hover:underline",children:"Bekijk Skills & Connectors →"})]})]})}),e.jsx("section",{style:{backgroundColor:"#1a1a1a",overflow:"hidden"},children:e.jsx("div",{className:"max-w-[1100px] mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-[1fr_480px]",style:{minHeight:600},children:[e.jsxs("div",{className:"py-20 lg:pr-16 flex flex-col justify-center",children:[e.jsxs("div",{className:"flex items-center gap-2.5 mb-6",children:[e.jsx("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:"#f0a500"}}),e.jsx("span",{style:{color:"#f0a500",fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em"},children:"Claude Cowork voor MKB — door 48-7"})]}),e.jsxs("h1",{className:"font-bebas",style:{fontSize:"clamp(52px, 7vw, 88px)",lineHeight:.95,letterSpacing:"0.02em",color:"#fff",marginBottom:28},children:["Laat AI",e.jsx("br",{}),"het werk doen.",e.jsx("br",{}),e.jsx("span",{style:{color:"#f0a500"},children:"In jouw eigen"}),e.jsx("br",{}),"software."]}),e.jsxs("p",{style:{fontSize:18,color:"rgba(255,255,255,0.65)",lineHeight:1.7,maxWidth:480,marginBottom:12},children:["Cowork werkt o.a. in je boekhoudpakket, CRM en e-mail — en voert daar taken voor je uit. Maak offertes. Beantwoord klantmails. Analyseer data. ",e.jsx("strong",{style:{color:"#fff"},children:"Automatisch."})]}),e.jsx("p",{style:{fontSize:13,color:"rgba(255,255,255,0.35)",marginBottom:36},children:"Cowork gebruikt Claude — de AI van Anthropic, vergelijkbaar met ChatGPT maar gebouwd voor zakelijk gebruik."}),e.jsx("div",{className:"flex gap-3.5 flex-wrap",children:e.jsx(de,{to:ae("ClaudeCoworkAdvies"),style:{backgroundColor:"#f0a500",color:"#fff",padding:"14px 24px",borderRadius:8,fontSize:15,fontWeight:700,textDecoration:"none",display:"inline-flex",alignItems:"center",gap:8},className:"hover:opacity-90 transition-opacity",children:"Plan een gratis demo"})})]}),e.jsxs("div",{style:{backgroundColor:"#111",position:"relative",overflow:"hidden"},children:[e.jsx("div",{style:{position:"absolute",top:-60,right:-60,width:240,height:240,borderRadius:"50%",background:"radial-gradient(circle, rgba(240,165,0,0.15) 0%, transparent 70%)",pointerEvents:"none"}}),e.jsxs("div",{style:{padding:"48px 40px",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:16},children:[e.jsx("p",{style:{fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.3)",marginBottom:8},children:"Claude Cowork in cijfers"}),[{nr:"1 wk",title:"Doorgaans live binnen één week",sub:"Van intake tot werkende Claude Cowork-omgeving"},{nr:"€17",title:"Per medewerker per maand",sub:"Anthropic Claude Teams licentie"},{nr:"50+",title:"Kant-en-klare koppelingen",sub:"Exact, AFAS, HubSpot, Microsoft 365 en meer"}].map((N,w)=>e.jsxs("div",{style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:12,display:"flex",alignItems:"center",gap:14,padding:"16px 18px"},children:[e.jsx("div",{className:"font-bebas",style:{fontSize:32,color:"#f0a500",lineHeight:1,minWidth:60},children:N.nr}),e.jsxs("div",{children:[e.jsx("strong",{style:{display:"block",fontSize:14,color:"#fff"},children:N.title}),e.jsx("span",{style:{fontSize:12,color:"rgba(255,255,255,0.45)"},children:N.sub})]})]},w))]})]})]})})}),e.jsx("div",{style:{backgroundColor:"#f0a500"},children:e.jsx("div",{className:"max-w-[1100px] mx-auto",children:e.jsx("div",{className:"flex flex-wrap",children:[{icon:e.jsx(Ft,{className:"w-5 h-5"}),text:"Binnen 1 week live"},{icon:e.jsx(Vn,{className:"w-5 h-5"}),text:"GDPR-compliant & veilig"},{icon:e.jsx(fi,{className:"w-5 h-5"}),text:"Geen leercurve voor je team"},{icon:e.jsx(Ft,{className:"w-5 h-5"}),text:"Vanaf €17 per medewerker/mnd"}].map((N,w)=>e.jsxs("div",{style:{flex:"1 0 50%",borderRight:w%2===0?"1px solid rgba(0,0,0,0.1)":"none",borderBottom:w<2?"1px solid rgba(0,0,0,0.1)":"none",padding:"22px 28px",display:"flex",alignItems:"center",gap:12},className:"lg:flex-1 lg:border-b-0",children:[e.jsx("span",{style:{color:"rgba(0,0,0,0.6)"},children:N.icon}),e.jsx("span",{style:{fontSize:14,fontWeight:700,color:"rgba(0,0,0,0.75)"},children:N.text})]},w))})})}),e.jsx("div",{style:{backgroundColor:"#f5f5f5",borderTop:"1px solid #e8e8e8",borderBottom:"1px solid #e8e8e8"},className:"py-10",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsx("p",{style:{fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#999",textAlign:"center",marginBottom:24},children:"Cowork koppelt met de software die jij al gebruikt"}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2.5",children:[[{name:"Exact Online",logo:"https://www.google.com/s2/favicons?domain=exact.com&sz=32"},{name:"Moneybird",logo:"https://www.google.com/s2/favicons?domain=moneybird.com&sz=32"},{name:"Visma",logo:"https://www.google.com/s2/favicons?domain=visma.com&sz=32"},{name:"AFAS",logo:"https://www.google.com/s2/favicons?domain=afas.nl&sz=32"},{name:"HubSpot",logo:"https://cdn.simpleicons.org/hubspot/FF7A59"},{name:"Office 365",logo:"https://cdn.simpleicons.org/microsoftoffice/D83B01"},{name:"Google Workspace",logo:"https://cdn.simpleicons.org/google/4285F4"},{name:"Slack",logo:"https://cdn.simpleicons.org/slack/4A154B"}].map(({name:N,logo:w})=>e.jsxs("div",{style:{background:"#fff",border:"1px solid #e8e8e8",borderRadius:10,padding:"10px 16px",display:"flex",alignItems:"center",gap:8,whiteSpace:"nowrap"},children:[e.jsx("img",{src:w,alt:N,style:{width:20,height:20,objectFit:"contain"},onError:k=>{k.target.style.display="none"}}),e.jsx("span",{style:{fontSize:13,fontWeight:700,color:"#444"},children:N})]},N)),e.jsx("div",{style:{background:"#1a1a1a",color:"#fff",borderRadius:10,padding:"10px 20px",fontSize:13,fontWeight:700,whiteSpace:"nowrap"},children:"+ 150 andere software"})]})]})}),e.jsx("section",{className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center mb-14",children:[e.jsxs("div",{children:[e.jsx("h2",{style:{fontSize:"clamp(36px, 5vw, 56px)",fontWeight:800,lineHeight:1.05,marginBottom:16,color:"#1a1a1a"},children:"Wat is Claude Cowork?"}),e.jsx("p",{style:{fontSize:"clamp(18px, 2.5vw, 24px)",fontWeight:600,color:"#444",lineHeight:1.35,marginBottom:16},children:"Een digitale collega die meedenkt, meewerkt en taken uitvoert."}),e.jsx("p",{style:{color:"#666",marginBottom:16,lineHeight:1.75},children:"Claude Cowork is het AI-platform van Anthropic voor teams. Geen chatbot die generieke antwoorden geeft — maar een AI-assistent die jouw systemen kent, jouw processen begrijpt en taken voor je uitvoert."}),e.jsx("p",{style:{color:"#666",marginBottom:0,lineHeight:1.75},children:"48-7 configureert het volledig op jouw bedrijf: gekoppeld aan je bestaande tools, ingesteld op jouw processen. Jouw medewerkers stellen vragen in gewone taal — de AI antwoordt met jóuw data en handelt."}),e.jsxs("div",{style:{background:"#fef3d0",borderLeft:"3px solid #f0a500",borderRadius:"0 8px 8px 0",padding:"14px 18px",fontSize:14,color:"#8a6000",lineHeight:1.65,marginTop:20,marginBottom:24},children:[e.jsx("strong",{style:{color:"#1a1a1a",fontWeight:700},children:"Wat de meeste mensen niet weten:"})," Met standaard AI-tools zoals ChatGPT kun je niet praten met jouw eigen systemen. Cowork lost dat op — zodat de AI wél toegang heeft tot jouw data, veilig en gecontroleerd."]}),e.jsx("div",{className:"flex gap-3 flex-wrap",children:e.jsx(de,{to:ae("ClaudeCoworkAdvies"),style:{background:"#1a1a1a",color:"#fff",padding:"14px 24px",borderRadius:8,fontSize:15,fontWeight:700,textDecoration:"none",display:"inline-flex",alignItems:"center"},className:"hover:opacity-90 transition-opacity",children:"Plan een gratis demo"})})]}),e.jsx("div",{className:"grid grid-cols-2 gap-4",children:[{icon:"💬",title:"Praat met je eigen systemen",text:"Stel vragen over je CRM, ERP of kennisdocumenten en krijg direct een antwoord op basis van jóuw data."},{icon:"⚡",title:"Voert ook opdrachten uit",text:"Niet alleen antwoorden geven — de AI kan acties uitvoeren: orders aanmaken, mails versturen, data bijwerken."},{icon:"👥",title:"Per team en rol instelbaar",text:"Elke afdeling ziet alleen wat relevant en toegestaan is. Finance ziet andere data dan sales."},{icon:"🔄",title:"Werkt over systemen heen",text:"Eén vraag combineert data uit meerdere bronnen — CRM én ERP én e-mail tegelijk."}].map((N,w)=>e.jsxs("div",{style:{backgroundColor:"#f5f5f5",borderRadius:12,padding:20,display:"flex",gap:14,alignItems:"flex-start"},children:[e.jsx("span",{style:{fontSize:22,flexShrink:0,marginTop:2},children:N.icon}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:14,fontWeight:700,color:"#1a1a1a",marginBottom:4},children:N.title}),e.jsx("p",{style:{fontSize:13,color:"#666",lineHeight:1.55},children:N.text})]})]},w))})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:g.map((N,w)=>e.jsx(JS,{imageUrl:m(N.key),fallback:N.fallback,caption:N.caption},w))})]})}),e.jsx(w0,{text:"Zien hoe Cowork werkt in jouw software?",highlight:"30 minuten, geen verkooppraatje.",btnText:"Plan een gratis demo →",to:ae("ClaudeCoworkAdvies")}),e.jsx("section",{style:{backgroundColor:"#1a1a1a"},className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center mb-14",children:[e.jsxs("div",{children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Skills"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,marginBottom:16,color:"#fff"},children:"Wat Cowork concreet doet voor jouw bedrijf."}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",marginBottom:16,lineHeight:1.75},children:"Een skill is een vooraf ingerichte werkinstructie voor Cowork. Vergelijk het met een ervaren medewerker die precies weet hoe iets bij jullie werkt — welke toon, welke stappen, welke systemen."}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",marginBottom:24,lineHeight:1.75},children:"Wij bouwen die skills op maat voor jouw processen. Jouw medewerkers hoeven alleen maar te vragen."}),e.jsx(de,{to:ae("ClaudeCoworkSkillsConnectors"),style:{backgroundColor:"#f0a500",color:"#fff",padding:"14px 24px",borderRadius:8,fontSize:15,fontWeight:700,textDecoration:"none",display:"inline-flex",alignItems:"center"},className:"hover:opacity-90 transition-opacity",children:"Bekijk alle skills & koppelingen →"})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3.5",children:[{icon:"📄",title:"Offerte skill",text:"Haalt klantdata op uit Exact en stelt een conceptofferte op in jullie huisstijl. Klaar voor review in 3 minuten."},{icon:"📬",title:"Follow-up skill",text:"Checkt dagelijks welke offertes of leads te lang stil liggen en stelt een gepersonaliseerd bericht op."},{icon:"📊",title:"Rapportage skill",text:"Haalt cijfers op uit meerdere systemen en genereert een overzicht klaar voor de directie."},{icon:"🗂️",title:"Onboarding skill",text:"Stelt een volledig onboardingplan op voor nieuwe medewerkers op basis van functie en team."}].map((N,w)=>e.jsxs("div",{style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:12,padding:18,display:"flex",gap:12,alignItems:"flex-start"},children:[e.jsx("span",{style:{fontSize:20,flexShrink:0,marginTop:2},children:N.icon}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:13,fontWeight:700,color:"#fff",marginBottom:3},children:N.title}),e.jsx("p",{style:{fontSize:12,color:"rgba(255,255,255,0.45)",lineHeight:1.5},children:N.text})]})]},w))})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:b.map((N,w)=>e.jsx(JS,{imageUrl:m(N.key),fallback:N.fallback,caption:N.caption,darkMode:!0},w))})]})}),e.jsx("section",{style:{backgroundColor:"#f5f5f5"},className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{style:{textAlign:"center",maxWidth:600,margin:"0 auto 40px"},children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Voorbeelden per rol"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:12},children:"Wat kun je vragen? Per afdeling."}),e.jsx("p",{style:{color:"#666",fontSize:16},children:"Dit zijn vragen die jouw medewerkers straks gewoon kunnen stellen — in hun eigen woorden, in Cowork."})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[{icon:"💼",name:"Salesmedewerker",sub:"CRM, offertes, klantcontact",questions:["Wat weet ik al over klant De Vries BV voordat ik bel?","Welke klanten heb ik al 3 maanden niet gesproken?","Maak een offerte op basis van ons laatste gesprek.","Welke offertes staan al meer dan 2 weken open?"]},{icon:"📦",name:"Logistiek medewerker",sub:"Orders, planning, leveringen",questions:["Welke orders worden morgen niet op tijd geleverd?","Pas de levertijd van order #4421 aan naar vrijdag.","Stuur een update naar de klant van order #4421.","Wat is de huidige voorraadstatus van artikel X?"]},{icon:"💰",name:"Finance / controller",sub:"Facturatie, omzet, cashflow",questions:["Wat is onze omzet dit kwartaal versus vorig jaar?","Welke facturen staan langer dan 60 dagen open?","Maak een cashflow-overzicht voor de directie.","Welke klanten betalen structureel te laat?"]},{icon:"👤",name:"HR-medewerker",sub:"Personeel, verlof, onboarding",questions:["Welke medewerkers hebben hun evaluatie nog niet gehad?","Stel een onboardingplan op voor de nieuwe medewerker.","Hoeveel verlofuren heeft team Noord nog over?","Wie heeft er volgende week vrij en wie valt er in?"]}].map((N,w)=>e.jsxs("div",{style:{background:"#fff",border:"1px solid #e8e8e8",borderRadius:14,padding:28},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14,marginBottom:20},children:[e.jsx("div",{style:{width:44,height:44,backgroundColor:"#fef3d0",borderRadius:10,display:"flex",alignItems:"center",justifyContent:"center",fontSize:20,flexShrink:0},children:N.icon}),e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:16,fontWeight:700,color:"#1a1a1a"},children:N.name}),e.jsx("div",{style:{fontSize:12,color:"#999"},children:N.sub})]})]}),e.jsx("div",{className:"flex flex-col gap-2",children:N.questions.map((k,A)=>e.jsxs("div",{style:{backgroundColor:"#f5f5f5",borderRadius:8,padding:"10px 14px 10px 28px",fontSize:13.5,color:"#444",lineHeight:1.5,fontStyle:"italic",position:"relative"},children:[e.jsx("span",{style:{position:"absolute",left:11,top:9,fontSize:16,color:"#f0a500",fontStyle:"normal",fontWeight:700,lineHeight:1},children:'"'}),k]},A))})]},w))})]})}),e.jsx(XZ,{}),e.jsx(w0,{text:"Klaar om dit te zien in jouw eigen CRM en boekhoudpakket?",highlight:"Gratis demo, 30 minuten.",btnText:"Plan een demo →",to:ae("ClaudeCoworkAdvies")}),e.jsx("section",{className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{style:{textAlign:"center",maxWidth:600,margin:"0 auto 56px"},children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Hoe werkt het?"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:12},children:"Van eerste gesprek tot werkende Cowork-omgeving."}),e.jsx("p",{style:{color:"#666",fontSize:16},children:"48-7 neemt het volledige traject op zich — van intake tot oplevering. Jouw team hoeft alleen maar te werken."})]}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-7",children:[{nr:"01",day:"Dag 1",title:"Intake & scan",body:"We inventariseren processen, tools en doelen. Je krijgt direct eerlijk advies over wat Cowork oplevert.",active:!0},{nr:"02",day:"Dag 2–3",title:"Koppelen",body:"We verbinden Cowork met Exact, je CRM, mailbox en andere tools via bewezen koppelingen.",active:!0},{nr:"03",day:"Dag 3–4",title:"Skills bouwen",body:"We bouwen de skills op maat: ingesteld op jouw branche, processen, tone of voice en workflows.",active:!0},{nr:"04",day:"Dag 5",title:"Live & onboarding",body:"Jouw team gaat aan de slag. We begeleiden de eerste weken zodat adoptie soepel verloopt.",active:!0},{nr:"↺",day:"Optioneel",title:"Service abonnement",body:"Maandelijkse check-ins, updates en nieuwe koppelingen via ons service abonnement — geen verplichting.",active:!1}].map((N,w)=>e.jsxs("div",{style:{textAlign:"center",position:"relative",zIndex:1},children:[e.jsx("div",{className:"font-bebas",style:{width:64,height:64,borderRadius:"50%",background:N.active?"#f0a500":"#fff",border:N.active?"2px solid #f0a500":"2px solid #e8e8e8",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 16px",fontSize:22,color:N.active?"#fff":"#999",boxShadow:N.active?"0 4px 16px rgba(240,165,0,0.3)":"none"},children:N.nr}),e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#f0a500",marginBottom:6},children:N.day}),e.jsx("h4",{style:{fontSize:15,fontWeight:700,color:"#1a1a1a",marginBottom:6},children:N.title}),e.jsx("p",{style:{fontSize:13,color:"#666",lineHeight:1.55},children:N.body})]},w))})]})}),e.jsx(eee,{}),e.jsx(w0,{text:"Dit herken je?",highlight:"Bekijk wat een setup kost en wat je ervoor terugkrijgt.",btnText:"Bekijk prijzen ↓",onClick:()=>{var N;return(N=document.getElementById("pricing"))==null?void 0:N.scrollIntoView({behavior:"smooth"})}}),e.jsx(ree,{}),e.jsx("section",{style:{backgroundColor:"#f5f5f5"},className:"py-[88px]",children:e.jsx("div",{className:"max-w-[1100px] mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-start",children:[e.jsxs("div",{children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:14},children:"Waarom 48-7?"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:32},children:"Eerste Claude Cowork-specialist in Nederland."}),e.jsx("div",{className:"flex flex-col gap-6",children:[{icon:e.jsx(Zc,{className:"w-5 h-5",style:{stroke:"#f0a500",fill:"none"}}),title:"Eerste in Nederland",text:"48-7 is het eerste bureau dat Claude Cowork configureert als digitale medewerker voor het Nederlandse MKB."},{icon:e.jsx(yn,{className:"w-5 h-5",style:{stroke:"#f0a500",fill:"none"}}),title:"Resultaat in dagen",text:"Geen IT-projecten van zes maanden. Doorgaans live binnen een week na de intake."},{icon:e.jsx(fi,{className:"w-5 h-5",style:{stroke:"#f0a500",fill:"none"}}),title:"Jouw team merkt niets",text:"Medewerkers werken gewoon in Cowork — hun vertrouwde omgeving. Geen nieuw systeem, geen training verplicht, geen weerstand op de werkvloer."}].map((N,w)=>e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{style:{width:52,height:52,borderRadius:"50%",backgroundColor:"#fef3d0",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:N.icon}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:16,fontWeight:700,marginBottom:4,color:"#1a1a1a"},children:N.title}),e.jsx("p",{style:{color:"#666",fontSize:15,lineHeight:1.6},children:N.text})]})]},w))})]}),e.jsxs("div",{style:{backgroundColor:"#1a1a1a",borderRadius:16,padding:32},children:[e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#f0a500",marginBottom:10},children:"Technologie"}),e.jsx("h3",{style:{color:"#fff",fontSize:18,marginBottom:12,lineHeight:1.4,fontWeight:700},children:"Gebouwd op Anthropic Claude — de meest betrouwbare enterprise AI ter wereld."}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",fontSize:14,lineHeight:1.7},children:"Claude is de AI van Anthropic, opgericht door voormalig OpenAI-onderzoekers met veiligheid als kernprincipe. GDPR-compliant. Jouw data wordt nooit gebruikt voor AI-training."}),e.jsx("div",{className:"grid grid-cols-2 gap-2.5 mt-5",children:[{val:"GDPR",label:"EU-dataverwerking"},{val:"0%",label:"Data in trainingsmodellen"},{val:"SOC2",label:"Gecertificeerde beveiliging"},{val:"F500",label:"Enterprise-bewezen"}].map((N,w)=>e.jsxs("div",{style:{background:"rgba(255,255,255,0.06)",borderRadius:10,padding:14},children:[e.jsx("strong",{className:"font-bebas",style:{display:"block",fontSize:26,color:"#f0a500",lineHeight:1},children:N.val}),e.jsx("span",{style:{fontSize:12,color:"rgba(255,255,255,0.4)",marginTop:3,display:"block"},children:N.label})]},w))})]})]})})}),e.jsx("section",{style:{backgroundColor:"#f5f5f5",borderTop:"1px solid #e8e8e8"},className:"py-[88px]",children:e.jsx("div",{className:"max-w-[1100px] mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[e.jsxs("div",{children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:14},children:"Gratis gids"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:14},children:"De Complete Gids voor Claude Cowork in het MKB."}),e.jsx("p",{style:{color:"#666",marginBottom:24,lineHeight:1.75},children:"15 pagina's praktische kennis: hoe je Claude Cowork inricht, welke koppelingen het meeste opleveren en hoe je draagvlak creëert bij je team."}),e.jsx("div",{className:"flex flex-col gap-2",children:[{nr:"01",text:"Wat is Claude Cowork en wat niet"},{nr:"02",text:"De 5 processen die je als eerste automatiseert"},{nr:"03",text:"Koppelingen die het meeste opleveren per branche"},{nr:"04",text:"Hoe je draagvlak creëert bij je team"},{nr:"05",text:"Kosten, ROI en terugverdientijd"}].map((N,w)=>e.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",fontSize:14,color:"#444"},children:[e.jsx("span",{className:"font-bebas",style:{fontSize:16,color:"#f0a500",minWidth:24},children:N.nr}),N.text]},w))})]}),e.jsx("div",{style:{background:"#fff",borderRadius:16,padding:32,border:"1px solid #e8e8e8"},children:s?e.jsxs("div",{style:{textAlign:"center",padding:"32px 0"},children:[e.jsx("div",{style:{fontSize:40,marginBottom:16},children:"✅"}),e.jsx("h3",{style:{fontSize:20,fontWeight:700,marginBottom:8,color:"#1a1a1a"},children:"Aanvraag ontvangen!"}),e.jsx("p",{style:{color:"#666",fontSize:14},children:"We sturen de gids zo snel mogelijk naar je e-mailadres."})]}):e.jsxs("form",{onSubmit:y,children:[e.jsx("h3",{style:{fontSize:20,fontWeight:700,marginBottom:6,color:"#1a1a1a"},children:"Download gratis Cowork gids"}),e.jsx("p",{style:{fontSize:14,color:"#666",marginBottom:22},children:"Ontvang de gids direct in je mailbox."}),e.jsx("input",{type:"text",name:"name",autoComplete:"name",placeholder:"Jouw naam",required:!0,value:r.name,onChange:N=>i({...r,name:N.target.value}),style:{width:"100%",padding:"12px 14px",border:"1.5px solid #e8e8e8",borderRadius:8,fontSize:15,fontFamily:"inherit",marginBottom:12,backgroundColor:"#f5f5f5",display:"block",outline:"none"}}),e.jsx("input",{type:"email",name:"email",autoComplete:"email",placeholder:"E-mailadres",required:!0,value:r.email,onChange:N=>i({...r,email:N.target.value}),style:{width:"100%",padding:"12px 14px",border:"1.5px solid #e8e8e8",borderRadius:8,fontSize:15,fontFamily:"inherit",marginBottom:12,backgroundColor:"#f5f5f5",display:"block",outline:"none"}}),e.jsx("input",{type:"text",name:"organization",autoComplete:"organization",placeholder:"Bedrijfsnaam",required:!0,value:r.company,onChange:N=>i({...r,company:N.target.value}),style:{width:"100%",padding:"12px 14px",border:"1.5px solid #e8e8e8",borderRadius:8,fontSize:15,fontFamily:"inherit",marginBottom:12,backgroundColor:"#f5f5f5",display:"block",outline:"none"}}),e.jsx("button",{type:"submit",style:{width:"100%",backgroundColor:"#f0a500",color:"#fff",padding:14,borderRadius:8,fontSize:15,fontWeight:700,border:"none",cursor:"pointer",fontFamily:"inherit"},children:"Stuur mij de gids →"}),e.jsx("p",{style:{fontSize:12,color:"#999",textAlign:"center",marginTop:10},children:"Geen spam. Geen verplichtingen. Gewoon kennis."})]})})]})})}),e.jsx("section",{style:{backgroundColor:"#1a1a1a"},className:"py-[88px]",children:e.jsx("div",{className:"max-w-[1100px] mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[e.jsxs("div",{children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:14},children:"Gratis kennismaking"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#fff",marginBottom:16},children:"Klaar om Cowork in actie te zien?"}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",marginBottom:28,lineHeight:1.75},children:"Plan een demo van 30 minuten. We laten je zien wat Cowork concreet doet voor jouw bedrijf — zonder verkooppraatje, met echte voorbeelden uit jouw branche."}),e.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[e.jsx(de,{to:ae("ClaudeCoworkAdvies"),style:{backgroundColor:"#f0a500",color:"#fff",padding:"14px 24px",borderRadius:8,fontSize:15,fontWeight:700,textDecoration:"none",display:"inline-flex",alignItems:"center"},className:"hover:opacity-90 transition-opacity",children:"Plan een demo"}),e.jsxs("span",{style:{color:"rgba(255,255,255,0.4)",fontSize:14},children:["Of bel: ",e.jsx("strong",{style:{color:"#fff",marginLeft:6},children:"+31 085-06 01 487"})]})]})]}),e.jsx("div",{style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:16,padding:32},children:d?e.jsxs("div",{style:{textAlign:"center",padding:"32px 0"},children:[e.jsx("div",{style:{fontSize:40,marginBottom:16},children:"✅"}),e.jsx("h3",{style:{fontSize:20,fontWeight:700,marginBottom:8,color:"#fff"},children:"Aanvraag ontvangen!"}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",fontSize:14},children:"We nemen zo snel mogelijk contact met je op."})]}):e.jsxs("form",{onSubmit:x,children:[e.jsx("h3",{style:{color:"#fff",fontSize:19,fontWeight:700,marginBottom:18},children:"Plan een gratis demo"}),e.jsx("input",{type:"text",name:"name",autoComplete:"name",placeholder:"Jouw naam",required:!0,value:o.name,onChange:N=>c({...o,name:N.target.value}),style:j}),e.jsx("input",{type:"email",name:"email",autoComplete:"email",placeholder:"E-mailadres",required:!0,value:o.email,onChange:N=>c({...o,email:N.target.value}),style:j}),e.jsx("input",{type:"text",name:"organization",autoComplete:"organization",placeholder:"Bedrijfsnaam",required:!0,value:o.company,onChange:N=>c({...o,company:N.target.value}),style:j}),e.jsxs("select",{value:o.branche,onChange:N=>c({...o,branche:N.target.value}),style:{...j,color:o.branche?"#fff":"rgba(255,255,255,0.35)"},children:[e.jsx("option",{value:"",disabled:!0,children:"Branche"}),["Zakelijke dienstverlening","Bouw & Installatie","Zorg & Welzijn","Groothandel & Transport","Financiële dienstverlening","Anders"].map(N=>e.jsx("option",{value:N,style:{backgroundColor:"#1a1a1a",color:"#fff"},children:N},N))]}),e.jsx("textarea",{placeholder:"Wat wil je automatiseren? (optioneel)",value:o.bericht,onChange:N=>c({...o,bericht:N.target.value}),style:{...j,minHeight:80,resize:"vertical"}}),e.jsx("button",{type:"submit",style:{width:"100%",backgroundColor:"#f0a500",color:"#fff",padding:14,borderRadius:8,fontSize:15,fontWeight:700,border:"none",cursor:"pointer",fontFamily:"inherit",marginTop:4},children:"Verstuur aanvraag →"})]})})]})})}),e.jsx("section",{className:"py-16",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsx("p",{style:{fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#999",textAlign:"center",marginBottom:24},children:"Meer van 48-7 rondom Claude Cowork"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{icon:"💻",title:"Claude Code Training",text:"Ontdek de geheimen van Claude Code in een training of 1:1 sessie voor jouw development team.",link:ae("ClaudeCoworkTraining"),linkText:"Bekijk training →"},{icon:"🔌",title:"Skills & Connectors",text:"Breid Cowork uit met kant-en-klare skills en software-koppelingen. Vanaf gratis.",link:ae("ClaudeCoworkSkillsConnectors"),linkText:"Naar de marketplace →"},{icon:"💡",title:"Claude Cowork Advies",text:"Weet je niet waar je moet beginnen? 48-7 brengt de kansen voor jouw team in kaart.",link:ae("ClaudeCoworkAdvies"),linkText:"Meer over advies →"}].map((N,w)=>e.jsxs("div",{style:{border:"1px solid #e8e8e8",borderRadius:12,padding:24,display:"flex",gap:16,alignItems:"flex-start",transition:"box-shadow 0.2s, transform 0.2s"},className:"hover:shadow-lg hover:-translate-y-0.5 transition-all",children:[e.jsx("div",{style:{width:40,height:40,borderRadius:"50%",backgroundColor:"#fef3d0",display:"flex",alignItems:"center",justifyContent:"center",fontSize:18,flexShrink:0},children:N.icon}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:16,fontWeight:700,marginBottom:4,color:"#1a1a1a"},children:N.title}),e.jsx("p",{style:{fontSize:13,color:"#666",lineHeight:1.55,marginBottom:10},children:N.text}),e.jsx(de,{to:N.link,style:{fontSize:13,fontWeight:700,color:"#f0a500"},className:"hover:underline",children:N.linkText})]})]},w))})]})}),e.jsx(O6,{})]})}const oee=[{title:"Workflow automatisering",desc:"Welke processen zijn geschikt voor Claude?"},{title:"Team onboarding",desc:"Hoe introduceer je Claude in je team?"},{title:"Tool integraties",desc:"Welke connectors passen bij jouw stack?"},{title:"Governance & beleid",desc:"Veilig en verantwoord AI gebruik."},{title:"ROI berekening",desc:"Wat levert Claude jouw organisatie op?"},{title:"Maatwerk traject",desc:"Een aanpak die past bij jouw situatie."}];function lee(){const[t,n]=I.useState({name:"",email:"",company:"",question:""}),[r,i]=I.useState(!1),[s,a]=I.useState(!1),o=async c=>{c.preventDefault(),a(!0),await ce.functions.invoke("sendContactForm",{name:t.name,email:t.email,company:t.company,subject:"Claude Cowork Advies",message:t.question}),a(!1),i(!0)};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"bg-purple-50 border-b border-purple-100 py-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsx(de,{to:ae("ClaudeCowork"),className:"inline-flex items-center gap-2 text-sm text-purple-600 font-medium mb-6 hover:underline",children:"← Claude Cowork"}),e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-purple-100 rounded-full text-purple-700 text-sm font-semibold mb-4",children:[e.jsx(Wi,{className:"w-4 h-4"}),"Advies"]}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-4",children:"Persoonlijk Claude Advies"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl",children:"Wil je weten hoe Claude Cowork het beste past binnen jouw organisatie? Onze experts denken graag met je mee."})]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Waar kunnen we bij helpen?"}),e.jsx("div",{className:"grid grid-cols-2 gap-4",children:oee.map((c,d)=>e.jsxs(Z.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:d*.05},className:"bg-gray-50 rounded-xl p-4 border border-gray-100",children:[e.jsx(gt,{className:"w-5 h-5 text-purple-500 mb-2"}),e.jsx("p",{className:"font-semibold text-gray-900 text-sm",children:c.title}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:c.desc})]},d))})]}),e.jsx("div",{children:r?e.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-2xl p-8 text-center",children:[e.jsx(gt,{className:"w-12 h-12 text-green-500 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:"Aanvraag ontvangen!"}),e.jsx("p",{className:"text-gray-600",children:"We nemen binnen 1 werkdag contact met je op."})]}):e.jsxs("form",{onSubmit:o,className:"bg-white rounded-2xl border border-gray-200 p-8 shadow-sm space-y-5",children:[e.jsxs("h2",{className:"text-xl font-bold text-gray-900 flex items-center gap-2",children:[e.jsx($o,{className:"w-5 h-5 text-purple-500"}),"Advies aanvragen"]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Naam *"}),e.jsx("input",{required:!0,value:t.name,onChange:c=>n({...t,name:c.target.value}),className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400",placeholder:"Jouw naam"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"E-mail *"}),e.jsx("input",{required:!0,type:"email",value:t.email,onChange:c=>n({...t,email:c.target.value}),className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400",placeholder:"jouw@email.nl"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Bedrijf"}),e.jsx("input",{value:t.company,onChange:c=>n({...t,company:c.target.value}),className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400",placeholder:"Bedrijfsnaam"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Jouw vraag *"}),e.jsx("textarea",{required:!0,value:t.question,onChange:c=>n({...t,question:c.target.value}),rows:4,className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400 resize-none",placeholder:"Vertel ons waar je mee bezig bent en waar je advies over wilt..."})]}),e.jsx("button",{type:"submit",disabled:s,className:"w-full py-3 bg-purple-600 text-white font-semibold rounded-xl hover:bg-purple-700 transition-colors disabled:opacity-60 flex items-center justify-center gap-2",children:s?"Versturen...":e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Verstuur aanvraag"}),e.jsx($e,{className:"w-4 h-4"})]})})]})})]})})})]})}const cee=[{type:"connector",name:"Google Workspace",capability:"Documenten & e-mail",description:"Verbind Claude met Google Docs, Gmail, Drive en Sheets. Genereer content, verwerk e-mails en analyseer data direct vanuit je Workspace.",price:"Inbegrepen",priceNote:"",badge:"popular",sector:"Algemeen",features:["Docs samenvatten & herschrijven","E-mails opstellen en beantwoorden","Spreadsheet data analyseren","Drive-bestanden doorzoeken"]},{type:"connector",name:"Slack",capability:"Teamsamenwerking",description:"Claude als teamassistent in Slack. Beantwoord vragen, vat threads samen en automatiseer notificaties in je kanalen.",price:"Inbegrepen",priceNote:"",badge:"popular",sector:"Communicatie",features:["Thread samenvattingen","Vragen beantwoorden in kanalen","Automatische notificaties","Meeting-aantekeningen verwerken"]},{type:"connector",name:"HubSpot CRM",capability:"Verkoop & marketing",description:"Laat Claude werken met je CRM-data. Genereer follow-up e-mails, analyseer deals en schrijf marketingcontent op basis van contactdata.",price:"Op aanvraag",priceNote:"",badge:"new",sector:"Sales & Marketing",features:["Follow-up e-mails genereren","Deal-analyses schrijven","Contactdata verrijken","Marketing copy op maat"]},{type:"connector",name:"Microsoft 365",capability:"Office & Teams",description:"Integreer Claude met Word, Excel, Outlook en Teams. Schrijf rapporten, analyseer data en stel e-mails op vanuit je Microsoft-omgeving.",price:"Op aanvraag",priceNote:"",badge:null,sector:"Algemeen",features:["Word-documenten genereren","Excel-data analyseren","Outlook e-mails opstellen","Teams-berichten samenvatten"]},{type:"connector",name:"Notion",capability:"Kennisbeheer",description:"Verbind je Notion workspace met Claude. Doorzoek pagina's, genereer content en houd kennisbanken actueel met AI-ondersteuning.",price:"Inbegrepen",priceNote:"",badge:null,sector:"Productiviteit",features:["Pagina's doorzoeken & samenvatten","Nieuwe pagina's genereren","Databases bijwerken","Meetingnotities verwerken"]},{type:"connector",name:"Zapier / Make",capability:"Workflow automatisering",description:"Verbind Claude met honderden apps via Zapier of Make. Automatiseer repetitieve taken zonder te programmeren.",price:"Op aanvraag",priceNote:"",badge:"popular",sector:"Automatisering",features:["500+ app-koppelingen","Triggers en acties instellen","Data transformeren met AI","Workflows testen & monitoren"]},{type:"skill",name:"Prompt Engineering",capability:"Communicatie met AI",description:"Leer hoe je Claude de juiste instructies geeft voor consistente, kwalitatieve output. Van basis tot geavanceerde technieken.",price:"Gratis",priceNote:"",badge:"free",sector:"Basis",features:["Structuur van een goede prompt","Rol, context & format","Chain-of-thought technieken","Itereren en verbeteren"]},{type:"skill",name:"Teksten & Content",capability:"Schrijven & communiceren",description:"Gebruik Claude als schrijfassistent voor blogs, e-mails, rapporten en sociale media. Inclusief tone-of-voice instructies.",price:"Gratis",priceNote:"",badge:"free",sector:"Marketing & Communicatie",features:["Blogartikelen schrijven","E-mails en brieven opstellen","Social media content","Rapporten & samenvattingen"]},{type:"skill",name:"Data Analyse",capability:"Inzichten uit data",description:"Laat Claude data interpreteren, patronen ontdekken en rapportages schrijven op basis van CSV's, tabellen of ruwe cijfers.",price:"Gratis",priceNote:"",badge:"popular",sector:"Analyse",features:["CSV en tabel analyse","Trends en patronen signaleren","Rapportages genereren","Aanbevelingen formuleren"]},{type:"skill",name:"Klantenservice Scripts",capability:"Support & klantcontact",description:"Bouw een bibliotheek van antwoorden en scripts op voor je klantenservice team, afgestemd op jouw tone-of-voice.",price:"Op aanvraag",priceNote:"",badge:"new",sector:"Customer Service",features:["FAQ-bibliotheek opbouwen","Escalatiescripts","Tone-of-voice kalibreren","Antwoorden itereren"]},{type:"skill",name:"Vergaderingen & Notulen",capability:"Productiviteit",description:"Verwerk vergadernotities en transcripties automatisch naar gestructureerde notulen, actiepunten en samenvattingen.",price:"Gratis",priceNote:"",badge:"free",sector:"Productiviteit",features:["Transcriptie verwerken","Actiepunten extraheren","Samenvattingen genereren","Agendapunten voorbereiden"]},{type:"skill",name:"Juridisch & Compliance",capability:"Documenten & beleid",description:"Laat Claude helpen bij het doornemen, samenvatten en opstellen van contracten, beleidsdocumenten en complianceteksten.",price:"Op aanvraag",priceNote:"",badge:null,sector:"Juridisch",features:["Contracten samenvatten","Clausules uitleggen","Beleidsdocumenten opstellen","Risico's signaleren"]}],ZS={free:{label:"Gratis",className:"bg-green-100 text-green-700"},paid:{label:"Betaald",className:"bg-amber-100 text-amber-700"},popular:{label:"Populair",className:"bg-orange-100 text-orange-700"},new:{label:"Nieuw",className:"bg-blue-100 text-blue-700"}};function uee(){const[t,n]=I.useState(""),[r,i]=I.useState("all"),[s,a]=I.useState("all"),[o,c]=I.useState(null),{data:d=[]}=Fe({queryKey:["cowork-skills"],queryFn:()=>ce.entities.CoworkSkill.filter({active:!0})}),{data:h=[]}=Fe({queryKey:["cowork-connectors"],queryFn:()=>ce.entities.CoworkConnector.filter({active:!0})}),f=[...h.map(b=>({...b,type:"connector"})),...d.map(b=>({...b,type:"skill"}))].length>0?[...h.map(b=>({...b,type:"connector"})),...d.map(b=>({...b,type:"skill"}))]:cee,m=["all",...Array.from(new Set(f.map(b=>b.sector)))],p=f.filter(b=>{const j=r==="all"||b.type===r,y=s==="all"||b.sector===s,x=!t||b.name.toLowerCase().includes(t.toLowerCase())||b.description.toLowerCase().includes(t.toLowerCase());return j&&y&&x}),g=[{icon:e.jsx(_n,{className:"w-5 h-5 text-amber-500"}),title:"Wat is Claude Cowork?",desc:"Geen chatbot, maar een digitale medewerker die zelfstandig werkt in jouw software.",link:ae("ClaudeCowork"),linkLabel:"Lees meer →"},{icon:e.jsx(wu,{className:"w-5 h-5 text-amber-500"}),title:"Hoe werken Skills & Connectors?",desc:"Skills geven Claude branchekennis. Connectors koppelen Claude aan jouw software.",link:ae("ClaudeCowork"),linkLabel:"Bekijk uitleg →"},{icon:e.jsx(cD,{className:"w-5 h-5 text-amber-500"}),title:"Hoe 48-7 helpt met Cowork",desc:"Van intake tot live in één week. 48-7 configureert, koppelt en beheert Cowork voor jouw bedrijf.",link:ae("ClaudeCoworkAdvies"),linkLabel:"Hoe wij werken →"}];return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"bg-[#f5f0e8] py-14",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsx("div",{className:"flex items-center gap-2 mb-8",children:e.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/a37e4e72c_66af996a9e55f1ee29f117ab1.png",alt:"Claude",className:"h-8"})}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-1 leading-tight",children:"Skills & Connectors"}),e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-[#D4731C] mb-6 leading-tight",children:"voor Claude Cowork."}),e.jsx("p",{className:"text-lg text-gray-600 max-w-md mb-10",children:"Breid jouw Cowork-configuratie uit met kant-en-klare skills, software-koppelingen en branche-bundles. Gratis te starten, op maat te schalen."}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:g.map((b,j)=>e.jsxs("div",{className:"bg-white rounded-2xl p-5 shadow-sm border border-gray-100",children:[e.jsx("div",{className:"w-10 h-10 bg-amber-50 rounded-full flex items-center justify-center mb-3",children:b.icon}),e.jsx("h3",{className:"font-bold text-gray-900 text-sm mb-1",children:b.title}),e.jsx("p",{className:"text-xs text-gray-500 leading-relaxed mb-3",children:b.desc}),e.jsx(de,{to:b.link,className:"text-xs font-semibold text-[#D4731C] hover:underline",children:b.linkLabel})]},j))})]})})}),e.jsx("section",{className:"py-12",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col lg:flex-row gap-10",children:[e.jsx("aside",{className:"lg:w-56 flex-shrink-0",children:e.jsxs("div",{className:"sticky top-24 space-y-6",children:[e.jsxs("div",{className:"relative",children:[e.jsx(mi,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),e.jsx("input",{type:"text",value:t,onChange:b=>n(b.target.value),placeholder:"Zoeken...",className:"w-full pl-9 pr-4 py-2.5 border border-gray-200 rounded-lg text-sm bg-gray-50 focus:outline-none focus:border-amber-400"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-gray-400 mb-2",children:"Type"}),[{key:"all",label:"Alles"},{key:"connector",label:"Connectors"},{key:"skill",label:"Skills"}].map(b=>e.jsxs("button",{onClick:()=>i(b.key),className:`block w-full text-left px-3 py-2 rounded-lg text-sm transition-colors ${r===b.key?"bg-amber-100 text-gray-900 font-semibold":"text-gray-600 hover:bg-gray-100"}`,children:[b.label,e.jsx("span",{className:"float-right text-xs text-gray-400",children:b.key==="all"?f.length:f.filter(j=>j.type===b.key).length})]},b.key))]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-gray-400 mb-2",children:"Sector"}),m.map(b=>e.jsx("button",{onClick:()=>a(b),className:`block w-full text-left px-3 py-2 rounded-lg text-sm transition-colors ${s===b?"bg-amber-100 text-gray-900 font-semibold":"text-gray-600 hover:bg-gray-100"}`,children:b==="all"?"Alle sectoren":b},b))]})]})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"flex items-center justify-between mb-6",children:e.jsxs("p",{className:"text-sm text-gray-500",children:[e.jsx("strong",{className:"text-gray-900",children:p.length})," items gevonden"]})}),e.jsx("div",{className:"grid sm:grid-cols-2 xl:grid-cols-3 gap-5",children:p.map((b,j)=>{var y,x;return e.jsxs(Z.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:j*.03},onClick:()=>c(b),className:`bg-white border rounded-xl p-5 flex flex-col cursor-pointer hover:shadow-md transition-all ${b.type==="connector"?"border-t-4 border-t-amber-400 border-gray-200":"border-t-4 border-t-gray-800 border-gray-200"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsx("div",{className:`w-11 h-11 rounded-xl flex items-center justify-center text-xs font-bold ${b.type==="connector"?"bg-amber-50 text-amber-600":"bg-gray-100 text-gray-600"}`,children:b.name.slice(0,2).toUpperCase()}),e.jsx("div",{className:"flex flex-col items-end gap-1",children:b.badge&&e.jsx("span",{className:`text-[10px] font-bold uppercase px-2 py-0.5 rounded-full ${(y=ZS[b.badge])==null?void 0:y.className}`,children:(x=ZS[b.badge])==null?void 0:x.label})})]}),e.jsx("p",{className:"text-xs font-semibold text-amber-500 mb-1",children:b.capability}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:b.name}),e.jsx("p",{className:"text-xs text-gray-500 leading-relaxed flex-1 mb-4",children:b.description}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-gray-100",children:[e.jsx("span",{className:"font-bold text-sm text-gray-900",children:b.price}),e.jsx("span",{className:`text-[10px] font-bold uppercase tracking-wide ${b.type==="connector"?"text-amber-500":"text-gray-500"}`,children:b.type==="connector"?"Connector":"Skill"})]})]},j)})})]})]})})}),e.jsx(O6,{}),o&&e.jsx("div",{className:"fixed inset-0 bg-black/50 z-50 flex items-start justify-center p-4 sm:p-8 overflow-y-auto",onClick:()=>c(null),children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},onClick:b=>b.stopPropagation(),className:"bg-white rounded-2xl max-w-xl w-full my-auto overflow-hidden shadow-2xl",children:[e.jsxs("div",{className:"bg-gray-900 p-6 flex items-start gap-4",children:[e.jsx("div",{className:"w-14 h-14 bg-gray-700 rounded-xl flex items-center justify-center text-sm font-bold text-gray-300 flex-shrink-0",children:o.name.slice(0,2).toUpperCase()}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-xs font-bold text-amber-400 uppercase tracking-wider mb-1",children:o.type==="connector"?"Connector":"Skill"}),e.jsx("h2",{className:"text-xl font-bold text-white",children:o.name}),e.jsx("p",{className:"text-sm text-gray-400",children:o.capability})]}),e.jsx("button",{onClick:()=>c(null),className:"w-8 h-8 bg-white/10 rounded-full flex items-center justify-center text-white hover:bg-white/20 transition-colors flex-shrink-0",children:e.jsx(Ht,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"p-6 space-y-6",children:[e.jsx("p",{className:"text-gray-700 leading-relaxed",children:o.description}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-gray-400 mb-3",children:"Wat je ermee kunt"}),e.jsx("ul",{className:"space-y-2",children:o.features.map((b,j)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx("span",{className:"w-4 h-4 bg-amber-100 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx("span",{className:"w-1.5 h-1.5 bg-amber-500 rounded-full block"})}),b]},j))})]}),e.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-gray-100",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-gray-400",children:"Prijs"}),e.jsx("p",{className:"font-bold text-gray-900",children:o.price})]}),e.jsx(de,{to:ae("Contact")+`?training=${encodeURIComponent(o.name)}`,className:"px-5 py-2.5 bg-amber-400 text-gray-900 font-semibold rounded-xl hover:bg-amber-300 transition-colors text-sm",onClick:()=>c(null),children:"Aanvragen"})]})]})]})})]})}const dee=[{title:"Claude Basics voor Teams",duration:"½ dag",audience:"Alle medewerkers",level:"Basis",description:"Leer de fundamenten van werken met Claude: van effectief prompting tot dagelijkse toepassingen.",topics:["Wat is Claude en hoe werkt het?","Prompting technieken","Praktijkoefeningen","Do's & don'ts"]},{title:"Claude Cowork in de Praktijk",duration:"1 dag",audience:"Teams & managers",level:"Gevorderd",description:"Diepgaande training over hoe je Claude integreert in bestaande werkprocessen en workflows automatiseert.",topics:["Workflow automatisering","Koppelingen met tools","Teamprocessen optimaliseren","Cases & templates"]},{title:"Claude voor Leiders",duration:"2 uur",audience:"Management",level:"Leiderschap",description:"Strategisch inzicht in hoe Claude Cowork bijdraagt aan productiviteit en innovatie binnen jouw organisatie.",topics:["AI-strategie bepalen","ROI en KPI's","Change management","Governance & veiligheid"]}];function hee(){return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"bg-blue-50 border-b border-blue-100 py-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsx(de,{to:ae("ClaudeCowork"),className:"inline-flex items-center gap-2 text-sm text-blue-600 font-medium mb-6 hover:underline",children:"← Claude Cowork"}),e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-semibold mb-4",children:[e.jsx(qa,{className:"w-4 h-4"}),"Training"]}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-4",children:"Claude Cowork Training"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl",children:"Praktische trainingen die jouw team klaarstomen om effectief samen te werken met Claude."})]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:dee.map((t,n)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},className:"bg-white rounded-2xl border border-gray-200 p-6 flex flex-col shadow-sm hover:shadow-md transition-shadow",children:[e.jsx("span",{className:"inline-block px-3 py-1 bg-blue-100 text-blue-700 text-xs font-bold rounded-full mb-4 self-start",children:t.level}),e.jsx("h2",{className:"text-lg font-bold text-gray-900 mb-2",children:t.title}),e.jsx("p",{className:"text-sm text-gray-600 mb-4 flex-1",children:t.description}),e.jsxs("div",{className:"flex gap-4 text-xs text-gray-500 mb-4",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(yn,{className:"w-3 h-3"}),t.duration]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(_n,{className:"w-3 h-3"}),t.audience]})]}),e.jsx("ul",{className:"space-y-1 mb-5",children:t.topics.map((r,i)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-gray-600",children:[e.jsx(gt,{className:"w-3.5 h-3.5 text-blue-500 mt-0.5 flex-shrink-0"}),r]},i))}),e.jsx(de,{to:ae("Contact")+`?training=${encodeURIComponent(t.title)}`,className:"w-full text-center px-4 py-2.5 bg-gray-900 text-white text-sm font-semibold rounded-xl hover:bg-gray-700 transition-colors",children:"Aanvragen"})]},n))})})})]})}function fee(){var A,S,E,C;const[t,n]=I.useState({name:"",email:"",phone:"",company:"",subject:"",message:""}),[r,i]=I.useState(!1),[s,a]=I.useState(!1),[o,c]=I.useState({}),[d,h]=I.useState(null),{data:f=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()}),m=(A=f.find(B=>B.setting_key==="linkedin_url"))==null?void 0:A.value,p=(S=f.find(B=>B.setting_key==="twitter_url"))==null?void 0:S.value,g=(E=f.find(B=>B.setting_key==="instagram_url"))==null?void 0:E.value,b=(C=f.find(B=>B.setting_key==="youtube_url"))==null?void 0:C.value,j=new URLSearchParams(window.location.search),y=j.get("training"),x=j.get("ref"),N=j.get("level");Pt.useEffect(()=>{y?n(B=>({...B,subject:"training",message:`Ik ben geïnteresseerd in de training: ${y}`})):x==="quiz"&&N&&n(B=>({...B,subject:"consultancy",message:`Ik heb de AI Quiz gedaan en zit in het "${N}" niveau. Ik wil graag meer weten over de mogelijkheden voor mijn bedrijf.`}))},[y,x,N]);const w=()=>{const B={};(!t.name||t.name.trim().length<2)&&(B.name="Naam moet minimaal 2 karakters bevatten");const D=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if((!t.email||!D.test(t.email))&&(B.email="Voer een geldig e-mailadres in"),t.phone){const F=/^(\+31|0031|0)[1-9][0-9]{8}$/,R=t.phone.replace(/[\s\-\(\)]/g,"");F.test(R)||(B.phone="Voer een geldig Nederlands telefoonnummer in (bijv. 06-12345678)")}return t.subject||(B.subject="Selecteer een onderwerp"),(!t.message||t.message.trim().length<10)&&(B.message="Bericht moet minimaal 10 karakters bevatten"),t.message&&t.message.length>2e3&&(B.message="Bericht mag maximaal 2000 karakters bevatten"),c(B),Object.keys(B).length===0},k=async B=>{if(B.preventDefault(),!!w()){i(!0);try{const{data:D}=await ce.functions.invoke("sendContactForm",t);a(!0)}catch(D){console.error("Error submitting form:",D),h("Er ging iets mis bij het verzenden. Probeer het later opnieuw.")}finally{i(!1)}}};return s?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsx("div",{className:"max-w-xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(gt,{className:"w-10 h-10 text-green-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Bericht verzonden!"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Bedankt voor je bericht. We nemen binnen 24 uur contact met je op."}),e.jsxs(de,{to:ae("Home"),className:"inline-flex items-center gap-2 px-6 py-3 bg-gray-900 text-white font-semibold rounded-xl hover:bg-gray-800 transition-colors",children:["Terug naar home",e.jsx($e,{className:"w-5 h-5"})]})]})})}):e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto mb-16",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Neem contact op"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF]",children:"Benieuwd hoe AI jouw bedrijf kan helpen?"})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6 max-w-4xl mx-auto mb-16",children:[e.jsxs(Z.a,{href:"tel:+31201234567",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"flex items-center gap-4 p-6 bg-[#F4F4F4] rounded-2xl border border-gray-100 hover:shadow-lg hover:border-[#FAB868] transition-all group",children:[e.jsx("div",{className:"w-14 h-14 bg-[#FAB868] rounded-2xl flex items-center justify-center group-hover:bg-[#E5A04D] transition-colors",children:e.jsx(Zy,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-[#0D0D0F]",children:"Bel ons"}),e.jsx("p",{className:"text-[#9CA3AF]",children:"+31 085-06 01 487"})]})]}),e.jsxs(Z.a,{href:"mailto:info@48-7.nl",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"flex items-center gap-4 p-6 bg-[#F4F4F4] rounded-2xl border border-gray-100 hover:shadow-lg hover:border-[#FAB868] transition-all group",children:[e.jsx("div",{className:"w-14 h-14 bg-[#FAB868] rounded-2xl flex items-center justify-center group-hover:bg-[#E5A04D] transition-colors",children:e.jsx(Hr,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-[#0D0D0F]",children:"Email ons"}),e.jsx("p",{className:"text-[#9CA3AF]",children:"hallo@48-7.nl"})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"flex items-center gap-4 p-6 bg-[#F4F4F4] rounded-2xl border border-gray-100",children:[e.jsx("div",{className:"w-14 h-14 bg-[#FAB868] rounded-2xl flex items-center justify-center",children:e.jsx(yn,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-[#0D0D0F]",children:"Openingstijden"}),e.jsx("p",{className:"text-[#9CA3AF]",children:"Ma-Vr 9:00 - 18:00"})]})]})]})]})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[e.jsx(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:e.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100 shadow-sm",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Stuur een bericht"}),d&&e.jsx("div",{className:"mb-4 p-3 bg-red-50 border border-red-200 rounded-lg",children:e.jsx("p",{className:"text-sm text-red-600",children:d})}),e.jsxs("form",{onSubmit:k,className:"space-y-5",children:[e.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[#0D0D0F] mb-1",children:"Naam *"}),e.jsx(me,{required:!0,value:t.name,onChange:B=>{n({...t,name:B.target.value}),o.name&&c({...o,name:null})},placeholder:"Je volledige naam",className:o.name?"border-red-500":""}),o.name&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.name})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email *"}),e.jsx(me,{required:!0,type:"email",value:t.email,onChange:B=>{n({...t,email:B.target.value}),o.email&&c({...o,email:null})},placeholder:"je@bedrijf.nl",className:o.email?"border-red-500":""}),o.email&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.email})]})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Telefoon"}),e.jsx(me,{type:"tel",value:t.phone,onChange:B=>{n({...t,phone:B.target.value}),o.phone&&c({...o,phone:null})},placeholder:"+31 6 12345678",className:o.phone?"border-red-500":""}),o.phone&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.phone})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Bedrijf"}),e.jsx(me,{value:t.company,onChange:B=>n({...t,company:B.target.value}),placeholder:"Je bedrijfsnaam"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Onderwerp *"}),e.jsxs(Ji,{value:t.subject,onValueChange:B=>{n({...t,subject:B}),o.subject&&c({...o,subject:null})},children:[e.jsx(ji,{className:o.subject?"border-red-500":"",children:e.jsx(Zi,{placeholder:"Selecteer een onderwerp"})}),e.jsxs(wi,{children:[e.jsx(St,{value:"consultancy",children:"AI Consultancy"}),e.jsx(St,{value:"development",children:"AI Development"}),e.jsx(St,{value:"training",children:"AI Training"}),e.jsx(St,{value:"support",children:"Development Support"}),e.jsx(St,{value:"other",children:"Anders"})]})]}),o.subject&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.subject})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Bericht * ",e.jsxs("span",{className:"text-gray-400 text-xs",children:["(",t.message.length,"/2000)"]})]}),e.jsx(pt,{required:!0,value:t.message,onChange:B=>{n({...t,message:B.target.value}),o.message&&c({...o,message:null})},placeholder:"Vertel ons over je vraag of project...",className:`h-32 ${o.message?"border-red-500":""}`,maxLength:2e3}),o.message&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.message})]}),e.jsx(se,{type:"submit",disabled:r,className:"w-full py-5 bg-[#0D0D0F] hover:bg-[#1a1a1c] text-white font-semibold rounded-full",children:r?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Verzenden..."]}):e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(OA,{className:"w-5 h-5"}),"Verstuur bericht"]})})]})]})}),e.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"space-y-8",children:[e.jsx(Wf,{variant:"compact"}),e.jsxs("div",{className:"bg-[#FAB868] rounded-3xl p-8",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-[#0D0D0F] rounded-full flex items-center justify-center",children:e.jsx(At,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F]",children:"Of doe de AI Quiz"}),e.jsx("p",{className:"text-[#0D0D0F]/70",children:"Ontdek je AI potentieel in 2 minuten"})]})]}),e.jsxs(de,{to:ae("AIQuiz"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all",children:["Start de AI Quiz",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100",children:[e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-6",children:"Bezoek ons"}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 bg-[#F4F4F4] rounded-full flex items-center justify-center flex-shrink-0",children:e.jsx(Nu,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-[#0D0D0F]",children:"48-7 B.V."}),e.jsx("p",{className:"text-[#9CA3AF]",children:"Euvelgunnerweg 25a"}),e.jsx("p",{className:"text-[#9CA3AF]",children:"9723 CV Groningen"})]})]})}),e.jsx("div",{className:"mt-6 rounded-2xl overflow-hidden h-48 bg-gray-100",children:e.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2429.2344!2d6.556!3d53.212!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47b59dd4b1c1c1c1%3A0x1234567890!2sEuvelgunnerweg%2025a%2C%209723%20CV%20Groningen!5e0!3m2!1snl!2snl!4v1705858800000",width:"100%",height:"100%",style:{border:0},allowFullScreen:"",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"48-7 locatie Groningen"})})]}),(m||p||g||b)&&e.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100",children:[e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-4",children:"Volg ons"}),e.jsx("p",{className:"text-[#9CA3AF] mb-6",children:"Blijf op de hoogte"}),e.jsxs("div",{className:"flex items-center gap-4",children:[m&&e.jsx("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-[#F4F4F4] rounded-full flex items-center justify-center hover:bg-[#FAB868] transition-colors text-[#0D0D0F]",children:e.jsx(Hs,{className:"w-6 h-6"})}),p&&e.jsx("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-[#F4F4F4] rounded-full flex items-center justify-center hover:bg-[#FAB868] transition-colors text-[#0D0D0F]",children:e.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),g&&e.jsx("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-[#F4F4F4] rounded-full flex items-center justify-center hover:bg-[#FAB868] transition-colors text-[#0D0D0F]",children:e.jsx(Xc,{className:"w-6 h-6"})}),b&&e.jsx("a",{href:b,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-[#F4F4F4] rounded-full flex items-center justify-center hover:bg-[#FAB868] transition-colors text-[#0D0D0F]",children:e.jsx(eu,{className:"w-6 h-6"})})]})]})]})]})})})]})}const mee=["Home","Contact","Diensten","Training","Cases","Blog","Vacatures","OverOns"];function pee(){const[t,n]=I.useState(null),[r,i]=I.useState({page_name:"",section_key:"",content:"",content_type:"html",language:"nl"}),s=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["pageContents"],queryFn:()=>ce.entities.PageContent.list()}),c=Le({mutationFn:b=>ce.entities.PageContent.create(b),onSuccess:()=>{s.invalidateQueries({queryKey:["pageContents"]}),f()}}),d=Le({mutationFn:({id:b,data:j})=>ce.entities.PageContent.update(b,j),onSuccess:()=>{s.invalidateQueries({queryKey:["pageContents"]}),f()}}),h=Le({mutationFn:b=>ce.entities.PageContent.delete(b),onSuccess:()=>{s.invalidateQueries({queryKey:["pageContents"]})}}),f=()=>{n(null),i({page_name:"",section_key:"",content:"",content_type:"html",language:"nl"})},m=b=>{n(b),i(b)},p=b=>{b.preventDefault(),t?d.mutate({id:t.id,data:r}):c.mutate(r)},g=a.reduce((b,j)=>(b[j.page_name]||(b[j.page_name]=[]),b[j.page_name].push(j),b),{});return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(se,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t!=null&&t.id?"Content Bewerken":"Nieuwe Content"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Pagina *"}),e.jsxs(Ji,{value:r.page_name,onValueChange:b=>i({...r,page_name:b}),children:[e.jsx(ji,{children:e.jsx(Zi,{placeholder:"Selecteer een pagina"})}),e.jsx(wi,{children:mee.map(b=>e.jsx(St,{value:b,children:b},b))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Key *"}),e.jsx(me,{required:!0,value:r.section_key,onChange:b=>i({...r,section_key:b.target.value}),placeholder:"hero_title, about_description, etc."})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content Type"}),e.jsxs(Ji,{value:r.content_type,onValueChange:b=>i({...r,content_type:b}),children:[e.jsx(ji,{children:e.jsx(Zi,{})}),e.jsxs(wi,{children:[e.jsx(St,{value:"text",children:"Plain Text"}),e.jsx(St,{value:"html",children:"HTML/Rich Text"}),e.jsx(St,{value:"markdown",children:"Markdown"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content *"}),r.content_type==="html"?e.jsx(es,{value:r.content,onChange:b=>i({...r,content:b}),placeholder:"Schrijf je content..."}):e.jsx("textarea",{required:!0,value:r.content,onChange:b=>i({...r,content:b.target.value}),placeholder:"Schrijf je content...",className:"w-full min-h-[200px] px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(se,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t!=null&&t.id?"Bijwerken":"Aanmaken"]}),e.jsx(se,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:ae("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Content Beheer"}),e.jsx("p",{className:"text-gray-600 mt-2",children:"Beheer statische content op je pagina's"})]}),e.jsxs(se,{onClick:()=>n({}),children:[e.jsx(Ot,{className:"w-5 h-5 mr-2"}),"Nieuwe Content"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):Object.keys(g).length===0?e.jsxs("div",{className:"bg-white rounded-xl p-12 text-center border border-gray-200",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Nog geen content toegevoegd"}),e.jsxs(se,{onClick:()=>n({}),children:[e.jsx(Ot,{className:"w-5 h-5 mr-2"}),"Voeg eerste content toe"]})]}):e.jsx("div",{className:"space-y-8",children:Object.entries(g).map(([b,j])=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:b}),e.jsx("div",{className:"space-y-3",children:j.map(y=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-semibold text-gray-900",children:y.section_key}),e.jsxs("p",{className:"text-sm text-gray-600 line-clamp-1",children:[y.content.replace(/<[^>]*>/g,"").substring(0,100),"..."]}),e.jsx("span",{className:"inline-block mt-1 px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded",children:y.content_type})]}),e.jsxs("div",{className:"flex gap-2 ml-4",children:[e.jsxs(se,{size:"sm",variant:"outline",onClick:()=>m(y),children:[e.jsx(On,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&h.mutate(y.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},y.id))})]},b))})]})})}function gee(){const[t,n]=I.useState("pages"),[r,i]=I.useState(null),[s,a]=I.useState(!1),o=Xt(),{data:c=[]}=Fe({queryKey:["pageContents"],queryFn:()=>ce.entities.PageContent.list()}),{data:d=[]}=Fe({queryKey:["blogPosts"],queryFn:()=>ce.entities.BlogPost.list()}),{data:h=[]}=Fe({queryKey:["trainings"],queryFn:()=>ce.entities.Training.list()}),f=Le({mutationFn:w=>ce.entities.PageContent.create(w),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContents"]}),a(!1),i(null)}}),m=Le({mutationFn:({id:w,data:k})=>ce.entities.PageContent.update(w,k),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContents"]}),a(!1),i(null)}}),p=Le({mutationFn:w=>ce.entities.PageContent.delete(w),onSuccess:()=>o.invalidateQueries({queryKey:["pageContents"]})}),g=Le({mutationFn:w=>ce.entities.BlogPost.create(w),onSuccess:()=>{o.invalidateQueries({queryKey:["blogPosts"]}),a(!1),i(null)}}),b=Le({mutationFn:({id:w,data:k})=>ce.entities.BlogPost.update(w,k),onSuccess:()=>{o.invalidateQueries({queryKey:["blogPosts"]}),a(!1),i(null)}}),j=Le({mutationFn:w=>ce.entities.BlogPost.delete(w),onSuccess:()=>o.invalidateQueries({queryKey:["blogPosts"]})}),y=Le({mutationFn:w=>ce.entities.Training.create(w),onSuccess:()=>{o.invalidateQueries({queryKey:["trainings"]}),a(!1),i(null)}}),x=Le({mutationFn:({id:w,data:k})=>ce.entities.Training.update(w,k),onSuccess:()=>{o.invalidateQueries({queryKey:["trainings"]}),a(!1),i(null)}}),N=Le({mutationFn:w=>ce.entities.Training.delete(w),onSuccess:()=>o.invalidateQueries({queryKey:["trainings"]})});return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Content Management"}),e.jsx("p",{className:"text-gray-600",children:"Beheer pagina's, blogs en trainingen"})]}),e.jsxs("div",{className:"flex gap-2 mb-8 border-b border-gray-200",children:[e.jsxs("button",{onClick:()=>n("pages"),className:`px-6 py-3 font-medium transition-colors ${t==="pages"?"text-[#FAB868] border-b-2 border-[#FAB868]":"text-gray-600 hover:text-gray-900"}`,children:["Pagina Content (",c.length,")"]}),e.jsxs("button",{onClick:()=>n("blogs"),className:`px-6 py-3 font-medium transition-colors ${t==="blogs"?"text-[#FAB868] border-b-2 border-[#FAB868]":"text-gray-600 hover:text-gray-900"}`,children:["Blog Posts (",d.length,")"]}),e.jsxs("button",{onClick:()=>n("trainings"),className:`px-6 py-3 font-medium transition-colors ${t==="trainings"?"text-[#FAB868] border-b-2 border-[#FAB868]":"text-gray-600 hover:text-gray-900"}`,children:["Trainingen (",h.length,")"]})]}),e.jsxs(se,{onClick:()=>{i(null),a(!0)},className:"mb-6",children:[e.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Nieuwe ",t==="pages"?"Pagina Content":t==="blogs"?"Blog Post":"Training"]}),t==="pages"&&e.jsx("div",{className:"space-y-4",children:c.map(w=>e.jsx("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("h3",{className:"font-bold text-lg mb-1",children:[w.page_name," - ",w.section_key]}),e.jsx("p",{className:"text-gray-600 text-sm mb-2",children:w.content_type}),e.jsx("p",{className:"text-gray-700 line-clamp-2",children:w.content})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{i(w),a(!0)},children:e.jsx(zc,{className:"w-4 h-4"})}),e.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&p.mutate(w.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},w.id))}),t==="blogs"&&e.jsx("div",{className:"space-y-4",children:d.map(w=>e.jsx("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("h3",{className:"font-bold text-lg",children:w.title}),w.published&&e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full",children:"Gepubliceerd"})]}),e.jsxs("p",{className:"text-gray-600 text-sm mb-2",children:[w.category," • ",w.read_time]}),e.jsx("p",{className:"text-gray-700 line-clamp-2",children:w.excerpt})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{i(w),a(!0)},children:e.jsx(zc,{className:"w-4 h-4"})}),e.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&j.mutate(w.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},w.id))}),t==="trainings"&&e.jsx("div",{className:"space-y-4",children:h.map(w=>e.jsx("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("h3",{className:"font-bold text-lg",children:w.title}),w.active&&e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full",children:"Actief"})]}),e.jsxs("p",{className:"text-gray-600 text-sm mb-2",children:[w.category," • ",w.duration]}),e.jsx("p",{className:"text-gray-700 line-clamp-2",children:w.description})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{i(w),a(!0)},children:e.jsx(zc,{className:"w-4 h-4"})}),e.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&N.mutate(w.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},w.id))}),s&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-white rounded-2xl p-8 max-w-2xl w-full max-h-[90vh] overflow-y-auto",children:[e.jsxs("div",{className:"flex justify-between items-center mb-6",children:[e.jsxs("h2",{className:"text-2xl font-bold",children:[r?"Bewerk":"Nieuwe"," ",t==="pages"?"Pagina Content":t==="blogs"?"Blog Post":"Training"]}),e.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{a(!1),i(null)},children:e.jsx(Ht,{className:"w-5 h-5"})})]}),t==="pages"&&e.jsx(xee,{editingItem:r,onSubmit:w=>{r?m.mutate({id:r.id,data:w}):f.mutate(w)},onCancel:()=>a(!1)}),t==="blogs"&&e.jsx(yee,{editingItem:r,onSubmit:w=>{r?b.mutate({id:r.id,data:w}):g.mutate(w)},onCancel:()=>a(!1)}),t==="trainings"&&e.jsx(vee,{editingItem:r,onSubmit:w=>{r?x.mutate({id:r.id,data:w}):y.mutate(w)},onCancel:()=>a(!1)})]})})]})})}function xee({editingItem:t,onSubmit:n,onCancel:r}){const[i,s]=I.useState(t||{page_name:"",section_key:"",content:"",content_type:"text",language:"nl"});return e.jsxs("form",{onSubmit:a=>{a.preventDefault(),n(i)},className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Pagina Naam"}),e.jsx(me,{required:!0,value:i.page_name,onChange:a=>s({...i,page_name:a.target.value}),placeholder:"bijv. Home, About, Contact"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Sectie Key"}),e.jsx(me,{required:!0,value:i.section_key,onChange:a=>s({...i,section_key:a.target.value}),placeholder:"bijv. hero_title, about_description"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content Type"}),e.jsxs("select",{value:i.content_type,onChange:a=>s({...i,content_type:a.target.value}),className:"w-full px-4 py-3 border-b-2 border-gray-200 focus:border-[#FAB868] focus:outline-none",children:[e.jsx("option",{value:"text",children:"Text"}),e.jsx("option",{value:"html",children:"HTML"}),e.jsx("option",{value:"markdown",children:"Markdown"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content"}),i.content_type==="html"?e.jsx("div",{className:"border-b-2 border-gray-200 focus-within:border-[#FAB868]",children:e.jsx(Bf,{theme:"snow",value:i.content,onChange:a=>s({...i,content:a}),modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],["link","image"],["clean"]]}})}):e.jsx(pt,{required:!0,value:i.content,onChange:a=>s({...i,content:a.target.value}),className:"min-h-48",placeholder:i.content_type==="markdown"?`# Heading

**Bold text**

- Lijst item`:"Tekst"})]}),e.jsxs("div",{className:"flex gap-3 pt-4",children:[e.jsx(se,{type:"button",variant:"outline",onClick:r,className:"flex-1",children:"Annuleren"}),e.jsxs(se,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})}function yee({editingItem:t,onSubmit:n,onCancel:r}){const[i,s]=I.useState(t||{title:"",slug:"",excerpt:"",content:"",category:"AI",image_url:"",author:"48-7 Team",read_time:"5 min",published:!1,published_date:new Date().toISOString().split("T")[0]});return e.jsxs("form",{onSubmit:a=>{a.preventDefault(),n(i)},className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Titel"}),e.jsx(me,{required:!0,value:i.title,onChange:a=>s({...i,title:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Slug (URL)"}),e.jsx(me,{required:!0,value:i.slug,onChange:a=>s({...i,slug:a.target.value}),placeholder:"url-vriendelijke-versie"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Categorie"}),e.jsxs("select",{value:i.category,onChange:a=>s({...i,category:a.target.value}),className:"w-full px-4 py-3 border-b-2 border-gray-200 focus:border-[#FAB868] focus:outline-none",children:[e.jsx("option",{value:"AI",children:"AI"}),e.jsx("option",{value:"Technologie",children:"Technologie"}),e.jsx("option",{value:"Training",children:"Training"}),e.jsx("option",{value:"Case Study",children:"Case Study"}),e.jsx("option",{value:"Nieuws",children:"Nieuws"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Excerpt"}),e.jsx(pt,{required:!0,value:i.excerpt,onChange:a=>s({...i,excerpt:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content (Rich Text Editor)"}),e.jsx("div",{className:"border-b-2 border-gray-200 focus-within:border-[#FAB868]",children:e.jsx(Bf,{theme:"snow",value:i.content,onChange:a=>s({...i,content:a}),modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],["link","image","video"],[{color:[]},{background:[]}],["clean"]]},style:{minHeight:"300px"}})}),e.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Tip: Plak afbeelding URLs direct of gebruik de image button. Output is HTML."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Image URL"}),e.jsx(me,{value:i.image_url,onChange:a=>s({...i,image_url:a.target.value})})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:i.published,onChange:a=>s({...i,published:a.target.checked}),className:"w-4 h-4"}),e.jsx("label",{className:"text-sm font-medium",children:"Publiceren"})]}),e.jsxs("div",{className:"flex gap-3 pt-4",children:[e.jsx(se,{type:"button",variant:"outline",onClick:r,className:"flex-1",children:"Annuleren"}),e.jsxs(se,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})}function vee({editingItem:t,onSubmit:n,onCancel:r}){const[i,s]=I.useState(t||{title:"",slug:"",category:"Basis",duration:"",description:"",full_description:"",learning_goals:[],target_audience:"",price:"",image_url:"",active:!0});return e.jsxs("form",{onSubmit:a=>{a.preventDefault(),n(i)},className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Titel"}),e.jsx(me,{required:!0,value:i.title,onChange:a=>s({...i,title:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Slug (URL)"}),e.jsx(me,{required:!0,value:i.slug,onChange:a=>s({...i,slug:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Categorie"}),e.jsxs("select",{value:i.category,onChange:a=>s({...i,category:a.target.value}),className:"w-full px-4 py-3 border-b-2 border-gray-200 focus:border-[#FAB868] focus:outline-none",children:[e.jsx("option",{value:"Basis",children:"Basis"}),e.jsx("option",{value:"Gevorderd",children:"Gevorderd"}),e.jsx("option",{value:"Leiderschap",children:"Leiderschap"}),e.jsx("option",{value:"Technisch",children:"Technisch"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Duur"}),e.jsx(me,{required:!0,value:i.duration,onChange:a=>s({...i,duration:a.target.value}),placeholder:"bijv. 1 dag, 2 uur"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Korte Beschrijving"}),e.jsx(pt,{required:!0,value:i.description,onChange:a=>s({...i,description:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Volledige Beschrijving (Rich Text)"}),e.jsx("div",{className:"border-b-2 border-gray-200 focus-within:border-[#FAB868]",children:e.jsx(Bf,{theme:"snow",value:i.full_description,onChange:a=>s({...i,full_description:a}),modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"}],["link"],["clean"]]},style:{minHeight:"200px"}})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Doelgroep"}),e.jsx(me,{value:i.target_audience,onChange:a=>s({...i,target_audience:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Prijs"}),e.jsx(me,{value:i.price,onChange:a=>s({...i,price:a.target.value}),placeholder:"bijv. €1.500 ex. BTW"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:i.active,onChange:a=>s({...i,active:a.target.checked}),className:"w-4 h-4"}),e.jsx("label",{className:"text-sm font-medium",children:"Actief"})]}),e.jsxs("div",{className:"flex gap-3 pt-4",children:[e.jsx(se,{type:"button",variant:"outline",onClick:r,className:"flex-1",children:"Annuleren"}),e.jsxs(se,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})}function bee(){return e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative bg-white pt-32 pb-20 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-[#FAB868]/5 rounded-full blur-3xl"}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-20 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] leading-[1.1] mb-8",children:"AI Development Support"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8 leading-relaxed",children:"Snel bouwen met AI, zonder technische risico's"}),e.jsxs("div",{className:"bg-[#F4F4F4] rounded-2xl p-6 mb-12",children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Vibe coding en AI-assisted development maken teams razendsnel."}),e.jsx("p",{className:"text-lg text-[#0D0D0F]/80",children:"Maar hoe weet je zeker dat wat je oplevert veilig, overdraagbaar en toekomstbestendig is?"})]}),e.jsx("p",{className:"text-xl text-[#0D0D0F] font-semibold mb-12",children:"Met AI Development Support ondersteunen wij teams die zelf bouwen met AI — zodat snelheid niet ten koste gaat van kwaliteit."}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:e.jsxs(de,{to:ae("Contact"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Bespreek je situatie",e.jsx($e,{className:"w-5 h-5"})]})})]}),e.jsx(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.3},className:"hidden lg:block",children:e.jsx("img",{src:"https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=1200&auto=format&fit=crop",alt:"AI Development Support",className:"w-full h-[600px] object-cover rounded-3xl shadow-2xl"})})]})})]}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[e.jsx(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:e.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1200&auto=format&fit=crop",alt:"Team building with AI",className:"w-full h-[500px] object-cover rounded-3xl shadow-xl"})}),e.jsxs(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Voor teams die met AI bouwen"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:"Deze dienst is er voor developmentteams die werken met vibe coding tools zoals Cursor, Codex, Claude Code of Lovable en:"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"snel itereren met AI"})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"eigenaarschap willen houden"})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"maar zekerheid zoeken over hun technische keuzes"})]})]})]})]})})}),e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Waar wij op letten"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-3xl mx-auto mb-4",children:"Wij helpen teams antwoord krijgen op cruciale vragen:"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(DA,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Is de code veilig?"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Ook in koppeling met bestaande systemen en databronnen."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(wu,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Is de juiste architectuur gekozen?"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Schaalbaar, onderhoudbaar en logisch opgebouwd."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(_n,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Is de code overdraagbaar?"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Begrijpelijk, gedocumenteerd en niet afhankelijk van één persoon."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.4},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(HD,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Kan het worden doorontwikkeld?"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Klaar voor upgrades, nieuwe modellen en toekomstige eisen."})]})]})]})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Wat we doen (en wat niet)"})}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[e.jsxs("div",{className:"bg-white rounded-3xl p-8 shadow-xl",children:[e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wij doen wel"}),e.jsxs("ul",{className:"space-y-4",children:[e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Code- en architectuurreviews"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Begeleiding bij AI-assisted development"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Helpen bij framework-keuzes (React, Next en alternatieven)"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Meedenken over architectuur, integraties, security en structuur"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Kennisoverdracht aan het team"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-8 shadow-xl",children:[e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wij doen niet"}),e.jsxs("ul",{className:"space-y-4",children:[e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ht,{className:"w-5 h-5 text-gray-500"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Jullie team overnemen"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ht,{className:"w-5 h-5 text-gray-500"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Black-box oplossingen bouwen"})]})]}),e.jsx("p",{className:"text-xl text-[#0D0D0F] font-semibold mt-8",children:"Jullie blijven bouwen. Wij bewaken de kwaliteit."})]})]})]})}),e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Hoe we samenwerken"})}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(yn,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Retainer"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"structurele begeleiding & reviews"})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(zO,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Projectmatig"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"toetsing van een AI-oplossing"})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(_n,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Tijdelijke versterking"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"altijd met kennisoverdracht"})]})]}),e.jsx(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-xl text-[#0D0D0F] font-semibold text-center mt-12",children:"Flexibel, zonder lock-in."})]})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Waarom 48-7"})}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:[e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-6 h-6 text-[#FAB868]"}),"Ervaren developers met echte AI-kennis"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-6 h-6 text-[#FAB868]"}),"Begrip van bestaande softwarelandschappen"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-6 h-6 text-[#FAB868]"}),"Praktisch, nuchter en zonder hype"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-6 h-6 text-[#FAB868]"}),"Gericht op MKB+ teams die snelheid én controle willen"]})]}),e.jsx(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl text-[#0D0D0F] font-bold text-center mt-12",children:"Werk je met AI, maar wil je zeker weten dat het technisch klopt?"})]})}),e.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Bespreek je situatie"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Snel bouwen met AI, zonder technische risico's"}),e.jsxs(de,{to:ae("Contact"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Plan een gesprek",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function jee(){const t=[{icon:Wi,title:"AI Consultancy",description:"Van strategie tot roadmap. Wij helpen je de juiste AI kansen te identificeren en een praktisch implementatieplan te ontwikkelen dat past bij jouw organisatie.",features:["AI Strategie & Visie","Innoveren met AI","AI Readiness Assessments","ROI & Business Cases","Interim AI Product Managers"],href:ae("AIConsultancy"),image:"https://images.unsplash.com/photo-1552664730-d307ca884978?w=1200&auto=format&fit=crop",bgLight:"bg-amber-50",color:"#f59e0b"},{icon:SA,title:"AI Software Development",description:"Wij ontwikkelen AI-oplossingen die echt in productie gaan. Schaalbare software die past binnen jouw bestaande IT-landschap.",features:["AI Agents & Automatisering","AI Search & E-commerce","AI Customer Care","Prototypes naar Productie","Integraties met bestaande systemen"],href:ae("AIDevelopment"),image:"https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&auto=format&fit=crop",bgLight:"bg-blue-50",color:"#3b82f6"},{icon:cf,title:"AI Development Support",description:"Ondersteuning voor developmentteams die zelf bouwen met AI, zodat snelheid niet ten koste gaat van kwaliteit, veiligheid en onderhoudbaarheid.",features:["Code- en architectuurreviews","Begeleiding bij AI-assisted development","Framework-keuzes & architectuuradvies","AI Security Audits","Kennisoverdracht aan het team"],href:ae("DevelopmentSupport"),image:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1200&auto=format&fit=crop",bgLight:"bg-emerald-50",color:"#10b981"},{icon:pr,title:"AI Training & Workshops",description:"Maak je team AI-ready met onze praktijkgerichte trainingen. Van basis tot gevorderd, voor elk niveau en elke rol binnen je organisatie.",features:["AI Geletterdheid","Vibe Coding","AI Agents Bouwen","Microsoft Copilot","AI & Sales"],href:ae("Training"),image:"https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1200&auto=format&fit=crop",bgLight:"bg-purple-50",color:"#a855f7"}],n=[{icon:Ya,value:"50+",label:"Projecten afgerond"},{icon:_n,value:"500+",label:"Professionals getraind"},{icon:ui,value:"2x",label:"Gemiddelde productiviteitswinst"}];return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto mb-16",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"Full-Service AI Agency"]}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-6",children:"Full-Service AI voor MKB"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Van strategie tot implementatie, van training tot doorontwikkeling. Wij bieden alles wat je nodig hebt om AI succesvol in te zetten."})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"grid md:grid-cols-3 gap-6 max-w-3xl mx-auto",children:n.map((r,i)=>e.jsxs("div",{className:"text-center p-6 bg-white rounded-2xl border border-gray-100",children:[e.jsx(r.icon,{className:"w-8 h-8 text-blue-600 mx-auto mb-3"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:r.value}),e.jsx("p",{className:"text-gray-600",children:r.label})]},i))})]})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"space-y-16",children:t.map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:`grid lg:grid-cols-2 gap-12 items-center ${i%2===1?"lg:flex-row-reverse":""}`,children:[e.jsxs("div",{className:i%2===1?"lg:order-2":"",children:[e.jsx("div",{className:`w-16 h-16 ${r.bgLight} rounded-2xl flex items-center justify-center mb-6`,children:e.jsx(r.icon,{className:"w-8 h-8",style:{color:r.color}})}),e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:r.title}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:r.description}),e.jsx("ul",{className:"space-y-3 mb-8",children:r.features.map((s,a)=>e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`w-6 h-6 rounded-full ${r.bgLight} flex items-center justify-center`,children:e.jsx(Ft,{className:"w-4 h-4",style:{color:r.color}})}),e.jsx("span",{className:"text-gray-700",children:s})]},a))}),e.jsxs(de,{to:r.href,className:"inline-flex items-center gap-2 px-6 py-3 bg-gray-900 text-white font-semibold rounded-xl hover:bg-gray-800 transition-colors",children:["Meer over ",r.title,e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsx("div",{className:`relative ${i%2===1?"lg:order-1":""}`,children:e.jsx("img",{src:r.image,alt:r.title,className:"w-full aspect-square object-cover rounded-3xl shadow-xl"})})]},i))})})}),e.jsx("section",{className:"py-16 bg-gray-50",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Wf,{})})}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:"Niet zeker welke dienst je nodig hebt?"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"Doe onze AI Quiz en ontdek in 2 minuten welke AI oplossingen het beste passen bij jouw bedrijf."}),e.jsxs(de,{to:ae("AIQuiz"),className:"inline-flex items-center gap-2 px-8 py-4 bg-gradient-to-r from-blue-600 to-blue-700 text-white font-semibold rounded-2xl hover:shadow-xl hover:shadow-blue-500/30 transition-all",children:[e.jsx(At,{className:"w-5 h-5"}),"Start de AI Quiz",e.jsx($e,{className:"w-5 h-5"})]})]})})})]})}var Kf="Checkbox",[wee]=to(Kf),[Nee,Ab]=wee(Kf);function kee(t){const{__scopeCheckbox:n,checked:r,children:i,defaultChecked:s,disabled:a,form:o,name:c,onCheckedChange:d,required:h,value:f="on",internal_do_not_use_render:m}=t,[p,g]=gl({prop:r,defaultProp:s??!1,onChange:d,caller:Kf}),[b,j]=I.useState(null),[y,x]=I.useState(null),N=I.useRef(!1),w=b?!!o||!!b.closest("form"):!0,k={checked:p,disabled:a,setChecked:g,control:b,setControl:j,name:c,form:o,value:f,hasConsumerStoppedPropagationRef:N,required:h,defaultChecked:$s(s)?!1:s,isFormControl:w,bubbleInput:y,setBubbleInput:x};return e.jsx(Nee,{scope:n,...k,children:_ee(m)?m(k):i})}var D6="CheckboxTrigger",I6=I.forwardRef(({__scopeCheckbox:t,onKeyDown:n,onClick:r,...i},s)=>{const{control:a,value:o,disabled:c,checked:d,required:h,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:p,isFormControl:g,bubbleInput:b}=Ab(D6,t),j=Yt(s,f),y=I.useRef(d);return I.useEffect(()=>{const x=a==null?void 0:a.form;if(x){const N=()=>m(y.current);return x.addEventListener("reset",N),()=>x.removeEventListener("reset",N)}},[a,m]),e.jsx(jt.button,{type:"button",role:"checkbox","aria-checked":$s(d)?"mixed":d,"aria-required":h,"data-state":B6(d),"data-disabled":c?"":void 0,disabled:c,value:o,...i,ref:j,onKeyDown:bt(n,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:bt(r,x=>{m(N=>$s(N)?!0:!N),b&&g&&(p.current=x.isPropagationStopped(),p.current||x.stopPropagation())})})});I6.displayName=D6;var Cb=I.forwardRef((t,n)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:a,required:o,disabled:c,value:d,onCheckedChange:h,form:f,...m}=t;return e.jsx(kee,{__scopeCheckbox:r,checked:s,defaultChecked:a,disabled:c,required:o,onCheckedChange:h,name:i,form:f,value:d,internal_do_not_use_render:({isFormControl:p})=>e.jsxs(e.Fragment,{children:[e.jsx(I6,{...m,ref:n,__scopeCheckbox:r}),p&&e.jsx(L6,{__scopeCheckbox:r})]})})});Cb.displayName=Kf;var R6="CheckboxIndicator",F6=I.forwardRef((t,n)=>{const{__scopeCheckbox:r,forceMount:i,...s}=t,a=Ab(R6,r);return e.jsx(db,{present:i||$s(a.checked)||a.checked===!0,children:e.jsx(jt.span,{"data-state":B6(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:n,style:{pointerEvents:"none",...t.style}})})});F6.displayName=R6;var M6="CheckboxBubbleInput",L6=I.forwardRef(({__scopeCheckbox:t,...n},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:a,defaultChecked:o,required:c,disabled:d,name:h,value:f,form:m,bubbleInput:p,setBubbleInput:g}=Ab(M6,t),b=Yt(r,g),j=ab(a),y=rb(i);I.useEffect(()=>{const N=p;if(!N)return;const w=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(w,"checked").set,S=!s.current;if(j!==a&&A){const E=new Event("click",{bubbles:S});N.indeterminate=$s(a),A.call(N,$s(a)?!1:a),N.dispatchEvent(E)}},[p,j,a,s]);const x=I.useRef($s(a)?!1:a);return e.jsx(jt.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??x.current,required:c,disabled:d,name:h,value:f,form:m,...n,tabIndex:-1,ref:b,style:{...n.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});L6.displayName=M6;function _ee(t){return typeof t=="function"}function $s(t){return t==="indeterminate"}function B6(t){return $s(t)?"indeterminate":t?"checked":"unchecked"}const Mh=I.forwardRef(({className:t,...n},r)=>e.jsx(Cb,{ref:r,className:Qt("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...n,children:e.jsx(F6,{className:Qt("flex items-center justify-center text-current"),children:e.jsx(Ft,{className:"h-4 w-4"})})}));Mh.displayName=Cb.displayName;function See(){const[t,n]=I.useState({bedrijfsnaam:"",contactpersonen:"",functies:"",email:"",telefoon:"",sector:"",aantal_medewerkers:"",omzet_range:"",kernactiviteit:"",frustratie_1:"",frustratie_2:"",frustratie_3:"",tijdrovende_activiteit:"",tijdsbesteding_uren:"",gemiste_kansen:"",gebruikte_systemen:[],systemen_gekoppeld:"",bedrijfskennis_locatie:[],informatie_vindbaarheid:"",ai_gebruik:"",ai_tools_welke:"",ai_ervaring:"",management_houding:"",medewerkers_houding:"",ai_zorgen:"",redenen_contact:[],succesvol_resultaat:"",urgentie:"",budget_beschikbaar:"",budget_range:"",aanwezigen:"",specifieke_onderwerpen:"",te_delen_documenten:"",geupload_documenten:[],overige_informatie:""}),[r,i]=I.useState(!1),[s,a]=I.useState(!1),[o,c]=I.useState(""),[d,h]=I.useState(""),[f,m]=I.useState(!1),[p,g]=I.useState({}),[b,j]=I.useState([]),y=(S,E)=>{n(C=>({...C,[S]:E}))},x=(S,E,C)=>{n(B=>({...B,[S]:C?[...B[S],E]:B[S].filter(D=>D!==E)}))},N=async S=>{var C;const E=Array.from(S.target.files);if(E.length!==0){m(!0);try{const B=[];for(const D of E){const F=await ce.integrations.Core.UploadFile({file:D}),R=F.file_url||((C=F.data)==null?void 0:C.file_url);if(!R)throw new Error("Bestands-URL ontbreekt na uploaden.");B.push(R)}n(D=>({...D,geupload_documenten:[...D.geupload_documenten,...B]}))}catch(B){h("Er ging iets mis bij het uploaden van bestanden."),console.error(B)}finally{m(!1)}}},w=S=>{n(E=>({...E,geupload_documenten:E.geupload_documenten.filter(C=>C!==S)}))},k=()=>{const S={};(!t.bedrijfsnaam||t.bedrijfsnaam.trim().length<2)&&(S.bedrijfsnaam="Bedrijfsnaam is verplicht"),(!t.contactpersonen||t.contactpersonen.trim().length<2)&&(S.contactpersonen="Contactpersoon is verplicht");const E=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if((!t.email||!E.test(t.email))&&(S.email="Voer een geldig e-mailadres in"),t.telefoon){const C=/^(\+31|0031|0)[1-9][0-9]{8}$/,B=t.telefoon.replace(/[\s\-\(\)]/g,"");C.test(B)||(S.telefoon="Voer een geldig Nederlands telefoonnummer in")}return g(S),Object.keys(S).length===0},A=async S=>{if(S.preventDefault(),!k()){h("Er zijn validatiefouten in het formulier. Controleer de rode velden."),window.scrollTo(0,0);return}i(!0),h(""),j([]);try{const E=await ce.functions.invoke("submitDiscoveryForm",t);E.data.success?(c(E.data.id||""),a(!0),window.scrollTo(0,0)):(h(E.data.error||"Er ging iets mis"),E.data.validation_errors&&j(E.data.validation_errors))}catch(E){console.error("Form submission error:",E),h("Netwerkfout: kon geen verbinding maken met de server. Probeer het later opnieuw.")}finally{i(!1)}};return s?e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 py-20",children:e.jsx("div",{className:"max-w-2xl mx-auto px-4",children:e.jsxs("div",{className:"bg-white rounded-3xl shadow-xl p-12 text-center",children:[e.jsx(RO,{className:"w-20 h-20 text-green-500 mx-auto mb-6"}),e.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Bedankt!"}),e.jsx("p",{className:"text-lg text-gray-600 mb-6",children:"We hebben jullie Discovery Scan succesvol ontvangen en nemen deze zo snel mogelijk door."}),o&&e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4 mb-6",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Referentienummer:"}),e.jsx("p",{className:"text-lg font-mono font-bold text-blue-700",children:o})]})]})})}):e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 py-12",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4",children:e.jsxs("div",{className:"bg-white rounded-3xl shadow-xl p-8 md:p-12",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx("h1",{className:"text-4xl font-bold mb-4",children:"48-7 AI Discovery - Pre-Meeting Scan"}),e.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-500 p-4 mb-6",children:e.jsx("p",{className:"text-gray-700",children:"Bedankt voor jullie interesse in 48-7 AI Consultancy. Om onze discovery-sessie zo waardevol mogelijk te maken, vragen we jullie om deze korte scan vooraf in te vullen."})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-semibold",children:"⏱️ Invultijd:"}),e.jsx("span",{children:"Ongeveer 10-15 minuten"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-semibold",children:"🔒 Privacy:"}),e.jsx("span",{children:"Gegevens worden vertrouwelijk behandeld"})]})]})]}),e.jsxs("form",{onSubmit:A,className:"space-y-12",children:[e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 1: Bedrijfsgegevens"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Bedrijfsnaam *"}),e.jsx(me,{required:!0,value:t.bedrijfsnaam,onChange:S=>{y("bedrijfsnaam",S.target.value),p.bedrijfsnaam&&g({...p,bedrijfsnaam:null})},className:p.bedrijfsnaam?"border-red-500":""}),p.bedrijfsnaam&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.bedrijfsnaam})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Contactpersoon(en) tijdens sessie *"}),e.jsx(me,{required:!0,value:t.contactpersonen,onChange:S=>{y("contactpersonen",S.target.value),p.contactpersonen&&g({...p,contactpersonen:null})},className:p.contactpersonen?"border-red-500":""}),p.contactpersonen&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.contactpersonen})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Functie(s)"}),e.jsx(me,{value:t.functies,onChange:S=>y("functies",S.target.value)})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"E-mail *"}),e.jsx(me,{type:"email",required:!0,value:t.email,onChange:S=>{y("email",S.target.value),p.email&&g({...p,email:null})},className:p.email?"border-red-500":""}),p.email&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.email})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Telefoon"}),e.jsx(me,{type:"tel",value:t.telefoon,onChange:S=>{y("telefoon",S.target.value),p.telefoon&&g({...p,telefoon:null})},placeholder:"+31 6 12345678",className:p.telefoon?"border-red-500":""}),p.telefoon&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.telefoon})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"In welke sector/branche zijn jullie actief?"}),e.jsx(me,{value:t.sector,onChange:S=>y("sector",S.target.value)})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoeveel medewerkers heeft jullie organisatie?"}),e.jsx("div",{className:"space-y-2",children:["1-10","11-25","26-50","51-100","100+"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"aantal_medewerkers",value:S,checked:t.aantal_medewerkers===S,onChange:E=>y("aantal_medewerkers",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Omzet range (optioneel)"}),e.jsx("div",{className:"space-y-2",children:["< €500k","€500k - €1M","€1M - €5M","€5M - €10M","€10M+","Geef ik liever niet aan"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"omzet_range",value:S,checked:t.omzet_range===S,onChange:E=>y("omzet_range",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-2",children:["Beschrijf jullie kernactiviteit in één zin",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Wat doen jullie en voor wie?)"})]}),e.jsx(pt,{value:t.kernactiviteit,onChange:S=>y("kernactiviteit",S.target.value),rows:3})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 2: Huidige Situatie"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Wat zijn op dit moment jullie TOP 3 frustraties of knelpunten in de dagelijkse bedrijfsvoering?"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm mb-1",children:"1."}),e.jsx(pt,{value:t.frustratie_1,onChange:S=>y("frustratie_1",S.target.value),rows:2})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm mb-1",children:"2."}),e.jsx(pt,{value:t.frustratie_2,onChange:S=>y("frustratie_2",S.target.value),rows:2})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm mb-1",children:"3."}),e.jsx(pt,{value:t.frustratie_3,onChange:S=>y("frustratie_3",S.target.value),rows:2})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Aan welke activiteit zijn jullie (of jullie team) het meeste tijd kwijt die eigenlijk efficiënter zou kunnen?"}),e.jsx(pt,{value:t.tijdrovende_activiteit,onChange:S=>y("tijdrovende_activiteit",S.target.value),rows:3})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Als je een ruwe schatting maakt, hoeveel tijd gaat hier per week in zitten?"}),e.jsx("div",{className:"space-y-2",children:["Minder dan 5 uur","5-10 uur","10-20 uur","20-40 uur","Meer dan 40 uur"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"tijdsbesteding_uren",value:S,checked:t.tijdsbesteding_uren===S,onChange:E=>y("tijdsbesteding_uren",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-2",children:["Welke kansen laat jullie nu liggen door gebrek aan tijd, mensen of middelen?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Bijvoorbeeld: meer klanten kunnen helpen, betere service, nieuwe producten ontwikkelen, etc.)"})]}),e.jsx(pt,{value:t.gemiste_kansen,onChange:S=>y("gemiste_kansen",S.target.value),rows:4})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 3: Systemen & Data"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-3",children:["Welke systemen/tools gebruiken jullie dagelijks?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Meerdere antwoorden mogelijk)"})]}),e.jsx("div",{className:"space-y-2",children:["CRM (bijv. Salesforce, HubSpot, Pipedrive)","ERP (bijv. Exact, Afas, SAP)","Email (bijv. Gmail, Outlook)","Projectmanagement (bijv. Asana, Monday, Jira)","Communicatie (bijv. Teams, Slack, WhatsApp)","Boekhouding (bijv. Exact Online, Twinfield)","Spreadsheets (Excel, Google Sheets)","Documenten (Word, Google Docs, SharePoint)","Website/E-commerce","Anders"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx(Mh,{checked:t.gebruikte_systemen.includes(S),onCheckedChange:E=>x("gebruikte_systemen",S,E)}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Zijn jullie systemen aan elkaar gekoppeld?"}),e.jsx("div",{className:"space-y-2",children:["Ja, de meeste systemen zijn geïntegreerd","Gedeeltelijk, sommige wel, sommige niet","Nee, alles werkt los van elkaar","Weet ik niet"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"systemen_gekoppeld",value:S,checked:t.systemen_gekoppeld===S,onChange:E=>y("systemen_gekoppeld",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-3",children:["Waar zit jullie belangrijkste bedrijfskennis?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Meerdere antwoorden mogelijk)"})]}),e.jsx("div",{className:"space-y-2",children:["In de hoofden van medewerkers","In documenten (Word, PDF)","In databases/systemen","In spreadsheets","In emails","In chat-systemen (Teams, Slack)","We hebben eigenlijk weinig gedocumenteerd","Anders"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx(Mh,{checked:t.bedrijfskennis_locatie.includes(S),onCheckedChange:E=>x("bedrijfskennis_locatie",S,E)}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoe makkelijk kunnen medewerkers informatie vinden die ze nodig hebben?"}),e.jsx("div",{className:"space-y-2",children:["Heel makkelijk, alles is goed georganiseerd","Redelijk, met wat zoeken lukt het wel","Moeilijk, we zijn veel tijd kwijt aan zoeken","Zeer moeilijk, kennis verdwijnt bij vertrek personeel"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"informatie_vindbaarheid",value:S,checked:t.informatie_vindbaarheid===S,onChange:E=>y("informatie_vindbaarheid",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 4: AI-Readiness"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Gebruiken jullie of jullie team al AI-tools?"}),e.jsx("div",{className:"space-y-2",children:["Nee, nog helemaal niet","Ja, af en toe (bijv. ChatGPT voor losse vragen)","Ja, regelmatig voor specifieke taken","Ja, geïntegreerd in onze werkprocessen"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"ai_gebruik",value:S,checked:t.ai_gebruik===S,onChange:E=>y("ai_gebruik",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Zo ja, welke AI-tools gebruiken jullie en waarvoor?"}),e.jsx(pt,{value:t.ai_tools_welke,onChange:S=>y("ai_tools_welke",S.target.value),rows:3})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Wat is jullie ervaring met AI tot nu toe?"}),e.jsx("div",{className:"space-y-2",children:["Zeer positief, we zien veel waarde","Positief, het helpt hier en daar","Neutraal, nog geen duidelijke mening","Negatief, valt tegen","We hebben nog geen ervaring","Anders"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"ai_ervaring",value:S,checked:t.ai_ervaring===S,onChange:E=>y("ai_ervaring",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoe kijkt het management/eigenaar aan tegen AI?"}),e.jsx("div",{className:"space-y-2",children:["Zeer enthousiast, wil er graag mee aan de slag","Positief, open voor mogelijkheden","Afwachtend, eerst zien dan geloven","Sceptisch, ziet vooral risico's","Neutraal/geen sterke mening","Verschillend per persoon"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"management_houding",value:S,checked:t.management_houding===S,onChange:E=>y("management_houding",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoe kijken medewerkers aan tegen AI?"}),e.jsx("div",{className:"space-y-2",children:["Enthousiast, willen ermee experimenteren","Positief, als het helpt is het goed","Neutraal, geen sterke mening","Bezorgd over impact op hun werk/rol","Weerstand, liever niet","Verschillend per persoon"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"medewerkers_houding",value:S,checked:t.medewerkers_houding===S,onChange:E=>y("medewerkers_houding",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Zijn er specifieke zorgen of vragen over AI?"}),e.jsx(pt,{value:t.ai_zorgen,onChange:S=>y("ai_zorgen",S.target.value),rows:3})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 5: Doelen & Verwachtingen"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-3",children:["Wat is de belangrijkste reden om met 48-7 in gesprek te gaan?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Meerdere antwoorden mogelijk)"})]}),e.jsx("div",{className:"space-y-2",children:["Tijd besparen op repetitieve taken","Productiviteit verhogen","Kosten verlagen","Omzet verhogen","Betere service aan klanten","Schaalbaarheid vergroten","Concurrentievoordeel behalen","Kennis beter behouden/delen","Betere beslissingen kunnen nemen","Algemene verkenning wat AI kan betekenen","Anders"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx(Mh,{checked:t.redenen_contact.includes(S),onCheckedChange:E=>x("redenen_contact",S,E)}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Als jullie over 6-12 maanden terugkijken, wat zou dan een succesvol resultaat zijn?"}),e.jsx(pt,{value:t.succesvol_resultaat,onChange:S=>y("succesvol_resultaat",S.target.value),rows:4})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoe urgent is dit voor jullie?"}),e.jsx("div",{className:"space-y-2",children:["Zeer urgent, we willen zo snel mogelijk starten","Redelijk urgent, binnen 1-3 maanden","Niet urgent, we verkennen nog","Afhankelijk van wat we ontdekken"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"urgentie",value:S,checked:t.urgentie===S,onChange:E=>y("urgentie",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Is er budget beschikbaar voor AI-implementatie?"}),e.jsx("div",{className:"space-y-2",children:["Ja, budget is gereserveerd","Mogelijk, bij goede business case","Beperkt, moeten klein beginnen","Nee, nog niet in huidige planning","Weet ik nog niet","Geef ik liever tijdens gesprek aan"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"budget_beschikbaar",value:S,checked:t.budget_beschikbaar===S,onChange:E=>y("budget_beschikbaar",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Indicatie budget range (optioneel)"}),e.jsx("div",{className:"space-y-2",children:["< €5.000","€5.000 - €15.000","€15.000 - €30.000","€30.000 - €50.000","€50.000+","Geef ik liever niet aan"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"budget_range",value:S,checked:t.budget_range===S,onChange:E=>y("budget_range",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 6: Discovery Sessie"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Zijn er specifieke onderwerpen die jullie zeker besproken willen hebben?"}),e.jsx(pt,{value:t.specifieke_onderwerpen,onChange:S=>y("specifieke_onderwerpen",S.target.value),rows:4})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-2",children:["Zijn er documenten/informatie die jullie vooraf willen delen?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Bijvoorbeeld: organogram, processchema's, huidige toolstack, eerdere analyses)"})]}),e.jsx(pt,{value:t.te_delen_documenten,onChange:S=>y("te_delen_documenten",S.target.value),rows:3,placeholder:"Beschrijf welke documenten je wilt delen..."}),e.jsxs("div",{className:"mt-4",children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Upload documenten"}),e.jsxs("div",{className:"border-2 border-dashed border-gray-300 rounded-xl p-6 text-center",children:[e.jsx("input",{type:"file",multiple:!0,onChange:N,disabled:f,className:"hidden",id:"file-upload",accept:".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.jpg,.jpeg,.png"}),e.jsxs("label",{htmlFor:"file-upload",className:"cursor-pointer flex flex-col items-center",children:[e.jsx(RA,{className:"w-8 h-8 text-gray-400 mb-2"}),e.jsx("span",{className:"text-sm text-gray-600",children:f?"Bezig met uploaden...":"Klik om bestanden te uploaden"}),e.jsx("span",{className:"text-xs text-gray-400 mt-1",children:"PDF, Word, Excel, PowerPoint, afbeeldingen"})]})]}),t.geupload_documenten.length>0&&e.jsx("div",{className:"mt-3 space-y-2",children:t.geupload_documenten.map((S,E)=>e.jsxs("div",{className:"flex items-center justify-between bg-gray-50 p-3 rounded-lg",children:[e.jsx("span",{className:"text-sm text-gray-700 truncate flex-1",children:S.split("/").pop()}),e.jsx("button",{type:"button",onClick:()=>w(S),className:"ml-2 text-red-600 hover:text-red-800",children:e.jsx(Ht,{className:"w-4 h-4"})})]},E))})]})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 7: Aanvullende Informatie"}),e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Is er nog iets dat wij zouden moeten weten voordat we met jullie in gesprek gaan?"}),e.jsx(pt,{value:t.overige_informatie,onChange:S=>y("overige_informatie",S.target.value),rows:5})]})})]}),d&&e.jsxs("div",{className:"bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:[e.jsx("p",{className:"font-semibold mb-2",children:d}),b.length>0&&e.jsx("ul",{className:"list-disc list-inside text-sm space-y-1 mt-2",children:b.map((S,E)=>e.jsx("li",{children:S},E))})]}),e.jsx("div",{className:"pt-6 border-t-2",children:e.jsx(se,{type:"submit",disabled:r,className:"w-full md:w-auto px-12 py-6 text-lg bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold",children:r?e.jsxs(e.Fragment,{children:[e.jsx(TA,{className:"w-5 h-5 mr-2 animate-spin"}),"Verzenden..."]}):"Discovery Scan Verzenden"})})]})]})})})}function Aee(){const[t,n]=I.useState("input"),[r,i]=I.useState({url:"",description:""}),[s,a]=I.useState({sector:"",target_audience:"",ai_usage:"",ai_purpose:[],ai_decisions:"",human_oversight:"",high_risk_processes:[],processes_personal_data:"",sensitive_personal_data:"",ai_origin:"",ai_transparency:"",ai_responsible:"",risk_evaluation:"",user_notification:""}),[o,c]=I.useState(!1),[d,h]=I.useState(null),[f,m]=I.useState(null),[p,g]=I.useState(null),[b,j]=I.useState(!1),[y,x]=I.useState([]),[N,w]=I.useState(!1),[k,A]=I.useState({name:"",email:""}),[S,E]=I.useState(!1),[C,B]=I.useState(!1),[D,F]=I.useState(!1);I.useEffect(()=>{const K=new URLSearchParams(window.location.search).get("report_id");K&&R(K)},[]),I.useEffect(()=>{(t==="submitted"||t==="results")&&window.scrollTo({top:0,behavior:"smooth"})},[t]);const R=async H=>{var K,Y;F(!0),g(null);try{const{data:O}=await ce.functions.invoke("getEuAiActReport",{submission_id:H});O.success&&O.analysis?(h(O.analysis),m(H),n("results")):g(O.error||"Rapport niet gevonden")}catch(O){console.error("Error loading shared report:",O),g(((Y=(K=O.response)==null?void 0:K.data)==null?void 0:Y.error)||O.message||"Kon rapport niet laden. Controleer de link en probeer opnieuw.")}finally{F(!1)}},z=H=>{if(H.preventDefault(),!r.url&&!r.description){g("Vul een website URL of beschrijving in");return}n("questionnaire")},q=async()=>{if(!k.email||!k.name){g("Vul je naam en email in om de analyse te ontvangen"),window.scrollTo({top:0,behavior:"smooth"});return}n("analyzing"),c(!0),g(null),h(null);try{const{data:H}=await ce.functions.invoke("createEuAiActRequest",{website_url:r.url,company_description:r.description,questionnaire:s,user_email:k.email,user_name:k.name});if(H.success){if(H.submission_id)try{const K=await ce.functions.invoke("sendEuAiActReport",{submission_id:H.submission_id,recipient_email:k.email,recipient_name:k.name});console.log("Email sent:",K.data)}catch(K){console.error("Email send error:",K)}n("submitted"),window.scrollTo({top:0,behavior:"smooth"})}else g(H.error||"Er ging iets mis bij het indienen van de aanvraag"),window.scrollTo({top:0,behavior:"smooth"}),n("questionnaire")}catch(H){console.error("Error submitting request:",H),g("Kon de aanvraag niet indienen. Probeer het opnieuw."),n("questionnaire")}finally{c(!1)}},U=H=>{switch(H==null?void 0:H.toLowerCase()){case"onaanvaardbaar":return e.jsx(fi,{className:"w-6 h-6 text-red-600"});case"hoog":return e.jsx(Ho,{className:"w-6 h-6 text-orange-600"});case"beperkt":return e.jsx(vh,{className:"w-6 h-6 text-yellow-600"});case"minimaal":return e.jsx(gt,{className:"w-6 h-6 text-green-600"});default:return e.jsx(vh,{className:"w-6 h-6 text-gray-600"})}},Q=H=>{switch(H==null?void 0:H.toLowerCase()){case"onaanvaardbaar":return"bg-red-50 border-red-200";case"hoog":return"bg-orange-50 border-orange-200";case"beperkt":return"bg-yellow-50 border-yellow-200";case"minimaal":return"bg-green-50 border-green-200";default:return"bg-gray-50 border-gray-200"}};return t==="questionnaire"?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(Vn,{className:"w-4 h-4"}),"Stap 2 van 3: Vragenlijst"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Vertel ons meer over je AI-gebruik"}),e.jsx("p",{className:"text-gray-600",children:"Dit helpt ons een nauwkeurigere compliance-analyse te maken"})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-100 space-y-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Bedrijfscontext"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"In welke sector is jullie bedrijf actief?"}),e.jsxs("select",{value:s.sector,onChange:H=>a({...s,sector:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer sector"}),e.jsx("option",{value:"retail",children:"Retail / e-commerce"}),e.jsx("option",{value:"financial",children:"Financieel"}),e.jsx("option",{value:"hr",children:"HR / recruitment"}),e.jsx("option",{value:"healthcare",children:"Zorg"}),e.jsx("option",{value:"industry",children:"Industrie / logistiek"}),e.jsx("option",{value:"marketing",children:"Marketing / media"}),e.jsx("option",{value:"it",children:"IT / SaaS"}),e.jsx("option",{value:"government",children:"Overheid / semi-overheid"}),e.jsx("option",{value:"other",children:"Anders"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Voor wie zijn jullie diensten vooral bedoeld?"}),e.jsxs("select",{value:s.target_audience,onChange:H=>a({...s,target_audience:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer doelgroep"}),e.jsx("option",{value:"consumers",children:"Consumenten"}),e.jsx("option",{value:"businesses",children:"Bedrijven"}),e.jsx("option",{value:"both",children:"Beide"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"AI gebruik"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Wordt AI gebruikt binnen jullie organisatie?"}),e.jsxs("select",{value:s.ai_usage,onChange:H=>a({...s,ai_usage:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"active",children:"Ja, actief"}),e.jsx("option",{value:"limited",children:"Ja, beperkt / experimenten"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),(s.ai_usage==="active"||s.ai_usage==="limited")&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Waarvoor gebruiken jullie AI vooral? (meerdere keuzes mogelijk)"}),e.jsx("div",{className:"space-y-2",children:["Klantenservice (chatbots, mail)","Marketing / content","Analyse / voorspellingen","Besluitvorming","Product / software","HR","Anders"].map(H=>e.jsxs("label",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:s.ai_purpose.includes(H),onChange:K=>{K.target.checked?a({...s,ai_purpose:[...s.ai_purpose,H]}):a({...s,ai_purpose:s.ai_purpose.filter(Y=>Y!==H)})},className:"w-4 h-4 text-blue-600 rounded focus:ring-blue-500"}),e.jsx("span",{className:"text-gray-700",children:H})]},H))})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Impact op mensen"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Neemt AI beslissingen die directe gevolgen hebben voor mensen?"}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"Bijv: afwijzing sollicitant, kredietscore, prijsbepaling, toegang tot dienst"}),e.jsxs("select",{value:s.ai_decisions,onChange:H=>a({...s,ai_decisions:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Is er altijd een mens die de AI-uitkomst controleert of kan overrulen?"}),e.jsxs("select",{value:s.human_oversight,onChange:H=>a({...s,human_oversight:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"sometimes",children:"Soms"}),e.jsx("option",{value:"no",children:"Nee"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Gevoelige toepassingen"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Wordt AI gebruikt in één van deze processen? (meerdere keuzes mogelijk)"}),e.jsx("div",{className:"space-y-2",children:["Werving & selectie","Beoordeling medewerkers","Krediet / financiële beoordeling","Fraude-detectie","Toegang tot diensten of producten","Biometrie (gezicht, stem, gedrag)","Geen van bovenstaande"].map(H=>e.jsxs("label",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:s.high_risk_processes.includes(H),onChange:K=>{K.target.checked?a({...s,high_risk_processes:[...s.high_risk_processes,H]}):a({...s,high_risk_processes:s.high_risk_processes.filter(Y=>Y!==H)})},className:"w-4 h-4 text-blue-600 rounded focus:ring-blue-500"}),e.jsx("span",{className:"text-gray-700",children:H})]},H))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Verwerkt AI persoonsgegevens?"}),e.jsxs("select",{value:s.processes_personal_data,onChange:H=>a({...s,processes_personal_data:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),s.processes_personal_data==="yes"&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Gaat het om gevoelige persoonsgegevens?"}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"Bijv: gezondheid, etniciteit, biometrie"}),e.jsxs("select",{value:s.sensitive_personal_data,onChange:H=>a({...s,sensitive_personal_data:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Software & herkomst"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Hoe komt de AI tot stand?"}),e.jsxs("select",{value:s.ai_origin,onChange:H=>a({...s,ai_origin:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"self_developed",children:"Zelf ontwikkeld"}),e.jsx("option",{value:"vendor",children:"Ingekocht bij leverancier"}),e.jsx("option",{value:"tools",children:"Via tools zoals ChatGPT, Copilot, Midjourney"}),e.jsx("option",{value:"combination",children:"Combinatie"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Weten jullie hoe de AI tot zijn uitkomsten komt?"}),e.jsxs("select",{value:s.ai_transparency,onChange:H=>a({...s,ai_transparency:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"well_documented",children:"Ja, goed gedocumenteerd"}),e.jsx("option",{value:"partially",children:"Gedeeltelijk"}),e.jsx("option",{value:"no",children:"Nee"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Governance & compliance"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Is iemand formeel verantwoordelijk voor AI binnen de organisatie?"}),e.jsxs("select",{value:s.ai_responsible,onChange:H=>a({...s,ai_responsible:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Worden AI-risico's periodiek geëvalueerd?"}),e.jsxs("select",{value:s.risk_evaluation,onChange:H=>a({...s,risk_evaluation:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Informeren jullie gebruikers dat AI wordt ingezet?"}),e.jsxs("select",{value:s.user_notification,onChange:H=>a({...s,user_notification:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"sometimes",children:"Soms"}),e.jsx("option",{value:"no",children:"Nee"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Ontvang je analyse"}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Naam ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx(me,{type:"text",placeholder:"Je naam",value:k.name,onChange:H=>A({...k,name:H.target.value}),className:k.name?"":"border-red-300 bg-red-50",required:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Email ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx(me,{type:"email",placeholder:"je@email.nl",value:k.email,onChange:H=>A({...k,email:H.target.value}),className:k.email?"":"border-red-300 bg-red-50",required:!0})]})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6 border-t border-gray-200",children:[e.jsx(se,{variant:"outline",onClick:()=>n("input"),className:"flex-1",children:"Vorige"}),e.jsx(se,{onClick:q,disabled:o||!k.email||!k.name,className:"flex-1 bg-blue-600 hover:bg-blue-700",children:o?"Indienen...":"Analyseer"})]})]})]})}):D?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Rapport aan het laden..."})]})})}):t==="submitted"?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-green-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(gt,{className:"w-10 h-10 text-green-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Aanvraag ontvangen!"}),e.jsxs("p",{className:"text-xl text-gray-600 mb-8",children:["Je ontvangt de EU AI Act compliance analyse binnen enkele minuten per email op ",e.jsx("strong",{children:k.email})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 max-w-md mx-auto border border-gray-100 mb-8",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"De analyse wordt momenteel uitgevoerd. Dit kan enkele minuten duren omdat we:"}),e.jsxs("ul",{className:"text-left space-y-2 text-sm text-gray-700",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"Je bedrijfscontext analyseren"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"AI-toepassingen classificeren"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"Compliance vereisten bepalen"})]})]})]}),e.jsx(se,{onClick:()=>window.location.href=ae("Home"),className:"bg-gray-900 text-white hover:bg-gray-800",children:"Terug naar home"})]})})}):p?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-red-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(fi,{className:"w-10 h-10 text-red-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Er ging iets mis"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:p}),e.jsx(se,{onClick:()=>{g(null),i({url:"",description:""})},className:"bg-gray-900 text-white hover:bg-gray-800",children:"Probeer opnieuw"})]})})}):d?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-3 sm:px-6 lg:px-8 py-6 sm:py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(Vn,{className:"w-4 h-4"}),"EU AI Act Compliance Check"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:d.company_name}),e.jsx("p",{className:"text-xl text-gray-600",children:"Compliance analyse voor de EU AI Act"})]}),d.company_overview&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(Ya,{className:"w-6 h-6 text-blue-600"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Bedrijfsoverzicht"})]}),e.jsx("p",{className:"text-gray-700",children:d.company_overview})]}),d.identified_ai_applications&&d.identified_ai_applications.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-4 sm:p-8 mb-8 border border-gray-100",children:[e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900 mb-6",children:"Geïdentificeerde AI Toepassingen"}),e.jsx("div",{className:"space-y-4",children:d.identified_ai_applications.map((H,K)=>{var Y,O,T;return e.jsx("div",{className:`p-4 sm:p-6 rounded-xl border-2 ${Q(H.risk_level)}`,children:e.jsxs("div",{className:"flex items-start gap-3 sm:gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:U(H.risk_level)}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-2 mb-2",children:[e.jsx("h3",{className:"text-base sm:text-lg font-bold text-gray-900 break-words",children:H.application_name}),e.jsx("span",{className:`px-3 py-1 rounded-full text-xs sm:text-sm font-semibold whitespace-nowrap self-start ${((Y=H.risk_level)==null?void 0:Y.toLowerCase())==="onaanvaardbaar"?"bg-red-100 text-red-800":((O=H.risk_level)==null?void 0:O.toLowerCase())==="hoog"?"bg-orange-100 text-orange-800":((T=H.risk_level)==null?void 0:T.toLowerCase())==="beperkt"?"bg-yellow-100 text-yellow-800":"bg-green-100 text-green-800"}`,children:H.risk_level})]}),e.jsx("p",{className:"text-sm sm:text-base text-gray-700 mb-3 break-words",children:H.description}),H.applicable_articles&&e.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900 mb-1",children:"📜 Van toepassing:"}),e.jsx("p",{className:"text-sm text-blue-800 break-words",children:H.applicable_articles})]}),e.jsxs("div",{className:"bg-white/50 p-3 rounded-lg mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"⚖️ Risicorechtvaardiging:"}),e.jsx("p",{className:"text-sm text-gray-600 break-words",children:H.risk_justification})]}),H.detailed_explanation&&e.jsxs("div",{className:"bg-gray-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"💡 Gedetailleerde uitleg:"}),e.jsx("p",{className:"text-sm text-gray-600 break-words",children:H.detailed_explanation})]})]})]})},K)})})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-orange-50 rounded-2xl p-4 sm:p-8 mb-8 border-2 border-orange-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(Ho,{className:"w-6 h-6 text-orange-600 flex-shrink-0"}),e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900",children:"Hoog-Risico Compliance"})]}),!d.high_risk_compliance||!d.high_risk_compliance.applicable_articles&&(!d.high_risk_compliance.required_measures||d.high_risk_compliance.required_measures.length===0)&&!d.high_risk_compliance.documentation_requirements&&!d.high_risk_compliance.conformity_assessment?e.jsxs("div",{className:"text-center py-8",children:[e.jsx(gt,{className:"w-12 h-12 text-green-600 mx-auto mb-3"}),e.jsx("p",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Niet van toepassing"}),e.jsx("p",{className:"text-gray-600",children:"Er zijn geen hoog-risico AI-systemen geïdentificeerd die specifieke compliance-maatregelen vereisen."})]}):e.jsxs(e.Fragment,{children:[d.high_risk_compliance.applicable_articles&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Van toepassing zijnde artikelen:"}),e.jsx("p",{className:"text-gray-700",children:d.high_risk_compliance.applicable_articles})]}),d.high_risk_compliance.required_measures&&d.high_risk_compliance.required_measures.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Vereiste maatregelen:"}),e.jsx("ul",{className:"space-y-2",children:d.high_risk_compliance.required_measures.map((H,K)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx(gt,{className:"w-5 h-5 text-orange-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:H})]},K))})]}),d.high_risk_compliance.documentation_requirements&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Documentatie vereisten:"}),e.jsx("p",{className:"text-gray-700",children:d.high_risk_compliance.documentation_requirements})]}),d.high_risk_compliance.conformity_assessment&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Conformiteitsbeoordeling:"}),e.jsx("p",{className:"text-gray-700",children:d.high_risk_compliance.conformity_assessment})]})]})]}),d.gdpr_privacy&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"bg-blue-50 rounded-2xl p-4 sm:p-8 mb-8 border-2 border-blue-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(E1,{className:"w-6 h-6 text-blue-600 flex-shrink-0"}),e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900",children:"GDPR & Privacy Implicaties"})]}),d.gdpr_privacy.data_handling&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Gegevensverwerking:"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-700 break-words",children:d.gdpr_privacy.data_handling})]}),d.gdpr_privacy.consent_requirements&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Toestemmingsvereisten:"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-700 break-words",children:d.gdpr_privacy.consent_requirements})]}),d.gdpr_privacy.data_breach_risks&&d.gdpr_privacy.data_breach_risks.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Risico's voor datalekken:"}),e.jsx("ul",{className:"space-y-2",children:d.gdpr_privacy.data_breach_risks.map((H,K)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx(fi,{className:"w-5 h-5 text-red-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:H})]},K))})]}),d.gdpr_privacy.cybersecurity_risks&&d.gdpr_privacy.cybersecurity_risks.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Cybersecurity risico's:"}),e.jsx("ul",{className:"space-y-2",children:d.gdpr_privacy.cybersecurity_risks.map((H,K)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx(Vn,{className:"w-5 h-5 text-red-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:H})]},K))})]}),d.gdpr_privacy.recommendations&&d.gdpr_privacy.recommendations.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Aanbevelingen:"}),e.jsx("ul",{className:"space-y-2",children:d.gdpr_privacy.recommendations.map((H,K)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx(gt,{className:"w-5 h-5 text-green-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:H})]},K))})]})]}),d.training_recommendations&&d.training_recommendations.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"bg-white rounded-2xl p-4 sm:p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx($t,{className:"w-6 h-6 text-purple-600 flex-shrink-0"}),e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900",children:"Aanbevolen Trainingen"})]}),e.jsx("div",{className:"space-y-4",children:d.training_recommendations.map((H,K)=>e.jsxs("div",{className:"p-4 sm:p-5 bg-purple-50 rounded-xl border border-purple-100",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3 mb-3",children:[e.jsxs("div",{className:"flex items-start gap-3 flex-1 min-w-0",children:[e.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-white font-bold text-sm",children:K+1})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"font-bold text-gray-900 text-base sm:text-lg mb-1 break-words",children:H.training_name}),H.target_audience&&e.jsxs("p",{className:"text-sm text-purple-700 font-medium mb-2 break-words",children:["👥 Doelgroep: ",H.target_audience]})]})]}),e.jsx(de,{to:ae("Contact")+`?training=${encodeURIComponent(H.training_name)}`,className:"flex-shrink-0 w-full sm:w-auto px-4 py-2 bg-purple-600 text-white text-sm font-semibold rounded-lg hover:bg-purple-700 transition-colors text-center",children:"Aanvragen"})]}),e.jsxs("div",{className:"space-y-3 sm:ml-11",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"📚 Waarom relevant:"}),e.jsx("p",{className:"text-sm text-gray-600 break-words",children:H.reason})]}),H.expected_outcomes&&e.jsxs("div",{className:"bg-white p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"🎯 Resultaat na training:"}),e.jsx("p",{className:"text-sm text-gray-600 break-words",children:H.expected_outcomes})]})]})]},K))})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"bg-gray-100 rounded-2xl p-6 mb-8 text-center",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Deze analyse is gebaseerd op de EU AI Act verordening"}),e.jsxs("a",{href:"https://eur-lex.europa.eu/legal-content/NL/TXT/HTML/?uri=OJ:L_202401689",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-700 font-semibold",children:["Bekijk de volledige EU AI Act verordening",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.75},className:"bg-white rounded-2xl p-4 sm:p-8 mb-8 border border-gray-100",children:[e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900 mb-6",children:"Hoe 48-7 je kan helpen"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4 sm:gap-6",children:[e.jsxs("div",{className:"p-4 sm:p-6 bg-blue-50 rounded-xl",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2 text-sm sm:text-base",children:"🎯 Compliance Audit & Roadmap"}),e.jsx("p",{className:"text-gray-700 text-xs sm:text-sm break-words",children:"Wij voeren een grondige audit uit van je AI-systemen en stellen een concreet stappenplan op om compliant te worden met de EU AI Act."})]}),e.jsxs("div",{className:"p-4 sm:p-6 bg-purple-50 rounded-xl",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2 text-sm sm:text-base",children:"📋 Documentatie & Implementatie"}),e.jsx("p",{className:"text-gray-700 text-xs sm:text-sm break-words",children:"We helpen je met het opstellen van alle benodigde documentatie, risicobeoordelingen en conformiteitsbeoordelingen."})]}),e.jsxs("div",{className:"p-4 sm:p-6 bg-green-50 rounded-xl",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2 text-sm sm:text-base",children:"🛡️ AI Governance & Toezicht"}),e.jsx("p",{className:"text-gray-700 text-xs sm:text-sm break-words",children:"Implementatie van AI governance frameworks, inclusief menselijk toezicht en risicobeheersystemen."})]}),e.jsxs("div",{className:"p-4 sm:p-6 bg-amber-50 rounded-xl",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2 text-sm sm:text-base",children:"🔄 Doorlopende Compliance"}),e.jsx("p",{className:"text-gray-700 text-xs sm:text-sm break-words",children:"Periodieke evaluaties, updates van documentatie en begeleiding bij nieuwe AI-implementaties."})]})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8},className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Plan een vrijblijvend gesprek"}),e.jsx("p",{className:"text-blue-100 mb-6 text-lg",children:"Bespreek je specifieke situatie met onze AI compliance experts"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(de,{to:ae("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-700 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:["Neem contact op",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:ae("ImpactRapport"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 border-2 border-white text-white font-semibold rounded-xl hover:bg-white/10 transition-all",children:"Doe Impact Rapport"})]})]}),!1]})}):b?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[e.jsx(vh,{className:"w-16 h-16 text-blue-600 mx-auto mb-4"}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Meer informatie nodig"}),e.jsx("p",{className:"text-gray-600",children:"Beantwoord de volgende vragen voor een betere analyse"})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-100",children:[e.jsx("div",{className:"space-y-6",children:y.map((H,K)=>e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:H}),e.jsx(pt,{placeholder:"Jouw antwoord...",className:"min-h-24"})]},K))}),e.jsxs("div",{className:"flex gap-4 mt-6",children:[e.jsx(se,{variant:"outline",onClick:()=>{j(!1),x([])},className:"flex-1",children:"Annuleren"}),e.jsx(se,{onClick:q,className:"flex-1 bg-blue-600 hover:bg-blue-700",children:"Analyseer"})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] mb-8",children:"EU AI Act - wat zijn de gevolgen voor jouw bedrijf?"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-2xl mx-auto",children:"Ontdek welke verplichtingen van toepassing zijn op jouw bedrijf"})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:e.jsxs("form",{onSubmit:z,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Website URL (optioneel)"}),e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:r.url,onChange:H=>i({...r,url:H.target.value}),className:"text-lg py-6"})]}),e.jsx("div",{className:"text-center text-gray-500 font-medium",children:"OF"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Beschrijf wat je bedrijf doet"}),e.jsx(pt,{placeholder:"Wij zijn een online retailer die kleding verkoopt via een webshop...",value:r.description,onChange:H=>i({...r,description:H.target.value}),className:"min-h-32"})]}),e.jsx(se,{type:"submit",disabled:!r.url&&!r.description,className:"w-full py-6 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold text-lg",children:e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(Vn,{className:"w-5 h-5"}),"Start EU AI Act Check",e.jsx($e,{className:"w-5 h-5"})]})}),e.jsx("p",{className:"text-xs text-gray-500 text-center",children:"✓ 100% gratis • ✓ Gebaseerd op officiële EU AI Act • ✓ Praktische aanbevelingen"})]})}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mt-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx(Ho,{className:"w-8 h-8 text-orange-600 mb-3"}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Risiconiveaus"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Classificatie volgens EU AI Act: onaanvaardbaar, hoog, beperkt, minimaal risico"})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx($t,{className:"w-8 h-8 text-blue-600 mb-3"}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Compliance"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Specifieke vereisten voor documentatie, conformiteit en menselijk toezicht"})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx(E1,{className:"w-8 h-8 text-purple-600 mb-3"}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"GDPR Integratie"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Combinatie van AI Act en GDPR vereisten voor gegevensbescherming"})]})]})]})})}function Cee(){return e.jsx("div",{className:"pt-20 min-h-screen bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e.jsx(Vn,{className:"w-12 h-12 text-[#FAB868]"}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F]",children:"EU AI Act Checker"})]}),e.jsxs("div",{className:"prose max-w-none",children:[e.jsx("h2",{children:"Overzicht"}),e.jsx("p",{children:"De EU AI Act Checker analyseert een bedrijf tegen de EU AI Act regelgeving en geeft compliance advies, inclusief risiconiveaus, vereiste maatregelen en cybersecurity overwegingen."}),e.jsx("h2",{children:"Architectuur"}),e.jsx("h3",{children:"Frontend: pages/EuAiActChecker.jsx"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Framework:"})," React met multi-step flow"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Steps:"}),e.jsxs("ol",{children:[e.jsx("li",{children:"Initial input (URL of beschrijving)"}),e.jsx("li",{children:"Uitgebreide vragenlijst (questionnaire)"}),e.jsx("li",{children:"Analyzing (30-45 seconden)"}),e.jsx("li",{children:"Results met compliance analyse"})]})]})]}),e.jsx("h3",{children:"Backend: functions/analyzeEuAiAct.js"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Runtime:"})," Deno Deploy"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"LLM:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Features:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Website scraping"}),e.jsx("li",{children:"Vragenlijst-gedreven analyse"}),e.jsx("li",{children:"EU AI Act compliance mapping"}),e.jsx("li",{children:"GDPR + Cybersecurity integratie"})]})]})]}),e.jsx("h2",{children:"Functionaliteiten"}),e.jsx("h3",{children:"1. Vragenlijst Categorieën"}),e.jsx("h4",{children:"Bedrijfscontext"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Sector: retail, financial, HR, healthcare, industrie, marketing, IT, overheid, anders"}),e.jsx("li",{children:"Doelgroep: consumenten, bedrijven, beide"})]}),e.jsx("h4",{children:"AI Gebruik"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Is AI actief in gebruik?"}),e.jsx("li",{children:"Toepassingsgebieden: klantenservice, marketing, analyse, besluitvorming, product, HR, anders"})]}),e.jsx("h4",{children:"Impact op Mensen"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Neemt AI beslissingen met directe gevolgen?"}),e.jsx("li",{children:"Is er menselijk toezicht?"})]}),e.jsx("h4",{children:"Gevoelige Toepassingen"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Werving & selectie"}),e.jsx("li",{children:"Beoordeling medewerkers"}),e.jsx("li",{children:"Krediet / financiële beoordeling"}),e.jsx("li",{children:"Fraude-detectie"}),e.jsx("li",{children:"Toegang tot diensten"}),e.jsx("li",{children:"Biometrie (gezicht, stem, gedrag)"})]}),e.jsx("h4",{children:"Data & Privacy"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Verwerkt AI persoonsgegevens?"}),e.jsx("li",{children:"Gevoelige persoonsgegevens (gezondheid, etniciteit, biometrie)?"})]}),e.jsx("h4",{children:"Governance"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Formele verantwoordelijkheid voor AI?"}),e.jsx("li",{children:"Periodieke risico-evaluatie?"}),e.jsx("li",{children:"Gebruiker notificatie over AI-inzet?"})]}),e.jsx("h3",{children:"2. Analyse Output"}),e.jsx("h4",{children:"Bedrijfsoverzicht"}),e.jsx("p",{children:"Automatisch gegenereerde beschrijving van sector en activiteiten"}),e.jsx("h4",{children:"Geïdentificeerde AI Toepassingen"}),e.jsx("p",{children:"Per applicatie:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Naam:"})," Specifieke toepassing"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Risk Level:"})," Onaanvaardbaar / Hoog / Beperkt / Minimaal"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Beschrijving:"})," Wat het doet"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Risico Rechtvaardiging:"})," Waarom dit risiconiveau"]})]}),e.jsx("h4",{children:"Hoog-Risico Compliance"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Van toepassing zijnde EU AI Act artikelen"}),e.jsx("li",{children:"Vereiste maatregelen"}),e.jsx("li",{children:"Documentatie-eisen"}),e.jsx("li",{children:"Conformiteitsbeoordelingen"}),e.jsxs("li",{children:[e.jsx("em",{children:'"Niet van toepassing"'})," als geen hoog-risico systemen"]})]}),e.jsx("h4",{children:"GDPR & Cybersecurity"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Data Handling:"})," Hoe gegevens worden verwerkt"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Consent Requirements:"})," Toestemmingsvereisten"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Data Breach Risks:"})," Specifieke datalekrisico's"]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-red-600",children:"Cybersecurity Risks:"})," Klant- en bedrijfsgegevens vatbaar voor hacks"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Recommendations:"})," Praktische GDPR + security aanbevelingen"]})]}),e.jsx("h2",{children:"LLM Prompt Structuur"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto",children:`Je bent een EU AI Act compliance expert en adviseert 
Nederlandse bedrijven. Analyseer het bedrijf en geef 
praktisch compliance advies.

INPUT:
- Website content: {website_content}
- Beschrijving: {company_description}
- Vragenlijst: {questionnaire_formatted}

EU AI ACT CONTEXT:
- Onaanvaardbaar risico: VERBODEN
  (social scoring, manipulatie, biometrie)
- Hoog risico: STRIKTE EISEN
  (CV screening, kredietbeoordeling, toegang diensten)
- Beperkt risico: TRANSPARANTIE
  (chatbots, deepfakes)
- Minimaal risico: GEEN RESTRICTIES

BELANGRIJKE INSTRUCTIES:
- Wees specifiek, gebruik vragenlijst voor context
- Risk levels: Onaanvaardbaar/Hoog/Beperkt/Minimaal
- Cybersecurity: vermeld expliciet dat klant- en 
  bedrijfsgegevens vatbaar kunnen zijn voor hacks
- Praktische aanbevelingen, geen juridisch jargon
- Als geen hoog-risico: laat applicable_articles leeg`}),e.jsx("h3",{children:"JSON Schema Output"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto text-sm",children:`{
  "company_name": "string",
  "company_overview": "string",
  "identified_ai_applications": [
    {
      "application_name": "string",
      "description": "string",
      "risk_level": "Onaanvaardbaar|Hoog|Beperkt|Minimaal",
      "risk_justification": "string"
    }
  ],
  "high_risk_compliance": {
    "applicable_articles": "string|null",
    "required_measures": ["string"],
    "documentation_requirements": "string",
    "conformity_assessment": "string"
  },
  "gdpr_privacy": {
    "data_handling": "string",
    "consent_requirements": "string",
    "data_breach_risks": ["string"],
    "cybersecurity_risks": ["string"],
    "recommendations": ["string"]
  }
}`}),e.jsx("h2",{children:"Risk Level Kleuren & Icons"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-red-50 border-red-200",children:[e.jsx(Ho,{className:"w-6 h-6 text-red-600"}),e.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-800 border border-red-200 rounded text-sm font-semibold",children:"Onaanvaardbaar"}),e.jsx("span",{className:"text-sm text-gray-600",children:"VERBODEN systemen"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-orange-50 border-orange-200",children:[e.jsx(Ho,{className:"w-6 h-6 text-orange-600"}),e.jsx("span",{className:"px-3 py-1 bg-orange-100 text-orange-800 border border-orange-200 rounded text-sm font-semibold",children:"Hoog"}),e.jsx("span",{className:"text-sm text-gray-600",children:"Strikte compliance eisen"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-yellow-50 border-yellow-200",children:[e.jsx(vh,{className:"w-6 h-6 text-yellow-600"}),e.jsx("span",{className:"px-3 py-1 bg-yellow-100 text-yellow-800 border border-yellow-200 rounded text-sm font-semibold",children:"Beperkt"}),e.jsx("span",{className:"text-sm text-gray-600",children:"Transparantie vereist"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-green-50 border-green-200",children:[e.jsx(Vn,{className:"w-6 h-6 text-green-600"}),e.jsx("span",{className:"px-3 py-1 bg-green-100 text-green-800 border border-green-200 rounded text-sm font-semibold",children:"Minimaal"}),e.jsx("span",{className:"text-sm text-gray-600",children:"Geen restricties"})]})]}),e.jsx("h2",{children:"Questionnaire Risk Indicators"}),e.jsx("p",{children:"Automatisch gedetecteerd:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:["AI neemt beslissingen: ",e.jsx("code",{children:"ai_decisions === 'yes'"})]}),e.jsxs("li",{children:["Geen menselijk toezicht: ",e.jsx("code",{children:"human_oversight === 'no'"})]}),e.jsx("li",{children:"Hoog-risico processen: werving, beoordeling, krediet, fraude, biometrie"}),e.jsxs("li",{children:["Gevoelige persoonsgegevens: ",e.jsx("code",{children:"sensitive_personal_data === 'yes'"})]}),e.jsxs("li",{children:["Geen AI verantwoordelijke: ",e.jsx("code",{children:"ai_responsible === 'no'"})]}),e.jsxs("li",{children:["Geen risico-evaluatie: ",e.jsx("code",{children:"risk_evaluation === 'no'"})]})]}),e.jsx("h2",{children:"Extra Features"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Email Functie:"})," Verstuur volledige analyse naar gebruiker"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"EU AI Act Link:"})," Directe link naar officiële verordening (EUR-Lex)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:'"Doe uitgebreide EU AI Act check" Button:'})," Prominent, opent in nieuw tabblad"]}),e.jsxs("li",{children:[e.jsx("strong",{children:'"Hoe 48-7 kan helpen":'})," 4 diensten showcase (Audit, Documentatie, Governance, Doorlopende Compliance)"]})]}),e.jsx("h2",{children:"LLM Gebruik"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Provider:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Context:"})," Website content + company description + questionnaire"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Special Features:"})," Vragenlijst wordt geformatteerd als readable text, Risk signals worden extracted"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Output:"})," Gestructureerde JSON"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Taal:"})," Nederlands (geforceerd)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Verwerkingstijd:"})," 30-45 seconden"]})]}),e.jsx("h2",{children:'"Niet van toepassing" Logic'}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg",children:`// High-Risk Compliance sectie toont:
if (geen applicable_articles EN 
    geen required_measures EN 
    geen documentation_requirements EN 
    geen conformity_assessment) {
  
  // Toon: CheckCircle icon + 
  // "Niet van toepassing" bericht
}`}),e.jsx("h2",{children:"Files"}),e.jsxs("ul",{className:"font-mono text-sm",children:[e.jsx("li",{children:"pages/EuAiActChecker.jsx - Frontend component (multi-step)"}),e.jsx("li",{children:"functions/analyzeEuAiAct.js - Backend analysis function"})]}),e.jsx("h2",{children:"Integraties"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Impact Report Link:"})," Cross-promote in CTA section"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Contact Links:"})," Pre-filled met training naam"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"EU AI Act Verordening:"})," Externe link naar EUR-Lex (nieuwe tab)"]})]})]})]})})})}function Eee(){return e.jsxs("section",{className:"relative h-[600px] overflow-hidden",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=2000&auto=format&fit=crop",alt:"AI Team",className:"absolute inset-0 w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0D0D0F]/90 via-[#0D0D0F]/70 to-transparent"}),e.jsx("div",{className:"relative h-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"max-w-3xl text-white",children:[e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold leading-tight mb-6",children:["Van 24-7 naar"," ",e.jsx("span",{className:"text-[#FAB868]",children:"48-7"})]}),e.jsx("p",{className:"text-2xl text-gray-200 mb-8 leading-relaxed",children:"Verdubbel je productiviteit met AI. We ontwikkelen de AI strategie, bouwen de software én trainen. Anderen praten, wij leveren."}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:e.jsx(de,{to:ae("AIImpactRapport"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:"Check wat AI jou oplevert"})})]})})]})}function Tee(){const t=[{name:"TechCorp",logo:"TC"},{name:"InnovateBV",logo:"IB"},{name:"DigitalFirst",logo:"DF"},{name:"SmartSolutions",logo:"SS"},{name:"FutureTech",logo:"FT"},{name:"DataDriven",logo:"DD"}],{data:n=[]}=Fe({queryKey:["reviews"],queryFn:()=>ce.entities.Review.filter({active:!0},"sort_order"),initialData:[]});return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsx("p",{className:"text-sm font-medium text-gray-500 uppercase tracking-wider mb-8",children:"Vertrouwd door ambitieuze MKB-bedrijven"}),e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-8 lg:gap-16",children:t.map((r,i)=>e.jsx(Z.div,{initial:{opacity:0,scale:.8},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:i*.1},className:"group",children:e.jsx("div",{className:"w-20 h-20 bg-gray-100 rounded-2xl flex items-center justify-center text-gray-400 font-bold text-xl group-hover:bg-blue-50 group-hover:text-blue-600 transition-all",children:r.logo})},i))})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-r from-gray-900 to-gray-800 rounded-3xl p-8 md:p-12 mb-16",children:e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 text-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"5+"}),e.jsx("p",{className:"text-gray-400",children:"Jaar ervaring"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"50+"}),e.jsx("p",{className:"text-gray-400",children:"Projecten afgerond"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"€5-20M"}),e.jsx("p",{className:"text-gray-400",children:"MKB omzet focus"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"100%"}),e.jsx("p",{className:"text-gray-400",children:"Full-service"})]})]})}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:n.map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.15},className:"bg-gray-50 rounded-2xl p-8 hover:bg-white hover:shadow-xl transition-all border border-transparent hover:border-gray-100",children:[e.jsx("div",{className:"flex items-center gap-1 mb-4",children:[...Array(r.rating)].map((s,a)=>e.jsx(Zc,{className:"w-5 h-5 fill-yellow-400 text-yellow-400"},a))}),e.jsxs("p",{className:"text-gray-700 mb-6 leading-relaxed",children:['"',r.text,'"']}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-600 to-blue-700 rounded-full flex items-center justify-center text-white font-semibold",children:r.author.split(" ").map(s=>s[0]).join("")}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-gray-900",children:r.author}),e.jsx("p",{className:"text-sm text-gray-500",children:r.role})]})]})]},i))})]})})}function Pee(){const{data:t=[]}=Fe({queryKey:["homeServices"],queryFn:()=>ce.entities.HomeService.filter({active:!0},"sort_order"),initialData:[]}),n={Lightbulb:Wi,Code2:SA,Headphones:cf,GraduationCap:pr,Sparkles:At};return e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Wat is 48-7?"}),e.jsx("p",{className:"text-slate-600 mx-auto text-2xl max-w-3xl",children:"Full-service AI voor MKB"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-12",children:t.map((r,i)=>{const s=n[r.icon]||At;return e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},children:e.jsxs(de,{to:r.link_url||"#",className:"group block bg-[#F4F4F4] rounded-3xl p-12 hover:bg-white hover:shadow-lg transition-all border-2 border-transparent hover:border-[#FAB868] h-full",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mb-8 group-hover:scale-110 transition-transform",children:e.jsx(s,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:r.title}),e.jsx("p",{className:"text-[#292828] mb-8 text-xl leading-relaxed",children:r.description}),e.jsxs("div",{className:"flex items-center gap-2 text-[#FAB868] font-semibold group-hover:gap-3 transition-all text-lg",children:["Meer info",e.jsx($e,{className:"w-6 h-6"})]})]})},r.id)})})]})})}function Oee(){const{data:t=[]}=Fe({queryKey:["processSteps"],queryFn:()=>ce.entities.ProcessStep.filter({active:!0},"step_number"),initialData:[]}),n={Search:mi,Map:CD,Rocket:KD,Headphones:cf},r=i=>{const s=["blue","indigo","purple","pink"];return s[(i-1)%s.length]};return e.jsx("section",{className:"py-24 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Hoe we werken"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Een bewezen aanpak die zorgt voor snelle resultaten en duurzame impact"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"hidden lg:block absolute top-1/2 left-0 right-0 h-0.5 bg-gradient-to-r from-blue-200 via-purple-200 to-pink-200 -translate-y-1/2"}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:t.map((i,s)=>{const a=n[i.icon]||mi,o=r(i.step_number);return e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:s*.15},className:"relative",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-100 hover:shadow-xl hover:border-gray-200 transition-all h-full",children:[e.jsx("div",{className:"absolute -top-4 left-8",children:e.jsx("div",{className:"w-8 h-8 bg-gradient-to-br rounded-lg flex items-center justify-center text-white font-bold text-sm shadow-lg",style:{background:o==="blue"?"linear-gradient(135deg, #3b82f6, #2563eb)":o==="indigo"?"linear-gradient(135deg, #6366f1, #4f46e5)":o==="purple"?"linear-gradient(135deg, #a855f7, #9333ea)":"linear-gradient(135deg, #ec4899, #db2777)"},children:String(i.step_number).padStart(2,"0")})}),e.jsx("div",{className:"w-14 h-14 bg-gray-100 rounded-2xl flex items-center justify-center mb-6 mt-4",children:e.jsx(a,{className:"w-7 h-7 text-gray-700"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3",children:i.title}),e.jsx("p",{className:"text-gray-600 leading-relaxed",children:i.description})]}),s<t.length-1&&e.jsx("div",{className:"hidden lg:flex absolute top-1/2 -right-4 z-10 w-8 h-8 bg-white rounded-full items-center justify-center border border-gray-200 -translate-y-1/2",children:e.jsx($e,{className:"w-4 h-4 text-gray-400"})})]},i.id)})})]})]})})}function Dee(){const{data:t=[]}=Fe({queryKey:["homeBenefits"],queryFn:()=>ce.entities.HomeBenefit.filter({active:!0},"sort_order"),initialData:[]}),n={Briefcase:Qa,Layers:wu,Building2:Ya,Award:k0};return e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Waarom 48-7?"}),e.jsx("p",{className:"text-2xl text-[#292828] max-w-2xl mx-auto",children:"Wat ons onderscheidt"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-12",children:t.map((r,i)=>{const s=n[r.icon]||k0;return e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"bg-white rounded-3xl p-12 hover:shadow-lg transition-all",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mb-8",children:e.jsx(s,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:r.title}),e.jsx("p",{className:"text-xl text-[#292828] mb-8 leading-relaxed",children:r.description}),r.tags&&r.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-4",children:r.tags.map((a,o)=>e.jsxs("div",{className:"flex items-center gap-2 text-base text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-5 h-5 text-[#FAB868]"}),a]},o))})]},r.id)})})]})})}function Iee(){const{data:t=[]}=Fe({queryKey:["featuredCases"],queryFn:()=>ce.entities.CaseStudy.filter({published:!0,featured_on_homepage:!0},"sort_order"),initialData:[]});return e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row sm:items-end justify-between gap-4 mb-12",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Resultaten die spreken"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl",children:"Bekijk hoe wij MKB-bedrijven helpen hun productiviteit te verdubbelen"})]}),e.jsxs(de,{to:ae("Cases"),className:"flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all shrink-0",children:["Bekijk alle cases",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:t.map((n,r)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.15},children:e.jsxs(de,{to:ae("Cases")+`?case=${n.slug}`,className:"group block bg-white rounded-2xl overflow-hidden hover:shadow-xl transition-all border border-gray-100",children:[n.featured_image_url&&e.jsxs("div",{className:"relative h-48 overflow-hidden",children:[e.jsx("img",{src:n.featured_image_url,alt:n.client_name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),e.jsx("div",{className:"absolute bottom-4 left-4 right-4",children:e.jsx("span",{className:"inline-block px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-white text-sm",children:n.industry})})]}),e.jsxs("div",{className:"p-6",children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors",children:n.client_name}),n.homepage_text&&e.jsx("p",{className:"text-gray-600 text-sm mb-4 line-clamp-2",children:n.homepage_text}),n.homepage_usp&&e.jsxs("div",{className:"flex items-center gap-2 text-green-600 font-semibold",children:[e.jsx(Ki,{className:"w-5 h-5"}),n.homepage_usp]})]})]})},n.id))})]})})}const Ree={Basis:"bg-blue-100 text-blue-700",Gevorderd:"bg-purple-100 text-purple-700",Leiderschap:"bg-emerald-100 text-emerald-700",Technisch:"bg-orange-100 text-orange-700"};function Fee(){const{data:t=[]}=Fe({queryKey:["trainings-homepage"],queryFn:()=>ce.entities.Training.filter({show_on_homepage:!0,active:!0})});return t.length===0?null:e.jsx("section",{className:"py-24 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-purple-100 rounded-full text-purple-700 text-sm font-medium mb-6",children:[e.jsx(pr,{className:"w-4 h-4"}),"Start vandaag met AI"]}),e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Populaire Trainingen"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Maak je team AI-ready met onze praktijkgerichte trainingen"})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:t.map((n,r)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.15},className:"group bg-gray-50 rounded-2xl p-8 hover:bg-white hover:shadow-xl transition-all border border-transparent hover:border-gray-100",children:[e.jsx("div",{className:`inline-block px-3 py-1 rounded-full text-sm font-medium mb-4 ${Ree[n.category]||"bg-gray-100 text-gray-700"}`,children:n.category}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-1 group-hover:text-blue-600 transition-colors",children:n.title}),e.jsx("p",{className:"text-gray-600 mb-6 leading-relaxed",children:n.description}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-500 mb-4",children:[n.duration&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(yn,{className:"w-4 h-4"}),n.duration]}),n.target_audience&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(_n,{className:"w-4 h-4"}),n.target_audience]})]}),e.jsxs(de,{to:ae("TrainingDetail")+`?slug=${n.slug}`,className:"inline-flex items-center gap-1 text-sm font-semibold text-blue-600 hover:text-blue-700 transition-colors",children:["Meer info ",e.jsx($e,{className:"w-4 h-4"})]})]},n.id))}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsxs(de,{to:ae("Training"),className:"inline-flex items-center gap-2 px-8 py-4 bg-gradient-to-r from-blue-600 to-blue-700 text-white font-semibold rounded-2xl hover:shadow-xl hover:shadow-blue-500/30 transition-all hover:-translate-y-1",children:["Bekijk alle trainingen",e.jsx($e,{className:"w-5 h-5"})]}),e.jsxs(de,{to:ae("TrainingAdvisor"),className:"inline-flex items-center gap-2 px-8 py-4 bg-white border-2 border-gray-200 text-gray-900 font-semibold rounded-2xl hover:border-purple-300 hover:bg-purple-50 transition-all",children:[e.jsx(At,{className:"w-5 h-5 text-purple-600"}),"Training Advisor"]})]})]})})}function Mee(){return e.jsx("section",{className:"py-32 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"bg-[#FAB868] rounded-3xl p-16 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-[#0D0D0F] mb-6 leading-tight",children:"Hoever is jouw bedrijf klaar voor AI? Ontdek het in 2 minuten."}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/70 mb-12 max-w-3xl mx-auto",children:"Ontvang een persoonlijk rapport."}),e.jsxs(de,{to:ae("AIQuiz"),className:"inline-flex items-center gap-3 px-12 py-6 bg-[#0D0D0F] text-white font-bold rounded-full hover:bg-[#1a1a1c] transition-all text-xl",children:[e.jsx(At,{className:"w-6 h-6"}),"Start de AI Quiz",e.jsx($e,{className:"w-6 h-6"})]})]})})})})}function Lee(){const{data:t=[]}=Fe({queryKey:["teamMembers"],queryFn:()=>ce.entities.TeamMember.filter({active:!0,show_on_homepage:!0},"sort_order"),initialData:[]});return e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-6",children:"Ontmoet The AI Professionals"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8 leading-relaxed",children:"Ons team combineert jaren ervaring in het bedrijfsleven met diepgaande AI expertise. Wij begrijpen de uitdagingen van MKB en weten hoe AI deze kan oplossen."}),e.jsx("p",{className:"text-gray-600 mb-8",children:"Van strategen tot engineers, van trainers tot consultants — samen hebben we één missie: jouw productiviteit verdubbelen met AI."}),e.jsxs(de,{to:ae("OverOns"),className:"inline-flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all",children:["Meer over ons team",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsx(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"grid grid-cols-2 gap-4",children:t.map((n,r)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},className:"group relative bg-white rounded-2xl overflow-hidden hover:shadow-xl transition-all",children:[n.image_url&&e.jsx("div",{className:"aspect-square overflow-hidden",children:e.jsx("img",{src:n.image_url,alt:n.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity flex items-end p-4",children:e.jsxs("div",{className:"text-white",children:[e.jsx("p",{className:"font-bold",children:n.name}),e.jsx("p",{className:"text-sm text-white/80",children:n.role})]})}),e.jsxs("div",{className:"p-4",children:[e.jsx("p",{className:"font-semibold text-gray-900",children:n.name}),e.jsx("p",{className:"text-sm text-gray-500",children:n.role})]})]},n.id))})]})})})}function Bee(){const[t,n]=I.useState(""),[r,i]=I.useState(!1),[s,a]=I.useState(!1),[o,c]=I.useState(""),d=async f=>{f.preventDefault(),c(""),i(!0);try{if((await ce.entities.NewsletterSubscriber.filter({email:t})).length>0){c("Je bent al ingeschreven!"),i(!1);return}await ce.entities.NewsletterSubscriber.create({email:t,subscription_date:new Date().toISOString(),is_active:!0,source:"homepage"}),a(!0),n("")}catch{c("Er ging iets mis. Probeer het later opnieuw.")}finally{i(!1)}},h=[{title:"5 AI trends die MKB in 2024 niet mag missen",excerpt:"Van AI agents tot voice assistants — deze trends gaan jouw industrie veranderen.",date:"15 jan 2024",readTime:"5 min",category:"Trends",image:"https://images.unsplash.com/photo-1677442136019-21780ecad995?w=600&auto=format&fit=crop"},{title:"Hoe je ChatGPT effectief inzet voor klantenservice",excerpt:"Praktische tips om AI-powered support te implementeren zonder je klanten te frustreren.",date:"12 jan 2024",readTime:"4 min",category:"Tips",image:"https://images.unsplash.com/photo-1531746790731-6c087fecd65a?w=600&auto=format&fit=crop"},{title:"ROI van AI: zo bereken je de business case",excerpt:"Concrete formules en benchmarks om je AI investering te onderbouwen.",date:"8 jan 2024",readTime:"6 min",category:"Strategie",image:"https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=600&auto=format&fit=crop"}];return e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-br from-gray-900 to-gray-800 rounded-3xl p-8 sm:p-12 mb-16 text-center",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Blijf op de hoogte"}),e.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Ontvang wekelijks de beste AI insights"}),s?e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"inline-flex items-center gap-2 px-6 py-3 bg-green-600 text-white rounded-full font-semibold",children:[e.jsx(gt,{className:"w-5 h-5"}),"Je bent ingeschreven!"]}):e.jsxs("form",{onSubmit:d,className:"max-w-md mx-auto",children:[e.jsxs("div",{className:"flex gap-3",children:[e.jsx(me,{type:"email",value:t,onChange:f=>n(f.target.value),placeholder:"je@email.nl",required:!0,className:"flex-1 h-14 px-6 bg-white text-gray-900 rounded-full"}),e.jsx(se,{type:"submit",disabled:r,className:"h-14 px-8 bg-[#FAB868] hover:bg-[#E5A04D] text-gray-900 font-semibold rounded-full",children:r?"...":"Aanmelden"})]}),o&&e.jsx("p",{className:"text-red-400 text-sm mt-2",children:o})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row sm:items-end justify-between gap-4 mb-12",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Laatste artikelen"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Insights, tips en trends uit de wereld van AI"})]}),e.jsxs(de,{to:ae("Blog"),className:"flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all shrink-0",children:["Alle artikelen",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:h.map((f,m)=>e.jsx(Z.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:m*.15},children:e.jsxs(de,{to:ae("Blog"),className:"group block",children:[e.jsxs("div",{className:"relative rounded-2xl overflow-hidden mb-4 aspect-[16/10]",children:[e.jsx("img",{src:f.image,alt:f.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),e.jsx("div",{className:"absolute top-4 left-4",children:e.jsx("span",{className:"px-3 py-1 bg-white/90 backdrop-blur-sm rounded-full text-sm font-medium text-gray-900",children:f.category})})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-gray-500 mb-3",children:[e.jsx("span",{children:f.date}),e.jsx("span",{children:"•"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(yn,{className:"w-4 h-4"}),f.readTime]})]}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors",children:f.title}),e.jsx("p",{className:"text-gray-600 line-clamp-2",children:f.excerpt})]})},m))})]})})}function zee(){const{data:t=[]}=Fe({queryKey:["homeCTAs"],queryFn:()=>ce.entities.HomeCTA.filter({active:!0},"sort_order"),initialData:[]}),n={Sparkles:At,Calendar:_i,GraduationCap:pr};return e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-900 mb-6",children:"Klaar om je productiviteit te verdubbelen?"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Kies de route die het beste bij je past. Of je nu eerst wilt verkennen of direct aan de slag wilt."})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:t.map((r,i)=>{const s=n[r.icon]||At;return e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},children:e.jsxs(de,{to:r.button_url,className:`group block rounded-2xl p-8 transition-all hover:-translate-y-1 h-full ${r.featured?"bg-gradient-to-br from-blue-600 to-blue-700 text-white hover:shadow-2xl hover:shadow-blue-500/30":"bg-white border-2 border-gray-200 hover:border-blue-300 hover:shadow-xl"}`,children:[e.jsx("div",{className:`w-14 h-14 rounded-2xl flex items-center justify-center mb-6 ${r.featured?"bg-white/10":"bg-gray-100 group-hover:bg-blue-50 transition-colors"}`,children:e.jsx(s,{className:`w-7 h-7 ${r.featured?"text-white":"text-gray-700 group-hover:text-blue-600 transition-colors"}`})}),e.jsx("h3",{className:`text-2xl font-bold mb-3 ${r.featured?"text-white":"text-gray-900"}`,children:r.title}),e.jsx("p",{className:`mb-6 ${r.featured?"text-blue-100":"text-gray-600"}`,children:r.description}),e.jsxs("div",{className:`flex items-center gap-2 font-semibold group-hover:gap-3 transition-all ${r.featured?"text-white":"text-blue-600"}`,children:[r.button_text,e.jsx($e,{className:"w-5 h-5"})]})]})},r.id)})})]})})}function qee(){const[t,n]=I.useState(!1),[r,i]=I.useState(""),[s,a]=I.useState(!1),o={title:"AI in 48 seconden - 6 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",short_description:"Vandaag: OpenAI lanceert GPT-5, Google's nieuwe AI chip breekt records, en EU stelt strengere AI regelgeving vast."},c=d=>{d.preventDefault(),console.log("WhatsApp subscription:",r),a(!0),setTimeout(()=>{n(!1),a(!1),i("")},2e3)};return e.jsxs("section",{className:"py-12 bg-[#0D0D0F]",children:[e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-8",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-3",children:"AI nieuws van vandaag in 48 seconden"}),e.jsx("p",{className:"text-lg text-gray-400",children:o.short_description})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"max-w-4xl mx-auto mb-8",children:e.jsx("div",{className:"relative aspect-video rounded-3xl overflow-hidden bg-gray-900 shadow-2xl",children:e.jsx("iframe",{src:o.video_url,title:o.title,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"max-w-3xl mx-auto",children:[e.jsxs("div",{className:"bg-[#1a1a1c] rounded-2xl p-6 mb-4",children:[e.jsx("h3",{className:"text-lg font-bold text-white mb-4 text-center",children:"Volg dagelijkse AI nieuws op onze socials"}),e.jsxs("div",{className:"flex justify-center gap-2 mb-4",children:[e.jsx("a",{href:"https://linkedin.com/company/48-7",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#F4F4F4] rounded-xl flex items-center justify-center hover:bg-[#FAB868] transition-colors",children:e.jsx(Hs,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("a",{href:"https://instagram.com/48-7",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#F4F4F4] rounded-xl flex items-center justify-center hover:bg-[#FAB868] transition-colors",children:e.jsx(Xc,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("a",{href:"https://youtube.com/@48-7",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#F4F4F4] rounded-xl flex items-center justify-center hover:bg-[#FAB868] transition-colors",children:e.jsx(eu,{className:"w-5 h-5 text-[#0D0D0F]"})})]}),e.jsxs("button",{onClick:()=>n(!0),className:"w-full flex items-center justify-center gap-2 px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-bold rounded-xl hover:bg-[#E5A04D] transition-all",children:[e.jsx($o,{className:"w-5 h-5"}),"Ontvang dagelijks via WhatsApp"]}),e.jsx("p",{className:"text-xs text-gray-400 text-center mt-3",children:"✓ Elke werkdag • ✓ Geen spam • ✓ Afmelden wanneer je wilt"})]}),e.jsx("div",{className:"text-center",children:e.jsxs(de,{to:ae("Nieuws"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-xl hover:bg-[#E5A04D] transition-all",children:[e.jsx(S0,{className:"w-5 h-5"}),"Bekijk eerdere afleveringen en meer AI nieuws"]})})]})]}),t&&e.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm z-[200] flex items-center justify-center p-4",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"bg-white rounded-3xl p-6 sm:p-8 max-w-md w-full relative max-h-[90vh] overflow-y-auto",children:[e.jsx("button",{onClick:()=>n(!1),className:"absolute top-4 right-4 p-2 rounded-full hover:bg-gray-100 transition-colors",children:e.jsx(Ht,{className:"w-5 h-5"})}),s?e.jsxs("div",{className:"text-center py-8",children:[e.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx($o,{className:"w-8 h-8 text-green-600"})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Succesvol ingeschreven!"}),e.jsx("p",{className:"text-gray-600",children:"Je ontvangt vanaf morgen dagelijks het AI-nieuws via WhatsApp."})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-[#25D366] rounded-full flex items-center justify-center",children:e.jsx($o,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"WhatsApp Abonnement"}),e.jsx("p",{className:"text-gray-600",children:"Dagelijks AI-nieuws in 48 seconden"})]})]}),e.jsxs("form",{onSubmit:c,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Telefoonnummer *"}),e.jsx(me,{type:"tel",placeholder:"+31 6 12345678",value:r,onChange:d=>i(d.target.value),required:!0,className:"text-lg py-6 rounded-xl"})]}),e.jsx("p",{className:"text-sm text-gray-500",children:'Door je in te schrijven ga je akkoord met het ontvangen van dagelijkse WhatsApp berichten. Je kunt je op elk moment afmelden door "STOP" te sturen.'}),e.jsx(se,{type:"submit",className:"w-full py-6 bg-[#25D366] text-white hover:bg-[#20BA5A] font-bold text-lg",children:"Abonneer op WhatsApp"})]})]})]})})]})}const eA=[{name:"Allianz",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/07b60a1e1_logo_allianz.png"},{name:"Gemeente Groningen",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/1c589ae06_logo_gemeente_groningen.png"},{name:"HipHot",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/fb80e3140_logo_hiphot.png"},{name:"Justified Bags",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/9a66b2f93_logo_justified_bags.png"},{name:"Ministerie van Volksgezondheid",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/3061bc4f0_logo_min_volksgezondheid.png"},{name:"New Nexus",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/0aee67b2a_logo_new_nexus.png"},{name:"New Rebels",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/a036e1fba_logo_new_rebels.png"},{name:"Parfum.nl",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/b0436eed7_logo_parfum.png"},{name:"Purdey",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/3b7befa30_logo_purdey.png"},{name:"T-Mobile",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/61c5e5fb1_logo_tmobile.png"},{name:"Topdrinks",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/2923a5631_logo_topdrinks.png"},{name:"UMCG",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/6ec585700_logo_umcg.png"}];function z6(){const t=[...eA,...eA];return e.jsxs("section",{className:"py-14 bg-white border-t border-gray-100 overflow-hidden",children:[e.jsx("p",{className:"text-center text-xs font-medium uppercase tracking-widest text-gray-500 mb-10",children:"Samenwerkingen waar we trots op zijn"}),e.jsxs("div",{className:"relative w-full",children:[e.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-24 z-10 pointer-events-none",style:{background:"linear-gradient(to right, white, transparent)"}}),e.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-24 z-10 pointer-events-none",style:{background:"linear-gradient(to left, white, transparent)"}}),e.jsx("div",{className:"flex gap-16 items-center animate-ticker whitespace-nowrap",children:t.map((n,r)=>e.jsx("div",{className:"flex-shrink-0 flex items-center justify-center h-12",children:e.jsx("img",{src:n.url,alt:n.name,className:"max-h-12 w-auto object-contain"})},r))})]}),e.jsx("style",{children:`
        @keyframes ticker {
          0% { transform: translateX(0); }
          100% { transform: translateX(-50%); }
        }
        .animate-ticker {
          animation: ticker 33s linear infinite;
          width: max-content;
        }
        .animate-ticker:hover {
          animation-play-state: paused;
        }
      `})]})}function Vee(){const{data:t=[]}=Fe({queryKey:["homeSections"],queryFn:()=>ce.entities.HomeSection.filter({active:!0},"sort_order"),initialData:[]}),n={hero:e.jsx(Eee,{},"hero"),trust:e.jsx(Tee,{},"trust"),services:e.jsx(Pee,{},"services"),why:e.jsxs(Pt.Fragment,{children:[e.jsx(Dee,{}),e.jsx(z6,{})]},"why"),process:e.jsx(Oee,{},"process"),cases:e.jsx(Iee,{},"cases"),training:e.jsx(Fee,{},"training"),quiz:e.jsx(Mee,{},"quiz"),team:e.jsx(Lee,{},"team"),impact:e.jsx("div",{className:"py-12 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Wf,{})})},"impact"),news:e.jsx(qee,{},"news"),blog:e.jsx(Bee,{},"blog"),cta:e.jsx(zee,{},"cta")};return e.jsx("div",{children:t.map(r=>n[r.section_key])})}function Uee(){const[t,n]=I.useState(""),[r,i]=I.useState(""),[s,a]=I.useState(""),[o,c]=I.useState(!1),[d,h]=I.useState(null),[f,m]=I.useState(null),[p,g]=I.useState(!1),[b,j]=I.useState({name:"",email:"",phone:""}),y=[{value:"",label:"Selecteer industrie (optioneel)"},{value:"retail",label:"Retail & E-commerce"},{value:"manufacturing",label:"Productie & Manufacturing"},{value:"healthcare",label:"Zorg & Welzijn"},{value:"professional_services",label:"Professionele Dienstverlening"},{value:"hospitality",label:"Horeca & Hospitality"},{value:"logistics",label:"Logistiek & Transport"},{value:"construction",label:"Bouw & Vastgoed"},{value:"education",label:"Onderwijs & Training"},{value:"finance",label:"Financiële Diensten"},{value:"technology",label:"Technology & Software"},{value:"marketing",label:"Marketing & Media"},{value:"other",label:"Anders"}];I.useEffect(()=>{const w=new URLSearchParams(window.location.search),k=w.get("url"),A=w.get("level");k&&(n(k),x(k)),A&&!k&&console.log("User came from quiz with level:",A)},[]);const x=async(w=null)=>{let k=w||t;if(k){k=k.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,""),c(!0),m(null),h(null);try{const A=`https://${k}`,{data:S}=await ce.functions.invoke("generateImpactReport",{website_url:A,company_name:r,industry:s||void 0});S.success?h(S):m(S.error||"Er ging iets mis bij het genereren van het rapport")}catch(A){console.error("Error generating report:",A),m("Kon het rapport niet genereren. Controleer de URL en probeer het opnieuw.")}finally{c(!1)}}},N=async w=>{w.preventDefault(),alert("Bedankt! We nemen zo snel mogelijk contact met je op."),g(!1)};if(o)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"We analyseren je website..."}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Dit duurt ongeveer 30-60 seconden"}),e.jsxs("div",{className:"flex items-center justify-center gap-2 text-gray-500",children:[e.jsx(gt,{className:"w-5 h-5 text-green-500"}),e.jsx("span",{children:"Website content ophalen"})]}),e.jsxs("div",{className:"flex items-center justify-center gap-2 text-gray-500 mt-3",children:[e.jsx("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),e.jsx("span",{children:"AI analyse uitvoeren"})]})]})})});if(f)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-red-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(fi,{className:"w-10 h-10 text-red-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Er ging iets mis"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:f}),e.jsx(se,{onClick:()=>{m(null),n("")},className:"bg-gray-900 text-white hover:bg-gray-800",children:"Probeer opnieuw"})]})})});if(d){const{report:w,metadata:k}=d,A=w.company_profile||{},S=w.quick_scan||{},E=w.opportunities||[],C=w.productivity_forecast||{},B=w.action_plan||{};return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"48-7 Impact Rapport"]}),e.jsxs("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:["Hoe ",A.name||"uw bedrijf"," van 24-7 naar 48-7 gaat"]}),e.jsxs("p",{className:"text-xl text-gray-600",children:["Gegenereerd op ",new Date(k.generated_at).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center",children:e.jsx(Ya,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Bedrijfsprofiel"})]}),e.jsxs("div",{className:"grid md:grid-cols-1 gap-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Sector"}),e.jsx("p",{className:"font-semibold text-gray-900",children:A.sector})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Kernactiviteiten"}),e.jsx("p",{className:"text-gray-700",children:A.core_activities})]})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"De Quick Scan"}),e.jsxs("p",{className:"text-lg text-gray-700 mb-6 leading-relaxed",children:["Wij hebben de processen van ",e.jsx("strong",{children:A.name})," geanalyseerd.",S.focus&&` ${S.focus}`]}),S.usp&&e.jsxs("div",{className:"bg-white/50 rounded-xl p-4 mb-4",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Unique Selling Points"}),e.jsx("p",{className:"text-gray-800",children:S.usp})]}),S.time_intensive_processes&&e.jsxs("div",{className:"bg-white/50 rounded-xl p-4",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Tijd-intensieve processen"}),e.jsx("p",{className:"text-gray-800",children:S.time_intensive_processes})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"mb-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-2",children:E.length===1?"High-Impact AI Kans":`${E.length} High-Impact AI Kansen`}),e.jsxs("p",{className:"text-gray-600",children:["Specifiek voor ",A.name]})]}),e.jsx("div",{className:"space-y-6",children:E.map((D,F)=>e.jsx(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4+F*.1},className:"bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-blue-200 transition-all",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-xl flex items-center justify-center text-white font-bold text-xl flex-shrink-0",children:F+1}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:D.title}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-red-600 mb-1",children:"❌ Probleem"}),e.jsx("p",{className:"text-gray-700",children:D.problem})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-blue-600 mb-1",children:"✅ Oplossing"}),e.jsx("p",{className:"text-gray-700",children:D.solution})]}),D.relevance&&e.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-blue-900 mb-1",children:"💡 Waarom relevant"}),e.jsx("p",{className:"text-sm text-blue-800",children:D.relevance})]}),D.implementation_steps&&D.implementation_steps.length>0&&e.jsxs("div",{className:"bg-purple-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-purple-900 mb-2",children:"🔧 Implementatiestappen"}),e.jsx("ol",{className:"text-sm text-purple-800 space-y-1 list-decimal list-inside",children:D.implementation_steps.map((R,z)=>e.jsx("li",{children:R},z))})]}),D.data_privacy&&e.jsxs("div",{className:"bg-amber-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-amber-900 mb-1",children:"🔒 Data & Privacy"}),e.jsx("p",{className:"text-sm text-amber-800",children:D.data_privacy})]}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-4 pt-4 border-t border-gray-100",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ki,{className:"w-5 h-5 text-green-600"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Winst"}),e.jsx("p",{className:"font-semibold text-gray-900",children:D.benefit})]})]})})]})]})]})},F))})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"bg-gradient-to-r from-green-500 to-emerald-600 rounded-2xl p-8 text-white mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold mb-6",children:"De 48-7 Productiviteitsprognose"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-6",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[e.jsx("p",{className:"text-green-100 mb-2",children:"Huidige output"}),e.jsxs("p",{className:"text-5xl font-bold",children:[C.current||100,"%"]})]}),e.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-xl p-6 border-2 border-white/30",children:[e.jsx("p",{className:"text-green-100 mb-2",children:"Output met 48-7 AI-integratie"}),e.jsxs("p",{className:"text-5xl font-bold",children:[C.with_ai||185,"%"]})]})]}),C.drivers&&C.drivers.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold mb-3",children:"Belangrijkste drivers:"}),e.jsx("ul",{className:"space-y-2",children:C.drivers.map((D,F)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-5 h-5 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:D})]},F))})]})]}),w.example_case&&e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8},className:"bg-gradient-to-r from-blue-50 to-indigo-50 rounded-2xl p-8 mb-8 border border-blue-100",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-600 rounded-xl flex items-center justify-center flex-shrink-0",children:e.jsx($t,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Voorbeeldcase"}),e.jsx("p",{className:"text-gray-700 text-lg leading-relaxed",children:w.example_case})]})]})}),w.innovative_idea&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.82},className:"bg-gradient-to-br from-purple-600 via-pink-600 to-orange-500 rounded-2xl p-8 mb-8 text-white relative overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0 opacity-10",children:[e.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-white rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-white rounded-full blur-3xl"})]}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[e.jsx("div",{className:"w-14 h-14 bg-white/20 backdrop-blur-sm rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(Wi,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-sm font-semibold mb-2",children:[e.jsx(At,{className:"w-4 h-4"}),"Innovatief AI-Idee"]}),e.jsx("h2",{className:"text-3xl font-bold",children:w.innovative_idea.title})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[e.jsx("h3",{className:"font-bold text-lg mb-2",children:"💡 Hoe het werkt"}),e.jsx("p",{className:"text-white/90 leading-relaxed",children:w.innovative_idea.description})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"🎯 Onderscheidend vermogen"}),e.jsx("p",{className:"text-white/90 text-sm",children:w.innovative_idea.unique_value})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"📈 Impact"}),e.jsx("p",{className:"text-white/90 text-sm",children:w.innovative_idea.impact})]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"🔧 Implementatie"}),e.jsx("p",{className:"text-white/90 text-sm",children:w.innovative_idea.implementation})]}),e.jsxs("div",{className:"bg-gradient-to-r from-green-500/20 to-emerald-500/20 backdrop-blur-sm rounded-xl p-5 border-2 border-green-400/30",children:[e.jsxs("h3",{className:"font-bold mb-2 flex items-center gap-2",children:[e.jsx(ui,{className:"w-5 h-5"}),"Quick Win (2-4 weken)"]}),e.jsx("p",{className:"text-white/90",children:w.innovative_idea.quick_win})]})]})]})]}),w.training_recommendations&&w.training_recommendations.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.85},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx(pr,{className:"w-6 h-6 text-purple-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Aanbevolen Trainingen"})]}),e.jsx("div",{className:"space-y-4",children:w.training_recommendations.map((D,F)=>e.jsxs("div",{className:"p-6 bg-purple-50 rounded-xl border-2 border-purple-100",children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx("span",{className:"text-white font-bold text-sm",children:F+1})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1",children:D.training_name}),D.target_audience&&e.jsxs("p",{className:"text-sm text-purple-700 font-medium",children:["Doelgroep: ",D.target_audience]})]})]}),e.jsx(de,{to:ae("Contact")+`?training=${encodeURIComponent(D.training_name)}`,className:"flex-shrink-0 px-4 py-2 bg-purple-600 text-white text-sm font-semibold rounded-lg hover:bg-purple-700 transition-colors",children:"Aanvragen"})]}),D.learning_goals&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Leerdoelen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:D.learning_goals})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Waarom relevant:"}),e.jsx("p",{className:"text-sm text-gray-600",children:D.reason})]}),D.relevance_to_opportunities&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Link met AI-kansen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:D.relevance_to_opportunities})]}),D.compliance_benefit&&e.jsxs("div",{className:"bg-blue-50 p-2 rounded",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900",children:"Compliance voordeel:"}),e.jsx("p",{className:"text-sm text-blue-800",children:D.compliance_benefit})]})]})]},F))}),e.jsx("div",{className:"flex gap-3 mt-6",children:e.jsxs(de,{to:ae("Training"),className:"inline-flex items-center gap-2 px-6 py-3 bg-purple-600 text-white font-semibold rounded-xl hover:bg-purple-700 transition-colors",children:["Bekijk alle trainingen",e.jsx($e,{className:"w-5 h-5"})]})})]}),w.ai_security&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.9},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-xl flex items-center justify-center",children:e.jsx(Vn,{className:"w-6 h-6 text-red-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"AI Veiligheid & Compliance"})]}),w.ai_security.risk_analysis_per_opportunity&&w.ai_security.risk_analysis_per_opportunity.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"📊 Risicoanalyse per AI-kans"}),e.jsx("div",{className:"space-y-3",children:w.ai_security.risk_analysis_per_opportunity.map((D,F)=>{const R=q=>{const U=q==null?void 0:q.toLowerCase();return U!=null&&U.includes("hoog")?"border-red-200 bg-red-50":U!=null&&U.includes("beperkt")?"border-orange-200 bg-orange-50":U!=null&&U.includes("minimaal")?"border-green-200 bg-green-50":"border-gray-200 bg-gray-50"},z=q=>{const U=q==null?void 0:q.toLowerCase();return U!=null&&U.includes("hoog")?"bg-red-100 text-red-800 border-red-200":U!=null&&U.includes("beperkt")?"bg-orange-100 text-orange-800 border-orange-200":U!=null&&U.includes("minimaal")?"bg-green-100 text-green-800 border-green-200":"bg-gray-100 text-gray-800 border-gray-200"};return e.jsxs("div",{className:`p-3 rounded-lg border-2 ${R(D.risk_level)}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-1",children:[e.jsx("p",{className:"font-medium text-gray-900",children:D.opportunity_title}),e.jsx("span",{className:`px-2 py-1 rounded border text-xs font-semibold ${z(D.risk_level)}`,children:D.risk_level})]}),e.jsx("p",{className:"text-sm text-gray-600",children:D.risk_justification})]},F)})})]}),w.ai_security.data_leak_prevention&&e.jsxs("div",{className:"mb-6 p-4 bg-red-50 rounded-xl border border-red-100",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"🔒 Datalekpreventie"}),w.ai_security.data_leak_prevention.personal_data_processing&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Persoonsgegevens verwerking:"}),e.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.data_leak_prevention.personal_data_processing})]}),w.ai_security.data_leak_prevention.leak_risks&&w.ai_security.data_leak_prevention.leak_risks.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Risico's voor datalekken:"}),e.jsx("ul",{className:"space-y-1",children:w.ai_security.data_leak_prevention.leak_risks.map((D,F)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-600",children:[e.jsx("span",{className:"text-red-500 mt-0.5",children:"•"}),e.jsx("span",{children:D})]},F))})]}),w.ai_security.data_leak_prevention.prevention_measures&&w.ai_security.data_leak_prevention.prevention_measures.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Preventiemaatregelen:"}),e.jsx("ul",{className:"space-y-1",children:w.ai_security.data_leak_prevention.prevention_measures.map((D,F)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-600",children:[e.jsx("span",{className:"text-green-500 mt-0.5",children:"✓"}),e.jsx("span",{children:D})]},F))})]}),w.ai_security.data_leak_prevention.gdpr_implications&&e.jsxs("div",{className:"p-2 bg-blue-50 rounded border border-blue-200",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900",children:"GDPR Implicaties:"}),e.jsx("p",{className:"text-sm text-blue-800",children:w.ai_security.data_leak_prevention.gdpr_implications})]})]}),w.ai_security.eu_ai_act_compliance&&e.jsxs("div",{className:"mb-6 p-4 bg-blue-50 rounded-xl border border-blue-100",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"🇪🇺 EU AI Act Compliance"}),w.ai_security.eu_ai_act_compliance.high_risk_systems&&w.ai_security.eu_ai_act_compliance.high_risk_systems.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Hoog-risico systemen:"}),e.jsx("ul",{className:"space-y-1",children:w.ai_security.eu_ai_act_compliance.high_risk_systems.map((D,F)=>e.jsxs("li",{className:"text-sm text-gray-600 ml-4",children:["• ",D]},F))})]}),w.ai_security.eu_ai_act_compliance.applicable_articles&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Van toepassing zijnde artikelen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.eu_ai_act_compliance.applicable_articles})]}),w.ai_security.eu_ai_act_compliance.required_documentation&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Vereiste documentatie:"}),e.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.eu_ai_act_compliance.required_documentation})]}),w.ai_security.eu_ai_act_compliance.human_oversight&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Menselijk toezicht:"}),e.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.eu_ai_act_compliance.human_oversight})]}),e.jsxs("div",{className:"flex flex-col gap-3 mt-4",children:[e.jsxs("a",{href:"https://eur-lex.europa.eu/legal-content/NL/TXT/HTML/?uri=OJ:L_202401689",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-700 text-sm font-medium inline-flex items-center gap-1",children:["Bekijk volledige EU AI Act",e.jsx($e,{className:"w-4 h-4"})]}),e.jsxs("a",{href:ae("EuAiActChecker"),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-4 py-2 bg-blue-600 text-white text-sm font-semibold rounded-lg hover:bg-blue-700 transition-colors",children:[e.jsx(Vn,{className:"w-4 h-4"}),"Doe uitgebreide EU AI Act check",e.jsx($e,{className:"w-4 h-4"})]})]})]}),w.ai_security.practical_recommendations&&w.ai_security.practical_recommendations.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"✅ Praktische Aanbevelingen"}),e.jsx("ul",{className:"space-y-2",children:w.ai_security.practical_recommendations.map((D,F)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx("span",{className:"text-green-500 mt-1",children:"✓"}),e.jsx("span",{children:D})]},F))})]}),w.ai_security.sector_specific_considerations&&e.jsxs("div",{className:"p-4 bg-amber-50 rounded-xl",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"🏢 Sectie-specifieke Overwegingen"}),e.jsx("p",{className:"text-gray-700",children:w.ai_security.sector_specific_considerations})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.95},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-amber-100 rounded-xl flex items-center justify-center",children:e.jsx(Va,{className:"w-6 h-6 text-amber-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Direct Actieplan"})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Hoogste prioriteit"}),e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:B.priority_opportunity})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Eerste stap"}),e.jsx("p",{className:"text-gray-700",children:B.first_step})]})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1},className:"space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Persoonlijk Advies per Email"}),e.jsxs("p",{className:"text-blue-100 mb-6 text-lg",children:["Ontvang een gedetailleerde implementatie roadmap en ROI-berekening specifiek voor ",A.name]}),e.jsxs(se,{onClick:()=>g(!0),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-700 font-bold text-lg rounded-xl hover:bg-gray-100 transition-all shadow-lg",children:[e.jsx(Hr,{className:"w-6 h-6"}),"Stuur mij het volledige advies",e.jsx($e,{className:"w-6 h-6"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-gray-900 rounded-2xl p-6 text-white",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Directe Toelichting"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Bespreek binnen 15 minuten de mogelijkheden voor jouw bedrijf"}),e.jsxs(de,{to:ae("Contact"),className:"inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-white text-gray-900 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:[e.jsx(_i,{className:"w-5 h-5"}),"Plan een gesprek"]})]}),e.jsxs("div",{className:"bg-purple-600 rounded-2xl p-6 text-white",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"EU AI Act Check"}),e.jsx("p",{className:"text-purple-100 mb-4",children:"Ontdek welke compliance-eisen gelden voor jouw bedrijf"}),e.jsxs(de,{to:ae("EuAiActChecker"),className:"inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-white text-purple-700 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:[e.jsx(Vn,{className:"w-5 h-5"}),"Start AI Act Check"]})]})]})]}),p&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"bg-white rounded-2xl p-8 max-w-md w-full",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Ontvang je volledige roadmap"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"Vul je gegevens in en we sturen je een uitgebreide technische roadmap."}),e.jsxs("form",{onSubmit:N,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Naam *"}),e.jsx(me,{required:!0,value:b.name,onChange:D=>j({...b,name:D.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email *"}),e.jsx(me,{required:!0,type:"email",value:b.email,onChange:D=>j({...b,email:D.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Telefoon"}),e.jsx(me,{type:"tel",value:b.phone,onChange:D=>j({...b,phone:D.target.value})})]}),e.jsxs("div",{className:"flex gap-3 pt-4",children:[e.jsx(se,{type:"button",variant:"outline",onClick:()=>g(!1),className:"flex-1",children:"Annuleren"}),e.jsx(se,{type:"submit",className:"flex-1 bg-blue-600 hover:bg-blue-700",children:"Versturen"})]})]})]})})]})})}return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] mb-8",children:["Ontvang gratis 48-7 ",e.jsx("br",{}),"AI Impact Rapport"]}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-2xl mx-auto",children:"Ontdek in 60 seconden hoe AI jouw bedrijf van 24-7 naar 48-7 brengt"})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:e.jsxs("form",{onSubmit:w=>{w.preventDefault(),x()},className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Website URL *"}),e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:t,onChange:w=>n(w.target.value),required:!0,className:"text-lg py-6"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Vul alleen het domein in, bijv. bedrijf.nl (https:// wordt automatisch toegevoegd)"})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Bedrijfsnaam (optioneel)"}),e.jsx(me,{type:"text",placeholder:"Je Bedrijf BV",value:r,onChange:w=>i(w.target.value)})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Industrie (optioneel)"}),e.jsx("select",{value:s,onChange:w=>a(w.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:y.map(w=>e.jsx("option",{value:w.value,children:w.label},w.value))})]})]}),e.jsx(se,{type:"submit",className:"w-full py-6 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold text-lg",children:e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(At,{className:"w-5 h-5"}),"Genereer mijn Impact Rapport",e.jsx($e,{className:"w-5 h-5"})]})}),e.jsx("p",{className:"text-xs text-gray-500 text-center",children:"✓ 100% gratis • ✓ Geen verplichtingen • ✓ Direct resultaat"})]})}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"mt-12 text-center",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Vertrouwd door:"}),e.jsxs("div",{className:"flex items-center justify-center gap-8 opacity-50",children:[e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"}),e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"}),e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"}),e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"})]})]})]})})}function $ee(){return e.jsx("div",{className:"pt-20 min-h-screen bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e.jsx($t,{className:"w-12 h-12 text-[#FAB868]"}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F]",children:"Impact Report"})]}),e.jsxs("div",{className:"prose max-w-none",children:[e.jsxs("h2",{className:"flex items-center gap-2",children:[e.jsx($O,{className:"w-5 h-5"})," Overzicht"]}),e.jsx("p",{children:"Het 48-7 Impact Report is een AI-gedreven tool die automatisch een gepersonaliseerd rapport genereert met concrete AI-kansen voor een bedrijf op basis van hun website."}),e.jsx("h2",{children:"Architectuur"}),e.jsx("h3",{children:"Frontend: pages/ImpactRapport.jsx"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Framework:"})," React met Framer Motion voor animaties"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Input:"})," Website URL, optioneel bedrijfsnaam en industrie"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Flow:"}),e.jsxs("ol",{children:[e.jsx("li",{children:"Gebruiker voert website URL in"}),e.jsx("li",{children:"Optioneel: bedrijfsnaam en industrie selectie"}),e.jsx("li",{children:"Backend functie wordt aangeroepen"}),e.jsx("li",{children:"Loading state (30-60 seconden)"}),e.jsx("li",{children:"Rapport wordt getoond"})]})]})]}),e.jsx("h3",{children:"Backend: functions/generateImpactReport.js"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Runtime:"})," Deno Deploy"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"LLM:"})," OpenAI (via Base44 Core.InvokeLLM integration)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Features:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Website scraping via fetch_website"}),e.jsx("li",{children:"Ophalen custom prompts uit database (ImpactReportPrompt entity)"}),e.jsx("li",{children:"Gestructureerde JSON output via response_json_schema"}),e.jsx("li",{children:"Gebruik van internet context voor actuele informatie"})]})]})]}),e.jsx("h2",{children:"Functionaliteiten"}),e.jsx("h3",{children:"1. Bedrijfsprofiel"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Automatische extractie van sector en kernactiviteiten"}),e.jsx("li",{children:"Gebaseerd op website content"})]}),e.jsx("h3",{children:"2. Quick Scan"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Analyse van tijd-intensieve processen"}),e.jsx("li",{children:"Identificatie van USP's"}),e.jsx("li",{children:"Focus op verbeterpotentieel"})]}),e.jsx("h3",{children:"3. Vijf AI Kansen"}),e.jsx("p",{children:"Voor elke kans:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Titel:"})," Duidelijke omschrijving van de kans"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Probleem:"})," Huidige situatie/uitdaging"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Oplossing:"})," Concrete AI-oplossing"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Relevantie:"})," Waarom specifiek relevant voor dit bedrijf"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Implementatiestappen:"})," 3-5 concrete stappen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Data & Privacy:"})," Privacy overwegingen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Winst:"})," Concrete voordelen/ROI"]})]}),e.jsx("h3",{children:"4. Productiviteitsprognose"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Huidige output: 100%"}),e.jsx("li",{children:"Projectie met AI: typisch 150-200%"}),e.jsx("li",{children:"Drivers: Specifieke factoren die groei veroorzaken"})]}),e.jsx("h3",{children:"5. AI Veiligheid & Compliance"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Risicoanalyse per AI-kans:"})," Risk level tags (Hoog/Beperkt/Minimaal)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Datalekpreventie:"})," GDPR compliance, preventiemaatregelen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"EU AI Act:"})," Hoog-risico systemen, documentatie-eisen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Praktische aanbevelingen:"})," Concrete actiepunten"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Sector-specifiek:"})," Branche-specifieke overwegingen"]})]}),e.jsxs("h2",{className:"flex items-center gap-2",children:[e.jsx(ui,{className:"w-5 h-5"})," LLM Prompt Structuur"]}),e.jsx("h3",{children:"Prompt Template"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto",children:`Je bent een AI-consultant voor MKB-bedrijven in Nederland.
Analyseer {company_name} en genereer een concreet Impact Rapport.

Website content: {website_content}
Bedrijfsnaam: {company_name}
Industrie: {industry}

CRITICAL INSTRUCTIONS:
- Output ALLEEN in het Nederlands
- Wees specifiek en concreet, geen algemene AI-praatjes
- Verwijs naar specifieke processen van DIT bedrijf
- Geef concrete voorbeelden en ROI-schattingen
- Implementatiestappen moeten realistisch en uitvoerbaar zijn
- Data privacy overwegingen per kans vermelden

Analyseer:
1. Bedrijfsprofiel (sector, kernactiviteiten)
2. Quick Scan (USP, tijd-intensieve processen, focus)
3. Vijf AI Kansen (titel, probleem, oplossing, relevantie, 
   implementatie, data privacy, winst)
4. Productiviteitsprognose (huidige %, met AI %, drivers)
5. Voorbeeldcase uit de markt
6. Innovatief AI-idee (titel, beschrijving, unique value, 
   impact, implementatie, quick win)
7. Training aanbevelingen
8. AI Veiligheid & Compliance
9. Actieplan (prioriteit, eerste stap)`}),e.jsx("h3",{children:"JSON Schema Output"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto text-sm",children:`{
  "company_profile": {
    "name": "string",
    "sector": "string",
    "core_activities": "string"
  },
  "quick_scan": {
    "usp": "string",
    "time_intensive_processes": "string",
    "focus": "string"
  },
  "opportunities": [
    {
      "title": "string",
      "problem": "string",
      "solution": "string",
      "relevance": "string",
      "implementation_steps": ["string"],
      "data_privacy": "string",
      "benefit": "string"
    }
  ],
  "productivity_forecast": {
    "current": 100,
    "with_ai": "number",
    "drivers": ["string"]
  },
  "ai_security": {
    "risk_analysis_per_opportunity": [...],
    "data_leak_prevention": {...},
    "eu_ai_act_compliance": {...}
  }
}`}),e.jsxs("h2",{className:"flex items-center gap-2",children:[e.jsx(AA,{className:"w-5 h-5"})," LLM Gebruik"]}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Provider:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Context:"})," Website content + optionele internet context"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Output:"})," Gestructureerde JSON volgens schema"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Taal:"})," Nederlands (geforceerd in prompt)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Verwerkingstijd:"})," 30-60 seconden"]})]}),e.jsx("h2",{children:"Risk Level Kleuren"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 border-red-200 bg-red-50",children:[e.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-800 border border-red-200 rounded text-sm font-semibold",children:"Hoog risico"}),e.jsx("span",{className:"text-sm",children:"border-red-200 bg-red-50"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 border-orange-200 bg-orange-50",children:[e.jsx("span",{className:"px-3 py-1 bg-orange-100 text-orange-800 border border-orange-200 rounded text-sm font-semibold",children:"Beperkt risico"}),e.jsx("span",{className:"text-sm",children:"border-orange-200 bg-orange-50"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 border-green-200 bg-green-50",children:[e.jsx("span",{className:"px-3 py-1 bg-green-100 text-green-800 border border-green-200 rounded text-sm font-semibold",children:"Minimaal risico"}),e.jsx("span",{className:"text-sm",children:"border-green-200 bg-green-50"})]})]}),e.jsx("h2",{children:"Integraties"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"ImpactReportWidget:"})," Herbruikbaar component voor andere pages"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"EU AI Act Button:"})," Opent in nieuw tabblad"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Training Links:"})," Direct naar Contact pagina met pre-filled training"]})]}),e.jsx("h2",{children:"Call-to-Actions"}),e.jsxs("ol",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Primary:"}),' "Stuur mij het volledige advies" (Email modal)']}),e.jsxs("li",{children:[e.jsx("strong",{children:"Secondary:"}),e.jsxs("ul",{children:[e.jsx("li",{children:'"Plan een gesprek" (Link naar Contact)'}),e.jsx("li",{children:'"Start AI Act Check" (Link naar EU AI Act Checker)'})]})]})]}),e.jsx("h2",{children:"Files"}),e.jsxs("ul",{className:"font-mono text-sm",children:[e.jsx("li",{children:"pages/ImpactRapport.jsx - Frontend component"}),e.jsx("li",{children:"functions/generateImpactReport.js - Backend function"}),e.jsx("li",{children:"components/impact/ImpactReportWidget.jsx - Reusable widget"}),e.jsx("li",{children:"entities/ImpactReportPrompt.json - Custom prompts database"})]})]})]})})})}var zu={};(function t(n,r,i,s){var a=!!(n.Worker&&n.Blob&&n.Promise&&n.OffscreenCanvas&&n.OffscreenCanvasRenderingContext2D&&n.HTMLCanvasElement&&n.HTMLCanvasElement.prototype.transferControlToOffscreen&&n.URL&&n.URL.createObjectURL),o=typeof Path2D=="function"&&typeof DOMMatrix=="function",c=(function(){if(!n.OffscreenCanvas)return!1;try{var O=new OffscreenCanvas(1,1),T=O.getContext("2d");T.fillRect(0,0,1,1);var V=O.transferToImageBitmap();T.createPattern(V,"no-repeat")}catch{return!1}return!0})();function d(){}function h(O){var T=r.exports.Promise,V=T!==void 0?T:n.Promise;return typeof V=="function"?new V(O):(O(d,d),null)}var f=(function(O,T){return{transform:function(V){if(O)return V;if(T.has(V))return T.get(V);var L=new OffscreenCanvas(V.width,V.height),X=L.getContext("2d");return X.drawImage(V,0,0),T.set(V,L),L},clear:function(){T.clear()}}})(c,new Map),m=(function(){var O=Math.floor(16.666666666666668),T,V,L={},X=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(T=function(J){var W=Math.random();return L[W]=requestAnimationFrame(function G(ee){X===ee||X+O-1<ee?(X=ee,delete L[W],J()):L[W]=requestAnimationFrame(G)}),W},V=function(J){L[J]&&cancelAnimationFrame(L[J])}):(T=function(J){return setTimeout(J,O)},V=function(J){return clearTimeout(J)}),{frame:T,cancel:V}})(),p=(function(){var O,T,V={};function L(X){function J(W,G){X.postMessage({options:W||{},callback:G})}X.init=function(G){var ee=G.transferControlToOffscreen();X.postMessage({canvas:ee},[ee])},X.fire=function(G,ee,ne){if(T)return J(G,null),T;var le=Math.random().toString(36).slice(2);return T=h(function(ye){function be(Pe){Pe.data.callback===le&&(delete V[le],X.removeEventListener("message",be),T=null,f.clear(),ne(),ye())}X.addEventListener("message",be),J(G,le),V[le]=be.bind(null,{data:{callback:le}})}),T},X.reset=function(){X.postMessage({reset:!0});for(var G in V)V[G](),delete V[G]}}return function(){if(O)return O;if(!i&&a){var X=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join(`
`);try{O=new Worker(URL.createObjectURL(new Blob([X])))}catch(J){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",J),null}L(O)}return O}})(),g={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function b(O,T){return T?T(O):O}function j(O){return O!=null}function y(O,T,V){return b(O&&j(O[T])?O[T]:g[T],V)}function x(O){return O<0?0:Math.floor(O)}function N(O,T){return Math.floor(Math.random()*(T-O))+O}function w(O){return parseInt(O,16)}function k(O){return O.map(A)}function A(O){var T=String(O).replace(/[^0-9a-f]/gi,"");return T.length<6&&(T=T[0]+T[0]+T[1]+T[1]+T[2]+T[2]),{r:w(T.substring(0,2)),g:w(T.substring(2,4)),b:w(T.substring(4,6))}}function S(O){var T=y(O,"origin",Object);return T.x=y(T,"x",Number),T.y=y(T,"y",Number),T}function E(O){O.width=document.documentElement.clientWidth,O.height=document.documentElement.clientHeight}function C(O){var T=O.getBoundingClientRect();O.width=T.width,O.height=T.height}function B(O){var T=document.createElement("canvas");return T.style.position="fixed",T.style.top="0px",T.style.left="0px",T.style.pointerEvents="none",T.style.zIndex=O,T}function D(O,T,V,L,X,J,W,G,ee){O.save(),O.translate(T,V),O.rotate(J),O.scale(L,X),O.arc(0,0,1,W,G,ee),O.restore()}function F(O){var T=O.angle*(Math.PI/180),V=O.spread*(Math.PI/180);return{x:O.x,y:O.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:O.startVelocity*.5+Math.random()*O.startVelocity,angle2D:-T+(.5*V-Math.random()*V),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:O.color,shape:O.shape,tick:0,totalTicks:O.ticks,decay:O.decay,drift:O.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:O.gravity*3,ovalScalar:.6,scalar:O.scalar,flat:O.flat}}function R(O,T){T.x+=Math.cos(T.angle2D)*T.velocity+T.drift,T.y+=Math.sin(T.angle2D)*T.velocity+T.gravity,T.velocity*=T.decay,T.flat?(T.wobble=0,T.wobbleX=T.x+10*T.scalar,T.wobbleY=T.y+10*T.scalar,T.tiltSin=0,T.tiltCos=0,T.random=1):(T.wobble+=T.wobbleSpeed,T.wobbleX=T.x+10*T.scalar*Math.cos(T.wobble),T.wobbleY=T.y+10*T.scalar*Math.sin(T.wobble),T.tiltAngle+=.1,T.tiltSin=Math.sin(T.tiltAngle),T.tiltCos=Math.cos(T.tiltAngle),T.random=Math.random()+2);var V=T.tick++/T.totalTicks,L=T.x+T.random*T.tiltCos,X=T.y+T.random*T.tiltSin,J=T.wobbleX+T.random*T.tiltCos,W=T.wobbleY+T.random*T.tiltSin;if(O.fillStyle="rgba("+T.color.r+", "+T.color.g+", "+T.color.b+", "+(1-V)+")",O.beginPath(),o&&T.shape.type==="path"&&typeof T.shape.path=="string"&&Array.isArray(T.shape.matrix))O.fill(H(T.shape.path,T.shape.matrix,T.x,T.y,Math.abs(J-L)*.1,Math.abs(W-X)*.1,Math.PI/10*T.wobble));else if(T.shape.type==="bitmap"){var G=Math.PI/10*T.wobble,ee=Math.abs(J-L)*.1,ne=Math.abs(W-X)*.1,le=T.shape.bitmap.width*T.scalar,ye=T.shape.bitmap.height*T.scalar,be=new DOMMatrix([Math.cos(G)*ee,Math.sin(G)*ee,-Math.sin(G)*ne,Math.cos(G)*ne,T.x,T.y]);be.multiplySelf(new DOMMatrix(T.shape.matrix));var Pe=O.createPattern(f.transform(T.shape.bitmap),"no-repeat");Pe.setTransform(be),O.globalAlpha=1-V,O.fillStyle=Pe,O.fillRect(T.x-le/2,T.y-ye/2,le,ye),O.globalAlpha=1}else if(T.shape==="circle")O.ellipse?O.ellipse(T.x,T.y,Math.abs(J-L)*T.ovalScalar,Math.abs(W-X)*T.ovalScalar,Math.PI/10*T.wobble,0,2*Math.PI):D(O,T.x,T.y,Math.abs(J-L)*T.ovalScalar,Math.abs(W-X)*T.ovalScalar,Math.PI/10*T.wobble,0,2*Math.PI);else if(T.shape==="star")for(var Te=Math.PI/2*3,We=4*T.scalar,ut=8*T.scalar,nt=T.x,ge=T.y,ve=5,Se=Math.PI/ve;ve--;)nt=T.x+Math.cos(Te)*ut,ge=T.y+Math.sin(Te)*ut,O.lineTo(nt,ge),Te+=Se,nt=T.x+Math.cos(Te)*We,ge=T.y+Math.sin(Te)*We,O.lineTo(nt,ge),Te+=Se;else O.moveTo(Math.floor(T.x),Math.floor(T.y)),O.lineTo(Math.floor(T.wobbleX),Math.floor(X)),O.lineTo(Math.floor(J),Math.floor(W)),O.lineTo(Math.floor(L),Math.floor(T.wobbleY));return O.closePath(),O.fill(),T.tick<T.totalTicks}function z(O,T,V,L,X){var J=T.slice(),W=O.getContext("2d"),G,ee,ne=h(function(le){function ye(){G=ee=null,W.clearRect(0,0,L.width,L.height),f.clear(),X(),le()}function be(){i&&!(L.width===s.width&&L.height===s.height)&&(L.width=O.width=s.width,L.height=O.height=s.height),!L.width&&!L.height&&(V(O),L.width=O.width,L.height=O.height),W.clearRect(0,0,L.width,L.height),J=J.filter(function(Pe){return R(W,Pe)}),J.length?G=m.frame(be):ye()}G=m.frame(be),ee=ye});return{addFettis:function(le){return J=J.concat(le),ne},canvas:O,promise:ne,reset:function(){G&&m.cancel(G),ee&&ee()}}}function q(O,T){var V=!O,L=!!y(T||{},"resize"),X=!1,J=y(T,"disableForReducedMotion",Boolean),W=a&&!!y(T||{},"useWorker"),G=W?p():null,ee=V?E:C,ne=O&&G?!!O.__confetti_initialized:!1,le=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,ye;function be(Te,We,ut){for(var nt=y(Te,"particleCount",x),ge=y(Te,"angle",Number),ve=y(Te,"spread",Number),Se=y(Te,"startVelocity",Number),Oe=y(Te,"decay",Number),je=y(Te,"gravity",Number),tt=y(Te,"drift",Number),et=y(Te,"colors",k),rt=y(Te,"ticks",Number),xe=y(Te,"shapes"),_e=y(Te,"scalar"),De=!!y(Te,"flat"),it=S(Te),He=nt,kt=[],Tr=O.width*it.x,Un=O.height*it.y;He--;)kt.push(F({x:Tr,y:Un,angle:ge,spread:ve,startVelocity:Se,color:et[He%et.length],shape:xe[N(0,xe.length)],ticks:rt,decay:Oe,gravity:je,drift:tt,scalar:_e,flat:De}));return ye?ye.addFettis(kt):(ye=z(O,kt,ee,We,ut),ye.promise)}function Pe(Te){var We=J||y(Te,"disableForReducedMotion",Boolean),ut=y(Te,"zIndex",Number);if(We&&le)return h(function(Se){Se()});V&&ye?O=ye.canvas:V&&!O&&(O=B(ut),document.body.appendChild(O)),L&&!ne&&ee(O);var nt={width:O.width,height:O.height};G&&!ne&&G.init(O),ne=!0,G&&(O.__confetti_initialized=!0);function ge(){if(G){var Se={getBoundingClientRect:function(){if(!V)return O.getBoundingClientRect()}};ee(Se),G.postMessage({resize:{width:Se.width,height:Se.height}});return}nt.width=nt.height=null}function ve(){ye=null,L&&(X=!1,n.removeEventListener("resize",ge)),V&&O&&(document.body.contains(O)&&document.body.removeChild(O),O=null,ne=!1)}return L&&!X&&(X=!0,n.addEventListener("resize",ge,!1)),G?G.fire(Te,nt,ve):be(Te,nt,ve)}return Pe.reset=function(){G&&G.reset(),ye&&ye.reset()},Pe}var U;function Q(){return U||(U=q(null,{useWorker:!0,resize:!0})),U}function H(O,T,V,L,X,J,W){var G=new Path2D(O),ee=new Path2D;ee.addPath(G,new DOMMatrix(T));var ne=new Path2D;return ne.addPath(ee,new DOMMatrix([Math.cos(W)*X,Math.sin(W)*X,-Math.sin(W)*J,Math.cos(W)*J,V,L])),ne}function K(O){if(!o)throw new Error("path confetti are not supported in this browser");var T,V;typeof O=="string"?T=O:(T=O.path,V=O.matrix);var L=new Path2D(T),X=document.createElement("canvas"),J=X.getContext("2d");if(!V){for(var W=1e3,G=W,ee=W,ne=0,le=0,ye,be,Pe=0;Pe<W;Pe+=2)for(var Te=0;Te<W;Te+=2)J.isPointInPath(L,Pe,Te,"nonzero")&&(G=Math.min(G,Pe),ee=Math.min(ee,Te),ne=Math.max(ne,Pe),le=Math.max(le,Te));ye=ne-G,be=le-ee;var We=10,ut=Math.min(We/ye,We/be);V=[ut,0,0,ut,-Math.round(ye/2+G)*ut,-Math.round(be/2+ee)*ut]}return{type:"path",path:T,matrix:V}}function Y(O){var T,V=1,L="#000000",X='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof O=="string"?T=O:(T=O.text,V="scalar"in O?O.scalar:V,X="fontFamily"in O?O.fontFamily:X,L="color"in O?O.color:L);var J=10*V,W=""+J+"px "+X,G=new OffscreenCanvas(J,J),ee=G.getContext("2d");ee.font=W;var ne=ee.measureText(T),le=Math.ceil(ne.actualBoundingBoxRight+ne.actualBoundingBoxLeft),ye=Math.ceil(ne.actualBoundingBoxAscent+ne.actualBoundingBoxDescent),be=2,Pe=ne.actualBoundingBoxLeft+be,Te=ne.actualBoundingBoxAscent+be;le+=be+be,ye+=be+be,G=new OffscreenCanvas(le,ye),ee=G.getContext("2d"),ee.font=W,ee.fillStyle=L,ee.fillText(T,Pe,Te);var We=1/V;return{type:"bitmap",bitmap:G.transferToImageBitmap(),matrix:[We,0,0,We,-le*We/2,-ye*We/2]}}r.exports=function(){return Q().apply(this,arguments)},r.exports.reset=function(){Q().reset()},r.exports.create=q,r.exports.shapeFromPath=K,r.exports.shapeFromText=Y})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),zu,!1);const Hee=zu.exports;zu.exports.create;function Wee({deelnemers:t}){const[n,r]=I.useState(!1),[i,s]=I.useState(0),a=t,c=360/a.length,d=()=>{if(n)return;r(!0);const m=5+Math.random()*3,p=Math.random()*360,g=i+m*360+p;s(g),setTimeout(()=>{r(!1),Hee({particleCount:100,spread:70,origin:{y:.6}})},5e3)},h=m=>m%2===0?"#EF4444":"#FFFFFF",f=m=>m%2===0?"#FFFFFF":"#EF4444";return e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-yellow-500 via-orange-500 to-red-500 mb-2",children:"KOFFIE ROULETTE"}),e.jsx("p",{className:"text-gray-700 text-lg",children:"Draai het wiel en ontdek wie er koffie moet halen!"})]}),e.jsxs("div",{className:"relative mb-8",children:[e.jsx(Z.div,{initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},transition:{delay:.2},className:"absolute top-0 left-1/2 -translate-x-1/2 -translate-y-8 z-20",children:e.jsx("div",{className:"w-0 h-0 border-l-[20px] border-l-transparent border-r-[20px] border-r-transparent border-t-[40px] border-t-yellow-500 drop-shadow-lg"})}),e.jsxs(Z.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"relative",children:[e.jsx("div",{className:"absolute inset-0 rounded-full bg-gradient-to-br from-yellow-400 via-orange-400 to-red-500 blur-2xl opacity-30 animate-pulse"}),e.jsxs("div",{className:"relative w-[400px] h-[400px] md:w-[500px] md:h-[500px] rounded-full border-[12px] border-yellow-500 shadow-2xl overflow-visible bg-white",children:[e.jsx(Z.svg,{className:"w-full h-full",viewBox:"0 0 200 200",animate:{rotate:i},transition:{duration:5,ease:[.25,.1,.25,1]},children:a.map((m,p)=>{const g=(c*p-90)*(Math.PI/180),b=(c*(p+1)-90)*(Math.PI/180),j=(c*p+c/2-90)*(Math.PI/180),y=100+100*Math.cos(g),x=100+100*Math.sin(g),N=100+100*Math.cos(b),w=100+100*Math.sin(b),k=c>180?1:0,A=`M 100 100 L ${y} ${x} A 100 100 0 ${k} 1 ${N} ${w} Z`,S=h(p),E=f(p),C=60,B=100+C*Math.cos(j),D=100+C*Math.sin(j),F=c*p+c/2;return e.jsxs("g",{children:[e.jsx("path",{d:A,fill:S}),e.jsxs("g",{transform:`translate(${B}, ${D}) rotate(${F})`,children:[e.jsx("text",{textAnchor:"middle",fill:E,fontSize:"24",y:"-5",children:m.character.split(" ")[0]}),e.jsx("text",{textAnchor:"middle",fill:E,fontSize:"8",fontWeight:"bold",y:"15",writingMode:"tb",letterSpacing:"1",children:m.name.toUpperCase()})]})]},`${m.id}-${p}`)})}),e.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-20 h-20 rounded-full bg-gradient-to-br from-yellow-500 to-orange-500 border-4 border-white shadow-xl flex items-center justify-center z-10",children:e.jsx("div",{className:"text-3xl",children:"☕"})})]}),e.jsx("div",{className:"absolute -bottom-8 left-1/2 -translate-x-1/2 w-32 h-12 bg-gradient-to-b from-yellow-500 to-yellow-600 rounded-t-lg",style:{clipPath:"polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%)"}})]})]}),e.jsx(se,{onClick:d,disabled:n,className:"px-12 py-6 text-2xl font-bold bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600 text-white disabled:opacity-50 mb-8",children:n?"🎰 Aan het draaien...":"🎰 SPIN!"})]})}function Kee(){const[t,n]=I.useState(null),[r,i]=I.useState({name:"",character:"☕ Koffieboon"}),[s,a]=I.useState(!1),o=Xt(),{data:c=[]}=Fe({queryKey:["koffie-deelnemers"],queryFn:()=>ce.entities.KoffieDeelnemer.list()}),d=Le({mutationFn:x=>ce.entities.KoffieDeelnemer.create(x),onSuccess:()=>{o.invalidateQueries({queryKey:["koffie-deelnemers"]}),i({name:"",character:"☕ Koffieboon"})}}),h=Le({mutationFn:({id:x,data:N})=>ce.entities.KoffieDeelnemer.update(x,N),onSuccess:()=>{o.invalidateQueries({queryKey:["koffie-deelnemers"]}),n(null)}}),f=Le({mutationFn:x=>ce.entities.KoffieDeelnemer.delete(x),onSuccess:()=>o.invalidateQueries({queryKey:["koffie-deelnemers"]})}),m=x=>{x.preventDefault(),t?h.mutate({id:t,data:r}):d.mutate({...r,is_present:!0})},p=x=>{h.mutate({id:x.id,data:{...x,is_present:!x.is_present}})},g=x=>{n(x.id),i({name:x.name,character:x.character})},b=c.filter(x=>x.is_present),j=b.length>=2,y=["☕ Koffieboon","🦸 Superheld","🥷 Ninja","👑 Koning/Koningin","🤖 Robot","🏴‍☠️ Piraat","🧙 Tovenaar","🦄 Eenhoorn","🐉 Draak","🚀 Astronaut"];return s&&j?e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-yellow-50 via-orange-50 to-red-50 pt-20",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-12",children:[e.jsxs(se,{onClick:()=>a(!1),variant:"outline",className:"mb-6",children:[e.jsx(Ht,{className:"w-4 h-4 mr-2"}),"Terug naar deelnemers"]}),e.jsx(Wee,{deelnemers:b})]})}):e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-yellow-50 via-orange-50 to-red-50 pt-20",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-4",children:"☕ Koffie Roulette"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Wie moet er vandaag koffie halen?"})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-center mb-8",children:j?e.jsx(se,{onClick:()=>a(!0),disabled:!j,className:"px-12 py-6 text-2xl font-bold bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600 text-white",children:"🎰 Start Koffie Roulette!"}):e.jsx("p",{className:"text-gray-600 mb-4",children:"Zorg dat minimaal 2 deelnemers aanwezig zijn om te kunnen spinnen"})}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-6 mb-8 border-2 border-orange-200",children:[e.jsxs("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:["Deelnemers (",b.length," aanwezig van ",c.length,")"]}),c.length===0?e.jsx("p",{className:"text-gray-500 text-center py-8",children:"Geen deelnemers toegevoegd. Voeg er een paar toe om te beginnen!"}):e.jsx("div",{className:"space-y-3",children:e.jsx(Cr,{children:c.map(x=>e.jsxs(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},className:`flex items-center justify-between p-4 rounded-xl border-2 transition-all ${x.is_present?"bg-green-50 border-green-200":"bg-gray-50 border-gray-200 opacity-50"}`,children:[e.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[e.jsx("div",{className:"text-3xl",children:x.character.split(" ")[0]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-gray-900",children:x.name}),e.jsx("p",{className:"text-sm text-gray-600",children:x.character})]})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700",children:x.is_present?"Aanwezig":"Afwezig"}),e.jsx(Wc,{checked:x.is_present,onCheckedChange:()=>p(x),className:"data-[state=checked]:bg-green-500"})]}),e.jsx(se,{variant:"outline",size:"sm",onClick:()=>g(x),children:e.jsx(zc,{className:"w-4 h-4"})}),e.jsx(se,{variant:"outline",size:"sm",onClick:()=>f.mutate(x.id),children:e.jsx(wt,{className:"w-4 h-4"})})]})]},x.id))})})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-white rounded-2xl p-6 border-2 border-orange-200",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:t?"Deelnemer bewerken":"Nieuwe deelnemer"}),e.jsxs("form",{onSubmit:m,className:"flex flex-col sm:flex-row gap-4",children:[e.jsx(me,{required:!0,placeholder:"Naam",value:r.name,onChange:x=>i({...r,name:x.target.value}),className:"flex-1"}),e.jsx("select",{value:r.character,onChange:x=>i({...r,character:x.target.value}),className:"px-4 py-3 border-b-2 border-gray-200 focus:border-orange-500 rounded-none bg-white focus:outline-none",children:y.map(x=>e.jsx("option",{value:x,children:x},x))}),e.jsx(se,{type:"submit",className:"bg-orange-500 hover:bg-orange-600",children:t?e.jsxs(e.Fragment,{children:[e.jsx(zc,{className:"w-4 h-4 mr-2"}),"Opslaan"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})}),t&&e.jsx(se,{type:"button",variant:"outline",onClick:()=>{n(null),i({name:"",character:"☕ Koffieboon"})},children:"Annuleren"})]})]})]})})}const Gee=[{id:"1",title:"AI in 48 seconden - 6 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",publication_date:"2026-01-06",short_description:"OpenAI lanceert GPT-5, Google's nieuwe AI chip breekt records, en EU stelt strengere AI regelgeving vast.",articles:[{article_title:"OpenAI onthult GPT-5: De volgende generatie AI",article_content:`OpenAI heeft vandaag GPT-5 aangekondigd, met aanzienlijk verbeterde reasoning capabilities en multimodale functionaliteit.

## Belangrijkste verbeteringen

**Beter redeneren**: GPT-5 toont een dramatische verbetering in logisch redeneren en probleemoplossing. In benchmarks scoort het model 30% hoger dan GPT-4 op complexe wiskundige vraagstukken.

**Multimodale capaciteiten**: Het nieuwe model kan naadloos werken met tekst, afbeeldingen, audio en video. Dit opent deuren voor volledig nieuwe toepassingen.

**Langere context**: GPT-5 kan nu tot 500.000 tokens verwerken in één keer, waardoor het geschikt is voor het analyseren van complete codebases of lange documenten.

## Impact op de industrie

Experts voorspellen dat GPT-5 een nieuwe golf van AI-adoptie zal stimuleren, vooral in sectoren zoals gezondheidszorg, onderwijs en software development.

"Dit is een gamechanger voor hoe we met AI interageren," aldus Sam Altman, CEO van OpenAI.`,source_url:"https://openai.com/blog/gpt-5",image_url:"https://images.unsplash.com/photo-1677442136019-21780ecad995?w=1200&auto=format&fit=crop"},{article_title:"Google presenteert Tensor G5: 3x sneller dan voorganger",article_content:`Google heeft de Tensor G5 AI-chip aangekondigd, die een revolutie belooft in edge computing met ongekende prestaties en energie-efficiëntie.

## Technische specificaties

De nieuwe chip beschikt over:
- 3x snellere AI-inferentie dan de G4
- 40% lager energieverbruik
- Ondersteuning voor on-device training
- Geavanceerde privacy features

## Praktische toepassingen

Met de Tensor G5 kunnen smartphones en andere apparaten:
- Realtime vertaling zonder internetverbinding
- Geavanceerde foto/video bewerking on-device
- Persoonlijke AI-assistenten die volledig lokaal draaien

Dit betekent snellere responstijden én betere privacy voor eindgebruikers.`,source_url:"https://blog.google/technology/ai/tensor-g5/",image_url:"https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=1200&auto=format&fit=crop"},{article_title:"EU kondigt strengere AI-regelgeving aan",article_content:`De Europese Unie heeft nieuwe maatregelen aangekondigd om de AI-sector strenger te reguleren, met focus op transparantie en veiligheid.

## Nieuwe vereisten

Bedrijven die AI-systemen ontwikkelen of gebruiken moeten vanaf nu:
- Risico-assessments uitvoeren voor hoog-risico AI
- Transparant zijn over het gebruik van AI
- Zorgen voor menselijk toezicht bij kritieke beslissingen
- Voldoen aan strenge data protection eisen

## Impact op bedrijven

Nederlandse bedrijven krijgen 12 maanden de tijd om te voldoen aan de nieuwe regelgeving. Niet-naleving kan leiden tot boetes tot €10 miljoen of 2% van de jaaromzet.`,source_url:"https://ec.europa.eu/ai-act",image_url:"https://images.unsplash.com/photo-1519389950473-47ba0277781c?w=1200&auto=format&fit=crop"}]}];function Qee(){const[t,n]=I.useState(!1),[r,i]=I.useState(!1),a=new URLSearchParams(window.location.search).get("id"),o=Gee.find(m=>m.id===a);if(!o)return e.jsx("div",{className:"pt-20 min-h-screen bg-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Nieuwsitem niet gevonden"}),e.jsx(de,{to:ae("Nieuws"),className:"text-blue-600 hover:underline",children:"Terug naar nieuws"})]})});const c=window.location.href,d=o.title,h=o.short_description,f=m=>{const p=encodeURIComponent(c),g=encodeURIComponent(d),b={linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${p}`,x:`https://twitter.com/intent/tweet?url=${p}&text=${g}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${p}`};m==="copy"?(navigator.clipboard.writeText(c),i(!0),setTimeout(()=>i(!1),2e3)):b[m]?window.open(b[m],"_blank","width=600,height=400"):navigator.share&&navigator.share({title:d,text:h,url:c}),n(!1)};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("div",{className:"bg-[#F4F4F4] py-4",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(de,{to:ae("Nieuws"),className:"inline-flex items-center gap-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[e.jsx(ht,{className:"w-5 h-5"}),"Terug naar nieuwsoverzicht"]})})}),e.jsx("section",{className:"py-12 bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(_i,{className:"w-5 h-5"}),e.jsx("span",{children:new Date(o.publication_date).toLocaleDateString("nl-NL",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>n(!t),className:"flex items-center gap-2 px-4 py-2 bg-[#F4F4F4] text-[#0D0D0F] rounded-xl hover:bg-[#FAB868] transition-colors",children:[e.jsx(ev,{className:"w-5 h-5"}),"Delen"]}),e.jsx(Cr,{children:t&&e.jsxs(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:"absolute right-0 mt-2 bg-white rounded-2xl shadow-xl border border-gray-100 p-3 w-48 z-50",children:[e.jsxs("button",{onClick:()=>f("linkedin"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(Hs,{className:"w-5 h-5 text-[#0077B5]"}),e.jsx("span",{className:"text-sm font-medium",children:"LinkedIn"})]}),e.jsxs("button",{onClick:()=>f("x"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(Ht,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium",children:"X (Twitter)"})]}),e.jsxs("button",{onClick:()=>f("facebook"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(CA,{className:"w-5 h-5 text-[#1877F2]"}),e.jsx("span",{className:"text-sm font-medium",children:"Facebook"})]}),e.jsx("button",{onClick:()=>f("copy"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:r?e.jsxs(e.Fragment,{children:[e.jsx(Ft,{className:"w-5 h-5 text-green-600"}),e.jsx("span",{className:"text-sm font-medium text-green-600",children:"Gekopieerd!"})]}):e.jsxs(e.Fragment,{children:[e.jsx(EA,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium",children:"Kopieer link"})]})})]})})]})]}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:o.title}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:o.short_description})]})})}),e.jsx("section",{className:"py-8 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:e.jsx("div",{className:"aspect-video rounded-3xl overflow-hidden bg-gray-900 shadow-xl",children:e.jsx("iframe",{src:o.video_url,title:o.title,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})})})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"space-y-16",children:o.articles.map((m,p)=>e.jsxs(Z.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:p*.1},className:"border-b border-gray-200 pb-16 last:border-0",children:[m.image_url&&e.jsx("div",{className:"rounded-3xl overflow-hidden mb-8",children:e.jsx("img",{src:m.image_url,alt:m.article_title,className:"w-full h-auto"})}),e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:m.article_title}),e.jsx("div",{className:"prose prose-lg max-w-none mb-6",children:e.jsx(Hf,{children:m.article_content})}),m.source_url&&e.jsxs("a",{href:m.source_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-[#FAB868] hover:text-[#E5A04D] font-semibold transition-colors",children:["Lees originele bron",e.jsx(Bs,{className:"w-5 h-5"})]})]},p))})})}),e.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:"Mis geen enkele aflevering"}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:"Volg ons op social media of ontvang dagelijks de video via WhatsApp"}),e.jsx(de,{to:ae("Nieuws"),className:"inline-flex items-center gap-2 px-8 py-4 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:"Bekijk alle afleveringen"})]})})})]})}const tA=[{id:"1",title:"AI in 48 seconden - 6 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",publication_date:"2026-01-06",short_description:"OpenAI lanceert GPT-5, Google's nieuwe AI chip breekt records, en EU stelt strengere AI regelgeving vast.",articles:[{article_title:"OpenAI onthult GPT-5: De volgende generatie AI",article_content:"OpenAI heeft vandaag GPT-5 aangekondigd, met verbeterde reasoning capabilities...",image_url:"https://images.unsplash.com/photo-1677442136019-21780ecad995?w=800&auto=format&fit=crop"},{article_title:"Google presenteert Tensor G5: 3x sneller dan voorganger",article_content:"Google's nieuwe AI chip belooft een revolutie in edge computing...",image_url:"https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=800&auto=format&fit=crop"}]},{id:"2",title:"AI in 48 seconden - 3 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",publication_date:"2026-01-03",short_description:"Meta kondigt Llama 4 aan, Microsoft investeert $10 miljard in AI infrastructuur, en ChatGPT bereikt 200 miljoen gebruikers.",articles:[]},{id:"3",title:"AI in 48 seconden - 2 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",publication_date:"2026-01-02",short_description:"Apple lanceert Siri 2.0 met on-device AI, DeepMind lost wiskundeprobleem op, en AI detecteert kanker met 99% nauwkeurigheid.",articles:[]}];function Yee(){const[t,n]=I.useState(""),[r,i]=I.useState(!1),[s,a]=I.useState(!1),[o,c]=I.useState(!1),d=tA[0],h=tA.slice(1),f=b=>{b.preventDefault(),console.log("WhatsApp subscription:",t),i(!0),setTimeout(()=>{i(!1),n("")},3e3)},m=window.location.origin+ae("Nieuws"),p=d.title;d.short_description;const g=b=>{const j=encodeURIComponent(m),y=encodeURIComponent(p),x={linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${j}`,x:`https://twitter.com/intent/tweet?url=${j}&text=${y}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${j}`};b==="copy"?(navigator.clipboard.writeText(m),c(!0),setTimeout(()=>c(!1),2e3)):x[b]&&window.open(x[b],"_blank","width=600,height=400"),a(!1)};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"py-16 bg-[#0D0D0F]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-white mb-6",children:"Daily AI in 48 seconden"}),e.jsx("p",{className:"text-2xl text-gray-400 max-w-3xl mx-auto",children:"Elke werkdag het laatste AI-nieuws, samengevat in 48 seconden"})]})})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("p",{className:"text-sm text-[#9CA3AF] mb-2",children:new Date(d.publication_date).toLocaleDateString("nl-NL",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}),e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI nieuws van vandaag in 48 seconden"})]}),e.jsx("div",{className:"aspect-video rounded-3xl overflow-hidden bg-gray-900 shadow-xl mb-8",children:e.jsx("iframe",{src:d.video_url,title:d.title,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),e.jsxs("div",{className:"flex items-start justify-between gap-4 mb-6",children:[e.jsx("p",{className:"text-xl text-[#9CA3AF] leading-relaxed flex-1",children:d.short_description}),e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>a(!s),className:"flex items-center gap-2 px-4 py-2 bg-[#F4F4F4] text-[#0D0D0F] rounded-xl hover:bg-[#FAB868] transition-colors whitespace-nowrap",children:[e.jsx(ev,{className:"w-5 h-5"}),e.jsx("span",{className:"hidden sm:inline",children:"Delen"})]}),e.jsx(Cr,{children:s&&e.jsxs(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:"absolute right-0 mt-2 bg-white rounded-2xl shadow-xl border border-gray-100 p-3 w-48 z-50",children:[e.jsxs("button",{onClick:()=>g("linkedin"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(Hs,{className:"w-5 h-5 text-[#0077B5]"}),e.jsx("span",{className:"text-sm font-medium",children:"LinkedIn"})]}),e.jsxs("button",{onClick:()=>g("x"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(Ht,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium",children:"X (Twitter)"})]}),e.jsxs("button",{onClick:()=>g("facebook"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(CA,{className:"w-5 h-5 text-[#1877F2]"}),e.jsx("span",{className:"text-sm font-medium",children:"Facebook"})]}),e.jsx("button",{onClick:()=>g("copy"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:o?e.jsxs(e.Fragment,{children:[e.jsx(Ft,{className:"w-5 h-5 text-green-600"}),e.jsx("span",{className:"text-sm font-medium text-green-600",children:"Gekopieerd!"})]}):e.jsxs(e.Fragment,{children:[e.jsx(EA,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium",children:"Kopieer link"})]})})]})})]})]})]})})}),e.jsx("section",{className:"py-12 bg-gradient-to-r from-[#25D366] to-[#20BA5A]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:r?e.jsxs("div",{className:"text-center py-8",children:[e.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(gt,{className:"w-8 h-8 text-white"})}),e.jsx("h3",{className:"text-3xl font-bold text-white mb-2",children:"Succesvol ingeschreven!"}),e.jsx("p",{className:"text-xl text-white/90",children:"Je ontvangt vanaf morgen dagelijks het AI-nieuws via WhatsApp."})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h2",{className:"text-4xl font-bold text-white mb-4",children:"Blijf niet achter, mis geen AI nieuws!"}),e.jsx("p",{className:"text-xl text-white/90",children:"Wij sturen je elke werkdag het belangrijkste AI nieuws in 48 seconden via WhatsApp."})]}),e.jsxs("form",{onSubmit:f,className:"flex flex-col sm:flex-row gap-4 max-w-2xl mx-auto",children:[e.jsx(me,{type:"tel",placeholder:"+31 6 12345678",value:t,onChange:b=>n(b.target.value),required:!0,className:"flex-1 px-6 py-6 text-lg bg-white rounded-xl h-14"}),e.jsxs(se,{type:"submit",className:"px-8 py-6 bg-[#0D0D0F] text-white hover:bg-[#1a1a1c] font-bold text-lg rounded-xl h-14",children:[e.jsx($o,{className:"w-5 h-5 mr-2"}),"Inschrijven"]})]}),e.jsx("p",{className:"text-sm text-white/80 text-center mt-4",children:"✓ Elke werkdag • ✓ Geen spam • ✓ Afmelden wanneer je wilt"})]})})})}),d.articles.length>0&&e.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-12",children:[e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-4",children:"Verdieping van vandaag"}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Lees meer over de belangrijkste ontwikkelingen"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:d.articles.map((b,j)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:j*.1},children:e.jsxs(de,{to:ae("NewsDetail")+`?id=${d.id}`,className:"block bg-white rounded-3xl overflow-hidden hover:shadow-xl transition-all group",children:[b.image_url&&e.jsx("div",{className:"aspect-video overflow-hidden",children:e.jsx("img",{src:b.image_url,alt:b.article_title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),e.jsxs("div",{className:"p-6",children:[e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3 group-hover:text-[#FAB868] transition-colors",children:b.article_title}),e.jsx("p",{className:"text-[#9CA3AF] line-clamp-3 mb-4",children:b.article_content}),e.jsxs("span",{className:"inline-flex items-center gap-2 text-[#FAB868] font-semibold",children:["Lees meer",e.jsx($e,{className:"w-5 h-5"})]})]})]})},j))})]})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-12",children:[e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-4",children:"Archief"}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Bekijk eerdere afleveringen"})]}),e.jsx("div",{className:"space-y-6",children:h.map((b,j)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:j*.1},children:e.jsx(de,{to:ae("NewsDetail")+`?id=${b.id}`,className:"block bg-[#F4F4F4] rounded-3xl p-6 hover:bg-white hover:shadow-lg transition-all group",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"md:w-64 flex-shrink-0",children:e.jsx("div",{className:"aspect-video rounded-2xl overflow-hidden bg-gray-900",children:e.jsx("img",{src:"https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg",alt:b.title,className:"w-full h-full object-cover"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(_i,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{className:"text-sm text-[#9CA3AF]",children:new Date(b.publication_date).toLocaleDateString("nl-NL",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]}),e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3 group-hover:text-[#FAB868] transition-colors",children:b.title}),e.jsx("p",{className:"text-lg text-[#9CA3AF] mb-4",children:b.short_description}),e.jsxs("span",{className:"inline-flex items-center gap-2 text-[#FAB868] font-semibold",children:["Bekijk afleverig",e.jsx($e,{className:"w-5 h-5"})]})]})]})})},b.id))})]})})]})}function Xee(){const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=Fe({queryKey:["solutions",n],queryFn:()=>ce.entities.Solution.filter({slug:n,published:!0}),enabled:!!n,initialData:[]}),s=r[0];return i?e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):s?e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative bg-gradient-to-br from-blue-600 via-indigo-600 to-purple-700 text-white pt-32 pb-20",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-white/10 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-[400px] h-[400px] bg-white/10 rounded-full blur-3xl"})]}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:[s.subtitle&&e.jsx("p",{className:"text-blue-100 font-semibold mb-4",children:s.subtitle}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold mb-6 leading-tight",children:s.hero_title||s.title}),e.jsx("p",{className:"text-xl text-blue-100 mb-8 leading-relaxed",children:s.hero_description||s.short_description}),s.statistics&&s.statistics.length>0&&e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-8",children:s.statistics.map((a,o)=>e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-4",children:[e.jsx("p",{className:"text-3xl font-bold mb-1",children:a.value}),e.jsx("p",{className:"text-sm text-blue-100",children:a.label})]},o))}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.cta_button_link&&e.jsxs(de,{to:s.cta_button_link,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-600 font-semibold rounded-xl hover:bg-blue-50 transition-all",children:[s.cta_button_text||"Meer informatie",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:ae("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 border-2 border-white text-white font-semibold rounded-xl hover:bg-white/10 transition-all",children:"Contact opnemen"})]})]}),s.hero_image&&e.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.2},className:"hidden lg:block",children:e.jsx("img",{src:s.hero_image,alt:s.title,className:"w-full rounded-3xl shadow-2xl"})})]})})]}),s.features&&s.features.length>0&&e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Belangrijkste Features"})}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.features.map((a,o)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"bg-gray-50 rounded-2xl p-6",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center mb-4",children:e.jsx(Ft,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:a.title}),e.jsx("p",{className:"text-gray-600",children:a.description})]},o))})]})}),s.how_it_works&&s.how_it_works.length>0&&e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Hoe het werkt"})}),e.jsx("div",{className:"max-w-4xl mx-auto",children:s.how_it_works.sort((a,o)=>a.step_number-o.step_number).map((a,o)=>e.jsxs(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:o*.1},className:"flex gap-6 mb-8 last:mb-0",children:[e.jsx("div",{className:"flex-shrink-0 w-12 h-12 bg-blue-600 text-white rounded-xl flex items-center justify-center font-bold text-xl",children:a.step_number}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:a.title}),e.jsx("p",{className:"text-gray-600 text-lg",children:a.description})]})]},o))})]})}),s.use_cases&&s.use_cases.length>0&&e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Praktijkvoorbeelden"})}),e.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:s.use_cases.map((a,o)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl p-8 border border-blue-100",children:[a.image&&e.jsx("img",{src:a.image,alt:a.title,className:"w-full h-48 object-cover rounded-xl mb-6"}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:a.title}),e.jsx("p",{className:"text-gray-700 text-lg",children:a.description})]},o))})]})}),s.benefits&&s.benefits.length>0&&e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Voordelen"})}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:s.benefits.map((a,o)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"flex items-start gap-4 bg-white rounded-xl p-6",children:[e.jsx("div",{className:"w-10 h-10 bg-green-100 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(Ft,{className:"w-5 h-5 text-green-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-1",children:a.title}),e.jsx("p",{className:"text-gray-600 text-sm",children:a.description})]})]},o))})]})}),s.testimonial&&s.testimonial.quote&&e.jsx("section",{className:"py-20 bg-gradient-to-br from-blue-600 to-indigo-700 text-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[e.jsx(PA,{className:"w-16 h-16 mx-auto mb-6 text-blue-200"}),e.jsxs("p",{className:"text-2xl md:text-3xl font-medium mb-8 leading-relaxed",children:['"',s.testimonial.quote,'"']}),e.jsxs("div",{className:"flex items-center justify-center gap-4",children:[s.testimonial.image&&e.jsx("img",{src:s.testimonial.image,alt:s.testimonial.author,className:"w-16 h-16 rounded-full"}),e.jsxs("div",{className:"text-left",children:[e.jsx("p",{className:"font-bold",children:s.testimonial.author}),e.jsx("p",{className:"text-blue-200",children:s.testimonial.role}),s.testimonial.company&&e.jsx("p",{className:"text-blue-200",children:s.testimonial.company})]})]})]})})}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:s.cta_title||"Klaar om te beginnen?"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:s.cta_description||"Neem contact met ons op voor meer informatie of een demo."}),e.jsxs(de,{to:s.cta_button_link||ae("Contact"),className:"inline-flex items-center gap-2 px-8 py-4 bg-blue-600 text-white font-semibold rounded-2xl hover:bg-blue-700 transition-all",children:[e.jsx(ui,{className:"w-5 h-5"}),s.cta_button_text||"Contact opnemen",e.jsx($e,{className:"w-5 h-5"})]})]})})})]}):e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Oplossing niet gevonden"}),e.jsx(de,{to:ae("Oplossingen"),className:"text-blue-600 hover:underline",children:"Bekijk alle oplossingen"})]})})}function Jee(){const{data:t=[],isLoading:n}=Fe({queryKey:["solutions"],queryFn:()=>ce.entities.Solution.filter({published:!0},"sort_order",50),initialData:[]});return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"relative bg-gradient-to-b from-blue-50 to-white pt-32 pb-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"AI Oplossingen"]}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-gray-900 mb-6",children:"Onze AI Oplossingen"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Producten en platforms die we hebben ontwikkeld om AI toegankelijk en bruikbaar te maken voor bedrijven."})]})})}),e.jsx("section",{className:"py-20 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Geen oplossingen gevonden. Kom later terug!"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:t.map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:i*.1},className:"bg-white rounded-3xl border-2 border-gray-100 hover:border-blue-200 hover:shadow-xl transition-all overflow-hidden group",children:[r.hero_image&&e.jsxs("div",{className:"relative h-48 overflow-hidden",children:[e.jsx("img",{src:r.hero_image,alt:r.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 to-transparent"})]}),e.jsxs("div",{className:"p-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:r.title}),r.subtitle&&e.jsx("p",{className:"text-sm text-blue-600 font-medium mb-4",children:r.subtitle}),e.jsx("p",{className:"text-gray-600 mb-6 line-clamp-3",children:r.short_description}),r.statistics&&r.statistics.length>0&&e.jsx("div",{className:"flex gap-4 mb-6 pb-6 border-b border-gray-100",children:r.statistics.slice(0,2).map((s,a)=>e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-bold text-blue-600",children:s.value}),e.jsx("p",{className:"text-sm text-gray-600",children:s.label})]},a))}),e.jsxs(de,{to:ae(`OplossingDetail?slug=${r.slug}`),className:"inline-flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all",children:["Meer informatie",e.jsx($e,{className:"w-5 h-5"})]})]})]},r.id))})})}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:"Op zoek naar een custom oplossing?"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"We bouwen ook maatwerk AI-oplossingen specifiek voor jouw bedrijf."}),e.jsxs(de,{to:ae("Contact"),className:"inline-flex items-center gap-2 px-8 py-4 bg-blue-600 text-white font-semibold rounded-2xl hover:bg-blue-700 transition-all",children:[e.jsx(Ki,{className:"w-5 h-5"}),"Bespreek je project",e.jsx($e,{className:"w-5 h-5"})]})]})})})]})}function Zee(){const{data:t=[]}=Fe({queryKey:["teamMembers"],queryFn:()=>ce.entities.TeamMember.filter({active:!0,show_on_about_page:!0},"sort_order"),initialData:[]}),n=[{icon:Qa,title:"Praktijkervaring",description:"Ons team komt uit het bedrijfsleven. Wij begrijpen de dagelijkse uitdagingen van MKB en vertalen AI mogelijkheden naar praktische oplossingen."},{icon:wu,title:"Full-service",description:"Wij stoppen niet bij advies. Van strategie tot implementatie, van training tot support — wij begeleiden het complete traject."},{icon:Ya,title:"MKB Focus",description:"Wij richten ons specifiek op MKB bedrijven met €5-20M omzet. Groot genoeg voor impact, wendbaar genoeg om snel te schakelen."},{icon:k0,title:"Kwaliteit",description:"Wij positioneren ons in het midden tot hoog segment. Geen quick fixes, maar duurzame oplossingen die je bedrijf vooruit helpen."}];return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:[e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-6",children:"The AI Professionals"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Wij zijn 48-7 — een full-service AI agency die MKB bedrijven helpt hun productiviteit te verdubbelen. Van strategie tot software, van training tot doorontwikkeling."}),e.jsx("div",{className:"flex flex-wrap gap-4",children:e.jsxs(de,{to:ae("Contact"),className:"inline-flex items-center gap-2 px-6 py-3 bg-gray-900 text-white font-semibold rounded-xl hover:bg-gray-800 transition-colors",children:["Neem contact op",e.jsx($e,{className:"w-5 h-5"})]})})]}),e.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"relative",children:e.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&auto=format&fit=crop",alt:"Team 48-7",className:"rounded-3xl shadow-2xl"})})]})})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-blue-50 rounded-2xl p-8",children:[e.jsx("div",{className:"w-14 h-14 bg-blue-100 rounded-2xl flex items-center justify-center mb-6",children:e.jsx(Va,{className:"w-7 h-7 text-blue-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Onze Missie"}),e.jsx("p",{className:"text-gray-700 text-lg",children:"MKB bedrijven helpen hun productiviteit te verdubbelen door AI toegankelijk en praktisch toepasbaar te maken. Van 24-7 naar 48-7."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-purple-50 rounded-2xl p-8",children:[e.jsx("div",{className:"w-14 h-14 bg-purple-100 rounded-2xl flex items-center justify-center mb-6",children:e.jsx(zs,{className:"w-7 h-7 text-purple-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Onze Visie"}),e.jsx("p",{className:"text-gray-700 text-lg",children:"Een wereld waarin elk bedrijf profiteert van AI. Niet door vervanging van mensen, maar door versterking van hun capaciteiten."})]})]})})}),e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Wat maakt ons anders"}),e.jsx("p",{className:"text-xl text-gray-600",children:"De pijlers onder onze aanpak"})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:n.map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"bg-white rounded-2xl p-6 border border-gray-100",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center mb-4",children:e.jsx(r.icon,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:r.title}),e.jsx("p",{className:"text-gray-600",children:r.description})]},i))})]})}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(_n,{className:"w-4 h-4"}),"Ons Team"]}),e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Ontmoet de professionals"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Experts met een passie voor AI en MKB"})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:t.map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"bg-white rounded-2xl overflow-hidden border border-gray-100 hover:shadow-xl transition-all group",children:[r.image_url&&e.jsx("div",{className:"aspect-square overflow-hidden",children:e.jsx("img",{src:r.image_url,alt:r.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-start justify-between mb-2",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:r.name}),e.jsx("p",{className:"text-blue-600 font-medium",children:r.role})]}),r.linkedin_url&&e.jsx("a",{href:r.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center hover:bg-blue-100 hover:text-blue-600 transition-colors",children:e.jsx(Hs,{className:"w-5 h-5"})})]}),r.bio&&e.jsx("p",{className:"text-gray-600",children:r.bio})]})]},r.id))})]})}),e.jsx(z6,{}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-white mb-6",children:"Word onderdeel van 48-7"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"Wij zijn altijd op zoek naar getalenteerde professionals die onze missie delen."}),e.jsxs(de,{to:ae("Vacatures"),className:"inline-flex items-center gap-2 px-8 py-4 bg-white text-gray-900 font-semibold rounded-2xl hover:shadow-xl transition-all",children:["Bekijk vacatures",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function ts(t){return Array.isArray?Array.isArray(t):U6(t)==="[object Array]"}function ete(t){if(typeof t=="string")return t;let n=t+"";return n=="0"&&1/t==-1/0?"-0":n}function tte(t){return t==null?"":ete(t)}function hi(t){return typeof t=="string"}function q6(t){return typeof t=="number"}function nte(t){return t===!0||t===!1||rte(t)&&U6(t)=="[object Boolean]"}function V6(t){return typeof t=="object"}function rte(t){return V6(t)&&t!==null}function dr(t){return t!=null}function N0(t){return!t.trim().length}function U6(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const ite="Incorrect 'index' type",ste=t=>`Invalid value for key ${t}`,ate=t=>`Pattern length exceeds max of ${t}.`,ote=t=>`Missing ${t} property in key`,lte=t=>`Property 'weight' in key '${t}' must be a positive integer`,nA=Object.prototype.hasOwnProperty;class cte{constructor(n){this._keys=[],this._keyMap={};let r=0;n.forEach(i=>{let s=$6(i);this._keys.push(s),this._keyMap[s.id]=s,r+=s.weight}),this._keys.forEach(i=>{i.weight/=r})}get(n){return this._keyMap[n]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function $6(t){let n=null,r=null,i=null,s=1,a=null;if(hi(t)||ts(t))i=t,n=rA(t),r=$y(t);else{if(!nA.call(t,"name"))throw new Error(ote("name"));const o=t.name;if(i=o,nA.call(t,"weight")&&(s=t.weight,s<=0))throw new Error(lte(o));n=rA(o),r=$y(o),a=t.getFn}return{path:n,id:r,weight:s,src:i,getFn:a}}function rA(t){return ts(t)?t:t.split(".")}function $y(t){return ts(t)?t.join("."):t}function ute(t,n){let r=[],i=!1;const s=(a,o,c)=>{if(dr(a))if(!o[c])r.push(a);else{let d=o[c];const h=a[d];if(!dr(h))return;if(c===o.length-1&&(hi(h)||q6(h)||nte(h)))r.push(tte(h));else if(ts(h)){i=!0;for(let f=0,m=h.length;f<m;f+=1)s(h[f],o,c+1)}else o.length&&s(h,o,c+1)}};return s(t,hi(n)?n.split("."):n,0),i?r:r[0]}const dte={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},hte={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,n)=>t.score===n.score?t.idx<n.idx?-1:1:t.score<n.score?-1:1},fte={location:0,threshold:.6,distance:100},mte={useExtendedSearch:!1,getFn:ute,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Xe={...hte,...dte,...fte,...mte};const pte=/[^ ]+/g;function gte(t=1,n=3){const r=new Map,i=Math.pow(10,n);return{get(s){const a=s.match(pte).length;if(r.has(a))return r.get(a);const o=1/Math.pow(a,.5*t),c=parseFloat(Math.round(o*i)/i);return r.set(a,c),c},clear(){r.clear()}}}class Eb{constructor({getFn:n=Xe.getFn,fieldNormWeight:r=Xe.fieldNormWeight}={}){this.norm=gte(r,3),this.getFn=n,this.isCreated=!1,this.setIndexRecords()}setSources(n=[]){this.docs=n}setIndexRecords(n=[]){this.records=n}setKeys(n=[]){this.keys=n,this._keysMap={},n.forEach((r,i)=>{this._keysMap[r.id]=i})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,hi(this.docs[0])?this.docs.forEach((n,r)=>{this._addString(n,r)}):this.docs.forEach((n,r)=>{this._addObject(n,r)}),this.norm.clear())}add(n){const r=this.size();hi(n)?this._addString(n,r):this._addObject(n,r)}removeAt(n){this.records.splice(n,1);for(let r=n,i=this.size();r<i;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(n,r){return n[this._keysMap[r]]}size(){return this.records.length}_addString(n,r){if(!dr(n)||N0(n))return;let i={v:n,i:r,n:this.norm.get(n)};this.records.push(i)}_addObject(n,r){let i={i:r,$:{}};this.keys.forEach((s,a)=>{let o=s.getFn?s.getFn(n):this.getFn(n,s.path);if(dr(o)){if(ts(o)){let c=[];const d=[{nestedArrIndex:-1,value:o}];for(;d.length;){const{nestedArrIndex:h,value:f}=d.pop();if(dr(f))if(hi(f)&&!N0(f)){let m={v:f,i:h,n:this.norm.get(f)};c.push(m)}else ts(f)&&f.forEach((m,p)=>{d.push({nestedArrIndex:p,value:m})})}i.$[a]=c}else if(hi(o)&&!N0(o)){let c={v:o,n:this.norm.get(o)};i.$[a]=c}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function H6(t,n,{getFn:r=Xe.getFn,fieldNormWeight:i=Xe.fieldNormWeight}={}){const s=new Eb({getFn:r,fieldNormWeight:i});return s.setKeys(t.map($6)),s.setSources(n),s.create(),s}function xte(t,{getFn:n=Xe.getFn,fieldNormWeight:r=Xe.fieldNormWeight}={}){const{keys:i,records:s}=t,a=new Eb({getFn:n,fieldNormWeight:r});return a.setKeys(i),a.setIndexRecords(s),a}function gh(t,{errors:n=0,currentLocation:r=0,expectedLocation:i=0,distance:s=Xe.distance,ignoreLocation:a=Xe.ignoreLocation}={}){const o=n/t.length;if(a)return o;const c=Math.abs(i-r);return s?o+c/s:c?1:o}function yte(t=[],n=Xe.minMatchCharLength){let r=[],i=-1,s=-1,a=0;for(let o=t.length;a<o;a+=1){let c=t[a];c&&i===-1?i=a:!c&&i!==-1&&(s=a-1,s-i+1>=n&&r.push([i,s]),i=-1)}return t[a-1]&&a-i>=n&&r.push([i,a-1]),r}const Na=32;function vte(t,n,r,{location:i=Xe.location,distance:s=Xe.distance,threshold:a=Xe.threshold,findAllMatches:o=Xe.findAllMatches,minMatchCharLength:c=Xe.minMatchCharLength,includeMatches:d=Xe.includeMatches,ignoreLocation:h=Xe.ignoreLocation}={}){if(n.length>Na)throw new Error(ate(Na));const f=n.length,m=t.length,p=Math.max(0,Math.min(i,m));let g=a,b=p;const j=c>1||d,y=j?Array(m):[];let x;for(;(x=t.indexOf(n,b))>-1;){let E=gh(n,{currentLocation:x,expectedLocation:p,distance:s,ignoreLocation:h});if(g=Math.min(E,g),b=x+f,j){let C=0;for(;C<f;)y[x+C]=1,C+=1}}b=-1;let N=[],w=1,k=f+m;const A=1<<f-1;for(let E=0;E<f;E+=1){let C=0,B=k;for(;C<B;)gh(n,{errors:E,currentLocation:p+B,expectedLocation:p,distance:s,ignoreLocation:h})<=g?C=B:k=B,B=Math.floor((k-C)/2+C);k=B;let D=Math.max(1,p-B+1),F=o?m:Math.min(p+B,m)+f,R=Array(F+2);R[F+1]=(1<<E)-1;for(let q=F;q>=D;q-=1){let U=q-1,Q=r[t.charAt(U)];if(j&&(y[U]=+!!Q),R[q]=(R[q+1]<<1|1)&Q,E&&(R[q]|=(N[q+1]|N[q])<<1|1|N[q+1]),R[q]&A&&(w=gh(n,{errors:E,currentLocation:U,expectedLocation:p,distance:s,ignoreLocation:h}),w<=g)){if(g=w,b=U,b<=p)break;D=Math.max(1,2*p-b)}}if(gh(n,{errors:E+1,currentLocation:p,expectedLocation:p,distance:s,ignoreLocation:h})>g)break;N=R}const S={isMatch:b>=0,score:Math.max(.001,w)};if(j){const E=yte(y,c);E.length?d&&(S.indices=E):S.isMatch=!1}return S}function bte(t){let n={};for(let r=0,i=t.length;r<i;r+=1){const s=t.charAt(r);n[s]=(n[s]||0)|1<<i-r-1}return n}const af=String.prototype.normalize?(t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(t=>t);class W6{constructor(n,{location:r=Xe.location,threshold:i=Xe.threshold,distance:s=Xe.distance,includeMatches:a=Xe.includeMatches,findAllMatches:o=Xe.findAllMatches,minMatchCharLength:c=Xe.minMatchCharLength,isCaseSensitive:d=Xe.isCaseSensitive,ignoreDiacritics:h=Xe.ignoreDiacritics,ignoreLocation:f=Xe.ignoreLocation}={}){if(this.options={location:r,threshold:i,distance:s,includeMatches:a,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:d,ignoreDiacritics:h,ignoreLocation:f},n=d?n:n.toLowerCase(),n=h?af(n):n,this.pattern=n,this.chunks=[],!this.pattern.length)return;const m=(g,b)=>{this.chunks.push({pattern:g,alphabet:bte(g),startIndex:b})},p=this.pattern.length;if(p>Na){let g=0;const b=p%Na,j=p-b;for(;g<j;)m(this.pattern.substr(g,Na),g),g+=Na;if(b){const y=p-Na;m(this.pattern.substr(y),y)}}else m(this.pattern,0)}searchIn(n){const{isCaseSensitive:r,ignoreDiacritics:i,includeMatches:s}=this.options;if(n=r?n:n.toLowerCase(),n=i?af(n):n,this.pattern===n){let j={isMatch:!0,score:0};return s&&(j.indices=[[0,n.length-1]]),j}const{location:a,distance:o,threshold:c,findAllMatches:d,minMatchCharLength:h,ignoreLocation:f}=this.options;let m=[],p=0,g=!1;this.chunks.forEach(({pattern:j,alphabet:y,startIndex:x})=>{const{isMatch:N,score:w,indices:k}=vte(n,j,y,{location:a+x,distance:o,threshold:c,findAllMatches:d,minMatchCharLength:h,includeMatches:s,ignoreLocation:f});N&&(g=!0),p+=w,N&&k&&(m=[...m,...k])});let b={isMatch:g,score:g?p/this.chunks.length:1};return g&&s&&(b.indices=m),b}}class na{constructor(n){this.pattern=n}static isMultiMatch(n){return iA(n,this.multiRegex)}static isSingleMatch(n){return iA(n,this.singleRegex)}search(){}}function iA(t,n){const r=t.match(n);return r?r[1]:null}class jte extends na{constructor(n){super(n)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(n){const r=n===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class wte extends na{constructor(n){super(n)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(n){const i=n.indexOf(this.pattern)===-1;return{isMatch:i,score:i?0:1,indices:[0,n.length-1]}}}class Nte extends na{constructor(n){super(n)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(n){const r=n.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class kte extends na{constructor(n){super(n)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(n){const r=!n.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,n.length-1]}}}class _te extends na{constructor(n){super(n)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(n){const r=n.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}class Ste extends na{constructor(n){super(n)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(n){const r=!n.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,n.length-1]}}}class K6 extends na{constructor(n,{location:r=Xe.location,threshold:i=Xe.threshold,distance:s=Xe.distance,includeMatches:a=Xe.includeMatches,findAllMatches:o=Xe.findAllMatches,minMatchCharLength:c=Xe.minMatchCharLength,isCaseSensitive:d=Xe.isCaseSensitive,ignoreDiacritics:h=Xe.ignoreDiacritics,ignoreLocation:f=Xe.ignoreLocation}={}){super(n),this._bitapSearch=new W6(n,{location:r,threshold:i,distance:s,includeMatches:a,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:d,ignoreDiacritics:h,ignoreLocation:f})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(n){return this._bitapSearch.searchIn(n)}}class G6 extends na{constructor(n){super(n)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(n){let r=0,i;const s=[],a=this.pattern.length;for(;(i=n.indexOf(this.pattern,r))>-1;)r=i+a,s.push([i,r-1]);const o=!!s.length;return{isMatch:o,score:o?0:1,indices:s}}}const Hy=[jte,G6,Nte,kte,Ste,_te,wte,K6],sA=Hy.length,Ate=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Cte="|";function Ete(t,n={}){return t.split(Cte).map(r=>{let i=r.trim().split(Ate).filter(a=>a&&!!a.trim()),s=[];for(let a=0,o=i.length;a<o;a+=1){const c=i[a];let d=!1,h=-1;for(;!d&&++h<sA;){const f=Hy[h];let m=f.isMultiMatch(c);m&&(s.push(new f(m,n)),d=!0)}if(!d)for(h=-1;++h<sA;){const f=Hy[h];let m=f.isSingleMatch(c);if(m){s.push(new f(m,n));break}}}return s})}const Tte=new Set([K6.type,G6.type]);class Pte{constructor(n,{isCaseSensitive:r=Xe.isCaseSensitive,ignoreDiacritics:i=Xe.ignoreDiacritics,includeMatches:s=Xe.includeMatches,minMatchCharLength:a=Xe.minMatchCharLength,ignoreLocation:o=Xe.ignoreLocation,findAllMatches:c=Xe.findAllMatches,location:d=Xe.location,threshold:h=Xe.threshold,distance:f=Xe.distance}={}){this.query=null,this.options={isCaseSensitive:r,ignoreDiacritics:i,includeMatches:s,minMatchCharLength:a,findAllMatches:c,ignoreLocation:o,location:d,threshold:h,distance:f},n=r?n:n.toLowerCase(),n=i?af(n):n,this.pattern=n,this.query=Ete(this.pattern,this.options)}static condition(n,r){return r.useExtendedSearch}searchIn(n){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:i,isCaseSensitive:s,ignoreDiacritics:a}=this.options;n=s?n:n.toLowerCase(),n=a?af(n):n;let o=0,c=[],d=0;for(let h=0,f=r.length;h<f;h+=1){const m=r[h];c.length=0,o=0;for(let p=0,g=m.length;p<g;p+=1){const b=m[p],{isMatch:j,indices:y,score:x}=b.search(n);if(j){if(o+=1,d+=x,i){const N=b.constructor.type;Tte.has(N)?c=[...c,...y]:c.push(y)}}else{d=0,o=0,c.length=0;break}}if(o){let p={isMatch:!0,score:d/o};return i&&(p.indices=c),p}}return{isMatch:!1,score:1}}}const Wy=[];function Ote(...t){Wy.push(...t)}function Ky(t,n){for(let r=0,i=Wy.length;r<i;r+=1){let s=Wy[r];if(s.condition(t,n))return new s(t,n)}return new W6(t,n)}const of={AND:"$and",OR:"$or"},Gy={PATH:"$path",PATTERN:"$val"},Qy=t=>!!(t[of.AND]||t[of.OR]),Dte=t=>!!t[Gy.PATH],Ite=t=>!ts(t)&&V6(t)&&!Qy(t),aA=t=>({[of.AND]:Object.keys(t).map(n=>({[n]:t[n]}))});function Q6(t,n,{auto:r=!0}={}){const i=s=>{let a=Object.keys(s);const o=Dte(s);if(!o&&a.length>1&&!Qy(s))return i(aA(s));if(Ite(s)){const d=o?s[Gy.PATH]:a[0],h=o?s[Gy.PATTERN]:s[d];if(!hi(h))throw new Error(ste(d));const f={keyId:$y(d),pattern:h};return r&&(f.searcher=Ky(h,n)),f}let c={children:[],operator:a[0]};return a.forEach(d=>{const h=s[d];ts(h)&&h.forEach(f=>{c.children.push(i(f))})}),c};return Qy(t)||(t=aA(t)),i(t)}function Rte(t,{ignoreFieldNorm:n=Xe.ignoreFieldNorm}){t.forEach(r=>{let i=1;r.matches.forEach(({key:s,norm:a,score:o})=>{const c=s?s.weight:null;i*=Math.pow(o===0&&c?Number.EPSILON:o,(c||1)*(n?1:a))}),r.score=i})}function Fte(t,n){const r=t.matches;n.matches=[],dr(r)&&r.forEach(i=>{if(!dr(i.indices)||!i.indices.length)return;const{indices:s,value:a}=i;let o={indices:s,value:a};i.key&&(o.key=i.key.src),i.idx>-1&&(o.refIndex=i.idx),n.matches.push(o)})}function Mte(t,n){n.score=t.score}function Lte(t,n,{includeMatches:r=Xe.includeMatches,includeScore:i=Xe.includeScore}={}){const s=[];return r&&s.push(Fte),i&&s.push(Mte),t.map(a=>{const{idx:o}=a,c={item:n[o],refIndex:o};return s.length&&s.forEach(d=>{d(a,c)}),c})}class Dl{constructor(n,r={},i){this.options={...Xe,...r},this.options.useExtendedSearch,this._keyStore=new cte(this.options.keys),this.setCollection(n,i)}setCollection(n,r){if(this._docs=n,r&&!(r instanceof Eb))throw new Error(ite);this._myIndex=r||H6(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(n){dr(n)&&(this._docs.push(n),this._myIndex.add(n))}remove(n=()=>!1){const r=[];for(let i=0,s=this._docs.length;i<s;i+=1){const a=this._docs[i];n(a,i)&&(this.removeAt(i),i-=1,s-=1,r.push(a))}return r}removeAt(n){this._docs.splice(n,1),this._myIndex.removeAt(n)}getIndex(){return this._myIndex}search(n,{limit:r=-1}={}){const{includeMatches:i,includeScore:s,shouldSort:a,sortFn:o,ignoreFieldNorm:c}=this.options;let d=hi(n)?hi(this._docs[0])?this._searchStringList(n):this._searchObjectList(n):this._searchLogical(n);return Rte(d,{ignoreFieldNorm:c}),a&&d.sort(o),q6(r)&&r>-1&&(d=d.slice(0,r)),Lte(d,this._docs,{includeMatches:i,includeScore:s})}_searchStringList(n){const r=Ky(n,this.options),{records:i}=this._myIndex,s=[];return i.forEach(({v:a,i:o,n:c})=>{if(!dr(a))return;const{isMatch:d,score:h,indices:f}=r.searchIn(a);d&&s.push({item:a,idx:o,matches:[{score:h,value:a,norm:c,indices:f}]})}),s}_searchLogical(n){const r=Q6(n,this.options),i=(c,d,h)=>{if(!c.children){const{keyId:m,searcher:p}=c,g=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(d,m),searcher:p});return g&&g.length?[{idx:h,item:d,matches:g}]:[]}const f=[];for(let m=0,p=c.children.length;m<p;m+=1){const g=c.children[m],b=i(g,d,h);if(b.length)f.push(...b);else if(c.operator===of.AND)return[]}return f},s=this._myIndex.records,a={},o=[];return s.forEach(({$:c,i:d})=>{if(dr(c)){let h=i(r,c,d);h.length&&(a[d]||(a[d]={idx:d,item:c,matches:[]},o.push(a[d])),h.forEach(({matches:f})=>{a[d].matches.push(...f)}))}}),o}_searchObjectList(n){const r=Ky(n,this.options),{keys:i,records:s}=this._myIndex,a=[];return s.forEach(({$:o,i:c})=>{if(!dr(o))return;let d=[];i.forEach((h,f)=>{d.push(...this._findMatches({key:h,value:o[f],searcher:r}))}),d.length&&a.push({idx:c,item:o,matches:d})}),a}_findMatches({key:n,value:r,searcher:i}){if(!dr(r))return[];let s=[];if(ts(r))r.forEach(({v:a,i:o,n:c})=>{if(!dr(a))return;const{isMatch:d,score:h,indices:f}=i.searchIn(a);d&&s.push({score:h,key:n,value:a,idx:o,norm:c,indices:f})});else{const{v:a,n:o}=r,{isMatch:c,score:d,indices:h}=i.searchIn(a);c&&s.push({score:d,key:n,value:a,norm:o,indices:h})}return s}}Dl.version="7.1.0";Dl.createIndex=H6;Dl.parseIndex=xte;Dl.config=Xe;Dl.parseQuery=Q6;Ote(Pte);function Bte(){const[t,n]=I.useState([]),[r,i]=I.useState([]),[s,a]=I.useState("relevance"),c=new URLSearchParams(window.location.search).get("q")||"",{data:d=[],isLoading:h}=Fe({queryKey:["cases"],queryFn:()=>ce.entities.CaseStudy.filter({published:!0}),staleTime:300*1e3}),{data:f=[],isLoading:m}=Fe({queryKey:["blogs"],queryFn:()=>ce.entities.BlogPost.filter({published:!0}),staleTime:300*1e3}),{data:p=[],isLoading:g}=Fe({queryKey:["trainings"],queryFn:()=>ce.entities.Training.filter({active:!0}),staleTime:300*1e3}),{data:b=[],isLoading:j}=Fe({queryKey:["vacancies"],queryFn:()=>ce.entities.Vacature.filter({active:!0}),staleTime:300*1e3}),{data:y=[],isLoading:x}=Fe({queryKey:["pages"],queryFn:()=>ce.entities.PageSection.filter({active:!0}),staleTime:300*1e3}),N=h||m||g||j||x,w=Pt.useMemo(()=>N?[]:[...d.map(R=>({type:"case",title:R.client_name||"",description:R.challenge||"",content:`${R.challenge||""} ${R.solution||""}`,category:R.case_type||"",date:R.created_date,slug:R.slug,item:R})),...f.map(R=>({type:"blog",title:R.title||"",description:R.excerpt||"",content:R.content||"",category:R.category||"",date:R.published_date,slug:R.slug,item:R})),...p.map(R=>({type:"training",title:R.title||"",description:R.description||"",content:R.full_description||R.description||"",category:R.category||"",date:R.created_date,slug:R.slug,item:R})),...b.map(R=>({type:"vacancy",title:R.title||"",description:R.role_summary||R.description||"",content:R.description||"",category:R.level||"",date:R.created_date,slug:R.slug,item:R})),...y.map(R=>({type:"page",title:R.title||"",description:R.subtitle||"",content:R.content||"",category:R.page_name||"",date:R.created_date,slug:R.page_name,item:R}))],[d,f,p,b,y,N]),k=Pt.useMemo(()=>new Dl(w,{keys:[{name:"title",weight:.4},{name:"description",weight:.3},{name:"content",weight:.2},{name:"category",weight:.1}],threshold:.4,includeScore:!0,minMatchCharLength:2,ignoreLocation:!0}),[w]);I.useEffect(()=>{if(!c||N){n([]);return}const R=k.search(c);n(R)},[c,k,N]);const S=[...t.filter(R=>r.length===0?!0:r.includes(R.item.category)||r.includes(R.item.type))].sort((R,z)=>s==="relevance"?R.score-z.score:s==="date"?new Date(z.item.date)-new Date(R.item.date):0),E=[...new Set(t.map(R=>R.item.category).filter(Boolean))],C=(R,z)=>ae({case:"CaseDetail",blog:"BlogDetail",training:"TrainingDetail",vacancy:"VacatureDetail",page:"Diensten"}[R])+`?slug=${z}`,B=R=>({case:Qa,blog:$t,training:pr,vacancy:qa,page:Wi})[R]||$t,D=R=>({case:"Case Study",blog:"Blog",training:"Training",vacancy:"Vacature",page:"Pagina"})[R]||R,F=R=>{i(z=>z.includes(R)?z.filter(q=>q!==R):[...z,R])};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(mi,{className:"w-8 h-8 text-[#FAB868]"}),e.jsx("h1",{className:"text-4xl font-bold text-[#0D0D0F]",children:"Zoekresultaten"})]}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:c?`Resultaten voor "${c}"`:"Voer een zoekterm in"}),!N&&c&&e.jsxs("p",{className:"text-lg text-[#9CA3AF] mt-2",children:[S.length," ",S.length===1?"resultaat":"resultaten"," gevonden"]})]})})}),!N&&c&&t.length>0&&e.jsx("section",{className:"py-8 bg-white border-b border-gray-100",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-wrap gap-4 items-center",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(lf,{className:"w-5 h-5 text-[#9CA3AF]"}),e.jsx("span",{className:"font-semibold text-[#0D0D0F]",children:"Filters:"})]}),e.jsxs("select",{value:s,onChange:R=>a(R.target.value),className:"px-4 py-2 border border-gray-200 rounded-lg text-[#0D0D0F] focus:border-[#FAB868] focus:outline-none",children:[e.jsx("option",{value:"relevance",children:"Relevantie"}),e.jsx("option",{value:"date",children:"Datum"})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:E.map(R=>e.jsx("button",{onClick:()=>F(R),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors ${r.includes(R)?"bg-[#FAB868] text-[#0D0D0F]":"bg-gray-100 text-[#9CA3AF] hover:bg-gray-200"}`,children:R},R))}),r.length>0&&e.jsxs("button",{onClick:()=>i([]),className:"flex items-center gap-1 px-3 py-2 text-sm text-[#9CA3AF] hover:text-[#0D0D0F] transition-colors",children:[e.jsx(Ht,{className:"w-4 h-4"}),"Wis filters"]})]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:N?e.jsxs("div",{className:"text-center py-20",children:[e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"}),e.jsx("p",{className:"mt-4 text-[#9CA3AF]",children:"Zoeken..."})]}):c?S.length===0?e.jsxs("div",{className:"text-center py-20",children:[e.jsx(mi,{className:"w-16 h-16 text-[#9CA3AF] mx-auto mb-4"}),e.jsxs("p",{className:"text-xl text-[#9CA3AF]",children:['Geen resultaten gevonden voor "',c,'"']}),e.jsx("p",{className:"text-[#9CA3AF] mt-2",children:"Probeer een andere zoekterm"})]}):e.jsx("div",{className:"space-y-6",children:S.map((R,z)=>{const q=B(R.item.type),U=Math.round((1-R.score)*100);return e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:z*.05},children:e.jsx(de,{to:C(R.item.type,R.item.slug),className:"block bg-[#F4F4F4] rounded-2xl p-6 hover:bg-white hover:shadow-lg transition-all",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-[#FAB868] rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(q,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("span",{className:"text-sm font-semibold text-[#FAB868]",children:D(R.item.type)}),R.item.category&&e.jsxs("span",{className:"text-sm text-[#9CA3AF]",children:["• ",R.item.category]}),e.jsxs("span",{className:"text-sm text-[#9CA3AF] ml-auto",children:[U,"% match"]})]}),e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-2",children:R.item.title}),e.jsx("p",{className:"text-[#9CA3AF] mb-4 line-clamp-2",children:R.item.description}),e.jsxs("div",{className:"flex items-center gap-2 text-[#FAB868] font-semibold",children:["Bekijk details",e.jsx($e,{className:"w-5 h-5"})]})]})]})})},`${R.item.type}-${R.item.slug}-${z}`)})}):e.jsxs("div",{className:"text-center py-20",children:[e.jsx(mi,{className:"w-16 h-16 text-[#9CA3AF] mx-auto mb-4"}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Gebruik de zoekbalk om te zoeken"})]})})})]})}function zte({trainings:t=[]}){const[n,r]=I.useState(new Date),[i,s]=I.useState(null),a=I.useMemo(()=>{const x=[];return t.forEach(N=>{N.sessions&&Array.isArray(N.sessions)&&N.sessions.forEach(w=>{x.push({...w,training:{id:N.id,title:N.title,slug:N.slug,duration:N.duration,category:N.category}})})}),x},[t]),o=I.useMemo(()=>{const x={};return a.forEach(N=>{const w=_t(new Date(N.date),"yyyy-MM-dd");x[w]||(x[w]=[]),x[w].push(N)}),x},[a]),c=Kq(n),d=Hq(n),h=Wq({start:c,end:d}),f=c.getDay(),m=f===0?6:f-1,p=()=>r(WV(n)),g=()=>r(FE(n,1)),b=i?o[_t(i,"yyyy-MM-dd")]||[]:[],j=x=>x.enrolled>=x.capacity,y=x=>VE(ml(new Date(x.date)));return e.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F]",children:"Trainingskalender"}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("button",{onClick:p,className:"p-2 hover:bg-[#F4F4F4] rounded-full transition-colors",children:e.jsx(CO,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsx("span",{className:"text-xl font-semibold text-[#0D0D0F] min-w-[180px] text-center",children:_t(n,"MMMM yyyy",{locale:Ca})}),e.jsx("button",{onClick:g,className:"p-2 hover:bg-[#F4F4F4] rounded-full transition-colors",children:e.jsx(_A,{className:"w-6 h-6 text-[#0D0D0F]"})})]})]}),e.jsx("div",{className:"grid grid-cols-7 gap-2 mb-2",children:["Ma","Di","Wo","Do","Vr","Za","Zo"].map(x=>e.jsx("div",{className:"text-center text-sm font-medium text-[#9CA3AF] py-2",children:x},x))}),e.jsxs("div",{className:"grid grid-cols-7 gap-2 mb-6",children:[Array.from({length:m}).map((x,N)=>e.jsx("div",{className:"aspect-square"},`pad-${N}`)),h.map(x=>{const N=_t(x,"yyyy-MM-dd"),w=o[N]||[],k=w.length>0,A=i&&Vq(x,i);return e.jsxs(Z.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>s(x),className:`aspect-square rounded-xl p-2 text-sm font-medium transition-all relative ${A?"bg-[#FAB868] text-[#0D0D0F]":k?"bg-[#FAB868]/20 text-[#0D0D0F] hover:bg-[#FAB868]/30":"hover:bg-[#F4F4F4] text-[#0D0D0F]"}`,children:[e.jsx("div",{children:_t(x,"d")}),k&&e.jsx("div",{className:"absolute bottom-1 left-1/2 -translate-x-1/2 flex gap-1",children:w.slice(0,3).map((S,E)=>e.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${A?"bg-[#0D0D0F]":"bg-[#FAB868]"}`},E))})]},N)})]}),i&&e.jsxs(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"border-t-2 border-gray-100 pt-6",children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-4",children:_t(i,"EEEE d MMMM yyyy",{locale:Ca})}),b.length===0?e.jsx("p",{className:"text-[#9CA3AF]",children:"Geen trainingen op deze datum"}):e.jsx("div",{className:"space-y-4",children:b.map((x,N)=>{const w=y(x),k=j(x);return e.jsx(de,{to:ae(`TrainingDetail?slug=${x.training.slug}`),className:`block p-4 rounded-xl border-2 transition-all ${w?"border-gray-200 bg-gray-50 opacity-60":"border-gray-100 hover:border-[#FAB868] hover:shadow-md"}`,children:e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:`font-bold text-lg mb-1 ${w?"line-through text-gray-500":"text-[#0D0D0F]"}`,children:x.training.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm text-[#9CA3AF]",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(yn,{className:"w-4 h-4"}),_t(new Date(x.date),"HH:mm")]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Nu,{className:"w-4 h-4"}),x.location]})]})]}),e.jsxs("div",{className:"flex flex-col items-end gap-2",children:[e.jsx("span",{className:"px-3 py-1 bg-[#FAB868]/20 text-[#0D0D0F] rounded-full text-xs font-medium",children:x.training.category}),k?e.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-800 rounded-full text-xs font-medium",children:"Vol"}):e.jsxs("div",{className:"flex items-center gap-1 text-sm text-[#0D0D0F]",children:[e.jsx(_n,{className:"w-4 h-4 text-[#FAB868]"}),e.jsxs("span",{className:"font-medium",children:[x.enrolled,"/",x.capacity]})]})]})]})},N)})})]})]})}const qte=[{id:"all",label:"Alle"},{id:"Basis",label:"Basis"},{id:"Gevorderd",label:"Gevorderd"},{id:"Leiderschap",label:"Leiderschap"},{id:"Technisch",label:"Technisch"}];function Vte(){var h;const[t,n]=I.useState("all"),[r,i]=I.useState(!1),{data:s=[],isLoading:a}=Fe({queryKey:["trainings"],queryFn:()=>ce.entities.Training.filter({active:!0},"-created_date",50),staleTime:300*1e3}),{data:o=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()}),c=((h=o.find(f=>f.setting_key==="show_training_calendar"))==null?void 0:h.value)!=="false";Pt.useEffect(()=>{const f=new URLSearchParams(window.location.search),m=f.get("category"),p=f.get("view");m&&n(m),p==="calendar"&&i(!0)},[]);const d=Pt.useMemo(()=>t==="all"?s:s.filter(f=>f.category===t),[s,t]);return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"relative bg-white pt-32 pb-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[e.jsx("div",{className:"w-24 h-24 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(pr,{className:"w-12 h-12 text-[#0D0D0F]"})}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6 leading-tight",children:"Maak je team AI-ready"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Praktijkgerichte trainingen voor elk niveau"}),e.jsxs(de,{to:ae("TrainingAdvisor"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all text-lg",children:[e.jsx(At,{className:"w-5 h-5"}),"Vind de juiste training",e.jsx($e,{className:"w-5 h-5"})]})]})})}),e.jsx("section",{className:"py-8 border-b border-gray-100 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[e.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2",children:[e.jsx(lf,{className:"w-5 h-5 text-[#9CA3AF] flex-shrink-0"}),qte.map(f=>e.jsx("button",{onClick:()=>n(f.id),className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-all ${t===f.id?"bg-[#FAB868] text-[#0D0D0F]":"bg-[#F4F4F4] text-[#0D0D0F] hover:bg-[#E5E5E5]"}`,children:f.label},f.id))]}),c&&e.jsxs("button",{onClick:()=>i(!r),className:`flex items-center gap-2 px-4 py-2 rounded-full text-sm font-medium transition-all ${r?"bg-[#FAB868] text-[#0D0D0F]":"bg-[#F4F4F4] text-[#0D0D0F] hover:bg-[#E5E5E5]"}`,children:[e.jsx(_i,{className:"w-4 h-4"}),r?"Toon overzicht":"Toon kalender"]})]})})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):r&&c?e.jsx(zte,{trainings:s}):d.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Geen trainingen gevonden"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:d.map((f,m)=>{const p=pr;return e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:m*.1},className:"bg-white rounded-3xl p-8 border-2 border-gray-100 hover:border-[#FAB868] hover:shadow-lg transition-all flex flex-col",children:[f.image_url&&e.jsx(de,{to:ae(`TrainingDetail?slug=${f.slug}`),className:"block mb-6",children:e.jsx("img",{src:f.image_url,alt:f.title,loading:"lazy",className:"w-full h-48 object-cover rounded-2xl hover:opacity-90 transition-opacity cursor-pointer"})}),e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsx("div",{className:"w-14 h-14 bg-[#F4F4F4] rounded-full flex items-center justify-center",children:e.jsx(p,{className:"w-7 h-7 text-[#0D0D0F]"})}),e.jsx("span",{className:"px-3 py-1 bg-[#FAB868]/20 text-[#0D0D0F] rounded-full text-sm font-medium",children:f.category})]}),e.jsx(de,{to:ae(`TrainingDetail?slug=${f.slug}`),className:"block",children:e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-2 hover:text-[#FAB868] transition-colors",children:f.title})}),e.jsx("p",{className:"text-[#0D0D0F]/80 mb-6 flex-grow text-lg",children:f.description}),e.jsx("div",{className:"flex items-center gap-4 text-base text-[#9CA3AF] pt-4 border-t border-gray-100 mb-6",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(yn,{className:"w-5 h-5 text-[#FAB868]"}),f.duration]})}),e.jsx(de,{to:ae(`TrainingDetail?slug=${f.slug}`),className:"w-full text-center py-3 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-colors",children:"Meer informatie"})]},f.id)})})})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Onze faciliteiten"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF]",children:"Leren in een inspirerende omgeving"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[e.jsx(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"rounded-3xl overflow-hidden shadow-lg",children:e.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/eef059380_de_stek_groningen.png",alt:"Trainingsruimte",className:"w-full h-80 object-cover"})}),e.jsx(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"rounded-3xl overflow-hidden shadow-lg",children:e.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/f1cb821e0_de_stek_groningen-2.png",alt:"Restaurant",className:"w-full h-80 object-cover"})})]})]})}),e.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Niet zeker welke training past?"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Gebruik onze Training Advisor"}),e.jsxs(de,{to:ae("TrainingAdvisor"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:[e.jsx(At,{className:"w-5 h-5"}),"Start Training Advisor",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function Ute(){const[t,n]=I.useState(0),[r,i]=I.useState({}),[s,a]=I.useState(!1),[o,c]=I.useState(!1),{data:d=[],isLoading:h}=Fe({queryKey:["trainings"],queryFn:()=>ce.entities.Training.list()}),f=d.filter(y=>y.active!==!1),m=[{id:"teamSize",question:"Hoe groot is je team?",icon:_n,options:[{value:"small",label:"1-5 personen",description:"Compact team"},{value:"medium",label:"6-20 personen",description:"Middelgroot team"},{value:"large",label:"20+ personen",description:"Groot team"}]},{id:"level",question:"Wat is het huidige AI kennisniveau?",icon:pr,options:[{value:"beginner",label:"Beginner",description:"Weinig tot geen AI ervaring"},{value:"intermediate",label:"Gemiddeld",description:"Basis kennis, enige ervaring"},{value:"advanced",label:"Gevorderd",description:"Actief gebruik, wil verdiepen"}]},{id:"goal",question:"Wat is je belangrijkste doel?",icon:Va,options:[{value:"awareness",label:"AI bewustwording",description:"Team moet begrijpen wat AI kan"},{value:"productivity",label:"Productiviteit verhogen",description:"Direct toepasbare skills"},{value:"development",label:"AI development",description:"Zelf AI oplossingen bouwen"},{value:"leadership",label:"Strategisch leiderschap",description:"AI strategie en management"}]},{id:"timeframe",question:"Wanneer wil je starten?",icon:yn,options:[{value:"asap",label:"Zo snel mogelijk",description:"Binnen 2 weken"},{value:"month",label:"Binnen een maand",description:"Plannen en voorbereiden"},{value:"quarter",label:"Dit kwartaal",description:"Rustig inplannen"}]}],p=(y,x)=>{i({...r,[y]:x}),t<m.length-1?setTimeout(()=>n(t+1),300):(c(!0),setTimeout(()=>{c(!1),a(!0)},1500))},g=()=>{if(f.length===0)return[];const x=f.map(k=>{var E;let A=0,S=[];if(r.level==="beginner"&&k.category==="Basis"&&(A+=3,S.push("Perfect startpunt voor beginners")),r.level==="intermediate"&&(k.category==="Basis"||k.category==="Gevorderd")&&(A+=2,S.push("Past bij je huidige niveau")),r.level==="advanced"&&(k.category==="Gevorderd"||k.category==="Technisch")&&(A+=3,S.push("Voor gevorderden")),r.goal==="awareness"&&k.category==="Basis"&&(A+=2,S.push("Ideaal voor bewustwording")),r.goal==="productivity"&&(k.title.toLowerCase().includes("copilot")||k.title.toLowerCase().includes("productiviteit")||(E=k.description)!=null&&E.toLowerCase().includes("efficiency"))&&(A+=3,S.push("Direct toepasbaar voor productiviteit")),r.goal==="development"&&k.category==="Technisch"&&(A+=3,S.push("Voor hands-on development")),r.goal==="leadership"&&k.category==="Leiderschap"&&(A+=3,S.push("Strategisch AI leiderschap")),r.teamSize==="large"&&k.category==="Leiderschap"&&(A+=2,S.push("Belangrijk voor grotere teams")),k.target_audience){const C=k.target_audience.toLowerCase();r.goal==="leadership"&&(C.includes("management")||C.includes("leider"))&&(A+=2),r.goal==="development"&&(C.includes("developer")||C.includes("technisch"))&&(A+=2),r.level==="beginner"&&(C.includes("iedereen")||C.includes("beginners"))&&(A+=1)}return{training:k,score:A,reason:S.join(" • ")||"Past bij je profiel"}}).sort((k,A)=>A.score-k.score),N=x.filter(k=>k.score>0);return(N.length>0?N:x.slice(0,5)).map(({training:k,reason:A})=>({title:k.title,slug:k.slug,reason:A,priority:k.category||"Aanbevolen",duration:k.duration,description:k.description}))},b=m[t],j=(t+1)/m.length*100;if(h)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(kD,{className:"w-12 h-12 text-purple-600 animate-spin mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Trainingen aan het laden..."})]})});if(o)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white flex items-center justify-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"text-center",children:[e.jsx("div",{className:"w-20 h-20 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(At,{className:"w-10 h-10 text-purple-600 animate-pulse"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Bezig met analyseren..."}),e.jsx("p",{className:"text-gray-600",children:"We zoeken de beste trainingen voor jou"})]})});if(s){const y=g();return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white",children:e.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(gt,{className:"w-8 h-8 text-green-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Jouw gepersonaliseerde aanbevelingen"}),e.jsx("p",{className:"text-gray-600",children:"Op basis van je antwoorden hebben we de beste trainingen voor je geselecteerd"})]}),y.length>0?e.jsx("div",{className:"space-y-6 mb-12",children:y.map((x,N)=>e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:N*.15},className:"bg-white rounded-2xl p-6 border border-gray-100 shadow-sm hover:shadow-lg transition-all",children:e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("span",{className:"inline-block px-3 py-1 bg-purple-100 text-purple-700 rounded-full text-sm font-medium",children:x.priority}),x.duration&&e.jsxs("span",{className:"text-sm text-gray-500 flex items-center gap-1",children:[e.jsx(yn,{className:"w-4 h-4"}),x.duration]})]}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:x.title}),e.jsx("p",{className:"text-gray-600 mb-2",children:x.description}),e.jsx("p",{className:"text-sm text-purple-600 font-medium",children:x.reason})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(de,{to:ae("TrainingDetail")+`?slug=${x.slug}`,className:"flex-shrink-0 w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center hover:bg-gray-200 transition-colors",title:"Bekijk details",children:e.jsx($e,{className:"w-5 h-5 text-gray-600"})}),e.jsx(de,{to:ae("Contact")+`?training=${encodeURIComponent(x.title)}`,className:"flex-shrink-0 w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center hover:bg-purple-200 transition-colors",title:"Aanvragen",children:e.jsx(gt,{className:"w-5 h-5 text-purple-600"})})]})]})},N))}):e.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center mb-12",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Er zijn momenteel geen trainingen beschikbaar die passen bij je profiel."}),e.jsx("p",{className:"text-gray-500",children:"Neem contact met ons op voor een persoonlijk advies."})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(de,{to:ae("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-gradient-to-r from-purple-600 to-pink-600 text-white font-semibold rounded-2xl hover:shadow-xl transition-all",children:["Plan een gesprek",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:ae("Training"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 border-2 border-gray-200 text-gray-700 font-semibold rounded-2xl hover:border-purple-300 hover:bg-purple-50 transition-all",children:"Bekijk alle trainingen"})]}),e.jsxs("button",{onClick:()=>{n(0),i({}),a(!1)},className:"mt-8 mx-auto flex items-center gap-2 text-gray-600 hover:text-gray-900 transition-colors",children:[e.jsx(ht,{className:"w-4 h-4"}),"Opnieuw beginnen"]})]})})}return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white",children:e.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-purple-100 rounded-full text-purple-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"Training Advisor"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Vind de perfecte training"}),e.jsxs("p",{className:"text-gray-600",children:["Beantwoord een paar vragen en ontvang direct een persoonlijk advies gebaseerd op ",f.length," beschikbare trainingen"]})]}),e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex justify-between text-sm text-gray-500 mb-2",children:[e.jsxs("span",{children:["Vraag ",t+1," van ",m.length]}),e.jsxs("span",{children:[Math.round(j),"%"]})]}),e.jsx("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden",children:e.jsx(Z.div,{className:"h-full bg-gradient-to-r from-purple-600 to-pink-600 rounded-full",initial:{width:0},animate:{width:`${j}%`},transition:{duration:.3}})})]}),e.jsx(Cr,{mode:"wait",children:e.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx(b.icon,{className:"w-6 h-6 text-purple-600"})}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:b.question})]}),e.jsx("div",{className:"space-y-3",children:b.options.map((y,x)=>e.jsxs("button",{onClick:()=>p(b.id,y.value),className:`w-full p-4 rounded-xl border-2 text-left transition-all hover:border-purple-300 hover:bg-purple-50 ${r[b.id]===y.value?"border-purple-600 bg-purple-50":"border-gray-200"}`,children:[e.jsx("p",{className:"font-semibold text-gray-900",children:y.label}),e.jsx("p",{className:"text-sm text-gray-500",children:y.description})]},x))})]},t)}),t>0&&e.jsxs("button",{onClick:()=>n(t-1),className:"mt-6 flex items-center gap-2 text-gray-600 hover:text-gray-900 transition-colors",children:[e.jsx(ht,{className:"w-4 h-4"}),"Vorige vraag"]})]})})}function $te(){var o,c;const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=Fe({queryKey:["trainings",n],queryFn:()=>ce.entities.Training.filter({slug:n,active:!0}),enabled:!!n}),s=r[0];if(i)return e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"})});if(!s)return e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:e.jsx("h1",{className:"text-2xl font-bold text-[#0D0D0F]",children:"Training niet gevonden."})});const a=((o=s.full_description)==null?void 0:o.includes("<"))&&((c=s.full_description)==null?void 0:c.includes(">"));return e.jsxs("div",{className:"pt-20 bg-white",children:[e.jsxs(xl,{children:[e.jsx("title",{children:`${s.title} - AI Training - 48-7`}),e.jsx("meta",{name:"description",content:s.description}),e.jsx("meta",{property:"og:title",content:s.title}),e.jsx("meta",{property:"og:description",content:s.description}),e.jsx("meta",{property:"og:type",content:"website"}),s.image_url&&e.jsx("meta",{property:"og:image",content:s.image_url}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Course",name:s.title,description:s.description,provider:{"@type":"Organization",name:"48-7"},courseMode:s.format,timeRequired:s.duration})})]}),e.jsxs("section",{className:"relative overflow-hidden pt-16 pb-12 bg-[#F4F4F4]",children:[s.image&&e.jsx("img",{src:s.image,alt:s.title,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-4xl mx-auto",children:[e.jsx("div",{className:"flex items-center gap-4 mb-6",children:e.jsxs(de,{to:ae("Training"),className:"inline-flex items-center text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[e.jsx(ht,{className:"w-4 h-4 mr-2"})," Terug naar overzicht"]})}),e.jsx("div",{className:"w-24 h-24 bg-[#FAB868] rounded-full flex items-center justify-center mb-6",children:e.jsx(pr,{className:"w-12 h-12 text-[#0D0D0F]"})}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-4",children:s.title}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:s.description}),e.jsxs("div",{className:"flex flex-wrap items-center gap-6 text-lg text-[#0D0D0F]",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(yn,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:s.duration})]}),s.target_audience&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_n,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:s.target_audience})]}),s.price&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(S1,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:s.price})]})]})]})})]}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 grid lg:grid-cols-3 gap-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"lg:col-span-2 space-y-10",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:"Over deze training"}),e.jsx("div",{className:"training-content",children:a?e.jsx("div",{dangerouslySetInnerHTML:{__html:s.full_description||s.description}}):e.jsx(Hf,{children:s.full_description||s.description})}),e.jsx("style",{jsx:!0,children:`
                .training-content h1 {
                  font-size: 2rem;
                  font-weight: 700;
                  color: #0D0D0F;
                  margin-top: 2rem;
                  margin-bottom: 1rem;
                  line-height: 1.2;
                }
                .training-content h2 {
                  font-size: 1.75rem;
                  font-weight: 700;
                  color: #0D0D0F;
                  margin-top: 1.5rem;
                  margin-bottom: 0.75rem;
                  line-height: 1.3;
                }
                .training-content h3 {
                  font-size: 1.5rem;
                  font-weight: 600;
                  color: #0D0D0F;
                  margin-top: 1.25rem;
                  margin-bottom: 0.75rem;
                }
                .training-content h4 {
                  font-size: 1.25rem;
                  font-weight: 600;
                  color: #0D0D0F;
                  margin-top: 1rem;
                  margin-bottom: 0.5rem;
                }
                .training-content p {
                  color: #0D0D0F;
                  font-size: 1.125rem;
                  line-height: 1.75;
                  margin-bottom: 1rem;
                }
                .training-content ul,
                .training-content ol {
                  margin: 1rem 0;
                  padding-left: 2rem;
                  color: #0D0D0F;
                  font-size: 1.125rem;
                  line-height: 1.75;
                }
                .training-content ul {
                  list-style-type: disc;
                }
                .training-content ol {
                  list-style-type: decimal;
                }
                .training-content li {
                  margin-bottom: 0.5rem;
                  color: #0D0D0F;
                }
                .training-content strong {
                  font-weight: 700;
                  color: #0D0D0F;
                }
                .training-content em {
                  font-style: italic;
                }
                .training-content u {
                  text-decoration: underline;
                }
                .training-content a {
                  color: #FAB868;
                  text-decoration: underline;
                }
                .training-content a:hover {
                  color: #E5A04D;
                }
              `})]}),s.learning_goals&&s.learning_goals.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat je leert"}),e.jsx("ul",{className:"space-y-4",children:s.learning_goals.map((d,h)=>e.jsxs("li",{className:"flex items-start gap-3 text-xl text-[#0D0D0F]/80",children:[e.jsx(gt,{className:"w-7 h-7 text-[#FAB868] flex-shrink-0 mt-1"}),e.jsx("span",{children:d})]},h))})]})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"lg:col-span-1 space-y-6",children:e.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-8 sticky top-28",children:[e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-6",children:"Details"}),e.jsxs("ul",{className:"space-y-4 text-lg text-[#0D0D0F]/80 mb-8",children:[e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx(yn,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:e.jsx("span",{className:"font-semibold",children:s.duration})})]}),s.target_audience&&e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(_n,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-1"}),e.jsx("span",{children:s.target_audience})]}),s.price&&e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx(S1,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{className:"font-semibold",children:s.price})]})]}),s.sessions&&s.sessions.length>0&&e.jsxs("div",{className:"mb-8 pb-8 border-b-2 border-gray-200",children:[e.jsxs("h4",{className:"text-lg font-bold text-[#0D0D0F] mb-4 flex items-center gap-2",children:[e.jsx(_i,{className:"w-5 h-5 text-[#FAB868]"}),"Geplande data"]}),e.jsx("div",{className:"space-y-3",children:s.sessions.sort((d,h)=>new Date(d.date)-new Date(h.date)).map((d,h)=>{const f=VE(ml(new Date(d.date))),m=d.enrolled>=d.capacity;return e.jsxs("div",{className:`p-3 rounded-xl border-2 ${f?"border-gray-200 bg-gray-50 opacity-60":"border-gray-200 hover:border-[#FAB868] transition-colors"}`,children:[e.jsx("div",{className:`font-semibold text-sm mb-1 ${f?"line-through text-gray-500":"text-[#0D0D0F]"}`,children:_t(new Date(d.date),"EEEE d MMMM yyyy",{locale:Ca})}),e.jsxs("div",{className:"text-xs text-[#9CA3AF] space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(yn,{className:"w-3 h-3"}),_t(new Date(d.date),"HH:mm")]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Nu,{className:"w-3 h-3"}),d.location]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(_n,{className:"w-3 h-3"}),d.enrolled,"/",d.capacity," deelnemers",m&&e.jsx("span",{className:"ml-2 px-2 py-0.5 bg-red-100 text-red-800 rounded-full text-xs font-medium",children:"Vol"})]})]})]},h)})})]}),e.jsxs(de,{to:ae("Contact")+`?training=${encodeURIComponent(s.title)}`,className:"w-full text-center py-4 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-colors inline-flex items-center justify-center gap-2 text-lg",children:["Vraag aan",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}),e.jsx("section",{className:"py-20 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Bekijk al onze trainingen"}),e.jsxs(de,{to:ae("Training"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:[e.jsx(pr,{className:"w-5 h-5"}),"Alle Trainingen"]})]})})]})}function Hte(){var o,c;const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=Fe({queryKey:["vacature",n],queryFn:()=>ce.entities.Vacature.filter({slug:n,active:!0}),enabled:!!n}),s=r[0];if(i)return e.jsx("div",{className:"pt-20 min-h-screen bg-white flex items-center justify-center",children:e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"})});if(!s)return e.jsx("div",{className:"pt-20 min-h-screen bg-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Vacature niet gevonden"}),e.jsx(de,{to:ae("Vacatures"),className:"text-blue-600 hover:underline",children:"Terug naar vacatures"})]})});const a=((o=s.description)==null?void 0:o.includes("<"))&&((c=s.description)==null?void 0:c.includes(">"));return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsxs(xl,{children:[e.jsx("title",{children:`${s.title} - Vacatures - 48-7`}),e.jsx("meta",{name:"description",content:s.role_summary||s.description}),e.jsx("meta",{property:"og:title",content:s.title}),e.jsx("meta",{property:"og:description",content:s.role_summary||s.description}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"JobPosting",title:s.title,description:s.description,employmentType:s.employment_type,hiringOrganization:{"@type":"Organization",name:"48-7"},jobLocation:{"@type":"Place",address:{"@type":"PostalAddress",addressLocality:s.location}},baseSalary:s.salary_range?{"@type":"MonetaryAmount",currency:"EUR",value:{"@type":"QuantitativeValue",value:s.salary_range}}:void 0})})]}),e.jsx("div",{className:"bg-[#F4F4F4] py-4",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(de,{to:ae("Vacatures"),className:"inline-flex items-center gap-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[e.jsx(ht,{className:"w-5 h-5"}),"Terug naar vacatures"]})})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-6",children:[e.jsx("span",{className:"px-4 py-2 bg-[#FAB868] text-[#0D0D0F] rounded-full text-sm font-semibold",children:s.level}),e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(Nu,{className:"w-5 h-5"}),e.jsx("span",{children:s.location})]}),e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(yn,{className:"w-5 h-5"}),e.jsx("span",{children:s.type})]}),s.salary_range&&e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(Qa,{className:"w-5 h-5"}),e.jsx("span",{children:s.salary_range})]})]}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:s.title}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:s.role_summary||s.description}),e.jsxs(de,{to:ae("Contact")+`?subject=vacancy&vacancy=${encodeURIComponent(s.title)}`,className:"inline-flex items-center gap-2 px-8 py-4 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Solliciteer nu",e.jsx($e,{className:"w-5 h-5"})]})]})})}),e.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"space-y-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"De rol"}),e.jsx("div",{className:"text-lg text-[#9CA3AF] leading-relaxed prose prose-lg max-w-none",children:a?e.jsx("div",{dangerouslySetInnerHTML:{__html:s.description}}):e.jsx(Hf,{children:s.description})})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat ga je doen?"}),s.responsibilities&&s.responsibilities.length>0?e.jsx("ul",{className:"space-y-3",children:s.responsibilities.map((d,h)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(gt,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-lg text-[#9CA3AF]",children:d})]},h))}):e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Meer details volgen binnenkort."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat breng je mee?"}),s.requirements&&s.requirements.length>0?e.jsx("ul",{className:"space-y-3 mb-8",children:s.requirements.map((d,h)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(gt,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-lg text-[#9CA3AF]",children:d})]},h))}):e.jsx("p",{className:"text-lg text-[#9CA3AF] mb-8",children:"Meer details volgen binnenkort."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat bieden wij?"}),s.benefits&&s.benefits.length>0?e.jsx("ul",{className:"space-y-3",children:s.benefits.map((d,h)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(gt,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-lg text-[#9CA3AF]",children:d})]},h))}):e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Meer details volgen binnenkort."})]})]})})}),e.jsx("section",{className:"py-20 bg-[#0D0D0F]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-4xl font-bold text-white mb-6",children:"Enthousiast geworden?"}),e.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Solliciteer direct of neem contact op voor meer informatie"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(de,{to:ae("Contact")+`?subject=vacancy&vacancy=${encodeURIComponent(s.title)}`,className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Solliciteer nu",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:ae("Contact"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-white text-[#0D0D0F] font-semibold rounded-full hover:bg-gray-100 transition-all text-lg",children:"Stel een vraag"})]})]})})})]})}function Wte(){const{data:t=[],isLoading:n}=Fe({queryKey:["vacatures"],queryFn:()=>ce.entities.Vacature.filter({active:!0},"-created_date")});return e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative h-[500px] overflow-hidden",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=2000&auto=format&fit=crop",alt:"Team working",className:"absolute inset-0 w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0D0D0F]/90 via-[#0D0D0F]/70 to-transparent"}),e.jsx("div",{className:"relative h-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},className:"max-w-2xl text-white",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold mb-6 leading-tight",children:"Bouw de toekomst van AI"}),e.jsx("p",{className:"text-2xl text-gray-200 mb-8",children:"Word onderdeel van het snelst groeiende AI team van Nederland"}),e.jsxs("div",{className:"flex flex-wrap gap-8 text-lg",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ki,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:"Groeiend bedrijf"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_n,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:"Talent-first cultuur"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Wi,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:"Cutting-edge projecten"})]})]})]})})]}),e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Open vacatures"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF]",children:"Vind jouw plek in ons team"})]}),n?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Momenteel geen openstaande vacatures"})}):e.jsx("div",{className:"space-y-6",children:t.map((r,i)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"bg-[#F4F4F4] rounded-3xl p-8 hover:bg-white hover:shadow-lg hover:border-2 hover:border-[#FAB868] transition-all group",children:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between gap-6",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[e.jsx("span",{className:"px-4 py-1 bg-[#FAB868] text-[#0D0D0F] rounded-full text-sm font-semibold",children:r.level}),e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(Nu,{className:"w-4 h-4"}),e.jsx("span",{children:r.location})]}),e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(yn,{className:"w-4 h-4"}),e.jsx("span",{children:r.type})]})]}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-3 group-hover:text-[#FAB868] transition-colors",children:r.title}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-4",children:r.role_summary||r.description}),r.requirements&&r.requirements.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2",children:r.requirements.slice(0,4).map((s,a)=>e.jsx("span",{className:"px-3 py-1 bg-white text-[#0D0D0F] rounded-full text-sm",children:s},a))})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(de,{to:ae("VacatureDetail")+`?slug=${r.slug}`,className:"flex-shrink-0 inline-flex items-center gap-2 px-6 py-3 bg-white text-[#0D0D0F] font-semibold rounded-full hover:bg-gray-100 transition-all border-2 border-[#0D0D0F]",children:"Meer info"}),e.jsxs(de,{to:ae("Contact")+`?subject=vacancy&vacancy=${encodeURIComponent(r.title)}`,className:"flex-shrink-0 inline-flex items-center gap-2 px-8 py-4 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all",children:["Solliciteer",e.jsx($e,{className:"w-5 h-5"})]})]})]})},i))})]})}),e.jsx("section",{className:"py-20 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx(Qa,{className:"w-16 h-16 text-[#FAB868] mx-auto mb-6"}),e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:"Zie je jezelf niet in deze vacatures?"}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:"We zijn altijd op zoek naar talent. Stuur ons een open sollicitatie."}),e.jsxs(de,{to:ae("Contact")+"?subject=open-sollicitatie",className:"inline-flex items-center gap-2 px-10 py-5 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all text-lg",children:["Open sollicitatie",e.jsx($e,{className:"w-5 h-5"})]})]})})}),e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Waarom 48-7?"})}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:[{title:"Groei & Leren",description:"Werk met de nieuwste AI technologieën en groei snel in je vakgebied",icon:Ki},{title:"Impact maken",description:"Bouw oplossingen die Nederlandse bedrijven écht verder helpen",icon:Wi},{title:"Geweldig team",description:"Werk samen met gepassioneerde professionals in een informele sfeer",icon:_n}].map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"text-center",children:[e.jsx("div",{className:"w-20 h-20 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(r.icon,{className:"w-10 h-10 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3",children:r.title}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:r.description})]},i))})]})})]})}function Kte({children:t,currentPageName:n}){var q,U,Q,H,K,Y,O;const[r,i]=I.useState(!1),[s,a]=I.useState(!1),[o,c]=I.useState(null),[d,h]=I.useState(!1),[f,m]=I.useState(""),[p,g]=I.useState(!1),[b,j]=I.useState(!1),[y,x]=I.useState(!1),N=Za(),{data:w=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()}),k=((q=w.find(T=>T.setting_key==="logo_url"))==null?void 0:q.value)||"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/1fa26eb8b_48-7-AI-professionals-16-1-2026.png",A=(U=w.find(T=>T.setting_key==="linkedin_url"))==null?void 0:U.value,S=(Q=w.find(T=>T.setting_key==="instagram_url"))==null?void 0:Q.value,E=(H=w.find(T=>T.setting_key==="twitter_url"))==null?void 0:H.value,C=(K=w.find(T=>T.setting_key==="youtube_url"))==null?void 0:K.value,B=((Y=w.find(T=>T.setting_key==="show_blog"))==null?void 0:Y.value)!=="false",D=((O=w.find(T=>T.setting_key==="show_news"))==null?void 0:O.value)!=="false";I.useEffect(()=>{const T=()=>{i(window.scrollY>20)};return window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)},[]),I.useEffect(()=>{if(!document.getElementById("hs-script-loader")){const T=document.createElement("script");T.type="text/javascript",T.id="hs-script-loader",T.async=!0,T.defer=!0,T.src="https://js-eu1.hs-scripts.com/147778836.js",document.body.appendChild(T)}},[]),I.useEffect(()=>{a(!1),c(null),h(!1),g(!1),j(!1),x(!1),window.scrollTo(0,0)},[N]);const F=T=>{T.preventDefault(),f.trim()&&(window.location.href=ae("SearchResults")+`?q=${encodeURIComponent(f)}`)},R={diensten:{label:"Wat we doen",items:[{name:"AI Consultancy",href:ae("AIConsultancy"),desc:"Strategie & innovatie met AI"},{name:"AI Software Development",href:ae("AIDevelopment"),desc:"Custom AI oplossingen"},{name:"Development Support",href:ae("DevelopmentSupport"),desc:"CTO as a Service & meer"}]},training:{items:[{name:"Trainingen en Workshops",href:ae("Training"),desc:"Overzicht van ons aanbod"},{name:"Training Advisor",href:ae("TrainingAdvisor"),desc:"Vind de juiste training"}]},claudeCowork:{items:[{name:"Overzicht",href:ae("ClaudeCowork"),desc:"Wat is Claude Cowork?"},{name:"Skills & Connectors",href:ae("ClaudeCoworkSkillsConnectors"),desc:"Marketplace van AI-skills"},{name:"Training",href:ae("ClaudeCoworkTraining"),desc:"Leer werken met Claude"},{name:"Advies",href:ae("ClaudeCoworkAdvies"),desc:"Persoonlijk adviesgesprek"}]}},z=({items:T,label:V,dropdownKey:L})=>{const[X,J]=Pt.useState(!1),W=Pt.useRef(null),G=()=>{W.current&&clearTimeout(W.current),J(!0),c(L)},ee=()=>{W.current=setTimeout(()=>{J(!1),c(null)},150)};return e.jsxs("div",{className:"relative",onMouseEnter:G,onMouseLeave:ee,children:[e.jsxs("button",{className:"flex items-center gap-1 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium py-2",children:[V,e.jsx(ka,{className:`w-4 h-4 transition-transform ${o===L?"rotate-180":""}`})]}),e.jsx(Cr,{children:o===L&&e.jsx(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.2},className:"absolute top-full left-0 mt-1 w-72 bg-white rounded-3xl shadow-xl border border-gray-100 overflow-hidden z-50",onMouseEnter:G,onMouseLeave:ee,children:e.jsx("div",{className:"p-2",children:T.map((ne,le)=>e.jsxs(de,{to:ne.href,className:"flex flex-col p-3 rounded-xl hover:bg-[#F4F4F4] transition-colors group",children:[e.jsx("span",{className:"font-medium text-[#0D0D0F] group-hover:text-[#FAB868] transition-colors",children:ne.name}),e.jsx("span",{className:"text-sm text-[#292828]",children:ne.desc})]},le))})})})]})};return e.jsxs("div",{className:"min-h-screen bg-white",children:[e.jsxs("header",{className:"fixed top-0 left-0 right-0 z-[100] transition-all duration-300 bg-white/90 backdrop-blur-md shadow-sm",children:[e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center justify-between h-20",children:[e.jsx(de,{to:ae("Home"),className:"flex items-center",children:e.jsx("img",{src:k,alt:"48-7 AI Professionals",className:"h-8"})}),e.jsxs("nav",{className:"hidden lg:flex items-center gap-2",children:[e.jsx(z,{items:R.diensten.items,label:R.diensten.label,dropdownKey:"diensten"}),e.jsx(z,{items:R.training.items,label:"Training",dropdownKey:"training"}),e.jsx(z,{items:R.claudeCowork.items,label:"Claude Cowork",dropdownKey:"claudeCowork"}),e.jsx(de,{to:ae("Cases"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"Cases"}),B&&e.jsx(de,{to:ae("Blog"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"Blog"}),D&&e.jsx(de,{to:ae("Nieuws"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"AI Nieuws"}),e.jsx(de,{to:ae("EuAiActChecker"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"EU AI Act"}),e.jsx(de,{to:ae("AIImpactRapport"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"AI Impact Scan"}),e.jsx(de,{to:ae("OverOns"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"Over 48-7"})]}),e.jsxs("div",{className:"hidden lg:flex items-center gap-3",children:[e.jsx("button",{onClick:()=>h(!d),className:"p-3 hover:bg-[#F4F4F4] rounded-full transition-colors","aria-label":"Zoeken",children:e.jsx(mi,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx(de,{to:ae("Contact"),className:"px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all",children:"Contact"})]}),e.jsx("button",{className:"lg:hidden p-2 rounded-full hover:bg-[#F4F4F4] transition-colors",onClick:()=>a(!s),children:s?e.jsx(Ht,{className:"w-6 h-6"}):e.jsx(TD,{className:"w-6 h-6"})})]})}),e.jsx(Cr,{children:s&&e.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"lg:hidden bg-white border-t border-gray-100 overflow-hidden max-h-[80vh] overflow-y-auto",children:e.jsxs("nav",{className:"px-4 py-6 space-y-2",children:[e.jsxs("div",{children:[e.jsxs("button",{className:"flex items-center justify-between w-full px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>g(!p),children:["Wat we doen",e.jsx(ka,{className:`w-4 h-4 transition-transform ${p?"rotate-180":""}`})]}),e.jsx(Cr,{children:p&&e.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"ml-4 mt-2 space-y-1",children:R.diensten.items.map((T,V)=>e.jsx(de,{to:T.href,className:"block px-4 py-2 text-sm text-[#0D0D0F] hover:bg-[#F4F4F4] rounded-lg",onClick:()=>a(!1),children:T.name},V))})})]}),e.jsxs("div",{children:[e.jsxs("button",{className:"flex items-center justify-between w-full px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>j(!b),children:["Training",e.jsx(ka,{className:`w-4 h-4 transition-transform ${b?"rotate-180":""}`})]}),e.jsx(Cr,{children:b&&e.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"ml-4 mt-2 space-y-1",children:R.training.items.map((T,V)=>e.jsx(de,{to:T.href,className:"block px-4 py-2 text-sm text-[#0D0D0F] hover:bg-[#F4F4F4] rounded-lg",onClick:()=>a(!1),children:T.name},V))})})]}),e.jsxs("div",{children:[e.jsxs("button",{className:"flex items-center justify-between w-full px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>x(!y),children:["Claude Cowork",e.jsx(ka,{className:`w-4 h-4 transition-transform ${y?"rotate-180":""}`})]}),e.jsx(Cr,{children:y&&e.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"ml-4 mt-2 space-y-1",children:R.claudeCowork.items.map((T,V)=>e.jsx(de,{to:T.href,className:"block px-4 py-2 text-sm text-[#0D0D0F] hover:bg-[#F4F4F4] rounded-lg",onClick:()=>a(!1),children:T.name},V))})})]}),e.jsx(de,{to:ae("Cases"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Cases"}),B&&e.jsx(de,{to:ae("Blog"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Blog"}),D&&e.jsx(de,{to:ae("Nieuws"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"AI Nieuws"}),e.jsx(de,{to:ae("EuAiActChecker"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"EU AI Act"}),e.jsx(de,{to:ae("AIImpactRapport"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"AI Impact Scan"}),e.jsx(de,{to:ae("OverOns"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Over 48-7"}),e.jsx(de,{to:ae("Contact"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Contact"})]})})}),e.jsx(Cr,{children:d&&e.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"border-t border-gray-100 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:e.jsxs("form",{onSubmit:F,className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex-1 relative",children:[e.jsx(mi,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),e.jsx("input",{type:"text",value:f,onChange:T=>m(T.target.value),placeholder:"Zoek naar cases, trainingen, blog artikelen...",className:"w-full pl-12 pr-4 py-3 border-2 border-gray-200 rounded-full focus:border-[#FAB868] focus:outline-none text-[#0D0D0F]",autoFocus:!0})]}),e.jsx("button",{type:"submit",className:"px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all",children:"Zoeken"})]})})})})]}),e.jsx("main",{children:t}),e.jsxs("footer",{className:"bg-[#0D0D0F] text-white",children:[D&&e.jsx("div",{className:"border-b border-gray-800",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:e.jsxs("div",{className:"flex flex-col items-center text-center gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Daily AI Nieuws in 48 seconden"}),e.jsx("p",{className:"text-gray-400",children:"Elke dag de belangrijkste AI ontwikkelingen, compact samengevat. Perfect voor ondernemers die up-to-date willen blijven."})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-4",children:[e.jsxs(de,{to:ae("Nieuws"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-bold rounded-xl hover:bg-[#E5A04D] transition-all",children:["Bekijk AI nieuws",e.jsx($e,{className:"w-5 h-5"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-gray-400 text-sm",children:"Bekijk AI nieuws op onze socials:"}),e.jsxs("div",{className:"flex gap-2",children:[A&&e.jsx("a",{href:A,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#0077B5] rounded-lg flex items-center justify-center hover:opacity-80 transition-opacity",children:e.jsx(Hs,{className:"w-5 h-5 text-white"})}),S&&e.jsx("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gradient-to-r from-[#E1306C] to-[#FD1D1D] rounded-lg flex items-center justify-center hover:opacity-80 transition-opacity",children:e.jsx(Xc,{className:"w-5 h-5 text-white"})}),C&&e.jsx("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#FF0000] rounded-lg flex items-center justify-center hover:opacity-80 transition-opacity",children:e.jsx(eu,{className:"w-5 h-5 text-white"})})]})]})]})]})})}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Diensten"}),e.jsxs("ul",{className:"space-y-3",children:[e.jsx("li",{children:e.jsx(de,{to:ae("AIConsultancy"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Consultancy"})}),e.jsx("li",{children:e.jsx(de,{to:ae("AIDevelopment"),className:"text-gray-400 hover:text-white transition-colors",children:"Software Development"})}),e.jsx("li",{children:e.jsx(de,{to:ae("DevelopmentSupport"),className:"text-gray-400 hover:text-white transition-colors",children:"Development Support"})}),e.jsx("li",{children:e.jsx(de,{to:ae("Training"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Training"})})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Training"}),e.jsxs("ul",{className:"space-y-3",children:[e.jsx("li",{children:e.jsx(de,{to:ae("Training"),className:"text-gray-400 hover:text-white transition-colors",children:"Alle Trainingen"})}),e.jsx("li",{children:e.jsx(de,{to:ae("TrainingAdvisor"),className:"text-gray-400 hover:text-white transition-colors",children:"Training Advisor"})}),e.jsx("li",{children:e.jsx(de,{to:ae("Training")+"?category=workshops",className:"text-gray-400 hover:text-white transition-colors",children:"Workshops"})})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Resources"}),e.jsxs("ul",{className:"space-y-3",children:[D&&e.jsx("li",{children:e.jsx(de,{to:ae("Nieuws"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Nieuws"})}),B&&e.jsx("li",{children:e.jsx(de,{to:ae("Blog"),className:"text-gray-400 hover:text-white transition-colors",children:"Blog"})}),e.jsx("li",{children:e.jsx(de,{to:ae("AIQuiz"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Quiz"})}),e.jsx("li",{children:e.jsx(de,{to:ae("AIImpactRapport"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Impact Rapport"})}),e.jsx("li",{children:e.jsx(de,{to:ae("Cases"),className:"text-gray-400 hover:text-white transition-colors",children:"Case Studies"})}),e.jsx("li",{children:e.jsx(de,{to:ae("Vacatures"),className:"text-gray-400 hover:text-white transition-colors",children:"Vacatures"})}),e.jsx("li",{children:e.jsx(de,{to:ae("OverOns"),className:"text-gray-400 hover:text-white transition-colors",children:"Over Ons"})})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Contact"}),e.jsxs("ul",{className:"space-y-3",children:[e.jsx("li",{children:e.jsx(de,{to:ae("Contact"),className:"text-gray-400 hover:text-white transition-colors",children:"Neem contact op"})}),e.jsx("li",{children:e.jsx(de,{to:ae("ContentEditor"),className:"text-gray-400 hover:text-white transition-colors",children:"48-7 - Nederland"})}),e.jsxs("li",{className:"flex items-center gap-3 text-gray-400",children:[e.jsx(Hr,{className:"w-5 h-5 flex-shrink-0"}),e.jsx("a",{href:"mailto:info@48-7.nl",className:"hover:text-white transition-colors",children:"hallo@48-7.nl"})]}),e.jsxs("li",{className:"flex items-center gap-3 text-gray-400",children:[e.jsx(Zy,{className:"w-5 h-5 flex-shrink-0"}),e.jsx("a",{href:"tel:+31850601487",className:"hover:text-white transition-colors",children:"+31 085-06 01 487"})]})]}),e.jsxs("div",{className:"flex items-center gap-4 mt-6",children:[A&&e.jsx("a",{href:A,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center hover:bg-blue-600 transition-colors",children:e.jsx(Hs,{className:"w-5 h-5"})}),E&&e.jsx("a",{href:E,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center hover:bg-blue-600 transition-colors",children:e.jsx(IA,{className:"w-5 h-5"})}),C&&e.jsx("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center hover:bg-blue-600 transition-colors",children:e.jsx(eu,{className:"w-5 h-5"})}),S&&e.jsx("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center hover:bg-blue-600 transition-colors",children:e.jsx(Xc,{className:"w-5 h-5"})})]})]})]}),e.jsxs("div",{className:"mt-16 pt-8 border-t border-gray-800 flex flex-col sm:flex-row items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("img",{src:k,alt:"48-7 AI Professionals",className:"h-8"}),e.jsx("span",{className:"text-gray-400",children:"© 2026 48-7. Alle rechten voorbehouden."})]}),e.jsxs("div",{className:"flex items-center gap-6 text-gray-400 text-sm",children:[e.jsx("a",{href:"#",className:"hover:text-white transition-colors",children:"Privacy Policy"}),e.jsx("a",{href:"#",className:"hover:text-white transition-colors",children:"Algemene Voorwaarden"})]})]})]})]})]})}const Gte={AIConsultancy:kq,AIDevelopment:_q,AIImpactRapport:Dq,AIQuiz:Fq,AIQuizDocs:Mq,AdminAIQuizSubmissions:KV,AdminBlog:_K,AdminCases:SK,AdminDashboard:uG,AdminDiscoveryForms:BG,AdminEmailTemplates:zG,AdminEuAiActSubmissions:qG,AdminHandleiding:VG,AdminHome:lQ,AdminImpactScans:cQ,AdminNewsletterSubscribers:uQ,AdminNieuws:dQ,AdminOplossingen:hQ,AdminPageBuilder:fQ,AdminPageEditor:mQ,AdminPrompts:pQ,AdminReviews:gQ,AdminSEO:xQ,AdminSettings:NQ,AdminTeam:kQ,AdminTestScans:_Q,AdminTrainingen:SQ,AdminVacatures:AQ,Blog:EQ,BlogDetail:QZ,Cases:YZ,ClaudeCowork:aee,ClaudeCoworkAdvies:lee,ClaudeCoworkSkillsConnectors:uee,ClaudeCoworkTraining:hee,Contact:fee,ContentEditor:pee,ContentManagement:gee,DevelopmentSupport:bee,Diensten:jee,DiscoveryForm:See,EuAiActChecker:Aee,EuAiActCheckerDocs:Cee,Home:Vee,ImpactRapport:Uee,ImpactReportDocs:$ee,KoffieRoulette:Kee,NewsDetail:Qee,Nieuws:Yee,OplossingDetail:Xee,Oplossingen:Jee,OverOns:Zee,SearchResults:Bte,Training:Vte,TrainingAdvisor:Ute,TrainingDetail:$te,VacatureDetail:Hte,Vacatures:Wte},Y6={mainPage:"Home",Pages:Gte,Layout:Kte};function Qte(){const t=Za(),{isAuthenticated:n}=o4(),{Pages:r,mainPage:i}=Y6,s=i;return I.useEffect(()=>{const a=t.pathname;let o;if(a==="/"||a==="")o=s;else{const c=a.replace(/^\//,"").split("/")[0];o=Object.keys(r).find(f=>f.toLowerCase()===c.toLowerCase())||null}n&&o&&ce.appLogs.logUserInApp(o).catch(()=>{})},[t,n,r,s]),null}function Yte({}){var s;const n=Za().pathname.substring(1),{data:r,isFetched:i}=Fe({queryKey:["user"],queryFn:async()=>{try{return{user:await ce.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return e.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:e.jsx("div",{className:"max-w-md w-full",children:e.jsxs("div",{className:"text-center space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),e.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),e.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",e.jsxs("span",{className:"font-medium text-slate-700",children:['"',n,'"']})," could not be found in this application."]})]}),i&&r.isAuthenticated&&((s=r.user)==null?void 0:s.role)==="admin"&&e.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:e.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),e.jsxs("div",{className:"text-left space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),e.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),e.jsx("div",{className:"pt-6",children:e.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[e.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const Xte=()=>e.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:e.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:e.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),e.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),e.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),e.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[e.jsx("p",{children:"If you believe this is an error, you can:"}),e.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[e.jsx("li",{children:"Verify you are logged in with the correct account"}),e.jsx("li",{children:"Contact the app administrator for access"}),e.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),{Pages:X6,Layout:oA,mainPage:Jte}=Y6,J6=Jte,Zte=X6[J6],lA=({children:t,currentPageName:n})=>oA?e.jsx(oA,{currentPageName:n,children:t}):e.jsx(e.Fragment,{children:t}),ene=()=>{const{isLoadingAuth:t,isLoadingPublicSettings:n,authError:r,navigateToLogin:i}=o4();if(n||t)return e.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:e.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(r){if(r.type==="user_not_registered")return e.jsx(Xte,{});if(r.type==="auth_required")return i(),null}return e.jsxs(PR,{children:[e.jsx(jh,{path:"/",element:e.jsx(lA,{currentPageName:J6,children:e.jsx(Zte,{})})}),Object.entries(X6).map(([s,a])=>e.jsx(jh,{path:`/${s}`,element:e.jsx(lA,{currentPageName:s,children:e.jsx(a,{})})},s)),e.jsx(jh,{path:"*",element:e.jsx(Yte,{})})]})};function tne(){return e.jsx(YL,{children:e.jsxs(A8,{client:B8,children:[e.jsxs(LR,{children:[e.jsx(Qte,{}),e.jsx(ene,{})]}),e.jsx(r8,{})]})})}rO.createRoot(document.getElementById("root")).render(e.jsx(tne,{}))});export default nne();