PageSourceSearch

https://adflow-aktu-lis-uqux.bolt.host/assets/index-3b7a4788.js

js adflow-aktu-lis-uqux.bolt.host collected 2026-10-03 03:10:07 UTC 302,907 bytes, 45 lines download raw bytes

vendor: 19,487 bytes, lines 1-34
1(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bc={exports:{}},Ks={},zc={exports:{}},B={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Tr=Symbol.for("react.element"),kf=Symbol.for("react.portal"),wf=Symbol.for("react.fragment"),jf=Symbol.for("react.strict_mode"),Nf=Symbol.for("react.profiler"),Sf=Symbol.for("react.provider"),bf=Symbol.for("react.context"),zf=Symbol.for("react.forward_ref"),Cf=Symbol.for("react.suspense"),Ef=Symbol.for("react.memo"),Tf=Symbol.for("react.lazy"),Go=Symbol.iterator;function Pf(e){return e===null||typeof e!="object"?null:(e=Go&&e[Go]||e["@@iterator"],typeof e=="function"?e:null)}var Cc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ec=Object.assign,Tc={};function Ln(e,t,n){this.props=e,this.context=t,this.refs=Tc,this.updater=n||Cc}Ln.prototype.isReactComponent={};Ln.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ln.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pc(){}Pc.prototype=Ln.prototype;function Wi(e,t,n){this.props=e,this.context=t,this.refs=Tc,this.updater=n||Cc}var Qi=Wi.prototype=new Pc;Qi.constructor=Wi;Ec(Qi,Ln.prototype);Qi.isPureReactComponent=!0;var Xo=Array.isArray,_c=Object.prototype.hasOwnProperty,qi={current:null},Rc={key:!0,ref:!0,__self:!0,__source:!0};function Ac(e,t,n){var r,s={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)_c.call(t,r)&&!Rc.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var c=Array(a),u=0;u<a;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Tr,type:e,key:l,ref:o,props:s,_owner:qi.current}}function _f(e,t){return{$$typeof:Tr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Gi(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tr}function Rf(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Jo=/\/+/g;function gl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Rf(""+e.key):t.toString(36)}function ts(e,t,n,r,s){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Tr:case kf:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+gl(o,0):r,Xo(s)?(n="",e!=null&&(n=e.replace(Jo,"$&/")+"/"),ts(s,t,n,"",function(u){return u})):s!=null&&(Gi(s)&&(s=_f(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Jo,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Xo(e))for(var a=0;a<e.length;a++){l=e[a];var c=r+gl(l,a);o+=ts(l,t,n,c,s)}else if(c=Pf(e),typeof c=="function")for(e=c.call(e),a=0;!(l=e.next()).done;)l=l.value,c=r+gl(l,a++),o+=ts(l,t,n,c,s);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Mr(e,t,n){if(e==null)return e;var r=[],s=0;return ts(e,r,"","",function(l){return t.call(n,l,s++)}),r}function Af(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Se={current:null},ns={transition:null},Lf={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:ns,ReactCurrentOwner:qi};function Lc(){throw Error("act(...) is not supported in production builds of React.")}B.Children={map:Mr,forEach:function(e,t,n){Mr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Mr(e,function(){t++}),t},toArray:function(e){return Mr(e,function(t){return t})||[]},only:function(e){if(!Gi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};B.Component=Ln;B.Fragment=wf;B.Profiler=Nf;B.PureComponent=Wi;B.StrictMode=jf;B.Suspense=Cf;B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lf;B.act=Lc;B.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ec({},e.props),s=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=qi.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)_c.call(t,c)&&!Rc.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var u=0;u<c;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Tr,type:e.type,key:s,ref:l,props:r,_owner:o}};B.createContext=function(e){return e={$$typeof:bf,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Sf,_context:e},e.Consumer=e};B.createElement=Ac;B.createFactory=function(e){var t=Ac.bind(null,e);return t.type=e,t};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:zf,render:e}};B.isValidElement=Gi;B.lazy=function(e){return{$$typeof:Tf,_payload:{_status:-1,_result:e},_init:Af}};B.memo=function(e,t){return{$$typeof:Ef,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=ns.transition;ns.transition={};try{e()}finally{ns.transition=t}};B.unstable_act=Lc;B.useCallback=function(e,t){return Se.current.useCallback(e,t)};B.useContext=function(e){return Se.current.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e){return Se.current.useDeferredValue(e)};B.useEffect=function(e,t){return Se.current.useEffect(e,t)};B.useId=function(){return Se.current.useId()};B.useImperativeHandle=function(e,t,n){return Se.current.useImperativeHandle(e,t,n)};B.useInsertionEffect=function(e,t){return Se.current.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return Se.current.useLayoutEffect(e,t)};B.useMemo=function(e,t){return Se.current.useMemo(e,t)};B.useReducer=function(e,t,n){return Se.current.useReducer(e,t,n)};B.useRef=function(e){return Se.current.useRef(e)};B.useState=function(e){return Se.current.useState(e)};B.useSyncExternalStore=function(e,t,n){return Se.current.useSyncExternalStore(e,t,n)};B.useTransition=function(){return Se.current.useTransition()};B.version="18.3.1";zc.exports=B;var O=zc.exports;const Yo=vf(O);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var If=O,Of=Symbol.for("react.element"),Mf=Symbol.for("react.fragment"),Ff=Object.prototype.hasOwnProperty,$f=If.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Uf={key:!0,ref:!0,__self:!0,__source:!0};function Ic(e,t,n){var r,s={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Ff.call(t,r)&&!Uf.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Of,type:e,key:l,ref:o,props:s,_owner:$f.current}}Ks.Fragment=Mf;Ks.jsx=Ic;Ks.jsxs=Ic;bc.exports=Ks;var i=bc.exports,Oc={exports:{}},Fe={},Mc={exports:{}},Fc={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(b,R){var L=b.length;b.push(R);e:for(;0<L;){var $=L-1>>>1,D=b[$];if(0<s(D,R))b[$]=R,b[L]=D,L=$;else break e}}function n(b){return b.length===0?null:b[0]}function r(b){if(b.length===0)return null;var R=b[0],L=b.pop();if(L!==R){b[0]=L;e:for(var $=0,D=b.length,st=D>>>1;$<st;){var Qe=2*($+1)-1,qe=b[Qe],Ae=Qe+1,lt=b[Ae];if(0>s(qe,L))Ae<D&&0>s(lt,qe)?(b[$]=lt,b[Ae]=L,$=Ae):(b[$]=qe,b[Qe]=L,$=Qe);else if(Ae<D&&0>s(lt,L))b[$]=lt,b[Ae]=L,$=Ae;else break e}}return R}function s(b,R){var L=b.sortIndex-R.sortIndex;return L!==0?L:b.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var c=[],u=[],m=1,g=null,p=3,k=!1,x=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(b){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=b)r(u),R.sortIndex=R.expirationTime,t(c,R);else break;R=n(u)}}function j(b){if(y=!1,h(b),!x)if(n(c)!==null)x=!0,le(S);else{var R=n(u);R!==null&&I(j,R.startTime-b)}}function S(b,R){x=!1,y&&(y=!1,f(_),_=-1),k=!0;var L=p;try{for(h(R),g=n(c);g!==null&&(!(g.expirationTime>R)||b&&!me());){var $=g.callback;if(typeof $=="function"){g.callback=null,p=g.priorityLevel;var D=$(g.expirationTime<=R);R=e.unstable_now(),typeof D=="function"?g.callback=D:g===n(c)&&r(c),h(R)}else r(c);g=n(c)}if(g!==null)var st=!0;else{var Qe=n(u);Qe!==null&&I(j,Qe.startTime-R),st=!1}return st}finally{g=null,p=L,k=!1}}var E=!1,T=null,_=-1,V=5,F=-1;function me(){return!(e.unstable_now()-F<V)}function se(){if(T!==null){var b=e.unstable_now();F=b;var R=!0;try{R=T(!0,b)}finally{R?ze():(E=!1,T=null)}}else E=!1}var ze;if(typeof d=="function")ze=function(){d(se)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,H=M.port2;M.port1.onmessage=se,ze=function(){H.postMessage(null)}}else ze=function(){v(se,0)};function le(b){T=b,E||(E=!0,ze())}function I(b,R){_=v(function(){b(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(b){b.callback=null},e.unstable_continueExecution=function(){x||k||(x=!0,le(S))},e.unstable_forceFrameRate=function(b){0>b||125<b?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<b?Math.floor(1e3/b):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(b){switch(p){case 1:case 2:case 3:var R=3;break;default:R=p}var L=p;p=R;try{return b()}finally{p=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(b,R){switch(b){case 1:case 2:case 3:case 4:case 5:break;default:b=3}var L=p;p=b;try{return R()}finally{p=L}},e.unstable_scheduleCallback=function(b,R,L){var $=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?$+L:$):L=$,b){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=L+D,b={id:m++,callback:R,priorityLevel:b,startTime:L,expirationTime:D,sortIndex:-1},L>$?(b.sortIndex=L,t(u,b),n(c)===null&&b===n(u)&&(y?(f(_),_=-1):y=!0,I(j,L-$))):(b.sortIndex=D,t(c,b),x||k||(x=!0,le(S))),b},e.unstable_shouldYield=me,e.unstable_wrapCallback=function(b){var R=p;return function(){var L=p;p=R;try{return b.apply(this,arguments)}finally{p=L}}}})(Fc);Mc.exports=Fc;var Df=Mc.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Bf=O,Me=Df;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $c=new Set,ur={};function rn(e,t){Cn(e,t),Cn(e+"Capture",t)}function Cn(e,t){for(ur[e]=t,e=0;e<t.length;e++)$c.add(t[e])}var xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kl=Object.prototype.hasOwnProperty,Vf=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Zo={},ea={};function Hf(e){return Kl.call(ea,e)?!0:Kl.call(Zo,e)?!1:Vf.test(e)?ea[e]=!0:(Zo[e]=!0,!1)}function Kf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wf(e,t,n,r){if(t===null||typeof t>"u"||Kf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function be(e,t,n,r,s,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ge[e]=new be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ge[t]=new be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ge[e]=new be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ge[e]=new be(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ge[e]=new be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ge[e]=new be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ge[e]=new be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ge[e]=new be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ge[e]=new be(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xi=/[\-:]([a-z])/g;function Ji(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Xi,Ji);ge[t]=new be(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Xi,Ji);ge[t]=new be(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Xi,Ji);ge[t]=new be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ge[e]=new be(e,1,!1,e.toLowerCase(),null,!1,!1)});ge.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ge[e]=new be(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yi(e,t,n,r){var s=ge.hasOwnProperty(t)?ge[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Wf(t,n,s,r)&&(n=null),r||s===null?Hf(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var jt=Bf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fr=Symbol.for("react.element"),cn=Symbol.for("react.portal"),un=Symbol.for("react.fragment"),Zi=Symbol.for("react.strict_mode"),Wl=Symbol.for("react.profiler"),Uc=Symbol.for("react.provider"),Dc=Symbol.for("react.context"),eo=Symbol.for("react.forward_ref"),Ql=Symbol.for("react.suspense"),ql=Symbol.for("react.suspense_list"),to=Symbol.for("react.memo"),St=Symbol.for("react.lazy"),Bc=Symbol.for("react.offscreen"),ta=Symbol.iterator;function $n(e){return e===null||typeof e!="object"?null:(e=ta&&e[ta]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Object.assign,yl;function qn(e){if(yl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);yl=t&&t[1]||""}return`
34`+yl+e}var xl=!1;function vl(e,t){if(!e||xl)return"";xl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 1,435 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),l=r.stack.split(`
36`),o=s.length-1,a=l.length-1;1<=o&&0<=a&&s[o]!==l[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==l[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==l[a]){var c=`
37`+s[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=a);break}}}finally{xl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qn(e):""}function Qf(e){switch(e.tag){case 5:return qn(e.type);case 16:return qn("Lazy");case 13:return qn("Suspense");case 19:return qn("SuspenseList");case 0:case 2:case 15:return e=vl(e.type,!1),e;case 11:return e=vl(e.type.render,!1),e;case 1:return e=vl(e.type,!0),e;default:return""}}function Gl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case un:return"Fragment";case cn:return"Portal";case Wl:return"Profiler";case Zi:return"StrictMode";case Ql:return"Suspense";case ql:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dc:return(e.displayName||"Context")+".Consumer";case Uc:return(e._context.displayName||"Context")+".Provider";case eo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case to:return t=e.displayName||null,t!==null?t:Gl(e.type)||"Memo";case St:t=e._payload,e=e._init;
vendor: 13,313 bytes, line 37
37try{return Gl(e(t))}catch{}}return null}function qf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gl(t);case 8:return t===Zi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ft(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gf(e){var t=Vc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $r(e){e._valueTracker||(e._valueTracker=Gf(e))}function Hc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xl(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function na(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ft(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Kc(e,t){t=t.checked,t!=null&&Yi(e,"checked",t,!1)}function Jl(e,t){Kc(e,t);var n=Ft(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yl(e,t.type,Ft(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ra(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Yl(e,t,n){(t!=="number"||xs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gn=Array.isArray;function wn(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ft(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Zl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function sa(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(Gn(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ft(n)}}function Wc(e,t){var n=Ft(t.value),r=Ft(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function la(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Qc(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ei(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Qc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ur,qc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ur=Ur||document.createElement("div"),Ur.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ur.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xf=["Webkit","ms","Moz","O"];Object.keys(tr).forEach(function(e){Xf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),tr[t]=tr[e]})});function Gc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||tr.hasOwnProperty(e)&&tr[e]?(""+t).trim():t+"px"}function Xc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Gc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Jf=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ti(e,t){if(t){if(Jf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function ni(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ri=null;function no(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var si=null,jn=null,Nn=null;function ia(e){if(e=Rr(e)){if(typeof si!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Xs(t),si(e.stateNode,e.type,t))}}function Jc(e){jn?Nn?Nn.push(e):Nn=[e]:jn=e}function Yc(){if(jn){var e=jn,t=Nn;if(Nn=jn=null,ia(e),t)for(e=0;e<t.length;e++)ia(t[e])}}function Zc(e,t){return e(t)}function eu(){}var kl=!1;function tu(e,t,n){if(kl)return e(t,n);kl=!0;try{return Zc(e,t,n)}finally{kl=!1,(jn!==null||Nn!==null)&&(eu(),Yc())}}function fr(e,t){var n=e.stateNode;if(n===null)return null;var r=Xs(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(C(231,t,typeof n));return n}var li=!1;if(xt)try{var Un={};Object.defineProperty(Un,"passive",{get:function(){li=!0}}),window.addEventListener("test",Un,Un),window.removeEventListener("test",Un,Un)}catch{li=!1}function Yf(e,t,n,r,s,l,o,a,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(m){this.onError(m)}}var nr=!1,vs=null,ks=!1,ii=null,Zf={onError:function(e){nr=!0,vs=e}};function em(e,t,n,r,s,l,o,a,c){nr=!1,vs=null,Yf.apply(Zf,arguments)}function tm(e,t,n,r,s,l,o,a,c){if(em.apply(this,arguments),nr){if(nr){var u=vs;nr=!1,vs=null}else throw Error(C(198));ks||(ks=!0,ii=u)}}function sn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function nu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function oa(e){if(sn(e)!==e)throw Error(C(188))}function nm(e){var t=e.alternate;if(!t){if(t=sn(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var l=s.alternate;if(l===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===l.child){for(l=s.child;l;){if(l===n)return oa(s),e;if(l===r)return oa(s),t;l=l.sibling}throw Error(C(188))}if(n.return!==r.return)n=s,r=l;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=l;break}if(a===r){o=!0,r=s,n=l;break}a=a.sibling}if(!o){for(a=l.child;a;){if(a===n){o=!0,n=l,r=s;break}if(a===r){o=!0,r=l,n=s;break}a=a.sibling}if(!o)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function ru(e){return e=nm(e),e!==null?su(e):null}function su(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=su(e);if(t!==null)return t;e=e.sibling}return null}var lu=Me.unstable_scheduleCallback,aa=Me.unstable_cancelCallback,rm=Me.unstable_shouldYield,sm=Me.unstable_requestPaint,ie=Me.unstable_now,lm=Me.unstable_getCurrentPriorityLevel,ro=Me.unstable_ImmediatePriority,iu=Me.unstable_UserBlockingPriority,ws=Me.unstable_NormalPriority,im=Me.unstable_LowPriority,ou=Me.unstable_IdlePriority,Ws=null,ut=null;function om(e){if(ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(Ws,e,void 0,(e.current.flags&128)===128)}catch{}}var Ze=Math.clz32?Math.clz32:um,am=Math.log,cm=Math.LN2;function um(e){return e>>>=0,e===0?32:31-(am(e)/cm|0)|0}var Dr=64,Br=4194304;function Xn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function js(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Xn(a):(l&=o,l!==0&&(r=Xn(l)))}else o=n&~s,o!==0?r=Xn(o):l!==0&&(r=Xn(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,l=t&-t,s>=l||s===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ze(t),s=1<<n,r|=e[n],t&=~s;return r}function dm(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fm(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-Ze(l),a=1<<o,c=s[o];c===-1?(!(a&n)||a&r)&&(s[o]=dm(a,t)):c<=t&&(e.expiredLanes|=a),l&=~a}}function oi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function au(){var e=Dr;return Dr<<=1,!(Dr&4194240)&&(Dr=64),e}function wl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ze(t),e[t]=n}function mm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Ze(n),l=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~l}}function so(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ze(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var G=0;function cu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var uu,lo,du,fu,mu,ai=!1,Vr=[],Pt=null,_t=null,Rt=null,mr=new Map,pr=ne
vendor: 7,795 bytes, line 37
37w Map,zt=[],pm="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ca(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":mr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pr.delete(t.pointerId)}}function Dn(e,t,n,r,s,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[s]},t!==null&&(t=Rr(t),t!==null&&lo(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function hm(e,t,n,r,s){switch(t){case"focusin":return Pt=Dn(Pt,e,t,n,r,s),!0;case"dragenter":return _t=Dn(_t,e,t,n,r,s),!0;case"mouseover":return Rt=Dn(Rt,e,t,n,r,s),!0;case"pointerover":var l=s.pointerId;return mr.set(l,Dn(mr.get(l)||null,e,t,n,r,s)),!0;case"gotpointercapture":return l=s.pointerId,pr.set(l,Dn(pr.get(l)||null,e,t,n,r,s)),!0}return!1}function pu(e){var t=Kt(e.target);if(t!==null){var n=sn(t);if(n!==null){if(t=n.tag,t===13){if(t=nu(n),t!==null){e.blockedOn=t,mu(e.priority,function(){du(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ci(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ri=r,n.target.dispatchEvent(r),ri=null}else return t=Rr(n),t!==null&&lo(t),e.blockedOn=n,!1;t.shift()}return!0}function ua(e,t,n){rs(e)&&n.delete(t)}function gm(){ai=!1,Pt!==null&&rs(Pt)&&(Pt=null),_t!==null&&rs(_t)&&(_t=null),Rt!==null&&rs(Rt)&&(Rt=null),mr.forEach(ua),pr.forEach(ua)}function Bn(e,t){e.blockedOn===t&&(e.blockedOn=null,ai||(ai=!0,Me.unstable_scheduleCallback(Me.unstable_NormalPriority,gm)))}function hr(e){function t(s){return Bn(s,e)}if(0<Vr.length){Bn(Vr[0],e);for(var n=1;n<Vr.length;n++){var r=Vr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Pt!==null&&Bn(Pt,e),_t!==null&&Bn(_t,e),Rt!==null&&Bn(Rt,e),mr.forEach(t),pr.forEach(t),n=0;n<zt.length;n++)r=zt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zt.length&&(n=zt[0],n.blockedOn===null);)pu(n),n.blockedOn===null&&zt.shift()}var Sn=jt.ReactCurrentBatchConfig,Ns=!0;function ym(e,t,n,r){var s=G,l=Sn.transition;Sn.transition=null;try{G=1,io(e,t,n,r)}finally{G=s,Sn.transition=l}}function xm(e,t,n,r){var s=G,l=Sn.transition;Sn.transition=null;try{G=4,io(e,t,n,r)}finally{G=s,Sn.transition=l}}function io(e,t,n,r){if(Ns){var s=ci(e,t,n,r);if(s===null)_l(e,t,r,Ss,n),ca(e,r);else if(hm(s,e,t,n,r))r.stopPropagation();else if(ca(e,r),t&4&&-1<pm.indexOf(e)){for(;s!==null;){var l=Rr(s);if(l!==null&&uu(l),l=ci(e,t,n,r),l===null&&_l(e,t,r,Ss,n),l===s)break;s=l}s!==null&&r.stopPropagation()}else _l(e,t,r,null,n)}}var Ss=null;function ci(e,t,n,r){if(Ss=null,e=no(r),e=Kt(e),e!==null)if(t=sn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=nu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ss=e,null}function hu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(lm()){case ro:return 1;case iu:return 4;case ws:case im:return 16;case ou:return 536870912;default:return 16}default:return 16}}var Et=null,oo=null,ss=null;function gu(){if(ss)return ss;var e,t=oo,n=t.length,r,s="value"in Et?Et.value:Et.textContent,l=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[l-r];r++);return ss=s.slice(e,1<r?1-r:void 0)}function ls(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Hr(){return!0}function da(){return!1}function $e(e){function t(n,r,s,l,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(l):l[a]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Hr:da,this.isPropagationStopped=da,this}return ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Hr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hr)},persist:function(){},isPersistent:Hr}),t}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ao=$e(In),_r=ne({},In,{view:0,detail:0}),vm=$e(_r),jl,Nl,Vn,Qs=ne({},_r,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:co,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Vn&&(Vn&&e.type==="mousemove"?(jl=e.screenX-Vn.screenX,Nl=e.screenY-Vn.screenY):Nl=jl=0,Vn=e),jl)},movementY:function(e){return"movementY"in e?e.movementY:Nl}}),fa=$e(Qs),km=ne({},Qs,{dataTransfer:0}),wm=$e(km),jm=ne({},_r,{relatedTarget:0}),Sl=$e(jm),Nm=ne({},In,{animationName:0,elapsedTime:0,pseudoElement:0}),Sm=$e(Nm),bm=ne({},In,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zm=$e(bm),Cm=ne({},In,{data:0}),ma=$e(Cm),Em={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Pm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _m(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pm[e])?!!t[e]:!1}function co(){return _m}var Rm=ne({},_r,{key:function(e){if(e.key){var t=Em[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 6,048 bytes, line 37
37return e.type==="keypress"?(e=ls(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:co,charCode:function(e){return e.type==="keypress"?ls(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ls(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Am=$e(Rm),Lm=ne({},Qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pa=$e(Lm),Im=ne({},_r,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:co}),Om=$e(Im),Mm=ne({},In,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fm=$e(Mm),$m=ne({},Qs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Um=$e($m),Dm=[9,13,27,32],uo=xt&&"CompositionEvent"in window,rr=null;xt&&"documentMode"in document&&(rr=document.documentMode);var Bm=xt&&"TextEvent"in window&&!rr,yu=xt&&(!uo||rr&&8<rr&&11>=rr),ha=String.fromCharCode(32),ga=!1;function xu(e,t){switch(e){case"keyup":return Dm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dn=!1;function Vm(e,t){switch(e){case"compositionend":return vu(t);case"keypress":return t.which!==32?null:(ga=!0,ha);case"textInput":return e=t.data,e===ha&&ga?null:e;default:return null}}function Hm(e,t){if(dn)return e==="compositionend"||!uo&&xu(e,t)?(e=gu(),ss=oo=Et=null,dn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return yu&&t.locale!=="ko"?null:t.data;default:return null}}var Km={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ya(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Km[e.type]:t==="textarea"}function ku(e,t,n,r){Jc(r),t=bs(t,"onChange"),0<t.length&&(n=new ao("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var sr=null,gr=null;function Wm(e){_u(e,0)}function qs(e){var t=pn(e);if(Hc(t))return e}function Qm(e,t){if(e==="change")return t}var wu=!1;if(xt){var bl;if(xt){var zl="oninput"in document;if(!zl){var xa=document.createElement("div");xa.setAttribute("oninput","return;"),zl=typeof xa.oninput=="function"}bl=zl}else bl=!1;wu=bl&&(!document.documentMode||9<document.documentMode)}function va(){sr&&(sr.detachEvent("onpropertychange",ju),gr=sr=null)}function ju(e){if(e.propertyName==="value"&&qs(gr)){var t=[];ku(t,gr,e,no(e)),tu(Wm,t)}}function qm(e,t,n){e==="focusin"?(va(),sr=t,gr=n,sr.attachEvent("onpropertychange",ju)):e==="focusout"&&va()}function Gm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qs(gr)}function Xm(e,t){if(e==="click")return qs(t)}function Jm(e,t){if(e==="input"||e==="change")return qs(t)}function Ym(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nt=typeof Object.is=="function"?Object.is:Ym;function yr(e,t){if(nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Kl.call(t,s)||!nt(e[s],t[s]))return!1}return!0}function ka(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wa(e,t){var n=ka(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ka(n)}}function Nu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Su(){for(var e=window,t=xs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xs(e.document)}return t}function fo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Zm(e){var t=Su(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nu(n.ownerDocument.documentElement,n)){if(r!==null&&fo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,l=Math.min(r.start,s);r=r.end===void 0?l:Math.min(r.end,s),!e.extend&&l>r&&(s=r,r=l,l=s),s=wa(n,l);var o=wa(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ep=xt&&"documentMode"in document&&11>=document.documentMode,fn=null,ui=null,lr=null,di=!1;function ja(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;di||fn==null||fn!==xs(r)||(r=fn,"selectionStart"in r&&fo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,351 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),lr&&yr(lr,r)||(lr=r,r=bs(ui,"onSelect"),0<r.length&&(t=new ao("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fn)))}function Kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mn={animationend:Kr("Animation","AnimationEnd"),animationiteration:Kr("Animation","AnimationIteration"),animationstart:Kr("Animation","AnimationStart"),transitionend:Kr("Transition","TransitionEnd")},Cl={},bu={};xt&&(bu=document.createElement("div").style,"AnimationEvent"in window||(delete mn.animationend.animation,delete mn.animationiteration.animation,delete mn.animationstart.animation),"TransitionEvent"in window||delete mn.transitionend.transition);function Gs(e){if(Cl[e])return Cl[e];if(!mn[e])return e;var t=mn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bu)return Cl[e]=t[n];return e}var zu=Gs("animationend"),Cu=Gs("animationiteration"),Eu=Gs("animationstart"),Tu=Gs("transitionend"),Pu=new Map,Na="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ut(e,t){Pu.set(e,t),rn(t,[e])}for(var El=0;El<Na.length;El++){var Tl=Na[El],tp=Tl.toLowerCase(),np=Tl[0].toUpperCase()+Tl.slice(1);Ut(tp,"on"+np)}Ut(zu,"onAnimationEnd");Ut(Cu,"onAnimationIteration");Ut(Eu,"onAnimationStart");Ut("dblclick","onDoubleClick");Ut("focusin","onFocus");Ut("focusout","onBlur");Ut(Tu,"onTransitionEnd");Cn("onMouseEnter",["mouseout","mouseover"]);Cn("onMouseLeave",["mouseout","mouseover"]);Cn("onPointerEnter",["pointerout","pointerover"]);Cn("onPointerLeave",["pointerout","pointerover"]);rn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));rn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));rn("onBeforeInput",["compositionend","keypress","textInput","paste"]);rn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));rn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));rn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jn));function Sa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,tm(r,t,void 0,e),e.currentTarget=null}function _u(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],c=a.instance,u=a.currentTarget;if(a=a.listener,c!==l&&s.isPropagationStopped())break e;Sa(s,a,u),l=c}else for(o=0;o<r.length;o++){if(a=r[o],c=a.instance,u=a.currentTarget,a=a.listener,c!==l&&s.isPropagationStopped())break e;Sa(s,a,u),l=c}}}if(ks)throw e=ii,ks=!1,ii=null,e}function J(e,t){var n=t[gi];n===void 0&&(n=t[gi]=new Set);var r=e+"__bubble";n.has(r)||(Ru(t,e,2,!1),n.add(r))}function Pl(e,t,n){var r=0;t&&(r|=4),Ru(n,e,r,t)}var Wr="_reactListening"+Math.random().toString(36).slice(2);function xr(e){if(!e[Wr]){e[Wr]=!0,$c.forEach(function(n){n!=="selectionchange"&&(rp.has(n)||Pl(n,!1,e),Pl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wr]||(t[Wr]=!0,Pl("selectionchange",!1,t))}}function Ru(e,t,n,r){switch(hu(t)){case 1:var s=ym;break;case 4:s=xm;break;default:s=io}n=s.bind(null,t,n,e),s=void 0,!li||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}
vendor: 4,454 bytes, line 37
37function _l(e,t,n,r,s){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Kt(a),o===null)return;if(c=o.tag,c===5||c===6){r=l=o;continue e}a=a.parentNode}}r=r.return}tu(function(){var u=l,m=no(n),g=[];e:{var p=Pu.get(e);if(p!==void 0){var k=ao,x=e;switch(e){case"keypress":if(ls(n)===0)break e;case"keydown":case"keyup":k=Am;break;case"focusin":x="focus",k=Sl;break;case"focusout":x="blur",k=Sl;break;case"beforeblur":case"afterblur":k=Sl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=fa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=wm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Om;break;case zu:case Cu:case Eu:k=Sm;break;case Tu:k=Fm;break;case"scroll":k=vm;break;case"wheel":k=Um;break;case"copy":case"cut":case"paste":k=zm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=pa}var y=(t&4)!==0,v=!y&&e==="scroll",f=y?p!==null?p+"Capture":null:p;y=[];for(var d=u,h;d!==null;){h=d;var j=h.stateNode;if(h.tag===5&&j!==null&&(h=j,f!==null&&(j=fr(d,f),j!=null&&y.push(vr(d,j,h)))),v)break;d=d.return}0<y.length&&(p=new k(p,x,null,n,m),g.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",p&&n!==ri&&(x=n.relatedTarget||n.fromElement)&&(Kt(x)||x[vt]))break e;if((k||p)&&(p=m.window===m?m:(p=m.ownerDocument)?p.defaultView||p.parentWindow:window,k?(x=n.relatedTarget||n.toElement,k=u,x=x?Kt(x):null,x!==null&&(v=sn(x),x!==v||x.tag!==5&&x.tag!==6)&&(x=null)):(k=null,x=u),k!==x)){if(y=fa,j="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(y=pa,j="onPointerLeave",f="onPointerEnter",d="pointer"),v=k==null?p:pn(k),h=x==null?p:pn(x),p=new y(j,d+"leave",k,n,m),p.target=v,p.relatedTarget=h,j=null,Kt(m)===u&&(y=new y(f,d+"enter",x,n,m),y.target=h,y.relatedTarget=v,j=y),v=j,k&&x)t:{for(y=k,f=x,d=0,h=y;h;h=on(h))d++;for(h=0,j=f;j;j=on(j))h++;for(;0<d-h;)y=on(y),d--;for(;0<h-d;)f=on(f),h--;for(;d--;){if(y===f||f!==null&&y===f.alternate)break t;y=on(y),f=on(f)}y=null}else y=null;k!==null&&ba(g,p,k,y,!1),x!==null&&v!==null&&ba(g,v,x,y,!0)}}e:{if(p=u?pn(u):window,k=p.nodeName&&p.nodeName.toLowerCase(),k==="select"||k==="input"&&p.type==="file")var S=Qm;else if(ya(p))if(wu)S=Jm;else{S=Gm;var E=qm}else(k=p.nodeName)&&k.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=Xm);if(S&&(S=S(e,u))){ku(g,S,n,m);break e}E&&E(e,p,u),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&Yl(p,"number",p.value)}switch(E=u?pn(u):window,e){case"focusin":(ya(E)||E.contentEditable==="true")&&(fn=E,ui=u,lr=null);break;case"focusout":lr=ui=fn=null;break;case"mousedown":di=!0;break;case"contextmenu":case"mouseup":case"dragend":di=!1,ja(g,n,m);break;case"selectionchange":if(ep)break;case"keydown":case"keyup":ja(g,n,m)}var T;if(uo)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else dn?xu(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(yu&&n.locale!=="ko"&&(dn||_!=="onCompositionStart"?_==="onCompositionEnd"&&dn&&(T=gu()):(Et=m,oo="value"in Et?Et.value:Et.textContent,dn=!0)),E=bs(u,_),0<E.length&&(_=new ma(_,e,null,n,m),g.push({event:_,listeners:E}),T?_.data=T:(T=vu(n),T!==null&&(_.data=T)))),(T=Bm?Vm(e,n):Hm(e,n))&&(u=bs(u,"onBeforeInput"),0<u.length&&(m=new ma("onBeforeInput","beforeinput",null,n,m),g.push({event:m,listeners:u}),m.data=T))}_u(g,t)})}function vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bs(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,l=s.stateNode;s.tag===5&&l!==null&&(s=l,l=fr(e,n),l!=null&&r.unshift(vr(e,l,s)),l=fr(e,t),l!=null&&r.push(vr(e,l,s))),e=e.return}return r}function on(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}
vendor: 4,577 bytes, lines 37-38
37function ba(e,t,n,r,s){for(var l=t._reactName,o=[];n!==null&&n!==r;){var a=n,c=a.alternate,u=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&u!==null&&(a=u,s?(c=fr(n,l),c!=null&&o.unshift(vr(n,c,a))):s||(c=fr(n,l),c!=null&&o.push(vr(n,c,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var sp=/\r\n?/g,lp=/\u0000|\uFFFD/g;function za(e){return(typeof e=="string"?e:""+e).replace(sp,`
38`).replace(lp,"")}function Qr(e,t,n){if(t=za(t),za(e)!==t&&n)throw Error(C(425))}function zs(){}var fi=null,mi=null;function pi(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hi=typeof setTimeout=="function"?setTimeout:void 0,ip=typeof clearTimeout=="function"?clearTimeout:void 0,Ca=typeof Promise=="function"?Promise:void 0,op=typeof queueMicrotask=="function"?queueMicrotask:typeof Ca<"u"?function(e){return Ca.resolve(null).then(e).catch(ap)}:hi;function ap(e){setTimeout(function(){throw e})}function Rl(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),hr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);hr(t)}function At(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ea(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var On=Math.random().toString(36).slice(2),ct="__reactFiber$"+On,kr="__reactProps$"+On,vt="__reactContainer$"+On,gi="__reactEvents$"+On,cp="__reactListeners$"+On,up="__reactHandles$"+On;function Kt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ea(e);e!==null;){if(n=e[ct])return n;e=Ea(e)}return t}e=n,n=e.parentNode}return null}function Rr(e){return e=e[ct]||e[vt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function pn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Xs(e){return e[kr]||null}var yi=[],hn=-1;function Dt(e){return{current:e}}function Y(e){0>hn||(e.current=yi[hn],yi[hn]=null,hn--)}function X(e,t){hn++,yi[hn]=e.current,e.current=t}var $t={},we=Dt($t),Te=Dt(!1),Jt=$t;function En(e,t){var n=e.type.contextTypes;if(!n)return $t;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},l;for(l in n)s[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Pe(e){return e=e.childContextTypes,e!=null}function Cs(){Y(Te),Y(we)}function Ta(e,t,n){if(we.current!==$t)throw Error(C(168));X(we,t),X(Te,n)}function Au(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(C(108,qf(e)||"Unknown",s));return ne({},n,r)}function Es(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$t,Jt=we.current,X(we,e),X(Te,Te.current),!0}function Pa(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=Au(e,t,Jt),r.__reactInternalMemoizedMergedChildContext=e,Y(Te),Y(we),X(we,e)):Y(Te),X(Te,n)}var pt=null,Js=!1,Al=!1;function Lu(e){pt===null?pt=[e]:pt.push(e)}function dp(e){Js=!0,Lu(e)}function Bt(){if(!Al&&pt!==null){Al=!0;var e=0,t=G;try{var n=pt;for(G=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}pt=null,Js=!1}catch(s){throw pt!==null&&(pt=pt.slice(e+1)),lu(ro,Bt),s}finally{G=t,Al=!1}}return null}var gn=[],yn=0,Ts=null,Ps=0,De=[],Be=0,Yt=null,ht=1,gt="";function Vt(e,t){gn[yn++]=Ps,gn[yn++]=Ts,Ts=e,Ps=t}function Iu(e,t,n){De[Be++]=ht,De[Be++]=gt,De[Be++]=Yt,Yt=e;var r=ht;e=gt;var s=32-Ze(r)-1;r&=~(1<<s),n+=1;var l=32-Ze(t)+s;if(30<l){var o=s-s%5;l=(r&(1<<o)-1).toString(32),r>>=o,s-=o,ht=1<<32-Ze(t)+s|n<<s|r,gt=l+e}else ht=1<<l|n<<s|r,gt=e}function mo(e){e.return!==null&&(Vt(e,1),Iu(e,1,0))}function po(e){for(;e===Ts;)Ts=gn[--yn],gn[yn]=null,Ps=gn[--yn],gn[yn]=null;for(;e===Yt;)Yt=De[--Be],De[Be]=null,gt=De[--Be],De[Be]=null,ht=De[--Be],De[Be]=null}var Oe=null,Ie=null,Z=!1,Ye=null;function Ou(e,t){var n=Ve(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function _a(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 5,581 bytes, line 38
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Oe=e,Ie=At(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Oe=e,Ie=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Yt!==null?{id:ht,overflow:gt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ve(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Oe=e,Ie=null,!0):!1;default:return!1}}function xi(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vi(e){if(Z){var t=Ie;if(t){var n=t;if(!_a(e,t)){if(xi(e))throw Error(C(418));t=At(n.nextSibling);var r=Oe;t&&_a(e,t)?Ou(r,n):(e.flags=e.flags&-4097|2,Z=!1,Oe=e)}}else{if(xi(e))throw Error(C(418));e.flags=e.flags&-4097|2,Z=!1,Oe=e}}}function Ra(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Oe=e}function qr(e){if(e!==Oe)return!1;if(!Z)return Ra(e),Z=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pi(e.type,e.memoizedProps)),t&&(t=Ie)){if(xi(e))throw Mu(),Error(C(418));for(;t;)Ou(e,t),t=At(t.nextSibling)}if(Ra(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ie=At(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ie=null}}else Ie=Oe?At(e.stateNode.nextSibling):null;return!0}function Mu(){for(var e=Ie;e;)e=At(e.nextSibling)}function Tn(){Ie=Oe=null,Z=!1}function ho(e){Ye===null?Ye=[e]:Ye.push(e)}var fp=jt.ReactCurrentBatchConfig;function Hn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(C(309));var r=n.stateNode}if(!r)throw Error(C(147,e));var s=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var a=s.refs;o===null?delete a[l]:a[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function Gr(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Aa(e){var t=e._init;return t(e._payload)}function Fu(e){function t(f,d){if(e){var h=f.deletions;h===null?(f.deletions=[d],f.flags|=16):h.push(d)}}function n(f,d){if(!e)return null;for(;d!==null;)t(f,d),d=d.sibling;return null}function r(f,d){for(f=new Map;d!==null;)d.key!==null?f.set(d.key,d):f.set(d.index,d),d=d.sibling;return f}function s(f,d){return f=Mt(f,d),f.index=0,f.sibling=null,f}function l(f,d,h){return f.index=h,e?(h=f.alternate,h!==null?(h=h.index,h<d?(f.flags|=2,d):h):(f.flags|=2,d)):(f.flags|=1048576,d)}function o(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,d,h,j){return d===null||d.tag!==6?(d=Ul(h,f.mode,j),d.return=f,d):(d=s(d,h),d.return=f,d)}function c(f,d,h,j){var S=h.type;return S===un?m(f,d,h.props.children,j,h.key):d!==null&&(d.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===St&&Aa(S)===d.type)?(j=s(d,h.props),j.ref=Hn(f,d,h),j.return=f,j):(j=fs(h.type,h.key,h.props,null,f.mode,j),j.ref=Hn(f,d,h),j.return=f,j)}function u(f,d,h,j){return d===null||d.tag!==4||d.stateNode.containerInfo!==h.containerInfo||d.stateNode.implementation!==h.implementation?(d=Dl(h,f.mode,j),d.return=f,d):(d=s(d,h.children||[]),d.return=f,d)}function m(f,d,h,j,S){return d===null||d.tag!==7?(d=Xt(h,f.mode,j,S),d.return=f,d):(d=s(d,h),d.return=f,d)}function g(f,d,h){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Ul(""+d,f.mode,h),d.return=f,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Fr:return h=fs(d.type,d.key,d.props,null,f.mode,h),h.ref=Hn(f,null,d),h.return=f,h;case cn:return d=Dl(d,f.mode,h),d.return=f,d;case St:var j=d._init;return g(f,j(d._payload),h)}if(Gn(d)||$n(d))return d=Xt(d,f.mode,h,null),d.return=f,d;Gr(f,d)}return null}function p(f,d,h,j){var S=d!==null?d.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return S!==null?null:a(f,d,""+h,j);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Fr:return h.key===S?c(f,d,h,j):null;case cn:return h.key===S?u(f,d,h,j):null;case St:return S=h._init,p(f,d,S(h._payload),j)}if(Gn(h)||$n(h))return S!==null?null:m(f,d,h,j,null);Gr(f,h)}return null}function k(f,d,h,j,S){if(typeof j=="string"&&j!==""||typeof j=="number")return f=f.get(h)||null,a(d,f,""+j,S);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Fr:return f=f.get(j.key===null?h:j.key)||null,c(d,f,j,S);case cn:return f=f.get(j.key===null?h:j.key)||null,u(d,f,j,S);case St:var E=j._init;return k(f,d,h,E(j._payload),S)}if(Gn(j)||$n(j))return f=f.get(h)||null,m(d,f,j,S,null);Gr(d,j)}return null}function x(f,d,h,j){for(var S=null,E=null,T=d,_=d=0,V=null;T!==null&&_<h.length;_++){T.index>_?(V=T,T=null):V=T.sibling;var F=p(f,T,h[_],j);if(F===null){T===null&&(T=V);break}e&&T&&F.alternate===null&&t(f,T),d=l(F,d,_),E===null?S=F:E.sibling=F,E=F,T=V}if(_===h.length)return n(f,T),Z&&Vt(f,_),S;if(T===null){for(;_<h.length;_++)T=g(f,h[_],j),T!==null&&(d=l(T,d,_),E===null?S=T:E.sibling=T,E=T);return Z&&Vt(f,_),S}for(T=r(f,T);_<h.length;_++)V=k(T,f,_,h[_],j),V!==null&&(e&&V.alternate!==null&&T.delete(V.key===null?_:V.key),d=l(V,d,_),E===null?S=V:E.sibling=V,E=V);return e&&T.forEach(function(me){return t(f,me)}),Z&&Vt(f,_),S}function y(f,d,h,j){var S=$n(h);if(typeof S!="function")throw Error(C(150));if(h=S.call(h),h==null)throw Error(C(151));for(var E=S=null,T=d,_=d=0,V=null,F=h.next();T!==null&&!F.done;_++,F=h.next()){T.index>_?(V=T,T=null):V=T.sibling;
vendor: 5,557 bytes, line 38
38var me=p(f,T,F.value,j);if(me===null){T===null&&(T=V);break}e&&T&&me.alternate===null&&t(f,T),d=l(me,d,_),E===null?S=me:E.sibling=me,E=me,T=V}if(F.done)return n(f,T),Z&&Vt(f,_),S;if(T===null){for(;!F.done;_++,F=h.next())F=g(f,F.value,j),F!==null&&(d=l(F,d,_),E===null?S=F:E.sibling=F,E=F);return Z&&Vt(f,_),S}for(T=r(f,T);!F.done;_++,F=h.next())F=k(T,f,_,F.value,j),F!==null&&(e&&F.alternate!==null&&T.delete(F.key===null?_:F.key),d=l(F,d,_),E===null?S=F:E.sibling=F,E=F);return e&&T.forEach(function(se){return t(f,se)}),Z&&Vt(f,_),S}function v(f,d,h,j){if(typeof h=="object"&&h!==null&&h.type===un&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Fr:e:{for(var S=h.key,E=d;E!==null;){if(E.key===S){if(S=h.type,S===un){if(E.tag===7){n(f,E.sibling),d=s(E,h.props.children),d.return=f,f=d;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===St&&Aa(S)===E.type){n(f,E.sibling),d=s(E,h.props),d.ref=Hn(f,E,h),d.return=f,f=d;break e}n(f,E);break}else t(f,E);E=E.sibling}h.type===un?(d=Xt(h.props.children,f.mode,j,h.key),d.return=f,f=d):(j=fs(h.type,h.key,h.props,null,f.mode,j),j.ref=Hn(f,d,h),j.return=f,f=j)}return o(f);case cn:e:{for(E=h.key;d!==null;){if(d.key===E)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){n(f,d.sibling),d=s(d,h.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=Dl(h,f.mode,j),d.return=f,f=d}return o(f);case St:return E=h._init,v(f,d,E(h._payload),j)}if(Gn(h))return x(f,d,h,j);if($n(h))return y(f,d,h,j);Gr(f,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(n(f,d.sibling),d=s(d,h),d.return=f,f=d):(n(f,d),d=Ul(h,f.mode,j),d.return=f,f=d),o(f)):n(f,d)}return v}var Pn=Fu(!0),$u=Fu(!1),_s=Dt(null),Rs=null,xn=null,go=null;function yo(){go=xn=Rs=null}function xo(e){var t=_s.current;Y(_s),e._currentValue=t}function ki(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function bn(e,t){Rs=e,go=xn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ee=!0),e.firstContext=null)}function Ke(e){var t=e._currentValue;if(go!==e)if(e={context:e,memoizedValue:t,next:null},xn===null){if(Rs===null)throw Error(C(308));xn=e,Rs.dependencies={lanes:0,firstContext:e}}else xn=xn.next=e;return t}var Wt=null;function vo(e){Wt===null?Wt=[e]:Wt.push(e)}function Uu(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,vo(t)):(n.next=s.next,s.next=n),t.interleaved=n,kt(e,r)}function kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var bt=!1;function ko(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Du(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Lt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,kt(e,n)}return s=r.interleaved,s===null?(t.next=t,vo(r)):(t.next=s.next,s.next=t),r.interleaved=t,kt(e,n)}function is(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,so(e,n)}}function La(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?s=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?s=l=t:l=l.next=t}else s=l=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function As(e,t,n,r){var s=e.updateQueue;bt=!1;var l=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var c=a,u=c.next;c.next=null,o===null?l=u:o.next=u,o=c;var m=e.alternate;m!==null&&(m=m.updateQueue,a=m.lastBaseUpdate,a!==o&&(a===null?m.firstBaseUpdate=u:a.next=u,m.lastBaseUpdate=c))}if(l!==null){var g=s.baseState;o=0,m=u=c=null,a=l;do{var p=a.lane,k=a.eventTime;if((r&p)===p){m!==null&&(m=m.next={eventTime:k,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,y=a;switch(p=t,k=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){g=x.call(k,g,p);break e}g=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,p=typeof x=="function"?x.call(k,g,p):x,p==null)break e;g=ne({},g,p);break e;case 2:bt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[a]:p.push(a))}else k={eventTime:k,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},m===null?(u=m=k,c=g):m=m.next=k,o|=p;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;p=a,a=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(1);if(m===null&&(c=g),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=m,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else l===null&&(s.shared.lanes=0);en|=o,e.lanes=o,e.memoizedState=g}}
vendor: 15,673 bytes, lines 38-40
38function Ia(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(C(191,s));s.call(r)}}}var Ar={},dt=Dt(Ar),wr=Dt(Ar),jr=Dt(Ar);function Qt(e){if(e===Ar)throw Error(C(174));return e}function wo(e,t){switch(X(jr,t),X(wr,e),X(dt,Ar),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ei(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ei(t,e)}Y(dt),X(dt,t)}function _n(){Y(dt),Y(wr),Y(jr)}function Bu(e){Qt(jr.current);var t=Qt(dt.current),n=ei(t,e.type);t!==n&&(X(wr,e),X(dt,n))}function jo(e){wr.current===e&&(Y(dt),Y(wr))}var ee=Dt(0);function Ls(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ll=[];function No(){for(var e=0;e<Ll.length;e++)Ll[e]._workInProgressVersionPrimary=null;Ll.length=0}var os=jt.ReactCurrentDispatcher,Il=jt.ReactCurrentBatchConfig,Zt=0,te=null,ce=null,de=null,Is=!1,ir=!1,Nr=0,mp=0;function ye(){throw Error(C(321))}function So(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nt(e[n],t[n]))return!1;return!0}function bo(e,t,n,r,s,l){if(Zt=l,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,os.current=e===null||e.memoizedState===null?yp:xp,e=n(r,s),ir){l=0;do{if(ir=!1,Nr=0,25<=l)throw Error(C(301));l+=1,de=ce=null,t.updateQueue=null,os.current=vp,e=n(r,s)}while(ir)}if(os.current=Os,t=ce!==null&&ce.next!==null,Zt=0,de=ce=te=null,Is=!1,t)throw Error(C(300));return e}function zo(){var e=Nr!==0;return Nr=0,e}function at(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return de===null?te.memoizedState=de=e:de=de.next=e,de}function We(){if(ce===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=ce.next;var t=de===null?te.memoizedState:de.next;if(t!==null)de=t,ce=e;else{if(e===null)throw Error(C(310));ce=e,e={memoizedState:ce.memoizedState,baseState:ce.baseState,baseQueue:ce.baseQueue,queue:ce.queue,next:null},de===null?te.memoizedState=de=e:de=de.next=e}return de}function Sr(e,t){return typeof t=="function"?t(e):t}function Ol(e){var t=We(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=ce,s=r.baseQueue,l=n.pending;if(l!==null){if(s!==null){var o=s.next;s.next=l.next,l.next=o}r.baseQueue=s=l,n.pending=null}if(s!==null){l=s.next,r=r.baseState;var a=o=null,c=null,u=l;do{var m=u.lane;if((Zt&m)===m)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var g={lane:m,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(a=c=g,o=r):c=c.next=g,te.lanes|=m,en|=m}u=u.next}while(u!==null&&u!==l);c===null?o=r:c.next=a,nt(r,t.memoizedState)||(Ee=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do l=s.lane,te.lanes|=l,en|=l,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ml(e){var t=We(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,l=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do l=e(l,o.action),o=o.next;while(o!==s);nt(l,t.memoizedState)||(Ee=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Vu(){}function Hu(e,t){var n=te,r=We(),s=t(),l=!nt(r.memoizedState,s);if(l&&(r.memoizedState=s,Ee=!0),r=r.queue,Co(Qu.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||de!==null&&de.memoizedState.tag&1){if(n.flags|=2048,br(9,Wu.bind(null,n,r,s,t),void 0,null),fe===null)throw Error(C(349));Zt&30||Ku(n,t,s)}return s}function Ku(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=te.updateQueue,t===null?(t={lastEffect:null,stores:null},te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wu(e,t,n,r){t.value=n,t.getSnapshot=r,qu(t)&&Gu(e)}function Qu(e,t,n){return n(function(){qu(t)&&Gu(e)})}function qu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nt(e,n)}catch{return!0}}function Gu(e){var t=kt(e,1);t!==null&&et(t,e,1,-1)}function Oa(e){var t=at();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:e},t.queue=e,e=e.dispatch=gp.bind(null,te,e),[t.memoizedState,e]}function br(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=te.updateQueue,t===null?(t={lastEffect:null,stores:null},te.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Xu(){return We().memoizedState}function as(e,t,n,r){var s=at();te.flags|=e,s.memoizedState=br(1|t,n,void 0,r===void 0?null:r)}function Ys(e,t,n,r){var s=We();r=r===void 0?null:r;var l=void 0;if(ce!==null){var o=ce.memoizedState;if(l=o.destroy,r!==null&&So(r,o.deps)){s.memoizedState=br(t,n,l,r);return}}te.flags|=e,s.memoizedState=br(1|t,n,l,r)}function Ma(e,t){return as(8390656,8,e,t)}function Co(e,t){return Ys(2048,8,e,t)}function Ju(e,t){return Ys(4,2,e,t)}function Yu(e,t){return Ys(4,4,e,t)}function Zu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ed(e,t,n){return n=n!=null?n.concat([e]):null,Ys(4,4,Zu.bind(null,t,e),n)}function Eo(){}function td(e,t){var n=We();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&So(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function nd(e,t){var n=We();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&So(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function rd(e,t,n){return Zt&21?(nt(n,t)||(n=au(),te.lanes|=n,en|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ee=!0),e.memoizedState=n)}function pp(e,t){var n=G;G=n!==0&&4>n?n:4,e(!0);var r=Il.transition;Il.transition={};try{e(!1),t()}finally{G=n,Il.transition=r}}function sd(){return We().memoizedState}function hp(e,t,n){var r=Ot(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ld(e))id(t,n);else if(n=Uu(e,t,n,r),n!==null){var s=Ne();et(n,e,r,s),od(n,t,r)}}function gp(e,t,n){var r=Ot(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ld(e))id(t,s);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,a=l(o,n);if(s.hasEagerState=!0,s.eagerState=a,nt(a,o)){var c=t.interleaved;c===null?(s.next=s,vo(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=Uu(e,t,s,r),n!==null&&(s=Ne(),et(n,e,r,s),od(n,t,r))}}function ld(e){var t=e.alternate;return e===te||t!==null&&t===te}function id(e,t){ir=Is=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function od(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,so(e,n)}}var Os={readContext:Ke,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},yp={readContext:Ke,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:Ke,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,as(4194308,4,Zu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){return as(4,2,e,t)},useMemo:function(e,t){var n=at();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=at();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hp.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:Oa,useDebugValue:Eo,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=pp.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,s=at();if(Z){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),fe===null)throw Error(C(349));Zt&30||Ku(r,t,n)}s.memoizedState=n;var l={value:n,getSnapshot:t};return s.queue=l,Ma(Qu.bind(null,r,l,e),[e]),r.flags|=2048,br(9,Wu.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=at(),t=fe.identifierPrefix;if(Z){var n=gt,r=ht;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Nr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=mp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xp={readContext:Ke,useCallback:td,useContext:Ke,useEffect:Co,useImperativeHandle:ed,useInsertionEffect:Ju,useLayoutEffect:Yu,useMemo:nd,useReducer:Ol,useRef:Xu,useState:function(){return Ol(Sr)},useDebugValue:Eo,useDeferredValue:function(e){var t=We();return rd(t,ce.memoizedState,e)},useTransition:function(){var e=Ol(Sr)[0],t=We().memoizedState;return[e,t]},useMutableSource:Vu,useSyncExternalStore:Hu,useId:sd,unstable_isNewReconciler:!1},vp={readContext:Ke,useCallback:td,useContext:Ke,useEffect:Co,useImperativeHandle:ed,useInsertionEffect:Ju,useLayoutEffect:Yu,useMemo:nd,useReducer:Ml,useRef:Xu,useState:function(){return Ml(Sr)},useDebugValue:Eo,useDeferredValue:function(e){var t=We();return ce===null?t.memoizedState=e:rd(t,ce.memoizedState,e)},useTransition:function(){var e=Ml(Sr)[0],t=We().memoizedState;return[e,t]},useMutableSource:Vu,useSyncExternalStore:Hu,useId:sd,unstable_isNewReconciler:!1};function Xe(e,t){if(e&&e.defaultProps){t=ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function wi(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zs={isMounted:function(e){return(e=e._reactInternals)?sn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ne(),s=Ot(e),l=yt(r,s);l.payload=t,n!=null&&(l.callback=n),t=Lt(e,l,s),t!==null&&(et(t,e,s,r),is(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ne(),s=Ot(e),l=yt(r,s);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Lt(e,l,s),t!==null&&(et(t,e,s,r),is(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ne(),r=Ot(e),s=yt(n,r);s.tag=2,t!=null&&(s.callback=t),t=Lt(e,s,r),t!==null&&(et(t,e,r,n),is(t,e,r))}};function Fa(e,t,n,r,s,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!yr(n,r)||!yr(s,l):!0}function ad(e,t,n){var r=!1,s=$t,l=t.contextType;return typeof l=="object"&&l!==null?l=Ke(l):(s=Pe(t)?Jt:we.current,r=t.contextTypes,l=(r=r!=null)?En(e,s):$t),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=l),t}function $a(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Zs.enqueueReplaceState(t,t.state,null)}function ji(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},ko(e);var l=t.contextType;typeof l=="object"&&l!==null?s.context=Ke(l):(l=Pe(t)?Jt:we.current,s.context=En(e,l)),s.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(wi(e,t,l,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Zs.enqueueReplaceState(s,s.state,null),As(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Rn(e,t){try{var n="",r=t;do n+=Qf(r),r=r.return;while(r);var s=n}catch(l){s=`
39Error generating stack: `+l.message+`
40`+l.stack}return{value:e,source:t,stack:s,digest:null}}function Fl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ni(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var kp=typeof WeakMap=="function"?WeakMap:Map;function cd(e,t,n){n=yt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fs||(Fs=!0,Ai=r),Ni(e,t)},n}function ud(e,t,n){n=yt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Ni(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Ni(e,t),typeof r!="function"&&(It===null?It=new Set([this]):It.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ua(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new kp;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Lp.bind(null,e,t,n),t.then(e,e))}function Da(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ba(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=yt(-1,1),t.tag=2,Lt(n,t,1))),n.lanes|=1),e)}var wp=jt.ReactCurrentOwner,Ee=!1;function je(e,t,n,r){t.child=e===null?$u(t,null,n,r):Pn(t,e.child,n,r)}function Va(e,t,n,r,s){n=n.render;var l=t.ref;return bn(t,s),r=bo(e,t,n,r,l,s),n=zo(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,wt(e,t,s)):(Z&&n&&mo(t),t.flags|=1,je(e,t,r,s),t.child)}function Ha(e,t,n,r,s){if(e===null){var l=n.type;return typeof l=="function"&&!Oo(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,dd(e,t,l,r,s)):(e=fs(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&s)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:yr,n(o,r)&&e.ref===t.ref)return wt(e,t,s)}return t.flags|=1,e=Mt(l,r),e.ref=t.ref,e.return=t,t.child=e}function dd(e,t,n,r,s){if(e!==null){var l=e.memoizedProps;if(yr(l,r)&&e.ref===t.ref)if(Ee=!1,t.pendingProps=r=l,(e.lanes&s)!==0)e.flags&131072&&(Ee=!0);else return t.lanes=e.lanes,wt(e,t,s)}return Si(e,t,n,r,s)}function fd(e,t,n){var r=t.pendingProps,s=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},X(kn,Le),Le|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,X(kn,Le),Le|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,X(kn,Le),Le|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,X(kn,Le),Le|=r;return je(e,t,s,n),t.child}function md(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 6,635 bytes, line 40
40function Si(e,t,n,r,s){var l=Pe(n)?Jt:we.current;return l=En(t,l),bn(t,s),n=bo(e,t,n,r,l,s),r=zo(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,wt(e,t,s)):(Z&&r&&mo(t),t.flags|=1,je(e,t,n,s),t.child)}function Ka(e,t,n,r,s){if(Pe(n)){var l=!0;Es(t)}else l=!1;if(bn(t,s),t.stateNode===null)cs(e,t),ad(t,n,r),ji(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var c=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ke(u):(u=Pe(n)?Jt:we.current,u=En(t,u));var m=n.getDerivedStateFromProps,g=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||c!==u)&&$a(t,o,r,u),bt=!1;var p=t.memoizedState;o.state=p,As(t,r,o,s),c=t.memoizedState,a!==r||p!==c||Te.current||bt?(typeof m=="function"&&(wi(t,n,m,r),c=t.memoizedState),(a=bt||Fa(t,n,a,r,p,c,u))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Du(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Xe(t.type,a),o.props=u,g=t.pendingProps,p=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=Ke(c):(c=Pe(n)?Jt:we.current,c=En(t,c));var k=n.getDerivedStateFromProps;(m=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==g||p!==c)&&$a(t,o,r,c),bt=!1,p=t.memoizedState,o.state=p,As(t,r,o,s);var x=t.memoizedState;a!==g||p!==x||Te.current||bt?(typeof k=="function"&&(wi(t,n,k,r),x=t.memoizedState),(u=bt||Fa(t,n,u,r,p,x,c)||!1)?(m||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=c,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return bi(e,t,n,r,l,s)}function bi(e,t,n,r,s,l){md(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Pa(t,n,!1),wt(e,t,l);r=t.stateNode,wp.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Pn(t,e.child,null,l),t.child=Pn(t,null,a,l)):je(e,t,a,l),t.memoizedState=r.state,s&&Pa(t,n,!0),t.child}function pd(e){var t=e.stateNode;t.pendingContext?Ta(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ta(e,t.context,!1),wo(e,t.containerInfo)}function Wa(e,t,n,r,s){return Tn(),ho(s),t.flags|=256,je(e,t,n,r),t.child}var zi={dehydrated:null,treeContext:null,retryLane:0};function Ci(e){return{baseLanes:e,cachePool:null,transitions:null}}function hd(e,t,n){var r=t.pendingProps,s=ee.current,l=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),X(ee,s&1),e===null)return vi(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=nl(o,r,0,null),e=Xt(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ci(n),t.memoizedState=zi,e):To(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return jp(e,t,o,r,a,s,n);if(l){l=r.fallback,o=t.mode,s=e.child,a=s.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Mt(s,c),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?l=Mt(a,l):(l=Xt(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Ci(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=zi,r}return l=e.child,e=l.sibling,r=Mt(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function To(e,t){return t=nl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xr(e,t,n,r){return r!==null&&ho(r),Pn(t,e.child,null,n),e=To(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jp(e,t,n,r,s,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Fl(Error(C(422))),Xr(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,s=t.mode,r=nl({mode:"visible",children:r.children},s,0,null),l=Xt(l,s,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Pn(t,e.child,null,o),t.child.memoizedState=Ci(o),t.memoizedState=zi,l);if(!(t.mode&1))return Xr(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(C(419)),r=Fl(l,r,void 0),Xr(e,t,o,r)}if(a=(o&e.childLanes)!==0,Ee||a){if(r=fe,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==l.retryLane&&(l.retryLane=s,kt(e,s),et(r,e,s,-1))}return Io(),r=Fl(Error(C(421))),Xr(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Ip.bind(null,e),s._reactRetry=t,null):(e=l.treeContext,Ie=At(s.nextSibling),Oe=t,Z=!0,Ye=null,e!==null&&(De[Be++]=ht,De[Be++]=gt,De[Be++]=Yt,ht=e.id,gt=e.overflow,Yt=t),t=To(t,r.children),t.flags|=4096,t)}
vendor: 4,945 bytes, line 40
40function Qa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ki(e.return,t,n)}function $l(e,t,n,r,s){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=s)}function gd(e,t,n){var r=t.pendingProps,s=r.revealOrder,l=r.tail;if(je(e,t,r.children,n),r=ee.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qa(e,n,t);else if(e.tag===19)Qa(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(X(ee,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Ls(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),$l(t,!1,s,n,l);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ls(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}$l(t,!0,n,null,l);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),en|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=Mt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Np(e,t,n){switch(t.tag){case 3:pd(t),Tn();break;case 5:Bu(t);break;case 1:Pe(t.type)&&Es(t);break;case 4:wo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;X(_s,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(X(ee,ee.current&1),t.flags|=128,null):n&t.child.childLanes?hd(e,t,n):(X(ee,ee.current&1),e=wt(e,t,n),e!==null?e.sibling:null);X(ee,ee.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return gd(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),X(ee,ee.current),r)break;return null;case 22:case 23:return t.lanes=0,fd(e,t,n)}return wt(e,t,n)}var yd,Ei,xd,vd;yd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ei=function(){};xd=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Qt(dt.current);var l=null;switch(n){case"input":s=Xl(e,s),r=Xl(e,r),l=[];break;case"select":s=ne({},s,{value:void 0}),r=ne({},r,{value:void 0}),l=[];break;case"textarea":s=Zl(e,s),r=Zl(e,r),l=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=zs)}ti(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ur.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var c=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&c!==a&&(c!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&a[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(l||(l=[]),l.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(l=l||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(l=l||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ur.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&J("scroll",e),l||a===c||(l=[])):(l=l||[]).push(u,c))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};vd=function(e,t,n,r){n!==r&&(t.flags|=4)};function Kn(e,t){if(!Z)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}
vendor: 18,840 bytes, line 40
40function Sp(e,t,n){var r=t.pendingProps;switch(po(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return Pe(t.type)&&Cs(),xe(t),null;case 3:return r=t.stateNode,_n(),Y(Te),Y(we),No(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(qr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ye!==null&&(Oi(Ye),Ye=null))),Ei(e,t),xe(t),null;case 5:jo(t);var s=Qt(jr.current);if(n=t.type,e!==null&&t.stateNode!=null)xd(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return xe(t),null}if(e=Qt(dt.current),qr(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[ct]=t,r[kr]=l,e=(t.mode&1)!==0,n){case"dialog":J("cancel",r),J("close",r);break;case"iframe":case"object":case"embed":J("load",r);break;case"video":case"audio":for(s=0;s<Jn.length;s++)J(Jn[s],r);break;case"source":J("error",r);break;case"img":case"image":case"link":J("error",r),J("load",r);break;case"details":J("toggle",r);break;case"input":na(r,l),J("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},J("invalid",r);break;case"textarea":sa(r,l),J("invalid",r)}ti(n,l),s=null;for(var o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&Qr(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&Qr(r.textContent,a,e),s=["children",""+a]):ur.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&J("scroll",r)}switch(n){case"input":$r(r),ra(r,l,!0);break;case"textarea":$r(r),la(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=zs)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Qc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ct]=t,e[kr]=r,yd(e,t,!1,!1),t.stateNode=e;e:{switch(o=ni(n,r),n){case"dialog":J("cancel",e),J("close",e),s=r;break;case"iframe":case"object":case"embed":J("load",e),s=r;break;case"video":case"audio":for(s=0;s<Jn.length;s++)J(Jn[s],e);s=r;break;case"source":J("error",e),s=r;break;case"img":case"image":case"link":J("error",e),J("load",e),s=r;break;case"details":J("toggle",e),s=r;break;case"input":na(e,r),s=Xl(e,r),J("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ne({},r,{value:void 0}),J("invalid",e);break;case"textarea":sa(e,r),s=Zl(e,r),J("invalid",e);break;default:s=r}ti(n,s),a=s;for(l in a)if(a.hasOwnProperty(l)){var c=a[l];l==="style"?Xc(e,c):l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&qc(e,c)):l==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&dr(e,c):typeof c=="number"&&dr(e,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ur.hasOwnProperty(l)?c!=null&&l==="onScroll"&&J("scroll",e):c!=null&&Yi(e,l,c,o))}switch(n){case"input":$r(e),ra(e,r,!1);break;case"textarea":$r(e),la(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ft(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?wn(e,!!r.multiple,l,!1):r.defaultValue!=null&&wn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=zs)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xe(t),null;case 6:if(e&&t.stateNode!=null)vd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=Qt(jr.current),Qt(dt.current),qr(t)){if(r=t.stateNode,n=t.memoizedProps,r[ct]=t,(l=r.nodeValue!==n)&&(e=Oe,e!==null))switch(e.tag){case 3:Qr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Qr(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ct]=t,t.stateNode=r}return xe(t),null;case 13:if(Y(ee),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Z&&Ie!==null&&t.mode&1&&!(t.flags&128))Mu(),Tn(),t.flags|=98560,l=!1;else if(l=qr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(C(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(C(317));l[ct]=t}else Tn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),l=!1}else Ye!==null&&(Oi(Ye),Ye=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ee.current&1?ue===0&&(ue=3):Io())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return _n(),Ei(e,t),e===null&&xr(t.stateNode.containerInfo),xe(t),null;case 10:return xo(t.type._context),xe(t),null;case 17:return Pe(t.type)&&Cs(),xe(t),null;case 19:if(Y(ee),l=t.memoizedState,l===null)return xe(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Kn(l,!1);else{if(ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ls(e),o!==null){for(t.flags|=128,Kn(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return X(ee,ee.current&1|2),t.child}e=e.sibling}l.tail!==null&&ie()>An&&(t.flags|=128,r=!0,Kn(l,!1),t.lanes=4194304)}else{if(!r)if(e=Ls(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!Z)return xe(t),null}else 2*ie()-l.renderingStartTime>An&&n!==1073741824&&(t.flags|=128,r=!0,Kn(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ie(),t.sibling=null,n=ee.current,X(ee,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return Lo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Le&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function bp(e,t){switch(po(t),t.tag){case 1:return Pe(t.type)&&Cs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(),Y(Te),Y(we),No(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jo(t),null;case 13:if(Y(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(ee),null;case 4:return _n(),null;case 10:return xo(t.type._context),null;case 22:case 23:return Lo(),null;case 24:return null;default:return null}}var Jr=!1,ve=!1,zp=typeof WeakSet=="function"?WeakSet:Set,A=null;function vn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function Ti(e,t,n){try{n()}catch(r){re(e,t,r)}}var qa=!1;function Cp(e,t){if(fi=Ns,e=Su(),fo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,a=-1,c=-1,u=0,m=0,g=e,p=null;t:for(;;){for(var k;g!==n||s!==0&&g.nodeType!==3||(a=o+s),g!==l||r!==0&&g.nodeType!==3||(c=o+r),g.nodeType===3&&(o+=g.nodeValue.length),(k=g.firstChild)!==null;)p=g,g=k;for(;;){if(g===e)break t;if(p===n&&++u===s&&(a=o),p===l&&++m===r&&(c=o),(k=g.nextSibling)!==null)break;g=p,p=g.parentNode}g=k}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(mi={focusedElem:e,selectionRange:n},Ns=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,v=x.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:Xe(t.type,y),v);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(j){re(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return x=qa,qa=!1,x}function or(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var l=s.destroy;s.destroy=void 0,l!==void 0&&Ti(t,n,l)}s=s.next}while(s!==r)}}function el(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pi(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kd(e){var t=e.alternate;t!==null&&(e.alternate=null,kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ct],delete t[kr],delete t[gi],delete t[cp],delete t[up])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wd(e){return e.tag===5||e.tag===3||e.tag===4}function Ga(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _i(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zs));else if(r!==4&&(e=e.child,e!==null))for(_i(e,t,n),e=e.sibling;e!==null;)_i(e,t,n),e=e.sibling}function Ri(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ri(e,t,n),e=e.sibling;e!==null;)Ri(e,t,n),e=e.sibling}var pe=null,Je=!1;function Nt(e,t,n){for(n=n.child;n!==null;)jd(e,t,n),n=n.sibling}function jd(e,t,n){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(Ws,n)}catch{}switch(n.tag){case 5:ve||vn(n,t);case 6:var r=pe,s=Je;pe=null,Nt(e,t,n),pe=r,Je=s,pe!==null&&(Je?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(Je?(e=pe,n=n.stateNode,e.nodeType===8?Rl(e.parentNode,n):e.nodeType===1&&Rl(e,n),hr(e)):Rl(pe,n.stateNode));break;case 4:r=pe,s=Je,pe=n.stateNode.containerInfo,Je=!0,Nt(e,t,n),pe=r,Je=s;break;case 0:case 11:case 14:case 15:if(!ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var l=s,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Ti(n,t,o),s=s.next}while(s!==r)}Nt(e,t,n);break;case 1:if(!ve&&(vn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){re(n,t,a)}Nt(e,t,n);break;case 21:Nt(e,t,n);break;case 22:n.mode&1?(ve=(r=ve)||n.memoizedState!==null,Nt(e,t,n),ve=r):Nt(e,t,n);break;default:Nt(e,t,n)}}function Xa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zp),t.forEach(function(r){var s=Op.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Ge(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var l=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:pe=a.stateNode,Je=!1;break e;case 3:pe=a.stateNode.containerInfo,Je=!0;break e;case 4:pe=a.stateNode.containerInfo,Je=!0;break e}a=a.return}if(pe===null)throw Error(C(160));jd(l,o,s),pe=null,Je=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){re(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Nd(t,e),t=t.sibling}function Nd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ge(t,e),it(e),r&4){try{or(3,e,e.return),el(3,e)}catch(y){re(e,e.return,y)}try{or(5,e,e.return)}catch(y){re(e,e.return,y)}}break;case 1:Ge(t,e),it(e),r&512&&n!==null&&vn(n,n.return);break;case 5:if(Ge(t,e),it(e),r&512&&n!==null&&vn(n,n.return),e.flags&32){var s=e.stateNode;try{dr(s,"")}catch(y){re(e,e.return,y)}}if(r&4&&(s=e.stateNode,s!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&l.type==="radio"&&l.name!=null&&Kc(s,l),ni(a,o);var u=ni(a,l);for(o=0;o<c.length;o+=2){var m=c[o],g=c[o+1];m==="style"?Xc(s,g):m==="dangerouslySetInnerHTML"?qc(s,g):m==="children"?dr(s,g):Yi(s,m,g,u)}switch(a){case"input":Jl(s,l);break;case"textarea":Wc(s,l);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!l.multiple;var k=l.value;k!=null?wn(s,!!l.multiple,k,!1):p!==!!l.multiple&&(l.defaultValue!=null?wn(s,!!l.multiple,l.defaultValue,!0):wn(s,!!l.multiple,l.multiple?[]:"",!1))}s[kr]=l}catch(y){re(e,e.return,y)}}break;case 6:if(Ge(t,e),it(e),r&4){if(e.stateNode===null)throw Error(C(162));s=e.stateNode,l=e.memoizedProps;try{s.nodeValue=l}catch(y){re(e,e.return,y)}}break;case 3:if(Ge(t,e),it(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{hr(t.containerInfo)}catch(y){re(e,e.return,y)}break;case 4:Ge(t,e),it(e);break;case 13:Ge(t,e),it(e),s=e.child,s.flags&8192&&(l=s.memoizedState!==null,s.stateNode.isHidden=l,!l||s.alternate!==null&&s.alternate.memoizedState!==null||(Ro=ie())),r&4&&Xa(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(ve=(u=ve)||m,Ge(t,e),ve=u):Ge(t,e),it(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!m&&e.mode&1)for(A=e,m=e.child;m!==null;){for(g=A=m;A!==null;){switch(p=A,k=p.child,p.tag){case 0:case 11:case 14:case 15:or(4,p,p.return);break;case 1:vn(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){re(r,n,y)}}break;case 5:vn(p,p.return);break;case 22:if(p.memoizedState!==null){Ya(g);continue}}k!==null?(k.return=p,A=k):Ya(g)}m=m.sibling}e:for(m=null,g=e;;){if(g.tag===5){if(m===null){m=g;try{s=g.stateNode,u?(l=s.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=g.stateNode,c=g.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=Gc("display",o))}catch(y){re(e,e.return,y)}}}else if(g.tag===6){if(m===null)try{g.stateNode.nodeValue=u?"":g.memoizedProps}catch(y){re(e,e.return,y)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===e)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break e;for(;g.sibling===null;){if(g.return===null||g.return===e)break e;m===g&&(m=null),g=g.return}m===g&&(m=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:Ge(t,e),it(e),r&4&&Xa(e);break;case 21:break;default:Ge(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wd(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(dr(s,""),r.flags&=-33);var l=Ga(e);Ri(e,l,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Ga(e);_i(e,a,o);break;default:throw Error(C(161))}}catch(c){re(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ep(e,t,n){A=e,Sd(e)}function Sd(e,t,n){for(var r=(e.mode&1)!==0;A!==null;){var s=A,l=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Jr;if(!o){var a=s.alternate,c=a!==null&&a.memoizedState!==null||ve;a=Jr;var u=ve;if(Jr=o,(ve=c)&&!u)for(A=s;A!==null;)o=A,c=o.child,o.tag===22&&o.memoizedState!==null?Za(s):c!==null?(c.return=o,A=c):Za(s);for(;l!==null;)A=l,Sd(l),l=l.sibling;A=s,Jr=a,ve=u}Ja(e)}else s.subtreeFlags&8772&&l!==null?(l.return=s,A=l):Ja(e)}}function Ja(e){for(;A!==null;){var t=A;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ve||el(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ve)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Xe(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Ia(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ia(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var m=u.memoizedState;if(m!==null){var g=m.dehydrated;g!==null&&hr(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}ve||t.flags&512&&Pi(t)}catch(p){re(t,t.return,p)}}if(t===e){A=null;break}if(n=t.sibling,n!==null){n.return=t.return,A=n;break}A=t.return}}function Ya(e){for(;A!==null;){var t=A;if(t===e){A=null;break}var n=t.sibling;if(n!==null){n.return=t.return,A=n;break}A=t.return}}function Za(e){for(;A!==null;){var t=A;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{el(4,t)}catch(c){re(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(c){re(t,s,c)}}var l=t.return;try{Pi(t)}catch(c){re(t,l,c)}break;case 5:var o=t.return;try{Pi(t)}catch(c){re(t,o,c)}}}catch(c){re(t,t.return,c)}if(t===e){A=null;break}var a=t.sibling;if(a!==null){a.return=t.return,A=a;break}A=t.return}}var Tp=Math.ceil,Ms=jt.ReactCurrentDispatcher,Po=jt.ReactCurrentOwner,He=jt.ReactCurrentBatchConfig,W=0,fe=null,oe=null,he=0,Le=0,kn=Dt(0),ue=0,zr=null,en=0,tl=0,_o=0,ar=null,Ce=null,Ro=0,An=1/0,mt=null,Fs=!1,Ai=null,It=null,Yr=!1,Tt=null,$s=0,cr=0,Li=null,us=-1,ds=0;
vendor: 9,021 bytes, line 40
40function Ne(){return W&6?ie():us!==-1?us:us=ie()}function Ot(e){return e.mode&1?W&2&&he!==0?he&-he:fp.transition!==null?(ds===0&&(ds=au()),ds):(e=G,e!==0||(e=window.event,e=e===void 0?16:hu(e.type)),e):1}function et(e,t,n,r){if(50<cr)throw cr=0,Li=null,Error(C(185));Pr(e,n,r),(!(W&2)||e!==fe)&&(e===fe&&(!(W&2)&&(tl|=n),ue===4&&Ct(e,he)),_e(e,r),n===1&&W===0&&!(t.mode&1)&&(An=ie()+500,Js&&Bt()))}function _e(e,t){var n=e.callbackNode;fm(e,t);var r=js(e,e===fe?he:0);if(r===0)n!==null&&aa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&aa(n),t===1)e.tag===0?dp(ec.bind(null,e)):Lu(ec.bind(null,e)),op(function(){!(W&6)&&Bt()}),n=null;else{switch(cu(r)){case 1:n=ro;break;case 4:n=iu;break;case 16:n=ws;break;case 536870912:n=ou;break;default:n=ws}n=Rd(n,bd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bd(e,t){if(us=-1,ds=0,W&6)throw Error(C(327));var n=e.callbackNode;if(zn()&&e.callbackNode!==n)return null;var r=js(e,e===fe?he:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Us(e,r);else{t=r;var s=W;W|=2;var l=Cd();(fe!==e||he!==t)&&(mt=null,An=ie()+500,Gt(e,t));do try{Rp();break}catch(a){zd(e,a)}while(1);yo(),Ms.current=l,W=s,oe!==null?t=0:(fe=null,he=0,t=ue)}if(t!==0){if(t===2&&(s=oi(e),s!==0&&(r=s,t=Ii(e,s))),t===1)throw n=zr,Gt(e,0),Ct(e,r),_e(e,ie()),n;if(t===6)Ct(e,r);else{if(s=e.current.alternate,!(r&30)&&!Pp(s)&&(t=Us(e,r),t===2&&(l=oi(e),l!==0&&(r=l,t=Ii(e,l))),t===1))throw n=zr,Gt(e,0),Ct(e,r),_e(e,ie()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:Ht(e,Ce,mt);break;case 3:if(Ct(e,r),(r&130023424)===r&&(t=Ro+500-ie(),10<t)){if(js(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Ne(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=hi(Ht.bind(null,e,Ce,mt),t);break}Ht(e,Ce,mt);break;case 4:if(Ct(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Ze(r);l=1<<o,o=t[o],o>s&&(s=o),r&=~l}if(r=s,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tp(r/1960))-r,10<r){e.timeoutHandle=hi(Ht.bind(null,e,Ce,mt),r);break}Ht(e,Ce,mt);break;case 5:Ht(e,Ce,mt);break;default:throw Error(C(329))}}}return _e(e,ie()),e.callbackNode===n?bd.bind(null,e):null}function Ii(e,t){var n=ar;return e.current.memoizedState.isDehydrated&&(Gt(e,t).flags|=256),e=Us(e,t),e!==2&&(t=Ce,Ce=n,t!==null&&Oi(t)),e}function Oi(e){Ce===null?Ce=e:Ce.push.apply(Ce,e)}function Pp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],l=s.getSnapshot;s=s.value;try{if(!nt(l(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ct(e,t){for(t&=~_o,t&=~tl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ze(t),r=1<<n;e[n]=-1,t&=~r}}function ec(e){if(W&6)throw Error(C(327));zn();var t=js(e,0);if(!(t&1))return _e(e,ie()),null;var n=Us(e,t);if(e.tag!==0&&n===2){var r=oi(e);r!==0&&(t=r,n=Ii(e,r))}if(n===1)throw n=zr,Gt(e,0),Ct(e,t),_e(e,ie()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ht(e,Ce,mt),_e(e,ie()),null}function Ao(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(An=ie()+500,Js&&Bt())}}function tn(e){Tt!==null&&Tt.tag===0&&!(W&6)&&zn();var t=W;W|=1;var n=He.transition,r=G;try{if(He.transition=null,G=1,e)return e()}finally{G=r,He.transition=n,W=t,!(W&6)&&Bt()}}function Lo(){Le=kn.current,Y(kn)}function Gt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ip(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(po(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Cs();break;case 3:_n(),Y(Te),Y(we),No();break;case 5:jo(r);break;case 4:_n();break;case 13:Y(ee);break;case 19:Y(ee);break;case 10:xo(r.type._context);break;case 22:case 23:Lo()}n=n.return}if(fe=e,oe=e=Mt(e.current,null),he=Le=t,ue=0,zr=null,_o=tl=en=0,Ce=ar=null,Wt!==null){for(t=0;t<Wt.length;t++)if(n=Wt[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=s,r.next=o}n.pending=r}Wt=null}return e}function zd(e,t){do{var n=oe;try{if(yo(),os.current=Os,Is){for(var r=te.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Is=!1}if(Zt=0,de=ce=te=null,ir=!1,Nr=0,Po.current=null,n===null||n.return===null){ue=1,zr=t,oe=null;break}e:{var l=e,o=n.return,a=n,c=t;if(t=he,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,m=a,g=m.tag;if(!(m.mode&1)&&(g===0||g===11||g===15)){var p=m.alternate;p?(m.updateQueue=p.updateQueue,m.memoizedState=p.memoizedState,m.lanes=p.lanes):(m.updateQueue=null,m.memoizedState=null)}var k=Da(o);if(k!==null){k.flags&=-257,Ba(k,o,a,l,t),k.mode&1&&Ua(l,u,t),t=k,c=u;var x=t.updateQueue;if(x===null){var y=new Set;y.add(c),t.updateQueue=y}else x.add(c);break e}else{if(!(t&1)){Ua(l,u,t),Io();break e}c=Error(C(426))}}else if(Z&&a.mode&1){var v=Da(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),Ba(v,o,a,l,t),ho(Rn(c,a));break e}}l=c=Rn(c,a),ue!==4&&(ue=2),ar===null?ar=[l]:ar.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var f=cd(l,c,t);La(l,f);break e;case 1:a=c;var d=l.type,h=l.stateNode;if(!(l.flags&128)&&(typeof d.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(It===null||!It.has(h)))){l.flags|=65536,t&=-t,l.lanes|=t;var j=ud(l,a,t);La(l,j);break e}}l=l.return}while(l!==null)}Td(n)}catch(S){t=S,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(1)}function Cd(){var e=Ms.current;return Ms.current=Os,e===null?Os:e}function Io(){(ue===0||ue===3||ue===2)&&(ue=4),fe===null||!(en&268435455)&&!(tl&268435455)||Ct(fe,he)}function Us(e,t){var n=W;W|=2;var r=Cd();(fe!==e||he!==t)&&(mt=null,Gt(e,t));do try{_p();break}catch(s){zd(e,s)}while(1);if(yo(),W=n,Ms.current=r,oe!==null)throw Error(C(261));return fe=null,he=0,ue}function _p(){for(;oe!==null;)Ed(oe)}function Rp(){for(;oe!==null&&!rm();)Ed(oe)}function Ed(e){var t=_d(e.alternate,e,Le);e.memoizedProps=e.pendingProps,t===null?Td(e):oe=t,Po.current=null}function Td(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=bp(n,t),n!==null){n.flags&=32767,oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ue=6,oe=null;return}}else if(n=Sp(n,t,Le),n!==null){oe=n;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);ue===0&&(ue=5)}function Ht(e,t,n){var r=G,s=He.transition;try{He.transition=null,G=1,Ap(e,t,n,r)}finally{He.transition=s,G=r}return null}function Ap(e,t,n,r){do zn();while(Tt!==null);if(W&6)throw Error(C(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(C(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(mm(e,l),e===fe&&(oe=fe=null,he=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Yr||(Yr=!0,Rd(ws,function(){return zn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=He.transition,He.transition=null;var o=G;G=1;var a=W;W|=4,Po.current=null,Cp(e,n),Nd(n,e),Zm(mi),Ns=!!fi,mi=fi=null,e.current=n,Ep(n),sm(),W=a,G=o,He.transition=l}else e.current=n;if(Yr&&(Yr=!1,Tt=e,$s=s),l=e.pendingLanes,l===0&&(It=null),om(n.stateNode),_e(e,ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Fs)throw Fs=!1,e=Ai,Ai=null,e;return $s&1&&e.tag!==0&&zn(),l=e.pendingLanes,l&1?e===Li?cr++:(cr=0,Li=e):cr=0,Bt(),null}function zn(){if(Tt!==null){var e=cu($s),t=He.transition,n=G;try{if(He.transition=null,G=16>e?16:e,Tt===null)var r=!1;else{if(e=Tt,Tt=null,$s=0,W&6)throw Error(C(331));var s=W;for(W|=4,A=e.current;A!==null;){var l=A,o=l.child;if(A.flags&16){var a=l.deletions;if(a!==null){for(var c=0;c<a.length;c++){var u=a[c];for(A=u;A!==null;){var m=A;switch(m.tag){case 0:case 11:case 15:or(8,m,l)}var g=m.child;if(g!==null)g.return=m,A=g;else for(;A!==null;){m=A;var p=m.sibling,k=m.return;if(kd(m),m===u){A=null;break}if(p!==null){p.return=k,A=p;break}A=k}}}var x=l.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(y!==null)}}A=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,A=o;else e:for(;A!==null;){if(l=A,l.flags&2048)switch(l.tag){case 0:case 11:case 15:or(9,l,l.return)}var f=l.sibling;if(f!==null){f.return=l.return,A=f;break e}A=l.return}}var d=e.current;for(A=d;A!==null;){o=A;var h=o.child;if(o.subtreeFlags&2064&&h!==null)h.return=o,A=h;else e:for(o=d;A!==null;){if(a=A,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:el(9,a)}}catch(S){re(a,a.return,S)}if(a===o){A=null;break e}var j=a.sibling;if(j!==null){j.return=a.return,A=j;break e}A=a.return}}if(W=s,Bt(),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(Ws,e)}catch{}r=!0}return r}finally{G=n,He.transition=t}}return!1}
vendor: 4,477 bytes, line 40
40function tc(e,t,n){t=Rn(n,t),t=cd(e,t,1),e=Lt(e,t,1),t=Ne(),e!==null&&(Pr(e,1,t),_e(e,t))}function re(e,t,n){if(e.tag===3)tc(e,e,n);else for(;t!==null;){if(t.tag===3){tc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(It===null||!It.has(r))){e=Rn(n,e),e=ud(t,e,1),t=Lt(t,e,1),e=Ne(),t!==null&&(Pr(t,1,e),_e(t,e));break}}t=t.return}}function Lp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ne(),e.pingedLanes|=e.suspendedLanes&n,fe===e&&(he&n)===n&&(ue===4||ue===3&&(he&130023424)===he&&500>ie()-Ro?Gt(e,0):_o|=n),_e(e,t)}function Pd(e,t){t===0&&(e.mode&1?(t=Br,Br<<=1,!(Br&130023424)&&(Br=4194304)):t=1);var n=Ne();e=kt(e,t),e!==null&&(Pr(e,t,n),_e(e,n))}function Ip(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pd(e,n)}function Op(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),Pd(e,n)}var _d;_d=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Te.current)Ee=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ee=!1,Np(e,t,n);Ee=!!(e.flags&131072)}else Ee=!1,Z&&t.flags&1048576&&Iu(t,Ps,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cs(e,t),e=t.pendingProps;var s=En(t,we.current);bn(t,n),s=bo(null,t,r,e,s,n);var l=zo();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)?(l=!0,Es(t)):l=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,ko(t),s.updater=Zs,t.stateNode=s,s._reactInternals=t,ji(t,r,e,n),t=bi(null,t,r,!0,l,n)):(t.tag=0,Z&&l&&mo(t),je(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cs(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Fp(r),e=Xe(r,e),s){case 0:t=Si(null,t,r,e,n);break e;case 1:t=Ka(null,t,r,e,n);break e;case 11:t=Va(null,t,r,e,n);break e;case 14:t=Ha(null,t,r,Xe(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Xe(r,s),Si(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Xe(r,s),Ka(e,t,r,s,n);case 3:e:{if(pd(t),e===null)throw Error(C(387));r=t.pendingProps,l=t.memoizedState,s=l.element,Du(e,t),As(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){s=Rn(Error(C(423)),t),t=Wa(e,t,r,n,s);break e}else if(r!==s){s=Rn(Error(C(424)),t),t=Wa(e,t,r,n,s);break e}else for(Ie=At(t.stateNode.containerInfo.firstChild),Oe=t,Z=!0,Ye=null,n=$u(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Tn(),r===s){t=wt(e,t,n);break e}je(e,t,r,n)}t=t.child}return t;case 5:return Bu(t),e===null&&vi(t),r=t.type,s=t.pendingProps,l=e!==null?e.memoizedProps:null,o=s.children,pi(r,s)?o=null:l!==null&&pi(r,l)&&(t.flags|=32),md(e,t),je(e,t,o,n),t.child;case 6:return e===null&&vi(t),null;case 13:return hd(e,t,n);case 4:return wo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pn(t,null,r,n):je(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Xe(r,s),Va(e,t,r,s,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,l=t.memoizedProps,o=s.value,X(_s,r._currentValue),r._currentValue=o,l!==null)if(nt(l.value,o)){if(l.children===s.children&&!Te.current){t=wt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){o=l.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(l.tag===1){c=yt(-1,n&-n),c.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var m=u.pending;m===null?c.next=c:(c.next=m.next,m.next=c),u.pending=c}}l.lanes|=n,c=l.alternate,c!==null&&(c.lanes|=n),ki(l.return,n,t),a.lanes|=n;break}c=c.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(C(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ki(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}je(e,t,s.children,n),t=t.child}return t;
vendor: 13,315 bytes, line 40
40case 9:return s=t.type,r=t.pendingProps.children,bn(t,n),s=Ke(s),r=r(s),t.flags|=1,je(e,t,r,n),t.child;case 14:return r=t.type,s=Xe(r,t.pendingProps),s=Xe(r.type,s),Ha(e,t,r,s,n);case 15:return dd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Xe(r,s),cs(e,t),t.tag=1,Pe(r)?(e=!0,Es(t)):e=!1,bn(t,n),ad(t,r,s),ji(t,r,s,n),bi(null,t,r,!0,e,n);case 19:return gd(e,t,n);case 22:return fd(e,t,n)}throw Error(C(156,t.tag))};function Rd(e,t){return lu(e,t)}function Mp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ve(e,t,n,r){return new Mp(e,t,n,r)}function Oo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fp(e){if(typeof e=="function")return Oo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eo)return 11;if(e===to)return 14}return 2}function Mt(e,t){var n=e.alternate;return n===null?(n=Ve(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function fs(e,t,n,r,s,l){var o=2;if(r=e,typeof e=="function")Oo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case un:return Xt(n.children,s,l,t);case Zi:o=8,s|=8;break;case Wl:return e=Ve(12,n,t,s|2),e.elementType=Wl,e.lanes=l,e;case Ql:return e=Ve(13,n,t,s),e.elementType=Ql,e.lanes=l,e;case ql:return e=Ve(19,n,t,s),e.elementType=ql,e.lanes=l,e;case Bc:return nl(n,s,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Uc:o=10;break e;case Dc:o=9;break e;case eo:o=11;break e;case to:o=14;break e;case St:o=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Ve(o,n,t,s),t.elementType=e,t.type=r,t.lanes=l,t}function Xt(e,t,n,r){return e=Ve(7,e,r,t),e.lanes=n,e}function nl(e,t,n,r){return e=Ve(22,e,r,t),e.elementType=Bc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ul(e,t,n){return e=Ve(6,e,null,t),e.lanes=n,e}function Dl(e,t,n){return t=Ve(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $p(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wl(0),this.expirationTimes=wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Mo(e,t,n,r,s,l,o,a,c){return e=new $p(e,t,n,a,c),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ve(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ko(l),e}function Up(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ad(e){if(!e)return $t;e=e._reactInternals;e:{if(sn(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if(Pe(n))return Au(e,n,t)}return t}function Ld(e,t,n,r,s,l,o,a,c){return e=Mo(n,r,!0,e,s,l,o,a,c),e.context=Ad(null),n=e.current,r=Ne(),s=Ot(n),l=yt(r,s),l.callback=t??null,Lt(n,l,s),e.current.lanes=s,Pr(e,s,r),_e(e,r),e}function rl(e,t,n,r){var s=t.current,l=Ne(),o=Ot(s);return n=Ad(n),t.context===null?t.context=n:t.pendingContext=n,t=yt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Lt(s,t,o),e!==null&&(et(e,s,o,l),is(e,s,o)),o}function Ds(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function nc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Fo(e,t){nc(e,t),(e=e.alternate)&&nc(e,t)}function Dp(){return null}var Id=typeof reportError=="function"?reportError:function(e){console.error(e)};function $o(e){this._internalRoot=e}sl.prototype.render=$o.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));rl(e,t,null,null)};sl.prototype.unmount=$o.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;tn(function(){rl(null,e,null,null)}),t[vt]=null}};function sl(e){this._internalRoot=e}sl.prototype.unstable_scheduleHydration=function(e){if(e){var t=fu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zt.length&&t!==0&&t<zt[n].priority;n++);zt.splice(n,0,e),n===0&&pu(e)}};function Uo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ll(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function rc(){}function Bp(e,t,n,r,s){if(s){if(typeof r=="function"){var l=r;r=function(){var u=Ds(o);l.call(u)}}var o=Ld(t,r,e,0,null,!1,!1,"",rc);return e._reactRootContainer=o,e[vt]=o.current,xr(e.nodeType===8?e.parentNode:e),tn(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=Ds(c);a.call(u)}}var c=Mo(e,0,!1,null,null,!1,!1,"",rc);return e._reactRootContainer=c,e[vt]=c.current,xr(e.nodeType===8?e.parentNode:e),tn(function(){rl(t,c,n,r)}),c}function il(e,t,n,r,s){var l=n._reactRootContainer;if(l){var o=l;if(typeof s=="function"){var a=s;s=function(){var c=Ds(o);a.call(c)}}rl(t,o,e,s)}else o=Bp(n,t,e,s,r);return Ds(o)}uu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Xn(t.pendingLanes);n!==0&&(so(t,n|1),_e(t,ie()),!(W&6)&&(An=ie()+500,Bt()))}break;case 13:tn(function(){var r=kt(e,1);if(r!==null){var s=Ne();et(r,e,1,s)}}),Fo(e,1)}};lo=function(e){if(e.tag===13){var t=kt(e,134217728);if(t!==null){var n=Ne();et(t,e,134217728,n)}Fo(e,134217728)}};du=function(e){if(e.tag===13){var t=Ot(e),n=kt(e,t);if(n!==null){var r=Ne();et(n,e,t,r)}Fo(e,t)}};fu=function(){return G};mu=function(e,t){var n=G;try{return G=e,t()}finally{G=n}};si=function(e,t,n){switch(t){case"input":if(Jl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Xs(r);if(!s)throw Error(C(90));Hc(r),Jl(r,s)}}}break;case"textarea":Wc(e,n);break;case"select":t=n.value,t!=null&&wn(e,!!n.multiple,t,!1)}};Zc=Ao;eu=tn;var Vp={usingClientEntryPoint:!1,Events:[Rr,pn,Xs,Jc,Yc,Ao]},Wn={findFiberByHostInstance:Kt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Hp={bundleType:Wn.bundleType,version:Wn.version,rendererPackageName:Wn.rendererPackageName,rendererConfig:Wn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:jt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ru(e),e===null?null:e.stateNode},findFiberByHostInstance:Wn.findFiberByHostInstance||Dp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zr.isDisabled&&Zr.supportsFiber)try{Ws=Zr.inject(Hp),ut=Zr}catch{}}Fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vp;Fe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Uo(t))throw Error(C(200));return Up(e,t,null,n)};Fe.createRoot=function(e,t){if(!Uo(e))throw Error(C(299));var n=!1,r="",s=Id;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Mo(e,1,!1,null,null,n,!1,r,s),e[vt]=t.current,xr(e.nodeType===8?e.parentNode:e),new $o(t)};Fe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=ru(t),e=e===null?null:e.stateNode,e};Fe.flushSync=function(e){return tn(e)};Fe.hydrate=function(e,t,n){if(!ll(t))throw Error(C(200));return il(null,e,t,!0,n)};Fe.hydrateRoot=function(e,t,n){if(!Uo(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,s=!1,l="",o=Id;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Ld(t,null,e,1,n??null,s,!1,l,o),e[vt]=t.current,xr(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new sl(t)};Fe.render=function(e,t,n){if(!ll(t))throw Error(C(200));return il(null,e,t,!1,n)};Fe.unmountComponentAtNode=function(e){if(!ll(e))throw Error(C(40));return e._reactRootContainer?(tn(function(){il(null,null,e,!1,function(){e._reactRootContainer=null,e[vt]=null})}),!0):!1};Fe.unstable_batchedUpdates=Ao;Fe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ll(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return il(e,t,n,!1,r)};Fe.version="18.3.1-next-f1338f8080-20240426";function Od(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Od)}catch(e){console.error(e)}}Od(),Oc.exports=Fe;var Kp=Oc.exports,Md,sc=Kp;Md=sc.createRoot,sc.hydrateRoot;const Fd=O.createContext(void 0),ol=()=>{const e=O.useContext(Fd);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e},Wp=({children:e})=>{const[t,n]=O.useState(null),[r,s]=O.useState(null);O.useEffect(()=>{const c=localStorage.getItem("token"),u=localStorage.getItem("user");c&&u&&(s(c),n(JSON.parse(u)))},[]);const a={user:t,token:r,login:(c,u)=>{s(c),n(u),localStorage.setItem("token",c),localStorage.setItem("user",JSON.stringify(u))},logout:()=>{s(null),n(null),localStorage.removeItem("token"),localStorage.removeItem("user")},isAuthenticated:!!r};return i.jsx(Fd.Provider,{value:a,children:e})};var Qp={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"};const qp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gp=(e,t)=>{const n=O.forwardRef(({color:r="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:o,children:a,...c},u)=>O.createElement("svg",{ref:u,...Qp,width:s,height:s,stroke:r,strokeWidth:o?Number(l)*24/Number(s):l,className:`lucide lucide-${qp(e)}`,...c},[...t.map(([m,g])=>O.createElement(m,g)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n};var Q=Gp;const Cr=Q("AlertCircle",[["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"}]]),$d=Q("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),Xp=Q("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"}]]),Jp=Q("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]),Yp=Q("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]]),Ue=Q("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["polyline",{points:"22 4 12 14.01 9 11.01",key:"6xbx8j"}]]),Zp=Q("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),lc=Q("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}
40]]),Mi=Q("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),eh=Q("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"}]]),th=Q("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),nh=Q("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z",key:"nb9nel"}]]),rh=Q("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]),ms=Q("Loader",[["line",{x1:"12",x2:"12",y1:"2",y2:"6",key:"gza1u7"}],["line",{x1:"12",x2:"12",y1:"18",y2:"22",key:"1qhbu9"}],["line",{x1:"4.93",x2:"7.76",y1:"4.93",y2:"7.76",key:"xae44r"}],["line",{x1:"16.24",x2:"19.07",y1:"16.24",y2:"19.07",key:"bxnmvf"}],["line",{x1:"2",x2:"6",y1:"12",y2:"12",key:"89khin"}],["line",{x1:"18",x2:"22",y1:"12",y2:"12",key:"pb8tfm"}],["line",{x1:"4.93",x2:"7.76",y1:"19.07",y2:"16.24",key:"1uxjnu"}],["line",{x1:"16.24",x2:"19.07",y1:"7.76",y2:"4.93",key:"6duxfx"}]]),sh=Q("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"}]]),lh=Q("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"}]]),ih=Q("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"}]]),oh=Q("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"}]]),ah=Q("MousePointer",[["path",{d:"m3 3 7.07 16.97 2.51-7.39 7.39-2.51L3 3z",key:"y2ucgo"}],["path",{d:"m13 13 6 6",key:"1nhxnf"}]]),ch=Q("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]),uh=Q("PenSquare",[["path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1qinfi"}],["path",{d:"M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z",key:"w2jsv5"}]]),ic=Q("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]),dh=Q("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]),Fi=Q("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"}]]),Do=Q("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",key:"3xmgem"}]]),oc=Q("TestTube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5h0c-1.4 0-2.5-1.1-2.5-2.5V2",key:"187lwq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]),fh=Q("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"}]]),Ud=Q("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"}]]),$i=Q("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"}]]),ac=Q("Video",[["path",{d:"m22 8-6 4 6 4V8Z",key:"50v9me"}],["rect",{width:"14",height:"12",x:"2",y:"6",rx:"2",ry:"2",key:"1rqjg6"}]]),mh=Q("Wand2",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z",key:"1bcowg"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]),Dd=Q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 4,136 bytes, line 40
40],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Bo=Q("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function Bd(e,t){return function(){return e.apply(t,arguments)}}const{toString:ph}=Object.prototype,{getPrototypeOf:Vo}=Object,{iterator:al,toStringTag:Vd}=Symbol,cl=(e=>t=>{const n=ph.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rt=e=>(e=e.toLowerCase(),t=>cl(t)===e),ul=e=>t=>typeof t===e,{isArray:Mn}=Array,Er=ul("undefined");function Lr(e){return e!==null&&!Er(e)&&e.constructor!==null&&!Er(e.constructor)&&Re(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hd=rt("ArrayBuffer");function hh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hd(e.buffer),t}const gh=ul("string"),Re=ul("function"),Kd=ul("number"),Ir=e=>e!==null&&typeof e=="object",yh=e=>e===!0||e===!1,ps=e=>{if(cl(e)!=="object")return!1;const t=Vo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Vd in e)&&!(al in e)},xh=e=>{if(!Ir(e)||Lr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},vh=rt("Date"),kh=rt("File"),wh=rt("Blob"),jh=rt("FileList"),Nh=e=>Ir(e)&&Re(e.pipe),Sh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Re(e.append)&&((t=cl(e))==="formdata"||t==="object"&&Re(e.toString)&&e.toString()==="[object FormData]"))},bh=rt("URLSearchParams"),[zh,Ch,Eh,Th]=["ReadableStream","Request","Response","Headers"].map(rt),Ph=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Or(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Mn(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(Lr(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),o=l.length;let a;for(r=0;r<o;r++)a=l[r],t.call(null,e[a],a,e)}}function Wd(e,t){if(Lr(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const qt=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Qd=e=>!Er(e)&&e!==qt;function Ui(){const{caseless:e}=Qd(this)&&this||{},t={},n=(r,s)=>{const l=e&&Wd(t,s)||s;ps(t[l])&&ps(r)?t[l]=Ui(t[l],r):ps(r)?t[l]=Ui({},r):Mn(r)?t[l]=r.slice():t[l]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Or(arguments[r],n);return t}const _h=(e,t,n,{allOwnKeys:r}={})=>(Or(t,(s,l)=>{n&&Re(s)?e[l]=Bd(s,n):e[l]=s},{allOwnKeys:r}),e),Rh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ah=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Lh=(e,t,n,r)=>{let s,l,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),l=s.length;l-- >0;)o=s[l],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Vo(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ih=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Oh=e=>{if(!e)return null;if(Mn(e))return e;let t=e.length;if(!Kd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Mh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Vo(Uint8Array)),Fh=(e,t)=>{const r=(e&&e[al]).call(e);let s;for(;(s=r.next())&&!s.done;){const l=s.value;t.call(e,l[0],l[1])}},$h=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Uh=rt("HTMLFormElement"),Dh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),cc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Bh=rt("RegExp"),qd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Or(n,(s,l)=>{let o;(o=t(s,l,e))!==!1&&(r[l]=o||s)}),Object.defineProperties(e,r)},Vh=e=>{qd(e,(t,n)=>{if(Re(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Re(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Hh=(e,t)=>{const n={},r=s=>
vendor: 4,461 bytes, line 40
40{s.forEach(l=>{n[l]=!0})};return Mn(e)?r(e):r(String(e).split(t)),n},Kh=()=>{},Wh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Qh(e){return!!(e&&Re(e.append)&&e[Vd]==="FormData"&&e[al])}const qh=e=>{const t=new Array(10),n=(r,s)=>{if(Ir(r)){if(t.indexOf(r)>=0)return;if(Lr(r))return r;if(!("toJSON"in r)){t[s]=r;const l=Mn(r)?[]:{};return Or(r,(o,a)=>{const c=n(o,s+1);!Er(c)&&(l[a]=c)}),t[s]=void 0,l}}return r};return n(e,0)},Gh=rt("AsyncFunction"),Xh=e=>e&&(Ir(e)||Re(e))&&Re(e.then)&&Re(e.catch),Gd=((e,t)=>e?setImmediate:t?((n,r)=>(qt.addEventListener("message",({source:s,data:l})=>{s===qt&&l===n&&r.length&&r.shift()()},!1),s=>{r.push(s),qt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Re(qt.postMessage)),Jh=typeof queueMicrotask<"u"?queueMicrotask.bind(qt):typeof process<"u"&&process.nextTick||Gd,Yh=e=>e!=null&&Re(e[al]),w={isArray:Mn,isArrayBuffer:Hd,isBuffer:Lr,isFormData:Sh,isArrayBufferView:hh,isString:gh,isNumber:Kd,isBoolean:yh,isObject:Ir,isPlainObject:ps,isEmptyObject:xh,isReadableStream:zh,isRequest:Ch,isResponse:Eh,isHeaders:Th,isUndefined:Er,isDate:vh,isFile:kh,isBlob:wh,isRegExp:Bh,isFunction:Re,isStream:Nh,isURLSearchParams:bh,isTypedArray:Mh,isFileList:jh,forEach:Or,merge:Ui,extend:_h,trim:Ph,stripBOM:Rh,inherits:Ah,toFlatObject:Lh,kindOf:cl,kindOfTest:rt,endsWith:Ih,toArray:Oh,forEachEntry:Fh,matchAll:$h,isHTMLForm:Uh,hasOwnProperty:cc,hasOwnProp:cc,reduceDescriptors:qd,freezeMethods:Vh,toObjectSet:Hh,toCamelCase:Dh,noop:Kh,toFiniteNumber:Wh,findKey:Wd,global:qt,isContextDefined:Qd,isSpecCompliantForm:Qh,toJSONObject:qh,isAsyncFn:Gh,isThenable:Xh,setImmediate:Gd,asap:Jh,isIterable:Yh};function U(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}w.inherits(U,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Xd=U.prototype,Jd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Jd[e]={value:e}});Object.defineProperties(U,Jd);Object.defineProperty(Xd,"isAxiosError",{value:!0});U.from=(e,t,n,r,s,l)=>{const o=Object.create(Xd);return w.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),U.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,l&&Object.assign(o,l),o};const Zh=null;function Di(e){return w.isPlainObject(e)||w.isArray(e)}function Yd(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function uc(e,t,n){return e?e.concat(t).map(function(s,l){return s=Yd(s),!n&&l?"["+s+"]":s}).join(n?".":""):t}function e0(e){return w.isArray(e)&&!e.some(Di)}const t0=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function dl(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!w.isUndefined(v[y])});const r=n.metaTokens,s=n.visitor||m,l=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(s))throw new TypeError("visitor must be a function");function u(x){if(x===null)return"";if(w.isDate(x))return x.toISOString();if(w.isBoolean(x))return x.toString();if(!c&&w.isBlob(x))throw new U("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(x)||w.isTypedArray(x)?c&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function m(x,y,v){let f=x;if(x&&!v&&typeof x=="object"){if(w.endsWith(y,"{}"))y=r?y:y.slice(0,-2),x=JSON.stringify(x);else if(w.isArray(x)&&e0(x)||(w.isFileList(x)||w.endsWith(y,"[]"))&&(f=w.toArray(x)))return y=Yd(y),f.forEach(function(h,j){!(w.isUndefined(h)||h===null)&&t.append(o===!0?uc([y],j,l):o===null?y:y+"[]",u(h))}),!1}return Di(x)?!0:(t.append(uc(v,y,l),u(x)),!1)}const g=[],p=Object.assign(t0,{defaultVisitor:m,convertValue:u,isVisitable:Di});function k(x,y){if(!w.isUndefined(x)){if(g.indexOf(x)!==-1)throw Error("Circular reference detected in "+y.join("."));
vendor: 12,124 bytes, lines 40-42
40g.push(x),w.forEach(x,function(f,d){(!(w.isUndefined(f)||f===null)&&s.call(t,f,w.isString(d)?d.trim():d,y,p))===!0&&k(f,y?y.concat(d):[d])}),g.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return k(e),t}function dc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ho(e,t){this._pairs=[],e&&dl(e,this,t)}const Zd=Ho.prototype;Zd.append=function(t,n){this._pairs.push([t,n])};Zd.toString=function(t){const n=t?function(r){return t.call(this,r,dc)}:dc;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function n0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ef(e,t,n){if(!t)return e;const r=n&&n.encode||n0;w.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let l;if(s?l=s(t,n):l=w.isURLSearchParams(t)?t.toString():new Ho(t,n).toString(r),l){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class r0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fc=r0,tf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},s0=typeof URLSearchParams<"u"?URLSearchParams:Ho,l0=typeof FormData<"u"?FormData:null,i0=typeof Blob<"u"?Blob:null,o0={isBrowser:!0,classes:{URLSearchParams:s0,FormData:l0,Blob:i0},protocols:["http","https","file","blob","url","data"]},Ko=typeof window<"u"&&typeof document<"u",Bi=typeof navigator=="object"&&navigator||void 0,a0=Ko&&(!Bi||["ReactNative","NativeScript","NS"].indexOf(Bi.product)<0),c0=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),u0=Ko&&window.location.href||"http://localhost",d0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ko,hasStandardBrowserEnv:a0,hasStandardBrowserWebWorkerEnv:c0,navigator:Bi,origin:u0},Symbol.toStringTag,{value:"Module"})),ke={...d0,...o0};function f0(e,t){return dl(e,new ke.classes.URLSearchParams,{visitor:function(n,r,s,l){return ke.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function m0(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function p0(e){const t={},n=Object.keys(e);let r;const s=n.length;let l;for(r=0;r<s;r++)l=n[r],t[l]=e[l];return t}function nf(e){function t(n,r,s,l){let o=n[l++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=l>=n.length;return o=!o&&w.isArray(s)?s.length:o,c?(w.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!w.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],l)&&w.isArray(s[o])&&(s[o]=p0(s[o])),!a)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(r,s)=>{t(m0(r),s,n,0)}),n}return null}function h0(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wo={transitional:tf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,l=w.isObject(t);if(l&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return s?JSON.stringify(nf(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return f0(t,this.formSerializer).toString();if((a=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return dl(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return l||s?(n.setContentType("application/json",!1),h0(t)):t}],transformResponse:[function(t){const n=this.transitional||Wo.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?U.from(a,U.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Wo.headers[e]={}});const Qo=Wo,g0=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),y0=e=>{const t={};let n,r,s;return e&&e.split(`
41`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&g0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},mc=Symbol("internals");function Qn(e){return e&&String(e).trim().toLowerCase()}function hs(e){return e===!1||e==null?e:w.isArray(e)?e.map(hs):String(e)}function x0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const v0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Bl(e,t,n,r,s){if(w.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function k0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function w0(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,l,o){return this[r].call(this,t,s,l,o)},configurable:!0})})}class fl{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function l(a,c,u){const m=Qn(c);if(!m)throw new Error("header name must be a non-empty string");const g=w.findKey(s,m);(!g||s[g]===void 0||u===!0||u===void 0&&s[g]!==!1)&&(s[g||c]=hs(a))}const o=(a,c)=>w.forEach(a,(u,m)=>l(u,m,c));if(w.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(w.isString(t)&&(t=t.trim())&&!v0(t))o(y0(t),n);else if(w.isObject(t)&&w.isIterable(t)){let a={},c,u;for(const m of t){if(!w.isArray(m))throw TypeError("Object iterator must return a key-value pair");a[u=m[0]]=(c=a[u])?w.isArray(c)?[...c,m[1]]:[c,m[1]]:m[1]}o(a,n)}else t!=null&&l(n,t,r);return this}get(t,n){if(t=Qn(t),t){const r=w.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return x0(s);if(w.isFunction(n))return n.call(this,s,r);if(w.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Qn(t),t){const r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Bl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function l(o){if(o=Qn(o),o){const a=w.findKey(r,o);a&&(!n||Bl(r,r[a],a,n))&&(delete r[a],s=!0)}}return w.isArray(t)?t.forEach(l):l(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const l=n[r];(!t||Bl(this,this[l],l,t,!0))&&(delete this[l],s=!0)}return s}normalize(t){const n=this,r={};return w.forEach(this,(s,l)=>{const o=w.findKey(r,l);if(o){n[o]=hs(s),delete n[l];return}const a=t?k0(l):String(l).trim();a!==l&&delete n[l],n[a]=hs(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
42`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[mc]=this[mc]={accessors:{}}).accessors,s=this.prototype;function l(o){const a=Qn(o);r[a]||(w0(s,o),r[a]=!0)}return w.isArray(t)?t.forEach(l):l(t),this}}fl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(fl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});w.freezeMethods(fl);const tt=fl;function Vl(e,t){const n=this||Qo,r=t||n,s=tt.from(r.headers);let l=r.data;return w.forEach(e,function(a){l=a.call(n,l,s.normalize(),t?t.status:void 0)}),s.normalize(),l}function rf(e){return!!(e&&e.__CANCEL__)}function Fn(e,t,n){U.call(this,e??"canceled",U.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(Fn,U,{__CANCEL__:!0});function sf(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new U("Request failed with status code "+n.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function j0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function N0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,l=0,o;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),m=r[l];o||(o=u),n[s]=c,r[s]=u;let g=l,p=0;for(;g!==s;)p+=n[g++],g=g%e;if(s=(s+1)%e,s===l&&(l=(l+1)%e),u-o<t)return;const k=m&&u-m;return k?Math.round(p*1e3/k):void 0}}function S0(e,t){let n=0,r=1e3/t,s,l;const o=(u,m=Date.now())=>{n=m,s=null,l&&(clearTimeout(l),l=null),e(...u)};return[(...u)=>{const m=Date.now(),g=m-n;g>=r?o(u,m):(s=u,l||(l=setTimeout(()=>{l=null,o(s)},r-g)))},()=>s&&o(s)]}const Bs=(e,t,n=3)=>{let r=0;const s=N0(50,250);return S0(l=>{const o=l.loaded,a=l.lengthComputable?l.total:void 0,c=o-r,u=s(c),m=o<=a;r=o;const g={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&m?(a-o)/u:void 0,event:l,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(g)},n)},pc=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hc=e=>(...t)=>w.asap(()=>e(...t)),b0=ke.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ke.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ke.origin),ke.navigator&&/(msie|trident)/i.test(ke.navigator.userAgent)):()=>!0,z0=ke.hasStandardBrowserEnv?{write(e,t,n,r,s,l){const o=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),w.isString(r)&&o.push("path="+r),w.isString(s)&&o.push("domain="+s),l===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function C0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function E0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function lf(e,t,n){let r=!C0(t);return e&&(r||n==!1)?E0(e,t):t}const gc=e=>e instanceof tt?{...e}:e;function nn(e,t){t=t||{};const n={};function r(u,m,g,p){return w.isPlainObject(u)&&w.isPlainObject(m)?w.merge.call({caseless:p},u,m):w.isPlainObject(m)?w.merge({},m):w.isArray(m)?m.slice():m}function s(u,m,g,p){if(w.isUndefined(m)){if(!w.isUndefined(u))return r(void 0,u,g,p)}else return r(u,m,g,p)}function l(u,m){if(!w.isUndefined(m))return r(void 0,m)}function o(u,m){if(w.isUndefined(m)){if(!w.isUndefined(u))return r(void 0,u)}else return r(void 0,m)}function a(u,m,g){if(g in t)return r(u,m);if(g in e)return r(void 0,u)}const c={url:l,method:l,data:l,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
42dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,m,g)=>s(gc(u),gc(m),g,!0)};return w.forEach(Object.keys({...e,...t}),function(m){const g=c[m]||s,p=g(e[m],t[m],m);w.isUndefined(p)&&g!==a||(n[m]=p)}),n}const of=e=>{const t=nn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:l,headers:o,auth:a}=t;t.headers=o=tt.from(o),t.url=ef(lf(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(w.isFormData(n)){if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[u,...m]=c?c.split(";").map(g=>g.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...m].join("; "))}}if(ke.hasStandardBrowserEnv&&(r&&w.isFunction(r)&&(r=r(t)),r||r!==!1&&b0(t.url))){const u=s&&l&&z0.read(l);u&&o.set(s,u)}return t},T0=typeof XMLHttpRequest<"u",P0=T0&&function(e){return new Promise(function(n,r){const s=of(e);let l=s.data;const o=tt.from(s.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=s,m,g,p,k,x;function y(){k&&k(),x&&x(),s.cancelToken&&s.cancelToken.unsubscribe(m),s.signal&&s.signal.removeEventListener("abort",m)}let v=new XMLHttpRequest;v.open(s.method.toUpperCase(),s.url,!0),v.timeout=s.timeout;function f(){if(!v)return;const h=tt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:h,config:e,request:v};sf(function(T){n(T),y()},function(T){r(T),y()},S),v=null}"onloadend"in v?v.onloadend=f:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(f)},v.onabort=function(){v&&(r(new U("Request aborted",U.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new U("Network Error",U.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let j=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const S=s.transitional||tf;s.timeoutErrorMessage&&(j=s.timeoutErrorMessage),r(new U(j,S.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,e,v)),v=null},l===void 0&&o.setContentType(null),"setRequestHeader"in v&&w.forEac
vendor: 10,825 bytes, lines 42-45
42h(o.toJSON(),function(j,S){v.setRequestHeader(S,j)}),w.isUndefined(s.withCredentials)||(v.withCredentials=!!s.withCredentials),a&&a!=="json"&&(v.responseType=s.responseType),u&&([p,x]=Bs(u,!0),v.addEventListener("progress",p)),c&&v.upload&&([g,k]=Bs(c),v.upload.addEventListener("progress",g),v.upload.addEventListener("loadend",k)),(s.cancelToken||s.signal)&&(m=h=>{v&&(r(!h||h.type?new Fn(null,e,v):h),v.abort(),v=null)},s.cancelToken&&s.cancelToken.subscribe(m),s.signal&&(s.signal.aborted?m():s.signal.addEventListener("abort",m)));const d=j0(s.url);if(d&&ke.protocols.indexOf(d)===-1){r(new U("Unsupported protocol "+d+":",U.ERR_BAD_REQUEST,e));return}v.send(l||null)})},_0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const l=function(u){if(!s){s=!0,a();const m=u instanceof Error?u:this.reason;r.abort(m instanceof U?m:new Fn(m instanceof Error?m.message:m))}};let o=t&&setTimeout(()=>{o=null,l(new U(`timeout ${t} of ms exceeded`,U.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(l):u.removeEventListener("abort",l)}),e=null)};e.forEach(u=>u.addEventListener("abort",l));const{signal:c}=r;return c.unsubscribe=()=>w.asap(a),c}},R0=_0,A0=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},L0=async function*(e,t){for await(const n of I0(e))yield*A0(n,t)},I0=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},yc=(e,t,n,r)=>{const s=L0(e,t);let l=0,o,a=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:m}=await s.next();if(u){a(),c.close();return}let g=m.byteLength;if(n){let p=l+=g;n(p)}c.enqueue(new Uint8Array(m))}catch(u){throw a(u),u}},cancel(c){return a(c),s.return()}},{highWaterMark:2})},ml=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",af=ml&&typeof ReadableStream=="function",O0=ml&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),cf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},M0=af&&cf(()=>{let e=!1;const t=new Request(ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),xc=64*1024,Vi=af&&cf(()=>w.isReadableStream(new Response("").body)),Vs={stream:Vi&&(e=>e.body)};ml&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vs[t]&&(Vs[t]=w.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new U(`Response type '${t}' is not supported`,U.ERR_NOT_SUPPORT,r)})})})(new Response);const F0=async e=>{if(e==null)return 0;if(w.isBlob(e))return e.size;if(w.isSpecCompliantForm(e))return(await new Request(ke.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(w.isArrayBufferView(e)||w.isArrayBuffer(e))return e.byteLength;if(w.isURLSearchParams(e)&&(e=e+""),w.isString(e))return(await O0(e)).byteLength},$0=async(e,t)=>{const n=w.toFiniteNumber(e.getContentLength());return n??F0(t)},U0=ml&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:l,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:m,withCredentials:g="same-origin",fetchOptions:p}=of(e);u=u?(u+"").toLowerCase():"text";let k=R0([s,l&&l.toAbortSignal()],o),x;const y=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let v;try{if(c&&M0&&n!=="get"&&n!=="head"&&(v=await $0(m,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(w.isFormData(r)&&(E=S.headers.get("content-type"))&&m.setContentType(E),S.body){const[T,_]=pc(v,Bs(hc(c)));r=yc(S.body,xc,T,_)}}w.isString(g)||(g=g?"include":"omit");const f="credentials"in Request.prototype;x=new Request(t,{...p,signal:k,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:r,duplex:"half",credentials:f?g:void 0});let d=await fetch(x,p);const h=Vi&&(u==="stream"||u==="response");if(Vi&&(a||h&&y)){const S={};["status","statusText","headers"].forEach(V=>{S[V]=d[V]});const E=w.toFiniteNumber(d.headers.get("content-length")),[T,_]=a&&pc(E,Bs(hc(a),!0))||[];d=new Response(yc(d.body,xc,T,()=>{_&&_(),y&&y()}),S)}u=u||"text";let j=await Vs[w.findKey(Vs,u)||"text"](d,e);return!h&&y&&y(),await new Promise((S,E)=>{sf(S,E,{data:j,headers:tt.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:x})})}catch(f){throw y&&y(),f&&f.name==="TypeError"&&/Load failed|fetch/i.test(f.message)?Object.assign(new U("Network Error",U.ERR_NETWORK,e,x),{cause:f.cause||f}):U.from(f,f&&f.code,e,x)}}),Hi={http:Zh,xhr:P0,fetch:U0};w.forEach(Hi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vc=e=>`- ${e}`,D0=e=>w.isFunction(e)||e===null||e===!1,uf={getAdapter:e=>{e=w.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let l=0;l<t;l++){n=e[l];let o;if(r=n,!D0(n)&&(r=Hi[(o=String(n)).toLowerCase()],r===void 0))throw new U(`Unknown adapter '${o}'`);if(r)break;s[o||"#"+l]=r}if(!r){const l=Object.entries(s).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?l.length>1?`since :
43`+l.map(vc).join(`
44`):" "+vc(l[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Hi};function Hl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fn(null,e)}function kc(e){return Hl(e),e.headers=tt.from(e.headers),e.data=Vl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),uf.getAdapter(e.adapter||Qo.adapter)(e).then(function(r){return Hl(e),r.data=Vl.call(e,e.transformResponse,r),r.headers=tt.from(r.headers),r},function(r){return rf(r)||(Hl(e),r&&r.response&&(r.response.data=Vl.call(e,e.transformResponse,r.response),r.response.headers=tt.from(r.response.headers))),Promise.reject(r)})}const df="1.11.0",pl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pl[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wc={};pl.transitional=function(t,n,r){function s(l,o){return"[Axios v"+df+"] Transitional option '"+l+"'"+o+(r?". "+r:"")}return(l,o,a)=>{if(t===!1)throw new U(s(o," has been removed"+(n?" in "+n:"")),U.ERR_DEPRECATED);return n&&!wc[o]&&(wc[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,o,a):!0}};pl.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function B0(e,t,n){if(typeof e!="object")throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const l=r[s],o=t[l];if(o){const a=e[l],c=a===void 0||o(a,l,e);if(c!==!0)throw new U("option "+l+" must be "+c,U.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new U("Unknown option "+l,U.ERR_BAD_OPTION)}}const gs={assertOptions:B0,validators:pl},ot=gs.validators;class Hs{constructor(t){this.defaults=t||{},this.interceptors={request:new fc,response:new fc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const l=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
45`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=nn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:l}=n;r!==void 0&&gs.assertOptions(r,{silentJSONParsing:ot.transitional(ot.boolean),forcedJSONParsing:ot.transitional(ot.boolean),clarifyTimeoutError:ot.transitional(ot.boolean)},!1),s!=null&&(w.isFunction(s)?n.paramsSerializer={serialize:s}:gs.assertOptions(s,{encode:ot.function,serialize:ot.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),gs.assertOptions(n,{baseUrl:ot.spelling("baseURL"),withXsrfToken:ot.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=l&&w.merge(l.common,l[n.method]);l&&w.forEach(["delete","get","head","post","put","patch","common"],x=>{delete l[x]}),n.headers=tt.concat(o,l);const a=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let m,g=0,p;if(!c){const x=[kc.bind(this),void 0];for(x.unshift(...a),x.push(...u),p=x.length,m=Promise.resolve(n);g<p;)m=m.then(x[g++],x[g++]);return m}p=a.length;let k=n;for(g=0;g<p;){const x=a[g++],y=a[g++];try{k=x(k)}catch(v){y.call(this,v);break}}try{m=kc.call(this,k)}catch(x){return Promise.reject(x)}for(g=0,p=u.length;g<p;)m=m.then(u[g++],u[g++]);return m}getUri(t){t=nn(this.defaults,t);const n=lf(t.baseURL,t.url,t.allowAbsoluteUrls);return ef(n,t.params,t.paramsSerializer)}}w.forEach(["delete","get","head","options"],function(t){Hs.prototype[t]=function(n,r){return this.request(nn(r||{},{method:t,url:n,data:(r||{}).data}))}});w.forEach(["post","put","patch"],function(t){function n(r){return function(l,o,a){return this.request(nn(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:o}))}}Hs.prototype[t]=n(),Hs.prototype[t+"Form"]=n(!0)});const ys=Hs;class qo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const r=this;this.promise.then(s=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](s);r._listeners=null}),this.promise.then=s=>{let l;const o=new Promise(a=>{r.subscribe(a),l=a}).then(s);return o.cancel=function(){r.unsubscribe(l)},o},t(function(l,o,a){r.reason||(r.reason=new Fn(l,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new qo(function(s){t=s}),cancel:t}}}const V0=qo;function H0(e){return function(n){return e.apply(null,n)}}function K0(e){return w.isObject(e)&&e.isAxiosError===!0}const Ki={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
45alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ki).forEach(([e,t])=>{Ki[t]=e});const W0=Ki;function ff(e){const t=new ys(e),n=Bd(ys.prototype.request,t);return w.extend(n,ys.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return ff(nn(e,s))},n}const ae=ff(Qo);ae.Axios=ys;ae.CanceledError=Fn;ae.CancelToken=V0;ae.isCancel=rf;ae.VERSION=df;ae.toFormData=dl;ae.AxiosError=U;ae.Cancel=ae.CanceledError;ae.all=function(t){return Promise.all(t)};ae.spread=H0;ae.isAxiosError=K0;ae.mergeConfig=nn;ae.AxiosHeaders=tt;ae.formToJSON=e=>nf(w.isHTMLForm(e)?new FormData(e):e);ae.getAdapter=uf.getAdapter;ae.HttpStatusCode=W0;ae.default=ae;const Q0=ae,q0="http://localhost:3001/api",mf=Q0.create({baseURL:q0,timeout:1e4});mf.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});mf.interceptors.response.use(e=>e,e=>{var t;throw console.error("API Error:",e),e.code==="ECONNREFUSED"||e.code==="ERR_NETWORK"||e.code==="ECONNABORTED"?new Error("Unable to connect to server. Please try again later."):((t=e.response)==null?void 0:t.status)===500?new Error("Server error. Please try again later."):e});const an=[],K=[],pf=async(e,t)=>{await new Promise(n=>setTimeout(n,1500));try{console.log("🔍 Weboldal elemzés kezdése:",e);let n=null,r="",s="general",l=[],o="",a=[],c=[],u=[];try{console.log("📡 Weboldal tartalom lekérése...");const x=[`https://api.allorigins.win/get?url=${encodeURIComponent(e)}`,`https://api.codetabs.com/v1/proxy?quest=${encodeURIComponent(e)}`,`https://corsproxy.io/?${encodeURIComponent(e)}`];let y="",v="";for(const f of x)try{const d=f.includes("allorigins")?"AllOrigins":f.includes("codetabs")?"CodeTabs":"CorsProxy";console.log(`🔄 Próbálkozás: ${d}`);const h=new AbortController,j=setTimeout(()=>h.abort(),1e4),S=await fetch(f,{method:"GET",headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},signal:h.signal});if(clearTimeout(j),S.ok){let E;const T=S.headers.get("content-type");if(T&&T.includes("application/json")?(E=await S.json(),y=E.contents||E.data||E.body||""):y=await S.text(),y&&y.length>100){v=d,console.log(`✅ Sikeres lekérés (${d}), hossz:`,y.length);break}}}catch(d){console.log(`❌ ${f.includes("allorigins")?"AllOrigins":f.includes("codetabs")?"CodeTabs":"CorsProxy"} hiba:`,d.message);continue}if(!y||y.length<100)try{console.log("🔄 Közvetlen próbálkozás (CORS bypass kísérlet)");const f=await fetch(e,{method:"GET",mode:"no-cors",headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"}});console.log("⚠️ Közvetlen hozzáférés: CORS korlátozás miatt nincs tartalom")}catch(f){console.log("❌ Közvetlen hozzáférés sikertelen:",f.message)}if(y&&y.length>100){n=y,console.log(`📄 Weboldal tartalom elemzése (${v} használatával)...`);const f=y.match(/<title[^>]*>([^<]+)<\/title>/i),d=y.match(/<meta[^>]*name="description"[^>]*content="([^"]*)"[^>]*>/i),h=y.match(/<meta[^>]*name="keywords"[^>]*content="([^"]*)"[^>]*>/i),j=y.match(/<h1[^>]*>([^<]+)<\/h1>
45/gi),S=y.match(/<h2[^>]*>([^<]+)<\/h2>/gi),E=y.match(/<h3[^>]*>([^<]+)<\/h3>/gi),T=y.match(/<p[^>]*>([^<]+)<\/p>/gi),_=y.match(/<img[^>]*src="([^"]*)"[^>]*alt="([^"]*)"[^>]*/gi);_&&_.forEach(b=>{const R=b.match(/src="([^"]*)"/),L=b.match(/alt="([^"]*)"/);if(R&&R[1]){let $=R[1];if($.startsWith("/")){const D=new URL(e);$=`${D.protocol}//${D.host}${$}`}else if(!$.startsWith("http")&&!$.startsWith("data:")){const D=new URL(e);$=`${D.protocol}//${D.host}/${$}`}!$.includes("favicon")&&!$.includes("icon")&&!$.includes("logo-small")&&!$.endsWith(".svg")&&$.length>20&&l.push({url:$,alt:L?L[1]:"Weboldal kép",type:"website"})}});const V=f?f[1].trim():"",F=d?d[1].trim():"",me=h?h[1].split(",").map(b=>b.trim()):[],se=[];j&&se.push(...j.map(b=>b.replace(/<[^>]*>/g,"").trim())),S&&se.push(...S.map(b=>b.replace(/<[^>]*>/g,"").trim())),E&&se.push(...E.map(b=>b.replace(/<[^>]*>/g,"").trim()));const ze=T?T.map(b=>b.replace(/<[^>]*>/g,"").trim()).filter(b=>b.length>20):[],M=y.match(/(\d{1,3}(?:[,.\s]\d{3})*)\s*(Ft|HUF|forint|€|EUR|euró|\$|USD|dollár)/gi);M&&(u=M.slice(0,5).map(b=>b.trim()));const H=y.match(/<h[2-4][^>]*>([^<]*(?:termék|product|szolgáltatás|service|étel|food|menü|menu)[^<]*)<\/h[2-4]>/gi);H&&(c=H.map(b=>b.replace(/<[^>]*>/g,"").trim()).slice(0,3));const le=y.match(/<meta[^>]*property="og:site_name"[^>]*content="([^"]*)"[^>]*>/i)||y.match(/<meta[^>]*name="application-name"[^>]*content="([^"]*)"[^>]*>/i);r=le?le[1]:V.split(" - ")[0]||V.split(" | ")[0]||"Az Ön vállalkozása",o=F||(se.length>0?se[0]:"")||(ze.length>0?ze[0].substring(0,150)+"...":"");const I=(V+" "+F+" "+se.join(" ")+" "+ze.join(" ")).toLowerCase();I.includes("shop")||I.includes("buy")||I.includes("store")||I.includes("bolt")||I.includes("vásárl")||I.includes("webáruház")||u.length>2?(s="ecommerce",a.push(`${u.length} ár találva`),c.length>0&&a.push(`Termékek: ${c.slice(0,2).join(", ")}`)):I.includes("restaurant")||I.includes("food")||I.includes("menu")||I.includes("étterem")||I.includes("étel")||I.includes("menü")||I.includes("étlap")?(s="restaurant",a.push("Éttermi szolgáltatások"),c.length>0&&a.push(`Ételek: ${c.slice(0,2).join(", ")}`)):I.includes("service")||I.includes("consulting")||I.includes("professional")||I.includes("szolgáltatás")||I.includes("tanácsadás")?(s="services",a.push("Szakmai szolgáltatások")):I.includes("learn")||I.includes("course")||I.includes("education")||I.includes("tanul")||I.includes("oktat")||I.includes("képzés")||I.includes("iskola")?(s="education",a.push("Oktatási szolgáltatások")):(I.includes("health")||I.includes("medical")||I.includes("doctor")||I.includes("egészség")||I.includes("orvos")||I.includes("klinika"))&&(s="healthcare",a.push("Egészségügyi szolgáltatások")),console.log("📊 Elemzés eredménye:",{businessName:r,businessType:s,extractedImages:l.length,prices:u.length,products:c.length,specificFeatures:a,successfulProxy:v})}}catch(x){console.log("❌ Weboldal lekérési hiba:",x.message)}if(!n){console.log("🔄 Fallback: URL alapú intelligens elemzés");const x=new URL(e),y=x.hostname.replace("www.",""),v=y.split(".");r=v[0].charAt(0).toUpperCase()+v[0].slice(1);const f=e.toLowerCase(),d=x.pathname.toLowerCase();f.includes("shop")||f.includes("store")||f.includes("buy")||f.includes("webshop")||f.includes("webáruház")||d.includes("termek")||d.includes("product")?(s="ecommerce",a.push("Online áruház")):f.includes("restaurant")||f.includes("food")||f.includes("cafe")||f.includes("étterem")||f.includes("kávézó")||f.includes("pizzeria")?(s="restaurant",a.push("Éttermi szolgáltatások")):f.includes("service")||f.includes("consulting")||f.includes("szolgáltatás")||f.includes("tanácsadás")?(s="services",a.push("Szakmai szolgáltatások")):f.includes("school")||f.includes("education")||f.includes("learn")||f.includes("iskola")||f.includes("oktatás")||f.includes("tanfolyam")?(s="education",a.push("Oktatási szolgáltatások")):f.includes("hotel")||f.includes("szálloda")||f.includes("apartman")?(s="hospitality",a.push("Szálláshelyek")):(f.includes("orvos")||f.includes("doctor")||f.includes("klinika")||f.includes("egészség")||f.includes("health"))&&(s="healthcare",a.push("Egészségügyi szolgáltatások")),s==="ecommerce"?o=`Vásároljon online a ${r} webáruházban! Széles termékválaszték, gyors szállítás.`:s==="restaurant"?o=`Ízletes ételek és kiváló kiszolgálás a ${r} éttermében. Foglaljon asztalt még ma!`:s==="services"?o=`Professzionális szolgáltatások a ${r}-nál. Tapasztalt szakemberek, megbízható megoldások.`:s==="education"?o=`Tanuljon a ${r}-nál! Minőségi oktatás, tapasztalt oktatók, gyakorlatias tudás.`:o=`Fedezze fel a ${r} szolgáltatásait és termékeit. Minőség és megbízhatóság.`,console.log("📊 URL alapú elemzés eredménye:",{domain:y,businessName:r,businessType:s,specificFeatures:a,urlPath:x.pathname})}const m=jc(s),g=l.length>0?[...l.slice(0,3),...m.slice(0,2)]:m;console.log("🎨 Hirdetés variációk generálása...");const p={businessName:r,mainDescription:o,specificFeatures:a,products:c,prices:u,businessType:s,images:g,hasRealContent:!!n},k=t.map((x,y)=>{let v,f,d;if(n&&o)switch(x){case"tiktok":v=`🔥 ${r} - Trending Most!`,f=`${o.substring(0,120)}... Nézd meg most! ${a.length>0?a[0]:""}`,d=s==="ecommerce"?"Vásárolj Most":"Nézd Meg";break;case"youtube":v=`📺 ${r} - Teljes Bemutató`,f=`${o} ${a.length>0?a.join(", "):""} Iratkozz fel további tartalomért!`,d=s==="ecommerce"?"Vásárolj Most":"Feliratkozás";break;case"facebook":v=`👥 ${r} - Csatlakozz Közösségünkhöz`,f=`${o} ${a.length>
450?"Kiemelkedő szolgáltatások: "+a.join(", "):""} Csatlakozz elégedett ügyfeleinkhez!`,d=s==="ecommerce"?"Vásárolj Most":"Tudj Meg Többet";break;case"instagram":v=`📸 ${r} Lifestyle`,f=`✨ ${o.substring(0,100)}... ${a.length>0?"#"+a[0].replace(/\s+/g,""):""} Követd a napi tartalomért!`,d=s==="ecommerce"?"Vásárolj Most":"Követés";break;case"twitter":v=`🐦 ${r} - Legfrissebb`,f=`⚡ ${o.substring(0,100)}... ${a.length>0?a[0]:""} Kövesd most!`,d=s==="ecommerce"?"Vásárolj Most":"Követés";break}else switch(x){case"tiktok":v=`🔥 ${r} - Most Trending!`,f=`Fedezd fel, miért beszél mindenki a ${r}-ról! Nézd meg most.`,d=s==="ecommerce"?"Vásárolj Most":"Nézd Meg";break;case"youtube":v=`📺 ${r} - Teljes Bemutató`,f=`Ebben a videóban részletesen bemutatjuk a ${r} szolgáltatásait.`,d=s==="ecommerce"?"Vásárolj Most":"Feliratkozás";break;case"facebook":v=`👥 Csatlakozz a ${r} közösséghez`,f=`Több ezer elégedett ügyfél választja már a ${r}-t. Csatlakozz te is!`,d=s==="ecommerce"?"Vásárolj Most":"Tudj Meg Többet";break;case"instagram":v=`📸 ${r} Lifestyle`,f=`✨ Emeld új szintre életstílusod a ${r}-vel. Követd a napi tartalomért!`,d=s==="ecommerce"?"Vásárolj Most":"Követés";break;case"twitter":v=`🐦 ${r} - Legfrissebb Hírek`,f=`⚡ Ne maradj le a ${r} újdonságairól! Kövesd most.`,d=s==="ecommerce"?"Vásárolj Most":"Követés";break}const h=g[y%g.length];return{platform:x,title:v,description:f,imageUrl:h.url,availableImages:g.slice(0,4),callToAction:d,reasoning:n?`Valós weboldal tartalom alapján generált ${x} hirdetés`:`URL alapú ${x} hirdetés generálás`}});return console.log("✅ Generált variációk:",k.length),k}catch(n){console.error("❌ Kritikus weboldal elemzési hiba:",n),console.log("🆘 Végső fallback aktiválása");let r="Az Ön vállalkozása";try{const o=new URL(e).hostname.replace("www.","");r=o.split(".")[0].charAt(0).toUpperCase()+o.split(".")[0].slice(1)}catch{console.log("❌ URL parsing is sikertelen, alapértelmezett név használata")}const s=jc("general");return t.map(l=>{let o,a,c;switch(l){case"tiktok":o=`🔥 ${r} - Trending!`,a=`Fedezze fel a ${r} szolgáltatásait! Nézze meg most.`,c="Nézd Meg";break;case"youtube":o=`📺 ${r} - Bemutató`,a=`Részletes bemutató a ${r} szolgáltatásairól.`,c="Feliratkozás";break;case"facebook":o=`👥 ${r} Közösség`,a=`Csatlakozzon a ${r} elégedett ügyfélközösségéhez!`,c="Tudj Meg Többet";break;case"instagram":o=`📸 ${r} Lifestyle`,a=`✨ Emeld új szintre életstílusod a ${r}-vel!`,c="Követés";break;case"twitter":o=`🐦 ${r} Hírek`,a=`⚡ Ne maradjon le a ${r} újdonságairól!`,c="Követés";break;default:o=r,a=`Fedezze fel a ${r} szolgáltatásait.`,c="Tudj Meg Többet"}return{platform:l,title:o,description:a,imageUrl:s[0].url,availableImages:s.slice(0,4),callToAction:c,reasoning:"Végső fallback generálás kritikus hiba esetén"}})}},jc=e=>{const t={ecommerce:[{url:"https://images.pexels.com/photos/267350/pexels-photo-267350.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"E-commerce shopping",type:"stock"},{url:"https://images.pexels.com/photos/230544/pexels-photo-230544.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Online shopping",type:"stock"},{url:"https://images.pexels.com/photos/1005638/pexels-photo-1005638.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Shopping bags",type:"stock"},{url:"https://images.pexels.com/photos/1229861/pexels-photo-1229861.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Product display",type:"stock"}],restaurant:[{url:"https://images.pexels.com/photos/1640777/pexels-photo-1640777.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Restaurant food",type:"stock"},{url:"https://images.pexels.com/photos/958545/pexels-photo-958545.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Fine dining",type:"stock"},{url:"https://images.pexels.com/photos/1279330/pexels-photo-1279330.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Chef cooking",type:"stock"},{url:"https://images.pexels.com/photos/1126728/pexels-photo-1126728.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Restaurant interior",type:"stock"}],services:[{url:"https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Professional services",type:"stock"},{url:"https://images.pexels.com/photos/3182812/pexels-photo-3182812.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Business meeting",type:"stock"},{url:"https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Consulting",type:"stock"},{url:"https://images.pexels.com/photos/3182773/pexels-photo-3182773.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Professional team",type:"stock"}],education:[{url:"https://images.pexels.com/photos/159844/cellular-education-classroom-159844.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Education classroom",type:"stock"},{url:"https://images.pexels.com/photos/256490/pexels-photo-256490.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Online learning",type:"stock"},{url:"https://images.pexels.com/photos/289737/pexels-photo-289737.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Study materials",type:"stock"},{url:"https://images.pexels.com/photos/1181533/pexels-photo-1181533.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Students learning",type:"stock"}],general:[{url:"https://images.pexels.com/photos/3184338/pexels-photo-3184338.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"General business",type:"stock"},{url:"https://images.pexels.com/photos/3182796/pexels-photo-3182796.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Business growth",type:"stock"},{url:"https://images.pexels.com/photos/3184360/pexels-photo-3184360.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Professional work",type:"stock"},{url:"https://images.pexels.com/photos/3182834/pexels-photo-3182834.jpeg?auto=compress&cs=tinysrgb&w=400",alt:"Business success",type:"stock"}]};return t[e]||t.general},es={register:async e=>{if(await new Promise(n=>setTimeout(n,1e3)),an.find(n=>n.email===e.email))throw new Error("User already exists");const t={id:Date.now().toString(),...e,connectedAccounts:{},role:"user"};return an.push(t),{token:"mock-jwt-token-"+Date.now(),user:t}},adminRegister:async e=>{if(await new Promise(n=>setTimeout(n,1500)),an.find(n=>n.email===e.email))throw new Error("Admin már létezik ezzel az email címmel");const t={id:Date.now().toString(),email:e.email,name:e.name,businessType:"admin",monthlyBudget:0,connectedAccounts:{},role:"admin",adminLevel:"super",createdAt:new Date().toISOString()};return an.push(t),{token:"mock-admin-jwt-token-"+Date.now(),user:t}},login:async e=>{await new Promise(n=>setTimeout(n,1e3));const t=an.find(n=>n.email===e.email);if(!t)throw new Error("Invalid credentials");if(t.role==="admin")throw new Error("Admin fiók - használja az admin bejelentkezést");return{token:"mock-jwt-token-"+Date.now(),user:t}},adminLogin:async e=>{await new Promise(n=>setTimeout(n,1500));const t=an.find(n=>n.email===e.email&&n.role==="admin");if(!t)throw new Error("Admin fiók nem található");return{token:"mock-admin-jwt-token-"+Date.now(),user:t}}},Yn={register:async e=>await es.register(e),adminRegister:async e=>await es.adminRegister(e),login:async e=>await es.login(e),adminLogin:async e=>await es.adminLogin(e)},Zn={getCampaigns:async()=>(await new Promise(e=>setTimeout(e,500)),K),createCampaign:async e=>{var t,n;{await new Promise(v=>setTimeout(v,1e3));const r=e.budget.total,s=.08+Math.random()*.12,l=Math.round(r*s),o=180+Math.random()*170,a=.02+Math.random()*.03,c=.03+Math.random()*.07,u=Math.floor(l/o),m=Math.floor(u/a),g=Math.floor(u*c),p=800+Math.random()*1200,k=g>0?g*p/l:0,x={impressions:m,clicks:u,conversions:g,spend:l,ctr:a,cpc:Math.round(o),roas:Math.round(k*100)/100};console.log("🔍 Kampány létrehozás - Költségvetés debug:",{totalBudget:r,spendPercentage:Math.round(s*100)+"%",actualSpend:l,allocation:e.budget.allocation,performance:x});const y={_id:Date.now().toString(),name:e.name||`Kampány ${new Date().toLocaleDateString("hu-HU")}`,sourceUrl:e.sourceUrl,platforms:e.platforms,budget:{...e.budget,allocation:e.budget.allocation},userPrompt:e.userPrompt,targeting:{ageRange:[18,65],interests:(t=e.userPrompt)!=null&&t.audience?[e.userPrompt.audience,"Online vásárlók"]:["Általános közönség","Online vásárlók"],locations:(n=e.userPrompt)!=null&&n.territories?e.userPrompt.territories.map(v=>({HU:"Magyarország",AT:"Ausztria",SK:"Szlovákia",RO:"Románia",HR:"Horvátország",SI:"Szlovénia",CZ:"Csehország",DE:"Németország",US:"Egyesült Államok",GB:"Egyesült Királyság",FR:"Franciaország",IT:"Olaszország"})[v]||v):["Magyarország"]},status:"draft",performance:x,aiInsights:{contentThemes:["Weboldal alapú tartalom"],suggestedAudience:["Célzott közönség","Érdeklődők"],confidenceScore:.85},createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};return K.push(y),y}},getCampaign:async e=>{{await new Promise(n=>setTimeout(n,500));const t=K.find(n=>n._id===e);if(!t)throw new Error("Campaign not found");return t}},updateCampaign:async(e,t)=>{{await new Promise(s=>setTimeout(s,500));const n=K.findIndex(s=>s._id===e);if(n===-1)throw new Error("Campaign not found");const r={...K[n],...t,updatedAt:new Date().toISOString()};if(t.budget){const s=t.budget.total||K[n].budget.total,l=K[n].budget.total,o=K[n].performance.spend,a=o/l,c=Math.round(s*a);console.log("🔄 Kampány frissítés - Költségvetés változás:",{oldBudget:l,newBudget:s,oldSpend:o,newSpend:c,spendRatio:Math.round(a*100)+"%"});const u=K[n].performance.cpc||250,m=K[n].performance.ctr||.03,g=o>0?K[n].performance.conversions/(o/u):.05,p=Math.floor(c/u),k=Math.floor(p/m),x=Math.floor(p*g),y=K[n].performance.roas||1.5,v=y*o/Math.max(K[n].performance.conversions,1),f=x>0?x*v/c:y;r.performance={impressions:k,clicks:p,conversions:x,spend:c,ctr:m,cpc:Math.round(u),roas:Math.round(f*100)/100}}return K[n]=r,K[n]}},launchCampaign:async e=>{{await new Promise(n=>setTimeout(n,1500));const t=K.findIndex(n=>n._id===e);if(t===-1)throw new Error("Campaign not found");return K[t].status="active",K[t].updatedAt=new Date().toISOString(),console.log("Mock API: Campaign launched",K[t]),{message:"Campaign launched successfully",campaign:K[t],success:!0}}}
45,deleteCampaign:async e=>{{await new Promise(n=>setTimeout(n,500));const t=K.findIndex(n=>n._id===e);if(t===-1)throw new Error("Campaign not found");return K.splice(t,1),{message:"Campaign deleted successfully"}}}},er={getDashboard:async()=>{{await new Promise(n=>setTimeout(n,500));const e=K.reduce((n,r)=>n+r.performance.spend,0),t={tiktok:{campaigns:0,spend:0},youtube:{campaigns:0,spend:0},facebook:{campaigns:0,spend:0},instagram:{campaigns:0,spend:0},twitter:{campaigns:0,spend:0}};return console.log("📊 Analytics számítás kezdése:",{totalCampaigns:K.length,totalSpendCalculated:e}),K.forEach(n=>{console.log(`📈 Kampány: ${n.name}`,{totalSpend:n.performance.spend,platforms:n.platforms,allocation:n.budget.allocation}),n.platforms.forEach(r=>{if(t[r]){const s=n.budget.allocation[r]||0,l=Math.round(n.performance.spend*(s/100));console.log(`  💰 ${r}: ${s}% = ${l} Ft`),t[r].campaigns+=1,t[r].spend+=l}})}),console.log("📊 Végső platform breakdown:",t),{totalCampaigns:K.length,activeCampaigns:K.filter(n=>n.status==="active").length,totalSpend:e,totalImpressions:K.reduce((n,r)=>n+r.performance.impressions,0),totalClicks:K.reduce((n,r)=>n+r.performance.clicks,0),averageCTR:K.length>0?K.reduce((n,r)=>n+r.performance.ctr,0)/K.length:0,platformBreakdown:t,recentPerformance:K.slice(0,5).map(n=>({id:n._id,name:n.name,spend:n.performance.spend,impressions:n.performance.impressions,ctr:n.performance.ctr,status:n.status}))}}},getCampaignPerformance:async e=>{{await new Promise(n=>setTimeout(n,500));const t=K.find(n=>n._id===e);if(!t)throw new Error("Campaign not found");return{...t.performance,dailyMetrics:Array.from({length:7},(n,r)=>({date:new Date(Date.now()-r*24*60*60*1e3).toISOString().split("T")[0],impressions:Math.floor(Math.random()*1e3)+100,clicks:Math.floor(Math.random()*50)+5,spend:Math.floor(Math.random()*50)+10}))}}}},hf={getConnectedAccounts:async()=>(await new Promise(e=>setTimeout(e,500)),{tiktok:{connected:!1},youtube:{connected:!1},facebook:{connected:!1},instagram:{connected:!1},twitter:{connected:!1}}),connectTikTok:async e=>(await new Promise(t=>setTimeout(t,1e3)),{message:"TikTok account connected successfully"}),connectYouTube:async e=>(await new Promise(t=>setTimeout(t,1e3)),{message:"YouTube account connected successfully"}),connectFacebook:async e=>(await new Promise(t=>setTimeout(t,1e3)),{message:"Facebook account connected successfully"}),connectInstagram:async e=>(await new Promise(t=>setTimeout(t,1e3)),{message:"Instagram account connected successfully"}),connectTwitter:async e=>(await new Promise(t=>setTimeout(t,1e3)),{message:"X (Twitter) account connected successfully"})},gf={testExternalApi:async e=>(await new Promise(t=>setTimeout(t,1500)),console.log("🧪 Mock API test for:",e.name),{success:!0,message:`${e.name} API teszt sikeres (mock)`,provider:e.provider,endpoint:e.endpoint,responseTime:Math.floor(Math.random()*500)+200,status:"connected",mockData:!0})},G0=Object.freeze(Object.defineProperty({__proto__:null,adminAPI:gf,analyticsAPI:er,authAPI:Yn,campaignAPI:Zn,generateAIVariationsFromURL:pf,socialAPI:hf},Symbol.toStringTag,{value:"Module"})),X0=()=>{const[e,t]=O.useState(!0),[n,r]=O.useState(!1),[s,l]=O.useState(!1),[o,a]=O.useState(""),{login:c}=ol(),[u,m]=O.useState({email:"",password:"",name:"",businessType:"other",monthlyBudget:2e5,adminKey:""}),g=async k=>{var x,y;k.preventDefault(),l(!0),a("");try{if(e){let v;n?v=await Yn.adminLogin({email:u.email,password:u.password}):v=await Yn.login({email:u.email,password:u.password}),c(v.token,v.user)}else{let v;n?v=await Yn.adminRegister({email:u.email,password:u.password,name:u.name}):v=await Yn.register(u),c(v.token,v.user)}}catch(v){a(((y=(x=v.response)==null?void 0:x.data)==null?void 0:y.message)||v.message||"An error occurred")}finally{l(!1)}},p=k=>{const{name:x,value:y}=k.target;m(v=>({...v,[x]:x==="monthlyBudget"?Number(y):y}))};return i.jsx("div",{className:"min-h-screen bg-gradient-to-br from-indigo-50 via-white to-cyan-50 flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:i.jsxs("div",{className:"max-w-md w-full space-y-8",children:[i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"flex justify-center",children:i.jsx("div",{className:`${n?"bg-red-600":"bg-indigo-600"} p-3 rounded-full`,children:n?i.jsx("div",{className:"h-8 w-8 text-white flex items-center justify-center font-bold text-lg",children:"A"}):i.jsx(Bo,{className:"h-8 w-8 text-white"})})}),i.jsx("h2",{className:"mt-6 text-3xl font-extrabold text-gray-900",children:n?e?"Admin Bejelentkezés":"Admin Regisztráció":e?"Bejelentkezés a pressone-ba":"pressone fiók létrehozása"}),i.jsx("p",{className:"mt-2 text-sm text-gray-600",children:n?e?"Rendszer adminisztrációs hozzáférés":"Új admin fiók létrehozása":e?"Automatizálja közösségi média hirdetéseit":"Kezdjen automatizált kampányokat létrehozni percek alatt"})]}),i.jsxs("form",{className:"mt-8 space-y-6",onSubmit:g,children:[i.jsxs("div",{className:"flex items-center justify-center space-x-4 p-4 bg-gray-50 rounded-lg",children:[i.jsx("button",{type:"button",onClick:()=>{r(!1),a(""),m(k=>({...k,adminKey:""}))},className:`px-4 py-2 rounded-lg font-medium transition-colors ${n?"bg-white text-gray-700 hover:bg-gray-100":"bg-indigo-600 text-white"}`,children:"👤 Felhasználó"}),i.jsx("button",{type:"button",onClick:()=>{r(!0),a("")},className:`px-4 py-2 rounded-lg font-medium transition-colors ${n?"bg-red-600 text-white":"bg-white text-gray-700 hover:bg-gray-100"}`,children:"🛡️ Admin"})]}),i.jsxs("div",{className:"space-y-4",children:[!e&&!n&&i.jsxs("div",{children:[i.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 mb-1",children:"Teljes név"}),i.jsxs("div",{className:"relative",children:[i.jsx($i,{className:"absolute left-3 top-3 h-5 w-5 text-gray-400"}),i.jsx("input",{id:"name",name:"name",type:"text",required:!e,value:u.name,onChange:p,className:"w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"Adja meg teljes nevét"})]})]}),!e&&n&&i.jsxs("div",{children:[i.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 mb-1",children:"Admin név"}),i.jsxs("div",{className:"relative",children:[i.jsx($i,{className:"absolute left-3 top-3 h-5 w-5 text-gray-400"}),i.jsx("input",{id:"name",name:"name",type:"text",required:!e&&n,value:u.name,onChange:p,className:"w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-500 focus:border-transparent",placeholder:"Adja meg admin nevét"})]})]}),i.jsxs("div",{children:[i.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-1",children:"E-mail cím"}),i.jsxs("div",{className:"relative",children:[i.jsx(ih,{className:"absolute left-3 top-3 h-5 w-5 text-gray-400"}),i.jsx("input",{id:"email",name:"email",type:"email",required:!0,value:u.email,onChange:p,className:`w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-2 ${n?"focus:ring-red-500":"focus:ring-indigo-500"} focus:border-transparent`,placeholder:"Adja meg e-mail címét"})]})]}),i.jsxs("div",{children:[i.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 mb-1",children:"Jelszó"}),i.jsxs("div",{className:"relative",children:[i.jsx(sh,{className:"absolute left-3 top-3 h-5 w-5 text-gray-400"}),i.jsx("input",{id:"password",name:"password",type:"password",required:!0,value:u.password,onChange:p,className:`w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-2 ${n?"focus:ring-red-500":"focus:ring-indigo-500"} focus:border-transparent`,placeholder:"Adja meg jelszavát"})]})]}),!e&&!n&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{children:[i.jsx("label",{htmlFor:"businessType",className:"block text-sm font-medium text-gray-700 mb-1",children:"Vállalkozás típusa"}),i.jsxs("div",{className:"relative",children:[i.jsx(Jp,{className:"absolute left-3 top-3 h-5 w-5 text-gray-400"}),i.jsxs("select",{id:"businessType",name:"businessType",value:u.businessType,onCh
45ange:p,className:"w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",children:[i.jsx("option",{value:"ecommerce",children:"E-kereskedelem"}),i.jsx("option",{value:"services",children:"Szakmai szolgáltatások"}),i.jsx("option",{value:"entertainment",children:"Szórakoztatás"}),i.jsx("option",{value:"education",children:"Oktatás"}),i.jsx("option",{value:"other",children:"Egyéb"})]})]})]}),i.jsxs("div",{children:[i.jsx("label",{htmlFor:"monthlyBudget",className:"block text-sm font-medium text-gray-700 mb-1",children:"Havi hirdetési költségvetés"}),i.jsxs("div",{className:"relative",children:[i.jsx("span",{className:"absolute left-3 top-3 text-gray-400 text-sm font-medium",children:"HUF"}),i.jsx("input",{id:"monthlyBudget",name:"monthlyBudget",type:"number",min:"20000",max:"4000000",step:"20000",value:u.monthlyBudget,onChange:p,className:"w-full pl-16 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"200000"})]}),i.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Ez segít optimalizálni kampányait a költségvetési tartományához"})]})]})]}),o&&i.jsx("div",{className:"bg-red-50 border border-red-200 text-red-600 px-4 py-3 rounded-lg text-sm",children:o}),i.jsx("button",{type:"submit",disabled:s,className:`w-full flex justify-center py-3 px-4 border border-transparent rounded-lg shadow-sm text-sm font-medium text-white ${n?"bg-red-600 hover:bg-red-700 focus:ring-red-500":"bg-indigo-600 hover:bg-indigo-700 focus:ring-indigo-500"} focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed`,children:s?i.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-white"}):n?e?"Admin Bejelentkezés":"Admin Regisztráció":e?"Bejelentkezés":"Fiók létrehozása"}),i.jsx("div",{className:"text-center",children:i.jsx("button",{type:"button",onClick:()=>{t(!e),a(""),m(k=>({...k,adminKey:""}))},className:`text-sm ${n?"text-red-600 hover:text-red-500":"text-indigo-600 hover:text-indigo-500"}`,children:n?e?"Nincs admin fiókja? Regisztráljon":"Már van admin fiókja? Jelentkezzen be":e?"Nincs fiókja? Regisztráljon":"Már van fiókja? Jelentkezzen be"})})]}),!e&&!n&&i.jsx("div",{className:"mt-6 text-center",children:i.jsxs("p",{className:"text-xs text-gray-500",children:["Fiók létrehozásával elfogadja"," ",i.jsx("a",{href:"#",className:"text-indigo-600 hover:text-indigo-500",children:"Szolgáltatási feltételeinket"})," ","and"," ",i.jsx("a",{href:"#",className:"text-indigo-600 hover:text-indigo-500",children:"Adatvédelmi szabályzatunkat"})]})}),n&&i.jsx("div",{className:"mt-6 text-center",children:i.jsxs("p",{className:"text-xs text-red-600 bg-red-50 p-3 rounded-lg border border-red-200",children:["⚠️ ",i.jsx("strong",{children:"Admin hozzáférés:"})," Csak jogosult rendszergazdák számára."]})})]})})},J0=({onClose:e})=>{const[t,n]=O.useState("apis"),[r,s]=O.useState({}),[l,o]=O.useState({}),[a,c]=O.useState({creatifyApiKey:"",creatifyApiId:"",creatifyEndpoint:"https://api.creatify.ai/v1"}),u=[{id:"link-to-video",name:"Link to Video API",endpoint:"https://api.creatify.ai/v1/videos",description:"Convert website links into engaging video advertisements"},{id:"lipsyncs",name:"Lipsyncs API",endpoint:"https://api.creatify.ai/v1/lipsyncs",description:"Generate realistic lip-sync videos with AI avatars"},{id:"custom-templates",name:"Custom Templates API",endpoint:"https://api.creatify.ai/v1/templates",description:"Create videos using custom branded templates"},{id:"ai-scripts",name:"AI Scripts API",endpoint:"https://api.creatify.ai/v1/scripts",description:"Generate compelling video scripts with AI"},{id:"text-to-speech",name:"Text to Speech API",endpoint:"https://api.creatify.ai/v1/tts",description:"Convert text to natural-sounding speech"},{id:"ai-shorts",name:"AI Shorts API",endpoint:"https://api.creatify.ai/v1/shorts",description:"Create short-form videos for social media"},{id:"ai-editing",name:"AI Editing API",endpoint:"https://api.creatify.ai/v1/editing",description:"Automatically edit and enhance video content"},{id:"product-to-video",name:"Product to Video API",endpoint:"https://api.creatify.ai/v1/product-videos",description:"Transform product information into video ads"}],m=async y=>{o(v=>({...v,[y.id]:!0})),s(v=>({...v,[y.id]:null}));try{console.log(`🧪 Testing ${y.name}...`);const v=await gf.testExternalApi({name:y.name,provider:"creatify",apiKey:a.creatifyApiKey||"test-key",apiId:a.creatifyApiId||"test-id",endpoint:y.endpoint});console.log(`✅ ${y.name} test result:`,v),s(f=>({...f,[y.id]:v}))}catch(v){console.error(`❌ ${y.name} test failed:`,v),s(f=>({...f,[y.id]:{success:!1,message:v.message||"Test failed",error:!0}}))}finally{o(v=>({...v,[y.id]:!1}))}},g=async()=>{console.log("🚀 Testing all Creatify.ai APIs...");for(const y of u)await m(y),await new Promise(v=>setTimeout(v,500))},p=()=>{console.log("💾 Saving API settings:",a),alert("API beállítások mentve! (Mock mentés)")},k=()=>i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("h4",{className:"font-medium text-blue-900",children:"Creatify.ai API Testing"}),i.jsx("button",{onClick:g,disabled:Object.values(l).some(y=>y),className:"bg-blue-600 text-white px-3 py-1 rounded text-sm hover:bg-blue-700 disabled:opacity-50",children:"Test All APIs"})]}),i.jsx("p",{className:"text-sm text-blue-700",children:"Test the connection to various Creatify.ai APIs. Make sure to configure your API credentials in the Settings tab first."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:u.map(y=>{const v=r[y.id],f=l[y.id];return i.jsxs("div",{className:"border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:[i.jsx("div",{className:"flex items-start justify-between mb-3",children:i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center space-x-2 mb-1",children:[i.jsx("h5",{className:"font-medium text-gray-900",children:y.name}),v&&(v.success?i.jsx(Ue,{className:"h-4 w-4 text-green-500"}):i.jsx(Cr,{className:"h-4 w-4 text-red-500"}))]}),i.jsx("p",{className:"text-xs text-gray-600 mb-2",children:y.description}),i.jsx("p",{className:"text-xs text-gray-400 font-mono break-all",children:y.endpoint})]})}),i.jsx("button",{onClick:()=>m(y),disabled:f,className:"w-full bg-red-600 text-white px-3 py-2 rounded text-sm hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center space-x-2",children:f?i.jsxs(i.Fragment,{children:[i.jsx(ms,{className:"h-4 w-4 animate-spin"}),i.jsx("span",{children:"Testing..."})]}):i.jsxs(i.Fragment,{children:[i.jsx(oc,{className:"h-4 w-4"}),i.jsx("span",{children:"Test API"})]})}),v&&i.jsxs("div",{className:`mt-3 p-3 rounded text-sm ${v.success?"bg-green-50 text-green-700 border border-green-200":"bg-red-50 text-red-700 border border-red-200"}`,children:[i.jsx("div",{className:"font-medium mb-1",children:v.success?"✅ Success":"❌ Failed"}),i.jsx("div",{className:"text-xs",children:v.message}),v.responseTime&&i.jsxs("div",{className:"text-xs mt-1 opacity-75",children:["Response time: ",v.responseTime,"ms"]})]})]},y.id)})})]}),x=()=>i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:[i.jsx("h4",{className:"font-medium text-yellow-900 mb-2",children:"🔑 API Configuration"}),i.jsx("p",{className:"text-sm text-yellow-700",children:"Configure your Creatify.ai API credentials. These settings are required for video generation to work properly."})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Creatify.ai API Key *"}),i.jsx("input",{type:"password",value:a.creatifyApiKey,onChange:y=>c(v=>({...v,creatifyApiKey:y.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-500 focus:border-transparent",placeholder:"Enter your Creatify.ai API key..."}),i.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API key from the Creatify.ai dashboard"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Creatify.ai API ID *"}),i.jsx("input",{type:"text",value:a.creatifyApiId,onChange:y=>c(v=>({...v,creatifyApiId:y.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-500 focus:border-transparent",placeholder:"Enter your Creatify.ai API ID..."}),i.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Your unique API identifier from Creatify.ai"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"API Endpoint"}),i.jsx("input",{type:"url",value:a.creatifyEndpoint,onChange:y=>c(v=>({...v,creatifyEndpoint:y.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-500 focus:border-transparent",placeholder:"https://api.creatify.ai/v1"}),i.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Base URL for Creatify.ai API (usually doesn't need to be changed)"})]}),i.jsxs("div",{className:"flex space-x-3",children:[i.jsxs("button",{onClick:p,className:"bg-red-600 text-white px-4 py-2 rounded-lg hover:bg-red-700 flex items-center space-x-2",children:[i.jsx(Fi,{className:"h-4 w-4"}),i.jsx("span",{children:"Save Configuration"})]}),i.jsx("button",{onClick:()=>c({creatifyApiKey:"",creatifyApiId:"",creatifyEndpoint:"https://api.creatify.ai/v1"}),className:"bg-gray-500 text-white px-4 py-2 rounded-lg hover:bg-gray-600",children:"Reset"})]})]}),i.jsxs("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-4",children:[i.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"📊 System Status"}),i.jsxs("div",{className:"space-y-2 text-sm",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{children:"Frontend:"}),i.jsx("span",{className:"text-green-600",children:"✅ Running"})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{children:"Backend:"}),i.jsx("span",{className:"text-green-600",children:"✅ Connected"})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{children:"API Configuration:"}),i.jsx("span",{className:a.creatifyApiKey&&a.creatifyApiId?"text-green-600":"text-yellow-600",children:a.creatifyApiKey&&a.creatifyApiId?"✅ Configured":"⚠️ Needs Setup"})]})]})]})]});return i.jsx("div",{className:"fixed inset-0 z-50 overflow-y-auto",children:i.jsxs("div",{className:"flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[i.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity",onClick:e,"aria-hidden":"true"}),i.jsxs("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-5xl sm:w-full",children:[i.jsx("div",{className:"bg-red-600 px-6 py-4",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx(Do,{
45className:"h-6 w-6 text-white"}),i.jsx("h3",{className:"text-lg font-medium text-white",children:"Admin Panel"}),i.jsx("span",{className:"bg-red-500 text-white text-xs px-2 py-1 rounded",children:"Creatify.ai Integration"})]}),i.jsx("button",{onClick:e,className:"text-red-200 hover:text-white transition-colors",children:i.jsx(Dd,{className:"h-6 w-6"})})]})}),i.jsx("div",{className:"border-b border-gray-200 bg-gray-50",children:i.jsxs("nav",{className:"flex space-x-8 px-6",children:[i.jsxs("button",{onClick:()=>n("apis"),className:`py-4 px-1 border-b-2 font-medium text-sm transition-colors ${t==="apis"?"border-red-500 text-red-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:[i.jsx(oc,{className:"h-4 w-4 inline mr-2"}),"API Testing"]}),i.jsxs("button",{onClick:()=>n("settings"),className:`py-4 px-1 border-b-2 font-medium text-sm transition-colors ${t==="settings"?"border-red-500 text-red-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:[i.jsx(Fi,{className:"h-4 w-4 inline mr-2"}),"Settings"]})]})}),i.jsxs("div",{className:"px-6 py-6 max-h-96 overflow-y-auto",children:[t==="apis"&&k(),t==="settings"&&x()]}),i.jsx("div",{className:"bg-gray-50 px-6 py-3 border-t border-gray-200",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("div",{className:"text-xs text-gray-500",children:"Admin Panel v1.0 - Creatify.ai Integration"}),i.jsx("button",{onClick:e,className:"bg-gray-600 text-white px-4 py-2 rounded text-sm hover:bg-gray-700",children:"Close Panel"})]})})]})]})})},Y0=({children:e,currentPage:t,onPageChange:n})=>{var g,p;const{user:r,logout:s}=ol(),[l,o]=Yo.useState(!1),[a,c]=Yo.useState(!1),u=(r==null?void 0:r.role)==="admin"||(r==null?void 0:r.email)==="[email protected]"||((g=r==null?void 0:r.email)==null?void 0:g.includes("admin")),m=[{name:"Irányítópult",id:"dashboard",icon:$d},{name:"Kampány létrehozása",id:"create",icon:Bo},{name:"Beállítások",id:"settings",icon:Fi}];return i.jsxs("div",{className:"min-h-screen bg-gray-50",children:[i.jsxs("div",{className:`fixed inset-0 z-50 lg:hidden ${l?"block":"hidden"}`,children:[i.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75",onClick:()=>o(!1)}),i.jsxs("div",{className:"fixed inset-y-0 left-0 flex w-64 flex-col bg-white",children:[i.jsxs("div",{className:"flex h-16 items-center justify-between px-4",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("img",{src:"/pressone-logo.png",alt:"pressone logo",className:"h-8 w-8 rounded-lg object-contain bg-white p-1",onError:k=>{console.log("Logo failed to load"),k.currentTarget.style.display="none"}}),i.jsx("span",{className:"ml-2 text-xl font-bold text-gray-900",children:"pressone"})]}),i.jsx("button",{onClick:()=>o(!1),children:i.jsx(Dd,{className:"h-6 w-6 text-gray-400"})})]}),i.jsx("nav",{className:"flex-1 space-y-1 px-2 py-4",children:m.map(k=>i.jsxs("button",{onClick:()=>{n(k.id),o(!1)},className:`group flex w-full items-center rounded-md px-2 py-2 text-sm font-medium ${t===k.id?"bg-indigo-100 text-indigo-900":"text-gray-600 hover:bg-gray-50 hover:text-gray-900"}`,children:[i.jsx(k.icon,{className:"mr-3 h-5 w-5"}),k.name]},k.id))})]})]}),i.jsx("div",{className:"hidden lg:fixed lg:inset-y-0 lg:flex lg:w-64 lg:flex-col",children:i.jsxs("div",{className:"flex flex-col flex-grow bg-white border-r border-gray-200",children:[i.jsxs("div",{className:"flex items-center h-16 px-4",children:[i.jsx("img",{src:"/pressone-logo.png",alt:"pressone logo",className:"h-8 w-8 rounded-lg object-contain bg-white p-1",onError:k=>{console.log("Logo failed to load"),k.currentTarget.style.display="none"}}),i.jsx("span",{className:"ml-2 text-xl font-bold text-gray-900",children:"pressone"})]}),i.jsx("nav",{className:"flex-1 space-y-1 px-2 py-4",children:m.map(k=>i.jsxs("button",{onClick:()=>n(k.id),className:`group flex w-full items-center rounded-md px-2 py-2 text-sm font-medium ${t===k.id?"bg-indigo-100 text-indigo-900":"text-gray-600 hover:bg-gray-50 hover:text-gray-900"}`,children:[i.jsx(k.icon,{className:"mr-3 h-5 w-5"}
45),k.name]},k.id))})]})}),i.jsxs("div",{className:"lg:pl-64",children:[i.jsxs("div",{className:"sticky top-0 z-40 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8",children:[i.jsx("button",{type:"button",className:"-m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:()=>o(!0),children:i.jsx(oh,{className:"h-6 w-6"})}),i.jsxs("div",{className:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6",children:[i.jsx("div",{className:"flex flex-1"}),i.jsxs("div",{className:"flex items-center gap-x-4 lg:gap-x-6",children:[i.jsxs("div",{className:"flex items-center gap-x-2",children:[i.jsx("div",{className:"h-8 w-8 rounded-full bg-indigo-600 flex items-center justify-center",children:i.jsx("span",{className:"text-sm font-medium text-white",children:(p=r==null?void 0:r.name)==null?void 0:p.charAt(0).toUpperCase()})}),i.jsx("span",{className:"text-sm font-medium text-gray-700",children:r==null?void 0:r.name})]}),u&&i.jsxs("button",{onClick:()=>c(!0),className:"flex items-center gap-x-2 text-sm text-indigo-600 hover:text-indigo-900",title:"Admin Panel",children:[i.jsx(Do,{className:"h-4 w-4"}),"Admin"]}),i.jsxs("button",{onClick:s,className:"flex items-center gap-x-2 text-sm text-gray-600 hover:text-gray-900",children:[i.jsx(lh,{className:"h-4 w-4"}),"Logout"]})]})]})]}),i.jsx("main",{className:"py-8",children:i.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:e})})]}),a&&i.jsx(J0,{onClose:()=>c(!1)})]})},Nc=({onPageChange:e,onEditCampaign:t})=>{const[n,r]=O.useState(null),[s,l]=O.useState([]),[o,a]=O.useState(!0),[c,u]=O.useState(null),[m,g]=O.useState(null);O.useEffect(()=>{(async()=>{try{const[h,j]=await Promise.all([er.getDashboard(),Zn.getCampaigns()]);r(h),l(j)}catch(h){console.error("Error fetching dashboard data:",h)}finally{a(!1)}})()},[]);const p=async(d,h)=>{if(confirm(`Biztosan törölni szeretné a "${h}" kampányt? Ez a művelet nem vonható vissza.`)){u(d);
45try{await Zn.deleteCampaign(d),l(S=>S.filter(E=>E._id!==d));const j=await er.getDashboard();r(j),alert("Kampány sikeresen törölve!")}catch(j){console.error("Error deleting campaign:",j),alert("Hiba történt a kampány törlése során. Kérjük, próbálja újra.")}finally{u(null)}}},k=async d=>{const h=d.status==="active"?"paused":"active";if(confirm(`Biztosan szeretné ${h==="active"?"elindítani":"szüneteltetni"} a "${d.name}" kampányt?`)){g(d._id);try{const S=await Zn.updateCampaign(d._id,{status:h});l(_=>_.map(V=>V._id===d._id?S:V));const E=await er.getDashboard();r(E),alert(`Kampány sikeresen ${h==="active"?"elindítva":"szüneteltetve"}!`)}catch(S){console.error("Error updating campaign status:",S),alert("Hiba történt a kampány állapotának módosítása során. Kérjük, próbálja újra.")}finally{g(null)}}},x=d=>{t&&t(d)},y=async d=>{const h=`Biztosan szeretné elindítani a "${d.name}" kampányt?`;if(confirm(h)){g(d._id);try{const j=await Zn.launchCampaign(d._id);l(E=>E.map(T=>T._id===d._id?{...T,status:"active"}:T));const S=await er.getDashboard();r(S),console.log("Campaign launched successfully:",j),setTimeout(()=>alert("Kampány sikeresen elindítva!"),100)}catch(j){console.error("Error launching campaign:",j);const S=j instanceof Error?j.message:"Ismeretlen hiba";alert(`Hiba történt a kampány indítása során: ${S}`)}finally{g(null)}}},v=!1;if(o)return i.jsx("div",{className:"flex items-center justify-center h-64",children:i.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-indigo-600"})});const f=[{name:"Összes kampány",value:(n==null?void 0:n.totalCampaigns)||0,icon:$d,change:"+12%",changeType:"positive"},{name:"Összes kiadás",value:`${(n==null?void 0:n.totalSpend.toLocaleString("hu-HU"))||"0"} HUF`,icon:Mi,change:"+4.75%",changeType:"positive"},{name:"Megjelenések",value:(n==null?void 0:n.totalImpressions.toLocaleString())||"0",icon:th,change:"+54.02%",changeType:"positive"},{name:"Átlagos CTR",value:`${((n==null?void 0:n.averageCTR)*100||0).toFixed(2)}%`,icon:ah,change:"+1.39%",changeType:"positive"}];return i.jsxs("div",{className:"space-y-8",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Irányítópult"}),i.jsx("p",{className:"mt-2 text-sm text-gray-600",children:"Hirdetési kampányai és teljesítménymutatói áttekintése."})]}),i.jsx("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-4",children:f.map(d=>i.jsx("div",{className:"bg-white overflow-hidden shadow rounded-lg",children:i.jsx("div",{className:"p-5",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"flex-shrink-0",children:i.jsx(d.icon,{className:"h-6 w-6 text-gray-400"})}),i.jsx("div",{className:"ml-5 w-0 flex-1",children:i.jsxs("dl",{children:[i.jsx("dt",{className:"text-sm font-medium text-gray-500 truncate",children:d.name}),i.jsxs("dd",{className:"flex items-baseline",children:[i.jsx("div",{className:"text-2xl font-semibold text-gray-900",children:d.value}),i.jsxs("div",{className:"ml-2 flex items-baseline text-sm font-semibold text-green-600",children:[i.jsx(Ud,{className:"h-4 w-4 flex-shrink-0 self-center"}),i.jsx("span",{className:"sr-only",children:"Increased by"}),d.change]})]})]})})]})})},d.name))}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[i.jsxs("div",{className:"bg-white shadow rounded-lg p-6",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Platform teljesítmény"}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-4 h-4 bg-pink-500 rounded mr-3"}),i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"TikTok"})]}),i.jsxs("div",{className:"text-right",children:[i.jsxs("div",{className:"text-sm font-semibold text-gray-900",children:[(n==null?void 0:n.platformBreakdown.tiktok.campaigns)||0," kampány"]}),i.jsxs("div",{className:"text-xs text-gray-500",children:[(n==null?void 0:n.platformBreakdown.tiktok.spend.toLocaleStr
45ing("hu-HU"))||"0"," HUF elköltve"]})]})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-4 h-4 bg-red-500 rounded mr-3"}),i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"YouTube"})]}),i.jsxs("div",{className:"text-right",children:[i.jsxs("div",{className:"text-sm font-semibold text-gray-900",children:[(n==null?void 0:n.platformBreakdown.youtube.campaigns)||0," kampány"]}),i.jsxs("div",{className:"text-xs text-gray-500",children:[(n==null?void 0:n.platformBreakdown.youtube.spend.toLocaleString("hu-HU"))||"0"," HUF elköltve"]})]})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-4 h-4 bg-blue-600 rounded mr-3"}),i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Facebook"})]}),i.jsxs("div",{className:"text-right",children:[i.jsxs("div",{className:"text-sm font-semibold text-gray-900",children:[(n==null?void 0:n.platformBreakdown.facebook.campaigns)||0," kampány"]}),i.jsxs("div",{className:"text-xs text-gray-500",children:[(n==null?void 0:n.platformBreakdown.facebook.spend.toLocaleString("hu-HU"))||"0"," HUF elköltve"]})]})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-4 h-4 bg-gradient-to-r from-purple-500 to-pink-500 rounded mr-3"}),i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Instagram"})]}),i.jsxs("div",{className:"text-right",children:[i.jsxs("div",{className:"text-sm font-semibold text-gray-900",children:[(n==null?void 0:n.platformBreakdown.instagram.campaigns)||0," kampány"]}),i.jsxs("div",{className:"text-xs text-gray-500",children:[(n==null?void 0:n.platformBreakdown.instagram.spend.toLocaleString("hu-HU"))||"0"," HUF elköltve"]})]})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-4 h-4 bg-black rounded mr-3"}),i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"X (Twitter)"})]}),i.jsxs("div",{className:"text-right",children:[i.jsxs("div",{className:"text-sm font-semibold text-gray-900",children:[(n==null?void 0:n.platformBreakdown.twitter.campaigns)||0," kampány"]}),i.jsxs("div",{className:"text-xs text-gray-500",children:[(n==null?void 0:n.platformBreakdown.twitter.spend.toLocaleString("hu-HU"))||"0"," HUF elköltve"]})]})]})]})]}),i.jsxs("div",{className:"bg-white shadow rounded-lg p-6",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Gyors műveletek"}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("button",{onClick:()=>e==null?void 0:e("create"),className:"w-full bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700 transition-colors",children:"Új kampány létrehozása"}),i.jsx("button",{onClick:()=>e==null?void 0:e("settings"),className:"w-full bg-gray-100 text-gray-700 px-4 py-2 rounded-md hover:bg-gray-200 transition-colors",children:"Közösségi fiókok csatlakoztatása"}),i.jsx("button",{onClick:()=>alert("Részletes elemzések hamarosan elérhetők!"),className:"w-full bg-gray-100 text-gray-700 px-4 py-2 rounded-md hover:bg-gray-200 transition-colors",children:"Részletes elemzések megtekintése"}),v]})]})]}),i.jsxs("div",{className:"bg-white shadow rounded-lg",children:[i.jsx("div",{className:"px-6 py-4 border-b border-gray-200",children:i.jsxs("h3",{className:"text-lg font-medium text-gray-900",children:["Kampányok (",s.length,")"]})}),i.jsxs("div",{className:"overflow-x-auto",children:[i.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[i.jsx("thead",{className:"bg-gray-50",children:i.jsxs("tr",{children:[i.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Kampány"}),i.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Állapot"}),i.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Kiadás"}),i.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Megjelenések"}),i.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"CTR"}),i.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Műveletek"})]})}),i.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:s.map(d=>i.jsxs("tr",{children:[i.jsxs("td",{className:"px-6 py-4 whitespace-nowrap",children:[i.jsx("div",{className:"text-sm font-medium text-gray-900",children:d.name}),i.jsxs("div",{className:"text-sm text-gray-500",children:[new Date(d.createdAt).toLocaleDateString("hu-HU")," • ",d.platforms.join(", ")
45]})]}),i.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:i.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${d.status==="active"?"bg-green-100 text-green-800":d.status==="paused"?"bg-yellow-100 text-yellow-800":"bg-gray-100 text-gray-800"}`,children:d.status==="active"?"aktív":d.status==="paused"?"szüneteltetve":d.status==="draft"?"vázlat":"befejezett"})}),i.jsxs("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:[d.performance.spend.toLocaleString("hu-HU")," HUF"]}),i.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:d.performance.impressions.toLocaleString()}),i.jsxs("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:[(d.performance.ctr*100).toFixed(2),"%"]}),i.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:i.jsxs("div",{className:"flex space-x-2",children:[i.jsx("button",{onClick:()=>x(d),className:"text-indigo-600 hover:text-indigo-900",title:"Kampány szerkesztése",children:i.jsx(uh,{className:"h-4 w-4"})}),d.status==="draft"?i.jsx("button",{onClick:()=>y(d),disabled:m===d._id,className:"text-green-600 hover:text-green-900 disabled:opacity-50 disabled:cursor-not-allowed",title:"Kampány indítása",children:m===d._id?i.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-green-600 border-t-transparent"}):i.jsx(ic,{className:"h-4 w-4"})}):d.status==="active"||d.status==="paused"?i.jsx("button",{onClick:()=>k(d),disabled:m===d._id,className:`${d.status==="active"?"text-yellow-600 hover:text-yellow-900":"text-green-600 hover:text-green-900"} disabled:opacity-50`,title:d.status==="active"?"Kampány szüneteltetése":"Kampány folytatása",children:m===d._id?i.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-current border-t-transparent"}):d.status==="active"?i.jsx(ch,{className:"h-4 w-4"}):i.jsx(ic,{className:"h-4 w-4"})}):null,i.jsx("button",{onClick:()=>p(d._id,d.name),disabled:c===d._id,className:"text-red-600 hover:text-red-900 disabled:opacity-50 disabled:cursor-not-allowed",title:"Kampány törlése",children:c===d._id?i.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-red-600 border-t-transparent"}):i.jsx(fh,{className:"h-4 w-4"})})]})})]},d._id))})]}),s.length===0&&i.jsxs("div",{className:"text-center py-8",children:[i.jsx("p",{className:"text-gray-500",children:"Még nincsenek kampányok."}),i.jsx("button",{onClick:()=>e==null?void 0:e("create"),className:"mt-2 text-indigo-600 hover:text-indigo-500 text-sm font-medium",children:"Hozzon létre egyet most"})]})]})]})]})},Z0="modulepreload",eg=function(e){return"/"+e},Sc={},tg=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=eg(l),l in Sc)return;Sc[l]=!0;const o=l.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let m=s.length-1;m>=0;m--){const g=s[m];if(g.href===l&&(!o||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Z0,o||(u.as="script",u.crossOrigin=""),u.href=l,document.head.appendChild(u),o)return new Promise((m,g)=>{u.addEventListener("load",m),u.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=l,window.dispatchEvent(o),!o.defaultPrevented)throw l})};function yf(e,t=30,n="modern"){let s=1;t>30&&(s=1+(t-30)/30*.5);const o={basic:1,modern:1.2,premium:1.5,dynamic:1.3,elegant:1.4}[n]||1.2,c=3e3*s*o*e;return{baseCost:3e3,totalCost:Math.round(c),platformCount:e,durationMultiplier:s}}async function ng(e,t,n){console.log("🎬 Starting video generation for platforms:",e);const r=[];try{for(const s of e){console.log(`🎥 Generating video for ${s}...`),n&&n(s,0);const l=await rg(s,t,n);r.push(l),console.log(`✅ Video generated for ${s}:`,l.id)}return r}catch(s){throw console.error("❌ Video generation failed:",s),new Error(`Video generation failed: ${s.message}`)}}async function rg(e,t,n){const r=`video_${e}_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,s=[10,25,40,60,80,95,100];for(const a of s)n&&n(e,a),await new Promise(c=>setTimeout(c,500+Math.random()*1e3));const{totalCost:l}=yf(1,t.duration,t.style),o={id:r,platform:e,title:`${t.businessName} - ${e.charAt(0).toUpperCase()+e.slice(1)} Ad`,description:t.description||`Professional ${e} advertisement for ${t.businessName}`,thumbnail:`https://picsum.photos/400/300?random=${r}`,videoUrl:`https://sample-videos.com/zip/10/mp4/SampleVideo_${t.duration}sec.mp4`,duration:`${t.duration}s`,style:t.style,audioType:t.audioType,status:"completed",provider:"Creatify.ai",cost:l,createdAt:new Date().toISOString()};return console.log(`🎬 Generated video for ${e}:`,{id:o.id,title:o.title,duration:o.duration,cost:o.cost}),o}const sg=({onCampaignCreated:e,editingCampaign:t})=>{var lt;const[n,r]=O.useState(1),[s,l]=O.useState(!1),[o,a]=O.useState(""),[c,u]=O.useState(""),[m,g]=O.useState(""),[p,k]=O.useState({}),[x,y]=O.useState([]),[v,f]=O.useState({total:1e5,daily:5e3,allocation:{tiktok:25,youtube:25,facebook:25,instagram:25,twitter:0}}),[d,h]=O.useState([]),[j,S]=O.useState({}),[E,T]=O.useState([]),[_,V]=O.useState({}),[F,me]=O.useState(!1);O.useEffect(()=>{t&&(g(t.sourceUrl||""),k(t.userPrompt||{}),y(t.platforms),f(t.budget),r(1))},[t]);
45const se=[{id:"tiktok",name:"TikTok",icon:"🎵",color:"bg-pink-500"},{id:"youtube",name:"YouTube",icon:"📺",color:"bg-red-500"},{id:"facebook",name:"Facebook",icon:"👥",color:"bg-blue-600"},{id:"instagram",name:"Instagram",icon:"📸",color:"bg-gradient-to-r from-purple-500 to-pink-500"},{id:"twitter",name:"X (Twitter)",icon:"🐦",color:"bg-black"}],ze=[{code:"HU",name:"Magyarország",flag:"🇭🇺"},{code:"AT",name:"Ausztria",flag:"🇦🇹"},{code:"SK",name:"Szlovákia",flag:"🇸🇰"},{code:"RO",name:"Románia",flag:"🇷🇴"},{code:"HR",name:"Horvátország",flag:"🇭🇷"},{code:"SI",name:"Szlovénia",flag:"🇸🇮"},{code:"CZ",name:"Csehország",flag:"🇨🇿"},{code:"DE",name:"Németország",flag:"🇩🇪"},{code:"US",name:"Egyesült Államok",flag:"🇺🇸"},{code:"GB",name:"Egyesült Királyság",flag:"🇬🇧"},{code:"FR",name:"Franciaország",flag:"🇫🇷"},{code:"IT",name:"Olaszország",flag:"🇮🇹"}],M=z=>{y(N=>{const P=N.includes(z)?N.filter(q=>q!==z):[...N,z];if(P.length>0){const q=Math.floor(100/P.length),ft=100-q*P.length,ln={tiktok:0,youtube:0,facebook:0,instagram:0,twitter:0};P.forEach((hl,xf)=>{ln[hl]=q+(xf===0?ft:0)}),f(hl=>({...hl,allocation:ln}))}return P})},H=(z,N)=>{f(P=>({...P,allocation:{...P.allocation,[z]:N}}))},le=async()=>{if(!m){a("Kérjük, adja meg a weboldal URL-jét");return}if(x.length===0){a("Kérjük, válasszon legalább egy platformot");return}l(!0),a("");try{console.log("🎨 AI variációk generálása:",{sourceUrl:m,platforms:x});const z=await pf(m,x);h(z);const N={};z.forEach(P=>{N[P.platform]||(N[P.platform]=P)}),S(N),u(`${z.length} AI hirdetés variáció sikeresen generálva!`),setTimeout(()=>u(""),3e3)}catch(z){console.error("AI variáció generálási hiba:",z),a(`AI variáció generálás sikertelen: ${z.message}`)}finally{l(!1)}},I=async()=>{if(!m){a("Forrás URL szükséges a videó generáláshoz");return}if(x.length===0){a("Kérjük, válasszon legalább egy platformot");return}me(!0),a(""),V({});try{console.log("🎬 Videók generálása kezdése...");const z={sourceUrl:m,businessName:p.product||"Az Ön vállalkozása",businessType:"general",style:p.style||"professional",audioType:"ai-voice",title:`${p.product||"Vállalkozás"} - Hirdetés`,description:`Professzionális hirdetés a ${p.product||"vállalkozás"} számára`,duration:30,hashtags:[],targetAudience:p.audience?[p.audience]:["General Audience"],sourceUrl:m,businessName:p.product||"Az Ön vállalkozása",businessType:"general",style:p.videoStyle||p.style||"modern",audioType:p.voiceType||"ai-voice",title:`${p.product||"Vállalkozás"} - ${p.videoStyle||"Modern"} Hirdetés`,description:p.videoScript||`Professzionális ${p.videoStyle||"modern"} hirdetés a ${p.product||"vállalkozás"} számára`,duration:p.videoDuration||30,hashtags:[],targetAudience:p.audience?[p.audience]:["General Audience"],videoPrompt:p.videoPrompt||`Készíts egy ${p.videoStyle||"modern"} stílusú hirdetést a ${p.product||"termék"} számára`,videoScript:p.videoScript||"",language:p.videoLanguage||"hu",callToAction:p.callToAction||"Tudj meg többet!",backgroundMusic:p.backgroundMusic||!1};console.log("📋 Base request:",z);const N=await ng(x,z,(P,q)=>{V(ft=>({...ft,[P]:q}))});T(N),u(`${N.length} videó sikeresen generálva!`)}catch(z){console.error("❌ Videó generálási hiba:",z),a(`Videó generálás sikertelen: ${z.message}`)}finally{me(!1)}},b=async()=>{if(!m){a("Forrás URL szükséges");return}if(x.length===0){a("Kérjük, válasszon legalább egy platformot");return}l(!0),a("");try{const{campaignAPI:z}=await tg(()=>Promise.resolve().then(()=>G0),void 0),N={name:`${p.product||"Kampány"} - ${new Date().toLocaleDateString("hu-HU")}`,sourceUrl:m,platforms:x,budget:v,userPrompt:p,adVariations:Object.values(j)};console.log("📤 Kampány létrehozása:",N);const P=await z.createCampaign(N);u("Kampány sikeresen létrehozva!"),setTimeout(()=>{e(P)},1e3)}catch(z){console.error("Kampány létrehozási hiba:",z),a(`Kampány létrehozás sikertelen: ${z.message}`)}finally{l(!1)}},qe=[{id:1,name:"Alapadatok",component:()=>i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Weboldal és termék információk"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Adja meg weboldala URL-jét és termék részleteit"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Weboldal URL *"}),i.jsxs("div",{className:"relative",children:[i.jsx(nh,{className:"absolute left-3 top-3 h-5 w-5 text-gray-400"}),i.jsx("input",{type:"url",value:m,onChange:z=>g(z.target.value),className:"w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"https://example.com",required:!0})]})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Termék/szolgáltatás neve"}),i.jsx("input",{type:"text",value:p.product||"",onChange:z=>k(N=>({...N,product:z.target.value})),className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"pl. Kézműves kávé, Webfejlesztés, stb."})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Hirdetés stílusa"}),i.jsxs("select",{value:p.style||"",onChange:z=>k(N=>({...N,style:z.target.value})),className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",children:[i.jsx("option",{value:"",children:"Válasszon stílust"}),i.jsx("option",{value:"professional",children:"Professzionális"}),i.jsx("option",{value:"casual",children:"Laza, barátságos"}),i.jsx("option",{value:"energetic",children:"Energikus, dinamikus"}),i.jsx("option",{value:"elegant",children:"Elegáns, prémium"}),i.jsx("option",{value:"fun",children:"Szórakoztató, vicces"})]})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Célközönség"}),i.jsx("input",{type:"text",value:p.audience||"",onChange:z=>k(N=>({...N,audience:z.target.value})),className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"pl. 25-45 éves nők, 
45kisvállalkozók, fiatalok, stb."})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Különleges ajánlat vagy üzenet"}),i.jsx("textarea",{value:p.special||"",onChange:z=>k(N=>({...N,special:z.target.value})),rows:3,className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"pl. 20% kedvezmény, ingyenes szállítás, korlátozott idejű ajánlat, stb."})]})]})},{id:2,name:"Platformok",component:()=>i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Platformok és célterületek"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Válassza ki a hirdetési platformokat és célterületeket"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-4",children:"Hirdetési platformok *"}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:se.map(z=>i.jsx("button",{onClick:()=>M(z.id),className:`p-4 rounded-lg border-2 transition-all ${x.includes(z.id)?"border-indigo-500 bg-indigo-50":"border-gray-200 hover:border-gray-300"}`,children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-2xl mb-2",children:z.icon}),i.jsx("div",{className:"font-medium text-gray-900",children:z.name})]})},z.id))})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-4",children:"Célterületek"}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:ze.map(z=>i.jsx("button",{onClick:()=>{const N=p.territories||[],P=N.includes(z.code)?N.filter(q=>q!==z.code):[...N,z.code];k(q=>({...q,territories:P}))},className:`p-3 rounded-lg border text-sm transition-all ${(p.territories||[]).includes(z.code)?"border-indigo-500 bg-indigo-50 text-indigo-700":"border-gray-200 hover:border-gray-300"}`,children:i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{children:z.flag}),i.jsx("span",{className:"font-medium",children:z.name})]})},z.code))})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Specifikus helyek (opcionális)"}),i.jsx("input",{type:"text",value:p.specificLocations||"",onChange:z=>k(N=>({...N,specificLocations:z.target.value})),className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"pl. Budapest, Debrecen, Szeged"})]})]})},{id:3,name:"Költségvetés",component:()=>i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Költségvetés beállítások"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Állítsa be hirdetési költségvetését és platform elosztását"})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Összes költségvetés (HUF)"}),i.jsxs("div",{className:"relative",children:[i.jsx(eh,{className:"absolute left-3 top-3 h-5 w-5 text-gray-400"}),i.jsx("input",{type:"number",value:v.total,onChange:z=>f(N=>({...N,total:Number(z.target.value)})),className:"w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",min:"10000",step:"10000"})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Napi költségvetés (HUF)"}),i.jsxs("div",{className:"relative",children:[i.jsx(Yp,{className:"absolute left-3 top-3 h-5 w-5 text-gray-400"}),i.jsx("input",{type:"number",value:v.daily,onChange:z=>f(N=>({...N,daily:Number(z.target.value)})),className:"w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",min:"1000",step:"500"})]})]})]}),x.length>0&&i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-4",children:"Platform költségvetés elosztás"}),i.jsx("div",{className:"space-y-4",children:x.map(z=>{const N=se.find(P=>P.id===z);return i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsxs("div",{className:"flex items-center space-x-2 w-32",children:[i.jsx("span",{className:"text-lg",children:N==null?void 0:N.icon}),i.jsx("span",{className:"font-medium",children:N==null?void 0:N.name})]}),i.jsx("div",{className:"flex-1",children:i.jsx("input",{type:"range",min:"0",max:"100",value:v.allocation[z]||0,onChange:P=>H(z,Number(P.target.value)),className:"w-full"})}),i.jsx("div",{className:"w-16 text-right",children:i.jsxs("span",{className:"font-medium",children:[v.allocation[z]||0,"%"]})}),i.jsxs("div",{className:"w-24 text-right text-sm text-gray-600",children:[Math.round(v.total*(v.allocation[z]||0)/100).toLocaleStr
45ing()," HUF"]})]},z)})}),i.jsx("div",{className:"mt-4 p-4 bg-gray-50 rounded-lg",children:i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{children:"Összes elosztás:"}),i.jsxs("span",{className:`font-medium ${Object.values(v.allocation).reduce((z,N)=>z+N,0)===100?"text-green-600":"text-red-600"}`,children:[Object.values(v.allocation).reduce((z,N)=>z+N,0),"%"]})]})})]})]})},{id:4,name:"AI Variációk",component:()=>i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"AI hirdetés variációk"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Generáljon és válasszon hirdetés variációkat"})]}),i.jsxs("button",{onClick:le,disabled:s||!m||x.length===0,className:"bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center space-x-2",children:[s?i.jsx(ms,{className:"h-4 w-4 animate-spin"}):i.jsx(mh,{className:"h-4 w-4"}),i.jsx("span",{children:s?"Generálás...":"AI Variációk Generálása"})]})]}),d.length>0&&i.jsx("div",{className:"space-y-4",children:x.map(z=>{const N=d.filter(q=>q.platform===z),P=se.find(q=>q.id===z);return N.length===0?null:i.jsxs("div",{className:"border border-gray-200 rounded-lg p-4",children:[i.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[i.jsx("span",{className:"text-lg",children:P==null?void 0:P.icon}),i.jsx("h4",{className:"font-medium text-gray-900",children:P==null?void 0:P.name})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:N.map((q,ft)=>i.jsx("div",{onClick:()=>S(ln=>({...ln,[z]:q})),className:`p-4 border-2 rounded-lg cursor-pointer transition-all ${j[z]===q?"border-indigo-500 bg-indigo-50":"border-gray-200 hover:border-gray-300"}`,children:i.jsxs("div",{className:"flex items-start space-x-3",children:[i.jsx("img",{src:q.imageUrl,alt:q.title,className:"w-16 h-16 object-cover rounded-lg"}),i.jsxs("div",{className:"flex-1",children:[i.jsx("h5",{className:"font-medium text-gray-900 mb-1",children:q.title}),i.jsx("p",{className:"text-sm text-gray-600 mb-2 line-clamp-2",children:q.description}),i.jsx("span",{className:"inline-block bg-gray-100 text-gray-700 text-xs px-2 py-1 rounded",children:q.callToAction})]})]})},ft))})]},z)})})]})},{id:5,name:"Videók",component:()=>{const{totalCost:z}=yf(x.length);return i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"flex items-center justify-between",children:i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Videó generálás"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Generáljon professzionális videókat a kiválasztott platformokhoz"})]})}),i.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6",children:[i.jsx("h4",{className:"text-lg font-medium text-blue-900 mb-4",children:"🎬 Creatify.ai API Kiválasztása *"}),i.jsx("p",{className:"text-sm text-blue-700 mb-4",children:"Válassza ki a videó generálási módszert:"}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-4",children:[i.jsxs("button",{type:"button",onClick:()=>k(N=>({...N,selectedCreatifyAPI:"link-to-video"})),className:`p-4 border-2 rounded-lg text-left transition-all ${p.selectedCreatifyAPI==="link-to-video"?"border-blue-500 bg-blue-100":"border-gray-200 hover:border-gray-300"}`,children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("span",{className:"text-lg",children:"🔗"}),i.jsx("span",{className:"bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full",children:"Ajánlott"})]}),i.jsx("h5",{className:"font-medium text-gray-900 mb-1",children:"Link to Video API"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Weboldal linkből videó generálás"})]}),i.jsxs("button",{type:"button",onClick:()=>k(N=>({...N,selectedCreatifyAPI:"product-to-video"})),className:`p-4 border-2 rounded-lg text-left transition-all ${p.selectedCreatifyAPI==="product-to-video"?"border-blue-500 bg-blue-100":"border-gray-200 hover:border-gray-300"}`,children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("span",{className:"text-lg",children:"📦"}),i.jsx("span",{className:"bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full",children:"Ajánlott"})]}),i.jsx("h5",{className:"font-medium text-gray-900 mb-1",children:"Product to Video API"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Termék információból videó készítés"})]}),i.jsxs("button",{type:"button",onClick:()=>k(N=>({...N,selectedCreatifyAPI:"ai-shorts"})),className:`p-4 border-2 rounded-lg text-left transition-all ${p.selectedCreatifyAPI==="ai-shorts"?"border-blue-500 bg-blue-100":"border-gray-200 hover:border-gray-300"}`,children:[i.jsx("div",{className:"flex items-center justify-between mb-2",children:i.jsx("span",{className:"text-lg",children:"🎬"})}),i.jsx("h5",{className:"font-medium text-gray-900 mb-1",children:"AI Shorts API"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Rövid videók készítése AI-val"})]})]}),p.selectedCreatifyAPI&&i.jsx("div",{className:"bg-green-50 border border-green-200 rounded-lg p-3",children:i.jsxs("p",{className:"text-sm text-green-700",children:["✅ Kiválasztva: ",p.selectedCreatifyAPI==="link-to-video"?"Link to Video API":p.selectedCreatifyAPI==="product-to-video"?"Product to Video API":"AI Shorts API"]})})]}),i.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg space-y-6",children:[i.jsx("h4",{className:"text-lg font-medium text-gray-900",children:"Kötelező információk"}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Vállalkozás neve *"}),i.jsx("input",{type:"text",value:p.businessName||"",onChange:N=>k(P=>({...P,businessName:N.target.value})),className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"pl. Kávézó Budapest, Webfejlesztő Stúdió",required:!0})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Vállalkozás típusa"}),i.jsxs("select",{value:p.businessType||"general",onChange:N=>k(P=>({...P,businessType:N.target.value})),className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",children:[i.jsx("option",{value:"ecommerce",children:"E-kereskedelem"}),i.jsx("option",{value:"services",children:"Szolgáltatások"}),i.jsx("option",{value:"restaurant",children:"Étterem/Vendéglátás"}),i.jsx("option",{value:"education",children:"Oktatás"}),i.jsx("option",{value:"healthcare",children:"Egészségügy"}),i.jsx("option",{value:"general",children:"Általános"})]})]}),i.jsxs("div",{className:"md:col-span-2",children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Célközönség *"}),i.jsx("input",{type:"text",value:p.targetAudience||"",onChange:N=>k(P=>({...P,targetAudience:N.target.value})),className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"pl. 25-45 éves nők, 
45kisvállalkozók, fiatalok",required:!0})]})]})]}),i.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg space-y-6",children:[i.jsx("h4",{className:"text-lg font-medium text-gray-900",children:"Videó beállítások"}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs("div",{className:"md:col-span-2",children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Videó Prompt/Téma"}),i.jsx("textarea",{value:p.videoPrompt||"",onChange:N=>k(P=>({...P,videoPrompt:N.target.value})),rows:3,className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"bemutatóbemutató"})]}),i.jsxs("div",{className:"md:col-span-2",children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Videó Script/Szöveg (opcionális)"}),i.jsx("textarea",{value:p.videoScript||"",onChange:N=>k(P=>({...P,videoScript:N.target.value})),rows:4,className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"A videóban elhangzó szöveg (ha üresen hagyja, az AI automatikusan generál szöveget)"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Hang típusa"}),i.jsxs("select",{value:p.voiceType||"professional",onChange:N=>k(P=>({...P,voiceType:N.target.value})),className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",children:[i.jsx("option",{value:"professional",children:"Professzionális"}),i.jsx("option",{value:"male",children:"Férfi hang"}),i.jsx("option",{value:"female",children:"Női hang"}),i.jsx("option",{value:"young",children:"Fiatal hang"})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Videó stílus"}),i.jsxs("select",{value:p.videoStyle||"modern",onChange:N=>k(P=>({...P,videoStyle:N.target.value})),className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",children:[i.jsx("option",{value:"modern",children:"Modern és tiszta"}),i.jsx("option",{value:"dynamic",children:"Dinamikus és energikus"}),i.jsx("option",{value:"elegant",children:"Elegáns és prémium"}),i.jsx("option",{value:"playful",children:"Játékos és színes"}),i.jsx("option",{value:"minimal",children:"Minimalista"}),i.jsx("option",{value:"corporate",children:"Vállalati/professzionális"}),i.jsx("option",{value:"trendy",children:"Trendi és fiatalos"})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Videó hossza *"}),i.jsxs("select",{value:p.videoDuration||30,onChange:N=>k(P=>({...P,videoDuration:Number(N.target.value)})),className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",required:!0,children:[i.jsx("option",{value:15,children:"15 másodperc"}),i.jsx("option",{value:30,children:"30 másodperc"}),i.jsx("option",{value:60,children:"60 másodperc"})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Videó nyelve"}),i.jsxs("select",{value:p.videoLanguage||"hu",onChange:N=>k(P=>({...P,videoLanguage:N.target.value})),className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",children:[i.jsx("option",{value:"hu",children:"Magyar"}),i.jsx("option",{value:"en",children:"Angol"}),i.jsx("option",{value:"de",children:"Német"}),i.jsx("option",{value:"fr",children:"Francia"}),i.jsx("option",{value:"es",children:"Spanyol"})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Videó címe (opcionális)"}),i.jsx("input",{type:"text",value:p.videoTitle||"",onChange:N=>k(P=>({...P,videoTitle:N.target.value})),className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"locok"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Videó leírása (opcionális)"}),i.jsx("textarea",{value:p.videoDescription||"",onChange:N=>k(P=>({...P,videoDescription:N.target.value})),rows:3,className:"w-full px-3 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",placeholder:"Ha üresen hagyja, automatikusan generálódik"})]})]})]}),i.jsx("div",{className:"flex justify-center",children:i.jsxs("button",{onClick:I,disabled:F||x.length===0||!p.selectedCreatifyAPI||!p.businessName||!p.targetAudience,className:"bg-purple-600 text-white px-6 py-3 rounded-lg hover:bg-purple-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center space-x-2",children:[F?i.jsx(ms,{className:"h-4 w-4 animate-spin"}):i.jsx(ac,{className:"h-4 w-4"}),i.jsx("span",{children:F?"Generálás...":"Videók Generálása"})]})}),(!p.selectedCreatifyAPI||!p.businessName||!p.targetAudience)&&i.jsx("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(Cr,{className:"h-5 w-5 text-yellow-600"}),i.jsx("p",{className:"text-sm text-yellow-700",children:"Kérjük, töltse ki a kötelező mezőket: Creatify API, Vállalkozás neve, Célközönség."})]})}),i.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[i.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[i.jsx(Ud,{className:"h-5 w-5 text-blue-600"}),i.jsx("h4",{className:"font-medium text-blue-900",children:"Videó generálás költsége"})]}),i.jsxs("p",{className:"text-sm text-blue-700 mb-2",children:[x.length," platform × 3,000 HUF = ",i.jsxs("strong",{children:[z.toLocaleStr
45ing()," HUF"]}),p.videoDuration&&p.videoDuration>30&&i.jsxs("span",{className:"block text-xs mt-1",children:["+",Math.round((p.videoDuration-30)/30)*1e3," HUF hosszabb videóért"]})]}),i.jsx("p",{className:"text-xs text-blue-600",children:p.selectedCreatifyAPI?`${p.selectedCreatifyAPI==="link-to-video"?"Link to Video API":p.selectedCreatifyAPI==="product-to-video"?"Product to Video API":"AI Shorts API"} használatával professzionális minőségű videók készülnek automatikusan.`:"Creatify.ai használatával professzionális minőségű videók készülnek automatikusan."})]}),F&&i.jsxs("div",{className:"space-y-4",children:[i.jsx("h4",{className:"font-medium text-gray-900",children:"Generálás folyamata:"}),x.map(N=>{const P=se.find(ln=>ln.id===N),q=_[N]||0,ft=q===-1;return i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsxs("div",{className:"flex items-center space-x-2 w-32",children:[i.jsx("span",{className:"text-lg",children:P==null?void 0:P.icon}),i.jsx("span",{className:"font-medium",children:P==null?void 0:P.name})]}),i.jsx("div",{className:"flex-1",children:i.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:i.jsx("div",{className:`h-2 rounded-full transition-all duration-300 ${ft?"bg-red-500":q===100?"bg-green-500":"bg-blue-500"}`,style:{width:`${ft?100:q}%`}})})}),i.jsx("div",{className:"w-16 text-right",children:ft?i.jsx("span",{className:"text-red-600 text-sm",children:"Hiba"}):q===100?i.jsx(Ue,{className:"h-5 w-5 text-green-500"}):i.jsxs("span",{className:"text-sm",children:[q,"%"]})})]},N)})]}),E.length>0&&i.jsxs("div",{className:"space-y-4",children:[i.jsx("h4",{className:"font-medium text-gray-900",children:"Generált videók:"}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:E.map(N=>{const P=se.find(q=>q.id===N.platform);return i.jsxs("div",{className:"border border-gray-200 rounded-lg p-4",children:[i.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[i.jsx("span",{className:"text-lg",children:P==null?void 0:P.icon}),i.jsx("h5",{className:"font-medium text-gray-900",children:P==null?void 0:P.name}),i.jsx("span",{className:`px-2 py-1 text-xs rounded-full ${N.status==="completed"?"bg-green-100 text-green-800":N.status==="generating"?"bg-blue-100 text-blue-800":"bg-red-100 text-red-800"}`,children:N.status==="completed"?"Kész":N.status==="generating"?"Generálás":"Hiba"})]}),i.jsx("div",{className:"aspect-video bg-gray-100 rounded-lg mb-3 flex items-center justify-center",children:N.status==="completed"&&N.videoUrl?i.jsx("video",{src:N.videoUrl,poster:N.thumbnail,controls:!0,className:"w-full h-full object-cover rounded-lg"}):i.jsxs("div",{className:"text-center",children:[i.jsx(ac,{className:"h-12 w-12 text-gray-400 mx-auto mb-2"}),i.jsx("p",{className:"text-sm text-gray-500",children:N.status==="generating"?"Generálás folyamatban...":N.status==="failed"?"Generálás sikertelen":"Videó előnézet"})]})}),i.jsx("h6",{className:"font-medium text-gray-900 mb-1",children:N.title}),i.jsx("p",{className:"text-sm text-gray-600 mb-2 line-clamp-2",children:N.description}),i.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[i.jsx("span",{children:N.duration}),i.jsx("span",{children:N.provider}),i.jsxs("span",{children:[N.cost.toLocaleString()," HUF"]})]})]},N.id)})})]})]})}},{id:6,name:"Áttekintés",component:()=>i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Kampány áttekintés"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Ellenőrizze a kampány beállításokat a létrehozás előtt"})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[i.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Alapinformációk"}),i.jsxs("div",{className:"space-y-2 text-sm",children:[i.jsxs("div",{children:[i.jsx("strong",{children:"Weboldal:"})," ",m]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Termék:"})," ",p.product||"Nincs megadva"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Stílus:"})," ",p.style||"Nincs megadva"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Célközönség:"})," ",p.audience||"Nincs megadva"]})]})]}),i.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[i.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Platformok"}),i.jsx("div",{className:"flex flex-wrap gap-2",children:x.map(z=>{const N=se.find(P=>P.id===z);return i.jsxs("span",{className:"inline-flex items-center space-x-1 bg-white px-2 py-1 rounded text-sm",children:[i.jsx("span",{children:N==null?void 0:N.icon}),i.jsx("span",{children:N==null?void 0:N.name})]},z)})})]})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[i.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Költségvetés"}),i.jsxs("div",{className:"space-y-2 text-sm",children:[i.jsxs("div",{children:[i.jsx("strong",{children:"Összes:"}
45)," ",v.total.toLocaleString()," HUF"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Napi:"})," ",v.daily.toLocaleString()," HUF"]})]})]}),i.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[i.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Célterületek"}),i.jsx("div",{className:"flex flex-wrap gap-1",children:(p.territories||["HU"]).map(z=>{const N=ze.find(P=>P.code===z);return i.jsxs("span",{className:"inline-flex items-center space-x-1 bg-white px-2 py-1 rounded text-xs",children:[i.jsx("span",{children:N==null?void 0:N.flag}),i.jsx("span",{children:N==null?void 0:N.name})]},z)})})]})]})]}),i.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-lg p-4",children:[i.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[i.jsx(Ue,{className:"h-5 w-5 text-green-600"}),i.jsx("h4",{className:"font-medium text-green-900",children:"Kampány kész a létrehozásra"})]}),i.jsx("p",{className:"text-sm text-green-700",children:'Minden beállítás elkészült. Kattintson a "Kampány létrehozása" gombra a folytatáshoz.'})]})]})}],Ae=()=>{switch(n){case 1:return m.trim()!=="";case 2:return x.length>0;case 3:return v.total>0&&v.daily>0;case 4:return!0;case 5:return!0;case 6:return!0;default:return!1}};return i.jsxs("div",{className:"space-y-8",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:t?"Kampány szerkesztése":"Új kampány létrehozása"}),i.jsx("p",{className:"mt-2 text-sm text-gray-600",children:"Hozzon létre automatizált hirdetési kampányt AI segítségével"})]}),i.jsx("div",{className:"flex items-center justify-between",children:qe.map((z,N)=>i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:`flex items-center justify-center w-8 h-8 rounded-full text-sm font-medium ${n===z.id?"bg-indigo-600 text-white":n>z.id?"bg-green-500 text-white":"bg-gray-200 text-gray-600"}`,children:n>z.id?i.jsx(Ue,{className:"h-5 w-5"}):z.id}),i.jsx("span",{className:`ml-2 text-sm font-medium ${n>=z.id?"text-gray-900":"text-gray-500"}`,children:z.name}),N<qe.length-1&&i.jsx(lc,{className:"h-5 w-5 text-gray-400 mx-4"})]},z.id))}),o&&i.jsxs("div",{className:"flex items-center space-x-2 p-3 bg-red-50 border border-red-200 rounded-lg text-red-600",children:[i.jsx(Cr,{className:"h-5 w-5"}),i.jsx("span",{className:"text-sm",children:o})]}),c&&i.jsxs("div",{className:"flex items-center space-x-2 p-3 bg-green-50 border border-green-200 rounded-lg text-green-600",children:[i.jsx(Ue,{className:"h-5 w-5"}),i.jsx("span",{className:"text-sm",children:c})]}),i.jsx("div",{className:"bg-white shadow rounded-lg p-6",children:(lt=qe.find(z=>z.id===n))==null?void 0:lt.component()}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("button",{onClick:()=>r(z=>Math.max(1,z-1)),disabled:n===1,className:"flex items-center space-x-2 px-4 py-2 text-gray-600 hover:text-gray-900 disabled:opacity-50 disabled:cursor-not-allowed",children:[i.jsx(Zp,{className:"h-4 w-4"}),i.jsx("span",{children:"Előző"})]}),i.jsx("div",{className:"flex items-center space-x-4",children:n<qe.length?i.jsxs("button",{onClick:()=>r(z=>z+1),disabled:!Ae(),className:"flex items-center space-x-2 bg-indigo-600 text-white px-6 py-2 rounded-lg hover:bg-indigo-700 disabled:opacity-50 disabled:cursor-not-allowed",children:[i.jsx("span",{children:"Következő"}),i.jsx(lc,{className:"h-4 w-4"})]}):i.jsxs("button",{onClick:b,disabled:s||!Ae(),className:"flex items-center space-x-2 bg-green-600 text-white px-6 py-2 rounded-lg hover:bg-green-700 disabled:opacity-50 disabled:cursor-not-allowed",children:[s?i.jsx(ms,{className:"h-4 w-4 animate-spin"}):i.jsx(Bo,{className:"h-4 w-4"}),i.jsx("span",{children:s?"Létrehozás...":"Kampány létrehozása"})]})})]})]})},lg=()=>{const{user:e}=ol(),[t,n]=O.useState("profile"),[r,s]=O.useState(null),[l,o]=O.useState(!1),[a,c]=O.useState(""),[u,m]=O.useState(null),[g,p]=O.useState({name:(e==null?void 0:e.name)||"",email:(e==null?void 0:e.email)||"",businessType:(e==null?void 0:e.businessType)||"other"}),[k,x]=O.useState(!1),[y,v]=O.useState(""),f=async()=>{x(!0),v("");try{await new Promise(M=>
45setTimeout(M,1500)),console.log("Saving profile data:",g),v("Profil sikeresen frissítve!"),setTimeout(()=>{v("")},3e3)}catch(M){console.error("Profile save error:",M),v("Hiba történt a profil mentése során. Kérjük, próbálja újra."),setTimeout(()=>{v("")},5e3)}finally{x(!1)}};O.useEffect(()=>{e&&p({name:e.name||"",email:e.email||"",businessType:e.businessType||"other"})},[e]),O.useEffect(()=>{(async()=>{try{const H=await hf.getConnectedAccounts();s(H)}catch(H){console.error("Error fetching connected accounts:",H)}})()},[]);const d=async()=>{m("tiktok"),o(!0),c("");try{const M="your-tiktok-client-id",H=encodeURIComponent(window.location.origin+"/auth/tiktok/callback"),le="user.info.basic,video.list,video.upload",I=Math.random().toString(36).substring(7);localStorage.setItem("tiktok_oauth_state",I);const b=`https://www.tiktok.com/auth/authorize/?client_key=${M}&scope=${le}&response_type=code&redirect_uri=${H}&state=${I}`,R=window.open(b,"tiktok-oauth","width=600,height=700,scrollbars=yes,resizable=yes"),L=setInterval(()=>{R!=null&&R.closed&&(clearInterval(L),o(!1),m(null),localStorage.getItem("tiktok_auth_code")&&(s(D=>({...D,tiktok:{connected:!0,accountId:"tiktok-user-id"}})),c("TikTok fiók sikeresen csatlakoztatva!"),localStorage.removeItem("tiktok_auth_code"),setTimeout(()=>c(""),3e3)))},1e3)}catch{c("TikTok csatlakoztatási hiba. Próbálja újra.")}finally{o(!1),m(null)}},h=async()=>{m("youtube"),o(!0),c("");try{const M="your-youtube-client-id.googleusercontent.com",H=encodeURIComponent(window.location.origin+"/auth/youtube/callback"),le="https://www.googleapis.com/auth/youtube.upload https://www.googleapis.com/auth/youtube.readonly",I=Math.random().toString(36).substring(7);localStorage.setItem("youtube_oauth_state",I);const b=`https://accounts.google.com/oauth2/auth?client_id=${M}&redirect_uri=${H}&scope=${le}&response_type=code&access_type=offline&state=${I}`,R=window.open(b,"youtube-oauth","width=600,height=700,scrollbars=yes,resizable=yes"),L=setInterval(()=>{R!=null&&R.closed&&(clearInterval(L),o(!1),m(null),localStorage.getItem("youtube_auth_code")&&(s(D=>({...D,youtube:{connected:!0,channelId:"youtube-channel-id"}})),c("YouTube fiók sikeresen csatlakoztatva!"),localStorage.removeItem("youtube_auth_code"),setTimeout(()=>c(""),3e3)))},1e3)}catch{c("YouTube csatlakoztatási hiba. Próbálja újra.")}finally{o(!1),m(null)}},j=async()=>{m("facebook"),o(!0),c("");try{const M="your-facebook-app-id",H=encodeURIComponent(window.location.origin+"/auth/facebook/callback"),le="pages_manage_ads,pages_manage_posts,pages_read_engagement,ads_management",I=Math.random().toString(36).substring(7);localStorage.setItem("facebook_oauth_state",I);const b=`https://www.facebook.com/v18.0/dialog/oauth?client_id=${M}&redirect_uri=${H}&scope=${le}&response_type=code&state=${I}`,R=window.open(b,"facebook-oauth","width=600,height=700,scrollbars=yes,resizable=yes"),L=setInterval(()=>{R!=null&&R.closed&&(clearInterval(L),o(!1),m(null),localStorage.getItem("facebook_auth_code")&&(s(D=>({...D,facebook:{connected:!0,pageId:"facebook-page-id"}})),c("Facebook fiók sikeresen csatlakoztatva!"),localStorage.removeItem("facebook_auth_code"),setTimeout(()=>c(""),3e3)))},1e3)}catch{c("Facebook csatlakoztatási hiba. Próbálja újra.")}finally{o(!1),m(null)}},S=async()=>{m("instagram"),o(!0),c("");try{const M="your-instagram-app-id",H=encodeURIComponent(window.location.origin+"/auth/instagram/callback"),le="user_profile,user_media",I=Math.random().toString(36).substring(7);localStorage.setItem("instagram_oauth_state",I);const b=`https://api.instagram.com/oauth/authorize?client_id=${M}&redirect_uri=${H}&scope=${le}&response_type=code&state=${I}`,R=window.open(b,"instagram-oauth","width=600,height=700,scrollbars=yes,resizable=yes"),L=setInterval(()=>{R!=null&&R.closed&&(clearInterval(L),o(!1),m(null),localStorage.getItem("instagram_auth_code")&&(s(D=>({...D,instagram:{connected:!0,accountId:"instagram-user-id"}})),c("Instagram fiók sikeresen csatlakoztatva!"),localStorage.removeItem("instagram_auth_code"),setTimeout(()=>c(""),3e3)))},1e3)}catch{c("Instagram csatlakoztatási hiba. Próbálja újra.")}finally{o(!1),m(null)}},E=async()=>{m("twitter"),o(!0),c("");try{const M="your-twitter-client-id",H=encodeURIComponent(window.location.origin+"/auth/twitter/callback"),le="tweet.read tweet.write users.read offline.access",I=Math.random().toString(36).substring(7),b=Math.random().toString(36).substring(7);localStorage.setItem("twitter_oauth_state",I),localStorage.setItem("twitter_code_challenge",b);const R=`https://twitter.com/i/oauth2/authorize?response_type=code&client_id=${M}&redirect_uri=${H}&scope=${le}&state=${I}&code_challenge=${b}&code_challenge_method=plain`,L=window.open(R,"twitter-oauth","width=600,height=700,scrollbars=yes,resizable=yes"),$=setInterval(()=>{L!=null&&L.closed&&(clearInterval($),o(!1),m(null),localStorage.getItem("twitter_auth_code")&&(s(st=>({...st,twitter:{connected:!0,accountId:"twitter-user-id"}})),c("X (Twitter) fiók sikeresen csatlakoztatva!"),localStorage.removeItem("twitter_auth_code"),setTimeout(()=>c(""),3e3)))},1e3)}catch{c("X (Twitter) csatlakoztatási hiba. Próbálja újra.")}finally{o(!1),m(null)}},T=async M=>{if(confirm(`Biztosan le szeretné választani a ${M} fiókot?`)){o(!0),c("");try{await new Promise(H=>setTimeout(H,1e3)),s(H=>({...H,[M]:{connected:!1}})),c(`${M} account disconnected successfully!`),setTimeout(()=>c(""),3e3)}catch{c(`Failed to disconnect ${M} account. Please try again.`)}finally{o(!1)}}},_=[{id:"profile",name:"Profil",icon:$i},{id:"accounts",name:"Csatlakoztatott fiókok",icon:rh},{id:"billing",name:"Számlázás",icon:Mi},{id:"notifications",name:"Értesítések",icon:Xp},{id:"security",name:"Biztonság",icon:Do}],V=()=>i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Profil információk"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Frissítse fiókja profil információit."})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Teljes név"}),i.jsx("input",{type:"text",value:g.name,onChange:M=>p(H=>({...H,name:M.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"E-mail cím"}),i.jsx("input",{type:"email",value:g.email,onChange:M=>p(H=>({...H,email:M.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Vállalkozás típusa"}
45),i.jsxs("select",{value:g.businessType,onChange:M=>p(H=>({...H,businessType:M.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-transparent",children:[i.jsx("option",{value:"ecommerce",children:"E-kereskedelem"}),i.jsx("option",{value:"services",children:"Szolgáltatások"}),i.jsx("option",{value:"entertainment",children:"Szórakoztatás"}),i.jsx("option",{value:"education",children:"Oktatás"}),i.jsx("option",{value:"other",children:"Egyéb"})]})]})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("button",{onClick:f,disabled:k,className:"flex items-center space-x-2 bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 disabled:opacity-50 disabled:cursor-not-allowed",children:[k?i.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent"}):i.jsx(dh,{className:"h-4 w-4"}),i.jsx("span",{children:k?"Mentés...":"Változások mentése"})]}),y&&i.jsxs("div",{className:`flex items-center space-x-2 p-3 rounded-lg ${y.includes("sikeresen")?"text-green-600 bg-green-50 border border-green-200":"text-red-600 bg-red-50 border border-red-200"}`,children:[y.includes("sikeresen")?i.jsx(Ue,{className:"h-5 w-5"}):i.jsx(Cr,{className:"h-5 w-5"}),i.jsx("span",{className:"text-sm",children:y})]})]})]}),F=()=>{var M,H,le,I,b,R,L,$,D,st,Qe,qe,Ae,lt,z;return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Csatlakoztatott fiókok"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Csatlakoztassa közösségi média fiókjait kampányok létrehozásához és kezeléséhez."})]}),i.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 mb-6",children:i.jsxs("div",{className:"flex items-start space-x-3",children:[i.jsx("div",{className:"w-6 h-6 bg-blue-600 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:i.jsx("span",{className:"text-white text-xs font-bold",children:"i"})}),i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-medium text-blue-900 mb-1",children:"OAuth Hitelesítés"}),i.jsx("p",{className:"text-sm text-blue-700 mb-2",children:"A csatlakoztatás során egy új ablak nyílik meg, ahol engedélyezheti a hozzáférést a közösségi média fiókjához."}),i.jsxs("ul",{className:"text-xs text-blue-600 space-y-1",children:[i.jsx("li",{children:"• Engedélyezze a popup ablakokat ehhez az oldalhoz"}),i.jsx("li",{children:"• A hitelesítés után automatikusan visszatér ide"}),i.jsx("li",{children:"• Biztonságos OAuth 2.0 protokoll használata"})]})]})]})}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between p-4 border border-gray-200 rounded-lg",children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx("div",{className:"w-10 h-10 bg-pink-500 rounded-lg flex items-center justify-center",children:i.jsx("span",{className:"text-white font-bold",children:"T"})}),i.jsxs("div",{children:[i.jsx("h4",{className:"font-medium text-gray-900",children:"TikTok"}),i.jsx("p",{className:"text-sm text-gray-500",children:(M=r==null?void 0:r.tiktok)!=null&&M.connected?`✅ Csatlakoztatva (${r.tiktok.accountId})`:"Nincs csatlakoztatva"}),i.jsx("p",{className:"text-xs text-gray-400",children:"Videó feltöltés és hirdetés kezelés"})]})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[(H=r==null?void 0:r.tiktok)!=null&&H.connected?i.jsx(Ue,{className:"h-5 w-5 text-green-500"}):i.jsx("button",{onClick:d,disabled:l||u==="tiktok",className:"bg-pink-600 text-white px-4 py-2 rounded-lg hover:bg-pink-700 disabled:opacity-50",children:u==="tiktok"?i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent"}),i.jsx("span",{children:"OAuth folyamat..."})]}):"🔗 Csatlakoztatás"}),((le=r==null?void 0:r.tiktok)==null?void 0:le.connected)&&i.jsx("button",{onClick:()=>T("tiktok"),disabled:l,className:"ml-2 text-red-600 hover:text-red-800 text-sm disabled:opacity-50",children:"Leválasztás"})]})]}),i.jsxs("div",{className:"flex items-center justify-between p-4 border border-gray-200 rounded-lg",children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx("div",{className:"w-10 h-10 bg-red-500 rounded-lg flex items-center justify-center",children:i.jsx("span",{className:"text-white font-bold",children:"Y"})}),i.jsxs("div",{children:[i.jsx("h4",{className:"font-medium text-gray-900",children:"YouTube"}),i.jsx("p",{className:"text-sm text-gray-500",children:(I=r==null?void 0:r.youtube)!=null&&I.connected?`✅ Csatlakoztatva (${r.youtube.channelId})`:"Nincs csatlakoztatva"}),i.jsx("p",{className:"text-xs text-gray-400",children:"Videó feltöltés és hirdetés kezelés"})]})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[(b=r==null?void 0:r.youtube)!=null&&b.connected?i.jsx(Ue,{className:"h-5 w-5 text-green-500"}):i.jsx("button",{onClick:h,disabled:l||u==="youtube",className:"bg-red-600 text-white px-4 py-2 rounded-lg hover:bg-red-700 disabled:opacity-50",children:u==="youtube"?i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent"}),i.jsx("span",{children:"Google OAuth..."})]}):"🔗 Csatlakoztatás"}),((R=r==null?void 0:r.youtube)==null?void 0:R.connected)&&i.jsx("button",{onClick:()=>T("youtube"),disabled:l,className:"ml-2 text-red-600 hover:text-red-800 text-sm disabled:opacity-50",children:"Leválasztás"})]})]}),i.jsxs("div",{className:"flex items-center justify-between p-4 border border-gray-200 rounded-lg",children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx("div",{className:"w-10 h-10 bg-blue-600 rounded-lg flex items-center justify-center",children:i.jsx("span",{className:"text-white font-bold",children:"f"})}),i.jsxs("div",{children:[i.jsx("h4",{className:"font-medium text-gray-900",children:"Facebook"}),i.jsx("p",{className:"text-sm text-gray-500",children:(L=r==null?void 0:r.facebook)!=null&&L.connected?`Csatlakoztatva (${r.facebook.pageId})`:"Nincs csatlakoztatva"})]})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[($=r==null?void 0:r.facebook)!=null&&$.connected?i.jsx(Ue,{className:"h-5 w-5 text-green-500"}):i.jsx("button",{onClick:j,disabled:l||u==="facebook",className:"bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 disabled:opacity-50",children:u==="facebook"?i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent"}),i.jsx("span",{children:"Csatlakoztatás..."})]}):"Csatlakoztatás"}),((D=r==null?void 0:r.facebook)==null?void 0:D.connected)&&i.jsx("button",{onClick:()=>T("facebook"),disabled:l,className:"ml-2 text-red-600 hover:text-red-800 text-sm disabled:opacity-50",children:"Leválasztás"})]})]}),i.jsxs("div",{className:"flex items-center justify-between p-4 border border-gray-200 rounded-lg",children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx("div",{className:"w-10 h-10 bg-gradient-to-r from-purple-500 to-pink-500 rounded-lg flex items-center justify-center",children:i.jsx("span",{className:"text-white font-bold",children:"📸"})}),i.jsxs("div",{children:[i.jsx("h4",{className:"font-medium text-gray-900",children:"Instagram"}),i.jsx("p",{className:"text-sm text-gray-500",children:(st=r==null?void 0:r.instagram)!=null&&st.connected?`Csatlakoztatva (${r.instagram.accountId})`:"Nincs csatlakoztatva"})]})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[(Qe=r==null?void 0:r.instagram)!=null&&Qe.connected?i.jsx(Ue,{className:"h-5 w-5 text-green-500"}):i.jsx("button",{onClick:S,disabled:l||u==="instagram",className:"bg-gradient-to-r from-purple-500 to-pink-500 text-white px-4 py-2 rounded-lg hover:from-purple-600 hover:to-pink-600 disabled:opacity-50",children:u==="instagram"?i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent"}),i.jsx("span",{children:"Csatlakoztatás..."})]}):"Csatlakoztatás"}),((qe=r==null?void 0:r.instagram)==null?void 0:qe.connected)&&i.jsx("button",{onClick:()=>T("instagram"),disabled:l,className:"ml-2 text-red-600 hover:text-red-800 text-sm disabled:opacity-50",children:"Leválasztás"})]})]}),i.jsxs("div",{className:"flex items-center justify-between p-4 border border-gray-200 rounded-lg",children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx("div",{className:"w-10 h-10 bg-black rounded-lg flex items-center justify-center",children:i.jsx("span",{className:"text-white font-bold",children:"𝕏"})}),i.jsxs("div",{children:[i.jsx("h4",{className:"font-medium text-gray-900",children:"X (Twitter)"}),i.jsx("p",{className:"text-sm text-gray-500",children:(Ae=r==null?void 0:r.twitter)!=null&&Ae.connected?`Csatlakoztatva (${r.twitter.accountId})`:"Nincs csatlakoztatva"})]})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[(lt=r==null?void 0:r.twitter)!=null&&lt.connected?i.jsx(Ue,{className:"h-5 w-5 text-green-500"}):i.jsx("button",{onClick:E,disabled:l||u==="twitter",className:"bg-black text-white px-4 py-2 rounded-lg hover:bg-gray-800 disabled:opacity-50",children:u==="twitter"?i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent"}),i.jsx("span",{children:"Csatlakoztatás..."})]}):"Csatlakoztatás"}),((z=r==null?void 0:r.twitter)==null?void 0:z.connected)&&i.jsx("button",{onClick:()=>T("twitter"),disabled:l,className:"ml-2 text-red-600 hover:text-red-800 text-sm disabled:opacity-50",children:"Leválasztás"})]})]})]}),a&&i.jsxs("div",{className:`flex items-center space-x-2 p-3 rounded-lg ${a.includes("successfully")?"text-green-600 bg-green-50":"text-red-600 bg-red-50"}`,children:[a.includes("successfully")?i.jsx(Ue,{className:"h-5 w-5"}):i.jsx(Cr,{className:"h-5 w-5"}),i.jsx("span",{className:"text-sm",children:a})]})]})},me=()=>i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Számlázási információk"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Kezelje számlázási adatait és fizetési módszereit."})]}),i.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg",children:[i.jsx("h4",{className:"font-medium text-gray-900 mb-4",children:"Jelenlegi csomag"}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-lg font-semibold text-gray-900",children:"Kezdő csomag"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Akár 400,000 Ft/hónap hirdetési kiadás"})]}),i.jsxs("div",{className:"text-right",children:[i.jsx("p",{className:"text-2xl font-bold text-gray-900",children:"11,600 Ft"}),i.jsx("p",{className:"text-sm text-gray-600",children:"11,600 HUF havonta"})]})]})]}),i.jsxs("div",{children:[i.jsx("h4",{className:"font-medium text-gray-900 mb-4",children:"Fizetési mód"}),i.jsx("div",{className:"border border-gray-200 rounded-lg p-4",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("div",{className:"w-8 h-8 bg-blue-600 rounded flex items-center justify-center",children:i.jsx(Mi,{className:"h-4 w-4 text-white"})}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-gray-900",children:"•••• •••• •••• 4242"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Lejárat: 12/25"})]})]}),i.jsx("button",{className:"text-indigo-600 hover:text-indigo-700 text-sm font-medium",children:"Frissítés"})]})})]})]}),se=()=>i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Értesítési beállítások"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Válassza ki, milyen értesítéseket szeretne kapni."})]}),i.jsx("div",{className:"space-y-4",children:[{name:"Kampány teljesítmény riasztások",description:"Értesítést kap, ha kampányai a vártnál jobban vagy rosszabbul teljesítenek"},{name:"Költségvetés riasztások",description:"Riasztást kap, ha megközelíti költségvetési korlátait"},{name:"Heti jelentések",description:"Heti teljesítmény összefoglalókat kap e-mailben"},{name:"Új funkció frissítések",description:"Legyen az első, aki értesül az új funkciókról és fejlesztésekről"}].map((M,H)=>i.jsxs("div",{className:"flex items-center justify-between p-4 border border-gray-200 rounded-lg",children:[i.jsxs("div",{children:[i.jsx("h4",{className:"font-medium text-gray-900",children:M.name}),i.jsx("p",{className:"text-sm text-gray-600",children:M.description})]}),i.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[i.jsx("input",{type:"checkbox",className:"sr-only peer",defaultChecked:!0}),i.jsx("div",{className:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-indigo-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600"})]})]},H))})]}),ze=()=>i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Biztonsági beállítások"}),i.jsx("p",{className:"text-sm text-gray-600",children:"Kezelje fiókja biztonsági és adatvédelmi beállításait."})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"p-4 border border-gray-200 rounded-lg",children:[i.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Jelszó módosítása"}),i.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Frissítse jelszavát fiókja biztonságának megőrzéséhez."}),i.jsx("button",{className:"bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700",children:"Jelszó módosítása"})]}),i.jsxs("div",{className:"p-4 border border-gray-200 rounded-lg",children:[i.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Kétfaktoros hitelesítés"}),i.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Adjon hozzá egy extra biztonsági réteget fiókjához."}),i.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded-lg hover:bg-green-700",children:"2FA engedélyezése"})]}),i.jsxs("div",{className:"p-4 border border-gray-200 rounded-lg",children:[i.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Aktív munkamenetek"}),i.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Kezelje aktív bejelentkezési munkameneteit."}),i.jsx("div",{className:"space-y-2",children:i.jsxs("div",{className:"flex items-center justify-between text-sm",children:[i.jsx("span",{children:"Jelenlegi munkamenet (Chrome Mac-en)"}),i.jsx("span",{className:"text-green-600",children:"Aktív"})]})})]})]})]});return i.jsxs("div",{className:"space-y-8",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Beállítások"}),i.jsx("p",{className:"mt-2 text-sm text-gray-600",children:"Kezelje fiókja beállításait és preferenciáit."})]}),i.jsxs("div",{className:"flex flex-col lg:flex-row lg:space-x-8",children:[i.jsx("div",{className:"lg:w-64 mb-8 lg:mb-0",children:i.jsx("nav",{className:"space-y-1",children:_.map(M=>i.jsxs("button",{onClick:()=>n(M.id),className:`w-full flex items-center px-3 py-2 text-sm font-medium rounded-lg ${t===M.id?"bg-indigo-100 text-indigo-900":"text-gray-600 hover:bg-gray-50 hover:text-gray-900"}`,children:[i.jsx(M.icon,{className:"mr-3 h-5 w-5"}),M.name]},M.id))})}),i.jsx("div",{className:"flex-1",children:i.jsxs("div",{className:"bg-white shadow rounded-lg p-6",children:[t==="profile"&&V(),t==="accounts"&&F(),t==="billing"&&me(),t==="notifications"&&se(),t==="security"&&ze
45()]})})]})]})},ig=()=>{const{isAuthenticated:e}=ol(),[t,n]=O.useState("dashboard"),[r,s]=O.useState(null),l=m=>{n("dashboard")},o=m=>{s(m),n("create")},a=m=>{s(null),n("dashboard")},c=m=>{m!=="create"&&s(null),n(m)};if(!e)return i.jsx(X0,{});const u=()=>{switch(t){case"dashboard":return i.jsx(Nc,{onPageChange:c,onEditCampaign:o});case"create":return i.jsx(sg,{onCampaignCreated:r?a:l,editingCampaign:r});case"settings":return i.jsx(lg,{});default:return i.jsx(Nc,{onPageChange:c,onEditCampaign:o})}};return i.jsx(Y0,{currentPage:t,onPageChange:c,children:u()})};function og(){return i.jsx(Wp,{children:i.jsx(ig,{})})}Md(document.getElementById("root")).render(i.jsx(O.StrictMode,{children:i.jsx(og,{})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.