function Ya(e,t){for(var n=0;n<t.length;n++){const c=t[n];if(typeof c!="string"&&!Array.isArray(c)){for(const a in c)if(a!=="default"&&!(a in e)){const r=Object.getOwnPropertyDescriptor(c,a);r&&Object.defineProperty(e,a,r.get?r:{enumerable:!0,get:()=>c[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dn={exports:{}},kt={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var as;function Ja(){if(as)return kt;as=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(c,a,r){var o=null;if(r!==void 0&&(o=""+r),a.key!==void 0&&(o=""+a.key),"key"in a){r={};for(var i in a)i!=="key"&&(r[i]=a[i])}else r=a;return a=r.ref,{$$typeof:e,type:c,key:o,ref:a!==void 0?a:null,props:r}}return kt.Fragment=t,kt.jsx=n,kt.jsxs=n,kt}var rs;function Xa(){return rs||(rs=1,dn.exports=Ja()),dn.exports}var s=Xa(),ot=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},er={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},tr=class{#t=er;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},at=new tr;function nr(e){setTimeout(e,0)}var rt=typeof window>"u"||"Deno"in globalThis;function Ne(){}function sr(e,t){return typeof e=="function"?e(t):e}function Sn(e){return typeof e=="number"&&e>=0&&e!==1/0}function qs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Je(e,t){return typeof e=="function"?e(t):e}function Be(e,t){return typeof e=="function"?e(t):e}function is(e,t){const{type:n="all",exact:c,fetchStatus:a,predicate:r,queryKey:o,stale:i}=e;if(o){if(c){if(t.queryHash!==Un(o,t.options))return!1}else if(!Nt(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof i=="boolean"&&t.isStale()!==i||a&&a!==t.state.fetchStatus||r&&!r(t))}function os(e,t){const{exact:n,status:c,predicate:a,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(n){if(Xe(t.options.mutationKey)!==Xe(r))return!1}else if(!Nt(t.options.mutationKey,r))return!1}return!(c&&t.state.status!==c||a&&!a(t))}function Un(e,t){return(t?.queryKeyHashFn||Xe)(e)}function Xe(e){return JSON.stringify(e,(t,n)=>_n(n)?Object.keys(n).sort().reduce((c,a)=>(c[a]=n[a],c),{}):n)}function Nt(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Nt(e[n],t[n])):!1}var ar=Object.prototype.hasOwnProperty;function Gn(e,t){if(e===t)return e;const n=ls(e)&&ls(t);if(!n&&!(_n(e)&&_n(t)))return t;const a=(n?e:Object.keys(e)).length,r=n?t:Object.keys(t),o=r.length,i=n?new Array(o):{};let l=0;for(let d=0;d<o;d++){const h=n?d:r[d],u=e[h],x=t[h];if(u===x){i[h]=u,(n?d<a:ar.call(e,h))&&l++;continue}if(u===null||x===null||typeof u!="object"||typeof x!="object"){i[h]=x;continue}const p=Gn(u,x);i[h]=p,p===u&&l++}return a===o&&l===a?e:i}function Et(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function ls(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _n(e){if(!cs(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!cs(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function cs(e){return Object.prototype.toString.call(e)==="[object Object]"}function rr(e){return new Promise(t=>{at.setTimeout(t,e)})}function jn(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Gn(e,t):t}function ir(e,t,n=0){const c=[...e,t];return n&&c.length>n?c.slice(1):c}function or(e,t,n=0){const c=[t,...e];return n&&c.length>n?c.slice(0,-1):c}var ze=Symbol();function Ws(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ze?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Hs(e,t){return typeof e=="function"?e(...t):!!e}var lr=class extends ot{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!rt&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Kn=new lr;function Nn(){let e,t;const n=new Promise((a,r)=>{e=a,t=r});n.status="pending",n.catch(()=>{});function c(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{c({status:"fulfilled",value:a}),e(a)},n.reject=a=>{c({status:"rejected",reason:a}),t(a)},n}var cr=nr;function dr(){let e=[],t=0,n=i=>{i()},c=i=>{i()},a=cr;const r=i=>{t?e.push(i):a(()=>{n(i)})},o=()=>{const i=e;e=[],i.length&&a(()=>{c(()=>{i.forEach(l=>{n(l)})})})};return{batch:i=>{let l;t++;try{l=i()}finally{t--,t||o()}return l},batchCalls:i=>(...l)=>{r(()=>{i(...l)})},schedule:r,setNotifyFunction:i=>{n=i},setBatchNotifyFunction:i=>{c=i},setScheduler:i=>{a=i}}}var be=dr(),ur=class extends ot{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!rt&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},$t=new ur;function hr(e){return Math.min(1e3*2**e,3e4)}function Qs(e){return(e??"online")==="online"?$t.isOnline():!0}var En=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function $s(e){let t=!1,n=0,c;const a=Nn(),r=()=>a.status!=="pending",o=m=>{if(!r()){const v=new En(m);x(v),e.onCancel?.(v)}},i=()=>{t=!0},l=()=>{t=!1},d=()=>Kn.isFocused()&&(e.networkMode==="always"||$t.isOnline())&&e.canRun(),h=()=>Qs(e.networkMode)&&e.canRun(),u=m=>{r()||(c?.(),a.resolve(m))},x=m=>{r()||(c?.(),a.reject(m))},p=()=>new Promise(m=>{c=v=>{(r()||d())&&m(v)},e.onPause?.()}).then(()=>{c=void 0,r()||e.onContinue?.()}),b=()=>{if(r())return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(y){m=Promise.reject(y)}Promise.resolve(m).then(u).catch(y=>{if(r())return;const k=e.retry??(rt?0:3),C=e.retryDelay??hr,O=typeof C=="function"?C(n,y):C,A=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,y);if(t||!A){x(y);return}n++,e.onFail?.(n,y),rr(O).then(()=>d()?void 0:p()).then(()=>{t?x(y):b()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(c?.(),a),cancelRetry:i,continueRetry:l,canStart:h,start:()=>(h()?b():p().then(b),a)}}var Vs=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sn(this.gcTime)&&(this.#t=at.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(rt?1/0:300*1e3))}clearGcTimeout(){this.#t&&(at.clearTimeout(this.#t),this.#t=void 0)}},mr=class extends Vs{#t;#e;#n;#a;#s;#r;#o;constructor(e){super(),this.#o=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ds(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=ds(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=jn(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(Ne).catch(Ne):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Be(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ze||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Je(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!qs(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#o?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const i=this.observers.find(l=>l.options.queryFn);i&&this.setOptions(i.options)}const n=new AbortController,c=i=>{Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},a=()=>{const i=Ws(this.options,t),d=(()=>{const h={client:this.#a,queryKey:this.queryKey,meta:this.meta};return c(h),h})();return this.#o=!1,this.options.persister?this.options.persister(i,d,this):i(d)},o=(()=>{const i={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:a};return c(i),i})();this.options.behavior?.onFetch(o,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#i({type:"fetch",meta:o.fetchOptions?.meta}),this.#s=$s({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:i=>{i instanceof En&&i.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(i,l)=>{this.#i({type:"failed",failureCount:i,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const i=await this.#s.start();if(i===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(i),this.#n.config.onSuccess?.(i,this),this.#n.config.onSettled?.(i,this.state.error,this),i}catch(i){if(i instanceof En){if(i.silent)return this.#s.promise;if(i.revert){if(this.state.data===void 0)throw i;return this.state.data}}throw this.#i({type:"error",error:i}),this.#n.config.onError?.(i,this),this.#n.config.onSettled?.(this.state.data,i,this),i}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Zs(n.data,this.options),fetchMeta:e.meta??null};case"success":const c={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?c:void 0,c;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),be.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Zs(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Qs(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ds(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,c=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ct=class extends ot{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=Nn(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#a=void 0;#s;#r;#o;#i;#m;#u;#h;#c;#d;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),us(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Cn(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Cn(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Be(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#e.setOptions(this.options),t._defaulted&&!Et(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const c=this.hasListeners();c&&hs(this.#e,n,this.options,t)&&this.#f(),this.updateResult(),c&&(this.#e!==n||Be(this.options.enabled,this.#e)!==Be(t.enabled,this.#e)||Je(this.options.staleTime,this.#e)!==Je(t.staleTime,this.#e))&&this.#g();const a=this.#x();c&&(this.#e!==n||Be(this.options.enabled,this.#e)!==Be(t.enabled,this.#e)||a!==this.#l)&&this.#y(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return pr(this,n)&&(this.#a=n,this.#r=this.options,this.#s=this.#e.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(n,c)=>(this.trackProp(c),t?.(c),c==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,c))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(e){this.#k();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ne)),t}#g(){this.#v();const e=Je(this.options.staleTime,this.#e);if(rt||this.#a.isStale||!Sn(e))return;const n=qs(this.#a.dataUpdatedAt,e)+1;this.#c=at.setTimeout(()=>{this.#a.isStale||this.updateResult()},n)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(rt||Be(this.options.enabled,this.#e)===!1||!Sn(this.#l)||this.#l===0)&&(this.#d=at.setInterval(()=>{(this.options.refetchIntervalInBackground||Kn.isFocused())&&this.#f()},this.#l))}#b(){this.#g(),this.#y(this.#x())}#v(){this.#c&&(at.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#d&&(at.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const n=this.#e,c=this.options,a=this.#a,r=this.#s,o=this.#r,l=e!==n?e.state:this.#n,{state:d}=e;let h={...d},u=!1,x;if(t._optimisticResults){const T=this.hasListeners(),P=!T&&us(e,t),K=T&&hs(e,n,t,c);(P||K)&&(h={...h,...Zs(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:b,status:m}=h;x=h.data;let v=!1;if(t.placeholderData!==void 0&&x===void 0&&m==="pending"){let T;a?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(T=a.data,v=!0):T=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,T!==void 0&&(m="success",x=jn(a?.data,T,t),u=!0)}if(t.select&&x!==void 0&&!v)if(a&&x===r?.data&&t.select===this.#m)x=this.#u;else try{this.#m=t.select,x=t.select(x),x=jn(a?.data,x,t),this.#u=x,this.#i=null}catch(T){this.#i=T}this.#i&&(p=this.#i,x=this.#u,b=Date.now(),m="error");const y=h.fetchStatus==="fetching",k=m==="pending",C=m==="error",O=k&&y,A=x!==void 0,S={status:m,fetchStatus:h.fetchStatus,isPending:k,isSuccess:m==="success",isError:C,isInitialLoading:O,isLoading:O,data:x,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:b,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>l.dataUpdateCount||h.errorUpdateCount>l.errorUpdateCount,isFetching:y,isRefetching:y&&!k,isLoadingError:C&&!A,isPaused:h.fetchStatus==="paused",isPlaceholderData:u,isRefetchError:C&&A,isStale:qn(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Be(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const T=$=>{S.status==="error"?$.reject(S.error):S.data!==void 0&&$.resolve(S.data)},P=()=>{const $=this.#o=S.promise=Nn();T($)},K=this.#o;switch(K.status){case"pending":e.queryHash===n.queryHash&&T(K);break;case"fulfilled":(S.status==="error"||S.data!==K.value)&&P();break;case"rejected":(S.status!=="error"||S.error!==K.reason)&&P();break}}return S}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#s=this.#e.state,this.#r=this.options,this.#s.data!==void 0&&(this.#h=this.#e),Et(t,e))return;this.#a=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:c}=this.options,a=typeof c=="function"?c():c;if(a==="all"||!a&&!this.#p.size)return!0;const r=new Set(a??this.#p);return this.options.throwOnError&&r.add("error"),Object.keys(this.#a).some(o=>{const i=o;return this.#a[i]!==e[i]&&r.has(i)})};this.#A({listeners:n()})}#k(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#A(e){be.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function fr(e,t){return Be(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function us(e,t){return fr(e,t)||e.state.data!==void 0&&Cn(e,t,t.refetchOnMount)}function Cn(e,t,n){if(Be(t.enabled,e)!==!1&&Je(t.staleTime,e)!=="static"){const c=typeof n=="function"?n(e):n;return c==="always"||c!==!1&&qn(e,t)}return!1}function hs(e,t,n,c){return(e!==t||Be(c.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&qn(e,n)}function qn(e,t){return Be(t.enabled,e)!==!1&&e.isStaleByTime(Je(t.staleTime,e))}function pr(e,t){return!Et(e.getCurrentResult(),t)}function Vt(e){return{onFetch:(t,n)=>{const c=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,r=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let i={pages:[],pageParams:[]},l=0;const d=async()=>{let h=!1;const u=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},x=Ws(t.options,t.fetchOptions),p=async(b,m,v)=>{if(h)return Promise.reject();if(m==null&&b.pages.length)return Promise.resolve(b);const k=(()=>{const R={client:t.client,queryKey:t.queryKey,pageParam:m,direction:v?"backward":"forward",meta:t.options.meta};return u(R),R})(),C=await x(k),{maxPages:O}=t.options,A=v?or:ir;return{pages:A(b.pages,C,O),pageParams:A(b.pageParams,m,O)}};if(a&&r.length){const b=a==="backward",m=b?Ys:Rn,v={pages:r,pageParams:o},y=m(c,v);i=await p(v,y,b)}else{const b=e??r.length;do{const m=l===0?o[0]??c.initialPageParam:Rn(c,i);if(l>0&&m==null)break;i=await p(i,m),l++}while(l<b)}return i};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function Rn(e,{pages:t,pageParams:n}){const c=t.length-1;return t.length>0?e.getNextPageParam(t[c],t,n[c],n):void 0}function Ys(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function gr(e,t){return t?Rn(e,t)!=null:!1}function xr(e,t){return!t||!e.getPreviousPageParam?!1:Ys(e,t)!=null}var Js=class extends Ct{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Vt()})}getOptimisticResult(e){return e.behavior=Vt(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,c=super.createResult(e,t),{isFetching:a,isRefetching:r,isError:o,isRefetchError:i}=c,l=n.fetchMeta?.fetchMore?.direction,d=o&&l==="forward",h=a&&l==="forward",u=o&&l==="backward",x=a&&l==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:gr(t,n.data),hasPreviousPage:xr(t,n.data),isFetchNextPageError:d,isFetchingNextPage:h,isFetchPreviousPageError:u,isFetchingPreviousPage:x,isRefetchError:i&&!d&&!u,isRefetching:r&&!h&&!x}}},yr=class extends Vs{#t;#e;#n;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||Xs(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=$s({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(r,o)=>{this.#s({type:"failed",failureCount:r,error:o})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const c=this.state.status==="pending",a=!this.#a.canStart();try{if(c)t();else{this.#s({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,n);const o=await this.options.onMutate?.(e,n);o!==this.state.context&&this.#s({type:"pending",context:o,variables:e,isPaused:a})}const r=await this.#a.start();return await this.#n.config.onSuccess?.(r,e,this.state.context,this,n),await this.options.onSuccess?.(r,e,this.state.context,n),await this.#n.config.onSettled?.(r,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(r,null,e,this.state.context,n),this.#s({type:"success",data:r}),r}catch(r){try{throw await this.#n.config.onError?.(r,e,this.state.context,this,n),await this.options.onError?.(r,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,r,e,this.state.context,n),r}finally{this.#s({type:"error",error:r})}}finally{this.#n.runNext(this)}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),be.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Xs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var br=class extends ot{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const c=new yr({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(c),c}add(e){this.#t.add(e);const t=Lt(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Lt(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const c=n.indexOf(e);c!==-1&&n.splice(c,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Lt(e);if(typeof t=="string"){const c=this.#e.get(t)?.find(a=>a.state.status==="pending");return!c||c===e}else return!0}runNext(e){const t=Lt(e);return typeof t=="string"?this.#e.get(t)?.find(c=>c!==e&&c.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){be.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>os(t,n))}findAll(e={}){return this.getAll().filter(t=>os(e,t))}notify(e){be.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return be.batch(()=>Promise.all(e.map(t=>t.continue().catch(Ne))))}};function Lt(e){return e.options.scope?.id}var vr=class extends ot{#t;#e=void 0;#n;#a;constructor(e,t){super(),this.#t=e,this.setOptions(t),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#t.defaultMutationOptions(e),Et(this.options,t)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&Xe(t.mutationKey)!==Xe(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#s(),this.#r(e)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#r()}mutate(e,t){return this.#a=t,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(e)}#s(){const e=this.#n?.state??Xs();this.#e={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#r(e){be.batch(()=>{if(this.#a&&this.hasListeners()){const t=this.#e.variables,n=this.#e.context,c={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#a.onSuccess?.(e.data,t,n,c),this.#a.onSettled?.(e.data,null,t,n,c)):e?.type==="error"&&(this.#a.onError?.(e.error,t,n,c),this.#a.onSettled?.(void 0,e.error,t,n,c))}this.listeners.forEach(t=>{t(this.#e)})})}};function ms(e,t){const n=new Set(t);return e.filter(c=>!n.has(c))}function wr(e,t,n){const c=e.slice(0);return c[t]=n,c}var kr=class extends ot{#t;#e;#n;#a;#s;#r;#o;#i;#m=[];constructor(e,t,n){super(),this.#t=e,this.#a=n,this.#n=[],this.#s=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(e=>{e.subscribe(t=>{this.#d(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#a=t,be.batch(()=>{const n=this.#s,c=this.#c(this.#n);this.#m=c,c.forEach(h=>h.observer.setOptions(h.defaultedQueryOptions));const a=c.map(h=>h.observer),r=a.map(h=>h.getCurrentResult()),o=n.length!==a.length,i=a.some((h,u)=>h!==n[u]),l=o||i,d=l?!0:r.some((h,u)=>{const x=this.#e[u];return!x||!Et(h,x)});!l&&!d||(l&&(this.#s=a),this.#e=r,this.hasListeners()&&(l&&(ms(n,a).forEach(h=>{h.destroy()}),ms(a,n).forEach(h=>{h.subscribe(u=>{this.#d(h,u)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){const n=this.#c(e),c=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[c,a=>this.#h(a??c,t),()=>this.#u(c,n)]}#u(e,t){return t.map((n,c)=>{const a=e[c];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,r=>{t.forEach(o=>{o.observer.trackProp(r)})})})}#h(e,t){return t?((!this.#r||this.#e!==this.#i||t!==this.#o)&&(this.#o=t,this.#i=this.#e,this.#r=Gn(this.#r,t(e))),this.#r):e}#c(e){const t=new Map(this.#s.map(c=>[c.options.queryHash,c])),n=[];return e.forEach(c=>{const a=this.#t.defaultQueryOptions(c),r=t.get(a.queryHash);r?n.push({defaultedQueryOptions:a,observer:r}):n.push({defaultedQueryOptions:a,observer:new Ct(this.#t,a)})}),n}#d(e,t){const n=this.#s.indexOf(e);n!==-1&&(this.#e=wr(this.#e,n,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#r,t=this.#u(this.#e,this.#m),n=this.#h(t,this.#a?.combine);e!==n&&be.batch(()=>{this.listeners.forEach(c=>{c(this.#e)})})}}},Ar=class extends ot{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const c=t.queryKey,a=t.queryHash??Un(c,t);let r=this.get(a);return r||(r=new mr({client:e,queryKey:c,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(c)}),this.add(r)),r}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){be.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>is(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>is(e,n)):t}notify(e){be.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){be.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){be.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Xl=class{#t;#e;#n;#a;#s;#r;#o;#i;constructor(e={}){this.#t=e.queryCache||new Ar,this.#e=e.mutationCache||new br,this.#n=e.defaultOptions||{},this.#a=new Map,this.#s=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=Kn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=$t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),c=n.state.data;return c===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Je(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(c))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const c=n.data;return[t,c]})}setQueryData(e,t,n){const c=this.defaultQueryOptions({queryKey:e}),r=this.#t.get(c.queryHash)?.state.data,o=sr(t,r);if(o!==void 0)return this.#t.build(this,c).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return be.batch(()=>this.#t.findAll(e).map(({queryKey:c})=>[c,this.setQueryData(c,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return be.batch(()=>(n.findAll(e).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},c=be.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(c).then(Ne).catch(Ne)}invalidateQueries(e,t={}){return be.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},c=be.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let r=a.fetch(void 0,n);return n.throwOnError||(r=r.catch(Ne)),a.state.fetchStatus==="paused"?Promise.resolve():r}));return Promise.all(c).then(Ne)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Je(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ne).catch(Ne)}fetchInfiniteQuery(e){return e.behavior=Vt(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ne).catch(Ne)}ensureInfiniteQueryData(e){return e.behavior=Vt(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $t.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#a.set(Xe(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(c=>{Nt(e,c.queryKey)&&Object.assign(n,c.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(Xe(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(c=>{Nt(e,c.mutationKey)&&Object.assign(n,c.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Un(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ze&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},un={exports:{}},de={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var fs;function Sr(){if(fs)return de;fs=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),o=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),u=Symbol.for("react.activity"),x=Symbol.iterator;function p(w){return w===null||typeof w!="object"?null:(w=x&&w[x]||w["@@iterator"],typeof w=="function"?w:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function y(w,N,U){this.props=w,this.context=N,this.refs=v,this.updater=U||b}y.prototype.isReactComponent={},y.prototype.setState=function(w,N){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,N,"setState")},y.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function k(){}k.prototype=y.prototype;function C(w,N,U){this.props=w,this.context=N,this.refs=v,this.updater=U||b}var O=C.prototype=new k;O.constructor=C,m(O,y.prototype),O.isPureReactComponent=!0;var A=Array.isArray;function R(){}var S={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function P(w,N,U){var L=U.ref;return{$$typeof:e,type:w,key:N,ref:L!==void 0?L:null,props:U}}function K(w,N){return P(w.type,N,w.props)}function $(w){return typeof w=="object"&&w!==null&&w.$$typeof===e}function j(w){var N={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(U){return N[U]})}var B=/\/+/g;function g(w,N){return typeof w=="object"&&w!==null&&w.key!=null?j(""+w.key):N.toString(36)}function G(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(R,R):(w.status="pending",w.then(function(N){w.status==="pending"&&(w.status="fulfilled",w.value=N)},function(N){w.status==="pending"&&(w.status="rejected",w.reason=N)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function I(w,N,U,L,F){var ae=typeof w;(ae==="undefined"||ae==="boolean")&&(w=null);var le=!1;if(w===null)le=!0;else switch(ae){case"bigint":case"string":case"number":le=!0;break;case"object":switch(w.$$typeof){case e:case t:le=!0;break;case h:return le=w._init,I(le(w._payload),N,U,L,F)}}if(le)return F=F(w),le=L===""?"."+g(w,0):L,A(F)?(U="",le!=null&&(U=le.replace(B,"$&/")+"/"),I(F,N,U,"",function(xe){return xe})):F!=null&&($(F)&&(F=K(F,U+(F.key==null||w&&w.key===F.key?"":(""+F.key).replace(B,"$&/")+"/")+le)),N.push(F)),1;le=0;var re=L===""?".":L+":";if(A(w))for(var ce=0;ce<w.length;ce++)L=w[ce],ae=re+g(L,ce),le+=I(L,N,U,ae,F);else if(ce=p(w),typeof ce=="function")for(w=ce.call(w),ce=0;!(L=w.next()).done;)L=L.value,ae=re+g(L,ce++),le+=I(L,N,U,ae,F);else if(ae==="object"){if(typeof w.then=="function")return I(G(w),N,U,L,F);throw N=String(w),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return le}function z(w,N,U){if(w==null)return w;var L=[],F=0;return I(w,L,"","",function(ae){return N.call(U,ae,F++)}),L}function te(w){if(w._status===-1){var N=w._result;N=N(),N.then(function(U){(w._status===0||w._status===-1)&&(w._status=1,w._result=U)},function(U){(w._status===0||w._status===-1)&&(w._status=2,w._result=U)}),w._status===-1&&(w._status=0,w._result=N)}if(w._status===1)return w._result.default;throw w._result}var H=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},ne={map:z,forEach:function(w,N,U){z(w,function(){N.apply(this,arguments)},U)},count:function(w){var N=0;return z(w,function(){N++}),N},toArray:function(w){return z(w,function(N){return N})||[]},only:function(w){if(!$(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return de.Activity=u,de.Children=ne,de.Component=y,de.Fragment=n,de.Profiler=a,de.PureComponent=C,de.StrictMode=c,de.Suspense=l,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,de.__COMPILER_RUNTIME={__proto__:null,c:function(w){return S.H.useMemoCache(w)}},de.cache=function(w){return function(){return w.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(w,N,U){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var L=m({},w.props),F=w.key;if(N!=null)for(ae in N.key!==void 0&&(F=""+N.key),N)!T.call(N,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&N.ref===void 0||(L[ae]=N[ae]);var ae=arguments.length-2;if(ae===1)L.children=U;else if(1<ae){for(var le=Array(ae),re=0;re<ae;re++)le[re]=arguments[re+2];L.children=le}return P(w.type,F,L)},de.createContext=function(w){return w={$$typeof:o,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:r,_context:w},w},de.createElement=function(w,N,U){var L,F={},ae=null;if(N!=null)for(L in N.key!==void 0&&(ae=""+N.key),N)T.call(N,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(F[L]=N[L]);var le=arguments.length-2;if(le===1)F.children=U;else if(1<le){for(var re=Array(le),ce=0;ce<le;ce++)re[ce]=arguments[ce+2];F.children=re}if(w&&w.defaultProps)for(L in le=w.defaultProps,le)F[L]===void 0&&(F[L]=le[L]);return P(w,ae,F)},de.createRef=function(){return{current:null}},de.forwardRef=function(w){return{$$typeof:i,render:w}},de.isValidElement=$,de.lazy=function(w){return{$$typeof:h,_payload:{_status:-1,_result:w},_init:te}},de.memo=function(w,N){return{$$typeof:d,type:w,compare:N===void 0?null:N}},de.startTransition=function(w){var N=S.T,U={};S.T=U;try{var L=w(),F=S.S;F!==null&&F(U,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(R,H)}catch(ae){H(ae)}finally{N!==null&&U.types!==null&&(N.types=U.types),S.T=N}},de.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},de.use=function(w){return S.H.use(w)},de.useActionState=function(w,N,U){return S.H.useActionState(w,N,U)},de.useCallback=function(w,N){return S.H.useCallback(w,N)},de.useContext=function(w){return S.H.useContext(w)},de.useDebugValue=function(){},de.useDeferredValue=function(w,N){return S.H.useDeferredValue(w,N)},de.useEffect=function(w,N){return S.H.useEffect(w,N)},de.useEffectEvent=function(w){return S.H.useEffectEvent(w)},de.useId=function(){return S.H.useId()},de.useImperativeHandle=function(w,N,U){return S.H.useImperativeHandle(w,N,U)},de.useInsertionEffect=function(w,N){return S.H.useInsertionEffect(w,N)},de.useLayoutEffect=function(w,N){return S.H.useLayoutEffect(w,N)},de.useMemo=function(w,N){return S.H.useMemo(w,N)},de.useOptimistic=function(w,N){return S.H.useOptimistic(w,N)},de.useReducer=function(w,N,U){return S.H.useReducer(w,N,U)},de.useRef=function(w){return S.H.useRef(w)},de.useState=function(w){return S.H.useState(w)},de.useSyncExternalStore=function(w,N,U){return S.H.useSyncExternalStore(w,N,U)},de.useTransition=function(){return S.H.useTransition()},de.version="19.2.1",de}var ps;function Wn(){return ps||(ps=1,un.exports=Sr()),un.exports}var W=Wn();const ee=Fn(W),ea=Ya({__proto__:null,default:ee},[W]);var ta=W.createContext(void 0),Rt=e=>{const t=W.useContext(ta);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ec=({client:e,children:t})=>(W.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(ta.Provider,{value:e,children:t})),na=W.createContext(!1),sa=()=>W.useContext(na);na.Provider;function _r(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var jr=W.createContext(_r()),aa=()=>W.useContext(jr),ra=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},ia=e=>{W.useEffect(()=>{e.clearReset()},[e])},oa=({result:e,errorResetBoundary:t,throwOnError:n,query:c,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&c&&(a&&e.data===void 0||Hs(n,[e.error,c])),Hn=(e,t)=>t.state.data===void 0,la=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),c=e.staleTime;e.staleTime=typeof c=="function"?(...a)=>n(c(...a)):n(c),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},ca=(e,t)=>e.isLoading&&e.isFetching&&!t,Pn=(e,t)=>e?.suspense&&t.isPending,Zt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function da({queries:e,...t},n){const c=Rt(n),a=sa(),r=aa(),o=W.useMemo(()=>e.map(m=>{const v=c.defaultQueryOptions(m);return v._optimisticResults=a?"isRestoring":"optimistic",v}),[e,c,a]);o.forEach(m=>{la(m),ra(m,r)}),ia(r);const[i]=W.useState(()=>new kr(c,o,t)),[l,d,h]=i.getOptimisticResult(o,t.combine),u=!a&&t.subscribed!==!1;W.useSyncExternalStore(W.useCallback(m=>u?i.subscribe(be.batchCalls(m)):Ne,[i,u]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),W.useEffect(()=>{i.setQueries(o,t)},[o,t,i]);const p=l.some((m,v)=>Pn(o[v],m))?l.flatMap((m,v)=>{const y=o[v];if(y){const k=new Ct(c,y);if(Pn(y,m))return Zt(y,k,r);ca(m,a)&&Zt(y,k,r)}return[]}):[];if(p.length>0)throw Promise.all(p);const b=l.find((m,v)=>{const y=o[v];return y&&oa({result:m,errorResetBoundary:r,throwOnError:y.throwOnError,query:c.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(b?.error)throw b.error;return d(h())}function en(e,t,n){const c=sa(),a=aa(),r=Rt(n),o=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=c?"isRestoring":"optimistic",la(o),ra(o,a),ia(a);const i=!r.getQueryCache().get(o.queryHash),[l]=W.useState(()=>new t(r,o)),d=l.getOptimisticResult(o),h=!c&&e.subscribed!==!1;if(W.useSyncExternalStore(W.useCallback(u=>{const x=h?l.subscribe(be.batchCalls(u)):Ne;return l.updateResult(),x},[l,h]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),W.useEffect(()=>{l.setOptions(o)},[o,l]),Pn(o,d))throw Zt(o,l,a);if(oa({result:d,errorResetBoundary:a,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw d.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!rt&&ca(d,c)&&(i?Zt(o,l,a):r.getQueryCache().get(o.queryHash)?.promise)?.catch(Ne).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?d:l.trackResult(d)}function Nr(e,t){return en(e,Ct,t)}function Er(e,t){return en({...e,enabled:!0,suspense:!0,throwOnError:Hn,placeholderData:void 0},Ct,t)}function Cr(e,t){return en({...e,enabled:!0,suspense:!0,throwOnError:Hn},Js,t)}function Rr(e,t){return da({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:Hn,enabled:!0,placeholderData:void 0}))},t)}function Pr(e,t){const n=Rt(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function Or(e,t){const n=Rt(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function Mr(e,t){const n=Rt(t),[c]=W.useState(()=>new vr(n,e));W.useEffect(()=>{c.setOptions(e)},[c,e]);const a=W.useSyncExternalStore(W.useCallback(o=>c.subscribe(be.batchCalls(o)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),r=W.useCallback((o,i)=>{c.mutate(o,i).catch(Ne)},[c]);if(a.error&&Hs(c.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:r,mutateAsync:a.mutate}}function zr(e,t){return en(e,Js,t)}function it(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const Tr=typeof Symbol=="function"&&!!Symbol.asyncIterator;function ua(e){return Tr&&it(e)&&Symbol.asyncIterator in e}var Ir=Object.create,ha=Object.defineProperty,Dr=Object.getOwnPropertyDescriptor,ma=Object.getOwnPropertyNames,Lr=Object.getPrototypeOf,Br=Object.prototype.hasOwnProperty,Pt=(e,t)=>function(){return t||(0,e[ma(e)[0]])((t={exports:{}}).exports,t),t.exports},Fr=(e,t,n,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=ma(t),r=0,o=a.length,i;r<o;r++)i=a[r],!Br.call(e,i)&&i!==n&&ha(e,i,{get:(l=>t[l]).bind(null,i),enumerable:!(c=Dr(t,i))||c.enumerable});return e},tn=(e,t,n)=>(n=e!=null?Ir(Lr(e)):{},Fr(ha(n,"default",{value:e,enumerable:!0}),e));const fa=()=>{},gs=e=>{Object.freeze&&Object.freeze(e)};function pa(e,t,n){var c;const a=t.join(".");return(c=n[a])!==null&&c!==void 0||(n[a]=new Proxy(fa,{get(r,o){if(!(typeof o!="string"||o==="then"))return pa(e,[...t,o],n)},apply(r,o,i){const l=t[t.length-1];let d={args:i,path:t};return l==="call"?d={args:i.length>=2?[i[1]]:[],path:t.slice(0,-1)}:l==="apply"&&(d={args:i.length>=2?i[1]:[],path:t.slice(0,-1)}),gs(d.args),gs(d.path),e(d)}})),n[a]}const nn=e=>pa(e,[],Object.create(null)),Qn=e=>new Proxy(fa,{get(t,n){if(n!=="then")return e(n)}});var ga=Pt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(c){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(c)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ur=Pt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=ga().default;function c(a,r){if(n(a)!="object"||!a)return a;var o=a[Symbol.toPrimitive];if(o!==void 0){var i=o.call(a,r||"default");if(n(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(a)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gr=Pt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=ga().default,c=Ur();function a(r){var o=c(r,"string");return n(o)=="symbol"?o:o+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),xa=Pt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Gr();function c(a,r,o){return(r=n(r))in a?Object.defineProperty(a,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[r]=o,a}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),$n=Pt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=xa();function c(r,o){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);o&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(r,d).enumerable})),i.push.apply(i,l)}return i}function a(r){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?c(Object(i),!0).forEach(function(l){n(r,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(l){Object.defineProperty(r,l,Object.getOwnPropertyDescriptor(i,l))})}return r}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});tn($n());tn(xa());var Bt=tn($n());function Kr(e,t){if("error"in e){const c=t.deserialize(e.error);return{ok:!1,error:(0,Bt.default)((0,Bt.default)({},e),{},{error:c})}}return{ok:!0,result:(0,Bt.default)((0,Bt.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var hn=class extends Error{constructor(){super("Unable to transform response from server")}};function qr(e,t){let n;try{n=Kr(e,t)}catch{throw new hn}if(!n.ok&&(!it(n.error.error)||typeof n.error.error.code!="number"))throw new hn;if(n.ok&&!it(n.result))throw new hn;return n}tn($n());function sn(e){const t={subscribe(n){let c=null,a=!1,r=!1,o=!1;function i(){if(c===null){o=!0;return}r||(r=!0,typeof c=="function"?c():c&&c.unsubscribe())}return c=e({next(l){var d;a||(d=n.next)===null||d===void 0||d.call(n,l)},error(l){var d;a||(a=!0,(d=n.error)===null||d===void 0||d.call(n,l),i())},complete(){var l;a||(a=!0,(l=n.complete)===null||l===void 0||l.call(n),i())}}),o&&i(),{unsubscribe:i}},pipe(...n){return n.reduce(Wr,t)}};return t}function Wr(e,t){return t(e)}function Hr(e){const t=new AbortController;return new Promise((c,a)=>{let r=!1;function o(){r||(r=!0,i.unsubscribe())}t.signal.addEventListener("abort",()=>{a(t.signal.reason)});const i=e.subscribe({next(l){r=!0,c(l),o()},error(l){a(l)},complete(){t.abort(),o()}})})}var Qr=Object.create,ya=Object.defineProperty,$r=Object.getOwnPropertyDescriptor,ba=Object.getOwnPropertyNames,Vr=Object.getPrototypeOf,Zr=Object.prototype.hasOwnProperty,et=(e,t)=>function(){return t||(0,e[ba(e)[0]])((t={exports:{}}).exports,t),t.exports},Yr=(e,t,n,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=ba(t),r=0,o=a.length,i;r<o;r++)i=a[r],!Zr.call(e,i)&&i!==n&&ya(e,i,{get:(l=>t[l]).bind(null,i),enumerable:!(c=$r(t,i))||c.enumerable});return e},lt=(e,t,n)=>(n=e!=null?Qr(Vr(e)):{},Yr(t||!e||!e.__esModule?ya(n,"default",{value:e,enumerable:!0}):n,e)),Jr=et({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(c,a){if(c==null)return{};var r={};for(var o in c)if({}.hasOwnProperty.call(c,o)){if(a.includes(o))continue;r[o]=c[o]}return r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Xr=et({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=Jr();function c(a,r){if(a==null)return{};var o,i,l=n(a,r);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);for(i=0;i<d.length;i++)o=d[i],r.includes(o)||{}.propertyIsEnumerable.call(a,o)&&(l[o]=a[o])}return l}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),va=et({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(c){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(c)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),ei=et({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=va().default;function c(a,r){if(n(a)!="object"||!a)return a;var o=a[Symbol.toPrimitive];if(o!==void 0){var i=o.call(a,r||"default");if(n(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(a)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),ti=et({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=va().default,c=ei();function a(r){var o=c(r,"string");return n(o)=="symbol"?o:o+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),ni=et({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=ti();function c(a,r,o){return(r=n(r))in a?Object.defineProperty(a,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[r]=o,a}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ot=et({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=ni();function c(r,o){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);o&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(r,d).enumerable})),i.push.apply(i,l)}return i}function a(r){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?c(Object(i),!0).forEach(function(l){n(r,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(l){Object.defineProperty(r,l,Object.getOwnPropertyDescriptor(i,l))})}return r}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),si=lt(Xr(),1),xs=lt(Ot(),1);const ai=["cursor","direction"];function Qe(e,t,n){const c=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return c.length?[c]:[];if(n==="infinite"&&it(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:r}=t,o=(0,si.default)(t,ai);return[c,{input:o,type:"infinite"}]}return[c,(0,xs.default)((0,xs.default)({},typeof t<"u"&&t!==ze&&{input:t}),n&&n!=="any"&&{type:n})]}function Wt(e){return Qe(e,void 0,"any")}var ri=Object.create,wa=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ka=Object.getOwnPropertyNames,oi=Object.getPrototypeOf,li=Object.prototype.hasOwnProperty,Ze=(e,t)=>function(){return t||(0,e[ka(e)[0]])((t={exports:{}}).exports,t),t.exports},ci=(e,t,n,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=ka(t),r=0,o=a.length,i;r<o;r++)i=a[r],!li.call(e,i)&&i!==n&&wa(e,i,{get:(l=>t[l]).bind(null,i),enumerable:!(c=ii(t,i))||c.enumerable});return e},ve=(e,t,n)=>(n=e!=null?ri(oi(e)):{},ci(t||!e||!e.__esModule?wa(n,"default",{value:e,enumerable:!0}):n,e)),Aa=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(c){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(c)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),di=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Aa().default;function c(a,r){if(n(a)!="object"||!a)return a;var o=a[Symbol.toPrimitive];if(o!==void 0){var i=o.call(a,r||"default");if(n(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(a)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),ui=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Aa().default,c=di();function a(r){var o=c(r,"string");return n(o)=="symbol"?o:o+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),ct=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=ui();function c(a,r,o){return(r=n(r))in a?Object.defineProperty(a,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[r]=o,a}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),qe=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=ct();function c(r,o){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);o&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(r,d).enumerable})),i.push.apply(i,l)}return i}function a(r){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?c(Object(i),!0).forEach(function(l){n(r,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(l){Object.defineProperty(r,l,Object.getOwnPropertyDescriptor(i,l))})}return r}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function hi(e){return t=>{let n=0,c=null;const a=[];function r(){c||(c=t.subscribe({next(i){for(const d of a){var l;(l=d.next)===null||l===void 0||l.call(d,i)}},error(i){for(const d of a){var l;(l=d.error)===null||l===void 0||l.call(d,i)}},complete(){for(const l of a){var i;(i=l.complete)===null||i===void 0||i.call(l)}}}))}function o(){if(n===0&&c){const i=c;c=null,i.unsubscribe()}}return sn(i=>(n++,a.push(i),r(),{unsubscribe(){n--,o();const l=a.findIndex(d=>d===i);l>-1&&a.splice(l,1)}}))}}function mi(e){let t=e;const n=[],c=o=>{t!==void 0&&o.next(t),n.push(o)},a=o=>{n.splice(n.indexOf(o),1)},r=sn(o=>(c(o),()=>{a(o)}));return r.next=o=>{if(t!==o){t=o;for(const i of n)i.next(o)}},r.get=()=>t,r}function fi(e){return sn(t=>{function n(a=0,r=e.op){const o=e.links[a];if(!o)throw new Error("No more links to execute - did you forget to add an ending link?");return o({op:r,next(l){return n(a+1,l)}})}return n().subscribe(t)})}var Ft=ve(ct(),1),mt=ve(qe(),1);function pi(e){return e instanceof Yt}function gi(e){return it(e)&&it(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function xi(e,t){return typeof e=="string"?e:it(e)&&typeof e.message=="string"?e.message:t}var Yt=class Ht extends Error{constructor(t,n){var c,a;const r=n?.cause;super(t,{cause:r}),(0,Ft.default)(this,"cause",void 0),(0,Ft.default)(this,"shape",void 0),(0,Ft.default)(this,"data",void 0),(0,Ft.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=r,this.shape=n==null||(c=n.result)===null||c===void 0?void 0:c.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Ht.prototype)}static from(t,n={}){const c=t;return pi(c)?(n.meta&&(c.meta=(0,mt.default)((0,mt.default)({},c.meta),n.meta)),c):gi(c)?new Ht(c.error.message,(0,mt.default)((0,mt.default)({},n),{},{result:c})):new Ht(xi(c,"Unknown error"),(0,mt.default)((0,mt.default)({},n),{},{cause:c}))}};function yi(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const ys=e=>typeof e=="function";function bi(e){if(e)return e;if(typeof window<"u"&&ys(window.fetch))return window.fetch;if(typeof globalThis<"u"&&ys(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var _t=ve(qe());function vi(e){return{url:e.url.toString(),fetch:e.fetch,transformer:yi(e.transformer),methodOverride:e.methodOverride}}function wi(e){const t={};for(let n=0;n<e.length;n++){const c=e[n];t[n]=c}return t}const ki={query:"GET",mutation:"POST",subscription:"PATCH"};function Sa(e){return"input"in e?e.transformer.input.serialize(e.input):wi(e.inputs.map(t=>e.transformer.input.serialize(t)))}const _a=e=>{const t=e.url.split("?");let c=t[0].replace(/\/$/,"")+"/"+e.path;const a=[];if(t[1]&&a.push(t[1]),"inputs"in e&&a.push("batch=1"),e.type==="query"||e.type==="subscription"){const r=Sa(e);r!==void 0&&e.methodOverride!=="POST"&&a.push(`input=${encodeURIComponent(JSON.stringify(r))}`)}return a.length&&(c+="?"+a.join("&")),c},Ai=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=Sa(e);return t!==void 0?JSON.stringify(t):void 0},Si=e=>Ei((0,_t.default)((0,_t.default)({},e),{},{contentTypeHeader:"application/json",getUrl:_a,getBody:Ai}));var _i=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const ji=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new _i};async function Ni(e){var t;ji(e.signal);const n=e.getUrl(e),c=e.getBody(e),a=(t=e.methodOverride)!==null&&t!==void 0?t:ki[e.type],r=await(async()=>{const i=await e.headers();return Symbol.iterator in i?Object.fromEntries(i):i})(),o=(0,_t.default)((0,_t.default)((0,_t.default)({},e.contentTypeHeader&&a!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),r);return bi(e.fetch)(n,{method:a,signal:e.signal,body:c,headers:o})}async function Ei(e){const t={},n=await Ni(e);t.response=n;const c=await n.json();return t.responseJSON=c,{json:c,meta:t}}ve(qe(),1);const bs=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function vs(e){let t=null,n=null;const c=()=>{clearTimeout(n),n=null,t=null};function a(i){const l=[[]];let d=0;for(;;){const x=i[d];if(!x)break;const p=l[l.length-1];if(x.aborted){var h;(h=x.reject)===null||h===void 0||h.call(x,new Error("Aborted")),d++;continue}if(e.validate(p.concat(x).map(m=>m.key))){p.push(x),d++;continue}if(p.length===0){var u;(u=x.reject)===null||u===void 0||u.call(x,new Error("Input is too big for a single dispatch")),d++;continue}l.push([])}return l}function r(){const i=a(t);c();for(const l of i){if(!l.length)continue;const d={items:l};for(const u of l)u.batch=d;e.fetch(d.items.map(u=>u.key)).then(async u=>{await Promise.all(u.map(async(p,b)=>{const m=d.items[b];try{var v;const k=await Promise.resolve(p);(v=m.resolve)===null||v===void 0||v.call(m,k)}catch(k){var y;(y=m.reject)===null||y===void 0||y.call(m,k)}m.batch=null,m.reject=null,m.resolve=null}));for(const p of d.items){var x;(x=p.reject)===null||x===void 0||x.call(p,new Error("Missing result")),p.batch=null}}).catch(u=>{for(const p of d.items){var x;(x=p.reject)===null||x===void 0||x.call(p,u),p.batch=null}})}}function o(i){var l;const d={aborted:!1,key:i,batch:null,resolve:bs,reject:bs},h=new Promise((u,x)=>{var p;d.reject=x,d.resolve=u,(p=t)!==null&&p!==void 0||(t=[]),t.push(d)});return(l=n)!==null&&l!==void 0||(n=setTimeout(r)),h}return{load:o}}function Ci(...e){const t=new AbortController,n=e.length;let c=0;const a=()=>{++c===n&&t.abort()};for(const r of e)r?.aborted?a():r?.addEventListener("abort",a,{once:!0});return t.signal}var Ut=ve(qe(),1);function tc(e){var t,n;const c=vi(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,r=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const o=h=>({validate(u){if(a===1/0&&r===1/0)return!0;if(u.length>r)return!1;const x=u.map(m=>m.path).join(","),p=u.map(m=>m.input);return _a((0,Ut.default)((0,Ut.default)({},c),{},{type:h,path:x,inputs:p,signal:null})).length<=a},async fetch(u){const x=u.map(k=>k.path).join(","),p=u.map(k=>k.input),b=Ci(...u.map(k=>k.signal)),m=await Si((0,Ut.default)((0,Ut.default)({},c),{},{path:x,inputs:p,type:h,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:u}):e.headers:{}},signal:b}));return(Array.isArray(m.json)?m.json:u.map(()=>m.json)).map(k=>({meta:m.meta,json:k}))}}),i=vs(o("query")),l=vs(o("mutation")),d={query:i,mutation:l};return({op:h})=>sn(u=>{/* istanbul ignore if -- @preserve */if(h.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const p=d[h.type].load(h);let b;return p.then(m=>{b=m;const v=qr(m.json,c.transformer.output);if(!v.ok){u.error(Yt.from(v.error,{meta:m.meta}));return}u.next({context:m.meta,result:v.result}),u.complete()}).catch(m=>{u.error(Yt.from(m,{meta:b?.meta}))}),()=>{}})}}ve(qe(),1);const ja=(e,...t)=>typeof e=="function"?e(...t):e;ve(ct(),1);function Ri(){let e,t;return{promise:new Promise((c,a)=>{e=c,t=a}),resolve:e,reject:t}}async function Pi(e){const t=await ja(e.url);if(!e.connectionParams)return t;const c=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+c}async function Oi(e){const t={method:"connectionParams",data:await ja(e)};return JSON.stringify(t)}ve(ct(),1);var st=ve(ct(),1);function Mi(e){const{promise:t,resolve:n,reject:c}=Ri();return e.addEventListener("open",()=>{e.removeEventListener("error",c),n()}),e.addEventListener("error",c),t}function zi(e,{intervalMs:t,pongTimeoutMs:n}){let c,a;function r(){c=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function o(){clearTimeout(c),r()}function i(){clearTimeout(a),o()}e.addEventListener("open",r),e.addEventListener("message",({data:l})=>{clearTimeout(c),r(),l==="PONG"&&i()}),e.addEventListener("close",()=>{clearTimeout(c),clearTimeout(a)})}var Ti=class On{constructor(t){var n;if((0,st.default)(this,"id",++On.connectCount),(0,st.default)(this,"WebSocketPonyfill",void 0),(0,st.default)(this,"urlOptions",void 0),(0,st.default)(this,"keepAliveOpts",void 0),(0,st.default)(this,"wsObservable",mi(null)),(0,st.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++On.connectCount;const n=Pi(t.urlOptions).then(c=>new t.WebSocketPonyfill(c));t.openPromise=n.then(async c=>{t.ws=c,c.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&zi(c,t.keepAliveOpts),c.addEventListener("close",()=>{t.ws===c&&(t.ws=null)}),await Mi(c),t.urlOptions.connectionParams&&c.send(await Oi(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,st.default)(Ti,"connectCount",0);ve(ct(),1);ve(qe(),1);var mn=ve(ct(),1),ws=ve(qe(),1),an=class{constructor(e){(0,mn.default)(this,"links",void 0),(0,mn.default)(this,"runtime",void 0),(0,mn.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return fi({links:this.links,op:(0,ws.default)((0,ws.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(hi())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await Hr(n)).result.data}catch(n){throw Yt.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(a){switch(a.result.type){case"state":{var r;(r=n.onConnectionStateChange)===null||r===void 0||r.call(n,a.result);break}case"started":{var o;(o=n.onStarted)===null||o===void 0||o.call(n,{context:a.context});break}case"stopped":{var i;(i=n.onStopped)===null||i===void 0||i.call(n);break}case"data":case void 0:{var l;(l=n.onData)===null||l===void 0||l.call(n,a.result.data);break}}},error(a){var r;(r=n.onError)===null||r===void 0||r.call(n,a)},complete(){var a;(a=n.onComplete)===null||a===void 0||a.call(n)}})}};const Na=Symbol.for("trpc_untypedClient"),Ii={query:"query",mutate:"mutation",subscribe:"subscription"},Di=e=>Ii[e];function Ea(e){const t=nn(({path:n,args:c})=>{const a=[...n],r=Di(a.pop()),o=a.join(".");return e[r](o,...c)});return Qn(n=>n===Na?e:t[n])}function Li(e){const t=new an(e);return Ea(t)}function Vn(e){return e[Na]}ve(qe(),1);ve(qe(),1);var Bi=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var r,o,i,l=2;for(typeof Symbol<"u"&&(o=Symbol.asyncIterator,i=Symbol.iterator);l--;){if(o&&(r=a[o])!=null)return r.call(a);if(i&&(r=a[i])!=null)return new c(r.call(a));o="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function c(a){function r(o){if(Object(o)!==o)return Promise.reject(new TypeError(o+" is not an object."));var i=o.done;return Promise.resolve(o.value).then(function(l){return{value:l,done:i}})}return c=function(i){this.s=i,this.n=i.next},c.prototype={s:null,n:null,next:function(){return r(this.n.apply(this.s,arguments))},return:function(i){var l=this.s.return;return l===void 0?Promise.resolve({value:i,done:!0}):r(l.apply(this.s,arguments))},throw:function(i){var l=this.s.return;return l===void 0?Promise.reject(i):r(l.apply(this.s,arguments))}},new c(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});ve(Bi(),1);ve(qe(),1);var Fi=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var c=typeof SuppressedError=="function"?SuppressedError:function(i,l){var d=Error();return d.name="SuppressedError",d.error=i,d.suppressed=l,d},a={},r=[];function o(i,l){if(l!=null){if(Object(l)!==l)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(i)var d=l[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(d===void 0&&(d=l[Symbol.dispose||Symbol.for("Symbol.dispose")],i))var h=d;if(typeof d!="function")throw new TypeError("Object is not disposable.");h&&(d=function(){try{h.call(l)}catch(x){return Promise.reject(x)}}),r.push({v:l,d,a:i})}else i&&r.push({d:l,a:i});return l}return{e:a,u:o.bind(null,!1),a:o.bind(null,!0),d:function(){var l,d=this.e,h=0;function u(){for(;l=r.pop();)try{if(!l.a&&h===1)return h=0,r.push(l),Promise.resolve().then(u);if(l.d){var p=l.d.call(l.v);if(l.a)return h|=2,Promise.resolve(p).then(u,x)}else h|=1}catch(b){return x(b)}if(h===1)return d!==a?Promise.reject(d):Promise.resolve();if(d!==a)throw d}function x(p){return d=d!==a?new c(p,d):p,u()}return u()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ca=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(c,a){this.v=c,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ui=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=Ca();function c(a){return new n(a,0)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gi=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=Ca();function c(r){return function(){return new a(r.apply(this,arguments))}}function a(r){var o,i;function l(h,u){try{var x=r[h](u),p=x.value,b=p instanceof n;Promise.resolve(b?p.v:p).then(function(m){if(b){var v=h==="return"?"return":"next";if(!p.k||m.done)return l(v,m);m=r[v](m).value}d(x.done?"return":"normal",m)},function(m){l("throw",m)})}catch(m){d("throw",m)}}function d(h,u){switch(h){case"return":o.resolve({value:u,done:!0});break;case"throw":o.reject(u);break;default:o.resolve({value:u,done:!1})}(o=o.next)?l(o.key,o.arg):i=null}this._invoke=function(h,u){return new Promise(function(x,p){var b={key:h,arg:u,resolve:x,reject:p,next:null};i?i=i.next=b:(o=i=b,l(h,u))})},typeof r.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(r){return this._invoke("next",r)},a.prototype.throw=function(r){return this._invoke("throw",r)},a.prototype.return=function(r){return this._invoke("return",r)},t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}});ve(Fi(),1);ve(Ui(),1);ve(Gi(),1);ve(qe(),1);function Ki(e){return nn(({path:t,args:n})=>{var c;const a=[...t],r=a.pop();if(r==="useMutation")return e[r](a,...n);if(r==="_def")return{path:a};const[o,...i]=n,l=(c=i[0])!==null&&c!==void 0?c:{};return e[r](a,o,l)})}var fn;const qi=["client","ssrContext","ssrState","abortOnUnmount"],Wi=(fn=W.createContext)===null||fn===void 0?void 0:fn.call(ea,null),Hi=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function Qi(e){return nn(t=>{const n=[...t.path],c=n.pop(),a=[...t.args],r=a.shift(),o=Hi(c),i=Qe(n,r,o);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,i,a[0]),queryOptions:()=>e.queryOptions(n,i,...a),fetch:()=>e.fetchQuery(i,...a),fetchInfinite:()=>e.fetchInfiniteQuery(i,a[0]),prefetch:()=>e.prefetchQuery(i,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(i,a[0]),ensureData:()=>e.ensureQueryData(i,...a),invalidate:()=>e.invalidateQueries(i,...a),reset:()=>e.resetQueries(i,...a),refetch:()=>e.refetchQueries(i,...a),cancel:()=>e.cancelQuery(i,...a),setData:()=>{e.setQueryData(i,a[0],a[1])},setQueriesData:()=>e.setQueriesData(i,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(i,a[0],a[1])},getData:()=>e.getQueryData(i),getInfiniteData:()=>e.getInfiniteQueryData(i),setMutationDefaults:()=>e.setMutationDefaults(Wt(n),r),getMutationDefaults:()=>e.getMutationDefaults(Wt(n)),isMutating:()=>e.isMutating({mutationKey:Wt(n)})}[c]()})}function $i(e){const t=Ea(e.client),n=Qi(e);return Qn(c=>{const a=c;return a==="client"?t:qi.includes(a)?e[a]:n[c]})}var Vi=lt(Ot(),1);function ks(e){const t=e instanceof an?e:Vn(e);return nn(n=>{const c=n.path,a=c.join("."),[r,o]=n.args;return(0,Vi.default)({queryKey:Qe(c,r,"query"),queryFn:()=>t.query(a,r,o?.trpc)},o)})}var pn=lt(Ot(),1);function Ce(e,t,n){var c;const a=e[0];let r=(c=e[1])===null||c===void 0?void 0:c.input;if(n){var o;r=(0,pn.default)((0,pn.default)((0,pn.default)({},(o=r)!==null&&o!==void 0?o:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),r,t?.trpc]}var Zi=et({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var r,o,i,l=2;for(typeof Symbol<"u"&&(o=Symbol.asyncIterator,i=Symbol.iterator);l--;){if(o&&(r=a[o])!=null)return r.call(a);if(i&&(r=a[i])!=null)return new c(r.call(a));o="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function c(a){function r(o){if(Object(o)!==o)return Promise.reject(new TypeError(o+" is not an object."));var i=o.done;return Promise.resolve(o.value).then(function(l){return{value:l,done:i}})}return c=function(i){this.s=i,this.n=i.next},c.prototype={s:null,n:null,next:function(){return r(this.n.apply(this.s,arguments))},return:function(i){var l=this.s.return;return l===void 0?Promise.resolve({value:i,done:!0}):r(l.apply(this.s,arguments))},throw:function(i){var l=this.s.return;return l===void 0?Promise.reject(i):r(l.apply(this.s,arguments))}},new c(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Yi=lt(Zi(),1);function Mn(e){return{path:e.path.join(".")}}function At(e){const t=Mn(e);return W.useMemo(()=>t,[t])}async function Ra(e,t,n){const a=t.getQueryCache().build(t,{queryKey:n});a.setState({data:[],status:"success"});const r=[];var o=!1,i=!1,l;try{for(var d=(0,Yi.default)(e),h;o=!(h=await d.next()).done;o=!1){const u=h.value;r.push(u),a.setState({data:[...r]})}}catch(u){i=!0,l=u}finally{try{o&&d.return!=null&&await d.return()}finally{if(i)throw l}}return r}var fe=lt(Ot(),1);function Ji(e){const{client:t,queryClient:n}=e,c=t instanceof an?t:Vn(t);return{infiniteQueryOptions:(a,r,o)=>{var i,l;const d=((i=r[1])===null||i===void 0?void 0:i.input)===ze,h=async u=>{var x;const p=(0,fe.default)((0,fe.default)({},o),{},{trpc:(0,fe.default)((0,fe.default)({},o?.trpc),!(o==null||(x=o.trpc)===null||x===void 0)&&x.abortOnUnmount?{signal:u.signal}:{signal:null})});return await c.query(...Ce(r,p,{direction:u.direction,pageParam:u.pageParam}))};return Object.assign((0,fe.default)((0,fe.default)({},o),{},{initialData:o?.initialData,queryKey:r,queryFn:d?ze:h,initialPageParam:(l=o?.initialCursor)!==null&&l!==void 0?l:null}),{trpc:Mn({path:a})})},queryOptions:(a,r,o)=>{var i;const l=((i=r[1])===null||i===void 0?void 0:i.input)===ze,d=async h=>{var u;const x=(0,fe.default)((0,fe.default)({},o),{},{trpc:(0,fe.default)((0,fe.default)({},o?.trpc),!(o==null||(u=o.trpc)===null||u===void 0)&&u.abortOnUnmount?{signal:h.signal}:{signal:null})}),p=await c.query(...Ce(r,x));return ua(p)?Ra(p,n,r):p};return Object.assign((0,fe.default)((0,fe.default)({},o),{},{initialData:o?.initialData,queryKey:r,queryFn:l?ze:d}),{trpc:Mn({path:a})})},fetchQuery:(a,r)=>n.fetchQuery((0,fe.default)((0,fe.default)({},r),{},{queryKey:a,queryFn:()=>c.query(...Ce(a,r))})),fetchInfiniteQuery:(a,r)=>{var o;return n.fetchInfiniteQuery((0,fe.default)((0,fe.default)({},r),{},{queryKey:a,queryFn:({pageParam:i,direction:l})=>c.query(...Ce(a,r,{pageParam:i,direction:l})),initialPageParam:(o=r?.initialCursor)!==null&&o!==void 0?o:null}))},prefetchQuery:(a,r)=>n.prefetchQuery((0,fe.default)((0,fe.default)({},r),{},{queryKey:a,queryFn:()=>c.query(...Ce(a,r))})),prefetchInfiniteQuery:(a,r)=>{var o;return n.prefetchInfiniteQuery((0,fe.default)((0,fe.default)({},r),{},{queryKey:a,queryFn:({pageParam:i,direction:l})=>c.query(...Ce(a,r,{pageParam:i,direction:l})),initialPageParam:(o=r?.initialCursor)!==null&&o!==void 0?o:null}))},ensureQueryData:(a,r)=>n.ensureQueryData((0,fe.default)((0,fe.default)({},r),{},{queryKey:a,queryFn:()=>c.query(...Ce(a,r))})),invalidateQueries:(a,r,o)=>n.invalidateQueries((0,fe.default)((0,fe.default)({},r),{},{queryKey:a}),o),resetQueries:(a,r,o)=>n.resetQueries((0,fe.default)((0,fe.default)({},r),{},{queryKey:a}),o),refetchQueries:(a,r,o)=>n.refetchQueries((0,fe.default)((0,fe.default)({},r),{},{queryKey:a}),o),cancelQuery:(a,r)=>n.cancelQueries({queryKey:a},r),setQueryData:(a,r,o)=>n.setQueryData(a,r,o),setQueriesData:(a,r,o,i)=>n.setQueriesData((0,fe.default)((0,fe.default)({},r),{},{queryKey:a}),o,i),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,r,o)=>n.setQueryData(a,r,o),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,r)=>{const o=a[0],i=l=>c.mutation(...Ce([o,{input:l}],e));return n.setMutationDefaults(a,typeof r=="function"?r({canonicalMutationFn:i}):r)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,fe.default)((0,fe.default)({},a),{},{exact:!0}))}}var se=lt(Ot());const As=(e,t)=>new Proxy(e,{get(c,a){return t(a),c[a]}});function Xi(e){var t,n;const c=(t=void 0)!==null&&t!==void 0?t:A=>A.originalFn(),a=(n=void 0)!==null&&n!==void 0?n:Wi,r=Li,o=A=>{var R;const{abortOnUnmount:S=!1,queryClient:T,ssrContext:P}=A,[K,$]=W.useState((R=A.ssrState)!==null&&R!==void 0?R:!1),j=A.client instanceof an?A.client:Vn(A.client),B=W.useMemo(()=>Ji({client:j,queryClient:T}),[j,T]),g=W.useMemo(()=>(0,se.default)({abortOnUnmount:S,queryClient:T,client:j,ssrContext:P??null,ssrState:K},B),[S,j,B,T,P,K]);return W.useEffect(()=>{$(G=>G?"mounted":!1)},[]),s.jsx(a.Provider,{value:g,children:A.children})};function i(){const A=W.useContext(a);if(!A)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return A}function l(A,R){var S;const{queryClient:T,ssrState:P}=i();return P&&P!=="mounted"&&((S=T.getQueryCache().find({queryKey:A}))===null||S===void 0?void 0:S.state.status)==="error"?(0,se.default)({retryOnMount:!1},R):R}function d(A,R,S){var T,P,K,$,j;const B=i(),{abortOnUnmount:g,client:G,ssrState:I,queryClient:z,prefetchQuery:te}=B,H=Qe(A,R,"query"),ne=z.getQueryDefaults(H),w=R===ze;typeof window>"u"&&I==="prepass"&&(S==null||(T=S.trpc)===null||T===void 0?void 0:T.ssr)!==!1&&((P=S?.enabled)!==null&&P!==void 0?P:ne?.enabled)!==!1&&!w&&!z.getQueryCache().find({queryKey:H})&&te(H,S);const N=l(H,(0,se.default)((0,se.default)({},ne),S)),U=(K=($=S==null||(j=S.trpc)===null||j===void 0?void 0:j.abortOnUnmount)!==null&&$!==void 0?$:void 0)!==null&&K!==void 0?K:g,L=Nr((0,se.default)((0,se.default)({},N),{},{queryKey:H,queryFn:w?R:async F=>{const ae=(0,se.default)((0,se.default)({},N),{},{trpc:(0,se.default)((0,se.default)({},N?.trpc),U?{signal:F.signal}:{signal:null})}),le=await G.query(...Ce(H,ae));return ua(le)?Ra(le,z,H):le}}),z);return L.trpc=At({path:A}),L}function h(A,R,S){var T,P,K;const $=i(),j=Qe(A,R,"query"),B=R===ze,g=(T=(P=S==null||(K=S.trpc)===null||K===void 0?void 0:K.abortOnUnmount)!==null&&P!==void 0?P:void 0)!==null&&T!==void 0?T:$.abortOnUnmount;Pr((0,se.default)((0,se.default)({},S),{},{queryKey:j,queryFn:B?R:G=>{const I={trpc:(0,se.default)((0,se.default)({},S?.trpc),g?{signal:G.signal}:{})};return $.client.query(...Ce(j,I))}}))}function u(A,R,S){var T,P,K;const $=i(),j=Qe(A,R,"query"),B=(T=(P=S==null||(K=S.trpc)===null||K===void 0?void 0:K.abortOnUnmount)!==null&&P!==void 0?P:void 0)!==null&&T!==void 0?T:$.abortOnUnmount,g=Er((0,se.default)((0,se.default)({},S),{},{queryKey:j,queryFn:G=>{const I=(0,se.default)((0,se.default)({},S),{},{trpc:(0,se.default)((0,se.default)({},S?.trpc),B?{signal:G.signal}:{signal:null})});return $.client.query(...Ce(j,I))}}),$.queryClient);return g.trpc=At({path:A}),[g.data,g]}function x(A,R){const{client:S,queryClient:T}=i(),P=Wt(A),K=T.defaultMutationOptions(T.getMutationDefaults(P)),$=Mr((0,se.default)((0,se.default)({},R),{},{mutationKey:P,mutationFn:j=>S.mutation(...Ce([A,{input:j}],R)),onSuccess(...j){var B,g;return c({originalFn:()=>{var I,z,te;return(I=R==null||(z=R.onSuccess)===null||z===void 0?void 0:z.call(R,...j))!==null&&I!==void 0?I:K==null||(te=K.onSuccess)===null||te===void 0?void 0:te.call(K,...j)},queryClient:T,meta:(B=(g=R?.meta)!==null&&g!==void 0?g:K?.meta)!==null&&B!==void 0?B:{}})}}),T);return $.trpc=At({path:A}),$}const p={data:void 0,error:null,status:"idle"},b={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function m(A,R,S){var T;const P=(T=S?.enabled)!==null&&T!==void 0?T:R!==ze,K=Xe(Qe(A,R,"any")),{client:$}=i(),j=W.useRef(S);W.useEffect(()=>{j.current=S});const[B]=W.useState(new Set([])),g=W.useCallback(w=>{B.add(w)},[B]),G=W.useRef(null),I=W.useCallback(w=>{const N=te.current,U=te.current=w(N);let L=!1;for(const F of B)if(N[F]!==U[F]){L=!0;break}L&&ne(As(U,g))},[g,B]),z=W.useCallback(()=>{var w;if((w=G.current)===null||w===void 0||w.unsubscribe(),!P){I(()=>(0,se.default)((0,se.default)({},p),{},{reset:z}));return}I(()=>(0,se.default)((0,se.default)({},b),{},{reset:z}));const N=$.subscription(A.join("."),R??void 0,{onStarted:()=>{var U,L;(U=(L=j.current).onStarted)===null||U===void 0||U.call(L),I(F=>(0,se.default)((0,se.default)({},F),{},{status:"pending",error:null}))},onData:U=>{var L,F;(L=(F=j.current).onData)===null||L===void 0||L.call(F,U),I(ae=>(0,se.default)((0,se.default)({},ae),{},{status:"pending",data:U,error:null}))},onError:U=>{var L,F;(L=(F=j.current).onError)===null||L===void 0||L.call(F,U),I(ae=>(0,se.default)((0,se.default)({},ae),{},{status:"error",error:U}))},onConnectionStateChange:U=>{I(L=>{switch(U.state){case"idle":return(0,se.default)((0,se.default)({},L),{},{status:U.state,error:null,data:void 0});case"connecting":return(0,se.default)((0,se.default)({},L),{},{error:U.error,status:U.state});case"pending":return L}})},onComplete:()=>{var U,L;(U=(L=j.current).onComplete)===null||U===void 0||U.call(L),I(F=>(0,se.default)((0,se.default)({},F),{},{status:"idle",error:null,data:void 0}))}});G.current=N},[$,K,P,I]);W.useEffect(()=>(z(),()=>{var w;(w=G.current)===null||w===void 0||w.unsubscribe()}),[z]);const te=W.useRef(P?(0,se.default)((0,se.default)({},b),{},{reset:z}):(0,se.default)((0,se.default)({},p),{},{reset:z})),[H,ne]=W.useState(As(te.current,g));return H}function v(A,R,S){var T,P,K,$,j;const{client:B,ssrState:g,prefetchInfiniteQuery:G,queryClient:I,abortOnUnmount:z}=i(),te=Qe(A,R,"infinite"),H=I.getQueryDefaults(te),ne=R===ze;typeof window>"u"&&g==="prepass"&&(S==null||(T=S.trpc)===null||T===void 0?void 0:T.ssr)!==!1&&((P=S?.enabled)!==null&&P!==void 0?P:H?.enabled)!==!1&&!ne&&!I.getQueryCache().find({queryKey:te})&&G(te,(0,se.default)((0,se.default)({},H),S));const w=l(te,(0,se.default)((0,se.default)({},H),S)),N=(K=S==null||($=S.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&K!==void 0?K:z,U=zr((0,se.default)((0,se.default)({},w),{},{initialPageParam:(j=S.initialCursor)!==null&&j!==void 0?j:null,persister:S.persister,queryKey:te,queryFn:ne?R:L=>{var F;const ae=(0,se.default)((0,se.default)({},w),{},{trpc:(0,se.default)((0,se.default)({},w?.trpc),N?{signal:L.signal}:{signal:null})});return B.query(...Ce(te,ae,{pageParam:(F=L.pageParam)!==null&&F!==void 0?F:S.initialCursor,direction:L.direction}))}}),I);return U.trpc=At({path:A}),U}function y(A,R,S){var T,P,K;const $=i(),j=Qe(A,R,"infinite"),B=$.queryClient.getQueryDefaults(j),g=R===ze,G=l(j,(0,se.default)((0,se.default)({},B),S)),I=(T=S==null||(P=S.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&T!==void 0?T:$.abortOnUnmount;Or((0,se.default)((0,se.default)({},S),{},{initialPageParam:(K=S.initialCursor)!==null&&K!==void 0?K:null,queryKey:j,queryFn:g?R:z=>{var te;const H=(0,se.default)((0,se.default)({},G),{},{trpc:(0,se.default)((0,se.default)({},G?.trpc),I?{signal:z.signal}:{})});return $.client.query(...Ce(j,H,{pageParam:(te=z.pageParam)!==null&&te!==void 0?te:S.initialCursor,direction:z.direction}))}}))}function k(A,R,S){var T,P,K;const $=i(),j=Qe(A,R,"infinite"),B=$.queryClient.getQueryDefaults(j),g=l(j,(0,se.default)((0,se.default)({},B),S)),G=(T=S==null||(P=S.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&T!==void 0?T:$.abortOnUnmount,I=Cr((0,se.default)((0,se.default)({},S),{},{initialPageParam:(K=S.initialCursor)!==null&&K!==void 0?K:null,queryKey:j,queryFn:z=>{var te;const H=(0,se.default)((0,se.default)({},g),{},{trpc:(0,se.default)((0,se.default)({},g?.trpc),G?{signal:z.signal}:{})});return $.client.query(...Ce(j,H,{pageParam:(te=z.pageParam)!==null&&te!==void 0?te:S.initialCursor,direction:z.direction}))}}),$.queryClient);return I.trpc=At({path:A}),[I.data,I]}return{Provider:o,createClient:r,useContext:i,useUtils:i,useQuery:d,usePrefetchQuery:h,useSuspenseQuery:u,useQueries:(A,R)=>{const{ssrState:S,queryClient:T,prefetchQuery:P,client:K}=i(),$=ks(K),j=A($);if(typeof window>"u"&&S==="prepass")for(const g of j){var B;const G=g;((B=G.trpc)===null||B===void 0?void 0:B.ssr)!==!1&&!T.getQueryCache().find({queryKey:G.queryKey})&&P(G.queryKey,G)}return da({queries:j.map(g=>(0,se.default)((0,se.default)({},g),{},{queryKey:g.queryKey})),combine:R?.combine},T)},useSuspenseQueries:A=>{const{queryClient:R,client:S}=i(),T=ks(S),P=A(T),K=Rr({queries:P.map($=>(0,se.default)((0,se.default)({},$),{},{queryFn:$.queryFn,queryKey:$.queryKey}))},R);return[K.map($=>$.data),K]},useMutation:x,useSubscription:m,useInfiniteQuery:v,usePrefetchInfiniteQuery:y,useSuspenseInfiniteQuery:k}}function eo(e){const t=Ki(e);return Qn(n=>n==="useContext"||n==="useUtils"?()=>{const c=e.useUtils();return W.useMemo(()=>$i(c),[c])}:e.hasOwnProperty(n)?e[n]:t[n])}function to(e){const t=Xi();return eo(t)}const me=to();var gn={exports:{}},je={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ss;function no(){if(Ss)return je;Ss=1;var e=Wn();function t(l){var d="https://react.dev/errors/"+l;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)d+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+l+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var c={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function r(l,d,h){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:u==null?null:""+u,children:l,containerInfo:d,implementation:h}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function i(l,d){if(l==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return je.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,je.createPortal=function(l,d){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return r(l,d,null,h)},je.flushSync=function(l){var d=o.T,h=c.p;try{if(o.T=null,c.p=2,l)return l()}finally{o.T=d,c.p=h,c.d.f()}},je.preconnect=function(l,d){typeof l=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,c.d.C(l,d))},je.prefetchDNS=function(l){typeof l=="string"&&c.d.D(l)},je.preinit=function(l,d){if(typeof l=="string"&&d&&typeof d.as=="string"){var h=d.as,u=i(h,d.crossOrigin),x=typeof d.integrity=="string"?d.integrity:void 0,p=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;h==="style"?c.d.S(l,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:u,integrity:x,fetchPriority:p}):h==="script"&&c.d.X(l,{crossOrigin:u,integrity:x,fetchPriority:p,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},je.preinitModule=function(l,d){if(typeof l=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var h=i(d.as,d.crossOrigin);c.d.M(l,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&c.d.M(l)},je.preload=function(l,d){if(typeof l=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var h=d.as,u=i(h,d.crossOrigin);c.d.L(l,h,{crossOrigin:u,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},je.preloadModule=function(l,d){if(typeof l=="string")if(d){var h=i(d.as,d.crossOrigin);c.d.m(l,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else c.d.m(l)},je.requestFormReset=function(l){c.d.r(l)},je.unstable_batchedUpdates=function(l,d){return l(d)},je.useFormState=function(l,d,h){return o.H.useFormState(l,d,h)},je.useFormStatus=function(){return o.H.useHostTransitionStatus()},je.version="19.2.1",je}var _s;function so(){if(_s)return gn.exports;_s=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),gn.exports=no(),gn.exports}var ao=so();const ro=Fn(ao);function io(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const oo=e=>{switch(e){case"success":return uo;case"info":return mo;case"warning":return ho;case"error":return fo;default:return null}},lo=Array(12).fill(0),co=({visible:e,className:t})=>ee.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ee.createElement("div",{className:"sonner-spinner"},lo.map((n,c)=>ee.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${c}`})))),uo=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),ho=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),mo=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),fo=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),po=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ee.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ee.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),go=()=>{const[e,t]=ee.useState(document.hidden);return ee.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let zn=1;class xo{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:c,...a}=t,r=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:zn++,o=this.toasts.find(l=>l.id===r),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),o?this.toasts=this.toasts.map(l=>l.id===r?(this.publish({...l,...t,id:r,title:c}),{...l,...t,id:r,dismissible:i,title:c}):l):this.addToast({title:c,...a,dismissible:i,id:r}),r},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(c=>c({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let c;n.loading!==void 0&&(c=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let r=c!==void 0,o;const i=a.then(async d=>{if(o=["resolve",d],ee.isValidElement(d))r=!1,this.create({id:c,type:"default",message:d});else if(bo(d)&&!d.ok){r=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,x=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,b=typeof u=="object"&&!ee.isValidElement(u)?u:{message:u};this.create({id:c,type:"error",description:x,...b})}else if(d instanceof Error){r=!1;const u=typeof n.error=="function"?await n.error(d):n.error,x=typeof n.description=="function"?await n.description(d):n.description,b=typeof u=="object"&&!ee.isValidElement(u)?u:{message:u};this.create({id:c,type:"error",description:x,...b})}else if(n.success!==void 0){r=!1;const u=typeof n.success=="function"?await n.success(d):n.success,x=typeof n.description=="function"?await n.description(d):n.description,b=typeof u=="object"&&!ee.isValidElement(u)?u:{message:u};this.create({id:c,type:"success",description:x,...b})}}).catch(async d=>{if(o=["reject",d],n.error!==void 0){r=!1;const h=typeof n.error=="function"?await n.error(d):n.error,u=typeof n.description=="function"?await n.description(d):n.description,p=typeof h=="object"&&!ee.isValidElement(h)?h:{message:h};this.create({id:c,type:"error",description:u,...p})}}).finally(()=>{r&&(this.dismiss(c),c=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((d,h)=>i.then(()=>o[0]==="reject"?h(o[1]):d(o[1])).catch(h));return typeof c!="string"&&typeof c!="number"?{unwrap:l}:Object.assign(c,{unwrap:l})},this.custom=(t,n)=>{const c=n?.id||zn++;return this.create({jsx:t(c),id:c,...n}),c},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Re=new xo,yo=(e,t)=>{const n=t?.id||zn++;return Re.addToast({title:e,...t,id:n}),n},bo=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",vo=yo,wo=()=>Re.toasts,ko=()=>Re.getActiveToasts(),Fe=Object.assign(vo,{success:Re.success,info:Re.info,warning:Re.warning,error:Re.error,custom:Re.custom,message:Re.message,promise:Re.promise,dismiss:Re.dismiss,loading:Re.loading},{getHistory:wo,getToasts:ko});io("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Gt(e){return e.label!==void 0}const Ao=3,So="24px",_o="16px",js=4e3,jo=356,No=14,Eo=45,Co=200;function He(...e){return e.filter(Boolean).join(" ")}function Ro(e){const[t,n]=e.split("-"),c=[];return t&&c.push(t),n&&c.push(n),c}const Po=e=>{var t,n,c,a,r,o,i,l,d;const{invert:h,toast:u,unstyled:x,interacting:p,setHeights:b,visibleToasts:m,heights:v,index:y,toasts:k,expanded:C,removeToast:O,defaultRichColors:A,closeButton:R,style:S,cancelButtonStyle:T,actionButtonStyle:P,className:K="",descriptionClassName:$="",duration:j,position:B,gap:g,expandByDefault:G,classNames:I,icons:z,closeButtonAriaLabel:te="Close toast"}=e,[H,ne]=ee.useState(null),[w,N]=ee.useState(null),[U,L]=ee.useState(!1),[F,ae]=ee.useState(!1),[le,re]=ee.useState(!1),[ce,xe]=ee.useState(!1),[ge,ke]=ee.useState(!1),[Pe,f]=ee.useState(0),[Q,q]=ee.useState(0),E=ee.useRef(u.duration||j||js),_=ee.useRef(null),M=ee.useRef(null),V=y===0,Y=y+1<=m,D=u.type,J=u.dismissible!==!1,ie=u.className||"",X=u.descriptionClassName||"",oe=ee.useMemo(()=>v.findIndex(ue=>ue.toastId===u.id)||0,[v,u.id]),pe=ee.useMemo(()=>{var ue;return(ue=u.closeButton)!=null?ue:R},[u.closeButton,R]),he=ee.useMemo(()=>u.duration||j||js,[u.duration,j]),Se=ee.useRef(0),Te=ee.useRef(0),Oe=ee.useRef(0),Ie=ee.useRef(null),[ye,ut]=B.split("-"),ht=ee.useMemo(()=>v.reduce((ue,we,_e)=>_e>=oe?ue:ue+we.height,0),[v,oe]),De=go(),Mt=u.invert||h,wt=D==="loading";Te.current=ee.useMemo(()=>oe*g+ht,[oe,ht]),ee.useEffect(()=>{E.current=he},[he]),ee.useEffect(()=>{L(!0)},[]),ee.useEffect(()=>{const ue=M.current;if(ue){const we=ue.getBoundingClientRect().height;return q(we),b(_e=>[{toastId:u.id,height:we,position:u.position},..._e]),()=>b(_e=>_e.filter(Me=>Me.toastId!==u.id))}},[b,u.id]),ee.useLayoutEffect(()=>{if(!U)return;const ue=M.current,we=ue.style.height;ue.style.height="auto";const _e=ue.getBoundingClientRect().height;ue.style.height=we,q(_e),b(Me=>Me.find(Ae=>Ae.toastId===u.id)?Me.map(Ae=>Ae.toastId===u.id?{...Ae,height:_e}:Ae):[{toastId:u.id,height:_e,position:u.position},...Me])},[U,u.title,u.description,b,u.id,u.jsx,u.action,u.cancel]);const We=ee.useCallback(()=>{ae(!0),f(Te.current),b(ue=>ue.filter(we=>we.toastId!==u.id)),setTimeout(()=>{O(u)},Co)},[u,O,b,Te]);ee.useEffect(()=>{if(u.promise&&D==="loading"||u.duration===1/0||u.type==="loading")return;let ue;return C||p||De?(()=>{if(Oe.current<Se.current){const Me=new Date().getTime()-Se.current;E.current=E.current-Me}Oe.current=new Date().getTime()})():(()=>{E.current!==1/0&&(Se.current=new Date().getTime(),ue=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),We()},E.current))})(),()=>clearTimeout(ue)},[C,p,u,D,De,We]),ee.useEffect(()=>{u.delete&&(We(),u.onDismiss==null||u.onDismiss.call(u,u))},[We,u.delete]);function cn(){var ue;if(z?.loading){var we;return ee.createElement("div",{className:He(I?.loader,u==null||(we=u.classNames)==null?void 0:we.loader,"sonner-loader"),"data-visible":D==="loading"},z.loading)}return ee.createElement(co,{className:He(I?.loader,u==null||(ue=u.classNames)==null?void 0:ue.loader),visible:D==="loading"})}const zt=u.icon||z?.[D]||oo(D);var Ye,tt;return ee.createElement("li",{tabIndex:0,ref:M,className:He(K,ie,I?.toast,u==null||(t=u.classNames)==null?void 0:t.toast,I?.default,I?.[D],u==null||(n=u.classNames)==null?void 0:n[D]),"data-sonner-toast":"","data-rich-colors":(Ye=u.richColors)!=null?Ye:A,"data-styled":!(u.jsx||u.unstyled||x),"data-mounted":U,"data-promise":!!u.promise,"data-swiped":ge,"data-removed":F,"data-visible":Y,"data-y-position":ye,"data-x-position":ut,"data-index":y,"data-front":V,"data-swiping":le,"data-dismissible":J,"data-type":D,"data-invert":Mt,"data-swipe-out":ce,"data-swipe-direction":w,"data-expanded":!!(C||G&&U),"data-testid":u.testId,style:{"--index":y,"--toasts-before":y,"--z-index":k.length-y,"--offset":`${F?Pe:Te.current}px`,"--initial-height":G?"auto":`${Q}px`,...S,...u.style},onDragEnd:()=>{re(!1),ne(null),Ie.current=null},onPointerDown:ue=>{ue.button!==2&&(wt||!J||(_.current=new Date,f(Te.current),ue.target.setPointerCapture(ue.pointerId),ue.target.tagName!=="BUTTON"&&(re(!0),Ie.current={x:ue.clientX,y:ue.clientY})))},onPointerUp:()=>{var ue,we,_e;if(ce||!J)return;Ie.current=null;const Me=Number(((ue=M.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tt=Number(((we=M.current)==null?void 0:we.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ae=new Date().getTime()-((_e=_.current)==null?void 0:_e.getTime()),Le=H==="x"?Me:Tt,It=Math.abs(Le)/Ae;if(Math.abs(Le)>=Eo||It>.11){f(Te.current),u.onDismiss==null||u.onDismiss.call(u,u),N(H==="x"?Me>0?"right":"left":Tt>0?"down":"up"),We(),xe(!0);return}else{var Ge,Ke;(Ge=M.current)==null||Ge.style.setProperty("--swipe-amount-x","0px"),(Ke=M.current)==null||Ke.style.setProperty("--swipe-amount-y","0px")}ke(!1),re(!1),ne(null)},onPointerMove:ue=>{var we,_e,Me;if(!Ie.current||!J||((we=window.getSelection())==null?void 0:we.toString().length)>0)return;const Ae=ue.clientY-Ie.current.y,Le=ue.clientX-Ie.current.x;var It;const Ge=(It=e.swipeDirections)!=null?It:Ro(B);!H&&(Math.abs(Le)>1||Math.abs(Ae)>1)&&ne(Math.abs(Le)>Math.abs(Ae)?"x":"y");let Ke={x:0,y:0};const ss=nt=>1/(1.5+Math.abs(nt)/20);if(H==="y"){if(Ge.includes("top")||Ge.includes("bottom"))if(Ge.includes("top")&&Ae<0||Ge.includes("bottom")&&Ae>0)Ke.y=Ae;else{const nt=Ae*ss(Ae);Ke.y=Math.abs(nt)<Math.abs(Ae)?nt:Ae}}else if(H==="x"&&(Ge.includes("left")||Ge.includes("right")))if(Ge.includes("left")&&Le<0||Ge.includes("right")&&Le>0)Ke.x=Le;else{const nt=Le*ss(Le);Ke.x=Math.abs(nt)<Math.abs(Le)?nt:Le}(Math.abs(Ke.x)>0||Math.abs(Ke.y)>0)&&ke(!0),(_e=M.current)==null||_e.style.setProperty("--swipe-amount-x",`${Ke.x}px`),(Me=M.current)==null||Me.style.setProperty("--swipe-amount-y",`${Ke.y}px`)}},pe&&!u.jsx&&D!=="loading"?ee.createElement("button",{"aria-label":te,"data-disabled":wt,"data-close-button":!0,onClick:wt||!J?()=>{}:()=>{We(),u.onDismiss==null||u.onDismiss.call(u,u)},className:He(I?.closeButton,u==null||(c=u.classNames)==null?void 0:c.closeButton)},(tt=z?.close)!=null?tt:po):null,(D||u.icon||u.promise)&&u.icon!==null&&(z?.[D]!==null||u.icon)?ee.createElement("div",{"data-icon":"",className:He(I?.icon,u==null||(a=u.classNames)==null?void 0:a.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||cn():null,u.type!=="loading"?zt:null):null,ee.createElement("div",{"data-content":"",className:He(I?.content,u==null||(r=u.classNames)==null?void 0:r.content)},ee.createElement("div",{"data-title":"",className:He(I?.title,u==null||(o=u.classNames)==null?void 0:o.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?ee.createElement("div",{"data-description":"",className:He($,X,I?.description,u==null||(i=u.classNames)==null?void 0:i.description)},typeof u.description=="function"?u.description():u.description):null),ee.isValidElement(u.cancel)?u.cancel:u.cancel&&Gt(u.cancel)?ee.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||T,onClick:ue=>{Gt(u.cancel)&&J&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,ue),We())},className:He(I?.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,ee.isValidElement(u.action)?u.action:u.action&&Gt(u.action)?ee.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||P,onClick:ue=>{Gt(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,ue),!ue.defaultPrevented&&We())},className:He(I?.actionButton,u==null||(d=u.classNames)==null?void 0:d.actionButton)},u.action.label):null)};function Ns(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Oo(e,t){const n={};return[e,t].forEach((c,a)=>{const r=a===1,o=r?"--mobile-offset":"--offset",i=r?_o:So;function l(d){["top","right","bottom","left"].forEach(h=>{n[`${o}-${h}`]=typeof d=="number"?`${d}px`:d})}typeof c=="number"||typeof c=="string"?l(c):typeof c=="object"?["top","right","bottom","left"].forEach(d=>{c[d]===void 0?n[`${o}-${d}`]=i:n[`${o}-${d}`]=typeof c[d]=="number"?`${c[d]}px`:c[d]}):l(i)}),n}const nc=ee.forwardRef(function(t,n){const{id:c,invert:a,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:l,className:d,offset:h,mobileOffset:u,theme:x="light",richColors:p,duration:b,style:m,visibleToasts:v=Ao,toastOptions:y,dir:k=Ns(),gap:C=No,icons:O,containerAriaLabel:A="Notifications"}=t,[R,S]=ee.useState([]),T=ee.useMemo(()=>c?R.filter(U=>U.toasterId===c):R.filter(U=>!U.toasterId),[R,c]),P=ee.useMemo(()=>Array.from(new Set([r].concat(T.filter(U=>U.position).map(U=>U.position)))),[T,r]),[K,$]=ee.useState([]),[j,B]=ee.useState(!1),[g,G]=ee.useState(!1),[I,z]=ee.useState(x!=="system"?x:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),te=ee.useRef(null),H=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),ne=ee.useRef(null),w=ee.useRef(!1),N=ee.useCallback(U=>{S(L=>{var F;return(F=L.find(ae=>ae.id===U.id))!=null&&F.delete||Re.dismiss(U.id),L.filter(({id:ae})=>ae!==U.id)})},[]);return ee.useEffect(()=>Re.subscribe(U=>{if(U.dismiss){requestAnimationFrame(()=>{S(L=>L.map(F=>F.id===U.id?{...F,delete:!0}:F))});return}setTimeout(()=>{ro.flushSync(()=>{S(L=>{const F=L.findIndex(ae=>ae.id===U.id);return F!==-1?[...L.slice(0,F),{...L[F],...U},...L.slice(F+1)]:[U,...L]})})})}),[R]),ee.useEffect(()=>{if(x!=="system"){z(x);return}if(x==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;const U=window.matchMedia("(prefers-color-scheme: dark)");try{U.addEventListener("change",({matches:L})=>{z(L?"dark":"light")})}catch{U.addListener(({matches:F})=>{try{z(F?"dark":"light")}catch(ae){console.error(ae)}})}},[x]),ee.useEffect(()=>{R.length<=1&&B(!1)},[R]),ee.useEffect(()=>{const U=L=>{var F;if(o.every(re=>L[re]||L.code===re)){var le;B(!0),(le=te.current)==null||le.focus()}L.code==="Escape"&&(document.activeElement===te.current||(F=te.current)!=null&&F.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[o]),ee.useEffect(()=>{if(te.current)return()=>{ne.current&&(ne.current.focus({preventScroll:!0}),ne.current=null,w.current=!1)}},[te.current]),ee.createElement("section",{ref:n,"aria-label":`${A} ${H}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((U,L)=>{var F;const[ae,le]=U.split("-");return T.length?ee.createElement("ol",{key:U,dir:k==="auto"?Ns():k,tabIndex:-1,ref:te,className:d,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":ae,"data-x-position":le,style:{"--front-toast-height":`${((F=K[0])==null?void 0:F.height)||0}px`,"--width":`${jo}px`,"--gap":`${C}px`,...m,...Oo(h,u)},onBlur:re=>{w.current&&!re.currentTarget.contains(re.relatedTarget)&&(w.current=!1,ne.current&&(ne.current.focus({preventScroll:!0}),ne.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||w.current||(w.current=!0,ne.current=re.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{g||B(!1)},onDragEnd:()=>B(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||G(!0)},onPointerUp:()=>G(!1)},T.filter(re=>!re.position&&L===0||re.position===U).map((re,ce)=>{var xe,ge;return ee.createElement(Po,{key:re.id,icons:O,index:ce,toast:re,defaultRichColors:p,duration:(xe=y?.duration)!=null?xe:b,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:a,visibleToasts:v,closeButton:(ge=y?.closeButton)!=null?ge:l,interacting:g,position:U,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:N,toasts:T.filter(ke=>ke.position==re.position),heights:K.filter(ke=>ke.position==re.position),setHeights:$,expandByDefault:i,gap:C,expanded:j,swipeDirections:t.swipeDirections})})):null}))});function Mo(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,c,a,r,o=[],i="",l=e.split("/");for(l[0]||l.shift();a=l.shift();)n=a[0],n==="*"?(o.push(n),i+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(c=a.indexOf("?",1),r=a.indexOf(".",1),o.push(a.substring(1,~c?c:~r?r:a.length)),i+=~c&&!~r?"(?:/([^/]+?))?":"/([^/]+?)",~r&&(i+=(~c?"?":"")+"\\"+a.substring(r))):i+="/"+a;return{keys:o,pattern:new RegExp("^"+i+(t?"(?=$|/)":"/?$"),"i")}}var xn={exports:{}},yn={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Es;function zo(){if(Es)return yn;Es=1;var e=Wn();function t(u,x){return u===x&&(u!==0||1/u===1/x)||u!==u&&x!==x}var n=typeof Object.is=="function"?Object.is:t,c=e.useState,a=e.useEffect,r=e.useLayoutEffect,o=e.useDebugValue;function i(u,x){var p=x(),b=c({inst:{value:p,getSnapshot:x}}),m=b[0].inst,v=b[1];return r(function(){m.value=p,m.getSnapshot=x,l(m)&&v({inst:m})},[u,p,x]),a(function(){return l(m)&&v({inst:m}),u(function(){l(m)&&v({inst:m})})},[u]),o(p),p}function l(u){var x=u.getSnapshot;u=u.value;try{var p=x();return!n(u,p)}catch{return!0}}function d(u,x){return x()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:i;return yn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,yn}var Cs;function To(){return Cs||(Cs=1,xn.exports=zo()),xn.exports}var Io=To();const Do=ea.useInsertionEffect,Lo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Bo=Lo?W.useLayoutEffect:W.useEffect,Fo=Do||Bo,Pa=e=>{const t=W.useRef([e,(...n)=>t[0](...n)]).current;return Fo(()=>{t[0]=e}),t[1]},Uo="popstate",Zn="pushState",Yn="replaceState",Go="hashchange",Rs=[Uo,Zn,Yn,Go],Ko=e=>{for(const t of Rs)addEventListener(t,e);return()=>{for(const t of Rs)removeEventListener(t,e)}},Oa=(e,t)=>Io.useSyncExternalStore(Ko,e,t),qo=()=>location.search,Wo=({ssrSearch:e=""}={})=>Oa(qo,()=>e),Ps=()=>location.pathname,Ho=({ssrPath:e}={})=>Oa(Ps,e?()=>e:Ps),Qo=(e,{replace:t=!1,state:n=null}={})=>history[t?Yn:Zn](n,"",e),$o=(e={})=>[Ho(e),Qo],Os=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Os]>"u"){for(const e of[Zn,Yn]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),c=new Event(e);return c.arguments=arguments,dispatchEvent(c),n}}Object.defineProperty(window,Os,{value:!0})}const Vo=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",Ma=(e="")=>e==="/"?"":e,Zo=(e,t)=>e[0]==="~"?e.slice(1):Ma(t)+e,Yo=(e="",t)=>Vo(Tn(Ma(e)),Tn(t)),Jo=e=>e[0]==="?"?e.slice(1):e,Tn=e=>{try{return decodeURI(e)}catch{return e}},Xo=e=>Tn(Jo(e)),za={hook:$o,searchHook:Wo,parser:Mo,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},Ta=W.createContext(za),yt=()=>W.useContext(Ta),Ia={},Da=W.createContext(Ia),el=()=>W.useContext(Da),rn=e=>{const[t,n]=e.hook(e);return[Yo(e.base,t),Pa((c,a)=>n(Zo(c,e.base),a))]},La=()=>rn(yt()),Ba=()=>{const e=yt();return Xo(e.searchHook(e))},Fa=(e,t,n,c)=>{const{pattern:a,keys:r}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",c),o=a.exec(n)||[],[i,...l]=o;return i!==void 0?[!0,(()=>{const d=r!==!1?Object.fromEntries(r.map((u,x)=>[u,l[x]])):o.groups;let h={...l};return d&&Object.assign(h,d),h})(),...c?[i]:[]]:[!1,null]},tl=({children:e,...t})=>{const n=yt(),c=t.hook?za:n;let a=c;const[r,o]=t.ssrPath?.split("?")??[];o&&(t.ssrSearch=o,t.ssrPath=r),t.hrefs=t.hrefs??t.hook?.hrefs;let i=W.useRef({}),l=i.current,d=l;for(let h in c){const u=h==="base"?c[h]+(t[h]||""):t[h]||c[h];l===d&&u!==d[h]&&(i.current=d={...d}),d[h]=u,(u!==c[h]||u!==a[h])&&(a=d)}return W.createElement(Ta.Provider,{value:a,children:e})},Ms=({children:e,component:t},n)=>t?W.createElement(t,{params:n}):typeof e=="function"?e(n):e,nl=e=>{let t=W.useRef(Ia);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([c,a])=>a!==n[c])?e:n},sc=({path:e,nest:t,match:n,...c})=>{const a=yt(),[r]=rn(a),[o,i,l]=n??Fa(a.parser,e,r,t),d=nl({...el(),...i});if(!o)return null;const h=l?W.createElement(tl,{base:l},Ms(c,d)):Ms(c,d);return W.createElement(Da.Provider,{value:d,children:h})},ac=W.forwardRef((e,t)=>{const n=yt(),[c,a]=rn(n),{to:r="",href:o=r,onClick:i,asChild:l,children:d,className:h,replace:u,state:x,...p}=e,b=Pa(v=>{v.ctrlKey||v.metaKey||v.altKey||v.shiftKey||v.button!==0||(i?.(v),v.defaultPrevented||(v.preventDefault(),a(o,e)))}),m=n.hrefs(o[0]==="~"?o.slice(1):n.base+o,n);return l&&W.isValidElement(d)?W.cloneElement(d,{onClick:b,href:m}):W.createElement("a",{...p,onClick:b,href:m,className:h?.call?h(c===o):h,children:d,ref:t})}),In=e=>Array.isArray(e)?e.flatMap(t=>In(t&&t.type===W.Fragment?t.props.children:t)):[e],rc=({children:e,location:t})=>{const n=yt(),[c]=rn(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),In(e).forEach(r=>{if(W.isValidElement(r)&&r.props.path){const o=r.props.path;window.__WOUTER_ROUTES__.includes(o)||window.__WOUTER_ROUTES__.push(o)}}));for(const a of In(e)){let r=0;if(W.isValidElement(a)&&(r=Fa(n.parser,a.props.path,t||c,a.props.nest))[0])return W.cloneElement(a,{match:r})}return null};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ua=(...e)=>e.filter((t,n,c)=>!!t&&c.indexOf(t)===n).join(" ");/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var al={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.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rl=W.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:c,className:a="",children:r,iconNode:o,...i},l)=>W.createElement("svg",{ref:l,...al,width:t,height:t,stroke:e,strokeWidth:c?Number(n)*24/Number(t):n,className:Ua("lucide",a),...i},[...o.map(([d,h])=>W.createElement(d,h)),...Array.isArray(r)?r:[r]]));/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z=(e,t)=>{const n=W.forwardRef(({className:c,...a},r)=>W.createElement(rl,{ref:r,iconNode:t,className:Ua(`lucide-${sl(e)}`,c),...a}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bn=Z("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jn=Z("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ic=Z("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oc=Z("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lc=Z("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cc=Z("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dc=Z("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uc=Z("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hc=Z("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ga=Z("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mc=Z("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fc=Z("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dn=Z("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pc=Z("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ka=Z("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gc=Z("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jt=Z("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const il=Z("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $e=Z("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xc=Z("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ee=Z("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const on=Z("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xn=Z("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ol=Z("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dt=Z("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yc=Z("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bc=Z("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vc=Z("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wc=Z("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ll=Z("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jt=Z("EyeOff",[["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"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ft=Z("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qa=Z("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kc=Z("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cl=Z("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ac=Z("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dl=Z("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sc=Z("Headphones",[["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"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _c=Z("HeartPulse",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jc=Z("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nc=Z("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wa=Z("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const St=Z("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ec=Z("Lamp",[["path",{d:"M8 2h8l4 10H4L8 2Z",key:"9dma5w"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M8 22v-2c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v2H8Z",key:"mwf4oh"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cc=Z("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rc=Z("Layers",[["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:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pc=Z("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Oc=Z("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mc=Z("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zc=Z("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ha=Z("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ul=Z("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ln=Z("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hl=Z("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ml=Z("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zs=Z("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tc=Z("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fl=Z("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ic=Z("Move",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const es=Z("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dc=Z("PackageX",[["path",{d:"M21 10V8a2 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 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pt=Z("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 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.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lc=Z("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qa=Z("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pl=Z("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xt=Z("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bc=Z("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ue=Z("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fc=Z("RotateCcw",[["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"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Uc=Z("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bt=Z("Save",[["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"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gc=Z("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kc=Z("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $a=Z("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gl=Z("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ts=Z("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xl=Z("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qc=Z("ShieldCheck",[["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"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Va=Z("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wc=Z("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hc=Z("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yl=Z("Sparkles",[["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"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qc=Z("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $c=Z("Stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vc=Z("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zc=Z("Syringe",[["path",{d:"m18 2 4 4",key:"22kx64"}],["path",{d:"m17 7 3-3",key:"1w1zoj"}],["path",{d:"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5",key:"1exhtz"}],["path",{d:"m9 11 4 4",key:"rovt3i"}],["path",{d:"m5 19-3 3",key:"59f2uf"}],["path",{d:"m14 4 6 6",key:"yqp9t2"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yc=Z("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ts=Z("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jc=Z("Thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gt=Z("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xt=Z("ToggleRight",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vt=Z("Trash2",[["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"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Is=Z("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xc=Z("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.453.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=Z("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bl=Z("Upload",[["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"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vl=Z("User",[["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"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ds=Z("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const td=Z("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
 * @license lucide-react v0.453.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=Z("Wind",[["path",{d:"M17.7 7.7a2.5 2.5 0 1 1 1.8 4.3H2",key:"1k4u03"}],["path",{d:"M9.6 4.6A2 2 0 1 1 11 8H2",key:"b7d0fd"}],["path",{d:"M12.6 19.4A2 2 0 1 0 14 16H2",key:"1p5cb3"}]]);/**
 * @license lucide-react v0.453.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=Z("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Za=Z("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
 * @license lucide-react v0.453.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=Z("Zap",[["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"}]]);let Qt={isAdmin:!1,loading:!0},Ln=!1;const Bn=new Set;function ns(e){Qt=e,Bn.forEach(t=>t(e))}async function wl(e=3){for(let t=0;t<e;t++)try{return(await fetch("/api/admin/me",{credentials:"include"})).ok}catch{t<e-1&&await new Promise(n=>setTimeout(n,500))}return!1}function kl(){Ln||(Ln=!0,wl().then(e=>{ns({isAdmin:e,loading:!1})}))}function Al(e){ns({isAdmin:e,loading:!1})}function Sl(){const[e,t]=W.useState(Qt);return W.useEffect(()=>(Bn.add(t),kl(),Qt.loading||t(Qt),()=>{Bn.delete(t)}),[]),e}async function _l(){await fetch("/api/admin/logout",{method:"POST",credentials:"include"}),Ln=!1,ns({isAdmin:!1,loading:!1})}function jl(){const[e,t]=W.useState(""),[n,c]=W.useState(""),[a,r]=W.useState(!1),[o,i]=W.useState(null),[l,d]=W.useState(null),[h,u]=W.useState(null),[x,p]=W.useState(0),[b,m]=W.useState(!1),[,v]=La(),y=W.useRef(null);W.useEffect(()=>(h&&h>0&&(p(h*60),y.current=setInterval(()=>{p(A=>A<=1?(clearInterval(y.current),u(null),i(null),0):A-1)},1e3)),()=>{y.current&&clearInterval(y.current)}),[h]);function k(A){const R=Math.floor(A/60),S=A%60;return`${R}:${S.toString().padStart(2,"0")}`}async function C(A){A.preventDefault(),i(null),d(null),m(!0);try{const R=await fetch("/api/admin/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:e.trim(),password:n})}),S=await R.json().catch(()=>({}));R.ok&&S.ok?(Al(!0),v("/admin")):R.status===429?(u(S.lockedMinutes??15),i(S.error??"Zu viele Fehlversuche.")):(i(S.error??"Anmeldung fehlgeschlagen"),S.attemptsLeft!==void 0&&d(S.attemptsLeft))}catch{i("Verbindungsfehler. Bitte versuchen Sie es erneut.")}finally{m(!1)}}const O=h!==null&&x>0;return s.jsx("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:95",className:"min-h-screen flex items-center justify-center p-4",style:{background:"#f0f2f5"},children:s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:99",className:"w-full max-w-sm bg-white rounded-2xl shadow-sm border border-gray-100 overflow-hidden",style:{fontFamily:"Inter, system-ui, sans-serif"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:104",className:"px-8 pt-8 pb-6 text-center border-b border-gray-100",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:105",className:"w-12 h-12 rounded-xl flex items-center justify-center mx-auto mb-4",style:{background:"rgba(13,27,62,0.07)"},children:s.jsx(Ha,{"data-loc":"client/src/pages/admin/AdminLogin.tsx:109",size:20,style:{color:"#0d1b3e"}})}),s.jsx("h1",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:111",className:"text-lg font-bold",style:{color:"#0d1b3e"},children:"Adminbereich"}),s.jsx("p",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:114",className:"text-sm text-gray-500 mt-1",children:"Bitte melden Sie sich an, um fortzufahren."})]}),s.jsxs("form",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:120",onSubmit:C,className:"px-8 py-6 space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:122",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:123",htmlFor:"admin-user",className:"block text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1.5",children:"Benutzername"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:129",className:"relative",children:[s.jsx("span",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:130",className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400 pointer-events-none",children:s.jsx(vl,{"data-loc":"client/src/pages/admin/AdminLogin.tsx:131",size:15})}),s.jsx("input",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:133",id:"admin-user",type:"text",value:e,onChange:A=>t(A.target.value),required:!0,autoFocus:!0,autoComplete:"username",disabled:O,className:"w-full pl-9 pr-4 py-2.5 rounded-xl border border-gray-200 text-sm outline-none transition-all focus:border-blue-500 focus:ring-2 focus:ring-blue-100 disabled:opacity-50 disabled:cursor-not-allowed",style:{color:"#0d1b3e"},placeholder:"Benutzername"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:150",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:151",htmlFor:"admin-pw",className:"block text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1.5",children:"Passwort"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:157",className:"relative",children:[s.jsx("input",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:158",id:"admin-pw",type:a?"text":"password",value:n,onChange:A=>c(A.target.value),required:!0,autoComplete:"current-password",disabled:O,className:"w-full px-4 py-2.5 pr-10 rounded-xl border border-gray-200 text-sm outline-none transition-all focus:border-blue-500 focus:ring-2 focus:ring-blue-100 disabled:opacity-50 disabled:cursor-not-allowed",style:{color:"#0d1b3e"},placeholder:"••••••••"}),s.jsx("button",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:170",type:"button",onClick:()=>r(A=>!A),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 transition-colors",tabIndex:-1,"aria-label":a?"Passwort verbergen":"Passwort anzeigen",children:a?s.jsx(jt,{"data-loc":"client/src/pages/admin/AdminLogin.tsx:177",size:16}):s.jsx(ft,{"data-loc":"client/src/pages/admin/AdminLogin.tsx:177",size:16})})]})]}),o&&s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:184",className:`text-sm rounded-xl px-4 py-2.5 border ${O?"text-orange-700 bg-orange-50 border-orange-100":"text-red-600 bg-red-50 border-red-100"}`,children:[s.jsx("p",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:191",children:o}),O&&x>0&&s.jsxs("p",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:193",className:"mt-1 font-mono font-semibold text-orange-800",children:["Entsperrung in: ",k(x)]}),!O&&l!==null&&l>0&&s.jsxs("p",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:198",className:"mt-1 text-xs text-red-500",children:["Noch ",l," Versuch",l!==1?"e":""," vor Sperrung"]})]}),s.jsx("button",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:206",type:"submit",disabled:b||!e||!n||O,className:"w-full py-2.5 rounded-xl text-sm font-semibold text-white transition-all hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed",style:{background:"#0d1b3e"},children:b?"Anmelden …":O?"Gesperrt":"Anmelden"})]})]})})}const rd=Object.freeze(Object.defineProperty({__proto__:null,default:jl},Symbol.toStringTag,{value:"Module"})),Nl=[{heading:"Kommunikation",items:[{label:"Anfragen",href:"/admin",icon:Wa}]},{heading:"Konfiguration",items:[{label:"Wizard-Konfiguration",href:"/admin?tab=wizard",icon:ts},{label:"Suchindex",href:"/admin/search-index",icon:$a}]},{heading:"Content",items:[{label:"Gyn-News",href:"/admin/gyn-news",icon:es},{label:"SEO-Wochenbericht",href:"/admin/seo-report",icon:Dn}]},{heading:"Retourenportal",items:[{label:"Retouren verwalten",href:"/admin/retouren",icon:pt}]},{heading:"Einstellungen",items:[{label:"E-Mail-Einstellungen",href:"/admin/email-einstellungen",icon:ln},{label:"E-Mail Log",href:"/admin/email-log",icon:ol}]},{heading:"Katalog",items:[{label:"Katalogbestellungen",href:"/admin/katalog-bestellungen",icon:pt}]}];function Ve({children:e,title:t,breadcrumb:n}){const{isAdmin:c,loading:a}=Sl(),[r,o]=La(),[i,l]=W.useState(!1),d=Ba();if(a)return s.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:104",className:"min-h-screen flex items-center justify-center",style:{background:"#f8f7f4"},children:s.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:105",className:"w-8 h-8 rounded-full border-2 border-blue-500 border-t-transparent animate-spin"})});if(!c)return o("/admin/login"),null;const h=x=>{if(x.includes("?")){const[p,b]=x.split("?");if(p!==r)return!1;const m=new URLSearchParams(b),v=new URLSearchParams(d??"");for(const y of Array.from(m.entries()))if(v.get(y[0])!==y[1])return!1;return!0}return x==="/admin"?(r==="/admin"||r==="/admin/")&&!d:r===x||r.startsWith(x+"/")};async function u(){await _l(),o("/admin/login")}return s.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:143",className:"min-h-screen flex",style:{background:"#f0f2f5"},children:[i&&s.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:146",className:"fixed inset-0 z-30 bg-black/50 backdrop-blur-sm lg:hidden",onClick:()=>l(!1)}),s.jsxs("aside",{"data-loc":"client/src/components/AdminLayout.tsx:153",className:`fixed inset-y-0 left-0 z-40 w-64 flex flex-col transition-transform duration-300 ease-out lg:static lg:translate-x-0 lg:z-auto ${i?"translate-x-0":"-translate-x-full"}`,style:{background:"#0d1b3e"},children:[s.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:160",className:"px-6 py-5 border-b flex items-center justify-between",style:{borderColor:"rgba(255,255,255,0.08)"},children:[s.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:161",children:[s.jsx("p",{"data-loc":"client/src/components/AdminLayout.tsx:162",className:"text-xs font-bold tracking-widest uppercase mb-0.5",style:{color:"#3b82f6",fontFamily:"DM Sans, sans-serif"},children:"Stusche"}),s.jsx("h1",{"data-loc":"client/src/components/AdminLayout.tsx:168",className:"font-semibold text-white text-base",style:{fontFamily:"Inter, system-ui, sans-serif",letterSpacing:"-0.01em"},children:"Administration"})]}),s.jsx("button",{"data-loc":"client/src/components/AdminLayout.tsx:175",onClick:()=>l(!1),className:"lg:hidden p-1.5 rounded-lg transition-all",style:{color:"rgba(255,255,255,0.4)"},children:s.jsx(Za,{"data-loc":"client/src/components/AdminLayout.tsx:180",size:16})})]}),s.jsx("nav",{"data-loc":"client/src/components/AdminLayout.tsx:185",className:"flex-1 py-5 px-3 overflow-y-auto space-y-6",children:Nl.map(x=>s.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:187",children:[s.jsx("p",{"data-loc":"client/src/components/AdminLayout.tsx:188",className:"px-3 mb-2 text-xs font-semibold tracking-widest uppercase",style:{color:"rgba(255,255,255,0.3)",fontFamily:"DM Sans, sans-serif"},children:x.heading}),s.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:194",className:"space-y-0.5",children:x.items.map(({label:p,href:b,icon:m})=>{const v=h(b);return s.jsxs("button",{"data-loc":"client/src/components/AdminLayout.tsx:198",onClick:()=>{o(b),l(!1)},className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-medium transition-all group",style:{background:v?"rgba(59,130,246,0.15)":"transparent",color:v?"#ffffff":"rgba(255,255,255,0.5)",fontFamily:"DM Sans, sans-serif"},children:[s.jsx(m,{"data-loc":"client/src/components/AdminLayout.tsx:211",size:15,style:{color:v?"#3b82f6":"rgba(255,255,255,0.4)",flexShrink:0}}),s.jsx("span",{"data-loc":"client/src/components/AdminLayout.tsx:215",className:"flex-1 text-left",children:p}),v&&s.jsx(Jt,{"data-loc":"client/src/components/AdminLayout.tsx:217",size:13,style:{color:"rgba(59,130,246,0.6)"}})]},b)})})]},x.heading))}),s.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:228",className:"px-3 py-4 space-y-0.5",style:{borderTop:"1px solid rgba(255,255,255,0.08)"},children:[s.jsxs("button",{"data-loc":"client/src/components/AdminLayout.tsx:229",onClick:()=>o("/"),className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-medium transition-all",style:{color:"rgba(255,255,255,0.4)",fontFamily:"DM Sans, sans-serif"},onMouseEnter:x=>{x.currentTarget.style.color="rgba(255,255,255,0.8)",x.currentTarget.style.background="rgba(255,255,255,0.05)"},onMouseLeave:x=>{x.currentTarget.style.color="rgba(255,255,255,0.4)",x.currentTarget.style.background="transparent"},children:[s.jsx(Jn,{"data-loc":"client/src/components/AdminLayout.tsx:242",size:15,style:{flexShrink:0}}),"Zur Website"]}),s.jsxs("button",{"data-loc":"client/src/components/AdminLayout.tsx:245",onClick:u,className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-medium transition-all",style:{color:"rgba(255,255,255,0.4)",fontFamily:"DM Sans, sans-serif"},onMouseEnter:x=>{x.currentTarget.style.color="#f87171",x.currentTarget.style.background="rgba(239,68,68,0.08)"},onMouseLeave:x=>{x.currentTarget.style.color="rgba(255,255,255,0.4)",x.currentTarget.style.background="transparent"},children:[s.jsx(ul,{"data-loc":"client/src/components/AdminLayout.tsx:258",size:15,style:{flexShrink:0}}),"Abmelden"]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:265",className:"flex-1 flex flex-col min-w-0 min-h-screen",children:[s.jsxs("header",{"data-loc":"client/src/components/AdminLayout.tsx:267",className:"lg:hidden sticky top-0 z-20 flex items-center gap-3 px-4 py-3 border-b",style:{background:"#ffffff",borderColor:"#e5e7eb"},children:[s.jsx("button",{"data-loc":"client/src/components/AdminLayout.tsx:271",onClick:()=>l(!0),className:"p-2 rounded-lg transition-all",style:{color:"#6b7280"},children:s.jsx(ml,{"data-loc":"client/src/components/AdminLayout.tsx:276",size:20})}),s.jsx("span",{"data-loc":"client/src/components/AdminLayout.tsx:278",className:"font-semibold text-sm",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif"},children:n??t})]}),s.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:287",className:"hidden lg:block px-8 py-6 border-b",style:{background:"#ffffff",borderColor:"#e5e7eb"},children:s.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:291",className:"flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:292",children:[s.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:293",className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{"data-loc":"client/src/components/AdminLayout.tsx:294",className:"text-xs font-semibold tracking-widest uppercase",style:{color:"#3b82f6",fontFamily:"DM Sans, sans-serif"},children:"Admin"}),s.jsx(Jt,{"data-loc":"client/src/components/AdminLayout.tsx:300",size:12,style:{color:"#9ca3af"}}),s.jsx("span",{"data-loc":"client/src/components/AdminLayout.tsx:301",className:"text-xs font-semibold tracking-widest uppercase",style:{color:"#9ca3af",fontFamily:"DM Sans, sans-serif"},children:n??t})]}),s.jsx("h1",{"data-loc":"client/src/components/AdminLayout.tsx:308",className:"text-2xl font-bold",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif",letterSpacing:"-0.02em"},children:t})]}),s.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:315",className:"flex items-center gap-3",children:s.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:316",className:"flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-semibold",style:{background:"rgba(59,130,246,0.08)",color:"#3b82f6",fontFamily:"DM Sans, sans-serif"},children:[s.jsx(Ha,{"data-loc":"client/src/components/AdminLayout.tsx:320",size:11}),"Administrator"]})})]})}),s.jsx("main",{"data-loc":"client/src/components/AdminLayout.tsx:328",className:"flex-1 p-6 lg:p-8",children:e})]})]})}const El=[{configKey:"general_contact",label:"Allgemeine Kontaktanfrage",steps:[{id:"topic",title:"Was interessiert Sie?",subtitle:"Wählen Sie Ihr Thema (Mehrfachauswahl möglich)",type:"checkbox",options:[{id:"praxisbedarf",label:"Praxisbedarf & Verbrauchsmaterial"},{id:"sprechstundenbedarf",label:"Sprechstundenbedarf (§ 300 SGB V)"},{id:"techservice",label:"Technischer Service & Wartung"},{id:"praxisplanung",label:"Praxisplanung & Einrichtung"},{id:"praxisportal",label:"Praxisportal (Online-Bestellung)"},{id:"medimatic",label:"SCHMITZ medi-matic® Liegen"}]},{id:"urgency",title:"Wann benötigen Sie Unterstützung?",type:"radio",options:[{id:"asap",label:"So schnell wie möglich"},{id:"weeks",label:"In den nächsten Wochen"},{id:"planning",label:"Ich bin noch in der Planungsphase"}]}]},{configKey:"medimatic_offer",label:"SCHMITZ medi-matic® – Angebot anfordern",steps:[{id:"interest",title:"Was interessiert Sie bei der medi-matic®?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"price",label:"Preisanfrage"},{id:"demo",label:"Produktdemo / Vorführung"},{id:"compare",label:"Vergleich mit aktuellem Gerät"},{id:"financing",label:"Finanzierungsoptionen"},{id:"service",label:"Wartung & Service"}]},{id:"quantity",title:"Wie viele Liegen benötigen Sie?",type:"radio",options:[{id:"1",label:"1 Liege"},{id:"2-3",label:"2–3 Liegen"},{id:"4+",label:"4 oder mehr"},{id:"unknown",label:"Noch unklar"}]}]},{configKey:"praxisbedarf_inquiry",label:"Praxisbedarf – Beratungsanfrage",steps:[{id:"category",title:"Welche Produktkategorie interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"verbrauch",label:"Verbrauchsmaterial (Handschuhe, Spritzen, …)"},{id:"diagnostik",label:"Diagnostik & Instrumente"},{id:"hygiene",label:"Hygiene & Desinfektion"},{id:"praxisausstattung",label:"Praxisausstattung & Mobiliar"},{id:"it",label:"IT & Praxissoftware"}]},{id:"urgency",title:"Wie dringend ist Ihr Bedarf?",type:"radio",options:[{id:"asap",label:"Sofortbedarf (innerhalb 48h)"},{id:"week",label:"Diese Woche"},{id:"planning",label:"Langfristige Planung"}]}]},{configKey:"sprechstundenbedarf_inquiry",label:"Sprechstundenbedarf – Beratungsanfrage",steps:[{id:"specialty",title:"Welche Fachrichtung hat Ihre Praxis?",type:"radio",options:[{id:"gyn",label:"Gynäkologie"},{id:"allgemein",label:"Allgemeinmedizin / Hausarzt"},{id:"paed",label:"Pädiatrie"},{id:"other",label:"Andere Fachrichtung"}]},{id:"interest",title:"Was möchten Sie wissen?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"info",label:"Allgemeine Informationen zu § 300 SGB V"},{id:"setup",label:"Einrichtung des Praxisportals"},{id:"products",label:"Produktsortiment & Verfügbarkeit"},{id:"billing",label:"Abrechnung & Kassenabwicklung"}]}]},{configKey:"techservice_inquiry",label:"Technischer Service – Anfrage",steps:[{id:"service_type",title:"Welche Art von Service benötigen Sie?",type:"checkbox",options:[{id:"wartung",label:"Wartung & Inspektion (STK/MTK)"},{id:"reparatur",label:"Reparatur / Störungsbeseitigung"},{id:"validierung",label:"Validierung (Autoklav, Thermodesinfektor)"},{id:"neugerat",label:"Inbetriebnahme neues Gerät"}]},{id:"urgency",title:"Wie dringend ist der Bedarf?",type:"radio",options:[{id:"emergency",label:"Notfall – Gerät ausgefallen"},{id:"soon",label:"Innerhalb der nächsten Woche"},{id:"planned",label:"Geplante Wartung"}]}]},{configKey:"praxisplanung_inquiry",label:"Praxisplanung – Beratungsanfrage",steps:[{id:"project_type",title:"Um welches Projekt handelt es sich?",type:"radio",options:[{id:"neubau",label:"Neubau / Neueröffnung"},{id:"umbau",label:"Umbau / Renovierung"},{id:"erweiterung",label:"Erweiterung bestehender Praxis"},{id:"beratung",label:"Nur Beratung / Konzept"}]},{id:"services",title:"Welche Leistungen interessieren Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"3d",label:"3D-Planung & Visualisierung"},{id:"einrichtung",label:"Kompletteinrichtung"},{id:"technik",label:"Medizintechnik-Integration"},{id:"foerderung",label:"Fördermittelberatung"}]}]},{configKey:"medimatic_inquiry",label:"SCHMITZ medi-matic® – Angebot anfragen",steps:[{id:"interest",title:"Was interessiert Sie beim medi-matic®?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"demo",label:"Vorführung / Demo-Termin"},{id:"angebot",label:"Individuelles Angebot"},{id:"finanzierung",label:"Finanzierungsoptionen"},{id:"einweisung",label:"Einweisung & Schulung"}]},{id:"timeline",title:"Wann planen Sie die Anschaffung?",type:"radio",options:[{id:"sofort",label:"So schnell wie möglich"},{id:"3monate",label:"Innerhalb von 3 Monaten"},{id:"6monate",label:"Innerhalb von 6 Monaten"},{id:"planung",label:"Noch in der Planungsphase"}]}]},{configKey:"praxisportal_access",label:"Praxisportal – Zugang anfordern",steps:[{id:"usage",title:"Wie möchten Sie das Praxisportal nutzen?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"bestellung",label:"Praxisbedarf bestellen"},{id:"ssb",label:"Sprechstundenbedarf abwickeln"},{id:"rechnungen",label:"Rechnungen & Belege verwalten"},{id:"geraete",label:"Geräte-Service & Wartung"}]},{id:"praxis_type",title:"Welche Praxisform trifft zu?",type:"radio",options:[{id:"einzelpraxis",label:"Einzelpraxis"},{id:"gemeinschaft",label:"Gemeinschaftspraxis"},{id:"mvz",label:"MVZ / Mehrere Standorte"},{id:"klinik",label:"Klinik / Krankenhaus"}]}]},{configKey:"aufbereitung_inquiry",label:"Aufbereitung & Sterilisation – Beratungsanfrage",steps:[{id:"interest",title:"Was interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"autoklav",label:"Autoklav (Dampfsterilisation)"},{id:"thermodesinfektor",label:"RDG-S Thermodesinfektor"},{id:"validierung",label:"Validierung & Dokumentation"},{id:"verbrauch",label:"Verbrauchsmaterial (Sterilgut, Folien)"},{id:"beratung",label:"Allgemeine Aufbereitungsberatung"}]},{id:"current_situation",title:"Wie ist Ihre aktuelle Situation?",type:"radio",options:[{id:"neukauf",label:"Ich möchte ein neues Gerät kaufen"},{id:"ersatz",label:"Ich ersetze ein bestehendes Gerät"},{id:"erstausstattung",label:"Erstausstattung / neue Praxis"},{id:"info",label:"Ich möchte mich nur informieren"}]}]},{configKey:"autoklaven_inquiry",label:"Autoklav – Angebot & Beratung",steps:[{id:"geraet",title:"Welches Gerät interessiert Sie?",subtitle:"Unsicher? Wir beraten Sie gerne.",type:"radio",options:[{id:"vacuklav_44",label:"MELAG Vacuklav 44 B+"},{id:"vacuclave_550",label:"MELAG Vacuclave 550"},{id:"cliniclave_45",label:"MELAG Cliniclave 45 M"},{id:"unsicher_geraet",label:"Ich bin unsicher"}]},{id:"services",title:"Was benötigen Sie zusätzlich?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"validierung",label:"Erstvalidierung & Dokumentation"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"wartung",label:"Wartungsvertrag"},{id:"finanzierung",label:"Finanzierungsoptionen"},{id:"nichts",label:"Nur das Gerät"}]}]},{configKey:"thermodesinfektor_inquiry",label:"RDG-S Thermodesinfektor – Angebot & Beratung",steps:[{id:"geraet",title:"Welches Gerät interessiert Sie?",subtitle:"Unsicher? Wir beraten Sie gerne.",type:"radio",options:[{id:"miele_pwd_8682",label:"Miele PWD 8682"},{id:"melatherm_20",label:"MELAG MELAtherm 20"},{id:"aquadis_56m",label:"Getinge Aquadis 56M"},{id:"unsicher_geraet",label:"Ich bin unsicher"}]},{id:"services",title:"Was benötigen Sie zusätzlich?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"validierung",label:"Validierung nach ISO 15883"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"wartung",label:"Wartungsvertrag"},{id:"finanzierung",label:"Finanzierungsoptionen"},{id:"nichts",label:"Nur das Gerät"}]}]},{configKey:"gynaekologie_inquiry",label:"Gynäkologie – Beratungsanfrage",steps:[{id:"interest",title:"Was interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"gyn_stuhl",label:"Gynäkologie-Untersuchungsstühle (SCHMITZ)"},{id:"ctg",label:"CTG-Geräte (Fetalmonitoring)"},{id:"autoklav",label:"Autoklav / Sterilisation (MELAG Vacuklav)"},{id:"thermodesinfektor",label:"Reinigungs- & Desinfektionsgerät (Miele)"},{id:"verbrauch",label:"Verbrauchsmaterial & Hygiene"},{id:"ssb",label:"Sprechstundenbedarf (§ 300 SGB V, nur Brandenburg)"}]},{id:"urgency",title:"Wann benötigen Sie Unterstützung?",type:"radio",options:[{id:"asap",label:"So schnell wie möglich"},{id:"weeks",label:"In den nächsten Wochen"},{id:"planning",label:"Ich bin noch in der Planungsphase"}]}]},{configKey:"gynaekologie_katalog",label:"Gynäkologie – Katalog & Sortiment",steps:[{id:"category",title:"Welche Produktkategorie interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"instrumente",label:"Instrumente & Einmalprodukte"},{id:"diagnostik",label:"Diagnostik & Kolposkopie"},{id:"liegen",label:"Untersuchungsliegen"},{id:"hygiene",label:"Hygiene & Sterilisation"},{id:"praxisausstattung",label:"Praxisausstattung"}]},{id:"delivery",title:"Wie möchten Sie den Katalog erhalten?",type:"radio",options:[{id:"digital",label:"Digital per E-Mail"},{id:"post",label:"Per Post zugeschickt"},{id:"beratung",label:"Mit persönlicher Beratung"}]}]},{configKey:"karriere_bewerbung",label:"Bewerbung bei Stusche",steps:[{id:"stelle",title:"Für welche Stelle möchten Sie sich bewerben?",type:"radio",options:[{id:"servicetechniker",label:"Servicetechniker im Außendienst"},{id:"kreditorenbuchhalter",label:"Kreditorenbuchhalter"},{id:"initiativ",label:"Initiativbewerbung"},{id:"ausbildung",label:"Ausbildung / Praktikum"}]},{id:"availability",title:"Wann könnten Sie frühestens anfangen?",type:"radio",options:[{id:"sofort",label:"Sofort / ab sofort"},{id:"1monat",label:"In ca. 1 Monat"},{id:"3monate",label:"In ca. 3 Monaten"},{id:"spaeter",label:"Später / nach Vereinbarung"}]}]},{configKey:"medizintechnik_inquiry",label:"Medizintechnik – Geräteberatung",steps:[{id:"device_type",title:"Welches Gerät interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"spirometrie",label:"Spirometrie (Lungenfunktion)"},{id:"blutdruck",label:"24h-Langzeit-Blutdruckmessung"},{id:"ekg",label:"EKG / Tablet-EKG"},{id:"sonstiges",label:"Sonstiges Medizintechnik-Gerät"}]},{id:"urgency",title:"Wie dringend ist Ihr Bedarf?",type:"radio",options:[{id:"sofort",label:"Sofort / dringend"},{id:"bald",label:"In den nächsten Wochen"},{id:"planung",label:"Ich bin noch in der Planungsphase"}]}]},{configKey:"pneumotrac_inquiry",label:"Vitalograph Pneumotrac – Produktanfrage",steps:[{id:"interest",title:"Was interessiert Sie beim Vitalograph Pneumotrac?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"demo",label:"Vorführung / Demo vor Ort"},{id:"angebot",label:"Angebot anfordern"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"software",label:"Software Spirotrac 6"},{id:"zubehoer",label:"Zubehör & Verbrauchsmaterial"}]},{id:"urgency",title:"Wie dringend ist Ihr Bedarf?",type:"radio",options:[{id:"sofort",label:"Sofort / dringend"},{id:"bald",label:"In den nächsten Wochen"},{id:"planung",label:"Ich bin noch in der Planungsphase"}]}]},{configKey:"technischer_service",label:"Technischer Service – Serviceanfrage",steps:[{id:"service_type",title:"Welche Art von Service benötigen Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"wartung",label:"Wartung & Inspektion (STK/MTK)"},{id:"reparatur",label:"Reparatur / Störungsbeseitigung"},{id:"validierung",label:"Validierung (Autoklav, Thermodesinfektor)"},{id:"inbetriebnahme",label:"Inbetriebnahme neues Gerät"},{id:"geraetepass",label:"Gerätepass & Dokumentation"}]},{id:"urgency",title:"Wie dringend ist der Bedarf?",type:"radio",options:[{id:"notfall",label:"Notfall – Gerät ausgefallen"},{id:"bald",label:"Innerhalb der nächsten Woche"},{id:"geplant",label:"Geplante Wartung / kein Zeitdruck"}]}]},{configKey:"praxisgruendung",label:"Praxisgründung – Beratungsanfrage",steps:[{id:"fachrichtung",title:"Welche Fachrichtung planen Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"allgemein",label:"Allgemeinmedizin / Hausarzt"},{id:"gynaekologie",label:"Gynäkologie"},{id:"innere",label:"Innere Medizin"},{id:"paediatrie",label:"Pädiatrie"},{id:"orthopaedie",label:"Orthopädie"},{id:"andere",label:"Andere Fachrichtung"}]},{id:"eroeffnung",title:"Wann planen Sie die Praxiseröffnung?",type:"radio",options:[{id:"unter6",label:"In weniger als 6 Monaten"},{id:"6bis12",label:"In 6 bis 12 Monaten"},{id:"ueber12",label:"In mehr als 12 Monaten"},{id:"noch_offen",label:"Noch nicht festgelegt"}]},{id:"raumgroesse",title:"Wie groß ist die geplante Praxisfläche?",type:"radio",options:[{id:"unter100",label:"Unter 100 m²"},{id:"100bis200",label:"100 – 200 m²"},{id:"200bis400",label:"200 – 400 m²"},{id:"ueber400",label:"Über 400 m² / MVZ"}]},{id:"bedarf",title:"Womit können wir Sie unterstützen?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"planung",label:"3D-Praxisplanung & Raumgestaltung"},{id:"medizintechnik",label:"Medizintechnik & Geräteausstattung"},{id:"praxisbedarf",label:"Praxisbedarf & Verbrauchsmaterial"},{id:"aufbereitung",label:"Aufbereitungstechnik (Autoklav, Thermodesinfektor)"},{id:"portal",label:"Praxisportal & digitale Bestellung"},{id:"ssb",label:"Sprechstundenbedarf (SSB)"}]}]},{configKey:"beratung_general",label:"Beratungsgespräch anfragen",steps:[{id:"topic",title:"Worüber möchten Sie sprechen?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"praxisbedarf",label:"Praxisbedarf & Verbrauchsmaterial"},{id:"ssb",label:"Sprechstundenbedarf"},{id:"techservice",label:"Technischer Service"},{id:"planung",label:"Praxisplanung"},{id:"medimatic",label:"Untersuchungsliegen"},{id:"portal",label:"Praxisportal"}]},{id:"contact_pref",title:"Wie sollen wir Sie kontaktieren?",type:"radio",options:[{id:"phone",label:"Telefonisch"},{id:"email",label:"Per E-Mail"},{id:"visit",label:"Persönlicher Besuch in der Praxis"}]}]},{configKey:"op_leuchten_inquiry",label:"OP-Leuchten – Produktanfrage",steps:[{id:"interest",title:"Was interessiert Sie bei den OP-Leuchten?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"angebot",label:"Angebot / Preisanfrage"},{id:"demo",label:"Vorführung / Demo vor Ort"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"wartung",label:"Wartung & technischer Service"},{id:"zubehoer",label:"Zubehör & Ersatzteile"}]},{id:"urgency",title:"Wie dringend ist Ihr Bedarf?",type:"radio",options:[{id:"sofort",label:"Sofort / dringend"},{id:"bald",label:"In den nächsten Wochen"},{id:"planung",label:"Ich bin noch in der Planungsphase"}]}]},{configKey:"vitalograph_alpha_inquiry",label:"Vitalograph Alpha Connect – Produktanfrage",steps:[{id:"interest",title:"Was interessiert Sie beim Vitalograph Alpha Connect?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"demo",label:"Vorführung / Demo vor Ort"},{id:"angebot",label:"Angebot anfordern"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"software",label:"Software & PC-Verbindung"},{id:"zubehoer",label:"Zubehör & Verbrauchsmaterial"}]},{id:"urgency",title:"Wie dringend ist Ihr Bedarf?",type:"radio",options:[{id:"sofort",label:"Sofort / dringend"},{id:"bald",label:"In den nächsten Wochen"},{id:"planung",label:"Ich bin noch in der Planungsphase"}]}]},{configKey:"boso_tm2450_inquiry",label:"boso TM-2450 anfragen",steps:[{id:"interest",title:"Was interessiert Sie beim boso TM-2450?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"angebot",label:"Angebot / Preisanfrage"},{id:"demo",label:"Vorführung in der Praxis"},{id:"cbp",label:"cBP-Erweiterung (zentraler Blutdruck)"},{id:"software",label:"profil-manager XD Software"},{id:"service",label:"Wartung & technischer Service"}]},{id:"contact_pref",title:"Wie sollen wir Sie kontaktieren?",type:"radio",options:[{id:"phone",label:"Telefonisch"},{id:"email",label:"Per E-Mail"},{id:"visit",label:"Persönlicher Besuch in der Praxis"}]}]},{configKey:"gyn_stuhl_inquiry",label:"Gynäkologie-Untersuchungsstuhl – Angebot anfragen",steps:[{id:"model",title:"Welches Modell interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"medi_matic",label:"medi-matic® – Der Beste seiner Klasse"},{id:"arco_matic",label:"arco-matic® – Mit Flachlagerung"},{id:"arco",label:"arco – Frische Farben & Design"},{id:"orbit",label:"SCHMITZ Orbit (Einrichtungskonzept)"},{id:"unsicher",label:"Ich bin noch unsicher – bitte beraten"}]},{id:"interest",title:"Was möchten Sie wissen?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"angebot",label:"Individuelles Angebot / Preis"},{id:"demo",label:"Vorführung / Demo-Termin"},{id:"finanzierung",label:"Finanzierungsoptionen"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"vergleich",label:"Vergleich der Modelle"}]}]},{configKey:"ctg_inquiry",label:"CTG-Gerät – Angebot anfragen",steps:[{id:"model",title:"Welches CTG-Gerät interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"edan_cadence",label:"Edan Cadence II CTG"},{id:"econet_smart7",label:"medical ECOnet Smart 7 CTG"},{id:"unsicher",label:"Ich bin noch unsicher – bitte beraten"}]},{id:"interest",title:"Was möchten Sie wissen?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"angebot",label:"Individuelles Angebot / Preis"},{id:"demo",label:"Vorführung / Demo-Termin"},{id:"software",label:"Software & Praxis-EDV-Integration"},{id:"finanzierung",label:"Finanzierungsoptionen"},{id:"einweisung",label:"Einweisung & Schulung"}]}]},{configKey:"autoklav_gyn_inquiry",label:"MELAG Autoklav Vacuklav 31 B+ – Angebot anfragen",steps:[{id:"interest",title:"Was interessiert Sie beim MELAG Vacuklav 31 B+?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"angebot",label:"Individuelles Angebot / Preis"},{id:"demo",label:"Vorführung / Demo-Termin"},{id:"validierung",label:"Erstvalidierung & Dokumentation"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"wartung",label:"Wartungsvertrag"},{id:"finanzierung",label:"Finanzierungsoptionen"}]},{id:"current_situation",title:"Wie ist Ihre aktuelle Situation?",type:"radio",options:[{id:"neukauf",label:"Ich möchte ein neues Gerät kaufen"},{id:"ersatz",label:"Ich ersetze ein bestehendes Gerät"},{id:"erstausstattung",label:"Erstausstattung / neue Praxis"},{id:"info",label:"Ich möchte mich nur informieren"}]}]},{configKey:"chirurgie_inquiry",label:"Chirurgie – Beratung anfragen",steps:[{id:"interest",title:"Was interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"operationstisch",label:"Operationstisch (SCHMITZ OPX mobilis®)"},{id:"elektrochirurgie",label:"Elektrochirurgie (ERBE VIO 100 C)"},{id:"op_leuchte",label:"OP-Leuchte (Dr. Mach LED 150F)"},{id:"sterilisation",label:"Sterilisation / Autoklav (MELAG)"},{id:"thermodesinfektor",label:"Thermodesinfektor / RDG (Miele)"},{id:"op_mobiliar",label:"OP-Mobiliar / ISO-Wagen (SCHMITZ varimed®)"},{id:"nahtmaterial",label:"Nahtmaterial & Wundversorgung (SSB)"},{id:"einmalinstrumente",label:"Einmalinstrumente & Kitpack (L&R)"},{id:"hygiene",label:"Hygiene & Desinfektion"},{id:"technischer_service",label:"Technischer Service (STK/MTK)"}]},{id:"praxis_typ",title:"Um welche Art von Einrichtung handelt es sich?",type:"radio",options:[{id:"allgemeinchirurgie",label:"Allgemeinchirurgie"},{id:"unfallchirurgie",label:"Unfallchirurgie / Orthopädie"},{id:"handchirurgie",label:"Handchirurgie"},{id:"gefaesschirurgie",label:"Gefäßchirurgie"},{id:"plastische_chirurgie",label:"Plastische Chirurgie"},{id:"mvz",label:"MVZ mit chirurgischem Schwerpunkt"},{id:"sonstiges",label:"Sonstiges"}]}]},{configKey:"hygienemanagement_inquiry",label:"Hygienemanagement – Beratung anfragen",steps:[{id:"interest",title:"Was interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"begehung",label:"Praxisbegehung & Analyse"},{id:"hygieneplan",label:"Individueller Hygieneplan"},{id:"schulung",label:"Personalschulung Hygiene"},{id:"zertifikat",label:"B. Braun Hygienezertifikat"},{id:"info",label:"Allgemeine Information"}]},{id:"praxis_typ",title:"Welche Fachrichtung hat Ihre Praxis?",type:"radio",options:[{id:"gynaekologie",label:"Gynäkologie"},{id:"allgemeinmedizin",label:"Allgemeinmedizin"},{id:"chirurgie",label:"Chirurgie"},{id:"dermatologie",label:"Dermatologie"},{id:"paediatrie",label:"Pädiatrie"},{id:"sonstiges",label:"Sonstige Fachrichtung"}]}]},{configKey:"miele_rdg_inquiry",label:"Miele Reinigungs- und Desinfektionsgerät – Angebot anfragen",steps:[{id:"interest",title:"Was interessiert Sie beim Miele RDG?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"angebot",label:"Individuelles Angebot / Preis"},{id:"demo",label:"Vorführung / Demo-Termin"},{id:"validierung",label:"Validierung nach ISO 15883"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"wartung",label:"Wartung & Service"}]},{id:"current_situation",title:"Wie ist Ihre aktuelle Situation?",type:"radio",options:[{id:"neukauf",label:"Ich möchte ein neues Gerät kaufen"},{id:"ersatz",label:"Ich ersetze ein bestehendes Gerät"},{id:"erstausstattung",label:"Erstausstattung / neue Praxis"},{id:"info",label:"Ich möchte mich nur informieren"}]}]}],Ls={new:"Neu",in_progress:"In Bearbeitung",done:"Erledigt"},Bs={new:{bg:"rgba(239,68,68,0.08)",text:"#ef4444",dot:"#ef4444"},in_progress:{bg:"rgba(245,158,11,0.08)",text:"#d97706",dot:"#f59e0b"},done:{bg:"rgba(34,197,94,0.08)",text:"#16a34a",dot:"#22c55e"}},Cl={new:Xn,in_progress:dt,done:Ee};function Rl(){const e=Ba(),t=new URLSearchParams(e).get("tab")==="wizard"?"wizard":"inbox",[n,c]=W.useState(t);return W.useEffect(()=>{c(t)},[e]),s.jsx(Ve,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:70",title:n==="inbox"?"Anfragen":"Wizard-Konfiguration",breadcrumb:"Übersicht",children:n==="inbox"?s.jsx(Pl,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:71"}):s.jsx(Ol,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:71"})})}function Pl(){const[e,t]=W.useState("all"),[n,c]=W.useState(null),{data:a=[],refetch:r,isLoading:o}=me.admin.getSubmissions.useQuery({limit:100,offset:0},{refetchInterval:3e4}),{data:i=[]}=me.admin.getWizardConfigs.useQuery(),l=me.admin.updateSubmissionStatus.useMutation({onSuccess:()=>r()}),d=me.admin.deleteSubmission.useMutation({onSuccess:()=>{c(null),r()}}),h=e==="all"?a:a.filter(b=>b.status===e),u=n!=null?a.find(b=>b.id===n)??null:null,x=[{key:"all",label:"Alle"},{key:"new",label:"Neu"},{key:"in_progress",label:"In Bearbeitung"},{key:"done",label:"Erledigt"}],p=b=>b==="all"?a.length:a.filter(m=>m.status===b).length;return s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:151",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:153",className:"flex items-center gap-2 mb-5 flex-wrap",children:[x.map(({key:b,label:m})=>{const v=e===b;return s.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:157",onClick:()=>t(b),className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-full text-xs font-semibold transition-all",style:{background:v?"#0d1b3e":"#ffffff",color:v?"#ffffff":"#6b7280",border:v?"1px solid #0d1b3e":"1px solid #e5e7eb",fontFamily:"DM Sans, sans-serif"},children:[m,s.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:169",className:"px-1.5 py-0.5 rounded-full text-xs",style:{background:v?"rgba(255,255,255,0.2)":"rgba(0,0,0,0.06)",color:v?"#fff":"#9ca3af"},children:p(b)})]},b)}),s.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:181",onClick:()=>r(),className:"ml-auto p-2 rounded-lg transition-all",style:{color:"#9ca3af"},title:"Aktualisieren",children:s.jsx(Ue,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:187",size:14,className:o?"animate-spin":""})})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:192",className:"flex gap-5",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:194",className:`flex flex-col gap-2 ${u?"hidden lg:flex lg:w-80 lg:flex-shrink-0":"w-full"}`,children:o?s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:200",className:"text-center py-16 text-gray-400 text-sm",children:"Laden…"}):h.length===0?s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:202",className:"flex flex-col items-center py-16 gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:203",className:"w-12 h-12 rounded-2xl flex items-center justify-center",style:{background:"rgba(13,27,62,0.05)"},children:s.jsx(Wa,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:207",size:20,style:{color:"#9ca3af"}})}),s.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:209",className:"text-sm text-gray-400",children:"Keine Anfragen"})]}):h.map(b=>{const m=b.status,v=Cl[m]??Xn,y=Bs[m]??Bs.new,k=n===b.id;return s.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:218",onClick:()=>c(b.id),className:"w-full text-left p-4 rounded-2xl border transition-all",style:{borderColor:k?"#93c5fd":"#e5e7eb",background:k?"#eff6ff":"#ffffff",boxShadow:k?"0 0 0 2px rgba(59,130,246,0.15)":"none"},children:s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:228",className:"flex items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:229",className:"w-7 h-7 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:y.bg},children:s.jsx(v,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:233",size:13,style:{color:y.dot}})}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:235",className:"flex-1 min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:236",className:"font-semibold text-sm truncate mb-0.5",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif"},children:b.name||"–"}),s.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:242",className:"text-xs truncate",style:{color:"#9ca3af"},children:b.email||b.phone||"–"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:245",className:"flex items-center gap-2 mt-2",children:[s.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:246",className:"px-2 py-0.5 rounded-full text-xs font-semibold",style:{background:y.bg,color:y.text,fontFamily:"DM Sans, sans-serif"},children:Ls[m]}),s.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:252",className:"text-xs",style:{color:"#d1d5db"},children:new Date(b.createdAt).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"})})]})]}),s.jsx(Jt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:261",size:14,style:{color:"#d1d5db",flexShrink:0,marginTop:2}})]})},b.id)})}),u!==null&&s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:270",className:"flex-1 bg-white rounded-2xl border p-6",style:{borderColor:"#e5e7eb"},children:[s.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:275",onClick:()=>c(null),className:"lg:hidden flex items-center gap-1.5 text-sm font-semibold mb-5 transition-all",style:{color:"#6b7280"},children:[s.jsx(Jn,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:280",size:14})," Zurück"]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:284",className:"flex items-start justify-between gap-4 mb-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:285",children:[s.jsx("h2",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:286",className:"text-xl font-bold mb-1",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif",letterSpacing:"-0.01em"},children:u.name||"Anfrage"}),s.jsxs("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:292",className:"text-sm",style:{color:"#9ca3af"},children:["Eingegangen am"," ",new Date(u.createdAt).toLocaleDateString("de-DE",{day:"2-digit",month:"long",year:"numeric"})]})]}),s.jsx("select",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:302",value:u.status,onChange:b=>l.mutate({id:u.id,status:b.target.value}),className:"px-3 py-2 rounded-xl text-xs font-semibold border transition-all focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",background:"#f9fafb",fontFamily:"DM Sans, sans-serif"},children:["new","in_progress","done"].map(b=>s.jsx("option",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:316",value:b,children:Ls[b]},b))})]}),s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:323",className:"grid sm:grid-cols-2 gap-3 mb-6",children:[{icon:ln,label:"E-Mail",value:u.email},{icon:Qa,label:"Telefon",value:u.phone},{icon:Ts,label:"Formular",value:u.sourceLabel},{icon:Ga,label:"Datum",value:new Date(u.createdAt).toLocaleDateString("de-DE")}].filter(b=>!!b.value).map(({icon:b,label:m,value:v})=>s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:330",className:"flex items-start gap-3 p-3 rounded-xl",style:{background:"#f9fafb"},children:[s.jsx(b,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:331",size:14,style:{color:"#3b82f6",marginTop:2,flexShrink:0}}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:332",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:333",className:"text-xs font-semibold mb-0.5",style:{color:"#9ca3af"},children:m}),s.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:334",className:"text-sm font-medium",style:{color:"#0d1b3e"},children:v})]})]},m))}),u.message&&s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:342",className:"mb-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:343",className:"flex items-center gap-2 mb-2",children:[s.jsx(zs,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:344",size:13,style:{color:"#3b82f6"}}),s.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:345",className:"text-xs font-semibold",style:{color:"#9ca3af"},children:"Nachricht"})]}),s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:349",className:"p-4 rounded-xl text-sm leading-relaxed",style:{background:"#f9fafb",color:"#374151",fontFamily:"DM Sans, sans-serif"},children:u.message})]}),u.answers!=null&&Object.keys(u.answers).length>0&&(()=>{const b=[...i,...El.filter(y=>!i.some(k=>k.configKey===y.configKey))],m=b.find(y=>y.label===u.sourceLabel||y.configKey===u.sourceLabel)??b[0],v={};if(m)for(const y of m.steps)v[y.id]=y;return s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:377",className:"mb-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:378",className:"flex items-center gap-2 mb-3",children:[s.jsx(Ts,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:379",size:13,style:{color:"#3b82f6"}}),s.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:380",className:"text-xs font-semibold",style:{color:"#9ca3af"},children:"Wizard-Antworten"})]}),s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:384",className:"space-y-2",children:Object.entries(u.answers).map(([y,k])=>{const C=v[y],O=C?.title??y.replace(/_/g," ").replace(/\b\w/g,A=>A.toUpperCase());return s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:389",className:"p-3 rounded-xl",style:{background:"#f9fafb"},children:[s.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:390",className:"text-xs font-semibold mb-1.5",style:{color:"#6b7280"},children:O}),s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:393",className:"flex flex-wrap gap-1.5",children:k.map(A=>{const R=C?.options.find(S=>S.id===A)?.label??A;return s.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:397",className:"px-2.5 py-1 rounded-full text-xs font-semibold",style:{background:"rgba(59,130,246,0.08)",color:"#1d4ed8"},children:R},A)})})]},y)})})]})})(),u.adminNote&&s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:417",className:"mb-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:418",className:"flex items-center gap-2 mb-2",children:[s.jsx(zs,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:419",size:13,style:{color:"#f59e0b"}}),s.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:420",className:"text-xs font-semibold",style:{color:"#9ca3af"},children:"Interne Notiz"})]}),s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:422",className:"p-4 rounded-xl text-sm leading-relaxed",style:{background:"#fffbeb",color:"#92400e"},children:u.adminNote})]}),s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:429",className:"pt-4 mt-4",style:{borderTop:"1px solid #f3f4f6"},children:s.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:430",onClick:()=>{confirm(`Anfrage von "${u.name}" wirklich löschen? Diese Aktion kann nicht rückgängig gemacht werden.`)&&d.mutate({id:u.id})},disabled:d.isPending,className:"flex items-center gap-2 px-4 py-2 rounded-xl text-xs font-semibold transition-all disabled:opacity-50",style:{color:"#ef4444",background:"rgba(239,68,68,0.06)",border:"1px solid rgba(239,68,68,0.15)"},children:[s.jsx(vt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:440",size:13}),d.isPending?"Löschen…":"Anfrage löschen"]})})]})]})]})}function Ol(){const[e,t]=W.useState(null),{data:n=[],refetch:c,isLoading:a}=me.admin.getWizardConfigs.useQuery(),r=me.admin.deleteWizardConfig.useMutation({onSuccess:()=>c()});if(e!==null){const o=e==="new"?null:n.find(i=>i.id===e)??null;return s.jsx(Ml,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:461",config:o,onSaved:()=>{t(null),c()},onCancel:()=>t(null)})}return s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:470",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:471",className:"flex items-center justify-between mb-5",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:472",className:"text-sm",style:{color:"#6b7280",fontFamily:"DM Sans, sans-serif"},children:"Konfigurieren Sie die Beratungs-Wizards für die verschiedenen Leistungsseiten."}),s.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:475",onClick:()=>t("new"),className:"flex items-center gap-2 px-4 py-2 rounded-xl text-sm font-semibold text-white transition-all hover:opacity-90",style:{background:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[s.jsx(Xt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:480",size:14})," Neuer Wizard"]})]}),a?s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:485",className:"text-center py-16 text-gray-400 text-sm",children:"Laden…"}):n.length===0?s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:487",className:"flex flex-col items-center py-16 gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:488",className:"w-12 h-12 rounded-2xl flex items-center justify-center",style:{background:"rgba(13,27,62,0.05)"},children:s.jsx(ts,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:492",size:20,style:{color:"#9ca3af"}})}),s.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:494",className:"text-sm text-gray-400",children:"Noch keine Wizards konfiguriert"}),s.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:495",onClick:()=>t("new"),className:"text-xs font-semibold transition-all",style:{color:"#3b82f6"},children:"Ersten Wizard erstellen →"})]}):s.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:504",className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:n.map(o=>s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:506",className:"bg-white rounded-2xl border p-5 flex flex-col gap-3",style:{borderColor:"#e5e7eb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:511",className:"flex items-start justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:512",className:"flex-1 min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:513",className:"font-semibold text-sm truncate mb-0.5",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif"},children:o.label}),s.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:519",className:"text-xs font-mono",style:{color:"#9ca3af"},children:o.configKey})]}),s.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:523",className:"px-2 py-0.5 rounded-full text-xs font-semibold flex-shrink-0",style:o.active?{background:"rgba(34,197,94,0.08)",color:"#16a34a"}:{background:"rgba(0,0,0,0.05)",color:"#9ca3af"},children:o.active?"Aktiv":"Inaktiv"})]}),s.jsxs("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:534",className:"text-xs",style:{color:"#9ca3af"},children:[o.steps.length," Schritte"]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:537",className:"flex gap-2 mt-auto pt-2",style:{borderTop:"1px solid #f3f4f6"},children:[s.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:538",onClick:()=>t(o.id),className:"flex-1 py-2 rounded-xl text-xs font-semibold transition-all hover:opacity-80",style:{background:"#0d1b3e",color:"#fff",fontFamily:"DM Sans, sans-serif"},children:"Bearbeiten"}),s.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:545",onClick:()=>{confirm(`Wizard "${o.label}" wirklich löschen?`)&&r.mutate({id:o.id})},className:"p-2 rounded-xl transition-all",style:{color:"#ef4444",background:"rgba(239,68,68,0.06)"},children:s.jsx(vt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:554",size:13})})]})]},o.id))})]})}function Ml({config:e,onSaved:t,onCancel:n}){const[c,a]=W.useState(e?.label??""),[r,o]=W.useState(e?.configKey??""),[i,l]=W.useState(e?e.steps:[]),[d,h]=W.useState(e?.active??!0),[u,x]=W.useState(null),p=me.admin.upsertWizardConfig.useMutation({onSuccess:t,onError:A=>x(A.message)}),b=()=>{if(!c.trim()){x("Bitte einen Namen eingeben.");return}if(!r.trim()){x("Bitte einen Schlüssel eingeben.");return}if(i.length===0){x("Mindestens ein Schritt erforderlich.");return}for(const A of i){if(!A.title.trim()){x("Schritt ohne Titel gefunden.");return}if(A.options.length===0){x(`Schritt "${A.title}" hat keine Optionen.`);return}}x(null),p.mutate({...e?{id:e.id}:{},configKey:r,label:c,steps:i,active:d})},m=()=>{const A=`step${Date.now()}`;l(R=>[...R,{id:A,title:"Neuer Schritt",subtitle:"",type:"checkbox",options:[{id:`opt${Date.now()}`,label:"Option"}]}])},v=A=>l(R=>R.filter((S,T)=>T!==A)),y=(A,R)=>l(S=>S.map((T,P)=>P===A?{...T,...R}:T)),k=A=>l(R=>R.map((S,T)=>T===A?{...S,options:[...S.options,{id:`opt${Date.now()}`,label:"Neue Option"}]}:S)),C=(A,R)=>l(S=>S.map((T,P)=>P===A?{...T,options:T.options.filter((K,$)=>$!==R)}:T)),O=(A,R,S)=>l(T=>T.map((P,K)=>K===A?{...P,options:P.options.map(($,j)=>j===R?{...$,...S}:$)}:P));return s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:632",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:634",className:"flex items-center gap-3 mb-6",children:[s.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:635",onClick:n,className:"p-2 rounded-xl transition-all",style:{color:"#6b7280",background:"#f3f4f6"},children:s.jsx(Jn,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:640",size:16})}),s.jsx("h2",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:642",className:"text-lg font-bold flex-1",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif",letterSpacing:"-0.01em"},children:e?"Wizard bearbeiten":"Neuer Wizard"}),s.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:648",onClick:b,disabled:p.isPending,className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold text-white transition-all hover:opacity-90 disabled:opacity-50",style:{background:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[s.jsx(bt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:654",size:14}),p.isPending?"Speichern…":"Speichern"]})]}),u&&s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:660",className:"flex items-center gap-2 mb-5 px-4 py-3 rounded-xl text-sm",style:{background:"rgba(239,68,68,0.06)",color:"#ef4444",border:"1px solid rgba(239,68,68,0.15)"},children:[s.jsx($e,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:664",size:14}),u]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:670",className:"bg-white rounded-2xl border p-5 mb-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[s.jsx("h3",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:674",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Grundeinstellungen"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:677",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:678",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Name (Anzeige)"}),s.jsx("input",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:681",value:c,onChange:A=>a(A.target.value),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none transition-all",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:"z. B. Beratung Gynäkologie"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:689",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:690",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Schlüssel (intern, keine Leerzeichen)"}),s.jsx("input",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:693",value:r,onChange:A=>o(A.target.value.toLowerCase().replace(/\s+/g,"_").replace(/[^a-z0-9_]/g,"")),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm font-mono focus:outline-none transition-all",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"z. B. beratung_gynaekologie"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:703",className:"flex items-center justify-between py-1",children:[s.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:704",className:"text-xs font-semibold",style:{color:"#374151"},children:"Wizard aktiv schalten"}),s.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:707",onClick:()=>h(A=>!A),className:"transition-all",children:d?s.jsx(xt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:709",size:28,style:{color:"#3b82f6"}}):s.jsx(gt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:711",size:28,style:{color:"#d1d5db"}})})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:718",className:"space-y-4",children:[i.map((A,R)=>s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:720",className:"bg-white rounded-2xl border p-5",style:{borderColor:"#e5e7eb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:725",className:"flex items-center gap-2 mb-4",children:[s.jsx(dl,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:726",size:14,style:{color:"#d1d5db",flexShrink:0}}),s.jsxs("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:727",className:"text-xs font-bold tracking-widest uppercase flex-1",style:{color:"#9ca3af"},children:["Schritt ",R+1]}),s.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:730",onClick:()=>v(R),className:"p-1.5 rounded-lg transition-all",style:{color:"#fca5a5",background:"rgba(239,68,68,0.06)"},children:s.jsx(vt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:735",size:13})})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:739",className:"space-y-3 mb-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:740",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:741",className:"block text-xs font-semibold mb-1.5",style:{color:"#6b7280"},children:"Frage / Titel"}),s.jsx("input",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:744",value:A.title,onChange:S=>y(R,{title:S.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:"Was interessiert Sie?"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:752",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:753",className:"block text-xs font-semibold mb-1.5",style:{color:"#6b7280"},children:"Untertitel (optional)"}),s.jsx("input",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:756",value:A.subtitle??"",onChange:S=>y(R,{subtitle:S.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:"Mehrfachauswahl möglich"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:764",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:765",className:"block text-xs font-semibold mb-1.5",style:{color:"#6b7280"},children:"Auswahltyp"}),s.jsxs("select",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:768",value:A.type,onChange:S=>y(R,{type:S.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none bg-white",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[s.jsx("option",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:774",value:"checkbox",children:"Mehrfachauswahl (Checkbox)"}),s.jsx("option",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:775",value:"radio",children:"Einzelauswahl (Radio)"})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:781",className:"space-y-2",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:782",className:"text-xs font-semibold",style:{color:"#9ca3af"},children:"Optionen"}),A.options.map((S,T)=>s.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:784",className:"flex items-center gap-2",children:[s.jsx("input",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:785",value:S.label,onChange:P=>O(R,T,{label:P.target.value}),className:"flex-1 px-3.5 py-2 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:`Option ${T+1}`}),s.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:792",onClick:()=>C(R,T),className:"p-2 rounded-xl transition-all flex-shrink-0",style:{color:"#fca5a5",background:"rgba(239,68,68,0.06)"},children:s.jsx(Za,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:797",size:12})})]},S.id)),s.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:801",onClick:()=>k(R),className:"flex items-center gap-1.5 text-xs font-semibold transition-all mt-1",style:{color:"#3b82f6"},children:[s.jsx(Xt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:806",size:12})," Option hinzufügen"]})]})]},A.id)),s.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:812",onClick:m,className:"w-full flex items-center justify-center gap-2 px-4 py-4 rounded-2xl text-sm font-semibold transition-all",style:{border:"2px dashed #e5e7eb",color:"#9ca3af",fontFamily:"DM Sans, sans-serif"},onMouseEnter:A=>{A.currentTarget.style.borderColor="#93c5fd",A.currentTarget.style.color="#3b82f6"},onMouseLeave:A=>{A.currentTarget.style.borderColor="#e5e7eb",A.currentTarget.style.color="#9ca3af"},children:[s.jsx(Xt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:829",size:15})," Schritt hinzufügen"]})]})]})}const id=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),vn=`Du bist ein medizinischer Fachredakteur, der auf den gynäkologischen Praxismarkt in Deutschland spezialisiert ist.

Heute ist der {{CURRENT_DATE}}.

Recherchiere ausschließlich Neuigkeiten, die nach dem {{CUTOFF_DATE}} veröffentlicht wurden (maximal 3 Monate alt). Ältere Meldungen dürfen NICHT berücksichtigt werden. Falls du keine ausreichend aktuellen Neuigkeiten findest, gib ein leeres JSON-Array zurück.

Fokussiere dich auf folgende Themen für gynäkologische Praxen in Deutschland:
- Neue Medizinprodukte, Geräte und Ausstattung für gynäkologische Praxen
- Änderungen in Abrechnung (EBM, GOÄ) und Vergütung
- Neue Leitlinien, Empfehlungen oder Zulassungen (z.B. AWMF, BVF, DGGG)
- Hygiene- und Aufbereitungsvorschriften (RKI, KRINKO)
- Digitalisierung und Praxissoftware
- Relevante gesundheitspolitische Entwicklungen

Gib genau {{COUNT}} Neuigkeiten zurück als JSON-Array (oder weniger, wenn nicht genug aktuelle Meldungen vorhanden sind). Jedes Element hat folgende Felder:
- title: Prägnante Überschrift (max. 80 Zeichen)
- summary: 2-3 Sätze Zusammenfassung für Praxisinhaber
- source: Name der Quelle (z.B. "Deutsches Ärzteblatt", "BVF", "G-BA")
- sourceUrl: URL zur Quelle falls bekannt, sonst null
- category: Eine Kategorie aus: "Diagnostik" | "Hygiene" | "Abrechnung" | "Recht" | "Digitalisierung" | "Produkte" | "Leitlinien"
- publishedAt: Veröffentlichungsdatum im Format "YYYY-MM-DD" – MUSS nach {{CUTOFF_DATE}} liegen, sonst null

Antworte NUR mit dem JSON-Array, ohne Erklärungen oder Markdown-Blöcke.`;function zl(){const[e,t]=W.useState("news"),n=[{id:"news",label:"Artikel",icon:es},{id:"settings",label:"KI-Einstellungen",icon:ts}];return s.jsxs(Ve,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:67",title:"Gyn-News",breadcrumb:"Automatische Recherche",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:69",className:"flex gap-1 p-1 rounded-xl mb-6 w-fit",style:{background:"rgba(13,27,62,0.06)"},children:n.map(({id:c,label:a,icon:r})=>s.jsxs("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:74",onClick:()=>t(c),className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:e===c?"#ffffff":"transparent",color:e===c?"#0d1b3e":"#6b7280",boxShadow:e===c?"0 1px 3px rgba(0,0,0,0.08)":"none",fontFamily:"DM Sans, sans-serif"},children:[s.jsx(r,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:85",size:14}),a]},c))}),e==="news"?s.jsx(Tl,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:91"}):s.jsx(Dl,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:91"})]})}function Tl(){const[e,t]=W.useState("all"),[n,c]=W.useState(5),a=me.useUtils(),{data:r=[],isLoading:o}=me.gynNews.getAll.useQuery({limit:100}),i=me.gynNews.setPublished.useMutation({onSuccess:()=>a.gynNews.getAll.invalidate()}),l=me.gynNews.delete.useMutation({onSuccess:()=>a.gynNews.getAll.invalidate()}),d=me.gynNews.runResearch.useMutation({onSuccess:()=>a.gynNews.getAll.invalidate()}),h=e==="all"?r:e==="published"?r.filter(p=>p.isPublished):r.filter(p=>!p.isPublished),u=[{key:"all",label:"Alle"},{key:"published",label:"Veröffentlicht"},{key:"hidden",label:"Versteckt"}],x=p=>p==="all"?r.length:p==="published"?r.filter(b=>b.isPublished).length:r.filter(b=>!b.isPublished).length;return s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:134",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:136",className:"flex items-center gap-3 mb-5 flex-wrap",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:137",className:"flex gap-1 p-1 rounded-xl",style:{background:"rgba(13,27,62,0.06)"},children:u.map(({key:p,label:b})=>{const m=e===p;return s.jsxs("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:141",onClick:()=>t(p),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-semibold transition-all",style:{background:m?"#ffffff":"transparent",color:m?"#0d1b3e":"#6b7280",boxShadow:m?"0 1px 3px rgba(0,0,0,0.08)":"none",fontFamily:"DM Sans, sans-serif"},children:[b,s.jsx("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:153",className:"px-1.5 py-0.5 rounded-full text-xs ml-1",style:{background:m?"rgba(13,27,62,0.08)":"rgba(0,0,0,0.06)",color:m?"#0d1b3e":"#9ca3af"},children:x(p)})]},p)})}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:167",className:"flex items-center gap-2 ml-auto",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:168",className:"flex items-center gap-2",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:169",className:"text-xs font-semibold",style:{color:"#6b7280"},children:"Anzahl:"}),s.jsx("input",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:172",type:"number",min:1,max:20,value:n,onChange:p=>c(Number(p.target.value)),className:"w-14 px-2 py-1.5 rounded-xl border text-xs text-center focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"}})]}),s.jsx("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:182",onClick:()=>a.gynNews.getAll.invalidate(),className:"p-2 rounded-xl transition-all",style:{color:"#9ca3af",background:"#f9fafb",border:"1px solid #e5e7eb"},title:"Aktualisieren",children:s.jsx(Ue,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:188",size:14,className:o?"animate-spin":""})}),s.jsxs("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:190",onClick:()=>{confirm("Neue KI-Recherche starten? Dies kann 10–30 Sekunden dauern.")&&d.mutate({count:n})},disabled:d.isPending,className:"flex items-center gap-2 px-4 py-2 rounded-xl text-sm font-semibold text-white transition-all hover:opacity-90 disabled:opacity-50",style:{background:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[s.jsx(yl,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:200",size:14,className:d.isPending?"animate-pulse":""}),d.isPending?"Recherchiere…":"Neue Recherche"]})]})]}),d.isSuccess&&s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:208",className:"flex items-center gap-2 mb-4 px-4 py-3 rounded-xl text-sm",style:{background:"rgba(34,197,94,0.06)",color:"#16a34a",border:"1px solid rgba(34,197,94,0.15)"},children:[s.jsx(Ee,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:212",size:14}),"Recherche erfolgreich – neue Artikel wurden hinzugefügt."]}),d.isError&&s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:217",className:"flex items-center gap-2 mb-4 px-4 py-3 rounded-xl text-sm",style:{background:"rgba(239,68,68,0.06)",color:"#ef4444",border:"1px solid rgba(239,68,68,0.15)"},children:[s.jsx($e,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:221",size:14}),"Fehler bei der Recherche. Bitte KI-Einstellungen prüfen."]}),o?s.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:228",className:"text-center py-16 text-gray-400 text-sm",children:"Laden…"}):h.length===0?s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:230",className:"flex flex-col items-center py-16 gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:231",className:"w-12 h-12 rounded-2xl flex items-center justify-center",style:{background:"rgba(13,27,62,0.05)"},children:s.jsx(es,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:235",size:20,style:{color:"#9ca3af"}})}),s.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:237",className:"text-sm text-gray-400",children:"Keine Artikel vorhanden"}),s.jsx("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:238",onClick:()=>d.mutate({count:n}),className:"text-xs font-semibold transition-all",style:{color:"#3b82f6"},children:"Erste Recherche starten →"})]}):s.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:247",className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:h.map(p=>s.jsx(Il,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:249",item:p,onToggle:()=>i.mutate({id:p.id,isPublished:!p.isPublished}),onDelete:()=>{confirm(`Artikel „${p.title}" wirklich löschen?`)&&l.mutate({id:p.id})}},p.id))})]})}function Il({item:e,onToggle:t,onDelete:n}){return s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:279",className:"bg-white rounded-2xl border flex flex-col overflow-hidden transition-all",style:{borderColor:e.isPublished?"rgba(59,130,246,0.2)":"#e5e7eb",boxShadow:e.isPublished?"0 0 0 1px rgba(59,130,246,0.1)":"none"},children:[s.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:286",className:"h-1 w-full",style:{background:e.isPublished?"#3b82f6":"#e5e7eb"}}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:288",className:"p-5 flex flex-col gap-3 flex-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:289",className:"flex items-center gap-2",children:[e.category&&s.jsx("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:291",className:"px-2 py-0.5 rounded-full text-xs font-semibold",style:{background:"rgba(59,130,246,0.08)",color:"#3b82f6"},children:e.category}),s.jsxs("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:298",className:"text-xs ml-auto flex items-center gap-1",style:{color:"#9ca3af"},children:[s.jsx(Ga,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:299",size:11}),e.publishedAt?new Date(e.publishedAt).toLocaleDateString("de-DE",{day:"2-digit",month:"short",year:"numeric"}):new Date(e.createdAt).toLocaleDateString("de-DE",{day:"2-digit",month:"short",year:"numeric"})]})]}),s.jsx("h3",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:314",className:"font-bold text-sm leading-snug",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif",letterSpacing:"-0.01em"},children:e.title}),s.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:321",className:"text-xs leading-relaxed flex-1",style:{color:"#6b7280",fontFamily:"DM Sans, sans-serif"},children:e.summary.length>160?e.summary.slice(0,160)+"…":e.summary}),e.source&&s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:326",className:"flex items-center gap-1.5 text-xs",style:{color:"#9ca3af"},children:[s.jsx(cl,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:327",size:11}),s.jsx("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:328",className:"truncate",children:e.source}),e.sourceUrl&&s.jsx("a",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:330",href:e.sourceUrl,target:"_blank",rel:"noopener noreferrer",className:"ml-auto flex-shrink-0 transition-all hover:opacity-70",style:{color:"#3b82f6"},children:s.jsx(ll,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:337",size:11})})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:344",className:"flex items-center gap-2 px-5 py-3",style:{borderTop:"1px solid #f3f4f6"},children:[s.jsx("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:345",className:"text-xs font-semibold flex-1",style:{color:e.isPublished?"#3b82f6":"#9ca3af"},children:e.isPublished?"Veröffentlicht":"Versteckt"}),s.jsx("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:348",onClick:t,className:"p-2 rounded-xl transition-all",style:{color:e.isPublished?"#3b82f6":"#9ca3af",background:e.isPublished?"rgba(59,130,246,0.08)":"#f9fafb"},title:e.isPublished?"Verstecken":"Veröffentlichen",children:e.isPublished?s.jsx(ft,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:357",size:13}):s.jsx(jt,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:357",size:13})}),s.jsx("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:359",onClick:n,className:"p-2 rounded-xl transition-all",style:{color:"#fca5a5",background:"rgba(239,68,68,0.06)"},title:"Löschen",children:s.jsx(vt,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:365",size:13})})]})]})}function Dl(){const e=me.useUtils(),{data:t,isLoading:n}=me.gynNews.getSettings.useQuery(),c=me.gynNews.saveSettings.useMutation({onSuccess:()=>e.gynNews.getSettings.invalidate()}),[a,r]=W.useState({aiProvider:"openai",apiKey:"",model:"gpt-4o-search-preview",prompt:vn,autoPublish:!1,itemsPerRun:5,reviewerEmail:"",adminEmail:"",siteUrl:""}),[o,i]=W.useState(!1);return W.useEffect(()=>{t&&!o&&(r({aiProvider:t.aiProvider==="anthropic"?"anthropic":"openai",apiKey:t.apiKey??"",model:t.model??"gpt-4o-search-preview",prompt:t.prompt??vn,autoPublish:t.autoPublish??!1,itemsPerRun:t.itemsPerRun??5,reviewerEmail:t.reviewerEmail??"",adminEmail:t.adminEmail??"",siteUrl:t.siteUrl??""}),i(!0))},[t,o]),n?s.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:411",className:"text-center py-16 text-gray-400 text-sm",children:"Laden…"}):s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:415",className:"max-w-2xl space-y-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:417",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[s.jsx("h3",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:418",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"KI-Provider"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:422",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:423",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Anbieter"}),s.jsxs("select",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:426",value:a.aiProvider,onChange:l=>r(d=>({...d,aiProvider:l.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none bg-white",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[s.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:434",value:"openai",children:"OpenAI (GPT-4)"}),s.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:435",value:"anthropic",children:"Anthropic (Claude)"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:439",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:440",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Modell"}),a.aiProvider==="openai"?s.jsxs("select",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:444",value:a.model,onChange:l=>r(d=>({...d,model:l.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none bg-white",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[s.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:450",value:"gpt-4o-search-preview",children:"gpt-4o-search-preview (empfohlen – Web-Suche)"}),s.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:451",value:"gpt-4o",children:"gpt-4o (kein Internet-Zugriff)"}),s.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:452",value:"gpt-4-turbo",children:"gpt-4-turbo (kein Internet-Zugriff)"})]}):s.jsxs("select",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:455",value:a.model,onChange:l=>r(d=>({...d,model:l.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none bg-white",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[s.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:461",value:"claude-3-5-sonnet-20241022",children:"claude-3-5-sonnet-20241022 (empfohlen)"}),s.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:462",value:"claude-3-opus-20240229",children:"claude-3-opus-20240229"}),s.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:463",value:"claude-3-haiku-20240307",children:"claude-3-haiku-20240307 (schnell)"})]}),a.aiProvider==="openai"&&a.model!=="gpt-4o-search-preview"&&s.jsxs("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:467",className:"text-xs mt-1.5 flex items-center gap-1",style:{color:"#f59e0b"},children:[s.jsx("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:468",children:"⚠"})," Dieses Modell hat keinen Internet-Zugriff und kann keine aktuellen News recherchieren."]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:473",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:474",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"API-Key"}),s.jsx("input",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:477",type:"password",value:a.apiKey,onChange:l=>r(d=>({...d,apiKey:l.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none font-mono",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:a.aiProvider==="openai"?"sk-...":"sk-ant-..."}),s.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:485",className:"text-xs mt-1.5",style:{color:"#9ca3af"},children:"Wird verschlüsselt gespeichert und nur serverseitig verwendet."})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:492",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[s.jsx("h3",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:493",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Recherche-Einstellungen"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:497",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:498",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Artikel pro Recherche-Lauf"}),s.jsx("input",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:501",type:"number",min:1,max:20,value:a.itemsPerRun,onChange:l=>r(d=>({...d,itemsPerRun:parseInt(l.target.value)||5})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"}}),s.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:510",className:"text-xs mt-1.5",style:{color:"#9ca3af"},children:"Der Cron-Job läuft automatisch am 1. jeden Monats um 03:00 Uhr."})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:515",className:"flex items-center justify-between py-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:516",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:517",className:"text-xs font-semibold",style:{color:"#374151"},children:"Artikel automatisch veröffentlichen"}),s.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:520",className:"text-xs mt-0.5",style:{color:"#9ca3af"},children:"Wenn deaktiviert, müssen Artikel manuell freigegeben werden."})]}),s.jsx("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:524",onClick:()=>r(l=>({...l,autoPublish:!l.autoPublish})),className:"transition-all ml-4 flex-shrink-0",children:a.autoPublish?s.jsx(xt,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:529",size:28,style:{color:"#3b82f6"}}):s.jsx(gt,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:531",size:28,style:{color:"#d1d5db"}})})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:538",className:"bg-white rounded-2xl border p-5 space-y-3",style:{borderColor:"#e5e7eb"},children:[s.jsx("h3",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:539",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"KI-Prompt"}),s.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:542",className:"text-xs",style:{color:"#9ca3af"},children:"Der Prompt steuert, welche Themen die KI recherchiert. Änderungen wirken beim nächsten Lauf."}),s.jsx("textarea",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:545",value:a.prompt,onChange:l=>r(d=>({...d,prompt:l.target.value})),rows:8,className:"w-full px-3.5 py-3 rounded-xl border text-sm focus:outline-none resize-y font-mono leading-relaxed",style:{borderColor:"#e5e7eb",color:"#374151",background:"#f9fafb"}}),s.jsxs("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:552",onClick:()=>r(l=>({...l,prompt:vn})),className:"flex items-center gap-1.5 text-xs font-semibold transition-all",style:{color:"#9ca3af"},children:[s.jsx(Jt,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:557",size:11})," Standard-Prompt wiederherstellen"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:562",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[s.jsx("h3",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:563",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"E-Mail-Benachrichtigungen"}),s.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:566",className:"text-xs",style:{color:"#9ca3af"},children:"Nach jedem Recherche-Lauf erhalten Teamleiter und Admin eine Digest-E-Mail mit allen neuen Artikeln. Der Teamleiter kann Artikel per Klick direkt aus der E-Mail freigeben. Der Admin erhält zusätzlich eine Bestätigung, wenn ein Artikel freigegeben wurde."}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:571",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:572",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Teamleiter (Reviewer) E-Mail"}),s.jsx("input",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:575",type:"email",value:a.reviewerEmail,onChange:l=>r(d=>({...d,reviewerEmail:l.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:"teamleiter@praxis.de"}),s.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:583",className:"text-xs mt-1.5",style:{color:"#9ca3af"},children:"Erhält die Digest-E-Mail mit Freigabe-Buttons für jeden neuen Artikel."})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:587",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:588",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Admin E-Mail"}),s.jsx("input",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:591",type:"email",value:a.adminEmail,onChange:l=>r(d=>({...d,adminEmail:l.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:"admin@stusche.de"}),s.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:599",className:"text-xs mt-1.5",style:{color:"#9ca3af"},children:"Erhält ebenfalls die Digest-E-Mail sowie eine Bestätigung nach jeder Freigabe durch den Teamleiter."})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:603",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:604",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Website-URL (für E-Mail-Links)"}),s.jsx("input",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:607",type:"url",value:a.siteUrl,onChange:l=>r(d=>({...d,siteUrl:l.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:"https://new.stusche.de"}),s.jsxs("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:615",className:"text-xs mt-1.5",style:{color:"#9ca3af"},children:["Basis-URL der Website – wird in den Freigabe-Links der E-Mails verwendet. Aktuell: ",s.jsx("strong",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:617",children:"new.stusche.de"}),", nach Go-Live: ",s.jsx("strong",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:617",children:"www.stusche.de"}),"."]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:623",className:"flex items-center gap-3",children:[s.jsxs("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:624",onClick:()=>c.mutate(a),disabled:c.isPending,className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold text-white transition-all hover:opacity-90 disabled:opacity-50",style:{background:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[s.jsx(bt,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:630",size:14}),c.isPending?"Speichern…":"Einstellungen speichern"]}),c.isSuccess&&s.jsxs("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:634",className:"flex items-center gap-1.5 text-xs font-semibold",style:{color:"#16a34a"},children:[s.jsx(Ee,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:635",size:13})," Gespeichert"]}),c.isError&&s.jsxs("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:639",className:"flex items-center gap-1.5 text-xs font-semibold",style:{color:"#ef4444"},children:[s.jsx($e,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:640",size:13})," Fehler beim Speichern"]})]})]})}const od=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"}));function Ll(){const[e,t]=W.useState(!1),[n,c]=W.useState(null),{data:a,refetch:r}=me.search.getCrawlStatus.useQuery(),o=me.search.rebuildIndex.useMutation({onSuccess:d=>{c(d),t(!1),r()},onError:()=>{t(!1)}}),i=()=>{t(!0),c(null),o.mutate()},l=n??a;return s.jsx(Ve,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:50",title:"Suchindex",breadcrumb:"Konfiguration",children:s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:51",className:"max-w-2xl",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:54",className:"flex gap-3 p-4 rounded-xl mb-6",style:{background:"rgba(59,130,246,0.08)",border:"1px solid rgba(59,130,246,0.2)"},children:[s.jsx(St,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:58",size:18,className:"mt-0.5 shrink-0",style:{color:"#3b82f6"}}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:59",className:"text-sm",style:{color:"#1e3a5f"},children:[s.jsx("p",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:60",className:"font-semibold mb-1",children:"Vollautomatischer Suchindex"}),s.jsxs("p",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:61",style:{color:"#4b5563"},children:["Der Crawler liest alle Seiten-Dateien aus und extrahiert Titel, Beschreibung und Keywords direkt aus den ",s.jsx("code",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:63",className:"bg-blue-50 px-1 rounded text-xs",children:"<SEO />"}),"-Komponenten. Der Index wird bei jedem Server-Start automatisch aktualisiert."]}),s.jsxs("p",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:66",className:"mt-2",style:{color:"#4b5563"},children:[s.jsx("strong",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:67",children:"Neue Seite hinzufügen:"})," Seite erstellen → ",s.jsx("code",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:67",className:"bg-blue-50 px-1 rounded text-xs",children:"PAGE_ROUTE_MAP"})," in"," ",s.jsx("code",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:68",className:"bg-blue-50 px-1 rounded text-xs",children:"server/searchIndexCrawler.ts"})," ergänzen → Server neu starten oder hier manuell neu aufbauen."]})]})]}),l&&s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:75",className:"p-5 rounded-xl mb-6",style:{background:"white",border:"1px solid rgba(13,27,62,0.1)",boxShadow:"0 2px 8px rgba(13,27,62,0.06)"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:79",className:"flex items-center gap-2 mb-4",children:[s.jsx(dt,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:80",size:16,style:{color:"#6b7280"}}),s.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:81",className:"text-sm font-semibold",style:{color:"#1e3a5f"},children:"Letzter Crawl"}),s.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:82",className:"text-xs ml-auto",style:{color:"#9ca3af"},children:new Date(l.crawledAt).toLocaleString("de-DE")})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:87",className:"grid grid-cols-2 gap-4 mb-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:88",className:"flex flex-col items-center justify-center p-4 rounded-lg",style:{background:"rgba(16,185,129,0.08)"},children:[s.jsx(qa,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:92",size:20,style:{color:"#10b981"},className:"mb-1"}),s.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:93",className:"text-2xl font-bold",style:{color:"#10b981"},children:l.indexedEntries}),s.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:96",className:"text-xs",style:{color:"#6b7280"},children:"Seiten indexiert"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:98",className:"flex flex-col items-center justify-center p-4 rounded-lg",style:{background:l.errors.length>0?"rgba(239,68,68,0.08)":"rgba(59,130,246,0.08)"},children:[l.errors.length>0?s.jsx($e,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:103",size:20,style:{color:"#ef4444"},className:"mb-1"}):s.jsx(Ee,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:104",size:20,style:{color:"#3b82f6"},className:"mb-1"}),s.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:106",className:"text-2xl font-bold",style:{color:l.errors.length>0?"#ef4444":"#3b82f6"},children:l.totalPages}),s.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:109",className:"text-xs",style:{color:"#6b7280"},children:"Seiten gesamt"})]})]}),l.errors.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:114",className:"p-3 rounded-lg",style:{background:"rgba(239,68,68,0.06)",border:"1px solid rgba(239,68,68,0.15)"},children:[s.jsxs("p",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:118",className:"text-xs font-semibold mb-2",style:{color:"#ef4444"},children:[l.errors.length," Fehler beim Crawlen:"]}),s.jsx("ul",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:121",className:"space-y-1",children:l.errors.map((d,h)=>s.jsxs("li",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:123",className:"text-xs",style:{color:"#6b7280"},children:["• ",d]},h))})]}),l.errors.length===0&&s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:130",className:"flex items-center gap-2",children:[s.jsx(Ee,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:131",size:14,style:{color:"#10b981"}}),s.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:132",className:"text-sm",style:{color:"#10b981"},children:"Alle Seiten erfolgreich indexiert"})]})]}),!l&&s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:139",className:"p-5 rounded-xl mb-6 flex items-center gap-3",style:{background:"rgba(245,158,11,0.08)",border:"1px solid rgba(245,158,11,0.2)"},children:[s.jsx($e,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:143",size:18,style:{color:"#f59e0b"}}),s.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:144",className:"text-sm",style:{color:"#92400e"},children:'Noch kein Crawl-Status verfügbar. Klicke auf "Jetzt neu aufbauen".'})]}),s.jsxs("button",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:151",onClick:i,disabled:e,className:"flex items-center gap-2 px-5 py-3 rounded-xl font-semibold text-sm transition-all",style:{background:e?"rgba(59,130,246,0.5)":"#1e3a5f",color:"white",cursor:e?"not-allowed":"pointer"},children:[s.jsx(Ue,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:161",size:16,className:e?"animate-spin":""}),e?"Wird aufgebaut…":"Jetzt neu aufbauen"]}),n&&s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:166",className:"flex items-center gap-2 mt-3 text-sm",style:{color:"#10b981"},children:[s.jsx(Ee,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:170",size:14}),s.jsxs("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:171",children:["Suchindex erfolgreich neu aufgebaut: ",n.indexedEntries," Seiten indexiert."]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:178",className:"mt-8 p-4 rounded-xl",style:{background:"rgba(13,27,62,0.04)"},children:[s.jsxs("p",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:179",className:"text-xs font-semibold mb-2",style:{color:"#1e3a5f"},children:[s.jsx($a,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:180",size:12,className:"inline mr-1"}),"Wie funktioniert der automatische Crawler?"]}),s.jsxs("ol",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:183",className:"text-xs space-y-1.5",style:{color:"#6b7280"},children:[s.jsx("li",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:184",children:"1. Beim Server-Start wird der Index automatisch neu aufgebaut."}),s.jsx("li",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:185",children:"2. Täglich um 03:00 Uhr wird der Index erneut aktualisiert."}),s.jsxs("li",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:186",children:["3. Neue Seiten werden erkannt, sobald sie eine ",s.jsx("code",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:186",className:"bg-gray-100 px-1 rounded",children:"<SEO />"}),"-Komponente haben und in der Route-Map eingetragen sind."]}),s.jsx("li",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:187",children:"4. Manuell kann der Index hier jederzeit neu aufgebaut werden."})]})]})]})})}const ld=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"}));function Bl(){const[e,t]=W.useState("anfragen"),n=[{id:"anfragen",label:"Anfragen",icon:pt},{id:"ausschlussgruppen",label:"Ausschlussgruppen",icon:Va},{id:"einstellungen",label:"Einstellungen",icon:xl}];return s.jsxs(Ve,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:44",title:"Retourenportal",breadcrumb:"Retourenportal",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:46",className:"flex gap-1 p-1 rounded-xl mb-6 w-fit flex-wrap",style:{background:"rgba(13,27,62,0.06)"},children:n.map(({id:c,label:a,icon:r})=>s.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:51",onClick:()=>t(c),className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:e===c?"#ffffff":"transparent",color:e===c?"#0d1b3e":"#6b7280",boxShadow:e===c?"0 1px 3px rgba(0,0,0,0.08)":"none",fontFamily:"DM Sans, sans-serif"},children:[s.jsx(r,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:62",size:14}),a]},c))}),e==="anfragen"&&s.jsx(Ul,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:68"}),e==="ausschlussgruppen"&&s.jsx(Gl,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:69"}),e==="einstellungen"&&s.jsx(Kl,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:70"})]})}const Fs={wrong_delivery:"Falschlieferung",too_much:"Zu viel geliefert",defect:"Defekt / Beschädigt",other:"Sonstiges"},Kt={open:{bg:"rgba(245,158,11,0.1)",text:"#d97706"},approved:{bg:"rgba(34,197,94,0.1)",text:"#16a34a"},rejected:{bg:"rgba(239,68,68,0.1)",text:"#ef4444"}},Us={open:"Offen",approved:"Genehmigt",rejected:"Abgelehnt"},Fl={open:dt,approved:Ee,rejected:on};function Ul(){const{data:e,isLoading:t,refetch:n}=me.returns.getOpenRequests.useQuery({limit:100}),c=me.returns.updateStatus.useMutation({onSuccess:()=>{n(),Fe.success("Status aktualisiert")},onError:()=>Fe.error("Fehler beim Aktualisieren")}),[a,r]=W.useState(null),[o,i]=W.useState(""),l=e?.find(d=>d.id===a)??null;return t?s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:112",className:"flex items-center justify-center py-16",children:[s.jsx(Ue,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:113",size:20,className:"animate-spin",style:{color:"#0d1b3e"}}),s.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:114",className:"ml-3 text-sm",style:{color:"#6b7280"},children:"Lade Anfragen…"})]}):!e||e.length===0?s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:121",className:"flex flex-col items-center justify-center py-16 gap-3",children:[s.jsx(Ee,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:122",size:40,style:{color:"#22c55e"}}),s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:123",className:"text-sm font-semibold",style:{color:"#374151"},children:"Keine offenen Retourenanfragen"})]}):s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:129",className:"flex gap-6",style:{minHeight:500},children:[s.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:131",className:"flex-none w-80 flex flex-col gap-2 overflow-y-auto",style:{maxHeight:600},children:e.map(d=>{const h=Fl[d.status]??dt,u=Kt[d.status]??Kt.open;return s.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:136",onClick:()=>{r(d.id),i(d.adminNote??"")},className:"w-full text-left p-4 rounded-xl border transition-all",style:{background:a===d.id?"rgba(13,27,62,0.06)":"#ffffff",borderColor:a===d.id?"#0d1b3e":"#e5e7eb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:145",className:"flex items-center justify-between mb-1",children:[s.jsxs("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:146",className:"text-xs font-bold",style:{color:"#0d1b3e"},children:["Anfrage #",d.id]}),s.jsxs("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:149",className:"flex items-center gap-1 text-xs font-semibold px-2 py-0.5 rounded-full",style:{background:u.bg,color:u.text},children:[s.jsx(h,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:153",size:10}),Us[d.status]]})]}),s.jsxs("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:157",className:"text-xs",style:{color:"#6b7280"},children:[new Date(d.createdAt).toLocaleDateString("de-DE")," · ",Fs[d.reason]??d.reason]}),d.contactName&&s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:161",className:"text-xs mt-1 truncate",style:{color:"#374151"},children:d.contactName})]},d.id)})}),l?s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:170",className:"flex-1 rounded-2xl border p-6",style:{borderColor:"#e5e7eb",background:"#fff"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:171",className:"flex items-center justify-between mb-4",children:[s.jsxs("h3",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:172",className:"text-base font-bold",style:{color:"#0d1b3e"},children:["Anfrage #",l.id]}),s.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:173",className:"flex items-center gap-1 text-xs font-semibold px-3 py-1 rounded-full",style:{background:Kt[l.status]?.bg,color:Kt[l.status]?.text},children:Us[l.status]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:181",className:"grid grid-cols-2 gap-4 mb-4 text-sm",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:182",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:183",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"EINGEGANGEN"}),s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:184",style:{color:"#374151"},children:new Date(l.createdAt).toLocaleString("de-DE")})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:186",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:187",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"GRUND"}),s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:188",style:{color:"#374151"},children:Fs[l.reason]??l.reason})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:190",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:191",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"MENGE"}),s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:192",style:{color:"#374151"},children:l.quantityRequested})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:194",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:195",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"PACKSTÜCKE"}),s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:196",style:{color:"#374151"},children:l.packagesCount??"–"})]}),l.contactName&&s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:199",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:200",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"ANSPRECHPARTNER"}),s.jsxs("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:201",style:{color:"#374151"},children:[l.contactName,l.contactPhone?` · ${l.contactPhone}`:""]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:204",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:205",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"ABHOLBEREIT"}),s.jsxs("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:206",style:{color:"#374151"},children:[l.isReadyForPickup?"Ja":"Nein"," · ",l.isPackaged?"Verpackt":"Nicht verpackt"]})]})]}),l.notes&&s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:211",className:"mb-4 p-3 rounded-lg",style:{background:"rgba(13,27,62,0.04)"},children:[s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:212",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"KUNDENHINWEIS"}),s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:213",className:"text-sm",style:{color:"#374151"},children:l.notes})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:218",className:"mb-4",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:219",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Interne Notiz"}),s.jsx("textarea",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:220",value:o,onChange:d=>i(d.target.value),rows:3,className:"w-full rounded-lg border px-3 py-2 text-sm resize-none",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"},placeholder:"Interne Notiz (nicht für Kunden sichtbar)…"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:231",className:"flex gap-3",children:[s.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:232",onClick:()=>c.mutate({id:l.id,status:"approved",adminNote:o}),disabled:c.isPending,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:"#16a34a",color:"#fff"},children:[s.jsx(Ee,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:238",size:14})," Genehmigen"]}),s.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:240",onClick:()=>c.mutate({id:l.id,status:"rejected",adminNote:o}),disabled:c.isPending,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:"#ef4444",color:"#fff"},children:[s.jsx(on,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:246",size:14})," Ablehnen"]}),s.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:248",onClick:()=>c.mutate({id:l.id,status:"open",adminNote:o}),disabled:c.isPending,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:"rgba(13,27,62,0.08)",color:"#0d1b3e"},children:[s.jsx(bt,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:254",size:14})," Notiz speichern"]})]})]}):s.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:259",className:"flex-1 flex items-center justify-center rounded-2xl border",style:{borderColor:"#e5e7eb",borderStyle:"dashed"},children:s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:260",className:"text-center",children:[s.jsx(ft,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:261",size:32,className:"mx-auto mb-2",style:{color:"#d1d5db"}}),s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:262",className:"text-sm",style:{color:"#9ca3af"},children:"Anfrage auswählen"})]})})]})}function Gl(){const{data:e,isLoading:t,refetch:n}=me.returns.getExclusionGroups.useQuery(),c=me.returns.upsertExclusionGroup.useMutation({onSuccess:()=>{n(),o(""),l(""),Fe.success("Gruppe gespeichert")},onError:()=>Fe.error("Fehler beim Speichern")}),a=me.returns.deleteExclusionGroup.useMutation({onSuccess:()=>{n(),Fe.success("Gruppe gelöscht")},onError:()=>Fe.error("Fehler beim Löschen")}),[r,o]=W.useState(""),[i,l]=W.useState("");return s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:286",className:"max-w-2xl",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:287",className:"mb-6 p-4 rounded-xl",style:{background:"rgba(13,27,62,0.04)",border:"1px solid rgba(13,27,62,0.08)"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:288",className:"flex items-start gap-2 mb-1",children:[s.jsx($e,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:289",size:14,className:"mt-0.5 flex-none",style:{color:"#d97706"}}),s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:290",className:"text-xs font-semibold",style:{color:"#d97706"},children:"Hinweis"})]}),s.jsxs("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:292",className:"text-xs",style:{color:"#6b7280"},children:["Hier eingetragene SAP-Artikelgruppen werden beim nächsten Sync automatisch als ",s.jsx("strong",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:293",children:"nicht retournierbar"})," markiert. Der Gruppenname muss exakt dem SAP-Gruppenname entsprechen (z.B. ",s.jsx("code",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:294",className:"bg-white px-1 rounded",children:"NCAP"}),"). Bereits synchronisierte Artikel werden beim nächsten Vollsync aktualisiert."]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:300",className:"flex gap-3 mb-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:301",className:"flex-1",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:302",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"SAP-Gruppenname *"}),s.jsx("input",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:303",value:r,onChange:d=>o(d.target.value),placeholder:"z.B. NCAP",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:311",className:"flex-1",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:312",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Beschreibung (optional)"}),s.jsx("input",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:313",value:i,onChange:d=>l(d.target.value),placeholder:"z.B. Arzneimittel / Reagenzien",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]}),s.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:321",className:"flex items-end",children:s.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:322",onClick:()=>{r.trim()&&c.mutate({groupName:r.trim(),description:i.trim()||void 0,active:!0})},disabled:!r.trim()||c.isPending,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:"#0d1b3e",color:"#fff",opacity:r.trim()?1:.5},children:[s.jsx(Xt,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:328",size:14})," Hinzufügen"]})})]}),t?s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:335",className:"flex items-center gap-2 py-8",children:[s.jsx(Ue,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:336",size:16,className:"animate-spin",style:{color:"#0d1b3e"}}),s.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:337",className:"text-sm",style:{color:"#6b7280"},children:"Lade…"})]}):!e||e.length===0?s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:340",className:"text-center py-12 rounded-xl border",style:{borderColor:"#e5e7eb",borderStyle:"dashed"},children:[s.jsx(Va,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:341",size:32,className:"mx-auto mb-2",style:{color:"#d1d5db"}}),s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:342",className:"text-sm",style:{color:"#9ca3af"},children:"Noch keine Ausschlussgruppen eingetragen"})]}):s.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:345",className:"flex flex-col gap-2",children:e.map(d=>s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:347",className:"flex items-center gap-4 p-4 rounded-xl border",style:{borderColor:"#e5e7eb",background:"#fff"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:352",className:"flex-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:353",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:354",className:"text-sm font-bold",style:{color:"#0d1b3e"},children:d.groupName}),s.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:355",className:"text-xs px-2 py-0.5 rounded-full font-semibold",style:{background:d.active?"rgba(34,197,94,0.1)":"rgba(156,163,175,0.15)",color:d.active?"#16a34a":"#9ca3af"},children:d.active?"Aktiv":"Inaktiv"})]}),d.description&&s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:366",className:"text-xs mt-0.5",style:{color:"#6b7280"},children:d.description})]}),s.jsx("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:369",onClick:()=>c.mutate({groupName:d.groupName,description:d.description??void 0,active:!d.active}),className:"p-2 rounded-lg transition-all",style:{color:d.active?"#16a34a":"#9ca3af"},title:d.active?"Deaktivieren":"Aktivieren",children:d.active?s.jsx(xt,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:375",size:20}):s.jsx(gt,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:375",size:20})}),s.jsx("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:377",onClick:()=>{confirm(`Gruppe "${d.groupName}" wirklich löschen?`)&&a.mutate({id:d.id})},className:"p-2 rounded-lg transition-all",style:{color:"#ef4444"},title:"Löschen",children:s.jsx(vt,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:383",size:16})})]},d.id))})]})}function Kl(){const[e,t]=W.useState(90),[n,c]=W.useState(!1),{data:a,isLoading:r}=me.siteSettings.get.useQuery({key:"return_deadline_days"},{refetchOnWindowFocus:!1});W.useEffect(()=>{if(a&&!n){const l=parseInt(a.value??"90",10);t(isNaN(l)?90:l),c(!0)}},[a,n]);const o=me.useUtils(),i=me.siteSettings.set.useMutation({onSuccess:()=>{Fe.success("Einstellungen gespeichert"),o.siteSettings.get.invalidate({key:"return_deadline_days"})},onError:l=>{Fe.error("Fehler beim Speichern: "+l.message)}});return s.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:656",className:"flex flex-col gap-6 max-w-2xl",children:s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:657",className:"rounded-2xl p-6",style:{background:"#fff",border:"1px solid #e5e7eb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:661",className:"flex items-center gap-3 mb-5",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:662",className:"w-9 h-9 rounded-xl flex items-center justify-center flex-none",style:{background:"rgba(13,27,62,0.08)"},children:s.jsx(dt,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:666",size:16,style:{color:"#0d1b3e"}})}),s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:668",children:[s.jsx("h3",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:669",className:"text-sm font-bold",style:{color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:"Retourenfrist"}),s.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:675",className:"text-xs",style:{color:"#6b7280"},children:"Maximale Anzahl an Tagen ab Rechnungsdatum, innerhalb derer eine Retoure beantragt werden kann"})]})]}),r?s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:683",className:"flex items-center gap-2 py-4",children:[s.jsx(Ue,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:684",size:14,className:"animate-spin",style:{color:"#9ca3af"}}),s.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:685",className:"text-sm",style:{color:"#9ca3af"},children:"Wird geladen..."})]}):s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:690",className:"flex items-end gap-4 flex-wrap",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:691",className:"flex flex-col gap-1.5",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:692",className:"text-xs font-semibold",style:{color:"#374151",fontFamily:"DM Sans, sans-serif"},children:"Retourenfrist (Tage)"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:698",className:"flex items-center gap-2",children:[s.jsx("input",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:699",type:"number",min:1,max:365,value:e,onChange:l=>{const d=parseInt(l.target.value,10);!isNaN(d)&&d>0&&t(d)},className:"w-24 rounded-lg border px-3 py-2 text-sm font-semibold text-center",style:{borderColor:"#e5e7eb",color:"#0d1b3e",outline:"none",fontFamily:"DM Sans, sans-serif"}}),s.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:716",className:"text-sm",style:{color:"#6b7280"},children:"Tage"})]})]}),s.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:722",onClick:()=>i.mutate({key:"return_deadline_days",value:String(e),description:"Retourenfrist in Tagen"}),disabled:i.isPending,className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold transition-all",style:{background:"#0d1b3e",color:"#fff",fontFamily:"DM Sans, sans-serif",opacity:i.isPending?.7:1},children:[s.jsx(bt,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:739",size:14}),i.isPending?"Speichern...":"Speichern"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:745",className:"mt-4 rounded-xl p-3 flex items-start gap-2",style:{background:"rgba(13,27,62,0.04)"},children:[s.jsx($e,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:749",size:13,className:"flex-none mt-0.5",style:{color:"#6b7280"}}),s.jsxs("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:750",className:"text-xs leading-relaxed",style:{color:"#6b7280"},children:["Aktuell eingestellt:"," ",s.jsxs("strong",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:752",style:{color:"#0d1b3e"},children:[e," Tage"]}),". Retourenanfragen, bei denen das Rechnungsdatum mehr als ",e," Tage zurueckliegt, werden automatisch als abgelaufen markiert und koennen nur noch ueber das Fallback-Formular eingereicht werden."]})]})]})})}const cd=Object.freeze(Object.defineProperty({__proto__:null,default:Bl},Symbol.toStringTag,{value:"Module"})),wn={neu:{label:"Neu",bg:"rgba(239,68,68,0.08)",text:"#ef4444",dot:"#ef4444",icon:Xn},versendet:{label:"Versendet",bg:"rgba(34,197,94,0.08)",text:"#16a34a",dot:"#22c55e",icon:Ee},storniert:{label:"Storniert",bg:"rgba(107,114,128,0.08)",text:"#6b7280",dot:"#9ca3af",icon:on}};function ql(){const{data:e,isLoading:t,refetch:n}=me.katalog.getAll.useQuery(),c=me.katalog.updateStatus.useMutation({onSuccess:()=>n()}),[a,r]=W.useState(null),[o,i]=W.useState("alle"),l=e?.filter(h=>o==="alle"||h.status===o)??[],d={alle:e?.length??0,neu:e?.filter(h=>h.status==="neu").length??0,versendet:e?.filter(h=>h.status==="versendet").length??0,storniert:e?.filter(h=>h.status==="storniert").length??0};return s.jsx(Ve,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:49",title:"Katalogbestellungen",breadcrumb:"Katalog",children:s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:50",className:"space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:53",className:"flex items-center justify-between",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:54",children:s.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:55",className:"text-sm text-gray-400 mt-1",children:"Postalische Katalogbestellungen verwalten und als versendet markieren."})}),s.jsxs("button",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:59",onClick:()=>n(),className:"flex items-center gap-2 px-3 py-2 text-sm text-gray-400 hover:text-white bg-white/5 hover:bg-white/10 rounded-lg transition-colors",children:[s.jsx(Ue,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:63",className:"w-4 h-4"}),"Aktualisieren"]})]}),s.jsx("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:69",className:"flex gap-2 flex-wrap",children:["alle","neu","versendet","storniert"].map(h=>{const u=h==="alle"?null:wn[h],x=o===h;return s.jsxs("button",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:74",onClick:()=>i(h),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-semibold transition-all border ${x?"bg-[#1a6dcc] text-white border-[#1a6dcc]":"bg-white/5 text-gray-400 border-white/10 hover:bg-white/10"}`,children:[u&&s.jsx("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:84",className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{backgroundColor:u.dot}}),h==="alle"?"Alle":u.label,s.jsx("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:90",className:`ml-0.5 px-1.5 py-0.5 rounded-full text-[10px] ${x?"bg-white/20":"bg-white/10"}`,children:d[h]})]},h)})}),t?s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:100",className:"flex items-center justify-center py-16 text-gray-500",children:[s.jsx(Ue,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:101",className:"w-5 h-5 animate-spin mr-2"}),"Wird geladen…"]}):l.length===0?s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:105",className:"flex flex-col items-center justify-center py-16 text-gray-500 gap-3",children:[s.jsx(pt,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:106",className:"w-10 h-10 opacity-30"}),s.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:107",className:"text-sm",children:"Keine Bestellungen vorhanden."})]}):s.jsx("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:110",className:"space-y-2",children:l.map(h=>{const u=h.status??"neu",x=wn[u],p=x.icon,b=a===h.id,m=h.createdAt?new Date(h.createdAt).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}):"–";return s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:119",className:"bg-white/5 border border-white/10 rounded-xl overflow-hidden",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:124",className:"flex items-center gap-4 px-4 py-3 cursor-pointer hover:bg-white/5 transition-colors",onClick:()=>r(b?null:h.id),children:[s.jsx("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:129",className:"w-2 h-2 rounded-full flex-shrink-0",style:{backgroundColor:x.dot}}),s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:132",className:"flex-1 min-w-0",children:[s.jsxs("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:133",className:"text-sm font-semibold text-white truncate",children:[h.anrede?`${h.anrede} `:"",h.name]}),h.praxis&&s.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:137",className:"text-xs text-gray-400 truncate",children:h.praxis})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:142",className:"hidden sm:flex items-center gap-1 text-xs text-gray-400 flex-shrink-0",children:[s.jsx(hl,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:143",className:"w-3 h-3"}),h.plz," ",h.ort]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:148",className:"hidden md:flex items-center gap-1 text-xs text-gray-400 flex-shrink-0",children:[s.jsx(pt,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:149",className:"w-3 h-3"}),h.anzahl,"×"]}),s.jsx("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:154",className:"hidden lg:block text-xs text-gray-500 flex-shrink-0",children:m}),s.jsxs("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:157",className:"flex items-center gap-1 px-2 py-1 rounded-full text-xs font-semibold flex-shrink-0",style:{background:x.bg,color:x.text},children:[s.jsx(p,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:161",className:"w-3 h-3"}),x.label]}),s.jsx(Ka,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:165",className:`w-4 h-4 text-gray-500 flex-shrink-0 transition-transform ${b?"rotate-180":""}`})]}),b&&s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:172",className:"border-t border-white/10 px-4 py-4 bg-white/3 space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:173",className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:175",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:176",className:"text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2",children:"Lieferadresse"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:177",className:"text-sm text-gray-200 space-y-0.5",children:[s.jsxs("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:178",children:[h.anrede?`${h.anrede} `:"",h.name]}),h.praxis&&s.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:179",className:"text-gray-400",children:h.praxis}),s.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:180",children:h.strasse}),s.jsxs("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:181",children:[h.plz," ",h.ort]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:186",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:187",className:"text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2",children:"Kontakt"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:188",className:"text-sm text-gray-200 space-y-1",children:[h.email&&s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:190",className:"flex items-center gap-2",children:[s.jsx(ln,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:191",className:"w-3.5 h-3.5 text-gray-400"}),s.jsx("a",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:192",href:`mailto:${h.email}`,className:"text-[#4a9eff] hover:underline",children:h.email})]}),h.telefon&&s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:196",className:"flex items-center gap-2",children:[s.jsx(Qa,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:197",className:"w-3.5 h-3.5 text-gray-400"}),s.jsx("a",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:198",href:`tel:${h.telefon}`,className:"text-[#4a9eff] hover:underline",children:h.telefon})]}),!h.email&&!h.telefon&&s.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:202",className:"text-gray-500 text-xs",children:"Keine Kontaktdaten angegeben"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:208",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:209",className:"text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2",children:"Details"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:210",className:"text-sm text-gray-200 space-y-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:211",className:"flex items-center gap-2",children:[s.jsx(pt,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:212",className:"w-3.5 h-3.5 text-gray-400"}),s.jsxs("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:213",children:[h.anzahl," Exemplar",(h.anzahl??1)>1?"e":""]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:215",className:"flex items-center gap-2",children:[s.jsx(dt,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:216",className:"w-3.5 h-3.5 text-gray-400"}),s.jsx("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:217",children:m})]})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:224",className:"flex flex-wrap gap-2 pt-2 border-t border-white/10",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:225",className:"w-full text-xs font-semibold text-gray-400 uppercase tracking-wider mb-1",children:"Status ändern"}),["neu","versendet","storniert"].map(v=>{const y=wn[v],k=y.icon;return s.jsxs("button",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:230",disabled:u===v||c.isPending,onClick:()=>c.mutate({id:h.id,status:v}),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-semibold transition-all border disabled:opacity-40 disabled:cursor-not-allowed ${u===v?"border-white/20 text-white":"border-white/10 text-gray-400 hover:bg-white/10 hover:text-white"}`,style:u===v?{background:y.bg,color:y.text,borderColor:y.dot+"40"}:{},children:[s.jsx(k,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:241",className:"w-3.5 h-3.5"}),y.label]},v)})]})]})]},h.id)})})]})})}const dd=Object.freeze(Object.defineProperty({__proto__:null,default:ql},Symbol.toStringTag,{value:"Module"}));function Wl(){const{data:e,isLoading:t}=me.returns.getEmailSettings.useQuery(),n=me.returns.saveEmailSettings.useMutation({onSuccess:()=>Fe.success("Einstellungen gespeichert"),onError:()=>Fe.error("Fehler beim Speichern")}),c=me.returns.sendTestEmail.useMutation({onSuccess:()=>Fe.success("Test-E-Mail gesendet"),onError:d=>Fe.error(`Fehler: ${d.message}`)}),[a,r]=W.useState({recipientEmail:"",senderEmail:"",senderName:"Stusche",smtpHost:"",smtpPort:587,smtpUser:"",smtpPassword:"",smtpSecure:!0,enabled:!1,sendConfirmationToCustomer:!1}),[o,i]=W.useState("");W.useEffect(()=>{e&&r({recipientEmail:e.recipientEmail??"",senderEmail:e.senderEmail??"",senderName:e.senderName??"Stusche",smtpHost:e.smtpHost??"",smtpPort:e.smtpPort??587,smtpUser:e.smtpUser??"",smtpPassword:e.smtpPassword??"",smtpSecure:e.smtpSecure??!0,enabled:e.enabled??!1,sendConfirmationToCustomer:e.sendConfirmationToCustomer??!1})},[e]);const l=(d,h)=>r(u=>({...u,[d]:h}));return t?s.jsx(Ve,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:67",title:"E-Mail-Einstellungen",breadcrumb:"Einstellungen",children:s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:68",className:"flex items-center gap-2 py-8",children:[s.jsx(Ue,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:69",size:16,className:"animate-spin",style:{color:"#0d1b3e"}}),s.jsx("span",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:70",className:"text-sm",style:{color:"#6b7280"},children:"Lade…"})]})}):s.jsx(Ve,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:77",title:"E-Mail-Einstellungen",breadcrumb:"Einstellungen",children:s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:78",className:"max-w-xl",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:80",className:"mb-6 p-4 rounded-xl",style:{background:"rgba(13,27,62,0.04)",border:"1px solid rgba(13,27,62,0.08)"},children:s.jsxs("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:84",className:"text-xs",style:{color:"#6b7280"},children:["Alle Formularanfragen (Kontakt, Beratung, Katalog, Retoure) werden per SMTP an die konfigurierte Empfänger-Adresse gesendet. Eine zentrale Konfiguration gilt für alle Formulare.",s.jsx("br",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:87"}),s.jsx("br",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:87"}),"Für M365-Konten: SMTP-Host"," ",s.jsx("code",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:89",className:"bg-white px-1 rounded",children:"smtp.office365.com"}),", Port"," ",s.jsx("code",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:90",className:"bg-white px-1 rounded",children:"587"}),", STARTTLS aktiviert."]})}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:94",className:"flex flex-col gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:96",className:"flex items-center justify-between p-4 rounded-xl border",style:{borderColor:"#e5e7eb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:100",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:101",className:"text-sm font-semibold",style:{color:"#0d1b3e"},children:"E-Mail-Benachrichtigungen aktiv"}),s.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:104",className:"text-xs",style:{color:"#6b7280"},children:"E-Mails nach jeder Formularanfrage senden"})]}),s.jsx("button",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:108",onClick:()=>l("enabled",!a.enabled),style:{color:a.enabled?"#16a34a":"#9ca3af"},children:a.enabled?s.jsx(xt,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:112",size:28}):s.jsx(gt,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:112",size:28})})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:117",className:"flex items-center justify-between p-4 rounded-xl border",style:{borderColor:"#e5e7eb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:121",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:122",className:"text-sm font-semibold",style:{color:"#0d1b3e"},children:"Bestätigungsmail an Kunden"}),s.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:125",className:"text-xs",style:{color:"#6b7280"},children:"Automatische Bestätigung an Kunden senden (wenn E-Mail angegeben)"})]}),s.jsx("button",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:129",onClick:()=>l("sendConfirmationToCustomer",!a.sendConfirmationToCustomer),style:{color:a.sendConfirmationToCustomer?"#16a34a":"#9ca3af"},children:a.sendConfirmationToCustomer?s.jsx(xt,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:133",size:28}):s.jsx(gt,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:133",size:28})})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:138",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:139",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Empfänger-Adresse(n) *"}),s.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:142",value:a.recipientEmail,onChange:d=>l("recipientEmail",d.target.value),placeholder:"info@ihre-domain.de, intern@ihre-domain.de",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}}),s.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:149",className:"text-xs mt-1",style:{color:"#9ca3af"},children:"Mehrere Adressen kommagetrennt"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:155",className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:156",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:157",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Absender-Name"}),s.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:160",value:a.senderName,onChange:d=>l("senderName",d.target.value),placeholder:"Stusche",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:168",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:169",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Absender-Adresse"}),s.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:172",value:a.senderEmail,onChange:d=>l("senderEmail",d.target.value),placeholder:"noreply@ihre-domain.de",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:183",className:"p-4 rounded-xl border",style:{borderColor:"#e5e7eb"},children:[s.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:184",className:"text-xs font-bold mb-3",style:{color:"#0d1b3e"},children:"SMTP-Konfiguration"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:187",className:"grid grid-cols-3 gap-3 mb-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:188",className:"col-span-2",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:189",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"SMTP-Host"}),s.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:192",value:a.smtpHost,onChange:d=>l("smtpHost",d.target.value),placeholder:"smtp.office365.com",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:200",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:201",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Port"}),s.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:204",type:"number",value:a.smtpPort,onChange:d=>l("smtpPort",parseInt(d.target.value)||587),className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:213",className:"grid grid-cols-2 gap-3 mb-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:214",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:215",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Benutzername"}),s.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:218",value:a.smtpUser,onChange:d=>l("smtpUser",d.target.value),placeholder:"user@ihre-domain.de",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:226",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:227",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Passwort"}),s.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:230",type:"password",value:a.smtpPassword,onChange:d=>l("smtpPassword",d.target.value),placeholder:a.smtpPassword==="***set***"?"●●●●●●●● (gesetzt)":"Passwort eingeben",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:240",className:"flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:241",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:242",className:"text-xs font-semibold",style:{color:"#374151"},children:"STARTTLS / TLS"}),s.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:245",className:"text-xs",style:{color:"#9ca3af"},children:"Für M365 und die meisten SMTP-Server empfohlen"})]}),s.jsx("button",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:249",onClick:()=>l("smtpSecure",!a.smtpSecure),style:{color:a.smtpSecure?"#16a34a":"#9ca3af"},children:a.smtpSecure?s.jsx(xt,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:253",size:24}):s.jsx(gt,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:253",size:24})})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:259",className:"p-4 rounded-xl border",style:{borderColor:"#e5e7eb"},children:[s.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:260",className:"text-xs font-bold mb-3",style:{color:"#0d1b3e"},children:"Test-E-Mail senden"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:263",className:"flex gap-2",children:[s.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:264",type:"email",value:o,onChange:d=>i(d.target.value),placeholder:"test@ihre-domain.de",className:"flex-1 rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}}),s.jsxs("button",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:272",onClick:()=>c.mutate({toEmail:o}),disabled:c.isPending||!o,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:o?"#0d1b3e":"#e5e7eb",color:o?"#fff":"#9ca3af"},children:[s.jsx(gl,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:281",size:13}),c.isPending?"Senden…":"Senden"]})]}),s.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:285",className:"text-xs mt-2",style:{color:"#9ca3af"},children:"Sendet eine Test-E-Mail mit der aktuell gespeicherten SMTP-Konfiguration"})]}),s.jsxs("button",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:291",onClick:()=>n.mutate(a),disabled:n.isPending,className:"flex items-center gap-2 px-6 py-3 rounded-xl text-sm font-semibold transition-all w-fit",style:{background:"#0d1b3e",color:"#fff"},children:[s.jsx(bt,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:297",size:14}),n.isPending?"Speichern…":"Einstellungen speichern"]})]})]})})}const ud=Object.freeze(Object.defineProperty({__proto__:null,default:Wl},Symbol.toStringTag,{value:"Module"})),Gs={contact:"Kontaktanfrage",contact_confirmation:"Kontakt (Bestätigung)",wizard:"Beratungsanfrage",wizard_confirmation:"Beratung (Bestätigung)",katalog:"Katalogbestellung",katalog_confirmation:"Katalog (Bestätigung)",retoure:"Retourenanfrage",retoure_confirmation:"Retoure (Bestätigung)",return:"Retourenanfrage",return_confirmation:"Retoure (Bestätigung)"},Hl={contact:{bg:"rgba(59,130,246,0.08)",text:"#1d4ed8"},contact_confirmation:{bg:"rgba(59,130,246,0.05)",text:"#3b82f6"},wizard:{bg:"rgba(139,92,246,0.08)",text:"#7c3aed"},wizard_confirmation:{bg:"rgba(139,92,246,0.05)",text:"#8b5cf6"},katalog:{bg:"rgba(245,158,11,0.08)",text:"#d97706"},katalog_confirmation:{bg:"rgba(245,158,11,0.05)",text:"#f59e0b"},retoure:{bg:"rgba(239,68,68,0.08)",text:"#dc2626"},return:{bg:"rgba(239,68,68,0.08)",text:"#dc2626"}};function Ql(){const[e,t]=W.useState(null),[n,c]=W.useState("all"),{data:a=[],refetch:r,isLoading:o}=me.admin.getEmailLogs.useQuery({limit:200,offset:0},{refetchInterval:6e4}),i=me.admin.deleteEmailLog.useMutation({onSuccess:()=>r()}),l=Array.from(new Set(a.map(x=>x.type))),d=n==="all"?a:a.filter(x=>x.type===n),h=a.filter(x=>x.success).length,u=a.filter(x=>!x.success).length;return s.jsxs(Ve,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:78",title:"E-Mail Log",breadcrumb:"Übersicht",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:80",className:"grid grid-cols-3 gap-4 mb-6",children:[{label:"Gesamt",value:a.length,color:"#0d1b3e",bg:"rgba(13,27,62,0.05)"},{label:"Erfolgreich",value:h,color:"#16a34a",bg:"rgba(34,197,94,0.08)"},{label:"Fehlgeschlagen",value:u,color:"#dc2626",bg:"rgba(239,68,68,0.08)"}].map(({label:x,value:p,color:b,bg:m})=>s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:86",className:"rounded-2xl p-4 text-center",style:{background:m},children:[s.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:87",className:"text-2xl font-bold",style:{color:b,fontFamily:"Inter, system-ui, sans-serif"},children:p}),s.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:88",className:"text-xs font-semibold mt-1",style:{color:"#9ca3af",fontFamily:"DM Sans, sans-serif"},children:x})]},x))}),s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:94",className:"flex items-center gap-2 mb-5 flex-wrap",children:[s.jsx("button",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:95",onClick:()=>c("all"),className:"px-3.5 py-1.5 rounded-full text-xs font-semibold transition-all",style:{background:n==="all"?"#0d1b3e":"#ffffff",color:n==="all"?"#ffffff":"#6b7280",border:n==="all"?"1px solid #0d1b3e":"1px solid #e5e7eb"},children:"Alle"}),l.map(x=>s.jsx("button",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:107",onClick:()=>c(x),className:"px-3.5 py-1.5 rounded-full text-xs font-semibold transition-all",style:{background:n===x?"#0d1b3e":"#ffffff",color:n===x?"#ffffff":"#6b7280",border:n===x?"1px solid #0d1b3e":"1px solid #e5e7eb"},children:Gs[x]??x},x)),s.jsx("button",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:120",onClick:()=>r(),className:"ml-auto p-2 rounded-lg transition-all",style:{color:"#9ca3af"},title:"Aktualisieren",children:s.jsx(Ue,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:126",size:14,className:o?"animate-spin":""})})]}),o?s.jsx("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:132",className:"text-center py-16 text-gray-400 text-sm",children:"Laden…"}):d.length===0?s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:134",className:"flex flex-col items-center py-16 gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:135",className:"w-12 h-12 rounded-2xl flex items-center justify-center",style:{background:"rgba(13,27,62,0.05)"},children:s.jsx(ln,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:136",size:20,style:{color:"#9ca3af"}})}),s.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:138",className:"text-sm text-gray-400",children:"Keine E-Mails protokolliert"})]}):s.jsx("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:141",className:"space-y-2",children:d.map(x=>{const p=e===x.id,b=Hl[x.type]??{bg:"rgba(107,114,128,0.08)",text:"#6b7280"};return s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:146",className:"bg-white rounded-2xl border overflow-hidden",style:{borderColor:x.success?"#e5e7eb":"rgba(239,68,68,0.25)"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:151",className:"flex items-center gap-3 p-4 cursor-pointer",onClick:()=>t(p?null:x.id),children:[x.success?s.jsx(Ee,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:157",size:16,style:{color:"#16a34a",flexShrink:0}}):s.jsx(on,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:159",size:16,style:{color:"#dc2626",flexShrink:0}}),s.jsx("span",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:163",className:"px-2.5 py-1 rounded-full text-xs font-semibold flex-shrink-0",style:{background:b.bg,color:b.text},children:Gs[x.type]??x.type}),s.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:171",className:"flex-1 text-sm font-medium truncate",style:{color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:x.subject}),s.jsx("span",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:176",className:"text-xs flex-shrink-0",style:{color:"#9ca3af"},children:new Date(x.createdAt).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}),p?s.jsx(il,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:185",size:14,style:{color:"#9ca3af",flexShrink:0}}):s.jsx(Ka,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:187",size:14,style:{color:"#9ca3af",flexShrink:0}})]}),p&&s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:193",className:"px-4 pb-4 pt-0 space-y-3",style:{borderTop:"1px solid #f3f4f6"},children:[s.jsx("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:194",className:"grid sm:grid-cols-2 gap-3 pt-3",children:[{label:"Empfänger",value:x.recipient},{label:"Absender",value:x.senderEmail?`${x.senderName??""} <${x.senderEmail}>`:null},{label:"Betreff",value:x.subject},{label:"Status",value:x.success?"Erfolgreich gesendet":"Fehlgeschlagen"}].filter(m=>m.value).map(({label:m,value:v})=>s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:201",className:"p-3 rounded-xl",style:{background:"#f9fafb"},children:[s.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:202",className:"text-xs font-semibold mb-0.5",style:{color:"#9ca3af"},children:m}),s.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:203",className:"text-sm",style:{color:"#0d1b3e"},children:v})]},m))}),x.errorMessage&&s.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:209",className:"p-3 rounded-xl",style:{background:"rgba(239,68,68,0.06)",border:"1px solid rgba(239,68,68,0.15)"},children:[s.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:210",className:"text-xs font-semibold mb-1",style:{color:"#dc2626"},children:"Fehlermeldung"}),s.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:211",className:"text-xs font-mono",style:{color:"#7f1d1d"},children:x.errorMessage})]}),s.jsx("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:215",className:"flex justify-end pt-1",children:s.jsxs("button",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:216",onClick:m=>{m.stopPropagation(),confirm("Diesen Log-Eintrag löschen?")&&i.mutate({id:x.id})},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-xs font-semibold transition-all",style:{color:"#ef4444",background:"rgba(239,68,68,0.06)",border:"1px solid rgba(239,68,68,0.15)"},children:[s.jsx(vt,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:226",size:12})," Eintrag löschen"]})})]})]},x.id)})})]})}const hd=Object.freeze(Object.defineProperty({__proto__:null,default:Ql},Symbol.toStringTag,{value:"Module"}));function qt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kn={exports:{}};/*!

JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/var Ks;function $l(){return Ks||(Ks=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(c,a,r){function o(d,h){if(!a[d]){if(!c[d]){var u=typeof qt=="function"&&qt;if(!h&&u)return u(d,!0);if(i)return i(d,!0);var x=new Error("Cannot find module '"+d+"'");throw x.code="MODULE_NOT_FOUND",x}var p=a[d]={exports:{}};c[d][0].call(p.exports,function(b){var m=c[d][1][b];return o(m||b)},p,p.exports,n,c,a,r)}return a[d].exports}for(var i=typeof qt=="function"&&qt,l=0;l<r.length;l++)o(r[l]);return o})({1:[function(n,c,a){var r=n("./utils"),o=n("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.encode=function(l){for(var d,h,u,x,p,b,m,v=[],y=0,k=l.length,C=k,O=r.getTypeOf(l)!=="string";y<l.length;)C=k-y,u=O?(d=l[y++],h=y<k?l[y++]:0,y<k?l[y++]:0):(d=l.charCodeAt(y++),h=y<k?l.charCodeAt(y++):0,y<k?l.charCodeAt(y++):0),x=d>>2,p=(3&d)<<4|h>>4,b=1<C?(15&h)<<2|u>>6:64,m=2<C?63&u:64,v.push(i.charAt(x)+i.charAt(p)+i.charAt(b)+i.charAt(m));return v.join("")},a.decode=function(l){var d,h,u,x,p,b,m=0,v=0,y="data:";if(l.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var k,C=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===i.charAt(64)&&C--,l.charAt(l.length-2)===i.charAt(64)&&C--,C%1!=0)throw new Error("Invalid base64 input, bad content length.");for(k=o.uint8array?new Uint8Array(0|C):new Array(0|C);m<l.length;)d=i.indexOf(l.charAt(m++))<<2|(x=i.indexOf(l.charAt(m++)))>>4,h=(15&x)<<4|(p=i.indexOf(l.charAt(m++)))>>2,u=(3&p)<<6|(b=i.indexOf(l.charAt(m++))),k[v++]=d,p!==64&&(k[v++]=h),b!==64&&(k[v++]=u);return k}},{"./support":30,"./utils":32}],2:[function(n,c,a){var r=n("./external"),o=n("./stream/DataWorker"),i=n("./stream/Crc32Probe"),l=n("./stream/DataLengthProbe");function d(h,u,x,p,b){this.compressedSize=h,this.uncompressedSize=u,this.crc32=x,this.compression=p,this.compressedContent=b}d.prototype={getContentWorker:function(){var h=new o(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),u=this;return h.on("end",function(){if(this.streamInfo.data_length!==u.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),h},getCompressedWorker:function(){return new o(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},d.createWorkerFrom=function(h,u,x){return h.pipe(new i).pipe(new l("uncompressedSize")).pipe(u.compressWorker(x)).pipe(new l("compressedSize")).withStreamInfo("compression",u)},c.exports=d},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,c,a){var r=n("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},a.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,c,a){var r=n("./utils"),o=(function(){for(var i,l=[],d=0;d<256;d++){i=d;for(var h=0;h<8;h++)i=1&i?3988292384^i>>>1:i>>>1;l[d]=i}return l})();c.exports=function(i,l){return i!==void 0&&i.length?r.getTypeOf(i)!=="string"?(function(d,h,u,x){var p=o,b=x+u;d^=-1;for(var m=x;m<b;m++)d=d>>>8^p[255&(d^h[m])];return-1^d})(0|l,i,i.length,0):(function(d,h,u,x){var p=o,b=x+u;d^=-1;for(var m=x;m<b;m++)d=d>>>8^p[255&(d^h.charCodeAt(m))];return-1^d})(0|l,i,i.length,0):0}},{"./utils":32}],5:[function(n,c,a){a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(n,c,a){var r=null;r=typeof Promise<"u"?Promise:n("lie"),c.exports={Promise:r}},{lie:37}],7:[function(n,c,a){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=n("pako"),i=n("./utils"),l=n("./stream/GenericWorker"),d=r?"uint8array":"array";function h(u,x){l.call(this,"FlateWorker/"+u),this._pako=null,this._pakoAction=u,this._pakoOptions=x,this.meta={}}a.magic="\b\0",i.inherits(h,l),h.prototype.processChunk=function(u){this.meta=u.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(d,u.data),!1)},h.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var u=this;this._pako.onData=function(x){u.push({data:x,meta:u.meta})}},a.compressWorker=function(u){return new h("Deflate",u)},a.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,c,a){function r(p,b){var m,v="";for(m=0;m<b;m++)v+=String.fromCharCode(255&p),p>>>=8;return v}function o(p,b,m,v,y,k){var C,O,A=p.file,R=p.compression,S=k!==d.utf8encode,T=i.transformTo("string",k(A.name)),P=i.transformTo("string",d.utf8encode(A.name)),K=A.comment,$=i.transformTo("string",k(K)),j=i.transformTo("string",d.utf8encode(K)),B=P.length!==A.name.length,g=j.length!==K.length,G="",I="",z="",te=A.dir,H=A.date,ne={crc32:0,compressedSize:0,uncompressedSize:0};b&&!m||(ne.crc32=p.crc32,ne.compressedSize=p.compressedSize,ne.uncompressedSize=p.uncompressedSize);var w=0;b&&(w|=8),S||!B&&!g||(w|=2048);var N=0,U=0;te&&(N|=16),y==="UNIX"?(U=798,N|=(function(F,ae){var le=F;return F||(le=ae?16893:33204),(65535&le)<<16})(A.unixPermissions,te)):(U=20,N|=(function(F){return 63&(F||0)})(A.dosPermissions)),C=H.getUTCHours(),C<<=6,C|=H.getUTCMinutes(),C<<=5,C|=H.getUTCSeconds()/2,O=H.getUTCFullYear()-1980,O<<=4,O|=H.getUTCMonth()+1,O<<=5,O|=H.getUTCDate(),B&&(I=r(1,1)+r(h(T),4)+P,G+="up"+r(I.length,2)+I),g&&(z=r(1,1)+r(h($),4)+j,G+="uc"+r(z.length,2)+z);var L="";return L+=`
\0`,L+=r(w,2),L+=R.magic,L+=r(C,2),L+=r(O,2),L+=r(ne.crc32,4),L+=r(ne.compressedSize,4),L+=r(ne.uncompressedSize,4),L+=r(T.length,2),L+=r(G.length,2),{fileRecord:u.LOCAL_FILE_HEADER+L+T+G,dirRecord:u.CENTRAL_FILE_HEADER+r(U,2)+L+r($.length,2)+"\0\0\0\0"+r(N,4)+r(v,4)+T+G+$}}var i=n("../utils"),l=n("../stream/GenericWorker"),d=n("../utf8"),h=n("../crc32"),u=n("../signature");function x(p,b,m,v){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=m,this.encodeFileName=v,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(x,l),x.prototype.push=function(p){var b=p.meta.percent||0,m=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,l.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:m?(b+100*(m-v-1))/m:100}}))},x.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var b=this.streamFiles&&!p.file.dir;if(b){var m=o(p,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},x.prototype.closedSource=function(p){this.accumulate=!1;var b=this.streamFiles&&!p.file.dir,m=o(p,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),b)this.push({data:(function(v){return u.DATA_DESCRIPTOR+r(v.crc32,4)+r(v.compressedSize,4)+r(v.uncompressedSize,4)})(p),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},x.prototype.flush=function(){for(var p=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var m=this.bytesWritten-p,v=(function(y,k,C,O,A){var R=i.transformTo("string",A(O));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(y,2)+r(y,2)+r(k,4)+r(C,4)+r(R.length,2)+R})(this.dirRecords.length,m,p,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},x.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},x.prototype.registerPrevious=function(p){this._sources.push(p);var b=this;return p.on("data",function(m){b.processChunk(m)}),p.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),p.on("error",function(m){b.error(m)}),this},x.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},x.prototype.error=function(p){var b=this._sources;if(!l.prototype.error.call(this,p))return!1;for(var m=0;m<b.length;m++)try{b[m].error(p)}catch{}return!0},x.prototype.lock=function(){l.prototype.lock.call(this);for(var p=this._sources,b=0;b<p.length;b++)p[b].lock()},c.exports=x},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,c,a){var r=n("../compressions"),o=n("./ZipFileWorker");a.generateWorker=function(i,l,d){var h=new o(l.streamFiles,d,l.platform,l.encodeFileName),u=0;try{i.forEach(function(x,p){u++;var b=(function(k,C){var O=k||C,A=r[O];if(!A)throw new Error(O+" is not a valid compression method !");return A})(p.options.compression,l.compression),m=p.options.compressionOptions||l.compressionOptions||{},v=p.dir,y=p.date;p._compressWorker(b,m).withStreamInfo("file",{name:x,dir:v,date:y,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(h)}),h.entriesCount=u}catch(x){h.error(x)}return h}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,c,a){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new r;for(var i in this)typeof this[i]!="function"&&(o[i]=this[i]);return o}}(r.prototype=n("./object")).loadAsync=n("./load"),r.support=n("./support"),r.defaults=n("./defaults"),r.version="3.10.1",r.loadAsync=function(o,i){return new r().loadAsync(o,i)},r.external=n("./external"),c.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,c,a){var r=n("./utils"),o=n("./external"),i=n("./utf8"),l=n("./zipEntries"),d=n("./stream/Crc32Probe"),h=n("./nodejsUtils");function u(x){return new o.Promise(function(p,b){var m=x.decompressed.getContentWorker().pipe(new d);m.on("error",function(v){b(v)}).on("end",function(){m.streamInfo.crc32!==x.decompressed.crc32?b(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}c.exports=function(x,p){var b=this;return p=r.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),h.isNode&&h.isStream(x)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",x,!0,p.optimizedBinaryString,p.base64).then(function(m){var v=new l(p);return v.load(m),v}).then(function(m){var v=[o.Promise.resolve(m)],y=m.files;if(p.checkCRC32)for(var k=0;k<y.length;k++)v.push(u(y[k]));return o.Promise.all(v)}).then(function(m){for(var v=m.shift(),y=v.files,k=0;k<y.length;k++){var C=y[k],O=C.fileNameStr,A=r.resolve(C.fileNameStr);b.file(A,C.decompressed,{binary:!0,optimizedBinaryString:!0,date:C.date,dir:C.dir,comment:C.fileCommentStr.length?C.fileCommentStr:null,unixPermissions:C.unixPermissions,dosPermissions:C.dosPermissions,createFolders:p.createFolders}),C.dir||(b.file(A).unsafeOriginalName=O)}return v.zipComment.length&&(b.comment=v.zipComment),b})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,c,a){var r=n("../utils"),o=n("../stream/GenericWorker");function i(l,d){o.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(d)}r.inherits(i,o),i.prototype._bindStream=function(l){var d=this;(this._stream=l).pause(),l.on("data",function(h){d.push({data:h,meta:{percent:0}})}).on("error",function(h){d.isPaused?this.generatedError=h:d.error(h)}).on("end",function(){d.isPaused?d._upstreamEnded=!0:d.end()})},i.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},c.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,c,a){var r=n("readable-stream").Readable;function o(i,l,d){r.call(this,l),this._helper=i;var h=this;i.on("data",function(u,x){h.push(u)||h._helper.pause(),d&&d(x)}).on("error",function(u){h.emit("error",u)}).on("end",function(){h.push(null)})}n("../utils").inherits(o,r),o.prototype._read=function(){this._helper.resume()},c.exports=o},{"../utils":32,"readable-stream":16}],14:[function(n,c,a){c.exports={isNode:typeof Buffer<"u",newBufferFrom:function(r,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(r,o);if(typeof r=="number")throw new Error('The "data" argument must not be a number');return new Buffer(r,o)},allocBuffer:function(r){if(Buffer.alloc)return Buffer.alloc(r);var o=new Buffer(r);return o.fill(0),o},isBuffer:function(r){return Buffer.isBuffer(r)},isStream:function(r){return r&&typeof r.on=="function"&&typeof r.pause=="function"&&typeof r.resume=="function"}}},{}],15:[function(n,c,a){function r(A,R,S){var T,P=i.getTypeOf(R),K=i.extend(S||{},h);K.date=K.date||new Date,K.compression!==null&&(K.compression=K.compression.toUpperCase()),typeof K.unixPermissions=="string"&&(K.unixPermissions=parseInt(K.unixPermissions,8)),K.unixPermissions&&16384&K.unixPermissions&&(K.dir=!0),K.dosPermissions&&16&K.dosPermissions&&(K.dir=!0),K.dir&&(A=y(A)),K.createFolders&&(T=v(A))&&k.call(this,T,!0);var $=P==="string"&&K.binary===!1&&K.base64===!1;S&&S.binary!==void 0||(K.binary=!$),(R instanceof u&&R.uncompressedSize===0||K.dir||!R||R.length===0)&&(K.base64=!1,K.binary=!0,R="",K.compression="STORE",P="string");var j=null;j=R instanceof u||R instanceof l?R:b.isNode&&b.isStream(R)?new m(A,R):i.prepareContent(A,R,K.binary,K.optimizedBinaryString,K.base64);var B=new x(A,j,K);this.files[A]=B}var o=n("./utf8"),i=n("./utils"),l=n("./stream/GenericWorker"),d=n("./stream/StreamHelper"),h=n("./defaults"),u=n("./compressedObject"),x=n("./zipObject"),p=n("./generate"),b=n("./nodejsUtils"),m=n("./nodejs/NodejsStreamInputAdapter"),v=function(A){A.slice(-1)==="/"&&(A=A.substring(0,A.length-1));var R=A.lastIndexOf("/");return 0<R?A.substring(0,R):""},y=function(A){return A.slice(-1)!=="/"&&(A+="/"),A},k=function(A,R){return R=R!==void 0?R:h.createFolders,A=y(A),this.files[A]||r.call(this,A,null,{dir:!0,createFolders:R}),this.files[A]};function C(A){return Object.prototype.toString.call(A)==="[object RegExp]"}var O={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(A){var R,S,T;for(R in this.files)T=this.files[R],(S=R.slice(this.root.length,R.length))&&R.slice(0,this.root.length)===this.root&&A(S,T)},filter:function(A){var R=[];return this.forEach(function(S,T){A(S,T)&&R.push(T)}),R},file:function(A,R,S){if(arguments.length!==1)return A=this.root+A,r.call(this,A,R,S),this;if(C(A)){var T=A;return this.filter(function(K,$){return!$.dir&&T.test(K)})}var P=this.files[this.root+A];return P&&!P.dir?P:null},folder:function(A){if(!A)return this;if(C(A))return this.filter(function(P,K){return K.dir&&A.test(P)});var R=this.root+A,S=k.call(this,R),T=this.clone();return T.root=S.name,T},remove:function(A){A=this.root+A;var R=this.files[A];if(R||(A.slice(-1)!=="/"&&(A+="/"),R=this.files[A]),R&&!R.dir)delete this.files[A];else for(var S=this.filter(function(P,K){return K.name.slice(0,A.length)===A}),T=0;T<S.length;T++)delete this.files[S[T].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(A){var R,S={};try{if((S=i.extend(A||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=S.type.toLowerCase(),S.compression=S.compression.toUpperCase(),S.type==="binarystring"&&(S.type="string"),!S.type)throw new Error("No output type specified.");i.checkSupport(S.type),S.platform!=="darwin"&&S.platform!=="freebsd"&&S.platform!=="linux"&&S.platform!=="sunos"||(S.platform="UNIX"),S.platform==="win32"&&(S.platform="DOS");var T=S.comment||this.comment||"";R=p.generateWorker(this,S,T)}catch(P){(R=new l("error")).error(P)}return new d(R,S.type||"string",S.mimeType)},generateAsync:function(A,R){return this.generateInternalStream(A).accumulate(R)},generateNodeStream:function(A,R){return(A=A||{}).type||(A.type="nodebuffer"),this.generateInternalStream(A).toNodejsStream(R)}};c.exports=O},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,c,a){c.exports=n("stream")},{stream:void 0}],17:[function(n,c,a){var r=n("./DataReader");function o(i){r.call(this,i);for(var l=0;l<this.data.length;l++)i[l]=255&i[l]}n("../utils").inherits(o,r),o.prototype.byteAt=function(i){return this.data[this.zero+i]},o.prototype.lastIndexOfSignature=function(i){for(var l=i.charCodeAt(0),d=i.charCodeAt(1),h=i.charCodeAt(2),u=i.charCodeAt(3),x=this.length-4;0<=x;--x)if(this.data[x]===l&&this.data[x+1]===d&&this.data[x+2]===h&&this.data[x+3]===u)return x-this.zero;return-1},o.prototype.readAndCheckSignature=function(i){var l=i.charCodeAt(0),d=i.charCodeAt(1),h=i.charCodeAt(2),u=i.charCodeAt(3),x=this.readData(4);return l===x[0]&&d===x[1]&&h===x[2]&&u===x[3]},o.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,l},c.exports=o},{"../utils":32,"./DataReader":18}],18:[function(n,c,a){var r=n("../utils");function o(i){this.data=i,this.length=i.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(i){this.checkIndex(this.index+i)},checkIndex:function(i){if(this.length<this.zero+i||i<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+i+"). Corrupted zip ?")},setIndex:function(i){this.checkIndex(i),this.index=i},skip:function(i){this.setIndex(this.index+i)},byteAt:function(){},readInt:function(i){var l,d=0;for(this.checkOffset(i),l=this.index+i-1;l>=this.index;l--)d=(d<<8)+this.byteAt(l);return this.index+=i,d},readString:function(i){return r.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},c.exports=o},{"../utils":32}],19:[function(n,c,a){var r=n("./Uint8ArrayReader");function o(i){r.call(this,i)}n("../utils").inherits(o,r),o.prototype.readData=function(i){this.checkOffset(i);var l=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,l},c.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,c,a){var r=n("./DataReader");function o(i){r.call(this,i)}n("../utils").inherits(o,r),o.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},o.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},o.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},o.prototype.readData=function(i){this.checkOffset(i);var l=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,l},c.exports=o},{"../utils":32,"./DataReader":18}],21:[function(n,c,a){var r=n("./ArrayReader");function o(i){r.call(this,i)}n("../utils").inherits(o,r),o.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,l},c.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(n,c,a){var r=n("../utils"),o=n("../support"),i=n("./ArrayReader"),l=n("./StringReader"),d=n("./NodeBufferReader"),h=n("./Uint8ArrayReader");c.exports=function(u){var x=r.getTypeOf(u);return r.checkSupport(x),x!=="string"||o.uint8array?x==="nodebuffer"?new d(u):o.uint8array?new h(r.transformTo("uint8array",u)):new i(r.transformTo("array",u)):new l(u)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,c,a){a.LOCAL_FILE_HEADER="PK",a.CENTRAL_FILE_HEADER="PK",a.CENTRAL_DIRECTORY_END="PK",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,c,a){var r=n("./GenericWorker"),o=n("../utils");function i(l){r.call(this,"ConvertWorker to "+l),this.destType=l}o.inherits(i,r),i.prototype.processChunk=function(l){this.push({data:o.transformTo(this.destType,l.data),meta:l.meta})},c.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(n,c,a){var r=n("./GenericWorker"),o=n("../crc32");function i(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(i,r),i.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},c.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,c,a){var r=n("../utils"),o=n("./GenericWorker");function i(l){o.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}r.inherits(i,o),i.prototype.processChunk=function(l){if(l){var d=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=d+l.data.length}o.prototype.processChunk.call(this,l)},c.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(n,c,a){var r=n("../utils"),o=n("./GenericWorker");function i(l){o.call(this,"DataWorker");var d=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(h){d.dataIsReady=!0,d.data=h,d.max=h&&h.length||0,d.type=r.getTypeOf(h),d.isPaused||d._tickAndRepeat()},function(h){d.error(h)})}r.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,d=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,d);break;case"uint8array":l=this.data.subarray(this.index,d);break;case"array":case"nodebuffer":l=this.data.slice(this.index,d)}return this.index=d,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},c.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(n,c,a){function r(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,i){return this._listeners[o].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,i){if(this._listeners[o])for(var l=0;l<this._listeners[o].length;l++)this._listeners[o][l].call(this,i)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var i=this;return o.on("data",function(l){i.processChunk(l)}),o.on("end",function(){i.end()}),o.on("error",function(l){i.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,i){return this.extraStreamInfo[o]=i,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},c.exports=r},{}],29:[function(n,c,a){var r=n("../utils"),o=n("./ConvertWorker"),i=n("./GenericWorker"),l=n("../base64"),d=n("../support"),h=n("../external"),u=null;if(d.nodestream)try{u=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function x(b,m){return new h.Promise(function(v,y){var k=[],C=b._internalType,O=b._outputType,A=b._mimeType;b.on("data",function(R,S){k.push(R),m&&m(S)}).on("error",function(R){k=[],y(R)}).on("end",function(){try{var R=(function(S,T,P){switch(S){case"blob":return r.newBlob(r.transformTo("arraybuffer",T),P);case"base64":return l.encode(T);default:return r.transformTo(S,T)}})(O,(function(S,T){var P,K=0,$=null,j=0;for(P=0;P<T.length;P++)j+=T[P].length;switch(S){case"string":return T.join("");case"array":return Array.prototype.concat.apply([],T);case"uint8array":for($=new Uint8Array(j),P=0;P<T.length;P++)$.set(T[P],K),K+=T[P].length;return $;case"nodebuffer":return Buffer.concat(T);default:throw new Error("concat : unsupported type '"+S+"'")}})(C,k),A);v(R)}catch(S){y(S)}k=[]}).resume()})}function p(b,m,v){var y=m;switch(m){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=m,this._mimeType=v,r.checkSupport(y),this._worker=b.pipe(new o(y)),b.lock()}catch(k){this._worker=new i("error"),this._worker.error(k)}}p.prototype={accumulate:function(b){return x(this,b)},on:function(b,m){var v=this;return b==="data"?this._worker.on(b,function(y){m.call(v,y.data,y.meta)}):this._worker.on(b,function(){r.delay(m,arguments,v)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(b){if(r.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:this._outputType!=="nodebuffer"},b)}},c.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,c,a){if(a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a.nodebuffer=typeof Buffer<"u",a.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")a.blob=!1;else{var r=new ArrayBuffer(0);try{a.blob=new Blob([r],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),a.blob=o.getBlob("application/zip").size===0}catch{a.blob=!1}}}try{a.nodestream=!!n("readable-stream").Readable}catch{a.nodestream=!1}},{"readable-stream":16}],31:[function(n,c,a){for(var r=n("./utils"),o=n("./support"),i=n("./nodejsUtils"),l=n("./stream/GenericWorker"),d=new Array(256),h=0;h<256;h++)d[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;d[254]=d[254]=1;function u(){l.call(this,"utf-8 decode"),this.leftOver=null}function x(){l.call(this,"utf-8 encode")}a.utf8encode=function(p){return o.nodebuffer?i.newBufferFrom(p,"utf-8"):(function(b){var m,v,y,k,C,O=b.length,A=0;for(k=0;k<O;k++)(64512&(v=b.charCodeAt(k)))==55296&&k+1<O&&(64512&(y=b.charCodeAt(k+1)))==56320&&(v=65536+(v-55296<<10)+(y-56320),k++),A+=v<128?1:v<2048?2:v<65536?3:4;for(m=o.uint8array?new Uint8Array(A):new Array(A),k=C=0;C<A;k++)(64512&(v=b.charCodeAt(k)))==55296&&k+1<O&&(64512&(y=b.charCodeAt(k+1)))==56320&&(v=65536+(v-55296<<10)+(y-56320),k++),v<128?m[C++]=v:(v<2048?m[C++]=192|v>>>6:(v<65536?m[C++]=224|v>>>12:(m[C++]=240|v>>>18,m[C++]=128|v>>>12&63),m[C++]=128|v>>>6&63),m[C++]=128|63&v);return m})(p)},a.utf8decode=function(p){return o.nodebuffer?r.transformTo("nodebuffer",p).toString("utf-8"):(function(b){var m,v,y,k,C=b.length,O=new Array(2*C);for(m=v=0;m<C;)if((y=b[m++])<128)O[v++]=y;else if(4<(k=d[y]))O[v++]=65533,m+=k-1;else{for(y&=k===2?31:k===3?15:7;1<k&&m<C;)y=y<<6|63&b[m++],k--;1<k?O[v++]=65533:y<65536?O[v++]=y:(y-=65536,O[v++]=55296|y>>10&1023,O[v++]=56320|1023&y)}return O.length!==v&&(O.subarray?O=O.subarray(0,v):O.length=v),r.applyFromCharCode(O)})(p=r.transformTo(o.uint8array?"uint8array":"array",p))},r.inherits(u,l),u.prototype.processChunk=function(p){var b=r.transformTo(o.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var m=b;(b=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),b.set(m,this.leftOver.length)}else b=this.leftOver.concat(b);this.leftOver=null}var v=(function(k,C){var O;for((C=C||k.length)>k.length&&(C=k.length),O=C-1;0<=O&&(192&k[O])==128;)O--;return O<0||O===0?C:O+d[k[O]]>C?O:C})(b),y=b;v!==b.length&&(o.uint8array?(y=b.subarray(0,v),this.leftOver=b.subarray(v,b.length)):(y=b.slice(0,v),this.leftOver=b.slice(v,b.length))),this.push({data:a.utf8decode(y),meta:p.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=u,r.inherits(x,l),x.prototype.processChunk=function(p){this.push({data:a.utf8encode(p.data),meta:p.meta})},a.Utf8EncodeWorker=x},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,c,a){var r=n("./support"),o=n("./base64"),i=n("./nodejsUtils"),l=n("./external");function d(m){return m}function h(m,v){for(var y=0;y<m.length;++y)v[y]=255&m.charCodeAt(y);return v}n("setimmediate"),a.newBlob=function(m,v){a.checkSupport("blob");try{return new Blob([m],{type:v})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(m),y.getBlob(v)}catch{throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(m,v,y){var k=[],C=0,O=m.length;if(O<=y)return String.fromCharCode.apply(null,m);for(;C<O;)v==="array"||v==="nodebuffer"?k.push(String.fromCharCode.apply(null,m.slice(C,Math.min(C+y,O)))):k.push(String.fromCharCode.apply(null,m.subarray(C,Math.min(C+y,O)))),C+=y;return k.join("")},stringifyByChar:function(m){for(var v="",y=0;y<m.length;y++)v+=String.fromCharCode(m[y]);return v},applyCanBeUsed:{uint8array:(function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,i.allocBuffer(1)).length===1}catch{return!1}})()}};function x(m){var v=65536,y=a.getTypeOf(m),k=!0;if(y==="uint8array"?k=u.applyCanBeUsed.uint8array:y==="nodebuffer"&&(k=u.applyCanBeUsed.nodebuffer),k)for(;1<v;)try{return u.stringifyByChunk(m,y,v)}catch{v=Math.floor(v/2)}return u.stringifyByChar(m)}function p(m,v){for(var y=0;y<m.length;y++)v[y]=m[y];return v}a.applyFromCharCode=x;var b={};b.string={string:d,array:function(m){return h(m,new Array(m.length))},arraybuffer:function(m){return b.string.uint8array(m).buffer},uint8array:function(m){return h(m,new Uint8Array(m.length))},nodebuffer:function(m){return h(m,i.allocBuffer(m.length))}},b.array={string:x,array:d,arraybuffer:function(m){return new Uint8Array(m).buffer},uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return i.newBufferFrom(m)}},b.arraybuffer={string:function(m){return x(new Uint8Array(m))},array:function(m){return p(new Uint8Array(m),new Array(m.byteLength))},arraybuffer:d,uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return i.newBufferFrom(new Uint8Array(m))}},b.uint8array={string:x,array:function(m){return p(m,new Array(m.length))},arraybuffer:function(m){return m.buffer},uint8array:d,nodebuffer:function(m){return i.newBufferFrom(m)}},b.nodebuffer={string:x,array:function(m){return p(m,new Array(m.length))},arraybuffer:function(m){return b.nodebuffer.uint8array(m).buffer},uint8array:function(m){return p(m,new Uint8Array(m.length))},nodebuffer:d},a.transformTo=function(m,v){if(v=v||"",!m)return v;a.checkSupport(m);var y=a.getTypeOf(v);return b[y][m](v)},a.resolve=function(m){for(var v=m.split("/"),y=[],k=0;k<v.length;k++){var C=v[k];C==="."||C===""&&k!==0&&k!==v.length-1||(C===".."?y.pop():y.push(C))}return y.join("/")},a.getTypeOf=function(m){return typeof m=="string"?"string":Object.prototype.toString.call(m)==="[object Array]"?"array":r.nodebuffer&&i.isBuffer(m)?"nodebuffer":r.uint8array&&m instanceof Uint8Array?"uint8array":r.arraybuffer&&m instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(m){if(!r[m.toLowerCase()])throw new Error(m+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(m){var v,y,k="";for(y=0;y<(m||"").length;y++)k+="\\x"+((v=m.charCodeAt(y))<16?"0":"")+v.toString(16).toUpperCase();return k},a.delay=function(m,v,y){setImmediate(function(){m.apply(y||null,v||[])})},a.inherits=function(m,v){function y(){}y.prototype=v.prototype,m.prototype=new y},a.extend=function(){var m,v,y={};for(m=0;m<arguments.length;m++)for(v in arguments[m])Object.prototype.hasOwnProperty.call(arguments[m],v)&&y[v]===void 0&&(y[v]=arguments[m][v]);return y},a.prepareContent=function(m,v,y,k,C){return l.Promise.resolve(v).then(function(O){return r.blob&&(O instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(O))!==-1)&&typeof FileReader<"u"?new l.Promise(function(A,R){var S=new FileReader;S.onload=function(T){A(T.target.result)},S.onerror=function(T){R(T.target.error)},S.readAsArrayBuffer(O)}):O}).then(function(O){var A=a.getTypeOf(O);return A?(A==="arraybuffer"?O=a.transformTo("uint8array",O):A==="string"&&(C?O=o.decode(O):y&&k!==!0&&(O=(function(R){return h(R,r.uint8array?new Uint8Array(R.length):new Array(R.length))})(O))),O):l.Promise.reject(new Error("Can't read the data of '"+m+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,c,a){var r=n("./reader/readerFor"),o=n("./utils"),i=n("./signature"),l=n("./zipEntry"),d=n("./support");function h(u){this.files=[],this.loadOptions=u}h.prototype={checkSignature:function(u){if(!this.reader.readAndCheckSignature(u)){this.reader.index-=4;var x=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(x)+", expected "+o.pretty(u)+")")}},isSignature:function(u,x){var p=this.reader.index;this.reader.setIndex(u);var b=this.reader.readString(4)===x;return this.reader.setIndex(p),b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var u=this.reader.readData(this.zipCommentLength),x=d.uint8array?"uint8array":"array",p=o.transformTo(x,u);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var u,x,p,b=this.zip64EndOfCentralSize-44;0<b;)u=this.reader.readInt(2),x=this.reader.readInt(4),p=this.reader.readData(x),this.zip64ExtensibleData[u]={id:u,length:x,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var u,x;for(u=0;u<this.files.length;u++)x=this.files[u],this.reader.setIndex(x.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),x.readLocalPart(this.reader),x.handleUTF8(),x.processAttributes()},readCentralDir:function(){var u;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(u=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(u);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var u=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(u<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(u);var x=u;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(u=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(u),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var b=x-p;if(0<b)this.isSignature(x,i.CENTRAL_FILE_HEADER)||(this.reader.zero=b);else if(b<0)throw new Error("Corrupted zip: missing "+Math.abs(b)+" bytes.")},prepareReader:function(u){this.reader=r(u)},load:function(u){this.prepareReader(u),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},c.exports=h},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,c,a){var r=n("./reader/readerFor"),o=n("./utils"),i=n("./compressedObject"),l=n("./crc32"),d=n("./utf8"),h=n("./compressions"),u=n("./support");function x(p,b){this.options=p,this.loadOptions=b}x.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var b,m;if(p.skip(22),this.fileNameLength=p.readInt(2),m=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(m),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((b=(function(v){for(var y in h)if(Object.prototype.hasOwnProperty.call(h,y)&&h[y].magic===v)return h[y];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,b,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var b=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(b),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=r(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var b,m,v,y=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<y;)b=p.readInt(2),m=p.readInt(2),v=p.readData(m),this.extraFields[b]={id:b,length:m,value:v};p.setIndex(y)},handleUTF8:function(){var p=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=d.utf8decode(this.fileName),this.fileCommentStr=d.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(b!==null)this.fileNameStr=b;else{var m=o.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(m)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var y=o.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var b=r(p.value);return b.readInt(1)!==1||l(this.fileName)!==b.readInt(4)?null:d.utf8decode(b.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var b=r(p.value);return b.readInt(1)!==1||l(this.fileComment)!==b.readInt(4)?null:d.utf8decode(b.readData(p.length-5))}return null}},c.exports=x},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,c,a){function r(b,m,v){this.name=b,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=m,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var o=n("./stream/StreamHelper"),i=n("./stream/DataWorker"),l=n("./utf8"),d=n("./compressedObject"),h=n("./stream/GenericWorker");r.prototype={internalStream:function(b){var m=null,v="string";try{if(!b)throw new Error("No output type specified.");var y=(v=b.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),m=this._decompressWorker();var k=!this._dataBinary;k&&!y&&(m=m.pipe(new l.Utf8EncodeWorker)),!k&&y&&(m=m.pipe(new l.Utf8DecodeWorker))}catch(C){(m=new h("error")).error(C)}return new o(m,v,"")},async:function(b,m){return this.internalStream(b).accumulate(m)},nodeStream:function(b,m){return this.internalStream(b||"nodebuffer").toNodejsStream(m)},_compressWorker:function(b,m){if(this._data instanceof d&&this._data.compression.magic===b.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new l.Utf8EncodeWorker)),d.createWorkerFrom(v,b,m)},_decompressWorker:function(){return this._data instanceof d?this._data.getContentWorker():this._data instanceof h?this._data:new i(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],x=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<u.length;p++)r.prototype[u[p]]=x;c.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,c,a){(function(r){var o,i,l=r.MutationObserver||r.WebKitMutationObserver;if(l){var d=0,h=new l(b),u=r.document.createTextNode("");h.observe(u,{characterData:!0}),o=function(){u.data=d=++d%2}}else if(r.setImmediate||r.MessageChannel===void 0)o="document"in r&&"onreadystatechange"in r.document.createElement("script")?function(){var m=r.document.createElement("script");m.onreadystatechange=function(){b(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},r.document.documentElement.appendChild(m)}:function(){setTimeout(b,0)};else{var x=new r.MessageChannel;x.port1.onmessage=b,o=function(){x.port2.postMessage(0)}}var p=[];function b(){var m,v;i=!0;for(var y=p.length;y;){for(v=p,p=[],m=-1;++m<y;)v[m]();y=p.length}i=!1}c.exports=function(m){p.push(m)!==1||i||o()}}).call(this,typeof Dt<"u"?Dt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,c,a){var r=n("immediate");function o(){}var i={},l=["REJECTED"],d=["FULFILLED"],h=["PENDING"];function u(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,y!==o&&m(this,y)}function x(y,k,C){this.promise=y,typeof k=="function"&&(this.onFulfilled=k,this.callFulfilled=this.otherCallFulfilled),typeof C=="function"&&(this.onRejected=C,this.callRejected=this.otherCallRejected)}function p(y,k,C){r(function(){var O;try{O=k(C)}catch(A){return i.reject(y,A)}O===y?i.reject(y,new TypeError("Cannot resolve promise with itself")):i.resolve(y,O)})}function b(y){var k=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof k=="function")return function(){k.apply(y,arguments)}}function m(y,k){var C=!1;function O(S){C||(C=!0,i.reject(y,S))}function A(S){C||(C=!0,i.resolve(y,S))}var R=v(function(){k(A,O)});R.status==="error"&&O(R.value)}function v(y,k){var C={};try{C.value=y(k),C.status="success"}catch(O){C.status="error",C.value=O}return C}(c.exports=u).prototype.finally=function(y){if(typeof y!="function")return this;var k=this.constructor;return this.then(function(C){return k.resolve(y()).then(function(){return C})},function(C){return k.resolve(y()).then(function(){throw C})})},u.prototype.catch=function(y){return this.then(null,y)},u.prototype.then=function(y,k){if(typeof y!="function"&&this.state===d||typeof k!="function"&&this.state===l)return this;var C=new this.constructor(o);return this.state!==h?p(C,this.state===d?y:k,this.outcome):this.queue.push(new x(C,y,k)),C},x.prototype.callFulfilled=function(y){i.resolve(this.promise,y)},x.prototype.otherCallFulfilled=function(y){p(this.promise,this.onFulfilled,y)},x.prototype.callRejected=function(y){i.reject(this.promise,y)},x.prototype.otherCallRejected=function(y){p(this.promise,this.onRejected,y)},i.resolve=function(y,k){var C=v(b,k);if(C.status==="error")return i.reject(y,C.value);var O=C.value;if(O)m(y,O);else{y.state=d,y.outcome=k;for(var A=-1,R=y.queue.length;++A<R;)y.queue[A].callFulfilled(k)}return y},i.reject=function(y,k){y.state=l,y.outcome=k;for(var C=-1,O=y.queue.length;++C<O;)y.queue[C].callRejected(k);return y},u.resolve=function(y){return y instanceof this?y:i.resolve(new this(o),y)},u.reject=function(y){var k=new this(o);return i.reject(k,y)},u.all=function(y){var k=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var C=y.length,O=!1;if(!C)return this.resolve([]);for(var A=new Array(C),R=0,S=-1,T=new this(o);++S<C;)P(y[S],S);return T;function P(K,$){k.resolve(K).then(function(j){A[$]=j,++R!==C||O||(O=!0,i.resolve(T,A))},function(j){O||(O=!0,i.reject(T,j))})}},u.race=function(y){var k=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var C=y.length,O=!1;if(!C)return this.resolve([]);for(var A=-1,R=new this(o);++A<C;)S=y[A],k.resolve(S).then(function(T){O||(O=!0,i.resolve(R,T))},function(T){O||(O=!0,i.reject(R,T))});var S;return R}},{immediate:36}],38:[function(n,c,a){var r={};(0,n("./lib/utils/common").assign)(r,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),c.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,c,a){var r=n("./zlib/deflate"),o=n("./utils/common"),i=n("./utils/strings"),l=n("./zlib/messages"),d=n("./zlib/zstream"),h=Object.prototype.toString,u=0,x=-1,p=0,b=8;function m(y){if(!(this instanceof m))return new m(y);this.options=o.assign({level:x,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},y||{});var k=this.options;k.raw&&0<k.windowBits?k.windowBits=-k.windowBits:k.gzip&&0<k.windowBits&&k.windowBits<16&&(k.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var C=r.deflateInit2(this.strm,k.level,k.method,k.windowBits,k.memLevel,k.strategy);if(C!==u)throw new Error(l[C]);if(k.header&&r.deflateSetHeader(this.strm,k.header),k.dictionary){var O;if(O=typeof k.dictionary=="string"?i.string2buf(k.dictionary):h.call(k.dictionary)==="[object ArrayBuffer]"?new Uint8Array(k.dictionary):k.dictionary,(C=r.deflateSetDictionary(this.strm,O))!==u)throw new Error(l[C]);this._dict_set=!0}}function v(y,k){var C=new m(k);if(C.push(y,!0),C.err)throw C.msg||l[C.err];return C.result}m.prototype.push=function(y,k){var C,O,A=this.strm,R=this.options.chunkSize;if(this.ended)return!1;O=k===~~k?k:k===!0?4:0,typeof y=="string"?A.input=i.string2buf(y):h.call(y)==="[object ArrayBuffer]"?A.input=new Uint8Array(y):A.input=y,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new o.Buf8(R),A.next_out=0,A.avail_out=R),(C=r.deflate(A,O))!==1&&C!==u)return this.onEnd(C),!(this.ended=!0);A.avail_out!==0&&(A.avail_in!==0||O!==4&&O!==2)||(this.options.to==="string"?this.onData(i.buf2binstring(o.shrinkBuf(A.output,A.next_out))):this.onData(o.shrinkBuf(A.output,A.next_out)))}while((0<A.avail_in||A.avail_out===0)&&C!==1);return O===4?(C=r.deflateEnd(this.strm),this.onEnd(C),this.ended=!0,C===u):O!==2||(this.onEnd(u),!(A.avail_out=0))},m.prototype.onData=function(y){this.chunks.push(y)},m.prototype.onEnd=function(y){y===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},a.Deflate=m,a.deflate=v,a.deflateRaw=function(y,k){return(k=k||{}).raw=!0,v(y,k)},a.gzip=function(y,k){return(k=k||{}).gzip=!0,v(y,k)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,c,a){var r=n("./zlib/inflate"),o=n("./utils/common"),i=n("./utils/strings"),l=n("./zlib/constants"),d=n("./zlib/messages"),h=n("./zlib/zstream"),u=n("./zlib/gzheader"),x=Object.prototype.toString;function p(m){if(!(this instanceof p))return new p(m);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},m||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||m&&m.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&(15&v.windowBits)==0&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var y=r.inflateInit2(this.strm,v.windowBits);if(y!==l.Z_OK)throw new Error(d[y]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function b(m,v){var y=new p(v);if(y.push(m,!0),y.err)throw y.msg||d[y.err];return y.result}p.prototype.push=function(m,v){var y,k,C,O,A,R,S=this.strm,T=this.options.chunkSize,P=this.options.dictionary,K=!1;if(this.ended)return!1;k=v===~~v?v:v===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof m=="string"?S.input=i.binstring2buf(m):x.call(m)==="[object ArrayBuffer]"?S.input=new Uint8Array(m):S.input=m,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new o.Buf8(T),S.next_out=0,S.avail_out=T),(y=r.inflate(S,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&P&&(R=typeof P=="string"?i.string2buf(P):x.call(P)==="[object ArrayBuffer]"?new Uint8Array(P):P,y=r.inflateSetDictionary(this.strm,R)),y===l.Z_BUF_ERROR&&K===!0&&(y=l.Z_OK,K=!1),y!==l.Z_STREAM_END&&y!==l.Z_OK)return this.onEnd(y),!(this.ended=!0);S.next_out&&(S.avail_out!==0&&y!==l.Z_STREAM_END&&(S.avail_in!==0||k!==l.Z_FINISH&&k!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(C=i.utf8border(S.output,S.next_out),O=S.next_out-C,A=i.buf2string(S.output,C),S.next_out=O,S.avail_out=T-O,O&&o.arraySet(S.output,S.output,C,O,0),this.onData(A)):this.onData(o.shrinkBuf(S.output,S.next_out)))),S.avail_in===0&&S.avail_out===0&&(K=!0)}while((0<S.avail_in||S.avail_out===0)&&y!==l.Z_STREAM_END);return y===l.Z_STREAM_END&&(k=l.Z_FINISH),k===l.Z_FINISH?(y=r.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===l.Z_OK):k!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(S.avail_out=0))},p.prototype.onData=function(m){this.chunks.push(m)},p.prototype.onEnd=function(m){m===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},a.Inflate=p,a.inflate=b,a.inflateRaw=function(m,v){return(v=v||{}).raw=!0,b(m,v)},a.ungzip=b},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,c,a){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";a.assign=function(l){for(var d=Array.prototype.slice.call(arguments,1);d.length;){var h=d.shift();if(h){if(typeof h!="object")throw new TypeError(h+"must be non-object");for(var u in h)h.hasOwnProperty(u)&&(l[u]=h[u])}}return l},a.shrinkBuf=function(l,d){return l.length===d?l:l.subarray?l.subarray(0,d):(l.length=d,l)};var o={arraySet:function(l,d,h,u,x){if(d.subarray&&l.subarray)l.set(d.subarray(h,h+u),x);else for(var p=0;p<u;p++)l[x+p]=d[h+p]},flattenChunks:function(l){var d,h,u,x,p,b;for(d=u=0,h=l.length;d<h;d++)u+=l[d].length;for(b=new Uint8Array(u),d=x=0,h=l.length;d<h;d++)p=l[d],b.set(p,x),x+=p.length;return b}},i={arraySet:function(l,d,h,u,x){for(var p=0;p<u;p++)l[x+p]=d[h+p]},flattenChunks:function(l){return[].concat.apply([],l)}};a.setTyped=function(l){l?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,o)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,i))},a.setTyped(r)},{}],42:[function(n,c,a){var r=n("./common"),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{i=!1}for(var l=new r.Buf8(256),d=0;d<256;d++)l[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;function h(u,x){if(x<65537&&(u.subarray&&i||!u.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(u,x));for(var p="",b=0;b<x;b++)p+=String.fromCharCode(u[b]);return p}l[254]=l[254]=1,a.string2buf=function(u){var x,p,b,m,v,y=u.length,k=0;for(m=0;m<y;m++)(64512&(p=u.charCodeAt(m)))==55296&&m+1<y&&(64512&(b=u.charCodeAt(m+1)))==56320&&(p=65536+(p-55296<<10)+(b-56320),m++),k+=p<128?1:p<2048?2:p<65536?3:4;for(x=new r.Buf8(k),m=v=0;v<k;m++)(64512&(p=u.charCodeAt(m)))==55296&&m+1<y&&(64512&(b=u.charCodeAt(m+1)))==56320&&(p=65536+(p-55296<<10)+(b-56320),m++),p<128?x[v++]=p:(p<2048?x[v++]=192|p>>>6:(p<65536?x[v++]=224|p>>>12:(x[v++]=240|p>>>18,x[v++]=128|p>>>12&63),x[v++]=128|p>>>6&63),x[v++]=128|63&p);return x},a.buf2binstring=function(u){return h(u,u.length)},a.binstring2buf=function(u){for(var x=new r.Buf8(u.length),p=0,b=x.length;p<b;p++)x[p]=u.charCodeAt(p);return x},a.buf2string=function(u,x){var p,b,m,v,y=x||u.length,k=new Array(2*y);for(p=b=0;p<y;)if((m=u[p++])<128)k[b++]=m;else if(4<(v=l[m]))k[b++]=65533,p+=v-1;else{for(m&=v===2?31:v===3?15:7;1<v&&p<y;)m=m<<6|63&u[p++],v--;1<v?k[b++]=65533:m<65536?k[b++]=m:(m-=65536,k[b++]=55296|m>>10&1023,k[b++]=56320|1023&m)}return h(k,b)},a.utf8border=function(u,x){var p;for((x=x||u.length)>u.length&&(x=u.length),p=x-1;0<=p&&(192&u[p])==128;)p--;return p<0||p===0?x:p+l[u[p]]>x?p:x}},{"./common":41}],43:[function(n,c,a){c.exports=function(r,o,i,l){for(var d=65535&r|0,h=r>>>16&65535|0,u=0;i!==0;){for(i-=u=2e3<i?2e3:i;h=h+(d=d+o[l++]|0)|0,--u;);d%=65521,h%=65521}return d|h<<16|0}},{}],44:[function(n,c,a){c.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,c,a){var r=(function(){for(var o,i=[],l=0;l<256;l++){o=l;for(var d=0;d<8;d++)o=1&o?3988292384^o>>>1:o>>>1;i[l]=o}return i})();c.exports=function(o,i,l,d){var h=r,u=d+l;o^=-1;for(var x=d;x<u;x++)o=o>>>8^h[255&(o^i[x])];return-1^o}},{}],46:[function(n,c,a){var r,o=n("../utils/common"),i=n("./trees"),l=n("./adler32"),d=n("./crc32"),h=n("./messages"),u=0,x=4,p=0,b=-2,m=-1,v=4,y=2,k=8,C=9,O=286,A=30,R=19,S=2*O+1,T=15,P=3,K=258,$=K+P+1,j=42,B=113,g=1,G=2,I=3,z=4;function te(f,Q){return f.msg=h[Q],Q}function H(f){return(f<<1)-(4<f?9:0)}function ne(f){for(var Q=f.length;0<=--Q;)f[Q]=0}function w(f){var Q=f.state,q=Q.pending;q>f.avail_out&&(q=f.avail_out),q!==0&&(o.arraySet(f.output,Q.pending_buf,Q.pending_out,q,f.next_out),f.next_out+=q,Q.pending_out+=q,f.total_out+=q,f.avail_out-=q,Q.pending-=q,Q.pending===0&&(Q.pending_out=0))}function N(f,Q){i._tr_flush_block(f,0<=f.block_start?f.block_start:-1,f.strstart-f.block_start,Q),f.block_start=f.strstart,w(f.strm)}function U(f,Q){f.pending_buf[f.pending++]=Q}function L(f,Q){f.pending_buf[f.pending++]=Q>>>8&255,f.pending_buf[f.pending++]=255&Q}function F(f,Q){var q,E,_=f.max_chain_length,M=f.strstart,V=f.prev_length,Y=f.nice_match,D=f.strstart>f.w_size-$?f.strstart-(f.w_size-$):0,J=f.window,ie=f.w_mask,X=f.prev,oe=f.strstart+K,pe=J[M+V-1],he=J[M+V];f.prev_length>=f.good_match&&(_>>=2),Y>f.lookahead&&(Y=f.lookahead);do if(J[(q=Q)+V]===he&&J[q+V-1]===pe&&J[q]===J[M]&&J[++q]===J[M+1]){M+=2,q++;do;while(J[++M]===J[++q]&&J[++M]===J[++q]&&J[++M]===J[++q]&&J[++M]===J[++q]&&J[++M]===J[++q]&&J[++M]===J[++q]&&J[++M]===J[++q]&&J[++M]===J[++q]&&M<oe);if(E=K-(oe-M),M=oe-K,V<E){if(f.match_start=Q,Y<=(V=E))break;pe=J[M+V-1],he=J[M+V]}}while((Q=X[Q&ie])>D&&--_!=0);return V<=f.lookahead?V:f.lookahead}function ae(f){var Q,q,E,_,M,V,Y,D,J,ie,X=f.w_size;do{if(_=f.window_size-f.lookahead-f.strstart,f.strstart>=X+(X-$)){for(o.arraySet(f.window,f.window,X,X,0),f.match_start-=X,f.strstart-=X,f.block_start-=X,Q=q=f.hash_size;E=f.head[--Q],f.head[Q]=X<=E?E-X:0,--q;);for(Q=q=X;E=f.prev[--Q],f.prev[Q]=X<=E?E-X:0,--q;);_+=X}if(f.strm.avail_in===0)break;if(V=f.strm,Y=f.window,D=f.strstart+f.lookahead,J=_,ie=void 0,ie=V.avail_in,J<ie&&(ie=J),q=ie===0?0:(V.avail_in-=ie,o.arraySet(Y,V.input,V.next_in,ie,D),V.state.wrap===1?V.adler=l(V.adler,Y,ie,D):V.state.wrap===2&&(V.adler=d(V.adler,Y,ie,D)),V.next_in+=ie,V.total_in+=ie,ie),f.lookahead+=q,f.lookahead+f.insert>=P)for(M=f.strstart-f.insert,f.ins_h=f.window[M],f.ins_h=(f.ins_h<<f.hash_shift^f.window[M+1])&f.hash_mask;f.insert&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[M+P-1])&f.hash_mask,f.prev[M&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=M,M++,f.insert--,!(f.lookahead+f.insert<P)););}while(f.lookahead<$&&f.strm.avail_in!==0)}function le(f,Q){for(var q,E;;){if(f.lookahead<$){if(ae(f),f.lookahead<$&&Q===u)return g;if(f.lookahead===0)break}if(q=0,f.lookahead>=P&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+P-1])&f.hash_mask,q=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),q!==0&&f.strstart-q<=f.w_size-$&&(f.match_length=F(f,q)),f.match_length>=P)if(E=i._tr_tally(f,f.strstart-f.match_start,f.match_length-P),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=P){for(f.match_length--;f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+P-1])&f.hash_mask,q=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart,--f.match_length!=0;);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else E=i._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(E&&(N(f,!1),f.strm.avail_out===0))return g}return f.insert=f.strstart<P-1?f.strstart:P-1,Q===x?(N(f,!0),f.strm.avail_out===0?I:z):f.last_lit&&(N(f,!1),f.strm.avail_out===0)?g:G}function re(f,Q){for(var q,E,_;;){if(f.lookahead<$){if(ae(f),f.lookahead<$&&Q===u)return g;if(f.lookahead===0)break}if(q=0,f.lookahead>=P&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+P-1])&f.hash_mask,q=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),f.prev_length=f.match_length,f.prev_match=f.match_start,f.match_length=P-1,q!==0&&f.prev_length<f.max_lazy_match&&f.strstart-q<=f.w_size-$&&(f.match_length=F(f,q),f.match_length<=5&&(f.strategy===1||f.match_length===P&&4096<f.strstart-f.match_start)&&(f.match_length=P-1)),f.prev_length>=P&&f.match_length<=f.prev_length){for(_=f.strstart+f.lookahead-P,E=i._tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-P),f.lookahead-=f.prev_length-1,f.prev_length-=2;++f.strstart<=_&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+P-1])&f.hash_mask,q=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),--f.prev_length!=0;);if(f.match_available=0,f.match_length=P-1,f.strstart++,E&&(N(f,!1),f.strm.avail_out===0))return g}else if(f.match_available){if((E=i._tr_tally(f,0,f.window[f.strstart-1]))&&N(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return g}else f.match_available=1,f.strstart++,f.lookahead--}return f.match_available&&(E=i._tr_tally(f,0,f.window[f.strstart-1]),f.match_available=0),f.insert=f.strstart<P-1?f.strstart:P-1,Q===x?(N(f,!0),f.strm.avail_out===0?I:z):f.last_lit&&(N(f,!1),f.strm.avail_out===0)?g:G}function ce(f,Q,q,E,_){this.good_length=f,this.max_lazy=Q,this.nice_length=q,this.max_chain=E,this.func=_}function xe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=k,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*S),this.dyn_dtree=new o.Buf16(2*(2*A+1)),this.bl_tree=new o.Buf16(2*(2*R+1)),ne(this.dyn_ltree),ne(this.dyn_dtree),ne(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(T+1),this.heap=new o.Buf16(2*O+1),ne(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*O+1),ne(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ge(f){var Q;return f&&f.state?(f.total_in=f.total_out=0,f.data_type=y,(Q=f.state).pending=0,Q.pending_out=0,Q.wrap<0&&(Q.wrap=-Q.wrap),Q.status=Q.wrap?j:B,f.adler=Q.wrap===2?0:1,Q.last_flush=u,i._tr_init(Q),p):te(f,b)}function ke(f){var Q=ge(f);return Q===p&&(function(q){q.window_size=2*q.w_size,ne(q.head),q.max_lazy_match=r[q.level].max_lazy,q.good_match=r[q.level].good_length,q.nice_match=r[q.level].nice_length,q.max_chain_length=r[q.level].max_chain,q.strstart=0,q.block_start=0,q.lookahead=0,q.insert=0,q.match_length=q.prev_length=P-1,q.match_available=0,q.ins_h=0})(f.state),Q}function Pe(f,Q,q,E,_,M){if(!f)return b;var V=1;if(Q===m&&(Q=6),E<0?(V=0,E=-E):15<E&&(V=2,E-=16),_<1||C<_||q!==k||E<8||15<E||Q<0||9<Q||M<0||v<M)return te(f,b);E===8&&(E=9);var Y=new xe;return(f.state=Y).strm=f,Y.wrap=V,Y.gzhead=null,Y.w_bits=E,Y.w_size=1<<Y.w_bits,Y.w_mask=Y.w_size-1,Y.hash_bits=_+7,Y.hash_size=1<<Y.hash_bits,Y.hash_mask=Y.hash_size-1,Y.hash_shift=~~((Y.hash_bits+P-1)/P),Y.window=new o.Buf8(2*Y.w_size),Y.head=new o.Buf16(Y.hash_size),Y.prev=new o.Buf16(Y.w_size),Y.lit_bufsize=1<<_+6,Y.pending_buf_size=4*Y.lit_bufsize,Y.pending_buf=new o.Buf8(Y.pending_buf_size),Y.d_buf=1*Y.lit_bufsize,Y.l_buf=3*Y.lit_bufsize,Y.level=Q,Y.strategy=M,Y.method=q,ke(f)}r=[new ce(0,0,0,0,function(f,Q){var q=65535;for(q>f.pending_buf_size-5&&(q=f.pending_buf_size-5);;){if(f.lookahead<=1){if(ae(f),f.lookahead===0&&Q===u)return g;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;var E=f.block_start+q;if((f.strstart===0||f.strstart>=E)&&(f.lookahead=f.strstart-E,f.strstart=E,N(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-$&&(N(f,!1),f.strm.avail_out===0))return g}return f.insert=0,Q===x?(N(f,!0),f.strm.avail_out===0?I:z):(f.strstart>f.block_start&&(N(f,!1),f.strm.avail_out),g)}),new ce(4,4,8,4,le),new ce(4,5,16,8,le),new ce(4,6,32,32,le),new ce(4,4,16,16,re),new ce(8,16,32,32,re),new ce(8,16,128,128,re),new ce(8,32,128,256,re),new ce(32,128,258,1024,re),new ce(32,258,258,4096,re)],a.deflateInit=function(f,Q){return Pe(f,Q,k,15,8,0)},a.deflateInit2=Pe,a.deflateReset=ke,a.deflateResetKeep=ge,a.deflateSetHeader=function(f,Q){return f&&f.state?f.state.wrap!==2?b:(f.state.gzhead=Q,p):b},a.deflate=function(f,Q){var q,E,_,M;if(!f||!f.state||5<Q||Q<0)return f?te(f,b):b;if(E=f.state,!f.output||!f.input&&f.avail_in!==0||E.status===666&&Q!==x)return te(f,f.avail_out===0?-5:b);if(E.strm=f,q=E.last_flush,E.last_flush=Q,E.status===j)if(E.wrap===2)f.adler=0,U(E,31),U(E,139),U(E,8),E.gzhead?(U(E,(E.gzhead.text?1:0)+(E.gzhead.hcrc?2:0)+(E.gzhead.extra?4:0)+(E.gzhead.name?8:0)+(E.gzhead.comment?16:0)),U(E,255&E.gzhead.time),U(E,E.gzhead.time>>8&255),U(E,E.gzhead.time>>16&255),U(E,E.gzhead.time>>24&255),U(E,E.level===9?2:2<=E.strategy||E.level<2?4:0),U(E,255&E.gzhead.os),E.gzhead.extra&&E.gzhead.extra.length&&(U(E,255&E.gzhead.extra.length),U(E,E.gzhead.extra.length>>8&255)),E.gzhead.hcrc&&(f.adler=d(f.adler,E.pending_buf,E.pending,0)),E.gzindex=0,E.status=69):(U(E,0),U(E,0),U(E,0),U(E,0),U(E,0),U(E,E.level===9?2:2<=E.strategy||E.level<2?4:0),U(E,3),E.status=B);else{var V=k+(E.w_bits-8<<4)<<8;V|=(2<=E.strategy||E.level<2?0:E.level<6?1:E.level===6?2:3)<<6,E.strstart!==0&&(V|=32),V+=31-V%31,E.status=B,L(E,V),E.strstart!==0&&(L(E,f.adler>>>16),L(E,65535&f.adler)),f.adler=1}if(E.status===69)if(E.gzhead.extra){for(_=E.pending;E.gzindex<(65535&E.gzhead.extra.length)&&(E.pending!==E.pending_buf_size||(E.gzhead.hcrc&&E.pending>_&&(f.adler=d(f.adler,E.pending_buf,E.pending-_,_)),w(f),_=E.pending,E.pending!==E.pending_buf_size));)U(E,255&E.gzhead.extra[E.gzindex]),E.gzindex++;E.gzhead.hcrc&&E.pending>_&&(f.adler=d(f.adler,E.pending_buf,E.pending-_,_)),E.gzindex===E.gzhead.extra.length&&(E.gzindex=0,E.status=73)}else E.status=73;if(E.status===73)if(E.gzhead.name){_=E.pending;do{if(E.pending===E.pending_buf_size&&(E.gzhead.hcrc&&E.pending>_&&(f.adler=d(f.adler,E.pending_buf,E.pending-_,_)),w(f),_=E.pending,E.pending===E.pending_buf_size)){M=1;break}M=E.gzindex<E.gzhead.name.length?255&E.gzhead.name.charCodeAt(E.gzindex++):0,U(E,M)}while(M!==0);E.gzhead.hcrc&&E.pending>_&&(f.adler=d(f.adler,E.pending_buf,E.pending-_,_)),M===0&&(E.gzindex=0,E.status=91)}else E.status=91;if(E.status===91)if(E.gzhead.comment){_=E.pending;do{if(E.pending===E.pending_buf_size&&(E.gzhead.hcrc&&E.pending>_&&(f.adler=d(f.adler,E.pending_buf,E.pending-_,_)),w(f),_=E.pending,E.pending===E.pending_buf_size)){M=1;break}M=E.gzindex<E.gzhead.comment.length?255&E.gzhead.comment.charCodeAt(E.gzindex++):0,U(E,M)}while(M!==0);E.gzhead.hcrc&&E.pending>_&&(f.adler=d(f.adler,E.pending_buf,E.pending-_,_)),M===0&&(E.status=103)}else E.status=103;if(E.status===103&&(E.gzhead.hcrc?(E.pending+2>E.pending_buf_size&&w(f),E.pending+2<=E.pending_buf_size&&(U(E,255&f.adler),U(E,f.adler>>8&255),f.adler=0,E.status=B)):E.status=B),E.pending!==0){if(w(f),f.avail_out===0)return E.last_flush=-1,p}else if(f.avail_in===0&&H(Q)<=H(q)&&Q!==x)return te(f,-5);if(E.status===666&&f.avail_in!==0)return te(f,-5);if(f.avail_in!==0||E.lookahead!==0||Q!==u&&E.status!==666){var Y=E.strategy===2?(function(D,J){for(var ie;;){if(D.lookahead===0&&(ae(D),D.lookahead===0)){if(J===u)return g;break}if(D.match_length=0,ie=i._tr_tally(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++,ie&&(N(D,!1),D.strm.avail_out===0))return g}return D.insert=0,J===x?(N(D,!0),D.strm.avail_out===0?I:z):D.last_lit&&(N(D,!1),D.strm.avail_out===0)?g:G})(E,Q):E.strategy===3?(function(D,J){for(var ie,X,oe,pe,he=D.window;;){if(D.lookahead<=K){if(ae(D),D.lookahead<=K&&J===u)return g;if(D.lookahead===0)break}if(D.match_length=0,D.lookahead>=P&&0<D.strstart&&(X=he[oe=D.strstart-1])===he[++oe]&&X===he[++oe]&&X===he[++oe]){pe=D.strstart+K;do;while(X===he[++oe]&&X===he[++oe]&&X===he[++oe]&&X===he[++oe]&&X===he[++oe]&&X===he[++oe]&&X===he[++oe]&&X===he[++oe]&&oe<pe);D.match_length=K-(pe-oe),D.match_length>D.lookahead&&(D.match_length=D.lookahead)}if(D.match_length>=P?(ie=i._tr_tally(D,1,D.match_length-P),D.lookahead-=D.match_length,D.strstart+=D.match_length,D.match_length=0):(ie=i._tr_tally(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++),ie&&(N(D,!1),D.strm.avail_out===0))return g}return D.insert=0,J===x?(N(D,!0),D.strm.avail_out===0?I:z):D.last_lit&&(N(D,!1),D.strm.avail_out===0)?g:G})(E,Q):r[E.level].func(E,Q);if(Y!==I&&Y!==z||(E.status=666),Y===g||Y===I)return f.avail_out===0&&(E.last_flush=-1),p;if(Y===G&&(Q===1?i._tr_align(E):Q!==5&&(i._tr_stored_block(E,0,0,!1),Q===3&&(ne(E.head),E.lookahead===0&&(E.strstart=0,E.block_start=0,E.insert=0))),w(f),f.avail_out===0))return E.last_flush=-1,p}return Q!==x?p:E.wrap<=0?1:(E.wrap===2?(U(E,255&f.adler),U(E,f.adler>>8&255),U(E,f.adler>>16&255),U(E,f.adler>>24&255),U(E,255&f.total_in),U(E,f.total_in>>8&255),U(E,f.total_in>>16&255),U(E,f.total_in>>24&255)):(L(E,f.adler>>>16),L(E,65535&f.adler)),w(f),0<E.wrap&&(E.wrap=-E.wrap),E.pending!==0?p:1)},a.deflateEnd=function(f){var Q;return f&&f.state?(Q=f.state.status)!==j&&Q!==69&&Q!==73&&Q!==91&&Q!==103&&Q!==B&&Q!==666?te(f,b):(f.state=null,Q===B?te(f,-3):p):b},a.deflateSetDictionary=function(f,Q){var q,E,_,M,V,Y,D,J,ie=Q.length;if(!f||!f.state||(M=(q=f.state).wrap)===2||M===1&&q.status!==j||q.lookahead)return b;for(M===1&&(f.adler=l(f.adler,Q,ie,0)),q.wrap=0,ie>=q.w_size&&(M===0&&(ne(q.head),q.strstart=0,q.block_start=0,q.insert=0),J=new o.Buf8(q.w_size),o.arraySet(J,Q,ie-q.w_size,q.w_size,0),Q=J,ie=q.w_size),V=f.avail_in,Y=f.next_in,D=f.input,f.avail_in=ie,f.next_in=0,f.input=Q,ae(q);q.lookahead>=P;){for(E=q.strstart,_=q.lookahead-(P-1);q.ins_h=(q.ins_h<<q.hash_shift^q.window[E+P-1])&q.hash_mask,q.prev[E&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=E,E++,--_;);q.strstart=E,q.lookahead=P-1,ae(q)}return q.strstart+=q.lookahead,q.block_start=q.strstart,q.insert=q.lookahead,q.lookahead=0,q.match_length=q.prev_length=P-1,q.match_available=0,f.next_in=Y,f.input=D,f.avail_in=V,q.wrap=M,p},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,c,a){c.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,c,a){c.exports=function(r,o){var i,l,d,h,u,x,p,b,m,v,y,k,C,O,A,R,S,T,P,K,$,j,B,g,G;i=r.state,l=r.next_in,g=r.input,d=l+(r.avail_in-5),h=r.next_out,G=r.output,u=h-(o-r.avail_out),x=h+(r.avail_out-257),p=i.dmax,b=i.wsize,m=i.whave,v=i.wnext,y=i.window,k=i.hold,C=i.bits,O=i.lencode,A=i.distcode,R=(1<<i.lenbits)-1,S=(1<<i.distbits)-1;e:do{C<15&&(k+=g[l++]<<C,C+=8,k+=g[l++]<<C,C+=8),T=O[k&R];t:for(;;){if(k>>>=P=T>>>24,C-=P,(P=T>>>16&255)===0)G[h++]=65535&T;else{if(!(16&P)){if((64&P)==0){T=O[(65535&T)+(k&(1<<P)-1)];continue t}if(32&P){i.mode=12;break e}r.msg="invalid literal/length code",i.mode=30;break e}K=65535&T,(P&=15)&&(C<P&&(k+=g[l++]<<C,C+=8),K+=k&(1<<P)-1,k>>>=P,C-=P),C<15&&(k+=g[l++]<<C,C+=8,k+=g[l++]<<C,C+=8),T=A[k&S];n:for(;;){if(k>>>=P=T>>>24,C-=P,!(16&(P=T>>>16&255))){if((64&P)==0){T=A[(65535&T)+(k&(1<<P)-1)];continue n}r.msg="invalid distance code",i.mode=30;break e}if($=65535&T,C<(P&=15)&&(k+=g[l++]<<C,(C+=8)<P&&(k+=g[l++]<<C,C+=8)),p<($+=k&(1<<P)-1)){r.msg="invalid distance too far back",i.mode=30;break e}if(k>>>=P,C-=P,(P=h-u)<$){if(m<(P=$-P)&&i.sane){r.msg="invalid distance too far back",i.mode=30;break e}if(B=y,(j=0)===v){if(j+=b-P,P<K){for(K-=P;G[h++]=y[j++],--P;);j=h-$,B=G}}else if(v<P){if(j+=b+v-P,(P-=v)<K){for(K-=P;G[h++]=y[j++],--P;);if(j=0,v<K){for(K-=P=v;G[h++]=y[j++],--P;);j=h-$,B=G}}}else if(j+=v-P,P<K){for(K-=P;G[h++]=y[j++],--P;);j=h-$,B=G}for(;2<K;)G[h++]=B[j++],G[h++]=B[j++],G[h++]=B[j++],K-=3;K&&(G[h++]=B[j++],1<K&&(G[h++]=B[j++]))}else{for(j=h-$;G[h++]=G[j++],G[h++]=G[j++],G[h++]=G[j++],2<(K-=3););K&&(G[h++]=G[j++],1<K&&(G[h++]=G[j++]))}break}}break}}while(l<d&&h<x);l-=K=C>>3,k&=(1<<(C-=K<<3))-1,r.next_in=l,r.next_out=h,r.avail_in=l<d?d-l+5:5-(l-d),r.avail_out=h<x?x-h+257:257-(h-x),i.hold=k,i.bits=C}},{}],49:[function(n,c,a){var r=n("../utils/common"),o=n("./adler32"),i=n("./crc32"),l=n("./inffast"),d=n("./inftrees"),h=1,u=2,x=0,p=-2,b=1,m=852,v=592;function y(j){return(j>>>24&255)+(j>>>8&65280)+((65280&j)<<8)+((255&j)<<24)}function k(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function C(j){var B;return j&&j.state?(B=j.state,j.total_in=j.total_out=B.total=0,j.msg="",B.wrap&&(j.adler=1&B.wrap),B.mode=b,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new r.Buf32(m),B.distcode=B.distdyn=new r.Buf32(v),B.sane=1,B.back=-1,x):p}function O(j){var B;return j&&j.state?((B=j.state).wsize=0,B.whave=0,B.wnext=0,C(j)):p}function A(j,B){var g,G;return j&&j.state?(G=j.state,B<0?(g=0,B=-B):(g=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?p:(G.window!==null&&G.wbits!==B&&(G.window=null),G.wrap=g,G.wbits=B,O(j))):p}function R(j,B){var g,G;return j?(G=new k,(j.state=G).window=null,(g=A(j,B))!==x&&(j.state=null),g):p}var S,T,P=!0;function K(j){if(P){var B;for(S=new r.Buf32(512),T=new r.Buf32(32),B=0;B<144;)j.lens[B++]=8;for(;B<256;)j.lens[B++]=9;for(;B<280;)j.lens[B++]=7;for(;B<288;)j.lens[B++]=8;for(d(h,j.lens,0,288,S,0,j.work,{bits:9}),B=0;B<32;)j.lens[B++]=5;d(u,j.lens,0,32,T,0,j.work,{bits:5}),P=!1}j.lencode=S,j.lenbits=9,j.distcode=T,j.distbits=5}function $(j,B,g,G){var I,z=j.state;return z.window===null&&(z.wsize=1<<z.wbits,z.wnext=0,z.whave=0,z.window=new r.Buf8(z.wsize)),G>=z.wsize?(r.arraySet(z.window,B,g-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(G<(I=z.wsize-z.wnext)&&(I=G),r.arraySet(z.window,B,g-G,I,z.wnext),(G-=I)?(r.arraySet(z.window,B,g-G,G,0),z.wnext=G,z.whave=z.wsize):(z.wnext+=I,z.wnext===z.wsize&&(z.wnext=0),z.whave<z.wsize&&(z.whave+=I))),0}a.inflateReset=O,a.inflateReset2=A,a.inflateResetKeep=C,a.inflateInit=function(j){return R(j,15)},a.inflateInit2=R,a.inflate=function(j,B){var g,G,I,z,te,H,ne,w,N,U,L,F,ae,le,re,ce,xe,ge,ke,Pe,f,Q,q,E,_=0,M=new r.Buf8(4),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!j||!j.state||!j.output||!j.input&&j.avail_in!==0)return p;(g=j.state).mode===12&&(g.mode=13),te=j.next_out,I=j.output,ne=j.avail_out,z=j.next_in,G=j.input,H=j.avail_in,w=g.hold,N=g.bits,U=H,L=ne,Q=x;e:for(;;)switch(g.mode){case b:if(g.wrap===0){g.mode=13;break}for(;N<16;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}if(2&g.wrap&&w===35615){M[g.check=0]=255&w,M[1]=w>>>8&255,g.check=i(g.check,M,2,0),N=w=0,g.mode=2;break}if(g.flags=0,g.head&&(g.head.done=!1),!(1&g.wrap)||(((255&w)<<8)+(w>>8))%31){j.msg="incorrect header check",g.mode=30;break}if((15&w)!=8){j.msg="unknown compression method",g.mode=30;break}if(N-=4,f=8+(15&(w>>>=4)),g.wbits===0)g.wbits=f;else if(f>g.wbits){j.msg="invalid window size",g.mode=30;break}g.dmax=1<<f,j.adler=g.check=1,g.mode=512&w?10:12,N=w=0;break;case 2:for(;N<16;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}if(g.flags=w,(255&g.flags)!=8){j.msg="unknown compression method",g.mode=30;break}if(57344&g.flags){j.msg="unknown header flags set",g.mode=30;break}g.head&&(g.head.text=w>>8&1),512&g.flags&&(M[0]=255&w,M[1]=w>>>8&255,g.check=i(g.check,M,2,0)),N=w=0,g.mode=3;case 3:for(;N<32;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}g.head&&(g.head.time=w),512&g.flags&&(M[0]=255&w,M[1]=w>>>8&255,M[2]=w>>>16&255,M[3]=w>>>24&255,g.check=i(g.check,M,4,0)),N=w=0,g.mode=4;case 4:for(;N<16;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}g.head&&(g.head.xflags=255&w,g.head.os=w>>8),512&g.flags&&(M[0]=255&w,M[1]=w>>>8&255,g.check=i(g.check,M,2,0)),N=w=0,g.mode=5;case 5:if(1024&g.flags){for(;N<16;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}g.length=w,g.head&&(g.head.extra_len=w),512&g.flags&&(M[0]=255&w,M[1]=w>>>8&255,g.check=i(g.check,M,2,0)),N=w=0}else g.head&&(g.head.extra=null);g.mode=6;case 6:if(1024&g.flags&&(H<(F=g.length)&&(F=H),F&&(g.head&&(f=g.head.extra_len-g.length,g.head.extra||(g.head.extra=new Array(g.head.extra_len)),r.arraySet(g.head.extra,G,z,F,f)),512&g.flags&&(g.check=i(g.check,G,F,z)),H-=F,z+=F,g.length-=F),g.length))break e;g.length=0,g.mode=7;case 7:if(2048&g.flags){if(H===0)break e;for(F=0;f=G[z+F++],g.head&&f&&g.length<65536&&(g.head.name+=String.fromCharCode(f)),f&&F<H;);if(512&g.flags&&(g.check=i(g.check,G,F,z)),H-=F,z+=F,f)break e}else g.head&&(g.head.name=null);g.length=0,g.mode=8;case 8:if(4096&g.flags){if(H===0)break e;for(F=0;f=G[z+F++],g.head&&f&&g.length<65536&&(g.head.comment+=String.fromCharCode(f)),f&&F<H;);if(512&g.flags&&(g.check=i(g.check,G,F,z)),H-=F,z+=F,f)break e}else g.head&&(g.head.comment=null);g.mode=9;case 9:if(512&g.flags){for(;N<16;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}if(w!==(65535&g.check)){j.msg="header crc mismatch",g.mode=30;break}N=w=0}g.head&&(g.head.hcrc=g.flags>>9&1,g.head.done=!0),j.adler=g.check=0,g.mode=12;break;case 10:for(;N<32;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}j.adler=g.check=y(w),N=w=0,g.mode=11;case 11:if(g.havedict===0)return j.next_out=te,j.avail_out=ne,j.next_in=z,j.avail_in=H,g.hold=w,g.bits=N,2;j.adler=g.check=1,g.mode=12;case 12:if(B===5||B===6)break e;case 13:if(g.last){w>>>=7&N,N-=7&N,g.mode=27;break}for(;N<3;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}switch(g.last=1&w,N-=1,3&(w>>>=1)){case 0:g.mode=14;break;case 1:if(K(g),g.mode=20,B!==6)break;w>>>=2,N-=2;break e;case 2:g.mode=17;break;case 3:j.msg="invalid block type",g.mode=30}w>>>=2,N-=2;break;case 14:for(w>>>=7&N,N-=7&N;N<32;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}if((65535&w)!=(w>>>16^65535)){j.msg="invalid stored block lengths",g.mode=30;break}if(g.length=65535&w,N=w=0,g.mode=15,B===6)break e;case 15:g.mode=16;case 16:if(F=g.length){if(H<F&&(F=H),ne<F&&(F=ne),F===0)break e;r.arraySet(I,G,z,F,te),H-=F,z+=F,ne-=F,te+=F,g.length-=F;break}g.mode=12;break;case 17:for(;N<14;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}if(g.nlen=257+(31&w),w>>>=5,N-=5,g.ndist=1+(31&w),w>>>=5,N-=5,g.ncode=4+(15&w),w>>>=4,N-=4,286<g.nlen||30<g.ndist){j.msg="too many length or distance symbols",g.mode=30;break}g.have=0,g.mode=18;case 18:for(;g.have<g.ncode;){for(;N<3;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}g.lens[V[g.have++]]=7&w,w>>>=3,N-=3}for(;g.have<19;)g.lens[V[g.have++]]=0;if(g.lencode=g.lendyn,g.lenbits=7,q={bits:g.lenbits},Q=d(0,g.lens,0,19,g.lencode,0,g.work,q),g.lenbits=q.bits,Q){j.msg="invalid code lengths set",g.mode=30;break}g.have=0,g.mode=19;case 19:for(;g.have<g.nlen+g.ndist;){for(;ce=(_=g.lencode[w&(1<<g.lenbits)-1])>>>16&255,xe=65535&_,!((re=_>>>24)<=N);){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}if(xe<16)w>>>=re,N-=re,g.lens[g.have++]=xe;else{if(xe===16){for(E=re+2;N<E;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}if(w>>>=re,N-=re,g.have===0){j.msg="invalid bit length repeat",g.mode=30;break}f=g.lens[g.have-1],F=3+(3&w),w>>>=2,N-=2}else if(xe===17){for(E=re+3;N<E;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}N-=re,f=0,F=3+(7&(w>>>=re)),w>>>=3,N-=3}else{for(E=re+7;N<E;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}N-=re,f=0,F=11+(127&(w>>>=re)),w>>>=7,N-=7}if(g.have+F>g.nlen+g.ndist){j.msg="invalid bit length repeat",g.mode=30;break}for(;F--;)g.lens[g.have++]=f}}if(g.mode===30)break;if(g.lens[256]===0){j.msg="invalid code -- missing end-of-block",g.mode=30;break}if(g.lenbits=9,q={bits:g.lenbits},Q=d(h,g.lens,0,g.nlen,g.lencode,0,g.work,q),g.lenbits=q.bits,Q){j.msg="invalid literal/lengths set",g.mode=30;break}if(g.distbits=6,g.distcode=g.distdyn,q={bits:g.distbits},Q=d(u,g.lens,g.nlen,g.ndist,g.distcode,0,g.work,q),g.distbits=q.bits,Q){j.msg="invalid distances set",g.mode=30;break}if(g.mode=20,B===6)break e;case 20:g.mode=21;case 21:if(6<=H&&258<=ne){j.next_out=te,j.avail_out=ne,j.next_in=z,j.avail_in=H,g.hold=w,g.bits=N,l(j,L),te=j.next_out,I=j.output,ne=j.avail_out,z=j.next_in,G=j.input,H=j.avail_in,w=g.hold,N=g.bits,g.mode===12&&(g.back=-1);break}for(g.back=0;ce=(_=g.lencode[w&(1<<g.lenbits)-1])>>>16&255,xe=65535&_,!((re=_>>>24)<=N);){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}if(ce&&(240&ce)==0){for(ge=re,ke=ce,Pe=xe;ce=(_=g.lencode[Pe+((w&(1<<ge+ke)-1)>>ge)])>>>16&255,xe=65535&_,!(ge+(re=_>>>24)<=N);){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}w>>>=ge,N-=ge,g.back+=ge}if(w>>>=re,N-=re,g.back+=re,g.length=xe,ce===0){g.mode=26;break}if(32&ce){g.back=-1,g.mode=12;break}if(64&ce){j.msg="invalid literal/length code",g.mode=30;break}g.extra=15&ce,g.mode=22;case 22:if(g.extra){for(E=g.extra;N<E;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}g.length+=w&(1<<g.extra)-1,w>>>=g.extra,N-=g.extra,g.back+=g.extra}g.was=g.length,g.mode=23;case 23:for(;ce=(_=g.distcode[w&(1<<g.distbits)-1])>>>16&255,xe=65535&_,!((re=_>>>24)<=N);){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}if((240&ce)==0){for(ge=re,ke=ce,Pe=xe;ce=(_=g.distcode[Pe+((w&(1<<ge+ke)-1)>>ge)])>>>16&255,xe=65535&_,!(ge+(re=_>>>24)<=N);){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}w>>>=ge,N-=ge,g.back+=ge}if(w>>>=re,N-=re,g.back+=re,64&ce){j.msg="invalid distance code",g.mode=30;break}g.offset=xe,g.extra=15&ce,g.mode=24;case 24:if(g.extra){for(E=g.extra;N<E;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}g.offset+=w&(1<<g.extra)-1,w>>>=g.extra,N-=g.extra,g.back+=g.extra}if(g.offset>g.dmax){j.msg="invalid distance too far back",g.mode=30;break}g.mode=25;case 25:if(ne===0)break e;if(F=L-ne,g.offset>F){if((F=g.offset-F)>g.whave&&g.sane){j.msg="invalid distance too far back",g.mode=30;break}ae=F>g.wnext?(F-=g.wnext,g.wsize-F):g.wnext-F,F>g.length&&(F=g.length),le=g.window}else le=I,ae=te-g.offset,F=g.length;for(ne<F&&(F=ne),ne-=F,g.length-=F;I[te++]=le[ae++],--F;);g.length===0&&(g.mode=21);break;case 26:if(ne===0)break e;I[te++]=g.length,ne--,g.mode=21;break;case 27:if(g.wrap){for(;N<32;){if(H===0)break e;H--,w|=G[z++]<<N,N+=8}if(L-=ne,j.total_out+=L,g.total+=L,L&&(j.adler=g.check=g.flags?i(g.check,I,L,te-L):o(g.check,I,L,te-L)),L=ne,(g.flags?w:y(w))!==g.check){j.msg="incorrect data check",g.mode=30;break}N=w=0}g.mode=28;case 28:if(g.wrap&&g.flags){for(;N<32;){if(H===0)break e;H--,w+=G[z++]<<N,N+=8}if(w!==(4294967295&g.total)){j.msg="incorrect length check",g.mode=30;break}N=w=0}g.mode=29;case 29:Q=1;break e;case 30:Q=-3;break e;case 31:return-4;case 32:default:return p}return j.next_out=te,j.avail_out=ne,j.next_in=z,j.avail_in=H,g.hold=w,g.bits=N,(g.wsize||L!==j.avail_out&&g.mode<30&&(g.mode<27||B!==4))&&$(j,j.output,j.next_out,L-j.avail_out)?(g.mode=31,-4):(U-=j.avail_in,L-=j.avail_out,j.total_in+=U,j.total_out+=L,g.total+=L,g.wrap&&L&&(j.adler=g.check=g.flags?i(g.check,I,L,j.next_out-L):o(g.check,I,L,j.next_out-L)),j.data_type=g.bits+(g.last?64:0)+(g.mode===12?128:0)+(g.mode===20||g.mode===15?256:0),(U==0&&L===0||B===4)&&Q===x&&(Q=-5),Q)},a.inflateEnd=function(j){if(!j||!j.state)return p;var B=j.state;return B.window&&(B.window=null),j.state=null,x},a.inflateGetHeader=function(j,B){var g;return j&&j.state?(2&(g=j.state).wrap)==0?p:((g.head=B).done=!1,x):p},a.inflateSetDictionary=function(j,B){var g,G=B.length;return j&&j.state?(g=j.state).wrap!==0&&g.mode!==11?p:g.mode===11&&o(1,B,G,0)!==g.check?-3:$(j,B,G,G)?(g.mode=31,-4):(g.havedict=1,x):p},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,c,a){var r=n("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],d=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];c.exports=function(h,u,x,p,b,m,v,y){var k,C,O,A,R,S,T,P,K,$=y.bits,j=0,B=0,g=0,G=0,I=0,z=0,te=0,H=0,ne=0,w=0,N=null,U=0,L=new r.Buf16(16),F=new r.Buf16(16),ae=null,le=0;for(j=0;j<=15;j++)L[j]=0;for(B=0;B<p;B++)L[u[x+B]]++;for(I=$,G=15;1<=G&&L[G]===0;G--);if(G<I&&(I=G),G===0)return b[m++]=20971520,b[m++]=20971520,y.bits=1,0;for(g=1;g<G&&L[g]===0;g++);for(I<g&&(I=g),j=H=1;j<=15;j++)if(H<<=1,(H-=L[j])<0)return-1;if(0<H&&(h===0||G!==1))return-1;for(F[1]=0,j=1;j<15;j++)F[j+1]=F[j]+L[j];for(B=0;B<p;B++)u[x+B]!==0&&(v[F[u[x+B]]++]=B);if(S=h===0?(N=ae=v,19):h===1?(N=o,U-=257,ae=i,le-=257,256):(N=l,ae=d,-1),j=g,R=m,te=B=w=0,O=-1,A=(ne=1<<(z=I))-1,h===1&&852<ne||h===2&&592<ne)return 1;for(;;){for(T=j-te,K=v[B]<S?(P=0,v[B]):v[B]>S?(P=ae[le+v[B]],N[U+v[B]]):(P=96,0),k=1<<j-te,g=C=1<<z;b[R+(w>>te)+(C-=k)]=T<<24|P<<16|K|0,C!==0;);for(k=1<<j-1;w&k;)k>>=1;if(k!==0?(w&=k-1,w+=k):w=0,B++,--L[j]==0){if(j===G)break;j=u[x+v[B]]}if(I<j&&(w&A)!==O){for(te===0&&(te=I),R+=g,H=1<<(z=j-te);z+te<G&&!((H-=L[z+te])<=0);)z++,H<<=1;if(ne+=1<<z,h===1&&852<ne||h===2&&592<ne)return 1;b[O=w&A]=I<<24|z<<16|R-m|0}}return w!==0&&(b[R+w]=j-te<<24|64<<16|0),y.bits=I,0}},{"../utils/common":41}],51:[function(n,c,a){c.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,c,a){var r=n("../utils/common"),o=0,i=1;function l(_){for(var M=_.length;0<=--M;)_[M]=0}var d=0,h=29,u=256,x=u+1+h,p=30,b=19,m=2*x+1,v=15,y=16,k=7,C=256,O=16,A=17,R=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],T=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=new Array(2*(x+2));l($);var j=new Array(2*p);l(j);var B=new Array(512);l(B);var g=new Array(256);l(g);var G=new Array(h);l(G);var I,z,te,H=new Array(p);function ne(_,M,V,Y,D){this.static_tree=_,this.extra_bits=M,this.extra_base=V,this.elems=Y,this.max_length=D,this.has_stree=_&&_.length}function w(_,M){this.dyn_tree=_,this.max_code=0,this.stat_desc=M}function N(_){return _<256?B[_]:B[256+(_>>>7)]}function U(_,M){_.pending_buf[_.pending++]=255&M,_.pending_buf[_.pending++]=M>>>8&255}function L(_,M,V){_.bi_valid>y-V?(_.bi_buf|=M<<_.bi_valid&65535,U(_,_.bi_buf),_.bi_buf=M>>y-_.bi_valid,_.bi_valid+=V-y):(_.bi_buf|=M<<_.bi_valid&65535,_.bi_valid+=V)}function F(_,M,V){L(_,V[2*M],V[2*M+1])}function ae(_,M){for(var V=0;V|=1&_,_>>>=1,V<<=1,0<--M;);return V>>>1}function le(_,M,V){var Y,D,J=new Array(v+1),ie=0;for(Y=1;Y<=v;Y++)J[Y]=ie=ie+V[Y-1]<<1;for(D=0;D<=M;D++){var X=_[2*D+1];X!==0&&(_[2*D]=ae(J[X]++,X))}}function re(_){var M;for(M=0;M<x;M++)_.dyn_ltree[2*M]=0;for(M=0;M<p;M++)_.dyn_dtree[2*M]=0;for(M=0;M<b;M++)_.bl_tree[2*M]=0;_.dyn_ltree[2*C]=1,_.opt_len=_.static_len=0,_.last_lit=_.matches=0}function ce(_){8<_.bi_valid?U(_,_.bi_buf):0<_.bi_valid&&(_.pending_buf[_.pending++]=_.bi_buf),_.bi_buf=0,_.bi_valid=0}function xe(_,M,V,Y){var D=2*M,J=2*V;return _[D]<_[J]||_[D]===_[J]&&Y[M]<=Y[V]}function ge(_,M,V){for(var Y=_.heap[V],D=V<<1;D<=_.heap_len&&(D<_.heap_len&&xe(M,_.heap[D+1],_.heap[D],_.depth)&&D++,!xe(M,Y,_.heap[D],_.depth));)_.heap[V]=_.heap[D],V=D,D<<=1;_.heap[V]=Y}function ke(_,M,V){var Y,D,J,ie,X=0;if(_.last_lit!==0)for(;Y=_.pending_buf[_.d_buf+2*X]<<8|_.pending_buf[_.d_buf+2*X+1],D=_.pending_buf[_.l_buf+X],X++,Y===0?F(_,D,M):(F(_,(J=g[D])+u+1,M),(ie=S[J])!==0&&L(_,D-=G[J],ie),F(_,J=N(--Y),V),(ie=T[J])!==0&&L(_,Y-=H[J],ie)),X<_.last_lit;);F(_,C,M)}function Pe(_,M){var V,Y,D,J=M.dyn_tree,ie=M.stat_desc.static_tree,X=M.stat_desc.has_stree,oe=M.stat_desc.elems,pe=-1;for(_.heap_len=0,_.heap_max=m,V=0;V<oe;V++)J[2*V]!==0?(_.heap[++_.heap_len]=pe=V,_.depth[V]=0):J[2*V+1]=0;for(;_.heap_len<2;)J[2*(D=_.heap[++_.heap_len]=pe<2?++pe:0)]=1,_.depth[D]=0,_.opt_len--,X&&(_.static_len-=ie[2*D+1]);for(M.max_code=pe,V=_.heap_len>>1;1<=V;V--)ge(_,J,V);for(D=oe;V=_.heap[1],_.heap[1]=_.heap[_.heap_len--],ge(_,J,1),Y=_.heap[1],_.heap[--_.heap_max]=V,_.heap[--_.heap_max]=Y,J[2*D]=J[2*V]+J[2*Y],_.depth[D]=(_.depth[V]>=_.depth[Y]?_.depth[V]:_.depth[Y])+1,J[2*V+1]=J[2*Y+1]=D,_.heap[1]=D++,ge(_,J,1),2<=_.heap_len;);_.heap[--_.heap_max]=_.heap[1],(function(he,Se){var Te,Oe,Ie,ye,ut,ht,De=Se.dyn_tree,Mt=Se.max_code,wt=Se.stat_desc.static_tree,We=Se.stat_desc.has_stree,cn=Se.stat_desc.extra_bits,zt=Se.stat_desc.extra_base,Ye=Se.stat_desc.max_length,tt=0;for(ye=0;ye<=v;ye++)he.bl_count[ye]=0;for(De[2*he.heap[he.heap_max]+1]=0,Te=he.heap_max+1;Te<m;Te++)Ye<(ye=De[2*De[2*(Oe=he.heap[Te])+1]+1]+1)&&(ye=Ye,tt++),De[2*Oe+1]=ye,Mt<Oe||(he.bl_count[ye]++,ut=0,zt<=Oe&&(ut=cn[Oe-zt]),ht=De[2*Oe],he.opt_len+=ht*(ye+ut),We&&(he.static_len+=ht*(wt[2*Oe+1]+ut)));if(tt!==0){do{for(ye=Ye-1;he.bl_count[ye]===0;)ye--;he.bl_count[ye]--,he.bl_count[ye+1]+=2,he.bl_count[Ye]--,tt-=2}while(0<tt);for(ye=Ye;ye!==0;ye--)for(Oe=he.bl_count[ye];Oe!==0;)Mt<(Ie=he.heap[--Te])||(De[2*Ie+1]!==ye&&(he.opt_len+=(ye-De[2*Ie+1])*De[2*Ie],De[2*Ie+1]=ye),Oe--)}})(_,M),le(J,pe,_.bl_count)}function f(_,M,V){var Y,D,J=-1,ie=M[1],X=0,oe=7,pe=4;for(ie===0&&(oe=138,pe=3),M[2*(V+1)+1]=65535,Y=0;Y<=V;Y++)D=ie,ie=M[2*(Y+1)+1],++X<oe&&D===ie||(X<pe?_.bl_tree[2*D]+=X:D!==0?(D!==J&&_.bl_tree[2*D]++,_.bl_tree[2*O]++):X<=10?_.bl_tree[2*A]++:_.bl_tree[2*R]++,J=D,pe=(X=0)===ie?(oe=138,3):D===ie?(oe=6,3):(oe=7,4))}function Q(_,M,V){var Y,D,J=-1,ie=M[1],X=0,oe=7,pe=4;for(ie===0&&(oe=138,pe=3),Y=0;Y<=V;Y++)if(D=ie,ie=M[2*(Y+1)+1],!(++X<oe&&D===ie)){if(X<pe)for(;F(_,D,_.bl_tree),--X!=0;);else D!==0?(D!==J&&(F(_,D,_.bl_tree),X--),F(_,O,_.bl_tree),L(_,X-3,2)):X<=10?(F(_,A,_.bl_tree),L(_,X-3,3)):(F(_,R,_.bl_tree),L(_,X-11,7));J=D,pe=(X=0)===ie?(oe=138,3):D===ie?(oe=6,3):(oe=7,4)}}l(H);var q=!1;function E(_,M,V,Y){L(_,(d<<1)+(Y?1:0),3),(function(D,J,ie,X){ce(D),U(D,ie),U(D,~ie),r.arraySet(D.pending_buf,D.window,J,ie,D.pending),D.pending+=ie})(_,M,V)}a._tr_init=function(_){q||((function(){var M,V,Y,D,J,ie=new Array(v+1);for(D=Y=0;D<h-1;D++)for(G[D]=Y,M=0;M<1<<S[D];M++)g[Y++]=D;for(g[Y-1]=D,D=J=0;D<16;D++)for(H[D]=J,M=0;M<1<<T[D];M++)B[J++]=D;for(J>>=7;D<p;D++)for(H[D]=J<<7,M=0;M<1<<T[D]-7;M++)B[256+J++]=D;for(V=0;V<=v;V++)ie[V]=0;for(M=0;M<=143;)$[2*M+1]=8,M++,ie[8]++;for(;M<=255;)$[2*M+1]=9,M++,ie[9]++;for(;M<=279;)$[2*M+1]=7,M++,ie[7]++;for(;M<=287;)$[2*M+1]=8,M++,ie[8]++;for(le($,x+1,ie),M=0;M<p;M++)j[2*M+1]=5,j[2*M]=ae(M,5);I=new ne($,S,u+1,x,v),z=new ne(j,T,0,p,v),te=new ne(new Array(0),P,0,b,k)})(),q=!0),_.l_desc=new w(_.dyn_ltree,I),_.d_desc=new w(_.dyn_dtree,z),_.bl_desc=new w(_.bl_tree,te),_.bi_buf=0,_.bi_valid=0,re(_)},a._tr_stored_block=E,a._tr_flush_block=function(_,M,V,Y){var D,J,ie=0;0<_.level?(_.strm.data_type===2&&(_.strm.data_type=(function(X){var oe,pe=4093624447;for(oe=0;oe<=31;oe++,pe>>>=1)if(1&pe&&X.dyn_ltree[2*oe]!==0)return o;if(X.dyn_ltree[18]!==0||X.dyn_ltree[20]!==0||X.dyn_ltree[26]!==0)return i;for(oe=32;oe<u;oe++)if(X.dyn_ltree[2*oe]!==0)return i;return o})(_)),Pe(_,_.l_desc),Pe(_,_.d_desc),ie=(function(X){var oe;for(f(X,X.dyn_ltree,X.l_desc.max_code),f(X,X.dyn_dtree,X.d_desc.max_code),Pe(X,X.bl_desc),oe=b-1;3<=oe&&X.bl_tree[2*K[oe]+1]===0;oe--);return X.opt_len+=3*(oe+1)+5+5+4,oe})(_),D=_.opt_len+3+7>>>3,(J=_.static_len+3+7>>>3)<=D&&(D=J)):D=J=V+5,V+4<=D&&M!==-1?E(_,M,V,Y):_.strategy===4||J===D?(L(_,2+(Y?1:0),3),ke(_,$,j)):(L(_,4+(Y?1:0),3),(function(X,oe,pe,he){var Se;for(L(X,oe-257,5),L(X,pe-1,5),L(X,he-4,4),Se=0;Se<he;Se++)L(X,X.bl_tree[2*K[Se]+1],3);Q(X,X.dyn_ltree,oe-1),Q(X,X.dyn_dtree,pe-1)})(_,_.l_desc.max_code+1,_.d_desc.max_code+1,ie+1),ke(_,_.dyn_ltree,_.dyn_dtree)),re(_),Y&&ce(_)},a._tr_tally=function(_,M,V){return _.pending_buf[_.d_buf+2*_.last_lit]=M>>>8&255,_.pending_buf[_.d_buf+2*_.last_lit+1]=255&M,_.pending_buf[_.l_buf+_.last_lit]=255&V,_.last_lit++,M===0?_.dyn_ltree[2*V]++:(_.matches++,M--,_.dyn_ltree[2*(g[V]+u+1)]++,_.dyn_dtree[2*N(M)]++),_.last_lit===_.lit_bufsize-1},a._tr_align=function(_){L(_,2,3),F(_,C,$),(function(M){M.bi_valid===16?(U(M,M.bi_buf),M.bi_buf=0,M.bi_valid=0):8<=M.bi_valid&&(M.pending_buf[M.pending++]=255&M.bi_buf,M.bi_buf>>=8,M.bi_valid-=8)})(_)}},{"../utils/common":41}],53:[function(n,c,a){c.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,c,a){(function(r){(function(o,i){if(!o.setImmediate){var l,d,h,u,x=1,p={},b=!1,m=o.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(o);v=v&&v.setTimeout?v:o,l={}.toString.call(o.process)==="[object process]"?function(O){process.nextTick(function(){k(O)})}:(function(){if(o.postMessage&&!o.importScripts){var O=!0,A=o.onmessage;return o.onmessage=function(){O=!1},o.postMessage("","*"),o.onmessage=A,O}})()?(u="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",C,!1):o.attachEvent("onmessage",C),function(O){o.postMessage(u+O,"*")}):o.MessageChannel?((h=new MessageChannel).port1.onmessage=function(O){k(O.data)},function(O){h.port2.postMessage(O)}):m&&"onreadystatechange"in m.createElement("script")?(d=m.documentElement,function(O){var A=m.createElement("script");A.onreadystatechange=function(){k(O),A.onreadystatechange=null,d.removeChild(A),A=null},d.appendChild(A)}):function(O){setTimeout(k,0,O)},v.setImmediate=function(O){typeof O!="function"&&(O=new Function(""+O));for(var A=new Array(arguments.length-1),R=0;R<A.length;R++)A[R]=arguments[R+1];var S={callback:O,args:A};return p[x]=S,l(x),x++},v.clearImmediate=y}function y(O){delete p[O]}function k(O){if(b)setTimeout(k,0,O);else{var A=p[O];if(A){b=!0;try{(function(R){var S=R.callback,T=R.args;switch(T.length){case 0:S();break;case 1:S(T[0]);break;case 2:S(T[0],T[1]);break;case 3:S(T[0],T[1],T[2]);break;default:S.apply(i,T)}})(A)}finally{y(O),b=!1}}}}function C(O){O.source===o&&typeof O.data=="string"&&O.data.indexOf(u)===0&&k(+O.data.slice(u.length))}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,typeof Dt<"u"?Dt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(kn)),kn.exports}var Vl=$l();const Zl=Fn(Vl),An=[{label:"Montags, 08:00 Uhr",value:"0 8 * * 1"},{label:"Montags, 06:00 Uhr",value:"0 6 * * 1"},{label:"Dienstags, 08:00 Uhr",value:"0 8 * * 2"},{label:"Mittwochs, 08:00 Uhr",value:"0 8 * * 3"},{label:"Freitags, 08:00 Uhr",value:"0 8 * * 5"},{label:"Täglich, 08:00 Uhr",value:"0 8 * * *"},{label:"Benutzerdefiniert",value:"custom"}];function Yl(){const e=me.useUtils(),{data:t,isLoading:n}=me.seoReport.getSettings.useQuery(),[c,a]=W.useState(7),{data:r,isLoading:o,refetch:i}=me.seoReport.matomoPreview.useQuery({days:c},{enabled:!1}),l=me.seoReport.saveSettings.useMutation({onSuccess:()=>e.seoReport.getSettings.invalidate()}),d=me.seoReport.runNow.useMutation({onSuccess:()=>e.seoReport.getSettings.invalidate()}),[h,u]=W.useState({enabled:!1,gscServiceAccountJson:"",gscPropertyUrl:"https://www.stusche.de/",openaiApiKey:"",openaiModel:"gpt-4o",reportEmail:"",cronSchedule:"0 8 * * 1",cronLabel:"Montags, 08:00 Uhr",lookbackDays:7,matomoApiToken:"",matomoSiteId:"1",matomoBaseUrl:"https://matomo.stusche.de"}),[x,p]=W.useState(!1),[b,m]=W.useState(!1),[v,y]=W.useState(!1),[k,C]=W.useState(!1),[O,A]=W.useState("0 8 * * 1"),[R,S]=W.useState(null),[T,P]=W.useState(null),K=W.useRef(null);W.useEffect(()=>{if(t&&!x){u({enabled:t.enabled,gscServiceAccountJson:t.gscServiceAccountJson??"",gscPropertyUrl:t.gscPropertyUrl,openaiApiKey:t.openaiApiKey??"",openaiModel:t.openaiModel,reportEmail:t.reportEmail??"",cronSchedule:t.cronSchedule,cronLabel:t.cronLabel,lookbackDays:t.lookbackDays,matomoApiToken:t.matomoApiToken??"",matomoSiteId:t.matomoSiteId,matomoBaseUrl:t.matomoBaseUrl});const I=An.find(z=>z.value===t.cronSchedule&&z.value!=="custom");A(I?I.value:"custom"),p(!0)}},[t,x]);function $(I){if(A(I),I!=="custom"){const z=An.find(te=>te.value===I);u(te=>({...te,cronSchedule:I,cronLabel:z?.label??I}))}}async function j(I){const z=I.target.files?.[0];if(!z)return;if(S(z),z.name.endsWith(".zip")||z.type==="application/zip"||z.type==="application/x-zip-compressed"){try{const H=await Zl.loadAsync(z);let ne="",w="";for(const[U,L]of Object.entries(H.files)){const F=U.toLowerCase();F.includes("suchanfragen")||F.includes("queries")||F.includes("search")?ne=await L.async("string"):(F.includes("seiten")||F.includes("pages"))&&(w=await L.async("string"))}const N=[ne,w].filter(Boolean).join(`
`);P(N||null),N||alert("ZIP-Datei enthält keine erkennbaren GSC-CSV-Dateien (Suchanfragen.csv / Seiten.csv).")}catch{alert("ZIP-Datei konnte nicht gelesen werden."),P(null)}return}const te=new FileReader;te.onload=H=>{P(H.target?.result??null)},te.readAsText(z,"utf-8")}function B(){d.mutate({gscCsvContent:T??void 0})}if(n)return s.jsx(Ve,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:174",title:"SEO-Wochenbericht",breadcrumb:"Automatisierung",children:s.jsx("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:175",className:"text-center py-16 text-gray-400 text-sm",children:"Laden…"})});const g=t?.matomoApiToken==="***set***"||h.matomoApiToken.length>0,G=t?.gscServiceAccountJson==="***set***"||h.gscServiceAccountJson.length>0;return s.jsx(Ve,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:184",title:"SEO-Wochenbericht",breadcrumb:"Automatisierung",children:s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:185",className:"max-w-2xl space-y-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:188",className:"flex items-center justify-between rounded-2xl border p-5",style:{borderColor:"#e5e7eb",background:h.enabled?"#f0fdf4":"#f9fafb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:192",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:193",className:"w-2.5 h-2.5 rounded-full",style:{background:h.enabled?"#16a34a":"#d1d5db"}}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:194",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:195",className:"text-sm font-semibold",style:{color:"#0d1b3e"},children:h.enabled?"Automatischer Bericht aktiv":"Automatischer Bericht deaktiviert"}),t?.lastRunAt&&s.jsxs("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:199",className:"text-xs mt-0.5",style:{color:"#9ca3af"},children:["Letzter Lauf: ",new Date(t.lastRunAt).toLocaleString("de-DE",{timeZone:"Europe/Berlin"}),t.lastRunSummary&&` · ${t.lastRunSummary}`]})]})]}),s.jsxs("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:206",className:"relative inline-flex items-center cursor-pointer",children:[s.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:207",type:"checkbox",checked:h.enabled,onChange:I=>u(z=>({...z,enabled:I.target.checked})),className:"sr-only peer"}),s.jsx("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:213",className:"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:218",className:"rounded-2xl border p-5 space-y-3",style:{borderColor:"#e5e7eb",background:"#f8faff"},children:[s.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:219",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Datenquellen"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:220",className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:221",className:"flex items-center gap-2.5 rounded-xl p-3",style:{background:G?"#f0fdf4":"#fff7ed",border:`1px solid ${G?"#bbf7d0":"#fed7aa"}`},children:[s.jsx(Dn,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:222",size:16,style:{color:G?"#16a34a":"#f59e0b"}}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:223",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:224",className:"text-xs font-semibold",style:{color:"#0d1b3e"},children:"Google Search Console"}),s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:225",className:"text-xs",style:{color:G?"#16a34a":"#f59e0b"},children:G?"Service Account konfiguriert":"Nicht verfügbar (Google-Bug)"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:230",className:"flex items-center gap-2.5 rounded-xl p-3",style:{background:g?"#f0fdf4":"#f9fafb",border:`1px solid ${g?"#bbf7d0":"#e5e7eb"}`},children:[s.jsx(bn,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:231",size:16,style:{color:g?"#16a34a":"#9ca3af"}}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:232",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:233",className:"text-xs font-semibold",style:{color:"#0d1b3e"},children:"Matomo Analytics"}),s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:234",className:"text-xs",style:{color:g?"#16a34a":"#9ca3af"},children:g?"Token konfiguriert":"Kein Token"})]})]})]}),!G&&s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:241",className:"flex items-start gap-2 rounded-xl p-3",style:{background:"#fffbeb"},children:[s.jsx(St,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:242",size:13,style:{color:"#f59e0b",marginTop:1,flexShrink:0}}),s.jsxs("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:243",className:"text-xs leading-relaxed",style:{color:"#92400e"},children:[s.jsx("strong",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:244",children:"Google-Bug (Mai 2026):"})," Service Accounts können derzeit nicht zur Search Console hinzugefügt werden. Der Report läuft automatisch im ",s.jsx("strong",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:245",children:"Matomo-only Modus"}),". Alternativ können Sie unten einen GSC CSV-Export hochladen."]})]})]}),g&&s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:254",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:255",className:"flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:256",className:"flex items-center gap-2",children:[s.jsx(bn,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:257",size:14,style:{color:"#0066cc"}}),s.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:258",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Matomo Live-Vorschau"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:262",className:"flex items-center gap-2",children:[s.jsxs("select",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:263",value:c,onChange:I=>a(Number(I.target.value)),className:"text-xs rounded-lg border px-2 py-1.5 font-medium",style:{borderColor:"#d1d5db",color:"#374151",background:"#fff"},children:[s.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:269",value:7,children:"Letzte 7 Tage"}),s.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:270",value:14,children:"Letzte 14 Tage"}),s.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:271",value:28,children:"Letzte 28 Tage"}),s.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:272",value:30,children:"Letzte 30 Tage"})]}),s.jsxs("button",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:274",onClick:()=>i(),disabled:o,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-semibold transition-all hover:opacity-80",style:{background:"#eff6ff",color:"#0066cc"},children:[s.jsx(Ue,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:280",size:12,className:o?"animate-spin":""}),o?"Lädt…":"Daten laden"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:287",className:"flex items-start gap-2 rounded-xl p-3",style:{background:"#fffbeb"},children:[s.jsx(St,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:288",size:12,style:{color:"#f59e0b",marginTop:1,flexShrink:0}}),s.jsxs("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:289",className:"text-xs leading-relaxed",style:{color:"#92400e"},children:[s.jsx("strong",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:290",children:"Zum Vergleich mit matomo.stusche.de:"}),' Wählen Sie oben denselben Zeitraum wie in Matomo (z.B. "Letzte 7 Tage"). Matomo verwendet die Zeitzone ',s.jsx("strong",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:291",children:"Europe/Berlin"})," – diese Vorschau ebenfalls. Kleine Abweichungen können durch laufende Archivierung entstehen."]})]}),r?r.available&&r.data?s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:298",className:"space-y-3",children:[s.jsxs("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:299",className:"text-xs",style:{color:"#9ca3af"},children:["Zeitraum: ",r.data.period]}),s.jsx("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:300",className:"grid grid-cols-2 gap-3",children:[{icon:s.jsx(Ds,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:302",size:14}),label:"Besuche",value:r.data.visits.toLocaleString("de")},{icon:s.jsx(Ds,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:303",size:14}),label:"Unique Visitors",value:r.data.uniqueVisitors.toLocaleString("de")},{icon:s.jsx(fl,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:304",size:14}),label:"Seitenaufrufe",value:r.data.pageviews.toLocaleString("de")},{icon:s.jsx(Is,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:305",size:14}),label:"Absprungrate",value:r.data.bounceRate}].map(I=>s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:307",className:"rounded-xl p-3 text-center",style:{background:"#f8faff"},children:[s.jsx("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:308",className:"flex justify-center mb-1",style:{color:"#0066cc"},children:I.icon}),s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:309",className:"text-lg font-bold",style:{color:"#0d1b3e"},children:I.value}),s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:310",className:"text-xs",style:{color:"#9ca3af"},children:I.label})]},I.label))}),r.data.topPages.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:315",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:316",className:"text-xs font-semibold mb-2",style:{color:"#374151"},children:"Top-Seiten"}),s.jsx("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:317",className:"space-y-1.5",children:r.data.topPages.slice(0,5).map((I,z)=>s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:319",className:"flex items-center justify-between rounded-lg px-3 py-2",style:{background:"#f9fafb"},children:[s.jsx("span",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:320",className:"text-xs truncate max-w-[200px]",style:{color:"#374151"},children:I.label}),s.jsxs("span",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:321",className:"text-xs font-semibold ml-2 shrink-0",style:{color:"#0066cc"},children:[I.nb_visits," Besuche"]})]},z))})]}),r.data.deviceTypes.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:328",children:[s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:329",className:"text-xs font-semibold mb-2",style:{color:"#374151"},children:"Gerätetypen"}),s.jsx("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:330",className:"flex flex-wrap gap-2",children:r.data.deviceTypes.map((I,z)=>s.jsxs("span",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:332",className:"px-2.5 py-1 rounded-full text-xs font-medium",style:{background:"#eff6ff",color:"#0066cc"},children:[I.label,": ",I.nb_visits]},z))})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:341",className:"flex items-center gap-2 rounded-xl p-3",style:{background:"#fef2f2"},children:[s.jsx($e,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:342",size:13,style:{color:"#ef4444"}}),s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:343",className:"text-xs",style:{color:"#ef4444"},children:r.available?"Fehler beim Laden":r.message})]}):s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:349",className:"text-xs text-center py-4",style:{color:"#9ca3af"},children:'Klicken Sie auf "Daten laden" um aktuelle Matomo-Statistiken anzuzeigen.'})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:357",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:358",className:"flex items-center gap-2",children:[s.jsx(bl,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:359",size:14,style:{color:"#0066cc"}}),s.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:360",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"GSC CSV-Upload (Überbrückung)"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:364",className:"flex items-start gap-2 rounded-xl p-3",style:{background:"#eff6ff"},children:[s.jsx(St,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:365",size:13,style:{color:"#0066cc",marginTop:1,flexShrink:0}}),s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:366",className:"text-xs leading-relaxed",style:{color:"#1d4ed8"},children:"Laden Sie den GSC-Export hoch: Search Console → Leistung → Exportieren → CSV (ZIP oder einzelne CSV). Die ZIP-Datei von Google wird automatisch erkannt – Suchanfragen und Seiten werden kombiniert."})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:371",children:[s.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:372",ref:K,type:"file",accept:".csv,.zip",onChange:j,className:"hidden"}),s.jsxs("button",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:379",type:"button",onClick:()=>K.current?.click(),className:"flex items-center gap-2 px-4 py-2.5 rounded-xl border text-sm font-semibold transition-all hover:opacity-80",style:{borderColor:"#e5e7eb",color:"#374151"},children:[s.jsx(qa,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:385",size:14}),R?R.name:"CSV oder ZIP auswählen…"]}),R&&T&&s.jsxs("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:389",className:"text-xs mt-1.5 flex items-center gap-1",style:{color:"#16a34a"},children:[s.jsx(Ee,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:390",size:12}),R.name," geladen",R.name.endsWith(".zip")?" (Suchanfragen + Seiten extrahiert)":""," – wird beim nächsten Report verwendet"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:398",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:399",className:"flex items-center gap-2",children:[s.jsx(dt,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:400",size:14,style:{color:"#0066cc"}}),s.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:401",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Zeitplan (Hetzner Cron)"})]}),s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:405",className:"text-xs",style:{color:"#9ca3af"},children:"Der Cron-Job läuft direkt auf dem Hetzner-Server – unabhängig von Manus. Alle Zeiten in Berliner Ortszeit (automatische Sommer-/Winterzeit-Anpassung)."}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:409",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:410",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Ausführungszeitpunkt"}),s.jsx("select",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:413",value:O,onChange:I=>$(I.target.value),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},children:An.map(I=>s.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:420",value:I.value,children:I.label},I.value))})]}),O==="custom"&&s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:425",className:"space-y-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:426",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:427",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Cron-Ausdruck (5-stellig, Berliner Zeit)"}),s.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:430",type:"text",value:h.cronSchedule,onChange:I=>u(z=>({...z,cronSchedule:I.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm font-mono focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"0 8 * * 1"}),s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:438",className:"text-xs mt-1",style:{color:"#9ca3af"},children:"Format: Minute Stunde Tag Monat Wochentag (0=So, 1=Mo, …, 5=Fr, 6=Sa)"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:442",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:443",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Bezeichnung (für Anzeige)"}),s.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:446",type:"text",value:h.cronLabel,onChange:I=>u(z=>({...z,cronLabel:I.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"z.B. Montags, 08:00 Uhr"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:457",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:458",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Analysezeitraum (Tage zurück)"}),s.jsxs("select",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:461",value:h.lookbackDays,onChange:I=>u(z=>({...z,lookbackDays:Number(I.target.value)})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},children:[s.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:467",value:7,children:"Letzte 7 Tage"}),s.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:468",value:14,children:"Letzte 14 Tage"}),s.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:469",value:28,children:"Letzte 28 Tage"}),s.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:470",value:90,children:"Letzte 90 Tage"})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:476",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:477",className:"flex items-center gap-2",children:[s.jsx(Dn,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:478",size:14,style:{color:"#0066cc"}}),s.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:479",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Google Search Console (Service Account)"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:483",className:"flex items-start gap-2 rounded-xl p-3",style:{background:"#fff7ed"},children:[s.jsx(St,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:484",size:13,style:{color:"#f59e0b",marginTop:1,flexShrink:0}}),s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:485",className:"text-xs leading-relaxed",style:{color:"#92400e"},children:"Aktuell blockiert ein Google-Bug das Hinzufügen von Service Accounts zur Search Console. Sobald Google das behebt, hier den JSON-Key eintragen."})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:490",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:491",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Property URL"}),s.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:494",type:"text",value:h.gscPropertyUrl,onChange:I=>u(z=>({...z,gscPropertyUrl:I.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"https://www.stusche.de/"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:503",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:504",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Service Account JSON-Key"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:507",className:"relative",children:[s.jsx("textarea",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:508",rows:b?6:2,value:h.gscServiceAccountJson==="***set***"&&!b?"●●●●●●●●●●●●●●●●●●●●●●●●":h.gscServiceAccountJson,onChange:I=>u(z=>({...z,gscServiceAccountJson:I.target.value})),onFocus:()=>{h.gscServiceAccountJson==="***set***"&&u(I=>({...I,gscServiceAccountJson:""}))},className:"w-full px-3.5 py-2.5 rounded-xl border text-sm font-mono focus:outline-none resize-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:'{"type":"service_account","project_id":"…"}'}),s.jsx("button",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:523",type:"button",onClick:()=>m(I=>!I),className:"absolute right-3 top-3",style:{color:"#9ca3af"},children:b?s.jsx(jt,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:529",size:14}):s.jsx(ft,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:529",size:14})})]}),t?.gscServiceAccountJson==="***set***"&&s.jsxs("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:533",className:"text-xs mt-1.5 flex items-center gap-1",style:{color:"#16a34a"},children:[s.jsx(Ee,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:534",size:12})," JSON-Key hinterlegt"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:541",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:542",className:"flex items-center gap-2",children:[s.jsx(bn,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:543",size:14,style:{color:"#0066cc"}}),s.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:544",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Matomo Analytics"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:548",className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:549",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:550",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Matomo URL"}),s.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:553",type:"text",value:h.matomoBaseUrl,onChange:I=>u(z=>({...z,matomoBaseUrl:I.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"https://matomo.stusche.de"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:562",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:563",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Site ID"}),s.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:566",type:"text",value:h.matomoSiteId,onChange:I=>u(z=>({...z,matomoSiteId:I.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"1"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:576",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:577",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"API Token"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:580",className:"relative",children:[s.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:581",type:k?"text":"password",value:h.matomoApiToken==="***set***"&&!k?"●●●●●●●●●●●●●●●●●●●●●●●●":h.matomoApiToken,onChange:I=>u(z=>({...z,matomoApiToken:I.target.value})),onFocus:()=>{h.matomoApiToken==="***set***"&&u(I=>({...I,matomoApiToken:""}))},className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none pr-10",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"32-stelliger Matomo API Token"}),s.jsx("button",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:596",type:"button",onClick:()=>C(I=>!I),className:"absolute right-3 top-1/2 -translate-y-1/2",style:{color:"#9ca3af"},children:k?s.jsx(jt,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:602",size:14}):s.jsx(ft,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:602",size:14})})]}),t?.matomoApiToken==="***set***"&&s.jsxs("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:606",className:"text-xs mt-1.5 flex items-center gap-1",style:{color:"#16a34a"},children:[s.jsx(Ee,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:607",size:12})," Token hinterlegt"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:614",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:615",className:"flex items-center gap-2",children:[s.jsx(Is,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:616",size:14,style:{color:"#0066cc"}}),s.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:617",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"KI-Analyse (OpenAI)"})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:621",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:622",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"API Key"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:625",className:"relative",children:[s.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:626",type:v?"text":"password",value:h.openaiApiKey==="***set***"&&!v?"●●●●●●●●●●●●●●●●●●●●●●●●":h.openaiApiKey,onChange:I=>u(z=>({...z,openaiApiKey:I.target.value})),onFocus:()=>{h.openaiApiKey==="***set***"&&u(I=>({...I,openaiApiKey:""}))},className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none pr-10",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"sk-… (leer = Gyn-News-Key verwenden)"}),s.jsx("button",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:641",type:"button",onClick:()=>y(I=>!I),className:"absolute right-3 top-1/2 -translate-y-1/2",style:{color:"#9ca3af"},children:v?s.jsx(jt,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:647",size:14}):s.jsx(ft,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:647",size:14})})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:651",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:652",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Modell"}),s.jsxs("select",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:655",value:h.openaiModel,onChange:I=>u(z=>({...z,openaiModel:I.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},children:[s.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:661",value:"gpt-4o",children:"gpt-4o (empfohlen)"}),s.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:662",value:"gpt-4o-mini",children:"gpt-4o-mini (günstiger)"}),s.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:663",value:"gpt-4-turbo",children:"gpt-4-turbo"})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:669",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[s.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:670",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Bericht-Zustellung"}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:673",children:[s.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:674",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Empfänger E-Mail"}),s.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:677",type:"email",value:h.reportEmail,onChange:I=>u(z=>({...z,reportEmail:I.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"info@stusche.de"}),s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:685",className:"text-xs mt-1.5",style:{color:"#9ca3af"},children:"Der wöchentliche SEO-Bericht wird an diese Adresse gesendet. SMTP-Einstellungen aus den E-Mail-Einstellungen werden verwendet."})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:692",className:"flex flex-wrap items-center gap-3",children:[s.jsxs("button",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:693",onClick:()=>l.mutate({enabled:h.enabled,gscServiceAccountJson:h.gscServiceAccountJson||void 0,gscPropertyUrl:h.gscPropertyUrl,openaiApiKey:h.openaiApiKey||void 0,openaiModel:h.openaiModel,reportEmail:h.reportEmail||null,cronSchedule:h.cronSchedule,cronLabel:h.cronLabel,lookbackDays:h.lookbackDays,matomoApiToken:h.matomoApiToken||void 0,matomoSiteId:h.matomoSiteId,matomoBaseUrl:h.matomoBaseUrl}),disabled:l.isPending,className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold text-white transition-all hover:opacity-90 disabled:opacity-50",style:{background:"#0d1b3e"},children:[s.jsx(bt,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:712",size:14}),l.isPending?"Speichern…":"Einstellungen speichern"]}),s.jsx("button",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:716",onClick:B,disabled:d.isPending||!h.enabled,title:h.enabled?R?`Report mit ${R.name} ausführen`:"Report jetzt ausführen":"Bericht erst aktivieren",className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold transition-all hover:opacity-90 disabled:opacity-40",style:{background:"#eff6ff",color:"#0066cc"},children:d.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Ue,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:724",size:14,className:"animate-spin"})," Läuft…"]}):s.jsxs(s.Fragment,{children:[s.jsx(pl,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:725",size:14})," ",R?"Report mit CSV ausführen":"Jetzt ausführen"]})}),l.isSuccess&&s.jsxs("span",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:730",className:"flex items-center gap-1.5 text-xs font-semibold",style:{color:"#16a34a"},children:[s.jsx(Ee,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:731",size:13})," Gespeichert"]}),l.isError&&s.jsxs("span",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:735",className:"flex items-center gap-1.5 text-xs font-semibold",style:{color:"#ef4444"},children:[s.jsx($e,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:736",size:13})," Fehler beim Speichern"]}),d.isSuccess&&s.jsxs("span",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:740",className:"flex items-center gap-1.5 text-xs font-semibold",style:{color:"#16a34a"},children:[s.jsx(Ee,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:741",size:13}),d.data?.success?`Report gesendet · ${d.data.message}`:d.data?.message]}),d.isError&&s.jsxs("span",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:748",className:"flex items-center gap-1.5 text-xs font-semibold",style:{color:"#ef4444"},children:[s.jsx($e,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:749",size:13})," Fehler: ",d.error?.message]})]}),s.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:755",className:"rounded-2xl border p-5 space-y-3",style:{borderColor:"#e5e7eb",background:"#f9fafb"},children:[s.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:756",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Hetzner Cron-Job einrichten (einmalig)"}),s.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:759",className:"text-xs",style:{color:"#6b7280"},children:"Nach dem Speichern und Deployen den folgenden Cron-Job auf dem Hetzner-Server einrichten:"}),s.jsx("pre",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:762",className:"text-xs rounded-xl p-3 overflow-x-auto",style:{background:"#1a1a2e",color:"#e2e8f0",fontFamily:"monospace"},children:`# crontab -e
${h.cronSchedule} /opt/stusche-website/scripts/seo-report.sh`}),s.jsxs("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:769",className:"text-xs",style:{color:"#9ca3af"},children:["Das Skript ",s.jsx("code",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:770",children:"/opt/stusche-website/scripts/seo-report.sh"})," wird beim Deployment automatisch erstellt."]})]})]})})}const md=Object.freeze(Object.defineProperty({__proto__:null,default:Yl},Symbol.toStringTag,{value:"Module"}));export{Xl as $,ic as A,hc as B,pc as C,xc as D,ll as E,kc as F,cl as G,jc as H,pt as I,Va as J,Uc as K,Pc as L,ln as M,fl as N,ac as O,Qa as P,oc as Q,ee as R,gl as S,nc as T,vl as U,Nc as V,sd as W,Za as X,Jn as Y,rc as Z,sc as _,so as a,tc as a0,ec as a1,$c as a2,dc as a3,Zc as a4,wc as a5,Tc as a6,_c as a7,Wc as a8,dt as a9,ft as aA,Oc as aB,fc as aC,Jc as aD,Yc as aE,ea as aF,Ga as aG,Cc as aH,on as aI,zc as aJ,Lc as aK,Dc as aL,ts as aM,rd as aN,id as aO,od as aP,ld as aQ,cd as aR,dd as aS,ud as aT,hd as aU,md as aV,ad as aa,qa as ab,cc as ac,bc as ad,xl as ae,Rc as af,Ha as ag,ol as ah,Is as ai,Ac as aj,Qc as ak,lc as al,Ec as am,Ee as an,$e as ao,Ic as ap,Mc as aq,nd as ar,td as as,Bc as at,vc as au,il as av,Hc as aw,Gc as ax,mc as ay,Sc as az,W as b,ao as c,Xc as d,Fc as e,hl as f,Fn as g,zs as h,gc as i,s as j,Jt as k,yc as l,Dn as m,$a as n,Ka as o,ml as p,ed as q,Wn as r,qc as s,me as t,La as u,Kc as v,bn as w,Ds as x,uc as y,Vc as z};