vendor: 6,381 bytes, lines 1-9
1var UP=Object.defineProperty;var wx=e=>{throw TypeError(e)};var VP=(e,t,n)=>t in e?UP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Je=(e,t,n)=>VP(e,typeof t!="symbol"?t+"":t,n),uh=(e,t,n)=>t.has(e)||wx("Cannot "+n);var A=(e,t,n)=>(uh(e,t,"read from private field"),n?n.call(e):t.get(e)),be=(e,t,n)=>t.has(e)?wx("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),se=(e,t,n,r)=>(uh(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ae=(e,t,n)=>(uh(e,t,"access private method"),n);var Hc=(e,t,n,r)=>({set _(o){se(e,t,o,n)},get _(){return A(e,t,r)}});function $P(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();function lm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dh={exports:{}},Ma={},fh={exports:{}},Le={};/** 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 bx;function zP(){if(bx)return Le;bx=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function v(I){return I===null||typeof I!="object"?null:(I=g&&I[g]||I["@@iterator"],typeof I=="function"?I:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,b={};function _(I,q,we){this.props=I,this.context=q,this.refs=b,this.updater=we||C}_.prototype.isReactComponent={},_.prototype.setState=function(I,q){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,q,"setState")},_.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function S(){}S.prototype=_.prototype;function k(I,q,we){this.props=I,this.context=q,this.refs=b,this.updater=we||C}var P=k.prototype=new S;P.constructor=k,E(P,_.prototype),P.isPureReactComponent=!0;var T=Array.isArray,j=Object.prototype.hasOwnProperty,F={current:null},U={key:!0,ref:!0,__self:!0,__source:!0};function O(I,q,we){var xe,ge={},ve=null,K=null;if(q!=null)for(xe in q.ref!==void 0&&(K=q.ref),q.key!==void 0&&(ve=""+q.key),q)j.call(q,xe)&&!U.hasOwnProperty(xe)&&(ge[xe]=q[xe]);var ie=arguments.length-2;if(ie===1)ge.children=we;else if(1<ie){for(var ce=Array(ie),Te=0;Te<ie;Te++)ce[Te]=arguments[Te+2];ge.children=ce}if(I&&I.defaultProps)for(xe in ie=I.defaultProps,ie)ge[xe]===void 0&&(ge[xe]=ie[xe]);return{$$typeof:e,type:I,key:ve,ref:K,props:ge,_owner:F.current}}function H(I,q){return{$$typeof:e,type:I.type,key:q,ref:I.ref,props:I.props,_owner:I._owner}}function X(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function ne(I){var q={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(we){return q[we]})}var ue=/\/+/g;function he(I,q){return typeof I=="object"&&I!==null&&I.key!=null?ne(""+I.key):q.toString(36)}function ae(I,q,we,xe,ge){var ve=typeof I;(ve==="undefined"||ve==="boolean")&&(I=null);var K=!1;if(I===null)K=!0;else switch(ve){case"string":case"number":K=!0;break;case"object":switch(I.$$typeof){case e:case t:K=!0}}if(K)return K=I,ge=ge(K),I=xe===""?"."+he(K,0):xe,T(ge)?(we="",I!=null&&(we=I.replace(ue,"$&/")+"/"),ae(ge,q,we,"",function(Te){return Te})):ge!=null&&(X(ge)&&(ge=H(ge,we+(!ge.key||K&&K.key===ge.key?"":(""+ge.key).replace(ue,"$&/")+"/")+I)),q.push(ge)),1;if(K=0,xe=xe===""?".":xe+":",T(I))for(var ie=0;ie<I.length;ie++){ve=I[ie];var ce=xe+he(ve,ie);K+=ae(ve,q,we,ce,ge)}else if(ce=v(I),typeof ce=="function")for(I=ce.call(I),ie=0;!(ve=I.next()).done;)ve=ve.value,ce=xe+he(ve,ie++),K+=ae(ve,q,we,ce,ge);else if(ve==="object")throw q=String(I),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return K}function Se(I,q,we){if(I==null)return I;var xe=[],ge=0;return ae(I,xe,"","",function(ve){return q.call(we,ve,ge++)}),xe}function J(I){if(I._status===-1){var q=I._result;q=q(),q.then(function(we){(I._status===0||I._status===-1)&&(I._status=1,I._result=we)},function(we){(I._status===0||I._status===-1)&&(I._status=2,I._result=we)}),I._status===-1&&(I._status=0,I._result=q)}if(I._status===1)return I._result.default;throw I._result}var ee={current:null},z={transition:null},te={ReactCurrentDispatcher:ee,ReactCurrentBatchConfig:z,ReactCurrentOwner:F};function W(){throw Error("act(...) is not supported in production builds of React.")}return Le.Children={map:Se,forEach:function(I,q,we){Se(I,function(){q.apply(this,arguments)},we)},count:function(I){var q=0;return Se(I,function(){q++}),q},toArray:function(I){return Se(I,function(q){return q})||[]},only:function(I){if(!X(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},Le.Component=_,Le.Fragment=n,Le.Profiler=o,Le.PureComponent=k,Le.StrictMode=r,Le.Suspense=
vendor: 6,305 bytes, lines 9-25
9d,Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,Le.act=W,Le.cloneElement=function(I,q,we){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var xe=E({},I.props),ge=I.key,ve=I.ref,K=I._owner;if(q!=null){if(q.ref!==void 0&&(ve=q.ref,K=F.current),q.key!==void 0&&(ge=""+q.key),I.type&&I.type.defaultProps)var ie=I.type.defaultProps;for(ce in q)j.call(q,ce)&&!U.hasOwnProperty(ce)&&(xe[ce]=q[ce]===void 0&&ie!==void 0?ie[ce]:q[ce])}var ce=arguments.length-2;if(ce===1)xe.children=we;else if(1<ce){ie=Array(ce);for(var Te=0;Te<ce;Te++)ie[Te]=arguments[Te+2];xe.children=ie}return{$$typeof:e,type:I.type,key:ge,ref:ve,props:xe,_owner:K}},Le.createContext=function(I){return I={$$typeof:l,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:a,_context:I},I.Consumer=I},Le.createElement=O,Le.createFactory=function(I){var q=O.bind(null,I);return q.type=I,q},Le.createRef=function(){return{current:null}},Le.forwardRef=function(I){return{$$typeof:u,render:I}},Le.isValidElement=X,Le.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:J}},Le.memo=function(I,q){return{$$typeof:h,type:I,compare:q===void 0?null:q}},Le.startTransition=function(I){var q=z.transition;z.transition={};try{I()}finally{z.transition=q}},Le.unstable_act=W,Le.useCallback=function(I,q){return ee.current.useCallback(I,q)},Le.useContext=function(I){return ee.current.useContext(I)},Le.useDebugValue=function(){},Le.useDeferredValue=function(I){return ee.current.useDeferredValue(I)},Le.useEffect=function(I,q){return ee.current.useEffect(I,q)},Le.useId=function(){return ee.current.useId()},Le.useImperativeHandle=function(I,q,we){return ee.current.useImperativeHandle(I,q,we)},Le.useInsertionEffect=function(I,q){return ee.current.useInsertionEffect(I,q)},Le.useLayoutEffect=function(I,q){return ee.current.useLayoutEffect(I,q)},Le.useMemo=function(I,q){return ee.current.useMemo(I,q)},Le.useReducer=function(I,q,we){return ee.current.useReducer(I,q,we)},Le.useRef=function(I){return ee.current.useRef(I)},Le.useState=function(I){return ee.current.useState(I)},Le.useSyncExternalStore=function(I,q,we){return ee.current.useSyncExternalStore(I,q,we)},Le.useTransition=function(){return ee.current.useTransition()},Le.version="18.3.1",Le}var Sx;function cm(){return Sx||(Sx=1,fh.exports=zP()),fh.exports}/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Cx;function WP(){if(Cx)return Ma;Cx=1;var e=cm(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(u,d,h){var m,g={},v=null,C=null;h!==void 0&&(v=""+h),d.key!==void 0&&(v=""+d.key),d.ref!==void 0&&(C=d.ref);for(m in d)r.call(d,m)&&!a.hasOwnProperty(m)&&(g[m]=d[m]);if(u&&u.defaultProps)for(m in d=u.defaultProps,d)g[m]===void 0&&(g[m]=d[m]);return{$$typeof:t,type:u,key:v,ref:C,props:g,_owner:o.current}}return Ma.Fragment=n,Ma.jsx=l,Ma.jsxs=l,Ma}var Ex;function HP(){return Ex||(Ex=1,dh.exports=WP()),dh.exports}var p=HP(),w=cm();const _n=lm(w),Gu=$P({__proto__:null,default:_n},[w]);var qc={},hh={exports:{}},tn={},ph={exports:{}},mh={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var _x;function qP(){return _x||(_x=1,(function(e){function t(z,te){var W=z.length;z.push(te);e:for(;0<W;){var I=W-1>>>1,q=z[I];if(0<o(q,te))z[I]=te,z[W]=q,W=I;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var te=z[0],W=z.pop();if(W!==te){z[0]=W;e:for(var I=0,q=z.length,we=q>>>1;I<we;){var xe=2*(I+1)-1,ge=z[xe],ve=xe+1,K=z[ve];if(0>o(ge,W))ve<q&&0>o(K,ge)?(z[I]=K,z[ve]=W,I=ve):(z[I]=ge,z[xe]=W,I=xe);else if(ve<q&&0>o(K,W))z[I]=K,z[ve]=W,I=ve;else break e}}return te}function o(z,te){var W=z.sortIndex-te.sortIndex;return W!==0?W:z.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],h=[],m=1,g=null,v=3,C=!1,E=!1,b=!1,_=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(z){for(var te=n(h);te!==null;){if(te.callback===null)r(h);else if(te.startTime<=z)r(h),te.sortIndex=te.expirationTime,t(d,te);else break;te=n(h)}}function T(z){if(b=!1,P(z),!E)if(n(d)!==null)E=!0,J(j);else{var te=n(h);te!==null&&ee(T,te.startTime-z)}}function j(z,te){E=!1,b&&(b=!1,S(O),O=-1),C=!0;var W=v;try{for(P(te),g=n(d);g!==null&&(!(g.expirationTime>te)||z&&!ne());){var I=g.callback;if(typeof I=="function"){g.callback=null,v=g.priorityLevel;var q=I(g.expirationTime<=te);te=e.unstable_now(),typeof q=="function"?g.callback=q:g===n(d)&&r(d),P(te)}else r(d);g=n(d)}if(g!==null)var we=!0;else{var xe=n(h);xe!==null&&ee(T,xe.startTime-te),we=!1}return we}finally{g=null,v=W,C=!1}}var F=!1,U=null,O=-1,H=5,X=-1;function ne(){return!(e.unstable_now()-X<H)}function ue(){if(U!==null){var z=e.unstable_now();X=z;var te=!0;try{te=U(!0,z)}finally{te?he():(F=!1,U=null)}}else F=!1}var he;if(typeof k=="function")he=function(){k(ue)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,Se=ae.port2;ae.port1.onmessage=ue,he=function(){Se.postMessage(null)}}else he=function(){_(ue,0)};function J(z){U=z,F||(F=!0,he())}function ee(z,te){O=_(function(){z(e.unstable_now())},te)}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(z){z.callback=null}
vendor: 4,200 bytes, lines 25-33
25,e.unstable_continueExecution=function(){E||C||(E=!0,J(j))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(z){switch(v){case 1:case 2:case 3:var te=3;break;default:te=v}var W=v;v=te;try{return z()}finally{v=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,te){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=v;v=z;try{return te()}finally{v=W}},e.unstable_scheduleCallback=function(z,te,W){var I=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?I+W:I):W=I,z){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=W+q,z={id:m++,callback:te,priorityLevel:z,startTime:W,expirationTime:q,sortIndex:-1},W>I?(z.sortIndex=W,t(h,z),n(d)===null&&z===n(h)&&(b?(S(O),O=-1):b=!0,ee(T,W-I))):(z.sortIndex=q,t(d,z),E||C||(E=!0,J(j))),z},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(z){var te=v;return function(){var W=v;v=te;try{return z.apply(this,arguments)}finally{v=W}}}})(mh)),mh}var Nx;function KP(){return Nx||(Nx=1,ph.exports=qP()),ph.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 kx;function GP(){if(kx)return tn;kx=1;var e=cm(),t=KP();function n(s){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+s,c=1;c<arguments.length;c++)i+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+s+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function a(s,i){l(s,i),l(s+"Capture",i)}function l(s,i){for(o[s]=i,s=0;s<i.length;s++)r.add(i[s])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},g={};function v(s){return d.call(g,s)?!0:d.call(m,s)?!1:h.test(s)?g[s]=!0:(m[s]=!0,!1)}function C(s,i,c,f){if(c!==null&&c.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return f?!1:c!==null?!c.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function E(s,i,c,f){if(i===null||typeof i>"u"||C(s,i,c,f))return!0;if(f)return!1;if(c!==null)switch(c.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function b(s,i,c,f,y,x,N){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=f,this.attributeNamespace=y,this.mustUseProperty=c,this.propertyName=s,this.type=i,this.sanitizeURL=x,this.removeEmptyString=N}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){_[s]=new b(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var i=s[0];_[i]=new b(i,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){_[s]=new b(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){_[s]=new b(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInl
33ine readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){_[s]=new b(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){_[s]=new b(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){_[s]=new b(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){_[s]=new b(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){_[s]=new b(s,5,!1,s.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function k(s){return s[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(s){var i=s.replace(S,k);_[i]=new b(i,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var i=s.replace(S,k);_[i]=new b(i,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var i=s.replace(S,k);_[i]=new b(i,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){_[s]=new b(s,1,!1,s.toLowerCase(),null,!1,!1)}),_.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){_[s]=new b(s,1,!1,s.toLowerCase(),null,!0,!0)});function P(s,i,c,f){var y=_.hasOwnProperty(i)?_[i]:null;(y!==null?y.type!==0:f||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(E(i,c,y,f)&&(c=null),f||y===null?v(i)&&(c===null?s.removeAttribute(i):s.setAttribute(i,""+c)):y.mustUseProperty?s[y.propertyName]=c===null?y.type===3?!1:"":c:(i=y.attributeName,f=y.attributeNamespace,c===null?s.removeAttribute(i):(y=y.type,c=y===3||y===4&&c===!0?"":""+c,f?s.setAttributeNS(f,i,c):s.setAttribute(i,c))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,j=Symbol.for("react.element"),F=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),ne=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ee=Symbol.for("react.offscreen"),z=Symbol.iterator;function te(s){return s===null||typeof s!="object"?null:(s=z&&s[z]||s["@@iterator"],typeof s=="function"?s:null)}var W=Object.assign,I;function q(s){if(I===void 0)try{throw Error()}catch(c){var i=c.stack.trim().match(/\n( *(at )?)/);I=i&&i[1]||""}return` 34`+I+s}var we=!1;function xe(s,i){if(!s||we)return"";we=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch($){var f=$}Reflect.construct(s,[],i)}else{try{i.call()}catch($){f=$}s.call(i.prototype)}else{try{throw Error()}catch($){f=$}s()}}catch($){if($&&f&&typeof $.stack=="string"){for(var y=$.stack.split(` 35`),x=f.stack.split(` 36`),N=y.length-1,R=x.length-1;1<=N&&0<=R&&y[N]!==x[R];)R--;for(;1<=N&&0<=R;N--,R--)if(y[N]!==x[R]){if(N!==1||R!==1)do if(N--,R--,0>R||y[N]!==x[R]){var M=` 37`+y[N].replace(" at new "," at ");return s.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",s.displayName)),M}while(1<=N&&0<=R);break}}}finally{we=!1,Error.prepareStackTrace=c}return(s=s?s.displayName||s.name:"")?q(s):""}function ge(s){switch(s.tag){case 5:return q(s.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return s=xe(s.type,!1),s;case 11:return s=xe(s.type.render,!1),s;case 1:return s=xe(s.type,!0),s;default:return""}}function ve(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case U:return"Fragment";case F:return"Portal";case H:return"Profiler";case O:return"StrictMode";case he:return"Suspense";case ae:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case ne:return(s.displayName||"Context")+".Consumer";case X:return(s._context.displayName||"Context")+".Provider";case ue:var i=s.render;return s=s.displayName,s||(s=i.displayName||i.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case Se:return i=s.displayName||null,i!==null?i:ve(s.type)||"Memo";case J:i=s._payload,s=s._init;try{return ve(s(i))}catch{}}return null}function K(s){var i=s.type;switch(s.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=i.render,s=s.displayName||s.name||"",i.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(i);case 8:return i===O?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ie(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function ce(s){var i=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Te(s){var i=ce(s)?"checked":"value",c=Object.getOwnPropertyDescriptor(s.constructor.prototype,i
vendor: 33,362 bytes, line 37
37),f=""+s[i];if(!s.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var y=c.get,x=c.set;return Object.defineProperty(s,i,{configurable:!0,get:function(){return y.call(this)},set:function(N){f=""+N,x.call(this,N)}}),Object.defineProperty(s,i,{enumerable:c.enumerable}),{getValue:function(){return f},setValue:function(N){f=""+N},stopTracking:function(){s._valueTracker=null,delete s[i]}}}}function je(s){s._valueTracker||(s._valueTracker=Te(s))}function Ne(s){if(!s)return!1;var i=s._valueTracker;if(!i)return!0;var c=i.getValue(),f="";return s&&(f=ce(s)?s.checked?"true":"false":s.value),s=f,s!==c?(i.setValue(s),!0):!1}function Be(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function qe(s,i){var c=i.checked;return W({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??s._wrapperState.initialChecked})}function Rn(s,i){var c=i.defaultValue==null?"":i.defaultValue,f=i.checked!=null?i.checked:i.defaultChecked;c=ie(i.value!=null?i.value:c),s._wrapperState={initialChecked:f,initialValue:c,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function mn(s,i){i=i.checked,i!=null&&P(s,"checked",i,!1)}function xt(s,i){mn(s,i);var c=ie(i.value),f=i.type;if(c!=null)f==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+c):s.value!==""+c&&(s.value=""+c);else if(f==="submit"||f==="reset"){s.removeAttribute("value");return}i.hasOwnProperty("value")?Ze(s,i.type,c):i.hasOwnProperty("defaultValue")&&Ze(s,i.type,ie(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(s.defaultChecked=!!i.defaultChecked)}function ke(s,i,c){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var f=i.type;if(!(f!=="submit"&&f!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+s._wrapperState.initialValue,c||i===s.value||(s.value=i),s.defaultValue=i}c=s.name,c!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,c!==""&&(s.name=c)}function Ze(s,i,c){(i!=="number"||Be(s.ownerDocument)!==s)&&(c==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+c&&(s.defaultValue=""+c))}var Gt=Array.isArray;function Qt(s,i,c,f){if(s=s.options,i){i={};for(var y=0;y<c.length;y++)i["$"+c[y]]=!0;for(c=0;c<s.length;c++)y=i.hasOwnProperty("$"+s[c].value),s[c].selected!==y&&(s[c].selected=y),y&&f&&(s[c].defaultSelected=!0)}else{for(c=""+ie(c),i=null,y=0;y<s.length;y++){if(s[y].value===c){s[y].selected=!0,f&&(s[y].defaultSelected=!0);return}i!==null||s[y].disabled||(i=s[y])}i!==null&&(i.selected=!0)}}function Ri(s,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return W({},i,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function Dl(s,i){var c=i.value;if(c==null){if(c=i.children,i=i.defaultValue,c!=null){if(i!=null)throw Error(n(92));if(Gt(c)){if(1<c.length)throw Error(n(93));c=c[0]}i=c}i==null&&(i=""),c=i}s._wrapperState={initialValue:ie(c)}}function Dr(s,i){var c=ie(i.value),f=ie(i.defaultValue);c!=null&&(c=""+c,c!==s.value&&(s.value=c),i.defaultValue==null&&s.defaultValue!==c&&(s.defaultValue=c)),f!=null&&(s.defaultValue=""+f)}function Ag(s){var i=s.textContent;i===s._wrapperState.initialValue&&i!==""&&i!==null&&(s.value=i)}function Og(s){switch(s){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 wd(s,i){return s==null||s==="http://www.w3.org/1999/xhtml"?Og(i):s==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Il,Mg=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,c,f,y){MSApp.execUnsafeLocalFunction(function(){return s(i,c,f,y)})}:s})(function(s,i){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=i;else{for(Il=Il||document.createElement("div"),Il.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Il.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;i.firstChild;)s.appendChild(i.firstChild)}});function Yo(s,i){if(i){var c=s.firstChild;if(c&&c===s.lastChild&&c.nodeType===3){c.nodeValue=i;return}}s.textContent=i}var Xo={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},WN=["Webkit","ms","Moz","O"];Object.keys(Xo).forEach(function(s){WN.forEach(function(i){i=i+s.charAt(0).toUpperCase()+s.substring(1),Xo[i]=Xo[s]})});function Lg(s,i,c){return i==null||typeof i=="boolean"||i===""?"":c||typeof i!="number"||i===0||Xo.hasOwnProperty(s)&&Xo[s]?(""+i).trim():i+"px"}function Dg(s,i){s=s.style;for(var c in i)if(i.hasOwnProperty(c)){var f=c.indexOf("--")===0,y=Lg(c,i[c],f);c==="float"&&(c="cssFloat"),f?s.setProperty(c,y):s[c]=y}}var HN=W({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 bd(s,i){if(i){if(HN[s]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Sd(s,i){if(s.indexOf("-")===-1)return typeof i.is=="string";switch(s){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 Cd=null;function Ed(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var _d=null,ji=null,Ai=null;function Ig(s){if(s=xa(s)){if(typeof _d!="function")throw Error(n(280));var i=s.stateNode;i&&(i=oc(i),_d(s.stateNode,s.type,i))}}function Fg(s){ji?Ai?Ai.push(s):Ai=[s]:ji=s}function Bg(){if(ji){var s=ji,i=Ai;if(Ai=ji=null,Ig(s),i)for(s=0;s<i.length;s++)Ig(i[s])}}function Ug(s,i){return s(i)}function Vg(){}var Nd=!1;function $g(s,i,c){if(Nd)return s(i,c);Nd=!0;try{return Ug(s,i,c)}finally{Nd=!1,(ji!==null||Ai!==null)&&(Vg(),Bg())}}function Jo(s,i){var c=s.stateNode;if(c===null)return null;var f=oc(c);if(f===null)return null;c=f[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(s=s.type,f=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!f;break e;default:s=!1}if(s)return null;if(c&&typeof c!="function")throw Error(n(231,i,typeof c));return c}var kd=!1;if(u)try{var Zo={};Object.defineProperty(Zo,"passive",{get:function(){kd=!0}}),window.addEventListener("test",Zo,Zo),window.removeEventListener("test",Zo,Zo)}catch{kd=!1}function qN(s,i,c,f,y,x,N,R,M){var $=Array.prototype.slice.call(arguments,3);try{i.apply(c,$)}catch(Q){this.onError(Q)}}var ea=!1,Fl=null,Bl=!1,Pd=null,KN={onError:function(s){ea=!0,Fl=s}};function GN(s,i,c,f,y,x,N,R,M){ea=!1,Fl=null,qN.apply(KN,arguments)}function QN(s,i,c,f,y,x,N,R,M){if(GN.apply(this,arguments),ea){if(ea){var $=Fl;ea=!1,Fl=null}else throw Error(n(198));Bl||(Bl=!0,Pd=$)}}function Ls(s){var i=s,c=s;if(s.alternate)for(;i.return;)i=i.return;else{s=i;do i=s,(i.flags&4098)!==0&&(c=i.return),s=i.return;while(s)}return i.tag===3?c:null}function zg(s){if(s.tag===13){var i=s.memoizedState;if(i===null&&(s=s.alternate,s!==null&&(i=s.memoizedState)),i!==null)return i.dehydrated}return null}function Wg(s){if(Ls(s)!==s)throw Error(n(188))}function YN(s){var i=s.alternate;if(!i){if(i=Ls(s),i===null)throw Error(n(188));return i!==s?null:s}for(var c=s,f=i;;){var y=c.return;if(y===null)break;var x=y.alternate;if(x===null){if(f=y.return,f!==null){c=f;continue}break}if(y.child===x.child){for(x=y.child;x;){if(x===c)return Wg(y),s;if(x===f)return Wg(y),i;x=x.sibling}throw Error(n(188))}if(c.return!==f.return)c=y,f=x;else{for(var N=!1,R=y.child;R;){if(R===c){N=!0,c=y,f=x;break}if(R===f){N=!0,f=y,c=x;break}R=R.sibling}if(!N){for(R=x.child;R;){if(R===c){N=!0,c=x,f=y;break}if(R===f){N=!0,f=x,c=y;break}R=R.sibling}if(!N)throw Error(n(189))}}if(c.alternate!==f)throw Error(n(190))}if(c.tag!==3)throw Error(n(188));return c.stateNode.current===c?s:i}function Hg(s){return s=YN(s),s!==null?qg(s):null}function qg(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var i=qg(s);if(i!==null)return i;s=s.sibling}return null}var Kg=t.unstable_scheduleCallback,Gg=t.unstable_cancelCallback,XN=t.unstable_shouldYield,JN=t.unstable_requestPaint,dt=t.unstable_now,ZN=t.unstable_getCurrentPriorityLevel,Td=t.unstable_ImmediatePriority,Qg=t.unstable_UserBlockingPriority,Ul=t.unstable_NormalPriority,ek=t.unstable_LowPriority,Yg=t.unstable_IdlePriority,Vl=null,Kn=null;function tk(s){if(Kn&&typeof Kn.onCommitFiberRoot=="function")try{Kn.onCommitFiberRoot(Vl,s,void 0,(s.current.flags&128)===128)}catch{}}var jn=Math.clz32?Math.clz32:sk,nk=Math.log,rk=Math.LN2;function sk(s){return s>>>=0,s===0?32:31-(nk(s)/rk|0)|0}var $l=64,zl=4194304;function ta(s){switch(s&-s){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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Wl(s,i){var c=s.pendingLanes;if(c===0)return 0;var f=0,y=s.suspendedLanes,x=s.pingedLanes,N=c&268435455;if(N!==0){var R=N&~y;R!==0?f=ta(R):(x&=N,x!==0&&(f=ta(x)))}else N=c&~y,N!==0?f=ta(N):x!==0&&(f=ta(x));if(f===0)return 0;if(i!==0&&i!==f&&(i&y)===0&&(y=f&-f,x=i&-i,y>=x||y===16&&(x&4194240)!==0))return i;if((f&4)!==0&&(f|=c&16),i=s.entangledLanes,i!==0)for(s=s.entanglements,i&=f;0<i;)c=31-jn(i),y=1<<c,f|=s[c],i&=~y;return f}function ik(s,i){switch(s){case 1:case 2:case 4:return i+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 i+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 ok(s,i){for(var c=s.suspendedLanes,f=s.pingedLanes,y=s.expirationTimes,x=s.pendingLanes;0<x;){var N=31-jn(x),R=1<<N,M=y[N];M===-1?((R&c)===0||(R&f)!==0)&&(y[N]=ik(R,i)):M<=i&&(s.expiredLanes|=R),x&=~R}}function Rd(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function Xg(){var s=$l;return $l<<=1,($l&4194240)===0&&($l=64),s}function jd(s){for(var i=[],c=0;31>c;c++)i.push(s);return i}function na(s,i,c){s.pendingLanes|=i,i!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,i=31-jn(i),s[i]=c}function ak(s,i){var c=s.pendingLanes&~i;s.pendingLanes=i,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=i,s.mutableReadLanes&=i,s.entangledLanes&=i,i=s.entanglements;var f=s.eventTimes;for(s=s.expirationTimes;0<c;){var y=31-jn(c),x=1<<y;i[y]=0,f[y]=-1,s[y]=-1,c&=~x}}function Ad(s,i){var c=s.entangledLanes|=i;for(s=s.entanglements;c;){var f=31-jn(c),y=1<<f;y&i|s[f]&i&&(s[f]|=i),c&=~y}}var Ke=0;function Jg(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var Zg,Od,ey,ty,ny,Md=!1,Hl=[],Ir=null,Fr=null,Br=null,ra=new Map,sa=new Map,Ur=[],lk="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 ry(s,i){switch(s){case"focusin":case"focusout":Ir=null;break;case"dragenter":case"dragleave":Fr=null;break;case"mouseover":case"mouseout":Br=null;break;case"pointerover":case"pointerout":ra.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":sa.delete(i.pointerId)}}function ia(s,i,c,f,y,x){return s===null||s.nativeEvent!==x?(s={blockedOn:i,domEventName:c,eventSystemFlags:f,nativeEvent:x,targetContainers:[y]},i!==null&&(i=xa(i),i!==null&&Od(i)),s):(s.eventSystemFlags|=f,i=s.targetContainers,y!==null&&i.indexOf(y)===-1&&i.push(y),s)}function ck(s,i,c,f,y){switch(i){case"focusin":return Ir=ia(Ir,s,i,c,f,y),!0;case"dragenter":return Fr=ia(Fr,s,i,c,f,y),!0;case"mouseover":return Br=ia(Br,s,i,c,f,y),!0;case"pointerover":var x=y.pointerId;return ra.set(x,ia(ra.get(x)||null,s,i,c,f,y)),!0;case"gotpointercapture":return x=y.pointerId,sa.set(x,ia(sa.get(x)||null,s,i,c,f,y)),!0}return!1}function sy(s){var i=Ds(s.target);if(i!==null){var c=Ls(i);if(c!==null){if(i=c.tag,i===13){if(i=zg(c),i!==null){s.blockedOn=i,ny(s.priority,function(){ey(c)});return}}else if(i===3&&c.stateNode.current.memoizedState.isDehydrated){s.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}s.blockedOn=null}function ql(s){if(s.blockedOn!==null)return!1;for(var i=s.targetContainers;0<i.length;){var c=Dd(s.domEventName,s.eventSystemFlags,i[0],s.nativeEvent);if(c===null){c=s.nativeEvent;var f=new c.constructor(c.type,c);Cd=f,c.target.dispatchEvent(f),Cd=null}else return i=xa(c),i!==null&&Od(i),s.blockedOn=c,!1;i.shift()}return!0}function iy(s,i,c){ql(s)&&c.delete(i)}function uk(){Md=!1,Ir!==null&&ql(Ir)&&(Ir=null),Fr!==null&&ql(Fr)&&(Fr=null),Br!==null&&ql(Br)&&(Br=null),ra.forEach(iy),sa.forEach(iy)}function oa(s,i){s.blockedOn===i&&(s.blockedOn=null,Md||(Md=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,uk)))}function aa(s){function i(y){return oa(y,s)}if(0<Hl.length){oa(Hl[0],s);for(var c=1;c<Hl.length;c++){var f=Hl[c];f.blockedOn===s&&(f.blockedOn=null)}}for(Ir!==null&&oa(Ir,s),Fr!==null&&oa(Fr,s),Br!==null&&oa(Br,s),ra.forEach(i),sa.forEach(i),c=0;c<Ur.length;c++)f=Ur[c],f.blockedOn===s&&(f.blockedOn=null);for(;0<Ur.length&&(c=Ur[0],c.blockedOn===null);)sy(c),c.blockedOn===null&&Ur.shift()}var Oi=T.ReactCurrentBatchConfig,Kl=!0;function dk(s,i,c,f){var y=Ke,x=Oi.transition;Oi.transition=null;try{Ke=1,Ld(s,i,c,f)}finally{Ke=y,Oi.transition=x}}function fk(s,i,c,f){var y=Ke,x=Oi.transition;Oi.transition=null;try{Ke=4,Ld(s,i,c,f)}finally{Ke=y,Oi.transition=x}}function Ld(s,i,c,f){if(Kl){var y=Dd(s,i,c,f);if(y===null)Zd(s,i,f,Gl,c),ry(s,f);else if(ck(y,s,i,c,f))f.stopPropagation();else if(ry(s,f),i&4&&-1<lk.indexOf(s)){for(;y!==null;){var x=xa(y);if(x!==null&&Zg(x),x=Dd(s,i,c,f),x===null&&Zd(s,i,f,Gl,c),x===y)break;y=x}y!==null&&f.stopPropagation()}else Zd(s,i,f,null,c)}}var Gl=null;function Dd(s,i,c,f){if(Gl=null,s=Ed(f),s=Ds(s),s!==null)if(i=Ls(s),i===null)s=null;else if(c=i.tag,c===13){if(s=zg(i),s!==null)return s;s=null}else if(c===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;s=null}else i!==s&&(s=null);return Gl=s,null}function oy(s){switch(s){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(ZN()){case Td:return 1;case Qg:return 4;case Ul:case ek:return 16;case Yg:return 536870912;default:return 16}default:return 16}}var Vr=null,Id=null,Ql=null;function ay(){if(Ql)return Ql;var s,i=Id,c=i.length,f,y="value"in Vr?Vr.value:Vr.textContent,x=y.length;for(s=0;s<c&&i[s]===y[s];s++);var N=c-s;for(f=1;f<=N&&i[c-f]===y[x-f];f++);return Ql=y.slice(s,1<f?1-f:void 0)}function Yl(s){var i=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&i===13&&(s=13)):s=i,s===10&&(s=13),32<=s||s===13?s:0}function Xl(){return!0}function ly(){return!1}function on(s){function i(c,f,y,x,N){this._reactName=c,this._targetInst=y,this.type=f,this.nativeEvent=x,this.target=N,this.currentTarget=null;for(var R in s)s.hasOwnProperty(R)&&(c=s[R],this[R]=c?c(x):x[R]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Xl:ly,this.isPropagationStopped=ly,this}return W(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Xl)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Xl)},persist:function(){},isPersistent:Xl}),i}var Mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fd=on(Mi),la=W({},Mi,{view:0,detail:0}),hk=on(la),Bd,Ud,ca,Jl=W({},la,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$d,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==ca&&(ca&&s.type==="mousemove"?(Bd=s.screenX-ca.screenX,Ud=s.screenY-ca.screenY):Ud=Bd=0,ca=s),Bd)},movementY:function(s){return"movementY"in s?s.movementY:Ud}}),cy=on(Jl),pk=W({},Jl,{dataTransfer:0}),mk=on(pk),gk=W({},la,{relatedTarget:0}),Vd=on(gk),yk=W({},Mi,{animationName:0,elapsedTime:0,pseudoElement:0}),vk=on(yk),xk=W({},Mi,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),wk=on(xk),bk=W({},Mi,{data:0}),uy=on(bk),Sk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ck={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"},Ek={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _k(s){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(s):(s=Ek[s])?!!i[s]:!1}function $d(){return _k}var Nk=W({},la,{key:function(s){if(s.key){var i=Sk[s.key]||s.key;if(i!=="Unidentified")return i}return s.type==="keypress"?(s=Yl(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?Ck[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$d,charCode:function(s){return s.type==="keypress"?Yl(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Yl(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),kk=on(Nk),Pk=W({},Jl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dy=on(Pk),Tk=W({},la,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$d}),Rk=on(Tk),jk=W({},Mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ak=on(jk),Ok=W({},Jl,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),Mk=on(Ok),Lk=[9,13,27,32],zd=u&&"CompositionEvent"in window,ua=null;u&&"documentMode"in document&&(ua=document.documentMode);var Dk=u&&"TextEvent"in window&&!ua,fy=u&&(!zd||ua&&8<ua&&11>=ua),hy=" ",py=!1;function my(s,i){switch(s){case"keyup":return Lk.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gy(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Li=!1;function Ik(s,i){switch(s){case"compositionend":return gy(i);case"keypress":return i.which!==32?null:(py=!0,hy);case"textInput":return s=i.data,s===hy&&py?null:s;default:return null}}function Fk(s,i){if(Li)return s==="compositionend"||!zd&&my(s,i)?(s=ay(),Ql=Id=Vr=null,Li=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return fy&&i.locale!=="ko"?null:i.data;default:return null}}var Bk={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 yy(s){var i=s&&s.nodeName&&s.nodeName.toLowerCase();return i==="input"?!!Bk[s.type]:i==="textarea"}function vy(s,i,c,f){Fg(f),i=rc(i,"onChange"),0<i.length&&(c=new Fd("onChange","change",null,c,f),s.push({event:c,listeners:i}))}var da=null,fa=null;function Uk(s){Dy(s,0)}function Zl(s){var i=Ui(s);if(Ne(i))return s}function Vk(s,i){if(s==="change")return i}var xy=!1;if(u){var Wd;if(u){var Hd="oninput"in document;if(!Hd){var wy=document.createElement("div");wy.setAttribute("oninput","return;"),Hd=typeof wy.oninput=="function"}Wd=Hd}else Wd=!1;xy=Wd&&(!document.documentMode||9<document.documentMode)}function by(){da&&(da.detachEvent("onpropertychange",Sy),fa=da=null)}function Sy(s){if(s.propertyName==="value"&&Zl(fa)){var i=[];vy(i,fa,s,Ed(s)),$g(Uk,i)}}function $k(s,i,c){s==="focusin"?(by(),da=i,fa=c,da.attachEvent("onpropertychange",Sy)):s==="focusout"&&by()}function zk(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Zl(fa)}function Wk(s,i){if(s==="click")return Zl(i)}function Hk(s,i){if(s==="input"||s==="change")return Zl(i)}function qk(s,i){return s===i&&(s!==0||1/s===1/i)||s!==s&&i!==i}var An=typeof Object.is=="function"?Object.is:qk;function ha(s,i){if(An(s,i))return!0;if(typeof s!="object"||s===null||typeof i!="object"||i===null)return!1;var c=Object.keys(s),f=Object.keys(i);if(c.length!==f.length)return!1;for(f=0;f<c.length;f++){var y=c[f];if(!d.call(i,y)||!An(s[y],i[y]))return!1}return!0}function Cy(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Ey(s,i){var c=Cy(s);s=0;for(var f;c;){if(c.nodeType===3){if(f=s+c.textContent.length,s<=i&&f>=i)return{node:c,offset:i-s};s=f}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Cy(c)}}function _y(s,i){return s&&i?s===i?!0:s&&s.nodeType===3?!1:i&&i.nodeType===3?_y(s,i.parentNode):"contains"in s?s.contains(i):s.compareDocumentPosition?!!(s.compareDocumentPosition(i)&16):!1:!1}function Ny(){for(var s=window,i=Be();i instanceof s.HTMLIFrameElement;){try{var c=typeof i.contentWindow.location.href=="string"}catch{c=!1}if(c)s=i.contentWindow;else break;i=Be(s.document)}return i}function qd(s){var i=s&&s.nodeName&&s.nodeName.toLowerCase();return i&&(i==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||i==="textarea"||s.contentEditable==="true")}function Kk(s){var i=Ny(),c=s.focusedElem,f=s.selectionRange;if(i!==c&&c&&c.ownerDocument&&_y(c.ownerDocument.documentElement,c)){if(f!==null&&qd(c)){if(i=f.start,s=f.end,s===void 0&&(s=i),"selectionStart"in c)c.selectionStart=i,c.selectionEnd=Math.min(s,c.value.length);else if(s=(i=c.ownerDocument||document)&&i.defaultView||window,s.getSelection){s=s.getSelection();var y=c.textContent.length,x=Math.min(f.start,y);f=f.end===void 0?x:Math.min(f.end,y),!s.extend&&x>f&&(y=f,f=x,x=y),y=Ey(c,x);var N=Ey(c,f);y&&N&&(s.rangeCount!==1||s.anchorNode!==y.node||s.anchorOffset!==y.offset||s.focusNode!==N.node||s.focusOffset!==N.offset)&&(i=i.createRange(),i.setStart(y.node,y.offset),s.removeAllRanges(),x>f?(s.addRange(i),s.extend(N.node,N.offset)):(i.setEnd(N.node,N.offset),s.addRange(i)))}}for(i=[],s=c;s=s.parentNode;)s.nodeType===1&&i.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<i.length;c++)s=i[c],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var Gk=u&&"documentMode"in document&&11>=document.documentMode,Di=null,Kd=null,pa=null,Gd=!1;function ky(s,i,c){var f=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Gd||Di==null||Di!==Be(f)||(f=Di,"selectionStart"in f&&qd(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),pa&&ha(pa,f)||(pa=f,f=rc(Kd,"onSelect"),0<f.length&&(i=new Fd("onSelect","select",null,i,c),s.push({event:i,listeners:f}),i.target=Di)))}function ec(s,i){var c={};return c[s.toLowerCase()]=i.toLowerCase(),c["Webkit"+s]="webkit"+i,c["Moz"+s]="moz"+i,c}var Ii={animationend:ec("Animation","AnimationEnd"),animationiteration:ec("Animation","AnimationIteration"),animationstart:ec("Animation","AnimationStart"),transitionend:ec("Transition","TransitionEnd")},Qd={},Py={};u&&(Py=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function tc(s){if(Qd[s])return Qd[s];if(!Ii[s])return s;var i=Ii[s],c;for(c in i)if(i.hasOwnProperty(c)&&c in Py)return Qd[s]=i[c];return s}var Ty=tc("animationend"),Ry=tc("animationiteration"),jy=tc("animationstart"),Ay=tc("transitionend"),Oy=new Map,My="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 $r(s,i){Oy.set(s,i),a(i,[s])}for(var Yd=0;Yd<My.length;Yd++){var Xd=My[Yd],Qk=Xd.toLowerCase(),Yk=Xd[0].toUpperCase()+Xd.slice(1);$r(Qk,"on"+Yk)}$r(Ty,"onAnimationEnd"),$r(Ry,"onAnimationIteration"),$r(jy,"onAnimationStart"),$r("dblclick","onDoubleClick"),$r("focusin","onFocus"),$r("focusout","onBlur"),$r(Ay,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ma="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(" "),Xk=new Set("cancel close invalid load scroll toggle".split(" ").concat(ma));function Ly(s,i,c){var f=s.type||"unknown-event";s.currentTarget=c,QN(f,i,void 0,s),s.currentTarget=null}function Dy(s,i){i=(i&4)!==0;for(var c=0;c<s.length;c++){var f=s[c],y=f.event;f=f.listeners;e:{var x=void 0;if(i)for(var N=f.length-1;0<=N;N--){var R=f[N],M=R.instance,$=R.currentTarget;if(R=R.listener,M!==x&&y.isPropagationStopped())break e;Ly(y,R,$),x=M}else for(N=0;N<f.length;N++){if(R=f[N],M=R.instance,$=R.currentTarget,R=R.listener,M!==x&&y.isPropagationStopped())break e;Ly(y,R,$),x=M}}}if(Bl)throw s=Pd,Bl=!1,Pd=null,s}function et(s,i){var c=i[of];c===void 0&&(c=i[of]=new Set);var f=s+"__bubble";c.has(f)||(Iy(i,s,2,!1),c.add(f))}function Jd(s,i,c){var f=0;i&&(f|=4),Iy(c,s,f,i)}var nc="_reactListening"+Math.random().toString(36).slice(2);function ga(s){if(!s[nc]){s[nc]=!0,r.forEach(function(c){c!=="selectionchange"&&(Xk.has(c)||Jd(c,!1,s),Jd(c,!0,s))});var i=s.nodeType===9?s:s.ownerDocument;i===null||i[nc]||(i[nc]=!0,Jd("selectionchange",!1,i))}}function Iy(s,i,c,f){switch(oy(i)){case 1:var y=dk;break;case 4:y=fk;break;default:y=Ld}c=y.bind(null,i,c,s),y=void 0,!kd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(y=!0),f?y!==void 0?s.addEventListener(i,c,{capture:!0,passive:y}):s.addEventListener(i,c,!0):y!==void 0?s.addEventListener(i,c,{passive:y}):s.addEventListener(i,c,!1)}function Zd(s,i,c,f,y){var x=f;if((i&1)===0&&(i&2)===0&&f!==null)e:for(;;){if(f===null)return;var N=f.tag;if(N===3||N===4){var R=f.stateNode.containerInfo;if(R===y||R.nodeType===8&&R.parentNode===y)break;if(N===4)for(N=f.return;N!==null;){var M=N.tag;if((M===3||M===4)&&(M=N.stateNode.containerInfo,M===y||M.nodeType===8&&M.parentNode===y))return;N=N.return}for(;R!==null;){if(N=Ds(R),N===null)return;if(M=N.tag,M===5||M===6){f=x=N;continue e}R=R.parentNode}}f=f.return}$g(function(){var $=x,Q=Ed(c),Y=[];e:{var G=Oy.get(s);if(G!==void 0){var oe=Fd,de=s;switch(s){case"keypress":if(Yl(c)===0)break e;case"keydown":case"keyup":oe=kk;break;case"focusin":de="focus",oe=Vd;break;case"focusout":de="blur",oe=Vd;break;case"beforeblur":case"afterblur":oe=Vd;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=cy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=mk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=Rk;break;case Ty:case Ry:case jy:oe=vk;break;case Ay:oe=Ak;break;case"scroll":oe=hk;break;case"wheel":oe=Mk;break;case"copy":case"cut":case"paste":oe=wk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=dy}var me=(i&4)!==0,ft=!me&&s==="scroll",B=me?G!==null?G+"Capture":null:G;me=[];for(var D=$,V;D!==null;){V=D;var Z=V.stateNode;if(V.tag===5&&Z!==null&&(V=Z,B!==null&&(Z=Jo(D,B),Z!=null&&me.push(ya(D,Z,V)))),ft)break;D=D.return}0<me.length&&(G=new oe(G,de,null,c,Q),Y.push({event:G,listeners:me}))}}if((i&7)===0){e:{if(G=s==="mouseover"||s==="pointerover",oe=s==="mouseout"||s==="pointerout",G&&c!==Cd&&(de=c.relatedTarget||c.fromElement)&&(Ds(de)||de[hr]))break e;if((oe||G)&&(G=Q.window===Q?Q:(G=Q.ownerDocument)?G.defaultView||G.parentWindow:window,oe?(de=c.relatedTarget||c.toElement,oe=$,de=de?Ds(de):null,de!==null&&(ft=Ls(de),de!==ft||de.tag!==5&&de.tag!==6)&&(de=null)):(oe=null,de=$),oe!==de)){if(me=cy,Z="onMouseLeave",B="onMouseEnter",D="mouse",(s==="pointerout"||s==="pointerover")&&(me=dy,Z="onPointerLeave",B="onPointerEnter",D="pointer"),ft=oe==null?G:Ui(oe),V=de==null?G:Ui(de),G=new me(Z,D+"leave",oe,c,Q),G.target=ft,G.relatedTarget=V,Z=null,Ds(Q)===$&&(me=new me(B,D+"enter",de,c,Q),me.target=V,me.relatedTarget=ft,Z=me),ft=Z,oe&&de)t:{for(me=oe,B=de,D=0,V=me;V;V=Fi(V))D++;for(V=0,Z=B;Z;Z=Fi(Z))V++;for(;0<D-V;)me=Fi(me),D--;for(;0<V-D;)B=Fi(B),V--;for(;D--;){if(me===B||B!==null&&me===B.alternate)break t;me=Fi(me),B=Fi(B)}me=null}else me=null;oe!==null&&Fy(Y,G,oe,me,!1),de!==null&&ft!==null&&Fy(Y,ft,de,me,!0)}}e:{if(G=$?Ui($):window,oe=G.nodeName&&G.nodeName.toLowerCase(),oe==="select"||oe==="input"&&G.type==="file")var ye=Vk;else if(yy(G))if(xy)ye=Hk;else{ye=zk;var Ce=$k}else(oe=G.nodeName)&&oe.toLowerCase()==="input"&&(G.type==="checkbox"||G.type==="radio")&&(ye=Wk);if(ye&&(ye=ye(s,$))){vy(Y,
vendor: 6,710 bytes, lines 37-38
37ye,c,Q);break e}Ce&&Ce(s,G,$),s==="focusout"&&(Ce=G._wrapperState)&&Ce.controlled&&G.type==="number"&&Ze(G,"number",G.value)}switch(Ce=$?Ui($):window,s){case"focusin":(yy(Ce)||Ce.contentEditable==="true")&&(Di=Ce,Kd=$,pa=null);break;case"focusout":pa=Kd=Di=null;break;case"mousedown":Gd=!0;break;case"contextmenu":case"mouseup":case"dragend":Gd=!1,ky(Y,c,Q);break;case"selectionchange":if(Gk)break;case"keydown":case"keyup":ky(Y,c,Q)}var Ee;if(zd)e:{switch(s){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else Li?my(s,c)&&(Pe="onCompositionEnd"):s==="keydown"&&c.keyCode===229&&(Pe="onCompositionStart");Pe&&(fy&&c.locale!=="ko"&&(Li||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&Li&&(Ee=ay()):(Vr=Q,Id="value"in Vr?Vr.value:Vr.textContent,Li=!0)),Ce=rc($,Pe),0<Ce.length&&(Pe=new uy(Pe,s,null,c,Q),Y.push({event:Pe,listeners:Ce}),Ee?Pe.data=Ee:(Ee=gy(c),Ee!==null&&(Pe.data=Ee)))),(Ee=Dk?Ik(s,c):Fk(s,c))&&($=rc($,"onBeforeInput"),0<$.length&&(Q=new uy("onBeforeInput","beforeinput",null,c,Q),Y.push({event:Q,listeners:$}),Q.data=Ee))}Dy(Y,i)})}function ya(s,i,c){return{instance:s,listener:i,currentTarget:c}}function rc(s,i){for(var c=i+"Capture",f=[];s!==null;){var y=s,x=y.stateNode;y.tag===5&&x!==null&&(y=x,x=Jo(s,c),x!=null&&f.unshift(ya(s,x,y)),x=Jo(s,i),x!=null&&f.push(ya(s,x,y))),s=s.return}return f}function Fi(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Fy(s,i,c,f,y){for(var x=i._reactName,N=[];c!==null&&c!==f;){var R=c,M=R.alternate,$=R.stateNode;if(M!==null&&M===f)break;R.tag===5&&$!==null&&(R=$,y?(M=Jo(c,x),M!=null&&N.unshift(ya(c,M,R))):y||(M=Jo(c,x),M!=null&&N.push(ya(c,M,R)))),c=c.return}N.length!==0&&s.push({event:i,listeners:N})}var Jk=/\r\n?/g,Zk=/\u0000|\uFFFD/g;function By(s){return(typeof s=="string"?s:""+s).replace(Jk,` 38`).replace(Zk,"")}function sc(s,i,c){if(i=By(i),By(s)!==i&&c)throw Error(n(425))}function ic(){}var ef=null,tf=null;function nf(s,i){return s==="textarea"||s==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var rf=typeof setTimeout=="function"?setTimeout:void 0,eP=typeof clearTimeout=="function"?clearTimeout:void 0,Uy=typeof Promise=="function"?Promise:void 0,tP=typeof queueMicrotask=="function"?queueMicrotask:typeof Uy<"u"?function(s){return Uy.resolve(null).then(s).catch(nP)}:rf;function nP(s){setTimeout(function(){throw s})}function sf(s,i){var c=i,f=0;do{var y=c.nextSibling;if(s.removeChild(c),y&&y.nodeType===8)if(c=y.data,c==="/$"){if(f===0){s.removeChild(y),aa(i);return}f--}else c!=="$"&&c!=="$?"&&c!=="$!"||f++;c=y}while(c);aa(i)}function zr(s){for(;s!=null;s=s.nextSibling){var i=s.nodeType;if(i===1||i===3)break;if(i===8){if(i=s.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return s}function Vy(s){s=s.previousSibling;for(var i=0;s;){if(s.nodeType===8){var c=s.data;if(c==="$"||c==="$!"||c==="$?"){if(i===0)return s;i--}else c==="/$"&&i++}s=s.previousSibling}return null}var Bi=Math.random().toString(36).slice(2),Gn="__reactFiber$"+Bi,va="__reactProps$"+Bi,hr="__reactContainer$"+Bi,of="__reactEvents$"+Bi,rP="__reactListeners$"+Bi,sP="__reactHandles$"+Bi;function Ds(s){var i=s[Gn];if(i)return i;for(var c=s.parentNode;c;){if(i=c[hr]||c[Gn]){if(c=i.alternate,i.child!==null||c!==null&&c.child!==null)for(s=Vy(s);s!==null;){if(c=s[Gn])return c;s=Vy(s)}return i}s=c,c=s.parentNode}return null}function xa(s){return s=s[Gn]||s[hr],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Ui(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function oc(s){return s[va]||null}var af=[],Vi=-1;function Wr(s){return{current:s}}function tt(s){0>Vi||(s.current=af[Vi],af[Vi]=null,Vi--)}function Xe(s,i){Vi++,af[Vi]=s.current,s.current=i}var Hr={},Mt=Wr(Hr),Yt=Wr(!1),Is=Hr;function $i(s,i){var c=s.type.contextTypes;if(!c)return Hr;var f=s.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===i)return f.__reactInternalMemoizedMaskedChildContext;var y={},x;for(x in c)y[x]=i[x];return f&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=i,s.__reactInternalMemoizedMaskedChildContext=y),y}function Xt(s){return s=s.childContextTypes,s!=null}function ac(){tt(Yt),tt(Mt)}function $y(s,i,c){if(Mt.current!==Hr)throw Error(n(168));Xe(Mt,i),Xe(Yt,c)}function zy(s,i,c){var f=s.stateNode;if(i=i.childContextTypes,typeof f.getChildContext!="function")return c;f=f.getChildContext();for(var y in f)if(!(y in i))throw Error(n(108,K(s)||"Unknown",y));return W({},c,f)}function lc(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Hr,Is=Mt.current,Xe(Mt,s),Xe(Yt,Yt.current),!0}function Wy(s,i,c){var f=s.stateNode;if(!f)throw Error(n(169));c?(s=zy(s,i,Is),f.__reactInternalMemoizedMergedChildContext=s,tt(Yt),tt(Mt),Xe(Mt,s)):tt(Yt),Xe(Yt,c)}var pr=null,cc=!1,lf=!1;function Hy(s){pr===null?pr=[s]:pr.push(s)}function iP(s){cc=!0,Hy(s)}function qr(){if(!lf&&pr!==null){lf=!0;var s=0,i=Ke;try{var c=pr;for(Ke=1;s<c.length;s++){var f=c[s];do f=f(!0);while(f!==null)}pr=null,cc=!1}catch(y){throw pr!==null&&(pr=pr.slice(s+1)),Kg(Td,qr),y}finally{Ke=i,lf=!1}}return null}var zi=[],Wi=0,uc=null,dc=0,gn=[],yn=0,Fs=null,mr=1,gr="";function Bs(s,i){zi[Wi++]=dc,zi[Wi++]=uc,uc=s,dc=i}function qy(s,i,c){gn[yn++]=mr,gn[yn++]=gr,gn[yn++]=Fs,Fs=s;var f=mr;s=gr;var y=32-jn(f)-1;f&=~(1<<y),c+=1;var x=32-jn(i)+y;if(30<x){var N=y-y%5;x=(f&(1<<N)-1).toString(32),f>>=N,y-=N,mr=1<<32-jn(i)+y|c<<y|f,gr=x+s}else mr=1<<x|c<<y|f,gr=s}function cf(s){s.return!==null&&(Bs(s,1),qy(s,1,0))}function uf(s){for(;s===uc;)uc=zi[--Wi],zi[Wi]=null,dc=zi[--Wi],zi[Wi]=null;for(;s===Fs;)Fs=gn[--yn],gn[yn]=null,gr=gn[--yn],gn[yn]=null,mr=gn[--yn],gn[yn]=null}var an=null,ln=null,rt=!1,On=null;function Ky(s,i){var c=bn(5,null,null,0);c.elementType="DELETED",c.stateNode=i,c.return=s,i=s.deletions,i===null?(s.deletions=[c],s.flags|=16):i.push(c)}function Gy(s,i){switch(s.tag){case 5:var c=s.type;return i=i.nodeType!==1||c.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(s.stateNode=i,an=s,ln=zr(i.firstChild),!0):!1;case 6:return i=s.pendingProps===""||i.nodeType!==3?null:i,i!==null?(s.stateNode=i,an=s,ln=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(c=Fs!==null?{id:mr,overflow:gr}:null,s.memoizedState={dehydrated:i,treeContext:c,retryLane:1073741824},c=bn(18,null,null,0),c.stateNode=i,c.return=s,s.child=c,an=s,ln=null,!0):!1;default:return!1}}function df(s){return(s.mode&1)!==0&&(s.flags&128)===0}function ff(s){if(rt){var i=ln;if(i){var c=i;
vendor: 2,928 bytes, line 38
38if(!Gy(s,i)){if(df(s))throw Error(n(418));i=zr(c.nextSibling);var f=an;i&&Gy(s,i)?Ky(f,c):(s.flags=s.flags&-4097|2,rt=!1,an=s)}}else{if(df(s))throw Error(n(418));s.flags=s.flags&-4097|2,rt=!1,an=s}}}function Qy(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;an=s}function fc(s){if(s!==an)return!1;if(!rt)return Qy(s),rt=!0,!1;var i;if((i=s.tag!==3)&&!(i=s.tag!==5)&&(i=s.type,i=i!=="head"&&i!=="body"&&!nf(s.type,s.memoizedProps)),i&&(i=ln)){if(df(s))throw Yy(),Error(n(418));for(;i;)Ky(s,i),i=zr(i.nextSibling)}if(Qy(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,i=0;s;){if(s.nodeType===8){var c=s.data;if(c==="/$"){if(i===0){ln=zr(s.nextSibling);break e}i--}else c!=="$"&&c!=="$!"&&c!=="$?"||i++}s=s.nextSibling}ln=null}}else ln=an?zr(s.stateNode.nextSibling):null;return!0}function Yy(){for(var s=ln;s;)s=zr(s.nextSibling)}function Hi(){ln=an=null,rt=!1}function hf(s){On===null?On=[s]:On.push(s)}var oP=T.ReactCurrentBatchConfig;function wa(s,i,c){if(s=c.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(n(309));var f=c.stateNode}if(!f)throw Error(n(147,s));var y=f,x=""+s;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===x?i.ref:(i=function(N){var R=y.refs;N===null?delete R[x]:R[x]=N},i._stringRef=x,i)}if(typeof s!="string")throw Error(n(284));if(!c._owner)throw Error(n(290,s))}return s}function hc(s,i){throw s=Object.prototype.toString.call(i),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":s))}function Xy(s){var i=s._init;return i(s._payload)}function Jy(s){function i(B,D){if(s){var V=B.deletions;V===null?(B.deletions=[D],B.flags|=16):V.push(D)}}function c(B,D){if(!s)return null;for(;D!==null;)i(B,D),D=D.sibling;return null}function f(B,D){for(B=new Map;D!==null;)D.key!==null?B.set(D.key,D):B.set(D.index,D),D=D.sibling;return B}function y(B,D){return B=es(B,D),B.index=0,B.sibling=null,B}function x(B,D,V){return B.index=V,s?(V=B.alternate,V!==null?(V=V.index,V<D?(B.flags|=2,D):V):(B.flags|=2,D)):(B.flags|=1048576,D)}function N(B){return s&&B.alternate===null&&(B.flags|=2),B}function R(B,D,V,Z){return D===null||D.tag!==6?(D=sh(V,B.mode,Z),D.return=B,D):(D=y(D,V),D.return=B,D)}function M(B,D,V,Z){var ye=V.type;return ye===U?Q(B,D,V.props.children,Z,V.key):D!==null&&(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===J&&Xy(ye)===D.type)?(Z=y(D,V.props),Z.ref=wa(B,D,V),Z.return=B,Z):(Z=Ic(V.type,V.key,V.props,null,B.mode,Z),Z.ref=wa(B,D,V),Z.return=B,Z)}function $(B,D,V,Z){return D===null||D.tag!==4||D.stateNode.containerInfo!==V.containerInfo||D.stateNode.implementation!==V.implementation?(D=ih(V,B.mode,Z),D.return=B,D):(D=y(D,V.children||[]),D.return=B,D)}function Q(B,D,V,Z,ye){return D===null||D.tag!==7?(D=Ks(V,B.mode,Z,ye),D.return=B,D):(D=y(D,V),D.return=B,D)}
vendor: 9,566 bytes, line 38
38function Y(B,D,V){if(typeof D=="string"&&D!==""||typeof D=="number")return D=sh(""+D,B.mode,V),D.return=B,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case j:return V=Ic(D.type,D.key,D.props,null,B.mode,V),V.ref=wa(B,null,D),V.return=B,V;case F:return D=ih(D,B.mode,V),D.return=B,D;case J:var Z=D._init;return Y(B,Z(D._payload),V)}if(Gt(D)||te(D))return D=Ks(D,B.mode,V,null),D.return=B,D;hc(B,D)}return null}function G(B,D,V,Z){var ye=D!==null?D.key:null;if(typeof V=="string"&&V!==""||typeof V=="number")return ye!==null?null:R(B,D,""+V,Z);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case j:return V.key===ye?M(B,D,V,Z):null;case F:return V.key===ye?$(B,D,V,Z):null;case J:return ye=V._init,G(B,D,ye(V._payload),Z)}if(Gt(V)||te(V))return ye!==null?null:Q(B,D,V,Z,null);hc(B,V)}return null}function oe(B,D,V,Z,ye){if(typeof Z=="string"&&Z!==""||typeof Z=="number")return B=B.get(V)||null,R(D,B,""+Z,ye);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case j:return B=B.get(Z.key===null?V:Z.key)||null,M(D,B,Z,ye);case F:return B=B.get(Z.key===null?V:Z.key)||null,$(D,B,Z,ye);case J:var Ce=Z._init;return oe(B,D,V,Ce(Z._payload),ye)}if(Gt(Z)||te(Z))return B=B.get(V)||null,Q(D,B,Z,ye,null);hc(D,Z)}return null}function de(B,D,V,Z){for(var ye=null,Ce=null,Ee=D,Pe=D=0,kt=null;Ee!==null&&Pe<V.length;Pe++){Ee.index>Pe?(kt=Ee,Ee=null):kt=Ee.sibling;var Ue=G(B,Ee,V[Pe],Z);if(Ue===null){Ee===null&&(Ee=kt);break}s&&Ee&&Ue.alternate===null&&i(B,Ee),D=x(Ue,D,Pe),Ce===null?ye=Ue:Ce.sibling=Ue,Ce=Ue,Ee=kt}if(Pe===V.length)return c(B,Ee),rt&&Bs(B,Pe),ye;if(Ee===null){for(;Pe<V.length;Pe++)Ee=Y(B,V[Pe],Z),Ee!==null&&(D=x(Ee,D,Pe),Ce===null?ye=Ee:Ce.sibling=Ee,Ce=Ee);return rt&&Bs(B,Pe),ye}for(Ee=f(B,Ee);Pe<V.length;Pe++)kt=oe(Ee,B,Pe,V[Pe],Z),kt!==null&&(s&&kt.alternate!==null&&Ee.delete(kt.key===null?Pe:kt.key),D=x(kt,D,Pe),Ce===null?ye=kt:Ce.sibling=kt,Ce=kt);return s&&Ee.forEach(function(ts){return i(B,ts)}),rt&&Bs(B,Pe),ye}function me(B,D,V,Z){var ye=te(V);if(typeof ye!="function")throw Error(n(150));if(V=ye.call(V),V==null)throw Error(n(151));for(var Ce=ye=null,Ee=D,Pe=D=0,kt=null,Ue=V.next();Ee!==null&&!Ue.done;Pe++,Ue=V.next()){Ee.index>Pe?(kt=Ee,Ee=null):kt=Ee.sibling;var ts=G(B,Ee,Ue.value,Z);if(ts===null){Ee===null&&(Ee=kt);break}s&&Ee&&ts.alternate===null&&i(B,Ee),D=x(ts,D,Pe),Ce===null?ye=ts:Ce.sibling=ts,Ce=ts,Ee=kt}if(Ue.done)return c(B,Ee),rt&&Bs(B,Pe),ye;if(Ee===null){for(;!Ue.done;Pe++,Ue=V.next())Ue=Y(B,Ue.value,Z),Ue!==null&&(D=x(Ue,D,Pe),Ce===null?ye=Ue:Ce.sibling=Ue,Ce=Ue);return rt&&Bs(B,Pe),ye}for(Ee=f(B,Ee);!Ue.done;Pe++,Ue=V.next())Ue=oe(Ee,B,Pe,Ue.value,Z),Ue!==null&&(s&&Ue.alternate!==null&&Ee.delete(Ue.key===null?Pe:Ue.key),D=x(Ue,D,Pe),Ce===null?ye=Ue:Ce.sibling=Ue,Ce=Ue);return s&&Ee.forEach(function(BP){return i(B,BP)}),rt&&Bs(B,Pe),ye}function ft(B,D,V,Z){if(typeof V=="object"&&V!==null&&V.type===U&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case j:e:{for(var ye=V.key,Ce=D;Ce!==null;){if(Ce.key===ye){if(ye=V.type,ye===U){if(Ce.tag===7){c(B,Ce.sibling),D=y(Ce,V.props.children),D.return=B,B=D;break e}}else if(Ce.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===J&&Xy(ye)===Ce.type){c(B,Ce.sibling),D=y(Ce,V.props),D.ref=wa(B,Ce,V),D.return=B,B=D;break e}c(B,Ce);break}else i(B,Ce);Ce=Ce.sibling}V.type===U?(D=Ks(V.props.children,B.mode,Z,V.key),D.return=B,B=D):(Z=Ic(V.type,V.key,V.props,null,B.mode,Z),Z.ref=wa(B,D,V),Z.return=B,B=Z)}return N(B);case F:e:{for(Ce=V.key;D!==null;){if(D.key===Ce)if(D.tag===4&&D.stateNode.containerInfo===V.containerInfo&&D.stateNode.implementation===V.implementation){c(B,D.sibling),D=y(D,V.children||[]),D.return=B,B=D;break e}else{c(B,D);break}else i(B,D);D=D.sibling}D=ih(V,B.mode,Z),D.return=B,B=D}return N(B);case J:return Ce=V._init,ft(B,D,Ce(V._payload),Z)}if(Gt(V))return de(B,D,V,Z);if(te(V))return me(B,D,V,Z);hc(B,V)}return typeof V=="string"&&V!==""||typeof V=="number"?(V=""+V,D!==null&&D.tag===6?(c(B,D.sibling),D=y(D,V),D.return=B,B=D):(c(B,D),D=sh(V,B.mode,Z),D.return=B,B=D),N(B)):c(B,D)}return ft}var qi=Jy(!0),Zy=Jy(!1),pc=Wr(null),mc=null,Ki=null,pf=null;function mf(){pf=Ki=mc=null}function gf(s){var i=pc.current;tt(pc),s._currentValue=i}function yf(s,i,c){for(;s!==null;){var f=s.alternate;if((s.childLanes&i)!==i?(s.childLanes|=i,f!==null&&(f.childLanes|=i)):f!==null&&(f.childLanes&i)!==i&&(f.childLanes|=i),s===c)break;s=s.return}}function Gi(s,i){mc=s,pf=Ki=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&i)!==0&&(Jt=!0),s.firstContext=null)}function vn(s){var i=s._currentValue;if(pf!==s)if(s={context:s,memoizedValue:i,next:null},Ki===null){if(mc===null)throw Error(n(308));Ki=s,mc.dependencies={lanes:0,firstContext:s}}else Ki=Ki.next=s;return i}var Us=null;function vf(s){Us===null?Us=[s]:Us.push(s)}function ev(s,i,c,f){var y=i.interleaved;return y===null?(c.next=c,vf(i)):(c.next=y.next,y.next=c),i.interleaved=c,yr(s,f)}function yr(s,i){s.lanes|=i;var c=s.alternate;for(c!==null&&(c.lanes|=i),c=s,s=s.return;s!==null;)s.childLanes|=i,c=s.alternate,c!==null&&(c.childLanes|=i),c=s,s=s.return;return c.tag===3?c.stateNode:null}var Kr=!1;function xf(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tv(s,i){s=s.updateQueue,i.updateQueue===s&&(i.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function vr(s,i){return{eventTime:s,lane:i,tag:0,payload:null,callback:null,next:null}}function Gr(s,i,c){var f=s.updateQueue;if(f===null)return null;if(f=f.shared,(Fe&2)!==0){var y=f.pending;return y===null?i.next=i:(i.next=y.next,y.next=i),f.pending=i,yr(s,c)}return y=f.interleaved,y===null?(i.next=i,vf(f)):(i.next=y.next,y.next=i),f.interleaved=i,yr(s,c)}function gc(s,i,c){if(i=i.updateQueue,i!==null&&(i=i.shared,(c&4194240)!==0)){var f=i.lanes;f&=s.pendingLanes,c|=f,i.lanes=c,Ad(s,c)}}function nv(s,i){var c=s.updateQueue,f=s.alternate;if(f!==null&&(f=f.updateQueue,c===f)){var y=null,x=null;if(c=c.firstBaseUpdate,c!==null){do{var N={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};x===null?y=x=N:x=x.next=N,c=c.next}while(c!==null);x===null?y=x=i:x=x.next=i}else y=x=i;c={baseState:f.baseState,firstBaseUpdate:y,lastBaseUpdate:x,shared:f.shared,effects:f.effects},s.updateQueue=c;return}s=c.lastBaseUpdate,s===null?c.firstBaseUpdate=i:s.next=i,c.lastBaseUpdate=i}function yc(s,i,c,f){var y=s.updateQueue;Kr=!1;var x=y.firstBaseUpdate,N=y.lastBaseUpdate,R=y.shared.pending;if(R!==null){y.shared.pending=null;var M=R,$=M.next;M.next=null,N===null?x=$:N.next=$,N=M;var Q=s.alternate;Q!==null&&(Q=Q.updateQueue,R=Q.lastBaseUpdate,R!==N&&(R===null?Q.firstBaseUpdate=$:R.next=$,Q.lastBaseUpdate=M))}if(x!==null){var Y=y.baseState;N=0,Q=$=M=null,R=x;do{var G=R.lane,oe=R.eventTime;if((f&G)===G){Q!==null&&(Q=Q.next={eventTime:oe,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var de=s,me=R;switch(G=i,oe=c,me.tag){case 1:if(de=me.payload,typeof de=="function"){Y=de.call(oe,Y,G);break e}Y=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=me.payload,G=typeof de=="function"?de.call(oe,Y,G):de,G==null)break e;Y=W({},Y,G);break e;case 2:Kr=!0}}R.callback!==null&&R.lane!==0&&(s.flags|=64,G=y.effects,G===null?y.effects=[R]:G.push(R))}else oe={eventTime:oe,lane:G,tag:R.tag,payload:R.payload,callback:R.callback,next:null},Q===null?($=Q=oe,M=Y):Q=Q.next=oe,N|=G;if(R=R.next,R===null){if(R=y.shared.pending,R===null)break;G=R,R=G.next,G.next=null,y.lastBaseUpdate=G,y.shared.pending=null}}while(!0);if(Q===null&&(M=Y),y.baseState=M,y.firstBaseUpdate=$,y.lastBaseUpdate=Q,i=y.shared.interleaved,i!==null){y=i;do N|=y.lane,y=y.next;while(y!==i)}else x===null&&(y.shared.lanes=0);zs|=N,s.lanes=N,s.memoizedState=Y}}function rv(s,i,c){if(s=i.effects,i.effects=null,s!==null)for(i=0;i<s.length;i++){var f=s[i],y=f.callback;if(y!==null){if(f.callback=null,f=c,typeof y!="function")throw Error(n(191,y));y.call(f)}}}var ba={},Qn=Wr(ba),Sa=Wr(ba),Ca=Wr(ba);function Vs(s){if(s===ba)throw Error(n(174));return s}function wf(s,i){switch(Xe(Ca,i),Xe(Sa,s),Xe(Qn,ba),s=i.nodeType,s){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:wd(null,"");break;default:s=s===8?i.parentNode:i,i=s.namespaceURI||null,s=s.tagName,i=wd(i,s)}tt(Qn),Xe(Qn,i)}function Qi(){tt(Qn),tt(Sa),tt(Ca)}function sv(s){Vs(Ca.current);var i=Vs(Qn.current),c=wd(i,s.type);i!==c&&(Xe(Sa,s),Xe(Qn,c))}function bf(s){Sa.current===s&&(tt(Qn),tt(Sa))}var st=Wr(0);function vc(s){for(var i=s;i!==null;){if(i.tag===13){var c=i.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Sf=[];function Cf(){for(var s=0;s<Sf.length;s++)Sf[s]._workInProgressVersionPrimary=null;Sf.length=0}var xc=T.ReactCurrentDispatcher,Ef=T.ReactCurrentBatchConfig,$s=0,it=null,wt=null,_t=null,wc=!1,Ea=!1,_a=0,aP=0;function Lt(){throw Error(n(321))}function _f(s,i){if(i===null)return!1;for(var c=0;c<i.length&&c<s.length;c++)if(!An(s[c],i[c]))return!1;return!0}function Nf(s,i,c,f,y,x){if($s=x,it=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,xc.current=s===null||s.memoizedState===null?dP:fP,s=c(f,y),Ea){x=0;
vendor: 4,632 bytes, line 38
38do{if(Ea=!1,_a=0,25<=x)throw Error(n(301));x+=1,_t=wt=null,i.updateQueue=null,xc.current=hP,s=c(f,y)}while(Ea)}if(xc.current=Cc,i=wt!==null&&wt.next!==null,$s=0,_t=wt=it=null,wc=!1,i)throw Error(n(300));return s}function kf(){var s=_a!==0;return _a=0,s}function Yn(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?it.memoizedState=_t=s:_t=_t.next=s,_t}function xn(){if(wt===null){var s=it.alternate;s=s!==null?s.memoizedState:null}else s=wt.next;var i=_t===null?it.memoizedState:_t.next;if(i!==null)_t=i,wt=s;else{if(s===null)throw Error(n(310));wt=s,s={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},_t===null?it.memoizedState=_t=s:_t=_t.next=s}return _t}function Na(s,i){return typeof i=="function"?i(s):i}function Pf(s){var i=xn(),c=i.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=s;var f=wt,y=f.baseQueue,x=c.pending;if(x!==null){if(y!==null){var N=y.next;y.next=x.next,x.next=N}f.baseQueue=y=x,c.pending=null}if(y!==null){x=y.next,f=f.baseState;var R=N=null,M=null,$=x;do{var Q=$.lane;if(($s&Q)===Q)M!==null&&(M=M.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),f=$.hasEagerState?$.eagerState:s(f,$.action);else{var Y={lane:Q,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};M===null?(R=M=Y,N=f):M=M.next=Y,it.lanes|=Q,zs|=Q}$=$.next}while($!==null&&$!==x);M===null?N=f:M.next=R,An(f,i.memoizedState)||(Jt=!0),i.memoizedState=f,i.baseState=N,i.baseQueue=M,c.lastRenderedState=f}if(s=c.interleaved,s!==null){y=s;do x=y.lane,it.lanes|=x,zs|=x,y=y.next;while(y!==s)}else y===null&&(c.lanes=0);return[i.memoizedState,c.dispatch]}function Tf(s){var i=xn(),c=i.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=s;var f=c.dispatch,y=c.pending,x=i.memoizedState;if(y!==null){c.pending=null;var N=y=y.next;do x=s(x,N.action),N=N.next;while(N!==y);An(x,i.memoizedState)||(Jt=!0),i.memoizedState=x,i.baseQueue===null&&(i.baseState=x),c.lastRenderedState=x}return[x,f]}function iv(){}function ov(s,i){var c=it,f=xn(),y=i(),x=!An(f.memoizedState,y);if(x&&(f.memoizedState=y,Jt=!0),f=f.queue,Rf(cv.bind(null,c,f,s),[s]),f.getSnapshot!==i||x||_t!==null&&_t.memoizedState.tag&1){if(c.flags|=2048,ka(9,lv.bind(null,c,f,y,i),void 0,null),Nt===null)throw Error(n(349));($s&30)!==0||av(c,i,y)}return y}function av(s,i,c){s.flags|=16384,s={getSnapshot:i,value:c},i=it.updateQueue,i===null?(i={lastEffect:null,stores:null},it.updateQueue=i,i.stores=[s]):(c=i.stores,c===null?i.stores=[s]:c.push(s))}function lv(s,i,c,f){i.value=c,i.getSnapshot=f,uv(i)&&dv(s)}function cv(s,i,c){return c(function(){uv(i)&&dv(s)})}function uv(s){var i=s.getSnapshot;s=s.value;try{var c=i();return!An(s,c)}catch{return!0}}function dv(s){var i=yr(s,1);i!==null&&In(i,s,1,-1)}function fv(s){var i=Yn();return typeof s=="function"&&(s=s()),i.memoizedState=i.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:s},i.queue=s,s=s.dispatch=uP.bind(null,it,s),[i.memoizedState,s]}function ka(s,i,c,f){return s={tag:s,create:i,destroy:c,deps:f,next:null},i=it.updateQueue,i===null?(i={lastEffect:null,stores:null},it.updateQueue=i,i.lastEffect=s.next=s):(c=i.lastEffect,c===null?i.lastEffect=s.next=s:(f=c.next,c.next=s,s.next=f,i.lastEffect=s)),s}function hv(){return xn().memoizedState}function bc(s,i,c,f){var y=Yn();it.flags|=s,y.memoizedState=ka(1|i,c,void 0,f===void 0?null:f)}function Sc(s,i,c,f){var y=xn();f=f===void 0?null:f;var x=void 0;if(wt!==null){var N=wt.memoizedState;if(x=N.destroy,f!==null&&_f(f,N.deps)){y.memoizedState=ka(i,c,x,f);return}}it.flags|=s,y.memoizedState=ka(1|i,c,x,f)}function pv(s,i){return bc(8390656,8,s,i)}function Rf(s,i){return Sc(2048,8,s,i)}function mv(s,i){return Sc(4,2,s,i)}function gv(s,i){return Sc(4,4,s,i)}function yv(s,i){if(typeof i=="function")return s=s(),i(s),function(){i(null)};if(i!=null)return s=s(),i.current=s,function(){i.current=null}}function vv(s,i,c){return c=c!=null?c.concat([s]):null,Sc(4,4,yv.bind(null,i,s),c)}function jf(){}function xv(s,i){var c=xn();i=i===void 0?null:i;var f=c.memoizedState;return f!==null&&i!==null&&_f(i,f[1])?f[0]:(c.memoizedState=[s,i],s)}function wv(s,i){var c=xn();i=i===void 0?null:i;var f=c.memoizedState;return f!==null&&i!==null&&_f(i,f[1])?f[0]:(s=s(),c.memoizedState=[s,i],s)}function bv(s,i,c){return($s&21)===0?(s.baseState&&(s.baseState=!1,Jt=!0),s.memoizedState=c):(An(c,i)||(c=Xg(),it.lanes|=c,zs|=c,s.baseState=!0),i)}function lP(s,i){var c=Ke;Ke=c!==0&&4>c?c:4,s(!0);var f=Ef.transition;Ef.transition={};
vendor: 4,085 bytes, line 38
38try{s(!1),i()}finally{Ke=c,Ef.transition=f}}function Sv(){return xn().memoizedState}function cP(s,i,c){var f=Jr(s);if(c={lane:f,action:c,hasEagerState:!1,eagerState:null,next:null},Cv(s))Ev(i,c);else if(c=ev(s,i,c,f),c!==null){var y=Ht();In(c,s,f,y),_v(c,i,f)}}function uP(s,i,c){var f=Jr(s),y={lane:f,action:c,hasEagerState:!1,eagerState:null,next:null};if(Cv(s))Ev(i,y);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=i.lastRenderedReducer,x!==null))try{var N=i.lastRenderedState,R=x(N,c);if(y.hasEagerState=!0,y.eagerState=R,An(R,N)){var M=i.interleaved;M===null?(y.next=y,vf(i)):(y.next=M.next,M.next=y),i.interleaved=y;return}}catch{}finally{}c=ev(s,i,y,f),c!==null&&(y=Ht(),In(c,s,f,y),_v(c,i,f))}}function Cv(s){var i=s.alternate;return s===it||i!==null&&i===it}function Ev(s,i){Ea=wc=!0;var c=s.pending;c===null?i.next=i:(i.next=c.next,c.next=i),s.pending=i}function _v(s,i,c){if((c&4194240)!==0){var f=i.lanes;f&=s.pendingLanes,c|=f,i.lanes=c,Ad(s,c)}}var Cc={readContext:vn,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useInsertionEffect:Lt,useLayoutEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useMutableSource:Lt,useSyncExternalStore:Lt,useId:Lt,unstable_isNewReconciler:!1},dP={readContext:vn,useCallback:function(s,i){return Yn().memoizedState=[s,i===void 0?null:i],s},useContext:vn,useEffect:pv,useImperativeHandle:function(s,i,c){return c=c!=null?c.concat([s]):null,bc(4194308,4,yv.bind(null,i,s),c)},useLayoutEffect:function(s,i){return bc(4194308,4,s,i)},useInsertionEffect:function(s,i){return bc(4,2,s,i)},useMemo:function(s,i){var c=Yn();return i=i===void 0?null:i,s=s(),c.memoizedState=[s,i],s},useReducer:function(s,i,c){var f=Yn();return i=c!==void 0?c(i):i,f.memoizedState=f.baseState=i,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:i},f.queue=s,s=s.dispatch=cP.bind(null,it,s),[f.memoizedState,s]},useRef:function(s){var i=Yn();return s={current:s},i.memoizedState=s},useState:fv,useDebugValue:jf,useDeferredValue:function(s){return Yn().memoizedState=s},useTransition:function(){var s=fv(!1),i=s[0];return s=lP.bind(null,s[1]),Yn().memoizedState=s,[i,s]},useMutableSource:function(){},useSyncExternalStore:function(s,i,c){var f=it,y=Yn();if(rt){if(c===void 0)throw Error(n(407));c=c()}else{if(c=i(),Nt===null)throw Error(n(349));($s&30)!==0||av(f,i,c)}y.memoizedState=c;var x={value:c,getSnapshot:i};return y.queue=x,pv(cv.bind(null,f,x,s),[s]),f.flags|=2048,ka(9,lv.bind(null,f,x,c,i),void 0,null),c},useId:function(){var s=Yn(),i=Nt.identifierPrefix;if(rt){var c=gr,f=mr;c=(f&~(1<<32-jn(f)-1)).toString(32)+c,i=":"+i+"R"+c,c=_a++,0<c&&(i+="H"+c.toString(32)),i+=":"}else c=aP++,i=":"+i+"r"+c.toString(32)+":";return s.memoizedState=i},unstable_isNewReconciler:!1},fP={readContext:vn,useCallback:xv,useContext:vn,useEffect:Rf,useImperativeHandle:vv,useInsertionEffect:mv,useLayoutEffect:gv,useMemo:wv,useReducer:Pf,useRef:hv,useState:function(){return Pf(Na)},useDebugValue:jf,useDeferredValue:function(s){var i=xn();return bv(i,wt.memoizedState,s)},useTransition:function(){var s=Pf(Na)[0],i=xn().memoizedState;return[s,i]},useMutableSource:iv,useSyncExternalStore:ov,useId:Sv,unstable_isNewReconciler:!1},hP={readContext:vn,useCallback:xv,useContext:vn,useEffect:Rf,useImperativeHandle:vv,useInsertionEffect:mv,useLayoutEffect:gv,useMemo:wv,useReducer:Tf,useRef:hv,useState:function(){return Tf(Na)},useDebugValue:jf,useDeferredValue:function(s){var i=xn();return wt===null?i.memoizedState=s:bv(i,wt.memoizedState,s)},useTransition:function(){var s=Tf(Na)[0],i=xn().memoizedState;return[s,i]},useMutableSource:iv,useSyncExternalStore:ov,useId:Sv,unstable_isNewReconciler:!1};function Mn(s,i){if(s&&s.defaultProps){i=W({},i),s=s.defaultProps;for(var c in s)i[c]===void 0&&(i[c]=s[c]);return i}return i}function Af(s,i,c,f){i=s.memoizedState,c=c(f,i),c=c==null?i:W({},i,c),s.memoizedState=c,s.lanes===0&&(s.updateQueue.baseState=c)}var Ec={isMounted:function(s){return(s=s._reactInternals)?Ls(s)===s:!1}
vendor: 5,346 bytes, lines 38-40
38,enqueueSetState:function(s,i,c){s=s._reactInternals;var f=Ht(),y=Jr(s),x=vr(f,y);x.payload=i,c!=null&&(x.callback=c),i=Gr(s,x,y),i!==null&&(In(i,s,y,f),gc(i,s,y))},enqueueReplaceState:function(s,i,c){s=s._reactInternals;var f=Ht(),y=Jr(s),x=vr(f,y);x.tag=1,x.payload=i,c!=null&&(x.callback=c),i=Gr(s,x,y),i!==null&&(In(i,s,y,f),gc(i,s,y))},enqueueForceUpdate:function(s,i){s=s._reactInternals;var c=Ht(),f=Jr(s),y=vr(c,f);y.tag=2,i!=null&&(y.callback=i),i=Gr(s,y,f),i!==null&&(In(i,s,f,c),gc(i,s,f))}};function Nv(s,i,c,f,y,x,N){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(f,x,N):i.prototype&&i.prototype.isPureReactComponent?!ha(c,f)||!ha(y,x):!0}function kv(s,i,c){var f=!1,y=Hr,x=i.contextType;return typeof x=="object"&&x!==null?x=vn(x):(y=Xt(i)?Is:Mt.current,f=i.contextTypes,x=(f=f!=null)?$i(s,y):Hr),i=new i(c,x),s.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Ec,s.stateNode=i,i._reactInternals=s,f&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=y,s.__reactInternalMemoizedMaskedChildContext=x),i}function Pv(s,i,c,f){s=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(c,f),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(c,f),i.state!==s&&Ec.enqueueReplaceState(i,i.state,null)}function Of(s,i,c,f){var y=s.stateNode;y.props=c,y.state=s.memoizedState,y.refs={},xf(s);var x=i.contextType;typeof x=="object"&&x!==null?y.context=vn(x):(x=Xt(i)?Is:Mt.current,y.context=$i(s,x)),y.state=s.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&(Af(s,i,x,c),y.state=s.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(i=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),i!==y.state&&Ec.enqueueReplaceState(y,y.state,null),yc(s,c,y,f),y.state=s.memoizedState),typeof y.componentDidMount=="function"&&(s.flags|=4194308)}function Yi(s,i){try{var c="",f=i;do c+=ge(f),f=f.return;while(f);var y=c}catch(x){y=` 39Error generating stack: `+x.message+` 40`+x.stack}return{value:s,source:i,stack:y,digest:null}}function Mf(s,i,c){return{value:s,source:null,stack:c??null,digest:i??null}}function Lf(s,i){try{console.error(i.value)}catch(c){setTimeout(function(){throw c})}}var pP=typeof WeakMap=="function"?WeakMap:Map;function Tv(s,i,c){c=vr(-1,c),c.tag=3,c.payload={element:null};var f=i.value;return c.callback=function(){jc||(jc=!0,Yf=f),Lf(s,i)},c}function Rv(s,i,c){c=vr(-1,c),c.tag=3;var f=s.type.getDerivedStateFromError;if(typeof f=="function"){var y=i.value;c.payload=function(){return f(y)},c.callback=function(){Lf(s,i)}}var x=s.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(c.callback=function(){Lf(s,i),typeof f!="function"&&(Yr===null?Yr=new Set([this]):Yr.add(this));var N=i.stack;this.componentDidCatch(i.value,{componentStack:N!==null?N:""})}),c}function jv(s,i,c){var f=s.pingCache;if(f===null){f=s.pingCache=new pP;var y=new Set;f.set(i,y)}else y=f.get(i),y===void 0&&(y=new Set,f.set(i,y));y.has(c)||(y.add(c),s=PP.bind(null,s,i,c),i.then(s,s))}function Av(s){do{var i;if((i=s.tag===13)&&(i=s.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return s;s=s.return}while(s!==null);return null}function Ov(s,i,c,f,y){return(s.mode&1)===0?(s===i?s.flags|=65536:(s.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(i=vr(-1,1),i.tag=2,Gr(c,i,1))),c.lanes|=1),s):(s.flags|=65536,s.lanes=y,s)}var mP=T.ReactCurrentOwner,Jt=!1;function Wt(s,i,c,f){i.child=s===null?Zy(i,null,c,f):qi(i,s.child,c,f)}function Mv(s,i,c,f,y){c=c.render;var x=i.ref;return Gi(i,y),f=Nf(s,i,c,f,x,y),c=kf(),s!==null&&!Jt?(i.updateQueue=s.updateQueue,i.flags&=-2053,s.lanes&=~y,xr(s,i,y)):(rt&&c&&cf(i),i.flags|=1,Wt(s,i,f,y),i.child)}function Lv(s,i,c,f,y){if(s===null){var x=c.type;return typeof x=="function"&&!rh(x)&&x.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(i.tag=15,i.type=x,Dv(s,i,x,f,y)):(s=Ic(c.type,null,f,i,i.mode,y),s.ref=i.ref,s.return=i,i.child=s)}if(x=s.child,(s.lanes&y)===0){var N=x.memoizedProps;if(c=c.compare,c=c!==null?c:ha,c(N,f)&&s.ref===i.ref)return xr(s,i,y)}return i.flags|=1,s=es(x,f),s.ref=i.ref,s.return=i,i.child=s}function Dv(s,i,c,f,y){if(s!==null){var x=s.memoizedProps;if(ha(x,f)&&s.ref===i.ref)if(Jt=!1,i.pendingProps=f=x,(s.lanes&y)!==0)(s.flags&131072)!==0&&(Jt=!0);else return i.lanes=s.lanes,xr(s,i,y)}return Df(s,i,c,f,y)}function Iv(s,i,c){var f=i.pendingProps,y=f.children,x=s!==null?s.memoizedState:null;if(f.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xe(Ji,cn),cn|=c;else{if((c&1073741824)===0)return s=x!==null?x.baseLanes|c:c,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:s,cachePool:null,transitions:null},i.updateQueue=null,Xe(Ji,cn),cn|=s,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},f=x!==null?x.baseLanes:c,Xe(Ji,cn),cn|=f}else x!==null?(f=x.baseLanes|c,i.memoizedState=null):f=c,Xe(Ji,cn),cn|=f;return Wt(s,i,y,c),i.child}function Fv(s,i){var c=i.ref;(s===null&&c!==null||s!==null&&s.ref!==c)&&(i.flags|=512,i.flags|=2097152)}
vendor: 37,274 bytes, line 40
40function Df(s,i,c,f,y){var x=Xt(c)?Is:Mt.current;return x=$i(i,x),Gi(i,y),c=Nf(s,i,c,f,x,y),f=kf(),s!==null&&!Jt?(i.updateQueue=s.updateQueue,i.flags&=-2053,s.lanes&=~y,xr(s,i,y)):(rt&&f&&cf(i),i.flags|=1,Wt(s,i,c,y),i.child)}function Bv(s,i,c,f,y){if(Xt(c)){var x=!0;lc(i)}else x=!1;if(Gi(i,y),i.stateNode===null)Nc(s,i),kv(i,c,f),Of(i,c,f,y),f=!0;else if(s===null){var N=i.stateNode,R=i.memoizedProps;N.props=R;var M=N.context,$=c.contextType;typeof $=="object"&&$!==null?$=vn($):($=Xt(c)?Is:Mt.current,$=$i(i,$));var Q=c.getDerivedStateFromProps,Y=typeof Q=="function"||typeof N.getSnapshotBeforeUpdate=="function";Y||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(R!==f||M!==$)&&Pv(i,N,f,$),Kr=!1;var G=i.memoizedState;N.state=G,yc(i,f,N,y),M=i.memoizedState,R!==f||G!==M||Yt.current||Kr?(typeof Q=="function"&&(Af(i,c,Q,f),M=i.memoizedState),(R=Kr||Nv(i,c,R,f,G,M,$))?(Y||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(i.flags|=4194308)):(typeof N.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=f,i.memoizedState=M),N.props=f,N.state=M,N.context=$,f=R):(typeof N.componentDidMount=="function"&&(i.flags|=4194308),f=!1)}else{N=i.stateNode,tv(s,i),R=i.memoizedProps,$=i.type===i.elementType?R:Mn(i.type,R),N.props=$,Y=i.pendingProps,G=N.context,M=c.contextType,typeof M=="object"&&M!==null?M=vn(M):(M=Xt(c)?Is:Mt.current,M=$i(i,M));var oe=c.getDerivedStateFromProps;(Q=typeof oe=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(R!==Y||G!==M)&&Pv(i,N,f,M),Kr=!1,G=i.memoizedState,N.state=G,yc(i,f,N,y);var de=i.memoizedState;R!==Y||G!==de||Yt.current||Kr?(typeof oe=="function"&&(Af(i,c,oe,f),de=i.memoizedState),($=Kr||Nv(i,c,$,f,G,de,M)||!1)?(Q||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(f,de,M),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(f,de,M)),typeof N.componentDidUpdate=="function"&&(i.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof N.componentDidUpdate!="function"||R===s.memoizedProps&&G===s.memoizedState||(i.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||R===s.memoizedProps&&G===s.memoizedState||(i.flags|=1024),i.memoizedProps=f,i.memoizedState=de),N.props=f,N.state=de,N.context=M,f=$):(typeof N.componentDidUpdate!="function"||R===s.memoizedProps&&G===s.memoizedState||(i.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||R===s.memoizedProps&&G===s.memoizedState||(i.flags|=1024),f=!1)}return If(s,i,c,f,x,y)}function If(s,i,c,f,y,x){Fv(s,i);var N=(i.flags&128)!==0;if(!f&&!N)return y&&Wy(i,c,!1),xr(s,i,x);f=i.stateNode,mP.current=i;var R=N&&typeof c.getDerivedStateFromError!="function"?null:f.render();return i.flags|=1,s!==null&&N?(i.child=qi(i,s.child,null,x),i.child=qi(i,null,R,x)):Wt(s,i,R,x),i.memoizedState=f.state,y&&Wy(i,c,!0),i.child}function Uv(s){var i=s.stateNode;i.pendingContext?$y(s,i.pendingContext,i.pendingContext!==i.context):i.context&&$y(s,i.context,!1),wf(s,i.containerInfo)}function Vv(s,i,c,f,y){return Hi(),hf(y),i.flags|=256,Wt(s,i,c,f),i.child}var Ff={dehydrated:null,treeContext:null,retryLane:0};function Bf(s){return{baseLanes:s,cachePool:null,transitions:null}}function $v(s,i,c){var f=i.pendingProps,y=st.current,x=!1,N=(i.flags&128)!==0,R;if((R=N)||(R=s!==null&&s.memoizedState===null?!1:(y&2)!==0),R?(x=!0,i.flags&=-129):(s===null||s.memoizedState!==null)&&(y|=1),Xe(st,y&1),s===null)return ff(i),s=i.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((i.mode&1)===0?i.lanes=1:s.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(N=f.children,s=f.fallback,x?(f=i.mode,x=i.child,N={mode:"hidden",children:N},(f&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=N):x=Fc(N,f,0,null),s=Ks(s,f,c,null),x.return=i,s.return=i,x.sibling=s,i.child=x,i.child.memoizedState=Bf(c),i.memoizedState=Ff,s):Uf(i,N));if(y=s.memoizedState,y!==null&&(R=y.dehydrated,R!==null))return gP(s,i,N,f,R,y,c);if(x){x=f.fallback,N=i.mode,y=s.child,R=y.sibling;var M={mode:"hidden",children:f.children};return(N&1)===0&&i.child!==y?(f=i.child,f.childLanes=0,f.pendingProps=M,i.deletions=null):(f=es(y,M),f.subtreeFlags=y.subtreeFlags&14680064),R!==null?x=es(R,x):(x=Ks(x,N,c,null),x.flags|=2),x.return=i,f.return=i,f.sibling=x,i.child=f,f=x,x=i.child,N=s.child.memoizedState,N=N===null?Bf(c):{baseLanes:N.baseLanes|c,cachePool:null,transitions:N.transitions},x.memoizedState=N,x.childLanes=s.childLanes&~c,i.memoizedState=Ff,f}return x=s.child,s=x.sibling,f=es(x,{mode:"visible",children:f.children}),(i.mode&1)===0&&(f.lanes=c),f.return=i,f.sibling=null,s!==null&&(c=i.deletions,c===null?(i.deletions=[s],i.flags|=16):c.push(s)),i.child=f,i.memoizedState=null,f}function Uf(s,i){return i=Fc({mode:"visible",children:i},s.mode,0,null),i.return=s,s.child=i}function _c(s,i,c,f){return f!==null&&hf(f),qi(i,s.child,null,c),s=Uf(i,i.pendingProps.children),s.flags|=2,i.memoizedState=null,s}function gP(s,i,c,f,y,x,N){if(c)return i.flags&256?(i.flags&=-257,f=Mf(Error(n(422))),_c(s,i,N,f)):i.memoizedState!==null?(i.child=s.child,i.flags|=128,null):(x=f.fallback,y=i.mode,f=Fc({mode:"visible",children:f.children},y,0,null),x=Ks(x,y,N,null),x.flags|=2,f.return=i,x.return=i,f.sibling=x,i.child=f,(i.mode&1)!==0&&qi(i,s.child,null,N),i.child.memoizedState=Bf(N),i.memoizedState=Ff,x);if((i.mode&1)===0)return _c(s,i,N,null);if(y.data==="$!"){if(f=y.nextSibling&&y.nextSibling.dataset,f)var R=f.dgst;return f=R,x=Error(n(419)),f=Mf(x,f,void 0),_c(s,i,N,f)}if(R=(N&s.childLanes)!==0,Jt||R){if(f=Nt,f!==null){switch(N&-N){case 4:y=2;break;case 16:y=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:y=32;break;case 536870912:y=268435456;break;default:y=0}y=(y&(f.suspendedLanes|N))!==0?0:y,y!==0&&y!==x.retryLane&&(x.retryLane=y,yr(s,y),In(f,s,y,-1))}return nh(),f=Mf(Error(n(421))),_c(s,i,N,f)}return y.data==="$?"?(i.flags|=128,i.child=s.child,i=TP.bind(null,s),y._reactRetry=i,null):(s=x.treeContext,ln=zr(y.nextSibling),an=i,rt=!0,On=null,s!==null&&(gn[yn++]=mr,gn[yn++]=gr,gn[yn++]=Fs,mr=s.id,gr=s.overflow,Fs=i),i=Uf(i,f.children),i.flags|=4096,i)}function zv(s,i,c){s.lanes|=i;var f=s.alternate;f!==null&&(f.lanes|=i),yf(s.return,i,c)}function Vf(s,i,c,f,y){var x=s.memoizedState;x===null?s.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:f,tail:c,tailMode:y}:(x.isBackwards=i,x.rendering=null,x.renderingStartTime=0,x.last=f,x.tail=c,x.tailMode=y)}function Wv(s,i,c){var f=i.pendingProps,y=f.revealOrder,x=f.tail;if(Wt(s,i,f.children,c),f=st.current,(f&2)!==0)f=f&1|2,i.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=i.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&zv(s,c,i);else if(s.tag===19)zv(s,c,i);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}f&=1}if(Xe(st,f),(i.mode&1)===0)i.memoizedState=null;else switch(y){case"forwards":for(c=i.child,y=null;c!==null;)s=c.alternate,s!==null&&vc(s)===null&&(y=c),c=c.sibling;c=y,c===null?(y=i.child,i.child=null):(y=c.sibling,c.sibling=null),Vf(i,!1,y,c,x);break;case"backwards":for(c=null,y=i.child,i.child=null;y!==null;){if(s=y.alternate,s!==null&&vc(s)===null){i.child=y;break}s=y.sibling,y.sibling=c,c=y,y=s}Vf(i,!0,c,null,x);break;case"together":Vf(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Nc(s,i){(i.mode&1)===0&&s!==null&&(s.alternate=null,i.alternate=null,i.flags|=2)}function xr(s,i,c){if(s!==null&&(i.dependencies=s.dependencies),zs|=i.lanes,(c&i.childLanes)===0)return null;if(s!==null&&i.child!==s.child)throw Error(n(153));if(i.child!==null){for(s=i.child,c=es(s,s.pendingProps),i.child=c,c.return=i;s.sibling!==null;)s=s.sibling,c=c.sibling=es(s,s.pendingProps),c.return=i;c.sibling=null}return i.child}function yP(s,i,c){switch(i.tag){case 3:Uv(i),Hi();break;case 5:sv(i);break;case 1:Xt(i.type)&&lc(i);break;case 4:wf(i,i.stateNode.containerInfo);break;case 10:var f=i.type._context,y=i.memoizedProps.value;Xe(pc,f._currentValue),f._currentValue=y;break;case 13:if(f=i.memoizedState,f!==null)return f.dehydrated!==null?(Xe(st,st.current&1),i.flags|=128,null):(c&i.child.childLanes)!==0?$v(s,i,c):(Xe(st,st.current&1),s=xr(s,i,c),s!==null?s.sibling:null);Xe(st,st.current&1);break;case 19:if(f=(c&i.childLanes)!==0,(s.flags&128)!==0){if(f)return Wv(s,i,c);i.flags|=128}if(y=i.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),Xe(st,st.current),f)break;return null;case 22:case 23:return i.lanes=0,Iv(s,i,c)}return xr(s,i,c)}var Hv,$f,qv,Kv;Hv=function(s,i){for(var c=i.child;c!==null;){if(c.tag===5||c.tag===6)s.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},$f=function(){},qv=function(s,i,c,f){var y=s.memoizedProps;if(y!==f){s=i.stateNode,Vs(Qn.current);var x=null;switch(c){case"input":y=qe(s,y),f=qe(s,f),x=[];break;case"select":y=W({},y,{value:void 0}),f=W({},f,{value:void 0}),x=[];break;case"textarea":y=Ri(s,y),f=Ri(s,f),x=[];break;default:typeof y.onClick!="function"&&typeof f.onClick=="function"&&(s.onclick=ic)}bd(c,f);var N;c=null;for($ in y)if(!f.hasOwnProperty($)&&y.hasOwnProperty($)&&y[$]!=null)if($==="style"){var R=y[$];for(N in R)R.hasOwnProperty(N)&&(c||(c={}),c[N]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(o.hasOwnProperty($)?x||(x=[]):(x=x||[]).push($,null));for($ in f){var M=f[$];if(R=y!=null?y[$]:void 0,f.hasOwnProperty($)&&M!==R&&(M!=null||R!=null))if($==="style")if(R){for(N in R)!R.hasOwnProperty(N)||M&&M.hasOwnProperty(N)||(c||(c={}),c[N]="");for(N in M)M.hasOwnProperty(N)&&R[N]!==M[N]&&(c||(c={}),c[N]=M[N])}else c||(x||(x=[]),x.push($,c)),c=M;else $==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,R=R?R.__html:void 0,M!=null&&R!==M&&(x=x||[]).push($,M)):$==="children"?typeof M!="string"&&typeof M!="number"||(x=x||[]).push($,""+M):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(o.hasOwnProperty($)?(M!=null&&$==="onScroll"&&et("scroll",s),x||R===M||(x=[])):(x=x||[]).push($,M))}c&&(x=x||[]).push("style",c);var $=x;(i.updateQueue=$)&&(i.flags|=4)}},Kv=function(s,i,c,f){c!==f&&(i.flags|=4)};function Pa(s,i){if(!rt)switch(s.tailMode){case"hidden":i=s.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?s.tail=null:c.sibling=null;break;case"collapsed":c=s.tail;for(var f=null;c!==null;)c.alternate!==null&&(f=c),c=c.sibling;f===null?i||s.tail===null?s.tail=null:s.tail.sibling=null:f.sibling=null}}function Dt(s){var i=s.alternate!==null&&s.alternate.child===s.child,c=0,f=0;if(i)for(var y=s.child;y!==null;)c|=y.lanes|y.childLanes,f|=y.subtreeFlags&14680064,f|=y.flags&14680064,y.return=s,y=y.sibling;else for(y=s.child;y!==null;)c|=y.lanes|y.childLanes,f|=y.subtreeFlags,f|=y.flags,y.return=s,y=y.sibling;return s.subtreeFlags|=f,s.childLanes=c,i}function vP(s,i,c){var f=i.pendingProps;switch(uf(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(i),null;case 1:return Xt(i.type)&&ac(),Dt(i),null;case 3:return f=i.stateNode,Qi(),tt(Yt),tt(Mt),Cf(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(s===null||s.child===null)&&(fc(i)?i.flags|=4:s===null||s.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,On!==null&&(Zf(On),On=null))),$f(s,i),Dt(i),null;case 5:bf(i);var y=Vs(Ca.current);if(c=i.type,s!==null&&i.stateNode!=null)qv(s,i,c,f,y),s.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!f){if(i.stateNode===null)throw Error(n(166));return Dt(i),null}if(s=Vs(Qn.current),fc(i)){f=i.stateNode,c=i.type;var x=i.memoizedProps;switch(f[Gn]=i,f[va]=x,s=(i.mode&1)!==0,c){case"dialog":et("cancel",f),et("close",f);break;case"iframe":case"object":case"embed":et("load",f);break;case"video":case"audio":for(y=0;y<ma.length;y++)et(ma[y],f);break;case"source":et("error",f);break;case"img":case"image":case"link":et("error",f),et("load",f);break;case"details":et("toggle",f);break;case"input":Rn(f,x),et("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!x.multiple},et("invalid",f);break;case"textarea":Dl(f,x),et("invalid",f)}bd(c,x),y=null;for(var N in x)if(x.hasOwnProperty(N)){var R=x[N];N==="children"?typeof R=="string"?f.textContent!==R&&(x.suppressHydrationWarning!==!0&&sc(f.textContent,R,s),y=["children",R]):typeof R=="number"&&f.textContent!==""+R&&(x.suppressHydrationWarning!==!0&&sc(f.textContent,R,s),y=["children",""+R]):o.hasOwnProperty(N)&&R!=null&&N==="onScroll"&&et("scroll",f)}switch(c){case"input":je(f),ke(f,x,!0);break;case"textarea":je(f),Ag(f);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(f.onclick=ic)}f=y,i.updateQueue=f,f!==null&&(i.flags|=4)}else{N=y.nodeType===9?y:y.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=Og(c)),s==="http://www.w3.org/1999/xhtml"?c==="script"?(s=N.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof f.is=="string"?s=N.createElement(c,{is:f.is}):(s=N.createElement(c),c==="select"&&(N=s,f.multiple?N.multiple=!0:f.size&&(N.size=f.size))):s=N.createElementNS(s,c),s[Gn]=i,s[va]=f,Hv(s,i,!1,!1),i.stateNode=s;e:{switch(N=Sd(c,f),c){case"dialog":et("cancel",s),et("close",s),y=f;break;case"iframe":case"object":case"embed":et("load",s),y=f;break;case"video":case"audio":for(y=0;y<ma.length;y++)et(ma[y],s);y=f;break;case"source":et("error",s),y=f;break;case"img":case"image":case"link":et("error",s),et("load",s),y=f;break;case"details":et("toggle",s),y=f;break;case"input":Rn(s,f),y=qe(s,f),et("invalid",s);break;case"option":y=f;break;case"select":s._wrapperState={wasMultiple:!!f.multiple},y=W({},f,{value:void 0}),et("invalid",s);break;case"textarea":Dl(s,f),y=Ri(s,f),et("invalid",s);break;default:y=f}bd(c,y),R=y;for(x in R)if(R.hasOwnProperty(x)){var M=R[x];x==="style"?Dg(s,M):x==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&Mg(s,M)):x==="children"?typeof M=="string"?(c!=="textarea"||M!=="")&&Yo(s,M):typeof M=="number"&&Yo(s,""+M):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(o.hasOwnProperty(x)?M!=null&&x==="onScroll"&&et("scroll",s):M!=null&&P(s,x,M,N))}switch(c){case"input":je(s),ke(s,f,!1);break;case"textarea":je(s),Ag(s);break;case"option":f.value!=null&&s.setAttribute("value",""+ie(f.value));break;case"select":s.multiple=!!f.multiple,x=f.value,x!=null?Qt(s,!!f.multiple,x,!1):f.defaultValue!=null&&Qt(s,!!f.multiple,f.defaultValue,!0);break;default:typeof y.onClick=="function"&&(s.onclick=ic)}switch(c){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}}f&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Dt(i),null;case 6:if(s&&i.stateNode!=null)Kv(s,i,s.memoizedProps,f);else{if(typeof f!="string"&&i.stateNode===null)throw Error(n(166));if(c=Vs(Ca.current),Vs(Qn.current),fc(i)){if(f=i.stateNode,c=i.memoizedProps,f[Gn]=i,(x=f.nodeValue!==c)&&(s=an,s!==null))switch(s.tag){case 3:sc(f.nodeValue,c,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&sc(f.nodeValue,c,(s.mode&1)!==0)}x&&(i.flags|=4)}else f=(c.nodeType===9?c:c.ownerDocument).createTextNode(f),f[Gn]=i,i.stateNode=f}return Dt(i),null;case 13:if(tt(st),f=i.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(rt&&ln!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Yy(),Hi(),i.flags|=98560,x=!1;else if(x=fc(i),f!==null&&f.dehydrated!==null){if(s===null){if(!x)throw Error(n(318));if(x=i.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(n(317));x[Gn]=i}else Hi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Dt(i),x=!1}else On!==null&&(Zf(On),On=null),x=!0;if(!x)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=c,i):(f=f!==null,f!==(s!==null&&s.memoizedState!==null)&&f&&(i.child.flags|=8192,(i.mode&1)!==0&&(s===null||(st.current&1)!==0?bt===0&&(bt=3):nh())),i.updateQueue!==null&&(i.flags|=4),Dt(i),null);case 4:return Qi(),$f(s,i),s===null&&ga(i.stateNode.containerInfo),Dt(i),null;case 10:return gf(i.type._context),Dt(i),null;case 17:return Xt(i.type)&&ac(),Dt(i),null;case 19:if(tt(st),x=i.memoizedState,x===null)return Dt(i),null;if(f=(i.flags&128)!==0,N=x.rendering,N===null)if(f)Pa(x,!1);else{if(bt!==0||s!==null&&(s.flags&128)!==0)for(s=i.child;s!==null;){if(N=vc(s),N!==null){for(i.flags|=128,Pa(x,!1),f=N.updateQueue,f!==null&&(i.updateQueue=f,i.flags|=4),i.subtreeFlags=0,f=c,c=i.child;c!==null;)x=c,s=f,x.flags&=14680066,N=x.alternate,N===null?(x.childLanes=0,x.lanes=s,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=N.childLanes,x.lanes=N.lanes,x.child=N.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=N.memoizedProps,x.memoizedState=N.memoizedState,x.updateQueue=N.updateQueue,x.type=N.type,s=N.dependencies,x.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),c=c.sibling;return Xe(st,st.current&1|2),i.child}s=s.sibling}x.tail!==null&&dt()>Zi&&(i.flags|=128,f=!0,Pa(x,!1),i.lanes=4194304)}else{if(!f)if(s=vc(N),s!==null){if(i.flags|=128,f=!0,c=s.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),Pa(x,!0),x.tail===null&&x.tailMode==="hidden"&&!N.alternate&&!rt)return Dt(i),null}else 2*dt()-x.renderingStartTime>Zi&&c!==1073741824&&(i.flags|=128,f=!0,Pa(x,!1),i.lanes=4194304);x.isBackwards?(N.sibling=i.child,i.child=N):(c=x.last,c!==null?c.sibling=N:i.child=N,x.last=N)}return x.tail!==null?(i=x.tail,x.rendering=i,x.tail=i.sibling,x.renderingStartTime=dt(),i.sibling=null,c=st.current,Xe(st,f?c&1|2:c&1),i):(Dt(i),null);case 22:case 23:return th(),f=i.memoizedState!==null,s!==null&&s.memoizedState!==null!==f&&(i.flags|=8192),f&&(i.mode&1)!==0?(cn&1073741824)!==0&&(Dt(i),i.subtreeFlags&6&&(i.flags|=8192)):Dt(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function xP(s,i){switch(uf(i),i.tag){case 1:return Xt(i.type)&&ac(),s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 3:return Qi(),tt(Yt),tt(Mt),Cf(),s=i.flags,(s&65536)!==0&&(s&128)===0?(i.flags=s&-65537|128,i):null;case 5:return bf(i),null;case 13:if(tt(st),s=i.memoizedState,s!==null&&s.dehydrated!==null){if(i.alternate===null)throw Error(n(340));Hi()}return s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 19:return tt(st),null;case 4:return Qi(),null;case 10:return gf(i.type._context),null;case 22:case 23:return th(),null;case 24:return null;default:return null}}var kc=!1,It=!1,wP=typeof WeakSet=="function"?WeakSet:Set,le=null;function Xi(s,i){var c=s.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(f){lt(s,i,f)}else c.current=null}function zf(s,i,c){try{c()}catch(f){lt(s,i,f)}}var Gv=!1;function bP(s,i){if(ef=Kl,s=Ny(),qd(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{c=(c=s.ownerDocument)&&c.defaultView||window;var f=c.getSelection&&c.getSelection();if(f&&f.rangeCount!==0){c=f.anchorNode;var y=f.anchorOffset,x=f.focusNode;f=f.focusOffset;try{c.nodeType,x.nodeType}catch{c=null;break e}var N=0,R=-1,M=-1,$=0,Q=0,Y=s,G=null;t:for(;;){for(var oe;Y!==c||y!==0&&Y.nodeType!==3||(R=N+y),Y!==x||f!==0&&Y.nodeType!==3||(M=N+f),Y.nodeType===3&&(N+=Y.nodeValue.length),(oe=Y.firstChild)!==null;)G=Y,Y=oe;for(;;){if(Y===s)break t;if(G===c&&++$===y&&(R=N),G===x&&++Q===f&&(M=N),(oe=Y.nextSibling)!==null)break;Y=G,G=Y.parentNode}Y=oe}c=R===-1||M===-1?null:{start:R,end:M}}else c=null}c=c||{start:0,end:0}}else c=null;for(tf={focusedElem:s,selectionRange:c},Kl=!1,le=i;le!==null;)if(i=le,s=i.child,(i.subtreeFlags&1028)!==0&&s!==null)s.return=i,le=s;else for(;le!==null;){i=le;try{var de=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(de!==null){var me=de.memoizedProps,ft=de.memoizedState,B=i.stateNode,D=B.getSnapshotBeforeUpdate(i.elementType===i.type?me:Mn(i.type,me),ft);B.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var V=i.stateNode.containerInfo;V.nodeType===1?V.textContent="":V.nodeType===9&&V.documentElement&&V.removeChild(V.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Z){lt(i,i.return,Z)}if(s=i.sibling,s!==null){s.return=i.return,le=s;break}le=i.return}return de=Gv,Gv=!1,de}function Ta(s,i,c){var f=i.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var y=f=f.next;do{if((y.tag&s)===s){var x=y.destroy;y.destroy=void 0,x!==void 0&&zf(i,c,x)}y=y.next}while(y!==f)}}function Pc(s,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var c=i=i.next;do{if((c.tag&s)===s){var f=c.create;c.destroy=f()}c=c.next}while(c!==i)}}function Wf(s){var i=s.ref;if(i!==null){var c=s.stateNode;switch(s.tag){case 5:s=c;break;default:s=c}typeof i=="function"?i(s):i.current=s}}function Qv(s){var i=s.alternate;i!==null&&(s.alternate=null,Qv(i)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(i=s.stateNode,i!==null&&(delete i[Gn],delete i[va],delete i[of],delete i[rP],delete i[sP])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function Yv(s){return s.tag===5||s.tag===3||s.tag===4}function Xv(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Yv(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Hf(s,i,c){var f=s.tag;if(f===5||f===6)s=s.stateNode,i?c.nodeType===8?c.parentNode.insertBefore(s,i):c.insertBefore(s,i):(c.nodeType===8?(i=c.parentNode,i.insertBefore(s,c)):(i=c,i.appendChild(s)),c=c._reactRootContainer,c!=null||i.onclick!==null||(i.onclick=ic));else if(f!==4&&(s=s.child,s!==null))for(Hf(s,i,c),s=s.sibling;s!==null;)Hf(s,i,c),s=s.sibling}function qf(s,i,c){var f=s.tag;if(f===5||f===6)s=s.stateNode,i?c.insertBefore(s,i):c.appendChild(s);else if(f!==4&&(s=s.child,s!==null))for(qf(s,i,c),s=s.sibling;s!==null;)qf(s,i,c),s=s.sibling}var Rt=null,Ln=!1;function Qr(s,i,c){for(c=c.child;c!==null;)Jv(s,i,c),c=c.sibling}function Jv(s,i,c){if(Kn&&typeof Kn.onCommitFiberUnmount=="function")try{Kn.onCommitFiberUnmount(Vl,c)}catch{}switch(c.tag){case 5:It||Xi(c,i);case 6:var f=Rt,y=Ln;Rt=null,Qr(s,i,c),Rt=f,Ln=y,Rt!==null&&(Ln?(s=Rt,c=c.stateNode,s.nodeType===8?s.parentNode.removeChild(c):s.removeChild(c)):Rt.removeChild(c.stateNode));break;case 18:Rt!==null&&(Ln?(s=Rt,c=c.stateNode,s.nodeType===8?sf(s.parentNode,c):s.nodeType===1&&sf(s,c),aa(s)):sf(Rt,c.stateNode));break;case 4:f=Rt,y=Ln,Rt=c.stateNode.containerInfo,Ln=!0,Qr(s,i,c),Rt=f,Ln=y;break;case 0:case 11:case 14:case 15:if(!It&&(f=c.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){y=f=f.next;do{var x=y,N=x.destroy;x=x.tag,N!==void 0&&((x&2)!==0||(x&4)!==0)&&zf(c,i,N),y=y.next}while(y!==f)}Qr(s,i,c);break;case 1:if(!It&&(Xi(c,i),f=c.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=c.memoizedProps,f.state=c.memoizedState,f.componentWillUnmount()}catch(R){lt(c,i,R)}Qr(s,i,c);break;case 21:Qr(s,i,c);break;case 22:c.mode&1?(It=(f=It)||c.memoizedState!==null,Qr(s,i,c),It=f):Qr(s,i,c);break;default:Qr(s,i,c)}}function Zv(s){var i=s.updateQueue;if(i!==null){s.updateQueue=null;var c=s.stateNode;c===null&&(c=s.stateNode=new wP),i.forEach(function(f){var y=RP.bind(null,s,f);c.has(f)||(c.add(f),f.then(y,y))})}}function Dn(s,i){var c=i.deletions;if(c!==null)for(var f=0;f<c.length;f++){var y=c[f];try{var x=s,N=i,R=N;e:for(;R!==null;){switch(R.tag){case 5:Rt=R.stateNode,Ln=!1;break e;case 3:Rt=R.stateNode.containerInfo,Ln=!0;break e;case 4:Rt=R.stateNode.containerInfo,Ln=!0;break e}R=R.return}if(Rt===null)throw Error(n(160));Jv(x,N,y),Rt=null,Ln=!1;var M=y.alternate;M!==null&&(M.return=null),y.return=null}catch($){lt(y,i,$)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)ex(i,s),i=i.sibling}function ex(s,i){var c=s.alternate,f=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Dn(i,s),Xn(s),f&4){try{Ta(3,s,s.return),Pc(3,s)}catch(me){lt(s,s.return,me)}try{Ta(5,s,s.return)}catch(me){lt(s,s.return,me)}}break;case 1:Dn(i,s),Xn(s),f&512&&c!==null&&Xi(c,c.return);break;case 5:if(Dn(i,s),Xn(s),f&512&&c!==null&&Xi(c,c.return),s.flags&32){var y=s.stateNode;try{Yo(y,"")}catch(me){lt(s,s.return,me)}}if(f&4&&(y=s.stateNode,y!=null)){var x=s.memoizedProps,N=c!==null?c.memoizedProps:x,R=s.type,M=s.updateQueue;if(s.updateQueue=null,M!==null)try{R==="input"&&x.type==="radio"&&x.name!=null&&mn(y,x),Sd(R,N);var $=Sd(R,x);for(N=0;N<M.length;N+=2){var Q=M[N],Y=M[N+1];Q==="style"?Dg(y,Y):Q==="dangerouslySetInnerHTML"?Mg(y,Y):Q==="children"?Yo(y,Y):P(y,Q,Y,$)}switch(R){case"input":xt(y,x);break;case"textarea":Dr(y,x);break;case"select":var G=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!x.multiple;var oe=x.value;oe!=null?Qt(y,!!x.multiple,oe,!1):G!==!!x.multiple&&(x.defaultValue!=null?Qt(y,!!x.multiple,x.defaultValue,!0):Qt(y,!!x.multiple,x.multiple?[]:"",!1))}y[va]=x}catch(me){lt(s,s.return,me)}}break;case 6:if(Dn(i,s),Xn(s),f&4){if(s.stateNode===null)throw Error(n(162));y=s.stateNode,x=s.memoizedProps;try{y.nodeValue=x}catch(me){lt(s,s.return,me)}}break;case 3:if(Dn(i,s),Xn(s),f&4&&c!==null&&c.memoizedState.isDehydrated)try{aa(i.containerInfo)}catch(me){lt(s,s.return,me)}break;case 4:Dn(i,s),Xn(s);break;case 13:Dn(i,s),Xn(s),y=s.child,y.flags&8192&&(x=y.memoizedState!==null,y.stateNode.isHidden=x,!x||y.alternate!==null&&y.alternate.memoizedState!==null||(Qf=dt())),f&4&&Zv(s);break;case 22:if(Q=c!==null&&c.memoizedState!==null,s.mode&1?(It=($=It)||Q,Dn(i,s),It=$):Dn(i,s),Xn(s),f&8192){if($=s.memoizedState!==null,(s.stateNode.isHidden=$)&&!Q&&(s.mode&1)!==0)for(le=s,Q=s.child;Q!==null;){for(Y=le=Q;le!==null;){switch(G=le,oe=G.child,G.tag){case 0:case 11:case 14:case 15:Ta(4,G,G.return);break;case 1:Xi(G,G.return);var de=G.stateNode;if(typeof de.componentWillUnmount=="function"){f=G,c=G.return;try{i=f,de.props=i.memoizedProps,de.state=i.memoizedState,de.componentWillUnmount()}catch(me){lt(f,c,me)}}break;case 5:Xi(G,G.return);break;case 22:if(G.memoizedState!==null){rx(Y);continue}}oe!==null?(oe.return=G,le=oe):rx(Y)}Q=Q.sibling}e:for(Q=null,Y=s;;){if(Y.tag===5){if(Q===null){Q=Y;try{y=Y.stateNode,$?(x=y.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(R=Y.stateNode,M=Y.memoizedProps.style,N=M!=null&&M.hasOwnProperty("display")?M.display:null,R.style.display=Lg("display",N))}catch(me){lt(s,s.return,me)}}}else if(Y.tag===6){if(Q===null)try{Y.stateNode.nodeValue=$?"":Y.memoizedProps}catch(me){lt(s,s.return,me)}}else if((Y.tag!==22&&Y.tag!==23||Y.memoizedState===null||Y===s)&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===s)break e;for(;Y.sibling===null;){if(Y.return===null||Y.return===s)break e;Q===Y&&(Q=null),Y=Y.return}Q===Y&&(Q=null),Y.sibling.return=Y.return,Y=Y.sibling}}break;case 19:Dn(i,s),Xn(s),f&4&&Zv(s);break;case 21:break;default:Dn(i,s),Xn(s)}}function Xn(s){var i=s.flags;if(i&2){try{e:{for(var c=s.return;c!==null;){if(Yv(c)){var f=c;break e}c=c.return}throw Error(n(160))}switch(f.tag){case 5:var y=f.stateNode;f.flags&32&&(Yo(y,""),f.flags&=-33);var x=Xv(s);qf(s,x,y);break;case 3:case 4:var N=f.stateNode.containerInfo,R=Xv(s);Hf(s,R,N);break;default:throw Error(n(161))}}catch(M){lt(s,s.return,M)}s.flags&=-3}i&4096&&(s.flags&=-4097)}function SP(s,i,c){le=s,tx(s)}function tx(s,i,c){for(var f=(s.mode&1)!==0;le!==null;){var y=le,x=y.child;if(y.tag===22&&f){var N=y.memoizedState!==null||kc;if(!N){var R=y.alternate,M=R!==null&&R.memoizedState!==null||It;R=kc;var $=It;if(kc=N,(It=M)&&!$)for(le=y;le!==null;)N=le,M=N.child,N.tag===22&&N.memoizedState!==null?sx(y):M!==null?(M.return=N,le=M):sx(y);for(;x!==null;)le=x,tx(x),x=x.sibling;le=y,kc=R,It=$}nx(s)}else(y.subtreeFlags&8772)!==0&&x!==null?(x.return=y,le=x):nx(s)}}function nx(s){for(;le!==null;){var i=le;if((i.flags&8772)!==0){var c=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:It||Pc(5,i);break;case 1:var f=i.stateNode;if(i.flags&4&&!It)if(c===null)f.componentDidMount();else{var y=i.elementType===i.type?c.memoizedProps:Mn(i.type,c.memoizedProps);f.componentDidUpdate(y,c.memoizedState,f.__reactInternalSnapshotBeforeUpdate)}var x=i.updateQueue;x!==null&&rv(i,x,f);break;case 3:var N=i.updateQueue;if(N!==null){if(c=null,i.child!==null)switch(i.child.tag){case 5:c=i.child.stateNode;break;case 1:c=i.child.stateNode}rv(i,N,c)}break;case 5:var R=i.stateNode;if(c===null&&i.flags&4){c=R;var M=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&c.focus();break;case"img":M.src&&(c.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var $=i.alternate;if($!==null){var Q=$.memoizedState;if(Q!==null){var Y=Q.dehydrated;Y!==null&&aa(Y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}It||i.flags&512&&Wf(i)}catch(G){lt(i,i.return,G)}}if(i===s){le=null;break}if(c=i.sibling,c!==null){c.return=i.return,le=c;break}le=i.return}}function rx(s){for(;le!==null;){var i=le;if(i===s){le=null;break}var c=i.sibling;if(c!==null){c.return=i.return,le=c;break}le=i.return}}function sx(s){for(;le!==null;){var i=le;try{switch(i.tag){case 0:case 11:case 15:var c=i.return;try{Pc(4,i)}catch(M){lt(i,c,M)}break;case 1:var f=i.stateNode;if(typeof f.componentDidMount=="function"){var y=i.return;try{f.componentDidMount()}catch(M){lt(i,y,M)}}var x=i.return;try{Wf(i)}catch(M){lt(i,x,M)}break;case 5:var N=i.return;try{Wf(i)}catch(M){lt(i,N,M)}}}catch(M){lt(i,i.return,M)}if(i===s){le=null;break}var R=i.sibling;if(R!==null){R.return=i.return,le=R;break}le=i.return}}var CP=Math.ceil,Tc=T.ReactCurrentDispatcher,Kf=T.ReactCurrentOwner,wn=T.ReactCurrentBatchConfig,Fe=0,Nt=null,yt=null,jt=0,cn=0,Ji=Wr(0),bt=0,Ra=null,zs=0,Rc=0,Gf=0,ja=null,Zt=null,Qf=0,Zi=1/0,wr=null,jc=!1,Yf=null,Yr=null,Ac=!1,Xr=null,Oc=0,Aa=0,Xf=null,Mc=-1,Lc=0;function Ht(){return(Fe&6)!==0?dt():Mc!==-1?Mc:Mc=dt()}function Jr(s){return(s.mode&1)===0?1:(Fe&2)!==0&&jt!==0?jt&-jt:oP.transition!==null?(Lc===0&&(Lc=Xg()),Lc):(s=Ke,s!==0||(s=window.event,s=s===void 0?16:oy(s.type)),s)}function In(s,i,c,f){if(50<Aa)throw Aa=0,Xf=null,Error(n(185));na(s,c,f),((Fe&2)===0||s!==Nt)&&(s===Nt&&((Fe&2)===0&&(Rc|=c),bt===4&&Zr(s,jt)),en(s,f),c===1&&Fe===0&&(i.mode&1)===0&&(Zi=dt()+500,cc&&qr()))}function en(s,i){var c=s.callbackNode;ok(s,i);var f=Wl(s,s===Nt?jt:0);if(f===0)c!==null&&Gg(c),s.callbackNode=null,s.callbackPriority=0;else if(i=f&-f,s.callbackPriority!==i){if(c!=null&&Gg(c),i===1)s.tag===0?iP(ox.bind(null,s)):Hy(ox.bind(null,s)),tP(function(){(Fe&6)===0&&qr()}),c=null;else{switch(Jg(f)){case 1:c=Td;break;case 4:c=Qg;break;case 16:c=Ul;break;case 536870912:c=Yg;break;default:c=Ul}c=px(c,ix.bind(null,s))}s.callbackPriority=i,s.callbackNode=c}}function ix(s,i){if(Mc=-1,Lc=0,(Fe&6)!==0)throw Error(n(327));var c=s.callbackNode;if(eo()&&s.callbackNode!==c)return null;var f=Wl(s,s===Nt?jt:0);if(f===0)return null;if((f&30)!==0||(f&s.expiredLanes)!==0||i)i=Dc(s,f);else{i=f;var y=Fe;Fe|=2;var x=lx();(Nt!==s||jt!==i)&&(wr=null,Zi=dt()+500,Hs(s,i));do try{NP();break}catch(R){ax(s,R)}while(!0);mf(),Tc.current=x,Fe=y,yt!==null?i=0:(Nt=null,jt=0,i=bt)}if(i!==0){if(i===2&&(y=Rd(s),y!==0&&(f=y,i=Jf(s,y))),i===1)throw c=Ra,Hs(s,0),Zr(s,f),en(s,dt()),c;if(i===6)Zr(s,f);else{if(y=s.current.alternate,(f&30)===0&&!EP(y)&&(i=Dc(s,f),i===2&&(x=Rd(s),x!==0&&(f=x,i=Jf(s,x))),i===1))throw c=Ra,Hs(s,0),Zr(s,f),en(s,dt()),c;switch(s.finishedWork=y,s.finishedLanes=f,i){case 0:case 1:throw Error(n(345));case 2:qs(s,Zt,wr);break;case 3:if(Zr(s,f),(f&130023424)===f&&(i=Qf+500-dt(),10<i)){if(Wl(s,0)!==0)break;if(y=s.suspendedLanes,(y&f)!==f){Ht(),s.pingedLanes|=s.suspendedLanes&y;break}s.timeoutHandle=rf(qs.bind(null,s,Zt,wr),i);break}qs(s,Zt,wr);break;case 4:if(Zr(s,f),(f&4194240)===f)break;for(i=s.eventTimes,y=-1;0<f;){var N=31-jn(f);x=1<<N,N=i[N],N>y&&(y=N),f&=~x}if(f=y,f=dt()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*CP(f/1960))-f,10<f){s.timeoutHandle=rf(qs.bind(null,s,Zt,wr),f);break}qs(s,Zt,wr);break;case 5:qs(s,Zt,wr);break;default:throw Error(n(329))}}}return en(s,dt()),s.callbackNode===c?ix.bind(null,s):null}function Jf(s,i){var c=ja;return s.current.memoizedState.isDehydrated&&(Hs(s,i).flags|=256),s=Dc(s,i),s!==2&&(i=Zt,Zt=c,i!==null&&Zf(i)),s}function Zf(s){Zt===null?Zt=s:Zt.push.apply(Zt,s)}function EP(s){for(var i=s;;){if(i.flags&16384){var c=i.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var f=0;f<c.length;f++){var y=c[f],x=y.getSnapshot;y=y.value;try{if(!An(x(),y))return!1}catch{return!1}}}if(c=i.child,i.subtreeFlags&16384&&c!==null)c.return=i,i=c;else{if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Zr(s,i){for(i&=~Gf,i&=~Rc,s.suspendedLanes|=i,s.pingedLanes&=~i,s=s.expirationTimes;0<i;){var c=31-jn(i),f=1<<c;s[c]=-1,i&=~f}}function ox(s){if((Fe&6)!==0)throw Error(n(327));eo();var i=Wl(s,0);if((i&1)===0)return en(s,dt()),null;var c=Dc(s,i);if(s.tag!==0&&c===2){var f=Rd(s);f!==0&&(i=f,c=Jf(s,f))}if(c===1)throw c=Ra,Hs(s,0),Zr(s,i),en(s,dt()),c;if(c===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=i,qs(s,Zt,wr),en(s,dt()),null}function eh(s,i){var c=Fe;Fe|=1;try{return s(i)}finally{Fe=c,Fe===0&&(Zi=dt()+500,cc&&qr())}}function Ws(s){Xr!==null&&Xr.tag===0&&(Fe&6)===0&&eo();var i=Fe;Fe|=1;var c=wn.transition,f=Ke;try{if(wn.transition=null,Ke=1,s)return s()}finally{Ke=f,wn.transition=c,Fe=i,(Fe&6)===0&&qr()}}function th(){cn=Ji.current,tt(Ji)}function Hs(s,i){s.finishedWork=null,s.finishedLanes=0;var c=s.timeoutHandle;if(c!==-1&&(s.timeoutHandle=-1,eP(c)),yt!==null)for(c=yt.return;c!==null;){var f=c;switch(uf(f),f.tag){case 1:f=f.type.childContextTypes,f!=null&&ac();break;case 3:Qi(),tt(Yt),tt(Mt),Cf();break;case 5:bf(f);break;case 4:Qi();break;case 13:tt(st);break;case 19:tt(st);break;case 10:gf(f.type._context);break;case 22:case 23:th()}c=c.return}if(Nt=s,yt=s=es(s.current,null),jt=cn=i,bt=0,Ra=null,Gf=Rc=zs=0,Zt=ja=null,Us!==null){for(i=0;i<Us.length;i++)if(c=Us[i],f=c.interleaved,f!==null){c.interleaved=null;var y=f.next,x=c.pending;if(x!==null){var N=x.next;x.next=y,f.next=N}c.pending=f}Us=null}return s}function ax(s,i){do{var c=yt;try{if(mf(),xc.current=Cc,wc){for(var f=it.memoizedState;f!==null;){var y=f.queue;y!==null&&(y.pending=null),f=f.next}wc=!1}if($s=0,_t=wt=it=null,Ea=!1,_a=0,Kf.current=null,c===null||c.return===null){bt=1,Ra=i,yt=null;break}e:{var x=s,N=c.return,R=c,M=i;if(i=jt,R.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var $=M,Q=R,Y=Q.tag;if((Q.mode&1)===0&&(Y===0||Y===11||Y===15)){var G=Q.alternate;G?(Q.updateQueue=G.updateQueue,Q.memoizedState=G.memoizedState,Q.lanes=G.lanes):(Q.updateQueue=null,Q.memoizedState=null)}var oe=Av(N);if(oe!==null){oe.flags&=-257,Ov(oe,N,R,x,i),oe.mode&1&&jv(x,$,i),i=oe,M=$;var de=i.updateQueue;if(de===null){var me=new Set;me.add(M),i.updateQueue=me}else de.add(M);break e}else{if((i&1)===0){jv(x,$,i),nh();break e}M=Error(n(426))}}else if(rt&&R.mode&1){var ft=Av(N);if(ft!==null){(ft.flags&65536)===0&&(ft.flags|=256),Ov(ft,N,R,x,i),hf(Yi(M,R));break e}}x=M=Yi(M,R),bt!==4&&(bt=2),ja===null?ja=[x]:ja.push(x),x=N;do{switch(x.tag){case 3:x.flags|=65536,i&=-i,x.lanes|=i;var B=Tv(x,M,i);nv(x,B);break e;case 1:R=M;var D=x.type,V=x.stateNode;if((x.flags&128)===0&&(typeof D.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(Yr===null||!Yr.has(V)))){x.flags|=65536,i&=-i,x.lanes|=i;var Z=Rv(x,R,i);nv(x,Z);break e}}x=x.return}while(x!==null)}ux(c)}catch(ye){i=ye,yt===c&&c!==null&&(yt=c=c.return);continue}break}while(!0)}function lx(){var s=Tc.current;return Tc.current=Cc,s===null?Cc:s}function nh(){(bt===0||bt===3||bt===2)&&(bt=4),Nt===null||(zs&268435455)===0&&(Rc&268435455)===0||Zr(Nt,jt)}function Dc(s,i){var c=Fe;Fe|=2;var f=lx();(Nt!==s||jt!==i)&&(wr=null,Hs(s,i));do try{_P();break}catch(y){ax(s,y)}while(!0);if(mf(),Fe=c,Tc.current=f,yt!==null)throw Error(n(261));return Nt=null,jt=0,bt}function _P(){for(;yt!==null;)cx(yt)}function NP(){for(;yt!==null&&!XN();)cx(yt)}function cx(s){var i=hx(s.alternate,s,cn);s.memoizedProps=s.pendingProps,i===null?ux(s):yt=i,Kf.current=null}function ux(s){var i=s;do{var c=i.alternate;if(s=i.return,(i.flags&32768)===0){if(c=vP(c,i,cn),c!==null){yt=c;return}}else{if(c=xP(c,i),c!==null){c.flags&=32767,yt=c;return}
vendor: 7,834 bytes, line 40
40if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{bt=6,yt=null;return}}if(i=i.sibling,i!==null){yt=i;return}yt=i=s}while(i!==null);bt===0&&(bt=5)}function qs(s,i,c){var f=Ke,y=wn.transition;try{wn.transition=null,Ke=1,kP(s,i,c,f)}finally{wn.transition=y,Ke=f}return null}function kP(s,i,c,f){do eo();while(Xr!==null);if((Fe&6)!==0)throw Error(n(327));c=s.finishedWork;var y=s.finishedLanes;if(c===null)return null;if(s.finishedWork=null,s.finishedLanes=0,c===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var x=c.lanes|c.childLanes;if(ak(s,x),s===Nt&&(yt=Nt=null,jt=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||Ac||(Ac=!0,px(Ul,function(){return eo(),null})),x=(c.flags&15990)!==0,(c.subtreeFlags&15990)!==0||x){x=wn.transition,wn.transition=null;var N=Ke;Ke=1;var R=Fe;Fe|=4,Kf.current=null,bP(s,c),ex(c,s),Kk(tf),Kl=!!ef,tf=ef=null,s.current=c,SP(c),JN(),Fe=R,Ke=N,wn.transition=x}else s.current=c;if(Ac&&(Ac=!1,Xr=s,Oc=y),x=s.pendingLanes,x===0&&(Yr=null),tk(c.stateNode),en(s,dt()),i!==null)for(f=s.onRecoverableError,c=0;c<i.length;c++)y=i[c],f(y.value,{componentStack:y.stack,digest:y.digest});if(jc)throw jc=!1,s=Yf,Yf=null,s;return(Oc&1)!==0&&s.tag!==0&&eo(),x=s.pendingLanes,(x&1)!==0?s===Xf?Aa++:(Aa=0,Xf=s):Aa=0,qr(),null}function eo(){if(Xr!==null){var s=Jg(Oc),i=wn.transition,c=Ke;try{if(wn.transition=null,Ke=16>s?16:s,Xr===null)var f=!1;else{if(s=Xr,Xr=null,Oc=0,(Fe&6)!==0)throw Error(n(331));var y=Fe;for(Fe|=4,le=s.current;le!==null;){var x=le,N=x.child;if((le.flags&16)!==0){var R=x.deletions;if(R!==null){for(var M=0;M<R.length;M++){var $=R[M];for(le=$;le!==null;){var Q=le;switch(Q.tag){case 0:case 11:case 15:Ta(8,Q,x)}var Y=Q.child;if(Y!==null)Y.return=Q,le=Y;else for(;le!==null;){Q=le;var G=Q.sibling,oe=Q.return;if(Qv(Q),Q===$){le=null;break}if(G!==null){G.return=oe,le=G;break}le=oe}}}var de=x.alternate;if(de!==null){var me=de.child;if(me!==null){de.child=null;do{var ft=me.sibling;me.sibling=null,me=ft}while(me!==null)}}le=x}}if((x.subtreeFlags&2064)!==0&&N!==null)N.return=x,le=N;else e:for(;le!==null;){if(x=le,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:Ta(9,x,x.return)}var B=x.sibling;if(B!==null){B.return=x.return,le=B;break e}le=x.return}}var D=s.current;for(le=D;le!==null;){N=le;var V=N.child;if((N.subtreeFlags&2064)!==0&&V!==null)V.return=N,le=V;else e:for(N=D;le!==null;){if(R=le,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:Pc(9,R)}}catch(ye){lt(R,R.return,ye)}if(R===N){le=null;break e}var Z=R.sibling;if(Z!==null){Z.return=R.return,le=Z;break e}le=R.return}}if(Fe=y,qr(),Kn&&typeof Kn.onPostCommitFiberRoot=="function")try{Kn.onPostCommitFiberRoot(Vl,s)}catch{}f=!0}return f}finally{Ke=c,wn.transition=i}}return!1}function dx(s,i,c){i=Yi(c,i),i=Tv(s,i,1),s=Gr(s,i,1),i=Ht(),s!==null&&(na(s,1,i),en(s,i))}function lt(s,i,c){if(s.tag===3)dx(s,s,c);else for(;i!==null;){if(i.tag===3){dx(i,s,c);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Yr===null||!Yr.has(f))){s=Yi(c,s),s=Rv(i,s,1),i=Gr(i,s,1),s=Ht(),i!==null&&(na(i,1,s),en(i,s));break}}i=i.return}}function PP(s,i,c){var f=s.pingCache;f!==null&&f.delete(i),i=Ht(),s.pingedLanes|=s.suspendedLanes&c,Nt===s&&(jt&c)===c&&(bt===4||bt===3&&(jt&130023424)===jt&&500>dt()-Qf?Hs(s,0):Gf|=c),en(s,i)}function fx(s,i){i===0&&((s.mode&1)===0?i=1:(i=zl,zl<<=1,(zl&130023424)===0&&(zl=4194304)));var c=Ht();s=yr(s,i),s!==null&&(na(s,i,c),en(s,c))}function TP(s){var i=s.memoizedState,c=0;i!==null&&(c=i.retryLane),fx(s,c)}function RP(s,i){var c=0;switch(s.tag){case 13:var f=s.stateNode,y=s.memoizedState;y!==null&&(c=y.retryLane);break;case 19:f=s.stateNode;break;default:throw Error(n(314))}f!==null&&f.delete(i),fx(s,c)}var hx;hx=function(s,i,c){if(s!==null)if(s.memoizedProps!==i.pendingProps||Yt.current)Jt=!0;else{if((s.lanes&c)===0&&(i.flags&128)===0)return Jt=!1,yP(s,i,c);Jt=(s.flags&131072)!==0}else Jt=!1,rt&&(i.flags&1048576)!==0&&qy(i,dc,i.index);switch(i.lanes=0,i.tag){case 2:var f=i.type;Nc(s,i),s=i.pendingProps;var y=$i(i,Mt.current);Gi(i,c),y=Nf(null,i,f,s,y,c);var x=kf();return i.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Xt(f)?(x=!0,lc(i)):x=!1,i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,xf(i),y.updater=Ec,i.stateNode=y,y._reactInternals=i,Of(i,f,s,c),i=If(null,i,f,!0,x,c)):(i.tag=0,rt&&x&&cf(i),Wt(null,i,y,c),i=i.child),i;case 16:f=i.elementType;e:{switch(Nc(s,i),s=i.pendingProps,y=f._init,f=y(f._payload),i.type=f,y=i.tag=AP(f),s=Mn(f,s),y){case 0:i=Df(null,i,f,s,c);break e;case 1:i=Bv(null,i,f,s,c);break e;case 11:i=Mv(null,i,f,s,c);break e;case 14:i=Lv(null,i,f,Mn(f.type,s),c);break e}throw Error(n(306,f,""))}return i;case 0:return f=i.type,y=i.pendingProps,y=i.elementType===f?y:Mn(f,y),Df(s,i,f,y,c);case 1:return f=i.type,y=i.pendingProps,y=i.elementType===f?y:Mn(f,y),Bv(s,i,f,y,c);case 3:e:{if(Uv(i),s===null)throw Error(n(387));f=i.pendingProps,x=i.memoizedState,y=x.element,tv(s,i),yc(i,f,null,c);var N=i.memoizedState;if(f=N.element,x.isDehydrated)if(x={element:f,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},i.updateQueue.baseState=x,i.memoizedState=x,i.flags&256){y=Yi(Error(n(423)),i),i=Vv(s,i,f,c,y);break e}else if(f!==y){y=Yi(Error(n(424)),i),i=Vv(s,i,f,c,y);break e}else for(ln=zr(i.stateNode.containerInfo.firstChild),an=i,rt=!0,On=null,c=Zy(i,null,f,c),i.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Hi(),f===y){i=xr(s,i,c);break e}Wt(s,i,f,c)}i=i.child}return i;case 5:return sv(i),s===null&&ff(i),f=i.type,y=i.pendingProps,x=s!==null?s.memoizedProps:null,N=y.children,nf(f,y)?N=null:x!==null&&nf(f,x)&&(i.flags|=32),Fv(s,i),Wt(s,i,N,c),i.child;case 6:return s===null&&ff(i),null;case 13:return $v(s,i,c);case 4:return wf(i,i.stateNode.containerInfo),f=i.pendingProps,s===null?i.child=qi(i,null,f,c):Wt(s,i,f,c),i.child;case 11:return f=i.type,y=i.pendingProps,y=i.elementType===f?y:Mn(f,y),Mv(s,i,f,y,c);case 7:return Wt(s,i,i.pendingProps,c),i.child;case 8:return Wt(s,i,i.pendingProps.children,c),i.child;case 12:return Wt(s,i,i.pendingProps.children,c),i.child;case 10:e:{if(f=i.type._context,y=i.pendingProps,x=i.memoizedProps,N=y.value,Xe(pc,f._currentValue),f._currentValue=N,x!==null)if(An(x.value,N)){if(x.children===y.children&&!Yt.current){i=xr(s,i,c);break e}}else for(x=i.child,x!==null&&(x.return=i);x!==null;){var R=x.dependencies;if(R!==null){N=x.child;for(var M=R.firstContext;M!==null;){if(M.context===f){if(x.tag===1){M=vr(-1,c&-c),M.tag=2;var $=x.updateQueue;if($!==null){$=$.shared;var Q=$.pending;Q===null?M.next=M:(M.next=Q.next,Q.next=M),$.pending=M}}x.lanes|=c,M=x.alternate,M!==null&&(M.lanes|=c),yf(x.return,c,i),R.lanes|=c;break}M=M.next}}else if(x.tag===10)N=x.type===i.type?null:x.child;else if(x.tag===18){if(N=x.return,N===null)throw Error(n(341));N.lanes|=c,R=N.alternate,R!==null&&(R.lanes|=c),yf(N,c,i),N=x.sibling}else N=x.child;if(N!==null)N.return=x;else for(N=x;N!==null;){if(N===i){N=null;break}if(x=N.sibling,x!==null){x.return=N.return,N=x;break}N=N.return}x=N}Wt(s,i,y.children,c),i=i.child}return i;case 9:return y=i.type,f=i.pendingProps.children,Gi(i,c),y=vn(y),f=f(y),i.flags|=1,Wt(s,i,f,c),i.child;case 14:return f=i.type,y=Mn(f,i.pendingProps),y=Mn(f.type,y),Lv(s,i,f,y,c);case 15:return Dv(s,i,i.type,i.pendingProps,c);case 17:return f=i.type,y=i.pendingProps,y=i.elementType===f?y:Mn(f,y),Nc(s,i),i.tag=1,Xt(f)?(s=!0,lc(i)):s=!1,Gi(i,c),kv(i,f,y),Of(i,f,y,c),If(null,i,f,!0,s,c);case 19:return Wv(s,i,c);case 22:return Iv(s,i,c)}throw Error(n(156,i.tag))};function px(s,i){return Kg(s,i)}function jP(s,i,c,f){this.tag=s,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 8,552 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(s,i,c,f){return new jP(s,i,c,f)}function rh(s){return s=s.prototype,!(!s||!s.isReactComponent)}function AP(s){if(typeof s=="function")return rh(s)?1:0;if(s!=null){if(s=s.$$typeof,s===ue)return 11;if(s===Se)return 14}return 2}function es(s,i){var c=s.alternate;return c===null?(c=bn(s.tag,i,s.key,s.mode),c.elementType=s.elementType,c.type=s.type,c.stateNode=s.stateNode,c.alternate=s,s.alternate=c):(c.pendingProps=i,c.type=s.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=s.flags&14680064,c.childLanes=s.childLanes,c.lanes=s.lanes,c.child=s.child,c.memoizedProps=s.memoizedProps,c.memoizedState=s.memoizedState,c.updateQueue=s.updateQueue,i=s.dependencies,c.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},c.sibling=s.sibling,c.index=s.index,c.ref=s.ref,c}function Ic(s,i,c,f,y,x){var N=2;if(f=s,typeof s=="function")rh(s)&&(N=1);else if(typeof s=="string")N=5;else e:switch(s){case U:return Ks(c.children,y,x,i);case O:N=8,y|=8;break;case H:return s=bn(12,c,i,y|2),s.elementType=H,s.lanes=x,s;case he:return s=bn(13,c,i,y),s.elementType=he,s.lanes=x,s;case ae:return s=bn(19,c,i,y),s.elementType=ae,s.lanes=x,s;case ee:return Fc(c,y,x,i);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case X:N=10;break e;case ne:N=9;break e;case ue:N=11;break e;case Se:N=14;break e;case J:N=16,f=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return i=bn(N,c,i,y),i.elementType=s,i.type=f,i.lanes=x,i}function Ks(s,i,c,f){return s=bn(7,s,f,i),s.lanes=c,s}function Fc(s,i,c,f){return s=bn(22,s,f,i),s.elementType=ee,s.lanes=c,s.stateNode={isHidden:!1},s}function sh(s,i,c){return s=bn(6,s,null,i),s.lanes=c,s}function ih(s,i,c){return i=bn(4,s.children!==null?s.children:[],s.key,i),i.lanes=c,i.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},i}function OP(s,i,c,f,y){this.tag=i,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jd(0),this.expirationTimes=jd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jd(0),this.identifierPrefix=f,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function oh(s,i,c,f,y,x,N,R,M){return s=new OP(s,i,c,R,M),i===1?(i=1,x===!0&&(i|=8)):i=0,x=bn(3,null,null,i),s.current=x,x.stateNode=s,x.memoizedState={element:f,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},xf(x),s}function MP(s,i,c){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:f==null?null:""+f,children:s,containerInfo:i,implementation:c}}function mx(s){if(!s)return Hr;s=s._reactInternals;e:{if(Ls(s)!==s||s.tag!==1)throw Error(n(170));var i=s;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Xt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(s.tag===1){var c=s.type;if(Xt(c))return zy(s,c,i)}return i}function gx(s,i,c,f,y,x,N,R,M){return s=oh(c,f,!0,s,y,x,N,R,M),s.context=mx(null),c=s.current,f=Ht(),y=Jr(c),x=vr(f,y),x.callback=i??null,Gr(c,x,y),s.current.lanes=y,na(s,y,f),en(s,f),s}function Bc(s,i,c,f){var y=i.current,x=Ht(),N=Jr(y);return c=mx(c),i.context===null?i.context=c:i.pendingContext=c,i=vr(x,N),i.payload={element:s},f=f===void 0?null:f,f!==null&&(i.callback=f),s=Gr(y,i,N),s!==null&&(In(s,y,N,x),gc(s,y,N)),N}function Uc(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function yx(s,i){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var c=s.retryLane;s.retryLane=c!==0&&c<i?c:i}}function ah(s,i){yx(s,i),(s=s.alternate)&&yx(s,i)}function LP(){return null}var vx=typeof reportError=="function"?reportError:function(s){console.error(s)};function lh(s){this._internalRoot=s}Vc.prototype.render=lh.prototype.render=function(s){var i=this._internalRoot;if(i===null)throw Error(n(409));Bc(s,i,null,null)},Vc.prototype.unmount=lh.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var i=s.containerInfo;Ws(function(){Bc(null,s,null,null)}),i[hr]=null}};function Vc(s){this._internalRoot=s}Vc.prototype.unstable_scheduleHydration=function(s){if(s){var i=ty();s={blockedOn:null,target:s,priority:i};for(var c=0;c<Ur.length&&i!==0&&i<Ur[c].priority;c++);Ur.splice(c,0,s),c===0&&sy(s)}};function ch(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function $c(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function xx(){}function DP(s,i,c,f,y){if(y){if(typeof f=="function"){var x=f;f=function(){var $=Uc(N);x.call($)}}var N=gx(i,f,s,0,null,!1,!1,"",xx);return s._reactRootContainer=N,s[hr]=N.current,ga(s.nodeType===8?s.parentNode:s),Ws(),N}for(;y=s.lastChild;)s.removeChild(y);if(typeof f=="function"){var R=f;f=function(){var $=Uc(M);R.call($)}}var M=oh(s,0,!1,null,null,!1,!1,"",xx);return s._reactRootContainer=M,s[hr]=M.current,ga(s.nodeType===8?s.parentNode:s),Ws(function(){Bc(i,M,c,f)}),M}function zc(s,i,c,f,y){var x=c._reactRootContainer;if(x){var N=x;if(typeof y=="function"){var R=y;y=function(){var M=Uc(N);R.call(M)}}Bc(i,N,s,y)}else N=DP(c,i,s,y,f);return Uc(N)}Zg=function(s){switch(s.tag){case 3:var i=s.stateNode;if(i.current.memoizedState.isDehydrated){var c=ta(i.pendingLanes);c!==0&&(Ad(i,c|1),en(i,dt()),(Fe&6)===0&&(Zi=dt()+500,qr()))}break;case 13:Ws(function(){var f=yr(s,1);if(f!==null){var y=Ht();In(f,s,1,y)}}),ah(s,1)}},Od=function(s){if(s.tag===13){var i=yr(s,134217728);if(i!==null){var c=Ht();In(i,s,134217728,c)}ah(s,134217728)}},ey=function(s){if(s.tag===13){var i=Jr(s),c=yr(s,i);if(c!==null){var f=Ht();In(c,s,i,f)}ah(s,i)}},ty=function(){return Ke},ny=function(s,i){var c=Ke;try{return Ke=s,i()}finally{Ke=c}},_d=function(s,i,c){switch(i){case"input":if(xt(s,c),i=c.name,c.type==="radio"&&i!=null){for(c=s;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<c.length;i++){var f=c[i];if(f!==s&&f.form===s.form){var y=oc(f);if(!y)throw Error(n(90));Ne(f),xt(f,y)}}}break;case"textarea":Dr(s,c);break;case"select":i=c.value,i!=null&&Qt(s,!!c.multiple,i,!1)}},Ug=eh,Vg=Ws;var IP={usingClientEntryPoint:!1,Events:[xa,Ui,oc,Fg,Bg,eh]},Oa={findFiberByHostInstance:Ds,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},FP={bundleType:Oa.bundleType,version:Oa.version,rendererPackageName:Oa.rendererPackageName,rendererConfig:Oa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Hg(s),s===null?null:s.stateNode},findFiberByHostInstance:Oa.findFiberByHostInstance||LP,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 Wc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wc.isDisabled&&Wc.supportsFiber)try{Vl=Wc.inject(FP),Kn=Wc}catch{}}return tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=IP,tn.createPortal=function(s,i){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ch(i))throw Error(n(200));return MP(s,i,null,c)},tn.createRoot=function(s,i){if(!ch(s))throw Error(n(299));var c=!1,f="",y=vx;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onRecoverableError!==void 0&&(y=i.onRecoverableError)),i=oh(s,1,!1,null,null,c,!1,f,y),s[hr]=i.current,ga(s.nodeType===8?s.parentNode:s),new lh(i)},tn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var i=s._reactInternals;if(i===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=Hg(i),s=s===null?null:s.stateNode,s},tn.flushSync=function(s){return Ws(s)}
40,tn.hydrate=function(s,i,c){if(!$c(i))throw Error(n(200));return zc(null,s,i,!0,c)},tn.hydrateRoot=function(s,i,c){if(!ch(s))throw Error(n(405));var f=c!=null&&c.hydratedSources||null,y=!1,x="",N=vx;if(c!=null&&(c.unstable_strictMode===!0&&(y=!0),c.identifierPrefix!==void 0&&(x=c.identifierPrefix),c.onRecoverableError!==void 0&&(N=c.onRecoverableError)),i=gx(i,null,s,1,c??null,y,!1,x,N),s[hr]=i.current,ga(s),f)for(s=0;s<f.length;s++)c=f[s],y=c._getVersion,y=y(c._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[c,y]:i.mutableSourceEagerHydrationData.push(c,y);return new Vc(i)},tn.render=function(s,i,c){if(!$c(i))throw Error(n(200));return zc(null,s,i,!1,c)},tn.unmountComponentAtNode=function(s){if(!$c(s))throw Error(n(40));return s._reactRootContainer?(Ws(function(){zc(null,null,s,!1,function(){s._reactRootContainer=null,s[hr]=null})}),!0):!1},tn.unstable_batchedUpdates=eh,tn.unstable_renderSubtreeIntoContainer=function(s,i,c,f){if(!$c(c))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return zc(s,i,c,!1,f)},tn.version="18.3.1-next-f1338f8080-20240426",tn}var Px;function l1(){if(Px)return hh.exports;Px=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),hh.exports=GP(),hh.exports}var Tx;function QP(){if(Tx)return qc;Tx=1;var e=l1();return qc.createRoot=e.createRoot,qc.hydrateRoot=e.hydrateRoot,qc}var YP=QP();const XP=lm(YP),JP=20,ZP=1e6,kr={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let gh=0;function eT(){return gh=(gh+1)%Number.MAX_VALUE,gh.toString()}const yh=new Map,Rx=e=>{if(yh.has(e))return;const t=setTimeout(()=>{yh.delete(e),Ja({type:kr.REMOVE_TOAST,toastId:e})},ZP);yh.set(e,t)},tT=(e,t)=>{switch(t.type){case kr.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,JP)};case kr.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case kr.DISMISS_TOAST:{const{toastId:n}=t;return n?Rx(n):e.toasts.forEach(r=>{Rx(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case kr.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},uu=[];let du={toasts:[]};function Ja(e){du=tT(du,e),uu.forEach(t=>{t(du)})}function nT({...e}){const t=eT(),n=o=>Ja({type:kr.UPDATE_TOAST,toast:{...o,id:t}}),r=()=>Ja({type:kr.DISMISS_TOAST,toastId:t});return Ja({type:kr.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function um(){const[e,t]=w.useState(du);return w.useEffect(()=>(uu.push(t),()=>{const n=uu.indexOf(t);n>-1&&uu.splice(n,1)}),[e]),{...e,toast:nT,dismiss:n=>Ja({type:kr.DISMISS_TOAST,toastId:n})}}function c1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=c1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function u1(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=c1(e))&&(r&&(r+=" "),r+=t);return r}const jx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ax=u1,Qu=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ax(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,l=Object.keys(o).map(h=>{const m=n==null?void 0:n[h],g=a==null?void 0:a[h];if(m===null)return null;const v=jx(m)||jx(g);return o[h][v]}),u=n&&Object.entries(n).reduce((h,m)=>{let[g,v]=m;return v===void 0||(h[g]=v),h},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,m)=>{let{class:g,className:v,...C}=m;return Object.entries(C).every(E=>{let[b,_]=E;return Array.isArray(_)?_.includes({...a,...u}[b]):{...a,...u}[b]===_})?[...h,g,v]:h},[]);return Ax(e,l,d,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.475.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const rT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),d1=(...e)=>
vendor: 4,193 bytes, lines 45-105
45e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.475.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var sT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.475.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const iT=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:l,...u},d)=>w.createElement("svg",{ref:d,...sT,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:d1("lucide",o),...u},[...l.map(([h,m])=>w.createElement(h,m)),...Array.isArray(a)?a:[a]]));/** 56 * @license lucide-react v0.475.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const Re=(e,t)=>{const n=w.forwardRef(({className:r,...o},a)=>w.createElement(iT,{ref:a,iconNode:t,className:d1(`lucide-${rT(e)}`,r),...o}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.475.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const oT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],aT=Re("ArrowRight",oT);/** 66 * @license lucide-react v0.475.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const lT=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],cT=Re("Building2",lT);/** 71 * @license lucide-react v0.475.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const uT=[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],Ox=Re("Camera",uT);/** 76 * @license lucide-react v0.475.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const dT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fT=Re("Check",dT);/** 81 * @license lucide-react v0.475.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const hT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],f1=Re("ChevronDown",hT);/** 86 * @license lucide-react v0.475.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const pT=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],mT=Re("ChevronUp",pT);/** 91 * @license lucide-react v0.475.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const gT=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],h1=Re("CircleCheckBig",gT);/** 96 * @license lucide-react v0.475.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const yT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],Yu=Re("CirclePlus",yT);/** 101 * @license lucide-react v0.475.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const vT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],xT=Re("CircleStop",vT);
105/** 106 * @license lucide-react v0.475.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const wT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],bT=Re("Clock",wT);/** 111 * @license lucide-react v0.475.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const ST=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],p1=Re("ExternalLink",ST);/** 116 * @license lucide-react v0.475.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const CT=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ET=Re("Eye",CT);/** 121 * @license lucide-react v0.475.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const _T=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],NT=Re("Filter",_T);/** 126 * @license lucide-react v0.475.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const kT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],PT=Re("Globe",kT);/** 131 * @license lucide-react v0.475.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const TT=[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]],RT=Re("Landmark",TT);/** 136 * @license lucide-react v0.475.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const jT=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],AT=Re("LayoutDashboard",jT);/** 141 * @license lucide-react v0.475.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const OT=[["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"}]],MT=Re("Link",OT);/** 146 * @license lucide-react v0.475.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const LT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],xs=Re("LoaderCircle",LT);/** 151 * @license lucide-react v0.475.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const DT=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],Mx=Re("LogIn",DT);/** 156 * @license lucide-react v0.475.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const IT=[["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"}]],Lx=Re("LogOut",IT);/** 161 * @license lucide-react v0.475.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const FT=[["path",{d:"M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z",key:"1jhwl8"}],["path",{d:"m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10",key:"1qfld7"}]],BT=Re("MailOpen",FT);/** 166 * @license lucide-react v0.475.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const UT=[["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"}]],VT=Re("Mail",UT);/** 171 * @license lucide-react v0.475.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const $T=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],zT=Re("MapPin",$T);/** 176 * @license lucide-react v0.475.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const WT=[["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"}
180]],HT=Re("Menu",WT);/** 181 * @license lucide-react v0.475.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const qT=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],m1=Re("MessageSquare",qT);/** 186 * @license lucide-react v0.475.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const KT=[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2",key:"80xlxr"}],["path",{d:"M5 10v2a7 7 0 0 0 12 5",key:"p2k8kg"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]],GT=Re("MicOff",KT);/** 191 * @license lucide-react v0.475.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const QT=[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]],YT=Re("Mic",QT);/** 196 * @license lucide-react v0.475.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const XT=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],JT=Re("Monitor",XT);/** 201 * @license lucide-react v0.475.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const ZT=[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]],g1=Re("Newspaper",ZT);/** 206 * @license lucide-react v0.475.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const eR=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],dm=Re("Pencil",eR);/** 211 * @license lucide-react v0.475.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const tR=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Ro=Re("Play",tR);/** 216 * @license lucide-react v0.475.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const nR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],rR=Re("Plus",nR);/** 221 * @license lucide-react v0.475.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const sR=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],ws=Re("Radio",sR);/** 226 * @license lucide-react v0.475.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const iR=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],oR=Re("Search",iR);/** 231 * @license lucide-react v0.475.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const aR=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],lR=Re("Send",aR);/** 236 * @license lucide-react v0.475.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const cR=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],y1=Re("Star",cR);/** 241 * @license lucide-react v0.475.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const uR=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 5,291 bytes, lines 245-290
245],["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"}]],fm=Re("Trash2",uR);/** 246 * @license lucide-react v0.475.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const dR=[["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"}]],fR=Re("TrendingUp",dR);/** 251 * @license lucide-react v0.475.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const hR=[["path",{d:"M7 21h10",key:"1b0cd5"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}]],pR=Re("TvMinimal",hR);/** 256 * @license lucide-react v0.475.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const mR=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],sl=Re("Upload",mR);/** 261 * @license lucide-react v0.475.0 - ISC 262 * 263 * This source code is licensed under the ISC license. 264 * See the LICENSE file in the root directory of this source tree. 265 */const gR=[["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"}]],Dx=Re("User",gR);/** 266 * @license lucide-react v0.475.0 - ISC 267 * 268 * This source code is licensed under the ISC license. 269 * See the LICENSE file in the root directory of this source tree. 270 */const yR=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],vR=Re("Users",yR);/** 271 * @license lucide-react v0.475.0 - ISC 272 * 273 * This source code is licensed under the ISC license. 274 * See the LICENSE file in the root directory of this source tree. 275 */const xR=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],np=Re("Video",xR);/** 276 * @license lucide-react v0.475.0 - ISC 277 * 278 * This source code is licensed under the ISC license. 279 * See the LICENSE file in the root directory of this source tree. 280 */const wR=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Ix=Re("Volume2",wR);/** 281 * @license lucide-react v0.475.0 - ISC 282 * 283 * This source code is licensed under the ISC license. 284 * See the LICENSE file in the root directory of this source tree. 285 */const bR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Pn=Re("X",bR);/** 286 * @license lucide-react v0.475.0 - ISC 287 * 288 * This source code is licensed under the ISC license. 289 * See the LICENSE file in the root directory of this source tree. 290 */const SR=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],CR=Re("Zap",SR),ER=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},_R=(e,t)=>({classGroupId:e,validator:t}),v1=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ku="-",Fx=[],NR="arbitrary..",kR=e=>{const t=TR(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return PR(l);const u=l.split(ku),d=u[0]===""&&u.length>1?1:0;return x1(u,d,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const d=r[l],h=n[l];return d?h?ER(h,d):d:h||Fx}return n[l]||Fx}}},x1=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const h=x1(e,t+1,a);if(h)return h}const l=n.validators;if(l===null)return;const u=t===0?e.join(ku):e.slice(t).join(ku),d=l.length;for(let h=0;h<d;h++){const m=l[h];if(m.validator(u))return m.classGroupId}},PR=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?NR+r:void 0})(),TR=e=>{const{theme:t,classGroups:n}=e;return RR(n,t)},RR=(e,t)=>{const n=v1();for(const r in e){const o=e[r];hm(o,n,r,t)}return n},hm=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const l=e[a];jR(l,t,n,r)}},jR=(e,t,n,r)=>{if(typeof e=="string"){AR(e,t,n);return}if(typeof e=="function"){OR(e,t,n,r);return}MR(e,t,n,r)},AR=(e,t,n)=>{const r=e===""?t:w1(t,e);r.classGroupId=n},OR=(e,t,n,r)=>{if(LR(e)){hm(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(_R(n,e))},MR=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let l=0;l<a;l++){const[u,d]=o[l];hm(d,w1(t,u),n,r)}},w1=(e,t)=>{let n=e;const r=t.split(ku),o=r.length;for(let a=0;a<o;a++){const l=r[a];let u=n.nextPart.get(l);u||(u=v1(),n.nextPart.set(l,u)),n=u}return n},LR=e=>
vendor: 6,544 bytes, line 290
290"isThemeGetter"in e&&e.isThemeGetter===!0,DR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(a,l)=>{n[a]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let l=n[a];if(l!==void 0)return l;if((l=r[a])!==void 0)return o(a,l),l},set(a,l){a in n?n[a]=l:o(a,l)}}},rp="!",Bx=":",IR=[],Ux=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),FR=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let l=0,u=0,d=0,h;const m=o.length;for(let b=0;b<m;b++){const _=o[b];if(l===0&&u===0){if(_===Bx){a.push(o.slice(d,b)),d=b+1;continue}if(_==="/"){h=b;continue}}_==="["?l++:_==="]"?l--:_==="("?u++:_===")"&&u--}const g=a.length===0?o:o.slice(d);let v=g,C=!1;g.endsWith(rp)?(v=g.slice(0,-1),C=!0):g.startsWith(rp)&&(v=g.slice(1),C=!0);const E=h&&h>d?h-d:void 0;return Ux(a,C,v,E)};if(t){const o=t+Bx,a=r;r=l=>l.startsWith(o)?a(l.slice(o.length)):Ux(IR,!1,l,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},BR=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let a=0;a<n.length;a++){const l=n[a],u=l[0]==="[",d=t.has(l);u||d?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(l)):o.push(l)}return o.length>0&&(o.sort(),r.push(...o)),r}},UR=e=>({cache:DR(e.cacheSize),parseClassName:FR(e),sortModifiers:BR(e),...kR(e)}),VR=/\s+/,$R=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,l=[],u=e.trim().split(VR);let d="";for(let h=u.length-1;h>=0;h-=1){const m=u[h],{isExternal:g,modifiers:v,hasImportantModifier:C,baseClassName:E,maybePostfixModifierPosition:b}=n(m);if(g){d=m+(d.length>0?" "+d:d);continue}let _=!!b,S=r(_?E.substring(0,b):E);if(!S){if(!_){d=m+(d.length>0?" "+d:d);continue}if(S=r(E),!S){d=m+(d.length>0?" "+d:d);continue}_=!1}const k=v.length===0?"":v.length===1?v[0]:a(v).join(":"),P=C?k+rp:k,T=P+S;if(l.indexOf(T)>-1)continue;l.push(T);const j=o(S,_);for(let F=0;F<j.length;++F){const U=j[F];l.push(P+U)}d=m+(d.length>0?" "+d:d)}return d},zR=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=b1(n))&&(o&&(o+=" "),o+=r);return o},b1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=b1(e[r]))&&(n&&(n+=" "),n+=t);return n},WR=(e,...t)=>{let n,r,o,a;const l=d=>{const h=t.reduce((m,g)=>g(m),e());return n=UR(h),r=n.cache.get,o=n.cache.set,a=u,u(d)},u=d=>{const h=r(d);if(h)return h;const m=$R(d,n);return o(d,m),m};return a=l,(...d)=>a(zR(...d))},HR=[],St=e=>{const t=n=>n[e]||HR;return t.isThemeGetter=!0,t},S1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,C1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qR=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,KR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GR=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,QR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,YR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,XR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ns=e=>qR.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),rs=e=>!!e&&Number.isInteger(Number(e)),vh=e=>e.endsWith("%")&&Me(e.slice(0,-1)),br=e=>KR.test(e),E1=()=>!0,JR=e=>GR.test(e)&&!QR.test(e),pm=()=>!1,ZR=e=>YR.test(e),ej=e=>XR.test(e),tj=e=>!fe(e)&&!pe(e),nj=e=>Rs(e,k1,pm),fe=e=>S1.test(e),Gs=e=>Rs(e,P1,JR),Vx=e=>Rs(e,uj,Me),rj=e=>Rs(e,R1,E1),sj=e=>Rs(e,T1,pm),$x=e=>Rs(e,_1,pm),ij=e=>Rs(e,N1,ej),Kc=e=>Rs(e,j1,ZR),pe=e=>C1.test(e),La=e=>Ni(e,P1),oj=e=>Ni(e,T1),zx=e=>Ni(e,_1),aj=e=>Ni(e,k1),lj=e=>Ni(e,N1),Gc=e=>Ni(e,j1,!0),cj=e=>Ni(e,R1,!0),Rs=(e,t,n)=>{const r=S1.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ni=(e,t,n=!1)=>{const r=C1.exec(e);return r?r[1]?t(r[1]):n:!1},_1=e=>e==="position"||e==="percentage",N1=e=>e==="image"||e==="url",k1=e=>e==="length"||e==="size"||e==="bg-size",P1=e=>e==="length",uj=e=>e==="number",T1=e=>e==="family-name",R1=e=>e==="number"||e==="weight",j1=e=>e==="shadow",dj=()=>{const e=St("color"),t=St("font"),n=St("text"),r=St("font-weight"),o=St("tracking"),a=St("leading"),l=St("breakpoint"),u=St("container"),d=St("spacing"),h=St("radius"),m=St("shadow"),g=St("inset-shadow"),v=St("text-shadow"),C=St("drop-shadow"),E=St("blur"),b=St("perspective"),_=St("aspect"),S=St("ease"),k=St("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...T(),pe,fe],F=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto","contain","none"],O=()=>[pe,fe,d],H=()=>[ns,"full","auto",...O()],X=()=>[rs,"none","subgrid",pe,fe],ne=()=>["auto",{span:["full",rs,pe,fe]},rs,pe,fe],ue=()=>[rs,"auto",pe,fe],he=()=>["auto","min","max","fr",pe,fe],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Se=()=>["start","end","center","stretch","center-safe","end-safe"],J=()=>["auto",...O()],ee=()=>[ns,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],z=()=>[ns,"screen","full","dvw","lvw","svw","min","max","fit",...O()],te=()=>[ns,"screen","full","lh","dvh","lvh","svh","min","max","fit",...O()],W=()=>[e,pe,fe],I=()=>[...T(),zx,$x,{position:[pe,fe]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],we=()=>["auto","cover","contain",aj,nj,{size:[pe,fe]}],xe=()=>[vh,La,Gs],ge=()=>["","none","full",h,pe,fe],ve=()=>["",Me,La,Gs],K=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[Me,vh,zx,$x],Te=()=>["","none",E,pe,fe],je=()=>["none",Me,pe,fe],Ne=()=>["none",Me,pe,fe],Be=()=>[Me,pe,fe],qe=()=>[ns,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[br],breakpoint:[br],color:[E1],container:[br],"drop-shadow":[br],ease:["in","out","in-out"],font:[tj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[br],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[br],shadow:[br],spacing:["px",Me],text:[br],"text-shadow":[br],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ns,fe,pe,_]}
vendor: 6,119 bytes, line 290
290],container:["container"],columns:[{columns:[Me,fe,pe,u]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{"inset-s":H(),start:H()}],end:[{"inset-e":H(),end:H()}],"inset-bs":[{"inset-bs":H()}],"inset-be":[{"inset-be":H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[rs,"auto",pe,fe]}],basis:[{basis:[ns,"full","auto",u,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,ns,"auto","initial","none",fe]}],grow:[{grow:["",Me,pe,fe]}],shrink:[{shrink:["",Me,pe,fe]}],order:[{order:[rs,"first","last","none",pe,fe]}],"grid-cols":[{"grid-cols":X()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":X()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...Se(),"normal"]}],"justify-self":[{"justify-self":["auto",...Se()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...Se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Se(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...Se(),"baseline"]}],"place-self":[{"place-self":["auto",...Se()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pbs:[{pbs:O()}],pbe:[{pbe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:J()}],mx:[{mx:J()}],my:[{my:J()}],ms:[{ms:J()}],me:[{me:J()}],mbs:[{mbs:J()}],mbe:[{mbe:J()}],mt:[{mt:J()}],mr:[{mr:J()}],mb:[{mb:J()}],ml:[{ml:J()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],"inline-size":[{inline:["auto",...z()]}],"min-inline-size":[{"min-inline":["auto",...z()]}],"max-inline-size":[{"max-inline":["none",...z()]}],"block-size":[{block:["auto",...te()]}],"min-block-size":[{"min-block":["auto",...te()]}],"max-block-size":[{"max-block":["none",...te()]}],w:[{w:[u,"screen",...ee()]}],"min-w":[{"min-w":[u,"screen","none",...ee()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",n,La,Gs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,cj,rj]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vh,fe]}],"font-family":[{font:[oj,sj,t]}],"font-features":[{"font-features":[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,pe,fe]}],"line-clamp":[{"line-clamp":[Me,"none",pe,Vx]}],leading:[{leading:[a,...O()]}],"list-image":[{"list-image":["none",pe,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",pe,Gs]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[Me,"auto",pe,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:we()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},rs,pe,fe],radial:["",pe,fe],conic:[rs,pe,fe]},lj,ij]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:xe()}
vendor: 7,400 bytes, line 290
290],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:ge()}],"rounded-s":[{"rounded-s":ge()}],"rounded-e":[{"rounded-e":ge()}],"rounded-t":[{"rounded-t":ge()}],"rounded-r":[{"rounded-r":ge()}],"rounded-b":[{"rounded-b":ge()}],"rounded-l":[{"rounded-l":ge()}],"rounded-ss":[{"rounded-ss":ge()}],"rounded-se":[{"rounded-se":ge()}],"rounded-ee":[{"rounded-ee":ge()}],"rounded-es":[{"rounded-es":ge()}],"rounded-tl":[{"rounded-tl":ge()}],"rounded-tr":[{"rounded-tr":ge()}],"rounded-br":[{"rounded-br":ge()}],"rounded-bl":[{"rounded-bl":ge()}],"border-w":[{border:ve()}],"border-w-x":[{"border-x":ve()}],"border-w-y":[{"border-y":ve()}],"border-w-s":[{"border-s":ve()}],"border-w-e":[{"border-e":ve()}],"border-w-bs":[{"border-bs":ve()}],"border-w-be":[{"border-be":ve()}],"border-w-t":[{"border-t":ve()}],"border-w-r":[{"border-r":ve()}],"border-w-b":[{"border-b":ve()}],"border-w-l":[{"border-l":ve()}],"divide-x":[{"divide-x":ve()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ve()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,pe,fe]}],"outline-w":[{outline:["",Me,La,Gs]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",m,Gc,Kc]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",g,Gc,Kc]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[Me,Gs]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":ve()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",v,Gc,Kc]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[Me,pe,fe]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[pe,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:we()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,fe]}],filter:[{filter:["","none",pe,fe]}],blur:[{blur:Te()}],brightness:[{brightness:[Me,pe,fe]}],contrast:[{contrast:[Me,pe,fe]}],"drop-shadow":[{"drop-shadow":["","none",C,Gc,Kc]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",Me,pe,fe]}],"hue-rotate":[{"hue-rotate":[Me,pe,fe]}],invert:[{invert:["",Me,pe,fe]}],saturate:[{saturate:[Me,pe,fe]}],sepia:[{sepia:["",Me,pe,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,fe]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[Me,pe,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Me,pe,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,pe,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,pe,fe]}],"backdrop-invert":[{"backdrop-invert":["",Me,pe,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Me,pe,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Me,pe,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,pe,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",pe,fe]}],ease:[{ease:["linear","initial",S,pe,fe]}],delay:[{delay:[Me,pe,fe]}],animate:[{animate:["none",k,pe,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,pe,fe]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:je()}],"rotate-x":[{"rotate-x":je()}],"rotate-y":[{"rotate-y":je()}],"rotate-z":[{"rotate-z":je()}],scale:[{scale:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"scale-3d":["scale-3d"],skew:[{skew:Be()}],"skew-x":[{"skew-x":Be()}],"skew-y":[{"skew-y":Be()}],transform:[{transform:[pe,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qe()}],"translate-x":[{"translate-x":qe()}],"translate-y":[{"translate-y":qe()}],"translate-z":[{"translate-z":qe()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}
vendor: 6,955 bytes, line 290
290],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mbs":[{"scroll-mbs":O()}],"scroll-mbe":[{"scroll-mbe":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pbs":[{"scroll-pbs":O()}],"scroll-pbe":[{"scroll-pbe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,fe]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[Me,La,Gs,Vx]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},fj=WR(dj);function Ve(...e){return fj(u1(e))}const A1=w.forwardRef(({...e},t)=>p.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));A1.displayName="ToastProvider";const O1=w.forwardRef(({...e},t)=>p.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));O1.displayName="ToastViewport";const hj=Qu("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),M1=w.forwardRef(({className:e,variant:t,...n},r)=>p.jsx("div",{ref:r,className:Ve(hj({variant:t}),e),...n}));M1.displayName="Toast";const pj=w.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Ve("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));pj.displayName="ToastAction";const L1=w.forwardRef(({className:e,...t},n)=>p.jsx("button",{ref:n,className:Ve("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 5,195 bytes, line 290
290/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:p.jsx(Pn,{className:"h-4 w-4"})}));L1.displayName="ToastClose";const D1=w.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Ve("text-sm font-semibold",e),...t}));D1.displayName="ToastTitle";const I1=w.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Ve("text-sm opacity-90",e),...t}));I1.displayName="ToastDescription";function mj(){const{toasts:e}=um();return p.jsxs(A1,{children:[e.map(function({id:t,title:n,description:r,action:o,...a}){return p.jsxs(M1,{...a,children:[p.jsxs("div",{className:"grid gap-1",children:[n&&p.jsx(D1,{children:n}),r&&p.jsx(I1,{children:r})]}),o,p.jsx(L1,{})]},t)}),p.jsx(O1,{})]})}var Io=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},gj={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ls,am,Yb,yj=(Yb=class{constructor(){be(this,ls,gj);be(this,am,!1)}setTimeoutProvider(e){se(this,ls,e)}setTimeout(e,t){return A(this,ls).setTimeout(e,t)}clearTimeout(e){A(this,ls).clearTimeout(e)}setInterval(e,t){return A(this,ls).setInterval(e,t)}clearInterval(e){A(this,ls).clearInterval(e)}},ls=new WeakMap,am=new WeakMap,Yb),ti=new yj;function vj(e){setTimeout(e,0)}var mi=typeof window>"u"||"Deno"in globalThis;function Kt(){}function xj(e,t){return typeof e=="function"?e(t):e}function sp(e){return typeof e=="number"&&e>=0&&e!==1/0}function F1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bs(e,t){return typeof e=="function"?e(t):e}function Nn(e,t){return typeof e=="function"?e(t):e}function Wx(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==mm(l,t.options))return!1}else if(!il(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||o&&o!==t.state.fetchStatus||a&&!a(t))}function Hx(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(gi(t.options.mutationKey)!==gi(a))return!1}else if(!il(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function mm(e,t){return((t==null?void 0:t.queryKeyHashFn)||gi)(e)}function gi(e){return JSON.stringify(e,(t,n)=>ip(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function il(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>il(e[n],t[n])):!1}var wj=Object.prototype.hasOwnProperty;function B1(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=qx(e)&&qx(t);if(!r&&!(ip(e)&&ip(t)))return t;const a=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),u=l.length,d=r?new Array(u):{};let h=0;for(let m=0;m<u;m++){const g=r?m:l[m],v=e[g],C=t[g];if(v===C){d[g]=v,(r?m<a:wj.call(e,g))&&h++;continue}if(v===null||C===null||typeof v!="object"||typeof C!="object"){d[g]=C;continue}const E=B1(v,C,n+1);d[g]=E,E===v&&h++}return a===u&&h===a?e:d}function Pu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function qx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ip(e){if(!Kx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Kx(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Kx(e){return Object.prototype.toString.call(e)==="[object Object]"}function bj(e){return new Promise(t=>{ti.setTimeout(t,e)})}function op(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?B1(e,t):t}function Sj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Cj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var gm=Symbol();function U1(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===gm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ym(e,t){return typeof e=="function"?e(...t):!!e}function Ej(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var si,cs,vo,Xb,_j=(Xb=class extends Io{constructor(){super();be(this,si);be(this,cs);be(this,vo);se(this,vo,t=>{if(!mi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,cs)||this.setEventListener(A(this,vo))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,cs))==null||t.call(this),se(this,cs,void 0))}setEventListener(t){var n;
vendor: 2,672 bytes, line 290
290se(this,vo,t),(n=A(this,cs))==null||n.call(this),se(this,cs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){A(this,si)!==t&&(se(this,si,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof A(this,si)=="boolean"?A(this,si):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},si=new WeakMap,cs=new WeakMap,vo=new WeakMap,Xb),vm=new _j;function ap(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var Nj=vj;function kj(){let e=[],t=0,n=u=>{u()},r=u=>{u()},o=Nj;const a=u=>{t?e.push(u):o(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&o(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||l()}return d},batchCalls:u=>(...d)=>{a(()=>{u(...d)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{o=u}}}var Ct=kj(),xo,us,wo,Jb,Pj=(Jb=class extends Io{constructor(){super();be(this,xo,!0);be(this,us);be(this,wo);se(this,wo,t=>{if(!mi&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){A(this,us)||this.setEventListener(A(this,wo))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,us))==null||t.call(this),se(this,us,void 0))}setEventListener(t){var n;se(this,wo,t),(n=A(this,us))==null||n.call(this),se(this,us,t(this.setOnline.bind(this)))}setOnline(t){A(this,xo)!==t&&(se(this,xo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return A(this,xo)}},xo=new WeakMap,us=new WeakMap,wo=new WeakMap,Jb),Tu=new Pj;function Tj(e){return Math.min(1e3*2**e,3e4)}function V1(e){return(e??"online")==="online"?Tu.isOnline():!0}var lp=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $1(e){let t=!1,n=0,r;const o=ap(),a=()=>o.status!=="pending",l=b=>{var _;if(!a()){const S=new lp(b);v(S),(_=e.onCancel)==null||_.call(e,S)}},u=()=>{t=!0},d=()=>{t=!1},h=()=>vm.isFocused()&&(e.networkMode==="always"||Tu.isOnline())&&e.canRun(),m=()=>V1(e.networkMode)&&e.canRun(),g=b=>{a()||(r==null||r(),o.resolve(b))},v=b=>{a()||(r==null||r(),o.reject(b))},C=()=>new Promise(b=>{var _;r=S=>{(a()||h())&&b(S)},(_=e.onPause)==null||_.call(e)}).then(()=>{var b;r=void 0,a()||(b=e.onContinue)==null||b.call(e)}),E=()=>
vendor: 4,359 bytes, line 290
290{if(a())return;let b;const _=n===0?e.initialPromise:void 0;try{b=_??e.fn()}catch(S){b=Promise.reject(S)}Promise.resolve(b).then(g).catch(S=>{var F;if(a())return;const k=e.retry??(mi?0:3),P=e.retryDelay??Tj,T=typeof P=="function"?P(n,S):P,j=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,S);if(t||!j){v(S);return}n++,(F=e.onFail)==null||F.call(e,n,S),bj(T).then(()=>h()?void 0:C()).then(()=>{t?v(S):E()})})};return{promise:o,status:()=>o.status,cancel:l,continue:()=>(r==null||r(),o),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?E():C().then(E),o)}}var ii,Zb,z1=(Zb=class{constructor(){be(this,ii)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),sp(this.gcTime)&&se(this,ii,ti.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(mi?1/0:300*1e3))}clearGcTimeout(){A(this,ii)&&(ti.clearTimeout(A(this,ii)),se(this,ii,void 0))}},ii=new WeakMap,Zb),oi,bo,En,ai,Pt,vl,li,Un,Sr,e1,Rj=(e1=class extends z1{constructor(t){super();be(this,Un);be(this,oi);be(this,bo);be(this,En);be(this,ai);be(this,Pt);be(this,vl);be(this,li);se(this,li,!1),se(this,vl,t.defaultOptions),this.setOptions(t.options),this.observers=[],se(this,ai,t.client),se(this,En,A(this,ai).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,se(this,oi,Qx(this.options)),this.state=t.state??A(this,oi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=A(this,Pt))==null?void 0:t.promise}setOptions(t){if(this.options={...A(this,vl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Qx(this.options);n.data!==void 0&&(this.setState(Gx(n.data,n.dataUpdatedAt)),se(this,oi,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,En).remove(this)}setData(t,n){const r=op(this.state.data,t,this.options);return Ae(this,Un,Sr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ae(this,Un,Sr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=A(this,Pt))==null?void 0:r.promise;return(o=A(this,Pt))==null||o.cancel(t),n?n.then(Kt).catch(Kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,oi))}isActive(){return this.observers.some(t=>Nn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>bs(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!F1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,Pt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,Pt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),A(this,En).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(A(this,Pt)&&(A(this,li)?A(this,Pt).cancel({revert:!0}):A(this,Pt).cancelRetry()),this.scheduleGc()),A(this,En).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ae(this,Un,Sr).call(this,{type:"invalidate"})}async fetch(t,n){var d,h,m,g,v,C,E,b,_,S,k,P;if(this.state.fetchStatus!=="idle"&&((d=A(this,Pt))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,Pt))return A(this,Pt).continueRetry(),A(this,Pt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const T=this.observers.find(j=>j.options.queryFn);T&&this.setOptions(T.options)}const r=new AbortController,o=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(se(this,li,!0),r.signal)}
290)},a=()=>{const T=U1(this.options,n),F=(()=>{const U={client:A(this,ai),queryKey:this.queryKey,meta:this.meta};return o(U),U})();return se(this,li,!1),this.options.persister?this.options.persister(T,F,this):T(F)},u=(()=>{const T={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:A(this,ai),state:this.state,fetchFn:a};return o(T),T})();(h=this.options.behavior)==null||h.onFetch(u,this),se(this,bo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=u.fetchOptions)==null?void 0:m.meta))&&Ae(this,Un,Sr).call(this,{type:"fetch",meta:(g=u.fetchOptions)==null?void 0:g.meta}),se(this,Pt,$1({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:T=>{T instanceof lp&&T.revert&&this.setState({...A(this,bo),fetchStatus:"idle"}),r.abort()},onFail:(T,j)=>{Ae(this,Un,Sr).call(this,{type:"failed",failureCount:T,error:j})},onPause:()=>{Ae(this,Un,Sr).call(this,{type:"pause"})},onContinue:()=>{Ae(this,Un,Sr).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const T=await A(this,Pt).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(C=(v=A(this,En).config).onSuccess)==null||C.call(v,T,this),(b=(E=A(this,En).config).onSettled)==null||b.call(E,T,this.state.error,this),T}catch(T){if(T instanceof lp){if(T.silent)return A(this,Pt).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw Ae(this,Un,Sr).call(this,{type:"error",error:T}),(S=(_=A(this,En).config).onError)==null||S.call(_,T,this),(P=(k=A(this,En).config).onSettled)==null||P.call(k,this.state.data,T,this),T}finally{this.scheduleGc()}}},oi=new WeakMap,bo=new WeakMap,En=new WeakMap,ai=new WeakMap,Pt=new WeakMap,vl=new WeakMap,li=new WeakMap,Un=new WeakSet,Sr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...W1(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...Gx(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return se(this,bo,t.manual?o:void 0),o;case"error":const a=t.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ct.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),A(this,En).notify({query:this,type:"updated",action:t})})},e1);function W1(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:V1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Gx(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Qx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var nn,De,xl,qt,ci,So,Cr,ds,wl,Co,Eo,ui,di,fs,_o,He,Wa,cp,up,dp,fp,hp,pp,mp,H1,t1,jj=(t1=class extends Io{constructor(t,n){super();be(this,He);be(this,nn);be(this,De);be(this,xl);be(this,qt);be(this,ci);be(this,So);be(this,Cr);be(this,ds);be(this,wl);be(this,Co);be(this,Eo);be(this,ui);be(this,di);be(this,fs);be(this,_o,new Set);this.options=n,se(this,nn,t),se(this,ds,null),se(this,Cr,ap()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(A(this,De).addObserver(this),Yx(A(this,De),this.options)?Ae(this,He,Wa).call(this):this.updateResult(),Ae(this,He,fp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gp(A(this,De),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gp(A(this,De),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ae(this,He,hp).call(this),Ae(this,He,pp).call(this),A(this,De).removeObserver(this)}setOptions(t){const n=this.options,r=A(this,De);if(this.options=A(this,nn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Nn(this.options.enabled,A(this,De))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ae(this,He,mp).call(this),A(this,De).setOptions(this.options),n._defaulted&&!Pu(this.options,n)&&A(this,nn).getQueryCache().notify({type:"observerOptionsUpdated",query:A(this,De),observer:this});const o=this.hasListeners();o&&Xx(A(this,De),r,this.options,n)&&Ae(this,He,Wa).call(this),this.updateResult(),o&&(A(this,De)!==r||Nn(this.options.enabled,A(this,De))!==Nn(n.enabled,A(this,De))||bs(this.options.staleTime,A(this,De))!==bs(n.staleTime,A(this,De)))&&Ae(this,He,cp).call(this);const a=Ae(this,He,up).call(this);o&&(A(this,De)!==r||Nn(this.options.enabled,A(this,De))!==Nn(n.enabled,A(this,De))||a!==A(this,fs))&&Ae(this,He,dp).call(this,a)}getOptimisticResult(t){const n=A(this,nn).getQueryCache().build(A(this,nn),t),r=this.createResult(n,t);return Oj(this,r)&&(se(this,qt,r),se(this,So,this.options),se(this,ci,A(this,De).state)),r}getCurrentResult(){return A(this,qt)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&A(this,Cr).status==="pending"&&A(this,Cr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){A(this,_o).add(t)}getCurrentQuery(){return A(this,De)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=A(this,nn).defaultQueryOptions(t),r=A(this,nn).getQueryCache().build(A(this,nn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ae(this,He,Wa).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),A(this,qt)))}createResult(t,n){var H;const r=A(this,De),o=this.options,a=A(this,qt),l=A(this,ci),u=A(this,So
vendor: 4,276 bytes, line 290
290),h=t!==r?t.state:A(this,xl),{state:m}=t;let g={...m},v=!1,C;if(n._optimisticResults){const X=this.hasListeners(),ne=!X&&Yx(t,n),ue=X&&Xx(t,r,n,o);(ne||ue)&&(g={...g,...W1(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:E,errorUpdatedAt:b,status:_}=g;C=g.data;let S=!1;if(n.placeholderData!==void 0&&C===void 0&&_==="pending"){let X;a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(X=a.data,S=!0):X=typeof n.placeholderData=="function"?n.placeholderData((H=A(this,Eo))==null?void 0:H.state.data,A(this,Eo)):n.placeholderData,X!==void 0&&(_="success",C=op(a==null?void 0:a.data,X,n),v=!0)}if(n.select&&C!==void 0&&!S)if(a&&C===(l==null?void 0:l.data)&&n.select===A(this,wl))C=A(this,Co);else try{se(this,wl,n.select),C=n.select(C),C=op(a==null?void 0:a.data,C,n),se(this,Co,C),se(this,ds,null)}catch(X){se(this,ds,X)}A(this,ds)&&(E=A(this,ds),C=A(this,Co),b=Date.now(),_="error");const k=g.fetchStatus==="fetching",P=_==="pending",T=_==="error",j=P&&k,F=C!==void 0,O={status:_,fetchStatus:g.fetchStatus,isPending:P,isSuccess:_==="success",isError:T,isInitialLoading:j,isLoading:j,data:C,dataUpdatedAt:g.dataUpdatedAt,error:E,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:k,isRefetching:k&&!P,isLoadingError:T&&!F,isPaused:g.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:T&&F,isStale:xm(t,n),refetch:this.refetch,promise:A(this,Cr),isEnabled:Nn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const X=O.data!==void 0,ne=O.status==="error"&&!X,ue=Se=>{ne?Se.reject(O.error):X&&Se.resolve(O.data)},he=()=>{const Se=se(this,Cr,O.promise=ap());ue(Se)},ae=A(this,Cr);switch(ae.status){case"pending":t.queryHash===r.queryHash&&ue(ae);break;case"fulfilled":(ne||O.data!==ae.value)&&he();break;case"rejected":(!ne||O.error!==ae.reason)&&he();break}}return O}updateResult(){const t=A(this,qt),n=this.createResult(A(this,De),this.options);if(se(this,ci,A(this,De).state),se(this,So,this.options),A(this,ci).data!==void 0&&se(this,Eo,A(this,De)),Pu(n,t))return;se(this,qt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!A(this,_o).size)return!0;const l=new Set(a??A(this,_o));return this.options.throwOnError&&l.add("error"),Object.keys(A(this,qt)).some(u=>{const d=u;return A(this,qt)[d]!==t[d]&&l.has(d)})};Ae(this,He,H1).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ae(this,He,fp).call(this)}},nn=new WeakMap,De=new WeakMap,xl=new WeakMap,qt=new WeakMap,ci=new WeakMap,So=new WeakMap,Cr=new WeakMap,ds=new WeakMap,wl=new WeakMap,Co=new WeakMap,Eo=new WeakMap,ui=new WeakMap,di=new WeakMap,fs=new WeakMap,_o=new WeakMap,He=new WeakSet,Wa=function(t){Ae(this,He,mp).call(this);let n=A(this,De).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Kt)),n},cp=function(){Ae(this,He,hp).call(this);const t=bs(this.options.staleTime,A(this,De));if(mi||A(this,qt).isStale||!sp(t))return;const r=F1(A(this,qt).dataUpdatedAt,t)+1;se(this,ui,ti.setTimeout(()=>{A(this,qt).isStale||this.updateResult()},r))},up=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(A(this,De)):this.options.refetchInterval)??!1},dp=function(t){Ae(this,He,pp).call(this),se(this,fs,t),!(mi||Nn(this.options.enabled,A(this,De))===!1||!sp(A(this,fs))||A(this,fs)===0)&&se(this,di,ti.setInterval(()=>{(this.options.refetchIntervalInBackground||vm.isFocused())&&Ae(this,He,Wa).call(this)},A(this,fs)))},fp=function(){Ae(this,He,cp).call(this),Ae(this,He,dp).call(this,Ae(this,He,up).call(this))},hp=function(){A(this,ui)&&(ti.clearTimeout(A(this,ui)),se(this,ui,void 0))},pp=function(){A(this,di)&&(ti.clearInterval(A(this,di)),se(this,di,void 0))},mp=function(){const t=A(this,nn).getQueryCache().build(A(this,nn),this.options);if(t===A(this,De))return;const n=A(this,De);se(this,De,t),se(this,xl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},H1=function(t){Ct.batch(()=>
vendor: 5,450 bytes, line 290
290{t.listeners&&this.listeners.forEach(n=>{n(A(this,qt))}),A(this,nn).getQueryCache().notify({query:A(this,De),type:"observerResultsUpdated"})})},t1);function Aj(e,t){return Nn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Yx(e,t){return Aj(e,t)||e.state.data!==void 0&&gp(e,t,t.refetchOnMount)}function gp(e,t,n){if(Nn(t.enabled,e)!==!1&&bs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&xm(e,t)}return!1}function Xx(e,t,n,r){return(e!==t||Nn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&xm(e,n)}function xm(e,t){return Nn(t.enabled,e)!==!1&&e.isStaleByTime(bs(t.staleTime,e))}function Oj(e,t){return!Pu(e.getCurrentResult(),t)}function Jx(e){return{onFetch:(t,n)=>{var m,g,v,C,E;const r=t.options,o=(v=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:v.direction,a=((C=t.state.data)==null?void 0:C.pages)||[],l=((E=t.state.data)==null?void 0:E.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const h=async()=>{let b=!1;const _=P=>{Ej(P,()=>t.signal,()=>b=!0)},S=U1(t.options,t.fetchOptions),k=async(P,T,j)=>{if(b)return Promise.reject();if(T==null&&P.pages.length)return Promise.resolve(P);const U=(()=>{const ne={client:t.client,queryKey:t.queryKey,pageParam:T,direction:j?"backward":"forward",meta:t.options.meta};return _(ne),ne})(),O=await S(U),{maxPages:H}=t.options,X=j?Cj:Sj;return{pages:X(P.pages,O,H),pageParams:X(P.pageParams,T,H)}};if(o&&a.length){const P=o==="backward",T=P?Mj:Zx,j={pages:a,pageParams:l},F=T(r,j);u=await k(j,F,P)}else{const P=e??a.length;do{const T=d===0?l[0]??r.initialPageParam:Zx(r,u);if(d>0&&T==null)break;u=await k(u,T),d++}while(d<P)}return u};t.options.persister?t.fetchFn=()=>{var b,_;return(_=(b=t.options).persister)==null?void 0:_.call(b,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function Zx(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Mj(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var bl,Zn,Bt,fi,er,is,n1,Lj=(n1=class extends z1{constructor(t){super();be(this,er);be(this,bl);be(this,Zn);be(this,Bt);be(this,fi);se(this,bl,t.client),this.mutationId=t.mutationId,se(this,Bt,t.mutationCache),se(this,Zn,[]),this.state=t.state||q1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){A(this,Zn).includes(t)||(A(this,Zn).push(t),this.clearGcTimeout(),A(this,Bt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){se(this,Zn,A(this,Zn).filter(n=>n!==t)),this.scheduleGc(),A(this,Bt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){A(this,Zn).length||(this.state.status==="pending"?this.scheduleGc():A(this,Bt).remove(this))}continue(){var t;return((t=A(this,fi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,u,d,h,m,g,v,C,E,b,_,S,k,P,T,j,F,U;const n=()=>{Ae(this,er,is).call(this,{type:"continue"})},r={client:A(this,bl),meta:this.options.meta,mutationKey:this.options.mutationKey};se(this,fi,$1({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(O,H)=>{Ae(this,er,is).call(this,{type:"failed",failureCount:O,error:H})},onPause:()=>{Ae(this,er,is).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,Bt).canRun(this)}));const o=this.state.status==="pending",a=!A(this,fi).canStart();try{if(o)n();else{Ae(this,er,is).call(this,{type:"pending",variables:t,isPaused:a}),A(this,Bt).config.onMutate&&await A(this,Bt).config.onMutate(t,this,r);const H=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t,r));H!==this.state.context&&Ae(this,er,is).call(this,{type:"pending",context:H,variables:t,isPaused:a})}const O=await A(this,fi).start();return await((h=(d=A(this,Bt).config).onSuccess)==null?void 0:h.call(d,O,t,this.state.context,this,r)),await((g=(m=this.options).onSuccess)==null?void 0:g.call(m,O,t,this.state.context,r)),await((C=(v=A(this,Bt).config).onSettled)==null?void 0:C.call(v,O,null,this.state.variables,this.state.context,this,r)),await((b=(E=this.options).onSettled)==null?void 0:b.call(E,O,null,t,this.state.context,r)),Ae(this,er,is).call(this,{type:"success",data:O}),O}catch(O){try{await((S=(_=A(this,Bt).config).onError)==null?void 0:S.call(_,O,t,this.state.context,this,r))}catch(H){Promise.reject(H)}try{await((P=(k=this.options).onError)==null?void 0:P.call(k,O,t,this.state.context,r))}catch(H){Promise.reject(H)}try{await((j=(T=A(this,Bt).config).onSettled)==null?void 0:j.call(T,void 0,O,this.state.variables,this.state.context,this,r))}catch(H){Promise.reject(H)}try{await((U=(F=this.options).onSettled)==null?void 0:U.call(F,void 0,O,t,this.state.context,r))}catch(H){Promise.reject(H)}throw Ae(this,er,is).call(this,{type:"error",error:O}),O}finally{A(this,Bt).runNext(this)}}},bl=new WeakMap,Zn=new WeakMap,Bt=new WeakMap,fi=new WeakMap,er=new WeakSet,is=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};
290case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ct.batch(()=>{A(this,Zn).forEach(r=>{r.onMutationUpdate(t)}),A(this,Bt).notify({mutation:this,type:"updated",action:t})})},n1);function q1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Er,Vn,Sl,r1,Dj=(r1=class extends Io{constructor(t={}){super();be(this,Er);be(this,Vn);be(this,Sl);this.config=t,se(this,Er,new Set),se(this,Vn,new Map),se(this,Sl,0)}build(t,n,r){const o=new Lj({client:t,mutationCache:this,mutationId:++Hc(this,Sl)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){A(this,Er).add(t);const n=Qc(t);if(typeof n=="string"){const r=A(this,Vn).get(n);r?r.push(t):A(this,Vn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(A(this,Er).delete(t)){const n=Qc(t);if(typeof n=="string"){const r=A(this,Vn).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&A(this,Vn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Qc(t);if(typeof n=="string"){const r=A(this,Vn).get(n),o=r==null?void 0:r.find(a=>a.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Qc(t);if(typeof n=="string"){const o=(r=A(this,Vn).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ct.batch(()=>{A(this,Er).forEach(t=>{this.notify({type:"removed",mutation:t})}),A(this,Er).clear(),A(this,Vn).clear()})}getAll(){return Array.from(A(this,Er))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Hx(n,r))}findAll(t={}){return this.getAll().filter(n=>Hx(t,n))}notify(t){Ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ct.batch(()=>Promise.all(t.map(n=>n.continue().catch(Kt))))}},Er=new WeakMap,Vn=new WeakMap,Sl=new WeakMap,r1);function Qc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var _r,hs,rn,Nr,Rr,fu,yp,s1,Ij=(s1=class extends Io{constructor(n,r){super();be(this,Rr);be(this,_r);be(this,hs);be(this,rn);be(this,Nr);se(this,_r,n),this.setOptions(r),this.bindMethods(),Ae(this,Rr,fu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=A(this,_r).defaultMutationOptions(n),Pu(this.options,r)||A(this,_r).getMutationCache().notify({type:"observerOptionsUpdated",mutation:A(this,rn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&gi(r.mutationKey)!==gi(this.options.mutationKey)?this.reset():((o=A(this,rn))==null?void 0:o.state.status)==="pending"&&A(this,rn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=A(this,rn))==null||n.removeObserver(this)}onMutationUpdate(n){Ae(this,Rr,fu).call(this),Ae(this,Rr,yp).call(this,n)}getCurrentResult(){return A(this,hs)}reset(){var n;(n=A(this,rn))==null||n.removeObserver(this),se(this,rn,void 0),Ae(this,Rr,fu).call(this),Ae(this,Rr,yp).call(this)}mutate(n,r){var o;return se(this,Nr,r),(o=A(this,rn))==null||o.removeObserver(this),se(this,rn,A(this,_r).getMutationCache().build(A(this,_r),this.options)),A(this,rn).addObserver(this),A(this,rn).execute(n)}},_r=new WeakMap,hs=new WeakMap,rn=new WeakMap,Nr=new WeakMap,Rr=new WeakSet,fu=function(){var r;const n=((r=A(this,rn))==null?void 0:r.state)??q1();se(this,hs,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},yp=function(n){Ct.batch(()=>{var r,o,a,l,u,d,h,m;if(A(this,Nr)&&this.hasListeners()){const g=A(this,hs).variables,v=A(this,hs).context,C={client:A(this,_r),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(r=A(this,Nr)).onSuccess)==null||o.call(r,n.data,g,v,C)}catch(E){Promise.reject(E)}try{(l=(a=A(this,Nr)).onSettled)==null||l.call(a,n.data,null,g,v,C)}catch(E){Promise.reject(E)}}else if((n==null?void 0:n.type)==="error"){try{(d=(u=A(this,Nr)).onError)==null||d.call(u,n.error,g,v,C)}catch(E){Promise.reject(E)}try{(m=(h=A(this,Nr)).onSettled)==null||m.call(h,void 0,n.error,g,v,C)}catch(E){Promise.reject(E)}}}
vendor: 4,057 bytes, line 290
290this.listeners.forEach(g=>{g(A(this,hs))})})},s1),tr,i1,Fj=(i1=class extends Io{constructor(t={}){super();be(this,tr);this.config=t,se(this,tr,new Map)}build(t,n,r){const o=n.queryKey,a=n.queryHash??mm(o,n);let l=this.get(a);return l||(l=new Rj({client:t,queryKey:o,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(l)),l}add(t){A(this,tr).has(t.queryHash)||(A(this,tr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=A(this,tr).get(t.queryHash);n&&(t.destroy(),n===t&&A(this,tr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ct.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return A(this,tr).get(t)}getAll(){return[...A(this,tr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Wx(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Wx(t,r)):n}notify(t){Ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ct.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ct.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},tr=new WeakMap,i1),ct,ps,ms,No,ko,gs,Po,To,o1,Bj=(o1=class{constructor(e={}){be(this,ct);be(this,ps);be(this,ms);be(this,No);be(this,ko);be(this,gs);be(this,Po);be(this,To);se(this,ct,e.queryCache||new Fj),se(this,ps,e.mutationCache||new Dj),se(this,ms,e.defaultOptions||{}),se(this,No,new Map),se(this,ko,new Map),se(this,gs,0)}mount(){Hc(this,gs)._++,A(this,gs)===1&&(se(this,Po,vm.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,ct).onFocus())})),se(this,To,Tu.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,ct).onOnline())})))}unmount(){var e,t;Hc(this,gs)._--,A(this,gs)===0&&((e=A(this,Po))==null||e.call(this),se(this,Po,void 0),(t=A(this,To))==null||t.call(this),se(this,To,void 0))}isFetching(e){return A(this,ct).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return A(this,ps).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,ct).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=A(this,ct).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(bs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return A(this,ct).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=A(this,ct).get(r.queryHash),a=o==null?void 0:o.state.data,l=xj(t,a);if(l!==void 0)return A(this,ct).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Ct.batch(()=>A(this,ct).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,ct).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=A(this,ct);Ct.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=A(this,ct);return Ct.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ct.batch(()=>A(this,ct).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Kt).catch(Kt)}invalidateQueries(e,t={}){return Ct.batch(()=>(A(this,ct).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ct.batch(()=>A(this,ct).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(Kt)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=A(this,ct).build(this,t);return n.isStaleByTime(bs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}
290prefetchQuery(e){return this.fetchQuery(e).then(Kt).catch(Kt)}fetchInfiniteQuery(e){return e.behavior=Jx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Kt).catch(Kt)}ensureInfiniteQueryData(e){return e.behavior=Jx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Tu.isOnline()?A(this,ps).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,ct)}getMutationCache(){return A(this,ps)}getDefaultOptions(){return A(this,ms)}setDefaultOptions(e){se(this,ms,e)}setQueryDefaults(e,t){A(this,No).set(gi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...A(this,No).values()],n={};return t.forEach(r=>{il(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){A(this,ko).set(gi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...A(this,ko).values()],n={};return t.forEach(r=>{il(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...A(this,ms).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===gm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...A(this,ms).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){A(this,ct).clear(),A(this,ps).clear()}},ct=new WeakMap,ps=new WeakMap,ms=new WeakMap,No=new WeakMap,ko=new WeakMap,gs=new WeakMap,Po=new WeakMap,To=new WeakMap,o1),K1=w.createContext(void 0),dr=e=>{const t=w.useContext(K1);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Uj=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(K1.Provider,{value:e,children:t})),G1=w.createContext(!1),Vj=()=>w.useContext(G1);G1.Provider;function $j(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var zj=w.createContext($j()),Wj=()=>w.useContext(zj),Hj=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?ym(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},qj=e=>{w.useEffect(()=>{e.clearReset()},[e])},Kj=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||ym(n,[e.error,r])),Gj=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Qj=(e,t)=>e.isLoading&&e.isFetching&&!t,Yj=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ew=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Xj(e,t,n){var v,C,E,b;const r=Vj(),o=Wj(),a=dr(),l=a.defaultQueryOptions(e);(C=(v=a.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||C.call(v,l);const u=a.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",Gj(l),Hj(l,o,u),qj(o);const d=!a.getQueryCache().get(l.queryHash),[h]=w.useState(()=>new t(a,l)),m=h.getOptimisticResult(l),g=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(_=>{const S=g?h.subscribe(Ct.batchCalls(_)):Kt;return h.updateResult(),S},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),w.useEffect(()=>{h.setOptions(l)},[l,h]),Yj(l,m))throw ew(l,h,o);if(Kj({result:m,errorResetBoundary:o,throwOnError:l.throwOnError,query:u,suspense:l.suspense}))throw m.error;if((b=(E=a.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||b.call(E,l,m),l.experimental_prefetchInRender&&!mi&&Qj(m,r)){const _=d?ew(l,h,o):u==null?void 0:u.promise;_==null||_.catch(Kt).finally(()=>{h.updateResult()})}return l.notifyOnChangeProps?m:h.trackResult(m)}function jr(e,t){return Xj(e,jj)}function dn(e,t){const n=dr(),[r]=w.useState(()=>new Ij(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);const o=w.useSyncExternalStore(w.useCallback(l=>r.subscribe(Ct.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=w.useCallback((l,u)=>{r.mutate(l,u).catch(Kt)},[r]);if(o.error&&ym(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}const Jj=new Bj({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var Cl=l1();const Zj=lm(Cl);/** 291 * @remix-run/router v1.23.2 292 * 293 * Copyright (c) Remix Software Inc. 294 * 295 * This source code is licensed under the MIT license found in the 296 * LICENSE.md file in the root directory of this source tree. 297 * 298 * @license MIT 299 */function ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ol.apply(this,arguments)}var ys;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ys||(ys={}));const tw="popstate";function eA(e){e===void 0&&(e={});function t(r,o){let{pathname:a,search:l,hash:u}=r.location;return vp("",{pathname:a,search:l,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}
vendor: 6,745 bytes, line 299
299function n(r,o){return typeof o=="string"?o:Ru(o)}return nA(t,n,null,e)}function pt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tA(){return Math.random().toString(36).substr(2,8)}function nw(e,t){return{usr:e.state,key:e.key,idx:t}}function vp(e,t,n,r){return n===void 0&&(n=null),ol({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Fo(t):t,{state:n,key:t&&t.key||r||tA()})}function Ru(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Fo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function nA(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,l=o.history,u=ys.Pop,d=null,h=m();h==null&&(h=0,l.replaceState(ol({},l.state,{idx:h}),""));function m(){return(l.state||{idx:null}).idx}function g(){u=ys.Pop;let _=m(),S=_==null?null:_-h;h=_,d&&d({action:u,location:b.location,delta:S})}function v(_,S){u=ys.Push;let k=vp(b.location,_,S);h=m()+1;let P=nw(k,h),T=b.createHref(k);try{l.pushState(P,"",T)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;o.location.assign(T)}a&&d&&d({action:u,location:b.location,delta:1})}function C(_,S){u=ys.Replace;let k=vp(b.location,_,S);h=m();let P=nw(k,h),T=b.createHref(k);l.replaceState(P,"",T),a&&d&&d({action:u,location:b.location,delta:0})}function E(_){let S=o.location.origin!=="null"?o.location.origin:o.location.href,k=typeof _=="string"?_:Ru(_);return k=k.replace(/ $/,"%20"),pt(S,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,S)}let b={get action(){return u},get location(){return e(o,l)},listen(_){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(tw,g),d=_,()=>{o.removeEventListener(tw,g),d=null}},createHref(_){return t(o,_)},createURL:E,encodeLocation(_){let S=E(_);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:v,replace:C,go(_){return l.go(_)}};return b}var rw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rw||(rw={}));function rA(e,t,n){return n===void 0&&(n="/"),sA(e,t,n)}function sA(e,t,n,r){let o=typeof t=="string"?Fo(t):t,a=bm(o.pathname||"/",n);if(a==null)return null;let l=Q1(e);iA(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let h=yA(a);u=pA(l[d],h)}return u}function Q1(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,l,u)=>{let d={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};d.relativePath.startsWith("/")&&(pt(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let h=Ss([r,d.relativePath]),m=n.concat(d);a.children&&a.children.length>0&&(pt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),Q1(a.children,t,m,h)),!(a.path==null&&!a.index)&&t.push({path:h,score:fA(h,a.index),routesMeta:m})};return e.forEach((a,l)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))o(a,l);else for(let d of Y1(a.path))o(a,l,d)}),t}function Y1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let l=Y1(r.join("/")),u=[];return u.push(...l.map(d=>d===""?a:[a,d].join("/"))),o&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function iA(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hA(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const oA=/^:[\w-]+$/,aA=3,lA=2,cA=1,uA=10,dA=-2,sw=e=>e==="*";function fA(e,t){let n=e.split("/"),r=n.length;return n.some(sw)&&(r+=dA),t&&(r+=lA),n.filter(o=>!sw(o)).reduce((o,a)=>o+(oA.test(a)?aA:a===""?cA:uA),r)}function hA(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function pA(e,t,n){let{routesMeta:r}=e,o={},a="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],h=u===r.length-1,m=a==="/"?t:t.slice(a.length)||"/",g=mA({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},m),v=d.route;if(!g)return null;Object.assign(o,g.params),l.push({params:o,pathname:Ss([a,g.pathname]),pathnameBase:SA(Ss([a,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(a=Ss([a,g.pathnameBase]))}return l}function mA(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=gA(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],l=a.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:r.reduce((h,m,g)=>{let{paramName:v,isOptional:C}=m;if(v==="*"){let b=u[g]||"";l=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const E=u[g];return C&&!E?h[v]=void 0:h[v]=(E||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:l,pattern:e}}function gA(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),wm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function yA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function bm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const vA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xA=e=>vA.test(e);function wA(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Fo(e):e,a;if(n)if(xA(n))a=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),wm(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?a=iw(n.substring(1),"/"):a=iw(n,t)}else a=t;
vendor: 4,984 bytes, lines 299-308
299return{pathname:a,search:CA(r),hash:EA(o)}}function iw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function xh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function bA(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Sm(e,t){let n=bA(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Cm(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Fo(e):(o=ol({},e),pt(!o.pathname||!o.pathname.includes("?"),xh("?","pathname","search",o)),pt(!o.pathname||!o.pathname.includes("#"),xh("#","pathname","hash",o)),pt(!o.search||!o.search.includes("#"),xh("#","search","hash",o)));let a=e===""||o.pathname==="",l=a?"/":o.pathname,u;if(l==null)u=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),g-=1;o.pathname=v.join("/")}u=g>=0?t[g]:"/"}let d=wA(o,u),h=l&&l!=="/"&&l.endsWith("/"),m=(a||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||m)&&(d.pathname+="/"),d}const Ss=e=>e.join("/").replace(/\/\/+/g,"/"),SA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),CA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,EA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _A(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const X1=["post","put","patch","delete"];new Set(X1);const NA=["get",...X1];new Set(NA);/** 300 * React Router v6.30.3 301 * 302 * Copyright (c) Remix Software Inc. 303 * 304 * This source code is licensed under the MIT license found in the 305 * LICENSE.md file in the root directory of this source tree. 306 * 307 * @license MIT 308 */function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},al.apply(this,arguments)}const Em=w.createContext(null),kA=w.createContext(null),js=w.createContext(null),Xu=w.createContext(null),Lr=w.createContext({outlet:null,matches:[],isDataRoute:!1}),J1=w.createContext(null);function PA(e,t){let{relative:n}=t===void 0?{}:t;Bo()||pt(!1);let{basename:r,navigator:o}=w.useContext(js),{hash:a,pathname:l,search:u}=tS(e,{relative:n}),d=l;return r!=="/"&&(d=l==="/"?r:Ss([r,l])),o.createHref({pathname:d,search:u,hash:a})}function Bo(){return w.useContext(Xu)!=null}function ki(){return Bo()||pt(!1),w.useContext(Xu).location}function Z1(e){w.useContext(js).static||w.useLayoutEffect(e)}function eS(){let{isDataRoute:e}=w.useContext(Lr);return e?zA():TA()}function TA(){Bo()||pt(!1);let e=w.useContext(Em),{basename:t,future:n,navigator:r}=w.useContext(js),{matches:o}=w.useContext(Lr),{pathname:a}=ki(),l=JSON.stringify(Sm(o,n.v7_relativeSplatPath)),u=w.useRef(!1);return Z1(()=>{u.current=!0}),w.useCallback(function(h,m){if(m===void 0&&(m={}),!u.current)return;if(typeof h=="number"){r.go(h);return}let g=Cm(h,JSON.parse(l),a,m.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Ss([t,g.pathname])),(m.replace?r.replace:r.push)(g,m.state,m)},[t,r,l,a,e])}const RA=w.createContext(null);function jA(e){let t=w.useContext(Lr).outlet;return t&&w.createElement(RA.Provider,{value:e},t)}function tS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(js),{matches:o}=w.useContext(Lr),{pathname:a}=ki(),l=JSON.stringify(Sm(o,r.v7_relativeSplatPath));return w.useMemo(()=>Cm(e,JSON.parse(l),a,n==="path"),[e,l,a,n])}function AA(e,t){return OA(e,t)}function OA(e,t,n,r){Bo()||pt(!1);let{navigator:o}=w.useContext(js),{matches:a}=w.useContext(Lr),l=a[a.length-1],u=l?l.params:{};l&&l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let h=ki(),m;if(t){var g;let _=typeof t=="string"?Fo(t):t;d==="/"||(g=_.pathname)!=null&&g.startsWith(d)||pt(!1),m=_}else m=h;let v=m.pathname||"/",C=v;if(d!=="/"){let _=d.replace(/^\//,"").split("/");C="/"+v.replace(/^\//,"").split("/").slice(_.length).join("/")}let E=rA(e,{pathname:C}),b=FA(E&&E.map(_=>Object.assign({},_,{params:Object.assign({},u,_.params),pathname:Ss([d,o.encodeLocation?o.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?d:Ss([d,o.encodeLocation?o.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),a,n,r);return t&&b?w.createElement(Xu.Provider,{value:{location:al({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:ys.Pop}},b):b}function MA(){let e=$A(),t=_A(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application
308Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:o},n):null,null)}const LA=w.createElement(MA,null);class DA extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(Lr.Provider,{value:this.props.routeContext},w.createElement(J1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function IA(e){let{routeContext:t,match:n,children:r}=e,o=w.useContext(Em);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Lr.Provider,{value:t},r)}function FA(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,u=(o=n)==null?void 0:o.errors;if(u!=null){let m=l.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);m>=0||pt(!1),l=l.slice(0,Math.min(l.length,m+1))}let d=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let m=0;m<l.length;m++){let g=l[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=m),g.route.id){let{loaderData:v,errors:C}=n,E=g.route.loader&&v[g.route.id]===void 0&&(!C||C[g.route.id]===void 0);if(g.route.lazy||E){d=!0,h>=0?l=l.slice(0,h+1):l=[l[0]];break}}}return l.reduceRight((m,g,v)=>{let C,E=!1,b=null,_=null;n&&(C=u&&g.route.id?u[g.route.id]:void 0,b=g.route.errorElement||LA,d&&(h<0&&v===0?(WA("route-fallback"),E=!0,_=null):h===v&&(E=!0,_=g.route.hydrateFallbackElement||null)));let S=t.concat(l.slice(0,v+1)),k=()=>{let P;return C?P=b:E?P=_:g.route.Component?P=w.createElement(g.route.Component,null):g.route.element?P=g.route.element:P=m,w.createElement(IA,{match:g,routeContext:{outlet:m,matches:S,isDataRoute:n!=null},children:P})};return n&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?w.createElement(DA,{location:n.location,revalidation:n.revalidation,component:b,error:C,children:k(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):k()},null)}var nS=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(nS||{}),rS=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(rS||{});function BA(e){let t=w.useContext(Em);return t||pt(!1),t}function UA(e){let t=w.useContext(kA);return t||pt(!1),t}function VA(e){let t=w.useContext(Lr);return t||pt(!1),t}function sS(e){let t=VA(),n=t.matches[t.matches.length-1];return n.route.id||pt(!1),n.route.id}function $A(){var e;let t=w.useContext(J1),n=UA(),r=sS();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function zA(){let{router:e}=BA(nS.UseNavigateStable),t=sS(rS.UseNavigateStable),n=w.useRef(!1);return Z1(()=>{n.current=!0}),w.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,al({fromRouteId:t},a)))},[e,t])}const ow={};function WA(e,t,n){ow[e]||(ow[e]=!0)}function HA(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function qA(e){let{to:t,replace:n,state:r,relative:o}=e;Bo()||pt(!1);let{future:a,static:l}=w.useContext(js),{matches:u}=w.useContext(Lr),{pathname:d}=ki(),h=eS(),m=Cm(t,Sm(u,a.v7_relativeSplatPath),d,o==="path"),g=JSON.stringify(m);return w.useEffect(()=>h(JSON.parse(g),{replace:n,state:r,relative:o}),[h,g,o,n,r]),null}function KA(e){return jA(e.context)}function Jn(e){pt(!1)}function GA(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ys.Pop,navigator:a,static:l=!1,future:u}=e;Bo()&&pt(!1);let d=t.replace(/^\/*/,"/"),h=w.useMemo(()=>({basename:d,navigator:a,static:l,future:al({v7_relativeSplatPath:!1},u)}),[d,u,a,l]);typeof r=="string"&&(r=Fo(r));
308let{pathname:m="/",search:g="",hash:v="",state:C=null,key:E="default"}=r,b=w.useMemo(()=>{let _=bm(m,d);return _==null?null:{location:{pathname:_,search:g,hash:v,state:C,key:E},navigationType:o}},[d,m,g,v,C,E,o]);return b==null?null:w.createElement(js.Provider,{value:h},w.createElement(Xu.Provider,{children:n,value:b}))}function QA(e){let{children:t,location:n}=e;return AA(xp(t),n)}new Promise(()=>{});function xp(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,o)=>{if(!w.isValidElement(r))return;let a=[...t,o];if(r.type===w.Fragment){n.push.apply(n,xp(r.props.children,a));return}r.type!==Jn&&pt(!1),!r.props.index||!r.props.children||pt(!1);let l={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=xp(r.props.children,a)),n.push(l)}),n}/** 309 * React Router DOM v6.30.3 310 * 311 * Copyright (c) Remix Software Inc. 312 * 313 * This source code is licensed under the MIT license found in the 314 * LICENSE.md file in the root directory of this source tree. 315 * 316 * @license MIT 317 */function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wp.apply(this,arguments)}function YA(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function XA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function JA(e,t){return e.button===0&&(!t||t==="_self")&&!XA(e)}const ZA=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],e2="6";try{window.__reactRouterVersion=e2}catch{}const t2="startTransition",aw=Gu[t2];function n2(e){let{basename:t,children:n,future:r,window:o}=e,a=w.useRef();a.current==null&&(a.current=eA({window:o,v5Compat:!0}));let l=a.current,[u,d]=w.useState({action:l.action,location:l.location}),{v7_startTransition:h}=r||{},m=w.useCallback(g=>{h&&aw?aw(()=>d(g)):d(g)},[d,h]);return w.useLayoutEffect(()=>l.listen(m),[l,m]),w.useEffect(()=>HA(r),[r]),w.createElement(GA,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:r})}const r2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",s2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zn=w.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:l,state:u,target:d,to:h,preventScrollReset:m,viewTransition:g}=t,v=YA(t,ZA),{basename:C}=w.useContext(js),E,b=!1;if(typeof h=="string"&&s2.test(h)&&(E=h,r2))try{let P=new URL(window.location.href),T=h.startsWith("//")?new URL(P.protocol+h):new URL(h),j=bm(T.pathname,C);T.origin===P.origin&&j!=null?h=j+T.search+T.hash:b=!0}catch{}let _=PA(h,{relative:o}),S=i2(h,{replace:l,state:u,target:d,preventScrollReset:m,relative:o,viewTransition:g});function k(P){r&&r(P),P.defaultPrevented||S(P)}return w.createElement("a",wp({},v,{href:E||_,onClick:b||a?r:k,ref:n,target:d}))});var lw;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(lw||(lw={}));var cw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cw||(cw={}));function i2(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:l,viewTransition:u}=t===void 0?{}:t,d=eS(),h=ki(),m=tS(e,{relative:l});return w.useCallback(g=>{if(JA(g,n)){g.preventDefault();let v=r!==void 0?r:Ru(h)===Ru(m);d(e,{replace:v,state:o,preventScrollReset:a,relative:l,viewTransition:u})}},[h,d,m,r,o,n,e,a,l,u])}function iS(e,t){return function(){return e.apply(t,arguments)}}const{toString:o2}=Object.prototype,{getPrototypeOf:Es}=Object,{iterator:El,toStringTag:oS}=Symbol,ll=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),aS=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),lS=(e,t,n)=>e===Object.prototype||!n&&t===null,a2=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);
vendor: 13,127 bytes, lines 317-319
317return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(aS(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},cl=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const o=Es(n);if(lS(n,o,n===e))return!1;if(ll(n,t))return!0;n=o}return!1},l2=(e,t)=>e!=null&&cl(e,t)?e[t]:void 0,c2=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=Es(e);if(t===null&&a2(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let a=e;for(;a!=null&&o.indexOf(a)===-1;){o.push(a);const l=a===e?t:Es(a);if(lS(a,l,a===e))break;const u=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&u.push(...Object.getOwnPropertySymbols(a));for(const d of u)aS(d)||ll(r,d)||(n[d]=e[d],r[d]=!0);a=l}return n},_m=(e=>t=>{const n=o2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Tn=e=>(e=e.toLowerCase(),t=>_m(t)===e),Ju=e=>t=>typeof t===e,{isArray:yi}=Array,vi=Ju("undefined");function Uo(e){return e!==null&&!vi(e)&&e.constructor!==null&&!vi(e.constructor)&&sn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const cS=Tn("ArrayBuffer");function u2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&cS(e.buffer),t}const d2=Ju("string"),sn=Ju("function"),uS=Ju("number"),Vo=e=>e!==null&&typeof e=="object",f2=e=>e===!0||e===!1,hu=e=>{if(!Vo(e))return!1;const t=Es(e);return(t===null||t===Object.prototype||Es(t)===null)&&!cl(e,oS)&&!cl(e,El)},h2=e=>{if(!Vo(e)||Uo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},p2=Tn("Date"),m2=Tn("File"),g2=e=>!!(e&&typeof e.uri<"u"),y2=e=>e&&typeof e.getParts<"u",v2=Tn("Blob"),x2=Tn("FileList"),w2=Tn("Set"),b2=e=>Vo(e)&&sn(e.pipe);function S2(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const uw=S2(),dw=typeof uw.FormData<"u"?uw.FormData:void 0,C2=e=>{if(!e)return!1;if(dw&&e instanceof dw)return!0;const t=Es(e);if(!t||t===Object.prototype||!sn(e.append))return!1;const n=_m(e);return n==="formdata"||n==="object"&&sn(e.toString)&&e.toString()==="[object FormData]"},E2=Tn("URLSearchParams"),[_2,N2,k2,P2]=["ReadableStream","Request","Response","Headers"].map(Tn),T2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _l(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),yi(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Uo(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),l=a.length;let u;for(r=0;r<l;r++)u=a[r],t.call(null,e[u],u,e)}}function dS(e,t){if(Uo(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fS=e=>!vi(e)&&e!==ni;function bp(...e){const{caseless:t,skipUndefined:n}=fS(this)&&this||{},r={},o=(a,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const u=t&&typeof l=="string"&&dS(r,l)||l,d=ll(r,u)?r[u]:void 0;hu(d)&&hu(a)?r[u]=bp(d,a):hu(a)?r[u]=bp({},a):yi(a)?r[u]=a.slice():(!n||!vi(a))&&(r[u]=a)};for(let a=0,l=e.length;a<l;a++){const u=e[a];if(!u||Uo(u)||(_l(u,o),typeof u!="object"||yi(u)))continue;const d=Object.getOwnPropertySymbols(u);for(let h=0;h<d.length;h++){const m=d[h];V2.call(u,m)&&o(u[m],m)}}return r}const R2=(e,t,n,{allOwnKeys:r}={})=>(_l(t,(o,a)=>{n&&sn(o)?Object.defineProperty(e,a,{__proto__:null,value:iS(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),j2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),A2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},O2=(e,t,n,r)=>{let o,a,l;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)l=o[a],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&Es(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},M2=(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},L2=e=>{if(!e)return null;if(yi(e))return e;let t=e.length;if(!uS(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},D2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Es(Uint8Array)),I2=(e,t)=>{const r=(e&&e[El]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},F2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},B2=Tn("HTMLFormElement"),U2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:V2}=Object.prototype,$2=Tn("RegExp"),hS=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_l(n,(o,a)=>{let l;(l=t(o,a,e))!==!1&&(r[a]=l||o)}),Object.defineProperties(e,r)},z2=e=>{hS(e,(t,n)=>{if(sn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(sn(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+"'")})}})},W2=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return yi(e)?r(e):r(String(e).split(t)),n},H2=()=>{},q2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function K2(e){return!!(e&&sn(e.append)&&e[oS]==="FormData"&&e[El])}const G2=e=>{const t=new WeakSet,n=r=>{if(Vo(r)){if(t.has(r))return;if(Uo(r))return r;if(!("toJSON"in r)){t.add(r);let o;if(w2(r)){o=[];for(const a of r){const l=n(a);!vi(l)&&o.push(l)}}else o=yi(r)?[]:{},_l(r,(a,l)=>{const u=n(a);!vi(u)&&(o[l]=u)});return t.delete(r),o}}return r};return n(e)},Q2=Tn("AsyncFunction"),Y2=e=>e&&(Vo(e)||sn(e))&&sn(e.then)&&sn(e.catch),pS=((e,t)=>e?setImmediate:t?((n,r)=>(ni.addEventListener("message",({source:o,data:a})=>{o===ni&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ni.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",sn(ni.postMessage)),X2=typeof queueMicrotask<"u"?queueMicrotask.bind(ni):typeof process<"u"&&process.nextTick||pS,mS=e=>e!=null&&sn(e[El]),J2=e=>e!=null&&cl(e,El)&&mS(e),L={isArray:yi,isArrayBuffer:cS,isBuffer:Uo,isFormData:C2,isArrayBufferView:u2,isString:d2,isNumber:uS,isBoolean:f2,isObject:Vo,isPlainObject:hu,isEmptyObject:h2,isReadableStream:_2,isRequest:N2,isResponse:k2,isHeaders:P2,isUndefined:vi,isDate:p2,isFile:m2,isReactNativeBlob:g2,isReactNative:y2,isBlob:v2,isRegExp:$2,isFunction:sn,isStream:b2,isURLSearchParams:E2,isTypedArray:D2,isFileList:x2,forEach:_l,merge:bp,extend:R2,trim:T2,stripBOM:j2,inherits:A2,toFlatObject:O2,kindOf:_m,kindOfTest:Tn,endsWith:M2,toArray:L2,forEachEntry:I2,matchAll:F2,isHTMLForm:B2,hasOwnProperty:ll,hasOwnProp:ll,hasOwnInPrototypeChain:cl,getSafeProp:l2,toSafeFlatObject:c2,reduceDescriptors:hS,freezeMethods:z2,toObjectSet:W2,toCamelCase:U2,noop:H2,toFiniteNumber:q2,findKey:dS,global:ni,isContextDefined:fS,isSpecCompliantForm:K2,toJSONObject:G2,isAsyncFn:Q2,isThenable:Y2,setImmediate:pS,asap:X2,isIterable:mS,isSafeIterable:J2},Z2=L.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"]),eO=e=>{const t={};let n,r,o;return e&&e.split(` 318`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim();const u=L.hasOwnProp(t,n);!n||u&&L.hasOwnProp(Z2,n)||(n==="set-cookie"?u?t[n].push(r):t[n]=[r]:t[n]=u?t[n]+", "+r:r)}),t};function tO(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const nO=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rO=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Nm(e,t){return L.isArray(e)?e.map(n=>Nm(n,t)):tO(String(e).replace(t,""))}const sO=e=>Nm(e,nO),iO=e=>Nm(e,rO);function gS(e){const t=Object.create(null);return L.forEach(e.toJSON(),(n,r)=>{t[r]=iO(n)}),t}const fw=Symbol("internals");function Da(e){return e&&String(e).trim().toLowerCase()}function pu(e){return e===!1||e==null?e:L.isArray(e)?e.map(pu):sO(String(e))}function oO(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 aO=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function wh(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function lO(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const o=e.charCodeAt(r);if(o===34||o===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function cO(e){const t=Object.create(null),n=String(e);let r=0,o=!1,a=!1;function l(u){const d=wh(n.slice(r,u)),h=d.indexOf("=");if(h<1)return;const m=wh(d.slice(0,h));if(!aO.test(m))return;const g=m.toLowerCase();if(g==="__proto__"||g==="constructor"||g==="prototype")return;const v=wh(d.slice(h+1));t[g]=lO(v)}for(let u=0;u<n.length;u++){const d=n.charCodeAt(u);o?a?a=!1:d===92?a=!0:d===34&&(o=!1):d===34?o=!0:(d===44||d===59)&&(l(u),r=u+1)}return l(n.length),t}const uO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bh(e,t,n,r,o){if(L.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!L.isString(t)){if(L.isString(r))return t.indexOf(r)!==-1;if(L.isRegExp(r))return r.test(t)}}function dO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fO(e,t){const n=L.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,a,l){return this[r].call(this,t,o,a,l)},configurable:!0})})}let $t=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(u,d,h){const m=Da(d);if(!m)return;const g=L.findKey(o,m);(!g||o[g]===void 0||h===!0||h===void 0&&o[g]!==!1)&&(o[g||d]=pu(u))}const l=(u,d)=>L.forEach(u,(h,m)=>a(h,m,d));if(L.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(L.isString(t)&&(t=t.trim())&&!uO(t))l(eO(t),n);else if(L.isObject(t)&&L.isSafeIterable(t)){let u=Object.create(null),d,h;for(const m of t){if(!L.isArray(m))throw new TypeError("Object iterator must return a key-value pair");h=m[0],L.hasOwnProp(u,h)?(d=u[h],u[h]=L.isArray(d)?[...d,m[1]]:[d,m[1]]):u[h]=m[1]}l(u,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Da(t),t){const r=L.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return oO(o);if(L.isFunction(n))return n.call(this,o,r);if(L.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Da(t),t){const r=L.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||bh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(l){if(l=Da(l),l){const u=L.findKey(r,l);u&&(!n||bh(r,r[u],u,n))&&(delete r[u],o=!0)}}return L.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||bh(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return L.forEach(this,(o,a)=>{const l=L.findKey(r,a);if(l){n[l]=pu(o),delete n[a];return}const u=t?dO(a):String(a).trim();u!==a&&delete n[a],n[u]=pu(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return L.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&L.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(` 319`)}getSetCookie(){const t=this.get("set-cookie");return L.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return cO(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[fw]=this[fw]={accessors:{}}).accessors,o=this.prototype;function a(l){const u=Da(l);r[u]||(fO(o,l),r[u]=!0)}return L.isArray(t)?t.forEach(a):a(t),this}};$t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors($t.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});L.freezeMethods($t);const ju="[REDACTED ****]";function hO(e){if(L.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(L.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function pO(e,t){const n=new Set(t.map(a=>String(a).toLowerCase())),r=[],o=a=>{if(a===null||typeof a!="object"||L.isBuffer(a))return a;
319if(r.indexOf(a)!==-1)return;a instanceof $t&&(a=a.toJSON()),r.push(a);let l;if(L.isArray(a))l=[],a.forEach((u,d)=>{const h=o(u);L.isUndefined(h)||(l[d]=h)});else{if(!L.isPlainObject(a)&&hO(a))return r.pop(),a;l=Object.create(null);for(const[u,d]of Object.entries(a)){const h=n.has(u.toLowerCase())?ju:o(d);L.isUndefined(h)||(l[u]=h)}}return r.pop(),l};return o(e)}function hw(e){try{return String(e)}catch{return""}}function mO(e){return e.errors.map(n=>{try{return n&&n.message?hw(n.message):hw(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let re=class yS extends Error{static from(t,n,r,o,a,l){let u=t.message;!u&&L.isArray(t.errors)&&t.errors.length&&(u=mO(t));const d=new yS(u,n||t.code,r,o,a);return Object.defineProperty(d,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),d.name=t.name,t.status!=null&&d.status==null&&(d.status=t.status),l&&Object.assign(d,l),d}constructor(t,n,r,o,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),a&&(this.response=a,this.status=a.status)}toJSON(){const t=this.config,n=t&&L.hasOwnProp(t,"redact")?t.redact:void 0,r=L.isArray(n)&&n.length>0?pO(t,n):L.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};re.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";re.ERR_BAD_OPTION="ERR_BAD_OPTION";re.ECONNABORTED="ECONNABORTED";re.ETIMEDOUT="ETIMEDOUT";re.ECONNREFUSED="ECONNREFUSED";re.ERR_NETWORK="ERR_NETWORK";re.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";re.ERR_DEPRECATED="ERR_DEPRECATED";re.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";re.ERR_BAD_REQUEST="ERR_BAD_REQUEST";re.ERR_CANCELED="ERR_CANCELED";re.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";re.ERR_INVALID_URL="ERR_INVALID_URL";re.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const gO=null,vS=100;function Sp(e){return L.isPlainObject(e)||L.isArray(e)}function xS(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function Sh(e,t,n){return e?e.concat(t).map(function(o,a){return o=xS(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function yO(e){return L.isArray(e)&&!e.some(Sp)}const vO=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function Zu(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(k,P)=>{const T=L.getSafeProp(n,k);return L.isUndefined(T)?P:T},o=r("metaTokens",!0),a=r("visitor")||b,l=r("dots",!1),u=r("indexes",!1),d=r("Blob")||typeof Blob<"u"&&Blob,h=r("maxDepth",vS),m=d&&L.isSpecCompliantForm(t),g=[];if(!L.isFunction(a))throw new TypeError("visitor must be a function");function v(k){if(k===null)return"";if(L.isDate(k))return k.toISOString();if(L.isBoolean(k))return k.toString();if(!m&&L.isBlob(k))throw new re("Blob is not supported. Use a Buffer instead.");if(L.isArrayBuffer(k)||L.isTypedArray(k)){if(m&&typeof d=="function")return new d([k]);throw new re("Blob is not supported. Use a Buffer instead.",re.ERR_NOT_SUPPORT)}return k}function C(k){if(k>h)throw new re("Object is too deeply nested ("+k+" levels). Max depth: "+h,re.ERR_FORM_DATA_DEPTH_EXCEEDED)}function E(k,P){if(h===1/0)return JSON.stringify(k);const T=[];return JSON.stringify(k,function(F,U){if(!L.isObject(U))return U;for(;T.length&&T[T.length-1]!==this;)T.pop();return T.push(U),C(P+T.length-1),U})}function b(k,P,T){let j=k;if(L.isReactNative(t)&&L.isReactNativeBlob(k))return t.append(Sh(T,P,l),v(k)),!1;if(k&&!T&&typeof k=="object"){if(L.endsWith(P,"{}"))P=o?P:P.slice(0,-2),k=E(k,1);else if(L.isArray(k)&&yO(k)||(L.isFileList(k)||L.endsWith(P,"[]"))&&(j=L.toArray(k)))return P=xS(P),j.forEach(function(U,O){!(L.isUndefined(U)||U===null)&&t.append(u===!0?Sh([P],O,l):u===null?P:P+"[]",v(U))}),!1}return Sp(k)?!0:(t.append(Sh(T,P,l),v(k)),!1)}const _=Object.assign(vO,{defaultVisitor:b,convertValue:v,isVisitable:Sp});function S(k,P,T=0){if(!L.isUndefined(k)){if(C(T),g.indexOf(k)!==-1)throw new Error("Circular reference detected in "+P.join("."));
319g.push(k),L.forEach(k,function(F,U){(!(L.isUndefined(F)||F===null)&&a.call(t,F,L.isString(U)?U.trim():U,P,_))===!0&&S(F,P?P.concat(U):[U],T+1)}),g.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return S(e),t}function pw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function km(e,t){this._pairs=[],e&&Zu(e,this,t)}const wS=km.prototype;wS.append=function(t,n){this._pairs.push([t,n])};wS.toString=function(t){const n=t?r=>t.call(this,r,pw):pw;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function xO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function bS(e,t,n){if(!t)return e;e=e||"";const r=L.isFunction(n)?{serialize:n}:n,o=L.getSafeProp(r,"encode")||xO,a=L.getSafeProp(r,"serialize");let l;if(a?l=a(t,r):l=L.isURLSearchParams(t)?t.toString():new km(t,r).toString(o),l){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}const Ia=Symbol("internals");function SS(e){return e?e.length:0}function mw(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Fa(e,t){const n=e.handlers,r=SS(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(a,l){n[a.index]!==a.handler&&t.handlerEntries.delete(l)}):t.handlerEntries.clear()),t.handlersLength=r}class gw{constructor(){this.handlers=[],this[Ia]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const o={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},a=this[Ia];this.handlers==null&&(this.handlers=[]),Fa(this,a);const l=a.nextId++;return this.handlers.push(o),a.handlerEntries.set(l,{handler:o,index:this.handlers.length-1}),a.handlersLength=this.handlers.length,l}eject(t){const n=this[Ia];Fa(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(mw(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Fa(this,this[Ia]))}forEach(t){const n=this[Ia];Fa(this,n),n.iterationDepth++;try{L.forEach(this.handlers,function(o){o!==null&&t(o)})}finally{--n.iterationDepth||(Fa(this,n),mw(this.handlers),n.handlersLength=SS(this.handlers))}}}const Pm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},wO=typeof URLSearchParams<"u"?URLSearchParams:km,bO=typeof FormData<"u"?FormData:null,SO=typeof Blob<"u"?Blob:null,CO={isBrowser:!0,classes:{URLSearchParams:wO,FormData:bO,Blob:SO},protocols:["http","https","file","blob","url","data"]},Tm=typeof window<"u"&&typeof document<"u",Cp=typeof navigator=="object"&&navigator||void 0,EO=Tm&&(!Cp||["ReactNative","NativeScript","NS"].indexOf(Cp.product)<0),_O=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",NO=Tm&&window.location.href||"http://localhost",kO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tm,hasStandardBrowserEnv:EO,hasStandardBrowserWebWorkerEnv:_O,navigator:Cp,origin:NO},Symbol.toStringTag,{value:"Module"})),Tt={...kO,...CO};function PO(e,t){return Zu(e,new Tt.classes.URLSearchParams,{visitor:function(n,r,o,a){return Tt.isNode&&L.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}const yw=vS;function CS(e){if(e>yw)throw new re("FormData field is too deeply nested ("+e+" levels). Max depth: "+yw,re.ERR_FORM_DATA_DEPTH_EXCEEDED)}function TO(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)CS(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function RO(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function ES(e){function t(n,r,o,a){CS(a);let l=n[a++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),d=a>=n.length;return l=!l&&L.isArray(o)?o.length:l,d?(L.hasOwnProp(o,l)?o[l]=L.isArray(o[l])?o[l].concat(r):[o[l],r]:o[l]=r,!u):((!L.hasOwnProp(o,l)||!L.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],a)&&L.isArray(o[l])&&(o[l]=RO(o[l])),!u)}if(L.isFormData(e)&&L.isFunction(e.entries)){const n={};
vendor: 7,286 bytes, line 319
319return L.forEachEntry(e,(r,o)=>{t(TO(r),o,n,0)}),n}return null}const _S=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),to=(e,t)=>e!=null&&L.hasOwnProp(e,t)?e[t]:void 0;function jO(e,t,n){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Nl={transitional:Pm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=L.isObject(t);if(a&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return o?JSON.stringify(ES(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){const d=to(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return PO(t,d).toString();if((u=L.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=to(this,"env"),m=h&&h.FormData;return Zu(u?{"files[]":t}:t,m&&new m,d)}}return a||o?(n.setContentType("application/json",!1),jO(t)):t}],transformResponse:[function(t){const n=to(this,"transitional")||Nl.transitional,r=n&&n.forcedJSONParsing,o=to(this,"responseType"),a=o==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(r&&!o||a)){const u=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,to(this,"parseReviver"))}catch(d){if(u)throw d.name==="SyntaxError"?re.from(d,re.ERR_BAD_RESPONSE,this,null,to(this,"response")):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tt.classes.FormData,Blob:Tt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(_S,e=>{Nl.headers[e]={}});function Ch(e,t){const n=this||Nl,r=t||n,o=$t.from(r.headers);let a=r.data;return L.forEach(e,function(u){a=u.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function NS(e){return!!(e&&e.__CANCEL__)}let kl=class extends re{constructor(t,n,r){super(t??"canceled",re.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function kS(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new re("Request failed with status code "+n.status,n.status>=400&&n.status<500?re.ERR_BAD_REQUEST:re.ERR_BAD_RESPONSE,n.config,n.request,n))}const AO=/[\t\n\r]/g;function PS(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(AO,"")}function Eh(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function OO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,l;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),m=r[a];l||(l=h),n[o]=d,r[o]=h;let g=a,v=0;for(;g!==o;)v+=n[g++],g=g%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),h-l<t)return;const C=m&&h-m;return C?Math.round(v*1e3/C):void 0}}function MO(e,t){let n=0,r=1e3/t,o,a;const l=(m,g=Date.now())=>{n=g,o=null,a&&(clearTimeout(a),a=null),e(...m)};return[(...m)=>{const g=Date.now(),v=g-n;v>=r?l(m,g):(o=m,a||(a=setTimeout(()=>{a=null,l(o)},r-v)))},()=>o&&l(o),(...m)=>l(m)]}const Au=(e,t,n=3)=>{let r=0;const o=OO(50,250);return MO(a=>{if(!a||!L.isNumber(a.loaded))return;const l=a.loaded,u=a.lengthComputable?a.total:void 0,d=Math.max(0,u!=null?Math.min(l,u):l),h=Math.max(0,d-r),m=o(h);r=Math.max(r,d);const g={loaded:d,total:u,progress:u?d/u:void 0,bytes:h,rate:m||void 0,estimated:m&&u?(u-d)/m:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(g)},n)},vw=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xw=(e,t=L.asap)=>(...n)=>t(()=>e(...n)),LO=Tt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Tt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Tt.origin),Tt.navigator&&/(msie|trident)/i.test(Tt.navigator.userAgent)):()=>!0,DO=Tt.hasStandardBrowserEnv?{write(e,t,n,r,o,a,l){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];L.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),L.isString(r)&&u.push(`path=${r}`),L.isString(o)&&u.push(`domain=${o}`),a===!0&&u.push("secure"),L.isString(l)&&u.push(`SameSite=${l}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function IO(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function FO(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const BO=/^https?:(?!\/\/)/i;function UO(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${ju}`)}function VO(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ju}@`),n=t.indexOf("#"),o=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ju}`);return n===-1?o:`${o}#${UO(t.slice(n+1))}`}function ww(e,t){if(typeof e=="string"){const n=PS(e);if(BO.test(n))throw new re(`Invalid URL ${JSON.stringify(VO(n))}: missing "//" after protocol`,re.ERR_INVALID_URL,t)}}function TS(e,t,n,r){ww(t,r);let o=!IO(t);return e&&(o||n===!1)?(ww(e,r),FO(e,t)):t}const bw=e=>e instanceof $t?{...e}:e,$O=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function xi(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(m,g,v,C){return L.isPlainObject(m)&&L.isPlainObject(g)?L.merge.call({caseless:C},m,g):L.isPlainObject(g)?L.merge({},g):L.isArray(g)?g.slice():g}function o(m,g,v,C){if(L.isUndefined(g)){if(!L.isUndefined(m))return r(void 0,m,v,C)}else return r(m,g,v,C)}function a(m,g){if(!L.isUndefined(g))return r(void 0,g)}function l(m,g){if(L.isUndefined(g)){if(!L.isUndefined(m))return r(void 0,m)}else return r(void 0,g)}function u(m){const g=L.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!L.isUndefined(g))if(L.isPlainObject(g)){if(L.hasOwnProp(g,m))return g[m]}else return;const v=L.hasOwnProp(e,"transitional")?e.transitional:void 0;if(L.isPlainObject(v)&&L.hasOwnProp(v,m))return v[m]}function d(m,g,v){if(L.hasOwnProp(t,v))return r(m,g);if(L.hasOwnProp(e,v))return r(void 0,m)}const h={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutErrorMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:d,headers:(m,g,v)=>o(bw(m),bw(g),v,!0)};
319return L.forEach($O({...e,...t}),function(g){if(g==="__proto__"||g==="constructor"||g==="prototype")return;const v=L.hasOwnProp(h,g)?h[g]:o,C=L.hasOwnProp(e,g)?e[g]:void 0,E=L.hasOwnProp(t,g)?t[g]:void 0,b=v(C,E,g);L.isUndefined(b)&&v!==d||(n[g]=b)}),L.hasOwnProp(t,"validateStatus")&&L.isUndefined(t.validateStatus)&&u("validateStatusUndefinedResolves")===!1&&(L.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const zO=["content-type","content-length"];function WO(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{zO.includes(r.toLowerCase())&&e.set(r,o)})}const HO=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function RS(e){const t=xi({},e),n=v=>L.hasOwnProp(t,v)?t[v]:void 0,r=n("data");let o=n("withXSRFToken");const a=n("xsrfHeaderName"),l=n("xsrfCookieName");let u=n("headers");const d=n("auth"),h=n("baseURL"),m=n("allowAbsoluteUrls"),g=n("url");if(t.headers=u=$t.from(u),t.url=bS(TS(h,g,m,t),n("params"),n("paramsSerializer")),d){const v=L.getSafeProp(d,"username")||"",C=L.getSafeProp(d,"password")||"";try{u.set("Authorization","Basic "+btoa(v+":"+(C?HO(C):"")))}catch(E){throw re.from(E,re.ERR_BAD_OPTION_VALUE,e)}}if(L.isFormData(r)){const v=L.getSafeProp(r,"getHeaders");Tt.hasStandardBrowserEnv||Tt.hasStandardBrowserWebWorkerEnv||L.isReactNative(r)?u.setContentType(void 0):L.isFunction(v)&&WO(u,v.call(r),n("formDataHeaderPolicy"))}if(Tt.hasStandardBrowserEnv&&(L.isFunction(o)&&(o=o(t)),o===!0||o==null&&LO(t.url))){const C=a&&l&&DO.read(l);C&&u.set(a,C)}return t}const qO=typeof XMLHttpRequest<"u",KO=qO&&function(e){return new Promise(function(n,r){const o=RS(e);let a=o.data;const l=$t.from(o.headers).normalize();let{responseType:u,onUploadProgress:d,onDownloadProgress:h}=o,m,g,v,C,E,b;function _(){C&&C(),E&&E(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function k(T){if(!S)return;if(S.status===0&&(Eh(PS(o.url))||Eh(Tt.origin))!=="file"&&!(S.responseURL&&S.responseURL.startsWith("file:"))){r(new re("Request aborted",re.ECONNABORTED,e,S)),_(),S=null;return}try{T?b&&b(T):E&&E()}catch(O){setTimeout(()=>{throw O})}if(!S)return;const j=$t.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),U={data:!u||u==="text"||u==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:j,config:e,request:S};kS(function(H){n(H),_()},function(H){r(H),_()},U),S=null}"onloadend"in S?S.onloadend=k:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(k)},S.onabort=function(){S&&(r(new re("Request aborted",re.ECONNABORTED,e,S)),_(),S=null)},S.onerror=function(j){const F=j&&j.message?j.message:"Network Error",U=new re(F,re.ERR_NETWORK,e,S);U.event=j||null,r(U),_(),S=null},S.ontimeout=function(){let j=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const F=o.transitional||Pm;o.timeoutErrorMessage&&(j=o.timeoutErrorMessage),r(new re(j,F.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,e,S)),_(),S=null},a===void 0&&l.setContentType(null),"setRequestHeader"in S&&L.forEach(gS(l),function(j,F){S.setRequestHeader(F,j)}),L.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),u&&u!=="json"&&(S.responseType=o.responseType),h&&([v,E,b]=Au(h,!0),S.addEventListener("progress",v)),d&&S.upload&&([g,C]=Au(d),S.upload.addEventListener("progress",g),S.upload.addEventListener("loadend",C)),(o.cancelToken||o.signal)&&(m=T=>{S&&(r(!T||T.type?new kl(null,e,S):T),S.abort(),_(),S=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const P=Eh(o.url);if(P&&!Tt.protocols.includes(P)){r(new re("Unsupported protocol "+P+":",re.ERR_BAD_REQUEST,e)),_();return}S.send(a||null)})},GO=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(d){if(!r){r=!0,l();const h=d instanceof Error?d:this.reason;n.abort(h instanceof re?h:new kl(h instanceof Error?h.message:h))}};let a=t&&setTimeout(()=>{a=null,o(new re(`timeout of ${t}ms exceeded`,re.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),e=null)};e.forEach(d=>{if(!r){if(d.aborted){o.call(d);return}d.addEventListener("abort",o,{once:!0})}});const{signal:u}=n;return u.unsubscribe=()=>L.asap(l),u},QO=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},YO=async function*(e,t){for await(const n of XO(e))yield*QO(n,t)},XO=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()}},Sw=(e,t,n,r)=>{const o=YO(e,t);let a=0,l,u=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:h,value:m}=await o.next();if(h){u(),d.close();return}let g=m.byteLength;if(n){let v=a+=g;n(v)}d.enqueue(new Uint8Array(m))}catch(h){throw u(h),h}},cancel(d){return u(d),o.return()}},{highWaterMark:2})},Cw=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,jS=(e,t,n)=>t+2<n&&Cw(e.charCodeAt(t+1))&&Cw(e.charCodeAt(t+2)),Ew=e=>e<=57?e-48:(e&223)-55,JO=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,ZO=e=>e===9||e===10||e===12||e===13||e===32,eM=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},tM=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},nM=e=>{const t=e.length;let n=0,r=0,o=!1;for(let a=0;a<t;a++){let l=e.charCodeAt(a);if(l===37&&jS(e,a,t)&&(l=Ew(e.charCodeAt(a+1))*16+Ew(e.charCodeAt(a+2)),a+=2),!ZO(l)){if(l===61){r++;continue}if(!JO(l)||r>0){o=!0;continue}n++}}return o||r>2||r>0&&(n+r)%4!==0||n%4===1?tM(e):eM(n)},rM=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(r))return t(o);let l=0;for(let u=0,d=o.length;u<d;
vendor: 10,618 bytes, lines 319-325
319u++){const h=o.charCodeAt(u);if(h===37&&jS(o,u,d))l+=1,u+=2;else if(h<128)l+=1;else if(h<2048)l+=2;else if(h>=55296&&h<=56319&&u+1<d){const m=o.charCodeAt(u+1);m>=56320&&m<=57343?(l+=4,u++):l+=3}else l+=3}return l};function sM(e){const t=typeof e=="string"?e.indexOf("#"):-1;return rM(t===-1?e:e.slice(0,t),nM)}const Rm="1.20.0",_w=64*1024,iM={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Yc}=L,oM=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Nw=e=>{if(!L.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},kw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},aM=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},lM=e=>{const t=L.global!==void 0&&L.global!==null?L.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=L.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:a,Response:l}=e,u=o?Yc(o):typeof fetch=="function",d=Yc(a),h=Yc(l);if(!u)return!1;const m=u&&Yc(n),g=u&&(typeof r=="function"?(S=>k=>S.encode(k))(new r):async S=>new Uint8Array(await new a(S).arrayBuffer())),v=d&&m&&kw(()=>{let S=!1;const k=new a(Tt.origin,{body:new n,method:"POST",get duplex(){return S=!0,"half"}}),P=k.headers.has("Content-Type");return k.body!=null&&k.body.cancel(),S&&!P}),C=h&&m&&kw(()=>L.isReadableStream(new l("").body)),E={stream:C&&(S=>S.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!E[S]&&(E[S]=(k,P)=>{let T=k&&k[S];if(T)return T.call(k);throw new re(`Response type '${S}' is not supported`,re.ERR_NOT_SUPPORT,P)})});const b=async S=>{if(S==null)return 0;if(L.isBlob(S))return S.size;if(L.isSpecCompliantForm(S))return(await new a(Tt.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(L.isArrayBufferView(S)||L.isArrayBuffer(S))return S.byteLength;if(L.isURLSearchParams(S)&&(S=S+""),L.isString(S))return(await g(S)).byteLength},_=async(S,k)=>{const P=L.toFiniteNumber(S.getContentLength());return P??b(k)};return async S=>{let{url:k,method:P,data:T,signal:j,cancelToken:F,timeout:U,onDownloadProgress:O,onUploadProgress:H,responseType:X,headers:ne,withCredentials:ue="same-origin",fetchOptions:he,maxContentLength:ae,maxBodyLength:Se,maxRedirects:J}=RS(S);const ee=L.isNumber(ae)&&ae>-1,z=L.isNumber(Se)&&Se>-1,te=K=>L.hasOwnProp(S,K)?S[K]:void 0;let W=o||fetch;X=X?(X+"").toLowerCase():"text";let I=GO([j,F&&F.toAbortSignal()],U),q=null;const we=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let xe,ge=null;const ve=()=>new re("Request body larger than maxBodyLength limit",re.ERR_BAD_REQUEST,S,q);try{let K;const ie=te("auth");if(ie){const ke=L.getSafeProp(ie,"username")||"",Ze=L.getSafeProp(ie,"password")||"";K={username:ke,password:Ze}}if(aM(k)){const ke=new URL(k,Tt.origin);if(!K&&(ke.username||ke.password)){const Ze=Nw(ke.username),Gt=Nw(ke.password);K={username:Ze,password:Gt}}(ke.username||ke.password)&&(ke.username="",ke.password="",k=ke.href)}if(K&&(ne.delete("authorization"),ne.set("Authorization","Basic "+btoa(oM((K.username||"")+":"+(K.password||""))))),ee&&typeof k=="string"&&k.startsWith("data:")&&sM(k)>ae)throw new re("maxContentLength size of "+ae+" exceeded",re.ERR_BAD_RESPONSE,S,q);if(z&&P!=="get"&&P!=="head"){const ke=await b(T);if(typeof ke=="number"&&isFinite(ke)&&(xe=ke,ke>Se))throw ve()}const ce=z&&(L.isReadableStream(T)||L.isStream(T)),Te=(ke,Ze,Gt)=>Sw(ke,_w,Qt=>{if(z&&Qt>Se)throw ge=ve();Ze&&Ze(Qt)},Gt);if(v&&P!=="get"&&P!=="head"&&(H||ce)){if(xe=xe??await _(ne,T),xe!==0||ce){let ke=new a(k,{method:"POST",body:T,duplex:"half"}),Ze;if(L.isFormData(T)&&(Ze=ke.headers.get("content-type"))&&ne.setContentType(Ze),ke.body){const[Gt,Qt]=H&&vw(xe,Au(xw(H)))||[];T=Te(ke.body,Gt,Qt)}}}else if(ce&&!d&&m&&P!=="get"&&P!=="head")T=Te(T);else if(ce&&d&&!v&&P!=="get"&&P!=="head")throw new re("Stream request bodies are not supported by the current fetch implementation",re.ERR_NOT_SUPPORT,S,q);L.isString(ue)||(ue=ue?"include":"omit");const je=d&&"credentials"in a.prototype;if(L.isFormData(T)){const ke=ne.getContentType();ke&&/^multipart\/form-data/i.test(ke)&&!/boundary=/i.test(ke)&&ne.delete("content-type")}ne.set("User-Agent","axios/"+Rm,!1);const Ne=he==null?he:Object.assign(Object.create(null),he);Ne&&(delete Ne.body,delete Ne.headers,delete Ne.method,delete Ne.signal,delete Ne.duplex,delete Ne.credentials);const Be=Object.assign(Object.create(null),Ne,{signal:I,method:P.toUpperCase(),headers:gS(ne.normalize()),body:T,duplex:"half",credentials:je?ue:void 0});d&&(L.forEach(iM,(ke,Ze)=>{Be[Ze]===void 0&&(Be[Ze]=ke)}),Be.signal===void 0&&(Be.signal=null),Be.body===void 0&&(Be.body=null)),J===0&&(Be.redirect="manual",Ne&&(Ne.redirect="manual")),q=d&&new a(k,Be);let qe=await(d?W(q,Ne):W(k,Be));const Rn=$t.from(qe.headers);if(ee){const ke=L.toFiniteNumber(Rn.getContentLength());if(ke!=null&&ke>ae)throw new re("maxContentLength size of "+ae+" exceeded",re.ERR_BAD_RESPONSE,S,q)}const mn=C&&(X==="stream"||X==="response");if(C&&qe.body&&(O||ee||mn&&we)){const ke={};["status","statusText","headers"].forEach(Dr=>{ke[Dr]=qe[Dr]});const Ze=L.toFiniteNumber(Rn.getContentLength()),[Gt,Qt]=O&&vw(Ze,Au(xw(O),!0))||[];let Ri=0;const Dl=Dr=>{if(ee&&(Ri=Dr,Ri>ae))throw new re("maxContentLength size of "+ae+" exceeded",re.ERR_BAD_RESPONSE,S,q);Gt&&Gt(Dr)};qe=new l(Sw(qe.body,_w,Dl,()=>{Qt&&Qt(),we&&we()}),ke)}X=X||"text";let xt=await E[L.findKey(E,X)||"text"](qe,S);if(ee&&!C&&!mn){let ke;if(xt!=null&&(typeof xt.byteLength=="number"?ke=xt.byteLength:typeof xt.size=="number"?ke=xt.size:typeof xt=="string"&&(ke=typeof r=="function"?new r().encode(xt).byteLength:xt.length)),typeof ke=="number"&&ke>ae)throw new re("maxContentLength size of "+ae+" exceeded",re.ERR_BAD_RESPONSE,S,q)}return!mn&&we&&we(),await new Promise((ke,Ze)=>{kS(ke,Ze,{data:xt,headers:$t.from(qe.headers),status:qe.status,statusText:qe.statusText,config:S,request:q})})}catch(K){if(we&&we(),I&&I.aborted&&I.reason instanceof re){const ie=I.reason;throw ie.config=S,q&&(ie.request=q),K!==ie&&Object.defineProperty(ie,"cause",{__proto__:null,value:K,writable:!0,enumerable:!1,configurable:!0}),ie}if(ge)throw q&&!ge.request&&(ge.request=q),ge;if(K instanceof re)throw q&&!K.request&&(K.request=q),K;if(K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)){const ie=new re("Network Error",re.ERR_NETWORK,S,q,K&&K.response);throw Object.defineProperty(ie,"cause",{__proto__:null,value:K.cause||K,writable:!0,enumerable:!1,configurable:!0}),ie}throw re.from(K,K&&K.code,S,q,K&&K.response)}}},cM=new Map,AS=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let l=a.length,u=l,d,h,m=cM;for(;u--;)d=a[u],h=m.get(d),h===void 0&&m.set(d,h=u?new Map:lM(t)),m=h;return h};AS();const jm={http:gO,xhr:KO,fetch:{get:AS}};L.forEach(jm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Pw=e=>`- ${e}`,uM=e=>L.isFunction(e)||e===null||e===!1;function dM(e,t){e=L.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let l=0;l<n;l++){r=e[l];let u;if(o=r,!uM(r)&&(o=jm[(u=String(r)).toLowerCase()],o===void 0))throw new re(`Unknown adapter '${u}'`);if(o&&(L.isFunction(o)||(o=o.get(t))))break;a[u||"#"+l]=o}if(!o){const l=Object.entries(a).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let u=n?l.length>1?`since : 320`+l.map(Pw).join(` 321`):" "+Pw(l[0]):"as no adapter specified";throw new re("There is no suitable adapter to dispatch the request "+u,re.ERR_NOT_SUPPORT)}return o}const OS={getAdapter:dM,adapters:jm};function _h(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kl(null,e)}function Nh(e){const t=L.toSafeFlatObject(e);return _h(t),t.headers=$t.from(L.getSafeProp(t,"headers")),t.data=Ch.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),OS.getAdapter(t.adapter||Nl.adapter,t)(t).then(function(o){_h(t),t.response=o;try{o.data=Ch.call(t,t.transformResponse,o)}finally{delete t.response}return o.headers=$t.from(o.headers),o},function(o){if(!NS(o)&&(_h(t),o&&o.response)){t.response=o.response;try{o.response.data=Ch.call(t,t.transformResponse,o.response)}finally{delete t.response}o.response.headers=$t.from(o.response.headers)}return Promise.reject(o)})}const ed={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ed[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Tw={};ed.transitional=function(t,n,r){function o(a,l){return"[Axios v"+Rm+"] Transitional option '"+a+"'"+l+(r?". "+r:"")}return(a,l,u)=>{if(t===!1)throw new re(o(l," has been removed"+(n?" in "+n:"")),re.ERR_DEPRECATED);return n&&!Tw[l]&&(Tw[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,l,u):!0}};ed.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function fM(e,t,n){if(typeof e!="object"||e===null)throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],l=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(l){const u=e[a],d=u===void 0||l(u,a,e);if(d!==!0)throw new re("option "+a+" must be "+d,re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new re("Unknown option "+a,re.ERR_BAD_OPTION)}}const mu={assertOptions:fM,validators:ed},Ft=mu.validators;let hi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new gw,response:new gw}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error)try{let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack;let l="";if(typeof a=="string"){const u=a.indexOf(` 322`);l=u===-1?"":a.slice(u+1)}if(!r.stack)r.stack=l;else if(l){const u=l.indexOf(` 323`),d=u===-1?-1:l.indexOf(` 324`,u+1),h=d===-1?"":l.slice(d+1);String(r.stack).endsWith(h)||(r.stack+=` 325`+l)}}catch{}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=xi(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&mu.assertOptions(r,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean),legacyInterceptorReqResOrdering:Ft.transitional(Ft.boolean),advertiseZstdAcceptEncoding:Ft.transitional(Ft.boolean),validateStatusUndefinedResolves:Ft.transitional(Ft.boolean)}
vendor: 3,302 bytes, line 325
325,!1),o!=null&&(L.isFunction(o)?n.paramsSerializer={serialize:o}:mu.assertOptions(o,{encode:Ft.function,serialize:Ft.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),mu.assertOptions(n,{baseUrl:Ft.spelling("baseURL"),withXsrfToken:Ft.spelling("withXSRFToken")},!0),n.method=(L.getSafeProp(n,"method")||L.getSafeProp(this.defaults,"method")||"get").toLowerCase();let l=a&&L.merge(a.common,a[n.method]);a&&L.forEach(_S.concat("common"),E=>{delete a[E]}),n.headers=$t.concat(l,a);const u=[];let d=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(n)===!1)return;d=d&&b.synchronous;const _=n.transitional||Pm;_&&_.legacyInterceptorReqResOrdering?u.unshift(b.fulfilled,b.rejected):u.push(b.fulfilled,b.rejected)});const h=[];this.interceptors.response.forEach(function(b){h.push(b.fulfilled,b.rejected)});let m,g=0,v;if(!d){const E=[Nh.bind(this),void 0];for(E.unshift(...u),E.push(...h),v=E.length,m=Promise.resolve(n);g<v;)m=m.then(E[g++],E[g++]);return m}v=u.length;let C=n;for(;g<v;){const E=u[g++],b=u[g++];try{C=E?E(C):C}catch(_){if(!b){m=Promise.reject(_);break}try{const S=b.call(this,_);L.isThenable(S)&&(m=Promise.resolve(S).then(()=>Nh.call(this,C)))}catch(S){m=Promise.reject(S)}break}}if(!m)try{m=Nh.call(this,C)}catch(E){m=Promise.reject(E)}for(g=0,v=h.length;g<v;)m=m.then(h[g++],h[g++]);return m}getUri(t){t=xi(this.defaults,t);const n=TS(t.baseURL,t.url,t.allowAbsoluteUrls,t);return bS(n,t.params,t.paramsSerializer)}};L.forEach(["delete","get","head","options"],function(t){hi.prototype[t]=function(n,r){return this.request(xi(r||{},{method:t,url:n,data:r&&L.hasOwnProp(r,"data")?r.data:void 0}))}});L.forEach(["post","put","patch","query"],function(t){function n(r){return function(a,l,u){return this.request(xi(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}hi.prototype[t]=n(),t!=="query"&&(hi.prototype[t+"Form"]=n(!0))});let hM=class MS{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const l=new Promise(u=>{r.subscribe(u),a=u}).then(o);return l.cancel=function(){r.unsubscribe(a)},l},t(function(a,l,u){r.reason||(r.reason=new kl(a,l,u),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 MS(function(o){t=o}),cancel:t}}};function pM(e){return function(n){return e.apply(null,n)}}function mM(e){return L.isObject(e)&&e.isAxiosError===!0}const gu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
325alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gu).forEach(([e,t])=>{gu[t]===void 0&&(gu[t]=e)});function LS(e){const t=new hi(e),n=iS(hi.prototype.request,t);return L.extend(n,hi.prototype,t,{allOwnKeys:!0}),L.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return LS(xi(e,o))},n}const mt=LS(Nl);mt.Axios=hi;mt.CanceledError=kl;mt.CancelToken=hM;mt.isCancel=NS;mt.VERSION=Rm;mt.toFormData=Zu;mt.AxiosError=re;mt.Cancel=mt.CanceledError;mt.all=function(t){return Promise.all(t)};mt.spread=pM;mt.isAxiosError=mM;mt.mergeConfig=xi;mt.AxiosHeaders=$t;mt.formToJSON=e=>ES(L.isHTMLForm(e)?new FormData(e):e);mt.getAdapter=OS.getAdapter;mt.HttpStatusCode=gu;mt.default=mt;const{Axios:Qz,AxiosError:Yz,CanceledError:Xz,isCancel:Jz,CancelToken:Zz,VERSION:e6,all:t6,Cancel:n6,isAxiosError:r6,spread:s6,toFormData:i6,AxiosHeaders:o6,HttpStatusCode:a6,formToJSON:l6,getAdapter:c6,mergeConfig:u6,create:d6}=mt,DS=typeof window>"u",Rw=!DS&&window.self!==window.top,gM=!DS&&typeof document>"u",IS=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),At=[];for(let e=0;e<256;++e)At.push((e+256).toString(16).slice(1));function yM(e,t=0){return(At[e[t+0]]+At[e[t+1]]+At[e[t+2]]+At[e[t+3]]+"-"+At[e[t+4]]+At[e[t+5]]+"-"+At[e[t+6]]+At[e[t+7]]+"-"+At[e[t+8]]+At[e[t+9]]+"-"+At[e[t+10]]+At[e[t+11]]+At[e[t+12]]+At[e[t+13]]+At[e[t+14]]+At[e[t+15]]).toLowerCase()}let kh;const vM=new Uint8Array(16);function xM(){if(!kh){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");kh=crypto.getRandomValues.bind(crypto)}return kh(vM)}const wM=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),jw={randomUUID:wM};function bM(e,t,n){var o;e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??xM();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,yM(r)}function SM(e,t,n){return jw.randomUUID&&!e?jw.randomUUID():bM(e)}const Ba=typeof window<"u"?window:{base44SharedInstances:{}};function CM(e,t){return Ba.base44SharedInstances||(Ba.base44SharedInstances={}),Ba.base44SharedInstances[e]||(Ba.base44SharedInstances[e]={instance:t()}),Ba.base44SharedInstances[e].instance}const EM="__user_heartbeat_event__",_M="__initialization_event__",NM="__session_duration_event__",Aw="analytics-enable",Ow="base44_analytics_session_id",kM={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},PM="analytics",ze=CM(PM,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...kM,...DM()}})),TM=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r,enabled:o})=>{var a;const{maxQueueSize:l,throttleTime:u,batchSize:d}=ze.config;if(!o||!(!((a=ze.config)===null||a===void 0)&&a.enabled)||gM)return{track:()=>{},cleanup:()=>{}};let h;const m=`${t}/api/apps/${n}/analytics/track/batch`,g=async T=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:T}})},v=T=>{try{const j=JSON.stringify({events:T}),F=new Blob([j],{type:"application/json"});return typeof navigator>"u"||j.length>6e4||!navigator.sendBeacon(m,F)}catch{return!1}},C=async(T,j={})=>
325{if(T.length===0)return;const F=await LM(r),U=T.map(MM(F));try{(!j.isBeacon||!v(U))&&await g(U)}catch{}},E=()=>{Lw(C,{throttleTime:u,batchSize:d})},b=T=>{if(ze.requestsQueue.length>=l)return;const j=OM();ze.requestsQueue.push({...T,...j}),E()},_=()=>{Lw(C,{throttleTime:u,batchSize:d}),h=Dw(b),jM()},S=()=>{Mw(),h==null||h(),AM(b);const T=ze.requestsQueue.splice(0);C(T,{isBeacon:!0})},k=()=>{typeof window>"u"||(document.visibilityState==="hidden"?S():document.visibilityState==="visible"&&_())},P=()=>{Mw(),h==null||h(),typeof window<"u"&&window.removeEventListener("visibilitychange",k)};return E(),h=Dw(b),RM(b),typeof window<"u"&&window.addEventListener("visibilitychange",k),{track:b,cleanup:P}};function Mw(){ze.isProcessing=!1}async function Lw(e,t){if(ze.isProcessing)return;ze.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;ze.isProcessing&&ze.requestsQueue.length>0;){const o=ze.requestsQueue.splice(0,r);o.length&&await e(o),await new Promise(a=>setTimeout(a,n))}ze.isProcessing=!1}function Dw(e){var t;if(typeof window>"u"||ze.isHeartBeatProcessing||((t=ze.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};ze.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:EM})},ze.config.heartBeatInterval);return()=>{clearInterval(n),ze.isHeartBeatProcessing=!1}}function RM(e){typeof window>"u"||ze.wasInitializationTracked||(ze.wasInitializationTracked=!0,e({eventName:_M,properties:{referrer:document==null?void 0:document.referrer}}))}function jM(){typeof window>"u"||ze.sessionStartTime!==null||(ze.sessionStartTime=new Date().toISOString())}function AM(e){if(typeof window>"u"||ze.sessionStartTime===null)return;const t=new Date().getTime()-new Date(ze.sessionStartTime).getTime();ze.sessionStartTime=null,e({eventName:NM,properties:{sessionDuration:t}})}function OM(){var e,t;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(t=(e=window.location)===null||e===void 0?void 0:e.pathname)!==null&&t!==void 0?t:null}}function MM(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Ha=null;function Iw(){ze.sessionContext=null,Ha=null}async function LM(e){if(!ze.sessionContext){if(!e.hasToken())return{user_id:null,session_id:Ou()};if(!Ha){const r=Ou();Ha=e.me().then(o=>({user_id:o.id,session_id:r})).catch(()=>({user_id:null,session_id:r}))}const t=Ha,n=await t;return Ha===t&&(ze.sessionContext=n),n}return ze.sessionContext}function DM(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(Aw);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(Aw);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function Fw(){var e;return(e=ze.fallbackSessionId)!==null&&e!==void 0?e:ze.fallbackSessionId=IS()}function Ou(){if(typeof window>"u")return Fw();try{const e=localStorage.getItem(Ow);if(!e){const t=IS();return localStorage.setItem(Ow,t),t}return e}catch{return Fw()}}class IM extends Error{constructor(t,n,r,o,a){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=o,this.originalError=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function ao({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:o}){const a=mt.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(a.defaults.headers.common.Authorization=`Bearer ${n}`),a.interceptors.request.use(l=>{typeof window<"u"&&(window.location&&l.headers.set("X-Origin-URL",window.location.href),l.headers.get("Authorization")||l.headers.set("X-Base44-Anonymous-Id",Ou()));const u=SM();if(l.requestId=u,Rw)try{window.parent.postMessage({type:"api-request-start",requestId:u,data:{url:e+l.url,method:l.method,body:l.data instanceof FormData?"[FormData object]":l.data}},"*")}catch{}return l}),r&&a.interceptors.response.use(l=>{var u;const d=(u=l.config)===null||u===void 0?void 0:u.requestId;try{Rw&&d&&window.parent.postMessage({type:"api-request-end",requestId:d,data:{statusCode:l.status,response:l.data}},"*")}catch{}return l.data},l=>{var u,d,h,m,g,v,C,E,b,_,S,k;const P=(u=l.response)===null||u===void 0?void 0:u.data,T=((d=P==null?void 0:P.error)===null||d===void 0?void 0:d.message)||(P==null?void 0:P.message)||(P==null?void 0:P.detail)||l.message,j=new IM(T,(h=l.response)===null||h===void 0?void 0:h.status,(_=(v=(g=(m=P==null?void 0:P.error)===null||m===void 0?void 0:m.code)!==null&&g!==void 0?g:P==null?void 0:P.code)!==null&&v!==void 0?v:(b=(E=(C=l.response)===null||C===void 0?void 0:C.headers)===null||E===void 0?void 0:E.get)===null||b===void 0?void 0:b.call(E,"x-base44-connector-error"))!==null&&_!==void 0?_:(k=(S=l.response)===null||S===void 0?void 0:S.headers)===null||k===void 0?void 0:k["x-base44-connector-error"],P,l);return o==null||o(j),Promise.reject(j)}),a}function Bw(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(o,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return UM(t,n,a,r)}})}function FM(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}const BM=100;function Uw(e){return typeof e=="object"&&e!==null}function UM(e,t,n,r){const o=`/apps/${t}/entities/${n}`,a=d=>Array.isArray(d)?d.join(","):d,l=(d,h,m,g,v)=>{const C={};return v&&(C.q=JSON.stringify(v)),d&&(C.sort=d),h&&(C.limit=h),m&&(C.skip=m),g&&(C.fields=a(g)),e.get(o,{params:C})},u=(d,h)=>{const m={};return h&&(m.q=JSON.stringify(h)),m.limit=d.limit||BM,d.cursor&&(m.cursor=d.cursor),"distinct"in d?m.distinct=d.distinct:(d.sort&&(m.sort=d.sort),d.fields&&(m.fields=a(d.fields))),e.get(`${o}/v2/list`,{params:m})};return{async list(...d){const[h,m,g,v]=d;return Uw(h)?u(h):l(h,m,g,v)},async filter(d,...h){const[m,g,v,C]=h;return Uw(m)?u(m,d):l(m,g,v,C,d)},async get(d){return e.get(`${o}/${d}`)},async create(d){return e.post(o,d)},async update(d,h){return e.put(`${o}/${d}`,h)},async delete(d){return e.delete(`${o}/${d}`)},async deleteMany(d){return e.delete(o,{data:d})},async bulkCreate(d){return e.post(`${o}/bulk`,d)},async updateMany(d,h){return e.patch(`${o}/update-many`,{query:d,data:h})},async count(d){const h={};return d&&(h.q=JSON.stringify(d)),(await e.get(`${o}/count`,{params:h})).count},async aggregate(d){return e.post(`${o}/aggregate`,d)},async upsert(d,h){return e.post(`${o}/upsert`,{records:d,key:h.key})},async bulkUpdate(d){return e.put(`${o}/bulk`,d)},async importEntities(d){const h=new FormData;return h.append("file",d,d.name),e.post(`${o}/import`,h,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(d){const h=`entities:${t}:${n}`;return r().subscribeToRoom(h,{update_model:v=>{var C;const E=FM(v.data);if(E){E.type!=="delete"&&(!((C=E.data)===null||C===void 0)&&C._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${E.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${E.id}")\` to fetch the full record.`);try{d(E)}catch(b){console.error("[Base44 SDK] Subscription callback error:",b)}}}})}}}
325function VM(e,t){return{async call(n,r,o){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:a,queryParams:l,...u}=o??{},d={...u,...a&&{path_params:a},...l&&{query_params:l}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,d)}}}function Vw(e,t){const n=VM(e,t);return new Proxy({},{get(r,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return o==="custom"?n:new Proxy({},{get(a,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return async u=>{if(typeof u=="string")throw new Error(`Integration ${l} must receive an object with named parameters, received: ${u}`);let d,h;return u instanceof FormData||u&&Object.values(u).some(m=>m instanceof File)?(d=new FormData,Object.keys(u).forEach(m=>{u[m]instanceof File?d.append(m,u[m],u[m].name):typeof u[m]=="object"&&u[m]!==null?d.append(m,JSON.stringify(u[m])):d.append(m,u[m])}),h="multipart/form-data"):(d=u,h="application/json"),o==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${l}`,d||u,{headers:{"Content-Type":h}}):e.post(`/apps/${t}/integration-endpoints/installable/${o}/integration-endpoints/${l}`,d||u,{headers:{"Content-Type":h}})}}})}})}function $M(){return typeof window>"u"?!1:window!==window.parent}function zM(e,t,n){const a=Math.round(window.screenX+(window.outerWidth-500)/2),l=Math.round(window.screenY+(window.outerHeight-600)/2),u=window.open(e,"base44_auth",`width=500,height=600,left=${a},top=${l},resizable=yes,scrollbars=yes`);if(!u)return;const d=()=>{window.removeEventListener("message",h),clearInterval(m),u.closed||u.close()},h=g=>{var v;if(g.origin!==n||g.source!==u||!(!((v=g.data)===null||v===void 0)&&v.access_token))return;d();const C=new URL(t),{access_token:E,is_new_user:b}=g.data;C.searchParams.set("access_token",E),b!=null&&C.searchParams.set("is_new_user",String(b)),window.location.href=C.toString()},m=setInterval(()=>{u.closed&&d()},500);window.addEventListener("message",h)}function WM(e,t,n,r){let o=null;const a=()=>{o=null};let l=!!r.token;return{hasToken(){return l},async me(){const u=o??e.get(`/apps/${n}/entities/User/me`).finally(()=>{o===u&&(o=null)});return o=u,u},async updateMe(u){return e.put(`/apps/${n}/entities/User/me`,u)},redirectToLogin(u){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const d=u?new URL(u,window.location.origin).toString():window.location.href,h=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(d)}`;window.location.href=h},loginWithProvider(u,d="/"){const h=new URL(d,window.location.origin).toString(),m=`app_id=${n}&from_url=${encodeURIComponent(h)}`;let g;u==="sso"?g=`/apps/${n}/auth/sso/login`:g=`/apps/auth${u==="google"?"":`/${u}`}/login`;const v=`${r.appBaseUrl}/api${g}?${m}`;if($M()){const C=`${v}&popup_origin=${encodeURIComponent(window.location.origin)}`;return zM(C,h,window.location.origin)}window.location.href=v},logout(u){if(delete e.defaults.headers.common.Authorization,a(),Iw(),l=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(m){console.error("Failed to remove token from localStorage:",m)}const d=u||window.location.href,h=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(d)}`;window.location.href=h}},setToken(u,d=!0){if(u&&(a(),Iw(),l=!0,e.defaults.headers.common.Authorization=`Bearer ${u}`,t.defaults.headers.common.Authorization=`Bearer ${u}`,d&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",u),window.localStorage.setItem("token",u)}catch(h){console.error("Failed to save token to localStorage:",h)}},async loginViaEmailPassword(u,d,h){var m;try{const g=await e.post(`/apps/${n}/auth/login`,{email:u,password:d,...h&&{turnstile_token:h}}),{access_token:v,user:C}=g;return v&&this.setToken(v),{access_token:v,user:C}}catch(g){throw((m=g.response)===null||m===void 0?void 0:m.status)===401&&await this.logout(),g}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(u,d){return e.post(`/apps/${n}/users/invite-user`,{user_email:u,role:d})},register(u){return e.post(`/apps/${n}/auth/register`,u)},verifyOtp({email:u,otpCode:d}){return e.post(`/apps/${n}/auth/verify-otp`,{email:u,otp_code:d})},resendOtp(u){return e.post(`/apps/${n}/auth/resend-otp`,{email:u})},resetPasswordRequest(u){return e.post(`/apps/${n}/auth/reset-password-request`,{email:u})},resetPassword({resetToken:u,newPassword:d}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:u,new_password:d})},changePassword({userId:u,currentPassword:d,newPassword:h}){return e.post(`/apps/${n}/auth/change-password`,{user_id:u,current_password:d,new_password:h})}}}function HM(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)},async getIdToken(n){const r=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(r)}}}const qM=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
325function KM(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var r;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async getWorkspaceConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async callApi(n,r){return FS(n,"Integration type"),GM(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,r)}}}function FS(e,t){if(!e||typeof e!="string")throw new Error(`${t} is required and must be a string`)}async function GM(e,t,n){var r,o,a,l,u,d,h,m,g;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");FS(n.path,"Request path");const v=(r=n.method)!==null&&r!==void 0?r:"GET";if(!qM.has(v))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const E=await e.post(t,{method:v,...n.host==null?{}:{host:n.host},path:n.path,query:(o=n.query)!==null&&o!==void 0?o:{},headers:(a=n.headers)!==null&&a!==void 0?a:{},body:(l=n.body)!==null&&l!==void 0?l:null});return{success:E.success,phase:E.phase,status:(u=E.status_code)!==null&&u!==void 0?u:null,data:E.data,dataBase64:(d=E.data_base64)!==null&&d!==void 0?d:null,contentType:(h=E.content_type)!==null&&h!==void 0?h:null,headers:(m=E.headers)!==null&&m!==void 0?m:{},creditsCharged:(g=E.credits_charged)!==null&&g!==void 0?g:0}}function QM(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function vs(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:o=!0}=e;let a=null;if(typeof window<"u"&&window.location)try{const l=new URLSearchParams(window.location.search);if(a=l.get(n),a){if(r&&YM(a,{storageKey:t}),o){l.delete(n);const u=`${window.location.pathname}${l.toString()?`?${l.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,u)}return a}}catch(l){console.error("Error retrieving token from URL:",l)}if(typeof window<"u"&&window.localStorage)try{return a=window.localStorage.getItem(t),a}catch(l){console.error("Error retrieving token from local storage:",l)}return null}function YM(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(r){return console.error("Error saving token to local storage:",r),!1}}function XM({axios:e,serviceRoleAxios:t,appId:n,serverUrl:r,functionsVersion:o,platformHeaders:a}){const l=new Headers(a),u=d=>{const h=d.defaults.headers.common.Authorization;return typeof h=="string"&&h.startsWith("Bearer ")?h:null};return async function(h,m={}){JM(h);const{fetch:g=fetch,...v}=m,C=new Headers(m.headers),E=(b,_)=>{_&&!C.has(b)&&C.set(b,_)};return E("Authorization",u(e)),E("Base44-Service-Authorization",u(t)),E("Base44-App-Id",n),E("Base44-Api-Url",r),E("Base44-Functions-Version",o),E("Base44-State",l.get("Base44-State")),E("X-Data-Env",l.get("X-Data-Env")),g(h,{...v,headers:C})}}function JM(e){if(typeof e!="string"||e==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!t.startsWith("/")||t.startsWith("//")||t.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${e}" is not a path on it â pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function $w(e,t,n){const r=(a,l)=>a?`${String(a).replace(/\/$/,"")}${l}`:l,o=a=>{const l=new Headers;if(n!=null&&n.getAuthHeaders){const u=n.getAuthHeaders();Object.entries(u).forEach(([d,h])=>{h!=null&&l.set(d,String(h))})}
325return a&&new Headers(a).forEach((u,d)=>{l.set(d,u)}),l};return{async invoke(a,l){if(typeof l=="string")throw new Error(`Function ${a} must receive an object with named parameters, received: ${l}`);let u,d;return l instanceof FormData||l&&Object.values(l).some(h=>h instanceof File)?(u=new FormData,Object.keys(l).forEach(h=>{l[h]instanceof File?u.append(h,l[h],l[h].name):typeof l[h]=="object"&&l[h]!==null?u.append(h,JSON.stringify(l[h])):u.append(h,l[h])}),d="multipart/form-data"):(u=l,d="application/json"),e.post(`/apps/${t}/functions/${a}`,u||l,{headers:{"Content-Type":d}})},async fetch(a,l={}){const d=`/functions${a.startsWith("/")?a:`/${a}`}`,h=o(l.headers),m={...l,headers:h};return await fetch(r(n==null?void 0:n.baseURL,d),m)}}}function zw({axios:e,getSocket:t,appId:n,serverUrl:r,token:o}){const a=`/apps/${n}/agents`,l={},u=()=>e.get(`${a}/conversations`),d=b=>e.get(`${a}/conversations/${b}`);return{getConversations:u,getConversation:d,listConversations:b=>e.get(`${a}/conversations`,{params:b}),createConversation:b=>e.post(`${a}/conversations`,b),addMessage:async(b,_)=>e.post(`${a}/conversations/v2/${b.id}/messages`,_),subscribeToConversation:(b,_)=>{const S=`/agent-conversations/${b}`,k=t(),P=d(b).then(T=>(l[b]=T,T));return k.subscribeToRoom(S,{connect:()=>{},update_model:async({data:T})=>{const j=JSON.parse(T);if(j._message){await P;const F=j._message,U=l[b];if(U){const O=U.messages||[],H=O.findIndex(ne=>ne.id===F.id),X=H!==-1?O.map((ne,ue)=>ue===H?F:ne):[...O,F];l[b]={...U,messages:X},_==null||_(l[b])}}}})},getWhatsAppConnectURL:b=>{const _=`${r}/api/apps/${n}/agents/${encodeURIComponent(b)}/whatsapp`,S=o??vs();return S?`${_}?token=${S}`:_},getTelegramConnectURL:b=>{const _=`${r}/api/apps/${n}/agents/${encodeURIComponent(b)}/telegram`,S=o??vs();return S?`${_}?token=${S}`:_}}}const Ww={openai:"openai",typesafe:"typesafe"};function Hw({serverUrl:e,token:t,appId:n}){return{connection:({provider:o="openai"}={})=>{var a;if(!Object.prototype.hasOwnProperty.call(Ww,o))throw new Error(`Unsupported AI Gateway provider: ${o}`);const l=Ww[o];return{baseURL:`${e}/api/apps/${n}/ai/${l}/v1`,token:(a=t??vs())!==null&&a!==void 0?a:""}}}}function qw(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function ZM(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function eL(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}const cr=Object.create(null);cr.open="0";cr.close="1";cr.ping="2";cr.pong="3";cr.message="4";cr.upgrade="5";cr.noop="6";const yu=Object.create(null);Object.keys(cr).forEach(e=>{yu[cr[e]]=e});const Ep={type:"error",data:"parser error"},BS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",US=typeof ArrayBuffer=="function",VS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Am=({type:e,data:t},n,r)=>BS&&t instanceof Blob?n?r(t):Kw(t,r):US&&(t instanceof ArrayBuffer||VS(t))?n?r(t):Kw(new Blob([t]),r):r(cr[e]+(t||"")),Kw=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Gw(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Ph;function tL(e,t){if(BS&&e.data instanceof Blob)return e.data.arrayBuffer().then(Gw).then(t);if(US&&(e.data instanceof ArrayBuffer||VS(e.data)))return t(Gw(e.data));Am(e,!1,n=>{Ph||(Ph=new TextEncoder),t(Ph.encode(n))})}const Qw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Qw.length;e++)qa[Qw.charCodeAt(e)]=e;const nL=e=>{let t=e.length*.75,n=e.length,r,o=0,a,l,u,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const h=new ArrayBuffer(t),m=new Uint8Array(h);for(r=0;r<n;r+=4)a=qa[e.charCodeAt(r)],l=qa[e.charCodeAt(r+1)],u=qa[e.charCodeAt(r+2)],d=qa[e.charCodeAt(r+3)],m[o++]=a<<2|l>>4,m[o++]=(l&15)<<4|u>>2,m[o++]=(u&3)<<6|d&63;return h},rL=typeof ArrayBuffer=="function",Om=(e,t)=>
vendor: 4,460 bytes, line 325
325{if(typeof e!="string")return{type:"message",data:$S(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:sL(e.substring(1),t)}:yu[n]?e.length>1?{type:yu[n],data:e.substring(1)}:{type:yu[n]}:Ep},sL=(e,t)=>{if(rL){const n=nL(e);return $S(n,t)}else return{base64:!0,data:e}},$S=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},zS="�",iL=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((a,l)=>{Am(a,!1,u=>{r[l]=u,++o===n&&t(r.join(zS))})})},oL=(e,t)=>{const n=e.split(zS),r=[];for(let o=0;o<n.length;o++){const a=Om(n[o],t);if(r.push(a),a.type==="error")break}return r};function aL(){return new TransformStream({transform(e,t){tL(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const a=new DataView(o.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{o=new Uint8Array(9);const a=new DataView(o.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Th;function Xc(e){return e.reduce((t,n)=>t+n.length,0)}function Jc(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function lL(e,t){Th||(Th=new TextDecoder);const n=[];let r=0,o=-1,a=!1;return new TransformStream({transform(l,u){for(n.push(l);;){if(r===0){if(Xc(n)<1)break;const d=Jc(n,1);a=(d[0]&128)===128,o=d[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(Xc(n)<2)break;const d=Jc(n,2);o=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),r=3}else if(r===2){if(Xc(n)<8)break;const d=Jc(n,8),h=new DataView(d.buffer,d.byteOffset,d.length),m=h.getUint32(0);if(m>Math.pow(2,21)-1){u.enqueue(Ep);break}o=m*Math.pow(2,32)+h.getUint32(4),r=3}else{if(Xc(n)<o)break;const d=Jc(n,o);u.enqueue(Om(a?d:Th.decode(d),t)),r=0}if(o===0||o>e){u.enqueue(Ep);break}}}})}const WS=4;function vt(e){if(e)return cL(e)}function cL(e){for(var t in vt.prototype)e[t]=vt.prototype[t];return e}vt.prototype.on=vt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};vt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};vt.prototype.off=vt.prototype.removeListener=vt.prototype.removeAllListeners=vt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};vt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};vt.prototype.emitReserved=vt.prototype.emit;vt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};vt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const td=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),kn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),uL="arraybuffer";function HS(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const dL=kn.setTimeout,fL=kn.clearTimeout;function nd(e,t){t.useNativeTimers?(e.setTimeoutFn=dL.bind(kn),e.clearTimeoutFn=fL.bind(kn)):(e.setTimeoutFn=kn.setTimeout.bind(kn),e.clearTimeoutFn=kn.clearTimeout.bind(kn))}const hL=1.33;function pL(e){return typeof e=="string"?mL(e):Math.ceil((e.byteLength||e.size)*hL)}function mL(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function qS(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function gL(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function yL(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let a=n[r].split("=");
vendor: 6,261 bytes, line 325
325t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class vL extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Mm extends vt{constructor(t){super(),this.writable=!1,nd(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new vL(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Om(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=gL(t);return n.length?"?"+n:""}}class xL extends Mm{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};oL(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,iL(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=qS()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let KS=!1;try{KS=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const wL=KS;function bL(){}class SL extends xL{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,a)=>{this.onError("xhr post error",o,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class ir extends vt{constructor(t,n,r){super(),this.createRequest=t,nd(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=HS(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=ir.requestsCount++,ir.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=bL,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ir.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}ir.requestsCount=0;ir.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Yw);else if(typeof addEventListener=="function"){const e="onpagehide"in kn?"pagehide":"unload";addEventListener(e,Yw,!1)}}function Yw(){for(let e in ir.requests)ir.requests.hasOwnProperty(e)&&ir.requests[e].abort()}const CL=(function(){const e=GS({xdomain:!1});return e&&e.responseType!==null})();class EL extends SL{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=CL&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ir(GS,this.uri(),t)}}function GS(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||wL))return new XMLHttpRequest}catch{}if(!t)try{return new kn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const QS=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class _L extends Mm{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=QS?{}:HS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}
vendor: 15,989 bytes, line 325
325this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;Am(r,this.supportsBinary,a=>{try{this.doWrite(r,a)}catch{}o&&td(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=qS()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Rh=kn.WebSocket||kn.MozWebSocket;class NL extends _L{createSocket(t,n,r){return QS?new Rh(t,n,r):n?new Rh(t,n):new Rh(t)}doWrite(t,n){this.ws.send(n)}}class kL extends Mm{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=lL(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=aL();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const a=()=>{r.read().then(({done:u,value:d})=>{u||(this.onPacket(d),a())}).catch(u=>{})};a();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&td(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const PL={websocket:NL,webtransport:kL,polling:EL},TL=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,RL=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function _p(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=TL.exec(e||""),a={},l=14;for(;l--;)a[RL[l]]=o[l]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=jL(a,a.path),a.queryKey=AL(a,a.query),a}function jL(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function AL(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,a){o&&(n[o]=a)}),n}const Np=typeof addEventListener=="function"&&typeof removeEventListener=="function",vu=[];Np&&addEventListener("offline",()=>{vu.forEach(e=>e())},!1);class Cs extends vt{constructor(t,n){if(super(),this.binaryType=uL,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=_p(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=_p(n.host).host);nd(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=yL(this.opts.query)),Np&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},vu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=WS,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Cs.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Cs.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=pL(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,td(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Cs.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Np&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=vu.indexOf(this._offlineEventListener);r!==-1&&vu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Cs.protocol=WS;class OL extends Cs{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Cs.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!r)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Cs.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(m(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=n.name,this.emitReserved("upgradeError",v)}}))};function a(){r||(r=!0,m(),n.close(),n=null)}const l=g=>{const v=new Error("probe error: "+g);v.transport=n.name,a(),this.emitReserved("upgradeError",v)};function u(){l("transport closed")}function d(){l("socket closed")}function h(g){n&&g.name!==n.name&&a()}const m=()=>{n.removeListener("open",o),n.removeListener("error",l),n.removeListener("close",u),this.off("close",d),this.off("upgrading",h)};n.once("open",o),n.once("error",l),n.once("close",u),this.once("close",d),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let ML=class extends OL{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>PL[o]).filter(o=>!!o)),super(t,r)}};function LL(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=_p(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const DL=typeof ArrayBuffer=="function",IL=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,YS=Object.prototype.toString,FL=typeof Blob=="function"||typeof Blob<"u"&&YS.call(Blob)==="[object BlobConstructor]",BL=typeof File=="function"||typeof File<"u"&&YS.call(File)==="[object FileConstructor]";function Lm(e){return DL&&(e instanceof ArrayBuffer||IL(e))||FL&&e instanceof Blob||BL&&e instanceof File}function xu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(xu(e[n]))return!0;return!1}if(Lm(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return xu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&xu(e[n]))return!0;return!1}function UL(e){const t=[],n=e.data,r=e;return r.data=kp(n,t),r.attachments=t.length,{packet:r,buffers:t}}function kp(e,t){if(!e)return e;if(Lm(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=kp(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=kp(e[r],t));return n}return e}function VL(e,t){return e.data=Pp(e.data,t),delete e.attachments,e}function Pp(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Pp(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Pp(e[n],t));return e}const $L=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ie;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Ie||(Ie={}));class zL{constructor(t){this.replacer=t}encode(t){return(t.type===Ie.EVENT||t.type===Ie.ACK)&&xu(t)?this.encodeAsBinary({type:t.type===Ie.EVENT?Ie.BINARY_EVENT:Ie.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Ie.BINARY_EVENT||t.type===Ie.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=UL(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class Dm extends vt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Ie.BINARY_EVENT;r||n.type===Ie.BINARY_ACK?(n.type=r?Ie.EVENT:Ie.ACK,this.reconstructor=new WL(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Lm(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Ie[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Ie.BINARY_EVENT||r.type===Ie.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(a,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(l)}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const a=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}
vendor: 4,501 bytes, line 325
325if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(Dm.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Ie.CONNECT:return Xw(n);case Ie.DISCONNECT:return n===void 0;case Ie.CONNECT_ERROR:return typeof n=="string"||Xw(n);case Ie.EVENT:case Ie.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&$L.indexOf(n[0])===-1);case Ie.ACK:case Ie.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class WL{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=VL(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Xw(e){return Object.prototype.toString.call(e)==="[object Object]"}const HL=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Dm,Encoder:zL,get PacketType(){return Ie}},Symbol.toStringTag,{value:"Module"}));function $n(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const qL=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class XS extends vt{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[$n(t,"open",this.onopen.bind(this)),$n(t,"packet",this.onpacket.bind(this)),$n(t,"error",this.onerror.bind(this)),$n(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,a;if(qL.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const l={type:Ie.EVENT,data:n};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const m=this.ids++,g=n.pop();this._registerAckCallback(m,g),l.id=m}const u=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,d=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!u||(d?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let u=0;u<this.sendBuffer.length;u++)this.sendBuffer[u].id===t&&this.sendBuffer.splice(u,1);n.call(this,new Error("operation has timed out"))},o),l=(...u)=>{this.io.clearTimeoutFn(a),n.apply(this,u)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((r,o)=>{const a=(l,u)=>l?o(l):r(u);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...a)=>(this._queue[0],o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ie.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,087 bytes, line 325
325_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ie.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ie.EVENT:case Ie.BINARY_EVENT:this.onevent(t);break;case Ie.ACK:case Ie.BINARY_ACK:this.onack(t);break;case Ie.DISCONNECT:this.ondisconnect();break;case Ie.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Ie.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ie.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function $o(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}$o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};$o.prototype.reset=function(){this.attempts=0};$o.prototype.setMin=function(e){this.ms=e};$o.prototype.setMax=function(e){this.max=e};$o.prototype.setJitter=function(e){this.jitter=e};class Tp extends vt{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,nd(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new $o({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||HL;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new ML(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=$n(n,"open",function(){r.onopen(),t&&t()}),a=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},l=$n(n,"error",a);if(this._timeout!==!1){const u=this._timeout,d=this.setTimeoutFn(()=>{o(),a(new Error("timeout")),n.close()},u);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(o),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push($n(t,"ping",this.onping.bind(this)),$n(t,"data",this.ondata.bind(this)),$n(t,"error",this.onerror.bind(this)),$n(t,"close",this.onclose.bind(this)),$n(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){td(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new XS(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
325cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ua={};function wu(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=LL(e,t.path||"/socket.io"),r=n.source,o=n.id,a=n.path,l=Ua[o]&&a in Ua[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let d;return u?d=new Tp(r,t):(Ua[o]||(Ua[o]=new Tp(r,t)),d=Ua[o]),n.query&&!t.query&&(t.query=n.queryKey),d.socket(n.path,t)}Object.assign(wu,{Manager:Tp,Socket:XS,io:wu,connect:wu});const KL=250;function Jw(e,t){var n;const r=(n=e.token)!==null&&n!==void 0?n:vs(),o={app_id:e.appId};r?o.token=r:o.anonymous_id=Ou();const a=wu(e.serverUrl,{path:e.mountPath,transports:e.transports,query:o});return a.on("connect",async()=>{var l;return console.log("connect",a.id),(l=t.connect)===null||l===void 0?void 0:l.call(t)}),a.on("update_model",async l=>{var u;return(u=t.update_model)===null||u===void 0?void 0:u.call(t,l)}),a.on("error",async l=>{var u;return(u=t.error)===null||u===void 0?void 0:u.call(t,l)}),a.on("connect_error",async l=>{var u;return console.error("connect_error",l),(u=t.error)===null||u===void 0?void 0:u.call(t,l)}),a}function GL({config:e}){let t={...e};const n={},r={},o={connect:async()=>{const S=[];Object.keys(n).forEach(k=>{const P=v(k);P.length!==0&&(h(k),P.forEach(({connect:T})=>{const j=async()=>T==null?void 0:T();S.push(j())}))}),await Promise.all(S)},update_model:async S=>{const P=v(S.room).map(T=>{var j;return(j=T.update_model)===null||j===void 0?void 0:j.call(T,S)});await Promise.all(P)},error:async S=>{console.error("error",S);const k=Object.values(n).flat().map(P=>{var T;return(T=P.error)===null||T===void 0?void 0:T.call(P,S)});await Promise.all(k)}};let a=Jw(e,o);function l(){u()}function u(){E(),a&&a.disconnect()}function d(S){l(),t={...t,...S},a=Jw(t,o)}function h(S){a.emit("join",S)}function m(S){a.emit("leave",S)}async function g(S,k){var P;const T=JSON.stringify(k);return(P=o.update_model)===null||P===void 0?void 0:P.call(o,{room:S,data:T})}function v(S){var k;return(k=n[S])!==null&&k!==void 0?k:[]}function C(S){const k=r[S];k&&(clearTimeout(k),delete r[S])}function E(){Object.keys(r).forEach(S=>{var k,P;clearTimeout(r[S]),delete r[S],((P=(k=n[S])===null||k===void 0?void 0:k.length)!==null&&P!==void 0?P:0)===0&&delete n[S]})}function b(S){C(S),r[S]=setTimeout(()=>{var k,P;delete r[S],!(((P=(k=n[S])===null||k===void 0?void 0:k.length)!==null&&P!==void 0?P:0)>0)&&(m(S),delete n[S])},KL)}return{socket:a,subscribeToRoom:(S,k)=>{n[S]?C(S):(h(S),n[S]=[]),n[S].push(k);let P=!1;return()=>{var T,j;P||(P=!0,n[S]=(j=(T=n[S])===null||T===void 0?void 0:T.filter(F=>F!==k))!==null&&j!==void 0?j:[],n[S].length===0&&b(S))}},updateConfig:d,updateModel:g,disconnect:u}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(` 326 PartySocket requires a global 'EventTarget' class to be available! 327 You can polyfill this global by adding this to your code before any partysocket imports: 328 329 \`\`\` 330 import 'partysocket/event-target-polyfill'; 331 \`\`\` 332 Please file an issue at https://github.com/partykit/partykit if you're still having trouble. 333`);
vendor: 5,074 bytes, line 333
333var JS=class extends Event{constructor(t,n){super("error",n);Je(this,"message");Je(this,"error");this.message=t.message,this.error=t}},ZS=class extends Event{constructor(t=1e3,n="",r){super("close",r);Je(this,"code");Je(this,"reason");Je(this,"wasClean",!0);this.code=t,this.reason=n}},jh={Event,ErrorEvent:JS,CloseEvent:ZS};function QL(e,t){if(!e)throw new Error(t)}function YL(e){return new e.constructor(e.type,e)}function XL(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new ZS(e.code||1999,e.reason||"unknown reason",e):"error"in e?new JS(e.error,e):new Event(e.type,e)}var a1,JL=typeof process<"u"&&typeof((a1=process.versions)==null?void 0:a1.node)<"u"&&typeof document>"u",Zc=JL?XL:YL,Qs={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Zw=!1,ZL=class Xs extends EventTarget{constructor(n,r,o={}){super();Je(this,"_ws");Je(this,"_retryCount",-1);Je(this,"_uptimeTimeout");Je(this,"_connectTimeout");Je(this,"_shouldReconnect",!0);Je(this,"_connectLock",!1);Je(this,"_binaryType","blob");Je(this,"_closeCalled",!1);Je(this,"_messageQueue",[]);Je(this,"_url");Je(this,"_protocols");Je(this,"_options");Je(this,"onclose",null);Je(this,"onerror",null);Je(this,"onmessage",null);Je(this,"onopen",null);Je(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:r=Qs.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),r),QL(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(o=>{var a;return(a=this._ws)==null?void 0:a.send(o)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(Zc(n))});Je(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(Zc(n))});Je(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(Zc(n)),this._connect()});Je(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(Zc(n))});this._url=n,this._protocols=r,this._options=o,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return Xs.CONNECTING}get OPEN(){return Xs.OPEN}get CLOSING(){return Xs.CLOSING}get CLOSED(){return Xs.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((r,o)=>(typeof o=="string"?r+=o.length:o instanceof Blob?r+=o.size:r+=o.byteLength,r),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?Xs.CLOSED:Xs.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,r){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,r)}reconnect(n,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,r),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:r=Qs.maxEnqueuedMessages}=this._options;this._messageQueue.length<r&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=Qs.reconnectionDelayGrowFactor,minReconnectionDelay:r=Qs.minReconnectionDelay,maxReconnectionDelay:o=Qs.maxReconnectionDelay}=this._options;let a=0;return this._retryCount>0&&(a=r*Math.pow(n,this._retryCount-1),a>o&&(a=o)),this._debug("next delay",a),a}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const r=n();if(!r)return Promise.resolve(null);if(typeof r=="string"||Array.isArray(r))return Promise.resolve(r);if(r.then)return r}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const r=n();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
333const{maxRetries:n=Qs.maxRetries,connectionTimeout:r=Qs.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([o,a])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!Zw&&(console.error(`â¼ï¸ No WebSocket implementation available. You should define options.WebSocket. 334 335For example, if you're using node.js, run \`npm install ws\`, and then in your code: 336 337import PartySocket from 'partysocket'; 338import WS from 'ws'; 339 340const partysocket = new PartySocket({ 341 host: "127.0.0.1:1999", 342 room: "test-room", 343 WebSocket: WS 344}); 345 346`),Zw=!0);const l=this._options.WebSocket||WebSocket;this._debug("connect",{url:o,protocols:a}),this._ws=a?new l(o,a):new l(o),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),r)}).catch(o=>{this._connectLock=!1,this._handleError(new jh.ErrorEvent(Error(o.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new jh.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,r){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,r),this._handleClose(new jh.CloseEvent(n,r,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*! 347 * Reconnecting WebSocket 348 * by Pedro Ladaria <[email protected]> 349 * https://github.com/pladaria/reconnecting-websocket 350 * License MIT 351 */const eD=1e3,tD=3e3,nD=new Set([405,409,422,503]),rD=new Set([400,403,404]);function sD(e){const t=e&&typeof e=="object"?e.status:void 0;return typeof t=="number"?t:void 0}function iD(e){return e instanceof Error?e:new Error(String(e))}class oD{constructor(t,n,r,o,a){var l;this.onClose=a,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(l=o==null?void 0:o.id)!==null&&l!==void 0?l:crypto.randomUUID();let u=r.transport==="proxy";const d=async()=>{var v;if(this.closed)throw new Error("Actor connection is closed");if(!u)try{const{websocket_url:C,token:E}=await r.mintConnectionToken(t,n,this.id),b=C.includes("?")?"&":"?";return`${C}${b}token=${encodeURIComponent(E)}`}catch(C){const E=sD(C);if(!(r.transport!=="direct"&&E!==void 0&&nD.has(E))){E!==void 0&&rD.has(E)&&this.close();try{(v=r.onMintError)===null||v===void 0||v.call(r,iD(C))}catch{}throw C}u=!0}return lD(r.host,t,n,this.id,r.appId,r.getAuthToken(),r.functionsVersion)},h=new ZL(d);this.ws=h;let m=Date.now();const g=()=>{m=Date.now()};h.addEventListener("open",g),h.addEventListener("message",v=>{g();let C;try{C=JSON.parse(v.data)}catch{return}if((C&&typeof C=="object"?C.type:void 0)!=="__pong")for(const b of this.listeners)b(C)}),this.heartbeat=setInterval(()=>{if(Date.now()-m>tD){g(),h.readyState===h.OPEN&&h.reconnect();return}try{h.send(JSON.stringify({type:"__ping"}))}catch{}},eD)}subscribe(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}send(t){this.closed||this.ws.send(JSON.stringify(t))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function aD(e,t,n,r){let o=null;return{connect(a){if(o)return o;const l=new oD(e,t,n,a,()=>{r.delete(l),o===l&&(o=null)});return o=l,r.add(l),l}}}function lD(e,t,n,r,o,a,l){let u=e.replace(/^(http|https|ws|wss):\/\//,"");u.endsWith("/")&&(u=u.slice(0,-1));const d=u.startsWith("localhost:")||u.startsWith("127.0.0.1:")||u.startsWith("192.168.")||u.startsWith("10.")||u.startsWith("172.")&&u.split(".")[1]>="16"&&u.split(".")[1]<="31"||u.startsWith("[::ffff:7f00:1]:"),h=new URLSearchParams([["_pk",r],["app_id",o],["handler",t]]);return a&&h.append("token",a),l&&h.append("fv",l),`${d?"ws":"wss"}://${u}/parties/${t}/${n}?${h}`}function cD(e,t){return e&&!e.startsWith("/")?e:t??e}function uD(e){const t=new Set;return{module:new Proxy({},{get(r,o){if(!(typeof o!="string"||o==="then"))return a=>aD(o,a,e,t)}}),closeAll:()=>{for(const r of[...t])r.close()}}}function dD(e){var t,n,r,o;const{serverUrl:a="https://base44.app",appId:l,analytics:u,token:d,serviceToken:h,requiresAuth:m=!1,appBaseUrl:g,options:v,functionsVersion:C,headers:E}=e,b=typeof g=="string"?g:"",_={serverUrl:a,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:l,token:d};let S=null;
351const k=()=>(S||(S=GL({config:_})),S),P={...E,"X-App-Id":String(l)},T=C?{...P,"Base44-Functions-Version":C}:P,j=ao({baseURL:`${a}/api`,headers:P,token:d,onError:v==null?void 0:v.onError}),F=ao({baseURL:`${a}/api`,headers:T,token:d,interceptResponses:!1,onError:v==null?void 0:v.onError}),U={...P,...d?{"on-behalf-of":`Bearer ${d}`}:{}},O=ao({baseURL:`${a}/api`,headers:U,token:h,onError:v==null?void 0:v.onError}),H=ao({baseURL:`${a}/api`,headers:T,token:h,interceptResponses:!1}),X=ao({baseURL:`${a}/api`,headers:P}),ne=WM(j,F,l,{appBaseUrl:b,token:d});if(typeof window<"u"){const J=d||vs();J&&ne.setToken(J)}const ue=uD({appId:l,host:cD(a,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:C,getAuthToken:()=>d||vs(),mintConnectionToken:async(J,ee,z)=>{const te=d||vs();return await X.post(`/apps/${l}/actors/${encodeURIComponent(J)}/connection-token`,{room:ee,connection_id:z},{headers:{...te?{Authorization:`Bearer ${te}`}:{},...C?{"Base44-Functions-Version":C}:{}}})},transport:v==null?void 0:v.actorsTransport,onMintError:v==null?void 0:v.onError}),he={entities:Bw({axios:j,appId:l,getSocket:k}),integrations:Vw(j,l),connectors:QM(j,l),auth:ne,functions:$w(F,l,{getAuthHeaders:()=>{const J={},ee=d||vs();return ee&&(J.Authorization=`Bearer ${ee}`),J},baseURL:(n=F.defaults)===null||n===void 0?void 0:n.baseURL}),agents:zw({axios:j,getSocket:k,appId:l,serverUrl:a,token:d}),aiGateway:Hw({serverUrl:a,token:d,appId:l}),appLogs:qw(j,l),app:ZM(j,l),users:eL(j,l),analytics:TM({axiosClient:j,serverUrl:a,appId:l,userAuthModule:ne,enabled:(r=u==null?void 0:u.enabled)!==null&&r!==void 0?r:!0}),actors:ue.module,cleanup:()=>{he.analytics.cleanup(),ue.closeAll(),S&&S.disconnect()}},ae={entities:Bw({axios:O,appId:l,getSocket:k}),integrations:Vw(O,l),sso:HM(O,l),connectors:KM(O,l),functions:$w(H,l,{getAuthHeaders:()=>{const J={};return h&&(J.Authorization=`Bearer ${h}`),J},baseURL:(o=H.defaults)===null||o===void 0?void 0:o.baseURL}),agents:zw({axios:O,getSocket:k,appId:l,serverUrl:a,token:d}),aiGateway:Hw({serverUrl:a,token:h,appId:l}),appLogs:qw(O,l),cleanup:()=>{S&&S.disconnect()}};return m&&typeof window<"u"&&setTimeout(async()=>{try{await he.auth.isAuthenticated()||he.auth.redirectToLogin(window.location.href)}catch(J){console.error("Authentication check failed:",J),he.auth.redirectToLogin(window.location.href)}},0),{...he,fetchWithAuth:XM({axios:j,serviceRoleAxios:O,appId:String(l),serverUrl:a,functionsVersion:C,platformHeaders:E}),setToken(J){he.auth.setToken(J),S&&S.updateConfig({token:J}),_.token=J},getConfig(){return{serverUrl:a,appId:l,requiresAuth:m}},get asServiceRole(){if(!h)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return ae}}}const eC=typeof window>"u",fD=eC?{localStorage:new Map}:window,Za=fD.localStorage,hD=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),no=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(eC)return t;const r=`base44_${hD(e)}`,o=new URLSearchParams(window.location.search),a=o.get(e);if(n){o.delete(e);const u=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,u)}if(a)return Za.setItem(r,a),a;if(t)return Za.setItem(r,t),t;const l=Za.getItem(r);return l||null},pD=()=>(no("clear_access_token")==="true"&&(Za.removeItem("base44_access_token"),Za.removeItem("token")),{appId:no("app_id",{defaultValue:"69bb308266591730c22b3141"}),token:no("access_token",{removeFromUrl:!0}),fromUrl:no("from_url",{defaultValue:window.location.href}),functionsVersion:no("functions_version",{defaultValue:"prod"}),appBaseUrl:no("app_base_url",{defaultValue:void 0})}),Ka={...pD()},{appId:mD,token:gD,functionsVersion:yD,appBaseUrl:vD}=Ka,Oe=dD({appId:mD,token:gD,functionsVersion:yD,serverUrl:"",requiresAuth:!1,appBaseUrl:vD});function xD({}){var o;const t=ki().pathname.substring(1),{data:n,isFetched:r}=jr({queryKey:["user"],queryFn:async()=>{try{return{user:await Oe.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return p.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-background",children:p.jsx("div",{className:"max-w-md w-full",children:p.jsxs("div",{className:"text-center space-y-6",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("h1",{className:"text-7xl font-light text-muted-foreground
351/30",children:"404"}),p.jsx("div",{className:"h-0.5 w-16 bg-border mx-auto"})]}),p.jsxs("div",{className:"space-y-3",children:[p.jsx("h2",{className:"text-2xl font-medium text-foreground",children:"Page Not Found"}),p.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["The page ",p.jsxs("span",{className:"font-medium text-foreground",children:['"',t,'"']})," could not be found."]})]}),r&&n.isAuthenticated&&((o=n.user)==null?void 0:o.role)==="admin"&&p.jsx("div",{className:"mt-8 p-4 bg-card rounded-lg border border-border",children:p.jsxs("div",{className:"flex items-start space-x-3",children:[p.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-primary/10 flex items-center justify-center mt-0.5",children:p.jsx("div",{className:"w-2 h-2 rounded-full bg-primary"})}),p.jsxs("div",{className:"text-left space-y-1",children:[p.jsx("p",{className:"text-sm font-medium text-foreground",children:"Admin Note"}),p.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),p.jsx("div",{className:"pt-6",children:p.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-primary-foreground bg-primary rounded-lg hover:opacity-90 transition-colors duration-200",children:[p.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const tC=w.createContext(),wD=({children:e})=>{const[t,n]=w.useState(null),[r,o]=w.useState(!1),[a,l]=w.useState(!0),[u,d]=w.useState(!0),[h,m]=w.useState(null),[g,v]=w.useState(null);w.useEffect(()=>{C()},[]);const C=async()=>{var S,k;try{d(!0),m(null);const P=ao({baseURL:"/api/apps/public",headers:{"X-App-Id":Ka.appId},token:Ka.token,interceptResponses:!0});try{const T=await P.get(`/prod/public-settings/by-id/${Ka.appId}`);v(T),Ka.token?await E():(l(!1),o(!1)),d(!1)}catch(T){if(console.error("App state check failed:",T),T.status===403&&((k=(S=T.data)==null?void 0:S.extra_data)!=null&&k.reason)){const j=T.data.extra_data.reason;j==="auth_required"?l(!1):m(j==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:j,message:T.message})}else m({type:"unknown",message:T.message||"Failed to load app"});d(!1),l(!1)}}catch(P){console.error("Unexpected error:",P),m({type:"unknown",message:P.message||"An unexpected error occurred"}),d(!1),l(!1)}},E=async()=>{try{l(!0);const S=await Oe.auth.me();n(S),o(!0),l(!1)}catch(S){console.error("User auth check failed:",S),l(!1),o(!1),(S.status===401||S.status===403)&&m({type:"auth_required",message:"Authentication required"})}},b=(S=!0)=>{n(null),o(!1),S?Oe.auth.logout(window.location.href):Oe.auth.logout()},_=()=>{Oe.auth.redirectToLogin(window.location.href)};return p.jsx(tC.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:a,isLoadingPublicSettings:u,authError:h,appPublicSettings:g,logout:b,navigateToLogin:_,checkAppState:C},children:e})},Pi=()=>{const e=w.useContext(tC);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},bD=()=>p.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:p.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:p.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),p.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),p.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),p.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[p.jsx("p",{children:"If you believe this is an error, you can:"}),p.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[p.jsx("li",{children:"Verify you are logged in with the correct account"}),p.jsx("li",{children:"Contact the app administrator for access"}),p.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}
vendor: 17,860 bytes, lines 351-359
351),Im=w.createContext({});function Fm(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const rd=w.createContext(null),Bm=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class SD extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function CD({children:e,isPresent:t}){const n=w.useId(),r=w.useRef(null),o=w.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=w.useContext(Bm);return w.useInsertionEffect(()=>{const{width:l,height:u,top:d,left:h}=o.current;if(t||!r.current||!l||!u)return;r.current.dataset.motionPopId=n;const m=document.createElement("style");return a&&(m.nonce=a),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(` 352 [data-motion-pop-id="${n}"] { 353 position: absolute !important; 354 width: ${l}px !important; 355 height: ${u}px !important; 356 top: ${d}px !important; 357 left: ${h}px !important; 358 } 359 `),()=>{document.head.removeChild(m)}},[t]),p.jsx(SD,{isPresent:t,childRef:r,sizeRef:o,children:w.cloneElement(e,{ref:r})})}const ED=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:a,mode:l})=>{const u=Fm(_D),d=w.useId(),h=w.useCallback(g=>{u.set(g,!0);for(const v of u.values())if(!v)return;r&&r()},[u,r]),m=w.useMemo(()=>({id:d,initial:t,isPresent:n,custom:o,onExitComplete:h,register:g=>(u.set(g,!1),()=>u.delete(g))}),a?[Math.random(),h]:[n,h]);return w.useMemo(()=>{u.forEach((g,v)=>u.set(v,!1))},[n]),w.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),l==="popLayout"&&(e=p.jsx(CD,{isPresent:n,children:e})),p.jsx(rd.Provider,{value:m,children:e})};function _D(){return new Map}function nC(e=!0){const t=w.useContext(rd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,a=w.useId();w.useEffect(()=>{e&&o(a)},[e]);const l=w.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,l]:[!0]}const eu=e=>e.key||"";function e0(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const Um=typeof window<"u",rC=Um?w.useLayoutEffect:w.useEffect,Vm=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:a="sync",propagate:l=!1})=>{const[u,d]=nC(l),h=w.useMemo(()=>e0(e),[e]),m=l&&!u?[]:h.map(eu),g=w.useRef(!0),v=w.useRef(h),C=Fm(()=>new Map),[E,b]=w.useState(h),[_,S]=w.useState(h);rC(()=>{g.current=!1,v.current=h;for(let T=0;T<_.length;T++){const j=eu(_[T]);m.includes(j)?C.delete(j):C.get(j)!==!0&&C.set(j,!1)}},[_,m.length,m.join("-")]);const k=[];if(h!==E){let T=[...h];for(let j=0;j<_.length;j++){const F=_[j],U=eu(F);m.includes(U)||(T.splice(j,0,F),k.push(F))}a==="wait"&&k.length&&(T=k),S(e0(T)),b(h);return}const{forceRender:P}=w.useContext(Im);return p.jsx(p.Fragment,{children:_.map(T=>{const j=eu(T),F=l&&!u?!1:h===_||m.includes(j),U=()=>{if(C.has(j))C.set(j,!0);else return;let O=!0;C.forEach(H=>{H||(O=!1)}),O&&(P==null||P(),S(v.current),l&&(d==null||d()),r&&r())};return p.jsx(ED,{isPresent:F,initial:!g.current||n?void 0:!1,custom:F?void 0:t,presenceAffectsLayout:o,mode:a,onExitComplete:F?void 0:U,children:T},j)})})},fn=e=>e;let sC=fn;function $m(e){let t;return()=>(t===void 0&&(t=e()),t)}const jo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Pr=e=>e*1e3,Tr=e=>e/1e3,ND={useManualTiming:!1};function kD(e){let t=new Set,n=new Set,r=!1,o=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function u(h){a.has(h)&&(d.schedule(h),e()),h(l)}const d={schedule:(h,m=!1,g=!1)=>{const C=g&&r?t:n;return m&&a.add(h),C.has(h)||C.add(h),h},cancel:h=>{n.delete(h),a.delete(h)},process:h=>{if(l=h,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,o&&(o=!1,d.process(h))}};return d}const tu=["read","resolveKeyframes","update","preRender","render","postRender"],PD=40;function iC(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,l=tu.reduce((S,k)=>(S[k]=kD(a),S),{}),{read:u,resolveKeyframes:d,update:h,preRender:m,render:g,postRender:v}=l,C=()=>{const S=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(S-o.timestamp,PD),1),o.timestamp=S,o.isProcessing=!0,u.process(o),d.process(o),h.process(o),m.process(o),g.process(o),v.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(C))},E=()=>{n=!0,r=!0,o.isProcessing||e(C)};return{schedule:tu.reduce((S,k)=>{const P=l[k];return S[k]=(T,j=!1,F=!1)=>(n||E(),P.schedule(T,j,F)),S},{}),cancel:S=>{for(let k=0;k<tu.length;k++)l[tu[k]].cancel(S)},state:o,steps:l}}const{schedule:nt,cancel:_s,state:Ot,steps:Ah}=iC(typeof requestAnimationFrame<"u"?requestAnimationFrame:fn,!0),oC=w.createContext({strict:!1}),t0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ao={};for(const e in t0)Ao[e]={isEnabled:t=>t0[e].some(n=>!!t[n])};function TD(e){for(const t in e)Ao[t]={...Ao[t],...e[t]}}const RD=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Mu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||RD.has(e)}let aC=e=>!Mu(e);function jD(e){e&&(aC=t=>t.startsWith("on")?!Mu(t):e(t))}try{jD(require("@emotion/is-prop-valid").default)}catch{}function AD(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(aC(o)||n===!0&&Mu(o)||!t&&!Mu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function OD(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const sd=w.createContext({});function ul(e){return typeof e=="string"||Array.isArray(e)}function id(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const zm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wm=["initial",...zm];function od(e){return id(e.animate)||Wm.some(t=>ul(e[t]))}function lC(e){return!!(od(e)||e.variants)}function MD(e,t){if(od(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ul(n)?n:void 0,animate:ul(r)?r:void 0}}return e.inherit!==!1?t:{}}function LD(e){const{initial:t,animate:n}=MD(e,w.useContext(sd));return w.useMemo(()=>({initial:t,animate:n}),[n0(t),n0(n)])}function n0(e){return Array.isArray(e)?e.join(" "):e}const DD=Symbol.for("motionComponentSymbol");function uo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ID(e,t,n){return w.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):uo(n)&&(n.current=r))},[t])}const Hm=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),FD="framerAppearId",cC="data-"+Hm(FD),{schedule:qm}=iC(queueMicrotask,!1),uC=w.createContext({});function BD(e,t,n,r,o){var a,l;const{visualElement:u}=w.useContext(sd),d=w.useContext(oC),h=w.useContext(rd),m=w.useContext(Bm).reducedMotion,g=w.useRef(null);r=r||d.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:u,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m}));const v=g.current,C=w.useContext(uC);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&UD(g.current,n,o,C);const E=w.useRef(!1);w.useInsertionEffect(()=>{v&&E.current&&v.update(n,h)});const b=n[cC],_=w.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,b)));return rC(()=>{v&&(E.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),qm.render(v.render),_.current&&v.animationState&&v.animationState.animateChanges())}),w.useEffect(()=>{v&&(!_.current&&v.animationState&&v.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,b)}),_.current=!1))}),v}function UD(e,t,n,r){const{layoutId:o,layout:a,drag:l,dragConstraints:u,layoutScroll:d,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:dC(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!l||u&&uo(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:d,layoutRoot:h})}function dC(e){if(e)return e.options.allowProjection!==!1?e.projection:dC(e.parent)}function VD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var a,l;e&&TD(e);function u(h,m){let g;const v={...w.useContext(Bm),...h,layoutId:$D(h)},{isStatic:C}=v,E=LD(h),b=r(h,C);if(!C&&Um){zD();const _=WD(v);g=_.MeasureLayout,E.visualElement=BD(o,b,v,t,_.ProjectionNode)}return p.jsxs(sd.Provider,{value:E,children:[g&&E.visualElement?p.jsx(g,{visualElement:E.visualElement,...v}):null,n(o,h,ID(b,E.visualElement,m),b,C,E.visualElement)]})}u.displayName=`motion.${typeof o=="string"?o:`create(${(l=(a=o.displayName)!==null&&a!==void 0?a:o.name)!==null&&l!==void 0?l:""})`}`;const d=w.forwardRef(u);return d[DD]=o,d}function $D({layoutId:e}){const t=w.useContext(Im).id;return t&&e!==void 0?t+"-"+e:e}function zD(e,t){w.useContext(oC).strict}function WD(e){const{drag:t,layout:n}=Ao;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const HD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Km(e){return typeof e!="string"||e.includes("-")?!1:!!(HD.indexOf(e)>-1||/[A-Z]/u.test(e))}function r0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Gm(e,t,n,r){if(typeof t=="function"){const[o,a]=r0(r);t=t(n!==void 0?n:e.custom,o,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,a]=r0(r);t=t(n!==void 0?n:e.custom,o,a)}return t}const Rp=e=>Array.isArray(e),qD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),KD=e=>Rp(e)?e[e.length-1]||0:e,Vt=e=>!!(e&&e.getVelocity);function bu(e){const t=Vt(e)?e.get():e;return qD(t)?t.toValue():t}function GD({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,a){const l={latestValues:QD(r,o,a,e),renderState:t()};return n&&(l.onMount=u=>n({props:r,current:u,...l}),l.onUpdate=u=>n(u)),l}const fC=e=>(t,n)=>{const r=w.useContext(sd),o=w.useContext(rd),a=()=>GD(e,t,r,o);return n?a():Fm(a)};function QD(e,t,n,r){const o={},a=r(e,{});for(const v in a)o[v]=bu(a[v]);let{initial:l,animate:u}=e;const d=od(e),h=lC(e);t&&h&&!d&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const g=m?u:l;if(g&&typeof g!="boolean"&&!id(g)){const v=Array.isArray(g)?g:[g];for(let C=0;C<v.length;C++){const E=Gm(e,v[C]);if(E){const{transitionEnd:b,transition:_,...S}=E;for(const k in S){let P=S[k];if(Array.isArray(P)){const T=m?P.length-1:0;P=P[T]}P!==null&&(o[k]=P)}for(const k in b)o[k]=b[k]}}}return o}const zo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ti=new Set(zo),hC=e=>t=>typeof t=="string"&&t.startsWith(e),pC=hC("--"),YD=hC("var(--"),Qm=e=>YD(e)?XD.test(e.split("/*")[0].trim()):!1,XD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mC=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ar=(e,t,n)=>n>t?t:n<e?e:n,Wo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},dl={...Wo,transform:e=>Ar(0,1,e)},nu={...Wo,default:1},Pl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),os=Pl("deg"),or=Pl("%"),_e=Pl("px"),JD=Pl("vh"),ZD=Pl("vw"),s0={...or,parse:e=>or.parse(e)/100,transform:e=>or.transform(e*100)},eI={borderWidth:_e,borderTopWidth:_e,borderRightWidth:_e,borderBottomWidth:_e,borderLeftWidth:_e,borderRadius:_e,radius:_e,borderTopLeftRadius:_e,borderTopRightRadius:_e,borderBottomRightRadius:_e,borderBottomLeftRadius:_e,width:_e,maxWidth:_e,height:_e,maxHeight:_e,top:_e,right:_e,bottom:_e,left:_e,padding:_e,paddingTop:_e,paddingRight:_e,paddingBottom:_e,paddingLeft:_e,margin:_e,marginTop:_e,marginRight:_e,marginBottom:_e,marginLeft:_e,backgroundPositionX:_e,backgroundPositionY:_e},tI={rotate:os,rotateX:os,rotateY:os,rotateZ:os,scale:nu,scaleX:nu,scaleY:nu,scaleZ:nu,skew:os,skewX:os,skewY:os,distance:_e,translateX:_e,translateY:_e,translateZ:_e,x:_e,y:_e,z:_e,perspective:_e,transformPerspective:_e,opacity:dl,originX:s0,originY:s0,originZ:_e},i0={...Wo,transform:Math.round},Ym={...eI,...tI,zIndex:i0,size:_e,fillOpacity:dl,strokeOpacity:dl,numOctaves:i0},nI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rI=zo.length;function sI(e,t,n){let r="",o=!0;for(let a=0;a<rI;a++){const l=zo[a],u=e[l];if(u===void 0)continue;let d=!0;if(typeof u=="number"?d=u===(l.startsWith("scale")?1:0):d=parseFloat(u)===0,!d||n){const h=mC(u,Ym[l]);if(!d){o=!1;const m=nI[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Xm(e,t,n){const{style:r,vars:o,transformOrigin:a}=e;let l=!1,u=!1;for(const d in t){const h=t[d];if(Ti.has(d)){l=!0;continue}else if(pC(d)){o[d]=h;continue}else{const m=mC(h,Ym[d]);d.startsWith("origin")?(u=!0,a[d]=m):r[d]=m}}if(t.transform||(l||n?r.transform=sI(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:d="50%",originY:h="50%",originZ:m=0}=a;r.transformOrigin=`${d} ${h} ${m}`}}const iI={offset:"stroke-dashoffset",array:"stroke-dasharray"},oI={offset:"strokeDashoffset",array:"strokeDasharray"};function aI(e,t,n=1,r=0,o=!0){e.pathLength=1;const a=o?iI:oI;e[a.offset]=_e.transform(-r);const l=_e.transform(t),u=_e.transform(n);e[a.array]=`${l} ${u}`}function o0(e,t,n){return typeof e=="string"?e:_e.transform(t+n*e)}function lI(e,t,n){const r=o0(t,e.x,e.width),o=o0(n,e.y,e.height);return`${r} ${o}`}function Jm(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:a,pathLength:l,pathSpacing:u=1,pathOffset:d=0,...h},m,g){if(Xm(e,h,g),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:C,dimensions:E}=e;v.transform&&(E&&(C.transform=v.transform),delete v.transform),E&&(o!==void 0||a!==void 0||C.transform)&&(C.transformOrigin=lI(E,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),l!==void 0&&aI(v,l,u,d,!1)}const Zm=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),gC=()=>({...Zm(),attrs:{}}),eg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yC(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const vC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function xC(e,t,n,r){yC(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(vC.has(o)?o:Hm(o),t.attrs[o])}const Lu={};function cI(e){Object.assign(Lu,e)}function wC(e,{layout:t,layoutId:n}){return Ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Lu[e]||e==="opacity")}function tg(e,t,n){var r;const{style:o}=e,a={};for(const l in o)(Vt(o[l])||t.style&&Vt(t.style[l])||wC(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[l]=o[l]);return a}function bC(e,t,n){const r=tg(e,t,n);for(const o in e)if(Vt(e[o])||Vt(t[o])){const a=zo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[a]=e[o]}return r}function uI(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const a0=["x","y","width","height","cx","cy","r"],dI={useVisualState:fC({scrapeMotionValuesFromProps:bC,createRenderState:gC,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let a=!!e.drag;if(!a){for(const u in o)if(Ti.has(u)){a=!0;break}}if(!a)return;let l=!t;if(t)for(let u=0;u<a0.length;u++){const d=a0[u];e[d]!==t[d]&&(l=!0)}l&&nt.read(()=>{uI(n,r),nt.render(()=>{Jm(r,o,eg(n.tagName),e.transformTemplate),xC(n,r)})})}})},fI={useVisualState:fC({scrapeMotionValuesFromProps:tg,createRenderState:Zm})};function SC(e,t,n){for(const r in t)!Vt(t[r])&&!wC(r,n)&&(e[r]=t[r])}function hI({transformTemplate:e},t){return w.useMemo(()=>{const n=Zm();return Xm(n,t,e),Object.assign({},n.vars,n.style)},[t])}function pI(e,t){const n=e.style||{},r={};return SC(r,n,e),Object.assign(r,hI(e,t)),r}function mI(e,t){const n={},r=pI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
359`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function gI(e,t,n,r){const o=w.useMemo(()=>{const a=gC();return Jm(a,t,eg(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};SC(a,e.style,e),o.style={...a,...o.style}}return o}function yI(e=!1){return(n,r,o,{latestValues:a},l)=>{const d=(Km(n)?gI:mI)(r,a,l,n),h=AD(r,typeof n=="string",e),m=n!==w.Fragment?{...h,...d,ref:o}:{},{children:g}=r,v=w.useMemo(()=>Vt(g)?g.get():g,[g]);return w.createElement(n,{...m,children:v})}}function vI(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const l={...Km(r)?dI:fI,preloadedFeatures:e,useRender:yI(o),createVisualElement:t,Component:r};return VD(l)}}function CC(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function ad(e,t,n){const r=e.getProps();return Gm(r,t,n!==void 0?n:r.custom,e)}const xI=$m(()=>window.ScrollTimeline!==void 0);class wI{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(o=>{if(xI()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,a)=>{o&&o(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class bI extends wI{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function ng(e,t){return e?e[t]||e.default||e:void 0}const jp=2e4;function EC(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<jp;)t+=n,r=e.next(t);return t>=jp?1/0:t}function rg(e){return typeof e=="function"}function l0(e,t){e.timeline=t,e.onfinish=null}const sg=e=>Array.isArray(e)&&typeof e[0]=="number",SI={linearEasing:void 0};function CI(e,t){const n=$m(e);return()=>{var r;return(r=SI[t])!==null&&r!==void 0?r:n()}}const Du=CI(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 18,771 bytes, line 359
359,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_C=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let a=0;a<o;a++)r+=e(jo(0,o-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function NC(e){return!!(typeof e=="function"&&Du()||!e||typeof e=="string"&&(e in Ap||Du())||sg(e)||Array.isArray(e)&&e.every(NC))}const Ga=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ap={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ga([0,.65,.55,1]),circOut:Ga([.55,0,1,.45]),backIn:Ga([.31,.01,.66,-.59]),backOut:Ga([.33,1.53,.69,.99])};function kC(e,t){if(e)return typeof e=="function"&&Du()?_C(e,t):sg(e)?Ga(e):Array.isArray(e)?e.map(n=>kC(n,t)||Ap.easeOut):Ap[e]}const Fn={x:!1,y:!1};function PC(){return Fn.x||Fn.y}function EI(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const a=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function TC(e,t){const n=EI(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function c0(e){return t=>{t.pointerType==="touch"||PC()||e(t)}}function _I(e,t,n={}){const[r,o,a]=TC(e,n),l=c0(u=>{const{target:d}=u,h=t(u);if(typeof h!="function"||!d)return;const m=c0(g=>{h(g),d.removeEventListener("pointerleave",m)});d.addEventListener("pointerleave",m,o)});return r.forEach(u=>{u.addEventListener("pointerenter",l,o)}),a}const RC=(e,t)=>t?e===t?!0:RC(e,t.parentElement):!1,ig=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,NI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function kI(e){return NI.has(e.tagName)||e.tabIndex!==-1}const Qa=new WeakSet;function u0(e){return t=>{t.key==="Enter"&&e(t)}}function Oh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const PI=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=u0(()=>{if(Qa.has(n))return;Oh(n,"down");const o=u0(()=>{Oh(n,"up")}),a=()=>Oh(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function d0(e){return ig(e)&&!PC()}function TI(e,t,n={}){const[r,o,a]=TC(e,n),l=u=>{const d=u.currentTarget;if(!d0(u)||Qa.has(d))return;Qa.add(d);const h=t(u),m=(C,E)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),!(!d0(C)||!Qa.has(d))&&(Qa.delete(d),typeof h=="function"&&h(C,{success:E}))},g=C=>{m(C,n.useGlobalTarget||RC(d,C.target))},v=C=>{m(C,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",v,o)};return r.forEach(u=>{!kI(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,o),u.addEventListener("focus",h=>PI(h,o),o)}),a}function RI(e){return e==="x"||e==="y"?Fn[e]?null:(Fn[e]=!0,()=>{Fn[e]=!1}):Fn.x||Fn.y?null:(Fn.x=Fn.y=!0,()=>{Fn.x=Fn.y=!1})}const jC=new Set(["width","height","top","left","right","bottom",...zo]);let Su;function jI(){Su=void 0}const ar={now:()=>(Su===void 0&&ar.set(Ot.isProcessing||ND.useManualTiming?Ot.timestamp:performance.now()),Su),set:e=>{Su=e,queueMicrotask(jI)}};function og(e,t){e.indexOf(t)===-1&&e.push(t)}function ag(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class lg{constructor(){this.subscriptions=[]}add(t){return og(this.subscriptions,t),()=>ag(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let a=0;a<o;a++){const l=this.subscriptions[a];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function AC(e,t){return t?e*(1e3/t):0}const f0=30,AI=e=>!isNaN(parseFloat(e));class OI{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const a=ar.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ar.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=AI(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new lg);const r=this.events[t].add(n);return t==="change"?()=>{r(),nt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ar.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>f0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,f0);return AC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fl(e,t){return new OI(e,t)}function MI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fl(n))}function LI(e,t){const n=ad(e,t);let{transitionEnd:r={},transition:o={},...a}=n||{};a={...a,...r};for(const l in a){const u=KD(a[l]);MI(e,l,u)}}function DI(e){return!!(Vt(e)&&e.add)}function Op(e,t){const n=e.getValue("willChange");if(DI(n))return n.add(t)}function OC(e){return e.props[cC]}const MC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,II=1e-7,FI=12;function BI(e,t,n,r,o){let a,l,u=0;do l=t+(n-t)/2,a=MC(l,r,o)-e,a>0?n=l:t=l;while(Math.abs(a)>II&&++u<FI);return l}function Tl(e,t,n,r){if(e===t&&n===r)return fn;const o=a=>BI(a,0,1,e,n);return a=>a===0||a===1?a:MC(o(a),t,r)}const LC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,DC=e=>t=>1-e(1-t),IC=Tl(.33,1.53,.69,.99),cg=DC(IC),FC=LC(cg),BC=e=>(e*=2)<1?.5*cg(e):.5*(2-Math.pow(2,-10*(e-1))),ug=e=>1-Math.sin(Math.acos(e)),UC=DC(ug),VC=LC(ug),$C=e=>/^0[^.\s]+$/u.test(e);function UI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$C(e):!0}const el=e=>Math.round(e*1e5)/1e5,dg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VI(e){return e==null}const $I=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fg=(e,t)=>n=>!!(typeof n=="string"&&$I.test(n)&&n.startsWith(e)||t&&!VI(n)&&Object.prototype.hasOwnProperty.call(n,t)),zC=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,a,l,u]=r.match(dg);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},zI=e=>Ar(0,255,e),Mh={...Wo,transform:e=>Math.round(zI(e))},ri={test:fg("rgb","red"),parse:zC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Mh.transform(e)+", "+Mh.transform(t)+", "+Mh.transform(n)+", "+el(dl.transform(r))+")"};function WI(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Mp={test:fg("#"),parse:WI,transform:ri.transform},fo={test:fg("hsl","hue"),parse:zC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+or.transform(el(t))+", "+or.transform(el(n))+", "+el(dl.transform(r))+")"},Ut={test:e=>ri.test(e)||Mp.test(e)||fo.test(e),parse:e=>ri.test(e)?ri.parse(e):fo.test(e)?fo.parse(e):Mp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ri.transform(e):fo.transform(e)},HI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(dg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(HI))===null||n===void 0?void 0:n.length)||0)>0}const WC="number",HC="color",KI="var",GI="var(",h0="${}",QI=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function hl(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let a=0;const u=t.replace(QI,d=>(Ut.test(d)?(r.color.push(a),o.push(HC),n.push(Ut.parse(d))):d.startsWith(GI)?(r.var.push(a),o.push(KI),n.push(d)):(r.number.push(a),o.push(WC),n.push(parseFloat(d))),++a,h0)).split(h0);return{values:n,split:u,indexes:r,types:o}}function qC(e){return hl(e).values}function KC(e){const{split:t,types:n}=hl(e),r=t.length;return o=>{let a="";for(let l=0;l<r;l++)if(a+=t[l],o[l]!==void 0){const u=n[l];u===WC?a+=el(o[l]):u===HC?a+=Ut.transform(o[l]):a+=o[l]}return a}}const YI=e=>typeof e=="number"?0:e;function XI(e){const t=qC(e);return KC(e)(t.map(YI))}const Ns={test:qI,parse:qC,createTransformer:KC,getAnimatableNone:XI},JI=new Set(["brightness","contrast","saturate","opacity"]);function ZI(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(dg)||[];if(!r)return e;const o=n.replace(r,"");let a=JI.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const e4=/\b([a-z-]*)\(.*?\)/gu,Lp={...Ns,getAnimatableNone:e=>{const t=e.match(e4);return t?t.map(ZI).join(" "):e}},t4={...Ym,color:Ut,backgroundColor:Ut,outlineColor:Ut,fill:Ut,stroke:Ut,borderColor:Ut,borderTopColor:Ut,borderRightColor:Ut,borderBottomColor:Ut,borderLeftColor:Ut,filter:Lp,WebkitFilter:Lp},hg=e=>t4[e];function GC(e,t){let n=hg(e);return n!==Lp&&(n=Ns),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const n4=new Set(["auto","none","0"]);function r4(e,t,n){let r=0,o;for(;r<e.length&&!o;){const a=e[r];typeof a=="string"&&!n4.has(a)&&hl(a).values.length&&(o=e[r]),r++}if(o&&n)for(const a of t)e[a]=GC(n,o)}const p0=e=>e===Wo||e===_e,m0=(e,t)=>parseFloat(e.split(", ")[t]),g0=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return m0(o[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?m0(a[1],e):0}},s4=new Set(["x","y","z"]),i4=zo.filter(e=>!s4.has(e));function o4(e){const t=[];return i4.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Oo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:g0(4,13),y:g0(5,14)};Oo.translateX=Oo.x;Oo.translateY=Oo.y;const pi=new Set;let Dp=!1,Ip=!1;function QC(){if(Ip){const e=Array.from(pi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=o4(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([a,l])=>{var u;(u=r.getValue(a))===null||u===void 0||u.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ip=!1,Dp=!1,pi.forEach(e=>e.complete()),pi.clear()}function YC(){pi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ip=!0)})}function a4(){YC(),QC()}class pg{constructor(t,n,r,o,a,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=a,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(pi.add(this),Dp||(Dp=!0,nt.read(YC),nt.resolveKeyframes(QC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const l=o==null?void 0:o.get(),u=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const d=r.readValue(n,u);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=u),o&&l===void 0&&o.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),pi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,pi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const XC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),l4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function c4(e){const t=l4.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function JC(e,t,n=1){const[r,o]=c4(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const l=a.trim();return XC(l)?parseFloat(l):l}return Qm(o)?JC(o,t,n+1):o}const ZC=e=>t=>t.test(e),u4={test:e=>e==="auto",parse:e=>e},eE=[Wo,_e,or,os,ZD,JD,u4],y0=e=>eE.find(ZC(e));class tE extends pg{constructor(t,n,r,o,a){super(t,n,r,o,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let h=t[d];if(typeof h=="string"&&(h=h.trim(),Qm(h))){const m=JC(h,n.current);m!==void 0&&(t[d]=m),d===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!jC.has(r)||t.length!==2)return;const[o,a]=t,l=y0(o),u=y0(a);if(l!==u)if(p0(l)&&p0(u))for(let d=0;d<t.length;d++){const h=t[d];typeof h=="string"&&(t[d]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)UI(t[o])&&r.push(o);r.length&&r4(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Oo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const l=o.length-1,u=o[l];o[l]=Oo[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([d,h])=>{n.getValue(d).set(h)}),this.resolveNoneKeyframes()}}const v0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ns.test(e)||e==="0")&&!e.startsWith("url("));function d4(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function f4(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],l=v0(o,t),u=v0(a,t);return!l||!u?!1:d4(e)||(n==="spring"||rg(n))&&r}const h4=e=>e!==null;function ld(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(h4),a=t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const p4=40;class nE{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:l="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ar.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:a,repeatType:l,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>p4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&a4(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ar.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:a,delay:l,onComplete:u,onUpdate:d,isGenerator:h}=this.options;if(!h&&!f4(t,r,o,a))if(l)this.options.duration=0;else{d&&d(ld(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ot=(e,t,n)=>e+(t-e)*n;function Lh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function m4({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,a=0,l=0;if(!t)o=a=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,d=2*n-u;o=Lh(d,u,e+1/3),a=Lh(d,u,e),l=Lh(d,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(l*255),alpha:r}}function Iu(e,t){return n=>n>0?t:e}const Dh=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},g4=[Mp,ri,fo],y4=e=>g4.find(t=>t.test(e));function x0(e){const t=y4(e);if(!t)return!1;let n=t.parse(e);return t===fo&&(n=m4(n)),n}const w0=(e,t)=>{const n=x0(e),r=x0(t);if(!n||!r)return Iu(e,t);const o={...n};return a=>(o.red=Dh(n.red,r.red,a),o.green=Dh(n.green,r.green,a),o.blue=Dh(n.blue,r.blue,a),o.alpha=ot(n.alpha,r.alpha,a),ri.transform(o))},v4=(e,t)=>n=>t(e(n)),Rl=(...e)=>e.reduce(v4),Fp=new Set(["none","hidden"]);function x4(e,t){return Fp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function w4(e,t){return n=>ot(e,t,n)}function mg(e){return typeof e=="number"?w4:typeof e=="string"?Qm(e)?Iu:Ut.test(e)?w0:C4:Array.isArray(e)?rE:typeof e=="object"?Ut.test(e)?w0:b4:Iu}function rE(e,t){const n=[...e],r=n.length,o=e.map((a,l)=>mg(a)(a,t[l]));return a=>{for(let l=0;l<r;l++)n[l]=o[l](a);return n}}function b4(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=mg(e[o])(e[o],t[o]));return o=>{for(const a in r)n[a]=r[a](o);return n}}function S4(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],u=e.indexes[l][o[l]],d=(n=e.values[u])!==null&&n!==void 0?n:0;r[a]=d,o[l]++}return r}const C4=(e,t)=>
vendor: 9,163 bytes, line 359
359{const n=Ns.createTransformer(t),r=hl(e),o=hl(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Fp.has(e)&&!o.values.length||Fp.has(t)&&!r.values.length?x4(e,t):Rl(rE(S4(r,o),o.values),n):Iu(e,t)};function sE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):mg(e)(e,t)}const E4=5;function iE(e,t,n){const r=Math.max(t-E4,0);return AC(n-e(r),t-r)}const ut={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ih=.001;function _4({duration:e=ut.duration,bounce:t=ut.bounce,velocity:n=ut.velocity,mass:r=ut.mass}){let o,a,l=1-t;l=Ar(ut.minDamping,ut.maxDamping,l),e=Ar(ut.minDuration,ut.maxDuration,Tr(e)),l<1?(o=h=>{const m=h*l,g=m*e,v=m-n,C=Bp(h,l),E=Math.exp(-g);return Ih-v/C*E},a=h=>{const g=h*l*e,v=g*n+n,C=Math.pow(l,2)*Math.pow(h,2)*e,E=Math.exp(-g),b=Bp(Math.pow(h,2),l);return(-o(h)+Ih>0?-1:1)*((v-C)*E)/b}):(o=h=>{const m=Math.exp(-h*e),g=(h-n)*e+1;return-Ih+m*g},a=h=>{const m=Math.exp(-h*e),g=(n-h)*(e*e);return m*g});const u=5/e,d=k4(o,a,u);if(e=Pr(e),isNaN(d))return{stiffness:ut.stiffness,damping:ut.damping,duration:e};{const h=Math.pow(d,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const N4=12;function k4(e,t,n){let r=n;for(let o=1;o<N4;o++)r=r-e(r)/t(r);return r}function Bp(e,t){return e*Math.sqrt(1-t*t)}const P4=["duration","bounce"],T4=["stiffness","damping","mass"];function b0(e,t){return t.some(n=>e[n]!==void 0)}function R4(e){let t={velocity:ut.velocity,stiffness:ut.stiffness,damping:ut.damping,mass:ut.mass,isResolvedFromDuration:!1,...e};if(!b0(e,T4)&&b0(e,P4))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,a=2*Ar(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ut.mass,stiffness:o,damping:a}}else{const n=_4(e);t={...t,...n,mass:ut.mass},t.isResolvedFromDuration=!0}return t}function oE(e=ut.visualDuration,t=ut.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const a=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:d,damping:h,mass:m,duration:g,velocity:v,isResolvedFromDuration:C}=R4({...n,velocity:-Tr(n.velocity||0)}),E=v||0,b=h/(2*Math.sqrt(d*m)),_=l-a,S=Tr(Math.sqrt(d/m)),k=Math.abs(_)<5;r||(r=k?ut.restSpeed.granular:ut.restSpeed.default),o||(o=k?ut.restDelta.granular:ut.restDelta.default);let P;if(b<1){const j=Bp(S,b);P=F=>{const U=Math.exp(-b*S*F);return l-U*((E+b*S*_)/j*Math.sin(j*F)+_*Math.cos(j*F))}}else if(b===1)P=j=>l-Math.exp(-S*j)*(_+(E+S*_)*j);else{const j=S*Math.sqrt(b*b-1);P=F=>{const U=Math.exp(-b*S*F),O=Math.min(j*F,300);return l-U*((E+b*S*_)*Math.sinh(O)+j*_*Math.cosh(O))/j}}const T={calculatedDuration:C&&g||null,next:j=>{const F=P(j);if(C)u.done=j>=g;else{let U=0;b<1&&(U=j===0?Pr(E):iE(P,j,F));const O=Math.abs(U)<=r,H=Math.abs(l-F)<=o;u.done=O&&H}return u.value=u.done?l:F,u},toString:()=>{const j=Math.min(EC(T),jp),F=_C(U=>T.next(j*U).value,j,30);return j+"ms "+F}};return T}function S0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:l,min:u,max:d,restDelta:h=.5,restSpeed:m}){const g=e[0],v={done:!1,value:g},C=O=>u!==void 0&&O<u||d!==void 0&&O>d,E=O=>u===void 0?d:d===void 0||Math.abs(u-O)<Math.abs(d-O)?u:d;let b=n*t;const _=g+b,S=l===void 0?_:l(_);S!==_&&(b=S-g);const k=O=>-b*Math.exp(-O/r),P=O=>S+k(O),T=O=>{const H=k(O),X=P(O);v.done=Math.abs(H)<=h,v.value=v.done?S:X};let j,F;const U=O=>{C(v.value)&&(j=O,F=oE({keyframes:[v.value,E(v.value)],velocity:iE(P,O,v.value),damping:o,stiffness:a,restDelta:h,restSpeed:m}))};return U(0),{calculatedDuration:null,next:O=>{let H=!1;return!F&&j===void 0&&(H=!0,T(O),U(O)),j!==void 0&&O>=j?F.next(O-j):(!H&&T(O),v)}}}const j4=Tl(.42,0,1,1),A4=Tl(0,0,.58,1),aE=Tl(.42,0,.58,1),O4=e=>Array.isArray(e)&&typeof e[0]!="number",M4={linear:fn,easeIn:j4,easeInOut:aE,easeOut:A4,circIn:ug,circInOut:VC,circOut:UC,backIn:cg,backInOut:FC,backOut:IC,anticipate:BC},C0=e=>{if(sg(e)){sC(e.length===4);const[t,n,r,o]=e;return Tl(t,n,r,o)}else if(typeof e=="string")return M4[e];return e};function L4(e,t,n){const r=[],o=n||sE,a=e.length-1;for(let l=0;l<a;l++){let u=o(e[l],e[l+1]);if(t){const d=Array.isArray(t)?t[l]||fn:t;u=Rl(d,u)}r.push(u)}return r}function D4(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;if(sC(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=L4(t,r,o),d=u.length,h=m=>{if(l&&m<e[0])return t[0];let g=0;if(d>1)for(;g<e.length-2&&!(m<e[g+1]);g++);const v=jo(e[g],e[g+1],m);return u[g](v)};return n?m=>h(Ar(e[0],e[a-1],m)):h}function I4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=jo(0,t,r);e.push(ot(n,1,o))}}function F4(e){const t=[0];return I4(t,e.length-1),t}function B4(e,t){return e.map(n=>n*t)}function U4(e,t){return e.map(()=>t||aE).splice(0,e.length-1)}function Fu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=O4(r)?r.map(C0):C0(r),a={done:!1,value:t[0]},l=B4(n&&n.length===t.length?n:F4(t),e),u=D4(l,t,{ease:Array.isArray(o)?o:U4(t,o)});return{calculatedDuration:e,next:d=>(a.value=u(d),a.done=d>=e,a)}}const V4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>nt.update(t,!0),stop:()=>_s(t),now:()=>Ot.isProcessing?Ot.timestamp:ar.now()}},$4={decay:S0,inertia:S0,tween:Fu,keyframes:Fu,spring:oE},z4=e=>e/100;class gg extends nE{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:d}=this.options;d&&d()};const{name:n,motionValue:r,element:o,keyframes:a}=this.options,l=(o==null?void 0:o.KeyframeResolver)||pg,u=(d,h)=>this.onKeyframesResolved(d,h);this.resolver=new l(a,u,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:a,velocity:l=0}=this.options,u=rg(n)?n:$4[n]||Fu;let d,h;u!==Fu&&typeof t[0]!="number"&&(d=Rl(z4,sE(t[0],t[1])),t=[0,100]);const m=u({...this.options,keyframes:t});a==="mirror"&&(h=u({...this.options,keyframes:[...t].reverse(),velocity:-l})),m.calculatedDuration===null&&(m.calculatedDuration=EC(m));const{calculatedDuration:g}=m,v=g+o,C=v*(r+1)-o;return{generator:m,mirroredGenerator:h,mapPercentToKeyframes:d,calculatedDuration:g,resolvedDuration:v,totalDuration:C}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:o,generator:a,mirroredGenerator:l,mapPercentToKeyframes:u,keyframes:d,calculatedDuration:h,totalDuration:m,resolvedDuration:g}=r;if(this.startTime===null)return a.next(0);const{delay:v,repeat:C,repeatType:E,repeatDelay:b,onUpdate:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const S=this.currentTime-v*(this.speed>=0?1:-1),k=this.speed>=0?S<0:S>m;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let P=this.currentTime,T=a;if(C){const O=Math.min(this.currentTime,m)/g;let H=Math.floor(O),X=O%1;!X&&O>=1&&(X=1),X===1&&H--,H=Math.min(H,C+1),!!(H%2)&&(E==="reverse"?(X=1-X,b&&(X-=b/g)):E==="mirror"&&(T=l)),P=Ar(0,1,X)*g}const j=k?{done:!1,value:d[0]}:T.next(P);u&&(j.value=u(j.value));let{done:F}=j;!k&&h!==null&&(F=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const U=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return U&&o!==void 0&&(j.value=ld(d,this.options,o)),_&&_(j.value),U&&this.finish(),j}get duration(){const{resolved:t}=this;return t?Tr(t.calculatedDuration):0}get time(){return Tr(this.currentTime)}set time(t){t=Pr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Tr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=V4,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedProm
vendor: 53,639 bytes, line 359
359ise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const W4=new Set(["opacity","clipPath","filter","transform"]);function H4(e,t,n,{delay:r=0,duration:o=300,repeat:a=0,repeatType:l="loop",ease:u="easeInOut",times:d}={}){const h={[t]:n};d&&(h.offset=d);const m=kC(u,o);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:r,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:l==="reverse"?"alternate":"normal"})}const q4=$m(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Bu=10,K4=2e4;function G4(e){return rg(e.type)||e.type==="spring"||!NC(e.ease)}function Q4(e,t){const n=new gg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let a=0;for(;!r.done&&a<K4;)r=n.sample(a),o.push(r.value),a+=Bu;return{times:void 0,keyframes:o,duration:a-Bu,ease:"linear"}}const lE={anticipate:BC,backInOut:FC,circInOut:VC};function Y4(e){return e in lE}class E0 extends nE{constructor(t){super(t);const{name:n,motionValue:r,element:o,keyframes:a}=this.options;this.resolver=new tE(a,(l,u)=>this.onKeyframesResolved(l,u),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:a,type:l,motionValue:u,name:d,startTime:h}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof a=="string"&&Du()&&Y4(a)&&(a=lE[a]),G4(this.options)){const{onComplete:g,onUpdate:v,motionValue:C,element:E,...b}=this.options,_=Q4(t,b);t=_.keyframes,t.length===1&&(t[1]=t[0]),r=_.duration,o=_.times,a=_.ease,l="keyframes"}const m=H4(u.owner.current,d,t,{...this.options,duration:r,times:o,ease:a});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(l0(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:g}=this.options;u.set(ld(t,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:o,type:l,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Tr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Tr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Pr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return fn;const{animation:r}=n;l0(r,t)}return fn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:a,ease:l,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:m,onComplete:g,element:v,...C}=this.options,E=new gg({...C,keyframes:r,duration:o,type:a,ease:l,times:u,isGenerator:!0}),b=Pr(this.time);h.setWithVelocity(E.sample(b-Bu).value,E.sample(b).value,Bu)}const{onStop:d}=this.options;d&&d(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:a,damping:l,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:h}=n.owner.getProps();return q4()&&r&&W4.has(r)&&!d&&!h&&!o&&a!=="mirror"&&l!==0&&u!=="inertia"}}const X4={type:"spring",stiffness:500,damping:25,restSpeed:10},J4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Z4={type:"keyframes",duration:.8},eF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tF=(e,{keyframes:t})=>t.length>2?Z4:Ti.has(e)?e.startsWith("scale")?J4(t[1]):X4:eF;function nF({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:l,repeatDelay:u,from:d,elapsed:h,...m}){return!!Object.keys(m).length}const yg=(e,t,n,r={},o,a)=>l=>{const u=ng(r,e)||{},d=u.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Pr(d);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-h,onUpdate:v=>{t.set(v),u.onUpdate&&u.onUpdate(v)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:o};nF(u)||(m={...m,...tF(e,m)}),m.duration&&(m.duration=Pr(m.duration)),m.repeatDelay&&(m.repeatDelay=Pr(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(g=!0)),g&&!a&&t.get()!==void 0){const v=ld(m.keyframes,u);if(v!==void 0)return nt.update(()=>{m.onUpdate(v),m.onComplete()}),new bI([])}return!a&&E0.supports(m)?new E0(m):new gg(m)};function rF({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function cE(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var a;let{transition:l=e.getDefaultTransition(),transitionEnd:u,...d}=t;r&&(l=r);const h=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const g in d){const v=e.getValue(g,(a=e.latestValues[g])!==null&&a!==void 0?a:null),C=d[g];if(C===void 0||m&&rF(m,g))continue;const E={delay:n,...ng(l||{},g)};let b=!1;if(window.MotionHandoffAnimation){const S=OC(e);if(S){const k=window.MotionHandoffAnimation(S,g,nt);k!==null&&(E.startTime=k,b=!0)}}Op(e,g),v.start(yg(g,v,C,e.shouldReduceMotion&&jC.has(g)?{type:!1}:E,e,b));const _=v.animation;_&&h.push(_)}return u&&Promise.all(h).then(()=>{nt.update(()=>{u&&LI(e,u)})}),h}function Up(e,t,n={}){var r;const o=ad(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const l=o?()=>Promise.all(cE(e,o,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:v}=a;return sF(e,t,m+h,g,v,n)}:()=>Promise.resolve(),{when:d}=a;if(d){const[h,m]=d==="beforeChildren"?[l,u]:[u,l];return h().then(()=>m())}else return Promise.all([l(),u(n.delay)])}function sF(e,t,n=0,r=0,o=1,a){const l=[],u=(e.variantChildren.size-1)*r,d=o===1?(h=0)=>h*r:(h=0)=>u-h*r;return Array.from(e.variantChildren).sort(iF).forEach((h,m)=>{h.notify("AnimationStart",t),l.push(Up(h,t,{...a,delay:n+d(m)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(l)}function iF(e,t){return e.sortNodePosition(t)}function oF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(a=>Up(e,a,n));r=Promise.all(o)}else if(typeof t=="string")r=Up(e,t,n);else{const o=typeof t=="function"?ad(e,t,n.custom):t;r=Promise.all(cE(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const aF=Wm.length;function uE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?uE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<aF;n++){const r=Wm[n],o=e.props[r];(ul(o)||o===!1)&&(t[r]=o)}return t}const lF=[...zm].reverse(),cF=zm.length;function uF(e){return t=>Promise.all(t.map(({animation:n,options:r})=>oF(e,n,r)))}function dF(e){let t=uF(e),n=_0(),r=!0;const o=d=>(h,m)=>{var g;const v=ad(e,m,d==="exit"?(g=e.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(v){const{transition:C,transitionEnd:E,...b}=v;h={...h,...b,...E}}return h};function a(d){t=d(e)}function l(d){const{props:h}=e,m=uE(e.parent)||{},g=[],v=new Set;let C={},E=1/0;for(let _=0;_<cF;_++){const S=lF[_],k=n[S],P=h[S]!==void 0?h[S]:m[S],T=ul(P),j=S===d?k.isActive:null;j===!1&&(E=_);let F=P===m[S]&&P!==h[S]&&T;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),k.protectedKeys={...C},!k.isActive&&j===null||!P&&!k.prevProp||id(P)||typeof P=="boolean")continue;const U=fF(k.prevProp,P);let O=U||S===d&&k.isActive&&!F&&T||_>E&&T,H=!1;const X=Array.isArray(P)?P:[P];let ne=X.reduce(o(S),{});j===!1&&(ne={});const{prevResolvedValues:ue={}}=k,he={...ue,...ne},ae=ee=>{O=!0,v.has(ee)&&(H=!0,v.delete(ee)),k.needsAnimating[ee]=!0;const z=e.getValue(ee);z&&(z.liveStyle=!1)};for(const ee in he){const z=ne[ee],te=ue[ee];if(C.hasOwnProperty(ee))continue;let W=!1;Rp(z)&&Rp(te)?W=!CC(z,te):W=z!==te,W?z!=null?ae(ee):v.add(ee):z!==void 0&&v.has(ee)?ae(ee):k.protectedKeys[ee]=!0}k.prevProp=P,k.prevResolvedValues=ne,k.isActive&&(C={...C,...ne}),r&&e.blockInitialAnimation&&(O=!1),O&&(!(F&&U)||H)&&g.push(...X.map(ee=>({animation:ee,options:{type:S}})))}if(v.size){const _={};v.forEach(S=>{const k=e.getBaseTarget(S),P=e.getValue(S);P&&(P.liveStyle=!0),_[S]=k??null}),g.push({animation:_})}let b=!!g.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(g):Promise.resolve()}function u(d,h){var m;if(n[d].isActive===h)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(v=>{var C;return(C=v.animationState)===null||C===void 0?void 0:C.setActive(d,h)}),n[d].isActive=h;const g=l(d);for(const v in n)n[v].protectedKeys={};return g}return{animateChanges:l,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=_0(),r=!0}}}function fF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!CC(t,e):!1}function Ys(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _0(){return{animate:Ys(!0),whileInView:Ys(),whileHover:Ys(),whileTap:Ys(),whileDrag:Ys(),whileFocus:Ys(),exit:Ys()}}class As{constructor(t){this.isMounted=!1,this.node=t}update(){}}class hF extends As{constructor(t){super(t),t.animationState||(t.animationState=dF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();id(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let pF=0;class mF extends As{constructor(){super(...arguments),this.id=pF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const gF={animation:{Feature:hF},exit:{Feature:mF}};function pl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function jl(e){return{point:{x:e.pageX,y:e.pageY}}}const yF=e=>t=>ig(t)&&e(t,jl(t));function tl(e,t,n,r){return pl(e,t,yF(n),r)}const N0=(e,t)=>Math.abs(e-t);function vF(e,t){const n=N0(e.x,t.x),r=N0(e.y,t.y);return Math.sqrt(n**2+r**2)}class dE{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Bh(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,C=vF(g.offset,{x:0,y:0})>=3;if(!v&&!C)return;const{point:E}=g,{timestamp:b}=Ot;this.history.push({...E,timestamp:b});const{onStart:_,onMove:S}=this.handlers;v||(_&&_(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Fh(v,this.transformPagePoint),nt.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.end();const{onEnd:C,onSessionEnd:E,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Bh(g.type==="pointercancel"?this.lastMoveEventInfo:Fh(v,this.transformPagePoint),this.history);this.startEvent&&C&&C(g,_),E&&E(g,_)},!ig(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const l=jl(t),u=Fh(l,this.transformPagePoint),{point:d}=u,{timestamp:h}=Ot;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,Bh(u,this.history)),this.removeListeners=Rl(tl(this.contextWindow,"pointermove",this.handlePointerMove),tl(this.contextWindow,"pointerup",this.handlePointerUp),tl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_s(this.updatePoint)}}function Fh(e,t){return t?{point:t(e.point)}:e}function k0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Bh({point:e},t){return{point:e,delta:k0(e,fE(t)),offset:k0(e,xF(t)),velocity:wF(t,.1)}}function xF(e){return e[0]}function fE(e){return e[e.length-1]}function wF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=fE(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Pr(t)));)n--;if(!r)return{x:0,y:0};const a=Tr(o.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const l={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const hE=1e-4,bF=1-hE,SF=1+hE,pE=.01,CF=0-pE,EF=0+pE;function pn(e){return e.max-e.min}function _F(e,t,n){return Math.abs(e-t)<=n}function P0(e,t,n,r=.5){e.origin=r,e.originPoint=ot(t.min,t.max,e.origin),e.scale=pn(n)/pn(t),e.translate=ot(n.min,n.max,e.origin)-e.originPoint,(e.scale>=bF&&e.scale<=SF||isNaN(e.scale))&&(e.scale=1),(e.translate>=CF&&e.translate<=EF||isNaN(e.translate))&&(e.translate=0)}function nl(e,t,n,r){P0(e.x,t.x,n.x,r?r.originX:void 0),P0(e.y,t.y,n.y,r?r.originY:void 0)}function T0(e,t,n){e.min=n.min+t.min,e.max=e.min+pn(t)}function NF(e,t,n){T0(e.x,t.x,n.x),T0(e.y,t.y,n.y)}function R0(e,t,n){e.min=t.min-n.min,e.max=e.min+pn(t)}function rl(e,t,n){R0(e.x,t.x,n.x),R0(e.y,t.y,n.y)}function kF(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ot(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ot(n,e,r.max):Math.min(e,n)),e}function j0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function PF(e,{top:t,left:n,bottom:r,right:o}){return{x:j0(e.x,n,o),y:j0(e.y,t,r)}}function A0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function TF(e,t){return{x:A0(e.x,t.x),y:A0(e.y,t.y)}}function RF(e,t){let n=.5;const r=pn(e),o=pn(t);return o>r?n=jo(t.min,t.max-r,e.min):r>o&&(n=jo(e.min,e.max-o,t.min)),Ar(0,1,n)}function jF(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Vp=.35;function AF(e=Vp){return e===!1?e=0:e===!0&&(e=Vp),{x:O0(e,"left","right"),y:O0(e,"top","bottom")}}function O0(e,t,n){return{min:M0(e,t),max:M0(e,n)}}function M0(e,t){return typeof e=="number"?e:e[t]||0}const L0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ho=()=>({x:L0(),y:L0()}),D0=()=>({min:0,max:0}),ht=()=>({x:D0(),y:D0()});function Cn(e){return[e("x"),e("y")]}function mE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function OF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function MF(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Uh(e){return e===void 0||e===1}function $p({scale:e,scaleX:t,scaleY:n}){return!Uh(e)||!Uh(t)||!Uh(n)}function Js(e){return $p(e)||gE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function gE(e){return I0(e.x)||I0(e.y)}function I0(e){return e&&e!=="0%"}function Uu(e,t,n){const r=e-n,o=t*r;return n+o}function F0(e,t,n,r,o){return o!==void 0&&(e=Uu(e,o,r)),Uu(e,n,r)+t}function zp(e,t=0,n=1,r,o){e.min=F0(e.min,t,n,r,o),e.max=F0(e.max,t,n,r,o)}function yE(e,{x:t,y:n}){zp(e.x,t.translate,t.scale,t.originPoint),zp(e.y,n.translate,n.scale,n.originPoint)}const B0=.999999999999,U0=1.0000000000001;function LF(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let a,l;for(let u=0;u<o;u++){a=n[u],l=a.projectionDelta;const{visualElement:d}=a.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&mo(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,yE(e,l)),r&&Js(a.latestValues)&&mo(e,a.latestValues))}t.x<U0&&t.x>B0&&(t.x=1),t.y<U0&&t.y>B0&&(t.y=1)}function po(e,t){e.min=e.min+t,e.max=e.max+t}function V0(e,t,n,r,o=.5){const a=ot(e.min,e.max,o);zp(e,t,n,a,r)}function mo(e,t){V0(e.x,t.x,t.scaleX,t.scale,t.originX),V0(e.y,t.y,t.scaleY,t.scale,t.originY)}function vE(e,t){return mE(MF(e.getBoundingClientRect(),t))}function DF(e,t,n){const r=vE(e,n),{scroll:o}=t;return o&&(po(r.x,o.offset.x),po(r.y,o.offset.y)),r}const xE=({current:e})=>e?e.ownerDocument.defaultView:null,IF=new WeakMap;class FF{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ht(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(jl(m).point)},a=(m,g)=>{const{drag:v,dragPropagation:C,onDragStart:E}=this.getProps();if(v&&!C&&(this.openDragLock&&this.openDragLock(),this.openDragLock=RI(v),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Cn(_=>{let S=this.getAxisMotionValue(_).get()||0;if(or.test(S)){const{projection:k}=this.visualElement;if(k&&k.layout){const P=k.layout.layoutBox[_];P&&(S=pn(P)*(parseFloat(S)/100))}}this.originPoint[_]=S}),E&&nt.postRender(()=>E(m,g)),Op(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(m,g)=>{const{dragPropagation:v,dragDirectionLock:C,onDirectionLock:E,onDrag:b}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:_}=g;if(C&&this.currentDirection===null){this.currentDirection=BF(_),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",g.point,_),this.updateAxis("y",g.point,_),this.visualElement.render(),b&&b(m,g)},u=(m,g)=>this.stop(m,g),d=()=>Cn(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new dE(t,{onSessionStart:o,onStart:a,onMove:l,onSessionEnd:u,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:xE(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&nt.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ru(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=kF(l,this.constraints[t],this.elastic[t])),a.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&uo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=PF(o.layoutBox,n):this.constraints=!1,this.elastic=AF(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Cn(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=jF(o.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!uo(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=DF(r,o.root,this.visualElement.getTransformPagePoint());let l=TF(o.layout.layoutBox,a);if(n){const u=n(OF(l));this.hasMutatedConstraints=!!u,u&&(l=mE(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),d=this.constraints||{},h=Cn(m=>{if(!ru(m,n,this.currentDirection))return;let g=d&&d[m]||{};l&&(g={min:0,max:0});const v=o?200:1e6,C=o?40:1e7,E={type:"inertia",velocity:r?t[m]:0,bounceStiffness:v,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...a,...g};return this.startAxisValueAnimation(m,E)});return Promise.all(h).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Op(this.visualElement,t),r.start(yg(t,r,0,n,this.visualElement,!1))}stopAnimation(){Cn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Cn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Cn(n=>{const{drag:r}=this.getProps();if(!ru(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:u}=o.layout.layoutBox[n];a.set(t[n]-ot(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!uo(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Cn(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const d=u.get();o[l]=RF({min:d,max:d},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Cn(l=>{if(!ru(l,t,null))return;const u=this.getAxisMotionValue(l),{min:d,max:h}=this.constraints[l];u.set(ot(d,h,o[l]))})}addListeners(){if(!this.visualElement.current)return;IF.set(this.visualElement,this);const t=this.visualElement.current,n=tl(t,"pointerdown",d=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();uo(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),nt.read(r);const l=pl(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Cn(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=d[m].translate,g.set(g.get()+d[m].translate))}),this.visualElement.render())}));return()=>{l(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:l=Vp,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:a,dragElastic:l,dragMomentum:u}}}function ru(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function BF(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class UF extends As{constructor(t){super(t),this.removeGroupControls=fn,this.removeListeners=fn,this.controls=new FF(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fn}unmount(){this.removeGroupControls(),this.removeListeners()}}const $0=e=>(t,n)=>{e&&nt.postRender(()=>e(t,n))};class VF extends As{constructor(){super(...arguments),this.removePointerDownListener=fn}onPointerDown(t){this.session=new dE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:$0(t),onStart:$0(n),onMove:r,onEnd:(a,l)=>{delete this.session,o&&nt.postRender(()=>o(a,l))}}}mount(){this.removePointerDownListener=tl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Cu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function z0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Va={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_e.test(e))e=parseFloat(e);else return e;const n=z0(e,t.target.x),r=z0(e,t.target.y);return`${n}% ${r}%`}},$F={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ns.parse(e);if(o.length>5)return r;const a=Ns.createTransformer(e),l=typeof o[0]!="number"?1:0,u=n.x.scale*t.x,d=n.y.scale*t.y;o[0+l]/=u,o[1+l]/=d;const h=ot(u,d,.5);return typeof o[2+l]=="number"&&(o[2+l]/=h),typeof o[3+l]=="number"&&(o[3+l]/=h),a(o)}};class zF extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:a}=t;cI(WF),a&&(n.group&&n.group.add(a),r&&r.register&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Cu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:a}=this.props,l=r.projection;return l&&(l.isPresent=a,o||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?l.promote():l.relegate()||nt.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),qm.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function wE(e){const[t,n]=nC(),r=w.useContext(Im);return p.jsx(zF,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(uC),isPresent:t,safeToRemove:n})}const WF={borderRadius:{...Va,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Va,borderTopRightRadius:Va,borderBottomLeftRadius:Va,borderBottomRightRadius:Va,boxShadow:$F};function HF(e,t,n){const r=Vt(e)?e:fl(e);return r.start(yg("",r,t,n)),r.animation}function qF(e){return e instanceof SVGElement&&e.tagName!=="svg"}const KF=(e,t)=>e.depth-t.depth;class GF{constructor(){this.children=[],this.isDirty=!1}add(t){og(this.children,t),this.isDirty=!0}remove(t){ag(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(KF),this.isDirty=!1,this.children.forEach(t)}}function QF(e,t){const n=ar.now(),r=({timestamp:o})=>{const a=o-n;a>=t&&(_s(r),e(a-t))};return nt.read(r,!0),()=>_s(r)}const bE=["TopLeft","TopRight","BottomLeft","BottomRight"],YF=bE.length,W0=e=>typeof e=="string"?parseFloat(e):e,H0=e=>typeof e=="number"||_e.test(e);function XF(e,t,n,r,o,a){o?(e.opacity=ot(0,n.opacity!==void 0?n.opacity:1,JF(r)),e.opacityExit=ot(t.opacity!==void 0?t.opacity:1,0,ZF(r))):a&&(e.opacity=ot(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<YF;l++){const u=`border${bE[l]}Radius`;let d=q0(t,u),h=q0(n,u);if(d===void 0&&h===void 0)continue;d||(d=0),h||(h=0),d===0||h===0||H0(d)===H0(h)?(e[u]=Math.max(ot(W0(d),W0(h),r),0),(or.test(h)||or.test(d))&&(e[u]+="%")):e[u]=h}(t.rotate||n.rotate)&&(e.rotate=ot(t.rotate||0,n.rotate||0,r))}function q0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const JF=SE(0,.5,UC),ZF=SE(.5,.95,fn);function SE(e,t,n){return r=>r<e?0:r>t?1:n(jo(e,t,r))}function K0(e,t){e.min=t.min,e.max=t.max}function Sn(e,t){K0(e.x,t.x),K0(e.y,t.y)}function G0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Q0(e,t,n,r,o){return e-=t,e=Uu(e,1/n,r),o!==void 0&&(e=Uu(e,1/o,r)),e}function e3(e,t=0,n=1,r=.5,o,a=e,l=e){if(or.test(t)&&(t=parseFloat(t),t=ot(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=ot(a.min,a.max,r);e===a&&(u-=t),e.min=Q0(e.min,t,n,u,o),e.max=Q0(e.max,t,n,u,o)}function Y0(e,t,[n,r,o],a,l){e3(e,t[n],t[r],t[o],t.scale,a,l)}const t3=["x","scaleX","originX"],n3=["y","scaleY","originY"];function X0(e,t,n,r){Y0(e.x,t,t3,n?n.x:void 0,r?r.x:void 0),Y0(e.y,t,n3,n?n.y:void 0,r?r.y:void 0)}function J0(e){return e.translate===0&&e.scale===1}function CE(e){return J0(e.x)&&J0(e.y)}function Z0(e,t){return e.min===t.min&&e.max===t.max}function r3(e,t){return Z0(e.x,t.x)&&Z0(e.y,t.y)}function eb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function EE(e,t){return eb(e.x,t.x)&&eb(e.y,t.y)}function tb(e){return pn(e.x)/pn(e.y)}function nb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class s3{constructor(){this.members=[]}add(t){og(this.members,t),t.scheduleRender()}remove(t){if(ag(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function i3(e,t,n){let r="";const o=e.x.translate/t.x,a=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((o||a||l)&&(r=`translate3d(${o}px, ${a}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:g,rotateY:v,skewX:C,skewY:E}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),g&&(r+=`rotateX(${g}deg) `),v&&(r+=`rotateY(${v}deg) `),C&&(r+=`skewX(${C}deg) `),E&&(r+=`skewY(${E}deg) `)}const u=e.x.scale*t.x,d=e.y.scale*t.y;return(u!==1||d!==1)&&(r+=`scale(${u}, ${d})`),r||"none"}const Zs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ya=typeof window<"u"&&window.MotionDebug!==void 0,Vh=["","X","Y","Z"],o3={visibility:"hidden"},rb=1e3;let a3=0;function $h(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function _E(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=OC(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",nt,!(o||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&_E(r)}function NE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(l={},u=t==null?void 0:t()){this.id=a3++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ya&&(Zs.totalNodes=Zs.resolvedTargetDeltas=Zs.recalculatedProjection=0),this.nodes.forEach(u3),this.nodes.forEach(m3),this.nodes.forEach(g3),this.nodes.forEach(d3),Ya&&window.MotionDebug.record(Zs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new GF)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new lg),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const d=this.eventHandlers.get(l);d&&d.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=qF(l),this.instance=l;const{layoutId:d,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(h||d)&&(this.isLayoutDirty=!0),e){let g;const v=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=QF(v,250),Cu.hasAnimatedSinceResize&&(Cu.hasAnimatedSinceResize=!1,this.nodes.forEach(ib))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&m&&(d||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeTargetChanged:C,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||m.getDefaultTransition()||b3,{onLayoutAnimationStart:_,onLayoutAnimationComplete:S}=m.getProps(),k=!this.targetLayout||!EE(this.targetLayout,E)||C,P=!v&&C;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||v&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,P);const T={...ng(b,"layout"),onPlay:_,onComplete:S};(m.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else v||ib(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_s(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(y3),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_E(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const g=this.path[m];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:u,layout:d}=this.options;if(u===void 0&&!d)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sb);return}this.isUpdating||this.nodes.forEach(h3),this.isUpdating=!1,this.nodes.forEach(p3),this.nodes.forEach(l3),this.nodes.forEach(c3),this.clearAllSnapshots();const u=ar.now();Ot.delta=Ar(0,1e3/60,u-Ot.timestamp),Ot.timestamp=u,Ot.isProcessing=!0,Ah.update.process(Ot),Ah.preRender.process(Ot),Ah.render.process(Ot),Ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(f3),this.sharedNodes.forEach(v3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ht(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!o)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!CE(this.projectionDelta),d=this.getTransformTemplate(),h=d?d(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;l&&(u||Js(this.latestValues)||m)&&(o(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let d=this.removeElementScroll(u);return l&&(d=this.removeTransform(d)),S3(d),{animationId:this.root.animationId,measuredBox:u,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:u}=this.options;if(!u)return ht();const d=u.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(C3))){const{scroll:m}=this.root;m&&(po(d.x,m.offset.x),po(d.y,m.offset.y))}return d}removeElementScroll(l){var u;const d=ht();if(Sn(d,l),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return d;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:g,options:v}=m;m!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&Sn(d,l),po(d.x,g.offset.x),po(d.y,g.offset.y))}return d}applyTransform(l,u=!1){const d=ht();Sn(d,l);for(let h=0;h<this.path.length;h++){const m=this.path[h];!u&&m.options.layoutScroll&&m.scroll&&m!==m.root&&mo(d,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Js(m.latestValues)&&mo(d,m.latestValues)}return Js(this.latestValues)&&mo(d,this.latestValues),d}removeTransform(l){const u=ht();Sn(u,l);for(let d=0;d<this.path.length;d++){const h=this.path[d];if(!h.instance||!Js(h.latestValues))continue;$p(h.latestValues)&&h.updateSnapshot();const m=ht(),g=h.measurePageBox();Sn(m,g),X0(u,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Js(this.latestValues)&&X0(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ot.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var u;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==d;if(!(l||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!(!this.layout||!(g||v))){if(this.resolvedRelativeTargetAt=Ot.timestamp,!this.targetDelta&&!this.relativeTarget){const C=this.getClosestProjectingParent();C&&C.layout&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ht(),this.relativeTargetOrigin=ht(),rl(this.relativeTargetOrigin,this.layout.layoutBox,C.layout.layoutBox),Sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ht(),this.targetWithTransforms=ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),NF(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Sn(this.target,this.layout.layoutBox),yE(this.target,this.targetDelta)):Sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const C=this.getClosestProjectingParent();C&&!!C.resumingFrom==!!this.resumingFrom&&!C.options.layoutScroll&&C.target&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ht(),this.relativeTargetOrigin=ht(),rl(this.relativeTargetOrigin,this.target,C.target),Sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ya&&Zs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||$p(this.parent.latestValues)||gE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var l;const u=this.getLead(),d=!!this.resumingFrom||this!==u;let h=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(h=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Ot.timestamp&&(h=!1),h)return;const{layout:m,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||g))return;Sn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,C=this.treeScale.y;LF(this.layoutCorrected,this.treeScale,this.path,d),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=ht());const{target:E}=u;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(G0(this.prevProjectionDelta.x,this.projectionDelta.x),G0(this.prevProjectionDelta.y,this.projectionDelta.y)),nl(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==C||!nb(this.projectionDelta.x,this.prevProjectionDelta.x)||!nb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E)),Ya&&Zs.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),l){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ho(),this.projectionDelta=ho(),this.projectionDeltaWithTransform=ho()}setAnimationOrigin(l,u=!1){const d=this.snapshot,h=d?d.latestValues:{},m={...this.latestValues},g=ho();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const v=ht(),C=d?d.source:void 0,E=this.layout?this.layout.source:void 0,b=C!==E,_=this.getStack(),S=!_||_.members.length<=1,k=!!(b&&!S&&this.options.crossfade===!0&&!this.path.some(w3));this.animationProgress=0;let P;this.mixTargetDelta=T=>{const j=T/1e3;ob(g.x,l.x,j),ob(g.y,l.y,j),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rl(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),x3(this.relativeTarget,this.relativeTargetOrigin,v,j),P&&r3(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=ht()),Sn(P,this.relativeTarget)),b&&(this.animationValues=m,XF(m,h,this.latestValues,j,k,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_s(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nt.update(()=>{Cu.hasAnimatedSinceResize=!0,this.currentAnimation=HF(0,rb,{...l,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:d,layout:h,latestValues:m}=l;if(!(!u||!d||!h)){if(this!==l&&this.layout&&h&&kE(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||ht();const g=pn(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+g;const v=pn(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+v}Sn(u,d),mo(u,m),nl(this.projectionDeltaWithTransform,this.layoutCorrected,u,m)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new s3),this.sharedNodes.get(l).add(u);const h=u.options.initialPromotionConfig;u.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:u}=this.options;return u?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:u}=this.options;return u?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:d}=l;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(u=!0),!u)return;const h={};d.z&&$h("z",l,h,this.animationValues);for(let m=0;m<Vh.length;m++)$h(`rotate${Vh[m]}`,l,h,this.animationValues),$h(`skew${Vh[m]}`,l,h,this.animationValues);l.render();for(const m in h)l.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);l.scheduleRender()}getProjectionStyles(l){var u,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return o3;const h={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=bu(l==null?void 0:l.pointerEvents)||"",h.transform=m?m(this.latestValues,""):"none",h;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=bu(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Js(this.latestValues)&&(b.transform=m?m({},""):"none",this.hasProjected=!1),b}const v=g.animationValues||g.latestValues;this.applyTransformsToTarget(),h.transform=i3(this.projectionDeltaWithTransform,this.treeScale,v),m&&(h.transform=m(v,h.transform));const{x:C,y:E}=this.projectionDelta;h.transformOrigin=`${C.origin*100}% ${E.origin*100}% 0`,g.animationValues?h.opacity=g===this?(d=(u=v.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const b in Lu){if(v[b]===void 0)continue;const{correct:_,applyTo:S}=Lu[b],k=h.transform==="none"?v[b]:_(v[b],g);if(S){const P=S.length;for(let T=0;T<P;T++)h[S[T]]=k}else h[b]=k}return this.options.layoutId&&(h.pointerEvents=g===this?bu(l==null?void 0:l.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var u;return(u=l.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(sb),this.root.sharedNodes.clear()}}}function l3(e){e.updateLayout()}function c3(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:a}=e.options,l=n.source!==e.layout.source;a==="size"?Cn(g=>{const v=l?n.measuredBox[g]:n.layoutBox[g],C=pn(v);v.min=r[g].min,v.max=v.min+C}):kE(a,n.layoutBox,r)&&Cn(g=>{const v=l?n.measuredBox[g]:n.layoutBox[g],C=pn(r[g]);v.max=v.min+C,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+C)});const u=ho();nl(u,r,n.layoutBox);const d=ho();l?nl(d,e.applyTransform(o,!0),n.measuredBox):nl(d,r,n.layoutBox);const h=!CE(u);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:C}=g;if(v&&C){const E=ht();rl(E,n.layoutBox,v.layoutBox);const b=ht();rl(b,r,C.layoutBox),EE(E,b)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=E,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:d,layoutDelta:u,hasLayoutChanged:h,hasRelativeTargetChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function u3(e){Ya&&Zs.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function d3(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function f3(e){e.clearSnapshot()}function sb(e){e.clearMeasurements()}function h3(e){e.isLayoutDirty=!1}function p3(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ib(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function m3(e){e.resolveTargetDelta()}function g3(e){e.calcProjection()}
vendor: 6,595 bytes, line 359
359function y3(e){e.resetSkewAndRotation()}function v3(e){e.removeLeadSnapshot()}function ob(e,t,n){e.translate=ot(t.translate,0,n),e.scale=ot(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ab(e,t,n,r){e.min=ot(t.min,n.min,r),e.max=ot(t.max,n.max,r)}function x3(e,t,n,r){ab(e.x,t.x,n.x,r),ab(e.y,t.y,n.y,r)}function w3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const b3={duration:.45,ease:[.4,0,.1,1]},lb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cb=lb("applewebkit/")&&!lb("chrome/")?Math.round:fn;function ub(e){e.min=cb(e.min),e.max=cb(e.max)}function S3(e){ub(e.x),ub(e.y)}function kE(e,t,n){return e==="position"||e==="preserve-aspect"&&!_F(tb(t),tb(n),.2)}function C3(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const E3=NE({attachResizeListener:(e,t)=>pl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),zh={current:void 0},PE=NE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!zh.current){const e=new E3({});e.mount(window),e.setOptions({layoutScroll:!0}),zh.current=e}return zh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),_3={pan:{Feature:VF},drag:{Feature:UF,ProjectionNode:PE,MeasureLayout:wE}};function db(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,a=r[o];a&&nt.postRender(()=>a(t,jl(t)))}class N3 extends As{mount(){const{current:t}=this.node;t&&(this.unmount=_I(t,n=>(db(this.node,n,"Start"),r=>db(this.node,r,"End"))))}unmount(){}}class k3 extends As{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Rl(pl(this.node.current,"focus",()=>this.onFocus()),pl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function fb(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),a=r[o];a&&nt.postRender(()=>a(t,jl(t)))}class P3 extends As{mount(){const{current:t}=this.node;t&&(this.unmount=TI(t,n=>(fb(this.node,n,"Start"),(r,{success:o})=>fb(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Wp=new WeakMap,Wh=new WeakMap,T3=e=>{const t=Wp.get(e.target);t&&t(e)},R3=e=>{e.forEach(T3)};function j3({root:e,...t}){const n=e||document;Wh.has(n)||Wh.set(n,{});const r=Wh.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(R3,{root:e,...t})),r[o]}function A3(e,t,n){const r=j3(t);return Wp.set(e,n),r.observe(e),()=>{Wp.delete(e),r.unobserve(e)}}const O3={some:0,all:1};class M3 extends As{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:a}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:O3[o]},u=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),v=h?m:g;v&&v(d)};return A3(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(L3(t,n))&&this.startObserver()}unmount(){}}function L3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const D3={inView:{Feature:M3},tap:{Feature:P3},focus:{Feature:k3},hover:{Feature:N3}},I3={layout:{ProjectionNode:PE,MeasureLayout:wE}},Hp={current:null},TE={current:!1};function F3(){if(TE.current=!0,!!Um)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Hp.current=e.matches;e.addListener(t),t()}else Hp.current=!1}const B3=[...eE,Ut,Ns],U3=e=>B3.find(ZC(e)),hb=new WeakMap;function V3(e,t,n){for(const r in t){const o=t[r],a=n[r];if(Vt(o))e.addValue(r,o);else if(Vt(a))e.addValue(r,fl(o,{owner:e}));else if(a!==o)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(r);e.addValue(r,fl(l!==void 0?l:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const pb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $3{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:a,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=pg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const C=ar.now();this.renderScheduledAt<C&&(this.renderScheduledAt=C,nt.render(this.render,!1,!0))};const{latestValues:d,renderState:h,onUpdate:m}=l;this.onUpdate=m,this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=od(n),this.isVariantNode=lC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const C in v){const E=v[C];d[C]!==void 0&&Vt(E)&&E.set(d[C],!1)}}mount(t){this.current=t,hb.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 5,235 bytes, line 359
359h((n,r)=>this.bindToMotionValue(r,n)),TE.current||F3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Hp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){hb.delete(this.current),this.projection&&this.projection.unmount(),_s(this.notifyUpdate),_s(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ti.has(t),o=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&nt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),a(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ao){const n=Ao[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ht()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<pb.length;r++){const o=pb[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a="on"+o,l=t[a];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=V3(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=fl(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(XC(o)||$C(o))?o=parseFloat(o):!U3(o)&&Ns.test(n)&&(o=GC(t,n)),this.setBaseTarget(t,Vt(o)?o.get():o)),Vt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const l=Gm(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(o=l[t])}if(r&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Vt(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new lg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class RE extends $3{constructor(){super(...arguments),this.KeyframeResolver=tE}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Vt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function z3(e){return window.getComputedStyle(e)}class W3 extends RE{constructor(){super(...arguments),this.type="html",this.renderInstance=yC}readValueFromInstance(t,n){if(Ti.has(n)){const r=hg(n);return r&&r.default||0}else{const r=z3(t),o=(pC(n)?r.getPropertyValue(n):r[n])||0;
359return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return vE(t,n)}build(t,n,r){Xm(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return tg(t,n,r)}}class H3 extends RE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ht}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ti.has(n)){const r=hg(n);return r&&r.default||0}return n=vC.has(n)?n:Hm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return bC(t,n,r)}build(t,n,r){Jm(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){xC(t,n,r,o)}mount(t){this.isSVGTag=eg(t.tagName),super.mount(t)}}const q3=(e,t)=>Km(e)?new H3(t):new W3(t,{allowProjection:e!==w.Fragment}),K3=vI({...gF,...D3,..._3,...I3},q3),Et=OD(K3),mb=[{label:"Home",path:"/Home"},{label:"News Bulletins",path:"/NewsBulletins"},{label:"GLP Group",path:"/GLPGroup"},{label:"Live Stream",path:"/LiveStream"},{label:"Contact",path:"/Contact"}];function G3(){const[e,t]=w.useState(!1),n=ki(),{user:r}=Pi();return p.jsxs("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-background/90 backdrop-blur-xl border-b border-border/50",children:[p.jsx("div",{className:"bg-primary/10 border-b border-primary/20 py-1 overflow-hidden",children:p.jsx("div",{className:"flex animate-ticker whitespace-nowrap",children:[...Array(2)].map((o,a)=>p.jsx("span",{className:"text-xs text-primary font-medium tracking-wider mr-8",children:"GLP CHANNEL â Independent International Digital News Network â Geopolitics ⢠Markets ⢠Global Affairs â A member of GLP MEDIA GROUP, which is a GLP GROUP company â "},a))})}),p.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:p.jsxs("div",{className:"flex items-center justify-between h-16",children:[p.jsxs(zn,{to:"/Home",className:"flex items-center gap-3",children:[p.jsx("img",{src:"https://media.base44.com/images/public/69bb308266591730c22b3141/d77dba13c_GLPNEWSlogo.png",alt:"GLP Channel",className:"w-14 h-14 object-contain"}),p.jsxs("div",{className:"hidden sm:block",children:[p.jsx("h1",{className:"text-lg font-bold text-foreground tracking-wide",children:"GLP CHANNEL"}),p.jsx("p",{className:"text-[10px] text-muted-foreground tracking-widest uppercase",children:"View of the World"})]})]}),p.jsxs("div",{className:"hidden lg:flex items-center gap-1",children:[mb.map(o=>p.jsx(zn,{to:o.path,className:`px-4 py-2 text-sm font-medium tracking-wide transition-colors rounded-md ${n.pathname===o.path?"text-primary bg-primary/10":"text-muted-foreground hover:text-foreground hover:bg-secondary"}`,children:o.label},o.path)),p.jsxs(zn,{to:"/LiveStream",className:"ml-2 flex items-center gap-2 px-4 py-2 bg-destructive/20 text-destructive rounded-md text-sm font-semibold hover:bg-destructive/30 transition-colors",children:[p.jsx(ws,{className:"w-3.5 h-3.5 animate-pulse"}),"LIVE"]}),r?p.jsxs("div",{className:"ml-3 flex items-center gap-2",children:[p.jsxs("span",{className:"flex items-center gap-1.5 px-3 py-1.5 bg-secondary rounded-md text-xs text-muted-foreground",children:[p.jsx(Dx,{className:"w-3.5 h-3.5"}),r.full_name||r.email,r.role==="admin"&&p.jsx("span",{className:"ml-1 text-primary font-semibold",children:"(Admin)"})]}),p.jsxs("button",{onClick:()=>Oe.auth.logout(),className:"flex items-center gap-1.5 px-3 py-1.5 bg-secondary hover:bg-secondary/80 rounded-md text-xs text-muted-foreground transition-colors",children:[p.jsx(Lx,{className:"w-3.5 h-3.5"})," Logout"]})]}):p.jsxs("button",{onClick:()=>Oe.auth.redirectToLogin(),className:"ml-3 flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md text-sm font-semibold hover:opacity-90 transition-opacity",children:[p.jsx(Mx,{className:"w-4 h-4"})," Login"]})]}),p.jsx("button",{onClick:()=>t(!e),className:"lg:hidden p-2 text-foreground",children:e?p.jsx(Pn,{className:"w-6 h-6"}):p.jsx(HT,{className:"w-6 h-6"})})]})}),p.jsx(Vm,{children:e&&p.jsx(Et.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"lg:hidden bg-card border-t border-border",children:p.jsxs("div",{className:"px-4 py-4 space-y-1",children:[mb.map(o=>p.jsx(zn,{to:o.path,onClick:()=>t(!1),className:`block px-4 py-3 rounded-md text-sm font-medium ${n.pathname===o.path?"text-primary bg-primary/10":"text-muted-foreground hover:text-foreground hover:bg-secondary"}`,children:o.label},o.path)),p.jsx("div",{className:"pt-2 border-t border-border mt-2",children:r?p.jsxs("div",{className:"space-y-1",children:[p.jsxs("div",{className:"px-4 py-2 text-xs text-muted-foreground flex items-center gap-1.5",children:[p.jsx(Dx,{className:"w-3.5 h-3.5"}),r.full_name||r.email,r.role==="admin"&&p.jsx("span",{className:"text-primary font-semibold ml-1",children:"(Admin)"})]}),p.jsxs("button",{onClick:()=>{t(!1),Oe.auth.logout()},className:"w-full text-left px-4 py-3 rounded-md text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-secondary flex items-center gap-2",children:[p.jsx(Lx,{className:"w-4 h-4"})," Logout"]})]}):p.jsxs("button",{onClick:()=>{t(!1),Oe.auth.redirectToLogin()},className:"w-full text-left px-4 py-3 rounded-md text-sm font-medium text-primary hover:bg-primary/10 flex items-center gap-2",children:[p.jsx(Mx,{className:"w-4 h-4"})," Login"]})})]})})})]})}function Q3(){return p.jsx("footer",{className:"fixed bottom-0 left-0 right-0 bg-card border-t border-border z-40",children:p.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6",children:p.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 text-center",children:[p.jsx("p",{className:"text-xs text-muted-foreground",children:"© 2026 - GLP CHANNEL was designed by GLP APPS - A member of GLP TECHNOLOGIES. GLP CHA
359NNEL is a member of GLP MEDIA GROUP which is a GLP GROUP company."}),p.jsx(zn,{to:"https://www.glpnet.net",onClick:e=>{e.preventDefault(),window.open("https://www.glpnet.net","_blank")},className:"text-xs text-primary hover:text-primary/80 transition-colors",children:"GLP Net. Site Builder."}),p.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-2 justify-center",children:["Designed in Greece. Made in the USA.",p.jsx("span",{className:"text-lg",children:"ð¬ð· ðºð¸"})]})]})})})}function Y3(){return p.jsxs("div",{className:"min-h-screen bg-background flex flex-col pb-[240px]",children:[p.jsx(G3,{}),p.jsx("main",{className:"flex-1 pt-[calc(4rem+1.5rem)]",children:p.jsx(KA,{})}),p.jsx(Q3,{})]})}function jE(e){if(!e)return null;const t=e.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/|youtube\.com\/shorts\/)([a-zA-Z0-9_-]{11})/);return t?t[1]:null}function AE(e){if(!e)return null;const t=e.match(/vimeo\.com\/(\d+)/);return t?t[1]:null}async function X3(e){if(!e)return null;const t=jE(e);if(t)return`https://img.youtube.com/vi/${t}/hqdefault.jpg`;const n=AE(e);if(n){try{const r=await fetch(`https://vimeo.com/api/oembed.json?url=https://vimeo.com/${n}`);if(r.ok){const o=await r.json();if(o.thumbnail_url)return o.thumbnail_url}}catch{}return null}try{return await J3(e)}catch{return null}}function J3(e){return new Promise((t,n)=>{const r=document.createElement("video");r.crossOrigin="anonymous",r.muted=!0,r.preload="auto",r.src=e;let o=!1;const a=()=>{r.removeAttribute("src"),r.load()},l=(m,g)=>{o||(o=!0,a(),m(g))};r.addEventListener("loadeddata",()=>{try{r.currentTime=Math.min(1,(r.duration||4)/4)}catch{l(t,gb(r))}}),r.addEventListener("seeked",()=>l(t,gb(r))),r.addEventListener("error",()=>l(n,new Error("load failed")));const u=setTimeout(()=>l(n,new Error("timeout")),15e3),d=t;t=m=>{clearTimeout(u),d(m)};const h=n;n=m=>{clearTimeout(u),h(m)}})}function gb(e){const n=e.videoHeight?e.videoHeight/e.videoWidth:.5625,r=document.createElement("canvas");return r.width=480,r.height=Math.round(480*n),r.getContext("2d").drawImage(e,0,0,r.width,r.height),r.toDataURL("image/jpeg",.7)}function Z3({featuredBulletin:e,isLive:t=!1,heroBannerUrl:n}){const r=e==null?void 0:e.video_url,o=jE(r),a=AE(r),l=_n.useRef(null);return _n.useEffect(()=>{const u=l.current;u&&u.play().catch(()=>{})},[r]),r?p.jsxs("section",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-8",children:[p.jsxs("div",{className:"relative aspect-video w-full bg-black rounded-xl overflow-hidden border border-border shadow-lg",children:[o?p.jsx("iframe",{src:`https://www.youtube.com/embed/${o}?autoplay=1&mute=1${t?"":`&loop=1&playlist=${o}`}&rel=0&modestbranding=1`,title:e.title,className:"w-full h-full",allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0}):a?p.jsx("iframe",{src:`https://player.vimeo.com/video/${a}?autoplay=1&muted=1${t?"":"&loop=1"}`,title:e.title,className:"w-full h-full",allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0}):p.jsx("video",{ref:l,src:r,controls:!0,autoPlay:!0,muted:!0,loop:!t,playsInline:!0,preload:"auto",poster:e.thumbnail_url||n,className:"w-full h-full object-contain bg-black"}),t&&p.jsxs("div",{className:"absolute top-3 left-3 flex items-center gap-2 px-3 py-1 bg-destructive text-white rounded-md text-xs font-bold uppercase tracking-wider shadow-lg",children:[p.jsx("span",{className:"w-2 h-2 bg-white rounded-full animate-pulse"}),"Live"]})]}),p.jsxs(Et.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"py-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[p.jsxs(zn,{to:"/LiveStream",className:"flex items-center gap-2 px-3 py-1 bg-destructive/20 text-destructive rounded-full text-xs font-bold uppercase tracking-wider hover:bg-destructive/30 transition-colors",children:[p.jsx(ws,{className:"w-3 h-3 animate-pulse"})," Live Now"]}),p.jsx("span",{className:"px-3 py-1 bg-primary/20 text-primary rounded-full text-xs font-medium uppercase tracking-wider",children:"GLP Channel"})]}),p.jsx("h1",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-foreground leading-tight font-playfair mb-3",children:e.title}),e.description&&p.jsx("p",{className:"text-sm sm:text-base text-muted-foreground mb-5 leading-relaxed max-w-2xl",children:e.description}),p.jsxs("div",{className:"flex flex-wrap gap-3",children:[p.jsxs(zn,{to:"/LiveStream",className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-primary-foreground rounded-lg font-semibold text-sm hover:opacity-90 transition-opacity",children:[p.jsx(Ro,{className:"w-4 h-4",fill:"
359currentColor"}),"Watch Live"]}),p.jsxs(zn,{to:"/NewsBulletins",className:"inline-flex items-center gap-2 px-6 py-3 bg-secondary text-secondary-foreground rounded-lg font-semibold text-sm hover:bg-secondary/80 transition-colors",children:[p.jsx(Ix,{className:"w-4 h-4"}),"Latest Bulletins"]})]})]})]}):p.jsx("section",{className:"relative",children:p.jsxs("div",{className:"relative h-[60vh] min-h-[400px] max-h-[600px] overflow-hidden",children:[p.jsx("img",{src:n,alt:"GLP Channel Broadcasting Studio",className:"w-full h-full object-cover"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/70 to-background/30"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background/80 to-transparent"}),p.jsx("div",{className:"absolute inset-0 flex items-end",children:p.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-12 w-full",children:p.jsxs(Et.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"max-w-2xl",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[p.jsxs(zn,{to:"/LiveStream",className:"flex items-center gap-2 px-3 py-1 bg-destructive/20 text-destructive rounded-full text-xs font-bold uppercase tracking-wider hover:bg-destructive/30 transition-colors",children:[p.jsx(ws,{className:"w-3 h-3 animate-pulse"})," Live Now"]}),p.jsx("span",{className:"px-3 py-1 bg-primary/20 text-primary rounded-full text-xs font-medium uppercase tracking-wider",children:"GLP Channel"})]}),p.jsx("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-foreground leading-tight font-playfair mb-4",children:(e==null?void 0:e.title)||"Independent International Digital News Network"}),p.jsx("p",{className:"text-base sm:text-lg text-muted-foreground mb-6 leading-relaxed",children:(e==null?void 0:e.description)||"Geopolitics ⢠Markets ⢠Global Affairs â Watch world news, documentaries, and expert analysis powered by AI."}),p.jsxs("div",{className:"flex flex-wrap gap-3",children:[p.jsxs(zn,{to:"/LiveStream",className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-primary-foreground rounded-lg font-semibold text-sm hover:opacity-90 transition-opacity",children:[p.jsx(Ro,{className:"w-4 h-4",fill:"currentColor"}),"Watch Live"]}),p.jsxs(zn,{to:"/NewsBulletins",className:"inline-flex items-center gap-2 px-6 py-3 bg-secondary text-secondary-foreground rounded-lg font-semibold text-sm hover:bg-secondary/80 transition-colors",children:[p.jsx(Ix,{className:"w-4 h-4"}),"Latest Bulletins"]})]})]})})})]})})}function qn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function wi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const OE=6048e5,eB=864e5;let tB={};function cd(){return tB}function ml(e,t){var u,d,h,m;const n=cd(),r=(t==null?void 0:t.weekStartsOn)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??n.weekStartsOn??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,o=qn(e),a=o.getDay(),l=(a<r?7:0)+a-r;return o.setDate(o.getDate()-l),o.setHours(0,0,0,0),o}function Vu(e){return ml(e,{weekStartsOn:1})}function ME(e){const t=qn(e),n=t.getFullYear(),r=wi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=Vu(r),a=wi(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const l=Vu(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function yb(e){const t=qn(e);return t.setHours(0,0,0,0),t}function vb(e){const t=qn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function nB(e,t){const n=yb(e),r=yb(t),o=+n-vb(n),a=+r-vb(r);return Math.round((o-a)/eB)}function rB(e){const t=ME(e),n=wi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Vu(n)}function sB(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function iB(e){if(!sB(e)&&typeof e!="number")return!1;const t=qn(e);return!isNaN(Number(t))}function oB(e){const t=qn(e),n=wi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const aB={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},lB=(e,t,n)=>{let r;const o=aB[e];
vendor: 4,151 bytes, line 359
359return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Hh(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const cB={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uB={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dB={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fB={date:Hh({formats:cB,defaultWidth:"full"}),time:Hh({formats:uB,defaultWidth:"full"}),dateTime:Hh({formats:dB,defaultWidth:"full"})},hB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pB=(e,t,n,r)=>hB[e];function $a(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):l;o=e.formattingValues[u]||e.formattingValues[l]}else{const l=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[u]||e.values[l]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const mB={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yB={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vB={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},wB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},bB=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},SB={ordinalNumber:bB,era:$a({values:mB,defaultWidth:"wide"}),quarter:$a({values:gB,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$a({values:yB,defaultWidth:"wide"}),day:$a({values:vB,defaultWidth:"wide"}),dayPeriod:$a({values:xB,defaultWidth:"wide",formattingValues:wB,defaultFormattingWidth:"wide"})};function za(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const l=a[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?EB(u,g=>g.test(l)):CB(u,g=>g.test(l));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const m=t.slice(l.length);return{value:h,rest:m}}}function CB(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function EB(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function _B(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let l=e.valueCallback?e.valueCallback(a[0]):a[0];l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(o.length);return{value:l,rest:u}}
vendor: 13,008 bytes, line 359
359}const NB=/^(\d+)(th|st|nd|rd)?/i,kB=/\d+/i,PB={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},TB={any:[/^b/i,/^(a|c)/i]},RB={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},jB={any:[/1/i,/2/i,/3/i,/4/i]},AB={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},OB={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MB={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},LB={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},DB={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},IB={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},FB={ordinalNumber:_B({matchPattern:NB,parsePattern:kB,valueCallback:e=>parseInt(e,10)}),era:za({matchPatterns:PB,defaultMatchWidth:"wide",parsePatterns:TB,defaultParseWidth:"any"}),quarter:za({matchPatterns:RB,defaultMatchWidth:"wide",parsePatterns:jB,defaultParseWidth:"any",valueCallback:e=>e+1}),month:za({matchPatterns:AB,defaultMatchWidth:"wide",parsePatterns:OB,defaultParseWidth:"any"}),day:za({matchPatterns:MB,defaultMatchWidth:"wide",parsePatterns:LB,defaultParseWidth:"any"}),dayPeriod:za({matchPatterns:DB,defaultMatchWidth:"any",parsePatterns:IB,defaultParseWidth:"any"})},BB={code:"en-US",formatDistance:lB,formatLong:fB,formatRelative:pB,localize:SB,match:FB,options:{weekStartsOn:0,firstWeekContainsDate:1}};function UB(e){const t=qn(e);return nB(t,oB(t))+1}function VB(e){const t=qn(e),n=+Vu(t)-+rB(t);return Math.round(n/OE)+1}function LE(e,t){var m,g,v,C;const n=qn(e),r=n.getFullYear(),o=cd(),a=(t==null?void 0:t.firstWeekContainsDate)??((g=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??o.firstWeekContainsDate??((C=(v=o.locale)==null?void 0:v.options)==null?void 0:C.firstWeekContainsDate)??1,l=wi(e,0);l.setFullYear(r+1,0,a),l.setHours(0,0,0,0);const u=ml(l,t),d=wi(e,0);d.setFullYear(r,0,a),d.setHours(0,0,0,0);const h=ml(d,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function $B(e,t){var u,d,h,m;const n=cd(),r=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,o=LE(e,t),a=wi(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),ml(a,t)}function zB(e,t){const n=qn(e),r=+ml(n,t)-+$B(n,t);return Math.round(r/OE)+1}function Ge(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ss={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ge(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ge(n+1,2)},d(e,t){return Ge(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ge(e.getHours()%12||12,t.length)},H(e,t){return Ge(e.getHours(),t.length)},m(e,t){return Ge(e.getMinutes(),t.length)},s(e,t){return Ge(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Ge(o,t.length)}},ro={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},xb={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return ss.y(e,t)},Y:function(e,t,n,r){const o=LE(e,r),a=o>0?o:1-o;if(t==="YY"){const l=a%100;return Ge(l,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Ge(a,t.length)},R:function(e,t){const n=ME(e);return Ge(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ge(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ge(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ge(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ss.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ge(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=zB(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):Ge(o,t.length)},I:function(e,t,n){const r=VB(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ge(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ss.d(e,t)},D:function(e,t,n){const r=UB(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ge(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Ge(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Ge(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Ge(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=ro.noon:r===0?o=ro.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=ro.evening:r>=12?o=ro.afternoon:r>=4?o=ro.morning:o=ro.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ss.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ss.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ss.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ss.s(e,t)},S:function(e,t){return ss.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return bb(r);case"XXXX":case"XX":return ei(r);case"XXXXX":case"XXX":default:return ei(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return bb(r);case"xxxx":case"xx":return ei(r);case"xxxxx":case"xxx":default:return ei(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+wb(r,":");case"OOOO":default:return"GMT"+ei(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+wb(r,":");case"zzzz":default:return"GMT"+ei(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ge(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ge(r,t.length)}};function wb(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+Ge(a,2)}function bb(e,t){return e%60===0?(e>0?"-":"+")+Ge(Math.abs(e)/60,2):ei(e,t)}function ei(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Ge(Math.trunc(r/60),2),a=Ge(r%60,2);return n+o+t+a}const Sb=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},DE=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},WB=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Sb(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Sb(r,t)).replace("{{time}}",DE(o,t))},HB={p:DE,P:WB},qB=/^D+$/,KB=/^Y+$/,GB=["D","DD","YY","YYYY"];function QB(e){return qB.test(e)}function YB(e){return KB.test(e)}function XB(e,t,n){const r=JB(e,t,n);if(console.warn(r),GB.includes(e))throw new RangeError(r)}function JB(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ZB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tU=/^'([^]*?)'?$/,nU=/''/g,rU=/[a-zA-Z]/;function vg(e,t,n){var m,g,v,C;const r=cd(),o=r.locale??BB,a=r.firstWeekContainsDate??((g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,l=r.weekStartsOn??((C=(v=r.locale)==null?void 0:v.options)==null?void 0:C.weekStartsOn)??0,u=qn(e);if(!iB(u))throw new RangeError("Invalid time value");let d=t.match(eU).map(E=>{const b=E[0];if(b==="p"||b==="P"){const _=HB[b];return _(E,o.formatLong)}return E}).join("").match(ZB).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const b=E[0];if(b==="'")return{isToken:!1,value:sU(E)};if(xb[b])return{isToken:!0,value:E};
359if(b.match(rU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:E}});o.localize.preprocessor&&(d=o.localize.preprocessor(u,d));const h={firstWeekContainsDate:a,weekStartsOn:l,locale:o};return d.map(E=>{if(!E.isToken)return E.value;const b=E.value;(YB(b)||QB(b))&&XB(b,t,String(e));const _=xb[b[0]];return _(u,b,o.localize,h)}).join("")}function sU(e){const t=e.match(tU);return t?t[1].replace(nU,"'"):e}function Cb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Al(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Cb(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Cb(e[o],null)}}}}function gt(...e){return w.useCallback(Al(...e),e)}var iU=Symbol.for("react.lazy"),$u=Gu[" use ".trim().toString()];function oU(e){return typeof e=="object"&&e!==null&&"then"in e}function IE(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===iU&&"_payload"in e&&oU(e._payload)}function FE(e){const t=lU(e),n=w.forwardRef((r,o)=>{let{children:a,...l}=r;IE(a)&&typeof $u=="function"&&(a=$u(a._payload));const u=w.Children.toArray(a),d=u.find(uU);if(d){const h=d.props.children,m=u.map(g=>g===d?w.Children.count(h)>1?w.Children.only(null):w.isValidElement(h)?h.props.children:null:g);return p.jsx(t,{...l,ref:o,children:w.isValidElement(h)?w.cloneElement(h,void 0,m):null})}return p.jsx(t,{...l,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var aU=FE("Slot");function lU(e){const t=w.forwardRef((n,r)=>{let{children:o,...a}=n;if(IE(o)&&typeof $u=="function"&&(o=$u(o._payload)),w.isValidElement(o)){const l=fU(o),u=dU(a,o.props);return o.type!==w.Fragment&&(u.ref=r?Al(r,l):l),w.cloneElement(o,u)}return w.Children.count(o)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cU=Symbol("radix.slottable");function uU(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cU}function dU(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...u)=>{const d=a(...u);return o(...u),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function fU(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const hU=Qu("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),We=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const l=r?aU:"button";return p.jsx(l,{className:Ve(hU({variant:t,size:n,className:e})),ref:a,...o})});We.displayName="Button";const at=w.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:Ve("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));at.displayName="Input";function pU({bulletin:e,onClose:t}){const n=dr(),[r,o]=w.useState(e.title||""),[a,l]=w.useState(e.description||""),[u,d]=w.useState(!1),[h,m]=w.useState(e.video_url||""),g=dn({mutationFn:_=>Oe.entities.NewsBulletin.update(e.id,_),onSuccess:()=>{n.invalidateQueries({queryKey:["bulletins"]}),t()}}),v=dn({mutationFn:()=>Oe.entities.NewsBulletin.delete(e.id),onSuccess:()=>{n.invalidateQueries({queryKey:["bulletins"]}),t()}}),C=async _=>{var P;const S=(P=_.target.files)==null?void 0:P[0];if(!S)return;d(!0);const{file_url:k}=await Oe.integrations.Core.UploadFile({file:S});m(k),d(!1)},E=()=>
359{g.mutate({title:r,description:a,video_url:h})},b=()=>{window.confirm("Are you sure you want to delete this bulletin?")&&v.mutate()};return p.jsx(Vm,{children:p.jsx(Et.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[200] bg-black/80 flex items-center justify-center p-4",onClick:t,children:p.jsxs(Et.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},className:"bg-card border border-border rounded-xl w-full max-w-lg p-6",onClick:_=>_.stopPropagation(),children:[p.jsxs("div",{className:"flex items-center justify-between mb-6",children:[p.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Edit Bulletin"}),p.jsx("button",{onClick:t,className:"text-muted-foreground hover:text-foreground",children:p.jsx(Pn,{className:"w-5 h-5"})})]}),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-1 block",children:"Title"}),p.jsx(at,{value:r,onChange:_=>o(_.target.value),className:"bg-secondary border-border"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-1 block",children:"Description"}),p.jsx("textarea",{value:a,onChange:_=>l(_.target.value),rows:3,className:"w-full rounded-md border border-input bg-secondary px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring resize-none"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-1 block",children:"Video"}),h&&p.jsx("p",{className:"text-xs text-accent mb-2 truncate",children:"â Video uploaded"}),p.jsxs("label",{className:"flex items-center gap-2 cursor-pointer w-fit px-4 py-2 border border-border rounded-md text-sm text-muted-foreground hover:text-foreground hover:border-primary transition-colors",children:[u?p.jsx(xs,{className:"w-4 h-4 animate-spin"}):p.jsx(sl,{className:"w-4 h-4"}),u?"Uploading...":"Replace Video",p.jsx("input",{type:"file",accept:"video/*",className:"hidden",onChange:C,disabled:u})]})]})]}),p.jsxs("div",{className:"flex gap-3 mt-6",children:[p.jsx(We,{variant:"destructive",onClick:b,disabled:v.isPending,className:"mr-auto",children:v.isPending?p.jsx(xs,{className:"w-4 h-4 animate-spin"}):"Delete"}),p.jsx(We,{variant:"outline",onClick:t,children:"Cancel"}),p.jsx(We,{onClick:E,disabled:g.isPending||u,children:g.isPending?p.jsx(xs,{className:"w-4 h-4 animate-spin"}):"Save"})]})]})})})}const mU={world_news:"World News",geopolitics:"Geopolitics",markets:"Markets",documentaries:"Documentaries",politics:"Politics",business:"Business",history:"History",christianity:"Christianity",special_report:"Special Report"};function xg({bulletin:e,index:t=0,onPlay:n,isAdmin:r}){const[o,a]=w.useState(!1),l=dr(),u=dn({mutationFn:async()=>{const d=await Oe.entities.NewsBulletin.list("-created_date",100);await Promise.all(d.filter(h=>h.is_featured).map(h=>Oe.entities.NewsBulletin.update(h.id,{is_featured:!1}))),await Oe.entities.NewsBulletin.update(e.id,{is_featured:!0})},onSuccess:()=>l.invalidateQueries({queryKey:["bulletins"]})});return p.jsxs("div",{className:"relative",children:[o&&p.jsx(pU,{bulletin:e,onClose:()=>a(!1)}),p.jsxs(Et.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.05,duration:.4},className:"group cursor-pointer relative",onClick:()=>n==null?void 0:n(e),children:[r&&p.jsxs("div",{className:"absolute top-2 right-2 z-10 flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[p.jsx("button",{onClick:d=>{d.stopPropagation(),u.mutate()},title:"Set as featured",className:`p-1.5 rounded-md text-white transition-colors ${e.is_featured?"bg-primary":"bg-black/70 hover:bg-primary"}`,children:p.jsx(y1,{className:"w-3.5 h-3.5",fill:e.is_featured?"currentColor":"none"})}),p.jsx("button",{onClick:d=>{d.stopPropagation(),a(!0)},className:"p-1.5 bg-black/70 hover:bg-primary text-white rounded-md transition-colors",children:p.jsx(dm,{className:"w-3.5 h-3.5"})})]}),p.jsxs("div",{className:"relative aspect-video rounded-lg overflow-hidden bg-muted mb-3",children:[e.thumbnail_url?p.jsx("img",{src:e.thumbnail_url,alt:e.title,className:"w-full h-full object-contain bg-black transition-transform duration-500 group-hover:scale-105"}):p.jsx("div",{className:"w-full h-full bg-gradient-to-br from-secondary to-muted flex items-center justify-center",children:p.jsx(Ro,{className:"w-10 h-10 text-muted-foreground"})}),p.jsx("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/40 transition-colors flex items-center justify-center",children:p.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/90 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity scale-75 group-hover:scale-100",children:p.jsx(Ro,{className:"w-5 h-5 text-primary-foreground ml-0.5",fill:"currentColor"})})}),e.duration&&p.jsx("span",{className:"absolute bottom-2 right-2 px-2 py-0.5 bg-black/80 text-white text-xs rounded font-mono",children:e.duration}),e.is_live&&p.jsx("span",{className:"absolute top-2 left-2 px-2 py-0.5 bg-destructive text-white text-xs rounded font-bold uppercase",children:"LIVE"})]}),p.jsxs("div",{children:[p.jsx("span",{className:"text-[11px] text-primary font-semibold uppercase tracking-wider",children:mU[e.category]||"News"}),p.jsx("h3",{className:"text-sm font-semibold text-foreground mt-1 line-clamp-2 group-hover:text-primary transition-colors leading-snug",children:e.title}),p.jsxs("div",{className:"flex items-center gap-3 mt-2 text-xs text-muted-foreground",children:[e.anchor_name&&p.jsx("span",{children:e.anchor_name}),e.created_date&&p.jsxs("span",{className:"flex items-center gap-1",children:[p.jsx(bT,{className:"w-3 h-3"}),vg(new Date(e.created_date),"MMM d, yyyy")]}),e.views>0&&p.jsxs("span",{className:"flex items-center gap-1",children:[p.jsx(ET,{className:"w-3 h-3"}
359),e.views.toLocaleString()]})]})]})]})]})}function gU(){const{user:e}=Pi(),t=(e==null?void 0:e.role)==="admin",n=dr(),[r,o]=_n.useState(!1),[a,l]=_n.useState({name:"",logo_url:"",website_url:""}),{data:u=[]}=jr({queryKey:["glp-companies"],queryFn:()=>Oe.entities.GLPCompany.list("order",100)}),d=dn({mutationFn:g=>Oe.entities.GLPCompany.create({name:g.name,image_url:g.logo_url,website_url:g.website_url}),onSuccess:()=>{n.invalidateQueries({queryKey:["glp-companies"]}),l({name:"",logo_url:"",website_url:""}),o(!1)}}),h=dn({mutationFn:g=>Oe.entities.GLPCompany.delete(g),onSuccess:()=>{n.invalidateQueries({queryKey:["glp-companies"]})}}),m=g=>{g.preventDefault(),!(!a.name||!a.logo_url)&&d.mutate(a)};return p.jsx("section",{className:"py-16 border-t border-border",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[p.jsxs("div",{className:"text-center mb-10",children:[p.jsx("span",{className:"text-xs text-primary font-semibold uppercase tracking-[0.2em]",children:"GLP Group Companies"}),p.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-foreground mt-2 font-playfair",children:"Our Brands & Partners"}),p.jsx("p",{className:"text-sm text-muted-foreground mt-2 max-w-lg mx-auto",children:"Explore the GLP GROUP ecosystem â a family of companies under ENNEA ORGANIZATION"})]}),t&&p.jsx("div",{className:"mb-8 flex justify-center",children:p.jsxs(We,{onClick:()=>o(!r),className:"flex items-center gap-2",children:[p.jsx(Yu,{className:"w-4 h-4"}),"Add Brand"]})}),r&&p.jsx(Et.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"bg-card border border-border rounded-lg p-6 mb-8 max-w-md mx-auto",children:p.jsxs("form",{onSubmit:m,className:"space-y-4",children:[p.jsx(at,{placeholder:"Brand name",value:a.name,onChange:g=>l({...a,name:g.target.value}),className:"bg-secondary border-border",required:!0}),p.jsx(at,{placeholder:"Logo URL",value:a.logo_url,onChange:g=>l({...a,logo_url:g.target.value}),className:"bg-secondary border-border",required:!0}),p.jsx(at,{placeholder:"Website URL (optional)",value:a.website_url,onChange:g=>l({...a,website_url:g.target.value}),className:"bg-secondary border-border"}),p.jsxs("div",{className:"flex gap-2",children:[p.jsxs(We,{type:"submit",disabled:d.isPending,className:"flex-1",children:[d.isPending?p.jsx(xs,{className:"w-4 h-4 animate-spin mr-2"}):null,"Add"]}),p.jsx(We,{type:"button",variant:"outline",onClick:()=>o(!1),className:"flex-1",children:"Cancel"})]})]})}),p.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4",children:u.map((g,v)=>p.jsxs(Et.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:v*.03},className:"group relative bg-secondary/50 rounded-lg overflow-hidden border border-border hover:border-primary/40 transition-all duration-300 aspect-video flex items-center justify-center p-2",children:[p.jsx("img",{src:g.image_url||g.logo_url,alt:g.name,className:"w-full h-full object-contain transition-transform duration-300 group-hover:scale-105"}),p.jsx("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/60 transition-colors flex items-center justify-center cursor-pointer",onClick:()=>g.website_url&&window.open(g.website_url,"_blank","noopener,noreferrer"),children:p.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity text-center px-2 space-y-1",children:[p.jsx("p",{className:"text-white text-xs font-semibold",children:g.name}),g.website_url&&p.jsx(p1,{className:"w-3.5 h-3.5 text-primary mx-auto"})]})}),t&&p.jsx("button",{onClick:()=>h.mutate(g.id),disabled:h.isPending,className:"absolute top-1 right-1 p-1 bg-destructive/80 hover:bg-destructive text-white rounded opacity-0 group-hover:opacity-100 transition-opacity z-10",children:p.jsx(Pn,{className:"w-3.5 h-3.5"})})]},g.id))})]})})}function yU(e){if(!e)return null;const t=e.match(/vimeo\.com\/(\d+)/);if(t)return`https://player.vimeo.com/video/${t[1]}?autoplay=1`;const n=e.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([a-zA-Z0-9_-]{11})/);return n?`https://www.youtube.com/embed/${n[1]}?autoplay=1`:null}function wg({bulletin:e,onClose:t}){if(!e)return null;const n=yU(e.video_url);return p.jsx(Vm,{children:p.jsx(Et.div,{initial:{opacity:0}
359,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[100] bg-black/90 flex items-center justify-center p-4",onClick:t,children:p.jsxs(Et.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},className:"relative w-full max-w-4xl",onClick:r=>r.stopPropagation(),children:[p.jsx("button",{onClick:t,className:"absolute -top-12 right-0 p-2 text-white hover:text-primary transition-colors",children:p.jsx(Pn,{className:"w-6 h-6"})}),p.jsxs("div",{className:"bg-card rounded-lg overflow-hidden",children:[e.video_url?n?p.jsx("iframe",{src:n,className:"w-full aspect-video bg-black",allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0}):p.jsx("video",{src:e.video_url,controls:!0,autoPlay:!0,className:"w-full aspect-video bg-black"}):p.jsx("div",{className:"w-full aspect-video bg-muted flex items-center justify-center",children:p.jsx("p",{className:"text-muted-foreground",children:"No video available"})}),p.jsxs("div",{className:"p-4",children:[p.jsx("h3",{className:"text-lg font-bold text-foreground",children:e.title}),e.description&&p.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:e.description})]})]})]})})})}const vU="https://media.base44.com/images/public/69bb308266591730c22b3141/196371eeb_generated_e72c92f3.png",xU=[{key:"all",label:"All",icon:g1},{key:"world_news",label:"World News",icon:PT},{key:"geopolitics",label:"Geopolitics",icon:RT},{key:"markets",label:"Markets",icon:fR}];function wU(){const{user:e}=Pi(),t=(e==null?void 0:e.role)==="admin",[n,r]=w.useState("all"),[o,a]=w.useState(null),{data:l=[],isLoading:u}=jr({queryKey:["bulletins"],queryFn:()=>Oe.entities.NewsBulletin.list("-created_date",50)}),d=l.filter(v=>v.status==="published"),h=d.find(v=>v.is_live)||null,m=d.find(v=>v.is_featured)||d[0],g=n==="all"?d:d.filter(v=>v.category===n);return p.jsxs("div",{children:[p.jsx(Z3,{featuredBulletin:h||m,isLive:!!h,heroBannerUrl:vU}),p.jsx(Et.section,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"bg-gradient-to-r from-primary/20 via-accent/10 to-primary/20 border-b border-primary/30 py-6",children:p.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"flex items-center justify-center w-10 h-10 rounded-full bg-primary/20",children:p.jsx(CR,{className:"w-5 h-5 text-primary"})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Trending News & Analysis"}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Explore latest headlines from GLP NEWS"})]})]}),p.jsxs("a",{href:"https://glpnews.base44.app/Trending",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors font-medium text-sm whitespace-nowrap",children:["Visit GLP NEWS",p.jsx(aT,{className:"w-4 h-4"})]})]})})}),p.jsx("section",{className:"py-12",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-end sm:justify-between gap-4 mb-8",children:[p.jsxs("div",{children:[p.jsx("span",{className:"text-xs text-primary font-semibold uppercase tracking-[0.2em]",children:"Latest Coverage"}),p.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-foreground mt-1 font-playfair",children:"News Bulletins"})]}),p.jsx("div",{className:"flex gap-1 bg-secondary/50 p-1 rounded-lg",children:xU.map(v=>p.jsxs("button",{onClick:()=>r(v.key),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium transition-colors ${n===v.key?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground"}`,children:[p.jsx(v.icon,{className:"w-3.5 h-3.5"}),p.jsx("span",{className:"hidden sm:inline",children:v.label})]},v.key))})]}),u?p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:Array(8).fill(0).map((v,C)=>p.jsxs("div",{className:"animate-pulse",children:[p.jsx("div",{className:"aspect-video bg-muted rounded-lg mb-3"}),p.jsx("div",{className:"h-3 bg-muted rounded w-16 mb-2"}),p.jsx("div",{className:"h-4 bg-muted rounded w-full mb-1"}),p.jsx("div",{className:"h-4 bg-muted rounded w-3/4"})]},C))}):g.length>0?p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:g.map((v,C)=>p.jsx(xg,{bulletin:v,index:C,onPlay:a,isAdmin:t},v.id))}):p.jsxs("div",{className:"text-center py-20",children:[p.jsx(g1,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),p.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"No bulletins yet"}),p.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Stay tuned for upcoming broadcasts"})]})]})}),p.jsx(gU,{}),p.jsx(wg,{bulletin:o,onClose:()=>a(null)})]})}function Eb(e,[t,n]){return Math.min(n,Math.max(t,e))}function $e(e,t,{checkForDefaultPrevented:n=!0}={}
vendor: 14,551 bytes, line 359
359){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ho(e,t=[]){let n=[];function r(a,l){const u=w.createContext(l),d=n.length;n=[...n,l];const h=g=>{var S;const{scope:v,children:C,...E}=g,b=((S=v==null?void 0:v[e])==null?void 0:S[d])||u,_=w.useMemo(()=>E,Object.values(E));return p.jsx(b.Provider,{value:_,children:C})};h.displayName=a+"Provider";function m(g,v){var b;const C=((b=v==null?void 0:v[e])==null?void 0:b[d])||u,E=w.useContext(C);if(E)return E;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${a}\``)}return[h,m]}const o=()=>{const a=n.map(l=>w.createContext(l));return function(u){const d=(u==null?void 0:u[e])||a;return w.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return o.scopeName=e,[r,bU(o,...t)]}function bU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const l=r.reduce((u,{useScope:d,scopeName:h})=>{const g=d(a)[`__scope${h}`];return{...u,...g}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function _b(e){const t=SU(e),n=w.forwardRef((r,o)=>{const{children:a,...l}=r,u=w.Children.toArray(a),d=u.find(EU);if(d){const h=d.props.children,m=u.map(g=>g===d?w.Children.count(h)>1?w.Children.only(null):w.isValidElement(h)?h.props.children:null:g);return p.jsx(t,{...l,ref:o,children:w.isValidElement(h)?w.cloneElement(h,void 0,m):null})}return p.jsx(t,{...l,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function SU(e){const t=w.forwardRef((n,r)=>{const{children:o,...a}=n;if(w.isValidElement(o)){const l=NU(o),u=_U(a,o.props);return o.type!==w.Fragment&&(u.ref=r?Al(r,l):l),w.cloneElement(o,u)}return w.Children.count(o)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var CU=Symbol("radix.slottable");function EU(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===CU}function _U(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...u)=>{const d=a(...u);return o(...u),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function NU(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function BE(e){const t=e+"CollectionProvider",[n,r]=Ho(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=b=>{const{scope:_,children:S}=b,k=_n.useRef(null),P=_n.useRef(new Map).current;return p.jsx(o,{scope:_,itemMap:P,collectionRef:k,children:S})};l.displayName=t;const u=e+"CollectionSlot",d=_b(u),h=_n.forwardRef((b,_)=>{const{scope:S,children:k}=b,P=a(u,S),T=gt(_,P.collectionRef);return p.jsx(d,{ref:T,children:k})});h.displayName=u;const m=e+"CollectionItemSlot",g="data-radix-collection-item",v=_b(m),C=_n.forwardRef((b,_)=>{const{scope:S,children:k,...P}=b,T=_n.useRef(null),j=gt(_,T),F=a(m,S);return _n.useEffect(()=>(F.itemMap.set(T,{ref:T,...P}),()=>void F.itemMap.delete(T))),p.jsx(v,{[g]:"",ref:j,children:k})});C.displayName=m;function E(b){const _=a(e+"CollectionConsumer",b);return _n.useCallback(()=>{const k=_.collectionRef.current;if(!k)return[];const P=Array.from(k.querySelectorAll(`[${g}]`));return Array.from(_.itemMap.values()).sort((F,U)=>P.indexOf(F.ref.current)-P.indexOf(U.ref.current))},[_.collectionRef,_.itemMap])}return[{Provider:l,Slot:h,ItemSlot:C},E,r]}var kU=w.createContext(void 0);function bg(e){const t=w.useContext(kU);return e||t||"ltr"}function PU(e){const t=TU(e),n=w.forwardRef((r,o)=>{const{children:a,...l}=r,u=w.Children.toArray(a),d=u.find(jU);if(d){const h=d.props.children,m=u.map(g=>g===d?w.Children.count(h)>1?w.Children.only(null):w.isValidElement(h)?h.props.children:null:g);return p.jsx(t,{...l,ref:o,children:w.isValidElement(h)?w.cloneElement(h,void 0,m):null})}return p.jsx(t,{...l,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function TU(e){const t=w.forwardRef((n,r)=>{const{children:o,...a}=n;if(w.isValidElement(o)){const l=OU(o),u=AU(a,o.props);return o.type!==w.Fragment&&(u.ref=r?Al(r,l):l),w.cloneElement(o,u)}return w.Children.count(o)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var RU=Symbol("radix.slottable");function jU(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===RU}function AU(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...u)=>{const d=a(...u);return o(...u),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function OU(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var MU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ye=MU.reduce((e,t)=>{const n=PU(`Primitive.${t}`),r=w.forwardRef((o,a)=>{const{asChild:l,...u}=o,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(d,{...u,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function LU(e,t){e&&Cl.flushSync(()=>e.dispatchEvent(t))}function ks(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function DU(e,t=globalThis==null?void 0:globalThis.document){const n=ks(e);w.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var IU="DismissableLayer",qp="dismissableLayer.update",FU="dismissableLayer.pointerDownOutside",BU="dismissableLayer.focusOutside",Nb,UE=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),VE=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...d}=e,h=w.useContext(UE),[m,g]=w.useState(null),v=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=w.useState({}),E=gt(t,U=>g(U)),b=Array.from(h.layers),[_]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),S=b.indexOf(_),k=m?b.indexOf(m):-1,P=h.layersWithOutsidePointerEventsDisabled.size>0,T=k>=S,j=$U(U=>{const O=U.target,H=[...h.branches].some(X=>X.contains(O));!T||H||(o==null||o(U),l==null||l(U),U.defaultPrevented||u==null||u())},v),F=zU(U=>{const O=U.target;[...h.branches].some(X=>X.contains(O))||(a==null||a(U),l==null||l(U),U.defaultPrevented||u==null||u())},v);return DU(U=>{k===h.layers.size-1&&(r==null||r(U),!U.defaultPrevented&&u&&(U.preventDefault(),u()))},v),w.useEffect(()=>{if(m)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Nb=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),kb(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Nb)}},[m,v,n,h]),w.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),kb())},[m,h]),w.useEffect(()=>{const U=()=>C({});return document.addEventListener(qp,U),()=>document.removeEventListener(qp,U)},[]),p.jsx(Ye.div,{...d,ref:E,style:{pointerEvents:P?T?"auto":"none":void 0,...e.style},onFocusCapture:$e(e.onFocusCapture,F.onFocusCapture),onBlurCapture:$e(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:$e(e.onPointerDownCapture,j.onPointerDownCapture)})});VE.displayName=IU;var UU="DismissableLayerBranch",VU=w.forwardRef((e,t)=>{const n=w.useContext(UE),r=w.useRef(null),o=gt(t,r);return w.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),p.jsx(Ye.div,{...e,ref:o})});VU.displayName=UU;function $U(e,t=globalThis==null?void 0:globalThis.document){const n=ks(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const a=u=>{if(u.target&&!r.current){let d=function(){$E(FU,n,h,{discrete:!0})};const h={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function zU(e,t=globalThis==null?void 0:globalThis.document){const n=ks(e),r=w.useRef(!1);return w.useEffect(()=>{const o=a=>{a.target&&!r.current&&$E(BU,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function kb(){const e=new CustomEvent(qp);document.dispatchEvent(e)}function $E(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?LU(o,a):o.dispatchEvent(a)}var qh=0;function WU(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pb()),document.body.insertAdjacentElement("beforeend",e[1]??Pb()),qh++,()=>{qh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),qh--}},[])}function Pb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Kh="focusScope.autoFocusOnMount",Gh="focusScope.autoFocusOnUnmount",Tb={bubbles:!1,cancelable:!0},HU="FocusScope",zE=w.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...l}=e,[u,d]=w.useState(null),h=ks(o),m=ks(a),g=w.useRef(null),v=gt(t,b=>d(b)),C=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let b=function(P){if(C.paused||!u)return;const T=P.target;u.contains(T)?g.current=T:as(g.current,{select:!0})},_=function(P){if(C.paused||!u)return;const T=P.relatedTarget;T!==null&&(u.contains(T)||as(g.current,{select:!0}))},S=function(P){if(document.activeElement===document.body)for(const j of P)j.removedNodes.length>0&&as(u)};document.addEventListener("focusin",b),document.addEventListener("focusout",_);const k=new MutationObserver(S);return u&&k.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",_),k.disconnect()}}},[r,u,C.paused]),w.useEffect(()=>{if(u){jb.add(C);const b=document.activeElement;if(!u.contains(b)){const S=new CustomEvent(Kh,Tb);u.addEventListener(Kh,h),u.dispatchEvent(S),S.defaultPrevented||(qU(XU(WE(u)),{select:!0}),document.activeElement===b&&as(u))}return()=>{u.removeEventListener(Kh,h),setTimeout(()=>{const S=new CustomEvent(Gh,Tb);u.addEventListener(Gh,m),u.dispatchEvent(S),S.defaultPrevented||as(b??document.body,{select:!0}),u.removeEventListener(Gh,m),jb.remove(C)},0)}}},[u,h,m,C]);const E=w.useCallback(b=>{if(!n&&!r||C.paused)return;const _=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,S=document.activeElement;if(_&&S){const k=b.currentTarget,[P,T]=KU(k);P&&T?!b.shiftKey&&S===T?(b.preventDefault(),n&&as(P,{select:!0})):b.shiftKey&&S===P&&(b.preventDefault(),n&&as(T,{select:!0})):S===k&&b.preventDefault()}},[n,r,C.paused]);return p.jsx(Ye.div,{tabIndex:-1,...l,ref:v,onKeyDown:E})});zE.displayName=HU;function qU(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(as(r,{select:t}),document.activeElement!==n)return}function KU(e){const t=WE(e),n=Rb(t,e),r=Rb(t.reverse(),e);return[n,r]}function WE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rb(e,t){for(const n of e)if(!GU(n,{upTo:t}))return n}function GU(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function QU(e){return e instanceof HTMLInputElement&&"select"in e}function as(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&QU(e)&&t&&e.select()}}var jb=YU();function YU(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ab(e,t),e.unshift(t)},remove(t){var n;e=Ab(e,t),(n=e[0])==null||n.resume()}}}function Ab(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function XU(e){return e.filter(t=>t.tagName!=="A")}var zt=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},JU=Gu[" useId ".trim().toString()]||(()=>{}),ZU=0;function Ol(e){const[t,n]=w.useState(JU());return zt(()=>{n(r=>r??String(ZU++))},[e]),t?`radix-${t}`:""}const eV=["top","right","bottom","left"],Ps=Math.min,un=Math.max,zu=Math.round,su=Math.floor,lr=e=>({x:e,y:e}),tV={left:"right",right:"left",bottom:"top",top:"bottom"},nV={start:"end",end:"start"};function Kp(e,t,n){return un(e,Ps(t,n))}function Or(e,t){return typeof e=="function"?e(t):e}function Mr(e){return e.split("-")[0]}function qo(e){return e.split("-")[1]}function Sg(e){return e==="x"?"y":"x"}function Cg(e){return e==="y"?"height":"width"}const rV=new Set(["top","bottom"]);function rr(e){return rV.has(Mr(e))?"y":"x"}function Eg(e){return Sg(rr(e))}function sV(e,t,n){n===void 0&&(n=!1);const r=qo(e),o=Eg(e),a=Cg(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=Wu(l)),[l,Wu(l)]}function iV(e){const t=Wu(e);return[Gp(e),t,Gp(t)]}function Gp(e){return e.replace(/start|end/g,t=>nV[t])}const Ob=["left","right"],Mb=["right","left"],oV=["top","bottom"],aV=["bottom","top"];function lV(e,t,n){switch(e){case"top":case"bottom":return n?t?Mb:Ob:t?Ob:Mb;case"left":case"right":return t?oV:aV;default:return[]}}function cV(e,t,n,r){const o=qo(e);let a=lV(Mr(e),n==="start",r);
vendor: 9,520 bytes, line 359
359return o&&(a=a.map(l=>l+"-"+o),t&&(a=a.concat(a.map(Gp)))),a}function Wu(e){return e.replace(/left|right|bottom|top/g,t=>tV[t])}function uV(e){return{top:0,right:0,bottom:0,left:0,...e}}function HE(e){return typeof e!="number"?uV(e):{top:e,right:e,bottom:e,left:e}}function Hu(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Lb(e,t,n){let{reference:r,floating:o}=e;const a=rr(t),l=Eg(t),u=Cg(l),d=Mr(t),h=a==="y",m=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,v=r[u]/2-o[u]/2;let C;switch(d){case"top":C={x:m,y:r.y-o.height};break;case"bottom":C={x:m,y:r.y+r.height};break;case"right":C={x:r.x+r.width,y:g};break;case"left":C={x:r.x-o.width,y:g};break;default:C={x:r.x,y:r.y}}switch(qo(t)){case"start":C[l]-=v*(n&&h?-1:1);break;case"end":C[l]+=v*(n&&h?-1:1);break}return C}async function dV(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:l,elements:u,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:C=0}=Or(t,e),E=HE(C),_=u[v?g==="floating"?"reference":"floating":g],S=Hu(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(_)))==null||n?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:h,rootBoundary:m,strategy:d})),k=g==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),T=await(a.isElement==null?void 0:a.isElement(P))?await(a.getScale==null?void 0:a.getScale(P))||{x:1,y:1}:{x:1,y:1},j=Hu(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:k,offsetParent:P,strategy:d}):k);return{top:(S.top-j.top+E.top)/T.y,bottom:(j.bottom-S.bottom+E.bottom)/T.y,left:(S.left-j.left+E.left)/T.x,right:(j.right-S.right+E.right)/T.x}}const fV=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,u=a.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:g}=Lb(h,r,d),v=r,C={},E=0;for(let _=0;_<u.length;_++){var b;const{name:S,fn:k}=u[_],{x:P,y:T,data:j,reset:F}=await k({x:m,y:g,initialPlacement:r,placement:v,strategy:o,middlewareData:C,rects:h,platform:{...l,detectOverflow:(b=l.detectOverflow)!=null?b:dV},elements:{reference:e,floating:t}});m=P??m,g=T??g,C={...C,[S]:{...C[S],...j}},F&&E<=50&&(E++,typeof F=="object"&&(F.placement&&(v=F.placement),F.rects&&(h=F.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):F.rects),{x:m,y:g}=Lb(h,v,d)),_=-1)}return{x:m,y:g,placement:v,strategy:o,middlewareData:C}},hV=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:l,elements:u,middlewareData:d}=t,{element:h,padding:m=0}=Or(e,t)||{};if(h==null)return{};const g=HE(m),v={x:n,y:r},C=Eg(o),E=Cg(C),b=await l.getDimensions(h),_=C==="y",S=_?"top":"left",k=_?"bottom":"right",P=_?"clientHeight":"clientWidth",T=a.reference[E]+a.reference[C]-v[C]-a.floating[E],j=v[C]-a.reference[C],F=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let U=F?F[P]:0;(!U||!await(l.isElement==null?void 0:l.isElement(F)))&&(U=u.floating[P]||a.floating[E]);const O=T/2-j/2,H=U/2-b[E]/2-1,X=Ps(g[S],H),ne=Ps(g[k],H),ue=X,he=U-b[E]-ne,ae=U/2-b[E]/2+O,Se=Kp(ue,ae,he),J=!d.arrow&&qo(o)!=null&&ae!==Se&&a.reference[E]/2-(ae<ue?X:ne)-b[E]/2<0,ee=J?ae<ue?ae-ue:ae-he:0;return{[C]:v[C]+ee,data:{[C]:Se,centerOffset:ae-Se-ee,...J&&{alignmentOffset:ee}},reset:J}}}),pV=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:l,initialPlacement:u,platform:d,elements:h}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:b=!0,..._}=Or(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const S=Mr(o),k=rr(u),P=Mr(u)===u,T=await(d.isRTL==null?void 0:d.isRTL(h.floating)),j=v||(P||!b?[Wu(u)]:iV(u)),F=E!=="none";!v&&F&&j.push(...cV(u,b,E,T));const U=[u,...j],O=await d.detectOverflow(t,_),H=[];let X=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&H.push(O[S]),g){const ae=sV(o,l,T);H.push(O[ae[0]],O[ae[1]])}if(X=[...X,{placement:o,overflows:H}],!H.every(ae=>ae<=0)){var ne,ue;const ae=(((ne=a.flip)==null?void 0:ne.index)||0)+1,Se=U[ae];if(Se&&(!(g==="alignment"?k!==rr(Se):!1)||X.every(z=>rr(z.placement)===k?z.overflows[0]>0:!0)))return{data:{index:ae,overflows:X},reset:{placement:Se}};let J=(ue=X.filter(ee=>ee.overflows[0]<=0).sort((ee,z)=>ee.overflows[1]-z.overflows[1])[0])==null?void 0:ue.placement;if(!J)switch(C){case"bestFit":{var he;const ee=(he=X.filter(z=>{if(F){const te=rr(z.placement);return te===k||te==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(te=>te>0).reduce((te,W)=>te+W,0)]).sort((z,te)=>z[1]-te[1])[0])==null?void 0:he[0];ee&&(J=ee);break}case"initialPlacement":J=u;break}if(o!==J)return{reset:{placement:J}}}return{}}}};function Db(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ib(e){return eV.some(t=>e[t]>=0)}const mV=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=Or(e,t);switch(o){case"referenceHidden":{const l=await r.detectOverflow(t,{...a,elementContext:"reference"}),u=Db(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Ib(u)}}}case"escaped":{const l=await r.detectOverflow(t,{...a,altBoundary:!0}),u=Db(l,n.floating);return{data:{escapedOffsets:u,escaped:Ib(u)}}}default:return{}}}}},qE=new Set(["left","top"]);async function gV(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=Mr(n),u=qo(n),d=rr(n)==="y",h=qE.has(l)?-1:1,m=a&&d?-1:1,g=Or(t,e);let{mainAxis:v,crossAxis:C,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof E=="number"&&(C=u==="end"?E*-1:E),d?{x:C*m,y:v*h}:{x:v*h,y:C*m}}const yV=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:l,middlewareData:u}=t,d=await gV(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:l}}}}},vV=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:d={fn:S=>{let{x:k,y:P}=S;return{x:k,y:P}}},...h}=Or(e,t),m={x:n,y:r},g=await a.detectOverflow(t,h),v=rr(Mr(o)),C=Sg(v);let E=m[C],b=m[v];if(l){const S=C==="y"?"top":"left",k=C==="y"?"bottom":"right",P=E+g[S],T=E-g[k];E=Kp(P,E,T)}if(u){const S=v==="y"?"top":"left",k=v==="y"?"bottom":"right",P=b+g[S],T=b-g[k];b=Kp(P,b,T)}const _=d.fn({...t,[C]:E,[v]:b});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[C]:l,[v]:u}}}}}},xV=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:h=!0}=Or(e,t),m={x:n,y:r},g=rr(o),v=Sg(g);let C=m[v],E=m[g];const b=Or(u,t),_=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(d){const P=v==="y"?"height":"width",T=a.reference[v]-a.floating[P]+_.mainAxis,j=a.reference[v]+a.reference[P]-_.mainAxis;C<T?C=T:C>j&&(C=j)}if(h){var S,k;const P=v==="y"?"width":"height",T=qE.has(Mr(o)),j=a.reference[g]-a.floating[P]+(T&&((S=l.offset)==null?void 0:S[g])||0)+(T?0:_.crossAxis),F=a.reference[g]+a.reference[P]+(T?0:((k=l.offset)==null?void 0:k[g])||0)-(T?_.crossAxis:0);E<j?E=j:E>F&&(E=F)}return{[v]:C,[g]:E}}}},wV=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:l,elements:u}=t,{apply:d=()=>{},...h}=Or(e,t),m=await l.detectOverflow(t,h),g=Mr(o),v=qo(o),C=rr(o)==="y",{width:E,height:b}=a.floating;let _,S;g==="top"||g==="bottom"?(_=g,S=v===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(S=g,_=v==="end"?"top":"bottom");const k=b-m.top-m.bottom,P=E-m.left-m.right,T=Ps(b-m[_],k),j=Ps(E-m[S],P),F=!t.middlewareData.shift;let U=T,O=j;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(U=k),F&&!v){const X=un(m.left,0),ne=un(m.right,0),ue=un(m.top,0),he=un(m.bottom,0);C?O=E-2*(X!==0||ne!==0?X+ne:un(m.left,m.right)):U=b-2*(ue!==0||he!==0?ue+he:un(m.top,m.bottom))}await d({...t,availableWidth:O,availableHeight:U});const H=await l.getDimensions(u.floating);return E!==H.width||b!==H.height?{reset:{rects:!0}}:{}}}};function ud(){return typeof window<"u"}function Ko(e){return KE(e)?(e.nodeName||"").toLowerCase():"#document"}function hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fr(e){var t;return(t=(KE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function KE(e){return ud()?e instanceof Node||e instanceof hn(e).Node:!1}function Wn(e){return ud()?e instanceof Element||e instanceof hn(e).Element:!1}function ur(e){return ud()?e instanceof HTMLElement||e instanceof hn(e).HTMLElement:!1}function Fb(e){return!ud()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof hn(e).ShadowRoot}const bV=new Set(["inline","contents"]);function Ml(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Hn(e);
vendor: 23,457 bytes, line 359
359return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!bV.has(o)}const SV=new Set(["table","td","th"]);function CV(e){return SV.has(Ko(e))}const EV=[":popover-open",":modal"];function dd(e){return EV.some(t=>{try{return e.matches(t)}catch{return!1}})}const _V=["transform","translate","scale","rotate","perspective"],NV=["transform","translate","scale","rotate","perspective","filter"],kV=["paint","layout","strict","content"];function _g(e){const t=Ng(),n=Wn(e)?Hn(e):e;return _V.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||NV.some(r=>(n.willChange||"").includes(r))||kV.some(r=>(n.contain||"").includes(r))}function PV(e){let t=Ts(e);for(;ur(t)&&!Mo(t);){if(_g(t))return t;if(dd(t))return null;t=Ts(t)}return null}function Ng(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const TV=new Set(["html","body","#document"]);function Mo(e){return TV.has(Ko(e))}function Hn(e){return hn(e).getComputedStyle(e)}function fd(e){return Wn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ts(e){if(Ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fb(e)&&e.host||fr(e);return Fb(t)?t.host:t}function GE(e){const t=Ts(e);return Mo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ur(t)&&Ml(t)?t:GE(t)}function gl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=GE(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),l=hn(o);if(a){const u=Qp(l);return t.concat(l,l.visualViewport||[],Ml(o)?o:[],u&&n?gl(u):[])}return t.concat(o,gl(o,[],n))}function Qp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function QE(e){const t=Hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ur(e),a=o?e.offsetWidth:n,l=o?e.offsetHeight:r,u=zu(n)!==a||zu(r)!==l;return u&&(n=a,r=l),{width:n,height:r,$:u}}function kg(e){return Wn(e)?e:e.contextElement}function go(e){const t=kg(e);if(!ur(t))return lr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=QE(t);let l=(a?zu(n.width):n.width)/r,u=(a?zu(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const RV=lr(0);function YE(e){const t=hn(e);return!Ng()||!t.visualViewport?RV:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jV(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hn(e)?!1:t}function bi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=kg(e);let l=lr(1);t&&(r?Wn(r)&&(l=go(r)):l=go(e));const u=jV(a,n,r)?YE(a):lr(0);let d=(o.left+u.x)/l.x,h=(o.top+u.y)/l.y,m=o.width/l.x,g=o.height/l.y;if(a){const v=hn(a),C=r&&Wn(r)?hn(r):r;let E=v,b=Qp(E);for(;b&&r&&C!==E;){const _=go(b),S=b.getBoundingClientRect(),k=Hn(b),P=S.left+(b.clientLeft+parseFloat(k.paddingLeft))*_.x,T=S.top+(b.clientTop+parseFloat(k.paddingTop))*_.y;d*=_.x,h*=_.y,m*=_.x,g*=_.y,d+=P,h+=T,E=hn(b),b=Qp(E)}}return Hu({width:m,height:g,x:d,y:h})}function hd(e,t){const n=fd(e).scrollLeft;return t?t.left+n:bi(fr(e)).left+n}function XE(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-hd(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function AV(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",l=fr(r),u=t?dd(t.floating):!1;if(r===l||u&&a)return n;let d={scrollLeft:0,scrollTop:0},h=lr(1);const m=lr(0),g=ur(r);if((g||!g&&!a)&&((Ko(r)!=="body"||Ml(l))&&(d=fd(r)),ur(r))){const C=bi(r);h=go(r),m.x=C.x+r.clientLeft,m.y=C.y+r.clientTop}const v=l&&!g&&!a?XE(l,d):lr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+m.x+v.x,y:n.y*h.y-d.scrollTop*h.y+m.y+v.y}}function OV(e){return Array.from(e.getClientRects())}function MV(e){const t=fr(e),n=fd(e),r=e.ownerDocument.body,o=un(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=un(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+hd(e);const u=-n.scrollTop;return Hn(r).direction==="rtl"&&(l+=un(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:l,y:u}}const Bb=25;function LV(e,t){const n=hn(e),r=fr(e),o=n.visualViewport;let a=r.clientWidth,l=r.clientHeight,u=0,d=0;if(o){a=o.width,l=o.height;const m=Ng();(!m||m&&t==="fixed")&&(u=o.offsetLeft,d=o.offsetTop)}const h=hd(r);if(h<=0){const m=r.ownerDocument,g=m.body,v=getComputedStyle(g),C=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,E=Math.abs(r.clientWidth-g.clientWidth-C);E<=Bb&&(a-=E)}else h<=Bb&&(a+=h);return{width:a,height:l,x:u,y:d}}const DV=new Set(["absolute","fixed"]);function IV(e,t){const n=bi(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ur(e)?go(e):lr(1),l=e.clientWidth*a.x,u=e.clientHeight*a.y,d=o*a.x,h=r*a.y;return{width:l,height:u,x:d,y:h}}function Ub(e,t,n){let r;if(t==="viewport")r=LV(e,n);else if(t==="document")r=MV(fr(e));else if(Wn(t))r=IV(t,n);else{const o=YE(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Hu(r)}function JE(e,t){const n=Ts(e);return n===t||!Wn(n)||Mo(n)?!1:Hn(n).position==="fixed"||JE(n,t)}function FV(e,t){const n=t.get(e);if(n)return n;let r=gl(e,[],!1).filter(u=>Wn(u)&&Ko(u)!=="body"),o=null;const a=Hn(e).position==="fixed";let l=a?Ts(e):e;for(;Wn(l)&&!Mo(l);){const u=Hn(l),d=_g(l);!d&&u.position==="fixed"&&(o=null),(a?!d&&!o:!d&&u.position==="static"&&!!o&&DV.has(o.position)||Ml(l)&&!d&&JE(e,l))?r=r.filter(m=>m!==l):o=u,l=Ts(l)}return t.set(e,r),r}function BV(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?dd(t)?[]:FV(t,this._c):[].concat(n),r],u=l[0],d=l.reduce((h,m)=>{const g=Ub(t,m,o);return h.top=un(g.top,h.top),h.right=Ps(g.right,h.right),h.bottom=Ps(g.bottom,h.bottom),h.left=un(g.left,h.left),h},Ub(t,u,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function UV(e){const{width:t,height:n}=QE(e);return{width:t,height:n}}function VV(e,t,n){const r=ur(t),o=fr(t),a=n==="fixed",l=bi(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const d=lr(0);function h(){d.x=hd(o)}if(r||!r&&!a)if((Ko(t)!=="body"||Ml(o))&&(u=fd(t)),r){const C=bi(t,!0,a,t);d.x=C.x+t.clientLeft,d.y=C.y+t.clientTop}else o&&h();a&&!r&&o&&h();const m=o&&!r&&!a?XE(o,u):lr(0),g=l.left+u.scrollLeft-d.x-m.x,v=l.top+u.scrollTop-d.y-m.y;return{x:g,y:v,width:l.width,height:l.height}}function Qh(e){return Hn(e).position==="static"}function Vb(e,t){if(!ur(e)||Hn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fr(e)===n&&(n=n.ownerDocument.body),n}function ZE(e,t){const n=hn(e);if(dd(e))return n;if(!ur(e)){let o=Ts(e);for(;o&&!Mo(o);){if(Wn(o)&&!Qh(o))return o;o=Ts(o)}return n}let r=Vb(e,t);for(;r&&CV(r)&&Qh(r);)r=Vb(r,t);return r&&Mo(r)&&Qh(r)&&!_g(r)?n:r||PV(e)||n}const $V=async function(e){const t=this.getOffsetParent||ZE,n=this.getDimensions,r=await n(e.floating);return{reference:VV(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zV(e){return Hn(e).direction==="rtl"}const WV={convertOffsetParentRelativeRectToViewportRelativeRect:AV,getDocumentElement:fr,getClippingRect:BV,getOffsetParent:ZE,getElementRects:$V,getClientRects:OV,getDimensions:UV,getScale:go,isElement:Wn,isRTL:zV};function e_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function HV(e,t){let n=null,r;const o=fr(e);function a(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),a();const h=e.getBoundingClientRect(),{left:m,top:g,width:v,height:C}=h;if(u||t(),!v||!C)return;const E=su(g),b=su(o.clientWidth-(m+v)),_=su(o.clientHeight-(g+C)),S=su(m),P={rootMargin:-E+"px "+-b+"px "+-_+"px "+-S+"px",threshold:un(0,Ps(1,d))||1};let T=!0;function j(F){const U=F[0].intersectionRatio;if(U!==d){if(!T)return l();U?l(!1,U):r=setTimeout(()=>{l(!1,1e-7)},1e3)}U===1&&!e_(h,e.getBoundingClientRect())&&l(),T=!1}try{n=new IntersectionObserver(j,{...P,root:o.ownerDocument})}catch{n=new IntersectionObserver(j,P)}n.observe(e)}return l(!0),a}function qV(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=kg(e),m=o||a?[...h?gl(h):[],...gl(t)]:[];m.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),a&&S.addEventListener("resize",n)});const g=h&&u?HV(h,n):null;let v=-1,C=null;l&&(C=new ResizeObserver(S=>{let[k]=S;k&&k.target===h&&C&&(C.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var P;(P=C)==null||P.observe(t)})),n()}),h&&!d&&C.observe(h),C.observe(t));let E,b=d?bi(e):null;d&&_();function _(){const S=bi(e);b&&!e_(b,S)&&n(),b=S,E=requestAnimationFrame(_)}return n(),()=>{var S;m.forEach(k=>{o&&k.removeEventListener("scroll",n),a&&k.removeEventListener("resize",n)}),g==null||g(),(S=C)==null||S.disconnect(),C=null,d&&cancelAnimationFrame(E)}}const KV=yV,GV=vV,QV=pV,YV=wV,XV=mV,$b=hV,JV=xV,ZV=(e,t,n)=>{const r=new Map,o={platform:WV,...n},a={...o.platform,_c:r};return fV(e,t,{...o,platform:a})};var e5=typeof document<"u",t5=function(){},Eu=e5?w.useLayoutEffect:t5;function qu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!qu(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!qu(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function t_(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zb(e,t){const n=t_(e);return Math.round(t*n)/n}function Yh(e){const t=w.useRef(e);return Eu(()=>{t.current=e}),t}function n5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:d,open:h}=e,[m,g]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,C]=w.useState(r);qu(v,r)||C(r);const[E,b]=w.useState(null),[_,S]=w.useState(null),k=w.useCallback(z=>{z!==F.current&&(F.current=z,b(z))},[]),P=w.useCallback(z=>{z!==U.current&&(U.current=z,S(z))},[]),T=a||E,j=l||_,F=w.useRef(null),U=w.useRef(null),O=w.useRef(m),H=d!=null,X=Yh(d),ne=Yh(o),ue=Yh(h),he=w.useCallback(()=>{if(!F.current||!U.current)return;const z={placement:t,strategy:n,middleware:v};ne.current&&(z.platform=ne.current),ZV(F.current,U.current,z).then(te=>{const W={...te,isPositioned:ue.current!==!1};ae.current&&!qu(O.current,W)&&(O.current=W,Cl.flushSync(()=>{g(W)}))})},[v,t,n,ne,ue]);Eu(()=>{h===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,g(z=>({...z,isPositioned:!1})))},[h]);const ae=w.useRef(!1);Eu(()=>(ae.current=!0,()=>{ae.current=!1}),[]),Eu(()=>{if(T&&(F.current=T),j&&(U.current=j),T&&j){if(X.current)return X.current(T,j,he);he()}},[T,j,he,X,H]);const Se=w.useMemo(()=>({reference:F,floating:U,setReference:k,setFloating:P}),[k,P]),J=w.useMemo(()=>({reference:T,floating:j}),[T,j]),ee=w.useMemo(()=>{const z={position:n,left:0,top:0};if(!J.floating)return z;const te=zb(J.floating,m.x),W=zb(J.floating,m.y);return u?{...z,transform:"translate("+te+"px, "+W+"px)",...t_(J.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:W}},[n,u,J.floating,m.x,m.y]);return w.useMemo(()=>({...m,update:he,refs:Se,elements:J,floatingStyles:ee}),[m,he,Se,J,ee])}const r5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?$b({element:r.current,padding:o}).fn(n):{}:r?$b({element:r,padding:o}).fn(n):{}}}},s5=(e,t)=>({...KV(e),options:[e,t]}),i5=(e,t)=>({...GV(e),options:[e,t]}),o5=(e,t)=>({...JV(e),options:[e,t]}),a5=(e,t)=>({...QV(e),options:[e,t]}),l5=(e,t)=>({...YV(e),options:[e,t]}),c5=(e,t)=>({...XV(e),options:[e,t]}),u5=(e,t)=>({...r5(e),options:[e,t]});var d5="Arrow",n_=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return p.jsx(Ye.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});n_.displayName=d5;var f5=n_;function r_(e){const[t,n]=w.useState(void 0);return zt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let l,u;if("borderBoxSize"in a){const d=a.borderBoxSize,h=Array.isArray(d)?d[0]:d;l=h.inlineSize,u=h.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Pg="Popper",[s_,i_]=Ho(Pg),[h5,o_]=s_(Pg),a_=e=>{const{__scopePopper:t,children:n}=e,[r,o]=w.useState(null);return p.jsx(h5,{scope:t,anchor:r,onAnchorChange:o,children:n})};a_.displayName=Pg;var l_="PopperAnchor",c_=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=o_(l_,n),l=w.useRef(null),u=gt(t,l),d=w.useRef(null);return w.useEffect(()=>{const h=d.current;d.current=(r==null?void 0:r.current)||l.current,h!==d.current&&a.onAnchorChange(d.current)}),r?null:p.jsx(Ye.div,{...o,ref:u})});c_.displayName=l_;var Tg="PopperContent",[p5,m5]=s_(Tg),u_=w.forwardRef((e,t)=>{var K,ie,ce,Te,je,Ne;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:g="partial",hideWhenDetached:v=!1,updatePositionStrategy:C="optimized",onPlaced:E,...b}=e,_=o_(Tg,n),[S,k]=w.useState(null),P=gt(t,Be=>k(Be)),[T,j]=w.useState(null),F=r_(T),U=(F==null?void 0:F.width)??0,O=(F==null?void 0:F.height)??0,H=r+(a!=="center"?"-"+a:""),X=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},ne=Array.isArray(h)?h:[h],ue=ne.length>0,he={padding:X,boundary:ne.filter(y5),altBoundary:ue},{refs:ae,floatingStyles:Se,placement:J,isPositioned:ee,middlewareData:z}=n5({strategy:"fixed",placement:H,whileElementsMounted:(...Be)=>qV(...Be,{animationFrame:C==="always"}),elements:{reference:_.anchor},middleware:[s5({mainAxis:o+O,alignmentAxis:l}),d&&i5({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?o5():void 0,...he}),d&&a5({...he}),l5({...he,apply:({elements:Be,rects:qe,availableWidth:Rn,availableHeight:mn})=>{const{width:xt,height:ke}=qe.reference,Ze=Be.floating.style;Ze.setProperty("--radix-popper-available-width",`${Rn}px`),Ze.setProperty("--radix-popper-available-height",`${mn}px`),Ze.setProperty("--radix-popper-anchor-width",`${xt}px`),Ze.setProperty("--radix-popper-anchor-height",`${ke}px`)}}),T&&u5({element:T,padding:u}),v5({arrowWidth:U,arrowHeight:O}),v&&c5({strategy:"referenceHidden",...he})]}),[te,W]=h_(J),I=ks(E);zt(()=>{ee&&(I==null||I())},[ee,I]);const q=(K=z.arrow)==null?void 0:K.x,we=(ie=z.arrow)==null?void 0:ie.y,xe=((ce=z.arrow)==null?void 0:ce.centerOffset)!==0,[ge,ve]=w.useState();return zt(()=>{S&&ve(window.getComputedStyle(S).zIndex)},[S]),p.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:ee?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Te=z.transformOrigin)==null?void 0:Te.x,(je=z.transformOrigin)==null?void 0:je.y].join(" "),...((Ne=z.hide)==null?void 0:Ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(p5,{scope:n,placedSide:te,onArrowChange:j,arrowX:q,arrowY:we,shouldHideArrow:xe,children:p.jsx(Ye.div,{"data-side":te,"data-align":W,...b,ref:P,style:{...b.style,animation:ee?void 0:"none"}})})})});u_.displayName=Tg;var d_="PopperArrow",g5={top:"bottom",right:"left",bottom:"top",left:"right"},f_=w.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=m5(d_,r),l=g5[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(f5,{...o,ref:n,style:{...o.style,display:"block"}})})});f_.displayName=d_;function y5(e){return e!==null}var v5=e=>({name:"transformOrigin",options:e,fn(t){var _,S,k;const{placement:n,rects:r,middlewareData:o}=t,l=((_=o.arrow)==null?void 0:_.centerOffset)!==0,u=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[h,m]=h_(n),g={start:"0%",center:"50%",end:"100%"}[m],v=(((S=o.arrow)==null?void 0:S.x)??0)+u/2,C=(((k=o.arrow)==null?void 0:k.y)??0)+d/2;let E="",b="";return h==="bottom"?(E=l?g:`${v}px`,b=`${-d}px`):h==="top"?(E=l?g:`${v}px`,b=`${r.floating.height+d}px`):h==="right"?(E=`${-d}px`,b=l?g:`${C}px`):h==="left"&&(E=`${r.floating.width+d}px`,b=l?g:`${C}px`),{data:{x:E,y:b}}}});function h_(e){const[t,n="center"]=e.split("-");return[t,n]}var x5=a_,w5=c_,b5=u_,S5=f_,C5="Portal",p_=w.forwardRef((e,t)=>{var u;const{container:n,...r}=e,[o,a]=w.useState(!1);zt(()=>a(!0),[]);const l=n||o&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return l?Zj.createPortal(p.jsx(Ye.div,{...r,ref:t}),l):null});p_.displayName=C5;function E5(e){const t=_5(e),n=w.forwardRef((r,o)=>{const{children:a,...l}=r,u=w.Children.toArray(a),d=u.find(k5);if(d){const h=d.props.children,m=u.map(g=>g===d?w.Children.count(h)>1?w.Children.only(null):w.isValidElement(h)?h.props.children:null:g);return p.jsx(t,{...l,ref:o,children:w.isValidElement(h)?w.cloneElement(h,void 0,m):null})}return p.jsx(t,{...l,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function _5(e){const t=w.forwardRef((n,r)=>{const{children:o,...a}=n;if(w.isValidElement(o)){const l=T5(o),u=P5(a,o.props);return o.type!==w.Fragment&&(u.ref=r?Al(r,l):l),w.cloneElement(o,u)}return w.Children.count(o)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var N5=Symbol("radix.slottable");function k5(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===N5}function P5(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...u)=>{const d=a(...u);return o(...u),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function T5(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var R5=Gu[" useInsertionEffect ".trim().toString()]||zt;function yl({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,l]=j5({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:o;{const m=w.useRef(e!==void 0);w.useEffect(()=>{const g=m.current;g!==u&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=u},[u,r])}const h=w.useCallback(m=>{var g;if(u){const v=A5(m)?m(e):m;v!==e&&((g=l.current)==null||g.call(l,v))}else a(m)},[u,e,a,l]);return[d,h]}function j5({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),o=w.useRef(n),a=w.useRef(t);return R5(()=>{a.current=t},[t]),w.useEffect(()=>{var l;o.current!==n&&((l=a.current)==null||l.call(a,n),o.current=n)},[n,o]),[n,r,a]}function A5(e){return typeof e=="function"}function m_(e){const t=w.useRef({value:e,previous:e});return w.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var g_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),O5="VisuallyHidden",M5=w.forwardRef((e,t)=>p.jsx(Ye.span,{...e,ref:t,style:{...g_,...e.style}}));M5.displayName=O5;var L5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},so=new WeakMap,iu=new WeakMap,ou={},Xh=0,y_=function(e){return e&&(e.host||y_(e.parentNode))},D5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=y_(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},I5=function(e,t,n,r){var o=D5(t,Array.isArray(e)?e:[e]);ou[n]||(ou[n]=new WeakMap);var a=ou[n],l=[],u=new Set,d=new Set(o),h=function(g){!g||u.has(g)||(u.add(g),h(g.parentNode))};o.forEach(h);var m=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(v){if(u.has(v))m(v);else try{var C=v.getAttribute(r),E=C!==null&&C!=="false",b=(so.get(v)||0)+1,_=(a.get(v)||0)+1;so.set(v,b),a.set(v,_),l.push(v),b===1&&E&&iu.set(v,!0),_===1&&v.setAttribute(n,"true"),E||v.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",v,S)}})};return m(t),u.clear(),Xh++,function(){l.forEach(function(g){var v=so.get(g)-1,C=a.get(g)-1;so.set(g,v),a.set(g,C),v||(iu.has(g)||g.removeAttribute(r),iu.delete(g)),C||g.removeAttribute(n)}),Xh--,Xh||(so=new WeakMap,so=new WeakMap,iu=new WeakMap,ou={})}},F5=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=L5(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),I5(r,o,n,"aria-hidden")):function(){return null}},nr=function(){return nr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},nr.apply(this,arguments)};function v_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function B5(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var _u="right-scroll-bar-position",Nu="width-before-scroll-bar",U5="with-scroll-bars-hidden",V5="--removed-body-scroll-bar-size";function Jh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $5(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var z5=typeof window<"u"?w.useLayoutEffect:w.useEffect,Wb=new WeakMap;function W5(e,t){var n=$5(null,function(r){return e.forEach(function(o){return Jh(o,r)})});return z5(function(){var r=Wb.get(n);if(r){var o=new Set(r),a=new Set(e),l=n.current;o.forEach(function(u){a.has(u)||Jh(u,null)}),a.forEach(function(u){o.has(u)||Jh(u,l)})}Wb.set(n,e)},[e]),n}function H5(e){return e}function q5(e,t){t===void 0&&(t=H5);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e}
vendor: 11,083 bytes, lines 359-399
359,useMedium:function(a){var l=t(a,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(a){for(r=!0;n.length;){var l=n;n=[],l.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(a),l=n}var d=function(){var m=l;l=[],m.forEach(a)},h=function(){return Promise.resolve().then(d)};h(),n={push:function(m){l.push(m),h()},filter:function(m){return l=l.filter(m),n}}}};return o}function K5(e){e===void 0&&(e={});var t=q5(null);return t.options=nr({async:!0,ssr:!1},e),t}var x_=function(e){var t=e.sideCar,n=v_(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,nr({},n))};x_.isSideCarExport=!0;function G5(e,t){return e.useMedium(t),x_}var w_=K5(),Zh=function(){},pd=w.forwardRef(function(e,t){var n=w.useRef(null),r=w.useState({onScrollCapture:Zh,onWheelCapture:Zh,onTouchMoveCapture:Zh}),o=r[0],a=r[1],l=e.forwardProps,u=e.children,d=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,C=e.noRelative,E=e.noIsolation,b=e.inert,_=e.allowPinchZoom,S=e.as,k=S===void 0?"div":S,P=e.gapMode,T=v_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,F=W5([n,t]),U=nr(nr({},T),o);return w.createElement(w.Fragment,null,m&&w.createElement(j,{sideCar:w_,removeScrollBar:h,shards:g,noRelative:C,noIsolation:E,inert:b,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:P}),l?w.cloneElement(w.Children.only(u),nr(nr({},U),{ref:F})):w.createElement(k,nr({},U,{className:d,ref:F}),u))});pd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};pd.classNames={fullWidth:Nu,zeroRight:_u};var Q5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Y5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Q5();return t&&e.setAttribute("nonce",t),e}function X5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function J5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Z5=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Y5())&&(X5(t,n),J5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},e$=function(){var e=Z5();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b_=function(){var e=e$(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},t$={left:0,top:0,right:0,gap:0},ep=function(e){return parseInt(e||"",10)||0},n$=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ep(n),ep(r),ep(o)]},r$=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return t$;var t=n$(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},s$=b_(),yo="data-scroll-locked",i$=function(e,t,n,r){var o=e.left,a=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),` 360 .`.concat(U5,` { 361 overflow: hidden `).concat(r,`; 362 padding-right: `).concat(u,"px ").concat(r,`; 363 } 364 body[`).concat(yo,`] { 365 overflow: hidden `).concat(r,`; 366 overscroll-behavior: contain; 367 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 368 padding-left: `.concat(o,`px; 369 padding-top: `).concat(a,`px; 370 padding-right: `).concat(l,`px; 371 margin-left:0; 372 margin-top:0; 373 margin-right: `).concat(u,"px ").concat(r,`; 374 `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),` 375 } 376 377 .`).concat(_u,` { 378 right: `).concat(u,"px ").concat(r,`; 379 } 380 381 .`).concat(Nu,` { 382 margin-right: `).concat(u,"px ").concat(r,`; 383 } 384 385 .`).concat(_u," .").concat(_u,` { 386 right: 0 `).concat(r,`; 387 } 388 389 .`).concat(Nu," .").concat(Nu,` { 390 margin-right: 0 `).concat(r,`; 391 } 392 393 body[`).concat(yo,`] { 394 `).concat(V5,": ").concat(u,`px; 395 } 396`)},Hb=function(){var e=parseInt(document.body.getAttribute(yo)||"0",10);return isFinite(e)?e:0},o$=function(){w.useEffect(function(){return document.body.setAttribute(yo,(Hb()+1).toString()),function(){var e=Hb()-1;e<=0?document.body.removeAttribute(yo):document.body.setAttribute(yo,e.toString())}},[])},a$=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;o$();var a=w.useMemo(function(){return r$(o)},[o]);return w.createElement(s$,{styles:i$(a,!t,o,n?"":"!important")})},Yp=!1;if(typeof window<"u")try{var au=Object.defineProperty({},"passive",{get:function(){return Yp=!0,!0}});window.addEventListener("test",au,au),window.removeEventListener("test",au,au)}catch{Yp=!1}var io=Yp?{passive:!1}:!1,l$=function(e){return e.tagName==="TEXTAREA"},S_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!l$(e)&&n[t]==="visible")},c$=function(e){return S_(e,"overflowY")},u$=function(e){return S_(e,"overflowX")},qb=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=C_(e,r);if(o){var a=E_(e,r),l=a[1],u=a[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},d$=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},f$=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},C_=function(e,t){return e==="v"?c$(t):u$(t)},E_=function(e,t){return e==="v"?d$(t):f$(t)},h$=function(e,t){return e==="h"&&t==="rtl"?-1:1},p$=function(e,t,n,r,o){var a=h$(e,window.getComputedStyle(t).direction),l=a*r,u=n.target,d=t.contains(u),h=!1,m=l>0,g=0,v=0;do{if(!u)break;var C=E_(e,u),E=C[0],b=C[1],_=C[2],S=b-_-a*E;(E||S)&&C_(e,u)&&(g+=S,v+=E);var k=u.parentNode;u=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(m&&Math.abs(g)<1||!m&&Math.abs(v)<1)&&(h=!0),h},lu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kb=function(e){return[e.deltaX,e.deltaY]},Gb=function(e){return e&&"current"in e?e.current:e},m$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},g$=function(e){return` 397 .block-interactivity-`.concat(e,` {pointer-events: none;} 398 .allow-interactivity-`).concat(e,` {pointer-events: all;} 399`)},y$=0,oo=[];function v$(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),o=w.useState(y$++)[0],a=w.useState(b_)[0],l=w.useRef(e);w.useEffect(function(){l.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var b=B5([e.lockRef.current],(e.shards||[]).map(Gb),!0).filter(Boolean);return b.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),b.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=w.useCallback(function(b,_){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!l.current.allowPinchZoom;var S=lu(b),k=n.current,P="deltaX"in b?b.deltaX:k[0]-S[0],T="deltaY"in b?b.deltaY:k[1]-S[1],j,F=b.target,U=Math.abs(P)>Math.abs(T)?"h":"v";if("touches"in b&&U==="h"&&F.type==="range")return!1;var O=window.getSelection(),H=O&&O.anchorNode,X=H?H===F||H.contains(F):!1;if(X)return!1;var ne=qb(U,F);if(!ne)return!0;if(ne?j=U:(j=U==="v"?"h":"v",ne=qb(U,F)),!ne)return!1;if(!r.current&&"changedTouches"in b&&(P||T)&&(r.current=j),!j)return!0;var ue=r.current||j;return p$(ue,_,b,ue==="h"?P:T)},[]),d=w.useCallback(function(b){var _=b;if(!(!oo.length||oo[oo.length-1]!==a)){var S="deltaY"in _?Kb(_):lu(_),k=t.current.filter(function(j){return j.name===_.type&&(j.target===_.target||_.target===j.shadowParent)&&m$(j.delta,S)})[0];if(k&&k.should){_.cancelable&&_.preventDefault();return}if(!k){var P=(l.current.shards||[]).map(Gb).filter(Boolean).filter(function(j){return j.contains(_.target)}),T=P.length>0?u(_,P[0]):!l.current.noIsolation;T&&_.cancelable&&_.preventDefault()}}},[]),h=w.useCallback(function(b,_,S,k){var P={name:b,delta:_,target:S,should:k,shadowParent:x$(S)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(T){return T!==P})},1)},[]),m=w.useCallback(function(b){n.current=lu(b),r.current=void 0},[]),g=w.useCallback(function(b){h(b.type,Kb(b),b.target,u(b,e.lockRef.current))},[]),v=w.useCallback(function(b){h(b.type,lu(b),b.target,u(b,e.lockRef.current))},[]);w.useEffect(function(){return oo.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",d,io),document.addEventListener("touchmove",d,io),document.addEventListener("touchstart",m,io),function(){oo=oo.filter(function(b){return b!==a}),document.removeEventListener("wheel",d,io),document.removeEventListener("touchmove",d,io),document.removeEventListener("touchstart",m,io)}},[]);var C=e.removeScrollBar,E=e.inert;return w.createElement(w.Fragment,null,E?w.createElement(a,{styles:g$(o)}):null,C?w.createElement(a$,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function x$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const w$=G5(w_,v$);var __=w.forwardRef(function(e,t){return w.createElement(pd,nr({},e,{ref:t,sideCar:w$}))});__.classNames=pd.classNames;var b$=[" ","Enter","ArrowUp","ArrowDown"],S$=[" ","Enter"],Si="Select",[md,gd,C$]=BE(Si),[Go]=Ho(Si,[C$,i_]),yd=i_(),[E$,Os]=Go(Si),[_$,N$]=Go(Si),N_=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:l,defaultValue:u,onValueChange:d,dir:h,name:m,autoComplete:g,disabled:v,required:C,form:E}=e,b=yd(t),[_,S]=w.useState(null),[k,P]=w.useState(null),[T,j]=w.useState(!1),F=bg(h),[U,O]=yl({prop:r,defaultProp:o??!1,onChange:a,caller:Si}),[H,X]=yl({prop:l,defaultProp:u,onChange:d,caller:Si}),ne=w.useRef(null),ue=_?E||!!_.closest("form"):!0,[he,ae]=w.useState(new Set),Se=Array.from(he).map(J=>J.props.value).join(";");return p.jsx(x5,{...b,children:p.jsxs(E$,{required:C,scope:t,trigger:_,onTriggerChange:S,valueNode:k,onValueNodeChange:P,valueNodeHasChildren:T,onValueNodeHasChildrenChange:j,contentId:Ol(),value:H,onValueChange:X,open:U,onOpenChange:O,dir:F,triggerPointerDownPosRef:ne,disabled:v,children:[p.jsx(md.Provider,{scope:t,children:p.jsx(_$,{scope:e.__scopeSelect,onNativeOptionAdd:w.useCallback(J=>{ae(ee=>new Set(ee).add(J))},[]),onNativeOptionRemove:w.useCallback(J=>{ae(ee=>{const z=new Set(ee);return z.delete(J),z})},[]),children:n})}),ue?p.jsxs(Y_,{"aria-hidden":!0,required:C,tabIndex:-1,name:m,autoComplete:g,value:H,onChange:J=>X(J.target.value),disabled:v,form:E,children:[H===void 0?p.jsx("option",{value:""}):null,Array.from(he)]},Se):null]})})};N_.displayName=Si;var k_="SelectTrigger",P_=w.forwardRef((e,t)=>
vendor: 15,112 bytes, line 399
399{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=yd(n),l=Os(k_,n),u=l.disabled||r,d=gt(t,l.onTriggerChange),h=gd(n),m=w.useRef("touch"),[g,v,C]=J_(b=>{const _=h().filter(P=>!P.disabled),S=_.find(P=>P.value===l.value),k=Z_(_,b,S);k!==void 0&&l.onValueChange(k.value)}),E=b=>{u||(l.onOpenChange(!0),C()),b&&(l.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return p.jsx(w5,{asChild:!0,...a,children:p.jsx(Ye.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":X_(l.value)?"":void 0,...o,ref:d,onClick:$e(o.onClick,b=>{b.currentTarget.focus(),m.current!=="mouse"&&E(b)}),onPointerDown:$e(o.onPointerDown,b=>{m.current=b.pointerType;const _=b.target;_.hasPointerCapture(b.pointerId)&&_.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(E(b),b.preventDefault())}),onKeyDown:$e(o.onKeyDown,b=>{const _=g.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&v(b.key),!(_&&b.key===" ")&&b$.includes(b.key)&&(E(),b.preventDefault())})})})});P_.displayName=k_;var T_="SelectValue",R_=w.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:l="",...u}=e,d=Os(T_,n),{onValueNodeHasChildrenChange:h}=d,m=a!==void 0,g=gt(t,d.onValueNodeChange);return zt(()=>{h(m)},[h,m]),p.jsx(Ye.span,{...u,ref:g,style:{pointerEvents:"none"},children:X_(d.value)?p.jsx(p.Fragment,{children:l}):a})});R_.displayName=T_;var k$="SelectIcon",j_=w.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(Ye.span,{"aria-hidden":!0,...o,ref:t,children:r||"â¼"})});j_.displayName=k$;var P$="SelectPortal",A_=e=>p.jsx(p_,{asChild:!0,...e});A_.displayName=P$;var Ci="SelectContent",O_=w.forwardRef((e,t)=>{const n=Os(Ci,e.__scopeSelect),[r,o]=w.useState();if(zt(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?Cl.createPortal(p.jsx(M_,{scope:e.__scopeSelect,children:p.jsx(md.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),a):null}return p.jsx(L_,{...e,ref:t})});O_.displayName=Ci;var Bn=10,[M_,Ms]=Go(Ci),T$="SelectContentImpl",R$=E5("SelectContent.RemoveScroll"),L_=w.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:l,side:u,sideOffset:d,align:h,alignOffset:m,arrowPadding:g,collisionBoundary:v,collisionPadding:C,sticky:E,hideWhenDetached:b,avoidCollisions:_,...S}=e,k=Os(Ci,n),[P,T]=w.useState(null),[j,F]=w.useState(null),U=gt(t,K=>T(K)),[O,H]=w.useState(null),[X,ne]=w.useState(null),ue=gd(n),[he,ae]=w.useState(!1),Se=w.useRef(!1);w.useEffect(()=>{if(P)return F5(P)},[P]),WU();const J=w.useCallback(K=>{const[ie,...ce]=ue().map(Ne=>Ne.ref.current),[Te]=ce.slice(-1),je=document.activeElement;for(const Ne of K)if(Ne===je||(Ne==null||Ne.scrollIntoView({block:"nearest"}),Ne===ie&&j&&(j.scrollTop=0),Ne===Te&&j&&(j.scrollTop=j.scrollHeight),Ne==null||Ne.focus(),document.activeElement!==je))return},[ue,j]),ee=w.useCallback(()=>J([O,P]),[J,O,P]);w.useEffect(()=>{he&&ee()},[he,ee]);const{onOpenChange:z,triggerPointerDownPosRef:te}=k;w.useEffect(()=>{if(P){let K={x:0,y:0};const ie=Te=>{var je,Ne;K={x:Math.abs(Math.round(Te.pageX)-(((je=te.current)==null?void 0:je.x)??0)),y:Math.abs(Math.round(Te.pageY)-(((Ne=te.current)==null?void 0:Ne.y)??0))}},ce=Te=>{K.x<=10&&K.y<=10?Te.preventDefault():P.contains(Te.target)||z(!1),document.removeEventListener("pointermove",ie),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",ce,{capture:!0})}}},[P,z,te]),w.useEffect(()=>{const K=()=>z(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[z]);const[W,I]=J_(K=>{const ie=ue().filter(je=>!je.disabled),ce=ie.find(je=>je.ref.current===document.activeElement),Te=Z_(ie,K,ce);Te&&setTimeout(()=>Te.ref.current.focus())}),q=w.useCallback((K,ie,ce)=>{const Te=!Se.current&&!ce;(k.value!==void 0&&k.value===ie||Te)&&(H(K),Te&&(Se.current=!0))},[k.value]),we=w.useCallback(()=>P==null?void 0:P.focus(),[P]),xe=w.useCallback((K,ie,ce)=>{const Te=!Se.current&&!ce;(k.value!==void 0&&k.value===ie||Te)&&ne(K)},[k.value]),ge=r==="popper"?Xp:D_,ve=ge===Xp?{side:u,sideOffset:d,align:h,alignOffset:m,arrowPadding:g,collisionBoundary:v,collisionPadding:C,sticky:E,hideWhenDetached:b,avoidCollisions:_}:{};return p.jsx(M_,{scope:n,content:P,viewport:j,onViewportChange:F,itemRefCallback:q,selectedItem:O,onItemLeave:we,itemTextRefCallback:xe,focusSelectedItem:ee,selectedItemText:X,position:r,isPositioned:he,searchRef:W,children:p.jsx(__,{as:R$,allowPinchZoom:!0,children:p.jsx(zE,{asChild:!0,trapped:k.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:$e(o,K=>{var ie;(ie=k.trigger)==null||ie.focus({preventScroll:!0}),K.preventDefault()}),children:p.jsx(VE,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:p.jsx(ge,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:K=>K.preventDefault(),...S,...ve,onPlaced:()=>ae(!0),ref:U,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:$e(S.onKeyDown,K=>{const ie=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!ie&&K.key.length===1&&I(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let Te=ue().filter(je=>!je.disabled).map(je=>je.ref.current);if(["ArrowUp","End"].includes(K.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const je=K.target,Ne=Te.indexOf(je);Te=Te.slice(Ne+1)}setTimeout(()=>J(Te)),K.preventDefault()}})})})})})})});L_.displayName=T$;var j$="SelectItemAlignedPosition",D_=w.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Os(Ci,n),l=Ms(Ci,n),[u,d]=w.useState(null),[h,m]=w.useState(null),g=gt(t,U=>m(U)),v=gd(n),C=w.useRef(!1),E=w.useRef(!0),{viewport:b,selectedItem:_,selectedItemText:S,focusSelectedItem:k}=l,P=w.useCallback(()=>{if(a.trigger&&a.valueNode&&u&&h&&b&&_&&S){const U=a.trigger.getBoundingClientRect(),O=h.getBoundingClientRect(),H=a.valueNode.getBoundingClientRect(),X=S.getBoundingClientRect();if(a.dir!=="rtl"){const je=X.left-O.left,Ne=H.left-je,Be=U.left-Ne,qe=U.width+Be,Rn=Math.max(qe,O.width),mn=window.innerWidth-Bn,xt=Eb(Ne,[Bn,Math.max(Bn,mn-Rn)]);u.style.minWidth=qe+"px",u.style.left=xt+"px"}else{const je=O.right-X.right,Ne=window.innerWidth-H.right-je,Be=window.innerWidth-U.right-Ne,qe=U.width+Be,Rn=Math.max(qe,O.width),mn=window.innerWidth-Bn,xt=Eb(Ne,[Bn,Math.max(Bn,mn-Rn)]);u.style.minWidth=qe+"px",u.style.right=xt+"px"}const ne=v(),ue=window.innerHeight-Bn*2,he=b.scrollHeight,ae=window.getComputedStyle(h),Se=parseInt(ae.borderTopWidth,10),J=parseInt(ae.paddingTop,10),ee=parseInt(ae.borderBottomWidth,10),z=parseInt(ae.paddingBottom,10),te=Se+J+he+z+ee,W=Math.min(_.offsetHeight*5,te),I=window.getComputedStyle(b),q=parseInt(I.paddingTop,10),we=parseInt(I.paddingBottom,10),xe=U.top+U.height/2-Bn,ge=ue-xe,ve=_.offsetHeight/2,K=_.offsetTop+ve,ie=Se+J+K,ce=te-ie;if(ie<=xe){const je=ne.length>0&&_===ne[ne.length-1].ref.current;u.style.bottom="0px";const Ne=h.clientHeight-b.offsetTop-b.offsetHeight,Be=Math.max(ge,ve+(je?we:0)+Ne+ee),qe=ie+Be;u.style.height=qe+"px"}else{const je=ne.length>0&&_===ne[0].ref.current;u.style.top="0px";const Be=Math.max(xe,Se+b.offsetTop+(je?q:0)+ve)+ce;u.style.height=Be+"px",b.scrollTop=ie-xe+b.offsetTop}u.style.margin=`${Bn}px 0`,u.style.minHeight=W+"px",u.style.maxHeight=ue+"px",r==null||r(),requestAnimationFrame(()=>C.current=!0)}},[v,a.trigger,a.valueNode,u,h,b,_,S,a.dir,r]);zt(()=>P(),[P]);const[T,j]=w.useState();zt(()=>{h&&j(window.getComputedStyle(h).zIndex)},[h]);const F=w.useCallback(U=>{U&&E.current===!0&&(P(),k==null||k(),E.current=!1)},[P,k]);return p.jsx(O$,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:C,onScrollButtonChange:F,children:p.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:p.jsx(Ye.div,{...o,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});D_.displayName=j$;var A$="SelectPopperPosition",Xp=w.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Bn,...a}=e,l=yd(n);return p.jsx(b5,{...l,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Xp.displayName=A$;var[O$,Rg]=Go(Ci,{}),Jp="SelectViewport",I_=w.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Ms(Jp,n),l=Rg(Jp,n),u=gt(t,a.onViewportChange),d=w.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(md.Slot,{scope:n,children:p.jsx(Ye.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:$e(o.onScroll,h=>{const m=h.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:v}=l;if(v!=null&&v.current&&g){const C=Math.abs(d.current-m.scrollTop);if(C>0){const E=window.innerHeight-Bn*2,b=parseFloat(g.style.minHeight),_=parseFloat(g.style.height),S=Math.max(b,_);if(S<E){const k=S+C,P=Math.min(E,k),T=k-P;g.style.height=P+"px",g.style.bottom==="0px"&&(m.scrollTop=T>0?T:0,g.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});I_.displayName=Jp;var F_="SelectGroup",[M$,L$]=Go(F_),D$=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ol();return p.jsx(M$,{scope:n,id:o,children:p.jsx(Ye.div,{role:"group","aria-labelledby":o,...r,ref:t})})});D$.displayName=F_;var B_="SelectLabel",U_=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=L$(B_,n);return p.jsx(Ye.div,{id:o.id,...r,ref:t})});U_.displayName=B_;var Ku="SelectItem",[I$,V_]=Go(Ku),$_=w.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...l}=e,u=Os(Ku,n),d=Ms(Ku,n),h=u.value===r,[m,g]=w.useState(a??""),[v,C]=w.useState(!1),E=gt(t,k=>{var P;return(P=d.itemRefCallback)==null?void 0:P.call(d,k,r,o)}),b=Ol(),_=w.useRef("touch"),S=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(I$,{scope:n,value:r,disabled:o,textId:b,isSelected:h,onItemTextChange:w.useCallback(k=>{g(P=>P||((k==null?void 0:k.textContent)??"").trim())},[]),children:p.jsx(md.ItemSlot,{scope:n,value:r,disabled:o,textValue:m,children:p.jsx(Ye.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":h&&v,"data-state":h?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:E,onFocus:$e(l.onFocus,()=>C(!0)),onBlur:$e(l.onBlur,()=>C(!1)),onClick:$e(l.onClick,()=>{_.current!=="mouse"&&S()}),onPointerUp:$e(l.onPointerUp,()=>{_.current==="mouse"&&S()}),onPointerDown:$e(l.onPointerDown,k=>{_.current=k.pointerType}),onPointerMove:$e(l.onPointerMove,k=>{var P;_.current=k.pointerType,o?(P=d.onItemLeave)==null||P.call(d):_.current==="mouse"&&k.currentTarget.focus({preventScroll:!0})}),onPointerLeave:$e(l.onPointerLeave,k=>{var P;k.currentTarget===document.activeElement&&((P=d.onItemLeave)==null||P.call(d))}),onKeyDown:$e(l.onKeyDown,k=>{var T;((T=d.searchRef)==null?void 0:T.current)!==""&&k.key===" "||(S$.includes(k.key)&&S(),k.key===" "&&k.preventDefault())})})})})});$_.displayName=Ku;var Xa="SelectItemText",z_=w.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,l=Os(Xa,n),u=Ms(Xa,n),d=V_(Xa,n),h=N$(Xa,n),[m,g]=w.useState(null),v=gt(t,S=>g(S),d.onItemTextChange,S=>{var k;return(k=u.itemTextRefCallback)==null?void 0:k.call(u,S,d.value,d.disabled)}),C=m==null?void 0:m.textContent,E=w.useMemo(()=>p.jsx("option",{value:d.value,disabled:d.disabled,children:C},d.value),[d.disabled,d.value,C]),{onNativeOptionAdd:b,onNativeOptionRemove:_}=h;return zt(()=>(b(E),()=>_(E)),[b,_,E]),p.jsxs(p.Fragment,{children:[p.jsx(Ye.span,{id:d.textId,...a,ref:v}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Cl.createPortal(a.children,l.valueNode):null]})});z_.displayName=Xa;var W_="SelectItemIndicator",H_=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return V_(W_,n).isSelected?p.jsx(Ye.span,{"aria-hidden":!0,...r,ref:t}):null});H_.displayName=W_;var Zp="SelectScrollUpButton",q_=w.forwardRef((e,t)=>{const n=Ms(Zp,e.__scopeSelect),r=Rg(Zp,e.__scopeSelect),[o,a]=w.useState(!1),l=gt(t,r.onScrollButtonChange);return zt(()=>{if(n.viewport&&n.isPositioned){let u=function(){const h=d.scrollTop>0;a(h)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),o?p.jsx(G_,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop-d.offsetHeight)}}):null});q_.displayName=Zp;var em="SelectScrollDownButton",K_=w.forwardRef((e,t)=>{const n=Ms(em,e.__scopeSelect),r=Rg(em,e.__scopeSelect),[o,a]=w.useState(!1),l=gt(t,r.onScrollButtonChange);return zt(()=>{if(n.viewport&&n.isPositioned){let u=function(){const h=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<h;a(m)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),o?p.jsx(G_,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop+d.offsetHeight)}}):null});K_.displayName=em;var G_=w.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Ms("SelectScrollButton",n),l=w.useRef(null),u=gd(n),d=w.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return w.useEffect(()=>()=>d(),[d]),zt(()=>{var m;const h=u().find(g=>g.ref.current===document.activeElement);(m=h==null?void 0:h.ref.current)==null||m.scrollIntoView({block:"nearest"})},[u]),p.jsx(Ye.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:$e(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:$e(o.onPointerMove,()=>{var h;(h=a.onItemLeave)==null||h.call(a),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:$e(o.onPointerLeave,()=>{d()})})}),F$="SelectSeparator",Q_=w.forwardRef((e,t)=>
vendor: 4,366 bytes, line 399
399{const{__scopeSelect:n,...r}=e;return p.jsx(Ye.div,{"aria-hidden":!0,...r,ref:t})});Q_.displayName=F$;var tm="SelectArrow",B$=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=yd(n),a=Os(tm,n),l=Ms(tm,n);return a.open&&l.position==="popper"?p.jsx(S5,{...o,...r,ref:t}):null});B$.displayName=tm;var U$="SelectBubbleInput",Y_=w.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=w.useRef(null),a=gt(r,o),l=m_(t);return w.useEffect(()=>{const u=o.current;if(!u)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==t&&m){const g=new Event("change",{bubbles:!0});m.call(u,t),u.dispatchEvent(g)}},[l,t]),p.jsx(Ye.select,{...n,style:{...g_,...n.style},ref:a,defaultValue:t})});Y_.displayName=U$;function X_(e){return e===""||e===void 0}function J_(e){const t=ks(e),n=w.useRef(""),r=w.useRef(0),o=w.useCallback(l=>{const u=n.current+l;t(u),(function d(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(u)},[t]),a=w.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return w.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Z_(e,t,n){const o=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let l=V$(e,Math.max(a,0));o.length===1&&(l=l.filter(h=>h!==n));const d=l.find(h=>h.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function V$(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $$=N_,eN=P_,z$=R_,W$=j_,H$=A_,tN=O_,q$=I_,nN=U_,rN=$_,K$=z_,G$=H_,sN=q_,iN=K_,oN=Q_;const Lo=$$,Do=z$,Ei=w.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(eN,{ref:r,className:Ve("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,p.jsx(W$,{asChild:!0,children:p.jsx(f1,{className:"h-4 w-4 opacity-50"})})]}));Ei.displayName=eN.displayName;const aN=w.forwardRef(({className:e,...t},n)=>p.jsx(sN,{ref:n,className:Ve("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(mT,{className:"h-4 w-4"})}));aN.displayName=sN.displayName;const lN=w.forwardRef(({className:e,...t},n)=>p.jsx(iN,{ref:n,className:Ve("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(f1,{className:"h-4 w-4"})}));lN.displayName=iN.displayName;const _i=w.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>p.jsx(H$,{children:p.jsxs(tN,{ref:o,className:Ve("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[p.jsx(aN,{}),p.jsx(q$,{className:Ve("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),p.jsx(lN,{})]})}));_i.displayName=tN.displayName;const Q$=w.forwardRef(({className:e,...t},n)=>p.jsx(nN,{ref:n,className:Ve("px-2 py-1.5 text-sm font-semibold",e),...t}));Q$.displayName=nN.displayName;const sr=w.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(rN,{ref:r,className:Ve("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(G$,{children:p.jsx(fT,{className:"h-4 w-4"})})}),p.jsx(K$,{children:t})]}));sr.displayName=rN.displayName;const Y$=w.forwardRef(({className:e,...t},n)=>p.jsx(oN,{ref:n,className:Ve("-mx-1 my-1 h-px bg-muted",e),...t}));Y$.displayName=oN.displayName;const Qo=w.forwardRef(({className:e,...t},n)=>
399p.jsx("textarea",{className:Ve("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Qo.displayName="Textarea";var X$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J$=X$.reduce((e,t)=>{const n=FE(`Primitive.${t}`),r=w.forwardRef((o,a)=>{const{asChild:l,...u}=o,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(d,{...u,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Z$="Label",cN=w.forwardRef((e,t)=>p.jsx(J$.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));cN.displayName=Z$;var uN=cN;const ez=Qu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Qe=w.forwardRef(({className:e,...t},n)=>p.jsx(uN,{ref:n,className:Ve(ez(),e),...t}));Qe.displayName=uN.displayName;const tz=[{value:"world_news",label:"World News"},{value:"geopolitics",label:"Geopolitics"},{value:"markets",label:"Markets"},{value:"documentaries",label:"Documentaries"},{value:"politics",label:"Politics"},{value:"business",label:"Business"},{value:"history",label:"History"},{value:"christianity",label:"Christianity"},{value:"special_report",label:"Special Report"}];function dN({onClose:e}){const t=dr(),[n,r]=w.useState({title:"",description:"",category:"world_news",anchor_name:"",duration:""}),[o,a]=w.useState(""),[l,u]=w.useState(""),[d,h]=w.useState(!1),[m,g]=w.useState(!1),[v,C]=w.useState(!1),[E,b]=w.useState(!1);w.useEffect(()=>{if(!o||d)return;let S=!1;return g(!0),X3(o).then(k=>{!S&&k&&u(k)}).finally(()=>{S||g(!1)}),()=>{S=!0}},[o]);const _=async S=>{S.preventDefault(),!(!n.title||!o)&&(C(!0),await Oe.entities.NewsBulletin.create({...n,video_url:o,thumbnail_url:l,status:"published",views:0}),b(!0),t.invalidateQueries({queryKey:["bulletins"]}),setTimeout(()=>{e()},1500))};return E?p.jsxs(Et.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"bg-card border border-border rounded-xl p-10 text-center",children:[p.jsx(h1,{className:"w-12 h-12 text-accent mx-auto mb-3"}),p.jsx("p",{className:"text-lg font-semibold text-foreground",children:"Published Successfully!"}),p.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Your bulletin is now live."})]}):p.jsxs(Et.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"bg-card border border-border rounded-xl p-6 mb-8",children:[p.jsxs("div",{className:"flex items-center justify-between mb-6",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(np,{className:"w-5 h-5 text-primary"}),p.jsx("h3",{className:"text-lg font-bold text-foreground",children:"Upload News Bulletin"})]}),p.jsx("button",{onClick:e,className:"text-muted-foreground hover:text-foreground",children:p.jsx(Pn,{className:"w-5 h-5"})})]}),p.jsxs("form",{onSubmit:_,className:"space-y-5",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[p.jsxs("div",{className:"md:col-span-2",children:[p.jsx(Qe,{children:"Title *"}),p.jsx(at,{value:n.title,onChange:S=>r({...n,title:S.target.value}),placeholder:"Bulletin title",className:"mt-1.5 bg-secondary border-border",required:!0})]}),p.jsxs("div",{className:"md:col-span-2",children:[p.jsx(Qe,{children:"Description"}),p.jsx(Qo,{value:n.description,onChange:S=>r({...n,description:S.target.value}),placeholder:"Brief description...",rows:2,className:"mt-1.5 bg-secondary border-border"})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Category"}),p.jsxs(Lo,{value:n.category,onValueChange:S=>r({...n,category:S}),children:[p.jsx(Ei,{className:"mt-1.5 bg-secondary border-border",children:p.jsx(Do,{})}),p.jsx(_i,{children:tz.map(S=>p.jsx(sr,{value:S.value,children:S.label},S.value))})]})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Anchor Name"}
399),p.jsx(at,{value:n.anchor_name,onChange:S=>r({...n,anchor_name:S.target.value}),placeholder:"Presenter name",className:"mt-1.5 bg-secondary border-border"})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Duration"}),p.jsx(at,{value:n.duration,onChange:S=>r({...n,duration:S.target.value}),placeholder:"e.g. 12:34",className:"mt-1.5 bg-secondary border-border"})]}),p.jsxs("div",{className:"md:col-span-2",children:[p.jsxs(Qe,{className:"flex items-center gap-1.5",children:[p.jsx(np,{className:"w-3.5 h-3.5"})," Video URL *"]}),p.jsx(at,{value:o,onChange:S=>a(S.target.value),placeholder:"https://... (MP4, YouTube embed, etc.)",className:"mt-1.5 bg-secondary border-border",required:!0}),p.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Paste a direct video URL or embed link. No file upload needed â zero credits used."})]}),p.jsxs("div",{className:"md:col-span-2",children:[p.jsxs(Qe,{className:"flex items-center gap-1.5",children:[p.jsx(MT,{className:"w-3.5 h-3.5"})," Thumbnail URL ",p.jsx("span",{className:"text-muted-foreground text-xs",children:"(optional)"})]}),p.jsx(at,{value:l,onChange:S=>{h(!0),u(S.target.value)},placeholder:"https://... (image URL)",className:"mt-1.5 bg-secondary border-border"}),p.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:m?"Generating thumbnail automatically from the video...":"Thumbnail is auto-generated from the video URL â paste your own to override."})]})]}),p.jsxs("div",{className:"flex justify-end gap-3 pt-4 border-t border-border",children:[p.jsx(We,{type:"button",variant:"outline",onClick:e,disabled:v,children:"Cancel"}),p.jsxs(We,{type:"submit",disabled:v||!n.title||!o,children:[v?p.jsx(xs,{className:"w-4 h-4 mr-2 animate-spin"}):p.jsx(sl,{className:"w-4 h-4 mr-2"}),"Publish Bulletin"]})]})]})]})}const nz=[{value:"all",label:"All Categories"},{value:"world_news",label:"World News"},{value:"geopolitics",label:"Geopolitics"},{value:"markets",label:"Markets"},{value:"documentaries",label:"Documentaries"},{value:"politics",label:"Politics"},{value:"business",label:"Business"},{value:"history",label:"History"},{value:"christianity",label:"Christianity"},{value:"special_report",label:"Special Report"}];function rz(){const{user:e}=Pi(),t=(e==null?void 0:e.role)==="admin",[n,r]=w.useState(""),[o,a]=w.useState("all"),[l,u]=w.useState(null),[d,h]=w.useState(!1),{data:m=[],isLoading:g}=jr({queryKey:["bulletins"],queryFn:()=>Oe.entities.NewsBulletin.list("-created_date",100)}),C=m.filter(E=>E.status==="published").filter(E=>{var S,k;const b=o==="all"||E.category===o,_=!n||((S=E.title)==null?void 0:S.toLowerCase().includes(n.toLowerCase()))||((k=E.description)==null?void 0:k.toLowerCase().includes(n.toLowerCase()));return b&&_});return p.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[p.jsx("div",{className:"mb-8",children:p.jsxs("div",{className:"flex items-end justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("span",{className:"text-xs text-primary font-semibold uppercase tracking-[0.2em]",children:"Archive"}),p.jsx("h1",{className:"text-3xl sm:text-4xl font-bold text-foreground mt-1 font-playfair",children:"News Bulletins"}),p.jsx("p",{className:"text-muted-foreground mt-2",children:"Browse all broadcasts from GLP CHANNEL"})]}),t&&p.jsxs(We,{onClick:()=>h(!d),className:"flex-shrink-0",children:[p.jsx(Yu,{className:"w-4 h-4 mr-2"}),"Upload Video"]})]})}),d&&p.jsx(dN,{onClose:()=>h(!1)}),p.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mb-8",children:[p.jsxs("div",{className:"relative flex-1",children:[p.jsx(oR,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),p.jsx(at,{placeholder:"Search bulletins...",value:n,onChange:E=>r(E.target.value),className:"pl-10 bg-secondary border-border"})]}),p.jsxs(Lo,{value:o,onValueChange:a,children:[p.jsxs(Ei,{className:"w-full sm:w-56 bg-secondary border-border",children:[p.jsx(NT,{className:"w-4 h-4 mr-2 text-muted-foreground"}),p.jsx(Do,{})]}),p.jsx(_i,{children:nz.map(E=>p.jsx(sr,{value:E.value,children:E.label},E.value))})]})]}),g?p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:Array(12).fill(0).map((E,b)=>p.jsxs("div",{className:"animate-pulse",children:[p.jsx("div",{className:"aspect-video bg-muted rounded-lg mb-3"}),p.jsx("div",{className:"h-3 bg-muted rounded w-20 mb-2"}),p.jsx("div",{className:"h-4 bg-muted rounded w-full"})]},b))}):C.length>0?p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:C.map((E,b)=>p.jsx(xg,{bulletin:E,index:b,onPlay:u,isAdmin:t},E.id))}):p.jsx("div",{className:"text-center py-20",children:p.jsx("p",{className:"text-muted-foreground",children:"No bulletins foun
399d"})}),p.jsx(wg,{bulletin:l,onClose:()=>u(null)})]})}function Qb({company:e,onClose:t}){const n=dr(),r=!(e!=null&&e.id),[o,a]=w.useState({name:(e==null?void 0:e.name)||"",description:(e==null?void 0:e.description)||"",image_url:(e==null?void 0:e.image_url)||"",website_url:(e==null?void 0:e.website_url)||"",order:(e==null?void 0:e.order)??0}),[l,u]=w.useState(null),[d,h]=w.useState(!1),m=dn({mutationFn:async()=>{let v=o.image_url;if(l){h(!0);const{file_url:E}=await Oe.integrations.Core.UploadFile({file:l});v=E,h(!1)}const C={...o,image_url:v};return r?Oe.entities.GLPCompany.create(C):Oe.entities.GLPCompany.update(e.id,C)},onSuccess:()=>{n.invalidateQueries({queryKey:["glp-companies"]}),t()}}),g=dn({mutationFn:()=>Oe.entities.GLPCompany.delete(e.id),onSuccess:()=>{n.invalidateQueries({queryKey:["glp-companies"]}),t()}});return p.jsx("div",{className:"fixed inset-0 z-[100] bg-black/70 flex items-center justify-center p-4",onClick:t,children:p.jsxs(Et.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},className:"bg-card border border-border rounded-xl p-6 w-full max-w-md",onClick:v=>v.stopPropagation(),children:[p.jsxs("div",{className:"flex items-center justify-between mb-5",children:[p.jsx("h3",{className:"text-lg font-bold text-foreground",children:r?"Add Company":"Edit Company"}),p.jsx("button",{onClick:t,className:"text-muted-foreground hover:text-foreground",children:p.jsx(Pn,{className:"w-5 h-5"})})]}),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{children:[p.jsx(Qe,{children:"Name *"}),p.jsx(at,{value:o.name,onChange:v=>a({...o,name:v.target.value}),className:"mt-1.5 bg-secondary border-border",placeholder:"Company name"})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Description"}),p.jsx(Qo,{value:o.description,onChange:v=>a({...o,description:v.target.value}),className:"mt-1.5 bg-secondary border-border",rows:2,placeholder:"Short description"})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Website URL"}),p.jsx(at,{value:o.website_url,onChange:v=>a({...o,website_url:v.target.value}),className:"mt-1.5 bg-secondary border-border",placeholder:"https://..."})]}),p.jsxs("div",{children:[p.jsxs(Qe,{children:["Image URL ",p.jsx("span",{className:"text-muted-foreground text-xs",children:"(or upload below)"})]}),p.jsx(at,{value:o.image_url,onChange:v=>a({...o,image_url:v.target.value}),className:"mt-1.5 bg-secondary border-border",placeholder:"https://..."})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Upload Image"}),p.jsx("div",{className:"mt-1.5",children:l?p.jsxs("div",{className:"flex items-center gap-2 p-3 bg-secondary rounded-md border border-border",children:[p.jsx("img",{src:URL.createObjectURL(l),alt:"",className:"w-16 h-10 object-cover rounded"}),p.jsx("span",{className:"text-xs text-foreground truncate flex-1",children:l.name}),p.jsx("button",{type:"button",onClick:()=>u(null),children:p.jsx(Pn,{className:"w-4 h-4 text-muted-foreground hover:text-destructive"})})]}):p.jsxs("label",{className:"flex items-center gap-2 p-3 bg-secondary border-2 border-dashed border-border rounded-md cursor-pointer hover:border-primary transition-colors",children:[p.jsx(sl,{className:"w-4 h-4 text-muted-foreground"}),p.jsx("span",{className:"text-sm text-muted-foreground",children:"Click to upload image"}),p.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:v=>u(v.target.files[0])})]})})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Display Order"}),p.jsx(at,{type:"number",value:o.order,onChange:v=>a({...o,order:Number(v.target.value)}),className:"mt-1.5 bg-secondary border-border w-24"})]})]}),p.jsxs("div",{className:"flex gap-2 mt-6",children:[p.jsxs(We,{onClick:()=>m.mutate(),disabled:m.isPending||d||!o.name,className:"flex-1",children:[(m.isPending||d)&&p.jsx(xs,{className:"w-4 h-4 mr-2 animate-spin"}),r?"Add Company":"Save Changes"]}),!r&&p.jsx(We,{variant:"destructive",onClick:()=>g.mutate(),disabled:g.isPending,children:p.jsx(fm,{className:"w-4 h-4"})}),p.jsx(We,{variant:"outline",onClick:t,children:"Cancel"})]})]})})}function sz(){const{user:e}=Pi(),t=(e==null?void 0:e.role)==="admin",[n,r]=w.useState(null),[o,a]=w.useState(!1),{data:l=[]}=jr({queryKey:["glp-companies"],queryFn:()=>Oe.entities.GLPCompany.list("order",100)});return p.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[p.jsxs("div",{className:"text-center mb-12",children:[p.jsx("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-foreground font-playfair",children:"GLP GROUP"}),p.jsx("p",{className:"text-muted-foreground mt-3 max-w-2xl mx-auto",children:"A diversified international group of companies operating across finance, technology, media, energy, construction, fashion, and more."}),p.jsxs("div",{className:"flex items-center justify-center gap-3 mt-6",children:[p.jsx("div",{className:"h-px bg-border flex-1 max-w-[100px]"}),p.jsx("span",{className:"text-xs text-primary font-medium tracking-widest uppercase",children:"Our C
399ompanies"}),p.jsx("div",{className:"h-px bg-border flex-1 max-w-[100px]"})]}),t&&p.jsx("div",{className:"mt-6",children:p.jsxs(We,{onClick:()=>a(!0),className:"flex items-center gap-2",children:[p.jsx(Yu,{className:"w-4 h-4"})," Add Company"]})})]}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:l.map((u,d)=>p.jsxs(Et.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:d*.05},className:"group relative bg-card border border-border rounded-xl overflow-hidden hover:border-primary/40 transition-all duration-300",children:[t&&p.jsx("button",{onClick:()=>r(u),className:"absolute top-2 right-2 z-10 p-1.5 bg-black/70 hover:bg-primary text-white rounded-md opacity-0 group-hover:opacity-100 transition-opacity",children:p.jsx(dm,{className:"w-3.5 h-3.5"})}),p.jsxs("div",{className:"cursor-pointer",onClick:()=>u.website_url&&window.open(u.website_url,"_blank","noopener,noreferrer"),children:[p.jsxs("div",{className:"aspect-video relative overflow-hidden bg-black",children:[u.image_url?p.jsx("img",{src:u.image_url,alt:u.name,className:"w-full h-full object-contain transition-transform duration-500 group-hover:scale-105"}):p.jsx("div",{className:"w-full h-full flex items-center justify-center text-muted-foreground text-sm",children:"No Image"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-card to-transparent"})]}),p.jsxs("div",{className:"p-5",children:[p.jsx("h3",{className:"text-base font-semibold text-foreground group-hover:text-primary transition-colors mb-1",children:u.name}),u.description&&p.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:u.description}),u.website_url&&p.jsxs("div",{className:"flex items-center gap-1.5 mt-3 text-xs text-primary font-medium",children:["Visit Website ",p.jsx(p1,{className:"w-3 h-3"})]})]})]})]},u.id))}),o&&p.jsx(Qb,{company:null,onClose:()=>a(!1)}),n&&p.jsx(Qb,{company:n,onClose:()=>r(null)})]})}function iz({onClose:e,existingLive:t}){const n=dr(),r=w.useRef(null),o=w.useRef(null),[a,l]=w.useState("setup"),[u,d]=w.useState((t==null?void 0:t.title)||""),[h,m]=w.useState((t==null?void 0:t.description)||""),[g,v]=w.useState((t==null?void 0:t.category)||"world_news"),[C,E]=w.useState("camera"),[b,_]=w.useState(!0),[S,k]=w.useState(""),[P,T]=w.useState(t||null);w.useEffect(()=>{t&&l("live")},[t]);const j=async()=>{k("");try{let H;C==="camera"?H=await navigator.mediaDevices.getUserMedia({video:!0,audio:b}):H=await navigator.mediaDevices.getDisplayMedia({video:!0,audio:b}),o.current=H,r.current&&(r.current.srcObject=H,r.current.play()),l("previewing")}catch{k("Could not access camera/microphone. Please allow permissions.")}},F=async()=>{if(!u.trim()){k("Please enter a title.");return}l("live");let H;P?(H=await Oe.entities.NewsBulletin.update(P.id,{title:u,description:h,category:g,is_live:!0,status:"published"}),T({...P,title:u,description:h,category:g})):(H=await Oe.entities.NewsBulletin.create({title:u,description:h,category:g,is_live:!0,status:"published",views:0}),T(H)),n.invalidateQueries({queryKey:["bulletins"]})},U=async()=>{l("stopping"),o.current&&(o.current.getTracks().forEach(H=>H.stop()),o.current=null),P&&(await Oe.entities.NewsBulletin.update(P.id,{is_live:!1}),n.invalidateQueries({queryKey:["bulletins"]})),e()},O=()=>{o.current&&(o.current.getTracks().forEach(H=>H.stop()),o.current=null),l("setup")};return p.jsxs(Et.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"bg-card border border-border rounded-xl p-6 mb-8",children:[p.jsxs("div",{className:"flex items-center justify-between mb-6",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(ws,{className:"w-5 h-5 text-destructive animate-pulse"}),p.jsx("h3",{className:"text-lg font-bold text-foreground",children:a==="live"?"ð´ Broadcasting Live":"Go Live"})]}),p.jsx("button",{onClick:a==="live"?U:a==="previewing"?O:e,className:"text-muted-foreground hover:text-foreground",children:p.jsx(Pn,{className:"w-5 h-5"})})]}),a==="setup"&&p.jsxs("div",{className:"space-y-5",children:[p.jsxs("div",{children:[p.jsx(Qe,{children:"Stream Title *"}),p.jsx(at,{value:u,onChange:H=>d(H.target.value),placeholder:"Live broadcast title",className:"mt-1.5 bg-secondary border-border"})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Description"}),p.jsx(Qo,{value:h,onChange:H=>m(H.target.value),placeholder:"What's this broadcast about?",rows:2,className:"mt-1.5 bg-secondary border-border"})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{children:[p.jsx(Qe,{children:"Category"}),p.jsxs(Lo,{value:g,onValueChange:v,children:[p.jsx(Ei,{className:"mt-1.5 bg-secondary border-border",children:p.jsx(Do,{})}),p.jsx(_i,{children:[["world_news","World News"],["geopolitics","Geopolitics"],["markets","Markets"],["politics","Politics"],["business","Business"],["special_report","Special Report"]].map(([H,X])=>p.jsx(sr,{value:H,children:X},H))})]})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Source"}),p.jsxs(Lo,{value:C,onValueChange:E,children:[p.jsx(Ei,{className:"mt-1.5 bg-secondary border-border",children:p.jsx(Do,{})}),p.jsxs(_i,{children:[p.jsxs(sr,{value:"camera",children:[p.jsx(Ox,{className:"inline w-3.5 h-3.5 mr-1"}),"Camera"]}),p.jsxs(sr,{value:"screen",children:[p.jsx(JT,{className:"inline w-3.5 h-3.5 mr-1"}),"Screen Share"]})]})]})]})]}),p.jsx("div",{className:"flex items-center gap-3",children:p.jsxs("button",{type:"button",onClick:()=>_(!b),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm border transition-colors ${b?"border-accent text-accent bg-accent/10":"border-border text-muted-foreground"}`,children:[b?p.jsx(YT,{className:"w-4 h-4"}):p.jsx(GT,{className:"w-4 h-4"}),b?"Mic On":"Mic Off"]})}),S&&p.jsx("p",{className:"text-sm text-destructive",children:S}),p.jsxs("div",{className:"flex justify-end gap-3 pt-2 border-t border-border",children:[p.jsx(We,{variant:"outline",onClick:e,children:"Cancel"}),p.jsxs(We,{onClick:j,className:"bg-destructive hover:bg-destructive/90 text-white",children:[p.jsx(Ox,{className:"w-4 h-4 mr-2"})," Start Preview"]})]})]}),a==="previewing"&&p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"relative aspect-video bg-black rounded-lg overflow-hidden",children:[p.jsx("video",{ref:r,muted:!0,className:"w-full h-full object-cover"}),p.jsx("div",{className:"absolute top-3 left-3 px-2 py-1 bg-yellow-500 text-black text-xs font-bold rounded uppercase",children:"Preview"})]}),!u.trim()&&p.jsxs("div",{children:[p.jsx(Qe,{children:"Stream Title *"}),p.jsx(at,{value:u,onChange:H=>d(H.target.value),placeholder:"Enter a title to go live",className:"mt-1.5 bg-secondary border-border"})]}),S&&p.jsx("p",{className:"text-sm text-destructive",children:S}),p.jsxs("div",{className:"flex justify-end gap-3 pt-2 border-t border-border",children:[p.jsx(We,{variant:"outline",onClick:O,children:"Back"}),p.jsxs(We,{onClick:F,className:"bg-destructive hover:bg-destructive/90 text-white",children:[p.jsx(ws,{className:"w-4 h-4 mr-2 animate-pulse"})," Go Live Now"]})]})]}),a==="live"&&p.jsxs("div",{className:"space-y-4",children:[o.current?p.jsxs("div",{className:"relative aspect-video bg-black rounded-lg overflow-hidden",children:[p.jsx("video",{ref:r,muted:!0,className:"w-full h-full object-cover"}),p.jsxs("div",{className:"absolute top-3 left-3 flex items-center gap-2 px-2 py-1 bg-destructive text-white text-xs font-bold rounded uppercase",children:[p.jsx("span",{className:"w-2 h-2 rounded-full bg-white animate-pulse"})," LIVE"]})]}):p.jsxs("div",{className:"p-5 bg-destructive/10 border border-destructive/30 rounded-lg text-center",children:[p.jsx(ws,{className:"w-8 h-8 text-destructive mx-auto mb-2 animate-pulse"}),p.jsx("p",{className:"text-foreground font-semibold",children:"You are LIVE"}),p.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:['"',(P==null?void 0:P.title)||u,'"']}),p.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"Viewers can see your stream on the Live Stream page"})]}),p.jsx("div",{className:"flex justify-end gap-3 pt-2 border-t border-border",children:p.jsxs(We,{onClick:U,className:"bg-destructive hover:bg-destructive/90 text-white",children:[p.jsx(xT,{className:"w-4 h-4 mr-2"})," End Live Stream"]})})]}),a==="stopping"&&p.jsxs("div",{className:"py-8 text-center",children:[p.jsx(xs,{className:"w-8 h-8 animate-spin text-primary mx-auto mb-3"}),p.jsx("p",{className:"text-muted-foreground",children:"Ending broadcast..."})]})]})}function oz(){const{user:e}=Pi(),t=(e==null?void 0:e.role)==="admin",[n,r]=w.useState(null),[o,a]=w.useState(!1),[l,u]=w.useState(!1),{data:d=[]}=jr({queryKey:["bulletins"],queryFn:()=>Oe.entities.NewsBulletin.list("-created_date",50)}),h=d.find(E=>E.is_live&&E.status==="published"),m=d.filter(E=>E.status==="published"&&!E.is_live),g=m[0],v=h||g,C=m.slice(0,8);return p.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[p.jsxs("div",{className:"mb-12",children:[p.jsxs("div",{className:"flex items-center justify-between gap-3 mb-6",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("span",{className:"flex items-center gap-2 px-3 py-1.5 bg-destructive/20 text-destructive rounded-full text-sm font-bold uppercase tracking-wider",children:[p.jsx(ws,{className:"w-4 h-4 animate-pulse"})," Live Stream"]}),p.jsx("span",{className:"text-sm text-muted-foreground",children:"GLP Channel Broadcasting"})]}),t&&p.jsxs("div",{className:"flex gap-2",children:[p.jsxs(We,{variant:"outline",onClick:()=>{a(!o),u(!1)},className:"flex-shrink-0",children:[p.jsx(Yu,{className:"w-4 h-4 mr-2"}),"Upload Video"]}),p.jsxs(We,{onClick:()=>{u(!l),a(!1)},className:"flex-shrink-0 bg-destructive hover:bg-destructive/90 text-white",children:[p.jsx(pR,{className:"w-4 h-4 mr-2"}),"Go Live"]})]})]}),o&&p.jsx(dN,{onClose:()=>a(!1)}),l&&p.jsx(iz,{onClose:()=>u(!1),existingLive:h}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[p.jsxs("div",{className:"lg:col-span-2",children:[p.jsxs(Et.div,{initial:{opacity:0,y:20}
399,animate:{opacity:1,y:0},className:"relative aspect-video bg-card rounded-xl overflow-hidden border border-border",children:[v!=null&&v.video_url?(()=>{const E=v.video_url,b=E.match(/vimeo\.com\/(\d+)/),_=E.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([a-zA-Z0-9_-]{11})/);return b?p.jsx("iframe",{src:`https://player.vimeo.com/video/${b[1]}?autoplay=1&muted=1${h?"":"&loop=1"}`,className:"w-full h-full",allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0},v.id):_?p.jsx("iframe",{src:`https://www.youtube.com/embed/${_[1]}?autoplay=1&mute=1${h?"":`&loop=1&playlist=${_[1]}`}`,className:"w-full h-full",allow:"autoplay; fullscreen",allowFullScreen:!0},v.id):p.jsx("video",{src:E,controls:!0,autoPlay:!0,muted:!0,loop:!h,playsInline:!0,poster:v.thumbnail_url||void 0,className:"w-full h-full object-contain bg-black"},v.id)})():p.jsxs("div",{className:"w-full h-full bg-gradient-to-br from-secondary to-muted flex flex-col items-center justify-center",children:[p.jsx("div",{className:"w-20 h-20 rounded-full bg-primary/10 flex items-center justify-center mb-4",children:p.jsx(Ro,{className:"w-8 h-8 text-primary"})}),p.jsx("p",{className:"text-foreground font-semibold text-lg",children:"GLP CHANNEL"}),p.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Live broadcast will begin shortly"}),p.jsxs("div",{className:"flex items-center gap-2 mt-4",children:[p.jsx("div",{className:"w-2 h-2 rounded-full bg-primary animate-pulse"}),p.jsx("span",{className:"text-xs text-muted-foreground",children:"Standby"})]})]}),h&&p.jsx("div",{className:"absolute top-4 left-4 flex items-center gap-2",children:p.jsx("span",{className:"px-2 py-1 bg-destructive text-white text-xs font-bold rounded uppercase",children:"LIVE"})})]}),p.jsxs("div",{className:"mt-4 p-4 bg-card rounded-lg border border-border",children:[p.jsx("h2",{className:"text-xl font-bold text-foreground font-playfair",children:(v==null?void 0:v.title)||"GLP Channel â Live Broadcast"}),p.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:(v==null?void 0:v.description)||"Independent International Digital News Network. Watch world news, documentaries, geopolitics, markets, and global affairs."}),p.jsxs("div",{className:"flex items-center gap-4 mt-3 text-xs text-muted-foreground",children:[p.jsxs("span",{className:"flex items-center gap-1",children:[p.jsx(vR,{className:"w-3.5 h-3.5"})," GLP Channel"]}),p.jsxs("span",{className:"flex items-center gap-1",children:[p.jsx(m1,{className:"w-3.5 h-3.5"})," AI-Powered Broadcast"]})]})]})]}),p.jsxs("div",{className:"lg:col-span-1",children:[p.jsx("h3",{className:"text-sm font-semibold text-foreground uppercase tracking-wider mb-4",children:"Up Next"}),p.jsx("div",{className:"space-y-4",children:C.slice(0,5).map(E=>p.jsxs("div",{onClick:()=>r(E),className:"flex gap-3 cursor-pointer group",children:[p.jsxs("div",{className:"relative w-32 flex-shrink-0 aspect-video rounded-md overflow-hidden bg-muted",children:[E.thumbnail_url?p.jsx("img",{src:E.thumbnail_url,alt:E.title,className:"w-full h-full object-cover"}):p.jsx("div",{className:"w-full h-full bg-secondary flex items-center justify-center",children:p.jsx(Ro,{className:"w-4 h-4 text-muted-foreground"})}),E.duration&&p.jsx("span",{className:"absolute bottom-1 right-1 px-1.5 py-0.5 bg-black/80 text-white text-[10px] rounded font-mono",children:E.duration})]}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("h4",{className:"text-sm font-medium text-foreground line-clamp-2 group-hover:text-primary transition-colors leading-snug",children:E.title}),p.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:E.anchor_name||"GLP Channel"})]})]},E.id))})]})]})]}),C.length>5&&p.jsxs("section",{children:[p.jsx("h3",{className:"text-lg font-bold text-foreground font-playfair mb-6",children:"Recent Broadcasts"}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:C.slice(5).map((E,b)=>p.jsx(xg,{bulletin:E,index:b,onPlay:r},E.id))})]}),p.jsx(wg,{bulletin:n,onClose:()=>r(null)})]})}const az="https://media.base44.com/images/public/69bb308266591730c22b3141/e2e9ba45d_generated_cd0a029c.png";function lz(){const{toast:e}=um(),[t,n]=w.useState(!1),[r,o]=w.useState({name:"",email:"",ph
399one:"",message:""}),a=dn({mutationFn:u=>Oe.entities.ContactMessage.create(u),onSuccess:()=>{n(!0),o({name:"",email:"",phone:"",message:""})},onError:()=>{e({title:"Error",description:"Failed to send message. Please try again.",variant:"destructive"})}}),l=u=>{if(u.preventDefault(),!r.name||!r.email||!r.message){e({title:"Required fields",description:"Please fill in name, email and message.",variant:"destructive"});return}a.mutate(r)};return p.jsxs("div",{children:[p.jsxs("div",{className:"relative h-48 sm:h-64 overflow-hidden",children:[p.jsx("img",{src:az,alt:"Contact GLP Channel",className:"w-full h-full object-cover"}),p.jsx("div",{className:"absolute inset-0 bg-background/70"}),p.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:p.jsxs("div",{className:"text-center",children:[p.jsx("h1",{className:"text-3xl sm:text-4xl font-bold text-foreground font-playfair",children:"Contact Us"}),p.jsx("p",{className:"text-muted-foreground mt-2",children:"Ready to leave a mark? Get in touch."})]})})]}),p.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[p.jsx("div",{children:t?p.jsxs(Et.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"text-center py-16",children:[p.jsx(h1,{className:"w-16 h-16 text-accent mx-auto mb-4"}),p.jsx("h3",{className:"text-2xl font-bold text-foreground",children:"Message Sent!"}),p.jsx("p",{className:"text-muted-foreground mt-2",children:"Thank you for reaching out. We'll get back to you soon."}),p.jsx(We,{onClick:()=>n(!1),variant:"outline",className:"mt-6",children:"Send Another Message"})]}):p.jsxs("form",{onSubmit:l,className:"space-y-5",children:[p.jsxs("div",{children:[p.jsx("label",{className:"text-sm font-medium text-foreground mb-1.5 block",children:"Name *"}),p.jsx(at,{value:r.name,onChange:u=>o({...r,name:u.target.value}),placeholder:"Your full name",className:"bg-secondary border-border"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"text-sm font-medium text-foreground mb-1.5 block",children:"Email *"}),p.jsx(at,{type:"email",value:r.email,onChange:u=>o({...r,email:u.target.value}),placeholder:"[email protected]",className:"bg-secondary border-border"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"text-sm font-medium text-foreground mb-1.5 block",children:"Phone"}),p.jsx(at,{value:r.phone,onChange:u=>o({...r,phone:u.target.value}),placeholder:"+44 ...",className:"bg-secondary border-border"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"text-sm font-medium text-foreground mb-1.5 block",children:"Message *"}),p.jsx(Qo,{value:r.message,onChange:u=>o({...r,message:u.target.value}),placeholder:"How can we help you?",rows:5,className:"bg-secondary border-border"})]}),p.jsxs(We,{type:"submit",disabled:a.isPending,className:"w-full",children:[p.jsx(lR,{className:"w-4 h-4 mr-2"}),a.isPending?"Sending...":"Send Message"]})]})}),p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"bg-card rounded-xl border border-border p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[p.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:p.jsx(cT,{className:"w-5 h-5 text-primary"})}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-semibold text-foreground",children:"GLP CHANNEL"}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"View of the World"})]})]}),p.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"GLP CHANNEL broadcasts its newscast using artificial intelligence (AI). Here you can watch world news, documentaries, get information about politics and business, get history lessons and watch discussions about Christianity."})]}),p.jsxs("div",{className:"bg-card rounded-xl border border-border p-6",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[p.jsx("div",{className:"w-10 h-10 rounded-lg bg-accent/10 flex items-center justify-center",children:p.jsx(zT,{className:"w-5 h-5 text-accent"})}),p.jsx("h3",{className:"font-semibold text-foreground",children:"Our Address"})]}),p.jsxs("p",{className:"text-sm text-muted-foreground",children:["Kemp House, 160 City Road",p.jsx("br",{}),"London EC1V 2NX, UK"]})]}),p.jsxs("div",{className:"bg-card rounded-xl border border-border p-6",children:[p.jsx("h4",{className:"text-sm font-semibold text-foreground mb-3",children:"Corporate Structure"}),p.jsxs("div",{className:"space-y-2 text-sm text-muted-foreground",children:[p.jsxs("p",{children:[p.jsx("span",{className:"text-primary font-medium",children:"GLP CHA
399NNEL"})," â Independent Digital News Network"]}),p.jsxs("p",{className:"pl-4",children:["â³ Part of ",p.jsx("span",{className:"text-primary font-medium",children:"GLP MEDIA GROUP"})]}),p.jsxs("p",{className:"pl-8",children:["â³ A ",p.jsx("span",{className:"text-primary font-medium",children:"GLP GROUP"})," company"]})]})]})]})]})})]})}var vd="Switch",[cz]=Ho(vd),[uz,dz]=cz(vd),fN=w.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:l,disabled:u,value:d="on",onCheckedChange:h,form:m,...g}=e,[v,C]=w.useState(null),E=gt(t,P=>C(P)),b=w.useRef(!1),_=v?m||!!v.closest("form"):!0,[S,k]=yl({prop:o,defaultProp:a??!1,onChange:h,caller:vd});return p.jsxs(uz,{scope:n,checked:S,disabled:u,children:[p.jsx(Ye.button,{type:"button",role:"switch","aria-checked":S,"aria-required":l,"data-state":gN(S),"data-disabled":u?"":void 0,disabled:u,value:d,...g,ref:E,onClick:$e(e.onClick,P=>{k(T=>!T),_&&(b.current=P.isPropagationStopped(),b.current||P.stopPropagation())})}),_&&p.jsx(mN,{control:v,bubbles:!b.current,name:r,value:d,checked:S,required:l,disabled:u,form:m,style:{transform:"translateX(-100%)"}})]})});fN.displayName=vd;var hN="SwitchThumb",pN=w.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=dz(hN,n);return p.jsx(Ye.span,{"data-state":gN(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});pN.displayName=hN;var fz="SwitchBubbleInput",mN=w.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const l=w.useRef(null),u=gt(l,a),d=m_(n),h=r_(t);return w.useEffect(()=>{const m=l.current;if(!m)return;const g=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(g,"checked").set;if(d!==n&&C){const E=new Event("click",{bubbles:r});C.call(m,n),m.dispatchEvent(E)}},[d,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:u,style:{...o.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});mN.displayName=fz;function gN(e){return e?"checked":"unchecked"}var yN=fN,hz=pN;const nm=w.forwardRef(({className:e,...t},n)=>p.jsx(yN,{className:Ve("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:p.jsx(hz,{className:Ve("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));nm.displayName=yN.displayName;const pz=[{value:"world_news",label:"World News"},{value:"geopolitics",label:"Geopolitics"},{value:"markets",label:"Markets"},{value:"documentaries",label:"Documentaries"},{value:"politics",label:"Politics"},{value:"business",label:"Business"},{value:"history",label:"History"},{value:"christianity",label:"Christianity"},{value:"special_report",label:"Special Report"}];function mz({bulletin:e,onSave:t,onCancel:n,isSaving:r}){const[o,a]=w.useState({title:(e==null?void 0:e.title)||"",description:(e==null?void 0:e.description)||"",category:(e==null?void 0:e.category)||"world_news",anchor_name:(e==null?void 0:e.anchor_name)||"",duration:(e==null?void 0:e.duration)||"",is_featured:(e==null?void 0:e.is_featured)||!1,is_live:(e==null?void 0:e.is_live)||!1,status:(e==null?void 0:e.status)||"published",video_url:(e==null?void 0:e.video_url)||"",thumbnail_url:(e==null?void 0:e.thumbnail_url)||""}),[l,u]=w.useState(!1),d=async(m,g)=>{const v=m.target.files[0];if(!v)return;u(!0);const{file_url:C}=await Oe.integrations.Core.UploadFile({file:v});a(E=>({...E,[g]:C})),u(!1)},h=m=>{m.preventDefault(),t(o)};return p.jsxs(Et.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"bg-card border border-border rounded-xl p-6 mb-6",children:[p.jsxs("div",{className:"flex items-center justify-between mb-6",children:[p.jsx("h3",{className:"text-lg font-bold text-foreground",children:e?"Edit Bulletin":"Upload News Bulletin"}),p.jsx("button",{onClick:n,className:"text-muted-foreground hover:text-foreground",children:p.jsx(Pn,{className:"w-5 h-5"})})]}),p.jsxs("form",{onSubmit:h,className:"space-y-5",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[p.jsxs("div",{className:"md:col-span-2",children:[p.jsx(Qe,{children:"Title *"}),p.jsx(at,{value:o.title,onChange:m=>a({...o,title:m.target.value}),placeholder:"Bulletin title",className:"mt-1.5 bg-secondary border-border"})]}),p.jsxs("div",{className:"md:col-span-2",children:[p.jsx(Qe,{children:"Description"}),p.jsx(Qo,{value:o.description,onChange:m=>a({...o,description:m.target.value}),placeholder:"Brief description...",rows:3,className:"mt-1.5 bg-secondary border-border"})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Category"}),p.jsxs(Lo,{value:o.category,onValueChange:m=>a({...o,category:m}),children:[p.jsx(Ei,{className:"mt-1.5 bg-secondary border-border",children:p.jsx(Do,{})}),p.jsx(_i,{children:pz.map(m=>p.jsx(sr,{value:m.value,children:m.label},m.value))})]})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Anchor Name"}),p.jsx(at,{value:o.anchor_name,onChange:m=>a({...o,anchor_name:m.target.value}),placeholder:"Presenter name",className:"mt-1.5 bg-secondary border-border"})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Duration"}),p.jsx(at,{value:o.duration,onChange:m=>a({...o,duration:m.target.value}),placeholder:"e.g. 12:34",className:"mt-1.5 bg-secondary border-border"})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Status"}),p.jsxs(Lo,{value:o.status,onValueChange:m=>a({...o,status:m}),children:[p.jsx(Ei,{className:"mt-1.5 bg-secondary border-border",children:p.jsx(Do,{})}),p.jsxs(_i,{children:[p.jsx(sr,{value:"draft",children:"Draft"}),p.jsx(sr,{value:"published",children:"Published"}),p.jsx(sr,{value:"archived",children:"Archived"})]})]})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Video File"}),p.jsx("div",{className:"mt-1.5",children:o.video_url?p.jsxs("div",{className:"flex items-center gap-2 p-2 bg-secondary rounded-md",children:[p.jsx("span",{className:"text-xs text-accent truncate flex-1",children:"Video uploaded"}),p.jsx("button",{type:"button",onClick:()=>a({...o,video_url:""}),className:"text-muted-foreground hover:text-destructive",children:p.jsx(Pn,{className:"w-4 h-4"})})]}):p.jsxs("label",{className:"flex items-center gap-2 p-3 bg-secondary border border-dashed border-border rounded-md cursor-pointer hover:border-primary transition-colors",children:[p.jsx(sl,{className:"w-4 h-4 text-muted-foreground"}),p.jsx("span",{className:"text-sm text-muted-foreground",children:"Upload video"}),p.jsx("input",{type:"file",accept:"video/*",className:"hidden",onChange:m=>d(m,"video_url")})]})})]}),p.jsxs("div",{children:[p.jsx(Qe,{children:"Thumbnail Image"}),p.jsx("div",{className:"mt-1.5",children:o.thumbnail_url?p.jsxs("div",{className:"flex items-center gap-2 p-2 bg-secondary rounded-md",children:[p.jsx("img",{src:o.thumbnail_url,alt:"",className:"w-16 h-10 object-cover rounded"}),p.jsx("button",{type:"button",onClick:()=>a({...o,thumbnail_url:""}),className:"text-muted-foreground hover:text-destructive ml-auto",children:p.jsx(Pn,{className:"w-4 h-4"})})]}):p.jsxs("label",{className:"flex items-center gap-2 p-3 bg-secondary border border-dashed border-border rounded-md cursor-pointer hover:border-primary transition-colors",children:[p.jsx(sl,{className:"w-4 h-4 text-muted-foreground"}),p.jsx("span",{className:"text-sm text-muted-foreground",children:"Upload thumbnail"}),p.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:m=>d(m,"thumbnail_url")})]})})]})]}),p.jsxs("div",{className:"flex flex-wrap gap-6 pt-2",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(nm,{checked:o.is_featured,onCheckedChange:m=>a({...o,is_featured:m})}),p.jsx(Qe,{children:"Featured"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(nm,{checked:o.is_live,onCheckedChange:m=>a({...o,is_live:m})}),p.jsx(Qe,{children:"Live Stream"})]})]}),p.jsxs("div",{className:"flex justify-end gap-3 pt-4 border-t border-border",children:[p.jsx(We,{type:"button",variant:"outline",onClick:n,children:"Cancel"}),p.jsxs(We,{type:"submit",disabled:r||l||!o.title,children:[(r||l)&&p.jsx(xs,{className:"w-4 h-4 mr-2 animate-spin"}
399),e?"Update Bulletin":"Publish Bulletin"]})]})]})]})}const vN=w.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:"relative w-full overflow-auto",children:p.jsx("table",{ref:n,className:Ve("w-full caption-bottom text-sm",e),...t})}));vN.displayName="Table";const xN=w.forwardRef(({className:e,...t},n)=>p.jsx("thead",{ref:n,className:Ve("[&_tr]:border-b",e),...t}));xN.displayName="TableHeader";const wN=w.forwardRef(({className:e,...t},n)=>p.jsx("tbody",{ref:n,className:Ve("[&_tr:last-child]:border-0",e),...t}));wN.displayName="TableBody";const gz=w.forwardRef(({className:e,...t},n)=>p.jsx("tfoot",{ref:n,className:Ve("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));gz.displayName="TableFooter";const rm=w.forwardRef(({className:e,...t},n)=>p.jsx("tr",{ref:n,className:Ve("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));rm.displayName="TableRow";const lo=w.forwardRef(({className:e,...t},n)=>p.jsx("th",{ref:n,className:Ve("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));lo.displayName="TableHead";const co=w.forwardRef(({className:e,...t},n)=>p.jsx("td",{ref:n,className:Ve("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));co.displayName="TableCell";const yz=w.forwardRef(({className:e,...t},n)=>p.jsx("caption",{ref:n,className:Ve("mt-4 text-sm text-muted-foreground",e),...t}));yz.displayName="TableCaption";const vz=Qu("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function bN({className:e,variant:t,...n}){return p.jsx("div",{className:Ve(vz({variant:t}),e),...n})}function SN({className:e,...t}){return p.jsx("div",{className:Ve("animate-pulse rounded-md bg-primary/10",e),...t})}const xz={published:"bg-accent/20 text-accent border-accent/30",draft:"bg-muted text-muted-foreground border-border",archived:"bg-secondary text-secondary-foreground border-border"};function wz({bulletins:e,isLoading:t,onEdit:n,onDelete:r}){return t?p.jsx("div",{className:"space-y-3",children:Array(5).fill(0).map((o,a)=>p.jsx(SN,{className:"h-16 w-full rounded-lg"},a))}):e.length===0?p.jsx("div",{className:"text-center py-16",children:p.jsx("p",{className:"text-muted-foreground",children:'No bulletins yet. Click "Upload News Bulletin" to add one.'})}):p.jsx("div",{className:"bg-card border border-border rounded-xl overflow-hidden",children:p.jsxs(vN,{children:[p.jsx(xN,{children:p.jsxs(rm,{className:"bg-secondary/50",children:[p.jsx(lo,{children:"Title"}),p.jsx(lo,{className:"hidden md:table-cell",children:"Category"}),p.jsx(lo,{className:"hidden sm:table-cell",children:"Status"}),p.jsx(lo,{className:"hidden lg:table-cell",children:"Date"}),p.jsx(lo,{className:"text-right",children:"Actions"})]})}),p.jsx(wN,{children:e.map(o=>{var a;return p.jsxs(rm,{className:"group",children:[p.jsx(co,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[o.thumbnail_url&&p.jsx("img",{src:o.thumbnail_url,alt:"",className:"w-16 h-10 rounded object-cover hidden sm:block"}),p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"font-medium text-foreground text-sm",children:o.title}),o.is_featured&&p.jsx(y1,{className:"w-3.5 h-3.5 text-primary fill-primary"}),o.is_live&&p.jsx(ws,{className:"w-3.5 h-3.5 text-destructive"})]}),o.anchor_name&&p.jsx("p",{className:"text-xs text-muted-foreground",children:o.anchor_name})]})]})}),p.jsx(co,{className:"hidden md:table-cell",children:p.jsx("span",{className:"text-xs text-muted-foreground capitalize",children:(a=o.category)==null?void 0:a.replace(/_/g," ")})}),p.jsx(co,{className:"hidden sm:table-cell",children:p.jsx(bN,{variant:"outline",className:xz[o.status],children:o.status})}),p.jsx(co,{className:"hidden lg:table-cell text-xs text-muted-foreground",children:o.created_date?vg(new Date(o.created_date),"MMM d, yyyy"):"â"}),p.jsx(co,{className:"text-right",children:p.jsxs("div",{className:"flex items-center justify-end gap-1",children:[p.jsx(We,{variant:"ghost",size:"icon",onClick:()=>n(o),children:p.jsx(dm,{className:"w-4 h-4"})}),p.jsx(We,{variant:"ghost",size:"icon",onClick:()=>r(o.id),children:p.jsx(fm,{className:"w-4 h-4 text-destructive"})})]})})]},o.id)})})]})})}function bz(){const e=dr(),{data:t=[],isLoading:n}=jr({queryKey:["contact-messages"],queryFn:()=>Oe.entities.ContactMessage.list("-created_date",100)}),r=dn({mutationFn:({id:a,data:l})=>Oe.entities.ContactMessage.update(a,l),onSuccess:()=>e.invalidateQueries({queryKey:["contact-messages"]})}),o=dn({mutationFn:a=>Oe.entities.ContactMessage.delete(a),onSuccess:()=>e.invalidateQueries({queryKey:["contact-messages"]})});return n?p.jsx("div",{className:"space-y-3",children:Array(3).fill(0).map((a,l)=>p.jsx(SN,{className:"h-24 w-full rounded-lg"},l))}):t.length===0?p.jsxs("div",{className:"text-center py-16",children:[p.jsx(VT,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),p.jsx("p",{className:"text-muted-foreground",children:"No messages yet"})]}):p.jsx("div",{className:"space-y-3",children:t.map(a=>p.jsx("div",{className:`bg-card border rounded-lg p-4 ${a.status==="new"?"border-primary/30":"border-border"}`,children:p.jsxs("div",{className:"flex items-start justify-between gap-4",children:[p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[p.jsx("span",{className:"font-medium text-foreground text-sm",children:a.name}),p.jsx(bN,{variant:"outline",className:a.status==="new"?"bg-primary/10 text-primary border-primary/20":"bg-secondary text-muted-foreground",children:a.status})]}),p.jsxs("p",{className:"text-xs text-muted-foreground mt-0.5",children:[a.email," ",a.phone&&`⢠${a.phone}`]}),p.jsx("p",{className:"text-sm text-foreground mt-2",children:a.message}),p.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:a.created_date&&vg(new Date(a.created_date),"MMM d, yyyy 'at' h:mm a")})]}),p.jsxs("div",{className:"flex items-center gap-1",children:[a.status==="new"&&p.jsx(We,{variant:"ghost",size:"icon",onClick:()=>r.mutate({id:a.id,data:{status:"read"}}),children:p.jsx(BT,{className:"w-4 h-4"})}),p.jsx(We,{variant:"ghost",size:"icon",onClick:()=>o.mutate(a.id),children:p.jsx(fm,{className:"w-4 h-4 text-destructive"})})]})]})},a.id))})}var tp="rovingFocusGroup.onEntryFocus",Sz={bubbles:!1,cancelable:!0},Ll="RovingFocusGroup",[sm,CN,Cz]=BE(Ll),[Ez,EN]=Ho(Ll,[Cz]),[_z,Nz]=Ez(Ll),_N=w.forwardRef((e,t)=>
vendor: 5,332 bytes, line 399
399p.jsx(sm.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(sm.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(kz,{...e,ref:t})})}));_N.displayName=Ll;var kz=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...g}=e,v=w.useRef(null),C=gt(t,v),E=bg(a),[b,_]=yl({prop:l,defaultProp:u??null,onChange:d,caller:Ll}),[S,k]=w.useState(!1),P=ks(h),T=CN(n),j=w.useRef(!1),[F,U]=w.useState(0);return w.useEffect(()=>{const O=v.current;if(O)return O.addEventListener(tp,P),()=>O.removeEventListener(tp,P)},[P]),p.jsx(_z,{scope:n,orientation:r,dir:E,loop:o,currentTabStopId:b,onItemFocus:w.useCallback(O=>_(O),[_]),onItemShiftTab:w.useCallback(()=>k(!0),[]),onFocusableItemAdd:w.useCallback(()=>U(O=>O+1),[]),onFocusableItemRemove:w.useCallback(()=>U(O=>O-1),[]),children:p.jsx(Ye.div,{tabIndex:S||F===0?-1:0,"data-orientation":r,...g,ref:C,style:{outline:"none",...e.style},onMouseDown:$e(e.onMouseDown,()=>{j.current=!0}),onFocus:$e(e.onFocus,O=>{const H=!j.current;if(O.target===O.currentTarget&&H&&!S){const X=new CustomEvent(tp,Sz);if(O.currentTarget.dispatchEvent(X),!X.defaultPrevented){const ne=T().filter(J=>J.focusable),ue=ne.find(J=>J.active),he=ne.find(J=>J.id===b),Se=[ue,he,...ne].filter(Boolean).map(J=>J.ref.current);PN(Se,m)}}j.current=!1}),onBlur:$e(e.onBlur,()=>k(!1))})})}),NN="RovingFocusGroupItem",kN=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:l,...u}=e,d=Ol(),h=a||d,m=Nz(NN,n),g=m.currentTabStopId===h,v=CN(n),{onFocusableItemAdd:C,onFocusableItemRemove:E,currentTabStopId:b}=m;return w.useEffect(()=>{if(r)return C(),()=>E()},[r,C,E]),p.jsx(sm.ItemSlot,{scope:n,id:h,focusable:r,active:o,children:p.jsx(Ye.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...u,ref:t,onMouseDown:$e(e.onMouseDown,_=>{r?m.onItemFocus(h):_.preventDefault()}),onFocus:$e(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:$e(e.onKeyDown,_=>{if(_.key==="Tab"&&_.shiftKey){m.onItemShiftTab();return}if(_.target!==_.currentTarget)return;const S=Rz(_,m.orientation,m.dir);if(S!==void 0){if(_.metaKey||_.ctrlKey||_.altKey||_.shiftKey)return;_.preventDefault();let P=v().filter(T=>T.focusable).map(T=>T.ref.current);if(S==="last")P.reverse();else if(S==="prev"||S==="next"){S==="prev"&&P.reverse();const T=P.indexOf(_.currentTarget);P=m.loop?jz(P,T+1):P.slice(T+1)}setTimeout(()=>PN(P))}}),children:typeof l=="function"?l({isCurrentTabStop:g,hasTabStop:b!=null}):l})})});kN.displayName=NN;var Pz={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Tz(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Rz(e,t,n){const r=Tz(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Pz[r]}function PN(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function jz(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Az=_N,Oz=kN;function Mz(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var TN=e=>{const{present:t,children:n}=e,r=Lz(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),a=gt(r.ref,Dz(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:a}):null};TN.displayName="Presence";function Lz(e){const[t,n]=w.useState(),r=w.useRef(null),o=w.useRef(e),a=w.useRef("none"),l=e?"mounted":"unmounted",[u,d]=Mz(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const h=cu(r.current);a.current=u==="mounted"?h:"none"},[u]),zt(()=>{const h=r.current,m=o.current;if(m!==e){const v=a.current,C=cu(h);e?d("MOUNT"):C==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(m&&v!==C?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),zt(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,g=C=>{const b=cu(r.current).includes(CSS.escape(C.animationName));if(C.target===t&&b&&(d("ANIMATION_END"),!o.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},v=C=>{C.target===t&&(a.current=cu(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:w.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function cu(e){return(e==null?void 0:e.animationName)||"none"}function Dz(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xd="Tabs",[Iz]=Ho(xd,[EN]),RN=EN(),[Fz,jg]=Iz(xd),jN=w.forwardRef((e,t)=>
399{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:l="horizontal",dir:u,activationMode:d="automatic",...h}=e,m=bg(u),[g,v]=yl({prop:r,onChange:o,defaultProp:a??"",caller:xd});return p.jsx(Fz,{scope:n,baseId:Ol(),value:g,onValueChange:v,orientation:l,dir:m,activationMode:d,children:p.jsx(Ye.div,{dir:m,"data-orientation":l,...h,ref:t})})});jN.displayName=xd;var AN="TabsList",ON=w.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=jg(AN,n),l=RN(n);return p.jsx(Az,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:r,children:p.jsx(Ye.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});ON.displayName=AN;var MN="TabsTrigger",LN=w.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,l=jg(MN,n),u=RN(n),d=FN(l.baseId,r),h=BN(l.baseId,r),m=r===l.value;return p.jsx(Oz,{asChild:!0,...u,focusable:!o,active:m,children:p.jsx(Ye.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":h,"data-state":m?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...a,ref:t,onMouseDown:$e(e.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?l.onValueChange(r):g.preventDefault()}),onKeyDown:$e(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&l.onValueChange(r)}),onFocus:$e(e.onFocus,()=>{const g=l.activationMode!=="manual";!m&&!o&&g&&l.onValueChange(r)})})})});LN.displayName=MN;var DN="TabsContent",IN=w.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...l}=e,u=jg(DN,n),d=FN(u.baseId,r),h=BN(u.baseId,r),m=r===u.value,g=w.useRef(m);return w.useEffect(()=>{const v=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(v)},[]),p.jsx(TN,{present:o||m,children:({present:v})=>p.jsx(Ye.div,{"data-state":m?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!v,id:h,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:v&&a})})});IN.displayName=DN;function FN(e,t){return`${e}-trigger-${t}`}function BN(e,t){return`${e}-content-${t}`}var Bz=jN,UN=ON,VN=LN,$N=IN;const Uz=Bz,zN=w.forwardRef(({className:e,...t},n)=>p.jsx(UN,{ref:n,className:Ve("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));zN.displayName=UN.displayName;const im=w.forwardRef(({className:e,...t},n)=>p.jsx(VN,{ref:n,className:Ve("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));im.displayName=VN.displayName;const om=w.forwardRef(({className:e,...t},n)=>p.jsx($N,{ref:n,className:Ve("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));om.displayName=$N.displayName;function Vz(){const{toast:e}=um(),t=dr(),[n,r]=w.useState(!1),[o,a]=w.useState(null),{data:l}=jr({queryKey:["currentUser"],queryFn:()=>Oe.auth.me()}),{data:u=[],isLoading:d}=jr({queryKey:["admin-bulletins"],queryFn:()=>Oe.entities.NewsBulletin.list("-created_date",200)}),h=dn({mutationFn:E=>Oe.entities.NewsBulletin.create(E),onSuccess:()=>{t.invalidateQueries({queryKey:["admin-bulletins"]}),t.invalidateQueries({queryKey:["bulletins"]}),e({title:"Bulletin created successfully"}),r(!1)}}),m=dn({mutationFn:({id:E,data:b})=>Oe.entities.NewsBulletin.update(E,b),onSuccess:()=>{t.invalidateQueries({queryKey:["admin-bulletins"]}),t.invalidateQueries({queryKey:["bulletins"]}),e({title:"Bulletin updated successfully"}),r(!1),a(null)}}),g=dn({mutationFn:E=>Oe.entities.NewsBulletin.delete(E),onSuccess:()=>{t.invalidateQueries({queryKey:["admin-bulletins"]}),t.invalidateQueries({queryKey:["bulletins"]}),e({title:"Bulletin deleted"})}}),v=E=>{o?m.mutate({id:o.id,data:E}):h.mutate(E)},C=E=>{a(E),r(!0)};return(l==null?void 0:l.role)!=="admin"?p.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:p.jsx("p",{className:"text-muted-foreground",children:"Admin access required."})}):p.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[p.jsxs("div",{className:"flex items-center justify-between mb-8",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[p.jsx(AT,{className:"w-5 h-5 text-primary"}),p.jsx("span",{className:"text-xs text-primary font-semibold uppercase tracking-[0.2em]",children:"Admin Panel"})]}),p.jsx("h1",{className:"text-2xl sm:text-3xl font-bold text-foreground font-playfair",children:"Dashboard"})]}),p.jsxs(We,{onClick:()=>{a(null),r(!0)},className:"gap-2",children:[p.jsx(rR,{className:"w-4 h-4"}),"Upload News Bulletin"]})]}),n&&p.jsx(mz,{bulletin:o,onSave:v,onCancel:()=>{r(!1),a(null)},isSaving:h.isPending||m.isPending}),p.jsxs(Uz,{defaultValue:"bulletins",className:"mt-6",children:[p.jsxs(zN,{className:"bg-secondary",children:[p.jsxs(im,{value:"bulletins",className:"gap-2",children:[p.jsx(np,{className:"w-4 h-4"})," Bulletins (",u.length,")"]}),p.jsxs(im,{value:"messages",className:"gap-2",children:[p.jsx(m1,{className:"w-4 h-4"})," Messages"]})]}),p.jsx(om,{value:"bulletins",className:"mt-6",children:p.jsx(wz,{bulletins:u,isLoading:d,onEdit:C,onDelete:E=>g.mutate(E)})}),p.jsx(om,{value:"messages",className:"mt-6",children:p.jsx(bz,{})})]})]})}const $z=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r}=Pi();return t||e?p.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-background",children:p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"w-12 h-12 border-2 border-primary/30 border-t-primary rounded-full animate-spin mx-auto mb-4"}),p.jsx("p",{className:"text-sm text-muted-foreground tracking-widest uppercase",children:"GLP Channel"})]})}):n&&n.type==="user_not_registered"?p.jsx(bD,{}):p.jsxs(QA,{children:[p.jsxs(Jn,{element:p.jsx(Y3,{}),children:[p.jsx(Jn,{path:"/",element:p.jsx(qA,{to:"/Home",replace:!0})}),p.jsx(Jn,{path:"/Home",element:p.jsx(wU,{})}),p.jsx(Jn,{path:"/NewsBulletins",element:p.jsx(rz,{})}),p.jsx(Jn,{path:"/GLPGroup",element:p.jsx(sz,{})}),p.jsx(Jn,{path:"/LiveStream",element:p.jsx(oz,{})}),p.jsx(Jn,{path:"/Contact",element:p.jsx(lz,{})}),p.jsx(Jn,{path:"/Admin",element:p.jsx(Vz,{})})]}),p.jsx(Jn,{path:"*",element:p.jsx(xD,{})})]})};function zz(){return p.jsx(wD,{children:p.jsxs(Uj,{client:Jj,children:[p.jsx(n2,{children:p.jsx($z,{})}),p.jsx(mj,{})]})})}XP.createRoot(document.getElementById("root")).render(p.jsx(zz,{}));
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.